@zip.js/zip.js 2.21.0 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/dist/zip-core-external.js +30 -15
- package/dist/zip-core-external.min.js +1 -1
- package/dist/zip-core.js +30 -14
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core-external.js +30 -18
- package/dist/zip-fs-core-external.min.js +1 -1
- package/dist/zip-fs-core.js +30 -18
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-external.js +30 -18
- package/dist/zip-fs-external.min.js +1 -1
- package/dist/zip-fs-native.js +30 -18
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +30 -18
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +30 -14
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +30 -14
- package/dist/zip-native.min.js +1 -1
- package/dist/zip.js +30 -14
- package/dist/zip.min.js +1 -1
- package/index-native.cjs +30 -18
- package/index-native.min.js +1 -1
- package/index.cjs +30 -18
- package/index.d.cts +36 -14
- package/index.d.ts +36 -14
- package/index.min.js +1 -1
- package/lib/core/configuration.js +1 -3
- package/lib/core/options.js +11 -0
- package/lib/core/version.js +1 -1
- package/lib/core/zip-fs.js +2 -6
- package/lib/core/zip-reader.js +1 -1
- package/lib/core/zip-writer.js +19 -9
- package/lib/zip-core-base.js +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=4294967295,e=65535,r=255,n=67324752,o=134695760,a=o,i=84233040,s=33639248,c=101010256,u=101075792,l=117853008,f=46,w=22,d=20,p=56,h=39169,m=21589,y=6534,E=30837,b=30805,S=2048,g=8192,A=61440,R=16384,z=2048,x=1024,D="/",F=30,O=new Date(2107,11,31,23,59,58),I=new Date(1980,0,1),U=void 0,T=1/0,k="Local file header not found",C="Overlapping entry found",M="Zip64 extra field not found",v="undefined",N="function",_="object",j="string",P="boolean",B=new Uint8Array,L=Symbol.asyncDispose||Symbol(),W="password",Z="rawPassword",V="passThrough",H="signal",G="checkAmbiguity",q="useWebWorkers",Y="useCompressionStream",K="preventClose",X="level",$="useUnicodeFileNames",J="dataDescriptor",Q="offset",tt="usdz",et="strictness",rt="maxAppendedDataSize",nt="signCentralDirectory",ot="entry",at="filename",it="comment",st="strict",ct="balanced",ut="tolerant",lt="compressed",ft="Invalid option (must be a function)",wt="Invalid signal (must be an AbortSignal instance)",dt="Invalid password (password must be a string, rawPassword must be a Uint8Array)",pt="Invalid passThrough option (must be a boolean or 'compressed')",ht="The operation was aborted";function mt(t){if(t&&typeof t!=N)throw new Error(ft);return t}function yt(t){if(t&&(typeof t.addEventListener!=N||typeof t.aborted!=P))throw new Error(wt);return t||U}function Et(t){if(t&&t.aborted)throw t.reason===U?new DOMException(ht,"AbortError"):t.reason}function bt(t,e){if(t&&typeof t!=j||e&&!(e instanceof Uint8Array))throw new Error(dt)}function St(t){if(t!==U&&typeof t!=P&&t!==lt)throw new Error(pt);return t}function gt(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function At(t,e,r){t!==U&>(t,e,r)}function Rt(t){return typeof t==j&&t.trim()?Number(t):t}const zt=262144,xt="Invalid maxWorkers (must be an integer greater than 0)",Dt="Invalid baseURI (must be a string)",Ft="Invalid URI (must be a string or a function returning a string)";let Ot=2;try{typeof navigator!=v&&navigator.hardwareConcurrency&&(Ot=navigator.hardwareConcurrency)}catch{}const It={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:zt,maxWorkers:Ot,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=v&&CompressionStream,DecompressionStream:typeof DecompressionStream!=v&&DecompressionStream},Ut="maxWorkers",Tt="baseURI",kt=["wasmURI","workerURI"],Ct=["chunkSize",Ut,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],Mt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],vt=[Tt,...kt,"useCompressionStream","useWebWorkers","transferStreams",...Ct,...Mt],Nt={...It};function _t(){return Nt}function jt(t){return Pt(t.chunkSize)}function Pt(t){return t=Rt(t),Number.isInteger(t)&&t>=1?Math.max(t,64):zt}function Bt(t){Object.assign(Nt,Lt(Zt(t)))}function Lt(t){const e={};for(const r of vt){const n=t[r];n!==U&&(e[r]=Wt(r,n))}return e}function Wt(t,e){if(Ct.includes(t)){if(e=Rt(e),t==Ut&&(!Number.isInteger(e)||e<1))throw new Error(xt)}else if(Mt.includes(t))mt(e);else if(t==Tt){if(e&&typeof e!=j)throw new Error(Dt)}else if(kt.includes(t)&&e&&typeof e!=j&&typeof e!=N)throw new Error(Ft);return e}function Zt(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===U&&r===U)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===U&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===U&&(n.DecompressionStreamFallback=r),n}function Vt(t){const e=Lt(Zt(t));Object.assign(It,e),Object.assign(Nt,e)}function Ht(){for(const t of vt)delete Nt[t];Object.assign(Nt,It)}function Gt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function qt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Yt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Kt(t){return Boolean(t)&&"object"==typeof t}const Xt=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;Xt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Xt[e-1][t];Xt[e][t]=r>>>8^Xt[0][255&r]}const[$t,Jt,Qt,te,ee,re,ne,oe]=Xt;class ae{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let n=0;if(r>=8&&t.buffer){const o=new DataView(t.buffer,t.byteOffset,r),a=r-8;for(;n<=a;n+=8){const t=e^o.getInt32(n,!0),r=o.getInt32(n+4,!0);e=oe[255&t]^ne[t>>>8&255]^re[t>>>16&255]^ee[t>>>24&255]^te[255&r]^Qt[r>>>8&255]^Jt[r>>>16&255]^$t[r>>>24&255]}}for(;n<r;n++)e=e>>>8^$t[255&(e^t[n])];this.o=e}get(){return~this.o}}class ie extends TransformStream{constructor(){let t;const e=new ae;super({transform(t,r){e.append(t),r.enqueue(t)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,e.get()),t.value=r}}),t=this}}function se(t){if(typeof TextEncoder==v){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const ce=64,ue=20,le=new Uint8Array([128]),fe=new Uint8Array(1),we=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),de=new Uint8Array(256),pe=new Int32Array(256),he=new Int32Array(256),me=new Int32Array(256),ye=new Int32Array(256);let Ee=!1;function be(t,e){!function(){if(!Ee){let t=1,e=1;do{t=255&(t^t<<1^(128&t?27:0)),e=255&(e^e<<1),e=255&(e^e<<2),e=255&(e^e<<4),128&e&&(e^=9),de[t]=255&(e^(e<<1|e>>7)^(e<<2|e>>6)^(e<<3|e>>5)^(e<<4|e>>4)^99)}while(1!=t);de[0]=99;for(let t=0;t<256;t++){const e=de[t],r=Re(e),n=r<<24|e<<16|e<<8|r^e;pe[t]=n,he[t]=n>>>8|n<<24,me[t]=n>>>16|n<<16,ye[t]=n>>>24|n<<8}Ee=!0}}();const r=new Int32Array(60),n=function(t,e){const r=t.length>>2,n=r+6,o=4*(n+1);let a=1;for(let n=0;n<r;n++)e[n]=t[4*n]<<24|t[4*n+1]<<16|t[4*n+2]<<8|t[4*n+3];for(let t=r;t<o;t++){let n=e[t-1];t%r==0?(n=ge(n<<8|n>>>24)^a<<24,a=Re(a)):r>6&&t%r==4&&(n=ge(n)),e[t]=e[t-r]^n}return n}(t,r),o=new Int32Array(4),a=Se(e);let i=0,s=0,c=0,u=0;return{process(t,e){e&&a.update(t,0,t.length),function(t){const e=new DataView(t.buffer,t.byteOffset,t.byteLength),r=t.length;let n=0;for(;n+16<=r;n+=16)l(),e.setInt32(n,e.getInt32(n)^o[0]),e.setInt32(n+4,e.getInt32(n+4)^o[1]),e.setInt32(n+8,e.getInt32(n+8)^o[2]),e.setInt32(n+12,e.getInt32(n+12)^o[3]);if(n<r){l();for(let e=0;n<r;n++,e++)t[n]^=o[e>>2]>>>24-8*(3&e)}}(t),e||a.update(t,0,t.length)},digest:()=>a.digest()};function l(){i=i+1|0,i||(s=s+1|0,s||(c=c+1|0,c||(u=u+1|0)));let t=Ae(i)^r[0],e=Ae(s)^r[1],a=Ae(c)^r[2],l=Ae(u)^r[3],f=pe[t>>>24]^he[e>>>16&255]^me[a>>>8&255]^ye[255&l]^r[4],w=pe[e>>>24]^he[a>>>16&255]^me[l>>>8&255]^ye[255&t]^r[5],d=pe[a>>>24]^he[l>>>16&255]^me[t>>>8&255]^ye[255&e]^r[6],p=pe[l>>>24]^he[t>>>16&255]^me[e>>>8&255]^ye[255&a]^r[7];t=pe[f>>>24]^he[w>>>16&255]^me[d>>>8&255]^ye[255&p]^r[8],e=pe[w>>>24]^he[d>>>16&255]^me[p>>>8&255]^ye[255&f]^r[9],a=pe[d>>>24]^he[p>>>16&255]^me[f>>>8&255]^ye[255&w]^r[10],l=pe[p>>>24]^he[f>>>16&255]^me[w>>>8&255]^ye[255&d]^r[11],f=pe[t>>>24]^he[e>>>16&255]^me[a>>>8&255]^ye[255&l]^r[12],w=pe[e>>>24]^he[a>>>16&255]^me[l>>>8&255]^ye[255&t]^r[13],d=pe[a>>>24]^he[l>>>16&255]^me[t>>>8&255]^ye[255&e]^r[14],p=pe[l>>>24]^he[t>>>16&255]^me[e>>>8&255]^ye[255&a]^r[15],t=pe[f>>>24]^he[w>>>16&255]^me[d>>>8&255]^ye[255&p]^r[16],e=pe[w>>>24]^he[d>>>16&255]^me[p>>>8&255]^ye[255&f]^r[17],a=pe[d>>>24]^he[p>>>16&255]^me[f>>>8&255]^ye[255&w]^r[18],l=pe[p>>>24]^he[f>>>16&255]^me[w>>>8&255]^ye[255&d]^r[19],f=pe[t>>>24]^he[e>>>16&255]^me[a>>>8&255]^ye[255&l]^r[20],w=pe[e>>>24]^he[a>>>16&255]^me[l>>>8&255]^ye[255&t]^r[21],d=pe[a>>>24]^he[l>>>16&255]^me[t>>>8&255]^ye[255&e]^r[22],p=pe[l>>>24]^he[t>>>16&255]^me[e>>>8&255]^ye[255&a]^r[23],t=pe[f>>>24]^he[w>>>16&255]^me[d>>>8&255]^ye[255&p]^r[24],e=pe[w>>>24]^he[d>>>16&255]^me[p>>>8&255]^ye[255&f]^r[25],a=pe[d>>>24]^he[p>>>16&255]^me[f>>>8&255]^ye[255&w]^r[26],l=pe[p>>>24]^he[f>>>16&255]^me[w>>>8&255]^ye[255&d]^r[27],f=pe[t>>>24]^he[e>>>16&255]^me[a>>>8&255]^ye[255&l]^r[28],w=pe[e>>>24]^he[a>>>16&255]^me[l>>>8&255]^ye[255&t]^r[29],d=pe[a>>>24]^he[l>>>16&255]^me[t>>>8&255]^ye[255&e]^r[30],p=pe[l>>>24]^he[t>>>16&255]^me[e>>>8&255]^ye[255&a]^r[31],t=pe[f>>>24]^he[w>>>16&255]^me[d>>>8&255]^ye[255&p]^r[32],e=pe[w>>>24]^he[d>>>16&255]^me[p>>>8&255]^ye[255&f]^r[33],a=pe[d>>>24]^he[p>>>16&255]^me[f>>>8&255]^ye[255&w]^r[34],l=pe[p>>>24]^he[f>>>16&255]^me[w>>>8&255]^ye[255&d]^r[35],f=pe[t>>>24]^he[e>>>16&255]^me[a>>>8&255]^ye[255&l]^r[36],w=pe[e>>>24]^he[a>>>16&255]^me[l>>>8&255]^ye[255&t]^r[37],d=pe[a>>>24]^he[l>>>16&255]^me[t>>>8&255]^ye[255&e]^r[38],p=pe[l>>>24]^he[t>>>16&255]^me[e>>>8&255]^ye[255&a]^r[39];let h=40;n>10&&(t=pe[f>>>24]^he[w>>>16&255]^me[d>>>8&255]^ye[255&p]^r[40],e=pe[w>>>24]^he[d>>>16&255]^me[p>>>8&255]^ye[255&f]^r[41],a=pe[d>>>24]^he[p>>>16&255]^me[f>>>8&255]^ye[255&w]^r[42],l=pe[p>>>24]^he[f>>>16&255]^me[w>>>8&255]^ye[255&d]^r[43],f=pe[t>>>24]^he[e>>>16&255]^me[a>>>8&255]^ye[255&l]^r[44],w=pe[e>>>24]^he[a>>>16&255]^me[l>>>8&255]^ye[255&t]^r[45],d=pe[a>>>24]^he[l>>>16&255]^me[t>>>8&255]^ye[255&e]^r[46],p=pe[l>>>24]^he[t>>>16&255]^me[e>>>8&255]^ye[255&a]^r[47],h=48),n>12&&(t=pe[f>>>24]^he[w>>>16&255]^me[d>>>8&255]^ye[255&p]^r[48],e=pe[w>>>24]^he[d>>>16&255]^me[p>>>8&255]^ye[255&f]^r[49],a=pe[d>>>24]^he[p>>>16&255]^me[f>>>8&255]^ye[255&w]^r[50],l=pe[p>>>24]^he[f>>>16&255]^me[w>>>8&255]^ye[255&d]^r[51],f=pe[t>>>24]^he[e>>>16&255]^me[a>>>8&255]^ye[255&l]^r[52],w=pe[e>>>24]^he[a>>>16&255]^me[l>>>8&255]^ye[255&t]^r[53],d=pe[a>>>24]^he[l>>>16&255]^me[t>>>8&255]^ye[255&e]^r[54],p=pe[l>>>24]^he[t>>>16&255]^me[e>>>8&255]^ye[255&a]^r[55],h=56),o[0]=(de[f>>>24]<<24|de[w>>>16&255]<<16|de[d>>>8&255]<<8|de[255&p])^r[h],o[1]=(de[w>>>24]<<24|de[d>>>16&255]<<16|de[p>>>8&255]<<8|de[255&f])^r[h+1],o[2]=(de[d>>>24]<<24|de[p>>>16&255]<<16|de[f>>>8&255]<<8|de[255&w])^r[h+2],o[3]=(de[p>>>24]<<24|de[f>>>16&255]<<16|de[w>>>8&255]<<8|de[255&d])^r[h+3]}}function Se(t){const e=function(){const t=new Int32Array(we),e=new Int32Array(16),r=new Uint8Array(ce),n=new DataView(r.buffer),o=new Uint8Array(8);let a=0,i=0;return{update:s,digest:function(){const e=8*i,r=Math.floor(e/4294967296),n=e>>>0;for(s(le,0,1);56!=a;)s(fe,0,1);o[0]=r>>>24,o[1]=r>>>16,o[2]=r>>>8,o[3]=r,o[4]=n>>>24,o[5]=n>>>16,o[6]=n>>>8,o[7]=n,s(o,0,8);const c=new Uint8Array(ue),u=new DataView(c.buffer);for(let e=0;e<t.length;e++)u.setInt32(4*e,t[e]);return t.set(we),a=0,i=0,c}};function s(t,e,o){const s=e+o;if(i+=o,a){for(;e<s&&a<ce;)r[a++]=t[e++];a==ce&&(c(n,0),a=0)}if(e+ce<=s){const r=new DataView(t.buffer,t.byteOffset,t.byteLength);for(;e+ce<=s;e+=ce)c(r,e)}for(;e<s;)r[a++]=t[e++]}function c(r,n){for(let t=0;t<16;t++)e[t]=r.getInt32(n+4*t);let o,a=t[0],i=t[1],s=t[2],c=t[3],u=t[4];for(let t=0;t<15;t+=5)u=(a<<5|a>>>27)+((s^c)&i^c)+u+1518500249+e[t]|0,i=i<<30|i>>>2,c=(u<<5|u>>>27)+((i^s)&a^s)+c+1518500249+e[t+1]|0,a=a<<30|a>>>2,s=(c<<5|c>>>27)+((a^i)&u^i)+s+1518500249+e[t+2]|0,u=u<<30|u>>>2,i=(s<<5|s>>>27)+((u^a)&c^a)+i+1518500249+e[t+3]|0,c=c<<30|c>>>2,a=(i<<5|i>>>27)+((c^u)&s^u)+a+1518500249+e[t+4]|0,s=s<<30|s>>>2;u=(a<<5|a>>>27)+((s^c)&i^c)+u+1518500249+e[15]|0,i=i<<30|i>>>2,o=e[13]^e[8]^e[2]^e[0],o=o<<1|o>>>31,e[0]=o,c=(u<<5|u>>>27)+((i^s)&a^s)+c+1518500249+o|0,a=a<<30|a>>>2,o=e[14]^e[9]^e[3]^e[1],o=o<<1|o>>>31,e[1]=o,s=(c<<5|c>>>27)+((a^i)&u^i)+s+1518500249+o|0,u=u<<30|u>>>2,o=e[15]^e[10]^e[4]^e[2],o=o<<1|o>>>31,e[2]=o,i=(s<<5|s>>>27)+((u^a)&c^a)+i+1518500249+o|0,c=c<<30|c>>>2,o=e[0]^e[11]^e[5]^e[3],o=o<<1|o>>>31,e[3]=o,a=(i<<5|i>>>27)+((c^u)&s^u)+a+1518500249+o|0,s=s<<30|s>>>2;for(let t=20;t<40;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(a<<5|a>>>27)+(i^s^c)+u+1859775393+o|0,i=i<<30|i>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,c=(u<<5|u>>>27)+(a^i^s)+c+1859775393+o|0,a=a<<30|a>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,s=(c<<5|c>>>27)+(u^a^i)+s+1859775393+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,i=(s<<5|s>>>27)+(c^u^a)+i+1859775393+o|0,c=c<<30|c>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,a=(i<<5|i>>>27)+(s^c^u)+a+1859775393+o|0,s=s<<30|s>>>2;for(let t=40;t<60;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(a<<5|a>>>27)+(i&s|(i|s)&c)+u+2400959708+o|0,i=i<<30|i>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,c=(u<<5|u>>>27)+(a&i|(a|i)&s)+c+2400959708+o|0,a=a<<30|a>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,s=(c<<5|c>>>27)+(u&a|(u|a)&i)+s+2400959708+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,i=(s<<5|s>>>27)+(c&u|(c|u)&a)+i+2400959708+o|0,c=c<<30|c>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,a=(i<<5|i>>>27)+(s&c|(s|c)&u)+a+2400959708+o|0,s=s<<30|s>>>2;for(let t=60;t<80;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(a<<5|a>>>27)+(i^s^c)+u+3395469782+o|0,i=i<<30|i>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,c=(u<<5|u>>>27)+(a^i^s)+c+3395469782+o|0,a=a<<30|a>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,s=(c<<5|c>>>27)+(u^a^i)+s+3395469782+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,i=(s<<5|s>>>27)+(c^u^a)+i+3395469782+o|0,c=c<<30|c>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,a=(i<<5|i>>>27)+(s^c^u)+a+3395469782+o|0,s=s<<30|s>>>2;t[0]=t[0]+a|0,t[1]=t[1]+i|0,t[2]=t[2]+s|0,t[3]=t[3]+c|0,t[4]=t[4]+u|0}}(),r=new Uint8Array(ce),n=new Uint8Array(ce);t.length>ce&&(e.update(t,0,t.length),t=e.digest());for(let e=0;e<ce;e++){const o=e<t.length?t[e]:0;r[e]=54^o,n[e]=92^o}return e.update(r,0,ce),{update(t,r,n){e.update(t,r,n)},digest(){const t=e.digest();e.update(n,0,ce),e.update(t,0,ue);const o=e.digest();return e.update(r,0,ce),o}}}function ge(t){return de[t>>>24]<<24|de[t>>>16&255]<<16|de[t>>>8&255]<<8|de[255&t]}function Ae(t){return t<<24|(65280&t)<<8|t>>>8&65280|t>>>24}function Re(t){return 255&(t<<1^27*(t>>7))}const ze=typeof crypto!=v&&typeof crypto.getRandomValues==N,xe="Invalid password",De="Invalid authentication code",Fe="zipjs-abort-check-password",Oe="Crypto API not supported";function Ie(t){if(ze)return crypto.getRandomValues(t);throw new Error(Oe)}const Ue={name:"PBKDF2"},Te=Object.assign({hash:{name:"HMAC"}},Ue),ke=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Ue),Ce=["deriveBits"],Me=[8,12,16],ve=[16,24,32],Ne=10,_e=typeof crypto!=v,je=_e&&crypto.subtle;let Pe=_e&&typeof je!=v&&typeof je.importKey==N&&typeof je.deriveBits==N,Be=be;class Le extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:o=!0}){const a={};super({start(){Ze(a,t,e,r)},async transform(t,e){const{password:r,strength:o,l:i,ready:s}=a;if(r?(await async function(t,e,r,n){const o=await qe(t,e,r,Ke(n,0,Me[e])),a=Ke(n,Me[e]);if(o[0]!=a[0]||o[1]!=a[1])throw Ge(t),new Error(xe)}(a,o,r,Ke(t,0,Me[o]+2)),t=Ke(t,Me[o]+2),n?(Ge(a),e.error(new Error(Fe))):i()):await s,a.h)return;const c=new Uint8Array(t.length-Ne-(t.length-Ne)%16);e.enqueue(He(a,t,c,0,Ne,!0))},async flush(t){const{m:e,S:r,ready:n}=a;if(e){if(await n,a.h)return;const i=Ke(r,r.length-Ne),s=new Uint8Array(Ke(r,0,r.length-Ne));e.process(s,!0);const c=e.digest();let u=r.length<Ne?1:0;for(let t=0;t<Ne;t++)u|=c[t]^i[t];if(u&&o)return void t.error(new Error(De));t.enqueue(s)}}}),Ve(this,a)}}class We extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){const n={};super({start(){Ze(n,t,e,r)},async transform(t,e){const{password:r,strength:o,l:a,ready:i}=n;let s=B;if(r?(s=await async function(t,e,r){const n=Ie(new Uint8Array(Me[e]));return Gt(n,await qe(t,e,r,n))}(n,o,r),a()):await i,n.h)return;const c=new Uint8Array(s.length+t.length-t.length%16);c.set(s,0),e.enqueue(He(n,t,c,s.length,0,!1))},async flush(t){const{m:e,S:r,ready:o}=n;if(e){if(await o,n.h)return;const a=new Uint8Array(r);e.process(a,!1);const i=Ke(e.digest(),0,Ne);t.enqueue(Gt(a,i))}}}),Ve(this,n)}}function Ze(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.l=e),password:Ye(e,r),strength:n-1,S:B,h:!1})}function Ve(t,e){const r=t.readable.getReader(),n=new ReadableStream({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw Ge(e),r.cancel(t).catch(()=>{}),t}},cancel:t=>(Ge(e),r.cancel(t))});Object.defineProperty(t,"readable",{get:()=>n})}function He(t,e,r,n,o,a){const{m:i,S:s}=t;s.length&&(e=Gt(s,e));const c=e.length-o,u=c-c%16;if(r=function(t,e){if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t}(r,n+u),u){const t=Ke(r,n,n+u);t.set(Ke(e,0,u)),i.process(t,a)}return t.S=Ke(e,u),r}function Ge(t){const{m:e}=t;t.h=!0,e&&e.dispose&&e.dispose()}async function qe(t,e,r,n){t.password=null;const o=ve[e],a=await async function(t,e,r){if(Pe)try{const n=await je.importKey("raw",t,Te,!1,Ce);return new Uint8Array(await je.deriveBits(Object.assign({salt:e},ke),n,8*r))}catch{Pe=!1}return function(t,e,r,n){const o=Se(t),a=new Uint8Array(n),i=new Uint8Array(e.length+4),s=new DataView(i.buffer);i.set(e);for(let t=1,r=0;r<n;t++,r+=ue){s.setUint32(e.length,t),o.update(i,0,i.length);let c=o.digest();const u=c.slice();for(let t=1;t<1e3;t++){o.update(c,0,ue),c=o.digest();for(let t=0;t<ue;t++)u[t]^=c[t]}a.set(u.subarray(0,Math.min(ue,n-r)),r)}return a}(t,e,0,r)}(r,n,2*o+2);return t.m=Be(Ke(a,0,o),Ke(a,o,2*o)),t.h&&Ge(t),Ke(a,2*o)}function Ye(t,e){return e===U?se(t):e}function Ke(t,e,r){return t.subarray(e,r)}class Xe extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Je(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Qe(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(xe);t=t.subarray(12)}n?e.error(new Error(Fe)):e.enqueue(Qe(r,t))}})}}class $e extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Je(this,t,e,r)},transform(t,e){const r=this;let n,o;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Ie(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(tr(r,e),0),o=12}else n=new Uint8Array(t.length),o=0;n.set(tr(r,t),o),e.enqueue(n)}})}}function Je(t,e,r,n){Object.assign(t,{password:e,rawPassword:r,passwordVerification:n}),function(t,e,r){const n=[305419896,591751049,878082192];if(Object.assign(t,{A:n,R:new ae(n[0]),D:new ae(n[2])}),r)for(let e=0;e<r.length;e++)er(t,r[e]);else for(let r=0;r<e.length;r++)er(t,e.charCodeAt(r))}(t,e,r)}function Qe(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=rr(t)^e[n],er(t,r[n]);return r}function tr(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=rr(t)^e[n],er(t,e[n]);return r}function er(t,e){let[,r]=t.A;t.R.append([e]);const n=~t.R.get();r=or(Math.imul(or(r+nr(n)),134775813)+1),t.D.append([r>>>24]);const o=~t.D.get();t.A=[n,r,o]}function rr(t){const e=2|t.A[2];return nr(Math.imul(e,1^e)>>>8)}function nr(t){return 255&t}function or(t){return 4294967295&t}function ar(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){try{const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)}catch(t){throw e.cancel(t).catch(()=>{}),t}},cancel:t=>e.cancel(t)})}function ir(t,e){t=ar(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=N||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const n=[];return t.pipeTo(new WritableStream({write(t){n.push(t)}})).then(()=>new Blob(n,r))}function sr(t){if(t instanceof WritableStream)return t;const e=t.getWriter();return new WritableStream({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})}const cr="Invalid codec definition",ur="Reserved compression method",lr="Invalid codec module",fr="Compression method not supported",wr=[0,8,9,99],dr=new Map,pr=new Map;function hr(t={}){const{compressionMethod:r,format:n,codecURI:o,CompressionStream:a,DecompressionStream:i,versionNeeded:s}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=j||!n.length)throw new Error(cr);if(wr.includes(r))throw new Error(ur);const c=typeof a==N||typeof i==N;if(!(c||typeof o==j&&o.length))throw new Error(cr);dr.set(r,{compressionMethod:r,format:n,codecURI:o,versionNeeded:s}),c&&Sr(n,{CompressionStream:a,DecompressionStream:i})}function mr(t){const e=dr.get(t);if(e){let r;dr.delete(t),dr.forEach(t=>r=r||t.format==e.format),r||pr.delete(e.format)}}function yr(t){return dr.get(t)}function Er(){return Array.from(dr.values(),t=>Object.assign({},t,pr.get(t.format)))}function br(t){return pr.get(t)}function Sr(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=N&&typeof n!=N)throw new Error(lr);pr.set(t,{CompressionStream:r,DecompressionStream:n})}const gr="Invalid uncompressed size",Ar="Invalid compressed data",Rr="Codec out of memory",zr="Invalid CRC32",xr="deflate-raw",Dr="deflate64-raw",Fr="gzip",Or=[31,139,8];class Ir extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:o,encrypted:a,useCompressionStream:i,zipCrypto:s,computeCrc32:c,level:u,deflate64:l,format:f,compressionMethod:w,inputSize:d}=t,p=this;let h,m,y,E=super.readable;const b=f&&br(f),S=_r(i,n,r),g=c&&o&&!l&&!b&&(!a||s)&&Boolean(S);if(a&&!s||!c||g||(h=new ie,E=Pr(E,h)),o)if(b)E=Br(E,Nr(b.CompressionStream,f,{level:u,chunkSize:e,compressionMethod:w,uncompressedSize:d}));else if(g)y=new Ur,E=Br(E,new S(Fr,{level:u,chunkSize:e})),E=Pr(E,y);else try{E=jr(E,i,{level:u,chunkSize:e},n,r)}catch(t){if(!i&&r)throw Hr(t);let e;try{e=new n(Fr)}catch{throw Hr(t)}E=Br(E,e),E=Pr(E,new Ur)}a&&(s?E=Pr(E,new $e(t)):(m=new We(t),E=Pr(E,m))),vr(p,E,()=>{a&&!s||!c||(p.crc32=g?y.crc32:new DataView(h.value.buffer).getUint32(0))})}}class Ur extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,n){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const o=r.length+t.length;if(o<=8)return void(r=Gt(r,t));const a=o-8,i=Math.min(a,r.length);n.enqueue(Gt(r.subarray(0,i),t.subarray(0,a-i))),r=Gt(r.subarray(i),t.subarray(a-i))},flush(){const e=Yt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class Tr extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:o,encrypted:a,checkCrc32:i,crc32:s,compressed:c,useCompressionStream:u,deflate64:l,format:f,compressionMethod:w,rawBitFlag:d,outputSize:p}=t;let h,m,y,E=super.readable;if(a&&(o?E=Pr(E,new Xe(t)):(m=new Le(t),E=Pr(E,m))),c){const t=new Set,o=f&&br(f);let a;if(o)E=Br(E,Nr(o.DecompressionStream,f,{chunkSize:e,compressionMethod:w,rawBitFlag:d,uncompressedSize:p}),t);else{const o=_r(u,n,r);if(i&&!l&&s!==U&&p!==U&&o)try{a=new o(Fr,{chunkSize:e})}catch{a=U}if(!a)try{E=jr(E,u,{chunkSize:e,deflate64:l},n,r,t)}catch(t){if(l||p===U||!u&&r)throw Hr(t);try{a=new n(Fr)}catch{throw Hr(t)}}}a?(y=!0,E=function(t,e,r,n,o){const a=e.writable.getWriter(),i=e.readable.getReader(),s=n===U?new ae:U;let c,u,l=0,f=!1,w=!1;const d=new ReadableStream({start(t){u=t},pull(){m()},cancel:t=>(w=!0,m(),i.cancel(t))});return async function(){const e=t.getReader();try{const t=new Uint8Array(10);for(t.set(Or),await a.write(t);;){await h(),await a.ready;const{value:t,done:r}=await Zr(e,o);if(r)break;await a.write(t)}s&&await a.write(new Uint8Array(0));const i=new Uint8Array(8),c=Yt(i);c.setUint32(0,s?s.get():n,!0),c.setUint32(4,r,!0),f=!0,await a.write(i),await a.close()}catch(t){await Lr(a,t),await Wr(e,t)}}(),async function(){try{for(;;){const{value:t,done:e}=await p();if(e)break;if(l+=t.length,l>r)throw new Error(gr);s&&s.append(t),u.enqueue(t)}w||(w=!0,u.close())}catch(t){!function(t){w||(w=!0,u.error(t),m())}(t),await Wr(i,t)}}(),d;function p(){return i.read().catch(t=>{if(f){if(!s)throw qr(t,zr);if(l!=r)throw qr(t,gr);return{done:!0}}throw Vr(t,o)})}function h(){if(!w&&u.desiredSize<=0)return new Promise(t=>c=t)}function m(){if(c){const t=c;c=U,t()}}}(E,a,p,s,t)):E=function(t,e){const r=t.getReader();return new ReadableStream({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw await Wr(r,t),Vr(t,e)}},cancel:t=>r.cancel(t)})}(E,t)}i&&!y&&(h=new ie,E=Pr(E,h)),vr(this,E,()=>{if(h){const t=new DataView(h.value.buffer).getUint32(0,!1);if(s!=t)throw new Error(zr)}})}}const kr=new Map;function Cr(t,e){if(!t)return!1;let r=kr.get(t);r||(r=new Map,kr.set(t,r));let n=r.get(e);if(n===U){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function Mr(t){return Cr(t,xr)}function vr(t,e,r){e=Pr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function Nr(t,e,r){if(!t)throw new Error(fr);return new t(e,r)}function _r(t,e,r){return t&&e?e:r&&r.requiresModule?r:void 0}function jr(t,e,r,n,o,a){const i=e&&n?n:o||n,s=r.deflate64?Dr:xr;let c;try{c=new i(s,r)}catch(t){if(!e||!o||i==o)throw t;c=new o(s,r)}return Br(t,c,a)}function Pr(t,e){return ar(t).pipeThrough(e)}function Br(t,e,r){const n=e.writable.getWriter(),o=t.getReader();return async function(){try{for(;;){await n.ready;const t=await Zr(o,r);if(t.done){await n.close();break}await n.write(t.value)}}catch(t){await Lr(n,t),await Wr(o,t)}}(),e.readable}async function Lr(t,e){try{await t.abort(e)}catch{}}async function Wr(t,e){try{await t.cancel(e)}catch{}}function Zr(t,e){const r=t.read();return e?r.catch(t=>{throw e.add(t),t}):r}function Vr(t,e){return e.has(t)?t:qr(t,Gr(t)?Rr:Ar)}function Hr(t){return Gr(t)?qr(t,Rr):t}function Gr(t){return Kt(t)&&"Z_MEM_ERROR"==t.code}function qr(t,e){const r=new Error(e);return r.cause=t,r}const Yr="data",Kr="deflate",Xr="inflate";class $r extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let o;n.startsWith(Kr)?o=Ir:n.startsWith(Xr)&&(o=Tr),r.outputSize=0;let a=0;const i=new o(t,e),s=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(a+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:a})}}),u=new TransformStream({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==U&&r.outputSize>t.outputSize))throw new Error(gr)},flush(){const{crc32:t}=i;Object.assign(r,{crc32:t,inputSize:a})}});Object.defineProperty(r,"readable",{get:()=>s.pipeThrough(c).pipeThrough(i).pipeThrough(u)})}}class Jr extends TransformStream{constructor(t){const e=[];let r=0,n=0;function o(){const n=new Uint8Array(t);let o=0;for(;o<t;){const r=e[0],a=t-o;r.length<=a?(n.set(r,o),o+=r.length,e.shift()):(n.set(r.subarray(0,a),o),e[0]=r.subarray(a),o+=a)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=262144),super({transform(a,i){for(e.push(a),r+=a.length;r>t;)n+=t,i.enqueue(o())},flush(t){r&&(n+=r,t.enqueue(function(t,e){const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(e,r)))}}),Object.defineProperty(this,"outputSize",{get:()=>n})}}const Qr="Worker startup timeout";let tn,en,rn,nn=()=>{};async function on(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;return!(!r||r.requiresModule)||!(!Mr(e)&&(n=e,!Cr(n,Fr)))||!!r&&await an(t);var n}async function an(t){if(nn)try{return await nn(t),!0}catch{}return!1}function sn(t){t.createWorker?en=!0:tn=!1}class cn{constructor(t,{readable:e,writable:r},n,o){const{options:a,config:i,F:s,useWebWorkers:c,workerURI:u}=n;let{createWorker:l}=n;const{signal:f}=s;return en&&(l=U),Object.assign(t,{O:!0,I:(t.I||0)+1,readable:e.pipeThrough(new Jr(jt(i))).pipeThrough(new un(s),{signal:f}),writable:r,options:Object.assign({},a),U:n,workerURI:u,createWorker:l,terminate:()=>new Promise(e=>{const{T:r,O:n}=t;n?(t.C=t.C||[],t.C.push(e)):(r&&(r.terminate(),t.T=null),e()),t.M=null}),v(){if(t.O){const{C:e,T:r}=t;e&&(t.C=null,r&&(t.N=!0,r.terminate())),t.O=!1;const n=o(t);e&&e.forEach(t=>t(n))}}}),tn===U&&(tn=typeof Worker!=v),(c&&rn&&(tn&&u||l)?rn:fn)(t,i)}}class un extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let o=0;super({async start(){t&&await ln(t,r)},async transform(t,n){o+=t.length,e&&await ln(e,o,r),n.enqueue(t)},async flush(){n&&await ln(n,o)}})}}async function ln(t,...e){try{await t(...e)}catch{}}function fn(t,e){return{run:()=>wn(t,e)}}async function wn({options:t,readable:e,writable:r,v:n,U:o},a){let i,s,c;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(Kr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;t.useCompressionStream?r&&r.requiresModule&&!Mr(n)&&await u():await u()||r&&!r.requiresModule||(t.useCompressionStream=!0)}t.encrypted&&!t.zipCrypto&&await u(),i=new $r(t,a),s=new Jr(jt(a));const{signal:n}=o.F;await e.pipeThrough(i).pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0,signal:n});const{crc32:c,inputSize:l,outputSize:f}=i;return{crc32:c,inputSize:l,outputSize:f}}catch(t){if(i){const e=s?s.outputSize:0;if(o.outputSize=e,Kt(t))try{t.outputSize=e}catch{}}throw t}finally{n()}function u(){return c||(c=an(a)),c}}const dn={type:"module"},pn="error",hn="abort";let mn,yn,En;var bn;function Sn(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function gn(t){const{T:e}=t;if(e)try{e.terminate()}catch{}t.M=null}function An(t,e,r,n,o=!0){const{createWorker:a}=r;let i,s,c;if(a)i=a();else if(yn===U||mn!==t){const a=typeof t==N;s=a?t(o):t;const u=s.startsWith("data:"),l=s.startsWith("blob:");if(u||l){n===U&&(n=!1),n&&(c=dn);try{i=new Worker(s,c)}catch(o){if(l)try{URL.revokeObjectURL(s)}catch{}if(a&&l)return An(t,e,r,n,!1);if(n)throw o;return An(t,e,r,!0,!1)}}else{n===U&&(n=!0),n&&(c=dn);try{s=new URL(s,e)}catch{}try{i=new Worker(s,c)}catch(a){if(n)return An(t,e,r,!1,o);throw a}}mn=t,yn=s,En=c}else i=new Worker(yn,En);return i.addEventListener("message",t=>{r._=!0,Rn(r),async function({data:t},e){const{type:r,value:n,messageId:o,result:a,error:i,errorValue:s}=t,{reader:c,writer:u,j:l,P:f,v:w,I:d}=e,p=()=>e.I!=d;try{if(i)h(function(t,e){const{message:r,stack:n,code:o,name:a,outputSize:i,cause:s,codecImportFailed:c}=t;let u;if(u=e?e.value:Object.assign(new Error(r),{stack:n,code:o,name:a}),Kt(u))try{i!==U&&(u.outputSize=i),c&&(u.codecImportFailed=!0),s&&(Kt(u.cause)||(u.cause=Object.assign(new Error(s.message),{name:s.name})),s.code!==U&&u.cause.code!==s.code&&(u.cause.code=s.code)),e&&(u.name!==a&&(u.name=a),u.code!==o&&(u.code=o))}catch{}return u}(i,s));else{if("pull"==r){const{value:t,done:r}=await c.read();p()||xn({type:Yr,value:t,done:r,messageId:o},e)}if(r==Yr){const t=new Uint8Array(n);await u.ready,await u.write(t),p()||xn({type:"ack",messageId:o},e)}"close"==r&&function(t){p()||(l(t),m(),w())}(a)}}catch(i){p()||(gn(e),h(i))}function h(t){p()||(f(t),m(),Kt(t)&&t.codecImportFailed||w())}function m(){u&&u.releaseLock()}}(t,r)}),i.addEventListener(pn,t=>zn(t,r)),i.addEventListener("messageerror",t=>zn(t,r)),i}function Rn(t){const{B:e}=t;e&&(clearTimeout(e),t.B=null)}function zn(t,e){t.preventDefault&&t.preventDefault(),Rn(e);const{_:r,P:n,writer:o,v:a}=e;gn(e),r||(e.T=null);let i=t.error||new Error(t.message||pn);r||(i=Object.assign(new Error(i.message||pn),{L:!0}),e.W=i),n&&(n(i),o&&o.releaseLock(),r&&a())}function xn(t,{T:e,writer:r}){try{const{value:r}=t;if(r){t.value=qt(r);try{e.postMessage(t,[t.value.buffer])}catch{e.postMessage(t)}}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}bn=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:o}=e;let{wasmURI:a}=e;if(!t.M){let i;typeof a==N&&(a=a());try{i=An(t.workerURI,r,t)}catch{return sn(t),fn(t,e)}Object.assign(t,{T:i,_:!1,N:!1,W:null,M:{run:async()=>{try{return await async function(t,e){if(!t.T){const{W:e}=t;t.W=null;const r=e||new Error(Qr);throw r.L=!0,r}let r,n;const o=new Promise((e,o)=>{r=e,n=e=>{const{outputSize:r,U:n}=t;if(n.outputSize=r,Kt(e))try{e.outputSize=r}catch{}o(e)}});Object.assign(t,{reader:null,writer:null,outputSize:0,Z:!1,V:null,j:r,P:n,result:o});const{readable:a,options:i}=t,{writable:s,closed:c,H:u}=function(t,e){const r=new AbortController;let n;const{writable:o,readable:a}=new TransformStream({transform(t,r){e.outputSize+=t.length,r.enqueue(t)}}),i=a.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:r.signal});i.catch(t=>{n||Object.assign(e,{Z:!0,V:t})});const{signal:s}=e.U.F;if(s){const t=()=>r.abort(s.reason),e=()=>s.removeEventListener(hn,t);s.addEventListener(hn,t),i.then(e,e)}return{writable:o,closed:i,H:()=>{n=!0,r.abort()}}}(t.writable,t);try{xn({type:"start",options:i,config:e},t)}catch(e){u();try{await c}catch{}throw t.v(),e}Object.assign(t,{reader:a.getReader(),writer:s.getWriter()});const{workerStartupTimeout:l}=e;!t._&&Number.isFinite(l)&&l>=0&&(t.B=setTimeout(()=>function(t){if(t.B=null,t._)return;const{P:e,writer:r}=t;if(gn(t),t.T=null,e){const t=new Error(Qr);t.L=!0,e(t),r&&r.releaseLock()}}(t),l));try{const t=await o;return await f(),await c,t}catch(e){await f(),u();try{await c}catch{}const{outputSize:r,U:n,Z:o,V:a}=t;n.outputSize=r;const i=Kt(e)&&(e.codecImportFailed||e.L),s=o&&!i?a:e;if(Kt(s))try{s.outputSize=r}catch{}throw s}async function f(){if(!s.locked)try{await s.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:a,baseURI:r,workerStartupTimeout:o})}catch(r){if(r&&r.L)return sn(t),Sn(t),wn(t,e);if(r&&r.codecImportFailed){if(t.reader)return Sn(t),wn(t,e);t.v()}throw r}}}})}return t.M},rn=bn;let Dn=[];const Fn=[];let On,In,Un=0;async function Tn(t,e){const{options:r,config:n}=e,{useWebWorkers:o,useCompressionStream:a,compressed:i,checkCrc32:s,computeCrc32:c,encrypted:u,format:l,codecURI:f}=r,{workerURI:w,createWorker:d,maxWorkers:p}=n;l&&(f&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(f,n.baseURI)),await async function(t,e){!pr.has(t)&&e&&Sr(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(l,r.codecURI));const h=!(i||s||c||u),m=l===U||Boolean(r.codecURI);return e.useWebWorkers=!h&&m&&(o||o===U&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&w?w:U,e.createWorker=e.useWebWorkers&&d?d:U,r.useCompressionStream=a||a===U&&n.useCompressionStream,(await async function(){const r=Dn.find(t=>!t.O);if(r)return jn(r),new cn(r,t,e,y);if(Dn.length<p){const r={G:Un};return Un++,Dn.push(r),new cn(r,t,e,y)}return new Promise(r=>{Fn.push({resolve:r,stream:t,U:e}),In=n.workerStarvationTimeout,kn()})}()).run();function y(t){if(Cn(),t.N)return t.N=!1,vn();if(Fn.length){const[{resolve:e,stream:r,U:n}]=Fn.splice(0,1);e(new cn(t,r,n,y)),kn()}else t.T?(jn(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Y=setTimeout(async()=>{Dn=Dn.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):Dn=Dn.filter(e=>e!=t)}}function kn(){!On&&Fn.length&&Number.isFinite(In)&&In>=0&&(On=setTimeout(Mn,In))}function Cn(){On&&(clearTimeout(On),On=null)}function Mn(){if(On=null,Fn.length){const[{resolve:t,stream:e,U:r}]=Fn.splice(0,1);t(new cn({},e,Nn(r),_n)),kn()}}function vn(){const t=Fn.splice(0).map(({resolve:t,stream:e,U:r})=>new Promise(n=>{t(new cn({},e,Nn(r),()=>{_n(),n()}))}));return Cn(),Promise.all(t)}function Nn(t){return Object.assign({},t,{useWebWorkers:!1,workerURI:U,createWorker:U})}function _n(){Cn(),kn()}function jn(t){const{Y:e}=t;e&&(clearTimeout(e),t.Y=null)}const Pn="\0\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\xb6\xa7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0".split("");function Bn(t,e){return Wn(t,e,!0)}function Ln(t){if(!t.some(t=>t>127))return!1;try{return new TextDecoder("utf-8",{fatal:!0}).decode(t),!0}catch{return!1}}function Wn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=Pn[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const Zn="HTTP error ",Vn="HTTP Range not supported",Hn="HTTP resource changed",Gn="Writer iterator completed too soon",qn="Writer not initialized",Yn="Invalid writer (size must be writable)",Kn="Content-Range",Xn="Range",$n="GET",Jn="bytes",Qn=16777216,to="writable",eo=Symbol();class ro{constructor(){this.size=0}init(){this.initialized=!0}}class no extends ro{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=jt(_t())}={}){const n=this;let o=0;return r=Pt(r),new ReadableStream({async pull(a){const i=e===U?r:Math.min(r,e-o),s=await Vo(n,t+o,i);s.length&&(a.enqueue(s),o+=s.length),(e!==U&&o>=e||!s.length&&i)&&a.close()}})}}class oo extends ro{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(qn);return t.writeUint8Array(qt(e))}});Object.defineProperty(t,to,{get:()=>e})}writeUint8Array(){}}class ao extends no{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{K:t,X:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{X:r,K:n}=this,o=new Uint8Array(e),a=4*Math.floor(t/3),i=atob(n.substring(a+r,4*Math.ceil((t+e)/3)+r)),s=t-3*Math.floor(a/4);let c=0;for(let t=s;t<s+e&&t<i.length;t++)o[t-s]=i.charCodeAt(t),c++;return c<o.length?o.subarray(0,c):o}}class io extends oo{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",$:""})}writeUint8Array(t){const e=this;let r,n=e.$;const o=e.$.length;for(e.$="",r=0;r<3*Math.floor((o+t.length)/3)-o;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.$+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.$=n+e.$}getData(){return this.data+btoa(this.$)}}let so,co;class uo extends no{constructor(t){super(),Object.assign(this,{J:t,size:t.size}),co||(co=(async()=>{try{const t=new Blob([new Uint8Array(3)]).slice(1,2).stream().getReader();let e=0,r=await t.read();for(;!r.done;)e+=r.value.length,r=await t.read();so=1==e}catch{so=!1}})())}createReadable(t){const{J:e,size:r}=this,{offset:n=0,size:o=r-n}=t||{};if(typeof e.stream==N){if(!n&&o>=r)return ar(e.stream());if(so)return ar(e.slice(n,n+o).stream())}return super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,o=!t&&n>=r.size?r.J:r.J.slice(t,n);let a=await o.arrayBuffer();return a.byteLength>e&&(a=a.slice(t,n)),new Uint8Array(a)}}class lo extends ro{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,to,{get:()=>r.writable}),e.contentType=t,e.et=ir(r.readable,t),e.et.catch(()=>{})}getData(){return this.et}}class fo extends uo{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function wo(t){let e=0;for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);n<128?e+=1:n<2048?e+=2:n<55296||n>=57344?e+=3:n<56320&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class po extends lo{constructor(t){super(),Object.assign(this,{encoding:t,nt:!t||"utf-8"==t.toLowerCase()})}async getData(){const{encoding:t,nt:e}=this,r=await super.getData();return r.text&&e?r.text():function(t,e){return Wn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class ho extends no{constructor(t,e){super(),yo(this,t,e)}async init(){await Eo(this,To,Fo),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:o,ot:a}=e;if((r||n)&&o!==U){const{offset:r=0,size:n=o-r}=t||{},i=a&&r>=o-a.length;if(n>0&&r<o&&!i)return function(t,e,r){let n,o=e,a=0,i=r;return new ReadableStream({start:()=>s(),async pull(t){n||await s();const{value:e,done:r}=await n.read();if(r)throw new Error(Vn);const o=e.length>a?e.subarray(0,a):e;a-=o.length,i-=o.length,o.length&&t.enqueue(o),a||(await async function(){const t=n;n=U,await t.cancel()}(),i||t.close())},cancel:t=>n&&n.cancel(t)});async function s(){const e=Math.min(t.maximumRangeSize,i),r=await To($n,t,xo(t,o,e));if(206!=r.status)throw new Error(Vn);const s=So(r);if(s!==U&&s!=o)throw new Error(Vn);zo(t,r),Ro(t,r),o+=e,a=e,n=r.body.getReader()}}(e,r,Math.min(n,o-r))}return super.createReadable(t)}readUint8Array(t,e){return bo(this,t,e,To,Fo)}}class mo extends no{constructor(t,e){super(),yo(this,t,e)}async init(){await Eo(this,ko,Oo),super.init()}readUint8Array(t,e){return bo(this,t,e,ko,Oo)}}function yo(t,e,r){const{preventHeadRequest:n,useRangeHeader:o,forceRangeRequests:a,combineSizeEocd:i,checkResourceChanges:s=!0,maximumRangeSize:c=Qn,fetch:u}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:n,useRangeHeader:o,forceRangeRequests:a,combineSizeEocd:i,checkResourceChanges:s,maximumRangeSize:c,fetch:u})}async function Eo(t,e,r){const{url:n,preventHeadRequest:o,useRangeHeader:a,forceRangeRequests:i,combineSizeEocd:s}=t;if(function(t){const{baseURI:e}=_t(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(a||i)&&(typeof o==v||o)){const n=await e($n,t,xo(t,s?-65557:void 0)),o=n.headers.get("Accept-Ranges");if(!(i||o&&o.toLowerCase()==Jn))throw new Error(Vn);{let o;s&&206==n.status&&(o=new Uint8Array(await n.arrayBuffer())),Ro(t,n);const a=go(n);a===U?await Uo(t,e,r):t.size=a,o&&o.length&&So(n)===t.size-o.length&&(t.ot=o)}}else await Uo(t,e,r)}async function bo(t,e,r,n,o){const{useRangeHeader:a,forceRangeRequests:i,ot:s,size:c,options:u}=t;if(a||i){if(e>=c||0===r)return B;{if(e+r>c&&(r=c-e),s&&e>=c-s.length){const t=e-(c-s.length);return s.slice(t,t+r)}const o=await n($n,t,xo(t,e,r));if(206!=o.status)throw new Error(Vn);const a=So(o);if(a!==U&&a!=e)throw new Error(Vn);zo(t,o),Ro(t,o);const i=new Uint8Array(await o.arrayBuffer());if(i.length!=r)throw new Error(Vn);return i}}{const{data:n}=t;return n||await o(t,u),t.data.subarray(e,e+r)}}function So(t){const e=t.headers.get(Kn);if(e){const t=Number(e.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t))return t}}function go(t){const e=t.headers.get(Kn);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Ao({headers:t}){return{it:t.get("Etag")||U,lastModified:t.get("Last-Modified")||U}}function Ro(t,e){const{checkResourceChanges:r,st:n}=t;r&&!n&&206==e.status&&(t.st=Ao(e))}function zo(t,e){const{checkResourceChanges:r,st:n,size:o}=t;if(r){const t=go(e);if(t!==U&&o!==U&&t!=o)throw new Error(Hn);if(n){const t=Ao(e);if(Object.entries(n).some(([e,r])=>r!==U&&t[e]!==U&&r!=t[e]))throw new Error(Hn)}}}function xo(t,e=0,r=1){return Object.assign({},Do(t),{[Xn]:Jn+"="+(e<0?e:e+"-"+(e+r-1))})}function Do({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Fo(t){await Io(t,To)}async function Oo(t){await Io(t,ko)}async function Io(t,e){const r=await e($n,t,Do(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Uo(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,Do(t)),o=n.headers.get("Content-Length");o&&!n.headers.get("Content-Encoding")?t.size=Number(o):await r(t,t.options)}}async function To(t,{fetch:e=fetch,options:r,url:n},o){const a=await e(n,Object.assign({},r,{method:t,headers:o}));if(a.status>=200&&a.status<=299)return a;throw 416==a.status?new Error(Vn):new Error(Zn+(a.statusText||a.status))}function ko(t,{url:e},r){return new Promise((n,o)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",()=>{if(a.status>=200&&a.status<=299){const t=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),n({status:a.status,arrayBuffer:()=>a.response,headers:new Map(t)})}else o(416==a.status?new Error(Vn):new Error(Zn+(a.statusText||a.status)))},!1),a.addEventListener("error",t=>o(t.detail?t.detail.error:new Error("Network error")),!1),a.open(t,e),r)for(const t of Object.entries(r))a.setRequestHeader(t[0],t[1]);a.responseType="arraybuffer",a.send()})}class Co extends no{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new mo(t,e):new ho(t,e)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}createReadable(t){return this.reader.createReadable(t)}readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class Mo extends Co{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class vo extends no{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{ct:t,size:t.length})}readUint8Array(t,e){return this.ct.slice(t,t+e)}}class No extends oo{constructor(t){super(),this.ut=t||262144}init(t=0){Object.assign(this,{offset:0,ct:new Uint8Array(t>0?t:this.ut)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.ct.length){let t=e.ct.length?2*e.ct.length:e.ut;for(;t<r;)t*=2;const n=e.ct;e.ct=new Uint8Array(t),e.ct.set(n)}e.ct.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.ct.length?this.ct:this.ct.slice(0,this.offset)}}class _o extends no{constructor(t){super(),this.lt=t}async init(){const t=this;t.ft=0;const e=t.lt=await Promise.all(t.lt.map(Zo));t.wt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}ht(t){const{wt:e,size:r}=this,n=e[t];return n===U?r:n}async readUint8Array(t,e){const r=this,{lt:n}=this;let o,a=0,i=t;for(;n[a]&&i>=n[a].size;)i-=n[a].size,a++;const s=n[a];if(s){const n=s.size;if(i+e<=n)o=await Vo(s,i,e);else{const a=n-i;o=Gt(await Vo(s,i,a),await r.readUint8Array(t+a,e-a))}}else o=B;return r.ft=Math.max(a,r.ft),o}}class jo extends ro{constructor(t,e=4294967295){super();const r=this;let n,o,a;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const i=new WritableStream({async write(e){if(e===eo)return void(a&&await c());const{availableSize:i}=r;if(a)e.length>=i?(await s(e.subarray(0,i)),await c(),e.length>i&&await this.write(e.subarray(i))):await s(e);else{const{value:i,done:s}=await t.next();if(s&&!i)throw new Error(Gn);n=i,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await Wo(n),o=i.writable,a=o.getWriter(),await this.write(e)}},async close(){a&&(await a.ready,await u())},async abort(t){a&&await a.abort(t)}});async function s(t){const e=t.length;e&&(await a.ready,await a.write(t),n.size+=e,r.availableSize-=e)}async function c(){await u(),r.diskOffset+=n.size,r.diskNumber++,a=null,r.availableSize=r.maxSize}async function u(){await a.close()}Object.defineProperty(r,to,{get:()=>i})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(eo)}finally{t.releaseLock()}}}class Po{constructor(t){return Array.isArray(t)&&(t=new _o(t)),(t instanceof ReadableStream||typeof t.getReader==N)&&(t={readable:ar(t)}),t}}class Bo{constructor(t){t.writable===U&&typeof t.next==N&&(t=new jo(t)),(t instanceof WritableStream||typeof t.getWriter==N)&&(t={writable:sr(t)});try{t.size=t.size===U?0:t.size}catch{throw new Error(Yn)}return t}}function Lo(t){return Boolean(t&&t.getData)}async function Wo(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function Zo(t){return t=new Po(t),await Wo(t),t.size!==U&&t.readUint8Array||(t=new uo(await ir(t.readable)),await Wo(t)),t}function Vo(t,e,r){return t.readUint8Array(e,r)}function Ho(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?no.prototype.createReadable.call(t,e):t.readable}function Go(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==U&&(n.filename=r),t.push(n)}}const qo="filename",Yo="rawFilename",Ko="comment",Xo="rawComment",$o="uncompressedSize",Jo="compressedSize",Qo="offset",ta="diskNumberStart",ea="lastModDate",ra="rawLastModDate",na="lastAccessDate",oa="rawLastAccessDate",aa="creationDate",ia="rawCreationDate",sa="internalFileAttributes",ca="externalFileAttributes",ua="msdosAttributesRaw",la="msdosAttributes",fa="msDosCompatible",wa="zip64",da="encrypted",pa="version",ha="versionMadeBy",ma="zipCrypto",ya="directory",Ea="executable",ba="compressionMethod",Sa="signature",ga="extraField",Aa="unixMode",Ra="setuid",za="setgid",xa="sticky",Da=[qo,Yo,$o,Jo,ea,ra,Ko,Xo,na,oa,aa,ia,Qo,ta,sa,ca,ua,la,fa,wa,da,pa,ha,ma,ya,Ea,"symlink",ba,Sa,"crc32",ga,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Aa,"unixExternalUpper",Ra,za,xa,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Fa{constructor(t){Da.forEach(e=>this[e]=t[e])}}const Oa=new Set([1,h,10,m,28789,25461,y,E,b,22613,13]);function Ia(t,e,r){return t?e?12:16+4*r:0}const Ua="File format is not recognized",Ta="End of central directory not found",ka="End of Zip64 central directory locator not found",Ca="Central directory header not found",Ma="File contains encrypted entry",va="Encryption method not supported",Na="Split zip file",_a="Entry data out of bounds",ja="Ambiguous archive",Pa="Encrypted central directory is not supported",Ba="Unsafe filename",La="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",Wa="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",Za="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",Va="64-bit value exceeds Number.MAX_SAFE_INTEGER",Ha="unsorted central directory",Ga="unknown version needed to extract",qa="compressed patched data",Ya="malformed extra field",Ka="unknown zip64 extensible data",Xa="wrapped entries count",$a="appended data",Ja="prepended data",Qa="prepended central directory",ti="trailing central directory data",ei="mismatched central directory offset",ri="missing zip64 extra field",ni="duplicate filename",oi="mismatched zip64 end of central directory record",ai="multiple end of central directory records",ii="mismatched local file header (filename)",si="mismatched local file header (general purpose bit flag)",ci="mismatched local file header (compression method)",ui="mismatched local file header (crc32 or sizes)",li=/^[a-zA-Z]:/,fi=/(^|[\\/])\.\.([\\/]|$)/,wi="utf-8",di="cp437",pi=[[$o,t],[Jo,t],[Qo,t],[ta,e]],hi={[e]:{yt:rs,bytes:4},[t]:{yt:ns,bytes:8}},mi=BigInt(Number.MAX_SAFE_INTEGER);class yi{constructor(t,e={}){Object.assign(this,{reader:new Po(t),options:e,Et:{bt:new Set,St:[],gt:[]},At:new WeakSet})}async*getEntriesGenerator(a={}){const c=this;let{reader:h}=c;if(await Wo(h),h.size!==U&&h.readUint8Array||(h=new uo(await ir(h.readable)),await Wo(h)),h.size<w)throw new Error(Ua);const m=c.warnings=[],y=Pi(a,c.options),E=y==st,b=y!=ut,S=Wi(Xi(c,a,rt),y),g=function(t,e){if(t===U)return e;if(!ji(t))throw new Error(Wa);return t}(Xi(c,a,"filenameValidation"),y),F=Xi(c,a,"normalizeFilename"),{Rt:O,zt:I}=await Zi(h,b,S);if(!O)throw await async function(t){return await _i(t)==o}(h)?new Error(Na):new Error(Ta);b&&I>1&&Ki(ai);const T=Yt(O);let k=rs(T,12),C=rs(T,16);const v=O.offset,N=es(T,20),_=v+w+N,j=h.size-_;j>S&&Ki($a),j>0&&Go(m,$a);let P=es(T,4);const L=h.ft||0;let W,Z,V,H,q,Y=es(T,6),K=es(T,10),X=0,$=p;const J=C==t||k==t||K==e||Y==e;if(C!=t&&Y!=e&&(C+=Ni(h,Y)),J){const r=O.offset>=d?await Vo(h,O.offset-d,d):B,n=Yt(r);if(r.length==d&&rs(n,0)==l){C=Ni(h,rs(n,4))+ns(n,8);let r=await Vo(h,C,p),o=Yt(r);if(r.length<p||rs(o,0)!=u){const t=O.offset-d;let e=t-p;if(await zi(h,e,u)||(e=await async function(t,e){const r=Math.max(0,e-65591),n=await Vo(t,r,e-r),o=Yt(n);for(let t=n.length-p;t>=0;t--)if(rs(o,t)==u&&t+12+Number(o.getBigUint64(t+4,!0))==n.length)return r+t}(h,t)),e!==U&&e>=0&&C!=e){const t=C;C=e,C>t&&(X=C-t),r=await Vo(h,C,p),o=Yt(r)}}if(r.length<p||rs(o,0)!=u)throw new Error(ka);if(V=!0,H=ns(o,4)>44,H){const t=Math.min(ns(o,4)-44,h.size-C-p);t>0&&($+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Yt(t),n=es(r,26);Object.assign(e,{compressionMethod:es(r,0),compressedSize:ns(r,2),uncompressedSize:ns(r,10),encryptionAlgorithm:es(r,18),bitLength:es(r,20),flags:es(r,22),hashAlgorithm:es(r,24),hashData:t.subarray(28,28+n)})}return e}(await Vo(h,C+p,t)))}P==e?P=rs(o,16):P!=rs(o,16)&&Yi(E,m,oi),Y==e?Y=rs(o,20):Y!=rs(o,20)&&Yi(E,m,oi),K==e?K=ns(o,32):K!=ns(o,32)&&Yi(E,m,oi),k==t?k=ns(o,40):k!=ns(o,40)&&Yi(E,m,oi),C=Ni(h,Y)+ns(o,48)+X}else if(C==t||k==t||Y==e)throw new Error(ka)}let Q=k;const tt=O.offset-(V?$+d:0);if(L!=P)throw new Error(Na);if(C<0)throw new Error(Ua);let nt=0,ot=C<h.size?await Vo(h,C,k):B,ct=Yt(ot);if(k){let e=tt-k;if(C!=e&&Y==P){const r=ot.length>=4&&(rs(ct,nt)==s||Boolean(q&&q.compressedSize)||gi(ct));if(!r&&e<0)throw new Error(Ua);let o=!r;if(e>=0&&e+4<=h.size){let t=await Ri(h,e);if(!t){const r=await async function(t,e){const r=Math.max(0,e-65541),n=await Vo(t,r,e-r),o=Yt(n);for(let t=n.length-6;t>=0;t--)if(rs(o,t)==i&&t+6+es(o,t+4)==n.length)return r+t}(h,tt),n=r-k;r!==U&&n>=0&&await Ri(h,n)&&(e=n,t=!0)}r&&(o=t)}if(o&&e!=C){const o=C;C=e,ot=await Vo(h,C,k),ct=Yt(ot);const a=C-o,i=function(e,r){if(e.length<f)return U;const n=rs(r,42);if(n!=t)return n;let o=f+es(r,28);const a=Math.min(o+es(r,30),e.length);for(;o+4<=a;){const e=es(r,o),n=es(r,o+2);if(1==e){let e=o+4;return rs(r,24)==t&&(e+=8),rs(r,20)==t&&(e+=8),e+8<=a?ns(r,e):U}o+=4+n}return U}(ot,ct),s=i!==U&&await zi(h,i,n),c=i!==U&&await zi(h,i+a,n);a>0&&(!s||c)?(X+=a,W=r):(Yi(E,m,ei),a<0&&!s&&c&&(X+=a))}}if(ot.length<4)throw new Error(Ua)}else!K&&C<tt&&Y==P&&(X+=tt-C,C=tt);const lt=tt-C;if(k!=lt&<>=0&&Y==P&&(k=lt,ot=await Vo(h,C,k),ct=Yt(ot)),C<0||C>=h.size)throw new Error(Ua);c.directoryOffset=C,c.directoryLength=Q;const ft=$i(c,a,"decryptCentralDirectory");let wt,dt;if(ft&&K&&ot.length>=4&&rs(ct,0)!=s&&(H||gi(ct))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,Q,ot.length);dt=ot.subarray(t),ot=await ft(ot.subarray(0,t),q),ct=Yt(ot),Q=ot.length,wt=!0}q&&!wt&&(ot.length<4||rs(ct,0)==s)&&Go(m,Ka),Z=C;const pt=Xi(c,a,"filenameEncoding"),ht=Xi(c,a,"commentEncoding"),mt=new Set;let yt,Et=-1;const bt=!E&&!V;!K&&bt&&(K=Ai(ct,ot,nt),K&&Go(m,Xa));const St=Object.assign({},c.options,a,{[et]:y});delete St[G];for(let n=0;n<K;n++){const o=new Si(h,St);if(nt+f>ot.length||rs(ct,nt)!=s){if(0==n&&!wt&&(H||gi(ct)))throw new Error(Pa);throw new Error(Ca)}Di(o,ct,nt+6);const i=Boolean(o.bitFlag.languageEncodingFlag),u=nt+f,l=u+o.filenameLength+o.extraFieldLength,w=es(ct,nt+4),d=!(w>>8),p=w>>8==3,y=es(ct,nt+32),b=l+y,S=new Uint8Array(ot.subarray(u,b)),O=S.subarray(0,o.filenameLength),I=S.subarray(o.filenameLength+o.extraFieldLength),T=i||!pt&&Ln(O),k=i||!ht&&Ln(I),C=rs(ct,nt+38),v=C&r,N={readOnly:Boolean(1&v),hidden:Boolean(2&v),system:Boolean(4&v),directory:Boolean(16&v),archive:Boolean(32&v)},_=rs(ct,nt+42),j=$i(c,a,"decodeText")||Bn,P=T?wi:pt||di,B=k?wi:ht||di;let L=j(O,P,at);L===U&&(L=Bn(O,P));let W,V=j(I,B,it);V===U&&(V=Bn(I,B)),Object.assign(o,{index:n,xt:wt,versionMadeBy:w,msDosCompatible:d,zip64:!1,compressedSize:0,uncompressedSize:0,Dt:y,offset:_,diskNumberStart:es(ct,nt+34),internalFileAttributes:es(ct,nt+36),externalFileAttributes:C,msdosAttributesRaw:v,msdosAttributes:N,rawFilename:O,filenameUTF8:T,commentUTF8:k,rawExtraField:S.subarray(o.filenameLength,o.filenameLength+o.extraFieldLength),rawComment:I,filename:L,comment:V});try{W=Fi(o,o,ct,nt+6)}catch(t){if(E||t.message!=M)throw t;o.Ft=!0,Go(m,ri,o.filename)}if(L=o.filename,F){const t=F(L);t!==U&&(L=o.filename=t)}if(Li(L,g)){const t=new Error(Ba);throw t.filename=L,t}if(W&&Go(m,Ya,L),o.Ft&&o.offset==t)Z=0;else{o.offset+=X;const t=Ni(h,o.diskNumberStart)+o.offset;Z=Math.min(t,Z),t<Et&&Go(m,Ha,L),Et=t}(o.version&r)>63&&Go(m,Ga,L),32&~o.rawBitFlag||Go(m,qa,L),mt.has(o.filename)&&(yt=!0),mt.add(o.filename);const G=o.externalFileAttributes>>16&e;o.unixMode===U&&16877&G&&(o.unixMode=G);const q=Boolean(o.unixMode&z),Y=Boolean(o.unixMode&x),$=Boolean(512&o.unixMode),J=40960==((o.unixMode===U?G:o.unixMode)&A),Q=o.unixMode!==U&&(o.unixMode&A)==R||(G&A)==R||d&&N.directory||o.filename.endsWith(D),tt=!J&&!Q&&(o.unixMode!==U?!!(73&o.unixMode):p&&!!(73&G));Object.assign(o,{setuid:q,setgid:Y,sticky:$,symlink:J,unixExternalUpper:G,executable:tt,directory:Q,zipCrypto:o.encrypted&&!o.extraFieldAES});const et=new Fa(o);if(o.Ft&&c.At.add(et),et.getData=(t,e)=>o.getData(t,et,c,e),et.arrayBuffer=async t=>{const e=new TransformStream,r=ir(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await o.getData(e,et,c,Object.assign({},t,{preventClose:!1})),r},nt=b,n==K-1&&bt){const t=Ai(ct,ot,nt);t&&(K+=t,Go(m,Xa))}const{onprogress:rt}=a;if(rt)try{await rt(n+1,K,new Fa(o))}catch{}yield et}let gt=nt,At=xi(ot.subarray(nt))||(wt?xi(dt):U);if(!At&&!wt){const t=C+nt,e=Math.min(tt-t,65541);e>=6&&(At=xi(await Vo(h,t,e)))}At&&(c.digitalSignature=At,gt=nt+6+At.length),(nt!=Q&>!=Q||!wt&&nt!=k&>!=k)&&Yi(E,m,ti),yt&&Yi(E,m,ni);const Rt=Xi(c,a,"extractPrependedData"),zt=Xi(c,a,"extractAppendedData"),xt=(E||Rt)&&K&&4==Z&&await async function(t){const e=await _i(t);return e==o||808471376==e}(h)?4:0;return E&&(X>0||K&&Z>xt)&&Ki(Ja),(X>0||K&&Z>4)&&Go(m,Ja),W&&Go(m,Qa),Rt&&(c.prependedData=Z>xt?await Vo(h,xt,Z-xt):B),c.comment=N?await Vo(h,v+w,N):B,zt&&(c.appendedData=_<h.size?await Vo(h,_,h.size-_):B),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}[L](){return this.close()}}class Ei{constructor(t={}){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}}),o=new yi(r,t),a=o.getEntriesGenerator(),i=new Set;this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await a.next();if(e)return t.close();const n=function(t,e){const{readable:r,writable:n}=new TransformStream;let o;const a={cancel:async t=>{e.delete(a),await(o?o.cancel(t):r.cancel(t))}};return a.readable=new ReadableStream({async pull(i){o||(o=r.getReader(),e.add(a),async function(){try{await t.getData(n,{preventClose:!1})}catch(t){try{await n.abort(t)}catch{}}finally{e.delete(a)}}());const{done:s,value:c}=await o.read();s?i.close():i.enqueue(c)},cancel:t=>a.cancel(t)},{highWaterMark:0}),a}(r,i),o={...r,readable:n.readable};delete o.getData,Object.defineProperties(o,{localDirectory:{get:()=>r.localDirectory,enumerable:!0},warnings:{get:()=>r.warnings,enumerable:!0}}),t.enqueue(o)},async cancel(t){const r=Array.from(i);i.clear(),e.error(t),await Promise.allSettled(r.map(e=>e.cancel(t))),await Promise.allSettled([a.return(),o.close()])}}),this.writable=n}}async function bi(t,e={}){if(t=new Po(t),await Wo(t),t.size!==U&&t.readUint8Array||(t=new uo(await ir(t.readable)),await Wo(t)),t.size<w)return!1;const r=Pi(e,{}),n=r!=ut,o=Wi(e[rt],r),{Rt:a,zt:i}=await Zi(t,n,o);if(!a||r==st&&i>1)return!1;const s=es(Yt(a),20),c=a.offset+w+s;return t.size-c<=o}let Si=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,o,a={}){const i=this,{Et:s,directoryOffset:c}=o;if(i.Ft)throw new Error(M);const u=_t(),{reader:l,index:f,offset:w,diskNumberStart:d,extraFieldAES:p,extraFieldZip64:h,compressionMethod:m,bitFlag:y,rawBitFlag:E,crc32:b,rawLastModDate:S,uncompressedSize:A,compressedSize:R}=i,{dataDescriptor:z}=y,x=e.localDirectory={},D=e.warnings=[],O=Ni(l,d)+w,I=await Vo(l,O,F),T=Yt(I);let v=Xi(i,a,W),N=Xi(i,a,Z);const _=St(Xi(i,a,V)),j=Boolean(_),P=!0===_;if(bt(v,N),v=v&&v.length?v:U,N=N&&N.length?N:U,p&&99!=p.originalCompressionMethod)throw new Error(fr);if(I.length<F||rs(T,0)!=n)throw new Error(k);Di(x,T,4);const{extraFieldLength:L,filenameLength:G}=x,X=x.dataOffset=O+F+G+L,$=Xi(i,a,"checkLocalDirectory"),J=Pi(a,i.options),Q=function(t,e){return t===U?e!=ut:Boolean(t)}($,J),tt=Xi(i,a,"checkLocalFilename"),et=function(t,e){return t===U?e==st:Boolean(t)}(tt===U?$:tt,J);let rt=B;if(et&&(G||L)){const t=await Vo(l,O+F,G+L);rt=t.subarray(0,G),x.rawExtraField=t.subarray(G)}else x.rawExtraField=L?await Vo(l,O+F+G,L):B;et&&(x.rawFilename=rt),Fi(i,x,T,4,!0)&&Go(D,Ya),function(t,e,r,n,o){const{rawFilename:a}=t,i=!o,s=t.xt&&(e.rawBitFlag&g)==g;!n||s||r.length==a.length&&!r.some((t,e)=>t!=a[e])||Yi(i,o,ii),(2121&e.rawBitFlag)!=(2121&t.rawBitFlag)&&Yi(i,o,si),e.compressionMethod!=t.compressionMethod&&Yi(i,o,ci),e.bitFlag.dataDescriptor||s||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Yi(i,o,ui)}(i,x,rt,et,Q?U:D);const{lastAccessDate:nt,creationDate:ot,uid:at,gid:it}=x;nt&&e.lastAccessDate===U&&(e.lastAccessDate=nt),ot&&e.creationDate===U&&(e.creationDate=ot),at!==U&&e.uid===U&&(e.uid=at),it!==U&&e.gid===U&&(e.gid=it);const ct=Xi(i,a,"checkPasswordOnly"),lt=i.encrypted&&(!P||ct),ft=lt&&!p;if(P||(e.zipCrypto=ft),lt&&!(64&~i.rawBitFlag))throw new Error(va);const wt=j?U:yr(m);if(0!=m&&8!=m&&9!=m&&!wt&&!j)throw new Error(fr);if(lt){if(!ft&&(p.strength<1||p.strength>3))throw new Error(va);if(!v&&!N)throw new Error(Ma)}if(X+R>Math.min(l.size,c))throw new Error(_a);const dt=R,pt=yt(Xi(i,a,H));Et(pt);let ht=Xi(i,a,"checkOverlappingEntry");const mt=Xi(i,a,"checkOverlappingEntryOnly");mt&&(ht=!0);const{onstart:gt,onprogress:At,onend:Rt}=a,zt=0!=m&&!j,xt=j?R-Ia(lt,ft,p&&p.strength):A,Dt=9==m;let Ft=Xi(i,a,Y);Dt&&(Ft=!1);const Ot=Xi(i,a,"checkCrc32"),It=(Ot===U?Xi(i,a,"checkSignature"):Ot)&&!j&&(!lt||ft||p&&1==p.vendorVersion),Ut={options:{codecType:Xr,password:v,rawPassword:N,zipCrypto:ft,encryptionStrength:p&&p.strength,checkCrc32:It,checkAuthenticationCode:Xi(i,a,"checkAuthenticationCode"),passwordVerification:ft&&(z?S>>>8&r:b>>>24&r),outputSize:xt,crc32:b,compressed:zt,encrypted:lt,useWebWorkers:Xi(i,a,q),useCompressionStream:Ft,deflate64:Dt,format:wt?wt.format:U,codecURI:wt?wt.codecURI:U,compressionMethod:m,rawBitFlag:E,checkPasswordOnly:ct},config:u,F:{signal:pt,size:dt,onstart:gt,onprogress:At,onend:Rt}};let Tt,kt,Ct;ht&&(await async function({reader:t,Ot:e,index:r,offset:n,crc32:o,compressedSize:a,uncompressedSize:i,dataOffset:s,dataDescriptor:c,extraFieldZip64:u,Et:l}){let f=0;if(c){const r=Boolean(u),n=await Ci(t,s+a,{crc32:o,compressedSize:a,uncompressedSize:i,zip64:r});n?(e.localDirectory.dataDescriptor=n,f=vi(n.zip64,n.signature)):f=vi(r,!1)}const w={start:n,end:s+a+f,Ot:e},{bt:d,St:p,gt:h}=l;if(!d.has(r)){const t=function(t,e){let r=0,n=t.length;for(;r<n;){const o=r+n>>>1;t[o].start<e.start?r=o+1:n=o}const o=t[r-1],a=t[r];return o&&ki(e,o)?o:a&&ki(e,a)?a:void 0}(p,w)||h.find(t=>ki(w,t));if(t){const e=new Error(C);throw e.overlappingEntry=t.Ot,e}d.add(r),h.push(w),h.length*h.length>p.length&&(h.sort((t,e)=>t.start-e.start),l.St=function(t,e){const r=[];let n=0,o=0;for(;n<t.length||o<e.length;)o==e.length||n<t.length&&t[n].start<e[o].start?r.push(t[n++]):r.push(e[o++]);return r}(p,h),h.length=0)}}({reader:l,Ot:e,index:f,offset:O,crc32:b,compressedSize:R,uncompressedSize:A,dataOffset:X,dataDescriptor:z||x.bitFlag.dataDescriptor,extraFieldZip64:h||x.extraFieldZip64,Et:s}),function(t,e,r){const{dataDescriptor:n}=e,o=t.xt&&(e.rawBitFlag&g)==g;n&&!o&&(t.crc32!==U&&n.crc32!=t.crc32||n.compressedSize!=t.compressedSize||n.uncompressedSize!=t.uncompressedSize)&&Yi(!r,r,ui)}(i,x,Q?U:D));try{if(!mt){ct&&(t=new WritableStream),t=new Bo(t),await Wo(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(xt,R,zt)),({writable:Tt}=t);const e=ar(l.createReadable({offset:X,size:dt})),{outputSize:r}=await Tn({readable:e,writable:Tt},Ut);if(Et(pt),r!=xt)throw Object.assign(new Error(gr),{outputSize:r});t.size+=r}}catch(e){if(Kt(e)&&e.outputSize!==U&&(t.size+=e.outputSize),!ct||!Kt(e)||e.message!=Fe)throw kt=e,Ct=!0,e}finally{if((Lo(t)||!Xi(i,a,K))&&Tt&&!Tt.locked){const t=Tt.getWriter();if(Ct)try{await t.abort(kt)}catch{}else await t.close()}}return ct||mt?U:t.getData?t.getData():Tt}};function gi(t){return t.byteLength>=4&&134630224==rs(t,0)}function Ai(t,e,r){let n=0;for(;r+f<=e.length&&rs(t,r)==s;)r+=f+es(t,r+28)+es(t,r+30)+es(t,r+32),n++;return n%65536?0:n}function Ri(t,e){return zi(t,e,s)}async function zi(t,e,r){return!(e<0||e+4>t.size)&&rs(Yt(await Vo(t,e,4)),0)==r}function xi(t){if(t.length>=6){const e=Yt(t);if(rs(e,0)==i){const r=es(e,4);if(6+r<=t.length)return new Uint8Array(t.subarray(6,6+r))}}}function Di(t,e,r){const n=t.rawBitFlag=es(e,r+2),o=!(1&~n),a=rs(e,r+6);Object.assign(t,{encrypted:o,version:es(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&S)==S},rawLastModDate:a,lastModDate:Ji(a),filenameLength:es(e,r+22),extraFieldLength:es(e,r+24)})}function Fi(t,e,r,n,o){const{rawExtraField:a}=e,i=e.extraField=new Map,s=Yt(a);let c=0,u=!1;try{for(;c<a.length;){const t=es(s,c),e=es(s,c+2);i.set(t,{type:t,data:a.slice(c+4,c+4+e)}),c+=4+e}}catch{u=!0}c>a.length&&(u=!0);const l=es(r,n+4);Object.assign(e,{signature:rs(r,n+10),crc32:rs(r,n+10),compressedSize:rs(r,n+14),uncompressedSize:rs(r,n+18)});const f=i.get(1);let w;f?(function(t,e,r){e.zip64=!0;const n=Yt(t.data),o=pi.filter(([t,r])=>e[t]==r),a=o.reduce((t,[,e])=>t+hi[e].bytes,0);if(t.data.length<a){if(r)return!1;throw new Error(M)}const i=[];try{for(let t=0,e=0;t<o.length;t++){const[,r]=o[t],a=hi[r];i.push(a.yt(n,e)),e+=a.bytes}}catch(t){if(r)return!1;throw t}return o.forEach(([r],n)=>{e[r]=t[r]=i[n]}),!0}(f,e,o)||(u=!0),e.extraFieldZip64=f):pi.some(([t,r])=>e[t]==r)&&(o?u=!0:w=!0);const d=i.get(28789);d&&(Oi(d,qo,Yo,e,t),e.extraFieldUnicodePath=d);const p=i.get(25461);p&&(Oi(p,Ko,Xo,e,t),e.extraFieldUnicodeComment=p);const S=i.get(h);S&&(99==l||e.encrypted)&&S.data.length>=7?(function(t,e,r){const n=Yt(t.data),o=ts(n,4);Object.assign(t,{vendorVersion:ts(n,0),vendorId:ts(n,2),strength:o,originalCompressionMethod:r,compressionMethod:es(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=U)}(S,e,l),e.extraFieldAES=S):(S&&(u=!0),e.compressionMethod=l);const g=i.get(13);g&&(Ii(g,e),e.extraFieldPkwareUnix=g);const A=i.get(22613);A&&(Ii(A,e),e.extraFieldUnixType1=A);const R=i.get(m);R&&(function(t,e,r){if(!t.data.length)return;const n=Yt(t.data),o=ts(n,0),a=[],i=[];r?(1&~o||(a.push(ea),i.push(ra)),2&~o||(a.push(na),i.push(oa)),4&~o||(a.push(aa),i.push(ia))):t.data.length>=5&&(a.push(ea),i.push(ra));let s=1;a.forEach((r,o)=>{if(t.data.length>=s+4){const a=rs(n,s);e[r]=t[r]=new Date(1e3*(0|a));const c=i[o];t[c]=a}s+=4})}(R,e,o),e.extraFieldExtendedTimestamp=R);const z=i.get(10);z&&(function(t,e){const r=Yt(t.data);let n,o=4;try{for(;o<t.data.length&&!n;){const e=es(r,o),a=es(r,o+2);1==e&&(n=t.data.slice(o+4,o+4+a)),o+=4+a}}catch{}if(n&&24==n.length){const r=Yt(n),o=r.getBigUint64(0,!0),a=r.getBigUint64(8,!0),i=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:o,rawLastAccessDate:a,rawCreationDate:i});const s={lastModDate:Qi(o),lastAccessDate:Qi(a),creationDate:Qi(i)};Object.assign(t,s),Object.assign(e,s,{rawLastAccessDate:a,rawCreationDate:i})}}(z,e),e.extraFieldNTFS=z);const x=i.get(E);let D;x&&(D=Ui(x,e,!0),e.extraFieldInfoZip=x);const F=i.get(b);F&&(Ui(F,D?{}:e,!1),e.extraFieldUnix=F);const O=i.get(y);if(O&&(e.extraFieldUSDZ=O),w)throw new Error(M);return u}function Oi(t,e,r,n,o){if(t.data.length<5)return void(t.valid=!1);const a=Yt(t.data),i=new ae;i.append(o[r]);const s=Yt(new Uint8Array(4));s.setUint32(0,i.get(),!0);const c=rs(a,1),u=ts(a,0);Object.assign(t,{version:u,[e]:Bn(t.data.subarray(5)),valid:1==u&&!o.bitFlag.languageEncodingFlag&&c==rs(s,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function Ii(t,e){if(t.data.length<8)return;const r=Yt(t.data),n={lastAccessDate:new Date(1e3*(0|rs(r,0))),lastModDate:new Date(1e3*(0|rs(r,4)))};t.data.length>=12&&(n.uid=es(r,8),n.gid=es(r,10)),Object.assign(t,n),Object.assign(e,n)}function Ui(t,e,r){try{const n=Yt(t.data);let o,a;if(r){let e=0;const r=ts(n,e++),i=ts(n,e++);o=Ti(t.data.subarray(e,e+i)),e+=i;const s=ts(n,e++);a=Ti(t.data.subarray(e,e+s)),Object.assign(t,{version:r,uid:o,gid:a})}else t.data.length>=4&&(o=es(n,0),a=es(n,2),Object.assign(t,{uid:o,gid:a}));return o!==U&&(e.uid=o),a!==U&&(e.gid=a),o!==U||a!==U}catch{}}function Ti(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function ki(t,e){return t.start<e.end&&e.start<t.end}async function Ci(t,e,{crc32:r,compressedSize:n,uncompressedSize:o,zip64:a}){const i=Math.min(24,Math.max(0,t.size-e)),s=Yt(i?await Vo(t,e,i):B),c=[[a,!0],[a,!1],[!a,!0],[!a,!1]].map(([t,e])=>Mi(s,t,e)).filter(t=>t&&t.compressedSize==n&&t.uncompressedSize==o);return c.find(t=>t.crc32==r)||c[0]||Mi(s,a,!0)||Mi(s,a,!1)}function Mi(t,e,r){const n=r?4:0;if(t.byteLength<vi(e,r)||r&&rs(t,0)!=a)return U;const o=rs(t,n);let i,s;try{e?(i=ns(t,n+4),s=ns(t,n+12)):(i=rs(t,n+4),s=rs(t,n+8))}catch{return U}return{signature:r,zip64:e,crc32:o,compressedSize:i,uncompressedSize:s}}function vi(t,e){return(t?20:12)+(e?4:0)}function Ni(t,e){return t.ht?t.ht(e):0}async function _i(t){return rs(Yt(await Vo(t,0,4)))}function ji(t){return t===st||t===ct||t===ut}function Pi(t,e){return Bi(t,Bi(e,ct))}function Bi(t,e){const r=t[et];if(r!==U){if(!ji(r))throw new Error(La);return r}const n=t[G];return n===U?e:n?st:e==ut?ut:ct}function Li(t,e){if(e==ut)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(fi.test(t)||t.startsWith("/")||t.startsWith("\\")||li.test(t))||e==st&&(r.includes(".")||r.includes("")||t.includes("\0"))}function Wi(t,r){if(t!==U){const e=Rt(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(Za);return e}return r==st?0:r==ut?1/0:e}async function Zi(t,e,r){const{size:n}=t,o=Math.min(n,65557),a={It:64};let i,s,c=0;for await(const[r,u,l,f,d]of Vi(t,o)){const o=es(r,f+20);if(d+w+o==n){const o=await Gi(t,r,u,f,d,n,a);if(2==o){if(i||(i=Hi(l,f,d)),c++,!e||c>1)break}else 1!=o||s||(s=Hi(l,f,d))}}return i||(i=s),i||(i=await async function(t,e,r){const{size:n}=t,o=Math.min(n,e==1/0?n:65557+e);let a,i;for await(const[e,s,c,u,l]of Vi(t,o)){const o=Hi(c,u,l);a||(a=o);const f=await Gi(t,e,s,u,l,n,r);if(2==f)return o;1!=f||i||(i=o)}return i||a}(t,r,a)),{Rt:i,zt:c}}async function*Vi(t,e){const r=t.size-e,n=await Vo(t,r,e),o=Yt(n);for(let t=n.length-w;t>=0;t--)rs(o,t)==c&&(yield[o,r,n,t,r+t])}function Hi(t,e,r){return{offset:r,buffer:new Uint8Array(t.subarray(e,e+w)).buffer}}async function Gi(r,n,o,a,i,c,u){const f=es(n,a+10),w=rs(n,a+12),p=rs(n,a+16);if(f==e||w==t||p==t)return await qi(r,n,o,i-d,c,u)==l?2:0;if(!f&&!w)return 1;const h=es(n,a+6);for(const t of[i-w,Ni(r,h)+p])if(await qi(r,n,o,t,c,u)==s)return 2;return 0}async function qi(t,e,r,n,o,a){return n<0||n+4>o?U:n>=r?rs(e,n-r):a.It>0?(a.It--,rs(Yt(await Vo(t,n,4)),0)):U}function Yi(t,e,r){t?Ki(r):Go(e,r)}function Ki(t){const e=new Error(ja);throw e.reason=t,e}function Xi(t,e,r){return e[r]===U?t.options[r]:e[r]}function $i(t,e,r){return mt(Xi(t,e,r))}function Ji(t){const r=(4294901760&t)>>16,n=t&e,o=new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&n)>>11,(2016&n)>>5,2*(31&n),0);return o<I?I:o}function Qi(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function ts(t,e){return t.getUint8(e)}function es(t,e){return t.getUint16(e,!0)}function rs(t,e){return t.getUint32(e,!0)}function ns(t,e){const r=t.getBigUint64(e,!0);if(r>mi)throw new Error(Va);return Number(r)}var os=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:ja,ERR_BAD_FORMAT:Ua,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Ca,ERR_CODEC_OUT_OF_MEMORY:Rr,ERR_ENCRYPTED:Ma,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Pa,ERR_ENTRY_DATA_OUT_OF_BOUNDS:_a,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:ka,ERR_EOCDR_NOT_FOUND:Ta,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:M,ERR_INVALID_AUTHENTICATION_CODE:De,ERR_INVALID_COMPRESSED_DATA:Ar,ERR_INVALID_CRC32:zr,ERR_INVALID_FILENAME_VALIDATION:Wa,ERR_INVALID_MAX_APPENDED_DATA_SIZE:Za,ERR_INVALID_PASSWORD:xe,ERR_INVALID_STRICTNESS:La,ERR_INVALID_UNCOMPRESSED_SIZE:gr,ERR_LOCAL_FILE_HEADER_NOT_FOUND:k,ERR_OVERLAPPING_ENTRY:C,ERR_SPLIT_ZIP_FILE:Na,ERR_UNSAFE_FILENAME:Ba,ERR_UNSUPPORTED_COMPRESSION:fr,ERR_UNSUPPORTED_ENCRYPTION:va,ERR_UNSUPPORTED_UINT64:Va,ERR_WORKER_STARTUP_TIMEOUT:Qr,WARNING_APPENDED_DATA:$a,WARNING_COMPRESSED_PATCHED_DATA:qa,WARNING_DUPLICATE_FILENAME:ni,WARNING_MALFORMED_EXTRA_FIELD:Ya,WARNING_MISMATCHED_CENTRAL_DIRECTORY_OFFSET:ei,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:si,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:ci,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:ui,WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME:ii,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:oi,WARNING_MISSING_ZIP64_EXTRA_FIELD:ri,WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY:ai,WARNING_PREPENDED_CENTRAL_DIRECTORY:Qa,WARNING_PREPENDED_DATA:Ja,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:ti,WARNING_UNKNOWN_VERSION:Ga,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:Ka,WARNING_UNSORTED_CENTRAL_DIRECTORY:Ha,WARNING_WRAPPED_ENTRIES_COUNT:Xa,ZipReader:yi,ZipReaderStream:Ei,Ut:async function(t,e,{crc32:r,compressedSize:n,uncompressedSize:o,extraFieldZip64:a}){const i=await Ci(t,e,{crc32:r,compressedSize:n,uncompressedSize:o,zip64:Boolean(a)});if(i&&i.compressedSize==n&&i.uncompressedSize==o)return vi(i.zip64,i.signature)},isZipFile:bi});const as="File already exists",is="Zip file comment exceeds 64KB",ss="Invalid zip file comment (must be a Uint8Array)",cs="File entry comment exceeds 64KB",us="Invalid file entry comment (must be a string)",ls="Invalid date (must be a valid Date instance)",fs="File entry name exceeds 64KB",ws="Version exceeds 65535",ds="The strength must equal 1, 2, or 3",ps="Encryption is not supported in USDZ files",hs="Split zip files are not supported in USDZ files",ms="Encryption is not supported when the 'passThrough' option is set to true (use 'compressed' instead)",ys="Invalid extra field (must be a Map)",Es="Invalid extra field type (must be integer 0..65535)",bs="Invalid extra field data (must be a Uint8Array)",Ss="Extra field data exceeds 64KB",gs=-2147483648,As=2147483647,Rs=BigInt(0),zs=BigInt("0x7fffffffffffffff"),xs="Zip64 is not supported (set the 'zip64' option to 'true')",Ds="Undefined uncompressed size",Fs="Undefined compression method",Os="Undefined CRC32",Is="Undetermined size",Us="Undefined reader",Ts="Invalid reader (must be a Reader instance, a ReadableStream instance, or an object with a 'readable' property)",ks="Zip file not empty",Cs="Invalid uid (must be integer 0..2^32-1)",Ms="Invalid gid (must be integer 0..2^32-1)",vs="Invalid UNIX mode (must be integer 0..65535)",Ns="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",_s="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",js="Invalid msdosAttributesRaw (must be integer 0..255)",Ps="Invalid msdosAttributes (must be an object with boolean flags)",Bs="Invalid level (must be integer 0..9)",Ls="Signature data exceeds 64KB",Ws="Invalid entry option (must be an entry returned by ZipReader#getEntries())",Zs="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Vs="compression unavailable",Hs="clamped last modification date",Gs=new Uint8Array([7,0,2,0,65,69,3,0,0]),qs="infozip",Ys="unix",Ks=[8,9,5,3];let Xs=0;const $s=[];class Js{constructor(t,e={}){t=new Bo(t);const{availableSize:r=T,maxSize:n=T}=t,o=r>0&&r!==T&&n>0&&n!==T;if(o&&e[tt])throw new Error(hs);Object.assign(this,{writer:t,Tt:o,options:e,kt:new Map,Ct:new Set,offset:e[Q]===U?t.size||t.writable.size||0:e[Q],Mt:e[Q]===U?0:e[Q]-(t.size||t.writable.size||0),vt:new Set,Nt:[],warnings:[],_t:0,jt:0,Pt:U,Bt:!1})}prependZip(t){return rc(this,async function(t,e){if(t.Ct.size)throw new Error(ks);await nc(t,e)}(this,t))}appendZip(t,e={}){return rc(this,nc(this,t,e))}add(e="",n,o={}){const a=this,{vt:i}=a,s=async function(e,n,o,a){const i=(a=Object.assign({},a))[ot];if(i!==U){const{Lt:t,Wt:r}=ic(i,St(Cc(e,a,V)),Cc(e,a,ea));delete a[ot],a=Object.assign(t,r,a)}if(Cc(e,a,ya)&&!n.endsWith(D)&&(n+=D),e.Ct.has(n))throw new Error(as);e.Ct.add(n),Xs<_t().maxWorkers?Xs++:await new Promise(t=>$s.push(t));try{return await async function(e,n,o,a){const i=sc(e,n,a);({name:n}=i);const s=cc(e,n,a),{comment:c}=s,u=a[ga];e.kt.set(n,U);const l=e.Pt,f={};let w,d;s.Zt.keepOrder&&(f.Vt=new Promise(t=>w=t)),e.Pt=f;try{const{Zt:c}=s;0==c.level||c.compressionMethod!==U||c.Ht||await on(_t())||(c.level=0,Go(e.warnings,Vs,n));const u=await async function(t,e,{Zt:r},n){if(r.Ht&&!e&&!Cc(t,n,ya))throw new Error(Us);let o;if(e){if(e=new Po(e),await Wo(e),!e.readUint8Array&&!e.readable)throw new Error(Ts);({size:o}=e)}return Object.assign({reader:e},lc(t,Boolean(e),o,r,n))}(e,o,s,a);({reader:o}=u);const p=bc(e.writer),h=Ec(e.writer);let m=a.crc32===U?a[Sa]:a.crc32;const y=u.Zt.encrypted&&!c.zipCrypto;if(c.Ht&&!c.Gt&&y&&(m=U),c.Ht&&o&&!y&&m===U)throw new Error(Os);const E=wc(a=Object.assign({},a,i.Zt,s.Zt,u.Zt,{signature:a[Sa],crc32:m,offset:e.offset-p,diskNumberStart:h,[tt]:e.options[tt]}));E.qt&&Go(e.warnings,Hs,n);const b=hc(a),S=Hc(E.Yt,b.Kt);d=await async function(e,n,o,a,i){const{kt:s,writer:c}=e,{keepOrder:u,dataDescriptor:l,Xt:f,signal:w}=i,{$t:d,Ot:p,Jt:h,Qt:m}=a,y=e.options[tt];let E,b,S,g,A,R,z,x=p,D=0;const O=u&&h?h.Vt:U;s.set(n,x);try{i.bufferedWrite||!u||e.te||e._t||e.jt||!l&&!f?(E=!0,e._t++,z=i.createTempStream?await i.createTempStream():new TransformStream(U,U,{highWaterMark:T}),z.size=0,await Wo(c)):(b=!0,e.jt++,z=c,await O,await I()),await Wo(z);const p=bc(c);e.Tt&&!E&&await Fc(e,c),y&&!E&&dc(a,e.offset-p);const{Yt:h}=d;E||await k();const m=Ec(c),S=gc(e,c);if(x.diskNumberStart=m,E||(A=!0,R=c.size,await Oc(z,h)),x=await async function(e,n,{diskNumberStart:o,Vt:a},i,s,c){const{$t:u,ee:l,re:f}=i,{ne:w,oe:d,lastModDate:p,rawLastModDate:h,encrypted:m,compressed:y,version:E,compressionMethod:b,ae:S,ie:g,se:A,ce:R,ue:z,le:x,fe:D,we:F,de:O}=u,{Kt:I}=l,{rawFilename:T,lastAccessDate:k,creationDate:C,password:M,rawPassword:v,level:N,useUnicodeFileNames:_,zip64:j,pe:P,he:B,me:L,zipCrypto:W,dataDescriptor:Z,directory:V,executable:H,versionMadeBy:G,rawComment:q,rawExtraField:Y,ye:K,useWebWorkers:X,onstart:$,onprogress:J,onend:Q,signal:tt,encryptionStrength:et,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:ot,externalFileAttributes:at,uid:it,gid:st,unixMode:ct,symlink:ut,setuid:lt,setgid:ft,sticky:wt,unixExternalUpper:dt,msdosAttributesRaw:pt,msdosAttributes:ht,useCompressionStream:mt,Ht:yt,Gt:bt,format:St,codecURI:gt}=c,At={Vt:a,versionMadeBy:G,zip64:j,pe:P,directory:Boolean(V),executable:Boolean(H),filenameUTF8:Boolean(_),rawFilename:T,commentUTF8:Boolean(_),rawComment:q,ae:S,ie:g,se:A,le:x,fe:D,we:F,de:O,rawExtraField:Y,ye:K,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:ot,externalFileAttributes:at,diskNumberStart:o,uid:it,gid:st,unixMode:ct,symlink:Boolean(ut),setuid:lt,setgid:ft,sticky:wt,unixExternalUpper:dt,msdosAttributesRaw:pt,msdosAttributes:ht};let{crc32:Rt,uncompressedSize:zt}=c,xt=0;yt||(zt=0);const{writable:Dt}=n;if(e){const o=e.size,a=ar(Ho(e,{size:o})),i={options:{codecType:Kr,inputSize:o,level:N,rawPassword:v,password:M,encryptionStrength:et,zipCrypto:m&&W,passwordVerification:m&&W&&h>>8&r,computeCrc32:!yt,compressed:y&&!yt,encrypted:m&&!bt,useWebWorkers:X,useCompressionStream:mt,format:St,codecURI:gt,compressionMethod:b},config:s,F:{signal:tt,size:o,onstart:$,onprogress:J,onend:Q}};try{const e=await Tn({readable:a,writable:Dt},i);if(xt=e.outputSize,n.size+=xt,Et(tt),yt||(zt=e.inputSize,m&&!W||(Rt=e.crc32)),!L&&xt>=t||!B&&zt>=t)throw new Error(xs)}catch(t){const{outputSize:e}=i;throw e!==U?n.size+=e:Kt(t)&&t.outputSize!==U&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,$t:n,ee:o},{zip64:a,zipCrypto:i,Ht:s,dataDescriptor:c}){const{oe:u,encrypted:l}=n,{Ee:f,be:w}=o;l&&!i&&!s||t===U||(Wc(u,10,t),c&&Wc(f,w,t)),a?c&&(Zc(f,w+4,BigInt(e)),Zc(f,w+12,BigInt(r))):(Wc(u,14,e),Wc(u,18,r),c&&(Wc(f,w+4,e),Wc(f,w+8,r)))}({crc32:Rt,compressedSize:xt,uncompressedSize:zt,$t:u,ee:l},c),Z&&await Oc(n,I),Object.assign(At,{uncompressedSize:zt,compressedSize:xt,lastModDate:p,rawLastModDate:h,creationDate:C,lastAccessDate:k,encrypted:Boolean(m),zipCrypto:Boolean(W),size:f+xt,compressionMethod:b,version:E,ne:w,oe:d,signature:Rt,crc32:!m||W||yt?Rt:U,ce:R,ue:z,he:B,me:L}),At}(o,z,x,a,_t(),i),E||(A=!1),s.set(n,x),x.filename=n,E){if(await Promise.all([z.writable.getWriter().close(),O]),await I(),e.Tt&&await Fc(e,c),g=!0,R=c.size,await k(),x.diskNumberStart=Ec(c),x.offset=gc(e,c),y){const t=a.re;dc(a,e.offset-bc(c)),x.size+=a.re-t}!function({rawFilename:t,encrypted:e,zip64:r,ie:n,crc32:o,compressedSize:a,uncompressedSize:i,he:s,me:c},u,{dataDescriptor:l,Ht:f}){if(l||((!e||f&&o!==U)&&Wc(u,14,o),c||Wc(u,18,a),s||Wc(u,22,i)),r&&n){const e=F+Hc(t)+4;Zc(u,e,BigInt(i)),Zc(u,e+8,BigInt(a))}}(x,d.Se,i),await Oc(c,d.Yt),await Ic(z.readable,c,w,t=>D+=t),c.size+=z.size,g=!1}else x.diskNumberStart=m,x.offset=S;return e.offset+=x.size,x}catch(t){if(g||A){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-R,E&&(e.offset+=D)}throw s.delete(n),t}finally{if(E&&e._t--,b&&e.jt--,m&&m(O),S&&S(),E&&z&&z.dispose)try{await z.dispose()}catch{}}async function I(){e.te=!0;const{ge:t}=e;e.ge=new Promise(t=>S=()=>{e.te=!1,t()}),await t}async function k(){Sc(c,Hc(d.Yt))&&await c.closeDisk()}}(e,n,o,{$t:E,ee:b,re:S,Ot:f,Jt:l,Qt:w},a)}catch(t){throw e.kt.delete(n),t}finally{w&&w(l&&l.Vt)}return Object.assign(d,{name:n,comment:c,extraField:u}),new Fa(d)}(e,n,o,a)}catch(t){throw e.Ct.delete(n),t}finally{const t=$s.shift();t?t():Xs--}}(a,e,n,o);i.add(s);const c=()=>i.delete(s);return Promise.prototype.then.call(s,c,c),rc(a,s)}remove(t){const{Ct:e,kt:r}=this;if(typeof t==j&&(t=r.get(t)),t&&t.filename!==U){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=B,n={}){const o=this,{vt:a,writer:d}=this,{writable:p}=d;if(o.Bt)return ec(d);if(!(r instanceof Uint8Array))throw new Error(ss);if(Hc(r)>e)throw new Error(is);for(;a.size;)await Promise.allSettled(Array.from(a));await Promise.allSettled(o.Nt.map(t=>t.Ae));const h=o.Nt.filter(t=>t.Re&&!t.ze);if(h.length){const t=h.map(t=>t.error);h.forEach(t=>t.ze=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,o){const{xe:a,De:d}=mc(r.kt),{Fe:p,Oe:h,Ie:m}=await async function(r,n,o){const{kt:a,writer:i}=r,c=new Uint8Array(n);await Wo(i);let u=0,l=0,w=Ec(i),d=bc(i),p=0;for(const[r,n]of Array.from(a.values()).entries()){const{offset:h,rawFilename:m,ae:y,de:E,se:b,le:S,we:g,rawExtraField:A,ye:R,rawComment:z,versionMadeBy:x,ne:D,oe:F,he:O,me:I,Ue:U,Te:T,internalFileAttributes:k,externalFileAttributes:C,diskNumberStart:M,uncompressedSize:v,compressedSize:N}=n,_=Hc(y,E,b,S,g,A,R),j=f+Hc(m,z)+_;Sc(i,u+j-l)&&(await Oc(i,c.slice(l,u)),l=u,p=0,await i.closeDisk()),0==r&&(w=Ec(i),d=bc(i)),O||Wc(F,18,v),I||Wc(F,14,N),(T||U)&&n.version<45&&Lc(F,0,45);const P=yc(j);if(P.ke(s),P.Ce(x),P.Me(D.subarray(0,24)),P.Ce(_),P.Ce(Hc(z)),P.Ce(U?e:M),P.Ce(k),P.ke(C),P.ke(T?t:h),P.Me(m),P.Me(y),P.Me(E),P.Me(b),P.Me(S),P.Me(g),P.Me(A),P.Me(R),P.Me(z),Vc(c,P.ct,u),u+=j,p++,o.onprogress)try{await o.onprogress(r+1,a.size,new Fa(n))}catch{}}return await Oc(i,l?c.slice(l):c),{Fe:{diskNumber:w,diskOffset:d},Oe:{diskNumber:Ec(i),ve:p},Ie:c}}(r,a,o),y=await async function(t,r,n){const o=vc(t,n,nt);if(o){const n=await o(r),a=Hc(n);if(a>e)throw new Error(Ls);const s=yc(6+a);s.ke(i),s.Ce(a),s.Me(n);const{writer:c}=t;return Sc(c,Hc(s.ct))&&await c.closeDisk(),await Oc(c,s.ct),6+a}return 0}(r,m,o);await async function(r,n,o,a){const{writer:i}=r,{Fe:s,Oe:f,Ne:d,De:p}=a;let{xe:h}=a,m=r.kt.size,y=s.diskNumber,E=gc(r,s);const b=Hc(n);if(b>e)throw new Error(is);let S=Cc(r,o,wa),g=Ec(i);if(Sc(i,(S?98:w)+b)&&g++,E>=t||h>=t||m>=e||g>=e){if(!1===S)throw new Error(xs);S=!0}else S===U&&p&&(S=!0);const A=yc(S?98:w);Sc(i,Hc(A.ct)+b)&&await i.closeDisk(),g=Ec(i);let R=g==f.diskNumber?f.ve:0;S&&(A.ke(u),A._e(44),A.Ce(45),A.Ce(45),A.ke(g),A.ke(y),A._e(R),A._e(m),A._e(h),A._e(E),A.ke(l),A.ke(g),A._e(BigInt(gc(r,i))+BigInt(h)+BigInt(d)),A.ke(g+1),Cc(r,o,"supportZip64SplitFile",!0)&&(g=e,y=e),R=e,m=e,E=t,h=t),A.ke(c),A.Ce(g),A.Ce(y),A.Ce(R),A.Ce(m),A.ke(h),A.ke(E),A.Ce(b),await Oc(i,A.ct),b&&await Oc(i,n)}(r,n,o,{Fe:p,Oe:h,xe:a,Ne:y,De:d})}(o,r,n),o.Bt=!0,!Lo(d)&&Cc(o,n,K)||await p.getWriter().close(),ec(d)}[L](){return this.close()}}class Qs{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Js(r,t),this.vt=new Set}transform(t){const e=this.zipWriter;let r;const{readable:n,writable:o}=new TransformStream({start(t){r=t},flush:()=>{!async function(){try{await e.close()}catch(t){await oc(e,t)}}()}});return ac(this,this.zipWriter.add(t,n),t=>r.error(t)),{readable:this.readable,writable:o}}writable(t){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}});return ac(this,this.zipWriter.add(t,r),t=>e.error(t)),n}async close(t,e={}){const{zipWriter:r}=this,n=(await Promise.allSettled(Array.from(this.vt))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await oc(r,t),t}try{return await r.close(t,e)}catch(t){throw await oc(r,t),t}}}class tc extends Promise{then(t,e){const{je:r}=this;return r&&(r.ze=!0),super.then(t,e)}}function ec(t){return t.getData?t.getData():t.writable}function rc(t,e){const r=new tc((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.je=n,n.Ae=Promise.prototype.then.call(r,U,t=>Object.assign(n,{Re:!0,error:t})),t.Nt.push(n),r}async function nc(t,e,r={}){const{vt:n,Ct:a,kt:i}=t,s=mt(r.filter);for(;n.size;)await Promise.allSettled(Array.from(n));let c;const u=new Promise(t=>c=t);n.add(u);const l=[];let f;try{e=new Po(e),await Wo(e),e.size!==U&&e.readUint8Array||(e=new uo(await ir(e.readable)),await Wo(e));const{ZipReader:r,Ut:n}=await Promise.resolve().then(function(){return os}),c=new r(e),u=await c.getEntries(),w=[];for(const t of u)s&&!await s(t)||w.push(t);await c.close(),await Wo(t.writer);const{directoryOffset:d,At:p}=c;w.forEach(t=>{const{filename:e}=t;if(p.has(t))throw new Error(M);if(a.has(e))throw new Error(as);a.add(e),l.push(e)}),t.te=!0;const{ge:h}=t;t.ge=new Promise(e=>f=()=>{t.te=!1,e()}),await h,t.Tt&&(delete t.Tt,!s&&await async function(t){return Bc(Yt(await Vo(t,0,4)),0)==o}(e)||(await Oc(t.writer,Dc()),t.offset+=4));const m=await async function(t,e,r,n,o,a,i){const{writer:s}=t,c=new Map;if(s.closeDisk||a){const u=Array.from(r).sort((t,r)=>xc(e,t)-xc(e,r)),l=function(t,e,r){const n=new Array(e.length);let o=r;for(let a=e.length-1;a>=0;a--){const i=xc(t,e[a]),s=e[a+1];s&&xc(t,s)>i&&(o=Math.min(xc(t,s),r)),n[a]=o}return n}(e,u,o),f=new Set(n),w=new Map;for(let t=0;t<u.length;t++){const r=u[t];if(f.has(r)){const n=xc(e,r),o=await zc(e,n);if(o===U)throw new Error(k);let a=n+o+r.compressedSize;if(r.bitFlag.dataDescriptor){const n=await i(e,a,r);a=n===U?Math.max(a,l[t]):a+n}if(a>l[t])throw new Error(C);l[t]=a,w.set(r,o)}}let d,p=0;for(let r=0;r<u.length;r++){const n=u[r];if(f.has(n)){const o=xc(e,n);o<p?c.set(n,d):(a||await Rc(t,e,p,o-p),s.closeDisk&&Sc(s,w.get(n))&&await s.closeDisk(),d={offset:gc(t,s),diskNumberStart:Ec(s)},c.set(n,d),await Rc(t,e,o,l[r]-o),p=l[r])}}a||await Rc(t,e,p,o-p)}else{const n=t.offset;await Rc(t,e,0,o),r.forEach(t=>c.set(t,{offset:n+xc(e,t),diskNumberStart:0}))}return c}(t,e,u,w,d,Boolean(s),n);w.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,rawBitFlag:o,uncompressedSize:a,compressedSize:s,extraFieldZip64:c}=t;let{compressionMethod:u,rawExtraField:l}=t;l=Ac(l||B),t.extraFieldAES&&(u=99);const f=Hc(l),w=Boolean(c)&&c.uncompressedSize!==U,d=Boolean(c)&&c.compressedSize!==U,{ne:p,oe:h}=Gc({version:e,bitFlag:o,compressionMethod:u,uncompressedSize:a,compressedSize:s,rawLastModDate:r,rawFilename:n,me:d,he:w,extraFieldLength:f}),{crc32:y}=t;y!==U&&Wc(h,10,y);const{offset:E,diskNumberStart:b}=m.get(t);Object.assign(t,{pe:!0,he:w,me:d,offset:E,diskNumberStart:b,Ue:!1,ae:B,de:B,se:B,le:B,fe:B,we:B,rawExtraField:l,ye:B,ne:p,oe:h}),i.set(t.filename,t)})}catch(t){throw l.forEach(t=>a.delete(t)),t}finally{c(),n.delete(u),f&&f()}}async function oc(t,e){try{await t.writer.writable.abort(e)}catch{}}function ac(t,e,r){t.vt.add(e),e.catch(t=>{try{r(t)}catch{}})}function ic(t,e,n){if(null===t||typeof t!=_||Array.isArray(t))throw new Error(Ws);const{externalFileAttributes:o,versionMadeBy:a,comment:i,lastModDate:s,rawLastModDate:c,creationDate:u,lastAccessDate:l,uncompressedSize:f,encrypted:w,zipCrypto:d,crc32:p,compressionMethod:h,extraFieldAES:m,extraFieldUnix:y,internalFileAttributes:E,extraField:b,bitFlag:S,directory:g,uid:A,gid:R}=t,z={externalFileAttributes:o,versionMadeBy:a,comment:i,lastModDate:s,creationDate:u,lastAccessDate:l,internalFileAttributes:E,directory:g};S&&S.languageEncodingFlag&&(z[$]=!0);const x=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{Oa.has(r)||e.set(r,t.data)}),e.size)return e}}(b);x&&(z[ga]=x),A===U&&R===U||Object.assign(z,{uid:A,gid:R,unixExtraFieldType:y?Ys:qs});const D={};if(e&&!g)if(Object.assign(D,{uncompressedSize:f,crc32:p,compressionMethod:h}),e!==lt&&Object.assign(D,{encrypted:w,zipCrypto:d,encryptionStrength:m?m.strength:U}),S&&(D.dataDescriptor=S.dataDescriptor,D[X]=Ks[S.level]),n===U)D.rawLastModDate=c;else if(e!==lt&&d&&(!S||S.dataDescriptor)&&n instanceof Date&&function(t){let e=new Date(2e3*Math.ceil(Math.floor(t.getTime()/1e3)/2));return e<I?e=I:e>O&&(e=O),(e.getHours()<<3|e.getMinutes()>>3)&r}(n)!=(c>>>8&r))throw new Error(Zs);return{Lt:z,Wt:D}}function sc(n,o,a){let i=Cc(n,a,fa),s=Cc(n,a,ha,i?20:768);const c=Cc(n,a,Ea),u=Nc(n,a,"uid"),l=Nc(n,a,"gid");let f=Nc(n,a,Aa),w=Cc(n,a,"unixExtraFieldType"),d=Cc(n,a,Ra),p=Cc(n,a,za),h=Cc(n,a,xa);if(At(u,t,Cs),At(l,t,Ms),At(f,e,vs),w!==U&&w!==qs&&w!==Ys)throw new Error(Ns);if(w===Ys&&(u!==U&&u>e||l!==U&&l>e))throw new Error(_s);w!==U||u===U&&l===U||(w=qs);let m=Nc(n,a,ua),y=Cc(n,a,la);const E=m!==U||y!==U;if(u!==U||l!==U||f!==U||w||c?(i=!1,s=s&r|768):E&&(i=!0,s&=r),At(m,r,js),y&&(typeof y!==_||Array.isArray(y)))throw new Error(Ps);if(s>e)throw new Error(ws);let b=Cc(n,a,ca);const S=b!==U;S||(b=0),!a[ya]&&o.endsWith(D)&&(a[ya]=!0);const g=Cc(n,a,ya);if(g?(o.endsWith(D)||(o+=D),S||(b=16,i||(b|=16877<<16))):i||S||(b=c?493<<16:27525120),!i){const t=f!==U||Boolean(d||p||h);f=f===U?b>>16&e:f&e,d?f|=z:d=Boolean(f&z),p?f|=x:p=Boolean(f&x),h?f|=512:h=Boolean(512&f),S&&!t||(g?f=-61441&f|R:f&A||(f|=32768),b=(f&e)<<16|b&e)}({msdosAttributesRaw:m,msdosAttributes:y}=function(t,e){if(t!==U)t&=r;else if(e!==U){const{readOnly:n,hidden:o,system:a,directory:i,archive:s}=e;let c=0;n&&(c|=1),o&&(c|=2),a&&(c|=4),i&&(c|=16),s&&(c|=32),t=c&r}return e===U&&(e={readOnly:Boolean(1&t),hidden:Boolean(2&t),system:Boolean(4&t),directory:Boolean(16&t),archive:Boolean(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}}(m,y)),E&&(b=b&t|m&r);const F=b>>16&e,O=f!==U&&40960==(f&A);return{name:o,Zt:{versionMadeBy:s,msDosCompatible:Boolean(i),externalFileAttributes:b,unixExternalUpper:F,uid:u,gid:l,unixMode:f,unixExtraFieldType:w,symlink:O,setuid:d,setgid:p,sticky:h,msdosAttributesRaw:m,msdosAttributes:y}}}function cc(t,r,n){const o=vc(t,n,"encodeText")||se;let a=o(r,at);if(a===U&&(a=se(r)),Hc(a)>e)throw new Error(fs);const i=n[Ko]||"";if(typeof i!=j)throw new Error(us);let s=o(i,it);if(s===U&&(s=se(i)),Hc(s)>e)throw new Error(cs);const c=Cc(t,n,pa);if(c!==U&&c>e)throw new Error(ws);const u=Mc(t,n,ea,new Date),l=Cc(t,n,ra),f=Mc(t,n,na),w=Mc(t,n,aa),d=Cc(t,n,sa,0),p=St(Cc(t,n,V)),h=Boolean(p),m=!0===p;let y=Cc(t,n,W),E=Cc(t,n,Z);bt(y,E),y=y&&y.length?y:U,E=E&&E.length?E:U;const b=Nc(t,n,"encryptionStrength",3),S=Cc(t,n,ma),g=Cc(t,n,"extendedTimestamp",!0),A=Cc(t,n,"ntfsTimestamp"),R=Cc(t,n,"keepOrder",!0),z=Cc(t,n,q),x=Cc(t,n,"bufferedWrite"),D=vc(t,n,"createTempStream"),F=Cc(t,n,"dataDescriptorSignature",!0),O=yt(Cc(t,n,H));Et(O);const I=Cc(t,n,$,!qc(a)||!qc(s)),T=Cc(t,n,ba),k=h||T===U?U:yr(T);if(!h&&T!==U&&0!==T&&8!==T&&!k)throw new Error(fr);let C=Nc(t,n,X);if(At(C,9,Bs),t.options[tt]){if(y!==U||E!==U)throw new Error(ps);C===U&&T===U&&(C=0)}h&&(C=Rt(n[X]));let M=Cc(t,n,Y),v=Cc(t,n,J);x&&v===U&&(v=!1),(v===U||S&&!m)&&(v=!0),C!==U&&6!=C&&(M=!1);const N=Cc(t,n,wa);if(!(S||y===U&&E===U||Number.isInteger(b)&&b>=1&&b<=3))throw new Error(ds);const _=uc(n[ga]),P=uc(n.localExtraField),B=uc(n.centralExtraField);return{comment:i,Zt:{rawFilename:a,rawComment:s,version:c,lastModDate:u,rawLastModDate:l,lastAccessDate:f,creationDate:w,internalFileAttributes:d,Ht:h,Gt:m,password:y,rawPassword:E,encryptionStrength:b,zipCrypto:S,extendedTimestamp:g,ntfsTimestamp:A,keepOrder:R,useWebWorkers:z,bufferedWrite:x,createTempStream:D,dataDescriptorSignature:F,signal:O,useUnicodeFileNames:I,compressionMethod:T,format:k?k.format:U,codecURI:k?k.codecURI:U,Pe:k?k.versionNeeded:U,level:C,useCompressionStream:M,dataDescriptor:v,zip64:N,rawExtraField:_,Be:P,ye:B}}}function uc(t){if(!t)return B;if(!(t instanceof Map))throw new Error(ys);let r=0,n=0;t.forEach((t,n)=>{if(gt(n,e,Es),!(t instanceof Uint8Array))throw new Error(bs);if(Hc(t)>e)throw new Error(Ss);r+=4+Hc(t)});const o=new Uint8Array(r),a=Yt(o);return t.forEach((t,e)=>{Lc(a,n,e),Lc(a,n+2,Hc(t)),Vc(o,t,n+4),n+=4+Hc(t)}),o}function lc(e,r,n,o,a){const{Ht:i,Gt:s,zipCrypto:c,password:u,rawPassword:l,encryptionStrength:f}=o;let{dataDescriptor:w,zip64:d,level:p,compressionMethod:h}=o,m=0,y=0,E=!1;if(i&&r){if(y=a[$o],y===U)throw new Error(Ds);if(h===U)throw new Error(Fs)}const b=!0===d,S=Cc(e,a,da);if(r&&s&&!S&&Hc(u,l))throw new Error(ms);const g=r&&(Boolean(u&&Hc(u)||l&&Hc(l))||s&&S);r||(p=0,h=0);const A=Ia(g,c,f);r&&(i?(a.uncompressedSize=y,m=n===U?_c(y)+A:n+(s?0:A)):n===U?(w=!0,(d||d===U)&&(d=E=!0,m=4294967296)):(a.uncompressedSize=y=n,m=(jc(h,p)?_c(y):y)+A));const R=!(g||r&&(0!==n||i)||jc(h,p));R&&Cc(e,a,J)===U&&(w=!1);const z=b||E||y>=t,x=b||m>=t;if(z||x){if(!1===d)throw new Error(xs);d=!0}return d=d||!1,{Le:m,Zt:{dataDescriptor:w,Xt:R,zip64:d,pe:b,We:E,he:z,me:x,uncompressedSize:y,level:p,compressionMethod:h,encrypted:g}}}function fc(e,r,n){const o=e.slice().sort((t,e)=>n?e-t:t-e);let a=r,i=0;for(const e of o){if(a>=t)break;a+=e,i++}return i}function wc(t){const{rawFilename:r,lastModDate:o,rawLastModDate:a,lastAccessDate:i,creationDate:s,level:c,zip64:u,zipCrypto:l,useUnicodeFileNames:f,dataDescriptor:w,directory:d,rawExtraField:p,Be:y,encryptionStrength:S,extendedTimestamp:g,ntfsTimestamp:A,Ht:R,encrypted:z,he:x,me:D,uncompressedSize:T,We:k,crc32:C}=t;let{version:M,compressionMethod:v}=t;const N=!d&&jc(v,c);let _;const j=R||!N,P=u&&(t.bufferedWrite||!w||!x&&!D||j&&!k),L=P||u&&w&&(x||D);if(u&&(x||D)){const t=20,e=yc(t);if(e.Ce(1),e.Ce(t-4),_=e.ct,P&&(e._e(T),j)){const t=Ia(z,l,S);e._e(R?0:T+t)}}else _=B;let W,Z,V,H,G;if(z&&!l){const t=yc(Hc(Gs)+2);t.Ce(h),t.Me(Gs),W=t.ct,W[8]=S}else W=B;if(g){const t=Tc(o),e=(q=t)>=gs&&q<=As;if(e){const e=9+(i?4:0)+(s?4:0),r=yc(e);H=1+(i?2:0)+(s?4:0),G=t,r.Ce(m),r.Ce(e-4),r.Ze(H),r.ke(t),i&&r.ke(kc(Tc(i))),s&&r.ke(kc(Tc(s))),V=r.ct}else V=B;if(A===U?!e||Boolean(i||s):A)try{const t=Uc(o),e=yc(36);e.Ce(10),e.Ce(32),e.Ve(4),e.Ce(1),e.Ce(24),e._e(t),e._e(i?Uc(i):t),e._e(s?Uc(s):t),Z=e.ct}catch{Z=B}else Z=B}else Z=V=B;var q;let Y,K;try{const{uid:r,gid:n,unixExtraFieldType:o}=t;if(o!=qs||r===U&&n===U)if(o!=Ys||r===U&&n===U)Y=K=B;else{const t=yc(8);t.Ce(b),t.Ce(4),t.Ce((r===U?0:r)&e),t.Ce((n===U?0:n)&e),Y=t.ct;const o=yc(4);o.Ce(b),o.Ce(0),K=o.ct}else{const t=pc(r===U?0:r),e=pc(n===U?0:n),o=3+t.length+e.length,a=yc(4+o);a.Ce(E),a.Ce(o),a.Ze(1),a.Ze(t.length),a.Me(t),a.Ze(e.length),a.Me(e),Y=K=a.ct}}catch{Y=K=B}v===U&&(v=N?8:0),M===U&&(M=0!=v||d||z?20:10);const{Pe:X}=t;N&&X!==U&&(M=M>X?M:X),u&&(M=M>45?M:45),z&&!l&&(M=M>51?M:51,R&&C!==U&&(W[4]=1),Lc(Yt(W),9,v),v=99);const $=L?Hc(_):0,J=$+Hc(W,V,Z,Y,p,y);if(J+(t[tt]?67:0)>e)throw new Error(Ss);const Q=new Date(2e3*Math.ceil(Math.floor(o.getTime()/1e3)/2)),et=Q<I?I:Q>O?O:Q,rt=Hc(V)?new Date(1e3*Tc(o)):Hc(Z)?o:et,{ne:nt,oe:ot,rawLastModDate:at}=Gc({version:M,bitFlag:Yc(c,f,w,z,v),compressionMethod:v,uncompressedSize:T,lastModDate:et,rawLastModDate:a,rawFilename:r,me:D,he:x,extraFieldLength:J}),it=yc(F+Hc(r)+J),st=it.ct,ct=Yt(st);return it.ke(n),it.Me(nt),it.Me(r),L&&it.Me(_),it.Me(W),it.Me(V),it.Me(Z),it.Me(Y),it.Me(p),it.Me(y),w&&(D||Wc(ct,18,0),x||Wc(ct,22,0)),{Yt:st,Se:ct,ne:nt,oe:ot,lastModDate:rt,qt:rt===et&&Q.getTime()!=et.getTime(),rawLastModDate:at,encrypted:z,compressed:N,version:M,compressionMethod:v,ce:H,ue:G,ae:B,ie:$,se:V,le:Z,fe:Y,we:K,de:W,extraFieldLength:J}}function dc(t,e){const{$t:r}=t;let{Yt:n,extraFieldLength:o}=r,a=64-(e+Hc(n))%64;a<4&&(a+=64);const i=new Uint8Array(a),s=Yt(i);Lc(s,0,y),Lc(s,2,a-4);const c=n;r.Yt=n=new Uint8Array(Hc(c)+a),Vc(n,c),Vc(n,i,Hc(c));const u=Yt(n);Lc(u,28,o+a),r.Se=u,t.re+=a}function pc(t){const e=new Uint8Array(4);Yt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function hc({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,o=B,i=0,s=t?20:12;return r&&(s+=4),e&&(o=new Uint8Array(s),n=Yt(o),r&&(i=4,Wc(n,0,a))),{Kt:o,Ee:n,be:i}}function mc(r){let n=0,o=!1;for(const[,a]of r){const{rawFilename:r,de:i,rawComment:s,le:c,we:u,rawExtraField:l,ye:w,ce:d,ue:p,pe:h,uncompressedSize:y,compressedSize:E}=a;let{he:b,me:S}=a;h||(b&&y<t&&(b=a.he=!1),S&&E<t&&(S=a.me=!1)),o=o||b||S;const g=a.offset>=t,A=a.diskNumberStart>=e;let R,z;if(g||A||b||S){const t=4+(b?8:0)+(S?8:0)+(g?8:0)+(A?4:0),e=yc(t);e.Ce(1),e.Ce(t-4),b&&e._e(y),S&&e._e(E),g&&e._e(a.offset),A&&e.ke(a.diskNumberStart),R=e.ct}else R=B;if(a.ae=R,a.Te=g,a.Ue=A,p===U)z=B;else{const t=yc(9);t.Ce(m),t.Ce(5),t.Ze(d),t.ke(p),z=t.ct}a.se=z;const x=Hc(R,i,c,u,z,l,w);if(x>e)throw new Error(Ss);n+=f+Hc(r,s)+x}return{xe:n,De:o}}function yc(t){const e=new Uint8Array(t),r=Yt(e);let n=0;return{ct:e,Ze:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Ce:t=>{Lc(r,n,t),n+=2},ke:t=>{Wc(r,n,t),n+=4},_e:t=>{Zc(r,n,BigInt(t)),n+=8},Me:t=>{Vc(e,t,n),n+=Hc(t)},Ve:t=>n+=t}}function Ec(t){const{diskNumber:e=0}=t;return e}function bc(t){const{diskOffset:e=0}=t;return e}function Sc(t,e){const{availableSize:r=T}=t;return e>r}function gc(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.Mt:0)}function Ac(t){const e=Yt(t);let r=0;for(;r+4<=Hc(t);){const n=4+Pc(e,r+2);if(1==Pc(e,r))return Ac(Gt(t.subarray(0,r),t.subarray(Math.min(r+n,Hc(t)))));r+=n}return t}async function Rc(t,e,r,n){if(n>0){const{writer:o}=t;let a=0;try{await Ic(Ho(e,{offset:r,size:n}),o,U,t=>a+=t)}catch(e){if(a){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}}throw e}finally{o.size+=a,t.offset+=a}}}async function zc(t,e){const r=e>=0&&e+F<=t.size?await Vo(t,e,F):B;if(Hc(r)<F)return U;const o=Yt(r);return Bc(o,0)!=n?U:F+Pc(o,26)+Pc(o,28)}function xc(t,{offset:e,diskNumberStart:r}){return e+(t.ht?t.ht(r):0)}function Dc(){const t=new Uint8Array(4);return Wc(Yt(t),0,o),t}async function Fc(t,e){delete t.Tt,await Oc(e,Dc()),t.offset+=4}async function Oc(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Hc(e),await n.write(e)}finally{n.releaseLock()}}async function Ic(t,e,r,n){const o=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){await o.ready,await o.write(t),n(Hc(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{o.releaseLock()}}function Uc(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<Rs?Rs:e>zs?zs:e}}function Tc(t){return Math.floor(t.getTime()/1e3)}function kc(t){return Math.min(As,Math.max(gs,t))}function Cc(t,e,r,n){const o=e[r]===U?t.options[r]:e[r];return o===U?n:o}function Mc(t,e,r,n){const o=Cc(t,e,r,n);if(null===o)return n;if(o!==U&&(typeof o.getTime!=N||Number.isNaN(o.getTime())))throw new Error(ls);return o}function vc(t,e,r){return mt(Cc(t,e,r))}function Nc(t,e,r,n){return Rt(Cc(t,e,r,n))}function _c(t){return t+5*(Math.floor(t/16383)+1)}function jc(t,e){return t===U?e===U||e>0:0!==t}function Pc(t,e){return t.getUint16(e,!0)}function Bc(t,e){return t.getUint32(e,!0)}function Lc(t,e,r){t.setUint16(e,r,!0)}function Wc(t,e,r){t.setUint32(e,r,!0)}function Zc(t,e,r){t.setBigUint64(e,r,!0)}function Vc(t,e,r){t.set(e,r)}function Hc(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function Gc({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:o,compressedSize:a,lastModDate:i,rawLastModDate:s,rawFilename:c,me:u,he:l,extraFieldLength:f}){const w=yc(26),d=w.ct,p=Yt(d);if(w.Ce(e),w.Ce(r),w.Ce(n),s===U){const t=new Uint32Array(1),e=Yt(t);Lc(e,0,(i.getHours()<<6|i.getMinutes())<<5|i.getSeconds()/2),Lc(e,2,(i.getFullYear()-1980<<4|i.getMonth()+1)<<5|i.getDate()),s=t[0]}return w.ke(s),w.Ve(4),u||a!==U?w.ke(u?t:a):w.Ve(4),l||o!==U?w.ke(l?t:o):w.Ve(4),w.Ce(Hc(c)),w.Ce(f),{ne:d,oe:p,rawLastModDate:s}}function qc(t){return t.every(t=>t>=32&&t<=126)}function Yc(t,e,r,n,o){let a=0;return e&&(a|=S),r&&(a|=8),8!=o&&9!=o||(t>=0&&t<=3&&(a|=6),t>3&&t<=5&&(a|=4),9==t&&(a|=2)),n&&(a|=1),a}function Kc(){return"application/octet-stream"}function Xc(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=_t(),o=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:$c(r,xr)||$c(t,xr)||$c(t,Fr),decompression:$c(n,xr)||$c(e,xr)||$c(e,Fr),registered:!1},{compressionMethod:9,compression:!1,decompression:$c(n,Dr)||$c(e,Dr),registered:!1}];for(const t of Er()){const e=br(t.format);o.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==N:U,decompression:e?typeof e.DecompressionStream==N:U,registered:!0})}return o}function $c(t,e){if(!t)return!1;const{supportedFormats:r}=t;return r?r.includes(e):Cr(t,e)}const Jc="2.21.0",Qc=1048576,tu=".zip.js-temp";function eu(t={}){const{thresholdBytes:e=Qc,directoryName:r=tu,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let o;function a(){return o||(o=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),o}return function(){const t=[];let r,n,o,i,s=0,c=!1;const u=new WritableStream({async write(i){c?await o.write(i):(t.push(i),s+=i.length,s>e&&await async function(){const e=await a();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),n=await e.getFileHandle(r,{create:!0}),o=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await o.write(e);t.length=0}())},async close(){o&&(await o.close(),o=null)}});let l=0;return{writable:u,readable:new ReadableStream({async pull(e){if(c){if(!i){const t=await n.getFile();i=t.stream().getReader()}const{value:t,done:r}=await i.read();r?e.close():e.enqueue(t)}else l<t.length?e.enqueue(t[l++]):e.close()},async cancel(t){i&&await i.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(o){try{await o.close()}catch{}o=null}if(r){try{const t=await a();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const ru=1048576;function nu(t={}){const{thresholdBytes:e=ru}=t;return function(){const t=[];let r,n,o,a=0,i=!1;const s=new WritableStream({async write(o){i?await r.write(o):(t.push(o),a+=o.length,a>e&&await async function(){const e=new TransformStream;n=ir(e.readable),r=e.writable.getWriter(),i=!0;for(const e of t)await r.write(e);t.length=0}())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:s,readable:new ReadableStream({async pull(e){if(i){if(!o){const t=await n;o=t.stream().getReader()}const{value:t,done:r}=await o.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){o&&await o.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(r){try{await r.abort()}catch{}r=null}n&&(n.catch(()=>{}),n=null),t.length=0}}}}const ou=1048576,au=".zip.js-temp",iu="createSyncAccessHandle is only available in dedicated workers";function su(t={}){const{thresholdBytes:e=ou,directoryName:r=au,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(iu);const o=n||(()=>navigator.storage.getDirectory());let a;function i(){return a||(a=Promise.resolve(o()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,o=0,a=!1,s=0,c=0;const u=new WritableStream({async write(c){a?(n.write(c,{at:s}),s+=c.length):(t.push(c),o+=c.length,o>e&&await async function(){const e=await i();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const o=await e.getFileHandle(r,{create:!0});n=await o.createSyncAccessHandle(),a=!0;for(const e of t)n.write(e,{at:s}),s+=e.length;t.length=0}())},close(){n&&n.flush()}});let l=0;const f=new ReadableStream({pull(e){if(a){const t=s-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),o=n.read(r,{at:c});o?(c+=o,e.enqueue(r.subarray(0,o))):e.close()}else l<t.length?e.enqueue(t[l++]):e.close()}},{highWaterMark:0});return{writable:u,readable:f,dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await i();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{Vt({baseURI:import.meta.url})}catch{}const cu="deflate",uu="deflate-raw",lu="deflate64-raw",fu="gzip",wu=[cu,uu,fu],du=[cu,uu,fu,lu];let pu,hu,mu,yu,Eu;function bu(t,e){return-4===e&&(t.code="Z_MEM_ERROR"),t}function Su(t,e,r={}){if(!(t?wu:du).includes(e))throw new TypeError("Unsupported format: "+e);if(!pu){const t=new Error("WASM module not loaded");throw t.cause=Eu,t}const n="number"==typeof r.level?r.level:-1,o="number"==typeof r.outBuffer?r.outBuffer:65536,a="number"==typeof r.inBufferSize?r.inBufferSize:65536,i={He:0,in:0,inBufferSize:0,Ge:0,qe:!1};let s,c,u,l,f=!0,w=!1;return function(){try{let r;if(i.He=hu(o),i.in=hu(a),i.inBufferSize=a,!i.He||!i.in)throw bu(new Error("allocation failed"),-4);if(t?(i.Ye=pu.deflate_process,i.Ke=pu.deflate_last_consumed,i.Xe=pu.deflate_end,i.Ge=pu.deflate_new(),r=e===fu?pu.deflate_init_gzip(i.Ge,n):e===uu?pu.deflate_init_raw(i.Ge,n):pu.deflate_init(i.Ge,n)):e===lu?(i.Ye=pu.inflate9_process,i.Ke=pu.inflate9_last_consumed,i.Xe=pu.inflate9_end,i.Ge=pu.inflate9_new(),r=pu.inflate9_init_raw(i.Ge)):(i.Ye=pu.inflate_process,i.Ke=pu.inflate_last_consumed,i.Xe=pu.inflate_end,i.Ge=pu.inflate_new(),r=e===uu?pu.inflate_init_raw(i.Ge):e===fu?pu.inflate_init_gzip(i.Ge):pu.inflate_init(i.Ge)),0!==r)throw bu(new Error("init failed:"+r),r)}catch(t){throw h(i),t}}(),{readable:new ReadableStream({start(t){s=t},pull(){f=!1,p()},cancel(t){w=!0,l=t,h(i),c.error(t),p()}},{highWaterMark:0}),writable:new WritableStream({start(t){c=t},async write(t){if(f&&await new Promise(t=>u=t),w)throw l;try{!function(t){const e=new Uint8Array(yu.buffer),r=i.Ye,n=i.Ke,a=i.He;let s=0;for(;s<t.length;){if(i.qe)throw new Error("trailing data after the end of the stream");const c=Math.min(t.length-s,32768);if((!i.in||i.inBufferSize<c)&&(i.in&&mu&&(mu(i.in),i.in=0),i.in=hu(c),i.inBufferSize=c,!i.in))throw bu(new Error("allocation failed"),-4);e.set(t.subarray(s,s+c),i.in);const u=r(i.Ge,i.in,c,a,o,0),l=u>>24&255,f=128&l?l-256:l;if(f<0)throw bu(new Error("process error:"+f),f);const w=16777215&u;w&&d(e.slice(a,a+w));const p=n(i.Ge);if(1===l)i.qe=!0;else if(0===p&&0===w)break;s+=p}}(t)}catch(t){throw h(i),s.error(t),t}},close(){if(w)return;try{!function(){const t=new Uint8Array(yu.buffer),e=i.Ye,r=i.He;for(;;){const n=e(i.Ge,0,0,r,o,4),a=n>>24&255,s=128&a?a-256:a;if(s<0)throw bu(new Error("process error:"+s),s);const c=16777215&n;if(c&&d(t.slice(r,r+c)),1===a||0===c)break}}()}catch(t){throw h(i),s.error(t),t}const t=h(i);if(0!==t){const e=bu(new Error("end error:"+t),t);throw s.error(e),e}s.close()},abort(t){h(i),s.error(t)}},{highWaterMark:1})};function d(t){f=!0,s.enqueue(t)}function p(){if(u){const t=u;u=null,t()}}function h(t){let e=0;return t.Ge&&t.Xe&&(e=t.Xe(t.Ge)),t.Ge=0,t.in&&mu&&mu(t.in),t.in=0,t.He&&mu&&mu(t.He),t.He=0,e}}class gu{constructor(t=cu,e){return Su(!0,t,e)}}class Au{constructor(t=cu,e){return Su(!1,t,e)}}gu.requiresModule=!0,Au.requiresModule=!0,gu.supportedFormats=wu,Au.supportedFormats=du;const Ru=65536;let zu,xu;function Du(t){return new Uint8Array(t.memory.buffer)}let Fu,Ou=!1;var Iu;async function Uu(){await async function(){await Promise.allSettled([vn(),...Dn.map(t=>(jn(t),t.terminate()))]),tn=U,en=!1}(),Fu=null,Ou=!1,pu=hu=mu=yu=Eu=null,zu=null,xu=0}Iu=function(t,e){const r=zu;let n=r?function(t,e,r){xu||(xu=t.malloc(Ru));const n=xu?t.aes_hmac_new():0;if(n){const o=Du(t);if(o.set(e,xu),o.set(r,xu+e.length),t.aes_hmac_init(n,xu,e.length,xu+e.length,r.length))return t.aes_hmac_end(n,0),0}return n}(r,t,e):0;if(!n)return be(t,e);const o=xu;return{process(t,e){for(let a=0;a<t.length;a+=Ru){const i=t.subarray(a,a+Ru),s=Du(r);s.set(i,o),r.aes_hmac_process(n,o,i.length,e?1:0),i.set(s.subarray(o,o+i.length))}},digest:()=>(r.aes_hmac_end(n,o),n=0,Du(r).slice(o,o+20)),dispose(){n&&(r.aes_hmac_end(n,0),n=0)}}},Be=Iu||be,function({$e:t}){nn=t}({$e:t=>{if(!Fu){let{wasmURI:e}=t;typeof e==N&&(e=e()),Fu=async function(t,{baseURI:e}){if(!Ou)try{await async function(t,e){let r,n;try{try{n=new URL(t,e)}catch{}const o=await fetch(n);r=await o.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=function(t){const e=t.split(",")[1],r=atob(e),n=r.length,o=new Uint8Array(n);for(let t=0;t<n;++t)o[t]=r.charCodeAt(t);return o.buffer}(t)}const o=await WebAssembly.instantiate(r);var a;(function(t){if(pu=t,({malloc:hu,free:mu,memory:yu}=pu),"function"!=typeof hu||"function"!=typeof mu||!yu)throw pu=hu=mu=yu=null,new Error("Invalid WASM module")})(o.instance.exports),typeof(a=o.instance.exports).aes_hmac_new==N&&(zu=a,xu=0)}(t,e),Ou=!0}catch(t){throw function(t){Eu=t}(t),t}}(e,t).catch(t=>{throw Fu=null,t})}return Fu}}),Vt({CompressionStreamFallback:gu,DecompressionStreamFallback:Au}),Vt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const Tu="Entry filename already exists",ku="Duplicate entry filename in the imported zip file",Cu='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',Mu="Entry is an ancestor of target entry",vu="Root directory cannot be moved",Nu="Target entry is not a directory",_u="Parent entry is not a directory",ju="Readable stream already consumed",Pu="throw",Bu="keep-first",Lu="keep-last",Wu=new Set([Pu,Bu,Lu]),Zu="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Vu="Invalid readerOptions (must be an object)",Hu="The 'compressed' passThrough option is only supported by Entry#getData() and ZipWriter#add()",Gu="Invalid passwords option (must be an array of strings)",qu="Invalid requestPassword option (must be a function returning a string or undefined)",Yu="zipjs-abort-export",Ku=new Uint8Array(0),Xu=new Set([zr,gr,Ar]);class $u{constructor(t,e,r,n){const o=this;if(t.root&&n&&n.getChildByName(e))throw new Error(Tu);r||(r={}),Object.assign(o,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.Je++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,Qe:r.Qe||r.uncompressedSize===U,passThrough:r.passThrough,er:r.er||new Date}),!n&&t.root||(t.entries[o.id]=o),n&&o.parent.children.push(o)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return Boolean(e)}rename(t){const e=this;let r=e.parent;if(r){const n=Il(t);n&&(t=n.pop(),r=Ul(r,n,e));const o=r.getChildByName(t);if(o&&o!=e)throw new Error(Tu);r!=e.parent&&(ul(e),e.parent=r,r.children.push(e),Fl(e.fs,e))}e.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==U))}}class Ju extends $u{constructor(t,e,r,n){super(t,e,r,n);const o=this;o.Reader=r.Reader,o.Writer=r.Writer,r.getData&&(o.getData=r.getData)}clone(){return new Ju(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&function(t,e){const{contentType:r}=t;return r===U||(t.constructor==lo?e.type==r:t.constructor!=io||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=sl(r.Reader,r.data,e),o=r.uncompressedSize||n.size;await Promise.all([Wo(n),Wo(t,o)]);const a=yt(e.signal),i=function(t,e,r,n){const{onstart:o,onprogress:a,onend:i}=r,{readable:s}=e;return t.data instanceof Fa||!o&&!a&&!i?s:ar(s).pipeThrough(new un({onstart:o,onprogress:a,onend:i,size:e.size}),{signal:n})}(r,n,e,a),s=!Lo(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await ar(i).pipeTo(sr(t.writable),{signal:a,preventClose:s,preventAbort:s}),t.getData?t.getData():t.writable}}isPasswordProtected(){return Boolean(this.data&&this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if(Kt(t)&&t.message==xe)return!1;throw t}}getText(t,e){return this.getData(new po(t),e)}getBlob(t,e){return this.getData(new lo(t),e)}getData64URI(t,e){return this.getData(new io(t),e)}getUint8Array(t){return this.getData(new No,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return qt(await this.getUint8Array(t)).buffer}replaceBlob(t){bl(this,{data:t,Reader:uo,Writer:lo,uncompressedSize:t.size})}replaceText(t){bl(this,{data:t,Reader:fo,Writer:po,uncompressedSize:wo(t)})}replaceData64URI(t){bl(this,{data:t,Reader:ao,Writer:io,uncompressedSize:Sl(t)})}replaceUint8Array(t){bl(this,{data:t,Reader:vo,Writer:No,uncompressedSize:t.length})}replaceReadable(t){bl(this,{data:null,Reader:al(t),Writer:null,uncompressedSize:U})}}class Qu extends $u{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new Qu(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const n=e.clone(t);return n.parent=r,n})),r}addDirectory(t,e){return Ol(this,t,{options:e},!0)}addText(t,e,r={}){return Ol(this,t,{data:e,Reader:fo,Writer:po,options:r,uncompressedSize:wo(e)})}addBlob(t,e,r={}){return Ol(this,t,{data:e,Reader:uo,Writer:lo,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return Ol(this,t,{data:e,Reader:ao,Writer:io,options:r,uncompressedSize:Sl(e)})}addUint8Array(t,e,r={}){return Ol(this,t,{data:e,Reader:vo,Writer:No,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return Ol(this,t,{data:e,Reader:class extends Co{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return Ol(this,t,{Reader:al(e),options:r})}addFileSystemEntry(t,e={}){return Rl(this,t,e)}addFileSystemHandle(t,e={}){return Rl(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),Ol(this,t.name,{data:t,Reader:function(){return{readable:t.stream(),size:t.size}},options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new uo(t),e)}importData64URI(t,e){return this.importZip(new ao(t),e)}importUint8Array(t,e){return this.importZip(new vo(t),e)}importHttpContent(t,e){return this.importZip(new Co(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new lo(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new io(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new No,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return async function(t,e,r){const{onstart:n,onprogress:o,onend:a}=r;El(r.passThrough),pl(r);const i=dl(r.readerOptions),s=new AbortController,{signal:c}=s,u=function(t,e){if(!yt(t))return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)}(r.signal,s),l=Object.assign({},r,i,{signal:c,onstart:U,onprogress:U,onend:U,preventClose:!1}),f=rl([t],t=>ol(t,l.passThrough)),w=[];let d=!1,p=0;try{n&&await ln(n,f),await m(t,e),a&&await ln(a,p)}catch(t){try{t.exportedEntryNames=w}catch{}throw t}finally{u()}return e;function h(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),p+=t.length,o&&await ln(o,p,f)},close:()=>e.close(),abort:t=>e.abort(t)})}async function m(t,e){if(r.concurrent){const r=(await Promise.allSettled(t.children.map(t=>y(t,e)))).filter(t=>"rejected"==t.status);if(r.length){const t=r.filter(t=>!ll(t.reason));throw function(t){const[e]=t,r=t.slice(1).flatMap(t=>[t,...t&&t.entryErrors||[]]).filter(t=>t!==e);if(r.length)try{e.entryErrors=[...e.entryErrors||[],...r]}catch{}return e}((t.length?t:r).map(t=>t.reason))}}else for(const r of t.children)await y(r,e)}async function y(e,r){if(c.aborted){if(d||ll(c.reason))return;Et(c)}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await m(e,t)}else{const n=await r.getFileHandle(e.name,{create:!0}),o=await n.createWritable();try{await e.getData({writable:h(o)},l)}catch(t){throw d?new Error(Yu):t}w.push(e.getRelativeName(t))}}catch(r){d=!0,s.abort(new Error(Yu));try{r.entryName===U&&(r.entryName=e.getRelativeName(t),r.entryId=e.id)}catch{}throw r}}}(this,t,e)}async importZip(t,e={}){let r;t&&typeof t.getEntries==N?(r=t,e=Object.assign({},r.options,e)):(await Wo(t),r=new yi(t,e)),El(e.passThrough),pl(e);const n=function(t){if(t===U)return Pu;if(Wu.has(t))return t;throw new Error(Cu)}(e.duplicates),o=[],a={rr:[]},i=await r.getEntries(e);for(const t of i){let r=this;try{const i=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=i.pop();let c=!1;for(const t of i){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==Bu){c=!0;break}if(n!=Lu)throw new Error(ku);this.fs.remove(r),r=new Qu(this.fs,t,{data:null},e),o.push(r)}}else r=new Qu(this.fs,t,{data:null},e),o.push(r)}if(c)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&(!e.directory||e.data)){if(n==Bu)continue;if(n!=Lu)throw new Error(ku);e.directory?e.data=t:(this.fs.remove(e),e=U)}e||(e=new Qu(this.fs,s,{data:null},r),o.push(e))}e==this||e.data||(e.data=t)}else{const i=r.getChildByName(s);if(i){if(n==Bu)continue;if(n!=Lu)throw new Error(ku);this.fs.remove(i)}o.push(Ol(r,s,{data:t,Reader:il(Object.assign({},e),a),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}}catch(e){o.reverse().forEach(t=>this.fs.remove(t));try{e.cause={entry:t}}catch{}throw e}}return o}async exportZip(t,e={}){const r=this,n=Boolean(t)&&typeof t.add==N;e=Object.assign({},e),n||e.bufferedWrite!==U||(e.bufferedWrite=!0);const[o]=await Promise.all([cl(r,dl(e.readerOptions)),n?U:Wo(t)]),a=n?t:new Js(t,e);return await async function(t,e,r,n,o){const{onstart:a,onprogress:i,onend:s,onentryprogress:c}=n,u=e,l=rl(e.children,t=>Al(t)?0:1);let f=0,w=0;if(a&&await ln(a,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await d(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await d(t);async function d(e){if(Al(e))return;const{name:a,Lt:s}=fl(e,u,n);let d=0;const p=await t.add(a,o.get(e),Object.assign(s,{onstart:U,onend:U,onprogress:async t=>{f+=t-d,d=t,i&&await ln(i,f,r)}}));w++,c&&await ln(c,w,l,p)}s&&await ln(s,f)}(a,r,rl([r],nl),e,o),n?a:(await a.close(e.globalComment),t.getData?t.getData():t.writable)}async getExportedSize(r={}){const n=this;dl((r=Object.assign({},r)).readerOptions),r.bufferedWrite===U&&(r.bufferedWrite=!0);const o=n.getChildren({recursive:!0}),a=o.filter(t=>!Al(t)).map(t=>{const{name:e,Lt:o}=fl(t,n,r);return{name:e,size:t.directory?0:wl(t,gl(t,r)),options:o}}),i=!r.bufferedWrite||a.every(t=>!1!==t.options.keepOrder)&&o.every(t=>Al(t)||!t.children.length);return await async function(r,n,o,a){const i={options:r};if(mt(r[nt]))throw new Error(Is);if(a!==U&&!(a instanceof Uint8Array))throw new Error(ss);const s=Hc(a);if(s>e)throw new Error(is);const c=r[tt],u=new Map,l=r[Q]===U?0:r[Q];let f=l,d=T;const p=[],h=new Set;for(const e of n){let{name:r}=e;const{size:n}=e,o=Object.assign({},e.options);Cc(i,o,ya)&&!r.endsWith(D)&&(r+=D);const a=sc(i,r,o);({name:r}=a);const{Zt:s}=cc(i,r,o);0==s.level||s.compressionMethod!==U||s.Ht||await on(_t())||(s.level=0);const l=!Cc(i,o,ya);if(l&&n===U)throw new Error(Is);const{Le:w,Zt:m}=lc(i,l,n,s,o);if(l&&!s.Ht&&jc(m.compressionMethod,m.level))throw new Error(Is);const y=Object.assign({},o,a.Zt,s,m,{[tt]:c}),E=wc(y),b=hc(y),S={$t:E,re:Hc(E.Yt,b.Kt)};c&&dc(S,f);const g=l?w:0;u.set(r,Object.assign({},y,E,{offset:f,diskNumberStart:0,compressedSize:g}));const A=S.re+g;p.push(A),h.add(Boolean(y.pe||y.uncompressedSize>=t||g>=t)),d=Math.min(d,A),f+=A}if(u.size>1&&(c||f-d>=t&&(h.size>1||fc(p,l,!0)!=fc(p,l,!1)))&&!o)throw new Error(Is);const{xe:m,De:y}=mc(u);let E=Cc(i,r,wa);if(f>=t||m>=t||u.size>=e){if(!1===E)throw new Error(xs);E=!0}else E===U&&y&&(E=!0);return f-l+m+s+(E?98:w)}(r,a,i,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let o=0;for(;o<n.length;)for(const t of n[o++].children)r.push(t),e&&n.push(t);return r}(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class tl{constructor(){xl(this)}get children(){return this.root.children}remove(t){ul(t);const e=[t];for(;e.length;){const t=e.pop();this.entries[t.id]=null;for(const r of t.children)e.push(r)}t.parent=U}move(t,e){if(t==this.root)throw new Error(vu);if(!e.directory)throw new Error(Nu);if(e.isDescendantOf(t))throw new Error(Mu);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(Tu)}else ul(t),t.parent=e,e.children.push(t),Fl(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.directory?r.getChildByName(e[t]):U;return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}importBlob(t,e){return Dl(this,r=>r.importBlob(t,e))}importData64URI(t,e){return Dl(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return Dl(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return Dl(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return Dl(this,r=>r.importReadable(t,e))}importZip(t,e){return Dl(this,r=>r.importZip(t,e))}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}}const el={FS:tl,ZipDirectoryEntry:Qu,ZipFileEntry:Ju};function rl(t,e){let r=0;const n=Array.from(t);for(;n.length;){const t=n.pop();r+=e(t)||0;for(const e of t.children)n.push(e)}return r}function nl(t){return t.uncompressedSize}function ol(t,e){const{data:r}=t;return e&&r instanceof Fa?r.compressedSize:t.uncompressedSize}function al(t){let e;return function(){if(e)throw new Error(ju);return e=!0,{readable:t}}}function il(t,e){return class extends no{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const r=this,n=Object.assign({},t,r.options),{checkOverlappingEntry:o,checkOverlappingEntryOnly:a}=n,i=await async function(t,e,r){pl(e);const{passwords:n,requestPassword:o,signal:a}=e;if(delete(e=Object.assign({},e)).passwords,delete e.requestPassword,!t.encrypted||e.passThrough||!n&&!o)return t.getData(new lo,e);const i=new Set;let s;for(;;){for(const t of ml(e,r,n))if(!i.has(t.key)){const e=await u(t);if(e.done)return e.data;s=e.error}if(!o)break;if(r.nr){await r.nr;continue}let a;r.nr=new Promise(t=>a=t);try{const e=await o(t,s);if(e===U||null===e)break;if(typeof e!=j)throw new Error(qu);const r=await u(yl(e));if(r.done)return r.data;s=r.error}finally{r.nr=U,a()}}if(!i.size)throw new Error(Ma);const c=new Error(xe);throw c.cause=s,c;async function u(n){i.add(n.key);const o=Object.assign({},e,n.options);if(t.zipCrypto){o.checkCrc32=!0;try{await t.getData(null,Object.assign({},o,{checkPasswordOnly:!0}))}catch(t){if(hl(t))return{done:!1,error:t};throw t}}try{const e=await t.getData(new lo,o);return function(t,e){const{rr:r}=t,n=r.findIndex(t=>t.key===e.key);-1!=n&&r.splice(n,1),r.unshift(e)}(r,n),{done:!0,data:e}}catch(e){if(function(t,e){return Boolean(e&&e.aborted)||Kt(t)&&"AbortError"==t.name}(e,a)||!function(t,e){return hl(t)||e.zipCrypto&&Kt(t)&&Xu.has(t.message)}(e,t))throw e;return{done:!1,error:e}}}}(r.entry,Object.assign(n,{checkPasswordOnly:!1,checkOverlappingEntry:a||o,checkOverlappingEntryOnly:!1,preventClose:!1}),e);r.data=i,r.ar=new uo(i),r.size=i.size,super.init()}readUint8Array(t,e){return this.ar.readUint8Array(t,e)}}}function sl(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function cl(t,e){const r=[],n=[t],o=new Map;for(;n.length;){const t=n.pop();for(const e of t.children)e.directory?n.push(e):r.push(e)}return await Promise.all(r.map(async r=>{const n=r.reader=sl(r.Reader,r.data,e);o.set(r,n);try{await Wo(n)}catch(e){try{e.entry=r,e.entryId=r.id,e.entryName=r.getRelativeName(t)}catch{}throw e}n.size!==U&&(r.uncompressedSize=n.size,r.Qe=!1)})),o}function ul(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function ll(t){return Boolean(t)&&t.message==Yu}function fl(t,e,r){const n=r.relativePath?t.getRelativeName(e):t.getFullname(),o=t.options||{};let a={},i={};if(t.data instanceof Fa){const e=gl(t,r),n=o.lastModDate===U?r.lastModDate:o.lastModDate;({Lt:a,Wt:i}=ic(t.data,e,n)),e&&(i.passThrough=!0)}const s=Object.assign({lastModDate:t.er},a,r,o,i,{directory:t.directory});if(!t.directory&&s.passThrough&&s.uncompressedSize===U)throw new Error(Zu);return{name:n,Lt:s}}function wl(t,e){const{reader:r}=t;return r&&r.size!==U?r.size:t.Qe?U:ol(t,e)}function dl(t){if(t&&(typeof t!=_||Array.isArray(t)))throw new Error(Vu);return t&&(El(t.passThrough),pl(t)),t}function pl(t){const{passwords:e,requestPassword:r}=t;if(e&&(!Array.isArray(e)||e.some(t=>typeof t!=j)))throw new Error(Gu);if(r&&typeof r!=N)throw new Error(qu)}function hl(t){return Kt(t)&&t.message==xe}function ml(t,e,r){const n=[],{password:o,rawPassword:a}=t;return a&&a.length&&n.push({key:a,options:{password:"",rawPassword:a}}),o&&n.push(yl(o)),n.push(...e.rr),r&&n.push(...r.filter(t=>t).map(yl)),n}function yl(t){return{key:t,options:{password:t,rawPassword:Ku}}}function El(t){if(St(t)===lt)throw new Error(Hu)}function bl(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:U,uncompressedSize:r===U?0:r,Qe:r===U})}function Sl(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function gl(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function Al(t){return t.directory&&null===t.data}function Rl(t,e,r){return async function t(e,n,o,a=""){if(n){const i=a?a+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await zl(n)),"file"==n.kind){const t=await n.getFile();o.push(Ol(e,t.name,{Reader:function(){return{readable:t.stream(),size:t.size}},options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==n.kind){const a=e.addDirectory(n.name,r);o.push(a);for await(const e of n.values())await t(a,e,o,i)}}catch(t){try{t.entryName===U&&(t.entryName=i)}catch{}throw t}}return o}(t,e,[])}async function zl(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await async function(t){const e=[];function r(t,n,o){t.readEntries(async a=>{if(a.length){for(const t of a)e.push(await zl(t));r(t,n,o)}else n(e)},o)}return await new Promise((e,n)=>r(t.createReader(),e,n)),{[Symbol.iterator](){let t=0;return{next(){const r={value:e[t],done:t==e.length};return t++,r}}}}}(t);e.values=()=>r}return e}function xl(t){t.entries=[],t.Je=0,t.root=new Qu(t)}function Dl(t,e){const{entries:r,Je:n,root:o}=t;return xl(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,Je:n,root:o}),e})}function Fl(t,e){const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}}function Ol(t,e,r,n){if(t.directory){const o=Il(e);return o&&(e=o.pop(),t=Ul(t,o)),n?new Qu(t.fs,e,r,t):new Ju(t.fs,e,r,t)}throw new Error(_u)}function Il(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function Ul(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(Tu);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(Mu)}else t=new Qu(n.fs,e,{data:null},n)}),t}export{uo as BlobReader,lo as BlobWriter,ao as Data64URIReader,io as Data64URIWriter,ht as ERR_ABORTED,ja as ERR_AMBIGUOUS_ARCHIVE,Mu as ERR_ANCESTOR_ENTRY,Ua as ERR_BAD_FORMAT,Ca as ERR_CENTRAL_DIRECTORY_NOT_FOUND,Rr as ERR_CODEC_OUT_OF_MEMORY,as as ERR_DUPLICATED_NAME,ku as ERR_DUPLICATE_IMPORTED_ENTRY,Ma as ERR_ENCRYPTED,Pa as ERR_ENCRYPTED_CENTRAL_DIRECTORY,_a as ERR_ENTRY_DATA_OUT_OF_BOUNDS,Tu as ERR_ENTRY_EXISTS,ka as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Ta as ERR_EOCDR_NOT_FOUND,M as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,Vn as ERR_HTTP_RANGE,Hn as ERR_HTTP_RESOURCE_CHANGED,Zn as ERR_HTTP_STATUS,De as ERR_INVALID_AUTHENTICATION_CODE,Dt as ERR_INVALID_BASE_URI,cr as ERR_INVALID_CODEC_DEFINITION,lr as ERR_INVALID_CODEC_MODULE,is as ERR_INVALID_COMMENT,ss as ERR_INVALID_COMMENT_TYPE,Ar as ERR_INVALID_COMPRESSED_DATA,zr as ERR_INVALID_CRC32,ls as ERR_INVALID_DATE,Cu as ERR_INVALID_DUPLICATES,ds as ERR_INVALID_ENCRYPTION_STRENGTH,Ws as ERR_INVALID_ENTRY,cs as ERR_INVALID_ENTRY_COMMENT,us as ERR_INVALID_ENTRY_COMMENT_TYPE,fs as ERR_INVALID_ENTRY_NAME,ys as ERR_INVALID_EXTRAFIELD,Ss as ERR_INVALID_EXTRAFIELD_DATA,bs as ERR_INVALID_EXTRAFIELD_DATA_TYPE,Es as ERR_INVALID_EXTRAFIELD_TYPE,Wa as ERR_INVALID_FILENAME_VALIDATION,ft as ERR_INVALID_FUNCTION_OPTION,Ms as ERR_INVALID_GID,Bs as ERR_INVALID_LEVEL,Za as ERR_INVALID_MAX_APPENDED_DATA_SIZE,xt as ERR_INVALID_MAX_WORKERS,js as ERR_INVALID_MSDOS_ATTRIBUTES,Ps as ERR_INVALID_MSDOS_DATA,xe as ERR_INVALID_PASSWORD,Gu as ERR_INVALID_PASSWORDS,dt as ERR_INVALID_PASSWORD_TYPE,Zu as ERR_INVALID_PASS_THROUGH,pt as ERR_INVALID_PASS_THROUGH_VALUE,Ts as ERR_INVALID_READER,Vu as ERR_INVALID_READER_OPTIONS,qu as ERR_INVALID_REQUEST_PASSWORD,wt as ERR_INVALID_SIGNAL,Ls as ERR_INVALID_SIGNATURE_DATA,La as ERR_INVALID_STRICTNESS,Cs as ERR_INVALID_UID,gr as ERR_INVALID_UNCOMPRESSED_SIZE,Ns as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,_s as ERR_INVALID_UNIX_ID_SIZE,vs as ERR_INVALID_UNIX_MODE,Ft as ERR_INVALID_URI,ws as ERR_INVALID_VERSION,Gn as ERR_ITERATOR_COMPLETED_TOO_SOON,k as ERR_LOCAL_FILE_HEADER_NOT_FOUND,C as ERR_OVERLAPPING_ENTRY,_u as ERR_PARENT_NOT_DIRECTORY,ju as ERR_READABLE_CONSUMED,ur as ERR_RESERVED_COMPRESSION_METHOD,vu as ERR_ROOT_DIRECTORY_NOT_MOVABLE,Na as ERR_SPLIT_ZIP_FILE,Nu as ERR_TARGET_NOT_DIRECTORY,Fs as ERR_UNDEFINED_COMPRESSION_METHOD,Os as ERR_UNDEFINED_CRC32,Us as ERR_UNDEFINED_READER,Ds as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Is as ERR_UNDETERMINED_SIZE,Ba as ERR_UNSAFE_FILENAME,fr as ERR_UNSUPPORTED_COMPRESSION,iu as ERR_UNSUPPORTED_CONTEXT,Oe as ERR_UNSUPPORTED_CRYPTO_API,va as ERR_UNSUPPORTED_ENCRYPTION,ms as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,ps as ERR_UNSUPPORTED_ENCRYPTION_USDZ,xs as ERR_UNSUPPORTED_FORMAT,Hu as ERR_UNSUPPORTED_PASS_THROUGH_VALUE,hs as ERR_UNSUPPORTED_SPLIT_USDZ,Va as ERR_UNSUPPORTED_UINT64,Qr as ERR_WORKER_STARTUP_TIMEOUT,qn as ERR_WRITER_NOT_INITIALIZED,Yn as ERR_WRITER_SIZE_NOT_WRITABLE,Zs as ERR_ZIP_CRYPTO_LAST_MOD_DATE,ks as ERR_ZIP_NOT_EMPTY,Mo as HttpRangeReader,Co as HttpReader,no as Reader,_o as SplitDataReader,jo as SplitDataWriter,fo as TextReader,po as TextWriter,vo as Uint8ArrayReader,No as Uint8ArrayWriter,Jc as VERSION,$a as WARNING_APPENDED_DATA,Hs as WARNING_CLAMPED_LAST_MODIFICATION_DATE,qa as WARNING_COMPRESSED_PATCHED_DATA,Vs as WARNING_COMPRESSION_UNAVAILABLE,ni as WARNING_DUPLICATE_FILENAME,Ya as WARNING_MALFORMED_EXTRA_FIELD,ei as WARNING_MISMATCHED_CENTRAL_DIRECTORY_OFFSET,si as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,ci as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,ui as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,ii as WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME,oi as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,ri as WARNING_MISSING_ZIP64_EXTRA_FIELD,ai as WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY,Qa as WARNING_PREPENDED_CENTRAL_DIRECTORY,Ja as WARNING_PREPENDED_DATA,ti as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,Ga as WARNING_UNKNOWN_VERSION,Ka as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,Ha as WARNING_UNSORTED_CENTRAL_DIRECTORY,Xa as WARNING_WRAPPED_ENTRIES_COUNT,oo as Writer,Qu as ZipDirectoryEntry,$u as ZipEntry,tl as ZipFS,Ju as ZipFileEntry,yi as ZipReader,Ei as ZipReaderStream,Js as ZipWriter,Qs as ZipWriterStream,Bt as configure,nu as createBlobTempStream,eu as createOPFSTempStream,su as createSyncAccessHandleTempStream,el as fs,Kc as getMimeType,Er as getRegisteredCodecs,Xc as getSupportedCompressionMethods,bi as isZipFile,hr as registerCodec,Ht as resetConfiguration,Uu as terminateWorkers,mr as unregisterCodec};
|
|
1
|
+
const t=4294967295,e=65535,r=255,n=67324752,o=134695760,a=o,i=84233040,s=33639248,c=101010256,u=101075792,l=117853008,f=46,w=22,d=20,p=56,h=39169,m=21589,y=6534,E=30837,b=30805,S=2048,g=8192,A=61440,R=16384,z=2048,x=1024,D="/",F=30,O=new Date(2107,11,31,23,59,58),I=new Date(1980,0,1),U=void 0,T=1/0,k="Local file header not found",C="Overlapping entry found",M="Zip64 extra field not found",v="undefined",N="function",_="object",j="string",P="boolean",B=new Uint8Array,L=Symbol.asyncDispose||Symbol(),W="password",Z="rawPassword",V="passThrough",H="signal",G="checkAmbiguity",q="useWebWorkers",Y="useCompressionStream",K="preventClose",X="level",$="useUnicodeFileNames",J="dataDescriptor",Q="offset",tt="usdz",et="strictness",rt="maxAppendedDataSize",nt="signCentralDirectory",ot="entry",at="filename",it="comment",st="strict",ct="balanced",ut="tolerant",lt="compressed",ft="Invalid option (must be a function)",wt="Invalid signal (must be an AbortSignal instance)",dt="Invalid password (password must be a string, rawPassword must be a Uint8Array)",pt="Invalid passThrough option (must be a boolean or 'compressed')",ht="Invalid readerOptions (must be an object)",mt="The operation was aborted";function yt(t){if(t&&typeof t!=N)throw new Error(ft);return t}function Et(t){if(t&&(typeof t!=_||Array.isArray(t)))throw new Error(ht);return t}function bt(t){if(t&&(typeof t.addEventListener!=N||typeof t.aborted!=P))throw new Error(wt);return t||U}function St(t){if(t&&t.aborted)throw t.reason===U?new DOMException(mt,"AbortError"):t.reason}function gt(t,e){if(t&&typeof t!=j||e&&!(e instanceof Uint8Array))throw new Error(dt)}function At(t){if(t!==U&&typeof t!=P&&t!==lt)throw new Error(pt);return t}function Rt(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function zt(t,e,r){t!==U&&Rt(t,e,r)}function xt(t){return typeof t==j&&t.trim()?Number(t):t}const Dt=262144,Ft="Invalid maxWorkers (must be an integer greater than 0)",Ot="Invalid baseURI (must be a string)",It="Invalid URI (must be a string or a function returning a string)";let Ut=2;try{typeof navigator!=v&&navigator.hardwareConcurrency&&(Ut=navigator.hardwareConcurrency)}catch{}const Tt={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:Dt,maxWorkers:Ut,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,CompressionStream:typeof CompressionStream!=v&&CompressionStream,DecompressionStream:typeof DecompressionStream!=v&&DecompressionStream},kt="maxWorkers",Ct="baseURI",Mt=["wasmURI","workerURI"],vt=["chunkSize",kt,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],Nt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],_t=[Ct,...Mt,"useCompressionStream","useWebWorkers",...vt,...Nt],jt={...Tt};function Pt(){return jt}function Bt(t){return Lt(t.chunkSize)}function Lt(t){return t=xt(t),Number.isInteger(t)&&t>=1?Math.max(t,64):Dt}function Wt(t){Object.assign(jt,Zt(Ht(t)))}function Zt(t){const e={};for(const r of _t){const n=t[r];n!==U&&(e[r]=Vt(r,n))}return e}function Vt(t,e){if(vt.includes(t)){if(e=xt(e),t==kt&&(!Number.isInteger(e)||e<1))throw new Error(Ft)}else if(Nt.includes(t))yt(e);else if(t==Ct){if(e&&typeof e!=j)throw new Error(Ot)}else if(Mt.includes(t)&&e&&typeof e!=j&&typeof e!=N)throw new Error(It);return e}function Ht(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===U&&r===U)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===U&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===U&&(n.DecompressionStreamFallback=r),n}function Gt(t){const e=Zt(Ht(t));Object.assign(Tt,e),Object.assign(jt,e)}function qt(){for(const t of _t)delete jt[t];Object.assign(jt,Tt)}function Yt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Kt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Xt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function $t(t){return Boolean(t)&&"object"==typeof t}const Jt=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;Jt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Jt[e-1][t];Jt[e][t]=r>>>8^Jt[0][255&r]}const[Qt,te,ee,re,ne,oe,ae,ie]=Jt;class se{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let n=0;if(r>=8&&t.buffer){const o=new DataView(t.buffer,t.byteOffset,r),a=r-8;for(;n<=a;n+=8){const t=e^o.getInt32(n,!0),r=o.getInt32(n+4,!0);e=ie[255&t]^ae[t>>>8&255]^oe[t>>>16&255]^ne[t>>>24&255]^re[255&r]^ee[r>>>8&255]^te[r>>>16&255]^Qt[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Qt[255&(e^t[n])];this.o=e}get(){return~this.o}}class ce extends TransformStream{constructor(){let t;const e=new se;super({transform(t,r){e.append(t),r.enqueue(t)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,e.get()),t.value=r}}),t=this}}function ue(t){if(typeof TextEncoder==v){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const le=64,fe=20,we=new Uint8Array([128]),de=new Uint8Array(1),pe=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),he=new Uint8Array(256),me=new Int32Array(256),ye=new Int32Array(256),Ee=new Int32Array(256),be=new Int32Array(256);let Se=!1;function ge(t,e){!function(){if(!Se){let t=1,e=1;do{t=255&(t^t<<1^(128&t?27:0)),e=255&(e^e<<1),e=255&(e^e<<2),e=255&(e^e<<4),128&e&&(e^=9),he[t]=255&(e^(e<<1|e>>7)^(e<<2|e>>6)^(e<<3|e>>5)^(e<<4|e>>4)^99)}while(1!=t);he[0]=99;for(let t=0;t<256;t++){const e=he[t],r=xe(e),n=r<<24|e<<16|e<<8|r^e;me[t]=n,ye[t]=n>>>8|n<<24,Ee[t]=n>>>16|n<<16,be[t]=n>>>24|n<<8}Se=!0}}();const r=new Int32Array(60),n=function(t,e){const r=t.length>>2,n=r+6,o=4*(n+1);let a=1;for(let n=0;n<r;n++)e[n]=t[4*n]<<24|t[4*n+1]<<16|t[4*n+2]<<8|t[4*n+3];for(let t=r;t<o;t++){let n=e[t-1];t%r==0?(n=Re(n<<8|n>>>24)^a<<24,a=xe(a)):r>6&&t%r==4&&(n=Re(n)),e[t]=e[t-r]^n}return n}(t,r),o=new Int32Array(4),a=Ae(e);let i=0,s=0,c=0,u=0;return{process(t,e){e&&a.update(t,0,t.length),function(t){const e=new DataView(t.buffer,t.byteOffset,t.byteLength),r=t.length;let n=0;for(;n+16<=r;n+=16)l(),e.setInt32(n,e.getInt32(n)^o[0]),e.setInt32(n+4,e.getInt32(n+4)^o[1]),e.setInt32(n+8,e.getInt32(n+8)^o[2]),e.setInt32(n+12,e.getInt32(n+12)^o[3]);if(n<r){l();for(let e=0;n<r;n++,e++)t[n]^=o[e>>2]>>>24-8*(3&e)}}(t),e||a.update(t,0,t.length)},digest:()=>a.digest()};function l(){i=i+1|0,i||(s=s+1|0,s||(c=c+1|0,c||(u=u+1|0)));let t=ze(i)^r[0],e=ze(s)^r[1],a=ze(c)^r[2],l=ze(u)^r[3],f=me[t>>>24]^ye[e>>>16&255]^Ee[a>>>8&255]^be[255&l]^r[4],w=me[e>>>24]^ye[a>>>16&255]^Ee[l>>>8&255]^be[255&t]^r[5],d=me[a>>>24]^ye[l>>>16&255]^Ee[t>>>8&255]^be[255&e]^r[6],p=me[l>>>24]^ye[t>>>16&255]^Ee[e>>>8&255]^be[255&a]^r[7];t=me[f>>>24]^ye[w>>>16&255]^Ee[d>>>8&255]^be[255&p]^r[8],e=me[w>>>24]^ye[d>>>16&255]^Ee[p>>>8&255]^be[255&f]^r[9],a=me[d>>>24]^ye[p>>>16&255]^Ee[f>>>8&255]^be[255&w]^r[10],l=me[p>>>24]^ye[f>>>16&255]^Ee[w>>>8&255]^be[255&d]^r[11],f=me[t>>>24]^ye[e>>>16&255]^Ee[a>>>8&255]^be[255&l]^r[12],w=me[e>>>24]^ye[a>>>16&255]^Ee[l>>>8&255]^be[255&t]^r[13],d=me[a>>>24]^ye[l>>>16&255]^Ee[t>>>8&255]^be[255&e]^r[14],p=me[l>>>24]^ye[t>>>16&255]^Ee[e>>>8&255]^be[255&a]^r[15],t=me[f>>>24]^ye[w>>>16&255]^Ee[d>>>8&255]^be[255&p]^r[16],e=me[w>>>24]^ye[d>>>16&255]^Ee[p>>>8&255]^be[255&f]^r[17],a=me[d>>>24]^ye[p>>>16&255]^Ee[f>>>8&255]^be[255&w]^r[18],l=me[p>>>24]^ye[f>>>16&255]^Ee[w>>>8&255]^be[255&d]^r[19],f=me[t>>>24]^ye[e>>>16&255]^Ee[a>>>8&255]^be[255&l]^r[20],w=me[e>>>24]^ye[a>>>16&255]^Ee[l>>>8&255]^be[255&t]^r[21],d=me[a>>>24]^ye[l>>>16&255]^Ee[t>>>8&255]^be[255&e]^r[22],p=me[l>>>24]^ye[t>>>16&255]^Ee[e>>>8&255]^be[255&a]^r[23],t=me[f>>>24]^ye[w>>>16&255]^Ee[d>>>8&255]^be[255&p]^r[24],e=me[w>>>24]^ye[d>>>16&255]^Ee[p>>>8&255]^be[255&f]^r[25],a=me[d>>>24]^ye[p>>>16&255]^Ee[f>>>8&255]^be[255&w]^r[26],l=me[p>>>24]^ye[f>>>16&255]^Ee[w>>>8&255]^be[255&d]^r[27],f=me[t>>>24]^ye[e>>>16&255]^Ee[a>>>8&255]^be[255&l]^r[28],w=me[e>>>24]^ye[a>>>16&255]^Ee[l>>>8&255]^be[255&t]^r[29],d=me[a>>>24]^ye[l>>>16&255]^Ee[t>>>8&255]^be[255&e]^r[30],p=me[l>>>24]^ye[t>>>16&255]^Ee[e>>>8&255]^be[255&a]^r[31],t=me[f>>>24]^ye[w>>>16&255]^Ee[d>>>8&255]^be[255&p]^r[32],e=me[w>>>24]^ye[d>>>16&255]^Ee[p>>>8&255]^be[255&f]^r[33],a=me[d>>>24]^ye[p>>>16&255]^Ee[f>>>8&255]^be[255&w]^r[34],l=me[p>>>24]^ye[f>>>16&255]^Ee[w>>>8&255]^be[255&d]^r[35],f=me[t>>>24]^ye[e>>>16&255]^Ee[a>>>8&255]^be[255&l]^r[36],w=me[e>>>24]^ye[a>>>16&255]^Ee[l>>>8&255]^be[255&t]^r[37],d=me[a>>>24]^ye[l>>>16&255]^Ee[t>>>8&255]^be[255&e]^r[38],p=me[l>>>24]^ye[t>>>16&255]^Ee[e>>>8&255]^be[255&a]^r[39];let h=40;n>10&&(t=me[f>>>24]^ye[w>>>16&255]^Ee[d>>>8&255]^be[255&p]^r[40],e=me[w>>>24]^ye[d>>>16&255]^Ee[p>>>8&255]^be[255&f]^r[41],a=me[d>>>24]^ye[p>>>16&255]^Ee[f>>>8&255]^be[255&w]^r[42],l=me[p>>>24]^ye[f>>>16&255]^Ee[w>>>8&255]^be[255&d]^r[43],f=me[t>>>24]^ye[e>>>16&255]^Ee[a>>>8&255]^be[255&l]^r[44],w=me[e>>>24]^ye[a>>>16&255]^Ee[l>>>8&255]^be[255&t]^r[45],d=me[a>>>24]^ye[l>>>16&255]^Ee[t>>>8&255]^be[255&e]^r[46],p=me[l>>>24]^ye[t>>>16&255]^Ee[e>>>8&255]^be[255&a]^r[47],h=48),n>12&&(t=me[f>>>24]^ye[w>>>16&255]^Ee[d>>>8&255]^be[255&p]^r[48],e=me[w>>>24]^ye[d>>>16&255]^Ee[p>>>8&255]^be[255&f]^r[49],a=me[d>>>24]^ye[p>>>16&255]^Ee[f>>>8&255]^be[255&w]^r[50],l=me[p>>>24]^ye[f>>>16&255]^Ee[w>>>8&255]^be[255&d]^r[51],f=me[t>>>24]^ye[e>>>16&255]^Ee[a>>>8&255]^be[255&l]^r[52],w=me[e>>>24]^ye[a>>>16&255]^Ee[l>>>8&255]^be[255&t]^r[53],d=me[a>>>24]^ye[l>>>16&255]^Ee[t>>>8&255]^be[255&e]^r[54],p=me[l>>>24]^ye[t>>>16&255]^Ee[e>>>8&255]^be[255&a]^r[55],h=56),o[0]=(he[f>>>24]<<24|he[w>>>16&255]<<16|he[d>>>8&255]<<8|he[255&p])^r[h],o[1]=(he[w>>>24]<<24|he[d>>>16&255]<<16|he[p>>>8&255]<<8|he[255&f])^r[h+1],o[2]=(he[d>>>24]<<24|he[p>>>16&255]<<16|he[f>>>8&255]<<8|he[255&w])^r[h+2],o[3]=(he[p>>>24]<<24|he[f>>>16&255]<<16|he[w>>>8&255]<<8|he[255&d])^r[h+3]}}function Ae(t){const e=function(){const t=new Int32Array(pe),e=new Int32Array(16),r=new Uint8Array(le),n=new DataView(r.buffer),o=new Uint8Array(8);let a=0,i=0;return{update:s,digest:function(){const e=8*i,r=Math.floor(e/4294967296),n=e>>>0;for(s(we,0,1);56!=a;)s(de,0,1);o[0]=r>>>24,o[1]=r>>>16,o[2]=r>>>8,o[3]=r,o[4]=n>>>24,o[5]=n>>>16,o[6]=n>>>8,o[7]=n,s(o,0,8);const c=new Uint8Array(fe),u=new DataView(c.buffer);for(let e=0;e<t.length;e++)u.setInt32(4*e,t[e]);return t.set(pe),a=0,i=0,c}};function s(t,e,o){const s=e+o;if(i+=o,a){for(;e<s&&a<le;)r[a++]=t[e++];a==le&&(c(n,0),a=0)}if(e+le<=s){const r=new DataView(t.buffer,t.byteOffset,t.byteLength);for(;e+le<=s;e+=le)c(r,e)}for(;e<s;)r[a++]=t[e++]}function c(r,n){for(let t=0;t<16;t++)e[t]=r.getInt32(n+4*t);let o,a=t[0],i=t[1],s=t[2],c=t[3],u=t[4];for(let t=0;t<15;t+=5)u=(a<<5|a>>>27)+((s^c)&i^c)+u+1518500249+e[t]|0,i=i<<30|i>>>2,c=(u<<5|u>>>27)+((i^s)&a^s)+c+1518500249+e[t+1]|0,a=a<<30|a>>>2,s=(c<<5|c>>>27)+((a^i)&u^i)+s+1518500249+e[t+2]|0,u=u<<30|u>>>2,i=(s<<5|s>>>27)+((u^a)&c^a)+i+1518500249+e[t+3]|0,c=c<<30|c>>>2,a=(i<<5|i>>>27)+((c^u)&s^u)+a+1518500249+e[t+4]|0,s=s<<30|s>>>2;u=(a<<5|a>>>27)+((s^c)&i^c)+u+1518500249+e[15]|0,i=i<<30|i>>>2,o=e[13]^e[8]^e[2]^e[0],o=o<<1|o>>>31,e[0]=o,c=(u<<5|u>>>27)+((i^s)&a^s)+c+1518500249+o|0,a=a<<30|a>>>2,o=e[14]^e[9]^e[3]^e[1],o=o<<1|o>>>31,e[1]=o,s=(c<<5|c>>>27)+((a^i)&u^i)+s+1518500249+o|0,u=u<<30|u>>>2,o=e[15]^e[10]^e[4]^e[2],o=o<<1|o>>>31,e[2]=o,i=(s<<5|s>>>27)+((u^a)&c^a)+i+1518500249+o|0,c=c<<30|c>>>2,o=e[0]^e[11]^e[5]^e[3],o=o<<1|o>>>31,e[3]=o,a=(i<<5|i>>>27)+((c^u)&s^u)+a+1518500249+o|0,s=s<<30|s>>>2;for(let t=20;t<40;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(a<<5|a>>>27)+(i^s^c)+u+1859775393+o|0,i=i<<30|i>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,c=(u<<5|u>>>27)+(a^i^s)+c+1859775393+o|0,a=a<<30|a>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,s=(c<<5|c>>>27)+(u^a^i)+s+1859775393+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,i=(s<<5|s>>>27)+(c^u^a)+i+1859775393+o|0,c=c<<30|c>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,a=(i<<5|i>>>27)+(s^c^u)+a+1859775393+o|0,s=s<<30|s>>>2;for(let t=40;t<60;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(a<<5|a>>>27)+(i&s|(i|s)&c)+u+2400959708+o|0,i=i<<30|i>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,c=(u<<5|u>>>27)+(a&i|(a|i)&s)+c+2400959708+o|0,a=a<<30|a>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,s=(c<<5|c>>>27)+(u&a|(u|a)&i)+s+2400959708+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,i=(s<<5|s>>>27)+(c&u|(c|u)&a)+i+2400959708+o|0,c=c<<30|c>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,a=(i<<5|i>>>27)+(s&c|(s|c)&u)+a+2400959708+o|0,s=s<<30|s>>>2;for(let t=60;t<80;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(a<<5|a>>>27)+(i^s^c)+u+3395469782+o|0,i=i<<30|i>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,c=(u<<5|u>>>27)+(a^i^s)+c+3395469782+o|0,a=a<<30|a>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,s=(c<<5|c>>>27)+(u^a^i)+s+3395469782+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,i=(s<<5|s>>>27)+(c^u^a)+i+3395469782+o|0,c=c<<30|c>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,a=(i<<5|i>>>27)+(s^c^u)+a+3395469782+o|0,s=s<<30|s>>>2;t[0]=t[0]+a|0,t[1]=t[1]+i|0,t[2]=t[2]+s|0,t[3]=t[3]+c|0,t[4]=t[4]+u|0}}(),r=new Uint8Array(le),n=new Uint8Array(le);t.length>le&&(e.update(t,0,t.length),t=e.digest());for(let e=0;e<le;e++){const o=e<t.length?t[e]:0;r[e]=54^o,n[e]=92^o}return e.update(r,0,le),{update(t,r,n){e.update(t,r,n)},digest(){const t=e.digest();e.update(n,0,le),e.update(t,0,fe);const o=e.digest();return e.update(r,0,le),o}}}function Re(t){return he[t>>>24]<<24|he[t>>>16&255]<<16|he[t>>>8&255]<<8|he[255&t]}function ze(t){return t<<24|(65280&t)<<8|t>>>8&65280|t>>>24}function xe(t){return 255&(t<<1^27*(t>>7))}const De=typeof crypto!=v&&typeof crypto.getRandomValues==N,Fe="Invalid password",Oe="Invalid authentication code",Ie="zipjs-abort-check-password",Ue="Crypto API not supported";function Te(t){if(De)return crypto.getRandomValues(t);throw new Error(Ue)}const ke={name:"PBKDF2"},Ce=Object.assign({hash:{name:"HMAC"}},ke),Me=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},ke),ve=["deriveBits"],Ne=[8,12,16],_e=[16,24,32],je=10,Pe=typeof crypto!=v,Be=Pe&&crypto.subtle;let Le=Pe&&typeof Be!=v&&typeof Be.importKey==N&&typeof Be.deriveBits==N,We=ge;class Ze extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:o=!0}){const a={};super({start(){He(a,t,e,r)},async transform(t,e){const{password:r,strength:o,l:i,ready:s}=a;if(r?(await async function(t,e,r,n){const o=await Ke(t,e,r,$e(n,0,Ne[e])),a=$e(n,Ne[e]);if(o[0]!=a[0]||o[1]!=a[1])throw Ye(t),new Error(Fe)}(a,o,r,$e(t,0,Ne[o]+2)),t=$e(t,Ne[o]+2),n?(Ye(a),e.error(new Error(Ie))):i()):await s,a.h)return;const c=new Uint8Array(t.length-je-(t.length-je)%16);e.enqueue(qe(a,t,c,0,je,!0))},async flush(t){const{m:e,S:r,ready:n}=a;if(e){if(await n,a.h)return;const i=$e(r,r.length-je),s=new Uint8Array($e(r,0,r.length-je));e.process(s,!0);const c=e.digest();let u=r.length<je?1:0;for(let t=0;t<je;t++)u|=c[t]^i[t];if(u&&o)return void t.error(new Error(Oe));t.enqueue(s)}}}),Ge(this,a)}}class Ve extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){const n={};super({start(){He(n,t,e,r)},async transform(t,e){const{password:r,strength:o,l:a,ready:i}=n;let s=B;if(r?(s=await async function(t,e,r){const n=Te(new Uint8Array(Ne[e]));return Yt(n,await Ke(t,e,r,n))}(n,o,r),a()):await i,n.h)return;const c=new Uint8Array(s.length+t.length-t.length%16);c.set(s,0),e.enqueue(qe(n,t,c,s.length,0,!1))},async flush(t){const{m:e,S:r,ready:o}=n;if(e){if(await o,n.h)return;const a=new Uint8Array(r);e.process(a,!1);const i=$e(e.digest(),0,je);t.enqueue(Yt(a,i))}}}),Ge(this,n)}}function He(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.l=e),password:Xe(e,r),strength:n-1,S:B,h:!1})}function Ge(t,e){const r=t.readable.getReader(),n=new ReadableStream({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw Ye(e),r.cancel(t).catch(()=>{}),t}},cancel:t=>(Ye(e),r.cancel(t))});Object.defineProperty(t,"readable",{get:()=>n})}function qe(t,e,r,n,o,a){const{m:i,S:s}=t;s.length&&(e=Yt(s,e));const c=e.length-o,u=c-c%16;if(r=function(t,e){if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t}(r,n+u),u){const t=$e(r,n,n+u);t.set($e(e,0,u)),i.process(t,a)}return t.S=$e(e,u),r}function Ye(t){const{m:e}=t;t.h=!0,e&&e.dispose&&e.dispose()}async function Ke(t,e,r,n){t.password=null;const o=_e[e],a=await async function(t,e,r){if(Le)try{const n=await Be.importKey("raw",t,Ce,!1,ve);return new Uint8Array(await Be.deriveBits(Object.assign({salt:e},Me),n,8*r))}catch{Le=!1}return function(t,e,r,n){const o=Ae(t),a=new Uint8Array(n),i=new Uint8Array(e.length+4),s=new DataView(i.buffer);i.set(e);for(let t=1,r=0;r<n;t++,r+=fe){s.setUint32(e.length,t),o.update(i,0,i.length);let c=o.digest();const u=c.slice();for(let t=1;t<1e3;t++){o.update(c,0,fe),c=o.digest();for(let t=0;t<fe;t++)u[t]^=c[t]}a.set(u.subarray(0,Math.min(fe,n-r)),r)}return a}(t,e,0,r)}(r,n,2*o+2);return t.m=We($e(a,0,o),$e(a,o,2*o)),t.h&&Ye(t),$e(a,2*o)}function Xe(t,e){return e===U?ue(t):e}function $e(t,e,r){return t.subarray(e,r)}class Je extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){tr(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=er(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Fe);t=t.subarray(12)}n?e.error(new Error(Ie)):e.enqueue(er(r,t))}})}}class Qe extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){tr(this,t,e,r)},transform(t,e){const r=this;let n,o;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Te(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(rr(r,e),0),o=12}else n=new Uint8Array(t.length),o=0;n.set(rr(r,t),o),e.enqueue(n)}})}}function tr(t,e,r,n){Object.assign(t,{password:e,rawPassword:r,passwordVerification:n}),function(t,e,r){const n=[305419896,591751049,878082192];if(Object.assign(t,{A:n,R:new se(n[0]),D:new se(n[2])}),r)for(let e=0;e<r.length;e++)nr(t,r[e]);else for(let r=0;r<e.length;r++)nr(t,e.charCodeAt(r))}(t,e,r)}function er(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=or(t)^e[n],nr(t,r[n]);return r}function rr(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=or(t)^e[n],nr(t,e[n]);return r}function nr(t,e){let[,r]=t.A;t.R.append([e]);const n=~t.R.get();r=ir(Math.imul(ir(r+ar(n)),134775813)+1),t.D.append([r>>>24]);const o=~t.D.get();t.A=[n,r,o]}function or(t){const e=2|t.A[2];return ar(Math.imul(e,1^e)>>>8)}function ar(t){return 255&t}function ir(t){return 4294967295&t}function sr(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){try{const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)}catch(t){throw e.cancel(t).catch(()=>{}),t}},cancel:t=>e.cancel(t)})}function cr(t,e){t=sr(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=N||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const n=[];return t.pipeTo(new WritableStream({write(t){n.push(t)}})).then(()=>new Blob(n,r))}function ur(t){if(t instanceof WritableStream)return t;const e=t.getWriter();return new WritableStream({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})}const lr="Invalid codec definition",fr="Reserved compression method",wr="Invalid codec module",dr="Compression method not supported",pr=[0,8,9,99],hr=new Map,mr=new Map;function yr(t={}){const{compressionMethod:r,format:n,codecURI:o,CompressionStream:a,DecompressionStream:i,versionNeeded:s}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=j||!n.length)throw new Error(lr);if(pr.includes(r))throw new Error(fr);const c=typeof a==N||typeof i==N;if(!(c||typeof o==j&&o.length))throw new Error(lr);hr.set(r,{compressionMethod:r,format:n,codecURI:o,versionNeeded:s}),c&&Ar(n,{CompressionStream:a,DecompressionStream:i})}function Er(t){const e=hr.get(t);if(e){let r;hr.delete(t),hr.forEach(t=>r=r||t.format==e.format),r||mr.delete(e.format)}}function br(t){return hr.get(t)}function Sr(){return Array.from(hr.values(),t=>Object.assign({},t,mr.get(t.format)))}function gr(t){return mr.get(t)}function Ar(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=N&&typeof n!=N)throw new Error(wr);mr.set(t,{CompressionStream:r,DecompressionStream:n})}const Rr="Invalid uncompressed size",zr="Invalid compressed data",xr="Codec out of memory",Dr="Invalid CRC32",Fr="deflate-raw",Or="deflate64-raw",Ir="gzip",Ur=[31,139,8];class Tr extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:o,encrypted:a,useCompressionStream:i,zipCrypto:s,computeCrc32:c,level:u,deflate64:l,format:f,compressionMethod:w,inputSize:d}=t,p=this;let h,m,y,E=super.readable;const b=f&&gr(f),S=Pr(i,n,r),g=c&&o&&!l&&!b&&(!a||s)&&Boolean(S);if(a&&!s||!c||g||(h=new ce,E=Lr(E,h)),o)if(b)E=Wr(E,jr(b.CompressionStream,f,{level:u,chunkSize:e,compressionMethod:w,uncompressedSize:d}));else if(g)y=new kr,E=Wr(E,new S(Ir,{level:u,chunkSize:e})),E=Lr(E,y);else try{E=Br(E,i,{level:u,chunkSize:e},n,r)}catch(t){if(!i&&r)throw qr(t);let e;try{e=new n(Ir)}catch{throw qr(t)}E=Wr(E,e),E=Lr(E,new kr)}a&&(s?E=Lr(E,new Qe(t)):(m=new Ve(t),E=Lr(E,m))),_r(p,E,()=>{a&&!s||!c||(p.crc32=g?y.crc32:new DataView(h.value.buffer).getUint32(0))})}}class kr extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,n){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const o=r.length+t.length;if(o<=8)return void(r=Yt(r,t));const a=o-8,i=Math.min(a,r.length);n.enqueue(Yt(r.subarray(0,i),t.subarray(0,a-i))),r=Yt(r.subarray(i),t.subarray(a-i))},flush(){const e=Xt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class Cr extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:o,encrypted:a,checkCrc32:i,crc32:s,compressed:c,useCompressionStream:u,deflate64:l,format:f,compressionMethod:w,rawBitFlag:d,outputSize:p}=t;let h,m,y,E=super.readable;if(a&&(o?E=Lr(E,new Je(t)):(m=new Ze(t),E=Lr(E,m))),c){const t=new Set,o=f&&gr(f);let a;if(o)E=Wr(E,jr(o.DecompressionStream,f,{chunkSize:e,compressionMethod:w,rawBitFlag:d,uncompressedSize:p}),t);else{const o=Pr(u,n,r);if(i&&!l&&s!==U&&p!==U&&o)try{a=new o(Ir,{chunkSize:e})}catch{a=U}if(!a)try{E=Br(E,u,{chunkSize:e,deflate64:l},n,r,t)}catch(t){if(l||p===U||!u&&r)throw qr(t);try{a=new n(Ir)}catch{throw qr(t)}}}a?(y=!0,E=function(t,e,r,n,o){const a=e.writable.getWriter(),i=e.readable.getReader(),s=n===U?new se:U;let c,u,l=0,f=!1,w=!1;const d=new ReadableStream({start(t){u=t},pull(){m()},cancel:t=>(w=!0,m(),i.cancel(t))});return async function(){const e=t.getReader();try{const t=new Uint8Array(10);for(t.set(Ur),await a.write(t);;){await h(),await a.ready;const{value:t,done:r}=await Hr(e,o);if(r)break;await a.write(t)}s&&await a.write(new Uint8Array(0));const i=new Uint8Array(8),c=Xt(i);c.setUint32(0,s?s.get():n,!0),c.setUint32(4,r,!0),f=!0,await a.write(i),await a.close()}catch(t){await Zr(a,t),await Vr(e,t)}}(),async function(){try{for(;;){const{value:t,done:e}=await p();if(e)break;if(l+=t.length,l>r)throw new Error(Rr);s&&s.append(t),u.enqueue(t)}w||(w=!0,u.close())}catch(t){!function(t){w||(w=!0,u.error(t),m())}(t),await Vr(i,t)}}(),d;function p(){return i.read().catch(t=>{if(f){if(!s)throw Kr(t,Dr);if(l!=r)throw Kr(t,Rr);return{done:!0}}throw Gr(t,o)})}function h(){if(!w&&u.desiredSize<=0)return new Promise(t=>c=t)}function m(){if(c){const t=c;c=U,t()}}}(E,a,p,s,t)):E=function(t,e){const r=t.getReader();return new ReadableStream({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw await Vr(r,t),Gr(t,e)}},cancel:t=>r.cancel(t)})}(E,t)}i&&!y&&(h=new ce,E=Lr(E,h)),_r(this,E,()=>{if(h){const t=new DataView(h.value.buffer).getUint32(0,!1);if(s!=t)throw new Error(Dr)}})}}const Mr=new Map;function vr(t,e){if(!t)return!1;let r=Mr.get(t);r||(r=new Map,Mr.set(t,r));let n=r.get(e);if(n===U){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function Nr(t){return vr(t,Fr)}function _r(t,e,r){e=Lr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function jr(t,e,r){if(!t)throw new Error(dr);return new t(e,r)}function Pr(t,e,r){return t&&e?e:r&&r.requiresModule?r:void 0}function Br(t,e,r,n,o,a){const i=e&&n?n:o||n,s=r.deflate64?Or:Fr;let c;try{c=new i(s,r)}catch(t){if(!e||!o||i==o)throw t;c=new o(s,r)}return Wr(t,c,a)}function Lr(t,e){return sr(t).pipeThrough(e)}function Wr(t,e,r){const n=e.writable.getWriter(),o=t.getReader();return async function(){try{for(;;){await n.ready;const t=await Hr(o,r);if(t.done){await n.close();break}await n.write(t.value)}}catch(t){await Zr(n,t),await Vr(o,t)}}(),e.readable}async function Zr(t,e){try{await t.abort(e)}catch{}}async function Vr(t,e){try{await t.cancel(e)}catch{}}function Hr(t,e){const r=t.read();return e?r.catch(t=>{throw e.add(t),t}):r}function Gr(t,e){return e.has(t)?t:Kr(t,Yr(t)?xr:zr)}function qr(t){return Yr(t)?Kr(t,xr):t}function Yr(t){return $t(t)&&"Z_MEM_ERROR"==t.code}function Kr(t,e){const r=new Error(e);return r.cause=t,r}const Xr="data",$r="deflate",Jr="inflate";class Qr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let o;n.startsWith($r)?o=Tr:n.startsWith(Jr)&&(o=Cr),r.outputSize=0;let a=0;const i=new o(t,e),s=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(a+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:a})}}),u=new TransformStream({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==U&&r.outputSize>t.outputSize))throw new Error(Rr)},flush(){const{crc32:t}=i;Object.assign(r,{crc32:t,inputSize:a})}});Object.defineProperty(r,"readable",{get:()=>s.pipeThrough(c).pipeThrough(i).pipeThrough(u)})}}class tn extends TransformStream{constructor(t){const e=[];let r=0,n=0;function o(){const n=new Uint8Array(t);let o=0;for(;o<t;){const r=e[0],a=t-o;r.length<=a?(n.set(r,o),o+=r.length,e.shift()):(n.set(r.subarray(0,a),o),e[0]=r.subarray(a),o+=a)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=262144),super({transform(a,i){for(e.push(a),r+=a.length;r>t;)n+=t,i.enqueue(o())},flush(t){r&&(n+=r,t.enqueue(function(t,e){const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(e,r)))}}),Object.defineProperty(this,"outputSize",{get:()=>n})}}const en="Worker startup timeout";let rn,nn,on,an=()=>{};async function sn(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;return!(!r||r.requiresModule)||!(!Nr(e)&&(n=e,!vr(n,Ir)))||!!r&&await cn(t);var n}async function cn(t){if(an)try{return await an(t),!0}catch{}return!1}function un(t){t.createWorker?nn=!0:rn=!1}class ln{constructor(t,{readable:e,writable:r},n,o){const{options:a,config:i,F:s,useWebWorkers:c,workerURI:u}=n;let{createWorker:l}=n;const{signal:f}=s;return nn&&(l=U),Object.assign(t,{O:!0,I:(t.I||0)+1,readable:e.pipeThrough(new tn(Bt(i))).pipeThrough(new fn(s),{signal:f}),writable:r,options:Object.assign({},a),U:n,workerURI:u,createWorker:l,terminate:()=>new Promise(e=>{const{T:r,O:n}=t;n?(t.C=t.C||[],t.C.push(e)):(r&&(r.terminate(),t.T=null),e()),t.M=null}),v(){if(t.O){const{C:e,T:r}=t;e&&(t.C=null,r&&(t.N=!0,r.terminate())),t.O=!1;const n=o(t);e&&e.forEach(t=>t(n))}}}),rn===U&&(rn=typeof Worker!=v),(c&&on&&(rn&&u||l)?on:dn)(t,i)}}class fn extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let o=0;super({async start(){t&&await wn(t,r)},async transform(t,n){o+=t.length,e&&await wn(e,o,r),n.enqueue(t)},async flush(){n&&await wn(n,o)}})}}async function wn(t,...e){try{await t(...e)}catch{}}function dn(t,e){return{run:()=>pn(t,e)}}async function pn({options:t,readable:e,writable:r,v:n,U:o},a){let i,s,c;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith($r),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;t.useCompressionStream?r&&r.requiresModule&&!Nr(n)&&await u():await u()||r&&!r.requiresModule||(t.useCompressionStream=!0)}t.encrypted&&!t.zipCrypto&&await u(),i=new Qr(t,a),s=new tn(Bt(a));const{signal:n}=o.F;await e.pipeThrough(i).pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0,signal:n});const{crc32:c,inputSize:l,outputSize:f}=i;return{crc32:c,inputSize:l,outputSize:f}}catch(t){if(i){const e=s?s.outputSize:0;if(o.outputSize=e,$t(t))try{t.outputSize=e}catch{}}throw t}finally{n()}function u(){return c||(c=cn(a)),c}}const hn={type:"module"},mn="error",yn="abort";let En,bn,Sn;var gn;function An(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Rn(t){const{T:e}=t;if(e)try{e.terminate()}catch{}t.M=null}function zn(t,e,r,n,o=!0){const{createWorker:a}=r;let i,s,c;if(a)i=a();else if(bn===U||En!==t){const a=typeof t==N;s=a?t(o):t;const u=s.startsWith("data:"),l=s.startsWith("blob:");if(u||l){n===U&&(n=!1),n&&(c=hn);try{i=new Worker(s,c)}catch(o){if(l)try{URL.revokeObjectURL(s)}catch{}if(a&&l)return zn(t,e,r,n,!1);if(n)throw o;return zn(t,e,r,!0,!1)}}else{n===U&&(n=!0),n&&(c=hn);try{s=new URL(s,e)}catch{}try{i=new Worker(s,c)}catch(a){if(n)return zn(t,e,r,!1,o);throw a}}En=t,bn=s,Sn=c}else i=new Worker(bn,Sn);return i.addEventListener("message",t=>{r._=!0,xn(r),async function({data:t},e){const{type:r,value:n,messageId:o,result:a,error:i,errorValue:s}=t,{reader:c,writer:u,j:l,P:f,v:w,I:d}=e,p=()=>e.I!=d;try{if(i)h(function(t,e){const{message:r,stack:n,code:o,name:a,outputSize:i,cause:s,codecImportFailed:c}=t;let u;if(u=e?e.value:Object.assign(new Error(r),{stack:n,code:o,name:a}),$t(u))try{i!==U&&(u.outputSize=i),c&&(u.codecImportFailed=!0),s&&($t(u.cause)||(u.cause=Object.assign(new Error(s.message),{name:s.name})),s.code!==U&&u.cause.code!==s.code&&(u.cause.code=s.code)),e&&(u.name!==a&&(u.name=a),u.code!==o&&(u.code=o))}catch{}return u}(i,s));else{if("pull"==r){const{value:t,done:r}=await c.read();p()||Fn({type:Xr,value:t,done:r,messageId:o},e)}if(r==Xr){const t=new Uint8Array(n);await u.ready,await u.write(t),p()||Fn({type:"ack",messageId:o},e)}"close"==r&&function(t){p()||(l(t),m(),w())}(a)}}catch(i){p()||(Rn(e),h(i))}function h(t){p()||(f(t),m(),$t(t)&&t.codecImportFailed||w())}function m(){u&&u.releaseLock()}}(t,r)}),i.addEventListener(mn,t=>Dn(t,r)),i.addEventListener("messageerror",t=>Dn(t,r)),i}function xn(t){const{B:e}=t;e&&(clearTimeout(e),t.B=null)}function Dn(t,e){t.preventDefault&&t.preventDefault(),xn(e);const{_:r,P:n,writer:o,v:a}=e;Rn(e),r||(e.T=null);let i=t.error||new Error(t.message||mn);r||(i=Object.assign(new Error(i.message||mn),{L:!0}),e.W=i),n&&(n(i),o&&o.releaseLock(),r&&a())}function Fn(t,{T:e,writer:r}){try{const{value:r}=t;if(r){t.value=Kt(r);try{e.postMessage(t,[t.value.buffer])}catch{e.postMessage(t)}}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}gn=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:o}=e;let{wasmURI:a}=e;if(!t.M){let i;typeof a==N&&(a=a());try{i=zn(t.workerURI,r,t)}catch{return un(t),dn(t,e)}Object.assign(t,{T:i,_:!1,N:!1,W:null,M:{run:async()=>{try{return await async function(t,e){if(!t.T){const{W:e}=t;t.W=null;const r=e||new Error(en);throw r.L=!0,r}let r,n;const o=new Promise((e,o)=>{r=e,n=e=>{const{outputSize:r,U:n}=t;if(n.outputSize=r,$t(e))try{e.outputSize=r}catch{}o(e)}});Object.assign(t,{reader:null,writer:null,outputSize:0,Z:!1,V:null,j:r,P:n,result:o});const{readable:a,options:i}=t,{writable:s,closed:c,H:u}=function(t,e){const r=new AbortController;let n;const{writable:o,readable:a}=new TransformStream({transform(t,r){e.outputSize+=t.length,r.enqueue(t)}}),i=a.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:r.signal});i.catch(t=>{n||Object.assign(e,{Z:!0,V:t})});const{signal:s}=e.U.F;if(s){const t=()=>r.abort(s.reason),e=()=>s.removeEventListener(yn,t);s.addEventListener(yn,t),i.then(e,e)}return{writable:o,closed:i,H:()=>{n=!0,r.abort()}}}(t.writable,t);try{Fn({type:"start",options:i,config:e},t)}catch(e){u();try{await c}catch{}throw t.v(),e}Object.assign(t,{reader:a.getReader(),writer:s.getWriter()});const{workerStartupTimeout:l}=e;!t._&&Number.isFinite(l)&&l>=0&&(t.B=setTimeout(()=>function(t){if(t.B=null,t._)return;const{P:e,writer:r}=t;if(Rn(t),t.T=null,e){const t=new Error(en);t.L=!0,e(t),r&&r.releaseLock()}}(t),l));try{const t=await o;return await f(),await c,t}catch(e){await f(),u();try{await c}catch{}const{outputSize:r,U:n,Z:o,V:a}=t;n.outputSize=r;const i=$t(e)&&(e.codecImportFailed||e.L),s=o&&!i?a:e;if($t(s))try{s.outputSize=r}catch{}throw s}async function f(){if(!s.locked)try{await s.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:a,baseURI:r,workerStartupTimeout:o})}catch(r){if(r&&r.L)return un(t),An(t),pn(t,e);if(r&&r.codecImportFailed){if(t.reader)return An(t),pn(t,e);t.v()}throw r}}}})}return t.M},on=gn;let On=[];const In=[];let Un,Tn,kn=0;async function Cn(t,e){const{options:r,config:n}=e,{useWebWorkers:o,useCompressionStream:a,compressed:i,checkCrc32:s,computeCrc32:c,encrypted:u,format:l,codecURI:f}=r,{workerURI:w,createWorker:d,maxWorkers:p}=n;l&&(f&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(f,n.baseURI)),await async function(t,e){!mr.has(t)&&e&&Ar(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(l,r.codecURI));const h=!(i||s||c||u),m=l===U||Boolean(r.codecURI);return e.useWebWorkers=!h&&m&&(o||o===U&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&w?w:U,e.createWorker=e.useWebWorkers&&d?d:U,r.useCompressionStream=a||a===U&&n.useCompressionStream,(await async function(){const r=On.find(t=>!t.O);if(r)return Bn(r),new ln(r,t,e,y);if(On.length<p){const r={G:kn};return kn++,On.push(r),new ln(r,t,e,y)}return new Promise(r=>{In.push({resolve:r,stream:t,U:e}),Tn=n.workerStarvationTimeout,Mn()})}()).run();function y(t){if(vn(),t.N)return t.N=!1,_n();if(In.length){const[{resolve:e,stream:r,U:n}]=In.splice(0,1);e(new ln(t,r,n,y)),Mn()}else t.T?(Bn(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Y=setTimeout(async()=>{On=On.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):On=On.filter(e=>e!=t)}}function Mn(){!Un&&In.length&&Number.isFinite(Tn)&&Tn>=0&&(Un=setTimeout(Nn,Tn))}function vn(){Un&&(clearTimeout(Un),Un=null)}function Nn(){if(Un=null,In.length){const[{resolve:t,stream:e,U:r}]=In.splice(0,1);t(new ln({},e,jn(r),Pn)),Mn()}}function _n(){const t=In.splice(0).map(({resolve:t,stream:e,U:r})=>new Promise(n=>{t(new ln({},e,jn(r),()=>{Pn(),n()}))}));return vn(),Promise.all(t)}function jn(t){return Object.assign({},t,{useWebWorkers:!1,workerURI:U,createWorker:U})}function Pn(){vn(),Mn()}function Bn(t){const{Y:e}=t;e&&(clearTimeout(e),t.Y=null)}const Ln="\0\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\xb6\xa7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0".split("");function Wn(t,e){return Vn(t,e,!0)}function Zn(t){if(!t.some(t=>t>127))return!1;try{return new TextDecoder("utf-8",{fatal:!0}).decode(t),!0}catch{return!1}}function Vn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=Ln[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const Hn="HTTP error ",Gn="HTTP Range not supported",qn="HTTP resource changed",Yn="Writer iterator completed too soon",Kn="Writer not initialized",Xn="Invalid writer (size must be writable)",$n="Content-Range",Jn="Range",Qn="GET",to="bytes",eo=16777216,ro="writable",no=Symbol();class oo{constructor(){this.size=0}init(){this.initialized=!0}}class ao extends oo{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=Bt(Pt())}={}){const n=this;let o=0;return r=Lt(r),new ReadableStream({async pull(a){const i=e===U?r:Math.min(r,e-o),s=await Go(n,t+o,i);s.length&&(a.enqueue(s),o+=s.length),(e!==U&&o>=e||!s.length&&i)&&a.close()}})}}class io extends oo{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(Kn);return t.writeUint8Array(Kt(e))}});Object.defineProperty(t,ro,{get:()=>e})}writeUint8Array(){}}class so extends ao{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{K:t,X:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{X:r,K:n}=this,o=new Uint8Array(e),a=4*Math.floor(t/3),i=atob(n.substring(a+r,4*Math.ceil((t+e)/3)+r)),s=t-3*Math.floor(a/4);let c=0;for(let t=s;t<s+e&&t<i.length;t++)o[t-s]=i.charCodeAt(t),c++;return c<o.length?o.subarray(0,c):o}}class co extends io{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",$:""})}writeUint8Array(t){const e=this;let r,n=e.$;const o=e.$.length;for(e.$="",r=0;r<3*Math.floor((o+t.length)/3)-o;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.$+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.$=n+e.$}getData(){return this.data+btoa(this.$)}}let uo,lo;class fo extends ao{constructor(t){super(),Object.assign(this,{J:t,size:t.size}),lo||(lo=(async()=>{try{const t=new Blob([new Uint8Array(3)]).slice(1,2).stream().getReader();let e=0,r=await t.read();for(;!r.done;)e+=r.value.length,r=await t.read();uo=1==e}catch{uo=!1}})())}createReadable(t){const{J:e,size:r}=this,{offset:n=0,size:o=r-n}=t||{};if(typeof e.stream==N){if(!n&&o>=r)return sr(e.stream());if(uo)return sr(e.slice(n,n+o).stream())}return super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,o=!t&&n>=r.size?r.J:r.J.slice(t,n);let a=await o.arrayBuffer();return a.byteLength>e&&(a=a.slice(t,n)),new Uint8Array(a)}}class wo extends oo{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,ro,{get:()=>r.writable}),e.contentType=t,e.et=cr(r.readable,t),e.et.catch(()=>{})}getData(){return this.et}}class po extends fo{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function ho(t){let e=0;for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);n<128?e+=1:n<2048?e+=2:n<55296||n>=57344?e+=3:n<56320&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class mo extends wo{constructor(t){super(),Object.assign(this,{encoding:t,nt:!t||"utf-8"==t.toLowerCase()})}async getData(){const{encoding:t,nt:e}=this,r=await super.getData();return r.text&&e?r.text():function(t,e){return Vn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class yo extends ao{constructor(t,e){super(),bo(this,t,e)}async init(){await So(this,Co,Io),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:o,ot:a}=e;if((r||n)&&o!==U){const{offset:r=0,size:n=o-r}=t||{},i=a&&r>=o-a.length;if(n>0&&r<o&&!i)return function(t,e,r){let n,o=e,a=0,i=r;return new ReadableStream({start:()=>s(),async pull(t){n||await s();const{value:e,done:r}=await n.read();if(r)throw new Error(Gn);const o=e.length>a?e.subarray(0,a):e;a-=o.length,i-=o.length,o.length&&t.enqueue(o),a||(await async function(){const t=n;n=U,await t.cancel()}(),i||t.close())},cancel:t=>n&&n.cancel(t)});async function s(){const e=Math.min(t.maximumRangeSize,i),r=await Co(Qn,t,Fo(t,o,e));if(206!=r.status)throw new Error(Gn);const s=Ao(r);if(s!==U&&s!=o)throw new Error(Gn);Do(t,r),xo(t,r),o+=e,a=e,n=r.body.getReader()}}(e,r,Math.min(n,o-r))}return super.createReadable(t)}readUint8Array(t,e){return go(this,t,e,Co,Io)}}class Eo extends ao{constructor(t,e){super(),bo(this,t,e)}async init(){await So(this,Mo,Uo),super.init()}readUint8Array(t,e){return go(this,t,e,Mo,Uo)}}function bo(t,e,r){const{preventHeadRequest:n,useRangeHeader:o,forceRangeRequests:a,combineSizeEocd:i,checkResourceChanges:s=!0,maximumRangeSize:c=eo,fetch:u}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:n,useRangeHeader:o,forceRangeRequests:a,combineSizeEocd:i,checkResourceChanges:s,maximumRangeSize:c,fetch:u})}async function So(t,e,r){const{url:n,preventHeadRequest:o,useRangeHeader:a,forceRangeRequests:i,combineSizeEocd:s}=t;if(function(t){const{baseURI:e}=Pt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(a||i)&&(typeof o==v||o)){const n=await e(Qn,t,Fo(t,s?-65557:void 0)),o=n.headers.get("Accept-Ranges");if(!(i||o&&o.toLowerCase()==to))throw new Error(Gn);{let o;s&&206==n.status&&(o=new Uint8Array(await n.arrayBuffer())),xo(t,n);const a=Ro(n);a===U?await ko(t,e,r):t.size=a,o&&o.length&&Ao(n)===t.size-o.length&&(t.ot=o)}}else await ko(t,e,r)}async function go(t,e,r,n,o){const{useRangeHeader:a,forceRangeRequests:i,ot:s,size:c,options:u}=t;if(a||i){if(e>=c||0===r)return B;{if(e+r>c&&(r=c-e),s&&e>=c-s.length){const t=e-(c-s.length);return s.slice(t,t+r)}const o=await n(Qn,t,Fo(t,e,r));if(206!=o.status)throw new Error(Gn);const a=Ao(o);if(a!==U&&a!=e)throw new Error(Gn);Do(t,o),xo(t,o);const i=new Uint8Array(await o.arrayBuffer());if(i.length!=r)throw new Error(Gn);return i}}{const{data:n}=t;return n||await o(t,u),t.data.subarray(e,e+r)}}function Ao(t){const e=t.headers.get($n);if(e){const t=Number(e.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t))return t}}function Ro(t){const e=t.headers.get($n);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function zo({headers:t}){return{it:t.get("Etag")||U,lastModified:t.get("Last-Modified")||U}}function xo(t,e){const{checkResourceChanges:r,st:n}=t;r&&!n&&206==e.status&&(t.st=zo(e))}function Do(t,e){const{checkResourceChanges:r,st:n,size:o}=t;if(r){const t=Ro(e);if(t!==U&&o!==U&&t!=o)throw new Error(qn);if(n){const t=zo(e);if(Object.entries(n).some(([e,r])=>r!==U&&t[e]!==U&&r!=t[e]))throw new Error(qn)}}}function Fo(t,e=0,r=1){return Object.assign({},Oo(t),{[Jn]:to+"="+(e<0?e:e+"-"+(e+r-1))})}function Oo({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Io(t){await To(t,Co)}async function Uo(t){await To(t,Mo)}async function To(t,e){const r=await e(Qn,t,Oo(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function ko(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,Oo(t)),o=n.headers.get("Content-Length");o&&!n.headers.get("Content-Encoding")?t.size=Number(o):await r(t,t.options)}}async function Co(t,{fetch:e=fetch,options:r,url:n},o){const a=await e(n,Object.assign({},r,{method:t,headers:o}));if(a.status>=200&&a.status<=299)return a;throw 416==a.status?new Error(Gn):new Error(Hn+(a.statusText||a.status))}function Mo(t,{url:e},r){return new Promise((n,o)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",()=>{if(a.status>=200&&a.status<=299){const t=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),n({status:a.status,arrayBuffer:()=>a.response,headers:new Map(t)})}else o(416==a.status?new Error(Gn):new Error(Hn+(a.statusText||a.status)))},!1),a.addEventListener("error",t=>o(t.detail?t.detail.error:new Error("Network error")),!1),a.open(t,e),r)for(const t of Object.entries(r))a.setRequestHeader(t[0],t[1]);a.responseType="arraybuffer",a.send()})}class vo extends ao{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Eo(t,e):new yo(t,e)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}createReadable(t){return this.reader.createReadable(t)}readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class No extends vo{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class _o extends ao{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{ct:t,size:t.length})}readUint8Array(t,e){return this.ct.slice(t,t+e)}}class jo extends io{constructor(t){super(),this.ut=t||262144}init(t=0){Object.assign(this,{offset:0,ct:new Uint8Array(t>0?t:this.ut)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.ct.length){let t=e.ct.length?2*e.ct.length:e.ut;for(;t<r;)t*=2;const n=e.ct;e.ct=new Uint8Array(t),e.ct.set(n)}e.ct.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.ct.length?this.ct:this.ct.slice(0,this.offset)}}class Po extends ao{constructor(t){super(),this.lt=t}async init(){const t=this;t.ft=0;const e=t.lt=await Promise.all(t.lt.map(Ho));t.wt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}ht(t){const{wt:e,size:r}=this,n=e[t];return n===U?r:n}async readUint8Array(t,e){const r=this,{lt:n}=this;let o,a=0,i=t;for(;n[a]&&i>=n[a].size;)i-=n[a].size,a++;const s=n[a];if(s){const n=s.size;if(i+e<=n)o=await Go(s,i,e);else{const a=n-i;o=Yt(await Go(s,i,a),await r.readUint8Array(t+a,e-a))}}else o=B;return r.ft=Math.max(a,r.ft),o}}class Bo extends oo{constructor(t,e=4294967295){super();const r=this;let n,o,a;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const i=new WritableStream({async write(e){if(e===no)return void(a&&await c());const{availableSize:i}=r;if(a)e.length>=i?(await s(e.subarray(0,i)),await c(),e.length>i&&await this.write(e.subarray(i))):await s(e);else{const{value:i,done:s}=await t.next();if(s&&!i)throw new Error(Yn);n=i,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await Vo(n),o=i.writable,a=o.getWriter(),await this.write(e)}},async close(){a&&(await a.ready,await u())},async abort(t){a&&await a.abort(t)}});async function s(t){const e=t.length;e&&(await a.ready,await a.write(t),n.size+=e,r.availableSize-=e)}async function c(){await u(),r.diskOffset+=n.size,r.diskNumber++,a=null,r.availableSize=r.maxSize}async function u(){await a.close()}Object.defineProperty(r,ro,{get:()=>i})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(no)}finally{t.releaseLock()}}}class Lo{constructor(t){return Array.isArray(t)&&(t=new Po(t)),(t instanceof ReadableStream||typeof t.getReader==N)&&(t={readable:sr(t)}),t}}class Wo{constructor(t){t.writable===U&&typeof t.next==N&&(t=new Bo(t)),(t instanceof WritableStream||typeof t.getWriter==N)&&(t={writable:ur(t)});try{t.size=t.size===U?0:t.size}catch{throw new Error(Xn)}return t}}function Zo(t){return Boolean(t&&t.getData)}async function Vo(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function Ho(t){return t=new Lo(t),await Vo(t),t.size!==U&&t.readUint8Array||(t=new fo(await cr(t.readable)),await Vo(t)),t}function Go(t,e,r){return t.readUint8Array(e,r)}function qo(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?ao.prototype.createReadable.call(t,e):t.readable}function Yo(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==U&&(n.filename=r),t.push(n)}}const Ko="filename",Xo="rawFilename",$o="comment",Jo="rawComment",Qo="uncompressedSize",ta="compressedSize",ea="offset",ra="diskNumberStart",na="lastModDate",oa="rawLastModDate",aa="lastAccessDate",ia="rawLastAccessDate",sa="creationDate",ca="rawCreationDate",ua="internalFileAttributes",la="externalFileAttributes",fa="msdosAttributesRaw",wa="msdosAttributes",da="msDosCompatible",pa="zip64",ha="encrypted",ma="version",ya="versionMadeBy",Ea="zipCrypto",ba="directory",Sa="executable",ga="compressionMethod",Aa="signature",Ra="extraField",za="unixMode",xa="setuid",Da="setgid",Fa="sticky",Oa=[Ko,Xo,Qo,ta,na,oa,$o,Jo,aa,ia,sa,ca,ea,ra,ua,la,fa,wa,da,pa,ha,ma,ya,Ea,ba,Sa,"symlink",ga,Aa,"crc32",Ra,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",za,"unixExternalUpper",xa,Da,Fa,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Ia{constructor(t){Oa.forEach(e=>this[e]=t[e])}}const Ua=new Set([1,h,10,m,28789,25461,y,E,b,22613,13]);function Ta(t,e,r){return t?e?12:16+4*r:0}const ka="File format is not recognized",Ca="End of central directory not found",Ma="End of Zip64 central directory locator not found",va="Central directory header not found",Na="File contains encrypted entry",_a="Encryption method not supported",ja="Split zip file",Pa="Entry data out of bounds",Ba="Ambiguous archive",La="Encrypted central directory is not supported",Wa="Unsafe filename",Za="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",Va="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",Ha="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",Ga="64-bit value exceeds Number.MAX_SAFE_INTEGER",qa="unsorted central directory",Ya="unknown version needed to extract",Ka="compressed patched data",Xa="malformed extra field",$a="unknown zip64 extensible data",Ja="wrapped entries count",Qa="appended data",ti="prepended data",ei="prepended central directory",ri="trailing central directory data",ni="mismatched central directory offset",oi="missing zip64 extra field",ai="duplicate filename",ii="mismatched zip64 end of central directory record",si="multiple end of central directory records",ci="mismatched local file header (filename)",ui="mismatched local file header (general purpose bit flag)",li="mismatched local file header (compression method)",fi="mismatched local file header (crc32 or sizes)",wi=/^[a-zA-Z]:/,di=/(^|[\\/])\.\.([\\/]|$)/,pi="utf-8",hi="cp437",mi=[[Qo,t],[ta,t],[ea,t],[ra,e]],yi={[e]:{yt:os,bytes:4},[t]:{yt:as,bytes:8}},Ei=BigInt(Number.MAX_SAFE_INTEGER);class bi{constructor(t,e={}){Object.assign(this,{reader:new Lo(t),options:e||{},Et:{bt:new Set,St:[],gt:[]},At:new WeakSet})}async*getEntriesGenerator(a={}){const c=this;let{reader:h}=c;if(await Vo(h),h.size!==U&&h.readUint8Array||(h=new fo(await cr(h.readable)),await Vo(h)),h.size<w)throw new Error(ka);const m=c.warnings=[],y=Li(a,c.options),E=y==st,b=y!=ut,S=Vi(Ji(c,a,rt),y),g=function(t,e){if(t===U)return e;if(!Bi(t))throw new Error(Va);return t}(Ji(c,a,"filenameValidation"),y),F=Ji(c,a,"normalizeFilename"),{Rt:O,zt:I}=await Hi(h,b,S);if(!O)throw await async function(t){return await Pi(t)==o}(h)?new Error(ja):new Error(Ca);b&&I>1&&$i(si);const T=Xt(O);let k=os(T,12),C=os(T,16);const v=O.offset,N=ns(T,20),_=v+w+N,j=h.size-_;j>S&&$i(Qa),j>0&&Yo(m,Qa);let P=ns(T,4);const L=h.ft||0;let W,Z,V,H,q,Y=ns(T,6),K=ns(T,10),X=0,$=p;const J=C==t||k==t||K==e||Y==e;if(C!=t&&Y!=e&&(C+=ji(h,Y)),J){const r=O.offset>=d?await Go(h,O.offset-d,d):B,n=Xt(r);if(r.length==d&&os(n,0)==l){C=ji(h,os(n,4))+as(n,8);let r=await Go(h,C,p),o=Xt(r);if(r.length<p||os(o,0)!=u){const t=O.offset-d;let e=t-p;if(await Di(h,e,u)||(e=await async function(t,e){const r=Math.max(0,e-65591),n=await Go(t,r,e-r),o=Xt(n);for(let t=n.length-p;t>=0;t--)if(os(o,t)==u&&t+12+Number(o.getBigUint64(t+4,!0))==n.length)return r+t}(h,t)),e!==U&&e>=0&&C!=e){const t=C;C=e,C>t&&(X=C-t),r=await Go(h,C,p),o=Xt(r)}}if(r.length<p||os(o,0)!=u)throw new Error(Ma);if(V=!0,H=as(o,4)>44,H){const t=Math.min(as(o,4)-44,h.size-C-p);t>0&&($+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Xt(t),n=ns(r,26);Object.assign(e,{compressionMethod:ns(r,0),compressedSize:as(r,2),uncompressedSize:as(r,10),encryptionAlgorithm:ns(r,18),bitLength:ns(r,20),flags:ns(r,22),hashAlgorithm:ns(r,24),hashData:t.subarray(28,28+n)})}return e}(await Go(h,C+p,t)))}P==e?P=os(o,16):P!=os(o,16)&&Xi(E,m,ii),Y==e?Y=os(o,20):Y!=os(o,20)&&Xi(E,m,ii),K==e?K=as(o,32):K!=as(o,32)&&Xi(E,m,ii),k==t?k=as(o,40):k!=as(o,40)&&Xi(E,m,ii),C=ji(h,Y)+as(o,48)+X}else if(C==t||k==t||Y==e)throw new Error(Ma)}let Q=k;const tt=O.offset-(V?$+d:0);if(L!=P)throw new Error(ja);if(C<0)throw new Error(ka);let nt=0,ot=C<h.size?await Go(h,C,k):B,ct=Xt(ot);if(k){let e=tt-k;if(C!=e&&Y==P){const r=ot.length>=4&&(os(ct,nt)==s||Boolean(q&&q.compressedSize)||Ri(ct));if(!r&&e<0)throw new Error(ka);let o=!r;if(e>=0&&e+4<=h.size){let t=await xi(h,e);if(!t){const r=await async function(t,e){const r=Math.max(0,e-65541),n=await Go(t,r,e-r),o=Xt(n);for(let t=n.length-6;t>=0;t--)if(os(o,t)==i&&t+6+ns(o,t+4)==n.length)return r+t}(h,tt),n=r-k;r!==U&&n>=0&&await xi(h,n)&&(e=n,t=!0)}r&&(o=t)}if(o&&e!=C){const o=C;C=e,ot=await Go(h,C,k),ct=Xt(ot);const a=C-o,i=function(e,r){if(e.length<f)return U;const n=os(r,42);if(n!=t)return n;let o=f+ns(r,28);const a=Math.min(o+ns(r,30),e.length);for(;o+4<=a;){const e=ns(r,o),n=ns(r,o+2);if(1==e){let e=o+4;return os(r,24)==t&&(e+=8),os(r,20)==t&&(e+=8),e+8<=a?as(r,e):U}o+=4+n}return U}(ot,ct),s=i!==U&&await Di(h,i,n),c=i!==U&&await Di(h,i+a,n);a>0&&(!s||c)?(X+=a,W=r):(Xi(E,m,ni),a<0&&!s&&c&&(X+=a))}}if(ot.length<4)throw new Error(ka)}else!K&&C<tt&&Y==P&&(X+=tt-C,C=tt);const lt=tt-C;if(k!=lt&<>=0&&Y==P&&(k=lt,ot=await Go(h,C,k),ct=Xt(ot)),C<0||C>=h.size)throw new Error(ka);c.directoryOffset=C,c.directoryLength=Q;const ft=Qi(c,a,"decryptCentralDirectory");let wt,dt;if(ft&&K&&ot.length>=4&&os(ct,0)!=s&&(H||Ri(ct))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,Q,ot.length);dt=ot.subarray(t),ot=await ft(ot.subarray(0,t),q),ct=Xt(ot),Q=ot.length,wt=!0}q&&!wt&&(ot.length<4||os(ct,0)==s)&&Yo(m,$a),Z=C;const pt=Ji(c,a,"filenameEncoding"),ht=Ji(c,a,"commentEncoding"),mt=new Set;let yt,Et=-1;const bt=!E&&!V;!K&&bt&&(K=zi(ct,ot,nt),K&&Yo(m,Ja));const St=Object.assign({},c.options,a,{[et]:y});delete St[G];for(let n=0;n<K;n++){const o=new Ai(h,St);if(nt+f>ot.length||os(ct,nt)!=s){if(0==n&&!wt&&(H||Ri(ct)))throw new Error(La);throw new Error(va)}Oi(o,ct,nt+6);const i=Boolean(o.bitFlag.languageEncodingFlag),u=nt+f,l=u+o.filenameLength+o.extraFieldLength,w=ns(ct,nt+4),d=!(w>>8),p=w>>8==3,y=ns(ct,nt+32),b=l+y,S=new Uint8Array(ot.subarray(u,b)),O=S.subarray(0,o.filenameLength),I=S.subarray(o.filenameLength+o.extraFieldLength),T=i||!pt&&Zn(O),k=i||!ht&&Zn(I),C=os(ct,nt+38),v=C&r,N={readOnly:Boolean(1&v),hidden:Boolean(2&v),system:Boolean(4&v),directory:Boolean(16&v),archive:Boolean(32&v)},_=os(ct,nt+42),j=Qi(c,a,"decodeText")||Wn,P=T?pi:pt||hi,B=k?pi:ht||hi;let L=j(O,P,at);L===U&&(L=Wn(O,P));let W,V=j(I,B,it);V===U&&(V=Wn(I,B)),Object.assign(o,{index:n,xt:wt,versionMadeBy:w,msDosCompatible:d,zip64:!1,compressedSize:0,uncompressedSize:0,Dt:y,offset:_,diskNumberStart:ns(ct,nt+34),internalFileAttributes:ns(ct,nt+36),externalFileAttributes:C,msdosAttributesRaw:v,msdosAttributes:N,rawFilename:O,filenameUTF8:T,commentUTF8:k,rawExtraField:S.subarray(o.filenameLength,o.filenameLength+o.extraFieldLength),rawComment:I,filename:L,comment:V});try{W=Ii(o,o,ct,nt+6)}catch(t){if(E||t.message!=M)throw t;o.Ft=!0,Yo(m,oi,o.filename)}if(L=o.filename,F){const t=F(L);t!==U&&(L=o.filename=t)}if(Zi(L,g)){const t=new Error(Wa);throw t.filename=L,t}if(W&&Yo(m,Xa,L),o.Ft&&o.offset==t)Z=0;else{o.offset+=X;const t=ji(h,o.diskNumberStart)+o.offset;Z=Math.min(t,Z),t<Et&&Yo(m,qa,L),Et=t}(o.version&r)>63&&Yo(m,Ya,L),32&~o.rawBitFlag||Yo(m,Ka,L),mt.has(o.filename)&&(yt=!0),mt.add(o.filename);const G=o.externalFileAttributes>>16&e;o.unixMode===U&&16877&G&&(o.unixMode=G);const q=Boolean(o.unixMode&z),Y=Boolean(o.unixMode&x),$=Boolean(512&o.unixMode),J=40960==((o.unixMode===U?G:o.unixMode)&A),Q=o.unixMode!==U&&(o.unixMode&A)==R||(G&A)==R||d&&N.directory||o.filename.endsWith(D),tt=!J&&!Q&&(o.unixMode!==U?!!(73&o.unixMode):p&&!!(73&G));Object.assign(o,{setuid:q,setgid:Y,sticky:$,symlink:J,unixExternalUpper:G,executable:tt,directory:Q,zipCrypto:o.encrypted&&!o.extraFieldAES});const et=new Ia(o);if(o.Ft&&c.At.add(et),et.getData=(t,e)=>o.getData(t,et,c,e),et.arrayBuffer=async t=>{const e=new TransformStream,r=cr(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await o.getData(e,et,c,Object.assign({},t,{preventClose:!1})),r},nt=b,n==K-1&&bt){const t=zi(ct,ot,nt);t&&(K+=t,Yo(m,Ja))}const{onprogress:rt}=a;if(rt)try{await rt(n+1,K,new Ia(o))}catch{}yield et}let gt=nt,At=Fi(ot.subarray(nt))||(wt?Fi(dt):U);if(!At&&!wt){const t=C+nt,e=Math.min(tt-t,65541);e>=6&&(At=Fi(await Go(h,t,e)))}At&&(c.digitalSignature=At,gt=nt+6+At.length),(nt!=Q&>!=Q||!wt&&nt!=k&>!=k)&&Xi(E,m,ri),yt&&Xi(E,m,ai);const Rt=Ji(c,a,"extractPrependedData"),zt=Ji(c,a,"extractAppendedData"),xt=(E||Rt)&&K&&4==Z&&await async function(t){const e=await Pi(t);return e==o||808471376==e}(h)?4:0;return E&&(X>0||K&&Z>xt)&&$i(ti),(X>0||K&&Z>4)&&Yo(m,ti),W&&Yo(m,ei),Rt&&(c.prependedData=Z>xt?await Go(h,xt,Z-xt):B),c.comment=N?await Go(h,v+w,N):B,zt&&(c.appendedData=_<h.size?await Go(h,_,h.size-_):B),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}[L](){return this.close()}}class Si{constructor(t={}){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}}),o=new bi(r,t),a=o.getEntriesGenerator(),i=new Set;this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await a.next();if(e)return t.close();const n=function(t,e){const{readable:r,writable:n}=new TransformStream;let o;const a={cancel:async t=>{e.delete(a),await(o?o.cancel(t):r.cancel(t))}};return a.readable=new ReadableStream({async pull(i){o||(o=r.getReader(),e.add(a),async function(){try{await t.getData(n,{preventClose:!1})}catch(t){try{await n.abort(t)}catch{}}finally{e.delete(a)}}());const{done:s,value:c}=await o.read();s?i.close():i.enqueue(c)},cancel:t=>a.cancel(t)},{highWaterMark:0}),a}(r,i),o={...r,readable:n.readable};delete o.getData,Object.defineProperties(o,{localDirectory:{get:()=>r.localDirectory,enumerable:!0},warnings:{get:()=>r.warnings,enumerable:!0}}),t.enqueue(o)},async cancel(t){const r=Array.from(i);i.clear(),e.error(t),await Promise.allSettled(r.map(e=>e.cancel(t))),await Promise.allSettled([a.return(),o.close()])}}),this.writable=n}}async function gi(t,e={}){if(t=new Lo(t),await Vo(t),t.size!==U&&t.readUint8Array||(t=new fo(await cr(t.readable)),await Vo(t)),t.size<w)return!1;const r=Li(e,{}),n=r!=ut,o=Vi(e[rt],r),{Rt:a,zt:i}=await Hi(t,n,o);if(!a||r==st&&i>1)return!1;const s=ns(Xt(a),20),c=a.offset+w+s;return t.size-c<=o}let Ai=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,o,a={}){const i=this,{Et:s,directoryOffset:c}=o;if(i.Ft)throw new Error(M);const u=Pt(),{reader:l,index:f,offset:w,diskNumberStart:d,extraFieldAES:p,extraFieldZip64:h,compressionMethod:m,bitFlag:y,rawBitFlag:E,crc32:b,rawLastModDate:S,uncompressedSize:A,compressedSize:R}=i,{dataDescriptor:z}=y,x=e.localDirectory={},D=e.warnings=[],O=ji(l,d)+w,I=await Go(l,O,F),T=Xt(I);let v=Ji(i,a,W),N=Ji(i,a,Z);const _=At(Ji(i,a,V)),j=Boolean(_),P=!0===_;if(gt(v,N),v=v&&v.length?v:U,N=N&&N.length?N:U,p&&99!=p.originalCompressionMethod)throw new Error(dr);if(I.length<F||os(T,0)!=n)throw new Error(k);Oi(x,T,4);const{extraFieldLength:L,filenameLength:G}=x,X=x.dataOffset=O+F+G+L,$=Ji(i,a,"checkLocalDirectory"),J=Li(a,i.options),Q=function(t,e){return t===U?e!=ut:Boolean(t)}($,J),tt=Ji(i,a,"checkLocalFilename"),et=function(t,e){return t===U?e==st:Boolean(t)}(tt===U?$:tt,J);let rt=B;if(et&&(G||L)){const t=await Go(l,O+F,G+L);rt=t.subarray(0,G),x.rawExtraField=t.subarray(G)}else x.rawExtraField=L?await Go(l,O+F+G,L):B;et&&(x.rawFilename=rt),Ii(i,x,T,4,!0)&&Yo(D,Xa),function(t,e,r,n,o){const{rawFilename:a}=t,i=!o,s=t.xt&&(e.rawBitFlag&g)==g;!n||s||r.length==a.length&&!r.some((t,e)=>t!=a[e])||Xi(i,o,ci),(2121&e.rawBitFlag)!=(2121&t.rawBitFlag)&&Xi(i,o,ui),e.compressionMethod!=t.compressionMethod&&Xi(i,o,li),e.bitFlag.dataDescriptor||s||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Xi(i,o,fi)}(i,x,rt,et,Q?U:D);const{lastAccessDate:nt,creationDate:ot,uid:at,gid:it}=x;nt&&e.lastAccessDate===U&&(e.lastAccessDate=nt),ot&&e.creationDate===U&&(e.creationDate=ot),at!==U&&e.uid===U&&(e.uid=at),it!==U&&e.gid===U&&(e.gid=it);const ct=Ji(i,a,"checkPasswordOnly"),lt=i.encrypted&&(!P||ct),ft=lt&&!p;if(P||(e.zipCrypto=ft),lt&&!(64&~i.rawBitFlag))throw new Error(_a);const wt=j?U:br(m);if(0!=m&&8!=m&&9!=m&&!wt&&!j)throw new Error(dr);if(lt){if(!ft&&(p.strength<1||p.strength>3))throw new Error(_a);if(!v&&!N)throw new Error(Na)}if(X+R>Math.min(l.size,c))throw new Error(Pa);const dt=R,pt=bt(Ji(i,a,H));St(pt);let ht=Ji(i,a,"checkOverlappingEntry");const mt=Ji(i,a,"checkOverlappingEntryOnly");mt&&(ht=!0);const{onstart:yt,onprogress:Et,onend:Rt}=a,zt=0!=m&&!j,xt=j?R-Ta(lt,ft,p&&p.strength):A,Dt=9==m;let Ft=Ji(i,a,Y);Dt&&(Ft=!1);const Ot=Ji(i,a,"checkCrc32"),It=(Ot===U?Ji(i,a,"checkSignature"):Ot)&&!j&&(!lt||ft||p&&1==p.vendorVersion),Ut={options:{codecType:Jr,password:v,rawPassword:N,zipCrypto:ft,encryptionStrength:p&&p.strength,checkCrc32:It,checkAuthenticationCode:Ji(i,a,"checkAuthenticationCode"),passwordVerification:ft&&(z?S>>>8&r:b>>>24&r),outputSize:xt,crc32:b,compressed:zt,encrypted:lt,useWebWorkers:Ji(i,a,q),useCompressionStream:Ft,deflate64:Dt,format:wt?wt.format:U,codecURI:wt?wt.codecURI:U,compressionMethod:m,rawBitFlag:E,checkPasswordOnly:ct},config:u,F:{signal:pt,size:dt,onstart:yt,onprogress:Et,onend:Rt}};let Tt,kt,Ct;ht&&(await async function({reader:t,Ot:e,index:r,offset:n,crc32:o,compressedSize:a,uncompressedSize:i,dataOffset:s,dataDescriptor:c,extraFieldZip64:u,Et:l}){let f=0;if(c){const r=Boolean(u),n=await vi(t,s+a,{crc32:o,compressedSize:a,uncompressedSize:i,zip64:r});n?(e.localDirectory.dataDescriptor=n,f=_i(n.zip64,n.signature)):f=_i(r,!1)}const w={start:n,end:s+a+f,Ot:e},{bt:d,St:p,gt:h}=l;if(!d.has(r)){const t=function(t,e){let r=0,n=t.length;for(;r<n;){const o=r+n>>>1;t[o].start<e.start?r=o+1:n=o}const o=t[r-1],a=t[r];return o&&Mi(e,o)?o:a&&Mi(e,a)?a:void 0}(p,w)||h.find(t=>Mi(w,t));if(t){const e=new Error(C);throw e.overlappingEntry=t.Ot,e}d.add(r),h.push(w),h.length*h.length>p.length&&(h.sort((t,e)=>t.start-e.start),l.St=function(t,e){const r=[];let n=0,o=0;for(;n<t.length||o<e.length;)o==e.length||n<t.length&&t[n].start<e[o].start?r.push(t[n++]):r.push(e[o++]);return r}(p,h),h.length=0)}}({reader:l,Ot:e,index:f,offset:O,crc32:b,compressedSize:R,uncompressedSize:A,dataOffset:X,dataDescriptor:z||x.bitFlag.dataDescriptor,extraFieldZip64:h||x.extraFieldZip64,Et:s}),function(t,e,r){const{dataDescriptor:n}=e,o=t.xt&&(e.rawBitFlag&g)==g;n&&!o&&(t.crc32!==U&&n.crc32!=t.crc32||n.compressedSize!=t.compressedSize||n.uncompressedSize!=t.uncompressedSize)&&Xi(!r,r,fi)}(i,x,Q?U:D));try{if(!mt){ct&&(t=new WritableStream),t=new Wo(t),await Vo(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(xt,R,zt)),({writable:Tt}=t);const e=sr(l.createReadable({offset:X,size:dt})),{outputSize:r}=await Cn({readable:e,writable:Tt},Ut);if(St(pt),r!=xt)throw Object.assign(new Error(Rr),{outputSize:r});t.size+=r}}catch(e){if($t(e)&&e.outputSize!==U&&(t.size+=e.outputSize),!ct||!$t(e)||e.message!=Ie)throw kt=e,Ct=!0,e}finally{if((Zo(t)||!Ji(i,a,K))&&Tt&&!Tt.locked){const t=Tt.getWriter();if(Ct)try{await t.abort(kt)}catch{}else await t.close()}}return ct||mt?U:t.getData?t.getData():Tt}};function Ri(t){return t.byteLength>=4&&134630224==os(t,0)}function zi(t,e,r){let n=0;for(;r+f<=e.length&&os(t,r)==s;)r+=f+ns(t,r+28)+ns(t,r+30)+ns(t,r+32),n++;return n%65536?0:n}function xi(t,e){return Di(t,e,s)}async function Di(t,e,r){return!(e<0||e+4>t.size)&&os(Xt(await Go(t,e,4)),0)==r}function Fi(t){if(t.length>=6){const e=Xt(t);if(os(e,0)==i){const r=ns(e,4);if(6+r<=t.length)return new Uint8Array(t.subarray(6,6+r))}}}function Oi(t,e,r){const n=t.rawBitFlag=ns(e,r+2),o=!(1&~n),a=os(e,r+6);Object.assign(t,{encrypted:o,version:ns(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&S)==S},rawLastModDate:a,lastModDate:ts(a),filenameLength:ns(e,r+22),extraFieldLength:ns(e,r+24)})}function Ii(t,e,r,n,o){const{rawExtraField:a}=e,i=e.extraField=new Map,s=Xt(a);let c=0,u=!1;try{for(;c<a.length;){const t=ns(s,c),e=ns(s,c+2);i.set(t,{type:t,data:a.slice(c+4,c+4+e)}),c+=4+e}}catch{u=!0}c>a.length&&(u=!0);const l=ns(r,n+4);Object.assign(e,{signature:os(r,n+10),crc32:os(r,n+10),compressedSize:os(r,n+14),uncompressedSize:os(r,n+18)});const f=i.get(1);let w;f?(function(t,e,r){e.zip64=!0;const n=Xt(t.data),o=mi.filter(([t,r])=>e[t]==r),a=o.reduce((t,[,e])=>t+yi[e].bytes,0);if(t.data.length<a){if(r)return!1;throw new Error(M)}const i=[];try{for(let t=0,e=0;t<o.length;t++){const[,r]=o[t],a=yi[r];i.push(a.yt(n,e)),e+=a.bytes}}catch(t){if(r)return!1;throw t}return o.forEach(([r],n)=>{e[r]=t[r]=i[n]}),!0}(f,e,o)||(u=!0),e.extraFieldZip64=f):mi.some(([t,r])=>e[t]==r)&&(o?u=!0:w=!0);const d=i.get(28789);d&&(Ui(d,Ko,Xo,e,t),e.extraFieldUnicodePath=d);const p=i.get(25461);p&&(Ui(p,$o,Jo,e,t),e.extraFieldUnicodeComment=p);const S=i.get(h);S&&(99==l||e.encrypted)&&S.data.length>=7?(function(t,e,r){const n=Xt(t.data),o=rs(n,4);Object.assign(t,{vendorVersion:rs(n,0),vendorId:rs(n,2),strength:o,originalCompressionMethod:r,compressionMethod:ns(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=U)}(S,e,l),e.extraFieldAES=S):(S&&(u=!0),e.compressionMethod=l);const g=i.get(13);g&&(Ti(g,e),e.extraFieldPkwareUnix=g);const A=i.get(22613);A&&(Ti(A,e),e.extraFieldUnixType1=A);const R=i.get(m);R&&(function(t,e,r){if(!t.data.length)return;const n=Xt(t.data),o=rs(n,0),a=[],i=[];r?(1&~o||(a.push(na),i.push(oa)),2&~o||(a.push(aa),i.push(ia)),4&~o||(a.push(sa),i.push(ca))):t.data.length>=5&&(a.push(na),i.push(oa));let s=1;a.forEach((r,o)=>{if(t.data.length>=s+4){const a=os(n,s);e[r]=t[r]=new Date(1e3*(0|a));const c=i[o];t[c]=a}s+=4})}(R,e,o),e.extraFieldExtendedTimestamp=R);const z=i.get(10);z&&(function(t,e){const r=Xt(t.data);let n,o=4;try{for(;o<t.data.length&&!n;){const e=ns(r,o),a=ns(r,o+2);1==e&&(n=t.data.slice(o+4,o+4+a)),o+=4+a}}catch{}if(n&&24==n.length){const r=Xt(n),o=r.getBigUint64(0,!0),a=r.getBigUint64(8,!0),i=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:o,rawLastAccessDate:a,rawCreationDate:i});const s={lastModDate:es(o),lastAccessDate:es(a),creationDate:es(i)};Object.assign(t,s),Object.assign(e,s,{rawLastAccessDate:a,rawCreationDate:i})}}(z,e),e.extraFieldNTFS=z);const x=i.get(E);let D;x&&(D=ki(x,e,!0),e.extraFieldInfoZip=x);const F=i.get(b);F&&(ki(F,D?{}:e,!1),e.extraFieldUnix=F);const O=i.get(y);if(O&&(e.extraFieldUSDZ=O),w)throw new Error(M);return u}function Ui(t,e,r,n,o){if(t.data.length<5)return void(t.valid=!1);const a=Xt(t.data),i=new se;i.append(o[r]);const s=Xt(new Uint8Array(4));s.setUint32(0,i.get(),!0);const c=os(a,1),u=rs(a,0);Object.assign(t,{version:u,[e]:Wn(t.data.subarray(5)),valid:1==u&&!o.bitFlag.languageEncodingFlag&&c==os(s,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function Ti(t,e){if(t.data.length<8)return;const r=Xt(t.data),n={lastAccessDate:new Date(1e3*(0|os(r,0))),lastModDate:new Date(1e3*(0|os(r,4)))};t.data.length>=12&&(n.uid=ns(r,8),n.gid=ns(r,10)),Object.assign(t,n),Object.assign(e,n)}function ki(t,e,r){try{const n=Xt(t.data);let o,a;if(r){let e=0;const r=rs(n,e++),i=rs(n,e++);o=Ci(t.data.subarray(e,e+i)),e+=i;const s=rs(n,e++);a=Ci(t.data.subarray(e,e+s)),Object.assign(t,{version:r,uid:o,gid:a})}else t.data.length>=4&&(o=ns(n,0),a=ns(n,2),Object.assign(t,{uid:o,gid:a}));return o!==U&&(e.uid=o),a!==U&&(e.gid=a),o!==U||a!==U}catch{}}function Ci(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Mi(t,e){return t.start<e.end&&e.start<t.end}async function vi(t,e,{crc32:r,compressedSize:n,uncompressedSize:o,zip64:a}){const i=Math.min(24,Math.max(0,t.size-e)),s=Xt(i?await Go(t,e,i):B),c=[[a,!0],[a,!1],[!a,!0],[!a,!1]].map(([t,e])=>Ni(s,t,e)).filter(t=>t&&t.compressedSize==n&&t.uncompressedSize==o);return c.find(t=>t.crc32==r)||c[0]||Ni(s,a,!0)||Ni(s,a,!1)}function Ni(t,e,r){const n=r?4:0;if(t.byteLength<_i(e,r)||r&&os(t,0)!=a)return U;const o=os(t,n);let i,s;try{e?(i=as(t,n+4),s=as(t,n+12)):(i=os(t,n+4),s=os(t,n+8))}catch{return U}return{signature:r,zip64:e,crc32:o,compressedSize:i,uncompressedSize:s}}function _i(t,e){return(t?20:12)+(e?4:0)}function ji(t,e){return t.ht?t.ht(e):0}async function Pi(t){return os(Xt(await Go(t,0,4)))}function Bi(t){return t===st||t===ct||t===ut}function Li(t,e){return Wi(t,Wi(e,ct))}function Wi(t,e){const r=t[et];if(r!==U){if(!Bi(r))throw new Error(Za);return r}const n=t[G];return n===U?e:n?st:e==ut?ut:ct}function Zi(t,e){if(e==ut)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(di.test(t)||t.startsWith("/")||t.startsWith("\\")||wi.test(t))||e==st&&(r.includes(".")||r.includes("")||t.includes("\0"))}function Vi(t,r){if(t!==U){const e=xt(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(Ha);return e}return r==st?0:r==ut?1/0:e}async function Hi(t,e,r){const{size:n}=t,o=Math.min(n,65557),a={It:64};let i,s,c=0;for await(const[r,u,l,f,d]of Gi(t,o)){const o=ns(r,f+20);if(d+w+o==n){const o=await Yi(t,r,u,f,d,n,a);if(2==o){if(i||(i=qi(l,f,d)),c++,!e||c>1)break}else 1!=o||s||(s=qi(l,f,d))}}return i||(i=s),i||(i=await async function(t,e,r){const{size:n}=t,o=Math.min(n,e==1/0?n:65557+e);let a,i;for await(const[e,s,c,u,l]of Gi(t,o)){const o=qi(c,u,l);a||(a=o);const f=await Yi(t,e,s,u,l,n,r);if(2==f)return o;1!=f||i||(i=o)}return i||a}(t,r,a)),{Rt:i,zt:c}}async function*Gi(t,e){const r=t.size-e,n=await Go(t,r,e),o=Xt(n);for(let t=n.length-w;t>=0;t--)os(o,t)==c&&(yield[o,r,n,t,r+t])}function qi(t,e,r){return{offset:r,buffer:new Uint8Array(t.subarray(e,e+w)).buffer}}async function Yi(r,n,o,a,i,c,u){const f=ns(n,a+10),w=os(n,a+12),p=os(n,a+16);if(f==e||w==t||p==t)return await Ki(r,n,o,i-d,c,u)==l?2:0;if(!f&&!w)return 1;const h=ns(n,a+6);for(const t of[i-w,ji(r,h)+p])if(await Ki(r,n,o,t,c,u)==s)return 2;return 0}async function Ki(t,e,r,n,o,a){return n<0||n+4>o?U:n>=r?os(e,n-r):a.It>0?(a.It--,os(Xt(await Go(t,n,4)),0)):U}function Xi(t,e,r){t?$i(r):Yo(e,r)}function $i(t){const e=new Error(Ba);throw e.reason=t,e}function Ji(t,e,r){return e[r]===U?t.options[r]:e[r]}function Qi(t,e,r){return yt(Ji(t,e,r))}function ts(t){const r=(4294901760&t)>>16,n=t&e,o=new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&n)>>11,(2016&n)>>5,2*(31&n),0);return o<I?I:o}function es(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function rs(t,e){return t.getUint8(e)}function ns(t,e){return t.getUint16(e,!0)}function os(t,e){return t.getUint32(e,!0)}function as(t,e){const r=t.getBigUint64(e,!0);if(r>Ei)throw new Error(Ga);return Number(r)}var is=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Ba,ERR_BAD_FORMAT:ka,ERR_CENTRAL_DIRECTORY_NOT_FOUND:va,ERR_CODEC_OUT_OF_MEMORY:xr,ERR_ENCRYPTED:Na,ERR_ENCRYPTED_CENTRAL_DIRECTORY:La,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Pa,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Ma,ERR_EOCDR_NOT_FOUND:Ca,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:M,ERR_INVALID_AUTHENTICATION_CODE:Oe,ERR_INVALID_COMPRESSED_DATA:zr,ERR_INVALID_CRC32:Dr,ERR_INVALID_FILENAME_VALIDATION:Va,ERR_INVALID_MAX_APPENDED_DATA_SIZE:Ha,ERR_INVALID_PASSWORD:Fe,ERR_INVALID_STRICTNESS:Za,ERR_INVALID_UNCOMPRESSED_SIZE:Rr,ERR_LOCAL_FILE_HEADER_NOT_FOUND:k,ERR_OVERLAPPING_ENTRY:C,ERR_SPLIT_ZIP_FILE:ja,ERR_UNSAFE_FILENAME:Wa,ERR_UNSUPPORTED_COMPRESSION:dr,ERR_UNSUPPORTED_ENCRYPTION:_a,ERR_UNSUPPORTED_UINT64:Ga,ERR_WORKER_STARTUP_TIMEOUT:en,WARNING_APPENDED_DATA:Qa,WARNING_COMPRESSED_PATCHED_DATA:Ka,WARNING_DUPLICATE_FILENAME:ai,WARNING_MALFORMED_EXTRA_FIELD:Xa,WARNING_MISMATCHED_CENTRAL_DIRECTORY_OFFSET:ni,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:ui,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:li,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:fi,WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME:ci,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:ii,WARNING_MISSING_ZIP64_EXTRA_FIELD:oi,WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY:si,WARNING_PREPENDED_CENTRAL_DIRECTORY:ei,WARNING_PREPENDED_DATA:ti,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:ri,WARNING_UNKNOWN_VERSION:Ya,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:$a,WARNING_UNSORTED_CENTRAL_DIRECTORY:qa,WARNING_WRAPPED_ENTRIES_COUNT:Ja,ZipReader:bi,ZipReaderStream:Si,Ut:async function(t,e,{crc32:r,compressedSize:n,uncompressedSize:o,extraFieldZip64:a}){const i=await vi(t,e,{crc32:r,compressedSize:n,uncompressedSize:o,zip64:Boolean(a)});if(i&&i.compressedSize==n&&i.uncompressedSize==o)return _i(i.zip64,i.signature)},isZipFile:gi});const ss="File already exists",cs="Zip file comment exceeds 64KB",us="Invalid zip file comment (must be a Uint8Array)",ls="File entry comment exceeds 64KB",fs="Invalid file entry comment (must be a string)",ws="Invalid date (must be a valid Date instance)",ds="File entry name exceeds 64KB",ps="Version exceeds 65535",hs="The strength must equal 1, 2, or 3",ms="Encryption is not supported in USDZ files",ys="Split zip files are not supported in USDZ files",Es="Encryption is not supported when the 'passThrough' option is set to true (use 'compressed' instead)",bs="Invalid extra field (must be a Map)",Ss="Invalid extra field type (must be integer 0..65535)",gs="Invalid extra field data (must be a Uint8Array)",As="Extra field data exceeds 64KB",Rs=-2147483648,zs=2147483647,xs=BigInt(0),Ds=BigInt("0x7fffffffffffffff"),Fs="Zip64 is not supported (set the 'zip64' option to 'true')",Os="Undefined uncompressed size",Is="Undefined compression method",Us="Undefined CRC32",Ts="Undetermined size",ks="Undefined reader",Cs="Invalid reader (must be a Reader instance, a ReadableStream instance, or an object with a 'readable' property)",Ms="Zip file not empty",vs="Invalid uid (must be integer 0..2^32-1)",Ns="Invalid gid (must be integer 0..2^32-1)",_s="Invalid UNIX mode (must be integer 0..65535)",js="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",Ps="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Bs="Invalid msdosAttributesRaw (must be integer 0..255)",Ls="Invalid msdosAttributes (must be an object with boolean flags)",Ws="Invalid level (must be integer 0..9)",Zs="Signature data exceeds 64KB",Vs="Invalid entry option (must be an entry returned by ZipReader#getEntries())",Hs="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Gs="compression unavailable",qs="clamped last modification date",Ys=new Uint8Array([7,0,2,0,65,69,3,0,0]),Ks="infozip",Xs="unix",$s=[8,9,5,3];let Js=0;const Qs=[];class tc{constructor(t,e={}){t=new Wo(t);const{availableSize:r=T,maxSize:n=T}=t,o=r>0&&r!==T&&n>0&&n!==T;if(o&&e[tt])throw new Error(ys);Object.assign(this,{writer:t,Tt:o,options:e,kt:new Map,Ct:new Set,offset:e[Q]===U?t.size||t.writable.size||0:e[Q],Mt:e[Q]===U?0:e[Q]-(t.size||t.writable.size||0),vt:new Set,Nt:[],warnings:[],_t:0,jt:0,Pt:U,Bt:!1})}prependZip(t){return oc(this,async function(t,e){if(t.Ct.size)throw new Error(Ms);await ac(t,e)}(this,t))}appendZip(t,e={}){return oc(this,ac(this,t,e))}add(e="",n,o={}){const a=this,{vt:i}=a,s=async function(e,n,o,a){const i=(a=Object.assign({},a))[ot];if(i!==U){const{Lt:t,Wt:r}=uc(i,At(Nc(e,a,V)),Nc(e,a,na));delete a[ot],a=Object.assign(t,r,a)}if(Nc(e,a,ba)&&!n.endsWith(D)&&(n+=D),e.Ct.has(n))throw new Error(ss);e.Ct.add(n),Js<Pt().maxWorkers?Js++:await new Promise(t=>Qs.push(t));try{return await async function(e,n,o,a){const i=lc(e,n,a);({name:n}=i);const s=fc(e,n,a),{comment:c}=s,u=a[Ra];e.kt.set(n,U);const l=e.Pt,f={};let w,d;s.Zt.keepOrder&&(f.Vt=new Promise(t=>w=t)),e.Pt=f;try{const{Zt:c}=s;0==c.level||c.compressionMethod!==U||c.Ht||await sn(Pt())||(c.level=0,Yo(e.warnings,Gs,n));const u=await async function(t,e,{Zt:r},n){if(r.Ht&&!e&&!Nc(t,n,ba))throw new Error(ks);let o;if(e){if(e=new Lo(e),await Vo(e),!e.readUint8Array&&!e.readable)throw new Error(Cs);({size:o}=e)}return Object.assign({reader:e},dc(t,Boolean(e),o,r,n))}(e,o,s,a);({reader:o}=u);const p=Ac(e.writer),h=gc(e.writer);let m=a.crc32===U?a[Aa]:a.crc32;const y=u.Zt.encrypted&&!c.zipCrypto;if(c.Ht&&!c.Gt&&y&&(m=U),c.Ht&&o&&!y&&m===U)throw new Error(Us);const E=hc(a=Object.assign({},a,i.Zt,s.Zt,u.Zt,{signature:a[Aa],crc32:m,offset:e.offset-p,diskNumberStart:h,[tt]:e.options[tt]}));E.qt&&Yo(e.warnings,qs,n);const b=Ec(a),S=Yc(E.Yt,b.Kt);d=await async function(e,n,o,a,i){const{kt:s,writer:c}=e,{keepOrder:u,dataDescriptor:l,Xt:f,signal:w}=i,{$t:d,Ot:p,Jt:h,Qt:m}=a,y=e.options[tt];let E,b,S,g,A,R,z,x=p,D=0;const O=u&&h?h.Vt:U;s.set(n,x);try{i.bufferedWrite||!u||e.te||e._t||e.jt||!l&&!f?(E=!0,e._t++,z=i.createTempStream?await i.createTempStream():new TransformStream(U,U,{highWaterMark:T}),z.size=0,await Vo(c)):(b=!0,e.jt++,z=c,await O,await I()),await Vo(z);const p=Ac(c);e.Tt&&!E&&await Uc(e,c),y&&!E&&mc(a,e.offset-p);const{Yt:h}=d;E||await k();const m=gc(c),S=zc(e,c);if(x.diskNumberStart=m,E||(A=!0,R=c.size,await Tc(z,h)),x=await async function(e,n,{diskNumberStart:o,Vt:a},i,s,c){const{$t:u,ee:l,re:f}=i,{ne:w,oe:d,lastModDate:p,rawLastModDate:h,encrypted:m,compressed:y,version:E,compressionMethod:b,ae:S,ie:g,se:A,ce:R,ue:z,le:x,fe:D,we:F,de:O}=u,{Kt:I}=l,{rawFilename:T,lastAccessDate:k,creationDate:C,password:M,rawPassword:v,level:N,useUnicodeFileNames:_,zip64:j,pe:P,he:B,me:L,zipCrypto:W,dataDescriptor:Z,directory:V,executable:H,versionMadeBy:G,rawComment:q,rawExtraField:Y,ye:K,useWebWorkers:X,onstart:$,onprogress:J,onend:Q,signal:tt,encryptionStrength:et,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:ot,externalFileAttributes:at,uid:it,gid:st,unixMode:ct,symlink:ut,setuid:lt,setgid:ft,sticky:wt,unixExternalUpper:dt,msdosAttributesRaw:pt,msdosAttributes:ht,useCompressionStream:mt,Ht:yt,Gt:Et,format:bt,codecURI:gt}=c,At={Vt:a,versionMadeBy:G,zip64:j,pe:P,directory:Boolean(V),executable:Boolean(H),filenameUTF8:Boolean(_),rawFilename:T,commentUTF8:Boolean(_),rawComment:q,ae:S,ie:g,se:A,le:x,fe:D,we:F,de:O,rawExtraField:Y,ye:K,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:ot,externalFileAttributes:at,diskNumberStart:o,uid:it,gid:st,unixMode:ct,symlink:Boolean(ut),setuid:lt,setgid:ft,sticky:wt,unixExternalUpper:dt,msdosAttributesRaw:pt,msdosAttributes:ht};let{crc32:Rt,uncompressedSize:zt}=c,xt=0;yt||(zt=0);const{writable:Dt}=n;if(e){const o=e.size,a=sr(qo(e,{size:o})),i={options:{codecType:$r,inputSize:o,level:N,rawPassword:v,password:M,encryptionStrength:et,zipCrypto:m&&W,passwordVerification:m&&W&&h>>8&r,computeCrc32:!yt,compressed:y&&!yt,encrypted:m&&!Et,useWebWorkers:X,useCompressionStream:mt,format:bt,codecURI:gt,compressionMethod:b},config:s,F:{signal:tt,size:o,onstart:$,onprogress:J,onend:Q}};try{const e=await Cn({readable:a,writable:Dt},i);if(xt=e.outputSize,n.size+=xt,St(tt),yt||(zt=e.inputSize,m&&!W||(Rt=e.crc32)),!L&&xt>=t||!B&&zt>=t)throw new Error(Fs)}catch(t){const{outputSize:e}=i;throw e!==U?n.size+=e:$t(t)&&t.outputSize!==U&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,$t:n,ee:o},{zip64:a,zipCrypto:i,Ht:s,dataDescriptor:c}){const{oe:u,encrypted:l}=n,{Ee:f,be:w}=o;l&&!i&&!s||t===U||(Hc(u,10,t),c&&Hc(f,w,t)),a?c&&(Gc(f,w+4,BigInt(e)),Gc(f,w+12,BigInt(r))):(Hc(u,14,e),Hc(u,18,r),c&&(Hc(f,w+4,e),Hc(f,w+8,r)))}({crc32:Rt,compressedSize:xt,uncompressedSize:zt,$t:u,ee:l},c),Z&&await Tc(n,I),Object.assign(At,{uncompressedSize:zt,compressedSize:xt,lastModDate:p,rawLastModDate:h,creationDate:C,lastAccessDate:k,encrypted:Boolean(m),zipCrypto:Boolean(W),size:f+xt,compressionMethod:b,version:E,ne:w,oe:d,signature:Rt,crc32:!m||W||yt?Rt:U,ce:R,ue:z,he:B,me:L}),At}(o,z,x,a,Pt(),i),E||(A=!1),s.set(n,x),x.filename=n,E){if(await Promise.all([z.writable.getWriter().close(),O]),await I(),e.Tt&&await Uc(e,c),g=!0,R=c.size,await k(),x.diskNumberStart=gc(c),x.offset=zc(e,c),y){const t=a.re;mc(a,e.offset-Ac(c)),x.size+=a.re-t}!function({rawFilename:t,encrypted:e,zip64:r,ie:n,crc32:o,compressedSize:a,uncompressedSize:i,he:s,me:c},u,{dataDescriptor:l,Ht:f}){if(l||((!e||f&&o!==U)&&Hc(u,14,o),c||Hc(u,18,a),s||Hc(u,22,i)),r&&n){const e=F+Yc(t)+4;Gc(u,e,BigInt(i)),Gc(u,e+8,BigInt(a))}}(x,d.Se,i),await Tc(c,d.Yt),await kc(z.readable,c,w,t=>D+=t),c.size+=z.size,g=!1}else x.diskNumberStart=m,x.offset=S;return e.offset+=x.size,x}catch(t){if(g||A){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-R,E&&(e.offset+=D)}throw s.delete(n),t}finally{if(E&&e._t--,b&&e.jt--,m&&m(O),S&&S(),E&&z&&z.dispose)try{await z.dispose()}catch{}}async function I(){e.te=!0;const{ge:t}=e;e.ge=new Promise(t=>S=()=>{e.te=!1,t()}),await t}async function k(){Rc(c,Yc(d.Yt))&&await c.closeDisk()}}(e,n,o,{$t:E,ee:b,re:S,Ot:f,Jt:l,Qt:w},a)}catch(t){throw e.kt.delete(n),t}finally{w&&w(l&&l.Vt)}return Object.assign(d,{name:n,comment:c,extraField:u}),new Ia(d)}(e,n,o,a)}catch(t){throw e.Ct.delete(n),t}finally{const t=Qs.shift();t?t():Js--}}(a,e,n,o);i.add(s);const c=()=>i.delete(s);return Promise.prototype.then.call(s,c,c),oc(a,s)}remove(t){const{Ct:e,kt:r}=this;if(typeof t==j&&(t=r.get(t)),t&&t.filename!==U){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=B,n={}){const o=this,{vt:a,writer:d}=this,{writable:p}=d;if(o.Bt)return nc(d);if(!(r instanceof Uint8Array))throw new Error(us);if(Yc(r)>e)throw new Error(cs);for(;a.size;)await Promise.allSettled(Array.from(a));await Promise.allSettled(o.Nt.map(t=>t.Ae));const h=o.Nt.filter(t=>t.Re&&!t.ze);if(h.length){const t=h.map(t=>t.error);h.forEach(t=>t.ze=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,o){const{xe:a,De:d}=bc(r.kt),{Fe:p,Oe:h,Ie:m}=await async function(r,n,o){const{kt:a,writer:i}=r,c=new Uint8Array(n);await Vo(i);let u=0,l=0,w=gc(i),d=Ac(i),p=0;for(const[r,n]of Array.from(a.values()).entries()){const{offset:h,rawFilename:m,ae:y,de:E,se:b,le:S,we:g,rawExtraField:A,ye:R,rawComment:z,versionMadeBy:x,ne:D,oe:F,he:O,me:I,Ue:U,Te:T,internalFileAttributes:k,externalFileAttributes:C,diskNumberStart:M,uncompressedSize:v,compressedSize:N}=n,_=Yc(y,E,b,S,g,A,R),j=f+Yc(m,z)+_;Rc(i,u+j-l)&&(await Tc(i,c.slice(l,u)),l=u,p=0,await i.closeDisk()),0==r&&(w=gc(i),d=Ac(i)),O||Hc(F,18,v),I||Hc(F,14,N),(T||U)&&n.version<45&&Vc(F,0,45);const P=Sc(j);if(P.ke(s),P.Ce(x),P.Me(D.subarray(0,24)),P.Ce(_),P.Ce(Yc(z)),P.Ce(U?e:M),P.Ce(k),P.ke(C),P.ke(T?t:h),P.Me(m),P.Me(y),P.Me(E),P.Me(b),P.Me(S),P.Me(g),P.Me(A),P.Me(R),P.Me(z),qc(c,P.ct,u),u+=j,p++,o.onprogress)try{await o.onprogress(r+1,a.size,new Ia(n))}catch{}}return await Tc(i,l?c.slice(l):c),{Fe:{diskNumber:w,diskOffset:d},Oe:{diskNumber:gc(i),ve:p},Ie:c}}(r,a,o),y=await async function(t,r,n){const o=jc(t,n,nt);if(o){const n=await o(r),a=Yc(n);if(a>e)throw new Error(Zs);const s=Sc(6+a);s.ke(i),s.Ce(a),s.Me(n);const{writer:c}=t;return Rc(c,Yc(s.ct))&&await c.closeDisk(),await Tc(c,s.ct),6+a}return 0}(r,m,o);await async function(r,n,o,a){const{writer:i}=r,{Fe:s,Oe:f,Ne:d,De:p}=a;let{xe:h}=a,m=r.kt.size,y=s.diskNumber,E=zc(r,s);const b=Yc(n);if(b>e)throw new Error(cs);let S=Nc(r,o,pa),g=gc(i);if(Rc(i,(S?98:w)+b)&&g++,E>=t||h>=t||m>=e||g>=e){if(!1===S)throw new Error(Fs);S=!0}else S===U&&p&&(S=!0);const A=Sc(S?98:w);Rc(i,Yc(A.ct)+b)&&await i.closeDisk(),g=gc(i);let R=g==f.diskNumber?f.ve:0;S&&(A.ke(u),A._e(44),A.Ce(45),A.Ce(45),A.ke(g),A.ke(y),A._e(R),A._e(m),A._e(h),A._e(E),A.ke(l),A.ke(g),A._e(BigInt(zc(r,i))+BigInt(h)+BigInt(d)),A.ke(g+1),Nc(r,o,"supportZip64SplitFile",!0)&&(g=e,y=e),R=e,m=e,E=t,h=t),A.ke(c),A.Ce(g),A.Ce(y),A.Ce(R),A.Ce(m),A.ke(h),A.ke(E),A.Ce(b),await Tc(i,A.ct),b&&await Tc(i,n)}(r,n,o,{Fe:p,Oe:h,xe:a,Ne:y,De:d})}(o,r,n),o.Bt=!0,!Zo(d)&&Nc(o,n,K)||await p.getWriter().close(),nc(d)}[L](){return this.close()}}class ec{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new tc(r,t),this.vt=new Set}transform(t){const e=this.zipWriter;let r;const{readable:n,writable:o}=new TransformStream({start(t){r=t},flush:()=>{!async function(){try{await e.close()}catch(t){await sc(e,t)}}()}});return cc(this,this.zipWriter.add(t,n),t=>r.error(t)),{readable:this.readable,writable:o}}writable(t){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}});return cc(this,this.zipWriter.add(t,r),t=>e.error(t)),n}async close(t,e={}){const{zipWriter:r}=this,n=(await Promise.allSettled(Array.from(this.vt))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await sc(r,t),t}try{return await r.close(t,e)}catch(t){throw await sc(r,t),t}}}class rc extends Promise{then(t,e){const{je:r}=this;return r&&(r.ze=!0),super.then(t,e)}}function nc(t){return t.getData?t.getData():t.writable}function oc(t,e){const r=new rc((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.je=n,n.Ae=Promise.prototype.then.call(r,U,t=>Object.assign(n,{Re:!0,error:t})),t.Nt.push(n),r}async function ac(t,e,r={}){const{vt:n,Ct:a,kt:i}=t,s=yt(r.filter),c=Et(r.readerOptions);for(;n.size;)await Promise.allSettled(Array.from(n));let u;const l=new Promise(t=>u=t);n.add(l);const f=[];let w;try{e=new Lo(e),await Vo(e),e.size!==U&&e.readUint8Array||(e=new fo(await cr(e.readable)),await Vo(e));const{ZipReader:r,Ut:n}=await Promise.resolve().then(function(){return is}),u=new r(e,c),l=[];let d;try{d=await u.getEntries();for(const t of d)s&&!await s(t,ic(i,t.filename))||l.push(t)}finally{await u.close()}await Vo(t.writer);const{directoryOffset:p,At:h}=u;l.forEach(t=>{const{filename:e}=t;if(h.has(t))throw new Error(M);if(a.has(e))throw new Error(ss);a.add(e),f.push(e)}),t.te=!0;const{ge:m}=t;t.ge=new Promise(e=>w=()=>{t.te=!1,e()}),await m,t.Tt&&(delete t.Tt,!s&&await async function(t){return Zc(Xt(await Go(t,0,4)),0)==o}(e)||(await Tc(t.writer,Ic()),t.offset+=4));const y=await async function(t,e,r,n,o,a,i){const{writer:s}=t,c=new Map;if(s.closeDisk||a){const u=Array.from(r).sort((t,r)=>Oc(e,t)-Oc(e,r)),l=function(t,e,r){const n=new Array(e.length);let o=r;for(let a=e.length-1;a>=0;a--){const i=Oc(t,e[a]),s=e[a+1];s&&Oc(t,s)>i&&(o=Math.min(Oc(t,s),r)),n[a]=o}return n}(e,u,o),f=new Set(n),w=new Map;for(let t=0;t<u.length;t++){const r=u[t];if(f.has(r)){const n=Oc(e,r),o=await Fc(e,n);if(o===U)throw new Error(k);let a=n+o+r.compressedSize;if(r.bitFlag.dataDescriptor){const n=await i(e,a,r);a=n===U?Math.max(a,l[t]):a+n}if(a>l[t])throw new Error(C);l[t]=a,w.set(r,o)}}let d,p=0;for(let r=0;r<u.length;r++){const n=u[r];if(f.has(n)){const o=Oc(e,n);o<p?c.set(n,d):(a||await Dc(t,e,p,o-p),s.closeDisk&&Rc(s,w.get(n))&&await s.closeDisk(),d={offset:zc(t,s),diskNumberStart:gc(s)},c.set(n,d),await Dc(t,e,o,l[r]-o),p=l[r])}}a||await Dc(t,e,p,o-p)}else{const n=t.offset;await Dc(t,e,0,o),r.forEach(t=>c.set(t,{offset:n+Oc(e,t),diskNumberStart:0}))}return c}(t,e,d,l,p,Boolean(s),n);l.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,rawBitFlag:o,uncompressedSize:a,compressedSize:s,extraFieldZip64:c}=t;let{compressionMethod:u,rawExtraField:l}=t;l=xc(l||B),t.extraFieldAES&&(u=99);const f=Yc(l),w=Boolean(c)&&c.uncompressedSize!==U,d=Boolean(c)&&c.compressedSize!==U,{ne:p,oe:h}=Kc({version:e,bitFlag:o,compressionMethod:u,uncompressedSize:a,compressedSize:s,rawLastModDate:r,rawFilename:n,me:d,he:w,extraFieldLength:f}),{crc32:m}=t;m!==U&&Hc(h,10,m);const{offset:E,diskNumberStart:b}=y.get(t);i.set(t.filename,Object.assign({},t,{pe:!0,he:w,me:d,offset:E,diskNumberStart:b,Ue:!1,ae:B,de:B,se:B,le:B,fe:B,we:B,rawExtraField:l,ye:B,ne:p,oe:h}))})}catch(t){throw f.forEach(t=>a.delete(t)),t}finally{u(),n.delete(l),w&&w()}}function ic(t,e){const r=t.get(e);return r?new Ia(r):U}async function sc(t,e){try{await t.writer.writable.abort(e)}catch{}}function cc(t,e,r){t.vt.add(e),e.catch(t=>{try{r(t)}catch{}})}function uc(t,e,n){if(null===t||typeof t!=_||Array.isArray(t))throw new Error(Vs);const{externalFileAttributes:o,versionMadeBy:a,comment:i,lastModDate:s,rawLastModDate:c,creationDate:u,lastAccessDate:l,uncompressedSize:f,encrypted:w,zipCrypto:d,crc32:p,compressionMethod:h,extraFieldAES:m,extraFieldUnix:y,internalFileAttributes:E,extraField:b,bitFlag:S,directory:g,uid:A,gid:R}=t,z={externalFileAttributes:o,versionMadeBy:a,comment:i,lastModDate:s,creationDate:u,lastAccessDate:l,internalFileAttributes:E,directory:g};S&&S.languageEncodingFlag&&(z[$]=!0);const x=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{Ua.has(r)||e.set(r,t.data)}),e.size)return e}}(b);x&&(z[Ra]=x),A===U&&R===U||Object.assign(z,{uid:A,gid:R,unixExtraFieldType:y?Xs:Ks});const D={};if(e&&!g)if(Object.assign(D,{uncompressedSize:f,crc32:p,compressionMethod:h}),e!==lt&&Object.assign(D,{encrypted:w,zipCrypto:d,encryptionStrength:m?m.strength:U}),S&&(D.dataDescriptor=S.dataDescriptor,D[X]=$s[S.level]),n===U)D.rawLastModDate=c;else if(e!==lt&&d&&(!S||S.dataDescriptor)&&n instanceof Date&&function(t){let e=new Date(2e3*Math.ceil(Math.floor(t.getTime()/1e3)/2));return e<I?e=I:e>O&&(e=O),(e.getHours()<<3|e.getMinutes()>>3)&r}(n)!=(c>>>8&r))throw new Error(Hs);return{Lt:z,Wt:D}}function lc(n,o,a){let i=Nc(n,a,da),s=Nc(n,a,ya,i?20:768);const c=Nc(n,a,Sa),u=Pc(n,a,"uid"),l=Pc(n,a,"gid");let f=Pc(n,a,za),w=Nc(n,a,"unixExtraFieldType"),d=Nc(n,a,xa),p=Nc(n,a,Da),h=Nc(n,a,Fa);if(zt(u,t,vs),zt(l,t,Ns),zt(f,e,_s),w!==U&&w!==Ks&&w!==Xs)throw new Error(js);if(w===Xs&&(u!==U&&u>e||l!==U&&l>e))throw new Error(Ps);w!==U||u===U&&l===U||(w=Ks);let m=Pc(n,a,fa),y=Nc(n,a,wa);const E=m!==U||y!==U;if(u!==U||l!==U||f!==U||w||c?(i=!1,s=s&r|768):E&&(i=!0,s&=r),zt(m,r,Bs),y&&(typeof y!==_||Array.isArray(y)))throw new Error(Ls);if(s>e)throw new Error(ps);let b=Nc(n,a,la);const S=b!==U;S||(b=0),!a[ba]&&o.endsWith(D)&&(a[ba]=!0);const g=Nc(n,a,ba);if(g?(o.endsWith(D)||(o+=D),S||(b=16,i||(b|=16877<<16))):i||S||(b=c?493<<16:27525120),!i){const t=f!==U||Boolean(d||p||h);f=f===U?b>>16&e:f&e,d?f|=z:d=Boolean(f&z),p?f|=x:p=Boolean(f&x),h?f|=512:h=Boolean(512&f),S&&!t||(g?f=-61441&f|R:f&A||(f|=32768),b=(f&e)<<16|b&e)}({msdosAttributesRaw:m,msdosAttributes:y}=function(t,e){if(t!==U)t&=r;else if(e!==U){const{readOnly:n,hidden:o,system:a,directory:i,archive:s}=e;let c=0;n&&(c|=1),o&&(c|=2),a&&(c|=4),i&&(c|=16),s&&(c|=32),t=c&r}return e===U&&(e={readOnly:Boolean(1&t),hidden:Boolean(2&t),system:Boolean(4&t),directory:Boolean(16&t),archive:Boolean(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}}(m,y)),E&&(b=b&t|m&r);const F=b>>16&e,O=f!==U&&40960==(f&A);return{name:o,Zt:{versionMadeBy:s,msDosCompatible:Boolean(i),externalFileAttributes:b,unixExternalUpper:F,uid:u,gid:l,unixMode:f,unixExtraFieldType:w,symlink:O,setuid:d,setgid:p,sticky:h,msdosAttributesRaw:m,msdosAttributes:y}}}function fc(t,r,n){const o=jc(t,n,"encodeText")||ue;let a=o(r,at);if(a===U&&(a=ue(r)),Yc(a)>e)throw new Error(ds);const i=n[$o]||"";if(typeof i!=j)throw new Error(fs);let s=o(i,it);if(s===U&&(s=ue(i)),Yc(s)>e)throw new Error(ls);const c=Nc(t,n,ma);if(c!==U&&c>e)throw new Error(ps);const u=_c(t,n,na,new Date),l=Nc(t,n,oa),f=_c(t,n,aa),w=_c(t,n,sa),d=Nc(t,n,ua,0),p=At(Nc(t,n,V)),h=Boolean(p),m=!0===p;let y=Nc(t,n,W),E=Nc(t,n,Z);gt(y,E),y=y&&y.length?y:U,E=E&&E.length?E:U;const b=Pc(t,n,"encryptionStrength",3),S=Nc(t,n,Ea),g=Nc(t,n,"extendedTimestamp",!0),A=Nc(t,n,"ntfsTimestamp"),R=Nc(t,n,"keepOrder",!0),z=Nc(t,n,q),x=Nc(t,n,"bufferedWrite"),D=jc(t,n,"createTempStream"),F=Nc(t,n,"dataDescriptorSignature",!0),O=bt(Nc(t,n,H));St(O);const I=Nc(t,n,$,!Xc(a)||!Xc(s)),T=Nc(t,n,ga),k=h||T===U?U:br(T);if(!h&&T!==U&&0!==T&&8!==T&&!k)throw new Error(dr);let C=Pc(t,n,X);if(zt(C,9,Ws),t.options[tt]){if(y!==U||E!==U)throw new Error(ms);C===U&&T===U&&(C=0)}h&&(C=xt(n[X]));let M=Nc(t,n,Y),v=Nc(t,n,J);x&&v===U&&(v=!1),(v===U||S&&!m)&&(v=!0),C!==U&&6!=C&&(M=!1);const N=Nc(t,n,pa);if(!(S||y===U&&E===U||Number.isInteger(b)&&b>=1&&b<=3))throw new Error(hs);const _=wc(n[Ra]),P=wc(n.localExtraField),B=wc(n.centralExtraField);return{comment:i,Zt:{rawFilename:a,rawComment:s,version:c,lastModDate:u,rawLastModDate:l,lastAccessDate:f,creationDate:w,internalFileAttributes:d,Ht:h,Gt:m,password:y,rawPassword:E,encryptionStrength:b,zipCrypto:S,extendedTimestamp:g,ntfsTimestamp:A,keepOrder:R,useWebWorkers:z,bufferedWrite:x,createTempStream:D,dataDescriptorSignature:F,signal:O,useUnicodeFileNames:I,compressionMethod:T,format:k?k.format:U,codecURI:k?k.codecURI:U,Pe:k?k.versionNeeded:U,level:C,useCompressionStream:M,dataDescriptor:v,zip64:N,rawExtraField:_,Be:P,ye:B}}}function wc(t){if(!t)return B;if(!(t instanceof Map))throw new Error(bs);let r=0,n=0;t.forEach((t,n)=>{if(Rt(n,e,Ss),!(t instanceof Uint8Array))throw new Error(gs);if(Yc(t)>e)throw new Error(As);r+=4+Yc(t)});const o=new Uint8Array(r),a=Xt(o);return t.forEach((t,e)=>{Vc(a,n,e),Vc(a,n+2,Yc(t)),qc(o,t,n+4),n+=4+Yc(t)}),o}function dc(e,r,n,o,a){const{Ht:i,Gt:s,zipCrypto:c,password:u,rawPassword:l,encryptionStrength:f}=o;let{dataDescriptor:w,zip64:d,level:p,compressionMethod:h}=o,m=0,y=0,E=!1;if(i&&r){if(y=a[Qo],y===U)throw new Error(Os);if(h===U)throw new Error(Is)}const b=!0===d,S=Nc(e,a,ha);if(r&&s&&!S&&Yc(u,l))throw new Error(Es);const g=r&&(Boolean(u&&Yc(u)||l&&Yc(l))||s&&S);r||(p=0,h=0);const A=Ta(g,c,f);r&&(i?(a.uncompressedSize=y,m=n===U?Bc(y)+A:n+(s?0:A)):n===U?(w=!0,(d||d===U)&&(d=E=!0,m=4294967296)):(a.uncompressedSize=y=n,m=(Lc(h,p)?Bc(y):y)+A));const R=!(g||r&&(0!==n||i)||Lc(h,p));R&&Nc(e,a,J)===U&&(w=!1);const z=b||E||y>=t,x=b||m>=t;if(z||x){if(!1===d)throw new Error(Fs);d=!0}return d=d||!1,{Le:m,Zt:{dataDescriptor:w,Xt:R,zip64:d,pe:b,We:E,he:z,me:x,uncompressedSize:y,level:p,compressionMethod:h,encrypted:g}}}function pc(e,r,n){const o=e.slice().sort((t,e)=>n?e-t:t-e);let a=r,i=0;for(const e of o){if(a>=t)break;a+=e,i++}return i}function hc(t){const{rawFilename:r,lastModDate:o,rawLastModDate:a,lastAccessDate:i,creationDate:s,level:c,zip64:u,zipCrypto:l,useUnicodeFileNames:f,dataDescriptor:w,directory:d,rawExtraField:p,Be:y,encryptionStrength:S,extendedTimestamp:g,ntfsTimestamp:A,Ht:R,encrypted:z,he:x,me:D,uncompressedSize:T,We:k,crc32:C}=t;let{version:M,compressionMethod:v}=t;const N=!d&&Lc(v,c);let _;const j=R||!N,P=u&&(t.bufferedWrite||!w||!x&&!D||j&&!k),L=P||u&&w&&(x||D);if(u&&(x||D)){const t=20,e=Sc(t);if(e.Ce(1),e.Ce(t-4),_=e.ct,P&&(e._e(T),j)){const t=Ta(z,l,S);e._e(R?0:T+t)}}else _=B;let W,Z,V,H,G;if(z&&!l){const t=Sc(Yc(Ys)+2);t.Ce(h),t.Me(Ys),W=t.ct,W[8]=S}else W=B;if(g){const t=Mc(o),e=(q=t)>=Rs&&q<=zs;if(e){const e=9+(i?4:0)+(s?4:0),r=Sc(e);H=1+(i?2:0)+(s?4:0),G=t,r.Ce(m),r.Ce(e-4),r.Ze(H),r.ke(t),i&&r.ke(vc(Mc(i))),s&&r.ke(vc(Mc(s))),V=r.ct}else V=B;if(A===U?!e||Boolean(i||s):A)try{const t=Cc(o),e=Sc(36);e.Ce(10),e.Ce(32),e.Ve(4),e.Ce(1),e.Ce(24),e._e(t),e._e(i?Cc(i):t),e._e(s?Cc(s):t),Z=e.ct}catch{Z=B}else Z=B}else Z=V=B;var q;let Y,K;try{const{uid:r,gid:n,unixExtraFieldType:o}=t;if(o!=Ks||r===U&&n===U)if(o!=Xs||r===U&&n===U)Y=K=B;else{const t=Sc(8);t.Ce(b),t.Ce(4),t.Ce((r===U?0:r)&e),t.Ce((n===U?0:n)&e),Y=t.ct;const o=Sc(4);o.Ce(b),o.Ce(0),K=o.ct}else{const t=yc(r===U?0:r),e=yc(n===U?0:n),o=3+t.length+e.length,a=Sc(4+o);a.Ce(E),a.Ce(o),a.Ze(1),a.Ze(t.length),a.Me(t),a.Ze(e.length),a.Me(e),Y=K=a.ct}}catch{Y=K=B}v===U&&(v=N?8:0),M===U&&(M=0!=v||d||z?20:10);const{Pe:X}=t;N&&X!==U&&(M=M>X?M:X),u&&(M=M>45?M:45),z&&!l&&(M=M>51?M:51,R&&C!==U&&(W[4]=1),Vc(Xt(W),9,v),v=99);const $=L?Yc(_):0,J=$+Yc(W,V,Z,Y,p,y);if(J+(t[tt]?67:0)>e)throw new Error(As);const Q=new Date(2e3*Math.ceil(Math.floor(o.getTime()/1e3)/2)),et=Q<I?I:Q>O?O:Q,rt=Yc(V)?new Date(1e3*Mc(o)):Yc(Z)?o:et,{ne:nt,oe:ot,rawLastModDate:at}=Kc({version:M,bitFlag:$c(c,f,w,z,v),compressionMethod:v,uncompressedSize:T,lastModDate:et,rawLastModDate:a,rawFilename:r,me:D,he:x,extraFieldLength:J}),it=Sc(F+Yc(r)+J),st=it.ct,ct=Xt(st);return it.ke(n),it.Me(nt),it.Me(r),L&&it.Me(_),it.Me(W),it.Me(V),it.Me(Z),it.Me(Y),it.Me(p),it.Me(y),w&&(D||Hc(ct,18,0),x||Hc(ct,22,0)),{Yt:st,Se:ct,ne:nt,oe:ot,lastModDate:rt,qt:rt===et&&Q.getTime()!=et.getTime(),rawLastModDate:at,encrypted:z,compressed:N,version:M,compressionMethod:v,ce:H,ue:G,ae:B,ie:$,se:V,le:Z,fe:Y,we:K,de:W,extraFieldLength:J}}function mc(t,e){const{$t:r}=t;let{Yt:n,extraFieldLength:o}=r,a=64-(e+Yc(n))%64;a<4&&(a+=64);const i=new Uint8Array(a),s=Xt(i);Vc(s,0,y),Vc(s,2,a-4);const c=n;r.Yt=n=new Uint8Array(Yc(c)+a),qc(n,c),qc(n,i,Yc(c));const u=Xt(n);Vc(u,28,o+a),r.Se=u,t.re+=a}function yc(t){const e=new Uint8Array(4);Xt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function Ec({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,o=B,i=0,s=t?20:12;return r&&(s+=4),e&&(o=new Uint8Array(s),n=Xt(o),r&&(i=4,Hc(n,0,a))),{Kt:o,Ee:n,be:i}}function bc(r){let n=0,o=!1;for(const[,a]of r){const{rawFilename:r,de:i,rawComment:s,le:c,we:u,rawExtraField:l,ye:w,ce:d,ue:p,pe:h,uncompressedSize:y,compressedSize:E}=a;let{he:b,me:S}=a;h||(b&&y<t&&(b=a.he=!1),S&&E<t&&(S=a.me=!1)),o=o||b||S;const g=a.offset>=t,A=a.diskNumberStart>=e;let R,z;if(g||A||b||S){const t=4+(b?8:0)+(S?8:0)+(g?8:0)+(A?4:0),e=Sc(t);e.Ce(1),e.Ce(t-4),b&&e._e(y),S&&e._e(E),g&&e._e(a.offset),A&&e.ke(a.diskNumberStart),R=e.ct}else R=B;if(a.ae=R,a.Te=g,a.Ue=A,p===U)z=B;else{const t=Sc(9);t.Ce(m),t.Ce(5),t.Ze(d),t.ke(p),z=t.ct}a.se=z;const x=Yc(R,i,c,u,z,l,w);if(x>e)throw new Error(As);n+=f+Yc(r,s)+x}return{xe:n,De:o}}function Sc(t){const e=new Uint8Array(t),r=Xt(e);let n=0;return{ct:e,Ze:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Ce:t=>{Vc(r,n,t),n+=2},ke:t=>{Hc(r,n,t),n+=4},_e:t=>{Gc(r,n,BigInt(t)),n+=8},Me:t=>{qc(e,t,n),n+=Yc(t)},Ve:t=>n+=t}}function gc(t){const{diskNumber:e=0}=t;return e}function Ac(t){const{diskOffset:e=0}=t;return e}function Rc(t,e){const{availableSize:r=T}=t;return e>r}function zc(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.Mt:0)}function xc(t){const e=Xt(t);let r=0;for(;r+4<=Yc(t);){const n=4+Wc(e,r+2);if(1==Wc(e,r))return xc(Yt(t.subarray(0,r),t.subarray(Math.min(r+n,Yc(t)))));r+=n}return t}async function Dc(t,e,r,n){if(n>0){const{writer:o}=t;let a=0;try{await kc(qo(e,{offset:r,size:n}),o,U,t=>a+=t)}catch(e){if(a){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}}throw e}finally{o.size+=a,t.offset+=a}}}async function Fc(t,e){const r=e>=0&&e+F<=t.size?await Go(t,e,F):B;if(Yc(r)<F)return U;const o=Xt(r);return Zc(o,0)!=n?U:F+Wc(o,26)+Wc(o,28)}function Oc(t,{offset:e,diskNumberStart:r}){return e+(t.ht?t.ht(r):0)}function Ic(){const t=new Uint8Array(4);return Hc(Xt(t),0,o),t}async function Uc(t,e){delete t.Tt,await Tc(e,Ic()),t.offset+=4}async function Tc(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Yc(e),await n.write(e)}finally{n.releaseLock()}}async function kc(t,e,r,n){const o=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){await o.ready,await o.write(t),n(Yc(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{o.releaseLock()}}function Cc(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<xs?xs:e>Ds?Ds:e}}function Mc(t){return Math.floor(t.getTime()/1e3)}function vc(t){return Math.min(zs,Math.max(Rs,t))}function Nc(t,e,r,n){const o=e[r]===U?t.options[r]:e[r];return o===U?n:o}function _c(t,e,r,n){const o=Nc(t,e,r,n);if(null===o)return n;if(o!==U&&(typeof o.getTime!=N||Number.isNaN(o.getTime())))throw new Error(ws);return o}function jc(t,e,r){return yt(Nc(t,e,r))}function Pc(t,e,r,n){return xt(Nc(t,e,r,n))}function Bc(t){return t+5*(Math.floor(t/16383)+1)}function Lc(t,e){return t===U?e===U||e>0:0!==t}function Wc(t,e){return t.getUint16(e,!0)}function Zc(t,e){return t.getUint32(e,!0)}function Vc(t,e,r){t.setUint16(e,r,!0)}function Hc(t,e,r){t.setUint32(e,r,!0)}function Gc(t,e,r){t.setBigUint64(e,r,!0)}function qc(t,e,r){t.set(e,r)}function Yc(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function Kc({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:o,compressedSize:a,lastModDate:i,rawLastModDate:s,rawFilename:c,me:u,he:l,extraFieldLength:f}){const w=Sc(26),d=w.ct,p=Xt(d);if(w.Ce(e),w.Ce(r),w.Ce(n),s===U){const t=new Uint32Array(1),e=Xt(t);Vc(e,0,(i.getHours()<<6|i.getMinutes())<<5|i.getSeconds()/2),Vc(e,2,(i.getFullYear()-1980<<4|i.getMonth()+1)<<5|i.getDate()),s=t[0]}return w.ke(s),w.Ve(4),u||a!==U?w.ke(u?t:a):w.Ve(4),l||o!==U?w.ke(l?t:o):w.Ve(4),w.Ce(Yc(c)),w.Ce(f),{ne:d,oe:p,rawLastModDate:s}}function Xc(t){return t.every(t=>t>=32&&t<=126)}function $c(t,e,r,n,o){let a=0;return e&&(a|=S),r&&(a|=8),8!=o&&9!=o||(t>=0&&t<=3&&(a|=6),t>3&&t<=5&&(a|=4),9==t&&(a|=2)),n&&(a|=1),a}function Jc(){return"application/octet-stream"}function Qc(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=Pt(),o=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:tu(r,Fr)||tu(t,Fr)||tu(t,Ir),decompression:tu(n,Fr)||tu(e,Fr)||tu(e,Ir),registered:!1},{compressionMethod:9,compression:!1,decompression:tu(n,Or)||tu(e,Or),registered:!1}];for(const t of Sr()){const e=gr(t.format);o.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==N:U,decompression:e?typeof e.DecompressionStream==N:U,registered:!0})}return o}function tu(t,e){if(!t)return!1;const{supportedFormats:r}=t;return r?r.includes(e):vr(t,e)}const eu="2.22.0",ru=1048576,nu=".zip.js-temp";function ou(t={}){const{thresholdBytes:e=ru,directoryName:r=nu,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let o;function a(){return o||(o=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),o}return function(){const t=[];let r,n,o,i,s=0,c=!1;const u=new WritableStream({async write(i){c?await o.write(i):(t.push(i),s+=i.length,s>e&&await async function(){const e=await a();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),n=await e.getFileHandle(r,{create:!0}),o=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await o.write(e);t.length=0}())},async close(){o&&(await o.close(),o=null)}});let l=0;return{writable:u,readable:new ReadableStream({async pull(e){if(c){if(!i){const t=await n.getFile();i=t.stream().getReader()}const{value:t,done:r}=await i.read();r?e.close():e.enqueue(t)}else l<t.length?e.enqueue(t[l++]):e.close()},async cancel(t){i&&await i.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(o){try{await o.close()}catch{}o=null}if(r){try{const t=await a();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const au=1048576;function iu(t={}){const{thresholdBytes:e=au}=t;return function(){const t=[];let r,n,o,a=0,i=!1;const s=new WritableStream({async write(o){i?await r.write(o):(t.push(o),a+=o.length,a>e&&await async function(){const e=new TransformStream;n=cr(e.readable),r=e.writable.getWriter(),i=!0;for(const e of t)await r.write(e);t.length=0}())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:s,readable:new ReadableStream({async pull(e){if(i){if(!o){const t=await n;o=t.stream().getReader()}const{value:t,done:r}=await o.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){o&&await o.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(r){try{await r.abort()}catch{}r=null}n&&(n.catch(()=>{}),n=null),t.length=0}}}}const su=1048576,cu=".zip.js-temp",uu="createSyncAccessHandle is only available in dedicated workers";function lu(t={}){const{thresholdBytes:e=su,directoryName:r=cu,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(uu);const o=n||(()=>navigator.storage.getDirectory());let a;function i(){return a||(a=Promise.resolve(o()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,o=0,a=!1,s=0,c=0;const u=new WritableStream({async write(c){a?(n.write(c,{at:s}),s+=c.length):(t.push(c),o+=c.length,o>e&&await async function(){const e=await i();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const o=await e.getFileHandle(r,{create:!0});n=await o.createSyncAccessHandle(),a=!0;for(const e of t)n.write(e,{at:s}),s+=e.length;t.length=0}())},close(){n&&n.flush()}});let l=0;const f=new ReadableStream({pull(e){if(a){const t=s-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),o=n.read(r,{at:c});o?(c+=o,e.enqueue(r.subarray(0,o))):e.close()}else l<t.length?e.enqueue(t[l++]):e.close()}},{highWaterMark:0});return{writable:u,readable:f,dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await i();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{Gt({baseURI:import.meta.url})}catch{}const fu="deflate",wu="deflate-raw",du="deflate64-raw",pu="gzip",hu=[fu,wu,pu],mu=[fu,wu,pu,du];let yu,Eu,bu,Su,gu;function Au(t,e){return-4===e&&(t.code="Z_MEM_ERROR"),t}function Ru(t,e,r={}){if(!(t?hu:mu).includes(e))throw new TypeError("Unsupported format: "+e);if(!yu){const t=new Error("WASM module not loaded");throw t.cause=gu,t}const n="number"==typeof r.level?r.level:-1,o="number"==typeof r.outBuffer?r.outBuffer:65536,a="number"==typeof r.inBufferSize?r.inBufferSize:65536,i={He:0,in:0,inBufferSize:0,Ge:0,qe:!1};let s,c,u,l,f=!0,w=!1;return function(){try{let r;if(i.He=Eu(o),i.in=Eu(a),i.inBufferSize=a,!i.He||!i.in)throw Au(new Error("allocation failed"),-4);if(t?(i.Ye=yu.deflate_process,i.Ke=yu.deflate_last_consumed,i.Xe=yu.deflate_end,i.Ge=yu.deflate_new(),r=e===pu?yu.deflate_init_gzip(i.Ge,n):e===wu?yu.deflate_init_raw(i.Ge,n):yu.deflate_init(i.Ge,n)):e===du?(i.Ye=yu.inflate9_process,i.Ke=yu.inflate9_last_consumed,i.Xe=yu.inflate9_end,i.Ge=yu.inflate9_new(),r=yu.inflate9_init_raw(i.Ge)):(i.Ye=yu.inflate_process,i.Ke=yu.inflate_last_consumed,i.Xe=yu.inflate_end,i.Ge=yu.inflate_new(),r=e===wu?yu.inflate_init_raw(i.Ge):e===pu?yu.inflate_init_gzip(i.Ge):yu.inflate_init(i.Ge)),0!==r)throw Au(new Error("init failed:"+r),r)}catch(t){throw h(i),t}}(),{readable:new ReadableStream({start(t){s=t},pull(){f=!1,p()},cancel(t){w=!0,l=t,h(i),c.error(t),p()}},{highWaterMark:0}),writable:new WritableStream({start(t){c=t},async write(t){if(f&&await new Promise(t=>u=t),w)throw l;try{!function(t){const e=new Uint8Array(Su.buffer),r=i.Ye,n=i.Ke,a=i.He;let s=0;for(;s<t.length;){if(i.qe)throw new Error("trailing data after the end of the stream");const c=Math.min(t.length-s,32768);if((!i.in||i.inBufferSize<c)&&(i.in&&bu&&(bu(i.in),i.in=0),i.in=Eu(c),i.inBufferSize=c,!i.in))throw Au(new Error("allocation failed"),-4);e.set(t.subarray(s,s+c),i.in);const u=r(i.Ge,i.in,c,a,o,0),l=u>>24&255,f=128&l?l-256:l;if(f<0)throw Au(new Error("process error:"+f),f);const w=16777215&u;w&&d(e.slice(a,a+w));const p=n(i.Ge);if(1===l)i.qe=!0;else if(0===p&&0===w)break;s+=p}}(t)}catch(t){throw h(i),s.error(t),t}},close(){if(w)return;try{!function(){const t=new Uint8Array(Su.buffer),e=i.Ye,r=i.He;for(;;){const n=e(i.Ge,0,0,r,o,4),a=n>>24&255,s=128&a?a-256:a;if(s<0)throw Au(new Error("process error:"+s),s);const c=16777215&n;if(c&&d(t.slice(r,r+c)),1===a||0===c)break}}()}catch(t){throw h(i),s.error(t),t}const t=h(i);if(0!==t){const e=Au(new Error("end error:"+t),t);throw s.error(e),e}s.close()},abort(t){h(i),s.error(t)}},{highWaterMark:1})};function d(t){f=!0,s.enqueue(t)}function p(){if(u){const t=u;u=null,t()}}function h(t){let e=0;return t.Ge&&t.Xe&&(e=t.Xe(t.Ge)),t.Ge=0,t.in&&bu&&bu(t.in),t.in=0,t.He&&bu&&bu(t.He),t.He=0,e}}class zu{constructor(t=fu,e){return Ru(!0,t,e)}}class xu{constructor(t=fu,e){return Ru(!1,t,e)}}zu.requiresModule=!0,xu.requiresModule=!0,zu.supportedFormats=hu,xu.supportedFormats=mu;const Du=65536;let Fu,Ou;function Iu(t){return new Uint8Array(t.memory.buffer)}let Uu,Tu=!1;var ku;async function Cu(){await async function(){await Promise.allSettled([_n(),...On.map(t=>(Bn(t),t.terminate()))]),rn=U,nn=!1}(),Uu=null,Tu=!1,yu=Eu=bu=Su=gu=null,Fu=null,Ou=0}ku=function(t,e){const r=Fu;let n=r?function(t,e,r){Ou||(Ou=t.malloc(Du));const n=Ou?t.aes_hmac_new():0;if(n){const o=Iu(t);if(o.set(e,Ou),o.set(r,Ou+e.length),t.aes_hmac_init(n,Ou,e.length,Ou+e.length,r.length))return t.aes_hmac_end(n,0),0}return n}(r,t,e):0;if(!n)return ge(t,e);const o=Ou;return{process(t,e){for(let a=0;a<t.length;a+=Du){const i=t.subarray(a,a+Du),s=Iu(r);s.set(i,o),r.aes_hmac_process(n,o,i.length,e?1:0),i.set(s.subarray(o,o+i.length))}},digest:()=>(r.aes_hmac_end(n,o),n=0,Iu(r).slice(o,o+20)),dispose(){n&&(r.aes_hmac_end(n,0),n=0)}}},We=ku||ge,function({$e:t}){an=t}({$e:t=>{if(!Uu){let{wasmURI:e}=t;typeof e==N&&(e=e()),Uu=async function(t,{baseURI:e}){if(!Tu)try{await async function(t,e){let r,n;try{try{n=new URL(t,e)}catch{}const o=await fetch(n);r=await o.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=function(t){const e=t.split(",")[1],r=atob(e),n=r.length,o=new Uint8Array(n);for(let t=0;t<n;++t)o[t]=r.charCodeAt(t);return o.buffer}(t)}const o=await WebAssembly.instantiate(r);var a;(function(t){if(yu=t,({malloc:Eu,free:bu,memory:Su}=yu),"function"!=typeof Eu||"function"!=typeof bu||!Su)throw yu=Eu=bu=Su=null,new Error("Invalid WASM module")})(o.instance.exports),typeof(a=o.instance.exports).aes_hmac_new==N&&(Fu=a,Ou=0)}(t,e),Tu=!0}catch(t){throw function(t){gu=t}(t),t}}(e,t).catch(t=>{throw Uu=null,t})}return Uu}}),Gt({CompressionStreamFallback:zu,DecompressionStreamFallback:xu}),Gt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const Mu="Entry filename already exists",vu="Duplicate entry filename in the imported zip file",Nu='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',_u="Entry is an ancestor of target entry",ju="Root directory cannot be moved",Pu="Target entry is not a directory",Bu="Parent entry is not a directory",Lu="Readable stream already consumed",Wu="throw",Zu="keep-first",Vu="keep-last",Hu=new Set([Wu,Zu,Vu]),Gu="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",qu="The 'compressed' passThrough option is only supported by Entry#getData() and ZipWriter#add()",Yu="Invalid passwords option (must be an array of strings)",Ku="Invalid requestPassword option (must be a function returning a string or undefined)",Xu="zipjs-abort-export",$u=new Uint8Array(0),Ju=new Set([Dr,Rr,zr]);class Qu{constructor(t,e,r,n){const o=this;if(t.root&&n&&n.getChildByName(e))throw new Error(Mu);r||(r={}),Object.assign(o,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.Je++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,Qe:r.Qe||r.uncompressedSize===U,passThrough:r.passThrough,er:r.er||new Date}),!n&&t.root||(t.entries[o.id]=o),n&&o.parent.children.push(o)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return Boolean(e)}rename(t){const e=this;let r=e.parent;if(r){const n=Tl(t);n&&(t=n.pop(),r=kl(r,n,e));const o=r.getChildByName(t);if(o&&o!=e)throw new Error(Mu);r!=e.parent&&(fl(e),e.parent=r,r.children.push(e),Il(e.fs,e))}e.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==U))}}class tl extends Qu{constructor(t,e,r,n){super(t,e,r,n);const o=this;o.Reader=r.Reader,o.Writer=r.Writer,r.getData&&(o.getData=r.getData)}clone(){return new tl(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&function(t,e){const{contentType:r}=t;return r===U||(t.constructor==wo?e.type==r:t.constructor!=co||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=ul(r.Reader,r.data,e),o=r.uncompressedSize||n.size;await Promise.all([Vo(n),Vo(t,o)]);const a=bt(e.signal),i=function(t,e,r,n){const{onstart:o,onprogress:a,onend:i}=r,{readable:s}=e;return t.data instanceof Ia||!o&&!a&&!i?s:sr(s).pipeThrough(new fn({onstart:o,onprogress:a,onend:i,size:e.size}),{signal:n})}(r,n,e,a),s=!Zo(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await sr(i).pipeTo(ur(t.writable),{signal:a,preventClose:s,preventAbort:s}),t.getData?t.getData():t.writable}}isPasswordProtected(){return Boolean(this.data&&this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if($t(t)&&t.message==Fe)return!1;throw t}}getText(t,e){return this.getData(new mo(t),e)}getBlob(t,e){return this.getData(new wo(t),e)}getData64URI(t,e){return this.getData(new co(t),e)}getUint8Array(t){return this.getData(new jo,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Kt(await this.getUint8Array(t)).buffer}replaceBlob(t){gl(this,{data:t,Reader:fo,Writer:wo,uncompressedSize:t.size})}replaceText(t){gl(this,{data:t,Reader:po,Writer:mo,uncompressedSize:ho(t)})}replaceData64URI(t){gl(this,{data:t,Reader:so,Writer:co,uncompressedSize:Al(t)})}replaceUint8Array(t){gl(this,{data:t,Reader:_o,Writer:jo,uncompressedSize:t.length})}replaceReadable(t){gl(this,{data:null,Reader:sl(t),Writer:null,uncompressedSize:U})}}class el extends Qu{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new el(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const n=e.clone(t);return n.parent=r,n})),r}addDirectory(t,e){return Ul(this,t,{options:e},!0)}addText(t,e,r={}){return Ul(this,t,{data:e,Reader:po,Writer:mo,options:r,uncompressedSize:ho(e)})}addBlob(t,e,r={}){return Ul(this,t,{data:e,Reader:fo,Writer:wo,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return Ul(this,t,{data:e,Reader:so,Writer:co,options:r,uncompressedSize:Al(e)})}addUint8Array(t,e,r={}){return Ul(this,t,{data:e,Reader:_o,Writer:jo,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return Ul(this,t,{data:e,Reader:class extends vo{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return Ul(this,t,{Reader:sl(e),options:r})}addFileSystemEntry(t,e={}){return xl(this,t,e)}addFileSystemHandle(t,e={}){return xl(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),Ul(this,t.name,{data:t,Reader:function(){return{readable:t.stream(),size:t.size}},options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new fo(t),e)}importData64URI(t,e){return this.importZip(new so(t),e)}importUint8Array(t,e){return this.importZip(new _o(t),e)}importHttpContent(t,e){return this.importZip(new vo(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new wo(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new co(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new jo,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return async function(t,e,r){const{onstart:n,onprogress:o,onend:a}=r;Sl(r.passThrough),ml(r);const i=hl(r.readerOptions),s=new AbortController,{signal:c}=s,u=function(t,e){if(!bt(t))return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)}(r.signal,s),l=Object.assign({},r,i,{signal:c,onstart:U,onprogress:U,onend:U,preventClose:!1}),f=ol([t],t=>il(t,l.passThrough)),w=[];let d=!1,p=0;try{n&&await wn(n,f),await m(t,e),a&&await wn(a,p)}catch(t){try{t.exportedEntryNames=w}catch{}throw t}finally{u()}return e;function h(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),p+=t.length,o&&await wn(o,p,f)},close:()=>e.close(),abort:t=>e.abort(t)})}async function m(t,e){if(r.concurrent){const r=(await Promise.allSettled(t.children.map(t=>y(t,e)))).filter(t=>"rejected"==t.status);if(r.length){const t=r.filter(t=>!wl(t.reason));throw function(t){const[e]=t,r=t.slice(1).flatMap(t=>[t,...t&&t.entryErrors||[]]).filter(t=>t!==e);if(r.length)try{e.entryErrors=[...e.entryErrors||[],...r]}catch{}return e}((t.length?t:r).map(t=>t.reason))}}else for(const r of t.children)await y(r,e)}async function y(e,r){if(c.aborted){if(d||wl(c.reason))return;St(c)}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await m(e,t)}else{const n=await r.getFileHandle(e.name,{create:!0}),o=await n.createWritable();try{await e.getData({writable:h(o)},l)}catch(t){throw d?new Error(Xu):t}w.push(e.getRelativeName(t))}}catch(r){d=!0,s.abort(new Error(Xu));try{r.entryName===U&&(r.entryName=e.getRelativeName(t),r.entryId=e.id)}catch{}throw r}}}(this,t,e)}async importZip(t,e={}){let r;t&&typeof t.getEntries==N?(r=t,e=Object.assign({},r.options,e)):(await Vo(t),r=new bi(t,e)),Sl(e.passThrough),ml(e);const n=function(t){if(t===U)return Wu;if(Hu.has(t))return t;throw new Error(Nu)}(e.duplicates),o=[],a={rr:[]},i=await r.getEntries(e);for(const t of i){let r=this;try{const i=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=i.pop();let c=!1;for(const t of i){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==Zu){c=!0;break}if(n!=Vu)throw new Error(vu);this.fs.remove(r),r=new el(this.fs,t,{data:null},e),o.push(r)}}else r=new el(this.fs,t,{data:null},e),o.push(r)}if(c)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&(!e.directory||e.data)){if(n==Zu)continue;if(n!=Vu)throw new Error(vu);e.directory?e.data=t:(this.fs.remove(e),e=U)}e||(e=new el(this.fs,s,{data:null},r),o.push(e))}e==this||e.data||(e.data=t)}else{const i=r.getChildByName(s);if(i){if(n==Zu)continue;if(n!=Vu)throw new Error(vu);this.fs.remove(i)}o.push(Ul(r,s,{data:t,Reader:cl(Object.assign({},e),a),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}}catch(e){o.reverse().forEach(t=>this.fs.remove(t));try{e.cause={entry:t}}catch{}throw e}}return o}async exportZip(t,e={}){const r=this,n=Boolean(t)&&typeof t.add==N;e=Object.assign({},e),n||e.bufferedWrite!==U||(e.bufferedWrite=!0);const[o]=await Promise.all([ll(r,hl(e.readerOptions)),n?U:Vo(t)]),a=n?t:new tc(t,e);return await async function(t,e,r,n,o){const{onstart:a,onprogress:i,onend:s,onentryprogress:c}=n,u=e,l=ol(e.children,t=>zl(t)?0:1);let f=0,w=0;if(a&&await wn(a,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await d(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await d(t);async function d(e){if(zl(e))return;const{name:a,Lt:s}=dl(e,u,n);let d=0;const p=await t.add(a,o.get(e),Object.assign(s,{onstart:U,onend:U,onprogress:async t=>{f+=t-d,d=t,i&&await wn(i,f,r)}}));w++,c&&await wn(c,w,l,p)}s&&await wn(s,f)}(a,r,ol([r],al),e,o),n?a:(await a.close(e.globalComment),t.getData?t.getData():t.writable)}async getExportedSize(r={}){const n=this;hl((r=Object.assign({},r)).readerOptions),r.bufferedWrite===U&&(r.bufferedWrite=!0);const o=n.getChildren({recursive:!0}),a=o.filter(t=>!zl(t)).map(t=>{const{name:e,Lt:o}=dl(t,n,r);return{name:e,size:t.directory?0:pl(t,Rl(t,r)),options:o}}),i=!r.bufferedWrite||a.every(t=>!1!==t.options.keepOrder)&&o.every(t=>zl(t)||!t.children.length);return await async function(r,n,o,a){const i={options:r};if(yt(r[nt]))throw new Error(Ts);if(a!==U&&!(a instanceof Uint8Array))throw new Error(us);const s=Yc(a);if(s>e)throw new Error(cs);const c=r[tt],u=new Map,l=r[Q]===U?0:r[Q];let f=l,d=T;const p=[],h=new Set;for(const e of n){let{name:r}=e;const{size:n}=e,o=Object.assign({},e.options);Nc(i,o,ba)&&!r.endsWith(D)&&(r+=D);const a=lc(i,r,o);({name:r}=a);const{Zt:s}=fc(i,r,o);0==s.level||s.compressionMethod!==U||s.Ht||await sn(Pt())||(s.level=0);const l=!Nc(i,o,ba);if(l&&n===U)throw new Error(Ts);const{Le:w,Zt:m}=dc(i,l,n,s,o);if(l&&!s.Ht&&Lc(m.compressionMethod,m.level))throw new Error(Ts);const y=Object.assign({},o,a.Zt,s,m,{[tt]:c}),E=hc(y),b=Ec(y),S={$t:E,re:Yc(E.Yt,b.Kt)};c&&mc(S,f);const g=l?w:0;u.set(r,Object.assign({},y,E,{offset:f,diskNumberStart:0,compressedSize:g}));const A=S.re+g;p.push(A),h.add(Boolean(y.pe||y.uncompressedSize>=t||g>=t)),d=Math.min(d,A),f+=A}if(u.size>1&&(c||f-d>=t&&(h.size>1||pc(p,l,!0)!=pc(p,l,!1)))&&!o)throw new Error(Ts);const{xe:m,De:y}=bc(u);let E=Nc(i,r,pa);if(f>=t||m>=t||u.size>=e){if(!1===E)throw new Error(Fs);E=!0}else E===U&&y&&(E=!0);return f-l+m+s+(E?98:w)}(r,a,i,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let o=0;for(;o<n.length;)for(const t of n[o++].children)r.push(t),e&&n.push(t);return r}(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class rl{constructor(){Fl(this)}get children(){return this.root.children}remove(t){fl(t);const e=[t];for(;e.length;){const t=e.pop();this.entries[t.id]=null;for(const r of t.children)e.push(r)}t.parent=U}move(t,e){if(t==this.root)throw new Error(ju);if(!e.directory)throw new Error(Pu);if(e.isDescendantOf(t))throw new Error(_u);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(Mu)}else fl(t),t.parent=e,e.children.push(t),Il(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.directory?r.getChildByName(e[t]):U;return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}importBlob(t,e){return Ol(this,r=>r.importBlob(t,e))}importData64URI(t,e){return Ol(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return Ol(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return Ol(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return Ol(this,r=>r.importReadable(t,e))}importZip(t,e){return Ol(this,r=>r.importZip(t,e))}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}}const nl={FS:rl,ZipDirectoryEntry:el,ZipFileEntry:tl};function ol(t,e){let r=0;const n=Array.from(t);for(;n.length;){const t=n.pop();r+=e(t)||0;for(const e of t.children)n.push(e)}return r}function al(t){return t.uncompressedSize}function il(t,e){const{data:r}=t;return e&&r instanceof Ia?r.compressedSize:t.uncompressedSize}function sl(t){let e;return function(){if(e)throw new Error(Lu);return e=!0,{readable:t}}}function cl(t,e){return class extends ao{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const r=this,n=Object.assign({},t,r.options),{checkOverlappingEntry:o,checkOverlappingEntryOnly:a}=n,i=await async function(t,e,r){ml(e);const{passwords:n,requestPassword:o,signal:a}=e;if(delete(e=Object.assign({},e)).passwords,delete e.requestPassword,!t.encrypted||e.passThrough||!n&&!o)return t.getData(new wo,e);const i=new Set;let s;for(;;){for(const t of El(e,r,n))if(!i.has(t.key)){const e=await u(t);if(e.done)return e.data;s=e.error}if(!o)break;if(r.nr){await r.nr;continue}let a;r.nr=new Promise(t=>a=t);try{const e=await o(t,s);if(e===U||null===e)break;if(typeof e!=j)throw new Error(Ku);const r=await u(bl(e));if(r.done)return r.data;s=r.error}finally{r.nr=U,a()}}if(!i.size)throw new Error(Na);const c=new Error(Fe);throw c.cause=s,c;async function u(n){i.add(n.key);const o=Object.assign({},e,n.options);if(t.zipCrypto){o.checkCrc32=!0;try{await t.getData(null,Object.assign({},o,{checkPasswordOnly:!0}))}catch(t){if(yl(t))return{done:!1,error:t};throw t}}try{const e=await t.getData(new wo,o);return function(t,e){const{rr:r}=t,n=r.findIndex(t=>t.key===e.key);-1!=n&&r.splice(n,1),r.unshift(e)}(r,n),{done:!0,data:e}}catch(e){if(function(t,e){return Boolean(e&&e.aborted)||$t(t)&&"AbortError"==t.name}(e,a)||!function(t,e){return yl(t)||e.zipCrypto&&$t(t)&&Ju.has(t.message)}(e,t))throw e;return{done:!1,error:e}}}}(r.entry,Object.assign(n,{checkPasswordOnly:!1,checkOverlappingEntry:a||o,checkOverlappingEntryOnly:!1,preventClose:!1}),e);r.data=i,r.ar=new fo(i),r.size=i.size,super.init()}readUint8Array(t,e){return this.ar.readUint8Array(t,e)}}}function ul(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function ll(t,e){const r=[],n=[t],o=new Map;for(;n.length;){const t=n.pop();for(const e of t.children)e.directory?n.push(e):r.push(e)}return await Promise.all(r.map(async r=>{const n=r.reader=ul(r.Reader,r.data,e);o.set(r,n);try{await Vo(n)}catch(e){try{e.entry=r,e.entryId=r.id,e.entryName=r.getRelativeName(t)}catch{}throw e}n.size!==U&&(r.uncompressedSize=n.size,r.Qe=!1)})),o}function fl(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function wl(t){return Boolean(t)&&t.message==Xu}function dl(t,e,r){const n=r.relativePath?t.getRelativeName(e):t.getFullname(),o=t.options||{};let a={},i={};if(t.data instanceof Ia){const e=Rl(t,r),n=o.lastModDate===U?r.lastModDate:o.lastModDate;({Lt:a,Wt:i}=uc(t.data,e,n)),e&&(i.passThrough=!0)}const s=Object.assign({lastModDate:t.er},a,r,o,i,{directory:t.directory});if(!t.directory&&s.passThrough&&s.uncompressedSize===U)throw new Error(Gu);return{name:n,Lt:s}}function pl(t,e){const{reader:r}=t;return r&&r.size!==U?r.size:t.Qe?U:il(t,e)}function hl(t){return Et(t),t&&(Sl(t.passThrough),ml(t)),t}function ml(t){const{passwords:e,requestPassword:r}=t;if(e&&(!Array.isArray(e)||e.some(t=>typeof t!=j)))throw new Error(Yu);if(r&&typeof r!=N)throw new Error(Ku)}function yl(t){return $t(t)&&t.message==Fe}function El(t,e,r){const n=[],{password:o,rawPassword:a}=t;return a&&a.length&&n.push({key:a,options:{password:"",rawPassword:a}}),o&&n.push(bl(o)),n.push(...e.rr),r&&n.push(...r.filter(t=>t).map(bl)),n}function bl(t){return{key:t,options:{password:t,rawPassword:$u}}}function Sl(t){if(At(t)===lt)throw new Error(qu)}function gl(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:U,uncompressedSize:r===U?0:r,Qe:r===U})}function Al(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function Rl(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function zl(t){return t.directory&&null===t.data}function xl(t,e,r){return async function t(e,n,o,a=""){if(n){const i=a?a+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await Dl(n)),"file"==n.kind){const t=await n.getFile();o.push(Ul(e,t.name,{Reader:function(){return{readable:t.stream(),size:t.size}},options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==n.kind){const a=e.addDirectory(n.name,r);o.push(a);for await(const e of n.values())await t(a,e,o,i)}}catch(t){try{t.entryName===U&&(t.entryName=i)}catch{}throw t}}return o}(t,e,[])}async function Dl(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await async function(t){const e=[];function r(t,n,o){t.readEntries(async a=>{if(a.length){for(const t of a)e.push(await Dl(t));r(t,n,o)}else n(e)},o)}return await new Promise((e,n)=>r(t.createReader(),e,n)),{[Symbol.iterator](){let t=0;return{next(){const r={value:e[t],done:t==e.length};return t++,r}}}}}(t);e.values=()=>r}return e}function Fl(t){t.entries=[],t.Je=0,t.root=new el(t)}function Ol(t,e){const{entries:r,Je:n,root:o}=t;return Fl(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,Je:n,root:o}),e})}function Il(t,e){const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}}function Ul(t,e,r,n){if(t.directory){const o=Tl(e);return o&&(e=o.pop(),t=kl(t,o)),n?new el(t.fs,e,r,t):new tl(t.fs,e,r,t)}throw new Error(Bu)}function Tl(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function kl(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(Mu);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(_u)}else t=new el(n.fs,e,{data:null},n)}),t}export{fo as BlobReader,wo as BlobWriter,so as Data64URIReader,co as Data64URIWriter,mt as ERR_ABORTED,Ba as ERR_AMBIGUOUS_ARCHIVE,_u as ERR_ANCESTOR_ENTRY,ka as ERR_BAD_FORMAT,va as ERR_CENTRAL_DIRECTORY_NOT_FOUND,xr as ERR_CODEC_OUT_OF_MEMORY,ss as ERR_DUPLICATED_NAME,vu as ERR_DUPLICATE_IMPORTED_ENTRY,Na as ERR_ENCRYPTED,La as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Pa as ERR_ENTRY_DATA_OUT_OF_BOUNDS,Mu as ERR_ENTRY_EXISTS,Ma as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Ca as ERR_EOCDR_NOT_FOUND,M as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,Gn as ERR_HTTP_RANGE,qn as ERR_HTTP_RESOURCE_CHANGED,Hn as ERR_HTTP_STATUS,Oe as ERR_INVALID_AUTHENTICATION_CODE,Ot as ERR_INVALID_BASE_URI,lr as ERR_INVALID_CODEC_DEFINITION,wr as ERR_INVALID_CODEC_MODULE,cs as ERR_INVALID_COMMENT,us as ERR_INVALID_COMMENT_TYPE,zr as ERR_INVALID_COMPRESSED_DATA,Dr as ERR_INVALID_CRC32,ws as ERR_INVALID_DATE,Nu as ERR_INVALID_DUPLICATES,hs as ERR_INVALID_ENCRYPTION_STRENGTH,Vs as ERR_INVALID_ENTRY,ls as ERR_INVALID_ENTRY_COMMENT,fs as ERR_INVALID_ENTRY_COMMENT_TYPE,ds as ERR_INVALID_ENTRY_NAME,bs as ERR_INVALID_EXTRAFIELD,As as ERR_INVALID_EXTRAFIELD_DATA,gs as ERR_INVALID_EXTRAFIELD_DATA_TYPE,Ss as ERR_INVALID_EXTRAFIELD_TYPE,Va as ERR_INVALID_FILENAME_VALIDATION,ft as ERR_INVALID_FUNCTION_OPTION,Ns as ERR_INVALID_GID,Ws as ERR_INVALID_LEVEL,Ha as ERR_INVALID_MAX_APPENDED_DATA_SIZE,Ft as ERR_INVALID_MAX_WORKERS,Bs as ERR_INVALID_MSDOS_ATTRIBUTES,Ls as ERR_INVALID_MSDOS_DATA,Fe as ERR_INVALID_PASSWORD,Yu as ERR_INVALID_PASSWORDS,dt as ERR_INVALID_PASSWORD_TYPE,Gu as ERR_INVALID_PASS_THROUGH,pt as ERR_INVALID_PASS_THROUGH_VALUE,Cs as ERR_INVALID_READER,ht as ERR_INVALID_READER_OPTIONS,Ku as ERR_INVALID_REQUEST_PASSWORD,wt as ERR_INVALID_SIGNAL,Zs as ERR_INVALID_SIGNATURE_DATA,Za as ERR_INVALID_STRICTNESS,vs as ERR_INVALID_UID,Rr as ERR_INVALID_UNCOMPRESSED_SIZE,js as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,Ps as ERR_INVALID_UNIX_ID_SIZE,_s as ERR_INVALID_UNIX_MODE,It as ERR_INVALID_URI,ps as ERR_INVALID_VERSION,Yn as ERR_ITERATOR_COMPLETED_TOO_SOON,k as ERR_LOCAL_FILE_HEADER_NOT_FOUND,C as ERR_OVERLAPPING_ENTRY,Bu as ERR_PARENT_NOT_DIRECTORY,Lu as ERR_READABLE_CONSUMED,fr as ERR_RESERVED_COMPRESSION_METHOD,ju as ERR_ROOT_DIRECTORY_NOT_MOVABLE,ja as ERR_SPLIT_ZIP_FILE,Pu as ERR_TARGET_NOT_DIRECTORY,Is as ERR_UNDEFINED_COMPRESSION_METHOD,Us as ERR_UNDEFINED_CRC32,ks as ERR_UNDEFINED_READER,Os as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Ts as ERR_UNDETERMINED_SIZE,Wa as ERR_UNSAFE_FILENAME,dr as ERR_UNSUPPORTED_COMPRESSION,uu as ERR_UNSUPPORTED_CONTEXT,Ue as ERR_UNSUPPORTED_CRYPTO_API,_a as ERR_UNSUPPORTED_ENCRYPTION,Es as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,ms as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Fs as ERR_UNSUPPORTED_FORMAT,qu as ERR_UNSUPPORTED_PASS_THROUGH_VALUE,ys as ERR_UNSUPPORTED_SPLIT_USDZ,Ga as ERR_UNSUPPORTED_UINT64,en as ERR_WORKER_STARTUP_TIMEOUT,Kn as ERR_WRITER_NOT_INITIALIZED,Xn as ERR_WRITER_SIZE_NOT_WRITABLE,Hs as ERR_ZIP_CRYPTO_LAST_MOD_DATE,Ms as ERR_ZIP_NOT_EMPTY,No as HttpRangeReader,vo as HttpReader,ao as Reader,Po as SplitDataReader,Bo as SplitDataWriter,po as TextReader,mo as TextWriter,_o as Uint8ArrayReader,jo as Uint8ArrayWriter,eu as VERSION,Qa as WARNING_APPENDED_DATA,qs as WARNING_CLAMPED_LAST_MODIFICATION_DATE,Ka as WARNING_COMPRESSED_PATCHED_DATA,Gs as WARNING_COMPRESSION_UNAVAILABLE,ai as WARNING_DUPLICATE_FILENAME,Xa as WARNING_MALFORMED_EXTRA_FIELD,ni as WARNING_MISMATCHED_CENTRAL_DIRECTORY_OFFSET,ui as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,li as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,fi as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,ci as WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME,ii as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,oi as WARNING_MISSING_ZIP64_EXTRA_FIELD,si as WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY,ei as WARNING_PREPENDED_CENTRAL_DIRECTORY,ti as WARNING_PREPENDED_DATA,ri as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,Ya as WARNING_UNKNOWN_VERSION,$a as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,qa as WARNING_UNSORTED_CENTRAL_DIRECTORY,Ja as WARNING_WRAPPED_ENTRIES_COUNT,io as Writer,el as ZipDirectoryEntry,Qu as ZipEntry,rl as ZipFS,tl as ZipFileEntry,bi as ZipReader,Si as ZipReaderStream,tc as ZipWriter,ec as ZipWriterStream,Wt as configure,iu as createBlobTempStream,ou as createOPFSTempStream,lu as createSyncAccessHandleTempStream,nl as fs,Jc as getMimeType,Sr as getRegisteredCodecs,Qc as getSupportedCompressionMethods,gi as isZipFile,yr as registerCodec,qt as resetConfiguration,Cu as terminateWorkers,Er as unregisterCodec};
|