>>8^F[(c^u.charCodeAt(o))&255];return c^-1}r.exports=function(u,g){if(typeof u>"u"||!u.length)return 0;var v=l.getTypeOf(u)!=="string";return v?n(g|0,u,u.length,0):m(g|0,u,u.length,0)}},{"./utils":32}],5:[function(e,r,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(e,r,s){var l=null;typeof Promise<"u"?l=Promise:l=e("lie"),r.exports={Promise:l}},{lie:37}],7:[function(e,r,s){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=e("pako"),h=e("./utils"),n=e("./stream/GenericWorker"),m=l?"uint8array":"array";s.magic="\b\0";function c(u,g){n.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=g,this.meta={}}h.inherits(c,n),c.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(m,u.data),!1)},c.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(g){u.push({data:g,meta:u.meta})}},s.compressWorker=function(u){return new c("Deflate",u)},s.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,r,s){var l=e("../utils"),a=e("../stream/GenericWorker"),h=e("../utf8"),n=e("../crc32"),m=e("../signature"),c=function(_,p){var I="",P;for(P=0;P>>8;return I},u=function(_,p){var I=_;return _||(I=p?16893:33204),(I&65535)<<16},g=function(_){return(_||0)&63},v=function(_,p,I,P,y,w){var S=_.file,E=_.compression,N=w!==h.utf8encode,D=l.transformTo("string",w(S.name)),B=l.transformTo("string",h.utf8encode(S.name)),R=S.comment,Z=l.transformTo("string",w(R)),Q=l.transformTo("string",h.utf8encode(R)),J=B.length!==S.name.length,G=Q.length!==R.length,$,j,tt="",nt="",ht="",H=S.dir,st=S.date,ft={crc32:0,compressedSize:0,uncompressedSize:0};(!p||I)&&(ft.crc32=_.crc32,ft.compressedSize=_.compressedSize,ft.uncompressedSize=_.uncompressedSize);var Dt=0;p&&(Dt|=8),!N&&(J||G)&&(Dt|=2048);var kt=0,vt=0;H&&(kt|=16),y==="UNIX"?(vt=798,kt|=u(S.unixPermissions,H)):(vt=20,kt|=g(S.dosPermissions)),$=st.getUTCHours(),$=$<<6,$=$|st.getUTCMinutes(),$=$<<5,$=$|st.getUTCSeconds()/2,j=st.getUTCFullYear()-1980,j=j<<4,j=j|st.getUTCMonth()+1,j=j<<5,j=j|st.getUTCDate(),J&&(nt=c(1,1)+c(n(D),4)+B,tt+="up"+c(nt.length,2)+nt),G&&(ht=c(1,1)+c(n(Z),4)+Q,tt+="uc"+c(ht.length,2)+ht);var at="";at+=`
-\0`,at+=c(Dt,2),at+=E.magic,at+=c($,2),at+=c(j,2),at+=c(ft.crc32,4),at+=c(ft.compressedSize,4),at+=c(ft.uncompressedSize,4),at+=c(D.length,2),at+=c(tt.length,2);var St=m.LOCAL_FILE_HEADER+at+D+tt,gt=m.CENTRAL_FILE_HEADER+c(vt,2)+at+c(Z.length,2)+"\0\0\0\0"+c(kt,4)+c(P,4)+D+tt+Z;return{fileRecord:St,dirRecord:gt}},F=function(_,p,I,P,y){var w="",S=l.transformTo("string",y(P));return w=m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(_,2)+c(_,2)+c(p,4)+c(I,4)+c(S.length,2)+S,w},C=function(_){var p="";return p=m.DATA_DESCRIPTOR+c(_.crc32,4)+c(_.compressedSize,4)+c(_.uncompressedSize,4),p};function o(_,p,I,P){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=I,this.encodeFileName=P,this.streamFiles=_,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}l.inherits(o,a),o.prototype.push=function(_){var p=_.meta.percent||0,I=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(_):(this.bytesWritten+=_.data.length,a.prototype.push.call(this,{data:_.data,meta:{currentFile:this.currentFile,percent:I?(p+100*(I-P-1))/I:100}}))},o.prototype.openedSource=function(_){this.currentSourceOffset=this.bytesWritten,this.currentFile=_.file.name;var p=this.streamFiles&&!_.file.dir;if(p){var I=v(_,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:I.fileRecord,meta:{percent:0}})}else this.accumulate=!0},o.prototype.closedSource=function(_){this.accumulate=!1;var p=this.streamFiles&&!_.file.dir,I=v(_,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(I.dirRecord),p)this.push({data:C(_),meta:{percent:100}});else for(this.push({data:I.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},o.prototype.flush=function(){for(var _=this.bytesWritten,p=0;p"u")&&(D.binary=!B);var R=w instanceof c&&w.uncompressedSize===0;(R||D.dir||!w||w.length===0)&&(D.base64=!1,D.binary=!0,w="",D.compression="STORE",E="string");var Z=null;w instanceof c||w instanceof h?Z=w:v.isNode&&v.isStream(w)?Z=new F(y,w):Z=a.prepareContent(y,w,D.binary,D.optimizedBinaryString,D.base64);var Q=new u(y,Z,D);this.files[y]=Q},o=function(y){y.slice(-1)==="/"&&(y=y.substring(0,y.length-1));var w=y.lastIndexOf("/");return w>0?y.substring(0,w):""},_=function(y){return y.slice(-1)!=="/"&&(y+="/"),y},p=function(y,w){return w=typeof w<"u"?w:m.createFolders,y=_(y),this.files[y]||C.call(this,y,null,{dir:!0,createFolders:w}),this.files[y]};function I(y){return Object.prototype.toString.call(y)==="[object RegExp]"}var P={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(y){var w,S,E;for(w in this.files)E=this.files[w],S=w.slice(this.root.length,w.length),S&&w.slice(0,this.root.length)===this.root&&y(S,E)},filter:function(y){var w=[];return this.forEach(function(S,E){y(S,E)&&w.push(E)}),w},file:function(y,w,S){if(arguments.length===1)if(I(y)){var E=y;return this.filter(function(D,B){return!B.dir&&E.test(D)})}else{var N=this.files[this.root+y];return N&&!N.dir?N:null}else y=this.root+y,C.call(this,y,w,S);return this},folder:function(y){if(!y)return this;if(I(y))return this.filter(function(N,D){return D.dir&&y.test(N)});var w=this.root+y,S=p.call(this,w),E=this.clone();return E.root=S.name,E},remove:function(y){y=this.root+y;var w=this.files[y];if(w||(y.slice(-1)!=="/"&&(y+="/"),w=this.files[y]),w&&!w.dir)delete this.files[y];else for(var S=this.filter(function(N,D){return D.name.slice(0,y.length)===y}),E=0;E=0;--v)if(this.data[v]===m&&this.data[v+1]===c&&this.data[v+2]===u&&this.data[v+3]===g)return v-this.zero;return-1},h.prototype.readAndCheckSignature=function(n){var m=n.charCodeAt(0),c=n.charCodeAt(1),u=n.charCodeAt(2),g=n.charCodeAt(3),v=this.readData(4);return m===v[0]&&c===v[1]&&u===v[2]&&g===v[3]},h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./DataReader":18}],18:[function(e,r,s){var l=e("../utils");function a(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length=this.index;m--)n=(n<<8)+this.byteAt(m);return this.index+=h,n},readString:function(h){return l.transformTo("string",this.readData(h))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC((h>>25&127)+1980,(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(h&31)<<1))}},r.exports=a},{"../utils":32}],19:[function(e,r,s){var l=e("./Uint8ArrayReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,r,s){var l=e("./DataReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},h.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},h.prototype.readAndCheckSignature=function(n){var m=this.readData(4);return n===m},h.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./DataReader":18}],21:[function(e,r,s){var l=e("./ArrayReader"),a=e("../utils");function h(n){l.call(this,n)}a.inherits(h,l),h.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var m=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=h},{"../utils":32,"./ArrayReader":17}],22:[function(e,r,s){var l=e("../utils"),a=e("../support"),h=e("./ArrayReader"),n=e("./StringReader"),m=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");r.exports=function(u){var g=l.getTypeOf(u);return l.checkSupport(g),g==="string"&&!a.uint8array?new n(u):g==="nodebuffer"?new m(u):a.uint8array?new c(l.transformTo("uint8array",u)):new h(l.transformTo("array",u))}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,r,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,r,s){var l=e("./GenericWorker"),a=e("../utils");function h(n){l.call(this,"ConvertWorker to "+n),this.destType=n}a.inherits(h,l),h.prototype.processChunk=function(n){this.push({data:a.transformTo(this.destType,n.data),meta:n.meta})},r.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(e,r,s){var l=e("./GenericWorker"),a=e("../crc32"),h=e("../utils");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}h.inherits(n,l),n.prototype.processChunk=function(m){this.streamInfo.crc32=a(m.data,this.streamInfo.crc32||0),this.push(m)},r.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,r,s){var l=e("../utils"),a=e("./GenericWorker");function h(n){a.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}l.inherits(h,a),h.prototype.processChunk=function(n){if(n){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+n.data.length}a.prototype.processChunk.call(this,n)},r.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(e,r,s){var l=e("../utils"),a=e("./GenericWorker"),h=16*1024;function n(m){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,m.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=l.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}l.inherits(n,a),n.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return a.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0):!1},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var m=h,c=null,u=Math.min(this.max,this.index+m);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,u);break;case"uint8array":c=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":c=this.data.slice(this.index,u);break}return this.index=u,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,r,s){function l(a){this.name=a||"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}l.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return this.isFinished?!1:(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,h){return this._listeners[a].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,h){if(this._listeners[a])for(var n=0;n "+a:a}},r.exports=l},{}],29:[function(e,r,s){var l=e("../utils"),a=e("./ConvertWorker"),h=e("./GenericWorker"),n=e("../base64"),m=e("../support"),c=e("../external"),u=null;if(m.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function g(o,_,p){switch(o){case"blob":return l.newBlob(l.transformTo("arraybuffer",_),p);case"base64":return n.encode(_);default:return l.transformTo(o,_)}}function v(o,_){var p,I=0,P=null,y=0;for(p=0;p<_.length;p++)y+=_[p].length;switch(o){case"string":return _.join("");case"array":return Array.prototype.concat.apply([],_);case"uint8array":for(P=new Uint8Array(y),p=0;p<_.length;p++)P.set(_[p],I),I+=_[p].length;return P;case"nodebuffer":return Buffer.concat(_);default:throw new Error("concat : unsupported type '"+o+"'")}}function F(o,_){return new c.Promise(function(p,I){var P=[],y=o._internalType,w=o._outputType,S=o._mimeType;o.on("data",function(E,N){P.push(E),_&&_(N)}).on("error",function(E){P=[],I(E)}).on("end",function(){try{var E=g(w,v(y,P),S);p(E)}catch(N){I(N)}P=[]}).resume()})}function C(o,_,p){var I=_;switch(_){case"blob":case"arraybuffer":I="uint8array";break;case"base64":I="string";break}try{this._internalType=I,this._outputType=_,this._mimeType=p,l.checkSupport(I),this._worker=o.pipe(new a(I)),o.lock()}catch(P){this._worker=new h("error"),this._worker.error(P)}}C.prototype={accumulate:function(o){return F(this,o)},on:function(o,_){var p=this;return o==="data"?this._worker.on(o,function(I){_.call(p,I.data,I.meta)}):this._worker.on(o,function(){l.delay(_,arguments,p)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(o){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},o)}},r.exports=C},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,r,s){if(s.base64=!0,s.array=!0,s.string=!0,s.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",s.nodebuffer=typeof Buffer<"u",s.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")s.blob=!1;else{var l=new ArrayBuffer(0);try{s.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var a=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,h=new a;h.append(l),s.blob=h.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!e("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(e,r,s){for(var l=e("./utils"),a=e("./support"),h=e("./nodejsUtils"),n=e("./stream/GenericWorker"),m=new Array(256),c=0;c<256;c++)m[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;m[254]=m[254]=1;var u=function(o){var _,p,I,P,y,w=o.length,S=0;for(P=0;P>>6,_[y++]=128|p&63):p<65536?(_[y++]=224|p>>>12,_[y++]=128|p>>>6&63,_[y++]=128|p&63):(_[y++]=240|p>>>18,_[y++]=128|p>>>12&63,_[y++]=128|p>>>6&63,_[y++]=128|p&63);return _},g=function(o,_){var p;for(_=_||o.length,_>o.length&&(_=o.length),p=_-1;p>=0&&(o[p]&192)===128;)p--;return p<0||p===0?_:p+m[o[p]]>_?p:_},v=function(o){var _,p,I,P,y=o.length,w=new Array(y*2);for(p=0,_=0;_4){w[p++]=65533,_+=P-1;continue}for(I&=P===2?31:P===3?15:7;P>1&&_1){w[p++]=65533;continue}I<65536?w[p++]=I:(I-=65536,w[p++]=55296|I>>10&1023,w[p++]=56320|I&1023)}return w.length!==p&&(w.subarray?w=w.subarray(0,p):w.length=p),l.applyFromCharCode(w)};s.utf8encode=function(_){return a.nodebuffer?h.newBufferFrom(_,"utf-8"):u(_)},s.utf8decode=function(_){return a.nodebuffer?l.transformTo("nodebuffer",_).toString("utf-8"):(_=l.transformTo(a.uint8array?"uint8array":"array",_),v(_))};function F(){n.call(this,"utf-8 decode"),this.leftOver=null}l.inherits(F,n),F.prototype.processChunk=function(o){var _=l.transformTo(a.uint8array?"uint8array":"array",o.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var p=_;_=new Uint8Array(p.length+this.leftOver.length),_.set(this.leftOver,0),_.set(p,this.leftOver.length)}else _=this.leftOver.concat(_);this.leftOver=null}var I=g(_),P=_;I!==_.length&&(a.uint8array?(P=_.subarray(0,I),this.leftOver=_.subarray(I,_.length)):(P=_.slice(0,I),this.leftOver=_.slice(I,_.length))),this.push({data:s.utf8decode(P),meta:o.meta})},F.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=F;function C(){n.call(this,"utf-8 encode")}l.inherits(C,n),C.prototype.processChunk=function(o){this.push({data:s.utf8encode(o.data),meta:o.meta})},s.Utf8EncodeWorker=C},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,s){var l=e("./support"),a=e("./base64"),h=e("./nodejsUtils"),n=e("./external");e("setimmediate");function m(o){var _=null;return l.uint8array?_=new Uint8Array(o.length):_=new Array(o.length),u(o,_)}s.newBlob=function(o,_){s.checkSupport("blob");try{return new Blob([o],{type:_})}catch{try{var p=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,I=new p;return I.append(o),I.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};function c(o){return o}function u(o,_){for(var p=0;p1;)try{return g.stringifyByChunk(o,p,_)}catch{_=Math.floor(_/2)}return g.stringifyByChar(o)}s.applyFromCharCode=v;function F(o,_){for(var p=0;p"u"&&(o[p]=arguments[_][p]);return o},s.prepareContent=function(o,_,p,I,P){var y=n.Promise.resolve(_).then(function(w){var S=l.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1);return S&&typeof FileReader<"u"?new n.Promise(function(E,N){var D=new FileReader;D.onload=function(B){E(B.target.result)},D.onerror=function(B){N(B.target.error)},D.readAsArrayBuffer(w)}):w});return y.then(function(w){var S=s.getTypeOf(w);return S?(S==="arraybuffer"?w=s.transformTo("uint8array",w):S==="string"&&(P?w=a.decode(w):p&&I!==!0&&(w=m(w))),w):n.Promise.reject(new Error("Can't read the data of '"+o+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,r,s){var l=e("./reader/readerFor"),a=e("./utils"),h=e("./signature"),n=e("./zipEntry"),m=e("./support");function c(u){this.files=[],this.loadOptions=u}c.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var g=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(g)+", expected "+a.pretty(u)+")")}},isSignature:function(u,g){var v=this.reader.index;this.reader.setIndex(u);var F=this.reader.readString(4),C=F===g;return this.reader.setIndex(v),C},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 u=this.reader.readData(this.zipCommentLength),g=m.uint8array?"uint8array":"array",v=a.transformTo(g,u);this.zipComment=this.loadOptions.decodeFileName(v)},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 u=this.zip64EndOfCentralSize-44,g=0,v,F,C;g1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var u,g;for(u=0;u0)this.isSignature(v,h.CENTRAL_FILE_HEADER)||(this.reader.zero=C);else if(C<0)throw new Error("Corrupted zip: missing "+Math.abs(C)+" bytes.")},prepareReader:function(u){this.reader=l(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,r,s){var l=e("./reader/readerFor"),a=e("./utils"),h=e("./compressedObject"),n=e("./crc32"),m=e("./utf8"),c=e("./compressions"),u=e("./support"),g=0,v=3,F=function(o){for(var _ in c)if(Object.prototype.hasOwnProperty.call(c,_)&&c[_].magic===o)return c[_];return null};function C(o,_){this.options=o,this.loadOptions=_}C.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(o){var _,p;if(o.skip(22),this.fileNameLength=o.readInt(2),p=o.readInt(2),this.fileName=o.readData(this.fileNameLength),o.skip(p),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(_=F(this.compressionMethod),_===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,_,o.readData(this.compressedSize))},readCentralPart:function(o){this.versionMadeBy=o.readInt(2),o.skip(2),this.bitFlag=o.readInt(2),this.compressionMethod=o.readString(2),this.date=o.readDate(),this.crc32=o.readInt(4),this.compressedSize=o.readInt(4),this.uncompressedSize=o.readInt(4);var _=o.readInt(2);if(this.extraFieldsLength=o.readInt(2),this.fileCommentLength=o.readInt(2),this.diskNumberStart=o.readInt(2),this.internalFileAttributes=o.readInt(2),this.externalFileAttributes=o.readInt(4),this.localHeaderOffset=o.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");o.skip(_),this.readExtraFields(o),this.parseZIP64ExtraField(o),this.fileComment=o.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var o=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),o===g&&(this.dosPermissions=this.externalFileAttributes&63),o===v&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var o=l(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=o.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=o.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=o.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=o.readInt(4))}},readExtraFields:function(o){var _=o.index+this.extraFieldsLength,p,I,P;for(this.extraFields||(this.extraFields={});o.index+4<_;)p=o.readInt(2),I=o.readInt(2),P=o.readData(I),this.extraFields[p]={id:p,length:I,value:P};o.setIndex(_)},handleUTF8:function(){var o=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=m.utf8decode(this.fileName),this.fileCommentStr=m.utf8decode(this.fileComment);else{var _=this.findExtraFieldUnicodePath();if(_!==null)this.fileNameStr=_;else{var p=a.transformTo(o,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(p)}var I=this.findExtraFieldUnicodeComment();if(I!==null)this.fileCommentStr=I;else{var P=a.transformTo(o,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(P)}}},findExtraFieldUnicodePath:function(){var o=this.extraFields[28789];if(o){var _=l(o.value);return _.readInt(1)!==1||n(this.fileName)!==_.readInt(4)?null:m.utf8decode(_.readData(o.length-5))}return null},findExtraFieldUnicodeComment:function(){var o=this.extraFields[25461];if(o){var _=l(o.value);return _.readInt(1)!==1||n(this.fileComment)!==_.readInt(4)?null:m.utf8decode(_.readData(o.length-5))}return null}},r.exports=C},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,r,s){var l=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),h=e("./utf8"),n=e("./compressedObject"),m=e("./stream/GenericWorker"),c=function(F,C,o){this.name=F,this.dir=o.dir,this.date=o.date,this.comment=o.comment,this.unixPermissions=o.unixPermissions,this.dosPermissions=o.dosPermissions,this._data=C,this._dataBinary=o.binary,this.options={compression:o.compression,compressionOptions:o.compressionOptions}};c.prototype={internalStream:function(F){var C=null,o="string";try{if(!F)throw new Error("No output type specified.");o=F.toLowerCase();var _=o==="string"||o==="text";(o==="binarystring"||o==="text")&&(o="string"),C=this._decompressWorker();var p=!this._dataBinary;p&&!_&&(C=C.pipe(new h.Utf8EncodeWorker)),!p&&_&&(C=C.pipe(new h.Utf8DecodeWorker))}catch(I){C=new m("error"),C.error(I)}return new l(C,o,"")},async:function(F,C){return this.internalStream(F).accumulate(C)},nodeStream:function(F,C){return this.internalStream(F||"nodebuffer").toNodejsStream(C)},_compressWorker:function(F,C){if(this._data instanceof n&&this._data.compression.magic===F.magic)return this._data.getCompressedWorker();var o=this._decompressWorker();return this._dataBinary||(o=o.pipe(new h.Utf8EncodeWorker)),n.createWorkerFrom(o,F,C)},_decompressWorker:function(){return this._data instanceof n?this._data.getContentWorker():this._data instanceof m?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],g=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},v=0;v0?E.windowBits=-E.windowBits:E.gzip&&E.windowBits>0&&E.windowBits<16&&(E.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var N=l.deflateInit2(this.strm,E.level,E.method,E.windowBits,E.memLevel,E.strategy);if(N!==v)throw new Error(n[N]);if(E.header&&l.deflateSetHeader(this.strm,E.header),E.dictionary){var D;if(typeof E.dictionary=="string"?D=h.string2buf(E.dictionary):c.call(E.dictionary)==="[object ArrayBuffer]"?D=new Uint8Array(E.dictionary):D=E.dictionary,N=l.deflateSetDictionary(this.strm,D),N!==v)throw new Error(n[N]);this._dict_set=!0}}I.prototype.push=function(S,E){var N=this.strm,D=this.options.chunkSize,B,R;if(this.ended)return!1;R=E===~~E?E:E===!0?g:u,typeof S=="string"?N.input=h.string2buf(S):c.call(S)==="[object ArrayBuffer]"?N.input=new Uint8Array(S):N.input=S,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(D),N.next_out=0,N.avail_out=D),B=l.deflate(N,R),B!==F&&B!==v)return this.onEnd(B),this.ended=!0,!1;(N.avail_out===0||N.avail_in===0&&(R===g||R===C))&&(this.options.to==="string"?this.onData(h.buf2binstring(a.shrinkBuf(N.output,N.next_out))):this.onData(a.shrinkBuf(N.output,N.next_out)))}while((N.avail_in>0||N.avail_out===0)&&B!==F);return R===g?(B=l.deflateEnd(this.strm),this.onEnd(B),this.ended=!0,B===v):(R===C&&(this.onEnd(v),N.avail_out=0),!0)},I.prototype.onData=function(S){this.chunks.push(S)},I.prototype.onEnd=function(S){S===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg};function P(S,E){var N=new I(E);if(N.push(S,!0),N.err)throw N.msg||n[N.err];return N.result}function y(S,E){return E=E||{},E.raw=!0,P(S,E)}function w(S,E){return E=E||{},E.gzip=!0,P(S,E)}s.Deflate=I,s.deflate=P,s.deflateRaw=y,s.gzip=w},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,r,s){var l=e("./zlib/inflate"),a=e("./utils/common"),h=e("./utils/strings"),n=e("./zlib/constants"),m=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),g=Object.prototype.toString;function v(o){if(!(this instanceof v))return new v(o);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},o||{});var _=this.options;_.raw&&_.windowBits>=0&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),_.windowBits>=0&&_.windowBits<16&&!(o&&o.windowBits)&&(_.windowBits+=32),_.windowBits>15&&_.windowBits<48&&(_.windowBits&15||(_.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var p=l.inflateInit2(this.strm,_.windowBits);if(p!==n.Z_OK)throw new Error(m[p]);this.header=new u,l.inflateGetHeader(this.strm,this.header)}v.prototype.push=function(o,_){var p=this.strm,I=this.options.chunkSize,P=this.options.dictionary,y,w,S,E,N,D,B=!1;if(this.ended)return!1;w=_===~~_?_:_===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof o=="string"?p.input=h.binstring2buf(o):g.call(o)==="[object ArrayBuffer]"?p.input=new Uint8Array(o):p.input=o,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new a.Buf8(I),p.next_out=0,p.avail_out=I),y=l.inflate(p,n.Z_NO_FLUSH),y===n.Z_NEED_DICT&&P&&(typeof P=="string"?D=h.string2buf(P):g.call(P)==="[object ArrayBuffer]"?D=new Uint8Array(P):D=P,y=l.inflateSetDictionary(this.strm,D)),y===n.Z_BUF_ERROR&&B===!0&&(y=n.Z_OK,B=!1),y!==n.Z_STREAM_END&&y!==n.Z_OK)return this.onEnd(y),this.ended=!0,!1;p.next_out&&(p.avail_out===0||y===n.Z_STREAM_END||p.avail_in===0&&(w===n.Z_FINISH||w===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(S=h.utf8border(p.output,p.next_out),E=p.next_out-S,N=h.buf2string(p.output,S),p.next_out=E,p.avail_out=I-E,E&&a.arraySet(p.output,p.output,S,E,0),this.onData(N)):this.onData(a.shrinkBuf(p.output,p.next_out))),p.avail_in===0&&p.avail_out===0&&(B=!0)}while((p.avail_in>0||p.avail_out===0)&&y!==n.Z_STREAM_END);return y===n.Z_STREAM_END&&(w=n.Z_FINISH),w===n.Z_FINISH?(y=l.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===n.Z_OK):(w===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),p.avail_out=0),!0)},v.prototype.onData=function(o){this.chunks.push(o)},v.prototype.onEnd=function(o){o===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg};function F(o,_){var p=new v(_);if(p.push(o,!0),p.err)throw p.msg||m[p.err];return p.result}function C(o,_){return _=_||{},_.raw=!0,F(o,_)}s.Inflate=v,s.inflate=F,s.inflateRaw=C,s.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,r,s){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(n){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var c=m.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var u in c)c.hasOwnProperty(u)&&(n[u]=c[u])}}return n},s.shrinkBuf=function(n,m){return n.length===m?n:n.subarray?n.subarray(0,m):(n.length=m,n)};var a={arraySet:function(n,m,c,u,g){if(m.subarray&&n.subarray){n.set(m.subarray(c,c+u),g);return}for(var v=0;v=252?6:m>=248?5:m>=240?4:m>=224?3:m>=192?2:1;n[254]=n[254]=1,s.string2buf=function(u){var g,v,F,C,o,_=u.length,p=0;for(C=0;C<_;C++)v=u.charCodeAt(C),(v&64512)===55296&&C+1<_&&(F=u.charCodeAt(C+1),(F&64512)===56320&&(v=65536+(v-55296<<10)+(F-56320),C++)),p+=v<128?1:v<2048?2:v<65536?3:4;for(g=new l.Buf8(p),o=0,C=0;o>>6,g[o++]=128|v&63):v<65536?(g[o++]=224|v>>>12,g[o++]=128|v>>>6&63,g[o++]=128|v&63):(g[o++]=240|v>>>18,g[o++]=128|v>>>12&63,g[o++]=128|v>>>6&63,g[o++]=128|v&63);return g};function c(u,g){if(g<65537&&(u.subarray&&h||!u.subarray&&a))return String.fromCharCode.apply(null,l.shrinkBuf(u,g));for(var v="",F=0;F4){p[F++]=65533,v+=o-1;continue}for(C&=o===2?31:o===3?15:7;o>1&&v<_;)C=C<<6|u[v++]&63,o--;if(o>1){p[F++]=65533;continue}C<65536?p[F++]=C:(C-=65536,p[F++]=55296|C>>10&1023,p[F++]=56320|C&1023)}return c(p,F)},s.utf8border=function(u,g){var v;for(g=g||u.length,g>u.length&&(g=u.length),v=g-1;v>=0&&(u[v]&192)===128;)v--;return v<0||v===0?g:v+n[u[v]]>g?v:g}},{"./common":41}],43:[function(e,r,s){function l(a,h,n,m){for(var c=a&65535|0,u=a>>>16&65535|0,g=0;n!==0;){g=n>2e3?2e3:n,n-=g;do c=c+h[m++]|0,u=u+c|0;while(--g);c%=65521,u%=65521}return c|u<<16|0}r.exports=l},{}],44:[function(e,r,s){r.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(e,r,s){function l(){for(var n,m=[],c=0;c<256;c++){n=c;for(var u=0;u<8;u++)n=n&1?3988292384^n>>>1:n>>>1;m[c]=n}return m}var a=l();function h(n,m,c,u){var g=a,v=u+c;n^=-1;for(var F=u;F>>8^g[(n^m[F])&255];return n^-1}r.exports=h},{}],46:[function(e,r,s){var l=e("../utils/common"),a=e("./trees"),h=e("./adler32"),n=e("./crc32"),m=e("./messages"),c=0,u=1,g=3,v=4,F=5,C=0,o=1,_=-2,p=-3,I=-5,P=-1,y=1,w=2,S=3,E=4,N=0,D=2,B=8,R=9,Z=15,Q=8,J=29,G=256,$=G+1+J,j=30,tt=19,nt=2*$+1,ht=15,H=3,st=258,ft=st+H+1,Dt=32,kt=42,vt=69,at=73,St=91,gt=103,dt=113,bt=666,ct=1,At=2,Ut=3,Bt=4,ut=3;function Nt(i,A){return i.msg=m[A],A}function he(i){return(i<<1)-(i>4?9:0)}function Vt(i){for(var A=i.length;--A>=0;)i[A]=0}function Mt(i){var A=i.state,T=A.pending;T>i.avail_out&&(T=i.avail_out),T!==0&&(l.arraySet(i.output,A.pending_buf,A.pending_out,T,i.next_out),i.next_out+=T,A.pending_out+=T,i.total_out+=T,i.avail_out-=T,A.pending-=T,A.pending===0&&(A.pending_out=0))}function _t(i,A){a._tr_flush_block(i,i.block_start>=0?i.block_start:-1,i.strstart-i.block_start,A),i.block_start=i.strstart,Mt(i.strm)}function rt(i,A){i.pending_buf[i.pending++]=A}function jt(i,A){i.pending_buf[i.pending++]=A>>>8&255,i.pending_buf[i.pending++]=A&255}function de(i,A,T,d){var x=i.avail_in;return x>d&&(x=d),x===0?0:(i.avail_in-=x,l.arraySet(A,i.input,i.next_in,x,T),i.state.wrap===1?i.adler=h(i.adler,A,x,T):i.state.wrap===2&&(i.adler=n(i.adler,A,x,T)),i.next_in+=x,i.total_in+=x,x)}function ae(i,A){var T=i.max_chain_length,d=i.strstart,x,O,K=i.prev_length,Y=i.nice_match,X=i.strstart>i.w_size-ft?i.strstart-(i.w_size-ft):0,ot=i.window,qt=i.w_mask,mt=i.prev,lt=i.strstart+st,xt=ot[d+K-1],Tt=ot[d+K];i.prev_length>=i.good_match&&(T>>=2),Y>i.lookahead&&(Y=i.lookahead);do if(x=A,!(ot[x+K]!==Tt||ot[x+K-1]!==xt||ot[x]!==ot[d]||ot[++x]!==ot[d+1])){d+=2,x++;do;while(ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&ot[++d]===ot[++x]&&dK){if(i.match_start=A,K=O,O>=Y)break;xt=ot[d+K-1],Tt=ot[d+K]}}while((A=mt[A&qt])>X&&--T!==0);return K<=i.lookahead?K:i.lookahead}function Zt(i){var A=i.w_size,T,d,x,O,K;do{if(O=i.window_size-i.lookahead-i.strstart,i.strstart>=A+(A-ft)){l.arraySet(i.window,i.window,A,A,0),i.match_start-=A,i.strstart-=A,i.block_start-=A,d=i.hash_size,T=d;do x=i.head[--T],i.head[T]=x>=A?x-A:0;while(--d);d=A,T=d;do x=i.prev[--T],i.prev[T]=x>=A?x-A:0;while(--d);O+=A}if(i.strm.avail_in===0)break;if(d=de(i.strm,i.window,i.strstart+i.lookahead,O),i.lookahead+=d,i.lookahead+i.insert>=H)for(K=i.strstart-i.insert,i.ins_h=i.window[K],i.ins_h=(i.ins_h<i.pending_buf_size-5&&(T=i.pending_buf_size-5);;){if(i.lookahead<=1){if(Zt(i),i.lookahead===0&&A===c)return ct;if(i.lookahead===0)break}i.strstart+=i.lookahead,i.lookahead=0;var d=i.block_start+T;if((i.strstart===0||i.strstart>=d)&&(i.lookahead=i.strstart-d,i.strstart=d,_t(i,!1),i.strm.avail_out===0)||i.strstart-i.block_start>=i.w_size-ft&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):(i.strstart>i.block_start&&(_t(i,!1),i.strm.avail_out===0),ct)}function ne(i,A){for(var T,d;;){if(i.lookahead=H&&(i.ins_h=(i.ins_h<=H)if(d=a._tr_tally(i,i.strstart-i.match_start,i.match_length-H),i.lookahead-=i.match_length,i.match_length<=i.max_lazy_match&&i.lookahead>=H){i.match_length--;do i.strstart++,i.ins_h=(i.ins_h<=H&&(i.ins_h=(i.ins_h<4096)&&(i.match_length=H-1)),i.prev_length>=H&&i.match_length<=i.prev_length){x=i.strstart+i.lookahead-H,d=a._tr_tally(i,i.strstart-1-i.prev_match,i.prev_length-H),i.lookahead-=i.prev_length-1,i.prev_length-=2;do++i.strstart<=x&&(i.ins_h=(i.ins_h<=H&&i.strstart>0&&(x=i.strstart-1,d=K[x],d===K[++x]&&d===K[++x]&&d===K[++x])){O=i.strstart+st;do;while(d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&d===K[++x]&&xi.lookahead&&(i.match_length=i.lookahead)}if(i.match_length>=H?(T=a._tr_tally(i,1,i.match_length-H),i.lookahead-=i.match_length,i.strstart+=i.match_length,i.match_length=0):(T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++),T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function se(i,A){for(var T;;){if(i.lookahead===0&&(Zt(i),i.lookahead===0)){if(A===c)return ct;break}if(i.match_length=0,T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++,T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function Pt(i,A,T,d,x){this.good_length=i,this.max_lazy=A,this.nice_length=T,this.max_chain=d,this.func=x}var Gt;Gt=[new Pt(0,0,0,0,ue),new Pt(4,4,8,4,ne),new Pt(4,5,16,8,ne),new Pt(4,6,32,32,ne),new Pt(4,4,16,16,Wt),new Pt(8,16,32,32,Wt),new Pt(8,16,128,128,Wt),new Pt(8,32,128,256,Wt),new Pt(32,128,258,1024,Wt),new Pt(32,258,258,4096,Wt)];function pe(i){i.window_size=2*i.w_size,Vt(i.head),i.max_lazy_match=Gt[i.level].max_lazy,i.good_match=Gt[i.level].good_length,i.nice_match=Gt[i.level].nice_length,i.max_chain_length=Gt[i.level].max_chain,i.strstart=0,i.block_start=0,i.lookahead=0,i.insert=0,i.match_length=i.prev_length=H-1,i.match_available=0,i.ins_h=0}function b(){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=B,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 l.Buf16(nt*2),this.dyn_dtree=new l.Buf16((2*j+1)*2),this.bl_tree=new l.Buf16((2*tt+1)*2),Vt(this.dyn_ltree),Vt(this.dyn_dtree),Vt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16(ht+1),this.heap=new l.Buf16(2*$+1),Vt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*$+1),Vt(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 M(i){var A;return!i||!i.state?Nt(i,_):(i.total_in=i.total_out=0,i.data_type=D,A=i.state,A.pending=0,A.pending_out=0,A.wrap<0&&(A.wrap=-A.wrap),A.status=A.wrap?kt:dt,i.adler=A.wrap===2?0:1,A.last_flush=c,a._tr_init(A),C)}function V(i){var A=M(i);return A===C&&pe(i.state),A}function W(i,A){return!i||!i.state||i.state.wrap!==2?_:(i.state.gzhead=A,C)}function k(i,A,T,d,x,O){if(!i)return _;var K=1;if(A===P&&(A=6),d<0?(K=0,d=-d):d>15&&(K=2,d-=16),x<1||x>R||T!==B||d<8||d>15||A<0||A>9||O<0||O>E)return Nt(i,_);d===8&&(d=9);var Y=new b;return i.state=Y,Y.strm=i,Y.wrap=K,Y.gzhead=null,Y.w_bits=d,Y.w_size=1<F||A<0)return i?Nt(i,_):_;if(d=i.state,!i.output||!i.input&&i.avail_in!==0||d.status===bt&&A!==v)return Nt(i,i.avail_out===0?I:_);if(d.strm=i,T=d.last_flush,d.last_flush=A,d.status===kt)if(d.wrap===2)i.adler=0,rt(d,31),rt(d,139),rt(d,8),d.gzhead?(rt(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),rt(d,d.gzhead.time&255),rt(d,d.gzhead.time>>8&255),rt(d,d.gzhead.time>>16&255),rt(d,d.gzhead.time>>24&255),rt(d,d.level===9?2:d.strategy>=w||d.level<2?4:0),rt(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(rt(d,d.gzhead.extra.length&255),rt(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(i.adler=n(i.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=vt):(rt(d,0),rt(d,0),rt(d,0),rt(d,0),rt(d,0),rt(d,d.level===9?2:d.strategy>=w||d.level<2?4:0),rt(d,ut),d.status=dt);else{var K=B+(d.w_bits-8<<4)<<8,Y=-1;d.strategy>=w||d.level<2?Y=0:d.level<6?Y=1:d.level===6?Y=2:Y=3,K|=Y<<6,d.strstart!==0&&(K|=Dt),K+=31-K%31,d.status=dt,jt(d,K),d.strstart!==0&&(jt(d,i.adler>>>16),jt(d,i.adler&65535)),i.adler=1}if(d.status===vt)if(d.gzhead.extra){for(x=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&!(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Mt(i),x=d.pending,d.pending===d.pending_buf_size));)rt(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=at)}else d.status=at;if(d.status===at)if(d.gzhead.name){x=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Mt(i),x=d.pending,d.pending===d.pending_buf_size)){O=1;break}d.gzindexx&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),O===0&&(d.gzindex=0,d.status=St)}else d.status=St;if(d.status===St)if(d.gzhead.comment){x=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>x&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),Mt(i),x=d.pending,d.pending===d.pending_buf_size)){O=1;break}d.gzindexx&&(i.adler=n(i.adler,d.pending_buf,d.pending-x,x)),O===0&&(d.status=gt)}else d.status=gt;if(d.status===gt&&(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&Mt(i),d.pending+2<=d.pending_buf_size&&(rt(d,i.adler&255),rt(d,i.adler>>8&255),i.adler=0,d.status=dt)):d.status=dt),d.pending!==0){if(Mt(i),i.avail_out===0)return d.last_flush=-1,C}else if(i.avail_in===0&&he(A)<=he(T)&&A!==v)return Nt(i,I);if(d.status===bt&&i.avail_in!==0)return Nt(i,I);if(i.avail_in!==0||d.lookahead!==0||A!==c&&d.status!==bt){var X=d.strategy===w?se(d,A):d.strategy===S?_e(d,A):Gt[d.level].func(d,A);if((X===Ut||X===Bt)&&(d.status=bt),X===ct||X===Ut)return i.avail_out===0&&(d.last_flush=-1),C;if(X===At&&(A===u?a._tr_align(d):A!==F&&(a._tr_stored_block(d,0,0,!1),A===g&&(Vt(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),Mt(i),i.avail_out===0))return d.last_flush=-1,C}return A!==v?C:d.wrap<=0?o:(d.wrap===2?(rt(d,i.adler&255),rt(d,i.adler>>8&255),rt(d,i.adler>>16&255),rt(d,i.adler>>24&255),rt(d,i.total_in&255),rt(d,i.total_in>>8&255),rt(d,i.total_in>>16&255),rt(d,i.total_in>>24&255)):(jt(d,i.adler>>>16),jt(d,i.adler&65535)),Mt(i),d.wrap>0&&(d.wrap=-d.wrap),d.pending!==0?C:o)}function U(i){var A;return!i||!i.state?_:(A=i.state.status,A!==kt&&A!==vt&&A!==at&&A!==St&&A!==gt&&A!==dt&&A!==bt?Nt(i,_):(i.state=null,A===dt?Nt(i,p):C))}function q(i,A){var T=A.length,d,x,O,K,Y,X,ot,qt;if(!i||!i.state||(d=i.state,K=d.wrap,K===2||K===1&&d.status!==kt||d.lookahead))return _;for(K===1&&(i.adler=h(i.adler,A,T,0)),d.wrap=0,T>=d.w_size&&(K===0&&(Vt(d.head),d.strstart=0,d.block_start=0,d.insert=0),qt=new l.Buf8(d.w_size),l.arraySet(qt,A,T-d.w_size,d.w_size,0),A=qt,T=d.w_size),Y=i.avail_in,X=i.next_in,ot=i.input,i.avail_in=T,i.next_in=0,i.input=A,Zt(d);d.lookahead>=H;){x=d.strstart,O=d.lookahead-(H-1);do d.ins_h=(d.ins_h<>>24,y>>>=R,w-=R,R=B>>>16&255,R===0)j[v++]=B&65535;else if(R&16){Z=B&65535,R&=15,R&&(w>>=R,w-=R),w<15&&(y+=$[u++]<>>24,y>>>=R,w-=R,R=B>>>16&255,R&16){if(Q=B&65535,R&=15,wo){n.msg="invalid distance too far back",c.mode=l;break t}if(y>>>=R,w-=R,R=v-F,Q>R){if(R=Q-R,R>p&&c.sane){n.msg="invalid distance too far back",c.mode=l;break t}if(J=0,G=P,I===0){if(J+=_-R,R2;)j[v++]=G[J++],j[v++]=G[J++],j[v++]=G[J++],Z-=3;Z&&(j[v++]=G[J++],Z>1&&(j[v++]=G[J++]))}else{J=v-Q;do j[v++]=j[J++],j[v++]=j[J++],j[v++]=j[J++],Z-=3;while(Z>2);Z&&(j[v++]=j[J++],Z>1&&(j[v++]=j[J++]))}}else if(R&64){n.msg="invalid distance code",c.mode=l;break t}else{B=E[(B&65535)+(y&(1<>3,u-=Z,w-=Z<<3,y&=(1<>>24&255)+(k>>>8&65280)+((k&65280)<<8)+((k&255)<<24)}function de(){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 l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(k){var z;return!k||!k.state?I:(z=k.state,k.total_in=k.total_out=z.total=0,k.msg="",z.wrap&&(k.adler=z.wrap&1),z.mode=E,z.last=0,z.havedict=0,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new l.Buf32(Vt),z.distcode=z.distdyn=new l.Buf32(Mt),z.sane=1,z.back=-1,o)}function Zt(k){var z;return!k||!k.state?I:(z=k.state,z.wsize=0,z.whave=0,z.wnext=0,ae(k))}function ue(k,z){var f,U;return!k||!k.state||(U=k.state,z<0?(f=0,z=-z):(f=(z>>4)+1,z<48&&(z&=15)),z&&(z<8||z>15))?I:(U.window!==null&&U.wbits!==z&&(U.window=null),U.wrap=f,U.wbits=z,Zt(k))}function ne(k,z){var f,U;return k?(U=new de,k.state=U,U.window=null,f=ue(k,z),f!==o&&(k.state=null),f):I}function Wt(k){return ne(k,rt)}var _e=!0,se,Pt;function Gt(k){if(_e){var z;for(se=new l.Buf32(512),Pt=new l.Buf32(32),z=0;z<144;)k.lens[z++]=8;for(;z<256;)k.lens[z++]=9;for(;z<280;)k.lens[z++]=7;for(;z<288;)k.lens[z++]=8;for(m(u,k.lens,0,288,se,0,k.work,{bits:9}),z=0;z<32;)k.lens[z++]=5;m(g,k.lens,0,32,Pt,0,k.work,{bits:5}),_e=!1}k.lencode=se,k.lenbits=9,k.distcode=Pt,k.distbits=5}function pe(k,z,f,U){var q,i=k.state;return i.window===null&&(i.wsize=1<=i.wsize?(l.arraySet(i.window,z,f-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(q=i.wsize-i.wnext,q>U&&(q=U),l.arraySet(i.window,z,f-U,q,i.wnext),U-=q,U?(l.arraySet(i.window,z,f-U,U,0),i.wnext=U,i.whave=i.wsize):(i.wnext+=q,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,f.check=h(f.check,Ct,2,0),x=0,O=0,f.mode=N;break}if(f.flags=0,f.head&&(f.head.done=!1),!(f.wrap&1)||(((x&255)<<8)+(x>>8))%31){k.msg="incorrect header check",f.mode=ut;break}if((x&15)!==S){k.msg="unknown compression method",f.mode=ut;break}if(x>>>=4,O-=4,yt=(x&15)+8,f.wbits===0)f.wbits=yt;else if(yt>f.wbits){k.msg="invalid window size",f.mode=ut;break}f.dmax=1<>8&1),f.flags&512&&(Ct[0]=x&255,Ct[1]=x>>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0,f.mode=D;case D:for(;O<32;){if(T===0)break t;T--,x+=U[i++]<>>8&255,Ct[2]=x>>>16&255,Ct[3]=x>>>24&255,f.check=h(f.check,Ct,4,0)),x=0,O=0,f.mode=B;case B:for(;O<16;){if(T===0)break t;T--,x+=U[i++]<>8),f.flags&512&&(Ct[0]=x&255,Ct[1]=x>>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0,f.mode=R;case R:if(f.flags&1024){for(;O<16;){if(T===0)break t;T--,x+=U[i++]<>>8&255,f.check=h(f.check,Ct,2,0)),x=0,O=0}else f.head&&(f.head.extra=null);f.mode=Z;case Z:if(f.flags&1024&&(X=f.length,X>T&&(X=T),X&&(f.head&&(yt=f.head.extra_len-f.length,f.head.extra||(f.head.extra=new Array(f.head.extra_len)),l.arraySet(f.head.extra,U,i,X,yt)),f.flags&512&&(f.check=h(f.check,U,X,i)),T-=X,i+=X,f.length-=X),f.length))break t;f.length=0,f.mode=Q;case Q:if(f.flags&2048){if(T===0)break t;X=0;do yt=U[i+X++],f.head&&yt&&f.length<65536&&(f.head.name+=String.fromCharCode(yt));while(yt&&X>9&1,f.head.done=!0),k.adler=f.check=0,f.mode=tt;break;case $:for(;O<32;){if(T===0)break t;T--,x+=U[i++]<>>=O&7,O-=O&7,f.mode=At;break}for(;O<3;){if(T===0)break t;T--,x+=U[i++]<>>=1,O-=1,x&3){case 0:f.mode=ht;break;case 1:if(Gt(f),f.mode=vt,z===C){x>>>=2,O-=2;break t}break;case 2:f.mode=ft;break;case 3:k.msg="invalid block type",f.mode=ut}x>>>=2,O-=2;break;case ht:for(x>>>=O&7,O-=O&7;O<32;){if(T===0)break t;T--,x+=U[i++]<>>16^65535)){k.msg="invalid stored block lengths",f.mode=ut;break}if(f.length=x&65535,x=0,O=0,f.mode=H,z===C)break t;case H:f.mode=st;case st:if(X=f.length,X){if(X>T&&(X=T),X>d&&(X=d),X===0)break t;l.arraySet(q,U,i,X,A),T-=X,i+=X,d-=X,A+=X,f.length-=X;break}f.mode=tt;break;case ft:for(;O<14;){if(T===0)break t;T--,x+=U[i++]<>>=5,O-=5,f.ndist=(x&31)+1,x>>>=5,O-=5,f.ncode=(x&15)+4,x>>>=4,O-=4,f.nlen>286||f.ndist>30){k.msg="too many length or distance symbols",f.mode=ut;break}f.have=0,f.mode=Dt;case Dt:for(;f.have>>=3,O-=3}for(;f.have<19;)f.lens[Me[f.have++]]=0;if(f.lencode=f.lendyn,f.lenbits=7,te={bits:f.lenbits},Yt=m(c,f.lens,0,19,f.lencode,0,f.work,te),f.lenbits=te.bits,Yt){k.msg="invalid code lengths set",f.mode=ut;break}f.have=0,f.mode=kt;case kt:for(;f.have>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=U[i++]<>>=lt,O-=lt,f.lens[f.have++]=Tt;else{if(Tt===16){for(Jt=lt+2;O>>=lt,O-=lt,f.have===0){k.msg="invalid bit length repeat",f.mode=ut;break}yt=f.lens[f.have-1],X=3+(x&3),x>>>=2,O-=2}else if(Tt===17){for(Jt=lt+3;O>>=lt,O-=lt,yt=0,X=3+(x&7),x>>>=3,O-=3}else{for(Jt=lt+7;O>>=lt,O-=lt,yt=0,X=11+(x&127),x>>>=7,O-=7}if(f.have+X>f.nlen+f.ndist){k.msg="invalid bit length repeat",f.mode=ut;break}for(;X--;)f.lens[f.have++]=yt}}if(f.mode===ut)break;if(f.lens[256]===0){k.msg="invalid code -- missing end-of-block",f.mode=ut;break}if(f.lenbits=9,te={bits:f.lenbits},Yt=m(u,f.lens,0,f.nlen,f.lencode,0,f.work,te),f.lenbits=te.bits,Yt){k.msg="invalid literal/lengths set",f.mode=ut;break}if(f.distbits=6,f.distcode=f.distdyn,te={bits:f.distbits},Yt=m(g,f.lens,f.nlen,f.ndist,f.distcode,0,f.work,te),f.distbits=te.bits,Yt){k.msg="invalid distances set",f.mode=ut;break}if(f.mode=vt,z===C)break t;case vt:f.mode=at;case at:if(T>=6&&d>=258){k.next_out=A,k.avail_out=d,k.next_in=i,k.avail_in=T,f.hold=x,f.bits=O,n(k,Y),A=k.next_out,q=k.output,d=k.avail_out,i=k.next_in,U=k.input,T=k.avail_in,x=f.hold,O=f.bits,f.mode===tt&&(f.back=-1);break}for(f.back=0;mt=f.lencode[x&(1<>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=U[i++]<>Rt)],lt=mt>>>24,xt=mt>>>16&255,Tt=mt&65535,!(Rt+lt<=O);){if(T===0)break t;T--,x+=U[i++]<>>=Rt,O-=Rt,f.back+=Rt}if(x>>>=lt,O-=lt,f.back+=lt,f.length=Tt,xt===0){f.mode=ct;break}if(xt&32){f.back=-1,f.mode=tt;break}if(xt&64){k.msg="invalid literal/length code",f.mode=ut;break}f.extra=xt&15,f.mode=St;case St:if(f.extra){for(Jt=f.extra;O>>=f.extra,O-=f.extra,f.back+=f.extra}f.was=f.length,f.mode=gt;case gt:for(;mt=f.distcode[x&(1<>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,x+=U[i++]<>Rt)],lt=mt>>>24,xt=mt>>>16&255,Tt=mt&65535,!(Rt+lt<=O);){if(T===0)break t;T--,x+=U[i++]<>>=Rt,O-=Rt,f.back+=Rt}if(x>>>=lt,O-=lt,f.back+=lt,xt&64){k.msg="invalid distance code",f.mode=ut;break}f.offset=Tt,f.extra=xt&15,f.mode=dt;case dt:if(f.extra){for(Jt=f.extra;O>>=f.extra,O-=f.extra,f.back+=f.extra}if(f.offset>f.dmax){k.msg="invalid distance too far back",f.mode=ut;break}f.mode=bt;case bt:if(d===0)break t;if(X=Y-d,f.offset>X){if(X=f.offset-X,X>f.whave&&f.sane){k.msg="invalid distance too far back",f.mode=ut;break}X>f.wnext?(X-=f.wnext,ot=f.wsize-X):ot=f.wnext-X,X>f.length&&(X=f.length),qt=f.window}else qt=q,ot=A-f.offset,X=f.length;X>d&&(X=d),d-=X,f.length-=X;do q[A++]=qt[ot++];while(--X);f.length===0&&(f.mode=at);break;case ct:if(d===0)break t;q[A++]=f.length,d--,f.mode=at;break;case At:if(f.wrap){for(;O<32;){if(T===0)break t;T--,x|=U[i++]<=1&&at[Z]===0;Z--);if(Q>Z&&(Q=Z),Z===0)return y[w++]=20971520,y[w++]=20971520,E.bits=1,0;for(R=1;R0&&(_===m||Z!==1))return-1;for(St[1]=0,D=1;Dh||_===u&&j>n)return 1;for(;;){bt=D-G,S[B]vt?(ct=gt[dt+S[B]],At=Dt[kt+S[B]]):(ct=96,At=0),nt=1<>G)+ht]=bt<<24|ct<<16|At|0;while(ht!==0);for(nt=1<>=1;if(nt!==0?(tt&=nt-1,tt+=nt):tt=0,B++,--at[D]===0){if(D===Z)break;D=p[I+S[B]]}if(D>Q&&(tt&st)!==H){for(G===0&&(G=Q),ft+=R,J=D-G,$=1<h||_===u&&j>n)return 1;H=tt&st,y[H]=Q<<24|J<<16|ft-w|0}}return tt!==0&&(y[ft+tt]=D-G<<24|4194304|0),E.bits=Q,0}},{"../utils/common":41}],51:[function(e,r,s){r.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(e,r,s){var l=e("../utils/common"),a=4,h=0,n=1,m=2;function c(b){for(var M=b.length;--M>=0;)b[M]=0}var u=0,g=1,v=2,F=3,C=258,o=29,_=256,p=_+1+o,I=30,P=19,y=2*p+1,w=15,S=16,E=7,N=256,D=16,B=17,R=18,Z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],J=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=512,j=new Array((p+2)*2);c(j);var tt=new Array(I*2);c(tt);var nt=new Array($);c(nt);var ht=new Array(C-F+1);c(ht);var H=new Array(o);c(H);var st=new Array(I);c(st);function ft(b,M,V,W,k){this.static_tree=b,this.extra_bits=M,this.extra_base=V,this.elems=W,this.max_length=k,this.has_stree=b&&b.length}var Dt,kt,vt;function at(b,M){this.dyn_tree=b,this.max_code=0,this.stat_desc=M}function St(b){return b<256?nt[b]:nt[256+(b>>>7)]}function gt(b,M){b.pending_buf[b.pending++]=M&255,b.pending_buf[b.pending++]=M>>>8&255}function dt(b,M,V){b.bi_valid>S-V?(b.bi_buf|=M<>S-b.bi_valid,b.bi_valid+=V-S):(b.bi_buf|=M<>>=1,V<<=1;while(--M>0);return V>>>1}function At(b){b.bi_valid===16?(gt(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):b.bi_valid>=8&&(b.pending_buf[b.pending++]=b.bi_buf&255,b.bi_buf>>=8,b.bi_valid-=8)}function Ut(b,M){var V=M.dyn_tree,W=M.max_code,k=M.stat_desc.static_tree,z=M.stat_desc.has_stree,f=M.stat_desc.extra_bits,U=M.stat_desc.extra_base,q=M.stat_desc.max_length,i,A,T,d,x,O,K=0;for(d=0;d<=w;d++)b.bl_count[d]=0;for(V[b.heap[b.heap_max]*2+1]=0,i=b.heap_max+1;iq&&(d=q,K++),V[A*2+1]=d,!(A>W)&&(b.bl_count[d]++,x=0,A>=U&&(x=f[A-U]),O=V[A*2],b.opt_len+=O*(d+x),z&&(b.static_len+=O*(k[A*2+1]+x)));if(K!==0){do{for(d=q-1;b.bl_count[d]===0;)d--;b.bl_count[d]--,b.bl_count[d+1]+=2,b.bl_count[q]--,K-=2}while(K>0);for(d=q;d!==0;d--)for(A=b.bl_count[d];A!==0;)T=b.heap[--i],!(T>W)&&(V[T*2+1]!==d&&(b.opt_len+=(d-V[T*2+1])*V[T*2],V[T*2+1]=d),A--)}}function Bt(b,M,V){var W=new Array(w+1),k=0,z,f;for(z=1;z<=w;z++)W[z]=k=k+V[z-1]<<1;for(f=0;f<=M;f++){var U=b[f*2+1];U!==0&&(b[f*2]=ct(W[U]++,U))}}function ut(){var b,M,V,W,k,z=new Array(w+1);for(V=0,W=0;W>=7;W8?gt(b,b.bi_buf):b.bi_valid>0&&(b.pending_buf[b.pending++]=b.bi_buf),b.bi_buf=0,b.bi_valid=0}function Vt(b,M,V,W){he(b),gt(b,V),gt(b,~V),l.arraySet(b.pending_buf,b.window,M,V,b.pending),b.pending+=V}function Mt(b,M,V,W){var k=M*2,z=V*2;return b[k]>1;f>=1;f--)_t(b,V,f);i=z;do f=b.heap[1],b.heap[1]=b.heap[b.heap_len--],_t(b,V,1),U=b.heap[1],b.heap[--b.heap_max]=f,b.heap[--b.heap_max]=U,V[i*2]=V[f*2]+V[U*2],b.depth[i]=(b.depth[f]>=b.depth[U]?b.depth[f]:b.depth[U])+1,V[f*2+1]=V[U*2+1]=i,b.heap[1]=i++,_t(b,V,1);while(b.heap_len>=2);b.heap[--b.heap_max]=b.heap[1],Ut(b,M),Bt(V,q,b.bl_count)}function de(b,M,V){var W,k=-1,z,f=M[0*2+1],U=0,q=7,i=4;for(f===0&&(q=138,i=3),M[(V+1)*2+1]=65535,W=0;W<=V;W++)z=f,f=M[(W+1)*2+1],!(++U=3&&b.bl_tree[G[M]*2+1]===0;M--);return b.opt_len+=3*(M+1)+5+5+4,M}function ue(b,M,V,W){var k;for(dt(b,M-257,5),dt(b,V-1,5),dt(b,W-4,4),k=0;k>>=1)if(M&1&&b.dyn_ltree[V*2]!==0)return h;if(b.dyn_ltree[18]!==0||b.dyn_ltree[20]!==0||b.dyn_ltree[26]!==0)return n;for(V=32;V<_;V++)if(b.dyn_ltree[V*2]!==0)return n;return h}var Wt=!1;function _e(b){Wt||(ut(),Wt=!0),b.l_desc=new at(b.dyn_ltree,Dt),b.d_desc=new at(b.dyn_dtree,kt),b.bl_desc=new at(b.bl_tree,vt),b.bi_buf=0,b.bi_valid=0,Nt(b)}function se(b,M,V,W){dt(b,(u<<1)+(W?1:0),3),Vt(b,M,V)}function Pt(b){dt(b,g<<1,3),bt(b,N,j),At(b)}function Gt(b,M,V,W){var k,z,f=0;b.level>0?(b.strm.data_type===m&&(b.strm.data_type=ne(b)),jt(b,b.l_desc),jt(b,b.d_desc),f=Zt(b),k=b.opt_len+3+7>>>3,z=b.static_len+3+7>>>3,z<=k&&(k=z)):k=z=V+5,V+4<=k&&M!==-1?se(b,M,V,W):b.strategy===a||z===k?(dt(b,(g<<1)+(W?1:0),3),rt(b,j,tt)):(dt(b,(v<<1)+(W?1:0),3),ue(b,b.l_desc.max_code+1,b.d_desc.max_code+1,f+1),rt(b,b.dyn_ltree,b.dyn_dtree)),Nt(b),W&&he(b)}function pe(b,M,V){return b.pending_buf[b.d_buf+b.last_lit*2]=M>>>8&255,b.pending_buf[b.d_buf+b.last_lit*2+1]=M&255,b.pending_buf[b.l_buf+b.last_lit]=V&255,b.last_lit++,M===0?b.dyn_ltree[V*2]++:(b.matches++,M--,b.dyn_ltree[(ht[V]+_+1)*2]++,b.dyn_dtree[St(M)*2]++),b.last_lit===b.lit_bufsize-1}s._tr_init=_e,s._tr_stored_block=se,s._tr_flush_block=Gt,s._tr_tally=pe,s._tr_align=Pt},{"../utils/common":41}],53:[function(e,r,s){function l(){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}r.exports=l},{}],54:[function(e,r,s){(function(l){(function(a,h){if(a.setImmediate)return;var n=1,m={},c=!1,u=a.document,g;function v(E){typeof E!="function"&&(E=new Function(""+E));for(var N=new Array(arguments.length-1),D=0;D"u"?typeof l>"u"?this:l:self)}).call(this,typeof Ie<"u"?Ie:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Re);var Ke=Re.exports,Ge=He(Ke);class Je{load(t,e){fetch(t).then(function(r){return r.status===200||r.status===0?Promise.resolve(r.blob()):Promise.reject(new Error(r.statusText))}).then(Ge.loadAsync).then(async function(r){let s=null;const l={};for(let h in r.files){r.files[h];const n=h.split(".").pop();if(n==="ssfb"){if(s!==null){e(null,null,null,new Error("already exist ssfb file"));return}s=h}else if(n==="png"){const m=h.split(".").slice(0,-1).join(".");l[m]=await r.file(h).async("uint8array")}}let a=await r.file(s).async("uint8array");e(s,a,l,null)},function(s){e(null,null,null,s)})}}class $e{static createAnimePackMap(t){const e=t.fbObj.animePacksLength(),r={};for(let s=0;s{e.setupForLoadComplete(r)})}loadSspkg(t){const e=this;new Je().load(t,(s,l,a,h)=>{if(h!==null)return;let n=new Ne(s,l,a,()=>{e.setupForLoadComplete(n)})})}setupForLoadComplete(t){this.projectData=t,this.animePackMap=$e.createAnimePackMap(this.projectData),this.onComplete!==null&&this.onComplete()}loadAnimation(t,e){let r=!1;this.textureContainer==null&&(r=!0,this.textureContainer=new We(this));const s=this.animePackMap[t],l=s.animePack,h=s.animationMap[e];this.currentAnimation=h,this.currentAnimePack=l,this.textureContainer.Setup(t,e);const n=h.labelDataLength();for(let m=0;m>2,E=(o&3)<<4|_>>4,F=x>1?(_&15)<<2|y>>6:64,l=x>2?y&63:64,m.push(c.charAt(v)+c.charAt(E)+c.charAt(F)+c.charAt(l));return m.join("")},s.decode=function(n){var m,o,_,y,v,E,F,l=0,d=0,b="data:";if(n.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");n=n.replace(/[^A-Za-z0-9+/=]/g,"");var x=n.length*3/4;if(n.charAt(n.length-1)===c.charAt(64)&&x--,n.charAt(n.length-2)===c.charAt(64)&&x--,x%1!==0)throw new Error("Invalid base64 input, bad content length.");var P;for(a.uint8array?P=new Uint8Array(x|0):P=new Array(x|0);l>4,o=(v&15)<<4|E>>2,_=(E&3)<<6|F,P[d++]=m,E!==64&&(P[d++]=o),F!==64&&(P[d++]=_);return P}},{"./support":30,"./utils":32}],2:[function(e,r,s){var f=e("./external"),a=e("./stream/DataWorker"),c=e("./stream/Crc32Probe"),n=e("./stream/DataLengthProbe");function m(o,_,y,v,E){this.compressedSize=o,this.uncompressedSize=_,this.crc32=y,this.compression=v,this.compressedContent=E}m.prototype={getContentWorker:function(){var o=new a(f.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),_=this;return o.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),o},getCompressedWorker:function(){return new a(f.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},m.createWorkerFrom=function(o,_,y){return o.pipe(new c).pipe(new n("uncompressedSize")).pipe(_.compressWorker(y)).pipe(new n("compressedSize")).withStreamInfo("compression",_)},r.exports=m},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,r,s){var f=e("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new f("STORE compression")},uncompressWorker:function(){return new f("STORE decompression")}},s.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,r,s){var f=e("./utils");function a(){for(var o,_=[],y=0;y<256;y++){o=y;for(var v=0;v<8;v++)o=o&1?3988292384^o>>>1:o>>>1;_[y]=o}return _}var c=a();function n(o,_,y,v){var E=c,F=v+y;o=o^-1;for(var l=v;l>>8^E[(o^_[l])&255];return o^-1}function m(o,_,y,v){var E=c,F=v+y;o=o^-1;for(var l=v;l>>8^E[(o^_.charCodeAt(l))&255];return o^-1}r.exports=function(_,y){if(typeof _>"u"||!_.length)return 0;var v=f.getTypeOf(_)!=="string";return v?n(y|0,_,_.length,0):m(y|0,_,_.length,0)}},{"./utils":32}],5:[function(e,r,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(e,r,s){var f=null;typeof Promise<"u"?f=Promise:f=e("lie"),r.exports={Promise:f}},{lie:37}],7:[function(e,r,s){var f=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=e("pako"),c=e("./utils"),n=e("./stream/GenericWorker"),m=f?"uint8array":"array";s.magic="\b\0";function o(_,y){n.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=y,this.meta={}}c.inherits(o,n),o.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(c.transformTo(m,_.data),!1)},o.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},o.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},o.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(y){_.push({data:y,meta:_.meta})}},s.compressWorker=function(_){return new o("Deflate",_)},s.uncompressWorker=function(){return new o("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,r,s){var f=e("../utils"),a=e("../stream/GenericWorker"),c=e("../utf8"),n=e("../crc32"),m=e("../signature"),o=function(d,b){var x="",P;for(P=0;P>>8;return x},_=function(d,b){var x=d;return d||(x=b?16893:33204),(x&65535)<<16},y=function(d){return(d||0)&63},v=function(d,b,x,P,g,I){var C=d.file,S=d.compression,N=I!==c.utf8encode,D=f.transformTo("string",I(C.name)),V=f.transformTo("string",c.utf8encode(C.name)),R=C.comment,j=f.transformTo("string",I(R)),$=f.transformTo("string",c.utf8encode(R)),G=V.length!==C.name.length,et=$.length!==R.length,W,Z,Q="",at="",ht="",K=C.dir,ot=C.date,nt={crc32:0,compressedSize:0,uncompressedSize:0};(!b||x)&&(nt.crc32=d.crc32,nt.compressedSize=d.compressedSize,nt.uncompressedSize=d.uncompressedSize);var kt=0;b&&(kt|=8),!N&&(G||et)&&(kt|=2048);var Ft=0,vt=0;K&&(Ft|=16),g==="UNIX"?(vt=798,Ft|=_(C.unixPermissions,K)):(vt=20,Ft|=y(C.dosPermissions)),W=ot.getUTCHours(),W=W<<6,W=W|ot.getUTCMinutes(),W=W<<5,W=W|ot.getUTCSeconds()/2,Z=ot.getUTCFullYear()-1980,Z=Z<<4,Z=Z|ot.getUTCMonth()+1,Z=Z<<5,Z=Z|ot.getUTCDate(),G&&(at=o(1,1)+o(n(D),4)+V,Q+="up"+o(at.length,2)+at),et&&(ht=o(1,1)+o(n(j),4)+$,Q+="uc"+o(ht.length,2)+ht);var st="";st+=`
+\0`,st+=o(kt,2),st+=S.magic,st+=o(W,2),st+=o(Z,2),st+=o(nt.crc32,4),st+=o(nt.compressedSize,4),st+=o(nt.uncompressedSize,4),st+=o(D.length,2),st+=o(Q.length,2);var Ct=m.LOCAL_FILE_HEADER+st+D+Q,gt=m.CENTRAL_FILE_HEADER+o(vt,2)+st+o(j.length,2)+"\0\0\0\0"+o(Ft,4)+o(P,4)+D+Q+j;return{fileRecord:Ct,dirRecord:gt}},E=function(d,b,x,P,g){var I="",C=f.transformTo("string",g(P));return I=m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(d,2)+o(d,2)+o(b,4)+o(x,4)+o(C.length,2)+C,I},F=function(d){var b="";return b=m.DATA_DESCRIPTOR+o(d.crc32,4)+o(d.compressedSize,4)+o(d.uncompressedSize,4),b};function l(d,b,x,P){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=x,this.encodeFileName=P,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(l,a),l.prototype.push=function(d){var b=d.meta.percent||0,x=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,a.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:x?(b+100*(x-P-1))/x:100}}))},l.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var b=this.streamFiles&&!d.file.dir;if(b){var x=v(d,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:x.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(d){this.accumulate=!1;var b=this.streamFiles&&!d.file.dir,x=v(d,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(x.dirRecord),b)this.push({data:F(d),meta:{percent:100}});else for(this.push({data:x.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var d=this.bytesWritten,b=0;b"u")&&(D.binary=!V);var R=I instanceof o&&I.uncompressedSize===0;(R||D.dir||!I||I.length===0)&&(D.base64=!1,D.binary=!0,I="",D.compression="STORE",S="string");var j=null;I instanceof o||I instanceof c?j=I:v.isNode&&v.isStream(I)?j=new E(g,I):j=a.prepareContent(g,I,D.binary,D.optimizedBinaryString,D.base64);var $=new _(g,j,D);this.files[g]=$},l=function(g){g.slice(-1)==="/"&&(g=g.substring(0,g.length-1));var I=g.lastIndexOf("/");return I>0?g.substring(0,I):""},d=function(g){return g.slice(-1)!=="/"&&(g+="/"),g},b=function(g,I){return I=typeof I<"u"?I:m.createFolders,g=d(g),this.files[g]||F.call(this,g,null,{dir:!0,createFolders:I}),this.files[g]};function x(g){return Object.prototype.toString.call(g)==="[object RegExp]"}var P={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(g){var I,C,S;for(I in this.files)S=this.files[I],C=I.slice(this.root.length,I.length),C&&I.slice(0,this.root.length)===this.root&&g(C,S)},filter:function(g){var I=[];return this.forEach(function(C,S){g(C,S)&&I.push(S)}),I},file:function(g,I,C){if(arguments.length===1)if(x(g)){var S=g;return this.filter(function(D,V){return!V.dir&&S.test(D)})}else{var N=this.files[this.root+g];return N&&!N.dir?N:null}else g=this.root+g,F.call(this,g,I,C);return this},folder:function(g){if(!g)return this;if(x(g))return this.filter(function(N,D){return D.dir&&g.test(N)});var I=this.root+g,C=b.call(this,I),S=this.clone();return S.root=C.name,S},remove:function(g){g=this.root+g;var I=this.files[g];if(I||(g.slice(-1)!=="/"&&(g+="/"),I=this.files[g]),I&&!I.dir)delete this.files[g];else for(var C=this.filter(function(N,D){return D.name.slice(0,g.length)===g}),S=0;S=0;--v)if(this.data[v]===m&&this.data[v+1]===o&&this.data[v+2]===_&&this.data[v+3]===y)return v-this.zero;return-1},c.prototype.readAndCheckSignature=function(n){var m=n.charCodeAt(0),o=n.charCodeAt(1),_=n.charCodeAt(2),y=n.charCodeAt(3),v=this.readData(4);return m===v[0]&&o===v[1]&&_===v[2]&&y===v[3]},c.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=c},{"../utils":32,"./DataReader":18}],18:[function(e,r,s){var f=e("../utils");function a(c){this.data=c,this.length=c.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(c){this.checkIndex(this.index+c)},checkIndex:function(c){if(this.length=this.index;m--)n=(n<<8)+this.byteAt(m);return this.index+=c,n},readString:function(c){return f.transformTo("string",this.readData(c))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var c=this.readInt(4);return new Date(Date.UTC((c>>25&127)+1980,(c>>21&15)-1,c>>16&31,c>>11&31,c>>5&63,(c&31)<<1))}},r.exports=a},{"../utils":32}],19:[function(e,r,s){var f=e("./Uint8ArrayReader"),a=e("../utils");function c(n){f.call(this,n)}a.inherits(c,f),c.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,r,s){var f=e("./DataReader"),a=e("../utils");function c(n){f.call(this,n)}a.inherits(c,f),c.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},c.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},c.prototype.readAndCheckSignature=function(n){var m=this.readData(4);return n===m},c.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=c},{"../utils":32,"./DataReader":18}],21:[function(e,r,s){var f=e("./ArrayReader"),a=e("../utils");function c(n){f.call(this,n)}a.inherits(c,f),c.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var m=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(e,r,s){var f=e("../utils"),a=e("../support"),c=e("./ArrayReader"),n=e("./StringReader"),m=e("./NodeBufferReader"),o=e("./Uint8ArrayReader");r.exports=function(_){var y=f.getTypeOf(_);return f.checkSupport(y),y==="string"&&!a.uint8array?new n(_):y==="nodebuffer"?new m(_):a.uint8array?new o(f.transformTo("uint8array",_)):new c(f.transformTo("array",_))}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,r,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,r,s){var f=e("./GenericWorker"),a=e("../utils");function c(n){f.call(this,"ConvertWorker to "+n),this.destType=n}a.inherits(c,f),c.prototype.processChunk=function(n){this.push({data:a.transformTo(this.destType,n.data),meta:n.meta})},r.exports=c},{"../utils":32,"./GenericWorker":28}],25:[function(e,r,s){var f=e("./GenericWorker"),a=e("../crc32"),c=e("../utils");function n(){f.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}c.inherits(n,f),n.prototype.processChunk=function(m){this.streamInfo.crc32=a(m.data,this.streamInfo.crc32||0),this.push(m)},r.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,r,s){var f=e("../utils"),a=e("./GenericWorker");function c(n){a.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}f.inherits(c,a),c.prototype.processChunk=function(n){if(n){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+n.data.length}a.prototype.processChunk.call(this,n)},r.exports=c},{"../utils":32,"./GenericWorker":28}],27:[function(e,r,s){var f=e("../utils"),a=e("./GenericWorker"),c=16*1024;function n(m){a.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,m.then(function(_){o.dataIsReady=!0,o.data=_,o.max=_&&_.length||0,o.type=f.getTypeOf(_),o.isPaused||o._tickAndRepeat()},function(_){o.error(_)})}f.inherits(n,a),n.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return a.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,f.delay(this._tickAndRepeat,[],this)),!0):!1},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(f.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var m=c,o=null,_=Math.min(this.max,this.index+m);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,_);break;case"uint8array":o=this.data.subarray(this.index,_);break;case"array":case"nodebuffer":o=this.data.slice(this.index,_);break}return this.index=_,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,r,s){function f(a){this.name=a||"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}f.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return this.isFinished?!1:(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,c){return this._listeners[a].push(c),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,c){if(this._listeners[a])for(var n=0;n "+a:a}},r.exports=f},{}],29:[function(e,r,s){var f=e("../utils"),a=e("./ConvertWorker"),c=e("./GenericWorker"),n=e("../base64"),m=e("../support"),o=e("../external"),_=null;if(m.nodestream)try{_=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function y(l,d,b){switch(l){case"blob":return f.newBlob(f.transformTo("arraybuffer",d),b);case"base64":return n.encode(d);default:return f.transformTo(l,d)}}function v(l,d){var b,x=0,P=null,g=0;for(b=0;b"u")s.blob=!1;else{var f=new ArrayBuffer(0);try{s.blob=new Blob([f],{type:"application/zip"}).size===0}catch{try{var a=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,c=new a;c.append(f),s.blob=c.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!e("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(e,r,s){for(var f=e("./utils"),a=e("./support"),c=e("./nodejsUtils"),n=e("./stream/GenericWorker"),m=new Array(256),o=0;o<256;o++)m[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;m[254]=m[254]=1;var _=function(l){var d,b,x,P,g,I=l.length,C=0;for(P=0;P>>6,d[g++]=128|b&63):b<65536?(d[g++]=224|b>>>12,d[g++]=128|b>>>6&63,d[g++]=128|b&63):(d[g++]=240|b>>>18,d[g++]=128|b>>>12&63,d[g++]=128|b>>>6&63,d[g++]=128|b&63);return d},y=function(l,d){var b;for(d=d||l.length,d>l.length&&(d=l.length),b=d-1;b>=0&&(l[b]&192)===128;)b--;return b<0||b===0?d:b+m[l[b]]>d?b:d},v=function(l){var d,b,x,P,g=l.length,I=new Array(g*2);for(b=0,d=0;d4){I[b++]=65533,d+=P-1;continue}for(x&=P===2?31:P===3?15:7;P>1&&d1){I[b++]=65533;continue}x<65536?I[b++]=x:(x-=65536,I[b++]=55296|x>>10&1023,I[b++]=56320|x&1023)}return I.length!==b&&(I.subarray?I=I.subarray(0,b):I.length=b),f.applyFromCharCode(I)};s.utf8encode=function(d){return a.nodebuffer?c.newBufferFrom(d,"utf-8"):_(d)},s.utf8decode=function(d){return a.nodebuffer?f.transformTo("nodebuffer",d).toString("utf-8"):(d=f.transformTo(a.uint8array?"uint8array":"array",d),v(d))};function E(){n.call(this,"utf-8 decode"),this.leftOver=null}f.inherits(E,n),E.prototype.processChunk=function(l){var d=f.transformTo(a.uint8array?"uint8array":"array",l.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var b=d;d=new Uint8Array(b.length+this.leftOver.length),d.set(this.leftOver,0),d.set(b,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var x=y(d),P=d;x!==d.length&&(a.uint8array?(P=d.subarray(0,x),this.leftOver=d.subarray(x,d.length)):(P=d.slice(0,x),this.leftOver=d.slice(x,d.length))),this.push({data:s.utf8decode(P),meta:l.meta})},E.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=E;function F(){n.call(this,"utf-8 encode")}f.inherits(F,n),F.prototype.processChunk=function(l){this.push({data:s.utf8encode(l.data),meta:l.meta})},s.Utf8EncodeWorker=F},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,s){var f=e("./support"),a=e("./base64"),c=e("./nodejsUtils"),n=e("./external");e("setimmediate");function m(l){var d=null;return f.uint8array?d=new Uint8Array(l.length):d=new Array(l.length),_(l,d)}s.newBlob=function(l,d){s.checkSupport("blob");try{return new Blob([l],{type:d})}catch{try{var b=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,x=new b;return x.append(l),x.getBlob(d)}catch{throw new Error("Bug : can't construct the Blob.")}}};function o(l){return l}function _(l,d){for(var b=0;b1;)try{return y.stringifyByChunk(l,b,d)}catch{d=Math.floor(d/2)}return y.stringifyByChar(l)}s.applyFromCharCode=v;function E(l,d){for(var b=0;b"u"&&(l[b]=arguments[d][b]);return l},s.prepareContent=function(l,d,b,x,P){var g=n.Promise.resolve(d).then(function(I){var C=f.blob&&(I instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(I))!==-1);return C&&typeof FileReader<"u"?new n.Promise(function(S,N){var D=new FileReader;D.onload=function(V){S(V.target.result)},D.onerror=function(V){N(V.target.error)},D.readAsArrayBuffer(I)}):I});return g.then(function(I){var C=s.getTypeOf(I);return C?(C==="arraybuffer"?I=s.transformTo("uint8array",I):C==="string"&&(P?I=a.decode(I):b&&x!==!0&&(I=m(I))),I):n.Promise.reject(new Error("Can't read the data of '"+l+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,r,s){var f=e("./reader/readerFor"),a=e("./utils"),c=e("./signature"),n=e("./zipEntry"),m=e("./support");function o(_){this.files=[],this.loadOptions=_}o.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var y=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(y)+", expected "+a.pretty(_)+")")}},isSignature:function(_,y){var v=this.reader.index;this.reader.setIndex(_);var E=this.reader.readString(4),F=E===y;return this.reader.setIndex(v),F},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 _=this.reader.readData(this.zipCommentLength),y=m.uint8array?"uint8array":"array",v=a.transformTo(y,_);this.zipComment=this.loadOptions.decodeFileName(v)},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 _=this.zip64EndOfCentralSize-44,y=0,v,E,F;y<_;)v=this.reader.readInt(2),E=this.reader.readInt(4),F=this.reader.readData(E),this.zip64ExtensibleData[v]={id:v,length:E,value:F}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,y;for(_=0;_0)this.isSignature(v,c.CENTRAL_FILE_HEADER)||(this.reader.zero=F);else if(F<0)throw new Error("Corrupted zip: missing "+Math.abs(F)+" bytes.")},prepareReader:function(_){this.reader=f(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=o},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,r,s){var f=e("./reader/readerFor"),a=e("./utils"),c=e("./compressedObject"),n=e("./crc32"),m=e("./utf8"),o=e("./compressions"),_=e("./support"),y=0,v=3,E=function(l){for(var d in o)if(Object.prototype.hasOwnProperty.call(o,d)&&o[d].magic===l)return o[d];return null};function F(l,d){this.options=l,this.loadOptions=d}F.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(l){var d,b;if(l.skip(22),this.fileNameLength=l.readInt(2),b=l.readInt(2),this.fileName=l.readData(this.fileNameLength),l.skip(b),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(d=E(this.compressionMethod),d===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new c(this.compressedSize,this.uncompressedSize,this.crc32,d,l.readData(this.compressedSize))},readCentralPart:function(l){this.versionMadeBy=l.readInt(2),l.skip(2),this.bitFlag=l.readInt(2),this.compressionMethod=l.readString(2),this.date=l.readDate(),this.crc32=l.readInt(4),this.compressedSize=l.readInt(4),this.uncompressedSize=l.readInt(4);var d=l.readInt(2);if(this.extraFieldsLength=l.readInt(2),this.fileCommentLength=l.readInt(2),this.diskNumberStart=l.readInt(2),this.internalFileAttributes=l.readInt(2),this.externalFileAttributes=l.readInt(4),this.localHeaderOffset=l.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");l.skip(d),this.readExtraFields(l),this.parseZIP64ExtraField(l),this.fileComment=l.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var l=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),l===y&&(this.dosPermissions=this.externalFileAttributes&63),l===v&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var l=f(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=l.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=l.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=l.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=l.readInt(4))}},readExtraFields:function(l){var d=l.index+this.extraFieldsLength,b,x,P;for(this.extraFields||(this.extraFields={});l.index+40?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var N=f.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(N!==v)throw new Error(n[N]);if(S.header&&f.deflateSetHeader(this.strm,S.header),S.dictionary){var D;if(typeof S.dictionary=="string"?D=c.string2buf(S.dictionary):o.call(S.dictionary)==="[object ArrayBuffer]"?D=new Uint8Array(S.dictionary):D=S.dictionary,N=f.deflateSetDictionary(this.strm,D),N!==v)throw new Error(n[N]);this._dict_set=!0}}x.prototype.push=function(C,S){var N=this.strm,D=this.options.chunkSize,V,R;if(this.ended)return!1;R=S===~~S?S:S===!0?y:_,typeof C=="string"?N.input=c.string2buf(C):o.call(C)==="[object ArrayBuffer]"?N.input=new Uint8Array(C):N.input=C,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(D),N.next_out=0,N.avail_out=D),V=f.deflate(N,R),V!==E&&V!==v)return this.onEnd(V),this.ended=!0,!1;(N.avail_out===0||N.avail_in===0&&(R===y||R===F))&&(this.options.to==="string"?this.onData(c.buf2binstring(a.shrinkBuf(N.output,N.next_out))):this.onData(a.shrinkBuf(N.output,N.next_out)))}while((N.avail_in>0||N.avail_out===0)&&V!==E);return R===y?(V=f.deflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===v):(R===F&&(this.onEnd(v),N.avail_out=0),!0)},x.prototype.onData=function(C){this.chunks.push(C)},x.prototype.onEnd=function(C){C===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=C,this.msg=this.strm.msg};function P(C,S){var N=new x(S);if(N.push(C,!0),N.err)throw N.msg||n[N.err];return N.result}function g(C,S){return S=S||{},S.raw=!0,P(C,S)}function I(C,S){return S=S||{},S.gzip=!0,P(C,S)}s.Deflate=x,s.deflate=P,s.deflateRaw=g,s.gzip=I},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,r,s){var f=e("./zlib/inflate"),a=e("./utils/common"),c=e("./utils/strings"),n=e("./zlib/constants"),m=e("./zlib/messages"),o=e("./zlib/zstream"),_=e("./zlib/gzheader"),y=Object.prototype.toString;function v(l){if(!(this instanceof v))return new v(l);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},l||{});var d=this.options;d.raw&&d.windowBits>=0&&d.windowBits<16&&(d.windowBits=-d.windowBits,d.windowBits===0&&(d.windowBits=-15)),d.windowBits>=0&&d.windowBits<16&&!(l&&l.windowBits)&&(d.windowBits+=32),d.windowBits>15&&d.windowBits<48&&(d.windowBits&15||(d.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var b=f.inflateInit2(this.strm,d.windowBits);if(b!==n.Z_OK)throw new Error(m[b]);this.header=new _,f.inflateGetHeader(this.strm,this.header)}v.prototype.push=function(l,d){var b=this.strm,x=this.options.chunkSize,P=this.options.dictionary,g,I,C,S,N,D,V=!1;if(this.ended)return!1;I=d===~~d?d:d===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof l=="string"?b.input=c.binstring2buf(l):y.call(l)==="[object ArrayBuffer]"?b.input=new Uint8Array(l):b.input=l,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new a.Buf8(x),b.next_out=0,b.avail_out=x),g=f.inflate(b,n.Z_NO_FLUSH),g===n.Z_NEED_DICT&&P&&(typeof P=="string"?D=c.string2buf(P):y.call(P)==="[object ArrayBuffer]"?D=new Uint8Array(P):D=P,g=f.inflateSetDictionary(this.strm,D)),g===n.Z_BUF_ERROR&&V===!0&&(g=n.Z_OK,V=!1),g!==n.Z_STREAM_END&&g!==n.Z_OK)return this.onEnd(g),this.ended=!0,!1;b.next_out&&(b.avail_out===0||g===n.Z_STREAM_END||b.avail_in===0&&(I===n.Z_FINISH||I===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(C=c.utf8border(b.output,b.next_out),S=b.next_out-C,N=c.buf2string(b.output,C),b.next_out=S,b.avail_out=x-S,S&&a.arraySet(b.output,b.output,C,S,0),this.onData(N)):this.onData(a.shrinkBuf(b.output,b.next_out))),b.avail_in===0&&b.avail_out===0&&(V=!0)}while((b.avail_in>0||b.avail_out===0)&&g!==n.Z_STREAM_END);return g===n.Z_STREAM_END&&(I=n.Z_FINISH),I===n.Z_FINISH?(g=f.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===n.Z_OK):(I===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),b.avail_out=0),!0)},v.prototype.onData=function(l){this.chunks.push(l)},v.prototype.onEnd=function(l){l===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=l,this.msg=this.strm.msg};function E(l,d){var b=new v(d);if(b.push(l,!0),b.err)throw b.msg||m[b.err];return b.result}function F(l,d){return d=d||{},d.raw=!0,E(l,d)}s.Inflate=v,s.inflate=E,s.inflateRaw=F,s.ungzip=E},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,r,s){var f=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(n){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var o=m.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var _ in o)o.hasOwnProperty(_)&&(n[_]=o[_])}}return n},s.shrinkBuf=function(n,m){return n.length===m?n:n.subarray?n.subarray(0,m):(n.length=m,n)};var a={arraySet:function(n,m,o,_,y){if(m.subarray&&n.subarray){n.set(m.subarray(o,o+_),y);return}for(var v=0;v<_;v++)n[y+v]=m[o+v]},flattenChunks:function(n){var m,o,_,y,v,E;for(_=0,m=0,o=n.length;m=252?6:m>=248?5:m>=240?4:m>=224?3:m>=192?2:1;n[254]=n[254]=1,s.string2buf=function(_){var y,v,E,F,l,d=_.length,b=0;for(F=0;F>>6,y[l++]=128|v&63):v<65536?(y[l++]=224|v>>>12,y[l++]=128|v>>>6&63,y[l++]=128|v&63):(y[l++]=240|v>>>18,y[l++]=128|v>>>12&63,y[l++]=128|v>>>6&63,y[l++]=128|v&63);return y};function o(_,y){if(y<65537&&(_.subarray&&c||!_.subarray&&a))return String.fromCharCode.apply(null,f.shrinkBuf(_,y));for(var v="",E=0;E4){b[E++]=65533,v+=l-1;continue}for(F&=l===2?31:l===3?15:7;l>1&&v1){b[E++]=65533;continue}F<65536?b[E++]=F:(F-=65536,b[E++]=55296|F>>10&1023,b[E++]=56320|F&1023)}return o(b,E)},s.utf8border=function(_,y){var v;for(y=y||_.length,y>_.length&&(y=_.length),v=y-1;v>=0&&(_[v]&192)===128;)v--;return v<0||v===0?y:v+n[_[v]]>y?v:y}},{"./common":41}],43:[function(e,r,s){function f(a,c,n,m){for(var o=a&65535|0,_=a>>>16&65535|0,y=0;n!==0;){y=n>2e3?2e3:n,n-=y;do o=o+c[m++]|0,_=_+o|0;while(--y);o%=65521,_%=65521}return o|_<<16|0}r.exports=f},{}],44:[function(e,r,s){r.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(e,r,s){function f(){for(var n,m=[],o=0;o<256;o++){n=o;for(var _=0;_<8;_++)n=n&1?3988292384^n>>>1:n>>>1;m[o]=n}return m}var a=f();function c(n,m,o,_){var y=a,v=_+o;n^=-1;for(var E=_;E>>8^y[(n^m[E])&255];return n^-1}r.exports=c},{}],46:[function(e,r,s){var f=e("../utils/common"),a=e("./trees"),c=e("./adler32"),n=e("./crc32"),m=e("./messages"),o=0,_=1,y=3,v=4,E=5,F=0,l=1,d=-2,b=-3,x=-5,P=-1,g=1,I=2,C=3,S=4,N=0,D=2,V=8,R=9,j=15,$=8,G=29,et=256,W=et+1+G,Z=30,Q=19,at=2*W+1,ht=15,K=3,ot=258,nt=ot+K+1,kt=32,Ft=42,vt=69,st=73,Ct=91,gt=103,dt=113,bt=666,ct=1,At=2,Ut=3,Bt=4,ut=3;function Nt(i,A){return i.msg=m[A],A}function he(i){return(i<<1)-(i>4?9:0)}function Vt(i){for(var A=i.length;--A>=0;)i[A]=0}function Mt(i){var A=i.state,T=A.pending;T>i.avail_out&&(T=i.avail_out),T!==0&&(f.arraySet(i.output,A.pending_buf,A.pending_out,T,i.next_out),i.next_out+=T,A.pending_out+=T,i.total_out+=T,i.avail_out-=T,A.pending-=T,A.pending===0&&(A.pending_out=0))}function _t(i,A){a._tr_flush_block(i,i.block_start>=0?i.block_start:-1,i.strstart-i.block_start,A),i.block_start=i.strstart,Mt(i.strm)}function rt(i,A){i.pending_buf[i.pending++]=A}function jt(i,A){i.pending_buf[i.pending++]=A>>>8&255,i.pending_buf[i.pending++]=A&255}function de(i,A,T,u){var w=i.avail_in;return w>u&&(w=u),w===0?0:(i.avail_in-=w,f.arraySet(A,i.input,i.next_in,w,T),i.state.wrap===1?i.adler=c(i.adler,A,w,T):i.state.wrap===2&&(i.adler=n(i.adler,A,w,T)),i.next_in+=w,i.total_in+=w,w)}function ae(i,A){var T=i.max_chain_length,u=i.strstart,w,O,J=i.prev_length,Y=i.nice_match,X=i.strstart>i.w_size-nt?i.strstart-(i.w_size-nt):0,ft=i.window,qt=i.w_mask,mt=i.prev,lt=i.strstart+ot,xt=ft[u+J-1],Tt=ft[u+J];i.prev_length>=i.good_match&&(T>>=2),Y>i.lookahead&&(Y=i.lookahead);do if(w=A,!(ft[w+J]!==Tt||ft[w+J-1]!==xt||ft[w]!==ft[u]||ft[++w]!==ft[u+1])){u+=2,w++;do;while(ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&uJ){if(i.match_start=A,J=O,O>=Y)break;xt=ft[u+J-1],Tt=ft[u+J]}}while((A=mt[A&qt])>X&&--T!==0);return J<=i.lookahead?J:i.lookahead}function Zt(i){var A=i.w_size,T,u,w,O,J;do{if(O=i.window_size-i.lookahead-i.strstart,i.strstart>=A+(A-nt)){f.arraySet(i.window,i.window,A,A,0),i.match_start-=A,i.strstart-=A,i.block_start-=A,u=i.hash_size,T=u;do w=i.head[--T],i.head[T]=w>=A?w-A:0;while(--u);u=A,T=u;do w=i.prev[--T],i.prev[T]=w>=A?w-A:0;while(--u);O+=A}if(i.strm.avail_in===0)break;if(u=de(i.strm,i.window,i.strstart+i.lookahead,O),i.lookahead+=u,i.lookahead+i.insert>=K)for(J=i.strstart-i.insert,i.ins_h=i.window[J],i.ins_h=(i.ins_h<i.pending_buf_size-5&&(T=i.pending_buf_size-5);;){if(i.lookahead<=1){if(Zt(i),i.lookahead===0&&A===o)return ct;if(i.lookahead===0)break}i.strstart+=i.lookahead,i.lookahead=0;var u=i.block_start+T;if((i.strstart===0||i.strstart>=u)&&(i.lookahead=i.strstart-u,i.strstart=u,_t(i,!1),i.strm.avail_out===0)||i.strstart-i.block_start>=i.w_size-nt&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):(i.strstart>i.block_start&&(_t(i,!1),i.strm.avail_out===0),ct)}function ne(i,A){for(var T,u;;){if(i.lookahead=K&&(i.ins_h=(i.ins_h<=K)if(u=a._tr_tally(i,i.strstart-i.match_start,i.match_length-K),i.lookahead-=i.match_length,i.match_length<=i.max_lazy_match&&i.lookahead>=K){i.match_length--;do i.strstart++,i.ins_h=(i.ins_h<=K&&(i.ins_h=(i.ins_h<4096)&&(i.match_length=K-1)),i.prev_length>=K&&i.match_length<=i.prev_length){w=i.strstart+i.lookahead-K,u=a._tr_tally(i,i.strstart-1-i.prev_match,i.prev_length-K),i.lookahead-=i.prev_length-1,i.prev_length-=2;do++i.strstart<=w&&(i.ins_h=(i.ins_h<=K&&i.strstart>0&&(w=i.strstart-1,u=J[w],u===J[++w]&&u===J[++w]&&u===J[++w])){O=i.strstart+ot;do;while(u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&wi.lookahead&&(i.match_length=i.lookahead)}if(i.match_length>=K?(T=a._tr_tally(i,1,i.match_length-K),i.lookahead-=i.match_length,i.strstart+=i.match_length,i.match_length=0):(T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++),T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function se(i,A){for(var T;;){if(i.lookahead===0&&(Zt(i),i.lookahead===0)){if(A===o)return ct;break}if(i.match_length=0,T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++,T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Ut:Bt):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function Pt(i,A,T,u,w){this.good_length=i,this.max_lazy=A,this.nice_length=T,this.max_chain=u,this.func=w}var Gt;Gt=[new Pt(0,0,0,0,ue),new Pt(4,4,8,4,ne),new Pt(4,5,16,8,ne),new Pt(4,6,32,32,ne),new Pt(4,4,16,16,Wt),new Pt(8,16,32,32,Wt),new Pt(8,16,128,128,Wt),new Pt(8,32,128,256,Wt),new Pt(32,128,258,1024,Wt),new Pt(32,258,258,4096,Wt)];function pe(i){i.window_size=2*i.w_size,Vt(i.head),i.max_lazy_match=Gt[i.level].max_lazy,i.good_match=Gt[i.level].good_length,i.nice_match=Gt[i.level].nice_length,i.max_chain_length=Gt[i.level].max_chain,i.strstart=0,i.block_start=0,i.lookahead=0,i.insert=0,i.match_length=i.prev_length=K-1,i.match_available=0,i.ins_h=0}function p(){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=V,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 f.Buf16(at*2),this.dyn_dtree=new f.Buf16((2*Z+1)*2),this.bl_tree=new f.Buf16((2*Q+1)*2),Vt(this.dyn_ltree),Vt(this.dyn_dtree),Vt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(ht+1),this.heap=new f.Buf16(2*W+1),Vt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*W+1),Vt(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 M(i){var A;return!i||!i.state?Nt(i,d):(i.total_in=i.total_out=0,i.data_type=D,A=i.state,A.pending=0,A.pending_out=0,A.wrap<0&&(A.wrap=-A.wrap),A.status=A.wrap?Ft:dt,i.adler=A.wrap===2?0:1,A.last_flush=o,a._tr_init(A),F)}function B(i){var A=M(i);return A===F&&pe(i.state),A}function H(i,A){return!i||!i.state||i.state.wrap!==2?d:(i.state.gzhead=A,F)}function k(i,A,T,u,w,O){if(!i)return d;var J=1;if(A===P&&(A=6),u<0?(J=0,u=-u):u>15&&(J=2,u-=16),w<1||w>R||T!==V||u<8||u>15||A<0||A>9||O<0||O>S)return Nt(i,d);u===8&&(u=9);var Y=new p;return i.state=Y,Y.strm=i,Y.wrap=J,Y.gzhead=null,Y.w_bits=u,Y.w_size=1<E||A<0)return i?Nt(i,d):d;if(u=i.state,!i.output||!i.input&&i.avail_in!==0||u.status===bt&&A!==v)return Nt(i,i.avail_out===0?x:d);if(u.strm=i,T=u.last_flush,u.last_flush=A,u.status===Ft)if(u.wrap===2)i.adler=0,rt(u,31),rt(u,139),rt(u,8),u.gzhead?(rt(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),rt(u,u.gzhead.time&255),rt(u,u.gzhead.time>>8&255),rt(u,u.gzhead.time>>16&255),rt(u,u.gzhead.time>>24&255),rt(u,u.level===9?2:u.strategy>=I||u.level<2?4:0),rt(u,u.gzhead.os&255),u.gzhead.extra&&u.gzhead.extra.length&&(rt(u,u.gzhead.extra.length&255),rt(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(i.adler=n(i.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=vt):(rt(u,0),rt(u,0),rt(u,0),rt(u,0),rt(u,0),rt(u,u.level===9?2:u.strategy>=I||u.level<2?4:0),rt(u,ut),u.status=dt);else{var J=V+(u.w_bits-8<<4)<<8,Y=-1;u.strategy>=I||u.level<2?Y=0:u.level<6?Y=1:u.level===6?Y=2:Y=3,J|=Y<<6,u.strstart!==0&&(J|=kt),J+=31-J%31,u.status=dt,jt(u,J),u.strstart!==0&&(jt(u,i.adler>>>16),jt(u,i.adler&65535)),i.adler=1}if(u.status===vt)if(u.gzhead.extra){for(w=u.pending;u.gzindex<(u.gzhead.extra.length&65535)&&!(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>w&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),Mt(i),w=u.pending,u.pending===u.pending_buf_size));)rt(u,u.gzhead.extra[u.gzindex]&255),u.gzindex++;u.gzhead.hcrc&&u.pending>w&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),u.gzindex===u.gzhead.extra.length&&(u.gzindex=0,u.status=st)}else u.status=st;if(u.status===st)if(u.gzhead.name){w=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>w&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),Mt(i),w=u.pending,u.pending===u.pending_buf_size)){O=1;break}u.gzindexw&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),O===0&&(u.gzindex=0,u.status=Ct)}else u.status=Ct;if(u.status===Ct)if(u.gzhead.comment){w=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>w&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),Mt(i),w=u.pending,u.pending===u.pending_buf_size)){O=1;break}u.gzindexw&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),O===0&&(u.status=gt)}else u.status=gt;if(u.status===gt&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&Mt(i),u.pending+2<=u.pending_buf_size&&(rt(u,i.adler&255),rt(u,i.adler>>8&255),i.adler=0,u.status=dt)):u.status=dt),u.pending!==0){if(Mt(i),i.avail_out===0)return u.last_flush=-1,F}else if(i.avail_in===0&&he(A)<=he(T)&&A!==v)return Nt(i,x);if(u.status===bt&&i.avail_in!==0)return Nt(i,x);if(i.avail_in!==0||u.lookahead!==0||A!==o&&u.status!==bt){var X=u.strategy===I?se(u,A):u.strategy===C?_e(u,A):Gt[u.level].func(u,A);if((X===Ut||X===Bt)&&(u.status=bt),X===ct||X===Ut)return i.avail_out===0&&(u.last_flush=-1),F;if(X===At&&(A===_?a._tr_align(u):A!==E&&(a._tr_stored_block(u,0,0,!1),A===y&&(Vt(u.head),u.lookahead===0&&(u.strstart=0,u.block_start=0,u.insert=0))),Mt(i),i.avail_out===0))return u.last_flush=-1,F}return A!==v?F:u.wrap<=0?l:(u.wrap===2?(rt(u,i.adler&255),rt(u,i.adler>>8&255),rt(u,i.adler>>16&255),rt(u,i.adler>>24&255),rt(u,i.total_in&255),rt(u,i.total_in>>8&255),rt(u,i.total_in>>16&255),rt(u,i.total_in>>24&255)):(jt(u,i.adler>>>16),jt(u,i.adler&65535)),Mt(i),u.wrap>0&&(u.wrap=-u.wrap),u.pending!==0?F:l)}function U(i){var A;return!i||!i.state?d:(A=i.state.status,A!==Ft&&A!==vt&&A!==st&&A!==Ct&&A!==gt&&A!==dt&&A!==bt?Nt(i,d):(i.state=null,A===dt?Nt(i,b):F))}function q(i,A){var T=A.length,u,w,O,J,Y,X,ft,qt;if(!i||!i.state||(u=i.state,J=u.wrap,J===2||J===1&&u.status!==Ft||u.lookahead))return d;for(J===1&&(i.adler=c(i.adler,A,T,0)),u.wrap=0,T>=u.w_size&&(J===0&&(Vt(u.head),u.strstart=0,u.block_start=0,u.insert=0),qt=new f.Buf8(u.w_size),f.arraySet(qt,A,T-u.w_size,u.w_size,0),A=qt,T=u.w_size),Y=i.avail_in,X=i.next_in,ft=i.input,i.avail_in=T,i.next_in=0,i.input=A,Zt(u);u.lookahead>=K;){w=u.strstart,O=u.lookahead-(K-1);do u.ins_h=(u.ins_h<>>24,g>>>=R,I-=R,R=V>>>16&255,R===0)Z[v++]=V&65535;else if(R&16){j=V&65535,R&=15,R&&(I>>=R,I-=R),I<15&&(g+=W[_++]<>>24,g>>>=R,I-=R,R=V>>>16&255,R&16){if($=V&65535,R&=15,Il){n.msg="invalid distance too far back",o.mode=f;break t}if(g>>>=R,I-=R,R=v-E,$>R){if(R=$-R,R>b&&o.sane){n.msg="invalid distance too far back",o.mode=f;break t}if(G=0,et=P,x===0){if(G+=d-R,R2;)Z[v++]=et[G++],Z[v++]=et[G++],Z[v++]=et[G++],j-=3;j&&(Z[v++]=et[G++],j>1&&(Z[v++]=et[G++]))}else{G=v-$;do Z[v++]=Z[G++],Z[v++]=Z[G++],Z[v++]=Z[G++],j-=3;while(j>2);j&&(Z[v++]=Z[G++],j>1&&(Z[v++]=Z[G++]))}}else if(R&64){n.msg="invalid distance code",o.mode=f;break t}else{V=S[(V&65535)+(g&(1<>3,_-=j,I-=j<<3,g&=(1<>>24&255)+(k>>>8&65280)+((k&65280)<<8)+((k&255)<<24)}function de(){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 f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(k){var z;return!k||!k.state?x:(z=k.state,k.total_in=k.total_out=z.total=0,k.msg="",z.wrap&&(k.adler=z.wrap&1),z.mode=S,z.last=0,z.havedict=0,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new f.Buf32(Vt),z.distcode=z.distdyn=new f.Buf32(Mt),z.sane=1,z.back=-1,l)}function Zt(k){var z;return!k||!k.state?x:(z=k.state,z.wsize=0,z.whave=0,z.wnext=0,ae(k))}function ue(k,z){var h,U;return!k||!k.state||(U=k.state,z<0?(h=0,z=-z):(h=(z>>4)+1,z<48&&(z&=15)),z&&(z<8||z>15))?x:(U.window!==null&&U.wbits!==z&&(U.window=null),U.wrap=h,U.wbits=z,Zt(k))}function ne(k,z){var h,U;return k?(U=new de,k.state=U,U.window=null,h=ue(k,z),h!==l&&(k.state=null),h):x}function Wt(k){return ne(k,rt)}var _e=!0,se,Pt;function Gt(k){if(_e){var z;for(se=new f.Buf32(512),Pt=new f.Buf32(32),z=0;z<144;)k.lens[z++]=8;for(;z<256;)k.lens[z++]=9;for(;z<280;)k.lens[z++]=7;for(;z<288;)k.lens[z++]=8;for(m(_,k.lens,0,288,se,0,k.work,{bits:9}),z=0;z<32;)k.lens[z++]=5;m(y,k.lens,0,32,Pt,0,k.work,{bits:5}),_e=!1}k.lencode=se,k.lenbits=9,k.distcode=Pt,k.distbits=5}function pe(k,z,h,U){var q,i=k.state;return i.window===null&&(i.wsize=1<=i.wsize?(f.arraySet(i.window,z,h-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(q=i.wsize-i.wnext,q>U&&(q=U),f.arraySet(i.window,z,h-U,q,i.wnext),U-=q,U?(f.arraySet(i.window,z,h-U,U,0),i.wnext=U,i.whave=i.wsize):(i.wnext+=q,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,h.check=c(h.check,Et,2,0),w=0,O=0,h.mode=N;break}if(h.flags=0,h.head&&(h.head.done=!1),!(h.wrap&1)||(((w&255)<<8)+(w>>8))%31){k.msg="incorrect header check",h.mode=ut;break}if((w&15)!==C){k.msg="unknown compression method",h.mode=ut;break}if(w>>>=4,O-=4,yt=(w&15)+8,h.wbits===0)h.wbits=yt;else if(yt>h.wbits){k.msg="invalid window size",h.mode=ut;break}h.dmax=1<>8&1),h.flags&512&&(Et[0]=w&255,Et[1]=w>>>8&255,h.check=c(h.check,Et,2,0)),w=0,O=0,h.mode=D;case D:for(;O<32;){if(T===0)break t;T--,w+=U[i++]<>>8&255,Et[2]=w>>>16&255,Et[3]=w>>>24&255,h.check=c(h.check,Et,4,0)),w=0,O=0,h.mode=V;case V:for(;O<16;){if(T===0)break t;T--,w+=U[i++]<>8),h.flags&512&&(Et[0]=w&255,Et[1]=w>>>8&255,h.check=c(h.check,Et,2,0)),w=0,O=0,h.mode=R;case R:if(h.flags&1024){for(;O<16;){if(T===0)break t;T--,w+=U[i++]<>>8&255,h.check=c(h.check,Et,2,0)),w=0,O=0}else h.head&&(h.head.extra=null);h.mode=j;case j:if(h.flags&1024&&(X=h.length,X>T&&(X=T),X&&(h.head&&(yt=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Array(h.head.extra_len)),f.arraySet(h.head.extra,U,i,X,yt)),h.flags&512&&(h.check=c(h.check,U,X,i)),T-=X,i+=X,h.length-=X),h.length))break t;h.length=0,h.mode=$;case $:if(h.flags&2048){if(T===0)break t;X=0;do yt=U[i+X++],h.head&&yt&&h.length<65536&&(h.head.name+=String.fromCharCode(yt));while(yt&&X>9&1,h.head.done=!0),k.adler=h.check=0,h.mode=Q;break;case W:for(;O<32;){if(T===0)break t;T--,w+=U[i++]<>>=O&7,O-=O&7,h.mode=At;break}for(;O<3;){if(T===0)break t;T--,w+=U[i++]<>>=1,O-=1,w&3){case 0:h.mode=ht;break;case 1:if(Gt(h),h.mode=vt,z===F){w>>>=2,O-=2;break t}break;case 2:h.mode=nt;break;case 3:k.msg="invalid block type",h.mode=ut}w>>>=2,O-=2;break;case ht:for(w>>>=O&7,O-=O&7;O<32;){if(T===0)break t;T--,w+=U[i++]<>>16^65535)){k.msg="invalid stored block lengths",h.mode=ut;break}if(h.length=w&65535,w=0,O=0,h.mode=K,z===F)break t;case K:h.mode=ot;case ot:if(X=h.length,X){if(X>T&&(X=T),X>u&&(X=u),X===0)break t;f.arraySet(q,U,i,X,A),T-=X,i+=X,u-=X,A+=X,h.length-=X;break}h.mode=Q;break;case nt:for(;O<14;){if(T===0)break t;T--,w+=U[i++]<>>=5,O-=5,h.ndist=(w&31)+1,w>>>=5,O-=5,h.ncode=(w&15)+4,w>>>=4,O-=4,h.nlen>286||h.ndist>30){k.msg="too many length or distance symbols",h.mode=ut;break}h.have=0,h.mode=kt;case kt:for(;h.have>>=3,O-=3}for(;h.have<19;)h.lens[Me[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,te={bits:h.lenbits},Yt=m(o,h.lens,0,19,h.lencode,0,h.work,te),h.lenbits=te.bits,Yt){k.msg="invalid code lengths set",h.mode=ut;break}h.have=0,h.mode=Ft;case Ft:for(;h.have>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,w+=U[i++]<>>=lt,O-=lt,h.lens[h.have++]=Tt;else{if(Tt===16){for(Jt=lt+2;O>>=lt,O-=lt,h.have===0){k.msg="invalid bit length repeat",h.mode=ut;break}yt=h.lens[h.have-1],X=3+(w&3),w>>>=2,O-=2}else if(Tt===17){for(Jt=lt+3;O>>=lt,O-=lt,yt=0,X=3+(w&7),w>>>=3,O-=3}else{for(Jt=lt+7;O>>=lt,O-=lt,yt=0,X=11+(w&127),w>>>=7,O-=7}if(h.have+X>h.nlen+h.ndist){k.msg="invalid bit length repeat",h.mode=ut;break}for(;X--;)h.lens[h.have++]=yt}}if(h.mode===ut)break;if(h.lens[256]===0){k.msg="invalid code -- missing end-of-block",h.mode=ut;break}if(h.lenbits=9,te={bits:h.lenbits},Yt=m(_,h.lens,0,h.nlen,h.lencode,0,h.work,te),h.lenbits=te.bits,Yt){k.msg="invalid literal/lengths set",h.mode=ut;break}if(h.distbits=6,h.distcode=h.distdyn,te={bits:h.distbits},Yt=m(y,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,te),h.distbits=te.bits,Yt){k.msg="invalid distances set",h.mode=ut;break}if(h.mode=vt,z===F)break t;case vt:h.mode=st;case st:if(T>=6&&u>=258){k.next_out=A,k.avail_out=u,k.next_in=i,k.avail_in=T,h.hold=w,h.bits=O,n(k,Y),A=k.next_out,q=k.output,u=k.avail_out,i=k.next_in,U=k.input,T=k.avail_in,w=h.hold,O=h.bits,h.mode===Q&&(h.back=-1);break}for(h.back=0;mt=h.lencode[w&(1<>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,w+=U[i++]<>Rt)],lt=mt>>>24,xt=mt>>>16&255,Tt=mt&65535,!(Rt+lt<=O);){if(T===0)break t;T--,w+=U[i++]<>>=Rt,O-=Rt,h.back+=Rt}if(w>>>=lt,O-=lt,h.back+=lt,h.length=Tt,xt===0){h.mode=ct;break}if(xt&32){h.back=-1,h.mode=Q;break}if(xt&64){k.msg="invalid literal/length code",h.mode=ut;break}h.extra=xt&15,h.mode=Ct;case Ct:if(h.extra){for(Jt=h.extra;O>>=h.extra,O-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=gt;case gt:for(;mt=h.distcode[w&(1<>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,w+=U[i++]<>Rt)],lt=mt>>>24,xt=mt>>>16&255,Tt=mt&65535,!(Rt+lt<=O);){if(T===0)break t;T--,w+=U[i++]<>>=Rt,O-=Rt,h.back+=Rt}if(w>>>=lt,O-=lt,h.back+=lt,xt&64){k.msg="invalid distance code",h.mode=ut;break}h.offset=Tt,h.extra=xt&15,h.mode=dt;case dt:if(h.extra){for(Jt=h.extra;O>>=h.extra,O-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){k.msg="invalid distance too far back",h.mode=ut;break}h.mode=bt;case bt:if(u===0)break t;if(X=Y-u,h.offset>X){if(X=h.offset-X,X>h.whave&&h.sane){k.msg="invalid distance too far back",h.mode=ut;break}X>h.wnext?(X-=h.wnext,ft=h.wsize-X):ft=h.wnext-X,X>h.length&&(X=h.length),qt=h.window}else qt=q,ft=A-h.offset,X=h.length;X>u&&(X=u),u-=X,h.length-=X;do q[A++]=qt[ft++];while(--X);h.length===0&&(h.mode=st);break;case ct:if(u===0)break t;q[A++]=h.length,u--,h.mode=st;break;case At:if(h.wrap){for(;O<32;){if(T===0)break t;T--,w|=U[i++]<=1&&st[j]===0;j--);if($>j&&($=j),j===0)return g[I++]=20971520,g[I++]=20971520,S.bits=1,0;for(R=1;R0&&(d===m||j!==1))return-1;for(Ct[1]=0,D=1;Dc||d===_&&Z>n)return 1;for(;;){bt=D-et,C[V]vt?(ct=gt[dt+C[V]],At=kt[Ft+C[V]]):(ct=96,At=0),at=1<>et)+ht]=bt<<24|ct<<16|At|0;while(ht!==0);for(at=1<>=1;if(at!==0?(Q&=at-1,Q+=at):Q=0,V++,--st[D]===0){if(D===j)break;D=b[x+C[V]]}if(D>$&&(Q&ot)!==K){for(et===0&&(et=$),nt+=R,G=D-et,W=1<c||d===_&&Z>n)return 1;K=Q&ot,g[K]=$<<24|G<<16|nt-I|0}}return Q!==0&&(g[nt+Q]=D-et<<24|4194304|0),S.bits=$,0}},{"../utils/common":41}],51:[function(e,r,s){r.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(e,r,s){var f=e("../utils/common"),a=4,c=0,n=1,m=2;function o(p){for(var M=p.length;--M>=0;)p[M]=0}var _=0,y=1,v=2,E=3,F=258,l=29,d=256,b=d+1+l,x=30,P=19,g=2*b+1,I=15,C=16,S=7,N=256,D=16,V=17,R=18,j=[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],$=[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],G=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],et=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=512,Z=new Array((b+2)*2);o(Z);var Q=new Array(x*2);o(Q);var at=new Array(W);o(at);var ht=new Array(F-E+1);o(ht);var K=new Array(l);o(K);var ot=new Array(x);o(ot);function nt(p,M,B,H,k){this.static_tree=p,this.extra_bits=M,this.extra_base=B,this.elems=H,this.max_length=k,this.has_stree=p&&p.length}var kt,Ft,vt;function st(p,M){this.dyn_tree=p,this.max_code=0,this.stat_desc=M}function Ct(p){return p<256?at[p]:at[256+(p>>>7)]}function gt(p,M){p.pending_buf[p.pending++]=M&255,p.pending_buf[p.pending++]=M>>>8&255}function dt(p,M,B){p.bi_valid>C-B?(p.bi_buf|=M<>C-p.bi_valid,p.bi_valid+=B-C):(p.bi_buf|=M<>>=1,B<<=1;while(--M>0);return B>>>1}function At(p){p.bi_valid===16?(gt(p,p.bi_buf),p.bi_buf=0,p.bi_valid=0):p.bi_valid>=8&&(p.pending_buf[p.pending++]=p.bi_buf&255,p.bi_buf>>=8,p.bi_valid-=8)}function Ut(p,M){var B=M.dyn_tree,H=M.max_code,k=M.stat_desc.static_tree,z=M.stat_desc.has_stree,h=M.stat_desc.extra_bits,U=M.stat_desc.extra_base,q=M.stat_desc.max_length,i,A,T,u,w,O,J=0;for(u=0;u<=I;u++)p.bl_count[u]=0;for(B[p.heap[p.heap_max]*2+1]=0,i=p.heap_max+1;iq&&(u=q,J++),B[A*2+1]=u,!(A>H)&&(p.bl_count[u]++,w=0,A>=U&&(w=h[A-U]),O=B[A*2],p.opt_len+=O*(u+w),z&&(p.static_len+=O*(k[A*2+1]+w)));if(J!==0){do{for(u=q-1;p.bl_count[u]===0;)u--;p.bl_count[u]--,p.bl_count[u+1]+=2,p.bl_count[q]--,J-=2}while(J>0);for(u=q;u!==0;u--)for(A=p.bl_count[u];A!==0;)T=p.heap[--i],!(T>H)&&(B[T*2+1]!==u&&(p.opt_len+=(u-B[T*2+1])*B[T*2],B[T*2+1]=u),A--)}}function Bt(p,M,B){var H=new Array(I+1),k=0,z,h;for(z=1;z<=I;z++)H[z]=k=k+B[z-1]<<1;for(h=0;h<=M;h++){var U=p[h*2+1];U!==0&&(p[h*2]=ct(H[U]++,U))}}function ut(){var p,M,B,H,k,z=new Array(I+1);for(B=0,H=0;H>=7;H8?gt(p,p.bi_buf):p.bi_valid>0&&(p.pending_buf[p.pending++]=p.bi_buf),p.bi_buf=0,p.bi_valid=0}function Vt(p,M,B,H){he(p),gt(p,B),gt(p,~B),f.arraySet(p.pending_buf,p.window,M,B,p.pending),p.pending+=B}function Mt(p,M,B,H){var k=M*2,z=B*2;return p[k]>1;h>=1;h--)_t(p,B,h);i=z;do h=p.heap[1],p.heap[1]=p.heap[p.heap_len--],_t(p,B,1),U=p.heap[1],p.heap[--p.heap_max]=h,p.heap[--p.heap_max]=U,B[i*2]=B[h*2]+B[U*2],p.depth[i]=(p.depth[h]>=p.depth[U]?p.depth[h]:p.depth[U])+1,B[h*2+1]=B[U*2+1]=i,p.heap[1]=i++,_t(p,B,1);while(p.heap_len>=2);p.heap[--p.heap_max]=p.heap[1],Ut(p,M),Bt(B,q,p.bl_count)}function de(p,M,B){var H,k=-1,z,h=M[0*2+1],U=0,q=7,i=4;for(h===0&&(q=138,i=3),M[(B+1)*2+1]=65535,H=0;H<=B;H++)z=h,h=M[(H+1)*2+1],!(++U=3&&p.bl_tree[et[M]*2+1]===0;M--);return p.opt_len+=3*(M+1)+5+5+4,M}function ue(p,M,B,H){var k;for(dt(p,M-257,5),dt(p,B-1,5),dt(p,H-4,4),k=0;k>>=1)if(M&1&&p.dyn_ltree[B*2]!==0)return c;if(p.dyn_ltree[18]!==0||p.dyn_ltree[20]!==0||p.dyn_ltree[26]!==0)return n;for(B=32;B0?(p.strm.data_type===m&&(p.strm.data_type=ne(p)),jt(p,p.l_desc),jt(p,p.d_desc),h=Zt(p),k=p.opt_len+3+7>>>3,z=p.static_len+3+7>>>3,z<=k&&(k=z)):k=z=B+5,B+4<=k&&M!==-1?se(p,M,B,H):p.strategy===a||z===k?(dt(p,(y<<1)+(H?1:0),3),rt(p,Z,Q)):(dt(p,(v<<1)+(H?1:0),3),ue(p,p.l_desc.max_code+1,p.d_desc.max_code+1,h+1),rt(p,p.dyn_ltree,p.dyn_dtree)),Nt(p),H&&he(p)}function pe(p,M,B){return p.pending_buf[p.d_buf+p.last_lit*2]=M>>>8&255,p.pending_buf[p.d_buf+p.last_lit*2+1]=M&255,p.pending_buf[p.l_buf+p.last_lit]=B&255,p.last_lit++,M===0?p.dyn_ltree[B*2]++:(p.matches++,M--,p.dyn_ltree[(ht[B]+d+1)*2]++,p.dyn_dtree[Ct(M)*2]++),p.last_lit===p.lit_bufsize-1}s._tr_init=_e,s._tr_stored_block=se,s._tr_flush_block=Gt,s._tr_tally=pe,s._tr_align=Pt},{"../utils/common":41}],53:[function(e,r,s){function f(){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}r.exports=f},{}],54:[function(e,r,s){(function(f){(function(a,c){if(a.setImmediate)return;var n=1,m={},o=!1,_=a.document,y;function v(S){typeof S!="function"&&(S=new Function(""+S));for(var N=new Array(arguments.length-1),D=0;D"u"?typeof f>"u"?this:f:self)}).call(this,typeof Ie<"u"?Ie:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Re);var Ke=Re.exports,Ge=He(Ke);class Je{load(t,e){fetch(t).then(function(r){return r.status===200||r.status===0?Promise.resolve(r.blob()):Promise.reject(new Error(r.statusText))}).then(Ge.loadAsync).then(async function(r){let s=null;const f={};for(let c in r.files){r.files[c];const n=c.split(".").pop();if(n==="ssfb"){if(s!==null){e(null,null,null,new Error("already exist ssfb file"));return}s=c}else if(n==="png"){const m=c.split(".").slice(0,-1).join(".");f[m]=await r.file(c).async("uint8array")}}let a=await r.file(s).async("uint8array");e(s,a,f,null)},function(s){e(null,null,null,s)})}}class $e{static createAnimePackMap(t){const e=t.fbObj.animePacksLength(),r={};for(let s=0;s{e.setupForLoadComplete(r)})}loadSspkg(t){const e=this;new Je().load(t,(s,f,a,c)=>{if(c!==null)return;let n=new Ne(s,f,a,()=>{e.setupForLoadComplete(n)})})}setupForLoadComplete(t){this.projectData=t,this.animePackMap=$e.createAnimePackMap(this.projectData),this.onComplete!==null&&this.onComplete()}loadAnimation(t,e){let r=!1;this.textureContainer==null&&(r=!0,this.textureContainer=new We(this));const s=this.animePackMap[t],f=s.animePack,c=s.animationMap[e];this.currentAnimation=c,this.currentAnimePack=f,this.textureContainer.Setup(t,e);const n=c.labelDataLength();for(let m=0;m= 0 && this.prevCellID[i] !== cellID) {
if (partObject != null) partObject.destroy();
- partObject = this.MakeMeshCellMesh(i, cellID);
+ partObject = this.MakeMeshCellMesh(i, cellID, origCellID);
partObject.label = part.name();
}
break;
@@ -4022,16 +4032,21 @@ var ss6PlayerViewer = (function (exports, pixi_js) {
* メッシュセルからメッシュを作成
* @param {number} partID - パーツID
* @param {number} cellID - セルID
+ * @param {number} origCellID - オリジナルのセルID
* @return {PIXI.Mesh} - メッシュ
*/
- MakeMeshCellMesh(partID, cellID) {
+ MakeMeshCellMesh(partID, cellID, origCellID) {
const meshsDataUV = this.playerLib.animationData.meshsDataUv(partID);
const uvLength = meshsDataUV.uvLength();
if (uvLength > 0) {
+ const cell = this.playerLib.fbObj.cells(cellID);
+ const origCell = this.playerLib.fbObj.cells(origCellID);
+ const diff_u = cellID === origCellID ? 0 : (cell.u1() + cell.u2()) / 2 - (origCell.u1() + origCell.u2()) / 2;
+ const diff_v = cellID === origCellID ? 0 : (cell.v1() + cell.v2()) / 2 - (origCell.v1() + origCell.v2()) / 2;
const uvs = new Float32Array(uvLength - 2);
const meshNum = meshsDataUV.uv(1);
for (let idx = 2; idx < uvLength; idx++) {
- uvs[idx - 2] = meshsDataUV.uv(idx);
+ uvs[idx - 2] = meshsDataUV.uv(idx) + (idx % 2 === 0 ? diff_u : diff_v);
}
const meshsDataIndices = this.playerLib.animationData.meshsDataIndices(partID);
const indicesLength = meshsDataIndices.indicesLength();
diff --git a/docs/ss6player_lib_api/classes/FrameData.html b/docs/ss6player_lib_api/classes/FrameData.html
index 7e02495b..bddcdf19 100644
--- a/docs/ss6player_lib_api/classes/FrameData.html
+++ b/docs/ss6player_lib_api/classes/FrameData.html
@@ -1,5 +1,5 @@
FrameData | ss6player-lib
FrameData
-