chbim-plugins 0.0.171 → 0.0.172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chbim-plugins.js CHANGED
@@ -27717,7 +27717,7 @@ class M1 {
27717
27717
  "mars3d-locationbar"
27718
27718
  ) && (window.map.container.getElementsByClassName(
27719
27719
  "mars3d-locationbar"
27720
- )[0].style.display = "none !important"), this.timestamp = (/* @__PURE__ */ new Date()).getTime();
27720
+ )[0].style.display = "none"), this.timestamp = (/* @__PURE__ */ new Date()).getTime();
27721
27721
  const f = document.getElementById("app"), u = window.innerHeight, m = document.getElementById("mars3dContainer");
27722
27722
  m && (m.style.width = u.toString() + "px", m.style.height = u.toString() + "px"), f !== null && f.classList.add(this.panoramicViewClass);
27723
27723
  let { lat: g, lng: y, alt: S } = window.map.getCameraView();
@@ -2683,7 +2683,7 @@ function print() { __p += __j.call(arguments, '') }
2683
2683
  JSZip uses the library pako released under the MIT license :
2684
2684
  https://github.com/nodeca/pako/blob/main/LICENSE
2685
2685
  */(function(x,a){(function(o){x.exports=o()})(function(){return function o(c,f,u){function m(S,b){if(!f[S]){if(!c[S]){var O=typeof hu=="function"&&hu;if(!b&&O)return O(S,!0);if(g)return g(S,!0);var k=new Error("Cannot find module '"+S+"'");throw k.code="MODULE_NOT_FOUND",k}var D=f[S]={exports:{}};c[S][0].call(D.exports,function(B){var E=c[S][1][B];return m(E||B)},D,D.exports,o,c,f,u)}return f[S].exports}for(var g=typeof hu=="function"&&hu,y=0;y<u.length;y++)m(u[y]);return m}({1:[function(o,c,f){var u=o("./utils"),m=o("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(y){for(var S,b,O,k,D,B,E,L=[],w=0,M=y.length,R=M,C=u.getTypeOf(y)!=="string";w<y.length;)R=M-w,O=C?(S=y[w++],b=w<M?y[w++]:0,w<M?y[w++]:0):(S=y.charCodeAt(w++),b=w<M?y.charCodeAt(w++):0,w<M?y.charCodeAt(w++):0),k=S>>2,D=(3&S)<<4|b>>4,B=1<R?(15&b)<<2|O>>6:64,E=2<R?63&O:64,L.push(g.charAt(k)+g.charAt(D)+g.charAt(B)+g.charAt(E));return L.join("")},f.decode=function(y){var S,b,O,k,D,B,E=0,L=0,w="data:";if(y.substr(0,w.length)===w)throw new Error("Invalid base64 input, it looks like a data url.");var M,R=3*(y=y.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(y.charAt(y.length-1)===g.charAt(64)&&R--,y.charAt(y.length-2)===g.charAt(64)&&R--,R%1!=0)throw new Error("Invalid base64 input, bad content length.");for(M=m.uint8array?new Uint8Array(0|R):new Array(0|R);E<y.length;)S=g.indexOf(y.charAt(E++))<<2|(k=g.indexOf(y.charAt(E++)))>>4,b=(15&k)<<4|(D=g.indexOf(y.charAt(E++)))>>2,O=(3&D)<<6|(B=g.indexOf(y.charAt(E++))),M[L++]=S,D!==64&&(M[L++]=b),B!==64&&(M[L++]=O);return M}},{"./support":30,"./utils":32}],2:[function(o,c,f){var u=o("./external"),m=o("./stream/DataWorker"),g=o("./stream/Crc32Probe"),y=o("./stream/DataLengthProbe");function S(b,O,k,D,B){this.compressedSize=b,this.uncompressedSize=O,this.crc32=k,this.compression=D,this.compressedContent=B}S.prototype={getContentWorker:function(){var b=new m(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new y("data_length")),O=this;return b.on("end",function(){if(this.streamInfo.data_length!==O.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new m(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},S.createWorkerFrom=function(b,O,k){return b.pipe(new g).pipe(new y("uncompressedSize")).pipe(O.compressWorker(k)).pipe(new y("compressedSize")).withStreamInfo("compression",O)},c.exports=S},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(o,c,f){var u=o("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},f.DEFLATE=o("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(o,c,f){var u=o("./utils"),m=function(){for(var g,y=[],S=0;S<256;S++){g=S;for(var b=0;b<8;b++)g=1&g?3988292384^g>>>1:g>>>1;y[S]=g}return y}();c.exports=function(g,y){return g!==void 0&&g.length?u.getTypeOf(g)!=="string"?function(S,b,O,k){var D=m,B=k+O;S^=-1;for(var E=k;E<B;E++)S=S>>>8^D[255&(S^b[E])];return-1^S}(0|y,g,g.length,0):function(S,b,O,k){var D=m,B=k+O;S^=-1;for(var E=k;E<B;E++)S=S>>>8^D[255&(S^b.charCodeAt(E))];return-1^S}(0|y,g,g.length,0):0}},{"./utils":32}],5:[function(o,c,f){f.base64=!1,f.binary=!1,f.dir=!1,f.createFolders=!0,f.date=null,f.compression=null,f.compressionOptions=null,f.comment=null,f.unixPermissions=null,f.dosPermissions=null},{}],6:[function(o,c,f){var u=null;u=typeof Promise<"u"?Promise:o("lie"),c.exports={Promise:u}},{lie:37}],7:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=o("pako"),g=o("./utils"),y=o("./stream/GenericWorker"),S=u?"uint8array":"array";function b(O,k){y.call(this,"FlateWorker/"+O),this._pako=null,this._pakoAction=O,this._pakoOptions=k,this.meta={}}f.magic="\b\0",g.inherits(b,y),b.prototype.processChunk=function(O){this.meta=O.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(S,O.data),!1)},b.prototype.flush=function(){y.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){y.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var O=this;this._pako.onData=function(k){O.push({data:k,meta:O.meta})}},f.compressWorker=function(O){return new b("Deflate",O)},f.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(o,c,f){function u(D,B){var E,L="";for(E=0;E<B;E++)L+=String.fromCharCode(255&D),D>>>=8;return L}function m(D,B,E,L,w,M){var R,C,U=D.file,F=D.compression,X=M!==S.utf8encode,K=g.transformTo("string",M(U.name)),Z=g.transformTo("string",S.utf8encode(U.name)),ct=U.comment,Rt=g.transformTo("string",M(ct)),tt=g.transformTo("string",S.utf8encode(ct)),_t=Z.length!==U.name.length,G=tt.length!==ct.length,Pt="",Et="",At="",ce=U.dir,re=U.date,Ft={crc32:0,compressedSize:0,uncompressedSize:0};B&&!E||(Ft.crc32=D.crc32,Ft.compressedSize=D.compressedSize,Ft.uncompressedSize=D.uncompressedSize);var It=0;B&&(It|=8),X||!_t&&!G||(It|=2048);var Nt=0,Pe=0;ce&&(Nt|=16),w==="UNIX"?(Pe=798,Nt|=function(Wt,$e){var Si=Wt;return Wt||(Si=$e?16893:33204),(65535&Si)<<16}(U.unixPermissions,ce)):(Pe=20,Nt|=function(Wt){return 63&(Wt||0)}(U.dosPermissions)),R=re.getUTCHours(),R<<=6,R|=re.getUTCMinutes(),R<<=5,R|=re.getUTCSeconds()/2,C=re.getUTCFullYear()-1980,C<<=4,C|=re.getUTCMonth()+1,C<<=5,C|=re.getUTCDate(),_t&&(Et=u(1,1)+u(b(K),4)+Z,Pt+="up"+u(Et.length,2)+Et),G&&(At=u(1,1)+u(b(Rt),4)+tt,Pt+="uc"+u(At.length,2)+At);var pe="";return pe+=`
2686
- \0`,pe+=u(It,2),pe+=F.magic,pe+=u(R,2),pe+=u(C,2),pe+=u(Ft.crc32,4),pe+=u(Ft.compressedSize,4),pe+=u(Ft.uncompressedSize,4),pe+=u(K.length,2),pe+=u(Pt.length,2),{fileRecord:O.LOCAL_FILE_HEADER+pe+K+Pt,dirRecord:O.CENTRAL_FILE_HEADER+u(Pe,2)+pe+u(Rt.length,2)+"\0\0\0\0"+u(Nt,4)+u(L,4)+K+Pt+Rt}}var g=o("../utils"),y=o("../stream/GenericWorker"),S=o("../utf8"),b=o("../crc32"),O=o("../signature");function k(D,B,E,L){y.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=E,this.encodeFileName=L,this.streamFiles=D,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(k,y),k.prototype.push=function(D){var B=D.meta.percent||0,E=this.entriesCount,L=this._sources.length;this.accumulate?this.contentBuffer.push(D):(this.bytesWritten+=D.data.length,y.prototype.push.call(this,{data:D.data,meta:{currentFile:this.currentFile,percent:E?(B+100*(E-L-1))/E:100}}))},k.prototype.openedSource=function(D){this.currentSourceOffset=this.bytesWritten,this.currentFile=D.file.name;var B=this.streamFiles&&!D.file.dir;if(B){var E=m(D,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(D){this.accumulate=!1;var B=this.streamFiles&&!D.file.dir,E=m(D,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),B)this.push({data:function(L){return O.DATA_DESCRIPTOR+u(L.crc32,4)+u(L.compressedSize,4)+u(L.uncompressedSize,4)}(D),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var D=this.bytesWritten,B=0;B<this.dirRecords.length;B++)this.push({data:this.dirRecords[B],meta:{percent:100}});var E=this.bytesWritten-D,L=function(w,M,R,C,U){var F=g.transformTo("string",U(C));return O.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(w,2)+u(w,2)+u(M,4)+u(R,4)+u(F.length,2)+F}(this.dirRecords.length,E,D,this.zipComment,this.encodeFileName);this.push({data:L,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(D){this._sources.push(D);var B=this;return D.on("data",function(E){B.processChunk(E)}),D.on("end",function(){B.closedSource(B.previous.streamInfo),B._sources.length?B.prepareNextSource():B.end()}),D.on("error",function(E){B.error(E)}),this},k.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(D){var B=this._sources;if(!y.prototype.error.call(this,D))return!1;for(var E=0;E<B.length;E++)try{B[E].error(D)}catch{}return!0},k.prototype.lock=function(){y.prototype.lock.call(this);for(var D=this._sources,B=0;B<D.length;B++)D[B].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,c,f){var u=o("../compressions"),m=o("./ZipFileWorker");f.generateWorker=function(g,y,S){var b=new m(y.streamFiles,S,y.platform,y.encodeFileName),O=0;try{g.forEach(function(k,D){O++;var B=function(M,R){var C=M||R,U=u[C];if(!U)throw new Error(C+" is not a valid compression method !");return U}(D.options.compression,y.compression),E=D.options.compressionOptions||y.compressionOptions||{},L=D.dir,w=D.date;D._compressWorker(B,E).withStreamInfo("file",{name:k,dir:L,date:w,comment:D.comment||"",unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions}).pipe(b)}),b.entriesCount=O}catch(k){b.error(k)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,c,f){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var g in this)typeof this[g]!="function"&&(m[g]=this[g]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,g){return new u().loadAsync(m,g)},u.external=o("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,c,f){var u=o("./utils"),m=o("./external"),g=o("./utf8"),y=o("./zipEntries"),S=o("./stream/Crc32Probe"),b=o("./nodejsUtils");function O(k){return new m.Promise(function(D,B){var E=k.decompressed.getContentWorker().pipe(new S);E.on("error",function(L){B(L)}).on("end",function(){E.streamInfo.crc32!==k.decompressed.crc32?B(new Error("Corrupted zip : CRC32 mismatch")):D()}).resume()})}c.exports=function(k,D){var B=this;return D=u.extend(D||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),b.isNode&&b.isStream(k)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",k,!0,D.optimizedBinaryString,D.base64).then(function(E){var L=new y(D);return L.load(E),L}).then(function(E){var L=[m.Promise.resolve(E)],w=E.files;if(D.checkCRC32)for(var M=0;M<w.length;M++)L.push(O(w[M]));return m.Promise.all(L)}).then(function(E){for(var L=E.shift(),w=L.files,M=0;M<w.length;M++){var R=w[M],C=R.fileNameStr,U=u.resolve(R.fileNameStr);B.file(U,R.decompressed,{binary:!0,optimizedBinaryString:!0,date:R.date,dir:R.dir,comment:R.fileCommentStr.length?R.fileCommentStr:null,unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions,createFolders:D.createFolders}),R.dir||(B.file(U).unsafeOriginalName=C)}return L.zipComment.length&&(B.comment=L.zipComment),B})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,c,f){var u=o("../utils"),m=o("../stream/GenericWorker");function g(y,S){m.call(this,"Nodejs stream input adapter for "+y),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(g,m),g.prototype._bindStream=function(y){var S=this;(this._stream=y).pause(),y.on("data",function(b){S.push({data:b,meta:{percent:0}})}).on("error",function(b){S.isPaused?this.generatedError=b:S.error(b)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},g.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,c,f){var u=o("readable-stream").Readable;function m(g,y,S){u.call(this,y),this._helper=g;var b=this;g.on("data",function(O,k){b.push(O)||b._helper.pause(),S&&S(k)}).on("error",function(O){b.emit("error",O)}).on("end",function(){b.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},c.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,c,f){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,c,f){function u(U,F,X){var K,Z=g.getTypeOf(F),ct=g.extend(X||{},b);ct.date=ct.date||new Date,ct.compression!==null&&(ct.compression=ct.compression.toUpperCase()),typeof ct.unixPermissions=="string"&&(ct.unixPermissions=parseInt(ct.unixPermissions,8)),ct.unixPermissions&&16384&ct.unixPermissions&&(ct.dir=!0),ct.dosPermissions&&16&ct.dosPermissions&&(ct.dir=!0),ct.dir&&(U=w(U)),ct.createFolders&&(K=L(U))&&M.call(this,K,!0);var Rt=Z==="string"&&ct.binary===!1&&ct.base64===!1;X&&X.binary!==void 0||(ct.binary=!Rt),(F instanceof O&&F.uncompressedSize===0||ct.dir||!F||F.length===0)&&(ct.base64=!1,ct.binary=!0,F="",ct.compression="STORE",Z="string");var tt=null;tt=F instanceof O||F instanceof y?F:B.isNode&&B.isStream(F)?new E(U,F):g.prepareContent(U,F,ct.binary,ct.optimizedBinaryString,ct.base64);var _t=new k(U,tt,ct);this.files[U]=_t}var m=o("./utf8"),g=o("./utils"),y=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),b=o("./defaults"),O=o("./compressedObject"),k=o("./zipObject"),D=o("./generate"),B=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),L=function(U){U.slice(-1)==="/"&&(U=U.substring(0,U.length-1));var F=U.lastIndexOf("/");return 0<F?U.substring(0,F):""},w=function(U){return U.slice(-1)!=="/"&&(U+="/"),U},M=function(U,F){return F=F!==void 0?F:b.createFolders,U=w(U),this.files[U]||u.call(this,U,null,{dir:!0,createFolders:F}),this.files[U]};function R(U){return Object.prototype.toString.call(U)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(U){var F,X,K;for(F in this.files)K=this.files[F],(X=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&U(X,K)},filter:function(U){var F=[];return this.forEach(function(X,K){U(X,K)&&F.push(K)}),F},file:function(U,F,X){if(arguments.length!==1)return U=this.root+U,u.call(this,U,F,X),this;if(R(U)){var K=U;return this.filter(function(ct,Rt){return!Rt.dir&&K.test(ct)})}var Z=this.files[this.root+U];return Z&&!Z.dir?Z:null},folder:function(U){if(!U)return this;if(R(U))return this.filter(function(Z,ct){return ct.dir&&U.test(Z)});var F=this.root+U,X=M.call(this,F),K=this.clone();return K.root=X.name,K},remove:function(U){U=this.root+U;var F=this.files[U];if(F||(U.slice(-1)!=="/"&&(U+="/"),F=this.files[U]),F&&!F.dir)delete this.files[U];else for(var X=this.filter(function(Z,ct){return ct.name.slice(0,U.length)===U}),K=0;K<X.length;K++)delete this.files[X[K].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(U){var F,X={};try{if((X=g.extend(U||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=X.type.toLowerCase(),X.compression=X.compression.toUpperCase(),X.type==="binarystring"&&(X.type="string"),!X.type)throw new Error("No output type specified.");g.checkSupport(X.type),X.platform!=="darwin"&&X.platform!=="freebsd"&&X.platform!=="linux"&&X.platform!=="sunos"||(X.platform="UNIX"),X.platform==="win32"&&(X.platform="DOS");var K=X.comment||this.comment||"";F=D.generateWorker(this,X,K)}catch(Z){(F=new y("error")).error(Z)}return new S(F,X.type||"string",X.mimeType)},generateAsync:function(U,F){return this.generateInternalStream(U).accumulate(F)},generateNodeStream:function(U,F){return(U=U||{}).type||(U.type="nodebuffer"),this.generateInternalStream(U).toNodejsStream(F)}};c.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,c,f){c.exports=o("stream")},{stream:void 0}],17:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g);for(var y=0;y<this.data.length;y++)g[y]=255&g[y]}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data[this.zero+g]},m.prototype.lastIndexOfSignature=function(g){for(var y=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===y&&this.data[k+1]===S&&this.data[k+2]===b&&this.data[k+3]===O)return k-this.zero;return-1},m.prototype.readAndCheckSignature=function(g){var y=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.readData(4);return y===k[0]&&S===k[1]&&b===k[2]&&O===k[3]},m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var y=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,y},c.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,c,f){var u=o("../utils");function m(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var y,S=0;for(this.checkOffset(g),y=this.index+g-1;y>=this.index;y--)S=(S<<8)+this.byteAt(y);return this.index+=g,S},readString:function(g){return u.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},c.exports=m},{"../utils":32}],19:[function(o,c,f){var u=o("./Uint8ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){this.checkOffset(g);var y=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,y},c.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},m.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},m.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},m.prototype.readData=function(g){this.checkOffset(g);var y=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,y},c.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,c,f){var u=o("./ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var y=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,y},c.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,c,f){var u=o("../utils"),m=o("../support"),g=o("./ArrayReader"),y=o("./StringReader"),S=o("./NodeBufferReader"),b=o("./Uint8ArrayReader");c.exports=function(O){var k=u.getTypeOf(O);return u.checkSupport(k),k!=="string"||m.uint8array?k==="nodebuffer"?new S(O):m.uint8array?new b(u.transformTo("uint8array",O)):new g(u.transformTo("array",O)):new y(O)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,c,f){f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,c,f){var u=o("./GenericWorker"),m=o("../utils");function g(y){u.call(this,"ConvertWorker to "+y),this.destType=y}m.inherits(g,u),g.prototype.processChunk=function(y){this.push({data:m.transformTo(this.destType,y.data),meta:y.meta})},c.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(o,c,f){var u=o("./GenericWorker"),m=o("../crc32");function g(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(g,u),g.prototype.processChunk=function(y){this.streamInfo.crc32=m(y.data,this.streamInfo.crc32||0),this.push(y)},c.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(y){m.call(this,"DataLengthProbe for "+y),this.propName=y,this.withStreamInfo(y,0)}u.inherits(g,m),g.prototype.processChunk=function(y){if(y){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+y.data.length}m.prototype.processChunk.call(this,y)},c.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(y){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,y.then(function(b){S.dataIsReady=!0,S.data=b,S.max=b&&b.length||0,S.type=u.getTypeOf(b),S.isPaused||S._tickAndRepeat()},function(b){S.error(b)})}u.inherits(g,m),g.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var y=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":y=this.data.substring(this.index,S);break;case"uint8array":y=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":y=this.data.slice(this.index,S)}return this.index=S,this.push({data:y,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(o,c,f){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,g){return this._listeners[m].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,g){if(this._listeners[m])for(var y=0;y<this._listeners[m].length;y++)this._listeners[m][y].call(this,g)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var g=this;return m.on("data",function(y){g.processChunk(y)}),m.on("end",function(){g.end()}),m.on("error",function(y){g.error(y)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,g){return this.extraStreamInfo[m]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},c.exports=u},{}],29:[function(o,c,f){var u=o("../utils"),m=o("./ConvertWorker"),g=o("./GenericWorker"),y=o("../base64"),S=o("../support"),b=o("../external"),O=null;if(S.nodestream)try{O=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(B,E){return new b.Promise(function(L,w){var M=[],R=B._internalType,C=B._outputType,U=B._mimeType;B.on("data",function(F,X){M.push(F),E&&E(X)}).on("error",function(F){M=[],w(F)}).on("end",function(){try{var F=function(X,K,Z){switch(X){case"blob":return u.newBlob(u.transformTo("arraybuffer",K),Z);case"base64":return y.encode(K);default:return u.transformTo(X,K)}}(C,function(X,K){var Z,ct=0,Rt=null,tt=0;for(Z=0;Z<K.length;Z++)tt+=K[Z].length;switch(X){case"string":return K.join("");case"array":return Array.prototype.concat.apply([],K);case"uint8array":for(Rt=new Uint8Array(tt),Z=0;Z<K.length;Z++)Rt.set(K[Z],ct),ct+=K[Z].length;return Rt;case"nodebuffer":return Buffer.concat(K);default:throw new Error("concat : unsupported type '"+X+"'")}}(R,M),U);L(F)}catch(X){w(X)}M=[]}).resume()})}function D(B,E,L){var w=E;switch(E){case"blob":case"arraybuffer":w="uint8array";break;case"base64":w="string"}try{this._internalType=w,this._outputType=E,this._mimeType=L,u.checkSupport(w),this._worker=B.pipe(new m(w)),B.lock()}catch(M){this._worker=new g("error"),this._worker.error(M)}}D.prototype={accumulate:function(B){return k(this,B)},on:function(B,E){var L=this;return B==="data"?this._worker.on(B,function(w){E.call(L,w.data,w.meta)}):this._worker.on(B,function(){u.delay(E,arguments,L)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(B){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new O(this,{objectMode:this._outputType!=="nodebuffer"},B)}},c.exports=D},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,c,f){if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f.nodebuffer=typeof Buffer<"u",f.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")f.blob=!1;else{var u=new ArrayBuffer(0);try{f.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),f.blob=m.getBlob("application/zip").size===0}catch{f.blob=!1}}}try{f.nodestream=!!o("readable-stream").Readable}catch{f.nodestream=!1}},{"readable-stream":16}],31:[function(o,c,f){for(var u=o("./utils"),m=o("./support"),g=o("./nodejsUtils"),y=o("./stream/GenericWorker"),S=new Array(256),b=0;b<256;b++)S[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;S[254]=S[254]=1;function O(){y.call(this,"utf-8 decode"),this.leftOver=null}function k(){y.call(this,"utf-8 encode")}f.utf8encode=function(D){return m.nodebuffer?g.newBufferFrom(D,"utf-8"):function(B){var E,L,w,M,R,C=B.length,U=0;for(M=0;M<C;M++)(64512&(L=B.charCodeAt(M)))==55296&&M+1<C&&(64512&(w=B.charCodeAt(M+1)))==56320&&(L=65536+(L-55296<<10)+(w-56320),M++),U+=L<128?1:L<2048?2:L<65536?3:4;for(E=m.uint8array?new Uint8Array(U):new Array(U),M=R=0;R<U;M++)(64512&(L=B.charCodeAt(M)))==55296&&M+1<C&&(64512&(w=B.charCodeAt(M+1)))==56320&&(L=65536+(L-55296<<10)+(w-56320),M++),L<128?E[R++]=L:(L<2048?E[R++]=192|L>>>6:(L<65536?E[R++]=224|L>>>12:(E[R++]=240|L>>>18,E[R++]=128|L>>>12&63),E[R++]=128|L>>>6&63),E[R++]=128|63&L);return E}(D)},f.utf8decode=function(D){return m.nodebuffer?u.transformTo("nodebuffer",D).toString("utf-8"):function(B){var E,L,w,M,R=B.length,C=new Array(2*R);for(E=L=0;E<R;)if((w=B[E++])<128)C[L++]=w;else if(4<(M=S[w]))C[L++]=65533,E+=M-1;else{for(w&=M===2?31:M===3?15:7;1<M&&E<R;)w=w<<6|63&B[E++],M--;1<M?C[L++]=65533:w<65536?C[L++]=w:(w-=65536,C[L++]=55296|w>>10&1023,C[L++]=56320|1023&w)}return C.length!==L&&(C.subarray?C=C.subarray(0,L):C.length=L),u.applyFromCharCode(C)}(D=u.transformTo(m.uint8array?"uint8array":"array",D))},u.inherits(O,y),O.prototype.processChunk=function(D){var B=u.transformTo(m.uint8array?"uint8array":"array",D.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=B;(B=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),B.set(E,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var L=function(M,R){var C;for((R=R||M.length)>M.length&&(R=M.length),C=R-1;0<=C&&(192&M[C])==128;)C--;return C<0||C===0?R:C+S[M[C]]>R?C:R}(B),w=B;L!==B.length&&(m.uint8array?(w=B.subarray(0,L),this.leftOver=B.subarray(L,B.length)):(w=B.slice(0,L),this.leftOver=B.slice(L,B.length))),this.push({data:f.utf8decode(w),meta:D.meta})},O.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=O,u.inherits(k,y),k.prototype.processChunk=function(D){this.push({data:f.utf8encode(D.data),meta:D.meta})},f.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,c,f){var u=o("./support"),m=o("./base64"),g=o("./nodejsUtils"),y=o("./external");function S(E){return E}function b(E,L){for(var w=0;w<E.length;++w)L[w]=255&E.charCodeAt(w);return L}o("setimmediate"),f.newBlob=function(E,L){f.checkSupport("blob");try{return new Blob([E],{type:L})}catch{try{var w=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return w.append(E),w.getBlob(L)}catch{throw new Error("Bug : can't construct the Blob.")}}};var O={stringifyByChunk:function(E,L,w){var M=[],R=0,C=E.length;if(C<=w)return String.fromCharCode.apply(null,E);for(;R<C;)L==="array"||L==="nodebuffer"?M.push(String.fromCharCode.apply(null,E.slice(R,Math.min(R+w,C)))):M.push(String.fromCharCode.apply(null,E.subarray(R,Math.min(R+w,C)))),R+=w;return M.join("")},stringifyByChar:function(E){for(var L="",w=0;w<E.length;w++)L+=String.fromCharCode(E[w]);return L},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}}()}};function k(E){var L=65536,w=f.getTypeOf(E),M=!0;if(w==="uint8array"?M=O.applyCanBeUsed.uint8array:w==="nodebuffer"&&(M=O.applyCanBeUsed.nodebuffer),M)for(;1<L;)try{return O.stringifyByChunk(E,w,L)}catch{L=Math.floor(L/2)}return O.stringifyByChar(E)}function D(E,L){for(var w=0;w<E.length;w++)L[w]=E[w];return L}f.applyFromCharCode=k;var B={};B.string={string:S,array:function(E){return b(E,new Array(E.length))},arraybuffer:function(E){return B.string.uint8array(E).buffer},uint8array:function(E){return b(E,new Uint8Array(E.length))},nodebuffer:function(E){return b(E,g.allocBuffer(E.length))}},B.array={string:k,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(E)}},B.arraybuffer={string:function(E){return k(new Uint8Array(E))},array:function(E){return D(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(new Uint8Array(E))}},B.uint8array={string:k,array:function(E){return D(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return g.newBufferFrom(E)}},B.nodebuffer={string:k,array:function(E){return D(E,new Array(E.length))},arraybuffer:function(E){return B.nodebuffer.uint8array(E).buffer},uint8array:function(E){return D(E,new Uint8Array(E.length))},nodebuffer:S},f.transformTo=function(E,L){if(L=L||"",!E)return L;f.checkSupport(E);var w=f.getTypeOf(L);return B[w][E](L)},f.resolve=function(E){for(var L=E.split("/"),w=[],M=0;M<L.length;M++){var R=L[M];R==="."||R===""&&M!==0&&M!==L.length-1||(R===".."?w.pop():w.push(R))}return w.join("/")},f.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&g.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(E){var L,w,M="";for(w=0;w<(E||"").length;w++)M+="\\x"+((L=E.charCodeAt(w))<16?"0":"")+L.toString(16).toUpperCase();return M},f.delay=function(E,L,w){setImmediate(function(){E.apply(w||null,L||[])})},f.inherits=function(E,L){function w(){}w.prototype=L.prototype,E.prototype=new w},f.extend=function(){var E,L,w={};for(E=0;E<arguments.length;E++)for(L in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],L)&&w[L]===void 0&&(w[L]=arguments[E][L]);return w},f.prepareContent=function(E,L,w,M,R){return y.Promise.resolve(L).then(function(C){return u.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new y.Promise(function(U,F){var X=new FileReader;X.onload=function(K){U(K.target.result)},X.onerror=function(K){F(K.target.error)},X.readAsArrayBuffer(C)}):C}).then(function(C){var U=f.getTypeOf(C);return U?(U==="arraybuffer"?C=f.transformTo("uint8array",C):U==="string"&&(R?C=m.decode(C):w&&M!==!0&&(C=function(F){return b(F,u.uint8array?new Uint8Array(F.length):new Array(F.length))}(C))),C):y.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./signature"),y=o("./zipEntry"),S=o("./support");function b(O){this.files=[],this.loadOptions=O}b.prototype={checkSignature:function(O){if(!this.reader.readAndCheckSignature(O)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(k)+", expected "+m.pretty(O)+")")}},isSignature:function(O,k){var D=this.reader.index;this.reader.setIndex(O);var B=this.reader.readString(4)===k;return this.reader.setIndex(D),B},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var O=this.reader.readData(this.zipCommentLength),k=S.uint8array?"uint8array":"array",D=m.transformTo(k,O);this.zipComment=this.loadOptions.decodeFileName(D)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var O,k,D,B=this.zip64EndOfCentralSize-44;0<B;)O=this.reader.readInt(2),k=this.reader.readInt(4),D=this.reader.readData(k),this.zip64ExtensibleData[O]={id:O,length:k,value:D}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var O,k;for(O=0;O<this.files.length;O++)k=this.files[O],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var O;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(O=new y({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(O);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var O=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(O<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(O);var k=O;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(O=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(O),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var D=this.centralDirOffset+this.centralDirSize;this.zip64&&(D+=20,D+=12+this.zip64EndOfCentralSize);var B=k-D;if(0<B)this.isSignature(k,g.CENTRAL_FILE_HEADER)||(this.reader.zero=B);else if(B<0)throw new Error("Corrupted zip: missing "+Math.abs(B)+" bytes.")},prepareReader:function(O){this.reader=u(O)},load:function(O){this.prepareReader(O),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./compressedObject"),y=o("./crc32"),S=o("./utf8"),b=o("./compressions"),O=o("./support");function k(D,B){this.options=D,this.loadOptions=B}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(D){var B,E;if(D.skip(22),this.fileNameLength=D.readInt(2),E=D.readInt(2),this.fileName=D.readData(this.fileNameLength),D.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((B=function(L){for(var w in b)if(Object.prototype.hasOwnProperty.call(b,w)&&b[w].magic===L)return b[w];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,B,D.readData(this.compressedSize))},readCentralPart:function(D){this.versionMadeBy=D.readInt(2),D.skip(2),this.bitFlag=D.readInt(2),this.compressionMethod=D.readString(2),this.date=D.readDate(),this.crc32=D.readInt(4),this.compressedSize=D.readInt(4),this.uncompressedSize=D.readInt(4);var B=D.readInt(2);if(this.extraFieldsLength=D.readInt(2),this.fileCommentLength=D.readInt(2),this.diskNumberStart=D.readInt(2),this.internalFileAttributes=D.readInt(2),this.externalFileAttributes=D.readInt(4),this.localHeaderOffset=D.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");D.skip(B),this.readExtraFields(D),this.parseZIP64ExtraField(D),this.fileComment=D.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var D=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),D==0&&(this.dosPermissions=63&this.externalFileAttributes),D==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var D=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=D.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=D.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=D.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=D.readInt(4))}},readExtraFields:function(D){var B,E,L,w=D.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});D.index+4<w;)B=D.readInt(2),E=D.readInt(2),L=D.readData(E),this.extraFields[B]={id:B,length:E,value:L};D.setIndex(w)},handleUTF8:function(){var D=O.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var B=this.findExtraFieldUnicodePath();if(B!==null)this.fileNameStr=B;else{var E=m.transformTo(D,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var L=this.findExtraFieldUnicodeComment();if(L!==null)this.fileCommentStr=L;else{var w=m.transformTo(D,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(w)}}},findExtraFieldUnicodePath:function(){var D=this.extraFields[28789];if(D){var B=u(D.value);return B.readInt(1)!==1||y(this.fileName)!==B.readInt(4)?null:S.utf8decode(B.readData(D.length-5))}return null},findExtraFieldUnicodeComment:function(){var D=this.extraFields[25461];if(D){var B=u(D.value);return B.readInt(1)!==1||y(this.fileComment)!==B.readInt(4)?null:S.utf8decode(B.readData(D.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,c,f){function u(B,E,L){this.name=B,this.dir=L.dir,this.date=L.date,this.comment=L.comment,this.unixPermissions=L.unixPermissions,this.dosPermissions=L.dosPermissions,this._data=E,this._dataBinary=L.binary,this.options={compression:L.compression,compressionOptions:L.compressionOptions}}var m=o("./stream/StreamHelper"),g=o("./stream/DataWorker"),y=o("./utf8"),S=o("./compressedObject"),b=o("./stream/GenericWorker");u.prototype={internalStream:function(B){var E=null,L="string";try{if(!B)throw new Error("No output type specified.");var w=(L=B.toLowerCase())==="string"||L==="text";L!=="binarystring"&&L!=="text"||(L="string"),E=this._decompressWorker();var M=!this._dataBinary;M&&!w&&(E=E.pipe(new y.Utf8EncodeWorker)),!M&&w&&(E=E.pipe(new y.Utf8DecodeWorker))}catch(R){(E=new b("error")).error(R)}return new m(E,L,"")},async:function(B,E){return this.internalStream(B).accumulate(E)},nodeStream:function(B,E){return this.internalStream(B||"nodebuffer").toNodejsStream(E)},_compressWorker:function(B,E){if(this._data instanceof S&&this._data.compression.magic===B.magic)return this._data.getCompressedWorker();var L=this._decompressWorker();return this._dataBinary||(L=L.pipe(new y.Utf8EncodeWorker)),S.createWorkerFrom(L,B,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof b?this._data:new g(this._data)}};for(var O=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},D=0;D<O.length;D++)u.prototype[O[D]]=k;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,c,f){(function(u){var m,g,y=u.MutationObserver||u.WebKitMutationObserver;if(y){var S=0,b=new y(B),O=u.document.createTextNode("");b.observe(O,{characterData:!0}),m=function(){O.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){B(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(B,0)};else{var k=new u.MessageChannel;k.port1.onmessage=B,m=function(){k.port2.postMessage(0)}}var D=[];function B(){var E,L;g=!0;for(var w=D.length;w;){for(L=D,D=[],E=-1;++E<w;)L[E]();w=D.length}g=!1}c.exports=function(E){D.push(E)!==1||g||m()}}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,c,f){var u=o("immediate");function m(){}var g={},y=["REJECTED"],S=["FULFILLED"],b=["PENDING"];function O(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,w!==m&&E(this,w)}function k(w,M,R){this.promise=w,typeof M=="function"&&(this.onFulfilled=M,this.callFulfilled=this.otherCallFulfilled),typeof R=="function"&&(this.onRejected=R,this.callRejected=this.otherCallRejected)}function D(w,M,R){u(function(){var C;try{C=M(R)}catch(U){return g.reject(w,U)}C===w?g.reject(w,new TypeError("Cannot resolve promise with itself")):g.resolve(w,C)})}function B(w){var M=w&&w.then;if(w&&(typeof w=="object"||typeof w=="function")&&typeof M=="function")return function(){M.apply(w,arguments)}}function E(w,M){var R=!1;function C(X){R||(R=!0,g.reject(w,X))}function U(X){R||(R=!0,g.resolve(w,X))}var F=L(function(){M(U,C)});F.status==="error"&&C(F.value)}function L(w,M){var R={};try{R.value=w(M),R.status="success"}catch(C){R.status="error",R.value=C}return R}(c.exports=O).prototype.finally=function(w){if(typeof w!="function")return this;var M=this.constructor;return this.then(function(R){return M.resolve(w()).then(function(){return R})},function(R){return M.resolve(w()).then(function(){throw R})})},O.prototype.catch=function(w){return this.then(null,w)},O.prototype.then=function(w,M){if(typeof w!="function"&&this.state===S||typeof M!="function"&&this.state===y)return this;var R=new this.constructor(m);return this.state!==b?D(R,this.state===S?w:M,this.outcome):this.queue.push(new k(R,w,M)),R},k.prototype.callFulfilled=function(w){g.resolve(this.promise,w)},k.prototype.otherCallFulfilled=function(w){D(this.promise,this.onFulfilled,w)},k.prototype.callRejected=function(w){g.reject(this.promise,w)},k.prototype.otherCallRejected=function(w){D(this.promise,this.onRejected,w)},g.resolve=function(w,M){var R=L(B,M);if(R.status==="error")return g.reject(w,R.value);var C=R.value;if(C)E(w,C);else{w.state=S,w.outcome=M;for(var U=-1,F=w.queue.length;++U<F;)w.queue[U].callFulfilled(M)}return w},g.reject=function(w,M){w.state=y,w.outcome=M;for(var R=-1,C=w.queue.length;++R<C;)w.queue[R].callRejected(M);return w},O.resolve=function(w){return w instanceof this?w:g.resolve(new this(m),w)},O.reject=function(w){var M=new this(m);return g.reject(M,w)},O.all=function(w){var M=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=w.length,C=!1;if(!R)return this.resolve([]);for(var U=new Array(R),F=0,X=-1,K=new this(m);++X<R;)Z(w[X],X);return K;function Z(ct,Rt){M.resolve(ct).then(function(tt){U[Rt]=tt,++F!==R||C||(C=!0,g.resolve(K,U))},function(tt){C||(C=!0,g.reject(K,tt))})}},O.race=function(w){var M=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=w.length,C=!1;if(!R)return this.resolve([]);for(var U=-1,F=new this(m);++U<R;)X=w[U],M.resolve(X).then(function(K){C||(C=!0,g.resolve(F,K))},function(K){C||(C=!0,g.reject(F,K))});var X;return F}},{immediate:36}],38:[function(o,c,f){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,c,f){var u=o("./zlib/deflate"),m=o("./utils/common"),g=o("./utils/strings"),y=o("./zlib/messages"),S=o("./zlib/zstream"),b=Object.prototype.toString,O=0,k=-1,D=0,B=8;function E(w){if(!(this instanceof E))return new E(w);this.options=m.assign({level:k,method:B,chunkSize:16384,windowBits:15,memLevel:8,strategy:D,to:""},w||{});var M=this.options;M.raw&&0<M.windowBits?M.windowBits=-M.windowBits:M.gzip&&0<M.windowBits&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var R=u.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(R!==O)throw new Error(y[R]);if(M.header&&u.deflateSetHeader(this.strm,M.header),M.dictionary){var C;if(C=typeof M.dictionary=="string"?g.string2buf(M.dictionary):b.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,(R=u.deflateSetDictionary(this.strm,C))!==O)throw new Error(y[R]);this._dict_set=!0}}function L(w,M){var R=new E(M);if(R.push(w,!0),R.err)throw R.msg||y[R.err];return R.result}E.prototype.push=function(w,M){var R,C,U=this.strm,F=this.options.chunkSize;if(this.ended)return!1;C=M===~~M?M:M===!0?4:0,typeof w=="string"?U.input=g.string2buf(w):b.call(w)==="[object ArrayBuffer]"?U.input=new Uint8Array(w):U.input=w,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new m.Buf8(F),U.next_out=0,U.avail_out=F),(R=u.deflate(U,C))!==1&&R!==O)return this.onEnd(R),!(this.ended=!0);U.avail_out!==0&&(U.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(m.shrinkBuf(U.output,U.next_out))):this.onData(m.shrinkBuf(U.output,U.next_out)))}while((0<U.avail_in||U.avail_out===0)&&R!==1);return C===4?(R=u.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===O):C!==2||(this.onEnd(O),!(U.avail_out=0))},E.prototype.onData=function(w){this.chunks.push(w)},E.prototype.onEnd=function(w){w===O&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg},f.Deflate=E,f.deflate=L,f.deflateRaw=function(w,M){return(M=M||{}).raw=!0,L(w,M)},f.gzip=function(w,M){return(M=M||{}).gzip=!0,L(w,M)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,c,f){var u=o("./zlib/inflate"),m=o("./utils/common"),g=o("./utils/strings"),y=o("./zlib/constants"),S=o("./zlib/messages"),b=o("./zlib/zstream"),O=o("./zlib/gzheader"),k=Object.prototype.toString;function D(E){if(!(this instanceof D))return new D(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var L=this.options;L.raw&&0<=L.windowBits&&L.windowBits<16&&(L.windowBits=-L.windowBits,L.windowBits===0&&(L.windowBits=-15)),!(0<=L.windowBits&&L.windowBits<16)||E&&E.windowBits||(L.windowBits+=32),15<L.windowBits&&L.windowBits<48&&!(15&L.windowBits)&&(L.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var w=u.inflateInit2(this.strm,L.windowBits);if(w!==y.Z_OK)throw new Error(S[w]);this.header=new O,u.inflateGetHeader(this.strm,this.header)}function B(E,L){var w=new D(L);if(w.push(E,!0),w.err)throw w.msg||S[w.err];return w.result}D.prototype.push=function(E,L){var w,M,R,C,U,F,X=this.strm,K=this.options.chunkSize,Z=this.options.dictionary,ct=!1;if(this.ended)return!1;M=L===~~L?L:L===!0?y.Z_FINISH:y.Z_NO_FLUSH,typeof E=="string"?X.input=g.binstring2buf(E):k.call(E)==="[object ArrayBuffer]"?X.input=new Uint8Array(E):X.input=E,X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0&&(X.output=new m.Buf8(K),X.next_out=0,X.avail_out=K),(w=u.inflate(X,y.Z_NO_FLUSH))===y.Z_NEED_DICT&&Z&&(F=typeof Z=="string"?g.string2buf(Z):k.call(Z)==="[object ArrayBuffer]"?new Uint8Array(Z):Z,w=u.inflateSetDictionary(this.strm,F)),w===y.Z_BUF_ERROR&&ct===!0&&(w=y.Z_OK,ct=!1),w!==y.Z_STREAM_END&&w!==y.Z_OK)return this.onEnd(w),!(this.ended=!0);X.next_out&&(X.avail_out!==0&&w!==y.Z_STREAM_END&&(X.avail_in!==0||M!==y.Z_FINISH&&M!==y.Z_SYNC_FLUSH)||(this.options.to==="string"?(R=g.utf8border(X.output,X.next_out),C=X.next_out-R,U=g.buf2string(X.output,R),X.next_out=C,X.avail_out=K-C,C&&m.arraySet(X.output,X.output,R,C,0),this.onData(U)):this.onData(m.shrinkBuf(X.output,X.next_out)))),X.avail_in===0&&X.avail_out===0&&(ct=!0)}while((0<X.avail_in||X.avail_out===0)&&w!==y.Z_STREAM_END);return w===y.Z_STREAM_END&&(M=y.Z_FINISH),M===y.Z_FINISH?(w=u.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===y.Z_OK):M!==y.Z_SYNC_FLUSH||(this.onEnd(y.Z_OK),!(X.avail_out=0))},D.prototype.onData=function(E){this.chunks.push(E)},D.prototype.onEnd=function(E){E===y.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},f.Inflate=D,f.inflate=B,f.inflateRaw=function(E,L){return(L=L||{}).raw=!0,B(E,L)},f.ungzip=B},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";f.assign=function(y){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var b=S.shift();if(b){if(typeof b!="object")throw new TypeError(b+"must be non-object");for(var O in b)b.hasOwnProperty(O)&&(y[O]=b[O])}}return y},f.shrinkBuf=function(y,S){return y.length===S?y:y.subarray?y.subarray(0,S):(y.length=S,y)};var m={arraySet:function(y,S,b,O,k){if(S.subarray&&y.subarray)y.set(S.subarray(b,b+O),k);else for(var D=0;D<O;D++)y[k+D]=S[b+D]},flattenChunks:function(y){var S,b,O,k,D,B;for(S=O=0,b=y.length;S<b;S++)O+=y[S].length;for(B=new Uint8Array(O),S=k=0,b=y.length;S<b;S++)D=y[S],B.set(D,k),k+=D.length;return B}},g={arraySet:function(y,S,b,O,k){for(var D=0;D<O;D++)y[k+D]=S[b+D]},flattenChunks:function(y){return[].concat.apply([],y)}};f.setTyped=function(y){y?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,m)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,g))},f.setTyped(u)},{}],42:[function(o,c,f){var u=o("./common"),m=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var y=new u.Buf8(256),S=0;S<256;S++)y[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function b(O,k){if(k<65537&&(O.subarray&&g||!O.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(O,k));for(var D="",B=0;B<k;B++)D+=String.fromCharCode(O[B]);return D}y[254]=y[254]=1,f.string2buf=function(O){var k,D,B,E,L,w=O.length,M=0;for(E=0;E<w;E++)(64512&(D=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(B=O.charCodeAt(E+1)))==56320&&(D=65536+(D-55296<<10)+(B-56320),E++),M+=D<128?1:D<2048?2:D<65536?3:4;for(k=new u.Buf8(M),E=L=0;L<M;E++)(64512&(D=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(B=O.charCodeAt(E+1)))==56320&&(D=65536+(D-55296<<10)+(B-56320),E++),D<128?k[L++]=D:(D<2048?k[L++]=192|D>>>6:(D<65536?k[L++]=224|D>>>12:(k[L++]=240|D>>>18,k[L++]=128|D>>>12&63),k[L++]=128|D>>>6&63),k[L++]=128|63&D);return k},f.buf2binstring=function(O){return b(O,O.length)},f.binstring2buf=function(O){for(var k=new u.Buf8(O.length),D=0,B=k.length;D<B;D++)k[D]=O.charCodeAt(D);return k},f.buf2string=function(O,k){var D,B,E,L,w=k||O.length,M=new Array(2*w);for(D=B=0;D<w;)if((E=O[D++])<128)M[B++]=E;else if(4<(L=y[E]))M[B++]=65533,D+=L-1;else{for(E&=L===2?31:L===3?15:7;1<L&&D<w;)E=E<<6|63&O[D++],L--;1<L?M[B++]=65533:E<65536?M[B++]=E:(E-=65536,M[B++]=55296|E>>10&1023,M[B++]=56320|1023&E)}return b(M,B)},f.utf8border=function(O,k){var D;for((k=k||O.length)>O.length&&(k=O.length),D=k-1;0<=D&&(192&O[D])==128;)D--;return D<0||D===0?k:D+y[O[D]]>k?D:k}},{"./common":41}],43:[function(o,c,f){c.exports=function(u,m,g,y){for(var S=65535&u|0,b=u>>>16&65535|0,O=0;g!==0;){for(g-=O=2e3<g?2e3:g;b=b+(S=S+m[y++]|0)|0,--O;);S%=65521,b%=65521}return S|b<<16|0}},{}],44:[function(o,c,f){c.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}},{}],45:[function(o,c,f){var u=function(){for(var m,g=[],y=0;y<256;y++){m=y;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;g[y]=m}return g}();c.exports=function(m,g,y,S){var b=u,O=S+y;m^=-1;for(var k=S;k<O;k++)m=m>>>8^b[255&(m^g[k])];return-1^m}},{}],46:[function(o,c,f){var u,m=o("../utils/common"),g=o("./trees"),y=o("./adler32"),S=o("./crc32"),b=o("./messages"),O=0,k=4,D=0,B=-2,E=-1,L=4,w=2,M=8,R=9,C=286,U=30,F=19,X=2*C+1,K=15,Z=3,ct=258,Rt=ct+Z+1,tt=42,_t=113,G=1,Pt=2,Et=3,At=4;function ce(W,Jt){return W.msg=b[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function It(W){var Jt=W.state,jt=Jt.pending;jt>W.avail_out&&(jt=W.avail_out),jt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,jt,W.next_out),W.next_out+=jt,Jt.pending_out+=jt,W.total_out+=jt,W.avail_out-=jt,Jt.pending-=jt,Jt.pending===0&&(Jt.pending_out=0))}function Nt(W,Jt){g._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,It(W.strm)}function Pe(W,Jt){W.pending_buf[W.pending++]=Jt}function pe(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Wt(W,Jt){var jt,dt,pt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,z=W.strstart>W.w_size-Rt?W.strstart-(W.w_size-Rt):0,Q=W.window,st=W.w_mask,nt=W.prev,vt=W.strstart+ct,Ut=Q[Dt+ie-1],qt=Q[Dt+ie];W.prev_length>=W.good_match&&(pt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(Q[(jt=Jt)+ie]===qt&&Q[jt+ie-1]===Ut&&Q[jt]===Q[Dt]&&Q[++jt]===Q[Dt+1]){Dt+=2,jt++;do;while(Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Dt<vt);if(dt=ct-(vt-Dt),Dt=vt-ct,ie<dt){if(W.match_start=Jt,Kt<=(ie=dt))break;Ut=Q[Dt+ie-1],qt=Q[Dt+ie]}}while((Jt=nt[Jt&st])>z&&--pt!=0);return ie<=W.lookahead?ie:W.lookahead}function $e(W){var Jt,jt,dt,pt,Dt,ie,Kt,z,Q,st,nt=W.w_size;do{if(pt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-Rt)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=jt=W.hash_size;dt=W.head[--Jt],W.head[Jt]=nt<=dt?dt-nt:0,--jt;);for(Jt=jt=nt;dt=W.prev[--Jt],W.prev[Jt]=nt<=dt?dt-nt:0,--jt;);pt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,z=W.strstart+W.lookahead,Q=pt,st=void 0,st=ie.avail_in,Q<st&&(st=Q),jt=st===0?0:(ie.avail_in-=st,m.arraySet(Kt,ie.input,ie.next_in,st,z),ie.state.wrap===1?ie.adler=y(ie.adler,Kt,st,z):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,st,z)),ie.next_in+=st,ie.total_in+=st,st),W.lookahead+=jt,W.lookahead+W.insert>=Z)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+Z-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<Z)););}while(W.lookahead<Rt&&W.strm.avail_in!==0)}function Si(W,Jt){for(var jt,dt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),jt!==0&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt)),W.match_length>=Z)if(dt=g._tr_tally(W,W.strstart-W.match_start,W.match_length-Z),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=Z){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else dt=g._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(dt&&(Nt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Nt(W,!1),W.strm.avail_out===0)?G:Pt}function Oe(W,Jt){for(var jt,dt,pt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=Z-1,jt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt),W.match_length<=5&&(W.strategy===1||W.match_length===Z&&4096<W.strstart-W.match_start)&&(W.match_length=Z-1)),W.prev_length>=Z&&W.match_length<=W.prev_length){for(pt=W.strstart+W.lookahead-Z,dt=g._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-Z),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=pt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=Z-1,W.strstart++,dt&&(Nt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((dt=g._tr_tally(W,0,W.window[W.strstart-1]))&&Nt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(dt=g._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Nt(W,!1),W.strm.avail_out===0)?G:Pt}function Ge(W,Jt,jt,dt,pt){this.good_length=W,this.max_lazy=Jt,this.nice_length=jt,this.max_chain=dt,this.func=pt}function pi(){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=M,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 m.Buf16(2*X),this.dyn_dtree=new m.Buf16(2*(2*U+1)),this.bl_tree=new m.Buf16(2*(2*F+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(K+1),this.heap=new m.Buf16(2*C+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*C+1),Ft(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 Di(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=w,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?tt:_t,W.adler=Jt.wrap===2?0:1,Jt.last_flush=O,g._tr_init(Jt),D):ce(W,B)}function mn(W){var Jt=Di(W);return Jt===D&&function(jt){jt.window_size=2*jt.w_size,Ft(jt.head),jt.max_lazy_match=u[jt.level].max_lazy,jt.good_match=u[jt.level].good_length,jt.nice_match=u[jt.level].nice_length,jt.max_chain_length=u[jt.level].max_chain,jt.strstart=0,jt.block_start=0,jt.lookahead=0,jt.insert=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,jt.ins_h=0}(W.state),Jt}function Qi(W,Jt,jt,dt,pt,Dt){if(!W)return B;var ie=1;if(Jt===E&&(Jt=6),dt<0?(ie=0,dt=-dt):15<dt&&(ie=2,dt-=16),pt<1||R<pt||jt!==M||dt<8||15<dt||Jt<0||9<Jt||Dt<0||L<Dt)return ce(W,B);dt===8&&(dt=9);var Kt=new pi;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=dt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=pt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+Z-1)/Z),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<pt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=jt,mn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var jt=65535;for(jt>W.pending_buf_size-5&&(jt=W.pending_buf_size-5);;){if(W.lookahead<=1){if($e(W),W.lookahead===0&&Jt===O)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var dt=W.block_start+jt;if((W.strstart===0||W.strstart>=dt)&&(W.lookahead=W.strstart-dt,W.strstart=dt,Nt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-Rt&&(Nt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):(W.strstart>W.block_start&&(Nt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Si),new Ge(4,5,16,8,Si),new Ge(4,6,32,32,Si),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],f.deflateInit=function(W,Jt){return Qi(W,Jt,M,15,8,0)},f.deflateInit2=Qi,f.deflateReset=mn,f.deflateResetKeep=Di,f.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?B:(W.state.gzhead=Jt,D):B},f.deflate=function(W,Jt){var jt,dt,pt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?ce(W,B):B;if(dt=W.state,!W.output||!W.input&&W.avail_in!==0||dt.status===666&&Jt!==k)return ce(W,W.avail_out===0?-5:B);if(dt.strm=W,jt=dt.last_flush,dt.last_flush=Jt,dt.status===tt)if(dt.wrap===2)W.adler=0,Pe(dt,31),Pe(dt,139),Pe(dt,8),dt.gzhead?(Pe(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),Pe(dt,255&dt.gzhead.time),Pe(dt,dt.gzhead.time>>8&255),Pe(dt,dt.gzhead.time>>16&255),Pe(dt,dt.gzhead.time>>24&255),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,255&dt.gzhead.os),dt.gzhead.extra&&dt.gzhead.extra.length&&(Pe(dt,255&dt.gzhead.extra.length),Pe(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(W.adler=S(W.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=69):(Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,3),dt.status=_t);else{var ie=M+(dt.w_bits-8<<4)<<8;ie|=(2<=dt.strategy||dt.level<2?0:dt.level<6?1:dt.level===6?2:3)<<6,dt.strstart!==0&&(ie|=32),ie+=31-ie%31,dt.status=_t,pe(dt,ie),dt.strstart!==0&&(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),W.adler=1}if(dt.status===69)if(dt.gzhead.extra){for(pt=dt.pending;dt.gzindex<(65535&dt.gzhead.extra.length)&&(dt.pending!==dt.pending_buf_size||(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending!==dt.pending_buf_size));)Pe(dt,255&dt.gzhead.extra[dt.gzindex]),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=73)}else dt.status=73;if(dt.status===73)if(dt.gzhead.name){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.name.length?255&dt.gzhead.name.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.gzindex=0,dt.status=91)}else dt.status=91;if(dt.status===91)if(dt.gzhead.comment){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.comment.length?255&dt.gzhead.comment.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.status=103)}else dt.status=103;if(dt.status===103&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&It(W),dt.pending+2<=dt.pending_buf_size&&(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),W.adler=0,dt.status=_t)):dt.status=_t),dt.pending!==0){if(It(W),W.avail_out===0)return dt.last_flush=-1,D}else if(W.avail_in===0&&re(Jt)<=re(jt)&&Jt!==k)return ce(W,-5);if(dt.status===666&&W.avail_in!==0)return ce(W,-5);if(W.avail_in!==0||dt.lookahead!==0||Jt!==O&&dt.status!==666){var Kt=dt.strategy===2?function(z,Q){for(var st;;){if(z.lookahead===0&&($e(z),z.lookahead===0)){if(Q===O)return G;break}if(z.match_length=0,st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,st&&(Nt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Nt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Nt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):dt.strategy===3?function(z,Q){for(var st,nt,vt,Ut,qt=z.window;;){if(z.lookahead<=ct){if($e(z),z.lookahead<=ct&&Q===O)return G;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=Z&&0<z.strstart&&(nt=qt[vt=z.strstart-1])===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]){Ut=z.strstart+ct;do;while(nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&vt<Ut);z.match_length=ct-(Ut-vt),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=Z?(st=g._tr_tally(z,1,z.match_length-Z),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),st&&(Nt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Nt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Nt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):u[dt.level].func(dt,Jt);if(Kt!==Et&&Kt!==At||(dt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(dt.last_flush=-1),D;if(Kt===Pt&&(Jt===1?g._tr_align(dt):Jt!==5&&(g._tr_stored_block(dt,0,0,!1),Jt===3&&(Ft(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),It(W),W.avail_out===0))return dt.last_flush=-1,D}return Jt!==k?D:dt.wrap<=0?1:(dt.wrap===2?(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),Pe(dt,W.adler>>16&255),Pe(dt,W.adler>>24&255),Pe(dt,255&W.total_in),Pe(dt,W.total_in>>8&255),Pe(dt,W.total_in>>16&255),Pe(dt,W.total_in>>24&255)):(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),It(W),0<dt.wrap&&(dt.wrap=-dt.wrap),dt.pending!==0?D:1)},f.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==tt&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==_t&&Jt!==666?ce(W,B):(W.state=null,Jt===_t?ce(W,-3):D):B},f.deflateSetDictionary=function(W,Jt){var jt,dt,pt,Dt,ie,Kt,z,Q,st=Jt.length;if(!W||!W.state||(Dt=(jt=W.state).wrap)===2||Dt===1&&jt.status!==tt||jt.lookahead)return B;for(Dt===1&&(W.adler=y(W.adler,Jt,st,0)),jt.wrap=0,st>=jt.w_size&&(Dt===0&&(Ft(jt.head),jt.strstart=0,jt.block_start=0,jt.insert=0),Q=new m.Buf8(jt.w_size),m.arraySet(Q,Jt,st-jt.w_size,jt.w_size,0),Jt=Q,st=jt.w_size),ie=W.avail_in,Kt=W.next_in,z=W.input,W.avail_in=st,W.next_in=0,W.input=Jt,$e(jt);jt.lookahead>=Z;){for(dt=jt.strstart,pt=jt.lookahead-(Z-1);jt.ins_h=(jt.ins_h<<jt.hash_shift^jt.window[dt+Z-1])&jt.hash_mask,jt.prev[dt&jt.w_mask]=jt.head[jt.ins_h],jt.head[jt.ins_h]=dt,dt++,--pt;);jt.strstart=dt,jt.lookahead=Z-1,$e(jt)}return jt.strstart+=jt.lookahead,jt.block_start=jt.strstart,jt.insert=jt.lookahead,jt.lookahead=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,W.next_in=Kt,W.input=z,W.avail_in=ie,jt.wrap=Dt,D},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,c,f){c.exports=function(){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}},{}],48:[function(o,c,f){c.exports=function(u,m){var g,y,S,b,O,k,D,B,E,L,w,M,R,C,U,F,X,K,Z,ct,Rt,tt,_t,G,Pt;g=u.state,y=u.next_in,G=u.input,S=y+(u.avail_in-5),b=u.next_out,Pt=u.output,O=b-(m-u.avail_out),k=b+(u.avail_out-257),D=g.dmax,B=g.wsize,E=g.whave,L=g.wnext,w=g.window,M=g.hold,R=g.bits,C=g.lencode,U=g.distcode,F=(1<<g.lenbits)-1,X=(1<<g.distbits)-1;t:do{R<15&&(M+=G[y++]<<R,R+=8,M+=G[y++]<<R,R+=8),K=C[M&F];e:for(;;){if(M>>>=Z=K>>>24,R-=Z,(Z=K>>>16&255)===0)Pt[b++]=65535&K;else{if(!(16&Z)){if(!(64&Z)){K=C[(65535&K)+(M&(1<<Z)-1)];continue e}if(32&Z){g.mode=12;break t}u.msg="invalid literal/length code",g.mode=30;break t}ct=65535&K,(Z&=15)&&(R<Z&&(M+=G[y++]<<R,R+=8),ct+=M&(1<<Z)-1,M>>>=Z,R-=Z),R<15&&(M+=G[y++]<<R,R+=8,M+=G[y++]<<R,R+=8),K=U[M&X];i:for(;;){if(M>>>=Z=K>>>24,R-=Z,!(16&(Z=K>>>16&255))){if(!(64&Z)){K=U[(65535&K)+(M&(1<<Z)-1)];continue i}u.msg="invalid distance code",g.mode=30;break t}if(Rt=65535&K,R<(Z&=15)&&(M+=G[y++]<<R,(R+=8)<Z&&(M+=G[y++]<<R,R+=8)),D<(Rt+=M&(1<<Z)-1)){u.msg="invalid distance too far back",g.mode=30;break t}if(M>>>=Z,R-=Z,(Z=b-O)<Rt){if(E<(Z=Rt-Z)&&g.sane){u.msg="invalid distance too far back",g.mode=30;break t}if(_t=w,(tt=0)===L){if(tt+=B-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}else if(L<Z){if(tt+=B+L-Z,(Z-=L)<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);if(tt=0,L<ct){for(ct-=Z=L;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}}else if(tt+=L-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}for(;2<ct;)Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],ct-=3;ct&&(Pt[b++]=_t[tt++],1<ct&&(Pt[b++]=_t[tt++]))}else{for(tt=b-Rt;Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],2<(ct-=3););ct&&(Pt[b++]=Pt[tt++],1<ct&&(Pt[b++]=Pt[tt++]))}break}}break}}while(y<S&&b<k);y-=ct=R>>3,M&=(1<<(R-=ct<<3))-1,u.next_in=y,u.next_out=b,u.avail_in=y<S?S-y+5:5-(y-S),u.avail_out=b<k?k-b+257:257-(b-k),g.hold=M,g.bits=R}},{}],49:[function(o,c,f){var u=o("../utils/common"),m=o("./adler32"),g=o("./crc32"),y=o("./inffast"),S=o("./inftrees"),b=1,O=2,k=0,D=-2,B=1,E=852,L=592;function w(tt){return(tt>>>24&255)+(tt>>>8&65280)+((65280&tt)<<8)+((255&tt)<<24)}function M(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(tt){var _t;return tt&&tt.state?(_t=tt.state,tt.total_in=tt.total_out=_t.total=0,tt.msg="",_t.wrap&&(tt.adler=1&_t.wrap),_t.mode=B,_t.last=0,_t.havedict=0,_t.dmax=32768,_t.head=null,_t.hold=0,_t.bits=0,_t.lencode=_t.lendyn=new u.Buf32(E),_t.distcode=_t.distdyn=new u.Buf32(L),_t.sane=1,_t.back=-1,k):D}function C(tt){var _t;return tt&&tt.state?((_t=tt.state).wsize=0,_t.whave=0,_t.wnext=0,R(tt)):D}function U(tt,_t){var G,Pt;return tt&&tt.state?(Pt=tt.state,_t<0?(G=0,_t=-_t):(G=1+(_t>>4),_t<48&&(_t&=15)),_t&&(_t<8||15<_t)?D:(Pt.window!==null&&Pt.wbits!==_t&&(Pt.window=null),Pt.wrap=G,Pt.wbits=_t,C(tt))):D}function F(tt,_t){var G,Pt;return tt?(Pt=new M,(tt.state=Pt).window=null,(G=U(tt,_t))!==k&&(tt.state=null),G):D}var X,K,Z=!0;function ct(tt){if(Z){var _t;for(X=new u.Buf32(512),K=new u.Buf32(32),_t=0;_t<144;)tt.lens[_t++]=8;for(;_t<256;)tt.lens[_t++]=9;for(;_t<280;)tt.lens[_t++]=7;for(;_t<288;)tt.lens[_t++]=8;for(S(b,tt.lens,0,288,X,0,tt.work,{bits:9}),_t=0;_t<32;)tt.lens[_t++]=5;S(O,tt.lens,0,32,K,0,tt.work,{bits:5}),Z=!1}tt.lencode=X,tt.lenbits=9,tt.distcode=K,tt.distbits=5}function Rt(tt,_t,G,Pt){var Et,At=tt.state;return At.window===null&&(At.wsize=1<<At.wbits,At.wnext=0,At.whave=0,At.window=new u.Buf8(At.wsize)),Pt>=At.wsize?(u.arraySet(At.window,_t,G-At.wsize,At.wsize,0),At.wnext=0,At.whave=At.wsize):(Pt<(Et=At.wsize-At.wnext)&&(Et=Pt),u.arraySet(At.window,_t,G-Pt,Et,At.wnext),(Pt-=Et)?(u.arraySet(At.window,_t,G-Pt,Pt,0),At.wnext=Pt,At.whave=At.wsize):(At.wnext+=Et,At.wnext===At.wsize&&(At.wnext=0),At.whave<At.wsize&&(At.whave+=Et))),0}f.inflateReset=C,f.inflateReset2=U,f.inflateResetKeep=R,f.inflateInit=function(tt){return F(tt,15)},f.inflateInit2=F,f.inflate=function(tt,_t){var G,Pt,Et,At,ce,re,Ft,It,Nt,Pe,pe,Wt,$e,Si,Oe,Ge,pi,Di,mn,Qi,W,Jt,jt,dt,pt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!tt||!tt.state||!tt.output||!tt.input&&tt.avail_in!==0)return D;(G=tt.state).mode===12&&(G.mode=13),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Nt=G.bits,Pe=re,pe=Ft,Jt=k;t:for(;;)switch(G.mode){case B:if(G.wrap===0){G.mode=13;break}for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(2&G.wrap&&It===35615){Dt[G.check=0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0),Nt=It=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&It)<<8)+(It>>8))%31){tt.msg="incorrect header check",G.mode=30;break}if((15&It)!=8){tt.msg="unknown compression method",G.mode=30;break}if(Nt-=4,W=8+(15&(It>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){tt.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,tt.adler=G.check=1,G.mode=512&It?10:12,Nt=It=0;break;case 2:for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(G.flags=It,(255&G.flags)!=8){tt.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){tt.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=It>>8&1),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0,G.mode=3;case 3:for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.head&&(G.head.time=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,Dt[2]=It>>>16&255,Dt[3]=It>>>24&255,G.check=g(G.check,Dt,4,0)),Nt=It=0,G.mode=4;case 4:for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.head&&(G.head.xflags=255&It,G.head.os=It>>8),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0,G.mode=5;case 5:if(1024&G.flags){for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.length=It,G.head&&(G.head.extra_len=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Wt=G.length)&&(Wt=re),Wt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Pt,At,Wt,W)),512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,G.length-=Wt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It!==(65535&G.check)){tt.msg="header crc mismatch",G.mode=30;break}Nt=It=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),tt.adler=G.check=0,G.mode=12;break;case 10:for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}tt.adler=G.check=w(It),Nt=It=0,G.mode=11;case 11:if(G.havedict===0)return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,2;tt.adler=G.check=1,G.mode=12;case 12:if(_t===5||_t===6)break t;case 13:if(G.last){It>>>=7&Nt,Nt-=7&Nt,G.mode=27;break}for(;Nt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}switch(G.last=1&It,Nt-=1,3&(It>>>=1)){case 0:G.mode=14;break;case 1:if(ct(G),G.mode=20,_t!==6)break;It>>>=2,Nt-=2;break t;case 2:G.mode=17;break;case 3:tt.msg="invalid block type",G.mode=30}It>>>=2,Nt-=2;break;case 14:for(It>>>=7&Nt,Nt-=7&Nt;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if((65535&It)!=(It>>>16^65535)){tt.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&It,Nt=It=0,G.mode=15,_t===6)break t;case 15:G.mode=16;case 16:if(Wt=G.length){if(re<Wt&&(Wt=re),Ft<Wt&&(Wt=Ft),Wt===0)break t;u.arraySet(Et,Pt,At,Wt,ce),re-=Wt,At+=Wt,Ft-=Wt,ce+=Wt,G.length-=Wt;break}G.mode=12;break;case 17:for(;Nt<14;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(G.nlen=257+(31&It),It>>>=5,Nt-=5,G.ndist=1+(31&It),It>>>=5,Nt-=5,G.ncode=4+(15&It),It>>>=4,Nt-=4,286<G.nlen||30<G.ndist){tt.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Nt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.lens[ie[G.have++]]=7&It,It>>>=3,Nt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,jt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(pi<16)It>>>=Oe,Nt-=Oe,G.lens[G.have++]=pi;else{if(pi===16){for(dt=Oe+2;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It>>>=Oe,Nt-=Oe,G.have===0){tt.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Wt=3+(3&It),It>>>=2,Nt-=2}else if(pi===17){for(dt=Oe+3;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}Nt-=Oe,W=0,Wt=3+(7&(It>>>=Oe)),It>>>=3,Nt-=3}else{for(dt=Oe+7;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}Nt-=Oe,W=0,Wt=11+(127&(It>>>=Oe)),It>>>=7,Nt-=7}if(G.have+Wt>G.nlen+G.ndist){tt.msg="invalid bit length repeat",G.mode=30;break}for(;Wt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){tt.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,jt={bits:G.lenbits},Jt=S(b,G.lens,0,G.nlen,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,jt={bits:G.distbits},Jt=S(O,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,jt),G.distbits=jt.bits,Jt){tt.msg="invalid distances set",G.mode=30;break}if(G.mode=20,_t===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,y(tt,pe),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Nt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(Ge&&!(240&Ge)){for(Di=Oe,mn=Ge,Qi=pi;Ge=(pt=G.lencode[Qi+((It&(1<<Di+mn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}It>>>=Di,Nt-=Di,G.back+=Di}if(It>>>=Oe,Nt-=Oe,G.back+=Oe,G.length=pi,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){tt.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(dt=G.extra;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.length+=It&(1<<G.extra)-1,It>>>=G.extra,Nt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(pt=G.distcode[It&(1<<G.distbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(!(240&Ge)){for(Di=Oe,mn=Ge,Qi=pi;Ge=(pt=G.distcode[Qi+((It&(1<<Di+mn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}It>>>=Di,Nt-=Di,G.back+=Di}if(It>>>=Oe,Nt-=Oe,G.back+=Oe,64&Ge){tt.msg="invalid distance code",G.mode=30;break}G.offset=pi,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(dt=G.extra;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.offset+=It&(1<<G.extra)-1,It>>>=G.extra,Nt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){tt.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Wt=pe-Ft,G.offset>Wt){if((Wt=G.offset-Wt)>G.whave&&G.sane){tt.msg="invalid distance too far back",G.mode=30;break}$e=Wt>G.wnext?(Wt-=G.wnext,G.wsize-Wt):G.wnext-Wt,Wt>G.length&&(Wt=G.length),Si=G.window}else Si=Et,$e=ce-G.offset,Wt=G.length;for(Ft<Wt&&(Wt=Ft),Ft-=Wt,G.length-=Wt;Et[ce++]=Si[$e++],--Wt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[ce++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Nt<32;){if(re===0)break t;re--,It|=Pt[At++]<<Nt,Nt+=8}if(pe-=Ft,tt.total_out+=pe,G.total+=pe,pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,ce-pe):m(G.check,Et,pe,ce-pe)),pe=Ft,(G.flags?It:w(It))!==G.check){tt.msg="incorrect data check",G.mode=30;break}Nt=It=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It!==(4294967295&G.total)){tt.msg="incorrect length check",G.mode=30;break}Nt=It=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return D}return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,(G.wsize||pe!==tt.avail_out&&G.mode<30&&(G.mode<27||_t!==4))&&Rt(tt,tt.output,tt.next_out,pe-tt.avail_out)?(G.mode=31,-4):(Pe-=tt.avail_in,pe-=tt.avail_out,tt.total_in+=Pe,tt.total_out+=pe,G.total+=pe,G.wrap&&pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,tt.next_out-pe):m(G.check,Et,pe,tt.next_out-pe)),tt.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(Pe==0&&pe===0||_t===4)&&Jt===k&&(Jt=-5),Jt)},f.inflateEnd=function(tt){if(!tt||!tt.state)return D;var _t=tt.state;return _t.window&&(_t.window=null),tt.state=null,k},f.inflateGetHeader=function(tt,_t){var G;return tt&&tt.state&&2&(G=tt.state).wrap?((G.head=_t).done=!1,k):D},f.inflateSetDictionary=function(tt,_t){var G,Pt=_t.length;return tt&&tt.state?(G=tt.state).wrap!==0&&G.mode!==11?D:G.mode===11&&m(1,_t,Pt,0)!==G.check?-3:Rt(tt,_t,Pt,Pt)?(G.mode=31,-4):(G.havedict=1,k):D},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,c,f){var u=o("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(b,O,k,D,B,E,L,w){var M,R,C,U,F,X,K,Z,ct,Rt=w.bits,tt=0,_t=0,G=0,Pt=0,Et=0,At=0,ce=0,re=0,Ft=0,It=0,Nt=null,Pe=0,pe=new u.Buf16(16),Wt=new u.Buf16(16),$e=null,Si=0;for(tt=0;tt<=15;tt++)pe[tt]=0;for(_t=0;_t<D;_t++)pe[O[k+_t]]++;for(Et=Rt,Pt=15;1<=Pt&&pe[Pt]===0;Pt--);if(Pt<Et&&(Et=Pt),Pt===0)return B[E++]=20971520,B[E++]=20971520,w.bits=1,0;for(G=1;G<Pt&&pe[G]===0;G++);for(Et<G&&(Et=G),tt=re=1;tt<=15;tt++)if(re<<=1,(re-=pe[tt])<0)return-1;if(0<re&&(b===0||Pt!==1))return-1;for(Wt[1]=0,tt=1;tt<15;tt++)Wt[tt+1]=Wt[tt]+pe[tt];for(_t=0;_t<D;_t++)O[k+_t]!==0&&(L[Wt[O[k+_t]]++]=_t);if(X=b===0?(Nt=$e=L,19):b===1?(Nt=m,Pe-=257,$e=g,Si-=257,256):(Nt=y,$e=S,-1),tt=G,F=E,ce=_t=It=0,C=-1,U=(Ft=1<<(At=Et))-1,b===1&&852<Ft||b===2&&592<Ft)return 1;for(;;){for(K=tt-ce,ct=L[_t]<X?(Z=0,L[_t]):L[_t]>X?(Z=$e[Si+L[_t]],Nt[Pe+L[_t]]):(Z=96,0),M=1<<tt-ce,G=R=1<<At;B[F+(It>>ce)+(R-=M)]=K<<24|Z<<16|ct|0,R!==0;);for(M=1<<tt-1;It&M;)M>>=1;if(M!==0?(It&=M-1,It+=M):It=0,_t++,--pe[tt]==0){if(tt===Pt)break;tt=O[k+L[_t]]}if(Et<tt&&(It&U)!==C){for(ce===0&&(ce=Et),F+=G,re=1<<(At=tt-ce);At+ce<Pt&&!((re-=pe[At+ce])<=0);)At++,re<<=1;if(Ft+=1<<At,b===1&&852<Ft||b===2&&592<Ft)return 1;B[C=It&U]=Et<<24|At<<16|F-E|0}}return It!==0&&(B[F+It]=tt-ce<<24|64<<16|0),w.bits=Et,0}},{"../utils/common":41}],51:[function(o,c,f){c.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"}},{}],52:[function(o,c,f){var u=o("../utils/common"),m=0,g=1;function y(pt){for(var Dt=pt.length;0<=--Dt;)pt[Dt]=0}var S=0,b=29,O=256,k=O+1+b,D=30,B=19,E=2*k+1,L=15,w=16,M=7,R=256,C=16,U=17,F=18,X=[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],K=[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],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Rt=new Array(2*(k+2));y(Rt);var tt=new Array(2*D);y(tt);var _t=new Array(512);y(_t);var G=new Array(256);y(G);var Pt=new Array(b);y(Pt);var Et,At,ce,re=new Array(D);function Ft(pt,Dt,ie,Kt,z){this.static_tree=pt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=z,this.has_stree=pt&&pt.length}function It(pt,Dt){this.dyn_tree=pt,this.max_code=0,this.stat_desc=Dt}function Nt(pt){return pt<256?_t[pt]:_t[256+(pt>>>7)]}function Pe(pt,Dt){pt.pending_buf[pt.pending++]=255&Dt,pt.pending_buf[pt.pending++]=Dt>>>8&255}function pe(pt,Dt,ie){pt.bi_valid>w-ie?(pt.bi_buf|=Dt<<pt.bi_valid&65535,Pe(pt,pt.bi_buf),pt.bi_buf=Dt>>w-pt.bi_valid,pt.bi_valid+=ie-w):(pt.bi_buf|=Dt<<pt.bi_valid&65535,pt.bi_valid+=ie)}function Wt(pt,Dt,ie){pe(pt,ie[2*Dt],ie[2*Dt+1])}function $e(pt,Dt){for(var ie=0;ie|=1&pt,pt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Si(pt,Dt,ie){var Kt,z,Q=new Array(L+1),st=0;for(Kt=1;Kt<=L;Kt++)Q[Kt]=st=st+ie[Kt-1]<<1;for(z=0;z<=Dt;z++){var nt=pt[2*z+1];nt!==0&&(pt[2*z]=$e(Q[nt]++,nt))}}function Oe(pt){var Dt;for(Dt=0;Dt<k;Dt++)pt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<D;Dt++)pt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<B;Dt++)pt.bl_tree[2*Dt]=0;pt.dyn_ltree[2*R]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Ge(pt){8<pt.bi_valid?Pe(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function pi(pt,Dt,ie,Kt){var z=2*Dt,Q=2*ie;return pt[z]<pt[Q]||pt[z]===pt[Q]&&Kt[Dt]<=Kt[ie]}function Di(pt,Dt,ie){for(var Kt=pt.heap[ie],z=ie<<1;z<=pt.heap_len&&(z<pt.heap_len&&pi(Dt,pt.heap[z+1],pt.heap[z],pt.depth)&&z++,!pi(Dt,Kt,pt.heap[z],pt.depth));)pt.heap[ie]=pt.heap[z],ie=z,z<<=1;pt.heap[ie]=Kt}function mn(pt,Dt,ie){var Kt,z,Q,st,nt=0;if(pt.last_lit!==0)for(;Kt=pt.pending_buf[pt.d_buf+2*nt]<<8|pt.pending_buf[pt.d_buf+2*nt+1],z=pt.pending_buf[pt.l_buf+nt],nt++,Kt===0?Wt(pt,z,Dt):(Wt(pt,(Q=G[z])+O+1,Dt),(st=X[Q])!==0&&pe(pt,z-=Pt[Q],st),Wt(pt,Q=Nt(--Kt),ie),(st=K[Q])!==0&&pe(pt,Kt-=re[Q],st)),nt<pt.last_lit;);Wt(pt,R,Dt)}function Qi(pt,Dt){var ie,Kt,z,Q=Dt.dyn_tree,st=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Ut=-1;for(pt.heap_len=0,pt.heap_max=E,ie=0;ie<vt;ie++)Q[2*ie]!==0?(pt.heap[++pt.heap_len]=Ut=ie,pt.depth[ie]=0):Q[2*ie+1]=0;for(;pt.heap_len<2;)Q[2*(z=pt.heap[++pt.heap_len]=Ut<2?++Ut:0)]=1,pt.depth[z]=0,pt.opt_len--,nt&&(pt.static_len-=st[2*z+1]);for(Dt.max_code=Ut,ie=pt.heap_len>>1;1<=ie;ie--)Di(pt,Q,ie);for(z=vt;ie=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],Di(pt,Q,1),Kt=pt.heap[1],pt.heap[--pt.heap_max]=ie,pt.heap[--pt.heap_max]=Kt,Q[2*z]=Q[2*ie]+Q[2*Kt],pt.depth[z]=(pt.depth[ie]>=pt.depth[Kt]?pt.depth[ie]:pt.depth[Kt])+1,Q[2*ie+1]=Q[2*Kt+1]=z,pt.heap[1]=z++,Di(pt,Q,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(qt,Xt){var Ne,Ie,me,we,yi,Ei,ni=Xt.dyn_tree,bi=Xt.max_code,qr=Xt.stat_desc.static_tree,sr=Xt.stat_desc.has_stree,sn=Xt.stat_desc.extra_bits,Ao=Xt.stat_desc.extra_base,zi=Xt.stat_desc.max_length,qo=0;for(we=0;we<=L;we++)qt.bl_count[we]=0;for(ni[2*qt.heap[qt.heap_max]+1]=0,Ne=qt.heap_max+1;Ne<E;Ne++)zi<(we=ni[2*ni[2*(Ie=qt.heap[Ne])+1]+1]+1)&&(we=zi,qo++),ni[2*Ie+1]=we,bi<Ie||(qt.bl_count[we]++,yi=0,Ao<=Ie&&(yi=sn[Ie-Ao]),Ei=ni[2*Ie],qt.opt_len+=Ei*(we+yi),sr&&(qt.static_len+=Ei*(qr[2*Ie+1]+yi)));if(qo!==0){do{for(we=zi-1;qt.bl_count[we]===0;)we--;qt.bl_count[we]--,qt.bl_count[we+1]+=2,qt.bl_count[zi]--,qo-=2}while(0<qo);for(we=zi;we!==0;we--)for(Ie=qt.bl_count[we];Ie!==0;)bi<(me=qt.heap[--Ne])||(ni[2*me+1]!==we&&(qt.opt_len+=(we-ni[2*me+1])*ni[2*me],ni[2*me+1]=we),Ie--)}}(pt,Dt),Si(Q,Ut,pt.bl_count)}function W(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)z=st,st=Dt[2*(Kt+1)+1],++nt<vt&&z===st||(nt<Ut?pt.bl_tree[2*z]+=nt:z!==0?(z!==Q&&pt.bl_tree[2*z]++,pt.bl_tree[2*C]++):nt<=10?pt.bl_tree[2*U]++:pt.bl_tree[2*F]++,Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4))}function Jt(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Kt=0;Kt<=ie;Kt++)if(z=st,st=Dt[2*(Kt+1)+1],!(++nt<vt&&z===st)){if(nt<Ut)for(;Wt(pt,z,pt.bl_tree),--nt!=0;);else z!==0?(z!==Q&&(Wt(pt,z,pt.bl_tree),nt--),Wt(pt,C,pt.bl_tree),pe(pt,nt-3,2)):nt<=10?(Wt(pt,U,pt.bl_tree),pe(pt,nt-3,3)):(Wt(pt,F,pt.bl_tree),pe(pt,nt-11,7));Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4)}}y(re);var jt=!1;function dt(pt,Dt,ie,Kt){pe(pt,(S<<1)+(Kt?1:0),3),function(z,Q,st,nt){Ge(z),nt&&(Pe(z,st),Pe(z,~st)),u.arraySet(z.pending_buf,z.window,Q,st,z.pending),z.pending+=st}(pt,Dt,ie,!0)}f._tr_init=function(pt){jt||(function(){var Dt,ie,Kt,z,Q,st=new Array(L+1);for(z=Kt=0;z<b-1;z++)for(Pt[z]=Kt,Dt=0;Dt<1<<X[z];Dt++)G[Kt++]=z;for(G[Kt-1]=z,z=Q=0;z<16;z++)for(re[z]=Q,Dt=0;Dt<1<<K[z];Dt++)_t[Q++]=z;for(Q>>=7;z<D;z++)for(re[z]=Q<<7,Dt=0;Dt<1<<K[z]-7;Dt++)_t[256+Q++]=z;for(ie=0;ie<=L;ie++)st[ie]=0;for(Dt=0;Dt<=143;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(;Dt<=255;)Rt[2*Dt+1]=9,Dt++,st[9]++;for(;Dt<=279;)Rt[2*Dt+1]=7,Dt++,st[7]++;for(;Dt<=287;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(Si(Rt,k+1,st),Dt=0;Dt<D;Dt++)tt[2*Dt+1]=5,tt[2*Dt]=$e(Dt,5);Et=new Ft(Rt,X,O+1,k,L),At=new Ft(tt,K,0,D,L),ce=new Ft(new Array(0),Z,0,B,M)}(),jt=!0),pt.l_desc=new It(pt.dyn_ltree,Et),pt.d_desc=new It(pt.dyn_dtree,At),pt.bl_desc=new It(pt.bl_tree,ce),pt.bi_buf=0,pt.bi_valid=0,Oe(pt)},f._tr_stored_block=dt,f._tr_flush_block=function(pt,Dt,ie,Kt){var z,Q,st=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(nt){var vt,Ut=4093624447;for(vt=0;vt<=31;vt++,Ut>>>=1)if(1&Ut&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return g;for(vt=32;vt<O;vt++)if(nt.dyn_ltree[2*vt]!==0)return g;return m}(pt)),Qi(pt,pt.l_desc),Qi(pt,pt.d_desc),st=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=B-1;3<=vt&&nt.bl_tree[2*ct[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(pt),z=pt.opt_len+3+7>>>3,(Q=pt.static_len+3+7>>>3)<=z&&(z=Q)):z=Q=ie+5,ie+4<=z&&Dt!==-1?dt(pt,Dt,ie,Kt):pt.strategy===4||Q===z?(pe(pt,2+(Kt?1:0),3),mn(pt,Rt,tt)):(pe(pt,4+(Kt?1:0),3),function(nt,vt,Ut,qt){var Xt;for(pe(nt,vt-257,5),pe(nt,Ut-1,5),pe(nt,qt-4,4),Xt=0;Xt<qt;Xt++)pe(nt,nt.bl_tree[2*ct[Xt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Ut-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,st+1),mn(pt,pt.dyn_ltree,pt.dyn_dtree)),Oe(pt),Kt&&Ge(pt)},f._tr_tally=function(pt,Dt,ie){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=Dt>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&Dt,pt.pending_buf[pt.l_buf+pt.last_lit]=255&ie,pt.last_lit++,Dt===0?pt.dyn_ltree[2*ie]++:(pt.matches++,Dt--,pt.dyn_ltree[2*(G[ie]+O+1)]++,pt.dyn_dtree[2*Nt(Dt)]++),pt.last_lit===pt.lit_bufsize-1},f._tr_align=function(pt){pe(pt,2,3),Wt(pt,R,Rt),function(Dt){Dt.bi_valid===16?(Pe(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(o,c,f){c.exports=function(){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}},{}],54:[function(o,c,f){(function(u){(function(m,g){if(!m.setImmediate){var y,S,b,O,k=1,D={},B=!1,E=m.document,L=Object.getPrototypeOf&&Object.getPrototypeOf(m);L=L&&L.setTimeout?L:m,y={}.toString.call(m.process)==="[object process]"?function(C){process.nextTick(function(){M(C)})}:function(){if(m.postMessage&&!m.importScripts){var C=!0,U=m.onmessage;return m.onmessage=function(){C=!1},m.postMessage("","*"),m.onmessage=U,C}}()?(O="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",R,!1):m.attachEvent("onmessage",R),function(C){m.postMessage(O+C,"*")}):m.MessageChannel?((b=new MessageChannel).port1.onmessage=function(C){M(C.data)},function(C){b.port2.postMessage(C)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(C){var U=E.createElement("script");U.onreadystatechange=function(){M(C),U.onreadystatechange=null,S.removeChild(U),U=null},S.appendChild(U)}):function(C){setTimeout(M,0,C)},L.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var U=new Array(arguments.length-1),F=0;F<U.length;F++)U[F]=arguments[F+1];var X={callback:C,args:U};return D[k]=X,y(k),k++},L.clearImmediate=w}function w(C){delete D[C]}function M(C){if(B)setTimeout(M,0,C);else{var U=D[C];if(U){B=!0;try{(function(F){var X=F.callback,K=F.args;switch(K.length){case 0:X();break;case 1:X(K[0]);break;case 2:X(K[0],K[1]);break;case 3:X(K[0],K[1],K[2]);break;default:X.apply(g,K)}})(U)}finally{w(C),B=!1}}}}function R(C){C.source===m&&typeof C.data=="string"&&C.data.indexOf(O)===0&&M(+C.data.slice(O.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Cf);var dm=Cf.exports;const pm=tc(dm);var Af={exports:{}};(function(x,a){(function(o,c){c()})(Er,function(){function o(S,b){return typeof b>"u"?b={autoBom:!1}:typeof b!="object"&&(b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function c(S,b,O){var k=new XMLHttpRequest;k.open("GET",S),k.responseType="blob",k.onload=function(){y(k.response,b,O)},k.onerror=function(){},k.send()}function f(S){var b=new XMLHttpRequest;b.open("HEAD",S,!1);try{b.send()}catch{}return 200<=b.status&&299>=b.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(b)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Er=="object"&&Er.global===Er?Er:void 0,g=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),y=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(S,b,O){var k=m.URL||m.webkitURL,D=document.createElement("a");b=b||S.name||"download",D.download=b,D.rel="noopener",typeof S=="string"?(D.href=S,D.origin===location.origin?u(D):f(D.href)?c(S,b,O):u(D,D.target="_blank")):(D.href=k.createObjectURL(S),setTimeout(function(){k.revokeObjectURL(D.href)},4e4),setTimeout(function(){u(D)},0))}:"msSaveOrOpenBlob"in navigator?function(S,b,O){if(b=b||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,O),b);else if(f(S))c(S,b,O);else{var k=document.createElement("a");k.href=S,k.target="_blank",setTimeout(function(){u(k)})}}:function(S,b,O,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof S=="string")return c(S,b,O);var D=S.type==="application/octet-stream",B=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||D&&B||g)&&typeof FileReader<"u"){var L=new FileReader;L.onloadend=function(){var R=L.result;R=E?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=R:location=R,k=null},L.readAsDataURL(S)}else{var w=m.URL||m.webkitURL,M=w.createObjectURL(S);k?k.location=M:location.href=M,k=null,setTimeout(function(){w.revokeObjectURL(M)},4e4)}});m.saveAs=y.saveAs=y,x.exports=y})})(Af);var mm=Af.exports;const gm=tc(mm);class vm{constructor(a,o){window.mars3d&&(this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt)}start(a=!0){var o,c;if(a){window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="none !important"),this.timestamp=new Date().getTime();const f=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),f!==null&&f.classList.add(this.panoramicViewClass);let{lat:g,lng:y,alt:S}=window.map.getCameraView();this.lat=g,this.lng=y,this.alt=S,window.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?window.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(c=this.screenshotArray)==null?void 0:c.length]},{complete:()=>{setTimeout(()=>{var f;this.screenshot((f=this.screenshotArray)==null?void 0:f.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):this.emit("state",{type:"error"})}async screenshot(a){const o=await window.map.expImage({download:!1}),c=window.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),f=await window.domtoimage.toPng(window.map.container,{filter:u=>u!==c[0]});this.mergeImage(o.image,f,o.width,o.height).then(u=>{var y;let m=Number(a)+1,g={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",g),(y=this.screenshotArray)==null||y.push(g),this.start(!1)})}mergeImage(a,o,c,f){return new Promise((u,m)=>{const g=document.createElement("canvas");g.width=c,g.height=f;const y=g.getContext("2d");if(g&&y){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{y.drawImage(S,0,0,c,f);const b=new Image;b.crossOrigin="Anonymous",b.onload=()=>{y.drawImage(b,0,0,c,f);const O=g.toDataURL("image/png");u(O)},b.src=o},S.src=a}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(a=>{window.mars3d.Util.downloadBase64Image(a.name,a.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const a=new pm;this.screenshotArray.forEach(c=>{const f=c.src.split(",")[1],u=atob(f),m=[];for(let S=0;S<u.length;S+=1024){const b=u.slice(S,S+1024),O=new Array(b.length);for(let D=0;D<b.length;D++)O[D]=b.charCodeAt(D);const k=new Uint8Array(O);m.push(k)}const g=new Blob(m,{type:"image/jpeg"}),y=`${c.name}`;a.file(y,g,{binary:!0})});const o=await a.generateAsync({type:"blob"});gm(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const a=document.getElementById("app");a&&a.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height=""),window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="")}on(a,o){this.events[a]?this.events[a].push(o):this.events[a]=[o]}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}}function fs(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function Pf(x,a){x.prototype=Object.create(a.prototype),x.prototype.constructor=x,x.__proto__=a}/*!
2686
+ \0`,pe+=u(It,2),pe+=F.magic,pe+=u(R,2),pe+=u(C,2),pe+=u(Ft.crc32,4),pe+=u(Ft.compressedSize,4),pe+=u(Ft.uncompressedSize,4),pe+=u(K.length,2),pe+=u(Pt.length,2),{fileRecord:O.LOCAL_FILE_HEADER+pe+K+Pt,dirRecord:O.CENTRAL_FILE_HEADER+u(Pe,2)+pe+u(Rt.length,2)+"\0\0\0\0"+u(Nt,4)+u(L,4)+K+Pt+Rt}}var g=o("../utils"),y=o("../stream/GenericWorker"),S=o("../utf8"),b=o("../crc32"),O=o("../signature");function k(D,B,E,L){y.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=E,this.encodeFileName=L,this.streamFiles=D,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(k,y),k.prototype.push=function(D){var B=D.meta.percent||0,E=this.entriesCount,L=this._sources.length;this.accumulate?this.contentBuffer.push(D):(this.bytesWritten+=D.data.length,y.prototype.push.call(this,{data:D.data,meta:{currentFile:this.currentFile,percent:E?(B+100*(E-L-1))/E:100}}))},k.prototype.openedSource=function(D){this.currentSourceOffset=this.bytesWritten,this.currentFile=D.file.name;var B=this.streamFiles&&!D.file.dir;if(B){var E=m(D,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:E.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(D){this.accumulate=!1;var B=this.streamFiles&&!D.file.dir,E=m(D,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(E.dirRecord),B)this.push({data:function(L){return O.DATA_DESCRIPTOR+u(L.crc32,4)+u(L.compressedSize,4)+u(L.uncompressedSize,4)}(D),meta:{percent:100}});else for(this.push({data:E.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var D=this.bytesWritten,B=0;B<this.dirRecords.length;B++)this.push({data:this.dirRecords[B],meta:{percent:100}});var E=this.bytesWritten-D,L=function(w,M,R,C,U){var F=g.transformTo("string",U(C));return O.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(w,2)+u(w,2)+u(M,4)+u(R,4)+u(F.length,2)+F}(this.dirRecords.length,E,D,this.zipComment,this.encodeFileName);this.push({data:L,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(D){this._sources.push(D);var B=this;return D.on("data",function(E){B.processChunk(E)}),D.on("end",function(){B.closedSource(B.previous.streamInfo),B._sources.length?B.prepareNextSource():B.end()}),D.on("error",function(E){B.error(E)}),this},k.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(D){var B=this._sources;if(!y.prototype.error.call(this,D))return!1;for(var E=0;E<B.length;E++)try{B[E].error(D)}catch{}return!0},k.prototype.lock=function(){y.prototype.lock.call(this);for(var D=this._sources,B=0;B<D.length;B++)D[B].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(o,c,f){var u=o("../compressions"),m=o("./ZipFileWorker");f.generateWorker=function(g,y,S){var b=new m(y.streamFiles,S,y.platform,y.encodeFileName),O=0;try{g.forEach(function(k,D){O++;var B=function(M,R){var C=M||R,U=u[C];if(!U)throw new Error(C+" is not a valid compression method !");return U}(D.options.compression,y.compression),E=D.options.compressionOptions||y.compressionOptions||{},L=D.dir,w=D.date;D._compressWorker(B,E).withStreamInfo("file",{name:k,dir:L,date:w,comment:D.comment||"",unixPermissions:D.unixPermissions,dosPermissions:D.dosPermissions}).pipe(b)}),b.entriesCount=O}catch(k){b.error(k)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(o,c,f){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new u;for(var g in this)typeof this[g]!="function"&&(m[g]=this[g]);return m}}(u.prototype=o("./object")).loadAsync=o("./load"),u.support=o("./support"),u.defaults=o("./defaults"),u.version="3.10.1",u.loadAsync=function(m,g){return new u().loadAsync(m,g)},u.external=o("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(o,c,f){var u=o("./utils"),m=o("./external"),g=o("./utf8"),y=o("./zipEntries"),S=o("./stream/Crc32Probe"),b=o("./nodejsUtils");function O(k){return new m.Promise(function(D,B){var E=k.decompressed.getContentWorker().pipe(new S);E.on("error",function(L){B(L)}).on("end",function(){E.streamInfo.crc32!==k.decompressed.crc32?B(new Error("Corrupted zip : CRC32 mismatch")):D()}).resume()})}c.exports=function(k,D){var B=this;return D=u.extend(D||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),b.isNode&&b.isStream(k)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",k,!0,D.optimizedBinaryString,D.base64).then(function(E){var L=new y(D);return L.load(E),L}).then(function(E){var L=[m.Promise.resolve(E)],w=E.files;if(D.checkCRC32)for(var M=0;M<w.length;M++)L.push(O(w[M]));return m.Promise.all(L)}).then(function(E){for(var L=E.shift(),w=L.files,M=0;M<w.length;M++){var R=w[M],C=R.fileNameStr,U=u.resolve(R.fileNameStr);B.file(U,R.decompressed,{binary:!0,optimizedBinaryString:!0,date:R.date,dir:R.dir,comment:R.fileCommentStr.length?R.fileCommentStr:null,unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions,createFolders:D.createFolders}),R.dir||(B.file(U).unsafeOriginalName=C)}return L.zipComment.length&&(B.comment=L.zipComment),B})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(o,c,f){var u=o("../utils"),m=o("../stream/GenericWorker");function g(y,S){m.call(this,"Nodejs stream input adapter for "+y),this._upstreamEnded=!1,this._bindStream(S)}u.inherits(g,m),g.prototype._bindStream=function(y){var S=this;(this._stream=y).pause(),y.on("data",function(b){S.push({data:b,meta:{percent:0}})}).on("error",function(b){S.isPaused?this.generatedError=b:S.error(b)}).on("end",function(){S.isPaused?S._upstreamEnded=!0:S.end()})},g.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(o,c,f){var u=o("readable-stream").Readable;function m(g,y,S){u.call(this,y),this._helper=g;var b=this;g.on("data",function(O,k){b.push(O)||b._helper.pause(),S&&S(k)}).on("error",function(O){b.emit("error",O)}).on("end",function(){b.push(null)})}o("../utils").inherits(m,u),m.prototype._read=function(){this._helper.resume()},c.exports=m},{"../utils":32,"readable-stream":16}],14:[function(o,c,f){c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,m);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,m)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var m=new Buffer(u);return m.fill(0),m},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(o,c,f){function u(U,F,X){var K,Z=g.getTypeOf(F),ct=g.extend(X||{},b);ct.date=ct.date||new Date,ct.compression!==null&&(ct.compression=ct.compression.toUpperCase()),typeof ct.unixPermissions=="string"&&(ct.unixPermissions=parseInt(ct.unixPermissions,8)),ct.unixPermissions&&16384&ct.unixPermissions&&(ct.dir=!0),ct.dosPermissions&&16&ct.dosPermissions&&(ct.dir=!0),ct.dir&&(U=w(U)),ct.createFolders&&(K=L(U))&&M.call(this,K,!0);var Rt=Z==="string"&&ct.binary===!1&&ct.base64===!1;X&&X.binary!==void 0||(ct.binary=!Rt),(F instanceof O&&F.uncompressedSize===0||ct.dir||!F||F.length===0)&&(ct.base64=!1,ct.binary=!0,F="",ct.compression="STORE",Z="string");var tt=null;tt=F instanceof O||F instanceof y?F:B.isNode&&B.isStream(F)?new E(U,F):g.prepareContent(U,F,ct.binary,ct.optimizedBinaryString,ct.base64);var _t=new k(U,tt,ct);this.files[U]=_t}var m=o("./utf8"),g=o("./utils"),y=o("./stream/GenericWorker"),S=o("./stream/StreamHelper"),b=o("./defaults"),O=o("./compressedObject"),k=o("./zipObject"),D=o("./generate"),B=o("./nodejsUtils"),E=o("./nodejs/NodejsStreamInputAdapter"),L=function(U){U.slice(-1)==="/"&&(U=U.substring(0,U.length-1));var F=U.lastIndexOf("/");return 0<F?U.substring(0,F):""},w=function(U){return U.slice(-1)!=="/"&&(U+="/"),U},M=function(U,F){return F=F!==void 0?F:b.createFolders,U=w(U),this.files[U]||u.call(this,U,null,{dir:!0,createFolders:F}),this.files[U]};function R(U){return Object.prototype.toString.call(U)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(U){var F,X,K;for(F in this.files)K=this.files[F],(X=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&U(X,K)},filter:function(U){var F=[];return this.forEach(function(X,K){U(X,K)&&F.push(K)}),F},file:function(U,F,X){if(arguments.length!==1)return U=this.root+U,u.call(this,U,F,X),this;if(R(U)){var K=U;return this.filter(function(ct,Rt){return!Rt.dir&&K.test(ct)})}var Z=this.files[this.root+U];return Z&&!Z.dir?Z:null},folder:function(U){if(!U)return this;if(R(U))return this.filter(function(Z,ct){return ct.dir&&U.test(Z)});var F=this.root+U,X=M.call(this,F),K=this.clone();return K.root=X.name,K},remove:function(U){U=this.root+U;var F=this.files[U];if(F||(U.slice(-1)!=="/"&&(U+="/"),F=this.files[U]),F&&!F.dir)delete this.files[U];else for(var X=this.filter(function(Z,ct){return ct.name.slice(0,U.length)===U}),K=0;K<X.length;K++)delete this.files[X[K].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(U){var F,X={};try{if((X=g.extend(U||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=X.type.toLowerCase(),X.compression=X.compression.toUpperCase(),X.type==="binarystring"&&(X.type="string"),!X.type)throw new Error("No output type specified.");g.checkSupport(X.type),X.platform!=="darwin"&&X.platform!=="freebsd"&&X.platform!=="linux"&&X.platform!=="sunos"||(X.platform="UNIX"),X.platform==="win32"&&(X.platform="DOS");var K=X.comment||this.comment||"";F=D.generateWorker(this,X,K)}catch(Z){(F=new y("error")).error(Z)}return new S(F,X.type||"string",X.mimeType)},generateAsync:function(U,F){return this.generateInternalStream(U).accumulate(F)},generateNodeStream:function(U,F){return(U=U||{}).type||(U.type="nodebuffer"),this.generateInternalStream(U).toNodejsStream(F)}};c.exports=C},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(o,c,f){c.exports=o("stream")},{stream:void 0}],17:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g);for(var y=0;y<this.data.length;y++)g[y]=255&g[y]}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data[this.zero+g]},m.prototype.lastIndexOfSignature=function(g){for(var y=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===y&&this.data[k+1]===S&&this.data[k+2]===b&&this.data[k+3]===O)return k-this.zero;return-1},m.prototype.readAndCheckSignature=function(g){var y=g.charCodeAt(0),S=g.charCodeAt(1),b=g.charCodeAt(2),O=g.charCodeAt(3),k=this.readData(4);return y===k[0]&&S===k[1]&&b===k[2]&&O===k[3]},m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var y=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,y},c.exports=m},{"../utils":32,"./DataReader":18}],18:[function(o,c,f){var u=o("../utils");function m(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var y,S=0;for(this.checkOffset(g),y=this.index+g-1;y>=this.index;y--)S=(S<<8)+this.byteAt(y);return this.index+=g,S},readString:function(g){return u.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},c.exports=m},{"../utils":32}],19:[function(o,c,f){var u=o("./Uint8ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){this.checkOffset(g);var y=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,y},c.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(o,c,f){var u=o("./DataReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},m.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},m.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},m.prototype.readData=function(g){this.checkOffset(g);var y=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,y},c.exports=m},{"../utils":32,"./DataReader":18}],21:[function(o,c,f){var u=o("./ArrayReader");function m(g){u.call(this,g)}o("../utils").inherits(m,u),m.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var y=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,y},c.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(o,c,f){var u=o("../utils"),m=o("../support"),g=o("./ArrayReader"),y=o("./StringReader"),S=o("./NodeBufferReader"),b=o("./Uint8ArrayReader");c.exports=function(O){var k=u.getTypeOf(O);return u.checkSupport(k),k!=="string"||m.uint8array?k==="nodebuffer"?new S(O):m.uint8array?new b(u.transformTo("uint8array",O)):new g(u.transformTo("array",O)):new y(O)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(o,c,f){f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(o,c,f){var u=o("./GenericWorker"),m=o("../utils");function g(y){u.call(this,"ConvertWorker to "+y),this.destType=y}m.inherits(g,u),g.prototype.processChunk=function(y){this.push({data:m.transformTo(this.destType,y.data),meta:y.meta})},c.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(o,c,f){var u=o("./GenericWorker"),m=o("../crc32");function g(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o("../utils").inherits(g,u),g.prototype.processChunk=function(y){this.streamInfo.crc32=m(y.data,this.streamInfo.crc32||0),this.push(y)},c.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(y){m.call(this,"DataLengthProbe for "+y),this.propName=y,this.withStreamInfo(y,0)}u.inherits(g,m),g.prototype.processChunk=function(y){if(y){var S=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=S+y.data.length}m.prototype.processChunk.call(this,y)},c.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(o,c,f){var u=o("../utils"),m=o("./GenericWorker");function g(y){m.call(this,"DataWorker");var S=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,y.then(function(b){S.dataIsReady=!0,S.data=b,S.max=b&&b.length||0,S.type=u.getTypeOf(b),S.isPaused||S._tickAndRepeat()},function(b){S.error(b)})}u.inherits(g,m),g.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var y=null,S=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":y=this.data.substring(this.index,S);break;case"uint8array":y=this.data.subarray(this.index,S);break;case"array":case"nodebuffer":y=this.data.slice(this.index,S)}return this.index=S,this.push({data:y,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(o,c,f){function u(m){this.name=m||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,g){return this._listeners[m].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,g){if(this._listeners[m])for(var y=0;y<this._listeners[m].length;y++)this._listeners[m][y].call(this,g)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var g=this;return m.on("data",function(y){g.processChunk(y)}),m.on("end",function(){g.end()}),m.on("error",function(y){g.error(y)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,g){return this.extraStreamInfo[m]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},c.exports=u},{}],29:[function(o,c,f){var u=o("../utils"),m=o("./ConvertWorker"),g=o("./GenericWorker"),y=o("../base64"),S=o("../support"),b=o("../external"),O=null;if(S.nodestream)try{O=o("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(B,E){return new b.Promise(function(L,w){var M=[],R=B._internalType,C=B._outputType,U=B._mimeType;B.on("data",function(F,X){M.push(F),E&&E(X)}).on("error",function(F){M=[],w(F)}).on("end",function(){try{var F=function(X,K,Z){switch(X){case"blob":return u.newBlob(u.transformTo("arraybuffer",K),Z);case"base64":return y.encode(K);default:return u.transformTo(X,K)}}(C,function(X,K){var Z,ct=0,Rt=null,tt=0;for(Z=0;Z<K.length;Z++)tt+=K[Z].length;switch(X){case"string":return K.join("");case"array":return Array.prototype.concat.apply([],K);case"uint8array":for(Rt=new Uint8Array(tt),Z=0;Z<K.length;Z++)Rt.set(K[Z],ct),ct+=K[Z].length;return Rt;case"nodebuffer":return Buffer.concat(K);default:throw new Error("concat : unsupported type '"+X+"'")}}(R,M),U);L(F)}catch(X){w(X)}M=[]}).resume()})}function D(B,E,L){var w=E;switch(E){case"blob":case"arraybuffer":w="uint8array";break;case"base64":w="string"}try{this._internalType=w,this._outputType=E,this._mimeType=L,u.checkSupport(w),this._worker=B.pipe(new m(w)),B.lock()}catch(M){this._worker=new g("error"),this._worker.error(M)}}D.prototype={accumulate:function(B){return k(this,B)},on:function(B,E){var L=this;return B==="data"?this._worker.on(B,function(w){E.call(L,w.data,w.meta)}):this._worker.on(B,function(){u.delay(E,arguments,L)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(B){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new O(this,{objectMode:this._outputType!=="nodebuffer"},B)}},c.exports=D},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(o,c,f){if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f.nodebuffer=typeof Buffer<"u",f.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")f.blob=!1;else{var u=new ArrayBuffer(0);try{f.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(u),f.blob=m.getBlob("application/zip").size===0}catch{f.blob=!1}}}try{f.nodestream=!!o("readable-stream").Readable}catch{f.nodestream=!1}},{"readable-stream":16}],31:[function(o,c,f){for(var u=o("./utils"),m=o("./support"),g=o("./nodejsUtils"),y=o("./stream/GenericWorker"),S=new Array(256),b=0;b<256;b++)S[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;S[254]=S[254]=1;function O(){y.call(this,"utf-8 decode"),this.leftOver=null}function k(){y.call(this,"utf-8 encode")}f.utf8encode=function(D){return m.nodebuffer?g.newBufferFrom(D,"utf-8"):function(B){var E,L,w,M,R,C=B.length,U=0;for(M=0;M<C;M++)(64512&(L=B.charCodeAt(M)))==55296&&M+1<C&&(64512&(w=B.charCodeAt(M+1)))==56320&&(L=65536+(L-55296<<10)+(w-56320),M++),U+=L<128?1:L<2048?2:L<65536?3:4;for(E=m.uint8array?new Uint8Array(U):new Array(U),M=R=0;R<U;M++)(64512&(L=B.charCodeAt(M)))==55296&&M+1<C&&(64512&(w=B.charCodeAt(M+1)))==56320&&(L=65536+(L-55296<<10)+(w-56320),M++),L<128?E[R++]=L:(L<2048?E[R++]=192|L>>>6:(L<65536?E[R++]=224|L>>>12:(E[R++]=240|L>>>18,E[R++]=128|L>>>12&63),E[R++]=128|L>>>6&63),E[R++]=128|63&L);return E}(D)},f.utf8decode=function(D){return m.nodebuffer?u.transformTo("nodebuffer",D).toString("utf-8"):function(B){var E,L,w,M,R=B.length,C=new Array(2*R);for(E=L=0;E<R;)if((w=B[E++])<128)C[L++]=w;else if(4<(M=S[w]))C[L++]=65533,E+=M-1;else{for(w&=M===2?31:M===3?15:7;1<M&&E<R;)w=w<<6|63&B[E++],M--;1<M?C[L++]=65533:w<65536?C[L++]=w:(w-=65536,C[L++]=55296|w>>10&1023,C[L++]=56320|1023&w)}return C.length!==L&&(C.subarray?C=C.subarray(0,L):C.length=L),u.applyFromCharCode(C)}(D=u.transformTo(m.uint8array?"uint8array":"array",D))},u.inherits(O,y),O.prototype.processChunk=function(D){var B=u.transformTo(m.uint8array?"uint8array":"array",D.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var E=B;(B=new Uint8Array(E.length+this.leftOver.length)).set(this.leftOver,0),B.set(E,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var L=function(M,R){var C;for((R=R||M.length)>M.length&&(R=M.length),C=R-1;0<=C&&(192&M[C])==128;)C--;return C<0||C===0?R:C+S[M[C]]>R?C:R}(B),w=B;L!==B.length&&(m.uint8array?(w=B.subarray(0,L),this.leftOver=B.subarray(L,B.length)):(w=B.slice(0,L),this.leftOver=B.slice(L,B.length))),this.push({data:f.utf8decode(w),meta:D.meta})},O.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=O,u.inherits(k,y),k.prototype.processChunk=function(D){this.push({data:f.utf8encode(D.data),meta:D.meta})},f.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(o,c,f){var u=o("./support"),m=o("./base64"),g=o("./nodejsUtils"),y=o("./external");function S(E){return E}function b(E,L){for(var w=0;w<E.length;++w)L[w]=255&E.charCodeAt(w);return L}o("setimmediate"),f.newBlob=function(E,L){f.checkSupport("blob");try{return new Blob([E],{type:L})}catch{try{var w=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return w.append(E),w.getBlob(L)}catch{throw new Error("Bug : can't construct the Blob.")}}};var O={stringifyByChunk:function(E,L,w){var M=[],R=0,C=E.length;if(C<=w)return String.fromCharCode.apply(null,E);for(;R<C;)L==="array"||L==="nodebuffer"?M.push(String.fromCharCode.apply(null,E.slice(R,Math.min(R+w,C)))):M.push(String.fromCharCode.apply(null,E.subarray(R,Math.min(R+w,C)))),R+=w;return M.join("")},stringifyByChar:function(E){for(var L="",w=0;w<E.length;w++)L+=String.fromCharCode(E[w]);return L},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}}()}};function k(E){var L=65536,w=f.getTypeOf(E),M=!0;if(w==="uint8array"?M=O.applyCanBeUsed.uint8array:w==="nodebuffer"&&(M=O.applyCanBeUsed.nodebuffer),M)for(;1<L;)try{return O.stringifyByChunk(E,w,L)}catch{L=Math.floor(L/2)}return O.stringifyByChar(E)}function D(E,L){for(var w=0;w<E.length;w++)L[w]=E[w];return L}f.applyFromCharCode=k;var B={};B.string={string:S,array:function(E){return b(E,new Array(E.length))},arraybuffer:function(E){return B.string.uint8array(E).buffer},uint8array:function(E){return b(E,new Uint8Array(E.length))},nodebuffer:function(E){return b(E,g.allocBuffer(E.length))}},B.array={string:k,array:S,arraybuffer:function(E){return new Uint8Array(E).buffer},uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(E)}},B.arraybuffer={string:function(E){return k(new Uint8Array(E))},array:function(E){return D(new Uint8Array(E),new Array(E.byteLength))},arraybuffer:S,uint8array:function(E){return new Uint8Array(E)},nodebuffer:function(E){return g.newBufferFrom(new Uint8Array(E))}},B.uint8array={string:k,array:function(E){return D(E,new Array(E.length))},arraybuffer:function(E){return E.buffer},uint8array:S,nodebuffer:function(E){return g.newBufferFrom(E)}},B.nodebuffer={string:k,array:function(E){return D(E,new Array(E.length))},arraybuffer:function(E){return B.nodebuffer.uint8array(E).buffer},uint8array:function(E){return D(E,new Uint8Array(E.length))},nodebuffer:S},f.transformTo=function(E,L){if(L=L||"",!E)return L;f.checkSupport(E);var w=f.getTypeOf(L);return B[w][E](L)},f.resolve=function(E){for(var L=E.split("/"),w=[],M=0;M<L.length;M++){var R=L[M];R==="."||R===""&&M!==0&&M!==L.length-1||(R===".."?w.pop():w.push(R))}return w.join("/")},f.getTypeOf=function(E){return typeof E=="string"?"string":Object.prototype.toString.call(E)==="[object Array]"?"array":u.nodebuffer&&g.isBuffer(E)?"nodebuffer":u.uint8array&&E instanceof Uint8Array?"uint8array":u.arraybuffer&&E instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(E){if(!u[E.toLowerCase()])throw new Error(E+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(E){var L,w,M="";for(w=0;w<(E||"").length;w++)M+="\\x"+((L=E.charCodeAt(w))<16?"0":"")+L.toString(16).toUpperCase();return M},f.delay=function(E,L,w){setImmediate(function(){E.apply(w||null,L||[])})},f.inherits=function(E,L){function w(){}w.prototype=L.prototype,E.prototype=new w},f.extend=function(){var E,L,w={};for(E=0;E<arguments.length;E++)for(L in arguments[E])Object.prototype.hasOwnProperty.call(arguments[E],L)&&w[L]===void 0&&(w[L]=arguments[E][L]);return w},f.prepareContent=function(E,L,w,M,R){return y.Promise.resolve(L).then(function(C){return u.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new y.Promise(function(U,F){var X=new FileReader;X.onload=function(K){U(K.target.result)},X.onerror=function(K){F(K.target.error)},X.readAsArrayBuffer(C)}):C}).then(function(C){var U=f.getTypeOf(C);return U?(U==="arraybuffer"?C=f.transformTo("uint8array",C):U==="string"&&(R?C=m.decode(C):w&&M!==!0&&(C=function(F){return b(F,u.uint8array?new Uint8Array(F.length):new Array(F.length))}(C))),C):y.Promise.reject(new Error("Can't read the data of '"+E+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./signature"),y=o("./zipEntry"),S=o("./support");function b(O){this.files=[],this.loadOptions=O}b.prototype={checkSignature:function(O){if(!this.reader.readAndCheckSignature(O)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(k)+", expected "+m.pretty(O)+")")}},isSignature:function(O,k){var D=this.reader.index;this.reader.setIndex(O);var B=this.reader.readString(4)===k;return this.reader.setIndex(D),B},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var O=this.reader.readData(this.zipCommentLength),k=S.uint8array?"uint8array":"array",D=m.transformTo(k,O);this.zipComment=this.loadOptions.decodeFileName(D)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var O,k,D,B=this.zip64EndOfCentralSize-44;0<B;)O=this.reader.readInt(2),k=this.reader.readInt(4),D=this.reader.readData(k),this.zip64ExtensibleData[O]={id:O,length:k,value:D}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var O,k;for(O=0;O<this.files.length;O++)k=this.files[O],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var O;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(O=new y({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(O);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var O=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(O<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(O);var k=O;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(O=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(O),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var D=this.centralDirOffset+this.centralDirSize;this.zip64&&(D+=20,D+=12+this.zip64EndOfCentralSize);var B=k-D;if(0<B)this.isSignature(k,g.CENTRAL_FILE_HEADER)||(this.reader.zero=B);else if(B<0)throw new Error("Corrupted zip: missing "+Math.abs(B)+" bytes.")},prepareReader:function(O){this.reader=u(O)},load:function(O){this.prepareReader(O),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(o,c,f){var u=o("./reader/readerFor"),m=o("./utils"),g=o("./compressedObject"),y=o("./crc32"),S=o("./utf8"),b=o("./compressions"),O=o("./support");function k(D,B){this.options=D,this.loadOptions=B}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(D){var B,E;if(D.skip(22),this.fileNameLength=D.readInt(2),E=D.readInt(2),this.fileName=D.readData(this.fileNameLength),D.skip(E),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((B=function(L){for(var w in b)if(Object.prototype.hasOwnProperty.call(b,w)&&b[w].magic===L)return b[w];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,B,D.readData(this.compressedSize))},readCentralPart:function(D){this.versionMadeBy=D.readInt(2),D.skip(2),this.bitFlag=D.readInt(2),this.compressionMethod=D.readString(2),this.date=D.readDate(),this.crc32=D.readInt(4),this.compressedSize=D.readInt(4),this.uncompressedSize=D.readInt(4);var B=D.readInt(2);if(this.extraFieldsLength=D.readInt(2),this.fileCommentLength=D.readInt(2),this.diskNumberStart=D.readInt(2),this.internalFileAttributes=D.readInt(2),this.externalFileAttributes=D.readInt(4),this.localHeaderOffset=D.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");D.skip(B),this.readExtraFields(D),this.parseZIP64ExtraField(D),this.fileComment=D.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var D=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),D==0&&(this.dosPermissions=63&this.externalFileAttributes),D==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var D=u(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=D.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=D.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=D.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=D.readInt(4))}},readExtraFields:function(D){var B,E,L,w=D.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});D.index+4<w;)B=D.readInt(2),E=D.readInt(2),L=D.readData(E),this.extraFields[B]={id:B,length:E,value:L};D.setIndex(w)},handleUTF8:function(){var D=O.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=S.utf8decode(this.fileName),this.fileCommentStr=S.utf8decode(this.fileComment);else{var B=this.findExtraFieldUnicodePath();if(B!==null)this.fileNameStr=B;else{var E=m.transformTo(D,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(E)}var L=this.findExtraFieldUnicodeComment();if(L!==null)this.fileCommentStr=L;else{var w=m.transformTo(D,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(w)}}},findExtraFieldUnicodePath:function(){var D=this.extraFields[28789];if(D){var B=u(D.value);return B.readInt(1)!==1||y(this.fileName)!==B.readInt(4)?null:S.utf8decode(B.readData(D.length-5))}return null},findExtraFieldUnicodeComment:function(){var D=this.extraFields[25461];if(D){var B=u(D.value);return B.readInt(1)!==1||y(this.fileComment)!==B.readInt(4)?null:S.utf8decode(B.readData(D.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(o,c,f){function u(B,E,L){this.name=B,this.dir=L.dir,this.date=L.date,this.comment=L.comment,this.unixPermissions=L.unixPermissions,this.dosPermissions=L.dosPermissions,this._data=E,this._dataBinary=L.binary,this.options={compression:L.compression,compressionOptions:L.compressionOptions}}var m=o("./stream/StreamHelper"),g=o("./stream/DataWorker"),y=o("./utf8"),S=o("./compressedObject"),b=o("./stream/GenericWorker");u.prototype={internalStream:function(B){var E=null,L="string";try{if(!B)throw new Error("No output type specified.");var w=(L=B.toLowerCase())==="string"||L==="text";L!=="binarystring"&&L!=="text"||(L="string"),E=this._decompressWorker();var M=!this._dataBinary;M&&!w&&(E=E.pipe(new y.Utf8EncodeWorker)),!M&&w&&(E=E.pipe(new y.Utf8DecodeWorker))}catch(R){(E=new b("error")).error(R)}return new m(E,L,"")},async:function(B,E){return this.internalStream(B).accumulate(E)},nodeStream:function(B,E){return this.internalStream(B||"nodebuffer").toNodejsStream(E)},_compressWorker:function(B,E){if(this._data instanceof S&&this._data.compression.magic===B.magic)return this._data.getCompressedWorker();var L=this._decompressWorker();return this._dataBinary||(L=L.pipe(new y.Utf8EncodeWorker)),S.createWorkerFrom(L,B,E)},_decompressWorker:function(){return this._data instanceof S?this._data.getContentWorker():this._data instanceof b?this._data:new g(this._data)}};for(var O=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},D=0;D<O.length;D++)u.prototype[O[D]]=k;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(o,c,f){(function(u){var m,g,y=u.MutationObserver||u.WebKitMutationObserver;if(y){var S=0,b=new y(B),O=u.document.createTextNode("");b.observe(O,{characterData:!0}),m=function(){O.data=S=++S%2}}else if(u.setImmediate||u.MessageChannel===void 0)m="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var E=u.document.createElement("script");E.onreadystatechange=function(){B(),E.onreadystatechange=null,E.parentNode.removeChild(E),E=null},u.document.documentElement.appendChild(E)}:function(){setTimeout(B,0)};else{var k=new u.MessageChannel;k.port1.onmessage=B,m=function(){k.port2.postMessage(0)}}var D=[];function B(){var E,L;g=!0;for(var w=D.length;w;){for(L=D,D=[],E=-1;++E<w;)L[E]();w=D.length}g=!1}c.exports=function(E){D.push(E)!==1||g||m()}}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(o,c,f){var u=o("immediate");function m(){}var g={},y=["REJECTED"],S=["FULFILLED"],b=["PENDING"];function O(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,w!==m&&E(this,w)}function k(w,M,R){this.promise=w,typeof M=="function"&&(this.onFulfilled=M,this.callFulfilled=this.otherCallFulfilled),typeof R=="function"&&(this.onRejected=R,this.callRejected=this.otherCallRejected)}function D(w,M,R){u(function(){var C;try{C=M(R)}catch(U){return g.reject(w,U)}C===w?g.reject(w,new TypeError("Cannot resolve promise with itself")):g.resolve(w,C)})}function B(w){var M=w&&w.then;if(w&&(typeof w=="object"||typeof w=="function")&&typeof M=="function")return function(){M.apply(w,arguments)}}function E(w,M){var R=!1;function C(X){R||(R=!0,g.reject(w,X))}function U(X){R||(R=!0,g.resolve(w,X))}var F=L(function(){M(U,C)});F.status==="error"&&C(F.value)}function L(w,M){var R={};try{R.value=w(M),R.status="success"}catch(C){R.status="error",R.value=C}return R}(c.exports=O).prototype.finally=function(w){if(typeof w!="function")return this;var M=this.constructor;return this.then(function(R){return M.resolve(w()).then(function(){return R})},function(R){return M.resolve(w()).then(function(){throw R})})},O.prototype.catch=function(w){return this.then(null,w)},O.prototype.then=function(w,M){if(typeof w!="function"&&this.state===S||typeof M!="function"&&this.state===y)return this;var R=new this.constructor(m);return this.state!==b?D(R,this.state===S?w:M,this.outcome):this.queue.push(new k(R,w,M)),R},k.prototype.callFulfilled=function(w){g.resolve(this.promise,w)},k.prototype.otherCallFulfilled=function(w){D(this.promise,this.onFulfilled,w)},k.prototype.callRejected=function(w){g.reject(this.promise,w)},k.prototype.otherCallRejected=function(w){D(this.promise,this.onRejected,w)},g.resolve=function(w,M){var R=L(B,M);if(R.status==="error")return g.reject(w,R.value);var C=R.value;if(C)E(w,C);else{w.state=S,w.outcome=M;for(var U=-1,F=w.queue.length;++U<F;)w.queue[U].callFulfilled(M)}return w},g.reject=function(w,M){w.state=y,w.outcome=M;for(var R=-1,C=w.queue.length;++R<C;)w.queue[R].callRejected(M);return w},O.resolve=function(w){return w instanceof this?w:g.resolve(new this(m),w)},O.reject=function(w){var M=new this(m);return g.reject(M,w)},O.all=function(w){var M=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=w.length,C=!1;if(!R)return this.resolve([]);for(var U=new Array(R),F=0,X=-1,K=new this(m);++X<R;)Z(w[X],X);return K;function Z(ct,Rt){M.resolve(ct).then(function(tt){U[Rt]=tt,++F!==R||C||(C=!0,g.resolve(K,U))},function(tt){C||(C=!0,g.reject(K,tt))})}},O.race=function(w){var M=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var R=w.length,C=!1;if(!R)return this.resolve([]);for(var U=-1,F=new this(m);++U<R;)X=w[U],M.resolve(X).then(function(K){C||(C=!0,g.resolve(F,K))},function(K){C||(C=!0,g.reject(F,K))});var X;return F}},{immediate:36}],38:[function(o,c,f){var u={};(0,o("./lib/utils/common").assign)(u,o("./lib/deflate"),o("./lib/inflate"),o("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(o,c,f){var u=o("./zlib/deflate"),m=o("./utils/common"),g=o("./utils/strings"),y=o("./zlib/messages"),S=o("./zlib/zstream"),b=Object.prototype.toString,O=0,k=-1,D=0,B=8;function E(w){if(!(this instanceof E))return new E(w);this.options=m.assign({level:k,method:B,chunkSize:16384,windowBits:15,memLevel:8,strategy:D,to:""},w||{});var M=this.options;M.raw&&0<M.windowBits?M.windowBits=-M.windowBits:M.gzip&&0<M.windowBits&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new S,this.strm.avail_out=0;var R=u.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(R!==O)throw new Error(y[R]);if(M.header&&u.deflateSetHeader(this.strm,M.header),M.dictionary){var C;if(C=typeof M.dictionary=="string"?g.string2buf(M.dictionary):b.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,(R=u.deflateSetDictionary(this.strm,C))!==O)throw new Error(y[R]);this._dict_set=!0}}function L(w,M){var R=new E(M);if(R.push(w,!0),R.err)throw R.msg||y[R.err];return R.result}E.prototype.push=function(w,M){var R,C,U=this.strm,F=this.options.chunkSize;if(this.ended)return!1;C=M===~~M?M:M===!0?4:0,typeof w=="string"?U.input=g.string2buf(w):b.call(w)==="[object ArrayBuffer]"?U.input=new Uint8Array(w):U.input=w,U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0&&(U.output=new m.Buf8(F),U.next_out=0,U.avail_out=F),(R=u.deflate(U,C))!==1&&R!==O)return this.onEnd(R),!(this.ended=!0);U.avail_out!==0&&(U.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(m.shrinkBuf(U.output,U.next_out))):this.onData(m.shrinkBuf(U.output,U.next_out)))}while((0<U.avail_in||U.avail_out===0)&&R!==1);return C===4?(R=u.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===O):C!==2||(this.onEnd(O),!(U.avail_out=0))},E.prototype.onData=function(w){this.chunks.push(w)},E.prototype.onEnd=function(w){w===O&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg},f.Deflate=E,f.deflate=L,f.deflateRaw=function(w,M){return(M=M||{}).raw=!0,L(w,M)},f.gzip=function(w,M){return(M=M||{}).gzip=!0,L(w,M)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(o,c,f){var u=o("./zlib/inflate"),m=o("./utils/common"),g=o("./utils/strings"),y=o("./zlib/constants"),S=o("./zlib/messages"),b=o("./zlib/zstream"),O=o("./zlib/gzheader"),k=Object.prototype.toString;function D(E){if(!(this instanceof D))return new D(E);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},E||{});var L=this.options;L.raw&&0<=L.windowBits&&L.windowBits<16&&(L.windowBits=-L.windowBits,L.windowBits===0&&(L.windowBits=-15)),!(0<=L.windowBits&&L.windowBits<16)||E&&E.windowBits||(L.windowBits+=32),15<L.windowBits&&L.windowBits<48&&!(15&L.windowBits)&&(L.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var w=u.inflateInit2(this.strm,L.windowBits);if(w!==y.Z_OK)throw new Error(S[w]);this.header=new O,u.inflateGetHeader(this.strm,this.header)}function B(E,L){var w=new D(L);if(w.push(E,!0),w.err)throw w.msg||S[w.err];return w.result}D.prototype.push=function(E,L){var w,M,R,C,U,F,X=this.strm,K=this.options.chunkSize,Z=this.options.dictionary,ct=!1;if(this.ended)return!1;M=L===~~L?L:L===!0?y.Z_FINISH:y.Z_NO_FLUSH,typeof E=="string"?X.input=g.binstring2buf(E):k.call(E)==="[object ArrayBuffer]"?X.input=new Uint8Array(E):X.input=E,X.next_in=0,X.avail_in=X.input.length;do{if(X.avail_out===0&&(X.output=new m.Buf8(K),X.next_out=0,X.avail_out=K),(w=u.inflate(X,y.Z_NO_FLUSH))===y.Z_NEED_DICT&&Z&&(F=typeof Z=="string"?g.string2buf(Z):k.call(Z)==="[object ArrayBuffer]"?new Uint8Array(Z):Z,w=u.inflateSetDictionary(this.strm,F)),w===y.Z_BUF_ERROR&&ct===!0&&(w=y.Z_OK,ct=!1),w!==y.Z_STREAM_END&&w!==y.Z_OK)return this.onEnd(w),!(this.ended=!0);X.next_out&&(X.avail_out!==0&&w!==y.Z_STREAM_END&&(X.avail_in!==0||M!==y.Z_FINISH&&M!==y.Z_SYNC_FLUSH)||(this.options.to==="string"?(R=g.utf8border(X.output,X.next_out),C=X.next_out-R,U=g.buf2string(X.output,R),X.next_out=C,X.avail_out=K-C,C&&m.arraySet(X.output,X.output,R,C,0),this.onData(U)):this.onData(m.shrinkBuf(X.output,X.next_out)))),X.avail_in===0&&X.avail_out===0&&(ct=!0)}while((0<X.avail_in||X.avail_out===0)&&w!==y.Z_STREAM_END);return w===y.Z_STREAM_END&&(M=y.Z_FINISH),M===y.Z_FINISH?(w=u.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===y.Z_OK):M!==y.Z_SYNC_FLUSH||(this.onEnd(y.Z_OK),!(X.avail_out=0))},D.prototype.onData=function(E){this.chunks.push(E)},D.prototype.onEnd=function(E){E===y.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},f.Inflate=D,f.inflate=B,f.inflateRaw=function(E,L){return(L=L||{}).raw=!0,B(E,L)},f.ungzip=B},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(o,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";f.assign=function(y){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var b=S.shift();if(b){if(typeof b!="object")throw new TypeError(b+"must be non-object");for(var O in b)b.hasOwnProperty(O)&&(y[O]=b[O])}}return y},f.shrinkBuf=function(y,S){return y.length===S?y:y.subarray?y.subarray(0,S):(y.length=S,y)};var m={arraySet:function(y,S,b,O,k){if(S.subarray&&y.subarray)y.set(S.subarray(b,b+O),k);else for(var D=0;D<O;D++)y[k+D]=S[b+D]},flattenChunks:function(y){var S,b,O,k,D,B;for(S=O=0,b=y.length;S<b;S++)O+=y[S].length;for(B=new Uint8Array(O),S=k=0,b=y.length;S<b;S++)D=y[S],B.set(D,k),k+=D.length;return B}},g={arraySet:function(y,S,b,O,k){for(var D=0;D<O;D++)y[k+D]=S[b+D]},flattenChunks:function(y){return[].concat.apply([],y)}};f.setTyped=function(y){y?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,m)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,g))},f.setTyped(u)},{}],42:[function(o,c,f){var u=o("./common"),m=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var y=new u.Buf8(256),S=0;S<256;S++)y[S]=252<=S?6:248<=S?5:240<=S?4:224<=S?3:192<=S?2:1;function b(O,k){if(k<65537&&(O.subarray&&g||!O.subarray&&m))return String.fromCharCode.apply(null,u.shrinkBuf(O,k));for(var D="",B=0;B<k;B++)D+=String.fromCharCode(O[B]);return D}y[254]=y[254]=1,f.string2buf=function(O){var k,D,B,E,L,w=O.length,M=0;for(E=0;E<w;E++)(64512&(D=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(B=O.charCodeAt(E+1)))==56320&&(D=65536+(D-55296<<10)+(B-56320),E++),M+=D<128?1:D<2048?2:D<65536?3:4;for(k=new u.Buf8(M),E=L=0;L<M;E++)(64512&(D=O.charCodeAt(E)))==55296&&E+1<w&&(64512&(B=O.charCodeAt(E+1)))==56320&&(D=65536+(D-55296<<10)+(B-56320),E++),D<128?k[L++]=D:(D<2048?k[L++]=192|D>>>6:(D<65536?k[L++]=224|D>>>12:(k[L++]=240|D>>>18,k[L++]=128|D>>>12&63),k[L++]=128|D>>>6&63),k[L++]=128|63&D);return k},f.buf2binstring=function(O){return b(O,O.length)},f.binstring2buf=function(O){for(var k=new u.Buf8(O.length),D=0,B=k.length;D<B;D++)k[D]=O.charCodeAt(D);return k},f.buf2string=function(O,k){var D,B,E,L,w=k||O.length,M=new Array(2*w);for(D=B=0;D<w;)if((E=O[D++])<128)M[B++]=E;else if(4<(L=y[E]))M[B++]=65533,D+=L-1;else{for(E&=L===2?31:L===3?15:7;1<L&&D<w;)E=E<<6|63&O[D++],L--;1<L?M[B++]=65533:E<65536?M[B++]=E:(E-=65536,M[B++]=55296|E>>10&1023,M[B++]=56320|1023&E)}return b(M,B)},f.utf8border=function(O,k){var D;for((k=k||O.length)>O.length&&(k=O.length),D=k-1;0<=D&&(192&O[D])==128;)D--;return D<0||D===0?k:D+y[O[D]]>k?D:k}},{"./common":41}],43:[function(o,c,f){c.exports=function(u,m,g,y){for(var S=65535&u|0,b=u>>>16&65535|0,O=0;g!==0;){for(g-=O=2e3<g?2e3:g;b=b+(S=S+m[y++]|0)|0,--O;);S%=65521,b%=65521}return S|b<<16|0}},{}],44:[function(o,c,f){c.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}},{}],45:[function(o,c,f){var u=function(){for(var m,g=[],y=0;y<256;y++){m=y;for(var S=0;S<8;S++)m=1&m?3988292384^m>>>1:m>>>1;g[y]=m}return g}();c.exports=function(m,g,y,S){var b=u,O=S+y;m^=-1;for(var k=S;k<O;k++)m=m>>>8^b[255&(m^g[k])];return-1^m}},{}],46:[function(o,c,f){var u,m=o("../utils/common"),g=o("./trees"),y=o("./adler32"),S=o("./crc32"),b=o("./messages"),O=0,k=4,D=0,B=-2,E=-1,L=4,w=2,M=8,R=9,C=286,U=30,F=19,X=2*C+1,K=15,Z=3,ct=258,Rt=ct+Z+1,tt=42,_t=113,G=1,Pt=2,Et=3,At=4;function ce(W,Jt){return W.msg=b[Jt],Jt}function re(W){return(W<<1)-(4<W?9:0)}function Ft(W){for(var Jt=W.length;0<=--Jt;)W[Jt]=0}function It(W){var Jt=W.state,jt=Jt.pending;jt>W.avail_out&&(jt=W.avail_out),jt!==0&&(m.arraySet(W.output,Jt.pending_buf,Jt.pending_out,jt,W.next_out),W.next_out+=jt,Jt.pending_out+=jt,W.total_out+=jt,W.avail_out-=jt,Jt.pending-=jt,Jt.pending===0&&(Jt.pending_out=0))}function Nt(W,Jt){g._tr_flush_block(W,0<=W.block_start?W.block_start:-1,W.strstart-W.block_start,Jt),W.block_start=W.strstart,It(W.strm)}function Pe(W,Jt){W.pending_buf[W.pending++]=Jt}function pe(W,Jt){W.pending_buf[W.pending++]=Jt>>>8&255,W.pending_buf[W.pending++]=255&Jt}function Wt(W,Jt){var jt,dt,pt=W.max_chain_length,Dt=W.strstart,ie=W.prev_length,Kt=W.nice_match,z=W.strstart>W.w_size-Rt?W.strstart-(W.w_size-Rt):0,Q=W.window,st=W.w_mask,nt=W.prev,vt=W.strstart+ct,Ut=Q[Dt+ie-1],qt=Q[Dt+ie];W.prev_length>=W.good_match&&(pt>>=2),Kt>W.lookahead&&(Kt=W.lookahead);do if(Q[(jt=Jt)+ie]===qt&&Q[jt+ie-1]===Ut&&Q[jt]===Q[Dt]&&Q[++jt]===Q[Dt+1]){Dt+=2,jt++;do;while(Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Q[++Dt]===Q[++jt]&&Dt<vt);if(dt=ct-(vt-Dt),Dt=vt-ct,ie<dt){if(W.match_start=Jt,Kt<=(ie=dt))break;Ut=Q[Dt+ie-1],qt=Q[Dt+ie]}}while((Jt=nt[Jt&st])>z&&--pt!=0);return ie<=W.lookahead?ie:W.lookahead}function $e(W){var Jt,jt,dt,pt,Dt,ie,Kt,z,Q,st,nt=W.w_size;do{if(pt=W.window_size-W.lookahead-W.strstart,W.strstart>=nt+(nt-Rt)){for(m.arraySet(W.window,W.window,nt,nt,0),W.match_start-=nt,W.strstart-=nt,W.block_start-=nt,Jt=jt=W.hash_size;dt=W.head[--Jt],W.head[Jt]=nt<=dt?dt-nt:0,--jt;);for(Jt=jt=nt;dt=W.prev[--Jt],W.prev[Jt]=nt<=dt?dt-nt:0,--jt;);pt+=nt}if(W.strm.avail_in===0)break;if(ie=W.strm,Kt=W.window,z=W.strstart+W.lookahead,Q=pt,st=void 0,st=ie.avail_in,Q<st&&(st=Q),jt=st===0?0:(ie.avail_in-=st,m.arraySet(Kt,ie.input,ie.next_in,st,z),ie.state.wrap===1?ie.adler=y(ie.adler,Kt,st,z):ie.state.wrap===2&&(ie.adler=S(ie.adler,Kt,st,z)),ie.next_in+=st,ie.total_in+=st,st),W.lookahead+=jt,W.lookahead+W.insert>=Z)for(Dt=W.strstart-W.insert,W.ins_h=W.window[Dt],W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+1])&W.hash_mask;W.insert&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[Dt+Z-1])&W.hash_mask,W.prev[Dt&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=Dt,Dt++,W.insert--,!(W.lookahead+W.insert<Z)););}while(W.lookahead<Rt&&W.strm.avail_in!==0)}function Si(W,Jt){for(var jt,dt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),jt!==0&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt)),W.match_length>=Z)if(dt=g._tr_tally(W,W.strstart-W.match_start,W.match_length-Z),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=Z){for(W.match_length--;W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart,--W.match_length!=0;);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else dt=g._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(dt&&(Nt(W,!1),W.strm.avail_out===0))return G}return W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Nt(W,!1),W.strm.avail_out===0)?G:Pt}function Oe(W,Jt){for(var jt,dt,pt;;){if(W.lookahead<Rt){if($e(W),W.lookahead<Rt&&Jt===O)return G;if(W.lookahead===0)break}if(jt=0,W.lookahead>=Z&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),W.prev_length=W.match_length,W.prev_match=W.match_start,W.match_length=Z-1,jt!==0&&W.prev_length<W.max_lazy_match&&W.strstart-jt<=W.w_size-Rt&&(W.match_length=Wt(W,jt),W.match_length<=5&&(W.strategy===1||W.match_length===Z&&4096<W.strstart-W.match_start)&&(W.match_length=Z-1)),W.prev_length>=Z&&W.match_length<=W.prev_length){for(pt=W.strstart+W.lookahead-Z,dt=g._tr_tally(W,W.strstart-1-W.prev_match,W.prev_length-Z),W.lookahead-=W.prev_length-1,W.prev_length-=2;++W.strstart<=pt&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+Z-1])&W.hash_mask,jt=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart),--W.prev_length!=0;);if(W.match_available=0,W.match_length=Z-1,W.strstart++,dt&&(Nt(W,!1),W.strm.avail_out===0))return G}else if(W.match_available){if((dt=g._tr_tally(W,0,W.window[W.strstart-1]))&&Nt(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return G}else W.match_available=1,W.strstart++,W.lookahead--}return W.match_available&&(dt=g._tr_tally(W,0,W.window[W.strstart-1]),W.match_available=0),W.insert=W.strstart<Z-1?W.strstart:Z-1,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):W.last_lit&&(Nt(W,!1),W.strm.avail_out===0)?G:Pt}function Ge(W,Jt,jt,dt,pt){this.good_length=W,this.max_lazy=Jt,this.nice_length=jt,this.max_chain=dt,this.func=pt}function pi(){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=M,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 m.Buf16(2*X),this.dyn_dtree=new m.Buf16(2*(2*U+1)),this.bl_tree=new m.Buf16(2*(2*F+1)),Ft(this.dyn_ltree),Ft(this.dyn_dtree),Ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(K+1),this.heap=new m.Buf16(2*C+1),Ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*C+1),Ft(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 Di(W){var Jt;return W&&W.state?(W.total_in=W.total_out=0,W.data_type=w,(Jt=W.state).pending=0,Jt.pending_out=0,Jt.wrap<0&&(Jt.wrap=-Jt.wrap),Jt.status=Jt.wrap?tt:_t,W.adler=Jt.wrap===2?0:1,Jt.last_flush=O,g._tr_init(Jt),D):ce(W,B)}function mn(W){var Jt=Di(W);return Jt===D&&function(jt){jt.window_size=2*jt.w_size,Ft(jt.head),jt.max_lazy_match=u[jt.level].max_lazy,jt.good_match=u[jt.level].good_length,jt.nice_match=u[jt.level].nice_length,jt.max_chain_length=u[jt.level].max_chain,jt.strstart=0,jt.block_start=0,jt.lookahead=0,jt.insert=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,jt.ins_h=0}(W.state),Jt}function Qi(W,Jt,jt,dt,pt,Dt){if(!W)return B;var ie=1;if(Jt===E&&(Jt=6),dt<0?(ie=0,dt=-dt):15<dt&&(ie=2,dt-=16),pt<1||R<pt||jt!==M||dt<8||15<dt||Jt<0||9<Jt||Dt<0||L<Dt)return ce(W,B);dt===8&&(dt=9);var Kt=new pi;return(W.state=Kt).strm=W,Kt.wrap=ie,Kt.gzhead=null,Kt.w_bits=dt,Kt.w_size=1<<Kt.w_bits,Kt.w_mask=Kt.w_size-1,Kt.hash_bits=pt+7,Kt.hash_size=1<<Kt.hash_bits,Kt.hash_mask=Kt.hash_size-1,Kt.hash_shift=~~((Kt.hash_bits+Z-1)/Z),Kt.window=new m.Buf8(2*Kt.w_size),Kt.head=new m.Buf16(Kt.hash_size),Kt.prev=new m.Buf16(Kt.w_size),Kt.lit_bufsize=1<<pt+6,Kt.pending_buf_size=4*Kt.lit_bufsize,Kt.pending_buf=new m.Buf8(Kt.pending_buf_size),Kt.d_buf=1*Kt.lit_bufsize,Kt.l_buf=3*Kt.lit_bufsize,Kt.level=Jt,Kt.strategy=Dt,Kt.method=jt,mn(W)}u=[new Ge(0,0,0,0,function(W,Jt){var jt=65535;for(jt>W.pending_buf_size-5&&(jt=W.pending_buf_size-5);;){if(W.lookahead<=1){if($e(W),W.lookahead===0&&Jt===O)return G;if(W.lookahead===0)break}W.strstart+=W.lookahead,W.lookahead=0;var dt=W.block_start+jt;if((W.strstart===0||W.strstart>=dt)&&(W.lookahead=W.strstart-dt,W.strstart=dt,Nt(W,!1),W.strm.avail_out===0)||W.strstart-W.block_start>=W.w_size-Rt&&(Nt(W,!1),W.strm.avail_out===0))return G}return W.insert=0,Jt===k?(Nt(W,!0),W.strm.avail_out===0?Et:At):(W.strstart>W.block_start&&(Nt(W,!1),W.strm.avail_out),G)}),new Ge(4,4,8,4,Si),new Ge(4,5,16,8,Si),new Ge(4,6,32,32,Si),new Ge(4,4,16,16,Oe),new Ge(8,16,32,32,Oe),new Ge(8,16,128,128,Oe),new Ge(8,32,128,256,Oe),new Ge(32,128,258,1024,Oe),new Ge(32,258,258,4096,Oe)],f.deflateInit=function(W,Jt){return Qi(W,Jt,M,15,8,0)},f.deflateInit2=Qi,f.deflateReset=mn,f.deflateResetKeep=Di,f.deflateSetHeader=function(W,Jt){return W&&W.state?W.state.wrap!==2?B:(W.state.gzhead=Jt,D):B},f.deflate=function(W,Jt){var jt,dt,pt,Dt;if(!W||!W.state||5<Jt||Jt<0)return W?ce(W,B):B;if(dt=W.state,!W.output||!W.input&&W.avail_in!==0||dt.status===666&&Jt!==k)return ce(W,W.avail_out===0?-5:B);if(dt.strm=W,jt=dt.last_flush,dt.last_flush=Jt,dt.status===tt)if(dt.wrap===2)W.adler=0,Pe(dt,31),Pe(dt,139),Pe(dt,8),dt.gzhead?(Pe(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),Pe(dt,255&dt.gzhead.time),Pe(dt,dt.gzhead.time>>8&255),Pe(dt,dt.gzhead.time>>16&255),Pe(dt,dt.gzhead.time>>24&255),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,255&dt.gzhead.os),dt.gzhead.extra&&dt.gzhead.extra.length&&(Pe(dt,255&dt.gzhead.extra.length),Pe(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(W.adler=S(W.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=69):(Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,0),Pe(dt,dt.level===9?2:2<=dt.strategy||dt.level<2?4:0),Pe(dt,3),dt.status=_t);else{var ie=M+(dt.w_bits-8<<4)<<8;ie|=(2<=dt.strategy||dt.level<2?0:dt.level<6?1:dt.level===6?2:3)<<6,dt.strstart!==0&&(ie|=32),ie+=31-ie%31,dt.status=_t,pe(dt,ie),dt.strstart!==0&&(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),W.adler=1}if(dt.status===69)if(dt.gzhead.extra){for(pt=dt.pending;dt.gzindex<(65535&dt.gzhead.extra.length)&&(dt.pending!==dt.pending_buf_size||(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending!==dt.pending_buf_size));)Pe(dt,255&dt.gzhead.extra[dt.gzindex]),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=73)}else dt.status=73;if(dt.status===73)if(dt.gzhead.name){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.name.length?255&dt.gzhead.name.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.gzindex=0,dt.status=91)}else dt.status=91;if(dt.status===91)if(dt.gzhead.comment){pt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),It(W),pt=dt.pending,dt.pending===dt.pending_buf_size)){Dt=1;break}Dt=dt.gzindex<dt.gzhead.comment.length?255&dt.gzhead.comment.charCodeAt(dt.gzindex++):0,Pe(dt,Dt)}while(Dt!==0);dt.gzhead.hcrc&&dt.pending>pt&&(W.adler=S(W.adler,dt.pending_buf,dt.pending-pt,pt)),Dt===0&&(dt.status=103)}else dt.status=103;if(dt.status===103&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&It(W),dt.pending+2<=dt.pending_buf_size&&(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),W.adler=0,dt.status=_t)):dt.status=_t),dt.pending!==0){if(It(W),W.avail_out===0)return dt.last_flush=-1,D}else if(W.avail_in===0&&re(Jt)<=re(jt)&&Jt!==k)return ce(W,-5);if(dt.status===666&&W.avail_in!==0)return ce(W,-5);if(W.avail_in!==0||dt.lookahead!==0||Jt!==O&&dt.status!==666){var Kt=dt.strategy===2?function(z,Q){for(var st;;){if(z.lookahead===0&&($e(z),z.lookahead===0)){if(Q===O)return G;break}if(z.match_length=0,st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,st&&(Nt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Nt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Nt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):dt.strategy===3?function(z,Q){for(var st,nt,vt,Ut,qt=z.window;;){if(z.lookahead<=ct){if($e(z),z.lookahead<=ct&&Q===O)return G;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=Z&&0<z.strstart&&(nt=qt[vt=z.strstart-1])===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]){Ut=z.strstart+ct;do;while(nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&nt===qt[++vt]&&vt<Ut);z.match_length=ct-(Ut-vt),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=Z?(st=g._tr_tally(z,1,z.match_length-Z),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(st=g._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),st&&(Nt(z,!1),z.strm.avail_out===0))return G}return z.insert=0,Q===k?(Nt(z,!0),z.strm.avail_out===0?Et:At):z.last_lit&&(Nt(z,!1),z.strm.avail_out===0)?G:Pt}(dt,Jt):u[dt.level].func(dt,Jt);if(Kt!==Et&&Kt!==At||(dt.status=666),Kt===G||Kt===Et)return W.avail_out===0&&(dt.last_flush=-1),D;if(Kt===Pt&&(Jt===1?g._tr_align(dt):Jt!==5&&(g._tr_stored_block(dt,0,0,!1),Jt===3&&(Ft(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),It(W),W.avail_out===0))return dt.last_flush=-1,D}return Jt!==k?D:dt.wrap<=0?1:(dt.wrap===2?(Pe(dt,255&W.adler),Pe(dt,W.adler>>8&255),Pe(dt,W.adler>>16&255),Pe(dt,W.adler>>24&255),Pe(dt,255&W.total_in),Pe(dt,W.total_in>>8&255),Pe(dt,W.total_in>>16&255),Pe(dt,W.total_in>>24&255)):(pe(dt,W.adler>>>16),pe(dt,65535&W.adler)),It(W),0<dt.wrap&&(dt.wrap=-dt.wrap),dt.pending!==0?D:1)},f.deflateEnd=function(W){var Jt;return W&&W.state?(Jt=W.state.status)!==tt&&Jt!==69&&Jt!==73&&Jt!==91&&Jt!==103&&Jt!==_t&&Jt!==666?ce(W,B):(W.state=null,Jt===_t?ce(W,-3):D):B},f.deflateSetDictionary=function(W,Jt){var jt,dt,pt,Dt,ie,Kt,z,Q,st=Jt.length;if(!W||!W.state||(Dt=(jt=W.state).wrap)===2||Dt===1&&jt.status!==tt||jt.lookahead)return B;for(Dt===1&&(W.adler=y(W.adler,Jt,st,0)),jt.wrap=0,st>=jt.w_size&&(Dt===0&&(Ft(jt.head),jt.strstart=0,jt.block_start=0,jt.insert=0),Q=new m.Buf8(jt.w_size),m.arraySet(Q,Jt,st-jt.w_size,jt.w_size,0),Jt=Q,st=jt.w_size),ie=W.avail_in,Kt=W.next_in,z=W.input,W.avail_in=st,W.next_in=0,W.input=Jt,$e(jt);jt.lookahead>=Z;){for(dt=jt.strstart,pt=jt.lookahead-(Z-1);jt.ins_h=(jt.ins_h<<jt.hash_shift^jt.window[dt+Z-1])&jt.hash_mask,jt.prev[dt&jt.w_mask]=jt.head[jt.ins_h],jt.head[jt.ins_h]=dt,dt++,--pt;);jt.strstart=dt,jt.lookahead=Z-1,$e(jt)}return jt.strstart+=jt.lookahead,jt.block_start=jt.strstart,jt.insert=jt.lookahead,jt.lookahead=0,jt.match_length=jt.prev_length=Z-1,jt.match_available=0,W.next_in=Kt,W.input=z,W.avail_in=ie,jt.wrap=Dt,D},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(o,c,f){c.exports=function(){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}},{}],48:[function(o,c,f){c.exports=function(u,m){var g,y,S,b,O,k,D,B,E,L,w,M,R,C,U,F,X,K,Z,ct,Rt,tt,_t,G,Pt;g=u.state,y=u.next_in,G=u.input,S=y+(u.avail_in-5),b=u.next_out,Pt=u.output,O=b-(m-u.avail_out),k=b+(u.avail_out-257),D=g.dmax,B=g.wsize,E=g.whave,L=g.wnext,w=g.window,M=g.hold,R=g.bits,C=g.lencode,U=g.distcode,F=(1<<g.lenbits)-1,X=(1<<g.distbits)-1;t:do{R<15&&(M+=G[y++]<<R,R+=8,M+=G[y++]<<R,R+=8),K=C[M&F];e:for(;;){if(M>>>=Z=K>>>24,R-=Z,(Z=K>>>16&255)===0)Pt[b++]=65535&K;else{if(!(16&Z)){if(!(64&Z)){K=C[(65535&K)+(M&(1<<Z)-1)];continue e}if(32&Z){g.mode=12;break t}u.msg="invalid literal/length code",g.mode=30;break t}ct=65535&K,(Z&=15)&&(R<Z&&(M+=G[y++]<<R,R+=8),ct+=M&(1<<Z)-1,M>>>=Z,R-=Z),R<15&&(M+=G[y++]<<R,R+=8,M+=G[y++]<<R,R+=8),K=U[M&X];i:for(;;){if(M>>>=Z=K>>>24,R-=Z,!(16&(Z=K>>>16&255))){if(!(64&Z)){K=U[(65535&K)+(M&(1<<Z)-1)];continue i}u.msg="invalid distance code",g.mode=30;break t}if(Rt=65535&K,R<(Z&=15)&&(M+=G[y++]<<R,(R+=8)<Z&&(M+=G[y++]<<R,R+=8)),D<(Rt+=M&(1<<Z)-1)){u.msg="invalid distance too far back",g.mode=30;break t}if(M>>>=Z,R-=Z,(Z=b-O)<Rt){if(E<(Z=Rt-Z)&&g.sane){u.msg="invalid distance too far back",g.mode=30;break t}if(_t=w,(tt=0)===L){if(tt+=B-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}else if(L<Z){if(tt+=B+L-Z,(Z-=L)<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);if(tt=0,L<ct){for(ct-=Z=L;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}}}else if(tt+=L-Z,Z<ct){for(ct-=Z;Pt[b++]=w[tt++],--Z;);tt=b-Rt,_t=Pt}for(;2<ct;)Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],Pt[b++]=_t[tt++],ct-=3;ct&&(Pt[b++]=_t[tt++],1<ct&&(Pt[b++]=_t[tt++]))}else{for(tt=b-Rt;Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],Pt[b++]=Pt[tt++],2<(ct-=3););ct&&(Pt[b++]=Pt[tt++],1<ct&&(Pt[b++]=Pt[tt++]))}break}}break}}while(y<S&&b<k);y-=ct=R>>3,M&=(1<<(R-=ct<<3))-1,u.next_in=y,u.next_out=b,u.avail_in=y<S?S-y+5:5-(y-S),u.avail_out=b<k?k-b+257:257-(b-k),g.hold=M,g.bits=R}},{}],49:[function(o,c,f){var u=o("../utils/common"),m=o("./adler32"),g=o("./crc32"),y=o("./inffast"),S=o("./inftrees"),b=1,O=2,k=0,D=-2,B=1,E=852,L=592;function w(tt){return(tt>>>24&255)+(tt>>>8&65280)+((65280&tt)<<8)+((255&tt)<<24)}function M(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(tt){var _t;return tt&&tt.state?(_t=tt.state,tt.total_in=tt.total_out=_t.total=0,tt.msg="",_t.wrap&&(tt.adler=1&_t.wrap),_t.mode=B,_t.last=0,_t.havedict=0,_t.dmax=32768,_t.head=null,_t.hold=0,_t.bits=0,_t.lencode=_t.lendyn=new u.Buf32(E),_t.distcode=_t.distdyn=new u.Buf32(L),_t.sane=1,_t.back=-1,k):D}function C(tt){var _t;return tt&&tt.state?((_t=tt.state).wsize=0,_t.whave=0,_t.wnext=0,R(tt)):D}function U(tt,_t){var G,Pt;return tt&&tt.state?(Pt=tt.state,_t<0?(G=0,_t=-_t):(G=1+(_t>>4),_t<48&&(_t&=15)),_t&&(_t<8||15<_t)?D:(Pt.window!==null&&Pt.wbits!==_t&&(Pt.window=null),Pt.wrap=G,Pt.wbits=_t,C(tt))):D}function F(tt,_t){var G,Pt;return tt?(Pt=new M,(tt.state=Pt).window=null,(G=U(tt,_t))!==k&&(tt.state=null),G):D}var X,K,Z=!0;function ct(tt){if(Z){var _t;for(X=new u.Buf32(512),K=new u.Buf32(32),_t=0;_t<144;)tt.lens[_t++]=8;for(;_t<256;)tt.lens[_t++]=9;for(;_t<280;)tt.lens[_t++]=7;for(;_t<288;)tt.lens[_t++]=8;for(S(b,tt.lens,0,288,X,0,tt.work,{bits:9}),_t=0;_t<32;)tt.lens[_t++]=5;S(O,tt.lens,0,32,K,0,tt.work,{bits:5}),Z=!1}tt.lencode=X,tt.lenbits=9,tt.distcode=K,tt.distbits=5}function Rt(tt,_t,G,Pt){var Et,At=tt.state;return At.window===null&&(At.wsize=1<<At.wbits,At.wnext=0,At.whave=0,At.window=new u.Buf8(At.wsize)),Pt>=At.wsize?(u.arraySet(At.window,_t,G-At.wsize,At.wsize,0),At.wnext=0,At.whave=At.wsize):(Pt<(Et=At.wsize-At.wnext)&&(Et=Pt),u.arraySet(At.window,_t,G-Pt,Et,At.wnext),(Pt-=Et)?(u.arraySet(At.window,_t,G-Pt,Pt,0),At.wnext=Pt,At.whave=At.wsize):(At.wnext+=Et,At.wnext===At.wsize&&(At.wnext=0),At.whave<At.wsize&&(At.whave+=Et))),0}f.inflateReset=C,f.inflateReset2=U,f.inflateResetKeep=R,f.inflateInit=function(tt){return F(tt,15)},f.inflateInit2=F,f.inflate=function(tt,_t){var G,Pt,Et,At,ce,re,Ft,It,Nt,Pe,pe,Wt,$e,Si,Oe,Ge,pi,Di,mn,Qi,W,Jt,jt,dt,pt=0,Dt=new u.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!tt||!tt.state||!tt.output||!tt.input&&tt.avail_in!==0)return D;(G=tt.state).mode===12&&(G.mode=13),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Nt=G.bits,Pe=re,pe=Ft,Jt=k;t:for(;;)switch(G.mode){case B:if(G.wrap===0){G.mode=13;break}for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(2&G.wrap&&It===35615){Dt[G.check=0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0),Nt=It=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&It)<<8)+(It>>8))%31){tt.msg="incorrect header check",G.mode=30;break}if((15&It)!=8){tt.msg="unknown compression method",G.mode=30;break}if(Nt-=4,W=8+(15&(It>>>=4)),G.wbits===0)G.wbits=W;else if(W>G.wbits){tt.msg="invalid window size",G.mode=30;break}G.dmax=1<<W,tt.adler=G.check=1,G.mode=512&It?10:12,Nt=It=0;break;case 2:for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(G.flags=It,(255&G.flags)!=8){tt.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){tt.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=It>>8&1),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0,G.mode=3;case 3:for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.head&&(G.head.time=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,Dt[2]=It>>>16&255,Dt[3]=It>>>24&255,G.check=g(G.check,Dt,4,0)),Nt=It=0,G.mode=4;case 4:for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.head&&(G.head.xflags=255&It,G.head.os=It>>8),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0,G.mode=5;case 5:if(1024&G.flags){for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.length=It,G.head&&(G.head.extra_len=It),512&G.flags&&(Dt[0]=255&It,Dt[1]=It>>>8&255,G.check=g(G.check,Dt,2,0)),Nt=It=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(re<(Wt=G.length)&&(Wt=re),Wt&&(G.head&&(W=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),u.arraySet(G.head.extra,Pt,At,Wt,W)),512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,G.length-=Wt),G.length))break t;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.name+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(re===0)break t;for(Wt=0;W=Pt[At+Wt++],G.head&&W&&G.length<65536&&(G.head.comment+=String.fromCharCode(W)),W&&Wt<re;);if(512&G.flags&&(G.check=g(G.check,Pt,Wt,At)),re-=Wt,At+=Wt,W)break t}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;Nt<16;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It!==(65535&G.check)){tt.msg="header crc mismatch",G.mode=30;break}Nt=It=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),tt.adler=G.check=0,G.mode=12;break;case 10:for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}tt.adler=G.check=w(It),Nt=It=0,G.mode=11;case 11:if(G.havedict===0)return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,2;tt.adler=G.check=1,G.mode=12;case 12:if(_t===5||_t===6)break t;case 13:if(G.last){It>>>=7&Nt,Nt-=7&Nt,G.mode=27;break}for(;Nt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}switch(G.last=1&It,Nt-=1,3&(It>>>=1)){case 0:G.mode=14;break;case 1:if(ct(G),G.mode=20,_t!==6)break;It>>>=2,Nt-=2;break t;case 2:G.mode=17;break;case 3:tt.msg="invalid block type",G.mode=30}It>>>=2,Nt-=2;break;case 14:for(It>>>=7&Nt,Nt-=7&Nt;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if((65535&It)!=(It>>>16^65535)){tt.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&It,Nt=It=0,G.mode=15,_t===6)break t;case 15:G.mode=16;case 16:if(Wt=G.length){if(re<Wt&&(Wt=re),Ft<Wt&&(Wt=Ft),Wt===0)break t;u.arraySet(Et,Pt,At,Wt,ce),re-=Wt,At+=Wt,Ft-=Wt,ce+=Wt,G.length-=Wt;break}G.mode=12;break;case 17:for(;Nt<14;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(G.nlen=257+(31&It),It>>>=5,Nt-=5,G.ndist=1+(31&It),It>>>=5,Nt-=5,G.ncode=4+(15&It),It>>>=4,Nt-=4,286<G.nlen||30<G.ndist){tt.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;Nt<3;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.lens[ie[G.have++]]=7&It,It>>>=3,Nt-=3}for(;G.have<19;)G.lens[ie[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,jt={bits:G.lenbits},Jt=S(0,G.lens,0,19,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(pi<16)It>>>=Oe,Nt-=Oe,G.lens[G.have++]=pi;else{if(pi===16){for(dt=Oe+2;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It>>>=Oe,Nt-=Oe,G.have===0){tt.msg="invalid bit length repeat",G.mode=30;break}W=G.lens[G.have-1],Wt=3+(3&It),It>>>=2,Nt-=2}else if(pi===17){for(dt=Oe+3;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}Nt-=Oe,W=0,Wt=3+(7&(It>>>=Oe)),It>>>=3,Nt-=3}else{for(dt=Oe+7;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}Nt-=Oe,W=0,Wt=11+(127&(It>>>=Oe)),It>>>=7,Nt-=7}if(G.have+Wt>G.nlen+G.ndist){tt.msg="invalid bit length repeat",G.mode=30;break}for(;Wt--;)G.lens[G.have++]=W}}if(G.mode===30)break;if(G.lens[256]===0){tt.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,jt={bits:G.lenbits},Jt=S(b,G.lens,0,G.nlen,G.lencode,0,G.work,jt),G.lenbits=jt.bits,Jt){tt.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,jt={bits:G.distbits},Jt=S(O,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,jt),G.distbits=jt.bits,Jt){tt.msg="invalid distances set",G.mode=30;break}if(G.mode=20,_t===6)break t;case 20:G.mode=21;case 21:if(6<=re&&258<=Ft){tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,y(tt,pe),ce=tt.next_out,Et=tt.output,Ft=tt.avail_out,At=tt.next_in,Pt=tt.input,re=tt.avail_in,It=G.hold,Nt=G.bits,G.mode===12&&(G.back=-1);break}for(G.back=0;Ge=(pt=G.lencode[It&(1<<G.lenbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(Ge&&!(240&Ge)){for(Di=Oe,mn=Ge,Qi=pi;Ge=(pt=G.lencode[Qi+((It&(1<<Di+mn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}It>>>=Di,Nt-=Di,G.back+=Di}if(It>>>=Oe,Nt-=Oe,G.back+=Oe,G.length=pi,Ge===0){G.mode=26;break}if(32&Ge){G.back=-1,G.mode=12;break}if(64&Ge){tt.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Ge,G.mode=22;case 22:if(G.extra){for(dt=G.extra;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.length+=It&(1<<G.extra)-1,It>>>=G.extra,Nt-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Ge=(pt=G.distcode[It&(1<<G.distbits)-1])>>>16&255,pi=65535&pt,!((Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(!(240&Ge)){for(Di=Oe,mn=Ge,Qi=pi;Ge=(pt=G.distcode[Qi+((It&(1<<Di+mn)-1)>>Di)])>>>16&255,pi=65535&pt,!(Di+(Oe=pt>>>24)<=Nt);){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}It>>>=Di,Nt-=Di,G.back+=Di}if(It>>>=Oe,Nt-=Oe,G.back+=Oe,64&Ge){tt.msg="invalid distance code",G.mode=30;break}G.offset=pi,G.extra=15&Ge,G.mode=24;case 24:if(G.extra){for(dt=G.extra;Nt<dt;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}G.offset+=It&(1<<G.extra)-1,It>>>=G.extra,Nt-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){tt.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(Ft===0)break t;if(Wt=pe-Ft,G.offset>Wt){if((Wt=G.offset-Wt)>G.whave&&G.sane){tt.msg="invalid distance too far back",G.mode=30;break}$e=Wt>G.wnext?(Wt-=G.wnext,G.wsize-Wt):G.wnext-Wt,Wt>G.length&&(Wt=G.length),Si=G.window}else Si=Et,$e=ce-G.offset,Wt=G.length;for(Ft<Wt&&(Wt=Ft),Ft-=Wt,G.length-=Wt;Et[ce++]=Si[$e++],--Wt;);G.length===0&&(G.mode=21);break;case 26:if(Ft===0)break t;Et[ce++]=G.length,Ft--,G.mode=21;break;case 27:if(G.wrap){for(;Nt<32;){if(re===0)break t;re--,It|=Pt[At++]<<Nt,Nt+=8}if(pe-=Ft,tt.total_out+=pe,G.total+=pe,pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,ce-pe):m(G.check,Et,pe,ce-pe)),pe=Ft,(G.flags?It:w(It))!==G.check){tt.msg="incorrect data check",G.mode=30;break}Nt=It=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;Nt<32;){if(re===0)break t;re--,It+=Pt[At++]<<Nt,Nt+=8}if(It!==(4294967295&G.total)){tt.msg="incorrect length check",G.mode=30;break}Nt=It=0}G.mode=29;case 29:Jt=1;break t;case 30:Jt=-3;break t;case 31:return-4;case 32:default:return D}return tt.next_out=ce,tt.avail_out=Ft,tt.next_in=At,tt.avail_in=re,G.hold=It,G.bits=Nt,(G.wsize||pe!==tt.avail_out&&G.mode<30&&(G.mode<27||_t!==4))&&Rt(tt,tt.output,tt.next_out,pe-tt.avail_out)?(G.mode=31,-4):(Pe-=tt.avail_in,pe-=tt.avail_out,tt.total_in+=Pe,tt.total_out+=pe,G.total+=pe,G.wrap&&pe&&(tt.adler=G.check=G.flags?g(G.check,Et,pe,tt.next_out-pe):m(G.check,Et,pe,tt.next_out-pe)),tt.data_type=G.bits+(G.last?64:0)+(G.mode===12?128:0)+(G.mode===20||G.mode===15?256:0),(Pe==0&&pe===0||_t===4)&&Jt===k&&(Jt=-5),Jt)},f.inflateEnd=function(tt){if(!tt||!tt.state)return D;var _t=tt.state;return _t.window&&(_t.window=null),tt.state=null,k},f.inflateGetHeader=function(tt,_t){var G;return tt&&tt.state&&2&(G=tt.state).wrap?((G.head=_t).done=!1,k):D},f.inflateSetDictionary=function(tt,_t){var G,Pt=_t.length;return tt&&tt.state?(G=tt.state).wrap!==0&&G.mode!==11?D:G.mode===11&&m(1,_t,Pt,0)!==G.check?-3:Rt(tt,_t,Pt,Pt)?(G.mode=31,-4):(G.havedict=1,k):D},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(o,c,f){var u=o("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],S=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(b,O,k,D,B,E,L,w){var M,R,C,U,F,X,K,Z,ct,Rt=w.bits,tt=0,_t=0,G=0,Pt=0,Et=0,At=0,ce=0,re=0,Ft=0,It=0,Nt=null,Pe=0,pe=new u.Buf16(16),Wt=new u.Buf16(16),$e=null,Si=0;for(tt=0;tt<=15;tt++)pe[tt]=0;for(_t=0;_t<D;_t++)pe[O[k+_t]]++;for(Et=Rt,Pt=15;1<=Pt&&pe[Pt]===0;Pt--);if(Pt<Et&&(Et=Pt),Pt===0)return B[E++]=20971520,B[E++]=20971520,w.bits=1,0;for(G=1;G<Pt&&pe[G]===0;G++);for(Et<G&&(Et=G),tt=re=1;tt<=15;tt++)if(re<<=1,(re-=pe[tt])<0)return-1;if(0<re&&(b===0||Pt!==1))return-1;for(Wt[1]=0,tt=1;tt<15;tt++)Wt[tt+1]=Wt[tt]+pe[tt];for(_t=0;_t<D;_t++)O[k+_t]!==0&&(L[Wt[O[k+_t]]++]=_t);if(X=b===0?(Nt=$e=L,19):b===1?(Nt=m,Pe-=257,$e=g,Si-=257,256):(Nt=y,$e=S,-1),tt=G,F=E,ce=_t=It=0,C=-1,U=(Ft=1<<(At=Et))-1,b===1&&852<Ft||b===2&&592<Ft)return 1;for(;;){for(K=tt-ce,ct=L[_t]<X?(Z=0,L[_t]):L[_t]>X?(Z=$e[Si+L[_t]],Nt[Pe+L[_t]]):(Z=96,0),M=1<<tt-ce,G=R=1<<At;B[F+(It>>ce)+(R-=M)]=K<<24|Z<<16|ct|0,R!==0;);for(M=1<<tt-1;It&M;)M>>=1;if(M!==0?(It&=M-1,It+=M):It=0,_t++,--pe[tt]==0){if(tt===Pt)break;tt=O[k+L[_t]]}if(Et<tt&&(It&U)!==C){for(ce===0&&(ce=Et),F+=G,re=1<<(At=tt-ce);At+ce<Pt&&!((re-=pe[At+ce])<=0);)At++,re<<=1;if(Ft+=1<<At,b===1&&852<Ft||b===2&&592<Ft)return 1;B[C=It&U]=Et<<24|At<<16|F-E|0}}return It!==0&&(B[F+It]=tt-ce<<24|64<<16|0),w.bits=Et,0}},{"../utils/common":41}],51:[function(o,c,f){c.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"}},{}],52:[function(o,c,f){var u=o("../utils/common"),m=0,g=1;function y(pt){for(var Dt=pt.length;0<=--Dt;)pt[Dt]=0}var S=0,b=29,O=256,k=O+1+b,D=30,B=19,E=2*k+1,L=15,w=16,M=7,R=256,C=16,U=17,F=18,X=[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],K=[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],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ct=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Rt=new Array(2*(k+2));y(Rt);var tt=new Array(2*D);y(tt);var _t=new Array(512);y(_t);var G=new Array(256);y(G);var Pt=new Array(b);y(Pt);var Et,At,ce,re=new Array(D);function Ft(pt,Dt,ie,Kt,z){this.static_tree=pt,this.extra_bits=Dt,this.extra_base=ie,this.elems=Kt,this.max_length=z,this.has_stree=pt&&pt.length}function It(pt,Dt){this.dyn_tree=pt,this.max_code=0,this.stat_desc=Dt}function Nt(pt){return pt<256?_t[pt]:_t[256+(pt>>>7)]}function Pe(pt,Dt){pt.pending_buf[pt.pending++]=255&Dt,pt.pending_buf[pt.pending++]=Dt>>>8&255}function pe(pt,Dt,ie){pt.bi_valid>w-ie?(pt.bi_buf|=Dt<<pt.bi_valid&65535,Pe(pt,pt.bi_buf),pt.bi_buf=Dt>>w-pt.bi_valid,pt.bi_valid+=ie-w):(pt.bi_buf|=Dt<<pt.bi_valid&65535,pt.bi_valid+=ie)}function Wt(pt,Dt,ie){pe(pt,ie[2*Dt],ie[2*Dt+1])}function $e(pt,Dt){for(var ie=0;ie|=1&pt,pt>>>=1,ie<<=1,0<--Dt;);return ie>>>1}function Si(pt,Dt,ie){var Kt,z,Q=new Array(L+1),st=0;for(Kt=1;Kt<=L;Kt++)Q[Kt]=st=st+ie[Kt-1]<<1;for(z=0;z<=Dt;z++){var nt=pt[2*z+1];nt!==0&&(pt[2*z]=$e(Q[nt]++,nt))}}function Oe(pt){var Dt;for(Dt=0;Dt<k;Dt++)pt.dyn_ltree[2*Dt]=0;for(Dt=0;Dt<D;Dt++)pt.dyn_dtree[2*Dt]=0;for(Dt=0;Dt<B;Dt++)pt.bl_tree[2*Dt]=0;pt.dyn_ltree[2*R]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Ge(pt){8<pt.bi_valid?Pe(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function pi(pt,Dt,ie,Kt){var z=2*Dt,Q=2*ie;return pt[z]<pt[Q]||pt[z]===pt[Q]&&Kt[Dt]<=Kt[ie]}function Di(pt,Dt,ie){for(var Kt=pt.heap[ie],z=ie<<1;z<=pt.heap_len&&(z<pt.heap_len&&pi(Dt,pt.heap[z+1],pt.heap[z],pt.depth)&&z++,!pi(Dt,Kt,pt.heap[z],pt.depth));)pt.heap[ie]=pt.heap[z],ie=z,z<<=1;pt.heap[ie]=Kt}function mn(pt,Dt,ie){var Kt,z,Q,st,nt=0;if(pt.last_lit!==0)for(;Kt=pt.pending_buf[pt.d_buf+2*nt]<<8|pt.pending_buf[pt.d_buf+2*nt+1],z=pt.pending_buf[pt.l_buf+nt],nt++,Kt===0?Wt(pt,z,Dt):(Wt(pt,(Q=G[z])+O+1,Dt),(st=X[Q])!==0&&pe(pt,z-=Pt[Q],st),Wt(pt,Q=Nt(--Kt),ie),(st=K[Q])!==0&&pe(pt,Kt-=re[Q],st)),nt<pt.last_lit;);Wt(pt,R,Dt)}function Qi(pt,Dt){var ie,Kt,z,Q=Dt.dyn_tree,st=Dt.stat_desc.static_tree,nt=Dt.stat_desc.has_stree,vt=Dt.stat_desc.elems,Ut=-1;for(pt.heap_len=0,pt.heap_max=E,ie=0;ie<vt;ie++)Q[2*ie]!==0?(pt.heap[++pt.heap_len]=Ut=ie,pt.depth[ie]=0):Q[2*ie+1]=0;for(;pt.heap_len<2;)Q[2*(z=pt.heap[++pt.heap_len]=Ut<2?++Ut:0)]=1,pt.depth[z]=0,pt.opt_len--,nt&&(pt.static_len-=st[2*z+1]);for(Dt.max_code=Ut,ie=pt.heap_len>>1;1<=ie;ie--)Di(pt,Q,ie);for(z=vt;ie=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],Di(pt,Q,1),Kt=pt.heap[1],pt.heap[--pt.heap_max]=ie,pt.heap[--pt.heap_max]=Kt,Q[2*z]=Q[2*ie]+Q[2*Kt],pt.depth[z]=(pt.depth[ie]>=pt.depth[Kt]?pt.depth[ie]:pt.depth[Kt])+1,Q[2*ie+1]=Q[2*Kt+1]=z,pt.heap[1]=z++,Di(pt,Q,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(qt,Xt){var Ne,Ie,me,we,yi,Ei,ni=Xt.dyn_tree,bi=Xt.max_code,qr=Xt.stat_desc.static_tree,sr=Xt.stat_desc.has_stree,sn=Xt.stat_desc.extra_bits,Ao=Xt.stat_desc.extra_base,zi=Xt.stat_desc.max_length,qo=0;for(we=0;we<=L;we++)qt.bl_count[we]=0;for(ni[2*qt.heap[qt.heap_max]+1]=0,Ne=qt.heap_max+1;Ne<E;Ne++)zi<(we=ni[2*ni[2*(Ie=qt.heap[Ne])+1]+1]+1)&&(we=zi,qo++),ni[2*Ie+1]=we,bi<Ie||(qt.bl_count[we]++,yi=0,Ao<=Ie&&(yi=sn[Ie-Ao]),Ei=ni[2*Ie],qt.opt_len+=Ei*(we+yi),sr&&(qt.static_len+=Ei*(qr[2*Ie+1]+yi)));if(qo!==0){do{for(we=zi-1;qt.bl_count[we]===0;)we--;qt.bl_count[we]--,qt.bl_count[we+1]+=2,qt.bl_count[zi]--,qo-=2}while(0<qo);for(we=zi;we!==0;we--)for(Ie=qt.bl_count[we];Ie!==0;)bi<(me=qt.heap[--Ne])||(ni[2*me+1]!==we&&(qt.opt_len+=(we-ni[2*me+1])*ni[2*me],ni[2*me+1]=we),Ie--)}}(pt,Dt),Si(Q,Ut,pt.bl_count)}function W(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Dt[2*(ie+1)+1]=65535,Kt=0;Kt<=ie;Kt++)z=st,st=Dt[2*(Kt+1)+1],++nt<vt&&z===st||(nt<Ut?pt.bl_tree[2*z]+=nt:z!==0?(z!==Q&&pt.bl_tree[2*z]++,pt.bl_tree[2*C]++):nt<=10?pt.bl_tree[2*U]++:pt.bl_tree[2*F]++,Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4))}function Jt(pt,Dt,ie){var Kt,z,Q=-1,st=Dt[1],nt=0,vt=7,Ut=4;for(st===0&&(vt=138,Ut=3),Kt=0;Kt<=ie;Kt++)if(z=st,st=Dt[2*(Kt+1)+1],!(++nt<vt&&z===st)){if(nt<Ut)for(;Wt(pt,z,pt.bl_tree),--nt!=0;);else z!==0?(z!==Q&&(Wt(pt,z,pt.bl_tree),nt--),Wt(pt,C,pt.bl_tree),pe(pt,nt-3,2)):nt<=10?(Wt(pt,U,pt.bl_tree),pe(pt,nt-3,3)):(Wt(pt,F,pt.bl_tree),pe(pt,nt-11,7));Q=z,Ut=(nt=0)===st?(vt=138,3):z===st?(vt=6,3):(vt=7,4)}}y(re);var jt=!1;function dt(pt,Dt,ie,Kt){pe(pt,(S<<1)+(Kt?1:0),3),function(z,Q,st,nt){Ge(z),nt&&(Pe(z,st),Pe(z,~st)),u.arraySet(z.pending_buf,z.window,Q,st,z.pending),z.pending+=st}(pt,Dt,ie,!0)}f._tr_init=function(pt){jt||(function(){var Dt,ie,Kt,z,Q,st=new Array(L+1);for(z=Kt=0;z<b-1;z++)for(Pt[z]=Kt,Dt=0;Dt<1<<X[z];Dt++)G[Kt++]=z;for(G[Kt-1]=z,z=Q=0;z<16;z++)for(re[z]=Q,Dt=0;Dt<1<<K[z];Dt++)_t[Q++]=z;for(Q>>=7;z<D;z++)for(re[z]=Q<<7,Dt=0;Dt<1<<K[z]-7;Dt++)_t[256+Q++]=z;for(ie=0;ie<=L;ie++)st[ie]=0;for(Dt=0;Dt<=143;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(;Dt<=255;)Rt[2*Dt+1]=9,Dt++,st[9]++;for(;Dt<=279;)Rt[2*Dt+1]=7,Dt++,st[7]++;for(;Dt<=287;)Rt[2*Dt+1]=8,Dt++,st[8]++;for(Si(Rt,k+1,st),Dt=0;Dt<D;Dt++)tt[2*Dt+1]=5,tt[2*Dt]=$e(Dt,5);Et=new Ft(Rt,X,O+1,k,L),At=new Ft(tt,K,0,D,L),ce=new Ft(new Array(0),Z,0,B,M)}(),jt=!0),pt.l_desc=new It(pt.dyn_ltree,Et),pt.d_desc=new It(pt.dyn_dtree,At),pt.bl_desc=new It(pt.bl_tree,ce),pt.bi_buf=0,pt.bi_valid=0,Oe(pt)},f._tr_stored_block=dt,f._tr_flush_block=function(pt,Dt,ie,Kt){var z,Q,st=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(nt){var vt,Ut=4093624447;for(vt=0;vt<=31;vt++,Ut>>>=1)if(1&Ut&&nt.dyn_ltree[2*vt]!==0)return m;if(nt.dyn_ltree[18]!==0||nt.dyn_ltree[20]!==0||nt.dyn_ltree[26]!==0)return g;for(vt=32;vt<O;vt++)if(nt.dyn_ltree[2*vt]!==0)return g;return m}(pt)),Qi(pt,pt.l_desc),Qi(pt,pt.d_desc),st=function(nt){var vt;for(W(nt,nt.dyn_ltree,nt.l_desc.max_code),W(nt,nt.dyn_dtree,nt.d_desc.max_code),Qi(nt,nt.bl_desc),vt=B-1;3<=vt&&nt.bl_tree[2*ct[vt]+1]===0;vt--);return nt.opt_len+=3*(vt+1)+5+5+4,vt}(pt),z=pt.opt_len+3+7>>>3,(Q=pt.static_len+3+7>>>3)<=z&&(z=Q)):z=Q=ie+5,ie+4<=z&&Dt!==-1?dt(pt,Dt,ie,Kt):pt.strategy===4||Q===z?(pe(pt,2+(Kt?1:0),3),mn(pt,Rt,tt)):(pe(pt,4+(Kt?1:0),3),function(nt,vt,Ut,qt){var Xt;for(pe(nt,vt-257,5),pe(nt,Ut-1,5),pe(nt,qt-4,4),Xt=0;Xt<qt;Xt++)pe(nt,nt.bl_tree[2*ct[Xt]+1],3);Jt(nt,nt.dyn_ltree,vt-1),Jt(nt,nt.dyn_dtree,Ut-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,st+1),mn(pt,pt.dyn_ltree,pt.dyn_dtree)),Oe(pt),Kt&&Ge(pt)},f._tr_tally=function(pt,Dt,ie){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=Dt>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&Dt,pt.pending_buf[pt.l_buf+pt.last_lit]=255&ie,pt.last_lit++,Dt===0?pt.dyn_ltree[2*ie]++:(pt.matches++,Dt--,pt.dyn_ltree[2*(G[ie]+O+1)]++,pt.dyn_dtree[2*Nt(Dt)]++),pt.last_lit===pt.lit_bufsize-1},f._tr_align=function(pt){pe(pt,2,3),Wt(pt,R,Rt),function(Dt){Dt.bi_valid===16?(Pe(Dt,Dt.bi_buf),Dt.bi_buf=0,Dt.bi_valid=0):8<=Dt.bi_valid&&(Dt.pending_buf[Dt.pending++]=255&Dt.bi_buf,Dt.bi_buf>>=8,Dt.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(o,c,f){c.exports=function(){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}},{}],54:[function(o,c,f){(function(u){(function(m,g){if(!m.setImmediate){var y,S,b,O,k=1,D={},B=!1,E=m.document,L=Object.getPrototypeOf&&Object.getPrototypeOf(m);L=L&&L.setTimeout?L:m,y={}.toString.call(m.process)==="[object process]"?function(C){process.nextTick(function(){M(C)})}:function(){if(m.postMessage&&!m.importScripts){var C=!0,U=m.onmessage;return m.onmessage=function(){C=!1},m.postMessage("","*"),m.onmessage=U,C}}()?(O="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",R,!1):m.attachEvent("onmessage",R),function(C){m.postMessage(O+C,"*")}):m.MessageChannel?((b=new MessageChannel).port1.onmessage=function(C){M(C.data)},function(C){b.port2.postMessage(C)}):E&&"onreadystatechange"in E.createElement("script")?(S=E.documentElement,function(C){var U=E.createElement("script");U.onreadystatechange=function(){M(C),U.onreadystatechange=null,S.removeChild(U),U=null},S.appendChild(U)}):function(C){setTimeout(M,0,C)},L.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var U=new Array(arguments.length-1),F=0;F<U.length;F++)U[F]=arguments[F+1];var X={callback:C,args:U};return D[k]=X,y(k),k++},L.clearImmediate=w}function w(C){delete D[C]}function M(C){if(B)setTimeout(M,0,C);else{var U=D[C];if(U){B=!0;try{(function(F){var X=F.callback,K=F.args;switch(K.length){case 0:X();break;case 1:X(K[0]);break;case 2:X(K[0],K[1]);break;case 3:X(K[0],K[1],K[2]);break;default:X.apply(g,K)}})(U)}finally{w(C),B=!1}}}}function R(C){C.source===m&&typeof C.data=="string"&&C.data.indexOf(O)===0&&M(+C.data.slice(O.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof Er<"u"?Er:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Cf);var dm=Cf.exports;const pm=tc(dm);var Af={exports:{}};(function(x,a){(function(o,c){c()})(Er,function(){function o(S,b){return typeof b>"u"?b={autoBom:!1}:typeof b!="object"&&(b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(S.type)?new Blob(["\uFEFF",S],{type:S.type}):S}function c(S,b,O){var k=new XMLHttpRequest;k.open("GET",S),k.responseType="blob",k.onload=function(){y(k.response,b,O)},k.onerror=function(){},k.send()}function f(S){var b=new XMLHttpRequest;b.open("HEAD",S,!1);try{b.send()}catch{}return 200<=b.status&&299>=b.status}function u(S){try{S.dispatchEvent(new MouseEvent("click"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),S.dispatchEvent(b)}}var m=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Er=="object"&&Er.global===Er?Er:void 0,g=m.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),y=m.saveAs||(typeof window!="object"||window!==m?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(S,b,O){var k=m.URL||m.webkitURL,D=document.createElement("a");b=b||S.name||"download",D.download=b,D.rel="noopener",typeof S=="string"?(D.href=S,D.origin===location.origin?u(D):f(D.href)?c(S,b,O):u(D,D.target="_blank")):(D.href=k.createObjectURL(S),setTimeout(function(){k.revokeObjectURL(D.href)},4e4),setTimeout(function(){u(D)},0))}:"msSaveOrOpenBlob"in navigator?function(S,b,O){if(b=b||S.name||"download",typeof S!="string")navigator.msSaveOrOpenBlob(o(S,O),b);else if(f(S))c(S,b,O);else{var k=document.createElement("a");k.href=S,k.target="_blank",setTimeout(function(){u(k)})}}:function(S,b,O,k){if(k=k||open("","_blank"),k&&(k.document.title=k.document.body.innerText="downloading..."),typeof S=="string")return c(S,b,O);var D=S.type==="application/octet-stream",B=/constructor/i.test(m.HTMLElement)||m.safari,E=/CriOS\/[\d]+/.test(navigator.userAgent);if((E||D&&B||g)&&typeof FileReader<"u"){var L=new FileReader;L.onloadend=function(){var R=L.result;R=E?R:R.replace(/^data:[^;]*;/,"data:attachment/file;"),k?k.location.href=R:location=R,k=null},L.readAsDataURL(S)}else{var w=m.URL||m.webkitURL,M=w.createObjectURL(S);k?k.location=M:location.href=M,k=null,setTimeout(function(){w.revokeObjectURL(M)},4e4)}});m.saveAs=y.saveAs=y,x.exports=y})})(Af);var mm=Af.exports;const gm=tc(mm);class vm{constructor(a,o){window.mars3d&&(this.panoramicViewClass=o,this.coordinate=[{heading:0,pitch:0,stop:5},{heading:90,pitch:0,stop:5},{heading:180,pitch:0,stop:5},{heading:270,pitch:0,stop:5},{heading:0,pitch:90,stop:5},{heading:0,pitch:-90,stop:5}],this.screenshotArray=[],this.events={},this.timestamp=0,this.lat,this.lng,this.alt)}start(a=!0){var o,c;if(a){window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="none"),this.timestamp=new Date().getTime();const f=document.getElementById("app"),u=window.innerHeight,m=document.getElementById("mars3dContainer");m&&(m.style.width=u.toString()+"px",m.style.height=u.toString()+"px"),f!==null&&f.classList.add(this.panoramicViewClass);let{lat:g,lng:y,alt:S}=window.map.getCameraView();this.lat=g,this.lng=y,this.alt=S,window.map.viewer.scene.camera.frustum.fov=window.Cesium.Math.PI_OVER_THREE*1.5}this.screenshotArray&&this.coordinate?this.coordinate[(o=this.screenshotArray)==null?void 0:o.length]?window.map.setCameraView({lat:this.lat,lng:this.lng,alt:this.alt,...this.coordinate[(c=this.screenshotArray)==null?void 0:c.length]},{complete:()=>{setTimeout(()=>{var f;this.screenshot((f=this.screenshotArray)==null?void 0:f.length)},100)}}):(this.downloadImagesAsZip(),this.screenshotArray=[]):this.emit("state",{type:"error"})}async screenshot(a){const o=await window.map.expImage({download:!1}),c=window.map.container.getElementsByClassName("cesium-viewer-cesiumWidgetContainer"),f=await window.domtoimage.toPng(window.map.container,{filter:u=>u!==c[0]});this.mergeImage(o.image,f,o.width,o.height).then(u=>{var y;let m=Number(a)+1,g={src:u,name:"全景图_"+this.timestamp+"_"+m+".jpg"};this.emit("intercept",g),(y=this.screenshotArray)==null||y.push(g),this.start(!1)})}mergeImage(a,o,c,f){return new Promise((u,m)=>{const g=document.createElement("canvas");g.width=c,g.height=f;const y=g.getContext("2d");if(g&&y){const S=new Image;S.crossOrigin="Anonymous",S.onload=()=>{y.drawImage(S,0,0,c,f);const b=new Image;b.crossOrigin="Anonymous",b.onload=()=>{y.drawImage(b,0,0,c,f);const O=g.toDataURL("image/png");u(O)},b.src=o},S.src=a}else m()})}download(){this.screenshotArray&&this.screenshotArray.forEach(a=>{window.mars3d.Util.downloadBase64Image(a.name,a.src)})}async downloadImagesAsZip(){if(this.screenshotArray){const a=new pm;this.screenshotArray.forEach(c=>{const f=c.src.split(",")[1],u=atob(f),m=[];for(let S=0;S<u.length;S+=1024){const b=u.slice(S,S+1024),O=new Array(b.length);for(let D=0;D<b.length;D++)O[D]=b.charCodeAt(D);const k=new Uint8Array(O);m.push(k)}const g=new Blob(m,{type:"image/jpeg"}),y=`${c.name}`;a.file(y,g,{binary:!0})});const o=await a.generateAsync({type:"blob"});gm(o,"CHBIM-Panorama.zip"),this.emit("state",{type:"success",schedule:100}),this.init()}}init(){const a=document.getElementById("app");a&&a.classList.remove(this.panoramicViewClass);const o=document.getElementById("mars3dContainer");o&&(o.style.width="",o.style.height=""),window.map.container.getElementsByClassName("mars3d-locationbar")&&(window.map.container.getElementsByClassName("mars3d-locationbar")[0].style.display="")}on(a,o){this.events[a]?this.events[a].push(o):this.events[a]=[o]}emit(a,...o){this.events[a]!=null&&this.events[a].forEach(c=>c(...o))}off(a,o){this.events[a]=this.events[a].filter(c=>c!==o)}}function fs(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function Pf(x,a){x.prototype=Object.create(a.prototype),x.prototype.constructor=x,x.__proto__=a}/*!
2687
2687
  * GSAP 3.12.5
2688
2688
  * https://gsap.com
2689
2689
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chbim-plugins",
3
3
  "private": false,
4
- "version": "0.0.171",
4
+ "version": "0.0.172",
5
5
  "description": "此插件和chbim云平台强绑定",
6
6
  "main": "chbim-plugins.js",
7
7
  "keywords": [