((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).zip={})})(this,(function(t){"use strict";const{Array:e,Object:n,String:r,BigInt:i,Math:s,Date:a,Map:o,URL:c,Error:l,Uint8Array:d,Uint16Array:f,Uint32Array:u,DataView:h,Blob:p,Promise:w,TextEncoder:g,TextDecoder:y,FileReader:m,document:b,crypto:k,btoa:v}=globalThis,S={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},_=n.assign({},S);function A(){return _}function z(t){if(void 0!==t.baseURL&&(_.baseURL=t.baseURL),void 0!==t.chunkSize&&(_.chunkSize=t.chunkSize),void 0!==t.maxWorkers&&(_.maxWorkers=t.maxWorkers),void 0!==t.terminateWorkerTimeout&&(_.terminateWorkerTimeout=t.terminateWorkerTimeout),void 0!==t.useWebWorkers&&(_.useWebWorkers=t.useWebWorkers),void 0!==t.Deflate&&(_.Deflate=t.Deflate),void 0!==t.Inflate&&(_.Inflate=t.Inflate),void 0!==t.workerScripts){if(t.workerScripts.deflate){if(!e.isArray(t.workerScripts.deflate))throw new l("workerScripts.deflate must be an array");_.workerScripts||(_.workerScripts={}),_.workerScripts.deflate=t.workerScripts.deflate}if(t.workerScripts.inflate){if(!e.isArray(t.workerScripts.inflate))throw new l("workerScripts.inflate must be an array");_.workerScripts||(_.workerScripts={}),_.workerScripts.inflate=t.workerScripts.inflate}}}function R(t,e,r){return class{constructor(i){const s=this;s.codec=new t(n.assign({},e,i)),r(s.codec,(t=>{if(s.pendingData){const e=s.pendingData;s.pendingData=new d(e.length+t.length),s.pendingData.set(e,0),s.pendingData.set(t,e.length)}else s.pendingData=new d(t)}))}async append(t){return this.codec.push(t),i(this)}async flush(){return this.codec.push(new d(0),!0),i(this)}};function i(t){if(t.pendingData){const e=t.pendingData;return t.pendingData=null,e}return new d(0)}}const D=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;D[t]=e}class C{constructor(t){this.crc=t||-1}append(t){let e=0|this.crc;for(let n=0,r=0|t.length;r>n;n++)e=e>>>8^D[255&(e^t[n])];this.crc=e}get(){return~this.crc}}function E(t){if(void 0===g){const e=new d((t=unescape(encodeURIComponent(t))).length);for(let n=0;n0&&e&&(t[n-1]=x.partial(e,t[n-1]&2147483648>>e-1,1)),t},partial:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,getPartial:t=>s.round(t/1099511627776)||32,_shiftRight(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(let i=0;i>>e),n=t[i]<<32-e;const i=t.length?t[t.length-1]:0,s=x.getPartial(i);return r.push(x.partial(e+s&31,e+s>32?n:r.pop(),1)),r}},F={bytes:{fromBits(t){const e=x.bitLength(t)/8,n=new d(e);let r;for(let i=0;e>i;i++)0==(3&i)&&(r=t[i/4]),n[i]=r>>>24,r<<=8;return n},toBits(t){const e=[];let n,r=0;for(n=0;n9007199254740991)throw new l("Cannot hash more than 2^53 - 1 bits");const s=new u(n);let a=0;for(let t=e.blockSize+r-(e.blockSize+r&e.blockSize-1);i>=t;t+=e.blockSize)e._block(s.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),e},finalize:function(){const t=this;let e=t._buffer;const n=t._h;e=x.concat(e,[x.partial(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(s.floor(t._length/4294967296)),e.push(0|t._length);e.length;)t._block(e.splice(0,16));return t.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(t,e,n,r)=>t>19?t>39?t>59?t>79?void 0:e^n^r:e&n|e&r|n&r:e^n^r:e&n|~e&r,_S:(t,e)=>e<>>32-t,_block:function(t){const n=this,r=n._h,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let a=r[0],o=r[1],c=r[2],l=r[3],d=r[4];for(let t=0;79>=t;t++){16>t||(i[t]=n._S(1,i[t-3]^i[t-8]^i[t-14]^i[t-16]));const e=n._S(5,a)+n._f(t,o,c,l)+d+i[t]+n._key[s.floor(t/20)]|0;d=l,l=c,c=n._S(30,o),o=a,a=e}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+l|0,r[4]=r[4]+d|0}};const N={getRandomValues(t){const e=new u(t.buffer),n=t=>{let e=987654321;const n=4294967295;return()=>(e=36969*(65535&e)+(e>>16)&n,(((e<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n)/4294967296+.5)*(s.random()>.5?1:-1))};for(let r,i=0;inew U.hmacSha1(F.bytes.toBits(t)),pbkdf2(t,e,n,r){if(n=n||1e4,0>r||0>n)throw new l("invalid params to pbkdf2");const i=1+(r>>5)<<2;let s,a,o,c,d;const f=new ArrayBuffer(i);let u=new h(f),p=0;const w=x;for(e=F.bytes.toBits(e),d=1;(i||1)>p;d++){for(s=a=t.encrypt(w.concat(e,[d])),o=1;n>o;o++)for(a=t.encrypt(a),c=0;cp&&oi&&(t=n.hash(t));for(let e=0;i>e;e++)r[0][e]=909522486^t[e],r[1][e]=1549556828^t[e];e._baseHash[0].update(r[0]),e._baseHash[1].update(r[1]),e._resultHash=new n(e._baseHash[0])}reset(){const t=this;t._resultHash=new t._hash(t._baseHash[0]),t._updated=!1}update(t){this._updated=!0,this._resultHash.update(t)}digest(){const t=this,e=t._resultHash.finalize(),n=new t._hash(t._baseHash[1]).update(e).finalize();return t.reset(),n}encrypt(t){if(this._updated)throw new l("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},T="Invalid pasword",B=16,W={name:"PBKDF2"},V=n.assign({hash:{name:"HMAC"}},W),H=n.assign({iterations:1e3,hash:{name:"SHA-1"}},W),M=["deriveBits"],L=[8,12,16],$=[16,24,32],Y=10,Z=[0,0,0,0],O=void 0!==k,P=O&&void 0!==k.subtle,K=F.bytes,q=class{constructor(t){const e=this;e._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],e._tables[0][0][0]||e._precompute();const n=e._tables[0][4],r=e._tables[1],i=t.length;let s,a,o,c=1;if(4!==i&&6!==i&&8!==i)throw new l("invalid aes key size");for(e._key=[a=t.slice(0),o=[]],s=i;4*i+28>s;s++){let t=a[s-1];(s%i==0||8===i&&s%i==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],s%i==0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),a[s]=a[s-i]^t}for(let t=0;s;t++,s--){const e=a[3&t?s:s-4];o[t]=4>=s||4>t?e:r[0][n[e>>>24]]^r[1][n[e>>16&255]]^r[2][n[e>>8&255]]^r[3][n[255&e]]}}encrypt(t){return this._crypt(t,0)}decrypt(t){return this._crypt(t,1)}_precompute(){const t=this._tables[0],e=this._tables[1],n=t[4],r=e[4],i=[],s=[];let a,o,c,l;for(let t=0;256>t;t++)s[(i[t]=t<<1^283*(t>>7))^t]=t;for(let d=a=0;!n[d];d^=o||1,a=s[a]||1){let s=a^a<<1^a<<2^a<<3^a<<4;s=s>>8^255&s^99,n[d]=s,r[s]=d,l=i[c=i[o=i[d]]];let f=16843009*l^65537*c^257*o^16843008*d,u=257*i[s]^16843008*s;for(let n=0;4>n;n++)t[n][d]=u=u<<24^u>>>8,e[n][s]=f=f<<24^f>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}_crypt(t,e){if(4!==t.length)throw new l("invalid aes block size");const n=this._key[e],r=n.length/4-2,i=[0,0,0,0],s=this._tables[e],a=s[0],o=s[1],c=s[2],d=s[3],f=s[4];let u,h,p,w=t[0]^n[0],g=t[e?3:1]^n[1],y=t[2]^n[2],m=t[e?1:3]^n[3],b=4;for(let t=0;r>t;t++)u=a[w>>>24]^o[g>>16&255]^c[y>>8&255]^d[255&m]^n[b],h=a[g>>>24]^o[y>>16&255]^c[m>>8&255]^d[255&w]^n[b+1],p=a[y>>>24]^o[m>>16&255]^c[w>>8&255]^d[255&g]^n[b+2],m=a[m>>>24]^o[w>>16&255]^c[g>>8&255]^d[255&y]^n[b+3],b+=4,w=u,g=h,y=p;for(let t=0;4>t;t++)i[e?3&-t:t]=f[w>>>24]<<24^f[g>>16&255]<<16^f[y>>8&255]<<8^f[255&m]^n[b++],u=w,w=g,g=y,y=m,m=u;return i}},X=class{constructor(t,e){this._prf=t,this._initIv=e,this._iv=e}reset(){this._iv=this._initIv}update(t){return this.calculate(this._prf,t,this._iv)}incWord(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}incCounter(t){0===(t[0]=this.incWord(t[0]))&&(t[1]=this.incWord(t[1]))}calculate(t,e,n){let r;if(!(r=e.length))return[];const i=x.bitLength(e);for(let i=0;r>i;i+=4){this.incCounter(n);const r=t.encrypt(n);e[i]^=r[0],e[i+1]^=r[1],e[i+2]^=r[2],e[i+3]^=r[3]}return x.clamp(e,i)}},j=U.hmacSha1;class G{constructor(t,e,r){n.assign(this,{password:t,signed:e,strength:r-1,pendingInput:new d(0)})}async append(t){const n=this;if(n.password){const r=nt(t,0,L[n.strength]+2);await(async(t,e,n)=>{await tt(t,n,nt(e,0,L[t.strength]));const r=nt(e,L[t.strength]),i=t.keys.passwordVerification;if(i[0]!=r[0]||i[1]!=r[1])throw new l(T)})(n,r,n.password),n.password=null,n.aesCtrGladman=new X(new q(n.keys.key),e.from(Z)),n.hmac=new j(n.keys.authentication),t=nt(t,L[n.strength]+2)}return Q(n,t,new d(t.length-Y-(t.length-Y)%B),0,Y,!0)}flush(){const t=this,e=t.pendingInput,n=nt(e,0,e.length-Y),r=nt(e,e.length-Y);let i=new d(0);if(n.length){const e=K.toBits(n);t.hmac.update(e);const r=t.aesCtrGladman.update(e);i=K.fromBits(r)}let s=!0;if(t.signed){const e=nt(K.fromBits(t.hmac.digest()),0,Y);for(let t=0;Y>t;t++)e[t]!=r[t]&&(s=!1)}return{valid:s,data:i}}}class J{constructor(t,e){n.assign(this,{password:t,strength:e-1,pendingInput:new d(0)})}async append(t){const n=this;let r=new d(0);n.password&&(r=await(async(t,e)=>{const n=(r=new d(L[t.strength]),O&&"function"==typeof k.getRandomValues?k.getRandomValues(r):N.getRandomValues(r));var r;return await tt(t,e,n),et(n,t.keys.passwordVerification)})(n,n.password),n.password=null,n.aesCtrGladman=new X(new q(n.keys.key),e.from(Z)),n.hmac=new j(n.keys.authentication));const i=new d(r.length+t.length-t.length%B);return i.set(r,0),Q(n,t,i,r.length,0)}flush(){const t=this;let e=new d(0);if(t.pendingInput.length){const n=t.aesCtrGladman.update(K.toBits(t.pendingInput));t.hmac.update(n),e=K.fromBits(n)}const n=nt(K.fromBits(t.hmac.digest()),0,Y);return{data:et(e,n),signature:n}}}function Q(t,e,n,r,i,s){const a=e.length-i;let o;for(t.pendingInput.length&&(e=et(t.pendingInput,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new d(e)).set(n,0)}return t})(n,a-a%B)),o=0;a-B>=o;o+=B){const i=K.toBits(nt(e,o,o+B));s&&t.hmac.update(i);const a=t.aesCtrGladman.update(i);s||t.hmac.update(a),n.set(K.fromBits(a),o+r)}return t.pendingInput=nt(e,o),n}async function tt(t,e,r){const i=E(e),s=await(async(t,e,n,r,i)=>O&&P&&"function"==typeof k.subtle.importKey?k.subtle.importKey("raw",e,n,!1,i):U.importKey(e))(0,i,V,0,M),a=await(async(t,e,n)=>O&&P&&"function"==typeof k.subtle.deriveBits?await k.subtle.deriveBits(t,e,n):U.pbkdf2(e,t.salt,H.iterations,n))(n.assign({salt:r},H),s,8*(2*$[t.strength]+2)),o=new d(a);t.keys={key:K.toBits(nt(o,0,$[t.strength])),authentication:K.toBits(nt(o,$[t.strength],2*$[t.strength])),passwordVerification:nt(o,2*$[t.strength])}}function et(t,e){let n=t;return t.length+e.length&&(n=new d(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function nt(t,e,n){return t.subarray(e,n)}class rt{constructor(t,e){n.assign(this,{password:t,passwordVerification:e}),ot(this,t)}append(t){const e=this;if(e.password){const n=st(e,t.subarray(0,12));if(e.password=null,n[11]!=e.passwordVerification)throw new l(T);t=t.subarray(12)}return st(e,t)}flush(){return{valid:!0,data:new d(0)}}}class it{constructor(t,e){n.assign(this,{password:t,passwordVerification:e}),ot(this,t)}append(t){const e=this;let n,r;if(e.password){e.password=null;const i=k.getRandomValues(new d(12));i[11]=e.passwordVerification,n=new d(t.length+i.length),n.set(at(e,i),0),r=12}else n=new d(t.length),r=0;return n.set(at(e,t),r),n}flush(){return{data:new d(0)}}}function st(t,e){const n=new d(e.length);for(let r=0;r>>24]),t.keys[2]=~t.crcKey2.get()}function lt(t){const e=2|t.keys[2];return dt(s.imul(e,1^e)>>>8)}function dt(t){return 255&t}function ft(t){return 4294967295&t}const ut="deflate",ht="inflate",pt="Invalid signature";class wt{constructor(t,{signature:e,password:r,signed:i,compressed:s,zipCrypto:a,passwordVerification:o,encryptionStrength:c},{chunkSize:l}){const d=!!r;n.assign(this,{signature:e,encrypted:d,signed:i,compressed:s,inflate:s&&new t({chunkSize:l}),crc32:i&&new C,zipCrypto:a,decrypt:d&&a?new rt(r,o):new G(r,i,c)})}async append(t){const e=this;return e.encrypted&&t.length&&(t=await e.decrypt.append(t)),e.compressed&&t.length&&(t=await e.inflate.append(t)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.crc32.append(t),t}async flush(){const t=this;let e,n=new d(0);if(t.encrypted){const e=t.decrypt.flush();if(!e.valid)throw new l(pt);n=e.data}if((!t.encrypted||t.zipCrypto)&&t.signed){const n=new h(new d(4).buffer);if(e=t.crc32.get(),n.setUint32(0,e),t.signature!=n.getUint32(0,!1))throw new l(pt)}return t.compressed&&(n=await t.inflate.append(n)||new d(0),await t.inflate.flush()),{data:n,signature:e}}}class gt{constructor(t,{encrypted:e,signed:r,compressed:i,level:s,zipCrypto:a,password:o,passwordVerification:c,encryptionStrength:l},{chunkSize:d}){n.assign(this,{encrypted:e,signed:r,compressed:i,deflate:i&&new t({level:s||5,chunkSize:d}),crc32:r&&new C,zipCrypto:a,encrypt:e&&a?new it(o,c):new J(o,l)})}async append(t){const e=this;let n=t;return e.compressed&&t.length&&(n=await e.deflate.append(t)),e.encrypted&&n.length&&(n=await e.encrypt.append(n)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.crc32.append(t),n}async flush(){const t=this;let e,n=new d(0);if(t.compressed&&(n=await t.deflate.flush()||new d(0)),t.encrypted){n=await t.encrypt.append(n);const r=t.encrypt.flush();e=r.signature;const i=new d(n.length+r.data.length);i.set(n,0),i.set(r.data,n.length),n=i}return t.encrypted&&!t.zipCrypto||!t.signed||(e=t.crc32.get()),{data:n,signature:e}}}const yt="init",mt="append",bt="flush";let kt=!0;var vt=(t,e,r,i,s,a,o)=>(n.assign(t,{busy:!0,codecConstructor:e,options:n.assign({},r),scripts:o,terminate(){t.worker&&!t.busy&&(t.worker.terminate(),t.interface=null)},onTaskFinished(){t.busy=!1,s(t)}}),a?((t,e)=>{let n;const r={type:"module"};if(!t.interface){if(kt)try{t.worker=i({},e.baseURL)}catch(n){kt=!1,t.worker=i(r,e.baseURL)}else t.worker=i(r,e.baseURL);t.worker.addEventListener("message",(e=>{const r=e.data;if(n){const e=r.error,i=r.type;if(e){const r=new l(e.message);r.stack=e.stack,n.reject(r),n=null,t.onTaskFinished()}else if(i==yt||i==bt||i==mt){const e=r.data;i==bt?(n.resolve({data:new d(e),signature:r.signature}),n=null,t.onTaskFinished()):n.resolve(e&&new d(e))}}}),!1),t.interface={append:t=>s({type:mt,data:t}),flush:()=>s({type:bt}),abort(){t.onTaskFinished()}}}return t.interface;function i(e,n){let r,i;r=t.scripts[0],"function"==typeof r&&(r=r());try{i=new c(r,n)}catch(t){i=r}return new Worker(i,e)}async function s(r){if(!n){const n=t.options,r=t.scripts.slice(1);await a({scripts:r,type:yt,options:n,config:{chunkSize:e.chunkSize}})}return a(r)}function a(e){const r=t.worker,i=new w(((t,e)=>n={resolve:t,reject:e}));try{if(e.data)try{e.data=e.data.buffer,r.postMessage(e,[e.data])}catch(t){r.postMessage(e)}else r.postMessage(e)}catch(e){n.reject(e),n=null,t.onTaskFinished()}return i}})(t,i):((t,e)=>{const n=((t,e,n)=>e.codecType.startsWith(ut)?new gt(t,e,n):e.codecType.startsWith(ht)?new wt(t,e,n):void 0)(t.codecConstructor,t.options,e);return{async append(e){try{return await n.append(e)}catch(e){throw t.onTaskFinished(),e}},async flush(){try{return await n.flush()}finally{t.onTaskFinished()}},abort(){t.onTaskFinished()}}})(t,i));let St=[],_t=[];function At(t,e,n){const r=!(!e.compressed&&!e.signed&&!e.encrypted)&&(e.useWebWorkers||void 0===e.useWebWorkers&&n.useWebWorkers),i=r&&n.workerScripts?n.workerScripts[e.codecType]:[];if(St.length!t.busy));return a?(zt(a),vt(a,t,e,n,s,r,i)):new w((n=>_t.push({resolve:n,codecConstructor:t,options:e,webWorker:r,scripts:i})))}function s(t){if(_t.length){const[{resolve:e,codecConstructor:r,options:i,webWorker:a,scripts:o}]=_t.splice(0,1);e(vt(t,r,i,n,s,a,o))}else t.worker?(zt(t),Number.isFinite(n.terminateWorkerTimeout)&&n.terminateWorkerTimeout>=0&&(t.terminateTimeout=setTimeout((()=>{St=St.filter((e=>e!=t)),t.terminate()}),n.terminateWorkerTimeout))):St=St.filter((e=>e!=t))}}function zt(t){t.terminateTimeout&&(clearTimeout(t.terminateTimeout),t.terminateTimeout=null)}const Rt="HTTP error ",Dt="HTTP Range not supported",Ct="text/plain",Et="GET";class xt{constructor(){this.size=0}init(){this.initialized=!0}}class Ft extends xt{}class It extends xt{writeUint8Array(t){this.size+=t.length}}class Nt extends Ft{constructor(t){super(),this.blobReader=new Wt(new p([t],{type:Ct}))}async init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}async readUint8Array(t,e){return this.blobReader.readUint8Array(t,e)}}class Ut extends It{constructor(t){super(),this.encoding=t,this.blob=new p([],{type:Ct})}async writeUint8Array(t){super.writeUint8Array(t),this.blob=new p([this.blob,t.buffer],{type:Ct})}getData(){if(this.blob.text)return this.blob.text();{const t=new m;return new w(((e,n)=>{t.onload=t=>e(t.target.result),t.onerror=()=>n(t.error),t.readAsText(this.blob,this.encoding)}))}}}class Tt extends Ft{constructor(t){super(),this.dataURI=t;let e=t.length;for(;"="==t.charAt(e-1);)e--;this.dataStart=t.indexOf(",")+1,this.size=s.floor(.75*(e-this.dataStart))}async readUint8Array(t,e){const n=new d(e),r=4*s.floor(t/3),i=atob(this.dataURI.substring(r+this.dataStart,4*s.ceil((t+e)/3)+this.dataStart)),a=t-3*s.floor(r/4);for(let t=a;a+e>t;t++)n[t-a]=i.charCodeAt(t);return n}}class Bt extends It{constructor(t){super(),this.data="data:"+(t||"")+";base64,",this.pending=[]}async writeUint8Array(t){super.writeUint8Array(t);let e=0,n=this.pending;const i=this.pending.length;for(this.pending="",e=0;e<3*s.floor((i+t.length)/3)-i;e++)n+=r.fromCharCode(t[e]);for(;e2?this.data+=v(n):this.pending=n}getData(){return this.data+v(this.pending)}}class Wt extends Ft{constructor(t){super(),this.blob=t,this.size=t.size}async readUint8Array(t,e){if(this.blob.arrayBuffer)return new d(await this.blob.slice(t,t+e).arrayBuffer());{const n=new m;return new w(((r,i)=>{n.onload=t=>r(new d(t.target.result)),n.onerror=()=>i(n.error),n.readAsArrayBuffer(this.blob.slice(t,t+e))}))}}}class Vt extends It{constructor(t){super(),this.contentType=t,this.arrayBuffersMaxlength=8,Ht(this)}async writeUint8Array(t){super.writeUint8Array(t),this.arrayBuffers.length==this.arrayBuffersMaxlength&&Mt(this),this.arrayBuffers.push(t.buffer)}getData(){return this.blob||(this.arrayBuffers.length&&Mt(this),this.blob=this.pendingBlob,Ht(this)),this.blob}}function Ht(t){t.pendingBlob=new p([],{type:t.contentType}),t.arrayBuffers=[]}function Mt(t){t.pendingBlob=new p([t.pendingBlob,...t.arrayBuffers],{type:t.contentType}),t.arrayBuffers=[]}class Lt extends Ft{constructor(t,e){super(),this.url=t,this.preventHeadRequest=e.preventHeadRequest,this.useRangeHeader=e.useRangeHeader,this.forceRangeRequests=e.forceRangeRequests,this.options=n.assign({},e),delete this.options.preventHeadRequest,delete this.options.useRangeHeader,delete this.options.forceRangeRequests,delete this.options.useXHR}async init(){super.init(),await Yt(this,Gt,Kt)}async readUint8Array(t,e){return Zt(this,t,e,Gt,Kt)}}class $t extends Ft{constructor(t,e){super(),this.url=t,this.preventHeadRequest=e.preventHeadRequest,this.useRangeHeader=e.useRangeHeader,this.forceRangeRequests=e.forceRangeRequests,this.options=e}async init(){super.init(),await Yt(this,Jt,qt)}async readUint8Array(t,e){return Zt(this,t,e,Jt,qt)}}async function Yt(t,e,n){if((t=>{if(void 0!==b){const e=b.createElement("a");return e.href=t,"http:"==e.protocol||"https:"==e.protocol}return/^https?:\/\//i.test(t)})(t.url)&&(t.useRangeHeader||t.forceRangeRequests)){const r=await e(Et,t,Ot(t));if(!t.forceRangeRequests&&"bytes"!=r.headers.get("Accept-Ranges"))throw new l(Dt);{let i;const s=r.headers.get("Content-Range");if(s){const t=s.trim().split(/\s*\/\s*/);if(t.length){const e=t[1];e&&"*"!=e&&(i=Number(e))}}void 0===i?await jt(t,e,n):t.size=i}}else await jt(t,e,n)}async function Zt(t,e,n,r,i){if(t.useRangeHeader||t.forceRangeRequests){const i=await r(Et,t,Ot(t,e,n));if(206!=i.status)throw new l(Dt);return new d(await i.arrayBuffer())}return t.data||await i(t,t.options),new d(t.data.subarray(e,e+n))}function Ot(t,e=0,r=1){return n.assign({},Pt(t),{Range:"bytes="+e+"-"+(e+r-1)})}function Pt(t){let e=t.options.headers;if(e)return Symbol.iterator in e?n.fromEntries(e):e}async function Kt(t){await Xt(t,Gt)}async function qt(t){await Xt(t,Jt)}async function Xt(t,e){const n=await e(Et,t,Pt(t));t.data=new d(await n.arrayBuffer()),t.size||(t.size=t.data.length)}async function jt(t,e,n){if(t.preventHeadRequest)await n(t,t.options);else{const r=(await e("HEAD",t,Pt(t))).headers.get("Content-Length");r?t.size=Number(r):await n(t,t.options)}}async function Gt(t,{options:e,url:r},i){const s=await fetch(r,n.assign({},e,{method:t,headers:i}));if(400>s.status)return s;throw new l(Rt+(s.statusText||s.status))}function Jt(t,{url:e},r){return new w(((i,s)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",(()=>{if(400>a.status){const t=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((e=>{const n=e.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(t=>t.toUpperCase())),t.push(n)})),i({status:a.status,arrayBuffer:()=>a.response,headers:new o(t)})}else s(new l(Rt+(a.statusText||a.status)))}),!1),a.addEventListener("error",(t=>s(t.detail.error)),!1),a.open(t,e),r)for(const t of n.entries(r))a.setRequestHeader(t[0],t[1]);a.responseType="arraybuffer",a.send()}))}class Qt extends Ft{constructor(t,e={}){super(),this.url=t,e.useXHR?this.reader=new $t(t,e):this.reader=new Lt(t,e)}set size(t){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}async readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class te extends Ft{constructor(t){super(),this.array=t,this.size=t.length}async readUint8Array(t,e){return this.array.slice(t,t+e)}}class ee extends It{constructor(){super(),this.array=new d(0)}async writeUint8Array(t){super.writeUint8Array(t);const e=this.array;this.array=new d(e.length+t.length),this.array.set(e),this.array.set(t,e.length)}getData(){return this.array}}const ne=4294967295,re=65535,ie=67324752,se=33639248,ae=101075792,oe=117853008,ce=21589,le=2048,de="/",fe=new a(2107,11,31),ue=new a(1980,0,1),he="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");async function pe(t,e){if(e&&"cp437"==e.trim().toLowerCase())return(t=>{let e="";for(let n=0;n{e.onload=t=>n(t.target.result),e.onerror=()=>r(e.error),e.readAsText(new p([t]))}))}return new y(e).decode(t)}const we="Abort error";async function ge(t,e,n,r,i,a,o){const c=s.max(a.chunkSize,64);return async function a(l=0,d=0){const f=o.signal;if(i>l){ye(f,t);const u=await e.readUint8Array(l+r,s.min(c,i-l)),h=u.length;ye(f,t);const p=await t.append(u);if(ye(f,t),d+=await me(n,p),o.onprogress)try{o.onprogress(l+h,i)}catch(t){}return a(l+c,d)}{const e=await t.flush();return d+=await me(n,e.data),{signature:e.signature,length:d}}}()}function ye(t,e){if(t&&t.aborted)throw e.abort(),new l(we)}async function me(t,e){return e.length&&await t.writeUint8Array(e),e.length}const be=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class ke{constructor(t){be.forEach((e=>this[e]=t[e]))}}const ve="File format is not recognized",Se="End of central directory not found",_e="End of Zip64 central directory not found",Ae="End of Zip64 central directory locator not found",ze="Central directory header not found",Re="Local file header not found",De="Zip64 extra field not found",Ce="File contains encrypted entry",Ee="Encryption method not supported",xe="Compression method not supported",Fe="utf-8",Ie="cp437",Ne=["uncompressedSize","compressedSize","offset"];class Ue{constructor(t,e={}){n.assign(this,{reader:t,options:e,config:A()})}async getEntries(t={}){const e=this,r=e.reader;if(r.initialized||await r.init(),22>r.size)throw new l(ve);const i=await(async(t,e,n)=>{const r=new d(4);return Pe(r).setUint32(0,101010256,!0),await i(22)||await i(s.min(1048582,n));async function i(e){const i=n-e,s=await Ke(t,i,e);for(let t=s.length-22;t>=0;t--)if(s[t]==r[0]&&s[t+1]==r[1]&&s[t+2]==r[2]&&s[t+3]==r[3])return{offset:i+t,buffer:s.slice(t,t+22).buffer}}})(r,0,r.size);if(!i)throw new l(Se);const a=Pe(i);let o=Ze(a,12),c=Ze(a,16),f=Ye(a,8),u=0;if(c==ne||o==ne||f==re){const t=Pe(await Ke(r,i.offset-20,20));if(Ze(t,0)!=oe)throw new l(_e);c=Oe(t,8);let e=await Ke(r,c,56),n=Pe(e);const s=i.offset-20-56;if(Ze(n,0)!=ae&&c!=s){const t=c;c=s,u=c-t,e=await Ke(r,c,56),n=Pe(e)}if(Ze(n,0)!=ae)throw new l(Ae);f=Oe(n,32),o=Oe(n,40),c-=o}if(0>c||c>=r.size)throw new l(ve);let h=0,p=await Ke(r,c,o),g=Pe(p);if(o){const t=i.offset-o;if(Ze(g,h)!=se&&c!=t){const e=c;c=t,u=c-e,p=await Ke(r,c,o),g=Pe(p)}}if(0>c||c>=r.size)throw new l(ve);const y=[];for(let i=0;f>i;i++){const s=new Te(r,e.config,e.options);if(Ze(g,h)!=se)throw new l(ze);Be(s,g,h+6);const a=!!s.bitFlag.languageEncodingFlag,o=h+46,c=o+s.filenameLength,d=c+s.extraFieldLength,m=Ye(g,h+4),b=0==(0&m);n.assign(s,{versionMadeBy:m,msDosCompatible:b,compressedSize:0,uncompressedSize:0,commentLength:Ye(g,h+32),directory:b&&16==(16&$e(g,h+38)),offset:Ze(g,h+42)+u,internalFileAttribute:Ze(g,h+34),externalFileAttribute:Ze(g,h+38),rawFilename:p.subarray(o,c),filenameUTF8:a,commentUTF8:a,rawExtraField:p.subarray(c,d)});const k=d+s.commentLength;s.rawComment=p.subarray(d,k);const v=He(e,t,"filenameEncoding"),S=He(e,t,"commentEncoding"),[_,A]=await w.all([pe(s.rawFilename,s.filenameUTF8?Fe:v||Ie),pe(s.rawComment,s.commentUTF8?Fe:S||Ie)]);s.filename=_,s.comment=A,!s.directory&&s.filename.endsWith(de)&&(s.directory=!0),await We(s,s,g,h+6);const z=new ke(s);if(z.getData=(t,e)=>s.getData(t,z,e),y.push(z),h=k,t.onprogress)try{t.onprogress(i+1,f,new ke(s))}catch(t){}}return y}async close(){}}class Te{constructor(t,e,r){n.assign(this,{reader:t,config:e,options:r})}async getData(t,e,n={}){const r=this,{reader:i,offset:s,extraFieldAES:a,compressionMethod:o,config:c,bitFlag:d,signature:f,rawLastModDate:u,compressedSize:h}=r,p=r.localDirectory={};i.initialized||await i.init();let w=await Ke(i,s,30);const g=Pe(w);let y=He(r,n,"password");if(y=y&&y.length&&y,a&&99!=a.originalCompressionMethod)throw new l(xe);if(0!=o&&8!=o)throw new l(xe);if(Ze(g,0)!=ie)throw new l(Re);Be(p,g,4),w=await Ke(i,s,30+p.filenameLength+p.extraFieldLength),p.rawExtraField=w.subarray(30+p.filenameLength),await We(r,p,g,4),e.lastAccessDate=p.lastAccessDate,e.creationDate=p.creationDate;const m=r.encrypted&&p.encrypted,b=m&&!a;if(m){if(!b&&void 0===a.strength)throw new l(Ee);if(!y)throw new l(Ce)}const k=await At(c.Inflate,{codecType:ht,password:y,zipCrypto:b,encryptionStrength:a&&a.strength,signed:He(r,n,"checkSignature"),passwordVerification:b&&(d.dataDescriptor?u>>>8&255:f>>>24&255),signature:f,compressed:0!=o,encrypted:m,useWebWorkers:He(r,n,"useWebWorkers")},c);t.initialized||await t.init();const v=He(r,n,"signal"),S=s+30+p.filenameLength+p.extraFieldLength;return await ge(k,i,t,S,h,c,{onprogress:n.onprogress,signal:v}),t.getData()}}function Be(t,e,r){const i=t.rawBitFlag=Ye(e,r+2),s=1==(1&i),a=Ze(e,r+6);n.assign(t,{encrypted:s,version:Ye(e,r),bitFlag:{level:(6&i)>>1,dataDescriptor:8==(8&i),languageEncodingFlag:(i&le)==le},rawLastModDate:a,lastModDate:Me(a),filenameLength:Ye(e,r+22),extraFieldLength:Ye(e,r+24)})}async function We(t,e,r,i){const c=e.rawExtraField,f=e.extraField=new o,u=Pe(new d(c));let h=0;try{for(;h{e.zip64=!0;const n=Pe(t.data);t.values=[];for(let e=0;ee[t]==ne));for(let e=0;e{if(e[n]==ne){if(void 0===t[n])throw new l(De);e[n]=t[n]}}))})(w,e),e.extraFieldZip64=w);const g=f.get(28789);g&&(await Ve(g,"filename","rawFilename",e,t),e.extraFieldUnicodePath=g);const y=f.get(25461);y&&(await Ve(y,"comment","rawComment",e,t),e.extraFieldUnicodeComment=y);const m=f.get(39169);m?(((t,e,n)=>{const r=Pe(t.data);t.vendorVersion=$e(r,0),t.vendorId=$e(r,2);const i=$e(r,4);t.strength=i,t.originalCompressionMethod=n,e.compressionMethod=t.compressionMethod=Ye(r,5)})(m,e,p),e.extraFieldAES=m):e.compressionMethod=p;const b=f.get(10);b&&(((t,e)=>{const r=Pe(t.data);let i,s=4;try{for(;s{const n=Pe(t.data),r=$e(n,0),i=[],s=[];1==(1&r)&&(i.push("lastModDate"),s.push("rawLastModDate")),2==(2&r)&&(i.push("lastAccessDate"),s.push("rawLastAccessDate")),4==(4&r)&&(i.push("creationDate"),s.push("rawCreationDate"));let o=1;i.forEach(((r,i)=>{if(t.data.length>=o+4){const c=Ze(n,o);e[r]=t[r]=new a(1e3*c);const l=s[i];t[l]=c}o+=4}))})(k,e),e.extraFieldExtendedTimestamp=k)}async function Ve(t,e,n,r,i){const s=Pe(t.data);t.version=$e(s,0),t.signature=Ze(s,1);const a=new C;a.append(i[n]);const o=Pe(new d(4));o.setUint32(0,a.get(),!0),t[e]=await pe(t.data.subarray(5)),t.valid=!i.bitFlag.languageEncodingFlag&&t.signature==Ze(o,0),t.valid&&(r[e]=t[e],r[e+"UTF8"]=!0)}function He(t,e,n){return void 0===e[n]?t.options[n]:e[n]}function Me(t){const e=(4294901760&t)>>16,n=65535&t;try{return new a(1980+((65024&e)>>9),((480&e)>>5)-1,31&e,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(t){}}function Le(t){return new a(Number(t/i(1e4)-i(116444736e5)))}function $e(t,e){return t.getUint8(e)}function Ye(t,e){return t.getUint16(e,!0)}function Ze(t,e){return t.getUint32(e,!0)}function Oe(t,e){return Number(t.getBigUint64(e,!0))}function Pe(t){return new h(t.buffer)}function Ke(t,e,n){return t.readUint8Array(e,n)}const qe="File already exists",Xe="Zip file comment exceeds 64KB",je="File entry comment exceeds 64KB",Ge="File entry name exceeds 64KB",Je="Version exceeds 65535",Qe="The strength must equal 1, 2, or 3",tn="Extra field type exceeds 65535",en="Extra field data exceeds 64KB",nn="Zip64 is not supported",rn=new d([7,0,2,0,65,69,3,0,0]);let sn=0;class an{constructor(t,e={}){n.assign(this,{writer:t,options:e,config:A(),files:new o,offset:t.size,pendingCompressedSize:0,pendingEntries:[]})}async add(t="",r,o={}){const c=this;if(sn>=c.config.maxWorkers)return new w(((e,n)=>c.pendingEntries.push({name:t,reader:r,options:o,resolve:e,reject:n})));sn++;try{return await(async(t,r,o,c)=>{if(r=r.trim(),c.directory&&!r.endsWith(de)?r+=de:c.directory=r.endsWith(de),t.files.has(r))throw new l(qe);const p=E(r);if(p.length>re)throw new l(Ge);const g=c.comment||"",y=E(g);if(y.length>re)throw new l(je);const m=t.options.version||c.version||0;if(m>re)throw new l(Je);const b=t.options.versionMadeBy||c.versionMadeBy||20;if(b>re)throw new l(Je);const k=ln(t,c,"lastModDate")||new a,v=ln(t,c,"lastAccessDate"),S=ln(t,c,"creationDate"),_=ln(t,c,"password"),A=ln(t,c,"encryptionStrength")||3,z=ln(t,c,"zipCrypto");if(void 0!==_&&void 0!==A&&(1>A||A>3))throw new l(Qe);let R=new d(0);const D=c.extraField;if(D){let t=0,e=0;D.forEach((e=>t+=4+e.length)),R=new d(t),D.forEach(((t,n)=>{if(n>re)throw new l(tn);if(t.length>re)throw new l(en);pn(R,new f([n]),e),pn(R,new f([t.length]),e+2),pn(R,t,e+4),e+=4+t.length}))}let C=ln(t,c,"extendedTimestamp");void 0===C&&(C=!0);let x=0,F=ln(t,c,"keepOrder");void 0===F&&(F=!0);let I=0,N=ln(t,c,"msDosCompatible");void 0===N&&(N=!0);const U=ln(t,c,"internalFileAttribute")||0,T=ln(t,c,"externalFileAttribute")||0;o&&(o.initialized||await o.init(),I=o.size,x=(t=>t+5*(s.floor(t/16383)+1))(I));let B=c.zip64||t.options.zip64||!1;if(t.offset+t.pendingCompressedSize>=ne||I>=ne||x>=ne){if(!1===c.zip64||!1===t.options.zip64||!F)throw new l(nn);B=!0}t.pendingCompressedSize+=x,await w.resolve();const W=ln(t,c,"level"),V=ln(t,c,"useWebWorkers"),H=ln(t,c,"bufferedWrite");let M=ln(t,c,"dataDescriptor"),L=ln(t,c,"dataDescriptorSignature");const $=ln(t,c,"signal");void 0===M&&(M=!0),M&&void 0===L&&(L=!0);const Y=await(async(t,r,a,o)=>{const c=t.files,f=t.writer,p=e.from(c.values()).pop();let g,y,m,b={};c.set(r,b);try{let k,v,S;if(o.keepOrder&&(k=p&&p.lock),b.lock=S=new w((t=>m=t)),o.bufferedWrite||t.lockWrite||!o.dataDescriptor?(v=new Vt,v.init(),g=!0):(t.lockWrite=new w((t=>y=t)),f.initialized||await f.init(),v=f),b=await(async(t,e,r,a)=>{const{rawFilename:o,lastAccessDate:c,creationDate:l,password:f,level:h,zip64:p,zipCrypto:w,dataDescriptor:g,dataDescriptorSignature:y,directory:m,version:b,versionMadeBy:k,rawComment:v,rawExtraField:S,useWebWorkers:_,onprogress:A,signal:z,encryptionStrength:R,extendedTimestamp:D,msDosCompatible:C,internalFileAttribute:E,externalFileAttribute:x}=a,F=!(!f||!f.length),I=0!==h&&!m;let N,U,T;if(F&&!w){N=new d(rn.length+2);const t=wn(N);fn(t,0,39169),pn(N,rn,2),dn(t,8,R)}else N=new d(0);if(D){T=new d(9+(c?4:0)+(l?4:0));const t=wn(T);fn(t,0,ce),fn(t,2,T.length-4),dn(t,4,1+(c?2:0)+(l?4:0)),un(t,5,s.floor(a.lastModDate.getTime()/1e3)),c&&un(t,9,s.floor(c.getTime()/1e3)),l&&un(t,13,s.floor(l.getTime()/1e3));try{U=new d(36);const t=wn(U),e=cn(a.lastModDate);fn(t,0,10),fn(t,2,32),fn(t,8,1),fn(t,10,24),hn(t,12,e),hn(t,20,cn(c)||e),hn(t,28,cn(l)||e)}catch(t){U=new d(0)}}else U=T=new d(0);const B={version:b||20,versionMadeBy:k,zip64:p,directory:!!m,filenameUTF8:!0,rawFilename:o,commentUTF8:!0,rawComment:v,rawExtraFieldZip64:new d(p?28:0),rawExtraFieldExtendedTimestamp:T,rawExtraFieldNTFS:U,rawExtraFieldAES:N,rawExtraField:S,extendedTimestamp:D,msDosCompatible:C,internalFileAttribute:E,externalFileAttribute:x};let W=B.uncompressedSize=0,V=le;g&&(V|=8);let H=0;I&&(H=8),p&&(B.version=B.version>45?B.version:45),F&&(V|=1,w||(B.version=B.version>51?B.version:51,H=99,I&&(B.rawExtraFieldAES[9]=8))),B.compressionMethod=H;const M=B.headerArray=new d(26),L=wn(M);fn(L,0,B.version),fn(L,2,V),fn(L,4,H);const $=new u(1),Y=wn($);let Z;Z=a.lastModDatefe?fe:a.lastModDate,fn(Y,0,(Z.getHours()<<6|Z.getMinutes())<<5|Z.getSeconds()/2),fn(Y,2,(Z.getFullYear()-1980<<4|Z.getMonth()+1)<<5|Z.getDate());const O=$[0];un(L,6,O),fn(L,22,o.length);const P=N.length+T.length+U.length+B.rawExtraField.length;fn(L,24,P);const K=new d(30+o.length+P);let q;un(wn(K),0,ie),pn(K,M,4),pn(K,o,30),pn(K,N,30+o.length),pn(K,T,30+o.length+N.length),pn(K,U,30+o.length+N.length+T.length),pn(K,B.rawExtraField,30+o.length+N.length+T.length+U.length);let X=0;if(t){W=B.uncompressedSize=t.size;const n=await At(r.Deflate,{codecType:ut,level:h,password:f,encryptionStrength:R,zipCrypto:F&&w,passwordVerification:F&&w&&O>>8&255,signed:!0,compressed:I,encrypted:F,useWebWorkers:_},r);await e.writeUint8Array(K),B.dataWritten=!0,q=await ge(n,t,e,0,W,r,{onprogress:A,signal:z}),X=q.length}else await e.writeUint8Array(K),B.dataWritten=!0;let j,G=new d(0),J=0;if(g&&(G=new d(p?y?24:20:y?16:12),j=wn(G),y&&(J=4,un(j,0,134695760))),t){const t=q.signature;if(F&&!w||void 0===t||(un(L,10,t),B.signature=t,g&&un(j,J,t)),p){const t=wn(B.rawExtraFieldZip64);fn(t,0,1),fn(t,2,24),un(L,14,ne),hn(t,12,i(X)),un(L,18,ne),hn(t,4,i(W)),g&&(hn(j,J+4,i(X)),hn(j,J+12,i(W)))}else un(L,14,X),un(L,18,W),g&&(un(j,J+4,X),un(j,J+8,W))}g&&await e.writeUint8Array(G);const Q=K.length+X+G.length;return n.assign(B,{compressedSize:X,lastModDate:Z,rawLastModDate:O,creationDate:l,lastAccessDate:c,encrypted:F,length:Q}),B})(a,v,t.config,o),b.lock=S,c.set(r,b),b.filename=r,g){let n=0;const r=v.getData();let i;await w.all([t.lockWrite,k]);do{i=e.from(c.values()).find((t=>t.writingBufferedData)),i&&await i.lock}while(i&&i.lock);if(b.writingBufferedData=!0,!o.dataDescriptor){const t=26,e=await on(r,0,t),i=new h(e);b.encrypted&&!o.zipCrypto||un(i,14,b.signature),b.zip64?(un(i,18,ne),un(i,22,ne)):(un(i,18,b.compressedSize),un(i,22,b.uncompressedSize)),await f.writeUint8Array(new d(e)),n=t}await(async(t,e,n=0)=>{const r=536870912;await async function i(){if(n=ne)throw new l(nn);return t.offset+=b.length,b}catch(e){throw(g&&b.writingBufferedData||!g&&b.dataWritten)&&(e.corruptedEntry=t.hasCorruptedEntries=!0,b.uncompressedSize&&(t.offset+=b.uncompressedSize)),c.delete(r),e}finally{m(),y&&y()}})(t,r,o,n.assign({},c,{rawFilename:p,rawComment:y,version:m,versionMadeBy:b,lastModDate:k,lastAccessDate:v,creationDate:S,rawExtraField:R,zip64:B,password:_,level:W,useWebWorkers:V,encryptionStrength:A,extendedTimestamp:C,zipCrypto:z,bufferedWrite:H,keepOrder:F,dataDescriptor:M,dataDescriptorSignature:L,signal:$,msDosCompatible:N,internalFileAttribute:U,externalFileAttribute:T}));return x&&(t.pendingCompressedSize-=x),n.assign(Y,{name:r,comment:g,extraField:D}),new ke(Y)})(c,t,r,o)}finally{sn--;const t=c.pendingEntries.shift();t&&c.add(t.name,t.reader,t.options).then(t.resolve).catch(t.reject)}}async close(t=new d(0),n={}){return await(async(t,n,r)=>{const a=t.writer,o=t.files;let c=0,f=0,u=t.offset,h=o.size;for(const[,t]of o)f+=46+t.rawFilename.length+t.rawComment.length+t.rawExtraFieldZip64.length+t.rawExtraFieldAES.length+t.rawExtraFieldExtendedTimestamp.length+t.rawExtraFieldNTFS.length+t.rawExtraField.length;let p=r.zip64||t.options.zip64||!1;if(u>=ne||f>=ne||h>=re){if(!1===r.zip64||!1===t.options.zip64)throw new l(nn);p=!0}const w=new d(f+(p?98:22)),g=wn(w);if(n&&n.length){if(n.length>re)throw new l(Xe);fn(g,c+20,n.length)}for(const[t,n]of e.from(o.values()).entries()){const{rawFilename:e,rawExtraFieldZip64:i,rawExtraFieldAES:a,rawExtraField:l,rawComment:f,versionMadeBy:u,headerArray:h,directory:p,zip64:y,msDosCompatible:m,internalFileAttribute:b,externalFileAttribute:k}=n;let v,S;if(n.extendedTimestamp){S=n.rawExtraFieldNTFS,v=new d(9);const t=wn(v);fn(t,0,ce),fn(t,2,v.length-4),dn(t,4,1),un(t,5,s.floor(n.lastModDate.getTime()/1e3))}else S=v=new d(0);const _=i.length+a.length+v.length+S.length+l.length;if(un(g,c,se),fn(g,c+4,u),pn(w,h,c+6),fn(g,c+30,_),fn(g,c+32,f.length),un(g,c+34,b),k?un(g,c+38,k):p&&m&&dn(g,c+38,16),un(g,c+42,y?ne:n.offset),pn(w,e,c+46),pn(w,i,c+46+e.length),pn(w,a,c+46+e.length+i.length),pn(w,v,c+46+e.length+i.length+a.length),pn(w,S,c+46+e.length+i.length+a.length+v.length),pn(w,l,c+46+e.length+i.length+a.length+v.length+S.length),pn(w,f,c+46+e.length+_),c+=46+e.length+_+f.length,r.onprogress)try{r.onprogress(t+1,o.size,new ke(n))}catch(t){}}p&&(un(g,c,ae),hn(g,c+4,i(44)),fn(g,c+12,45),fn(g,c+14,45),hn(g,c+24,i(h)),hn(g,c+32,i(h)),hn(g,c+40,i(f)),hn(g,c+48,i(u)),un(g,c+56,oe),hn(g,c+64,i(u)+i(f)),un(g,c+72,1),h=re,u=ne,f=ne,c+=76),un(g,c,101010256),fn(g,c+8,h),fn(g,c+10,h),un(g,c+12,f),un(g,c+16,u),await a.writeUint8Array(w),n&&n.length&&await a.writeUint8Array(n)})(this,t,n),this.writer.getData()}}function on(t,e,n){if(t.arrayBuffer)return e||n?t.slice(e,n).arrayBuffer():t.arrayBuffer();{const r=new m;return new w(((i,s)=>{r.onload=t=>i(t.target.result),r.onerror=()=>s(r.error),r.readAsArrayBuffer(e||n?t.slice(e,n):t)}))}}function cn(t){if(t)return(i(t.getTime())+i(116444736e5))*i(1e4)}function ln(t,e,n){return void 0===e[n]?t.options[n]:e[n]}function dn(t,e,n){t.setUint8(e,n)}function fn(t,e,n){t.setUint16(e,n,!0)}function un(t,e,n){t.setUint32(e,n,!0)}function hn(t,e,n){t.setBigUint64(e,n,!0)}function pn(t,e,n){t.set(e,n)}function wn(t){return new h(t.buffer)}const gn=524288;class yn{constructor(t,e,r,i){const s=this;if(t.root&&i&&i.getChildByName(e))throw new l("Entry filename already exists");r||(r={}),n.assign(s,{fs:t,name:e,data:r.data,id:t.entries.length,parent:i,children:[],uncompressedSize:0}),t.entries.push(s),i&&s.parent.children.push(s)}moveTo(t){this.fs.move(this,t)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,n=this.parent;for(;n&&n!=t;)e=(n.name?n.name+"/":"")+e,n=n.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return!!e}}class mn extends yn{constructor(t,e,n,r){super(t,e,n,r);const i=this;i.Reader=n.Reader,i.Writer=n.Writer,n.getData&&(i.getData=n.getData)}async getData(t,e={}){const n=this;return!t||t.constructor==n.Writer&&n.data?n.data:(n.reader=new n.Reader(n.data,e),await n.reader.init(),t.initialized||await t.init(),n.uncompressedSize=n.reader.size,(async(t,e)=>async function n(r=0){const i=r*gn;if(i{if(e.isDirectory){const n=t.addDirectory(e.name);return await async function t(e,n){const r=await(t=>new w(((e,n)=>{let r=[];t.isDirectory&&function t(i){i.readEntries((n=>{n.length?(r=r.concat(n),t(i)):e(r)}),n)}(t.createReader()),t.isFile&&e(r)})))(n);for(const n of r)n.isDirectory?await t(e.addDirectory(n.name),n):await new w(((t,r)=>{n.file((r=>{const i=e.addBlob(n.name,r);i.uncompressedSize=r.size,t(i)}),r)}))}(n,e),n}return new w(((n,r)=>e.file((r=>n(t.addBlob(e.name,r))),r)))})(this,t)}async addData(t,e){return zn(this,t,e)}async importBlob(t,e={}){await this.importZip(new Wt(t),e)}async importData64URI(t,e={}){await this.importZip(new Tt(t),e)}async importUint8Array(t,e={}){await this.importZip(new te(t),e)}async importHttpContent(t,e={}){await this.importZip(new Qt(t,e),e)}async exportBlob(t={}){return this.exportZip(new Vt("application/zip"),t)}async exportData64URI(t={}){return this.exportZip(new Bt("application/zip"),t)}async exportUint8Array(t={}){return this.exportZip(new ee,t)}async importZip(t,e){t.initialized||await t.init();const r=new Ue(t,e);(await r.getEntries()).forEach((t=>{let r=this;const i=t.filename.split("/"),s=i.pop();i.forEach((t=>r=r.getChildByName(t)||new bn(this.fs,t,null,r))),t.directory||zn(r,s,{data:t,Reader:vn(n.assign({},e))})}))}async exportZip(t,r){const i=this;await Sn(i),await t.init();const s=new an(t,r);return await(async(t,r,i,s)=>{const a=r,c=new o;await async function t(r,o){async function l(o){const l=s.relativePath?o.getRelativeName(a):o.getFullname();await r.add(l,o.reader,n.assign({directory:o.directory},n.assign({},s,{onprogress:t=>{if(s.onprogress){c.set(l,t);try{s.onprogress(e.from(c.values()).reduce(((t,e)=>t+e)),i)}catch(t){}}}}))),await t(r,o)}await(async()=>{if(s.bufferedWrite)await w.all(o.children.map(l));else for(const t of o.children)await l(t)})()}(t,r)})(s,i,(t=>{let e=0;return t.forEach((function t(n){e+=n.uncompressedSize,n.children&&n.children.forEach(t)})),e})([i]),r),await s.close(),t.getData()}getChildByName(t){const e=this.children;for(let n=0;n{n.id==t.id&&e.splice(r,1)}))}function An(t){t.entries=[],t.root=new bn(t)}function zn(t,e,n,r){if(t.directory)return r?new bn(t.fs,e,n,t):new mn(t.fs,e,n,t);throw new l("Parent entry is not a directory")}let Rn;try{Rn=void 0===b&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:void 0===b?location.href:b.currentScript&&b.currentScript.src||new c("zip-fs.min.js",b.baseURI).href}catch(t){}z({baseURL:Rn}),(t=>{if("function"==typeof c.createObjectURL){const e=()=>c.createObjectURL(new p(['const{Array:t,Object:e,Math:n,Error:r,Uint8Array:i,Uint16Array:o,Uint32Array:s,Int32Array:f,DataView:c,TextEncoder:l,crypto:u,postMessage:a}=globalThis,w=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;w[t]=e}class h{constructor(t){this.t=t||-1}append(t){let e=0|this.t;for(let n=0,r=0|t.length;r>n;n++)e=e>>>8^w[255&(e^t[n])];this.t=e}get(){return~this.t}}const d={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],r=d.i(n);return 32===r?t.concat(e):d.o(e,r,0|n,t.slice(0,t.length-1))},l(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+d.i(n)},u(t,e){if(32*t.length0&&e&&(t[r-1]=d.h(e,t[r-1]&2147483648>>e-1,1)),t},h:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,i:t=>n.round(t/1099511627776)||32,o(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(let i=0;i>>e),n=t[i]<<32-e;const i=t.length?t[t.length-1]:0,o=d.i(i);return r.push(d.h(e+o&31,e+o>32?n:r.pop(),1)),r}},p={p:{k(t){const e=d.l(t)/8,n=new i(e);let r;for(let i=0;e>i;i++)0==(3&i)&&(r=t[i/4]),n[i]=r>>>24,r<<=8;return n},g(t){const e=[];let n,r=0;for(n=0;n9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const f=new s(n);let c=0;for(let t=e.blockSize+i-(e.blockSize+i&e.blockSize-1);o>=t;t+=e.blockSize)e.C(f.subarray(16*c,16*(c+1))),c+=1;return n.splice(0,16*c),e},V:function(){const t=this;let e=t.S;const r=t.m;e=d.concat(e,[d.h(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(n.floor(t._/4294967296)),e.push(0|t._);e.length;)t.C(e.splice(0,16));return t.reset(),r},I:[1732584193,4023233417,2562383102,271733878,3285377520],B:[1518500249,1859775393,2400959708,3395469782],D:(t,e,n,r)=>t>19?t>39?t>59?t>79?void 0:e^n^r:e&n|e&r|n&r:e^n^r:e&n|~e&r,U:(t,e)=>e<>>32-t,C:function(e){const r=this,i=r.m,o=t(80);for(let t=0;16>t;t++)o[t]=e[t];let s=i[0],f=i[1],c=i[2],l=i[3],u=i[4];for(let t=0;79>=t;t++){16>t||(o[t]=r.U(1,o[t-3]^o[t-8]^o[t-14]^o[t-16]));const e=r.U(5,s)+r.D(t,f,c,l)+u+o[t]+r.B[n.floor(t/20)]|0;u=l,l=c,c=r.U(30,f),f=s,s=e}i[0]=i[0]+s|0,i[1]=i[1]+f|0,i[2]=i[2]+c|0,i[3]=i[3]+l|0,i[4]=i[4]+u|0}};const b={getRandomValues(t){const e=new s(t.buffer),r=t=>{let e=987654321;const r=4294967295;return()=>(e=36969*(65535&e)+(e>>16)&r,(((e<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r)/4294967296+.5)*(n.random()>.5?1:-1))};for(let i,o=0;onew k.M(p.p.g(t)),P(t,e,n,i){if(n=n||1e4,0>i||0>n)throw new r("invalid params to pbkdf2");const o=1+(i>>5)<<2;let s,f,l,u,a;const w=new ArrayBuffer(o);let h=new c(w),y=0;const b=d;for(e=p.p.g(e),a=1;(o||1)>y;a++){for(s=f=t.encrypt(b.concat(e,[a])),l=1;n>l;l++)for(f=t.encrypt(f),u=0;uy&&li&&(t=n.hash(t));for(let e=0;i>e;e++)r[0][e]=909522486^t[e],r[1][e]=1549556828^t[e];e.H[0].update(r[0]),e.H[1].update(r[1]),e.K=new n(e.H[0])}reset(){const t=this;t.K=new t.R(t.H[0]),t.L=!1}update(t){this.L=!0,this.K.update(t)}digest(){const t=this,e=t.K.V(),n=new t.R(t.H[1]).update(e).V();return t.reset(),n}encrypt(t){if(this.L)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},g={name:"PBKDF2"},v=e.assign({hash:{name:"HMAC"}},g),m=e.assign({iterations:1e3,hash:{name:"SHA-1"}},g),S=["deriveBits"],z=[8,12,16],_=[16,24,32],I=[0,0,0,0],A=void 0!==u,C=A&&void 0!==u.subtle,V=p.p,B=class{constructor(t){const e=this;e.T=[[[],[],[],[],[]],[[],[],[],[],[]]],e.T[0][0][0]||e.j();const n=e.T[0][4],i=e.T[1],o=t.length;let s,f,c,l=1;if(4!==o&&6!==o&&8!==o)throw new r("invalid aes key size");for(e.B=[f=t.slice(0),c=[]],s=o;4*o+28>s;s++){let t=f[s-1];(s%o==0||8===o&&s%o==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],s%o==0&&(t=t<<8^t>>>24^l<<24,l=l<<1^283*(l>>7))),f[s]=f[s-o]^t}for(let t=0;s;t++,s--){const e=f[3&t?s:s-4];c[t]=4>=s||4>t?e:i[0][n[e>>>24]]^i[1][n[e>>16&255]]^i[2][n[e>>8&255]]^i[3][n[255&e]]}}encrypt(t){return this.F(t,0)}decrypt(t){return this.F(t,1)}j(){const t=this.T[0],e=this.T[1],n=t[4],r=e[4],i=[],o=[];let s,f,c,l;for(let t=0;256>t;t++)o[(i[t]=t<<1^283*(t>>7))^t]=t;for(let u=s=0;!n[u];u^=f||1,s=o[s]||1){let o=s^s<<1^s<<2^s<<3^s<<4;o=o>>8^255&o^99,n[u]=o,r[o]=u,l=i[c=i[f=i[u]]];let a=16843009*l^65537*c^257*f^16843008*u,w=257*i[o]^16843008*o;for(let n=0;4>n;n++)t[n][u]=w=w<<24^w>>>8,e[n][o]=a=a<<24^a>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}F(t,e){if(4!==t.length)throw new r("invalid aes block size");const n=this.B[e],i=n.length/4-2,o=[0,0,0,0],s=this.T[e],f=s[0],c=s[1],l=s[2],u=s[3],a=s[4];let w,h,d,p=t[0]^n[0],y=t[e?3:1]^n[1],b=t[2]^n[2],k=t[e?1:3]^n[3],g=4;for(let t=0;i>t;t++)w=f[p>>>24]^c[y>>16&255]^l[b>>8&255]^u[255&k]^n[g],h=f[y>>>24]^c[b>>16&255]^l[k>>8&255]^u[255&p]^n[g+1],d=f[b>>>24]^c[k>>16&255]^l[p>>8&255]^u[255&y]^n[g+2],k=f[k>>>24]^c[p>>16&255]^l[y>>8&255]^u[255&b]^n[g+3],g+=4,p=w,y=h,b=d;for(let t=0;4>t;t++)o[e?3&-t:t]=a[p>>>24]<<24^a[y>>16&255]<<16^a[b>>8&255]<<8^a[255&k]^n[g++],w=p,p=y,y=b,b=k,k=w;return o}},E=class{constructor(t,e){this.O=t,this.W=e,this.q=e}reset(){this.q=this.W}update(t){return this.G(this.O,t,this.q)}J(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}N(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}G(t,e,n){let r;if(!(r=e.length))return[];const i=d.l(e);for(let i=0;r>i;i+=4){this.N(n);const r=t.encrypt(n);e[i]^=r[0],e[i+1]^=r[1],e[i+2]^=r[2],e[i+3]^=r[3]}return d.u(e,i)}},D=k.M;class U{constructor(t,n,r){e.assign(this,{password:t,signed:n,X:r-1,Y:new i(0)})}async append(e){const n=this;if(n.password){const i=K(e,0,z[n.X]+2);await(async(t,e,n)=>{await R(t,n,K(e,0,z[t.X]));const i=K(e,z[t.X]),o=t.keys.passwordVerification;if(o[0]!=i[0]||o[1]!=i[1])throw new r("Invalid pasword")})(n,i,n.password),n.password=null,n.Z=new E(new B(n.keys.key),t.from(I)),n.$=new D(n.keys.tt),e=K(e,z[n.X]+2)}return P(n,e,new i(e.length-10-(e.length-10)%16),0,10,!0)}flush(){const t=this,e=t.Y,n=K(e,0,e.length-10),r=K(e,e.length-10);let o=new i(0);if(n.length){const e=V.g(n);t.$.update(e);const r=t.Z.update(e);o=V.k(r)}let s=!0;if(t.signed){const e=K(V.k(t.$.digest()),0,10);for(let t=0;10>t;t++)e[t]!=r[t]&&(s=!1)}return{valid:s,data:o}}}class M{constructor(t,n){e.assign(this,{password:t,X:n-1,Y:new i(0)})}async append(e){const n=this;let r=new i(0);n.password&&(r=await(async(t,e)=>{const n=(r=new i(z[t.X]),A&&"function"==typeof u.getRandomValues?u.getRandomValues(r):b.getRandomValues(r));var r;return await R(t,e,n),H(n,t.keys.passwordVerification)})(n,n.password),n.password=null,n.Z=new E(new B(n.keys.key),t.from(I)),n.$=new D(n.keys.tt));const o=new i(r.length+e.length-e.length%16);return o.set(r,0),P(n,e,o,r.length,0)}flush(){const t=this;let e=new i(0);if(t.Y.length){const n=t.Z.update(V.g(t.Y));t.$.update(n),e=V.k(n)}const n=K(V.k(t.$.digest()),0,10);return{data:H(e,n),signature:n}}}function P(t,e,n,r,o,s){const f=e.length-o;let c;for(t.Y.length&&(e=H(t.Y,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new i(e)).set(n,0)}return t})(n,f-f%16)),c=0;f-16>=c;c+=16){const i=V.g(K(e,c,c+16));s&&t.$.update(i);const o=t.Z.update(i);s||t.$.update(o),n.set(V.k(o),c+r)}return t.Y=K(e,c),n}async function R(t,n,r){const o=(t=>{if(void 0===l){const e=new i((t=unescape(encodeURIComponent(t))).length);for(let n=0;nA&&C&&"function"==typeof u.subtle.importKey?u.subtle.importKey("raw",e,n,!1,i):k.importKey(e))(0,o,v,0,S),f=await(async(t,e,n)=>A&&C&&"function"==typeof u.subtle.deriveBits?await u.subtle.deriveBits(t,e,n):k.P(e,t.salt,m.iterations,n))(e.assign({salt:r},m),s,8*(2*_[t.X]+2)),c=new i(f);t.keys={key:V.g(K(c,0,_[t.X])),tt:V.g(K(c,_[t.X],2*_[t.X])),passwordVerification:K(c,2*_[t.X])}}function H(t,e){let n=t;return t.length+e.length&&(n=new i(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function K(t,e,n){return t.subarray(e,n)}class L{constructor(t,n){e.assign(this,{password:t,passwordVerification:n}),F(this,t)}append(t){const e=this;if(e.password){const n=j(e,t.subarray(0,12));if(e.password=null,n[11]!=e.passwordVerification)throw new r("Invalid pasword");t=t.subarray(12)}return j(e,t)}flush(){return{valid:!0,data:new i(0)}}}class T{constructor(t,n){e.assign(this,{password:t,passwordVerification:n}),F(this,t)}append(t){const e=this;let n,r;if(e.password){e.password=null;const o=u.getRandomValues(new i(12));o[11]=e.passwordVerification,n=new i(t.length+o.length),n.set(x(e,o),0),r=12}else n=new i(t.length),r=0;return n.set(x(e,t),r),n}flush(){return{data:new i(0)}}}function j(t,e){const n=new i(e.length);for(let r=0;r>>24]),t.keys[2]=~t.nt.get()}function W(t){const e=2|t.keys[2];return q(n.imul(e,1^e)>>>8)}function q(t){return 255&t}function G(t){return 4294967295&t}class J{constructor(t,{signature:n,password:r,signed:i,compressed:o,zipCrypto:s,passwordVerification:f,encryptionStrength:c},{rt:l}){const u=!!r;e.assign(this,{signature:n,encrypted:u,signed:i,compressed:o,it:o&&new t({rt:l}),ot:i&&new h,zipCrypto:s,decrypt:u&&s?new L(r,f):new U(r,i,c)})}async append(t){const e=this;return e.encrypted&&t.length&&(t=await e.decrypt.append(t)),e.compressed&&t.length&&(t=await e.it.append(t)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.ot.append(t),t}async flush(){const t=this;let e,n=new i(0);if(t.encrypted){const e=t.decrypt.flush();if(!e.valid)throw new r("Invalid signature");n=e.data}if((!t.encrypted||t.zipCrypto)&&t.signed){const n=new c(new i(4).buffer);if(e=t.ot.get(),n.setUint32(0,e),t.signature!=n.getUint32(0,!1))throw new r("Invalid signature")}return t.compressed&&(n=await t.it.append(n)||new i(0),await t.it.flush()),{data:n,signature:e}}}class N{constructor(t,{encrypted:n,signed:r,compressed:i,level:o,zipCrypto:s,password:f,passwordVerification:c,encryptionStrength:l},{rt:u}){e.assign(this,{encrypted:n,signed:r,compressed:i,st:i&&new t({level:o||5,rt:u}),ot:r&&new h,zipCrypto:s,encrypt:n&&s?new T(f,c):new M(f,l)})}async append(t){const e=this;let n=t;return e.compressed&&t.length&&(n=await e.st.append(t)),e.encrypted&&n.length&&(n=await e.encrypt.append(n)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.ot.append(t),n}async flush(){const t=this;let e,n=new i(0);if(t.compressed&&(n=await t.st.flush()||new i(0)),t.encrypted){n=await t.encrypt.append(n);const r=t.encrypt.flush();e=r.signature;const o=new i(n.length+r.data.length);o.set(n,0),o.set(r.data,n.length),n=o}return t.encrypted&&!t.zipCrypto||!t.signed||(e=t.ot.get()),{data:n,signature:e}}}const Q={init(t){t.scripts&&t.scripts.length&&importScripts.apply(void 0,t.scripts);const e=t.options;let n;self.initCodec&&self.initCodec(),e.codecType.startsWith("deflate")?n=self.Deflate:e.codecType.startsWith("inflate")&&(n=self.Inflate),X=((t,e,n)=>e.codecType.startsWith("deflate")?new N(t,e,n):e.codecType.startsWith("inflate")?new J(t,e,n):void 0)(n,e,t.config)},append:async t=>({data:await X.append(t.data)}),flush:()=>X.flush()};let X;function Y(e){return Z(e.map((([e,n])=>new t(e).fill(n,0,e))))}function Z(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?Z(n):n)),[])}addEventListener("message",(async t=>{const e=t.data,n=e.type,r=Q[n];if(r)try{e.data&&(e.data=new i(e.data));const t=await r(e)||{};if(t.type=n,t.data)try{t.data=t.data.buffer,a(t,[t.data])}catch(e){a(t)}else a(t)}catch(t){a({type:n,error:{message:t.message,stack:t.stack}})}}));const $=[0,1,2,3].concat(...Y([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function tt(){const t=this;function e(t,e){let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}t.ft=r=>{const i=t.ct,o=t.ut.lt,s=t.ut.at;let f,c,l,u=-1;for(r.wt=0,r.ht=573,f=0;s>f;f++)0!==i[2*f]?(r.dt[++r.wt]=u=f,r.yt[f]=0):i[2*f+1]=0;for(;2>r.wt;)l=r.dt[++r.wt]=2>u?++u:0,i[2*l]=1,r.yt[l]=0,r.bt--,o&&(r.kt-=o[2*l+1]);for(t.gt=u,f=n.floor(r.wt/2);f>=1;f--)r.vt(i,f);l=s;do{f=r.dt[1],r.dt[1]=r.dt[r.wt--],r.vt(i,1),c=r.dt[1],r.dt[--r.ht]=f,r.dt[--r.ht]=c,i[2*l]=i[2*f]+i[2*c],r.yt[l]=n.max(r.yt[f],r.yt[c])+1,i[2*f+1]=i[2*c+1]=l,r.dt[1]=l++,r.vt(i,1)}while(r.wt>=2);r.dt[--r.ht]=r.dt[1],(e=>{const n=t.ct,r=t.ut.lt,i=t.ut.St,o=t.ut.zt,s=t.ut._t;let f,c,l,u,a,w,h=0;for(u=0;15>=u;u++)e.It[u]=0;for(n[2*e.dt[e.ht]+1]=0,f=e.ht+1;573>f;f++)c=e.dt[f],u=n[2*n[2*c+1]+1]+1,u>s&&(u=s,h++),n[2*c+1]=u,c>t.gt||(e.It[u]++,a=0,o>c||(a=i[c-o]),w=n[2*c],e.bt+=w*(u+a),r&&(e.kt+=w*(r[2*c+1]+a)));if(0!==h){do{for(u=s-1;0===e.It[u];)u--;e.It[u]--,e.It[u+1]+=2,e.It[s]--,h-=2}while(h>0);for(u=s;0!==u;u--)for(c=e.It[u];0!==c;)l=e.dt[--f],l>t.gt||(n[2*l+1]!=u&&(e.bt+=(u-n[2*l+1])*n[2*l],n[2*l+1]=u),c--)}})(r),((t,n,r)=>{const i=[];let o,s,f,c=0;for(o=1;15>=o;o++)i[o]=c=c+r[o-1]<<1;for(s=0;n>=s;s++)f=t[2*s+1],0!==f&&(t[2*s]=e(i[f]++,f))})(i,t.gt,r.It)}}function et(t,e,n,r,i){const o=this;o.lt=t,o.St=e,o.zt=n,o.at=r,o._t=i}tt.At=[0,1,2,3,4,5,6,7].concat(...Y([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),tt.Ct=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],tt.Vt=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],tt.Bt=t=>256>t?$[t]:$[256+(t>>>7)],tt.Et=[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],tt.Dt=[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],tt.Ut=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],tt.Mt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const nt=Y([[144,8],[112,9],[24,7],[8,8]]);et.Pt=Z([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((t,e)=>[t,nt[e]])));const rt=Y([[30,5]]);function it(t,e,n,r,i){const o=this;o.Rt=t,o.Ht=e,o.Kt=n,o.Lt=r,o.Tt=i}et.jt=Z([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((t,e)=>[t,rt[e]]))),et.xt=new et(et.Pt,tt.Et,257,286,15),et.Ft=new et(et.jt,tt.Dt,0,30,15),et.Ot=new et(null,tt.Ut,0,19,7);const ot=[new it(0,0,0,0,0),new it(4,4,8,4,1),new it(4,5,16,8,1),new it(4,6,32,32,1),new it(4,4,16,16,2),new it(8,16,32,32,2),new it(8,16,128,128,2),new it(8,32,128,256,2),new it(32,128,258,1024,2),new it(32,258,258,4096,2)],st=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function ft(t,e,n,r){const i=t[2*e],o=t[2*n];return o>i||i==o&&r[e]<=r[n]}function ct(){const t=this;let e,r,s,f,c,l,u,a,w,h,d,p,y,b,k,g,v,m,S,z,_,I,A,C,V,B,E,D,U,M,P,R,H;const K=new tt,L=new tt,T=new tt;let j,x,F,O,W,q;function G(){let e;for(e=0;286>e;e++)P[2*e]=0;for(e=0;30>e;e++)R[2*e]=0;for(e=0;19>e;e++)H[2*e]=0;P[512]=1,t.bt=t.kt=0,x=F=0}function J(t,e){let n,r=-1,i=t[1],o=0,s=7,f=4;0===i&&(s=138,f=3),t[2*(e+1)+1]=65535;for(let c=0;e>=c;c++)n=i,i=t[2*(c+1)+1],++oo?H[2*n]+=o:0!==n?(n!=r&&H[2*n]++,H[32]++):o>10?H[36]++:H[34]++,o=0,r=n,0===i?(s=138,f=3):n==i?(s=6,f=3):(s=7,f=4))}function N(e){t.Wt[t.pending++]=e}function Q(t){N(255&t),N(t>>>8&255)}function X(t,e){let n;const r=e;q>16-r?(n=t,W|=n<>>16-q,q+=r-16):(W|=t<=n;n++)if(r=o,o=t[2*(n+1)+1],++s>=f||r!=o){if(c>s)do{Y(r,H)}while(0!=--s);else 0!==r?(r!=i&&(Y(r,H),s--),Y(16,H),X(s-3,2)):s>10?(Y(18,H),X(s-11,7)):(Y(17,H),X(s-3,3));s=0,i=r,0===o?(f=138,c=3):r==o?(f=6,c=3):(f=7,c=4)}}function $(){16==q?(Q(W),W=0,q=0):8>q||(N(255&W),W>>>=8,q-=8)}function nt(e,r){let i,o,s;if(t.qt[x]=e,t.Gt[x]=255&r,x++,0===e?P[2*r]++:(F++,e--,P[2*(tt.At[r]+256+1)]++,R[2*tt.Bt(e)]++),0==(8191&x)&&E>2){for(i=8*x,o=_-v,s=0;30>s;s++)i+=R[2*s]*(5+tt.Dt[s]);if(i>>>=3,Ff);Y(256,e),O=e[513]}function it(){q>8?Q(W):q>0&&N(255&W),W=0,q=0}function ct(e,n,r){X(0+(r?1:0),3),((e,n)=>{it(),O=8,Q(n),Q(~n),t.Wt.set(a.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function lt(n){((e,n,r)=>{let i,o,s=0;E>0?(K.ft(t),L.ft(t),s=(()=>{let e;for(J(P,K.gt),J(R,L.gt),T.ft(t),e=18;e>=3&&0===H[2*tt.Mt[e]+1];e--);return t.bt+=14+3*(e+1),e})(),i=t.bt+3+7>>>3,o=t.kt+3+7>>>3,o>i||(i=o)):i=o=n+5,n+4>i||-1==e?o==i?(X(2+(r?1:0),3),rt(et.Pt,et.jt)):(X(4+(r?1:0),3),((t,e,n)=>{let r;for(X(t-257,5),X(e-1,5),X(n-4,4),r=0;n>r;r++)X(H[2*tt.Mt[r]+1],3);Z(P,t-1),Z(R,e-1)})(K.gt+1,L.gt+1,s+1),rt(P,R)):ct(e,n,r),G(),r&&it()})(0>v?-1:v,_-v,n),v=_,e.Jt()}function ut(){let t,n,r,i;do{if(i=w-A-_,0===i&&0===_&&0===A)i=c;else if(-1==i)i--;else if(_>=c+c-262){a.set(a.subarray(c,c+c),0),I-=c,_-=c,v-=c,t=y,r=t;do{n=65535&d[--r],d[r]=c>n?0:n-c}while(0!=--t);t=c,r=t;do{n=65535&h[--r],h[r]=c>n?0:n-c}while(0!=--t);i+=c}if(0===e.Nt)return;t=e.Qt(a,_+A,i),A+=t,3>A||(p=255&a[_],p=(p<A&&0!==e.Nt)}function at(t){let e,n,r=V,i=_,o=C;const s=_>c-262?_-(c-262):0;let f=M;const l=u,w=_+258;let d=a[i+o-1],p=a[i+o];U>C||(r>>=2),f>A&&(f=A);do{if(e=t,a[e+o]==p&&a[e+o-1]==d&&a[e]==a[i]&&a[++e]==a[i+1]){i+=2,e++;do{}while(a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&a[++i]==a[++e]&&w>i);if(n=258-(w-i),i=w-258,n>o){if(I=t,o=n,n>=f)break;d=a[i+o-1],p=a[i+o]}}}while((t=65535&h[t&l])>s&&0!=--r);return o>A?A:o}t.yt=[],t.It=[],t.dt=[],P=[],R=[],H=[],t.vt=(e,n)=>{const r=t.dt,i=r[n];let o=n<<1;for(;o<=t.wt&&(o(x||(x=8),F||(F=8),J||(J=0),e.Yt=null,-1==S&&(S=6),1>F||F>9||8!=x||9>I||I>15||0>S||S>9||0>J||J>2?-2:(e.Zt=t,l=I,c=1<(e.$t=e.te=0,e.Yt=null,t.pending=0,t.ee=0,r=113,f=0,K.ct=P,K.ut=et.xt,L.ct=R,L.ut=et.Ft,T.ct=H,T.ut=et.Ot,W=0,q=0,O=8,G(),(()=>{w=2*c,d[y-1]=0;for(let t=0;y-1>t;t++)d[t]=0;B=ot[E].Ht,U=ot[E].Rt,M=ot[E].Kt,V=ot[E].Lt,_=0,v=0,A=0,m=C=2,z=0,p=0})(),0))(e))),t.ne=()=>42!=r&&113!=r&&666!=r?-2:(t.Gt=null,t.qt=null,t.Wt=null,d=null,h=null,a=null,t.Zt=null,113==r?-3:0),t.re=(t,e,n)=>{let r=0;return-1==e&&(e=6),0>e||e>9||0>n||n>2?-2:(ot[E].Tt!=ot[e].Tt&&0!==t.$t&&(r=t.st(1)),E!=e&&(E=e,B=ot[E].Ht,U=ot[E].Rt,M=ot[E].Kt,V=ot[E].Lt),D=n,r)},t.ie=(t,e,n)=>{let i,o=n,s=0;if(!e||42!=r)return-2;if(3>o)return 0;for(o>c-262&&(o=c-262,s=n-o),a.set(e.subarray(s,s+o),0),_=o,v=o,p=255&a[0],p=(p<=i;i++)p=(p<{let o,w,b,V,U;if(i>4||0>i)return-2;if(!n.oe||!n.se&&0!==n.Nt||666==r&&4!=i)return n.Yt=st[4],-2;if(0===n.fe)return n.Yt=st[7],-5;var M;if(e=n,V=f,f=i,42==r&&(w=8+(l-8<<4)<<8,b=(E-1&255)>>1,b>3&&(b=3),w|=b<<6,0!==_&&(w|=32),w+=31-w%31,r=113,N((M=w)>>8&255),N(255&M)),0!==t.pending){if(e.Jt(),0===e.fe)return f=-1,0}else if(0===e.Nt&&V>=i&&4!=i)return e.Yt=st[7],-5;if(666==r&&0!==e.Nt)return n.Yt=st[7],-5;if(0!==e.Nt||0!==A||0!=i&&666!=r){switch(U=-1,ot[E].Tt){case 0:U=(t=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ut(),0===A&&0==t)return 0;if(0===A)break}if(_+=A,A=0,n=v+r,(0===_||_>=n)&&(A=_-n,_=n,lt(!1),0===e.fe))return 0;if(_-v>=c-262&&(lt(!1),0===e.fe))return 0}return lt(4==t),0===e.fe?4==t?2:0:4==t?3:1})(i);break;case 1:U=(t=>{let n,r=0;for(;;){if(262>A){if(ut(),262>A&&0==t)return 0;if(0===A)break}if(3>A||(p=(p<c-262||2!=D&&(m=at(r)),3>m)n=nt(0,255&a[_]),A--,_++;else if(n=nt(_-I,m-3),A-=m,m>B||3>A)_+=m,m=0,p=255&a[_],p=(p<{let n,r,i=0;for(;;){if(262>A){if(ut(),262>A&&0==t)return 0;if(0===A)break}if(3>A||(p=(p<C&&c-262>=(_-i&65535)&&(2!=D&&(m=at(i)),5>=m&&(1==D||3==m&&_-I>4096)&&(m=2)),3>C||m>C)if(0!==z){if(n=nt(0,255&a[_-1]),n&<(!1),_++,A--,0===e.fe)return 0}else z=1,_++,A--;else{r=_+A-3,n=nt(_-1-S,C-3),A-=C-1,C-=2;do{++_>r||(p=(p<1+O+10-q&&(X(2,3),Y(256,et.Pt),$()),O=7;else if(ct(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(e.Jt(),0===e.fe)return f=-1,0}}return 4!=i?0:1}}function lt(){const t=this;t.ce=0,t.le=0,t.Nt=0,t.$t=0,t.fe=0,t.te=0}function ut(t){const e=new lt,o=(s=t&&t.rt?t.rt:65536)+5*(n.floor(s/16383)+1);var s;const f=new i(o);let c=t?t.level:-1;void 0===c&&(c=-1),e.Xt(c),e.oe=f,this.append=(t,n)=>{let s,c,l=0,u=0,a=0;const w=[];if(t.length){e.ce=0,e.se=t,e.Nt=t.length;do{if(e.le=0,e.fe=o,s=e.st(0),0!=s)throw new r("deflating: "+e.Yt);e.le&&(e.le==o?w.push(new i(f)):w.push(f.slice(0,e.le))),a+=e.le,n&&e.ce>0&&e.ce!=l&&(n(e.ce),l=e.ce)}while(e.Nt>0||0===e.fe);return w.length>1?(c=new i(a),w.forEach((t=>{c.set(t,u),u+=t.length}))):c=w[0]||new i(0),c}},this.flush=()=>{let t,n,s=0,c=0;const l=[];do{if(e.le=0,e.fe=o,t=e.st(4),1!=t&&0!=t)throw new r("deflating: "+e.Yt);o-e.fe>0&&l.push(f.slice(0,e.le)),c+=e.le}while(e.Nt>0||0===e.fe);return e.ne(),n=new i(c),l.forEach((t=>{n.set(t,s),s+=t.length})),n}}lt.prototype={Xt:function(t,e){const n=this;return n.Zt=new ct,e||(e=15),n.Zt.Xt(n,t,e)},st:function(t){const e=this;return e.Zt?e.Zt.st(e,t):-2},ne:function(){const t=this;if(!t.Zt)return-2;const e=t.Zt.ne();return t.Zt=null,e},re:function(t,e){const n=this;return n.Zt?n.Zt.re(n,t,e):-2},ie:function(t,e){const n=this;return n.Zt?n.Zt.ie(n,t,e):-2},Qt:function(t,e,n){const r=this;let i=r.Nt;return i>n&&(i=n),0===i?0:(r.Nt-=i,t.set(r.se.subarray(r.ce,r.ce+i),e),r.ce+=i,r.$t+=i,i)},Jt:function(){const t=this;let e=t.Zt.pending;e>t.fe&&(e=t.fe),0!==e&&(t.oe.set(t.Zt.Wt.subarray(t.Zt.ee,t.Zt.ee+e),t.le),t.le+=e,t.Zt.ee+=e,t.te+=e,t.fe-=e,t.Zt.pending-=e,0===t.Zt.pending&&(t.Zt.ee=0))}};const at=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],wt=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ht=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],dt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],pt=[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,112,112],yt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],bt=[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];function kt(){let t,e,n,r,i,o;function s(t,e,s,f,c,l,u,a,w,h,d){let p,y,b,k,g,v,m,S,z,_,I,A,C,V,B;_=0,g=s;do{n[t[e+_]]++,_++,g--}while(0!==g);if(n[0]==s)return u[0]=-1,a[0]=0,0;for(S=a[0],v=1;15>=v&&0===n[v];v++);for(m=v,v>S&&(S=v),g=15;0!==g&&0===n[g];g--);for(b=g,S>g&&(S=g),a[0]=S,V=1<v;v++,V<<=1)if(0>(V-=n[v]))return-3;if(0>(V-=n[g]))return-3;for(n[g]+=V,o[1]=v=0,_=1,C=2;0!=--g;)o[C]=v+=n[_],C++,_++;g=0,_=0;do{0!==(v=t[e+_])&&(d[o[v]++]=g),_++}while(++g=m;m++)for(p=n[m];0!=p--;){for(;m>A+S;){if(k++,A+=S,B=b-A,B=B>S?S:B,(y=1<<(v=m-A))>p+1&&(y-=p+1,C=m,B>v))for(;++vn[++C];)y-=n[C];if(B=1<1440)return-3;i[k]=I=h[0],h[0]+=B,0!==k?(o[k]=g,r[0]=v,r[1]=S,v=g>>>A-S,r[2]=I-i[k-1]-v,w.set(r,3*(i[k-1]+v))):u[0]=I}for(r[1]=m-A,s>_?d[_]d[_]?0:96,r[2]=d[_++]):(r[0]=l[d[_]-f]+16+64,r[2]=c[d[_++]-f]):r[0]=192,y=1<>>A;B>v;v+=y)w.set(r,3*(I+v));for(v=1<>>=1)g^=v;for(g^=v,z=(1<c;c++)e[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;i.set(n.subarray(0,15),0),o.set(n.subarray(0,16),0)}this.ue=(n,r,i,o,f)=>{let l;return c(19),t[0]=0,l=s(n,0,19,19,null,null,i,r,o,t,e),-3==l?f.Yt="oversubscribed dynamic bit lengths tree":-5!=l&&0!==r[0]||(f.Yt="incomplete dynamic bit lengths tree",l=-3),l},this.ae=(n,r,i,o,f,l,u,a,w)=>{let h;return c(288),t[0]=0,h=s(i,0,n,257,dt,pt,l,o,a,t,e),0!=h||0===o[0]?(-3==h?w.Yt="oversubscribed literal/length tree":-4!=h&&(w.Yt="incomplete literal/length tree",h=-3),h):(c(288),h=s(i,n,r,0,yt,bt,u,f,a,t,e),0!=h||0===f[0]&&n>257?(-3==h?w.Yt="oversubscribed distance tree":-5==h?(w.Yt="incomplete distance tree",h=-3):-4!=h&&(w.Yt="empty distance tree with lengths",h=-3),h):0)}}function gt(){const t=this;let e,n,r,i,o=0,s=0,f=0,c=0,l=0,u=0,a=0,w=0,h=0,d=0;function p(t,e,n,r,i,o,s,f){let c,l,u,a,w,h,d,p,y,b,k,g,v,m,S,z;d=f.ce,p=f.Nt,w=s.we,h=s.he,y=s.write,b=yh;)p--,w|=(255&f.de(d++))<>=l[z+1],h-=l[z+1],0!=(16&a)){for(a&=15,v=l[z+2]+(w&at[a]),w>>=a,h-=a;15>h;)p--,w|=(255&f.de(d++))<>=l[z+1],h-=l[z+1],0!=(16&a)){for(a&=15;a>h;)p--,w|=(255&f.de(d++))<>=a,h-=a,b-=v,m>y){S=y-m;do{S+=s.end}while(0>S);if(a=s.end-S,v>a){if(v-=a,y-S>0&&a>y-S)do{s.pe[y++]=s.pe[S++]}while(0!=--a);else s.pe.set(s.pe.subarray(S,S+a),y),y+=a,S+=a,a=0;S=0}}else S=y-m,y-S>0&&2>y-S?(s.pe[y++]=s.pe[S++],s.pe[y++]=s.pe[S++],v-=2):(s.pe.set(s.pe.subarray(S,S+2),y),y+=2,S+=2,v-=2);if(y-S>0&&v>y-S)do{s.pe[y++]=s.pe[S++]}while(0!=--v);else s.pe.set(s.pe.subarray(S,S+v),y),y+=v,S+=v,v=0;break}if(0!=(64&a))return f.Yt="invalid distance code",v=f.Nt-p,v=v>h>>3?h>>3:v,p+=v,d-=v,h-=v<<3,s.we=w,s.he=h,f.Nt=p,f.$t+=d-f.ce,f.ce=d,s.write=y,-3;c+=l[z+2],c+=w&at[a],z=3*(u+c),a=l[z]}break}if(0!=(64&a))return 0!=(32&a)?(v=f.Nt-p,v=v>h>>3?h>>3:v,p+=v,d-=v,h-=v<<3,s.we=w,s.he=h,f.Nt=p,f.$t+=d-f.ce,f.ce=d,s.write=y,1):(f.Yt="invalid literal/length code",v=f.Nt-p,v=v>h>>3?h>>3:v,p+=v,d-=v,h-=v<<3,s.we=w,s.he=h,f.Nt=p,f.$t+=d-f.ce,f.ce=d,s.write=y,-3);if(c+=l[z+2],c+=w&at[a],z=3*(u+c),0===(a=l[z])){w>>=l[z+1],h-=l[z+1],s.pe[y++]=l[z+2],b--;break}}else w>>=l[z+1],h-=l[z+1],s.pe[y++]=l[z+2],b--}while(b>=258&&p>=10);return v=f.Nt-p,v=v>h>>3?h>>3:v,p+=v,d-=v,h-=v<<3,s.we=w,s.he=h,f.Nt=p,f.$t+=d-f.ce,f.ce=d,s.write=y,0}t.init=(t,o,s,f,c,l)=>{e=0,a=t,w=o,r=s,h=f,i=c,d=l,n=null},t.ye=(t,y,b)=>{let k,g,v,m,S,z,_,I=0,A=0,C=0;for(C=y.ce,m=y.Nt,I=t.we,A=t.he,S=t.write,z=S=258&&m>=10&&(t.we=I,t.he=A,y.Nt=m,y.$t+=C-y.ce,y.ce=C,t.write=S,b=p(a,w,r,h,i,d,t,y),C=y.ce,m=y.Nt,I=t.we,A=t.he,S=t.write,z=SA;){if(0===m)return t.we=I,t.he=A,y.Nt=m,y.$t+=C-y.ce,y.ce=C,t.write=S,t.be(y,b);b=0,m--,I|=(255&y.de(C++))<>>=n[g+1],A-=n[g+1],v=n[g],0===v){c=n[g+2],e=6;break}if(0!=(16&v)){l=15&v,o=n[g+2],e=2;break}if(0==(64&v)){f=v,s=g/3+n[g+2];break}if(0!=(32&v)){e=7;break}return e=9,y.Yt="invalid literal/length code",b=-3,t.we=I,t.he=A,y.Nt=m,y.$t+=C-y.ce,y.ce=C,t.write=S,t.be(y,b);case 2:for(k=l;k>A;){if(0===m)return t.we=I,t.he=A,y.Nt=m,y.$t+=C-y.ce,y.ce=C,t.write=S,t.be(y,b);b=0,m--,I|=(255&y.de(C++))<>=k,A-=k,f=w,n=i,s=d,e=3;case 3:for(k=f;k>A;){if(0===m)return t.we=I,t.he=A,y.Nt=m,y.$t+=C-y.ce,y.ce=C,t.write=S,t.be(y,b);b=0,m--,I|=(255&y.de(C++))<>=n[g+1],A-=n[g+1],v=n[g],0!=(16&v)){l=15&v,u=n[g+2],e=4;break}if(0==(64&v)){f=v,s=g/3+n[g+2];break}return e=9,y.Yt="invalid distance code",b=-3,t.we=I,t.he=A,y.Nt=m,y.$t+=C-y.ce,y.ce=C,t.write=S,t.be(y,b);case 4:for(k=l;k>A;){if(0===m)return t.we=I,t.he=A,y.Nt=m,y.$t+=C-y.ce,y.ce=C,t.write=S,t.be(y,b);b=0,m--,I|=(255&y.de(C++))<>=k,A-=k,e=5;case 5:for(_=S-u;0>_;)_+=t.end;for(;0!==o;){if(0===z&&(S==t.end&&0!==t.read&&(S=0,z=S7&&(A-=8,m++,C--),t.write=S,b=t.be(y,b),S=t.write,z=S{}}kt.ge=(t,e,n,r)=>(t[0]=9,e[0]=5,n[0]=wt,r[0]=ht,0);const vt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function mt(t,e){const n=this;let r,o=0,s=0,c=0,l=0;const u=[0],a=[0],w=new gt;let h=0,d=new f(4320);const p=new kt;n.he=0,n.we=0,n.pe=new i(e),n.end=e,n.read=0,n.write=0,n.reset=(t,e)=>{e&&(e[0]=0),6==o&&w.ke(t),o=0,n.he=0,n.we=0,n.read=n.write=0},n.reset(t,null),n.be=(t,e)=>{let r,i,o;return i=t.le,o=n.read,r=(o>n.write?n.end:n.write)-o,r>t.fe&&(r=t.fe),0!==r&&-5==e&&(e=0),t.fe-=r,t.te+=r,t.oe.set(n.pe.subarray(o,o+r),i),i+=r,o+=r,o==n.end&&(o=0,n.write==n.end&&(n.write=0),r=n.write-o,r>t.fe&&(r=t.fe),0!==r&&-5==e&&(e=0),t.fe-=r,t.te+=r,t.oe.set(n.pe.subarray(o,o+r),i),i+=r,o+=r),t.le=i,n.read=o,e},n.ye=(t,e)=>{let i,f,y,b,k,g,v,m;for(b=t.ce,k=t.Nt,f=n.we,y=n.he,g=n.write,v=gy;){if(0===k)return n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);e=0,k--,f|=(255&t.de(b++))<>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,o=1;break;case 1:S=[],z=[],_=[[]],I=[[]],kt.ge(S,z,_,I),w.init(S[0],z[0],_[0],0,I[0],0),f>>>=3,y-=3,o=6;break;case 2:f>>>=3,y-=3,o=3;break;case 3:return f>>>=3,y-=3,o=9,t.Yt="invalid block type",e=-3,n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e)}break;case 1:for(;32>y;){if(0===k)return n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);e=0,k--,f|=(255&t.de(b++))<>>16&65535)!=(65535&f))return o=9,t.Yt="invalid stored block lengths",e=-3,n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);s=65535&f,f=y=0,o=0!==s?2:0!==h?7:0;break;case 2:if(0===k)return n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);if(0===v&&(g==n.end&&0!==n.read&&(g=0,v=gk&&(i=k),i>v&&(i=v),n.pe.set(t.Qt(b,i),g),b+=i,k-=i,g+=i,v-=i,0!=(s-=i))break;o=0!==h?7:0;break;case 3:for(;14>y;){if(0===k)return n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);e=0,k--,f|=(255&t.de(b++))<29||(i>>5&31)>29)return o=9,t.Yt="too many length or distance symbols",e=-3,n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);if(i=258+(31&i)+(i>>5&31),!r||r.lengthm;m++)r[m]=0;f>>>=14,y-=14,l=0,o=4;case 4:for(;4+(c>>>10)>l;){for(;3>y;){if(0===k)return n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);e=0,k--,f|=(255&t.de(b++))<>>=3,y-=3}for(;19>l;)r[vt[l++]]=0;if(u[0]=7,i=p.ue(r,u,a,d,t),0!=i)return-3==(e=i)&&(r=null,o=9),n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);l=0,o=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>l;){let s,w;for(i=u[0];i>y;){if(0===k)return n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);e=0,k--,f|=(255&t.de(b++))<w)f>>>=i,y-=i,r[l++]=w;else{for(m=18==w?7:w-14,s=18==w?11:3;i+m>y;){if(0===k)return n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);e=0,k--,f|=(255&t.de(b++))<>>=i,y-=i,s+=f&at[m],f>>>=m,y-=m,m=l,i=c,m+s>258+(31&i)+(i>>5&31)||16==w&&1>m)return r=null,o=9,t.Yt="invalid bit length repeat",e=-3,n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);w=16==w?r[m-1]:0;do{r[m++]=w}while(0!=--s);l=m}}if(a[0]=-1,A=[],C=[],V=[],B=[],A[0]=9,C[0]=6,i=c,i=p.ae(257+(31&i),1+(i>>5&31),r,A,C,V,B,d,t),0!=i)return-3==i&&(r=null,o=9),e=i,n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,n.be(t,e);w.init(A[0],C[0],d,V[0],d,B[0]),o=6;case 6:if(n.we=f,n.he=y,t.Nt=k,t.$t+=b-t.ce,t.ce=b,n.write=g,1!=(e=w.ye(n,t,e)))return n.be(t,e);if(e=0,w.ke(t),b=t.ce,k=t.Nt,f=n.we,y=n.he,g=n.write,v=g{n.reset(t,null),n.pe=null,d=null},n.ve=(t,e,r)=>{n.pe.set(t.subarray(e,e+r),0),n.read=n.write=r},n.me=()=>1==o?1:0}const St=[0,0,255,255];function zt(){const t=this;function e(t){return t&&t.Se?(t.$t=t.te=0,t.Yt=null,t.Se.mode=7,t.Se.ze.reset(t,null),0):-2}t.mode=0,t.method=0,t._e=[0],t.Ie=0,t.marker=0,t.Ae=0,t.Ce=e=>(t.ze&&t.ze.ke(e),t.ze=null,0),t.Ve=(n,r)=>(n.Yt=null,t.ze=null,8>r||r>15?(t.Ce(n),-2):(t.Ae=r,n.Se.ze=new mt(n,1<{let n,r;if(!t||!t.Se||!t.se)return-2;const i=t.Se;for(e=4==e?-5:0,n=-5;;)switch(i.mode){case 0:if(0===t.Nt)return n;if(n=e,t.Nt--,t.$t++,8!=(15&(i.method=t.de(t.ce++)))){i.mode=13,t.Yt="unknown compression method",i.marker=5;break}if(8+(i.method>>4)>i.Ae){i.mode=13,t.Yt="invalid win size",i.marker=5;break}i.mode=1;case 1:if(0===t.Nt)return n;if(n=e,t.Nt--,t.$t++,r=255&t.de(t.ce++),((i.method<<8)+r)%31!=0){i.mode=13,t.Yt="incorrect header check",i.marker=5;break}if(0==(32&r)){i.mode=7;break}i.mode=2;case 2:if(0===t.Nt)return n;n=e,t.Nt--,t.$t++,i.Ie=(255&t.de(t.ce++))<<24&4278190080,i.mode=3;case 3:if(0===t.Nt)return n;n=e,t.Nt--,t.$t++,i.Ie+=(255&t.de(t.ce++))<<16&16711680,i.mode=4;case 4:if(0===t.Nt)return n;n=e,t.Nt--,t.$t++,i.Ie+=(255&t.de(t.ce++))<<8&65280,i.mode=5;case 5:return 0===t.Nt?n:(n=e,t.Nt--,t.$t++,i.Ie+=255&t.de(t.ce++),i.mode=6,2);case 6:return i.mode=13,t.Yt="need dictionary",i.marker=0,-2;case 7:if(n=i.ze.ye(t,n),-3==n){i.mode=13,i.marker=0;break}if(0==n&&(n=e),1!=n)return n;n=e,i.ze.reset(t,i._e),i.mode=12;case 12:return t.Nt=0,1;case 13:return-3;default:return-2}},t.Be=(t,e,n)=>{let r=0,i=n;if(!t||!t.Se||6!=t.Se.mode)return-2;const o=t.Se;return i<1<{let n,r,i,o,s;if(!t||!t.Se)return-2;const f=t.Se;if(13!=f.mode&&(f.mode=13,f.marker=0),0===(n=t.Nt))return-5;for(r=t.ce,i=f.marker;0!==n&&4>i;)t.de(r)==St[i]?i++:i=0!==t.de(r)?0:4-i,r++,n--;return t.$t+=r-t.ce,t.ce=r,t.Nt=n,f.marker=i,4!=i?-3:(o=t.$t,s=t.te,e(t),t.$t=o,t.te=s,f.mode=7,0)},t.De=t=>t&&t.Se&&t.Se.ze?t.Se.ze.me():-2}function _t(){}function It(t){const e=new _t,o=t&&t.rt?n.floor(2*t.rt):131072,s=new i(o);let f=!1;e.Ve(),e.oe=s,this.append=(t,n)=>{const c=[];let l,u,a=0,w=0,h=0;if(0!==t.length){e.ce=0,e.se=t,e.Nt=t.length;do{if(e.le=0,e.fe=o,0!==e.Nt||f||(e.ce=0,f=!0),l=e.it(0),f&&-5===l){if(0!==e.Nt)throw new r("inflating: bad input")}else if(0!==l&&1!==l)throw new r("inflating: "+e.Yt);if((f||1===l)&&e.Nt===t.length)throw new r("inflating: bad input");e.le&&(e.le===o?c.push(new i(s)):c.push(s.slice(0,e.le))),h+=e.le,n&&e.ce>0&&e.ce!=a&&(n(e.ce),a=e.ce)}while(e.Nt>0||0===e.fe);return c.length>1?(u=new i(h),c.forEach((t=>{u.set(t,w),w+=t.length}))):u=c[0]||new i(0),u}},this.flush=()=>{e.Ce()}}_t.prototype={Ve:function(t){const e=this;return e.Se=new zt,t||(t=15),e.Se.Ve(e,t)},it:function(t){const e=this;return e.Se?e.Se.it(e,t):-2},Ce:function(){const t=this;if(!t.Se)return-2;const e=t.Se.Ce(t);return t.Se=null,e},Ee:function(){const t=this;return t.Se?t.Se.Ee(t):-2},Be:function(t,e){const n=this;return n.Se?n.Se.Be(n,t,e):-2},de:function(t){return this.se[t]},Qt:function(t,e){return this.se.subarray(t,t+e)}},self.initCodec=()=>{self.Deflate=ut,self.Inflate=It};\n'],{type:"text/javascript"}));t({workerScripts:{inflate:[e],deflate:[e]}})}})(z),t.BlobReader=Wt,t.BlobWriter=Vt,t.Data64URIReader=Tt,t.Data64URIWriter=Bt,t.ERR_ABORT=we,t.ERR_BAD_FORMAT=ve,t.ERR_CENTRAL_DIRECTORY_NOT_FOUND=ze,t.ERR_DUPLICATED_NAME=qe,t.ERR_ENCRYPTED=Ce,t.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Ae,t.ERR_EOCDR_NOT_FOUND=Se,t.ERR_EOCDR_ZIP64_NOT_FOUND=_e,t.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=De,t.ERR_HTTP_RANGE=Dt,t.ERR_INVALID_COMMENT=Xe,t.ERR_INVALID_ENCRYPTION_STRENGTH=Qe,t.ERR_INVALID_ENTRY_COMMENT=je,t.ERR_INVALID_ENTRY_NAME=Ge,t.ERR_INVALID_EXTRAFIELD_DATA=en,t.ERR_INVALID_EXTRAFIELD_TYPE=tn,t.ERR_INVALID_PASSWORD=T,t.ERR_INVALID_SIGNATURE=pt,t.ERR_INVALID_VERSION=Je,t.ERR_LOCAL_FILE_HEADER_NOT_FOUND=Re,t.ERR_UNSUPPORTED_COMPRESSION=xe,t.ERR_UNSUPPORTED_ENCRYPTION=Ee,t.ERR_UNSUPPORTED_FORMAT=nn,t.HttpRangeReader=class extends Qt{constructor(t,e={}){e.useRangeHeader=!0,super(t,e)}},t.HttpReader=Qt,t.Reader=Ft,t.TextReader=Nt,t.TextWriter=Ut,t.Uint8ArrayReader=te,t.Uint8ArrayWriter=ee,t.WritableStreamWriter=class extends It{constructor(t){super(),this.writableStream=t,this.writer=t.getWriter()}async writeUint8Array(t){return await this.writer.ready,this.writer.write(t)}async getData(){return await this.writer.ready,await this.writer.close(),this.writableStream}},t.Writer=It,t.ZipReader=Ue,t.ZipWriter=an,t.configure=z,t.fs=kn,t.getMimeType=()=>"application/octet-stream",t.initShimAsyncCodec=(t,e={},n)=>({Deflate:R(t.Deflate,e.deflate,n),Inflate:R(t.Inflate,e.inflate,n)}),t.terminateWorkers=()=>{St.forEach((t=>{zt(t),t.terminate()}))},n.defineProperty(t,"__esModule",{value:!0})}));