commit 96f296207eecf647eea5d672881b2c224984990c Author: SheetJS Date: Tue Oct 31 14:00:53 2017 -0400 public release diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb98d2b --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +dist/ +node_modules/ +yarn.lock +package-lock.json +*.map diff --git a/CloseFile.gif b/CloseFile.gif new file mode 100644 index 0000000..799e087 Binary files /dev/null and b/CloseFile.gif differ diff --git a/DeleteFile.gif b/DeleteFile.gif new file mode 100644 index 0000000..c005aca Binary files /dev/null and b/DeleteFile.gif differ diff --git a/DownloadEntry.gif b/DownloadEntry.gif new file mode 100644 index 0000000..7879fe4 Binary files /dev/null and b/DownloadEntry.gif differ diff --git a/DownloadFile.gif b/DownloadFile.gif new file mode 100644 index 0000000..9640eb6 Binary files /dev/null and b/DownloadFile.gif differ diff --git a/DragFile.gif b/DragFile.gif new file mode 100644 index 0000000..5abfb4d Binary files /dev/null and b/DragFile.gif differ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c8e91da --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +.PHONY: init +init: + git rm -f *.gif logo.{png,svg} app.*.{js,css} fontawesome-webfont.* index.html manifest.*.js styles.css vendor.*.{css,js} || echo + cp dist/* . + sed -i.foo 's#href="/#href="#g; s#src="/#src="#g' index.html + sed -i.foo 's#url(/font#url(font#g' *.css + git add *.gif logo.{png,svg} app.*.{js,css} fontawesome-webfont.* index.html manifest.*.js styles.css vendor.*.{css,js} + @make clean + +.PHONY: clean +clean: + rm -f *.foo *.map diff --git a/NewFile.gif b/NewFile.gif new file mode 100644 index 0000000..82d15cf Binary files /dev/null and b/NewFile.gif differ diff --git a/ReadFile.gif b/ReadFile.gif new file mode 100644 index 0000000..1e809cb Binary files /dev/null and b/ReadFile.gif differ diff --git a/RenameEntry.gif b/RenameEntry.gif new file mode 100644 index 0000000..c269b2f Binary files /dev/null and b/RenameEntry.gif differ diff --git a/RenameFile.gif b/RenameFile.gif new file mode 100644 index 0000000..1229238 Binary files /dev/null and b/RenameFile.gif differ diff --git a/UpdateFile.gif b/UpdateFile.gif new file mode 100644 index 0000000..9b82c9b Binary files /dev/null and b/UpdateFile.gif differ diff --git a/ViewFile.gif b/ViewFile.gif new file mode 100644 index 0000000..f1bdf15 Binary files /dev/null and b/ViewFile.gif differ diff --git a/app.8297993e.js b/app.8297993e.js new file mode 100644 index 0000000..5dae3ff --- /dev/null +++ b/app.8297993e.js @@ -0,0 +1,2 @@ +webpackJsonp([1],{0:function(e,t,n){n("+prg"),e.exports=n("lVK7")},1:function(e,t){},2:function(e,t){},"3lb1":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("thjQ"),u=n.n(h),d=n("ydjI"),f=n("r/a0"),p=(n.n(f),n("V5xO")),m=n("HACt"),b=n("mihT"),g=n("mjy5"),_=n("eDYK"),y=n("DlSv"),w=n("JI0G"),v=n("VyOR"),E=function(e){return u()("Enter the new file name",{content:{element:"input",attributes:{placeholder:e}}})},x=function(e){if(p.a.isDirty()){var t="Recent changes have not been saved";return u()(t,{timer:1e3}),e.returnValue=t}},k=s.a.createElement(c.d,null,s.a.createElement(c.c,{to:"/"})),C=s.a.createElement(c.d,null,s.a.createElement(c.c,{to:"/"})),S=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.hfoe=a.handleFileOrEntry.bind(a),a.flipViz=a.flip_viz.bind(a),a.force=a.force.bind(a),a.state={viz:!0},a}return a(t,e),t.prototype.componentDidMount=function(){window.removeEventListener("beforeunload",x),window.addEventListener("beforeunload",x,!0)},t.prototype.flip_viz=function(){this.setState({viz:!this.state.viz}),this.forceUpdate()},t.prototype.force=function(){this.toolbar&&this.toolbar.force()},t.prototype.erase=function(){if(!p.a.isDirty())return p.a.reset();u()("Are you sure you want to close "+p.a.fname+"?",{buttons:["No","Yes"]}).then(function(e){e&&p.a.reset()})},t.prototype.renameFile=function(){E(p.a.fname).then(function(e){e&&p.a.setName(e)})},t.prototype.handleFile=function(e){return e instanceof File?this.handleOneFile(e):u()("Please drop only one file")},t.prototype.handleOneFile=function(e){var t=function(){var t=new FileReader;t.onload=function(t){var n=t.target.result;try{p.a.setBStr(n,function(e){u()("Error:"+(e.message||e))}),p.a.setName(e.name)}catch(t){u()("Error:"+(t.message||t))}},t.readAsBinaryString(e)},n=[];if(e.size>v.a&&n.push("File size "+e.size+" exceeds limit."),n.length>0){n.push("Operations may be slow. Shall we proceed?");var r=document.createElement("div");r.innerHTML=n.join("
\n"),u()({content:r,buttons:["No","Yes"]}).then(function(e){e&&t()})}else t()},t.prototype.handleEntry=function(e,t){!function(e,t,n){var r=new FileReader;if(r.onload=function(e){var n=e.target.result;t(null,n)},n&&n.size>0&&e.size>n.size)return t(new Error("File size "+e.size+" exceeds limit"),null);r.readAsArrayBuffer(e)}(t,function(t,n){if(t)return u()("Error: "+t.message);p.a.setContentAB(e,n)},{size:v.a})},t.prototype.handleFileOrEntry=function(e){var t=this;if(p.a.isEmpty())return this.handleFile(e);if(!(e instanceof File))return u()("Please drop only one file");var n=this.props.match&&null!=this.props.match.params.idx?this.props.match.params.idx:-1,r={buttons:{open:"Open",add:"Add File"}},i=p.a.getFixedName(n);n>-1&&(r.buttons.update="Update contents"),u()(p.a.fname+" "+(i&&"("+i+")")+" is open. What do you want to do with "+e.name+"?",r).then(function(r){switch(r){case"open":if(!p.a.isDirty())return p.a.reset(),t.handleFile(e);u()("There are unsaved changes. Are you sure you want to close "+p.a.fname+"?",{buttons:["No","Yes"]}).then(function(n){n&&(p.a.reset(),t.handleFile(e))});break;case"add":var i="";p.a.find(e.name)?(i=p.a.addNewFile(),u()("File "+e.name+" exists! New file: "+i)):i=p.a.addNewFile(e.name);var a=p.a.getIdByName(i);t.handleEntry(a,e);break;case"update":t.handleEntry(n,e)}})},t.prototype.newEntry=function(){var e=p.a.addNewFile();u()("New File: "+e)},t.prototype.exportFile=function(){p.a.exportBStr(p.a.fname||"SheetJS.cfb")},t.prototype.deleteEntry=function(e){u()("Are you sure you want to delete "+p.a.getFixedName(e),{buttons:["No","Yes"]}).then(function(t){switch(t){case!0:p.a.delFileById(e);break;default:return}})},t.prototype.renameEntry=function(e){E(p.a.getFixedPath(e)).then(function(t){t&&p.a.renFileById(e,t)})},t.prototype.render=function(){var e=this;return s.a.createElement("div",{className:"Outer"},s.a.createElement(w.a,{handleFile:this.hfoe},s.a.createElement(m.a,{idx:this.props.match.params.idx,erase:this.erase,exportFile:this.exportFile,handleFile:this.hfoe,viz:this.state.viz,flipViz:this.flipViz,ref:function(t){e.toolbar=t}})),s.a.createElement("div",{className:"Bottom"},s.a.createElement(d.a,{split:"vertical",minSize:50,maxSize:250,defaultSize:window.matchMedia&&!window.matchMedia("(min-width: 650px)").matches?50:250,style:{height:"calc(100% - 55px)"},pane1Style:{display:this.state.viz?"block":"none"}},this.state.viz&&s.a.createElement(w.a,{handleFile:this.hfoe},s.a.createElement(b.a,{idx:this.props.match.params.idx,fname:p.a.fname,exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),s.a.createElement(w.a,{handleFile:this.hfoe},s.a.createElement("div",{className:"RightPane"},p.a.isEmpty()?s.a.createElement(c.e,null,s.a.createElement(c.d,{exact:!0,path:"/"},s.a.createElement(y.a,{handleFile:this.handleFile})),C):s.a.createElement(c.e,null,s.a.createElement(c.d,{path:"/view"},s.a.createElement(g.a,{idx:this.props.match.params.idx||0,mode:this.props.match.params.mode,deleteEntry:this.deleteEntry,renameEntry:this.renameEntry,handleFile:this.handleEntry,viz:this.state.viz,force:this.force})),s.a.createElement(c.d,{exact:!0,path:"/"},s.a.createElement(_.a,{exportFile:this.exportFile,erase:this.erase,renameFile:this.renameFile,addFile:this.newEntry})),k))))))},t}(o.Component);t.a=Object(l.a)(S)},"9Sgv":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=n("MPy6"),c=s.a.createElement(l.a,{title:"File has unsaved changes",position:"bottom"},"**"),h=function(e){function t(n){return r(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){return this.props.isDirty?c:""},t}(o.Component);t.a=h},C583:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var r=n("lDdF"),i=(n.n(r),function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=255&e.charCodeAt(r);return t}),a=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!=e.length;++r)n[r]=e[r];return t},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(r.saveAs)(new Blob([i(e)],{type:"application/octet-stream"}),t||"sheetjs.out")},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sheetjs.out";Object(r.saveAs)(new Blob([a(e)],{type:"application/octet-stream"}),t||"sheetjs.out")}},DlSv:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("eybw"),u=(n.n(h),n("V5xO")),d=n("W7d1"),f=n("VyOR"),p=s.a.createElement("br",null),m=s.a.createElement("div",{className:"Title"},"Welcome to CFB Editor"),b=s.a.createElement("div",{className:"Subtitle"},"View and Edit archives with ease"),g=s.a.createElement("br",null),_=s.a.createElement("br",null),y=s.a.createElement("div",{className:"minor"},"Your data never leaves your device"),w=s.a.createElement("div",null,"You can also drag and drop a file into the window"),v=s.a.createElement("br",null),E=s.a.createElement("br",null),x=s.a.createElement("br",null),k=s.a.createElement("br",null),C=s.a.createElement("br",null),S=s.a.createElement("details",null,s.a.createElement("summary",null,s.a.createElement("b",null,"Download Sample Files")," (click to show)"),s.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xls"},"CFB: pivot_table_test.xls"),s.a.createElement("br",null),s.a.createElement("br",null),s.a.createElement("a",{href:"http://oss.sheetjs.com/test_files/pivot_table_test.xlsb"},"ZIP: pivot_table_test.xlsb"),s.a.createElement("br",null)),z=s.a.createElement("br",null),A=s.a.createElement("br",null),F=s.a.createElement("br",null),O=s.a.createElement("div",{className:"minor"},"(some items may not fit, consider using a wider screen)"),B=s.a.createElement("br",null),I=s.a.createElement("br",null),T=s.a.createElement("br",null),N=s.a.createElement("div",{className:"minor"},s.a.createElement("a",{className:"minor",href:"http://sheetjs.com"},"Copyright (C) 2017-present SheetJS LLC")),R=function(e){function t(n){return r(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.newCFB=function(){u.a.newFile("SheetJS.cfb")},t.prototype.newZIP=function(){u.a.newFile("SheetJS.zip")},t.prototype.render=function(){return u.a.isEmpty()?s.a.createElement("div",{className:"conpainer"},p,m,b,g,_,s.a.createElement(d.a,{handleFile:this.props.handleFile,title:"Read a file on your device",fmts:f.b}),y,w,v,s.a.createElement("a",{onClick:this.newZIP},"Click here to make a new ZIP archive"),E,x,s.a.createElement("a",{onClick:this.newCFB},"Click here to make a new CFB archive"),k,C,S,z,s.a.createElement(c.b,{to:"/help"},"Show Help"),A,F,window.matchMedia&&!window.matchMedia("(min-width: 800px)").matches?O:B,I,T,N):s.a.createElement(c.c,{to:"/"})},t}(o.Component);t.a=Object(l.a)(R)},GtGB:function(e,t,n){"use strict";function r(e){var t=0,n="";return e.replace(i,function(e,r,i,a){var o=t;"/"==r?(--t,--o):"/"==e.charAt(e.length-2)||++t;var s=a==n&&"/"==r?"":"\n"+" ".repeat(o);return n=a,s+e}).replace(/\n+\n!/:]*:|)([^\s?>:/]+)[^>]*>/gm},HACt:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("Apm5"),u=(n.n(h),n("0Efu")),d=(n.n(u),n("xwm3")),f=(n.n(d),n("V5xO")),p=n("MPy6"),m=n("9Sgv"),b=s.a.createElement(u,{name:"line-scale-pulse-out",fadeIn:"none"}),g=s.a.createElement(h.Icon,{name:"floppy-o",fixedWidth:!0}),_=s.a.createElement(h.Icon,{name:"close",fixedWidth:!0}),y=s.a.createElement(h.Icon,{name:"question",fixedWidth:!0}),w=s.a.createElement(p.a,{title:"About Us",position:"bottom"},s.a.createElement("a",{href:"http://sheetjs.com"},s.a.createElement("img",{className:"Logo",src:"logo.png",height:"24px",width:"24px"}))),v=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.flipViz=a.flipViz.bind(a),a.force=a.force.bind(a),a}return a(t,e),t.prototype.flipViz=function(){this.props.flipViz(),this.forceUpdate()},t.prototype.force=function(){this.forceUpdate()},t.prototype.render=function(){return s.a.createElement("div",{className:"ToolBar"},s.a.createElement("div",{className:"AlignLeft"},s.a.createElement("div",{className:"TitleName"},"CFB Editor",s.a.createElement(p.a,{title:(this.props.viz?"Hide":"Show")+" Sidebar",position:"bottom"},s.a.createElement("a",{onClick:this.flipViz},s.a.createElement(h.Icon,{name:"caret-"+(this.props.viz?"left":"right"),fixedWidth:!0}))),f.a.getLoading()&&b)),s.a.createElement("div",{className:"AlignCenter"},s.a.createElement("div",{className:"TitleFile"},f.a.fname?this.props.idx?s.a.createElement(c.b,{to:"/"},"<"+f.a.fname+">"):"<"+f.a.fname+">":null,s.a.createElement(m.a,{isDirty:f.a.isDirty()}))),s.a.createElement("div",{className:"AlignRight"},s.a.createElement("div",{className:"TitleIcons"},!f.a.isEmpty()&&s.a.createElement(p.a,{title:"Download archive",position:"bottom"},s.a.createElement("a",{onClick:this.props.exportFile},g)),!f.a.isEmpty()&&s.a.createElement(p.a,{title:"Close archive",position:"bottom"},s.a.createElement("a",{onClick:this.props.erase},_)),s.a.createElement(p.a,{title:"Show Help",position:"bottom"},s.a.createElement(c.b,{to:"/help"},y)),w)))},t}(o.Component);t.a=Object(l.a)(v)},JI0G:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.onDrop=a.onDrop.bind(a),a}return a(t,e),t.prototype.suppress=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.onDrop=function(e){e.stopPropagation(),e.preventDefault();var t=e.dataTransfer.files;t&&0!=t.length&&this.props.handleFile(1==t.length?t[0]:t)},t.prototype.render=function(){return s.a.createElement("div",{className:"DDD",onDrop:this.onDrop,onDragEnter:this.suppress,onDragOver:this.suppress},this.props.children)},t}(o.Component);t.a=l},K9jv:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e){return e.href.match(/^\//)?l.a.createElement(h.b,{to:e.href},e.children):l.a.createElement("a",{href:e.href},e.children)}var s=n("GiK3"),l=n.n(s),c=n("nCbI"),h=n("F8kA"),u=n("ytRd"),d=n.n(u),f=n("lfvs"),p=n.n(f),m=n("QFHE"),b=(n.n(m),function(e){function t(n){return r(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){return l.a.createElement(p.a,{className:"helpview",source:d.a,renderers:{Link:o}})},t}(s.Component));t.a=Object(c.a)(b)},MPy6:function(e,t,n){"use strict";var r=n("oVvp"),i=(n.n(r),n("ejSu"));n.n(i);t.a=i.Tooltip},QFHE:function(e,t){},V5xO:function(e,t,n){"use strict";var r=n("nCbI"),i=n("Su46"),a=(n.n(i),n("XyJX")),o=(n.n(a),n("C583")),s=n("co4O");t.a=Object(r.b)({fname:"",file:null,dirty:!1,loading:!1,isDirty:function(){return this.file&&this.dirty},setLoading:function(e){return this.loading=e},getLoading:function(){return this.loading},isEmpty:function(){return!this.file},isCFB:function(){return this.file&&this.file.FullPaths},isZIP:function(){return this.file&&!this.isCFB()},getType:function(){return this.isCFB()?"CFB":this.isZIP()?"ZIP":"???"},getFileList:function(){var e=this;return this.keys().map(function(t,n){return[t,e.getFileEntryById(n),n]}).filter(function(t){return e.isCFB()?2==t[1].type:!t[1].dir})},getNextName:function(e){return e?this.find("SheetJS"+e)?this.getNextName(e+1):"SheetJS"+e:this.getNextName(1)},getRootName:function(){return this.isCFB()?this.getFileNameById(0):""},getCLSID:function(){return this.isCFB()?this.getFileEntryById(0).clsid:""},setName:function(e){this.fname=e},setBStr:function(e,t){var n=this;this.loading=!0,setTimeout(function(){try{switch(e.slice(0,4)){case"ÐÏà":n.type="CFB",n.file=i.read(e,{type:"binary"});break;case"PK":case"PK":n.type="ZIP",n.file=new a(e,{base64:!1});break;default:throw new Error("Invalid file (magic "+e.slice(0,4).split("").map(function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})+")")}n.loading=!1}catch(e){n.loading=!1,t&&t(e)}},100)},addNewFile:function(e){var t=e||this.getNextName(1);this.isCFB()?i.utils.cfb_add(this.file,t,[55,50,54,50]):this.isZIP()&&this.file.file(t,"7262");var n=this.find(t);return this.dirty=!0,this.isCFB()?this.getFileNameById(this.entries().indexOf(n)):t},getFileNameById:function(e){return this.keys()[e]||""},getFileEntryById:function(e){return this.entries()[e]||null},getFixedName:function(e){return this.isEmpty()?"":Object(s.d)(this.getFileNameById(e))},getFixedPath:function(e){return this.isEmpty()?"":this.isCFB()?Object(s.d)(this.getFileNameById(e)).replace(/^[^/]*/,""):Object(s.d)(this.getFileNameById(e))},getFileTime:function(e){return this.isEmpty()||!this.getFileEntryById(e)?new Date(NaN):this.getFileTimeEntry(e)||this.getFileTimeEntry(0)||new Date(1980,0,1)},setContentAB:function(e,t){var n=Object(s.b)(t),r=this.getFileNameById(e);this.isCFB()?(i.utils.prep_blob(n),i.utils.cfb_add(this.file,r,Object(s.b)(n))):this.isZIP()&&this.file.file(r,n.map(function(e){return String.fromCharCode(e)}).join(""),{binary:"true"}),this.dirty=!0},renFileById:function(e,t){var n=this.getFileNameById(e),r=Object(s.h)(t).replace(/^\//,"");this.isCFB()?(i.utils.cfb_mov(this.file,n,this.getFileNameById(0)+r),i.utils.cfb_gc(this.file)):this.isZIP()&&(this.file.file(r,Object(s.a)(this.getContentById(e)),{binary:!0}),this.file.remove(n)),this.dirty=!0},delFileById:function(e){var t=this.getFileNameById(e);this.isCFB()&&i.utils.cfb_del(this.file,t),this.isZIP()&&this.file.remove(t),this.dirty=!0},exportBStrById:function(e){var t=this;this.loading=!0,setTimeout(function(){try{var n=t.getFileEntryById(e);Object(o.a)(t.getContentByEntry(n),n.name),t.loading=!1}catch(e){throw t.loading=!1,e}},100)},exportBStr:function(){var e=this;this.loading=!0,setTimeout(function(){try{e.dirty=!1;var t=void 0;return e.isCFB()&&(t=Object(o.b)(i.write(e.file,{type:"binary"}),e.fname||"SheetJS.cfb")),e.isZIP()&&(t=Object(o.b)(e.file.generate({type:"string",compression:"DEFLATE"}),e.fname||"SheetJS.zip")),e.loading=!1,t}catch(t){throw e.loading=!1,t}},100)},newFile:function(e){if(this.fname=e||"sheetjs.cfb",this.fname.match(/\.zip$/)){var t=new a;t.file("Sh33tJ5","7262"),this.file=t}else this.file=i.utils.cfb_new();this.dirty=!0},reset:function(){this.file=null,this.fname="",this.dirty=!1},getContentById:function(e){return this.getContentByEntry(this.getFileEntryById(e))},getContentByEntry:function(e){return e?e._data?"string"==typeof e._data?Object(s.g)(e._data):Object(s.b)(e._data.getContent()):e.content||[]:[]},getContentSliceByEntry:function(e,t,n){return e?e.content?e.content.slice(t,n):this.getContentByEntry(e).slice(t,n):[]},getSizeByEntry:function(e){return!this.isCFB()||e.content&&e.content.length?e&&(e.size||e._data&&e._data.uncompressedSize||e._data.length)||0:0},getTextByEntry:function(e){return e&&(e._data||e.content)?e._data?"string"==typeof e._data?e._data:Object(s.a)(e._data.getContent()):Object(s.a)(e.content):""},getFileTimeEntry:function(e){var t=this.getFileEntryById(e);return t?t.ct||t.mt||t.date||0!=e&&this.getFileTime(0)||new Date(1980,0,1):new Date(NaN)},find:function(e){return this.isEmpty()?null:this.isCFB()?i.find(this.file,e):this.file.filter(function(t,n){return e==t||e==n.name})[0]},keys:function(){var e=this;return this.isEmpty()?[]:this.isCFB()?this.file.FullPaths:Object.keys(this.file.files).filter(function(t){return!e.file.files[t].dir})},entries:function(){var e=this;return this.isEmpty()?[]:this.isCFB()?this.file.FileIndex:this.keys().map(function(t){return e.file.files[t]})},getIdByName:function(e){var t=this;if(this.isEmpty())return-1;if(this.isZIP()){return Object.keys(this.file.files).filter(function(e){return!t.file.files[e].dir}).indexOf(e)}return this.entries().indexOf(this.find(e))},Sheet:"JS"})},VyOR:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=384,i=5<<20,a=["application/zip","application/octet-stream"].join(",")+["zip","xlsx","xlsb","xlsm","ods","cfb","xls","qpw","wb3","ppt","doc"].map(function(e){return"."+e}).join(",")},W7d1:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.handleChange=a.handleChange.bind(a),a}return a(t,e),t.prototype.handleChange=function(e){var t=e.target.files;t&&t[0]&&this.props.handleFile(t[0])},t.prototype.render=function(){return s.a.createElement("form",{className:"form-inline"},s.a.createElement("div",{className:"form-group"},this.props.title&&this.props.title+": ",s.a.createElement("input",{type:"file",className:"form-control",id:"file",onChange:this.handleChange})))},t}(o.Component);t.a=l},XyJX:function(e,t,n){(function(n){var r,i,a,o,o,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(n){if("object"==s(t)&&void 0!==e&&"undefined"==typeof DO_NOT_EXPORT_JSZIP)e.exports=n();else{JSZip=n(),i=[],r=n,void 0!==(a="function"==typeof r?r.apply(t,i):r)&&(e.exports=a)}}(function(){return function e(t,n,r){function i(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof o&&o;if(!l&&c)return o(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var h=n[s]={exports:{}};t[s][0].call(h.exports,function(e){var n=t[s][1][e];return i(n||e)},h,h.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof o&&o,s=0;s>2,s=(3&n)<<4|i>>4,l=(15&i)<<2|a>>6,c=63&a,isNaN(i)?l=c=64:isNaN(a)&&(c=64),h=h+r.charAt(o)+r.charAt(s)+r.charAt(l)+r.charAt(c);return h},n.decode=function(e,t){var n,i,a,o,s,l,c,h="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u>4,i=(15&s)<<4|l>>2,a=(3&l)<<6|c,h+=String.fromCharCode(n),64!=l&&(h+=String.fromCharCode(i)),64!=c&&(h+=String.fromCharCode(a));return h}},{}],2:[function(e,t,n){"use strict";function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],3:[function(e,t,n){"use strict";n.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,t,n){"use strict";var r=e("./utils"),i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if(void 0===e||!e.length)return 0;var n="string"!==r.getTypeOf(e);void 0===t&&(t=0);var a=0,o=0,s=0;t^=-1;for(var l=0,c=e.length;l>>8^a;return-1^t}},{"./utils":21}],5:[function(e,t,n){"use strict";function r(e){this.data=null,this.length=0,this.index=0}var i=e("./utils");r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=r},{"./utils":21}],6:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.comment=null},{}],7:[function(e,t,n){"use strict";var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){var t=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(t)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":21}],8:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e){return i.deflateRaw(e)},n.uncompress=function(e){return i.inflateRaw(e)}},{pako:24}],9:[function(e,t,n){"use strict";function r(e,t){if(!(this instanceof r))return new r(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}var i=e("./base64");r.prototype=e("./object"),r.prototype.load=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.utils=e("./deprecatedPublicUtils"),r.base64={encode:function(e){return i.encode(e)},decode:function(e){return i.decode(e)}},r.compressions=e("./compressions"),t.exports=r},{"./base64":1,"./compressions":3,"./defaults":6,"./deprecatedPublicUtils":7,"./load":10,"./object":13,"./support":17}],10:[function(e,t,n){"use strict";var r=e("./base64"),i=e("./zipEntries");t.exports=function(e,t){var n,a,o,s;for(t=t||{},t.base64&&(e=r.decode(e)),a=new i(e,t),n=a.files,o=0;o>>=8;return r},w=function(){var e,t,n={};for(e=0;e0?e.substring(0,t):""},k=function(e,t){return"/"!=e.slice(-1)&&(e+="/"),t=void 0!==t&&t,this.files[e]||E.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},C=function(e,t){var n,r=new h;return e._data instanceof h?(r.uncompressedSize=e._data.uncompressedSize,r.crc32=e._data.crc32,0===r.uncompressedSize||e.dir?(t=c.STORE,r.compressedContent="",r.crc32=0):e._data.compressionMethod===t.magic?r.compressedContent=e._data.getCompressedContent():(n=e._data.getContent(),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n)))):(n=b(e),n&&0!==n.length&&!e.dir||(t=c.STORE,n=""),r.uncompressedSize=n.length,r.crc32=a(n),r.compressedContent=t.compress(i.transformTo(t.compressInputType,n))),r.compressedSize=r.compressedContent.length,r.compressionMethod=t.magic,r},S=function(e,t,n,r){var s,l,c,h,u=(n.compressedContent,i.transformTo("string",d.utf8encode(t.name))),f=t.comment||"",p=i.transformTo("string",d.utf8encode(f)),m=u.length!==t.name.length,b=p.length!==f.length,g=t.options,_="",w="",v="";c=t._initialMetadata.dir!==t.dir?t.dir:g.dir,h=t._initialMetadata.date!==t.date?t.date:g.date,s=h.getHours(),s<<=6,s|=h.getMinutes(),s<<=5,s|=h.getSeconds()/2,l=h.getFullYear()-1980,l<<=4,l|=h.getMonth()+1,l<<=5,l|=h.getDate(),m&&(w=y(1,1)+y(a(u),4)+u,_+="up"+y(w.length,2)+w),b&&(v=y(1,1)+y(this.crc32(p),4)+p,_+="uc"+y(v.length,2)+v);var E="";return E+="\n\0",E+=m||b?"\0\b":"\0\0",E+=n.compressionMethod,E+=y(s,2),E+=y(l,2),E+=y(n.crc32,4),E+=y(n.compressedSize,4),E+=y(n.uncompressedSize,4),E+=y(u.length,2),E+=y(_.length,2),{fileRecord:o.LOCAL_FILE_HEADER+E+u+_,dirRecord:o.CENTRAL_FILE_HEADER+"\0"+E+y(p.length,2)+"\0\0\0\0"+(!0===c?"\0\0\0":"\0\0\0\0")+y(r,4)+u+_+p,compressedObject:n}},z={load:function(e,t){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(e){var t,n,r,i,a=[];for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],i=new _(r.name,r._data,w(r.options)),n=t.slice(this.root.length,t.length),t.slice(0,this.root.length)===this.root&&e(n,i)&&a.push(i));return a},file:function(e,t,n){if(1===arguments.length){if(i.isRegExp(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}return this.filter(function(t,n){return!n.dir&&t===e})[0]||null}return e=this.root+e,E.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(i.isRegExp(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=k.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!=e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r=0;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a;return-1},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.index,this.index+e);return this.index+=e,t},t.exports=r},{"./dataReader":5}],19:[function(e,t,n){"use strict";var r=e("./utils"),i=function(e){this.data=new Uint8Array(e),this.index=0};i.prototype={append:function(e){0!==e.length&&(e=r.transformTo("uint8array",e),this.data.set(e,this.index),this.index+=e.length)},finalize:function(){return this.data}},t.exports=i},{"./utils":21}],20:[function(e,t,n){"use strict";for(var r=e("./utils"),i=e("./support"),a=e("./nodeBuffer"),o=new Array(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1;var l=function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},c=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+o[e[n]]>t?n:t},h=function(e){var t,n,i,a,s=e.length,l=new Array(2*s);for(n=0,t=0;t4)l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&t1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)};n.utf8encode=function(e){return i.nodebuffer?a(e,"utf-8"):l(e)},n.utf8decode=function(e){if(i.nodebuffer)return r.transformTo("nodebuffer",e).toString("utf-8");e=r.transformTo(i.uint8array?"uint8array":"array",e);for(var t=[],n=0,a=e.length;n1;)try{"array"===a||"nodebuffer"===a?r.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+t,i)))):r.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+t,i)))),o+=t}catch(e){t=Math.floor(t/2)}return r.join("")}function o(e,t){for(var n=0;n1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var n=o.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(c[n]);t.header&&o.deflateSetHeader(this.strm,t.header)};u.prototype.push=function(e,t){var n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,i.input="string"==typeof e?l.string2buf(e):e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new s.Buf8(a),i.next_out=0,i.avail_out=a),1!==(n=o.deflate(i,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;(0===i.avail_out||0===i.avail_in&&4===r)&&("string"===this.options.to?this.onData(l.buf2binstring(s.shrinkBuf(i.output,i.next_out))):this.onData(s.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4!==r||(n=o.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=u,n.deflate=r,n.deflateRaw=i,n.gzip=a},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,t,n){"use strict";function r(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg;return n.result}function i(e,t){return t=t||{},t.raw=!0,r(e,t)}var a=e("./zlib/inflate.js"),o=e("./utils/common"),s=e("./utils/strings"),l=e("./zlib/constants"),c=e("./zlib/messages"),h=e("./zlib/zstream"),u=e("./zlib/gzheader"),d=function(e){this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var n=a.inflateInit2(this.strm,t.windowBits);if(n!==l.Z_OK)throw new Error(c[n]);this.header=new u,a.inflateGetHeader(this.strm,this.header)};d.prototype.push=function(e,t){var n,r,i,c,h,u=this.strm,d=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?l.Z_FINISH:l.Z_NO_FLUSH,u.input="string"==typeof e?s.binstring2buf(e):e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new o.Buf8(d),u.next_out=0,u.avail_out=d),(n=a.inflate(u,l.Z_NO_FLUSH))!==l.Z_STREAM_END&&n!==l.Z_OK)return this.onEnd(n),this.ended=!0,!1;u.next_out&&(0===u.avail_out||n===l.Z_STREAM_END||0===u.avail_in&&r===l.Z_FINISH)&&("string"===this.options.to?(i=s.utf8border(u.output,u.next_out),c=u.next_out-i,h=s.buf2string(u.output,i),u.next_out=c,u.avail_out=d-c,c&&o.arraySet(u.output,u.output,i,c,0),this.onData(h)):this.onData(o.shrinkBuf(u.output,u.next_out)))}while(u.avail_in>0&&n!==l.Z_STREAM_END);return n===l.Z_STREAM_END&&(r=l.Z_FINISH),r!==l.Z_FINISH||(n=a.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l.Z_OK)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===l.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=r,n.inflateRaw=i,n.ungzip=r},{"./utils/common":27,"./utils/strings":28,"./zlib/constants":30,"./zlib/gzheader":33,"./zlib/inflate.js":35,"./zlib/messages":37,"./zlib/zstream":39}],27:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==(void 0===n?"undefined":s(n)))throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)return void e.set(t.subarray(n,n+r),i);for(var a=0;a=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;s[254]=s[254]=1,n.string2buf=function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},n.buf2binstring=function(e){return r(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n4)c[i++]=65533,n+=o-1;else{for(a&=2===o?31:3===o?15:7;o>1&&n1?c[i++]=65533:a<65536?c[i++]=a:(a-=65536,c[i++]=55296|a>>10&1023,c[i++]=56320|1023&a)}return r(c,i)},n.utf8border=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+s[e[n]]>t?n:t}},{"./common":27}],29:[function(e,t,n){"use strict";function r(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){o=n>2e3?2e3:n,n-=o;do{i=i+t[r++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16|0}t.exports=r},{}],30:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],31:[function(e,t,n){"use strict";function r(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s>>8^a[255&(e^t[s])];return-1^e}var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=r},{}],32:[function(e,t,n){"use strict";function r(e,t){return e.msg=I[t],t}function i(e){return(e<<1)-(e>4?9:0)}function a(e){for(var t=e.length;--t>=0;)e[t]=0}function o(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(A.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function s(e,t){F._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,o(e.strm)}function l(e,t){e.pending_buf[e.pending++]=t}function c(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function h(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,A.arraySet(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=O(e.adler,t,i,n):2===e.state.wrap&&(e.adler=B(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function u(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-se?e.strstart-(e.w_size-se):0,c=e.window,h=e.w_mask,u=e.prev,d=e.strstart+oe,f=c[a+o-1],p=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+o]===p&&c[n+o-1]===f&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&ao){if(e.match_start=t,o=r,r>=s)break;f=c[a+o-1],p=c[a+o]}}}while((t=u[t&h])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function d(e){var t,n,r,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-se)){A.arraySet(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=o?r-o:0}while(--n);n=o,t=n;do{r=e.prev[--t],e.prev[t]=r>=o?r-o:0}while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=h(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=ae)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(d(e),0===e.lookahead&&t===T)return be;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,s(e,!1),0===e.strm.avail_out))return be;if(e.strstart-e.block_start>=e.w_size-se&&(s(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===j?(s(e,!0),0===e.strm.avail_out?_e:ye):(e.strstart>e.block_start&&(s(e,!1),e.strm.avail_out),be)}function p(e,t){for(var n,r;;){if(e.lookahead=ae&&(e.ins_h=(e.ins_h<=ae)if(r=F._tr_tally(e,e.strstart-e.match_start,e.match_length-ae),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ae){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=ae&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=ae-1)),e.prev_length>=ae&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ae,r=F._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ae),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<=ae&&e.strstart>0&&(i=e.strstart-1,(r=o[i])===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+oe;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ae?(n=F._tr_tally(e,1,e.match_length-ae),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=F._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(s(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===j?(s(e,!0),0===e.strm.avail_out?_e:ye):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?be:ge}function g(e,t){for(var n;;){if(0===e.lookahead&&(d(e),0===e.lookahead)){if(t===T)return be;break}if(e.match_length=0,n=F._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(s(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===j?(s(e,!0),0===e.strm.avail_out?_e:ye):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?be:ge}function _(e){e.window_size=2*e.w_size,a(e.head),e.max_lazy_match=z[e.level].max_lazy,e.good_match=z[e.level].good_length,e.nice_match=z[e.level].nice_length,e.max_chain_length=z[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ae-1,e.match_available=0,e.ins_h=0}function y(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=J,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new A.Buf16(2*re),this.dyn_dtree=new A.Buf16(2*(2*te+1)),this.bl_tree=new A.Buf16(2*(2*ne+1)),a(this.dyn_ltree),a(this.dyn_dtree),a(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new A.Buf16(ie+1),this.heap=new A.Buf16(2*ee+1),a(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new A.Buf16(2*ee+1),a(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function w(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=G,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ce:pe,e.adler=2===t.wrap?0:1,t.last_flush=T,F._tr_init(t),L):r(e,U)}function v(e){var t=w(e);return t===L&&_(e.state),t}function E(e,t){return e&&e.state?2!==e.state.wrap?U:(e.state.gzhead=t,L):U}function x(e,t,n,i,a,o){if(!e)return U;var s=1;if(t===W&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>q||n!==J||i<8||i>15||t<0||t>9||o<0||o>Y)return r(e,U);8===i&&(i=9);var l=new y;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<>1,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,v(e)}function k(e,t){return x(e,t,J,Q,$,X)}function C(e,t){var n,s,h,u;if(!e||!e.state||t>D||t<0)return e?r(e,U):U;if(s=e.state,!e.output||!e.input&&0!==e.avail_in||s.status===me&&t!==j)return r(e,0===e.avail_out?M:U);if(s.strm=e,n=s.last_flush,s.last_flush=t,s.status===ce)if(2===s.wrap)e.adler=0,l(s,31),l(s,139),l(s,8),s.gzhead?(l(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),l(s,255&s.gzhead.time),l(s,s.gzhead.time>>8&255),l(s,s.gzhead.time>>16&255),l(s,s.gzhead.time>>24&255),l(s,9===s.level?2:s.strategy>=H||s.level<2?4:0),l(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(l(s,255&s.gzhead.extra.length),l(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(e.adler=B(e.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=he):(l(s,0),l(s,0),l(s,0),l(s,0),l(s,0),l(s,9===s.level?2:s.strategy>=H||s.level<2?4:0),l(s,we),s.status=pe);else{var d=J+(s.w_bits-8<<4)<<8,f=-1;f=s.strategy>=H||s.level<2?0:s.level<6?1:6===s.level?2:3,d|=f<<6,0!==s.strstart&&(d|=le),d+=31-d%31,s.status=pe,c(s,d),0!==s.strstart&&(c(s,e.adler>>>16),c(s,65535&e.adler)),e.adler=1}if(s.status===he)if(s.gzhead.extra){for(h=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),o(e),h=s.pending,s.pending!==s.pending_buf_size));)l(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=ue)}else s.status=ue;if(s.status===ue)if(s.gzhead.name){h=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),o(e),h=s.pending,s.pending===s.pending_buf_size)){u=1;break}u=s.gzindexh&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),0===u&&(s.gzindex=0,s.status=de)}else s.status=de;if(s.status===de)if(s.gzhead.comment){h=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>h&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),o(e),h=s.pending,s.pending===s.pending_buf_size)){u=1;break}u=s.gzindexh&&(e.adler=B(e.adler,s.pending_buf,s.pending-h,h)),0===u&&(s.status=fe)}else s.status=fe;if(s.status===fe&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&o(e),s.pending+2<=s.pending_buf_size&&(l(s,255&e.adler),l(s,e.adler>>8&255),e.adler=0,s.status=pe)):s.status=pe),0!==s.pending){if(o(e),0===e.avail_out)return s.last_flush=-1,L}else if(0===e.avail_in&&i(t)<=i(n)&&t!==j)return r(e,M);if(s.status===me&&0!==e.avail_in)return r(e,M);if(0!==e.avail_in||0!==s.lookahead||t!==T&&s.status!==me){var p=s.strategy===H?g(s,t):s.strategy===K?b(s,t):z[s.level].func(s,t);if(p!==_e&&p!==ye||(s.status=me),p===be||p===_e)return 0===e.avail_out&&(s.last_flush=-1),L;if(p===ge&&(t===N?F._tr_align(s):t!==D&&(F._tr_stored_block(s,0,0,!1),t===R&&(a(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),o(e),0===e.avail_out))return s.last_flush=-1,L}return t!==j?L:s.wrap<=0?P:(2===s.wrap?(l(s,255&e.adler),l(s,e.adler>>8&255),l(s,e.adler>>16&255),l(s,e.adler>>24&255),l(s,255&e.total_in),l(s,e.total_in>>8&255),l(s,e.total_in>>16&255),l(s,e.total_in>>24&255)):(c(s,e.adler>>>16),c(s,65535&e.adler)),o(e),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?L:P)}function S(e){var t;return e&&e.state?(t=e.state.status)!==ce&&t!==he&&t!==ue&&t!==de&&t!==fe&&t!==pe&&t!==me?r(e,U):(e.state=null,t===pe?r(e,Z):L):U}var z,A=e("../utils/common"),F=e("./trees"),O=e("./adler32"),B=e("./crc32"),I=e("./messages"),T=0,N=1,R=3,j=4,D=5,L=0,P=1,U=-2,Z=-3,M=-5,W=-1,V=1,H=2,K=3,Y=4,X=0,G=2,J=8,q=9,Q=15,$=8,ee=286,te=30,ne=19,re=2*ee+1,ie=15,ae=3,oe=258,se=oe+ae+1,le=32,ce=42,he=69,ue=73,de=91,fe=103,pe=113,me=666,be=1,ge=2,_e=3,ye=4,we=3,ve=function(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i};z=[new ve(0,0,0,0,f),new ve(4,4,8,4,p),new ve(4,5,16,8,p),new ve(4,6,32,32,p),new ve(4,4,16,16,m),new ve(8,16,32,32,m),new ve(8,16,128,128,m),new ve(8,32,128,256,m),new ve(32,128,258,1024,m),new ve(32,258,258,4096,m)],n.deflateInit=k,n.deflateInit2=x,n.deflateReset=v,n.deflateResetKeep=w,n.deflateSetHeader=E,n.deflate=C,n.deflateEnd=S,n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./messages":37,"./trees":38}],33:[function(e,t,n){"use strict";function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=r},{}],34:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i,a,o,s,l,c,h,u,d,f,p,m,b,g,_,y,w,v,E,x,k,C,S;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),a=e.next_out,S=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,h=n.whave,u=n.wnext,d=n.window,f=n.hold,p=n.bits,m=n.lencode,b=n.distcode,g=(1<>>24,f>>>=w,p-=w,0===(w=y>>>16&255))S[a++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(f&(1<>>=w,p-=w),p<15&&(f+=C[r++]<>>24,f>>>=w,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=b[(65535&y)+(f&(1<l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=w,p-=w,w=a-o,E>w){if((w=E-w)>h&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,k=d,0===u){if(x+=c-w,w2;)S[a++]=k[x++],S[a++]=k[x++],S[a++]=k[x++],v-=3;v&&(S[a++]=k[x++],v>1&&(S[a++]=k[x++]))}else{x=a-E;do{S[a++]=S[x++],S[a++]=S[x++],S[a++]=S[x++],v-=3}while(v>2);v&&(S[a++]=S[x++],v>1&&(S[a++]=S[x++]))}break}}break}}while(r>3,r-=v,p-=v<<3,f&=(1<>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=j,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new g.Buf32(pe),t.distcode=t.distdyn=new g.Buf32(me),t.sane=1,t.back=-1,A):B}function o(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,a(e)):B}function s(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?B:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,o(e))):B}function l(e,t){var n,r;return e?(r=new i,e.state=r,r.window=null,n=s(e,t),n!==A&&(e.state=null),n):B}function c(e){return l(e,be)}function h(e){if(ge){var t;for(m=new g.Buf32(512),b=new g.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(v(x,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;v(k,e.lens,0,32,b,0,e.work,{bits:5}),ge=!1}e.lencode=m,e.lenbits=9,e.distcode=b,e.distbits=5}function u(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(g.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),g.arraySet(a.window,t,n-r,i,a.wnext),r-=i,r?(g.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=y(n.check,ze,2,0),d=0,f=0,n.mode=D;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&d)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=ue;break}if((15&d)!==R){e.msg="unknown compression method",n.mode=ue;break}if(d>>>=4,f-=4,Ee=8+(15&d),0===n.wbits)n.wbits=Ee;else if(Ee>n.wbits){e.msg="invalid window size",n.mode=ue;break}n.dmax=1<>8&1),512&n.flags&&(ze[0]=255&d,ze[1]=d>>>8&255,n.check=y(n.check,ze,2,0)),d=0,f=0,n.mode=L;case L:for(;f<32;){if(0===l)break e;l--,d+=i[o++]<>>8&255,ze[2]=d>>>16&255,ze[3]=d>>>24&255,n.check=y(n.check,ze,4,0)),d=0,f=0,n.mode=P;case P:for(;f<16;){if(0===l)break e;l--,d+=i[o++]<>8),512&n.flags&&(ze[0]=255&d,ze[1]=d>>>8&255,n.check=y(n.check,ze,2,0)),d=0,f=0,n.mode=U;case U:if(1024&n.flags){for(;f<16;){if(0===l)break e;l--,d+=i[o++]<>>8&255,n.check=y(n.check,ze,2,0)),d=0,f=0}else n.head&&(n.head.extra=null);n.mode=Z;case Z:if(1024&n.flags&&(b=n.length,b>l&&(b=l),b&&(n.head&&(Ee=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),g.arraySet(n.head.extra,i,o,b,Ee)),512&n.flags&&(n.check=y(n.check,i,b,o)),l-=b,o+=b,n.length-=b),n.length))break e;n.length=0,n.mode=M;case M:if(2048&n.flags){if(0===l)break e;b=0;do{Ee=i[o+b++],n.head&&Ee&&n.length<65536&&(n.head.name+=String.fromCharCode(Ee))}while(Ee&&b>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Y;break;case H:for(;f<32;){if(0===l)break e;l--,d+=i[o++]<>>=7&f,f-=7&f,n.mode=le;break}for(;f<3;){if(0===l)break e;l--,d+=i[o++]<>>=1,f-=1,3&d){case 0:n.mode=G;break;case 1:if(h(n),n.mode=te,t===z){d>>>=2,f-=2;break e}break;case 2:n.mode=Q;break;case 3:e.msg="invalid block type",n.mode=ue}d>>>=2,f-=2;break;case G:for(d>>>=7&f,f-=7&f;f<32;){if(0===l)break e;l--,d+=i[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=ue;break}if(n.length=65535&d,d=0,f=0,n.mode=J,t===z)break e;case J:n.mode=q;case q:if(b=n.length){if(b>l&&(b=l),b>c&&(b=c),0===b)break e;g.arraySet(a,i,o,b,s),l-=b,o+=b,c-=b,s+=b,n.length-=b;break}n.mode=Y;break;case Q:for(;f<14;){if(0===l)break e;l--,d+=i[o++]<>>=5,f-=5,n.ndist=1+(31&d),d>>>=5,f-=5,n.ncode=4+(15&d),d>>>=4,f-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ue;break}n.have=0,n.mode=$;case $:for(;n.have>>=3,f-=3}for(;n.have<19;)n.lens[Ae[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,ke={bits:n.lenbits},xe=v(E,n.lens,0,19,n.lencode,0,n.work,ke),n.lenbits=ke.bits,xe){e.msg="invalid code lengths set",n.mode=ue;break}n.have=0,n.mode=ee;case ee:for(;n.have>>24,ge=Se>>>16&255,_e=65535&Se,!(be<=f);){if(0===l)break e;l--,d+=i[o++]<>>=be,f-=be,n.lens[n.have++]=_e;else{if(16===_e){for(Ce=be+2;f>>=be,f-=be,0===n.have){e.msg="invalid bit length repeat",n.mode=ue;break}Ee=n.lens[n.have-1],b=3+(3&d),d>>>=2,f-=2}else if(17===_e){for(Ce=be+3;f>>=be,f-=be,Ee=0,b=3+(7&d),d>>>=3,f-=3}else{for(Ce=be+7;f>>=be,f-=be,Ee=0,b=11+(127&d),d>>>=7,f-=7}if(n.have+b>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ue;break}for(;b--;)n.lens[n.have++]=Ee}}if(n.mode===ue)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=ue;break}if(n.lenbits=9,ke={bits:n.lenbits},xe=v(x,n.lens,0,n.nlen,n.lencode,0,n.work,ke),n.lenbits=ke.bits,xe){e.msg="invalid literal/lengths set",n.mode=ue;break}if(n.distbits=6,n.distcode=n.distdyn,ke={bits:n.distbits},xe=v(k,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,ke),n.distbits=ke.bits,xe){e.msg="invalid distances set",n.mode=ue;break}if(n.mode=te,t===z)break e;case te:n.mode=ne;case ne:if(l>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=l,n.hold=d,n.bits=f,w(e,m),s=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,i=e.input,l=e.avail_in,d=n.hold,f=n.bits,n.mode===Y&&(n.back=-1);break}for(n.back=0;Se=n.lencode[d&(1<>>24,ge=Se>>>16&255,_e=65535&Se,!(be<=f);){if(0===l)break e;l--,d+=i[o++]<>ye)],be=Se>>>24,ge=Se>>>16&255,_e=65535&Se,!(ye+be<=f);){if(0===l)break e;l--,d+=i[o++]<>>=ye,f-=ye,n.back+=ye}if(d>>>=be,f-=be,n.back+=be,n.length=_e,0===ge){n.mode=se;break}if(32&ge){n.back=-1,n.mode=Y;break}if(64&ge){e.msg="invalid literal/length code",n.mode=ue;break}n.extra=15&ge,n.mode=re;case re:if(n.extra){for(Ce=n.extra;f>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ie;case ie:for(;Se=n.distcode[d&(1<>>24,ge=Se>>>16&255,_e=65535&Se,!(be<=f);){if(0===l)break e;l--,d+=i[o++]<>ye)],be=Se>>>24,ge=Se>>>16&255,_e=65535&Se,!(ye+be<=f);){if(0===l)break e;l--,d+=i[o++]<>>=ye,f-=ye,n.back+=ye}if(d>>>=be,f-=be,n.back+=be,64&ge){e.msg="invalid distance code",n.mode=ue;break}n.offset=_e,n.extra=15&ge,n.mode=ae;case ae:if(n.extra){for(Ce=n.extra;f>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ue;break}n.mode=oe;case oe:if(0===c)break e;if(b=m-c,n.offset>b){if((b=n.offset-b)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ue;break}b>n.wnext?(b-=n.wnext,pe=n.wsize-b):pe=n.wnext-b,b>n.length&&(b=n.length),me=n.window}else me=a,pe=s-n.offset,b=n.length;b>c&&(b=c),c-=b,n.length-=b;do{a[s++]=me[pe++]}while(--b);0===n.length&&(n.mode=ne);break;case se:if(0===c)break e;a[s++]=n.length,c--,n.mode=ne;break;case le:if(n.wrap){for(;f<32;){if(0===l)break e;l--,d|=i[o++]<=1&&0===R[S];S--);if(z>S&&(z=S),0===S)return c[h++]=20971520,c[h++]=20971520,d.bits=1,0;for(C=1;C0&&(0===e||1!==S))return-1;for(j[1]=0,x=1;x<15;x++)j[x+1]=j[x]+R[x];for(k=0;k852||2===e&&B>592)return 1;for(var P=0;;){P++,y=x-F,u[k]<_?(w=0,v=u[k]):u[k]>_?(w=D[L+u[k]],v=T[N+u[k]]):(w=96,v=0),f=1<>F)+p]=y<<24|w<<16|v|0}while(0!==p);for(f=1<>=1;if(0!==f?(I&=f-1,I+=f):I=0,k++,0==--R[x]){if(x===S)break;x=t[n+u[k]]}if(x>z&&(I&b)!==m){for(0===F&&(F=z),g+=C,A=x-F,O=1<852||2===e&&B>592)return 1;m=I&b,c[m]=z<<24|A<<16|g-h|0}}return 0!==I&&(c[g+I]=x-F<<24|64<<16|0),d.bits=z,0}},{"../utils/common":27}],37:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],38:[function(e,t,n){"use strict";function r(e){for(var t=e.length;--t>=0;)e[t]=0}function i(e){return e<256?re[e]:re[256+(e>>>7)]}function a(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function o(e,t,n){e.bi_valid>H-n?(e.bi_buf|=t<>H-e.bi_valid,e.bi_valid+=n-H):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function c(e){16===e.bi_valid?(a(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function h(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,h=t.stat_desc.static_tree,u=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=V;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;np&&(a=p,m++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=f&&(o=d[r-f]),s=l[2*r],e.opt_len+=s*(a+o),u&&(e.static_len+=s*(h[2*r+1]+o)));if(0!==m){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}function u(e,t,n){var r,i,a=new Array(V+1),o=0;for(r=1;r<=V;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=l(a[s]++,s))}}function d(){var e,t,n,r,i,a=new Array(V+1);for(n=0,r=0;r>=7;r8?a(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function m(e,t,n,r){p(e),r&&(a(e,n),a(e,~n)),O.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function b(e,t,n,r){var i=2*t,a=2*n;return e[i]>1;n>=1;n--)g(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],g(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,g(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],h(e,t),u(a,c,e.bl_count)}function w(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s=3&&0===e.bl_tree[2*ee[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function x(e,t,n,r){var i;for(o(e,t-257,5),o(e,n-1,5),o(e,r-4,4),i=0;i>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return I;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return T;for(t=32;t0?(e.strm.data_type===N&&(e.strm.data_type=k(e)),y(e,e.l_desc),y(e,e.d_desc),s=E(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?S(e,t,n,r):e.strategy===B||a===i?(o(e,(j<<1)+(r?1:0),3),_(e,te,ne)):(o(e,(D<<1)+(r?1:0),3),x(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),_(e,e.dyn_ltree,e.dyn_dtree)),f(e),r&&p(e)}function F(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ie[n]+P+1)]++,e.dyn_dtree[2*i(t)]++),e.last_lit===e.lit_bufsize-1}var O=e("../utils/common"),B=4,I=0,T=1,N=2,R=0,j=1,D=2,L=29,P=256,U=P+1+L,Z=30,M=19,W=2*U+1,V=15,H=16,K=7,Y=256,X=16,G=17,J=18,q=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],te=new Array(2*(U+2));r(te);var ne=new Array(2*Z);r(ne);var re=new Array(512);r(re);var ie=new Array(256);r(ie);var ae=new Array(L);r(ae);var oe=new Array(Z);r(oe);var se,le,ce,he=function(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length},ue=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t},de=!1;n._tr_init=C,n._tr_stored_block=S,n._tr_flush_block=A,n._tr_tally=F,n._tr_align=z},{"../utils/common":27}],39:[function(e,t,n){"use strict";function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=r},{}]},{},[9])(9)})}).call(t,n("EuP9").Buffer)},cilB:function(e,t){},co4O:function(e,t,n){"use strict";n.d(t,"f",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return c}),n.d(t,"e",function(){return h}),n.d(t,"b",function(){return u}),n.d(t,"g",function(){return d}),n.d(t,"a",function(){return f}),n.d(t,"c",function(){return m});var r=n("Ynx1"),i=(n.n(r),"%02hhx"),a=i+i+" ",o=[].concat(Array.from({length:16}).map(function(e,t){return a.repeat(t>>1)+(t%2?i:" ")+" "+" ".repeat(7-(t>>1))+"|"+"%c".repeat(t)+" ".repeat(16-t)+"|\n"}),[a.repeat(8)+"|"+"%c".repeat(16)+"|\n"]),s=function(e){var t=e[0],n=e[1];return n&&n.length?o[n.length]?Object(r.vsprintf)("%04x: "+o[n.length],[t].concat(n,n.map(function(e){return String.fromCharCode(e).replace(/[^\x20-\x7E]/g,".")}))):"wtf":""},l=function(e){return e.replace(/[\u0000-\u001f]/,function(e){return Object(r.sprintf)("\\u%04X",e.charCodeAt(0))})},c=function(e){return e.replace(/\\u(\d{4})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})},h=function(e){return Object(r.sprintf)("%02u-%02u-%02u %02u:%02u",e.getUTCMonth()+1,e.getUTCDate(),e.getUTCFullYear()%100,e.getUTCHours(),e.getUTCMinutes())},u=function(e){for(var t=[],n=new Uint8Array(e),r=0;r=14336&&t<18496&&(t>=18432?t=p(t-18432):(t-=14336,r.push(String.fromCharCode(p(63&t))),t=p(t>>6&63))),r.push(String.fromCharCode(t));return r.join("")}},eDYK:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("Apm5"),u=(n.n(h),n("iHqW")),d=(n.n(u),n("Ynx1")),f=(n.n(d),n("V5xO")),p=n("co4O"),m=s.a.createElement("b",null,"Archive Name:"),b=s.a.createElement("div",{className:"minor"}," "),g=s.a.createElement("div",{className:"minor"}," "),_=s.a.createElement(h.Icon,{name:"floppy-o",fixedWidth:!0}),y=s.a.createElement(h.Icon,{name:"i-cursor",fixedWidth:!0}),w=s.a.createElement(h.Icon,{name:"plus",fixedWidth:!0}),v=s.a.createElement(h.Icon,{name:"close",fixedWidth:!0}),E=s.a.createElement("div",{className:"minor"},"Entries can be renamed or deleted from the file view."),x=s.a.createElement("div",{className:"minor"},"Entries can be added by dragging and dropping files from your computer."),k=s.a.createElement("br",null),C=s.a.createElement("summary",null,s.a.createElement("b",null,"Metadata")," (click to show)"),S=s.a.createElement("b",null,"Root Name:"),z=s.a.createElement("br",null),A=s.a.createElement("b",null,"CLSID:"),F=s.a.createElement("br",null),O=s.a.createElement("br",null),B=s.a.createElement("br",null),I=s.a.createElement("b",null,"File Manifest"),T=function(e){function t(n){return r(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){return f.a.isEmpty()?s.a.createElement(c.c,{to:"/"}):s.a.createElement("div",{className:"conpainer"},s.a.createElement("div",null,m," ",f.a.fname),b,g,s.a.createElement("div",{className:"flexrow"},s.a.createElement("div",{className:"col-xs-3"},s.a.createElement("a",{onClick:this.props.exportFile},_," Download")),s.a.createElement("div",{className:"col-xs-3"},s.a.createElement("a",{onClick:this.props.renameFile},y," Rename")),s.a.createElement("div",{className:"col-xs-3"},s.a.createElement("a",{onClick:this.props.addFile},w," Add File")),s.a.createElement("div",{className:"col-xs-3"},s.a.createElement("a",{onClick:this.props.erase},v," Close"))),E,x,k,f.a.isCFB()&&s.a.createElement("details",null,C,S," ",f.a.getRootName(),z,A," ",f.a.getCLSID(),F,O),B,I,s.a.createElement("pre",null," Length Date Time Name\n"," -------- ---- ---- ----\n",f.a.getFileList().map(function(e){var t=e[0],n=e[1],r=e[2];return s.a.createElement("span",{key:r.toString()},Object(d.sprintf)("%9lu %s ",f.a.getSizeByEntry(n),Object(p.e)(f.a.getFileTime(r))),t.replace(/.*\//g,"").charCodeAt(0)>=14336&&t.replace(/.*\//g,"").charCodeAt(0)<=18496?s.a.createElement(c.b,{to:"/view/"+r},Object(p.d)(t)+" ("+Object(p.c)(t.replace(/.*\//g,""))+")"):s.a.createElement(c.b,{to:"/view/"+r},Object(p.d)(t)),"\n")})))},t}(o.Component);t.a=Object(l.a)(T)},eybw:function(e,t){},iHqW:function(e,t){},lVK7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("cilB"),i=(n.n(r),n("GiK3")),a=n.n(i),o=n("O27J"),s=(n.n(o),n("pnOm"));Object(o.render)(a.a.createElement(s.a,null),document.querySelector("#app"))},mihT:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("Apm5"),u=(n.n(h),n("rudr")),d=(n.n(u),n("V5xO")),f=n("co4O"),p=n("MPy6"),m=s.a.createElement("div",{className:"tree"}," "),b=s.a.createElement("br",null),g=s.a.createElement(h.Icon,{name:"list",fixedWidth:!0}),_=s.a.createElement("b",null,"Show Manifest"),y=s.a.createElement("b",null,"Archive Operations"),w=s.a.createElement("br",null),v=s.a.createElement(h.Icon,{name:"floppy-o",fixedWidth:!0}),E=s.a.createElement("b",null,"Download Archive"),x=s.a.createElement(h.Icon,{name:"i-cursor",fixedWidth:!0}),k=s.a.createElement("b",null,"Rename Archive"),C=s.a.createElement(h.Icon,{name:"plus",fixedWidth:!0}),S=s.a.createElement("b",null,"Add file to Archive"),z=s.a.createElement("li",null,s.a.createElement("b",null,"(or drag and drop a file here)")),A=s.a.createElement(h.Icon,{name:"close",fixedWidth:!0}),F=s.a.createElement("b",null,"Close Archive"),O=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.exportFile=a.exportFile.bind(a),a.renameFile=a.renameFile.bind(a),a.erase=a.erase.bind(a),a}return a(t,e),t.prototype.exportFile=function(){this.props.exportFile()},t.prototype.renameFile=function(){this.props.renameFile()},t.prototype.erase=function(){this.props.erase()},t.prototype.render=function(){var e=this;return d.a.isEmpty()?m:s.a.createElement("div",{className:"tree"},s.a.createElement("b",null,"Files in "+d.a.fname),b,s.a.createElement("ul",null,s.a.createElement("li",null,s.a.createElement(c.b,{to:"/"},g,"  ",_)),d.a.getFileList().map(function(t){var n=t[0],r=t[2];return s.a.createElement("li",{key:r.toString()},s.a.createElement(c.b,{to:"/view/"+r},s.a.createElement(h.Icon,{name:r==e.props.idx?"file":"file-text-o",fixedWidth:!0}),"  ",n.replace(/[^/]*\//,"").charCodeAt(0)<14336||n.replace(/[^/]*\//,"").charCodeAt(0)>18496?Object(f.d)((d.a.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")):s.a.createElement(p.a,{title:"MSI: "+Object(f.c)(n.replace(/[^/]*\//,"")),position:"bottom"},Object(f.d)((d.a.isCFB()?n.replace(/[^/]*\//," "):n)+(r==e.props.idx?" >>":"")))))})),y,w,s.a.createElement("ul",null,s.a.createElement("li",null,s.a.createElement("a",{onClick:this.exportFile},v,"  ",E)),s.a.createElement("li",null,s.a.createElement("a",{onClick:this.renameFile},x,"  ",k)),s.a.createElement("li",null,s.a.createElement("a",{onClick:this.props.addFile},C,"  ",S)),z,s.a.createElement("li",null,s.a.createElement("a",{onClick:this.erase},A,"  ",F))))},t}(o.Component);t.a=Object(l.a)(O)},mjy5:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=n("nCbI"),c=n("F8kA"),h=n("Apm5"),u=(n.n(h),n("AdvP")),d=n.n(u),f=n("LaZR"),p=(n.n(f),n("0Efu")),m=(n.n(p),n("iHqW")),b=(n.n(m),n("Ynx1")),g=(n.n(b),n("Onw6")),_=(n.n(g),n("V5xO")),y=n("W7d1"),w=n("co4O"),v=n("VyOR"),E=n("GtGB"),x=s.a.createElement("b",null,"File Name:"),k=s.a.createElement("div",{className:"minor"}," "),C=s.a.createElement(h.Icon,{name:"download",fixedWidth:!0}),S=s.a.createElement(h.Icon,{name:"chain-broken",fixedWidth:!0}),z=s.a.createElement(h.Icon,{name:"i-cursor",fixedWidth:!0}),A=s.a.createElement("br",null),F=s.a.createElement("div",{className:"minor"},"You can also drag and drop a file."),O=s.a.createElement("br",null),B=s.a.createElement("summary",null,s.a.createElement("b",null,"Entry Metadata")," (click to show)"),I=s.a.createElement("b",null,"Full Path:"),T=s.a.createElement("br",null),N=s.a.createElement("b",null,"Size:"),R=s.a.createElement("br",null),j=s.a.createElement("b",null,"CRC32:"),D=s.a.createElement("br",null),L=s.a.createElement("br",null),P=s.a.createElement(p,{name:"line-scale-pulse-out",fadeIn:"none"}),U=s.a.createElement("pre",null,"(file is empty)"),Z=function(e){function t(n){r(this,t);var a=i(this,e.call(this,n));return a.state={loading:!0,FN:"",_size:0,_crc32:"",show_text:!1,indexData:[]},["export","delete","rename","handle","stload","common"].forEach(function(e){a[e]=a[e].bind(a)}),a}return a(t,e),t.prototype.componentWillMount=function(){this.common(this.props,!0)},t.prototype.componentWillReceiveProps=function(e){return this.common(e,!1),!0},t.prototype.export=function(){_.a.exportBStrById(this.props.idx)},t.prototype.delete=function(){this.props.deleteEntry(this.props.idx)},t.prototype.rename=function(){this.props.renameEntry(this.props.idx)},t.prototype.handle=function(e){this.props.handleFile(this.props.idx,e)},t.prototype.stload=function(){},t.prototype.common=function(e){var t=this;this.state.loading||this.setState({loading:!0}),setTimeout(function(){var n=_.a.getFileNameById(e.idx),r=_.a.getFileEntryById(e.idx);if(!n||!r||_.a.isCFB()&&2!=r.type)return t.setState({loading:!1});var i=Object(w.d)(r.name),a=_.a.getContentByEntry(r),o=_.a.getSizeByEntry(r),s=Object(b.sprintf)("%0.8X",Object(g.buf)(a)),l="text"==e.mode,c=l?_.a.getTextByEntry(r):"",h=c&&("]/)),u=e.mode||"text";if("full"==u&&(u="text"),!e.mode||"full"==e.mode){var d=_.a.getContentSliceByEntry(r,0,16);255==d[0]&&216==d[1]&&255==d[2]&&(u="imag")}var f="imag"==t.props.mode,p=f?"data:image/jpeg;base64,"+btoa(_.a.getTextByEntry(r)):"",m=t.props&&t.props.mode?_.a.getSizeByEntry(r):Math.min(_.a.getSizeByEntry(r),v.c),y=Array.from({length:m+15>>4}).map(function(e,t){return 16*t}),E=c||p?[]:y.map(function(e){return Object(w.f)([e,_.a.getContentSliceByEntry(r,e,e+16)])});t.setState({loading:!1,FN:i,_size:o,_crc32:s,show_text:l,T:c,doxml:h,show_link:u,show_imag:f,I:p,indices:y,indexData:E}),t.forceUpdate()},0)},t.prototype.render=function(){var e=_.a.getFileNameById(this.props.idx),t=_.a.getFileEntryById(this.props.idx);if(!e||!t||_.a.isCFB()&&2!=t.type)return s.a.createElement(c.c,{to:"/"});var n=Object(w.d)(e),r=this.state,i=r.FN,a=r._size,o=r._crc32,l=r.show_text,h=r.T,u=r.doxml,p=r.show_link,m=r.show_imag,b=r.I,g=r.indices,Z=r.indexData,M=a>v.c&&!this.props.mode,W={text:"Text",imag:"Image"}[p];return s.a.createElement("div",{className:"conpainer"},s.a.createElement("div",null,x," ",i," ",i.charCodeAt(0)>=14336&&i.charCodeAt(0)<=18496&&"MSI Name: "+Object(w.c)(i)),s.a.createElement("div",{className:"minor"},i!=t.name?'File name has non-display characters, which are rendered as "\\u" followed by character code':" "),k,s.a.createElement("div",{className:"flexrow"},s.a.createElement("div",{className:"col-xs-4"},s.a.createElement("a",{onClick:this.export},C," Export Entry")),s.a.createElement("div",{className:"col-xs-4"},s.a.createElement("a",{onClick:this.delete},S," Delete Entry")),s.a.createElement("div",{className:"col-xs-4"},s.a.createElement("a",{onClick:this.rename},z," Rename Entry"))),A,s.a.createElement(y.a,{handleFile:this.handle,title:"Replace file contents"}),F,O,s.a.createElement("details",null,B,I," ",n,T,N," ",a," bytes",R,j," ",o,D),L,s.a.createElement("b",null,M?"Showing First "+v.c+" Bytes":"Showing File Contents",M&&s.a.createElement(c.b,{to:"/view/"+this.props.idx+"/full"}," (Full Contents) "),p&&p!=this.props.mode&&s.a.createElement(c.b,{to:"/view/"+this.props.idx+"/"+p,onClick:this.stload}," (View as ",W,") ")),this.state.loading?P:l?s.a.createElement(d.a,{style:f.arduinoLight,customStyle:{width:"calc(100vw - "+(this.props.viz?300:50)+"px)"}},u?Object(E.a)(h):h):m?s.a.createElement("div",null,s.a.createElement("img",{src:b})):g.length?s.a.createElement("pre",null,Z):U)},t}(o.PureComponent);t.a=Object(l.a)(Z)},pnOm:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n("GiK3"),s=n.n(o),l=n("F8kA"),c=n("3lb1"),h=n("K9jv"),u=s.a.createElement(l.d,{path:"/view/:idx/:mode",component:c.a}),d=s.a.createElement(l.d,{path:"/view/:idx",component:c.a}),f=s.a.createElement(l.d,{exact:!0,path:"/",component:c.a}),p=s.a.createElement(l.d,{exact:!0,path:"/help",component:h.a}),m=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return s.a.createElement(l.a,{basename:"/cfb-editor"},s.a.createElement(l.e,null,u,d,f,p,s.a.createElement(l.d,{render:function(){return s.a.createElement(l.c,{to:"/"})}})))},t}(o.Component);t.a=m},"r/a0":function(e,t){},rudr:function(e,t){},xwm3:function(e,t){},ytRd:function(e,t){e.exports='## CFB Editor\n\n[(click here to go back to the main screen)](/)\n\nThe CFB Editor can edit CFB and ZIP archives in your web browser! No data is\nsent to any remote server. All operations are performed locally, so your data\nis safe. It is powered by web browser magic.\n\n### Loading data\n\nThe editor can read an existing file or generate a new file:\n\n**Reading an Existing File**\n\nFrom the main screen, click "Choose File" and select a file. Alternatively,\nyou can click and drag a file from your device into the box.\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Creating a new file**\n\nClick on the relevant links from the main screen.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Closing a file to start from scratch**\n\nIf a file is open, click on the Close archive\nlinks to close the file and go back to the initial view.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n### Saving data\n\nThe editor can download updated archives or individual files to your device:\n\n**Download an updated archive**\n\nClick on the Download Archive links\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Download a file within the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Export Entry\nlink to download the viewed file.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n### Modifying files in the archive\n\nThe editor can add, delete, and rename files:\n\n**Rename the archive**\n\nClick on the Rename archive link in the\nsidebar or the archive view.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Rename a file within the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Rename link in\nthe file view to rename.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Delete a file from the archive**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the Rename link\nin the file view to rename.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Updating data for a file**\n\nWhen a file is loaded, click on the name of the file in the sidebar to show the\nfile view. Click on the "Choose file" button to upload a new file that will\nreplace the existing data.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n**Add a file to the archive**\n\nClick on the Add file link in the sidebar or\nthe archive view. By default, the file will have a generated name and dummy\ncontent. Follow the instructions to rename the file and update the content.\n\n
\n\tShow Animation\n\n
\n\n
\n
\n\n[(C) 2017-present SheetJS LLC](http://sheetjs.com)\n'}},[0]); +//# sourceMappingURL=app.8297993e.js.map \ No newline at end of file diff --git a/app.a6c2c184.css b/app.a6c2c184.css new file mode 100644 index 0000000..c6e64f9 --- /dev/null +++ b/app.a6c2c184.css @@ -0,0 +1,2 @@ +#app,body,html{height:100%}html{overflow:hidden}body{overflow:auto;background-color:#fff;color:#000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0;padding:0}a{cursor:pointer;text-decoration:none}.Outer{height:100%;width:100%;display:block}.Bottom{height:calc(100% - 55px)}.RightPane{height:calc(100vh - 55px);overflow-y:auto}.ToolBar{height:55px;line-height:55px;padding:0 20px;margin-top:0;margin-bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.Logo{vertical-align:middle}.TitleIcons{font-size:24px;font-weight:700}.TitleIcons>div{padding:0 10px}.TitleFile,.TitleName{font-size:18px}.TitleName{font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.AlignLeft{float:left}.AlignRight{float:right}.AlignCenter{margin:0 auto}a{color:#00e}.Spinner{height:30px}.tree{padding:0 20px;overflow-x:hidden;overflow-y:auto;white-space:pre;height:calc(100vh - 55px)}.tree ul{padding:0}.tree li{list-style-type:none;margin:0;position:relative;font-size:12px}.tree a{padding:10px 5px 0 0;display:block}.conpainer{overflow-x:hidden;overflow-y:auto;height:100%;padding:0 20px}.flexrow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.minor{font-size:10px;color:#868e96}.Title{font-size:24px;font-weight:700}.Subtitle{font-style:italic}.helpview{padding-left:20px;padding-right:20px} +/*# sourceMappingURL=app.a6c2c184.css.map*/ \ No newline at end of file diff --git a/fontawesome-webfont.674f50d2.eot b/fontawesome-webfont.674f50d2.eot new file mode 100644 index 0000000..e9f60ca Binary files /dev/null and b/fontawesome-webfont.674f50d2.eot differ diff --git a/fontawesome-webfont.912ec66d.svg b/fontawesome-webfont.912ec66d.svg new file mode 100644 index 0000000..855c845 --- /dev/null +++ b/fontawesome-webfont.912ec66d.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/fontawesome-webfont.af7ae505.woff2 b/fontawesome-webfont.af7ae505.woff2 new file mode 100644 index 0000000..4d13fc6 Binary files /dev/null and b/fontawesome-webfont.af7ae505.woff2 differ diff --git a/fontawesome-webfont.b06871f2.ttf b/fontawesome-webfont.b06871f2.ttf new file mode 100644 index 0000000..35acda2 Binary files /dev/null and b/fontawesome-webfont.b06871f2.ttf differ diff --git a/fontawesome-webfont.fee66e71.woff b/fontawesome-webfont.fee66e71.woff new file mode 100644 index 0000000..400014a Binary files /dev/null and b/fontawesome-webfont.fee66e71.woff differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..3165bdb --- /dev/null +++ b/index.html @@ -0,0 +1,34 @@ + + + + + + + + + +CFB Editor + + + + + + + +
+ + + + diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..22428dc Binary files /dev/null and b/logo.png differ diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..5fe8eb5 --- /dev/null +++ b/logo.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/manifest.81894c10.js b/manifest.81894c10.js new file mode 100644 index 0000000..7d77e03 --- /dev/null +++ b/manifest.81894c10.js @@ -0,0 +1,2 @@ +!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var a,i,f,p=0,l=[];p=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},"+7iQ":function(e,t){e.exports=function(e){return{aliases:["k","kdb"],keywords:{keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},lexemes:/(`?)[A-Za-z0-9_]+\b/,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},"+7p0":function(e,t,n){"use strict";function r(){}function o(e,t){var n,r,o,i,a=t||{},l=a.subset||M,c=a.prefix,d=l.length,p=-1;if(null!==c&&void 0!==c||(c=y),"string"!=typeof e)throw g("Expected `string` for value, got `%s`",e);for(r=u({}),n=u({});++pr.relevance&&(r=o),o.relevance>n.relevance&&(r=n,n=o));return r.language&&(n.secondBest=r),n}function i(e,t,n){var r=n||{},o=r.prefix;return null!==o&&void 0!==o||(o=y),u(s(e,t,!0,o))}function a(e,t){var n=t(h),r=n.aliases,o=r&&r.length,i=-1;for(k[e]=n,M.push(e);++i");return z+=t,t.length||1}function l(e,t){var n;e.className&&(n=y(e.className,[])),e.returnBegin?z="":e.excludeBegin?(b(t,R),z=""):z=t,n&&(R.push(n),U.push(R),R=n.children),D=Object.create(e,{parent:{value:D}})}function u(){var e=D.subLanguage?p():m();return z="",e}function p(){var e,t="string"==typeof D.subLanguage;return t&&!k[D.subLanguage]?b(z,[]):(e=t?s(D.subLanguage,z,!0,r,F[D.subLanguage]):o(z,{subset:D.subLanguage.length?D.subLanguage:void 0,prefix:r}),D.relevance>0&&(q+=e.relevance),t&&(F[D.subLanguage]=e.top),[y(e.language,e.value,!0)])}function m(){var e,t,n,r,o=[];if(!D.keywords)return b(z,o);for(e=0,D.lexemesRe.lastIndex=0,t=D.lexemesRe.exec(z);t;)b(z.substring(e,t.index),o),r=S(D,t),r?(q+=r[1],n=y(r[0],[]),o.push(n),b(t[0],n.children)):b(t[0],o),e=D.lexemesRe.lastIndex,t=D.lexemesRe.exec(z);return b(z.substr(e),o),o}function h(e,t){for(var n,r=e.length,o=-1;++ot}return!1}function k(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}function N(e){return e[1].toUpperCase()}function A(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function D(e,t,n,r){var o=Ti.hasOwnProperty(t)?Ti[t]:null;(null!==o?0===o.type:!r&&(2=t.length))throw Error(r(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:A(n)}}function K(e,t){var n=A(t.value),r=A(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Q(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Z(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function X(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Z(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function Y(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function J(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function ee(e){if(Di[e])return Di[e];if(!Ai[e])return e;var t,n=Ai[e];for(t in n)if(n.hasOwnProperty(t)&&t in ji)return Di[e]=n[t];return e}function te(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!=(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ne(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function re(e){if(te(e)!==e)throw Error(r(188))}function oe(e){var t=e.alternate;if(!t){if(null===(t=te(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){n=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return re(i),e;if(a===o)return re(i),t;a=a.sibling}throw Error(r(188))}if(n.return!==o.return)n=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,o=a;break}if(l===o){s=!0,o=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,o=i;break}if(l===o){s=!0,o=a,n=i;break}l=l.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}function ie(e){if(!(e=oe(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ae(e){var t=qe(e);Zi.forEach(function(n){Ge(n,e,t)}),Xi.forEach(function(n){Ge(n,e,t)})}function se(e,t,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r}}function le(e,t){switch(e){case"focus":case"blur":Wi=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":Vi=null;break;case"pointerover":case"pointerout":$i.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ki.delete(t.pointerId)}}function ce(e,t,n,r,o){return null===e||e.nativeEvent!==o?(e=se(t,n,r,o),null!==t&&null!==(t=st(t))&&Ii(t),e):(e.eventSystemFlags|=r,e)}function ue(e,t,n,r){switch(t){case"focus":return Wi=ce(Wi,e,t,n,r),!0;case"dragenter":return Hi=ce(Hi,e,t,n,r),!0;case"mouseover":return Vi=ce(Vi,e,t,n,r),!0;case"pointerover":var o=r.pointerId;return $i.set(o,ce($i.get(o)||null,e,t,n,r)),!0;case"gotpointercapture":return o=r.pointerId,Ki.set(o,ce(Ki.get(o)||null,e,t,n,r)),!0}return!1}function de(e){var t=at(e.target);if(null!==t){var n=te(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ne(n)))return e.blockedOn=t,void Io.unstable_runWithPriority(e.priority,function(){Pi(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function pe(e){if(null!==e.blockedOn)return!1;var t=Ue(e.topLevelType,e.eventSystemFlags,e.nativeEvent);if(null!==t){var n=st(t);return null!==n&&Ii(n),e.blockedOn=t,!1}return!0}function fe(e,t,n){pe(e)&&n.delete(t)}function me(){for(qi=!1;0this.eventPool.length&&this.eventPool.push(e)}function ke(e){e.eventPool=[],e.getPooled=Oe,e.release=Me}function Ne(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ae(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=oa[e])&&!!t[e]}function De(){return Ae}function je(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=at(r)}while(n);for(n=0;n=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xe(n)}}function Je(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Je(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function et(){for(var e=window,t=Ze();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;e=t.contentWindow,t=Ze(e.document)}return t}function tt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function nt(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function rt(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function ot(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function it(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===La||n===Ua||n===Fa){if(0===t)return e;t--}else n===Ba&&t++}e=e.previousSibling}return null}function at(e){var t=e[Va];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ka]||n[Va]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=it(e);null!==e;){if(n=e[Va])return n;e=it(e)}return t}e=n,n=e.parentNode}return null}function st(e){return e=e[Va]||e[Ka],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function lt(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function ct(e){return e[$a]||null}function ut(){if(Xa)return Xa;var e,t,n=Za,r=n.length,o="value"in Qa?Qa.value:Qa.textContent,i=o.length;for(e=0;eRs||(e.current=js[Rs],js[Rs]=null,Rs--)}function Nt(e,t){Rs++,js[Rs]=e.current,e.current=t}function At(e,t){var n=e.type.contextTypes;if(!n)return Is;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Dt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function jt(e){kt(Ls,e),kt(Ps,e)}function Rt(e){kt(Ls,e),kt(Ps,e)}function It(e,t,n){if(Ps.current!==Is)throw Error(r(168));Nt(Ps,t,e),Nt(Ls,n,e)}function Pt(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;o=o.getChildContext();for(var i in o)if(!(i in e))throw Error(r(108,b(t)||"Unknown",i));return Ro({},n,{},o)}function Lt(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Is,Bs=Ps.current,Nt(Ps,t,e),Nt(Ls,Ls.current,e),!0}function Bt(e,t,n){var o=e.stateNode;if(!o)throw Error(r(169));n?(t=Pt(e,t,Bs),o.__reactInternalMemoizedMergedChildContext=t,kt(Ls,e),kt(Ps,e),Nt(Ps,t,e)):kt(Ls,e),Nt(Ls,n,e)}function Ft(){switch(Hs()){case Vs:return 99;case $s:return 98;case Ks:return 97;case Qs:return 96;case Zs:return 95;default:throw Error(r(332))}}function Ut(e){switch(e){case 99:return Vs;case 98:return $s;case 97:return Ks;case 96:return Qs;case 95:return Zs;default:throw Error(r(332))}}function zt(e,t){return e=Ut(e),Fs(e,t)}function qt(e,t,n){return e=Ut(e),Us(e,t,n)}function Gt(e){return null===Js?(Js=[e],el=Us(Vs,Ht)):Js.push(e),Xs}function Wt(){if(null!==el){var e=el;el=null,zs(e)}Ht()}function Ht(){if(!tl&&null!==Js){tl=!0;var e=0;try{var t=Js;zt(99,function(){for(;e=t&&(Gl=!0),e.firstContext=null)}function Jt(e,t){if(ll!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ll=e,t=1073741823),t={context:e,observedBits:t,next:null},null===sl){if(null===al)throw Error(r(308));sl=t,al.dependencies={expirationTime:0,firstContext:t,responders:null}}else sl=sl.next=t;return e._currentValue}function en(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function tn(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function nn(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function rn(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function on(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=en(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=en(e.memoizedState),o=n.updateQueue=en(n.memoizedState)):r=e.updateQueue=tn(o):null===o&&(o=n.updateQueue=tn(r));null===o||r===o?rn(r,t):null===r.lastUpdate||null===o.lastUpdate?(rn(r,t),rn(o,t)):(rn(r,t),o.lastUpdate=t)}function an(e,t){var n=e.updateQueue;n=null===n?e.updateQueue=en(e.memoizedState):sn(e,n),null===n.lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function sn(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=tn(t)),t}function ln(e,t,n,r,o,i){switch(n.tag){case 1:return e=n.payload,"function"==typeof e?e.call(i,r,o):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(e=n.payload,null===(o="function"==typeof e?e.call(i,r,o):e)||void 0===o)break;return Ro({},r,o);case 2:cl=!0}return r}function cn(e,t,n,r,o){cl=!1,t=sn(e,t);for(var i=t.baseState,a=null,s=0,l=t.firstUpdate,c=i;null!==l;){var u=l.expirationTime;ug?(h=d,d=null):h=d.sibling;var b=f(r,d,s[g],l);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(r,d),i=a(b,i,g),null===u?c=b:u.sibling=b,u=b,d=h}if(g===s.length)return n(r,d),c;if(null===d){for(;gb?(v=h,h=null):v=h.sibling;var y=f(i,h,_.value,c);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(i,h),s=a(y,s,b),null===d?u=y:d.sibling=y,d=y,h=v}if(_.done)return n(i,h),u;if(null===h){for(;!_.done;b++,_=l.next())null!==(_=p(i,_.value,c))&&(s=a(_,s,b),null===d?u=_:d.sibling=_,d=_);return u}for(h=o(i,h);!_.done;b++,_=l.next())null!==(_=m(h,i,b,_.value,c))&&(e&&null!==_.alternate&&h.delete(null===_.key?b:_.key),s=a(_,s,b),null===d?u=_:d.sibling=_,d=_);return e&&h.forEach(function(e){return t(i,e)}),u}return function(e,o,a,l){var c="object"==typeof a&&null!==a&&a.type===ri&&null===a.key;c&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case ti:e:{for(u=a.key,c=o;null!==c;){if(c.key===u){if(7===c.tag?a.type===ri:c.elementType===a.type){n(e,c.sibling),o=i(c,a.type===ri?a.props.children:a.props,l),o.ref=bn(e,c,a),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===ri?(o=go(a.props.children,e.mode,l,a.key),o.return=e,e=o):(l=mo(a.type,a.key,a.props,null,e.mode,l),l.ref=bn(e,o,a),l.return=e,e=l)}return s(e);case ni:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),o=i(o,a.children||[],l),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=bo(a,e.mode,l),o.return=e,e=o}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),o=i(o,a,l),o.return=e,e=o):(n(e,o),o=ho(a,e.mode,l),o.return=e,e=o),s(e);if(fl(a))return h(e,o,a,l);if(g(a))return b(e,o,a,l);if(u&&vn(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(r(152,e.displayName||e.name||"Component"))}return n(e,o)}}function yn(e){if(e===hl)throw Error(r(174));return e}function En(e,t){Nt(_l,t,e),Nt(vl,e,e),Nt(bl,hl,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:X(null,"");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=X(t,n)}kt(bl,e),Nt(bl,t,e)}function Sn(e){kt(bl,e),kt(vl,e),kt(_l,e)}function wn(e){yn(_l.current);var t=yn(bl.current),n=X(t,e.type);t!==n&&(Nt(vl,e,e),Nt(bl,n,e))}function Cn(e){vl.current===e&&(kt(bl,e),kt(vl,e))}function xn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Fa||n.data===Ua))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Tn(e,t){return{responder:e,props:t}}function On(){throw Error(r(321))}function Mn(e,t){if(null===t)return!1;for(var n=0;nNl&&(Nl=d,Vr(Nl))):(Hr(d,c.suspenseConfig),a=c.eagerReducer===e?c.eagerState:e(a,c.action)),s=c,c=c.next}while(null!==c&&c!==o);u||(l=s,i=a),_s(a,t.memoizedState)||(Gl=!0),t.memoizedState=a,t.baseUpdate=l,t.baseState=i,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function In(e){var t=An();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={last:null,dispatch:null,lastRenderedReducer:jn,lastRenderedState:e},e=e.dispatch=Vn.bind(null,Cl,e),[t.memoizedState,e]}function Pn(e){return Rn(jn,e)}function Ln(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Al?(Al={lastEffect:null},Al.lastEffect=e.next=e):(t=Al.lastEffect,null===t?Al.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Al.lastEffect=e)),e}function Bn(e,t,n,r){var o=An();Dl|=e,o.memoizedState=Ln(t,n,void 0,void 0===r?null:r)}function Fn(e,t,n,r){var o=Dn();r=void 0===r?null:r;var i=void 0;if(null!==xl){var a=xl.memoizedState;if(i=a.destroy,null!==r&&Mn(r,a.deps))return void Ln(0,n,i,r)}Dl|=e,o.memoizedState=Ln(t,n,i,r)}function Un(e,t){return Bn(516,192,e,t)}function zn(e,t){return Fn(516,192,e,t)}function qn(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Gn(){}function Wn(e,t){return An().memoizedState=[e,void 0===t?null:t],e}function Hn(e,t){var n=Dn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Mn(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vn(e,t,n){if(!(25>Il))throw Error(r(301));var o=e.alternate;if(e===Cl||null!==o&&o===Cl)if(jl=!0,e={expirationTime:wl,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Rl&&(Rl=new Map),void 0===(n=Rl.get(t)))Rl.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=Ar(),a=ul.suspense;i=Dr(i,e,a),a={expirationTime:i,suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var s=t.last;if(null===s)a.next=a;else{var l=s.next;null!==l&&(a.next=l),s.next=a}if(t.last=a,0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var c=t.lastRenderedState,u=o(c,n);if(a.eagerReducer=o,a.eagerState=u,_s(u,c))return}catch(e){}jr(e,i)}}function $n(e,t){var n=co(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Kn(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Qn(e){if(zl){var t=Ul;if(t){var n=t;if(!Kn(e,t)){if(!(t=ot(n.nextSibling))||!Kn(e,t))return e.effectTag=-1025&e.effectTag|2,zl=!1,void(Fl=e);$n(Fl,n)}Fl=e,Ul=ot(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,zl=!1,Fl=e}}function Zn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fl=e}function Xn(e){if(e!==Fl)return!1;if(!zl)return Zn(e),zl=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!rt(t,e.memoizedProps))for(t=Ul;t;)$n(e,t),t=ot(t.nextSibling);if(Zn(e),13===e.tag){if(e=e.memoizedState,!(e=null!==e?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Ba){if(0===t){Ul=ot(e.nextSibling);break e}t--}else n!==La&&n!==Ua&&n!==Fa||t++}e=e.nextSibling}Ul=null}}else Ul=Fl?ot(e.stateNode.nextSibling):null;return!0}function Yn(){Ul=Fl=null,zl=!1}function Jn(e,t,n,r){t.child=null===e?gl(t,null,n,r):ml(t,e.child,n,r)}function er(e,t,n,r,o){n=n.render;var i=t.ref;return Yt(t,o),r=kn(e,t,n,r,i,o),null===e||Gl?(t.effectTag|=1,Jn(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),pr(e,t,o))}function tr(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||uo(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?(e=mo(n.type,null,r,null,t.mode,i),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,nr(e,t,a,r,o,i))}return a=e.child,ot)&&Oc.set(e,t))}}function Rr(e,t){e.expirationTimee?t:e):t)}function Pr(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Gt(Br.bind(null,e));else{var t=Ir(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ar();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Xs&&zs(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Gt(Br.bind(null,e)):qt(r,Lr.bind(null,e),{timeout:10*(1073741821-t)-rl()}),e.callbackNode=t}}}function Lr(e,t){if(Nc=0,t)return t=Ar(),So(e,t),Pr(e),null;var n=Ir(e);if(0!==n){if(t=e.callbackNode,(sc&(Jl|ec))!==Xl)throw Error(r(327));if(to(),e===lc&&n===uc||qr(e,n),null!==cc){var o=sc;sc|=Jl;for(var i=Wr();;)try{Kr();break}catch(t){Gr(e,t)}if(Kt(),sc=o,Ql.current=i,dc===nc)throw t=pc,qr(e,n),yo(e,n),Pr(e),t;if(null===cc)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=dc,lc=null,o){case tc:case nc:throw Error(r(345));case rc:So(e,2=n){e.lastPingedTime=n,qr(e,n);break}}if(0!==(a=Ir(e))&&a!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=Ga(Yr.bind(null,e),i);break}Yr(e);break;case ic:if(yo(e,n),o=e.lastSuspendedTime,n===o&&(e.nextKnownPendingLevel=Xr(i)),bc&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,qr(e,n);break}if(0!==(i=Ir(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==mc?o=10*(1073741821-mc)-rl():1073741823===fc?o=0:(o=10*(1073741821-fc)-5e3,i=rl(),n=10*(1073741821-n)-i,o=i-o,0>o&&(o=0),o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Kl(o/1960))-o,n=o?o=0:(i=0|s.busyDelayMs,a=rl()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)),o=a<=i?0:i+o-a),10 component higher in the tree to provide a loading indicator or placeholder to display."+v(o))}dc!==ac&&(dc=rc),i=hr(i,o),l=r;do{switch(l.tag){case 3:a=i,l.effectTag|=4096,l.expirationTime=t;an(l,kr(l,a,t));break e;case 1:a=i;var _=l.type,y=l.stateNode;if(0==(64&l.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===wc||!wc.has(y)))){l.effectTag|=4096,l.expirationTime=t;an(l,Nr(l,a,t));break e}}l=l.return}while(null!==l)}cc=Zr(cc)}catch(e){t=e;continue}break}}function Wr(){var e=Ql.current;return Ql.current=Pl,null===e?Pl:e}function Hr(e,t){ehc&&(hc=e)}function $r(){for(;null!==cc;)cc=Qr(cc)}function Kr(){for(;null!==cc&&!qs();)cc=Qr(cc)}function Qr(e){var t=Hl(e.alternate,e,uc);return e.memoizedProps=e.pendingProps,null===t&&(t=Zr(e)),Zl.current=null,t}function Zr(e){cc=e;do{var t=cc.alternate;if(e=cc.return,0==(2048&cc.effectTag)){e:{var n=t;t=cc;var o=uc,i=t.pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Dt(t.type)&&jt(t);break;case 3:Sn(t),Rt(t),i=t.stateNode,i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===n||null===n.child)&&Xn(t)&&fr(t),Ns(t);break;case 5:Cn(t),o=yn(_l.current);var a=t.type;if(null!==n&&null!=t.stateNode)As(n,t,a,i,o),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var s=yn(bl.current);if(Xn(t)){i=t;var l=i.stateNode;n=i.type;var c=i.memoizedProps,u=o;switch(l[Va]=i,l[$a]=c,a=void 0,o=l,n){case"iframe":case"object":case"embed":Re("load",o);break;case"video":case"audio":for(l=0;l<\/script>",l=c.removeChild(c.firstChild)):"string"==typeof c.is?l=l.createElement(u,{is:c.is}):(l=l.createElement(u),"select"===u&&(u=l,c.multiple?u.multiple=!0:c.size&&(u.size=c.size))):l=l.createElementNS(s,u),c=l,c[Va]=n,c[$a]=i,ks(c,t,!1,!1),t.stateNode=c,u=a,n=i;var d=o,p=$e(u,n);switch(u){case"iframe":case"object":case"embed":Re("load",c),o=n;break;case"video":case"audio":for(o=0;oi.tailExpiration&&1a&&(a=n),c>a&&(a=c),o=o.sibling;i.childExpirationTime=a}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=cc.firstEffect),null!==cc.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=cc.firstEffect),e.lastEffect=cc.lastEffect),1e?t:e}function Yr(e){var t=Ft();return zt(99,Jr.bind(null,e,t)),null}function Jr(e,t){do{to()}while(null!==xc);if((sc&(Jl|ec))!==Xl)throw Error(r(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Xr(n);if(e.firstPendingTime=i,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===lc&&(cc=lc=null,uc=0),1l&&(u=l,l=s,s=u),u=Ye(y,s),d=Ye(y,l),u&&d&&(1!==S.rangeCount||S.anchorNode!==u.node||S.anchorOffset!==u.offset||S.focusNode!==d.node||S.focusOffset!==d.offset)&&(E=E.createRange(),E.setStart(u.node,u.offset),S.removeAllRanges(),s>l?(S.addRange(E),S.extend(d.node,d.offset)):(E.setEnd(d.node,d.offset),S.addRange(E)))))),E=[];for(S=y;S=S.parentNode;)1===S.nodeType&&E.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y=t&&e<=t}function yo(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Eo(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function So(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function wo(e,t,n,o){var i=t.current,a=Ar(),s=ul.suspense;a=Dr(a,i,s);e:if(n){n=n._reactInternalFiber;t:{if(te(n)!==n||1!==n.tag)throw Error(r(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Dt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(r(171))}if(1===n.tag){var c=n.type;if(Dt(c)){n=Pt(n,c,l);break e}}n=l}else n=Is;return null===t.context?t.context=n:t.pendingContext=n,t=nn(a,s),t.payload={element:e},o=void 0===o?null:o,null!==o&&(t.callback=o),on(i,t),jr(i,a),a}function Co(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function xo(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime