@zip.js/zip.js 2.8.57 → 2.8.59
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 +458 -200
- package/dist/zip-core-external.min.js +1 -1
- package/dist/zip-core.js +472 -199
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core-external.js +481 -201
- package/dist/zip-fs-core-external.min.js +1 -1
- package/dist/zip-fs-core.js +497 -193
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-external.js +481 -201
- package/dist/zip-fs-external.min.js +1 -1
- package/dist/zip-fs-native.js +498 -202
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +499 -203
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +474 -201
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +474 -201
- package/dist/zip-native.min.js +1 -1
- package/dist/zip-web-worker-native.js +1 -1
- package/dist/zip-web-worker.js +1 -1
- package/dist/zip.js +475 -202
- package/dist/zip.min.js +1 -1
- package/index-native.cjs +498 -202
- package/index-native.min.js +1 -1
- package/index.cjs +499 -203
- package/index.d.cts +297 -10
- package/index.d.ts +297 -10
- package/index.min.js +1 -1
- package/lib/core/constants.js +4 -0
- package/lib/core/options.js +2 -0
- package/lib/core/web-worker-inline-native.js +1 -1
- package/lib/core/web-worker-inline-wasm.js +1 -1
- package/lib/core/zip-fs.js +27 -1
- package/lib/core/zip-reader.js +168 -38
- package/lib/core/zip-writer.js +290 -161
- package/lib/core/zlib-streams-inline.js +1 -1
- package/lib/zip-core-reader.js +16 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=4294967295,e=65535,r=255,a=67324752,n=134695760,s=n,i=84233040,o=33639248,c=101010256,l=101075792,d=117853008,p=22,f=20,u=56,m=39169,w=21589,h=6534,y=30837,b=30805,g=2048,x=61440,v=16384,E=2048,S=1024,z="/",k=30,A=new Date(2107,11,31,23,59,58),R=new Date(1980,0,1),F=void 0,D=1/0,O="undefined",U="function",j="object",T="string",I=new Uint8Array,C="password",M="rawPassword",N="passThrough",P="signal",_="useWebWorkers",W="useCompressionStream",L="transferStreams",B="preventClose",q="dataDescriptor",V="offset",Z="usdz",H="signCentralDirectory",K="filename",Y="comment",G="strict",X="balanced",J="tolerant",Q="Invalid option (must be a function)",$="Invalid signal (must be an AbortSignal instance)",tt="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function et(t){if(t&&typeof t!=U)throw Error(Q);return t}function rt(t){if(t&&(typeof t.addEventListener!=U||"boolean"!=typeof t.aborted))throw Error($);return t||F}function at(t,e){if(t&&typeof t!=T||e&&!(e instanceof Uint8Array))throw Error(tt)}function nt(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw Error(r)}function st(t,e,r){t!==F&&nt(t,e,r)}function it(t){return typeof t==T&&t.trim()?Number(t):t}const ot="Invalid maxWorkers (must be an integer greater than 0)";let ct=2;try{typeof navigator!=O&&navigator.hardwareConcurrency&&(ct=navigator.hardwareConcurrency)}catch{}const lt={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:ct,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=O&&CompressionStream,DecompressionStream:typeof DecompressionStream!=O&&DecompressionStream},dt="maxWorkers",pt=["chunkSize",dt,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],ft=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],ut=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...pt,...ft],mt={...lt};function wt(){return mt}function ht(t){return yt(t.chunkSize)}function yt(t){return t=it(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function bt(t){Object.assign(mt,gt(vt(t)))}function gt(t){const e={};for(const r of ut){const a=t[r];a!==F&&(e[r]=xt(r,a))}return e}function xt(t,e){if(pt.includes(t)){if(e=it(e),t==dt&&(!Number.isInteger(e)||e<1))throw Error(ot)}else ft.includes(t)&&et(e);return e}function vt(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===F&&r===F)return t;const a=Object.assign({},t);return a.CompressionStreamFallback===F&&(a.CompressionStreamFallback=e),a.DecompressionStreamFallback===F&&(a.DecompressionStreamFallback=r),a}function Et(t){const e=gt(vt(t));Object.assign(lt,e),Object.assign(mt,e)}function St(){for(const t of ut)delete mt[t];Object.assign(mt,lt)}function zt(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 At(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Rt=[[],[],[],[],[],[],[],[]];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;Rt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Rt[e-1][t];Rt[e][t]=r>>>8^Rt[0][255&r]}const[Ft,Dt,Ot,Ut,jt,Tt,It,Ct]=Rt;class Mt{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let a=0;if(r>=8&&t.buffer){const n=new DataView(t.buffer,t.byteOffset,r),s=r-8;for(;a<=s;a+=8){const t=e^n.getInt32(a,!0),r=n.getInt32(a+4,!0);e=Ct[255&t]^It[t>>>8&255]^Tt[t>>>16&255]^jt[t>>>24&255]^Ut[255&r]^Ot[r>>>8&255]^Dt[r>>>16&255]^Ft[r>>>24&255]}}for(;a<r;a++)e=e>>>8^Ft[255&(e^t[a])];this.o=e}get(){return~this.o}}class Nt extends TransformStream{constructor(){let t;const e=new Mt;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 Pt(t){if(typeof TextEncoder==O){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 _t={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],a=_t.l(r);return 32===a?t.concat(e):_t.m(e,a,0|r,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const r=t[e-1];return 32*(e-1)+_t.l(r)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=_t.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,a){for(void 0===a&&(a=[]);e>=32;e-=32)a.push(r),r=0;if(0===e)return a.concat(t);for(let n=0;n<t.length;n++)a.push(r|t[n]>>>e),r=t[n]<<32-e;const n=t.length?t[t.length-1]:0,s=_t.l(n);return a.push(_t.v(e+s&31,e+s>32?r:a.pop(),1)),a}},Wt={bytes:{S(t){const e=_t.bitLength(t)/8,r=new Uint8Array(e);let a;for(let n=0;n<e;n++)3&n||(a=t[n/4]),r[n]=a>>>24,a<<=8;return r},A(t){const e=[];let r,a=0;for(r=0;r<t.length;r++)a=a<<8|t[r],3&~r||(e.push(a),a=0);return 3&r&&e.push(_t.v(8*(3&r),a)),e}}},Lt=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.F=[1518500249,1859775393,2400959708,3395469782],t?(e.D=t.D.slice(0),e.O=t.O.slice(0),e.U=t.U):e.reset()}reset(){const t=this;return t.D=t.R.slice(0),t.O=[],t.U=0,t}update(t){const e=this;"string"==typeof t&&(t=Wt.j.A(t));const r=e.O=_t.concat(e.O,t),a=e.U,n=e.U=a+_t.bitLength(t);if(n>9007199254740991)throw Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let i=0;for(let t=e.blockSize+a-(e.blockSize+a&e.blockSize-1);t<=n;t+=e.blockSize)e.T(s.subarray(16*i,16*(i+1))),i+=1;return r.splice(0,16*i),e}I(){const t=this;let e=t.O;const r=t.D;e=_t.concat(e,[_t.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.U/4294967296)),e.push(0|t.U);e.length;)t.T(e.splice(0,16));return t.reset(),r}C(t,e,r,a){return t<=19?e&r|~e&a:t<=39?e^r^a:t<=59?e&r|e&a|r&a:t<=79?e^r^a:void 0}M(t,e){return e<<t|e>>>32-t}T(t){const e=this,r=e.D,a=Array(80);for(let e=0;e<16;e++)a[e]=t[e];let n=r[0],s=r[1],i=r[2],o=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(a[t]=e.M(1,a[t-3]^a[t-8]^a[t-14]^a[t-16]));const r=e.M(5,n)+e.C(t,s,i,o)+c+a[t]+e.F[Math.floor(t/20)]|0;c=o,o=i,i=e.M(30,s),s=n,n=r}r[0]=r[0]+n|0,r[1]=r[1]+s|0,r[2]=r[2]+i|0,r[3]=r[3]+o|0,r[4]=r[4]+c|0}},Bt={importKey:t=>new Bt.N(Wt.bytes.A(t)),P(t,e,r,a){if(r=r||1e4,a<0||r<0)throw Error("invalid params to pbkdf2");const n=1+(a>>5)<<2;let s,i,o,c,l;const d=new ArrayBuffer(n),p=new DataView(d);let f=0;const u=_t;for(e=Wt.bytes.A(e),l=1;f<(n||1);l++){for(s=i=t.encrypt(u.concat(e,[l])),o=1;o<r;o++)for(i=t.encrypt(i),c=0;c<i.length;c++)s[c]^=i[c];for(o=0;f<(n||1)&&o<s.length;o++)p.setInt32(f,s[o]),f+=4}return d.slice(0,a/8)},N:class{constructor(t){const e=this,r=e._=Lt,a=[[],[]];e.W=[new r,new r];const n=e.W[0].blockSize/32;t.length>n&&(t=(new r).update(t).I());for(let e=0;e<n;e++)a[0][e]=909522486^t[e],a[1][e]=1549556828^t[e];e.W[0].update(a[0]),e.W[1].update(a[1]),e.L=new r(e.W[0])}reset(){const t=this;t.L=new t._(t.W[0]),t.B=!1}update(t){this.B=!0,this.L.update(t)}digest(){const t=this,e=t.L.I(),r=new t._(t.W[1]).update(e).I();return t.reset(),r}encrypt(t){if(this.B)throw Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},qt=typeof crypto!=O&&typeof crypto.getRandomValues==U,Vt="Invalid password",Zt="Invalid signature",Ht=Zt,Kt="zipjs-abort-check-password",Yt="Crypto API not supported";function Gt(t){if(qt)return crypto.getRandomValues(t);throw Error(Yt)}const Xt=16,Jt={name:"PBKDF2"},Qt=Object.assign({hash:{name:"HMAC"}},Jt),$t=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Jt),te=["deriveBits"],ee=[8,12,16],re=[16,24,32],ae=10,ne=[0,0,0,0],se=typeof crypto!=O,ie=se&&crypto.subtle,oe=se&&typeof ie!=O,ce=Wt.bytes,le=class{constructor(t){const e=this;e.V=[[[],[],[],[],[]],[[],[],[],[],[]]],e.V[0][0][0]||e.Z();const r=e.V[0][4],a=e.V[1],n=t.length;let s,i,o,c=1;if(4!==n&&6!==n&&8!==n)throw Error("invalid aes key size");for(e.F=[i=t.slice(0),o=[]],s=n;s<4*n+28;s++){let t=i[s-1];(s%n===0||8===n&&s%n===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],s%n===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),i[s]=i[s-n]^t}for(let t=0;s;t++,s--){const e=i[3&t?s:s-4];o[t]=s<=4||t<4?e:a[0][r[e>>>24]]^a[1][r[e>>16&255]]^a[2][r[e>>8&255]]^a[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}Z(){const t=this.V[0],e=this.V[1],r=t[4],a=e[4],n=[],s=[];let i,o,c,l;for(let t=0;t<256;t++)s[(n[t]=t<<1^283*(t>>7))^t]=t;for(let d=i=0;!r[d];d^=o||1,i=s[i]||1){let s=i^i<<1^i<<2^i<<3^i<<4;s=s>>8^255&s^99,r[d]=s,a[s]=d,l=n[c=n[o=n[d]]];let p=16843009*l^65537*c^257*o^16843008*d,f=257*n[s]^16843008*s;for(let r=0;r<4;r++)t[r][d]=f=f<<24^f>>>8,e[r][s]=p=p<<24^p>>>8}for(let r=0;r<5;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw Error("invalid aes block size");const r=this.F[e],a=r.length/4-2,n=[0,0,0,0],s=this.V[e],i=s[0],o=s[1],c=s[2],l=s[3],d=s[4];let p,f,u,m=t[0]^r[0],w=t[e?3:1]^r[1],h=t[2]^r[2],y=t[e?1:3]^r[3],b=4;for(let t=0;t<a;t++)p=i[m>>>24]^o[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],f=i[w>>>24]^o[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],u=i[h>>>24]^o[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=i[y>>>24]^o[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=p,w=f,h=u;for(let t=0;t<4;t++)n[e?3&-t:t]=d[m>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],p=m,m=w,w=h,h=y,y=p;return n}},de=class{constructor(t,e){this.K=t,this.Y=e,this.G=e}reset(){this.G=this.Y}update(t){return this.X(this.K,t,this.G)}J(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,r=t>>8&255,a=255&t;255===e?(e=0,255===r?(r=0,255===a?a=0:++a):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=a}return t}$(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}X(t,e,r){let a;if(!(a=e.length))return[];const n=_t.bitLength(e);for(let n=0;n<a;n+=4){this.$(r);const a=t.encrypt(r);e[n]^=a[0],e[n+1]^=a[1],e[n+2]^=a[2],e[n+3]^=a[3]}return _t.h(e,n)}},pe=Bt.N;let fe=se&&oe&&typeof ie.importKey==U,ue=se&&oe&&typeof ie.deriveBits==U;class me extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:a,checkAuthenticationCode:n=!0}){super({start(){he(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:s,et:i,ready:o}=r;n?(await(async(t,e,r,a)=>{const n=await be(t,e,r,xe(a,0,ee[e])),s=xe(a,ee[e]);if(n[0]!=s[0]||n[1]!=s[1])throw Error(Vt)})(r,s,n,xe(t,0,ee[s]+2)),t=xe(t,ee[s]+2),a?e.error(Error(Kt)):i()):await o;const c=new Uint8Array(t.length-ae-(t.length-ae)%Xt);e.enqueue(ye(r,t,c,0,ae,!0))},async flush(t){const{nt:e,st:r,it:a,ready:s}=this;if(r&&e){await s;const i=xe(a,0,a.length-ae),o=xe(a,a.length-ae);let c=I;if(i.length){const t=Ee(ce,i);r.update(t);const a=e.update(t);c=ve(ce,a)}const l=xe(ve(ce,r.digest()),0,ae);let d=a.length<ae?1:0;for(let t=0;t<ae;t++)d|=l[t]^o[t];if(d&&n)throw Error(Ht);t.enqueue(c)}}})}}class we extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){he(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:n,et:s,ready:i}=r;let o=I;a?(o=await(async(t,e,r)=>{const a=Gt(new Uint8Array(ee[e]));return zt(a,await be(t,e,r,a))})(r,n,a),s()):await i;const c=new Uint8Array(o.length+t.length-t.length%Xt);c.set(o,0),e.enqueue(ye(r,t,c,o.length,0))},async flush(t){const{nt:e,st:r,it:a,ready:n}=this;if(r&&e){await n;let s=I;if(a.length){const t=e.update(Ee(ce,a));r.update(t),s=ve(ce,t)}const i=ve(ce,r.digest()).slice(0,ae);t.enqueue(zt(s,i))}}})}}function he(t,e,r,a){Object.assign(t,{ready:new Promise(e=>t.et=e),password:ge(e,r),strength:a-1,it:I})}function ye(t,e,r,a,n,s){const{nt:i,st:o,it:c}=t;c.length&&(e=zt(c,e));const l=e.length-n;let d;for(r=((t,e)=>{if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t})(r,a+(l-l%Xt)),d=0;d<=l-Xt;d+=Xt){const t=Ee(ce,xe(e,d,d+Xt));s&&o.update(t);const n=i.update(t);s||o.update(n),r.set(ve(ce,n),d+a)}return t.it=xe(e,d),r}async function be(t,e,r,a){t.password=null;const n=await(async(t,e,r,a,n)=>{if(!fe)return Bt.importKey(e);try{return await ie.importKey("raw",e,r,!1,n)}catch{return fe=!1,Bt.importKey(e)}})(0,r,Qt,0,te),s=await(async(t,e,r)=>{if(!ue)return Bt.P(e,t.salt,$t.iterations,r);try{return await ie.deriveBits(t,e,r)}catch{return ue=!1,Bt.P(e,t.salt,$t.iterations,r)}})(Object.assign({salt:a},$t),n,8*(2*re[e]+2)),i=new Uint8Array(s),o=Ee(ce,xe(i,0,re[e])),c=Ee(ce,xe(i,re[e],2*re[e])),l=xe(i,2*re[e]);return Object.assign(t,{keys:{key:o,ot:c,passwordVerification:l},nt:new de(new le(o),Array.from(ne)),st:new pe(c)}),l}function ge(t,e){return e===F?Pt(t):e}function xe(t,e,r){return t.subarray(e,r)}function ve(t,e){return t.S(e)}function Ee(t,e){return t.A(e)}class Se extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:a}){super({start(){ke(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Ae(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw Error(Vt);t=t.subarray(12)}a?e.error(Error(Kt)):e.enqueue(Ae(r,t))}})}}class ze extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){ke(this,t,e,r)},transform(t,e){const r=this;let a,n;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Gt(new Uint8Array(12));e[11]=r.passwordVerification,a=new Uint8Array(t.length+e.length),a.set(Re(r,e),0),n=12}else a=new Uint8Array(t.length),n=0;a.set(Re(r,t),n),e.enqueue(a)}})}}function ke(t,e,r,a){Object.assign(t,{password:e,rawPassword:r,passwordVerification:a}),((t,e,r)=>{const a=[305419896,591751049,878082192];if(Object.assign(t,{keys:a,ct:new Mt(a[0]),lt:new Mt(a[2])}),r)for(let e=0;e<r.length;e++)Fe(t,r[e]);else for(let r=0;r<e.length;r++)Fe(t,e.charCodeAt(r))})(t,e,r)}function Ae(t,e){const r=new Uint8Array(e.length);for(let a=0;a<e.length;a++)r[a]=De(t)^e[a],Fe(t,r[a]);return r}function Re(t,e){const r=new Uint8Array(e.length);for(let a=0;a<e.length;a++)r[a]=De(t)^e[a],Fe(t,e[a]);return r}function Fe(t,e){let[,r]=t.keys;t.ct.append([e]);const a=~t.ct.get();r=Ue(Math.imul(Ue(r+Oe(a)),134775813)+1),t.lt.append([r>>>24]);const n=~t.lt.get();t.keys=[a,r,n]}function De(t){const e=2|t.keys[2];return Oe(Math.imul(e,1^e)>>>8)}function Oe(t){return 255&t}function Ue(t){return 4294967295&t}function je(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){const{value:r,done:a}=await e.read();a?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function Te(t,e){t=je(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=U||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const a=[];return t.pipeTo(new WritableStream({write(t){a.push(t)}})).then(()=>new Blob(a,r))}function Ie(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 Ce="Invalid codec definition",Me="Reserved compression method",Ne="Invalid codec module",Pe=[0,8,9,99],_e=new Map,We=new Map;function Le(t={}){const{compressionMethod:r,format:a,codecURI:n,CompressionStream:s,DecompressionStream:i,versionNeeded:o}=t;if(!Number.isInteger(r)||r<0||r>e||typeof a!=T||!a.length)throw Error(Ce);if(Pe.includes(r))throw Error(Me);const c=typeof s==U||typeof i==U;if(!(c||typeof n==T&&n.length))throw Error(Ce);_e.set(r,{compressionMethod:r,format:a,codecURI:n,versionNeeded:o}),c&&Ze(a,{CompressionStream:s,DecompressionStream:i})}function Be(t){const e=_e.get(t);if(e){let r;_e.delete(t),_e.forEach(t=>r=r||t.format==e.format),r||We.delete(e.format)}}function qe(t){return _e.get(t)}function Ve(t){return We.get(t)}function Ze(t,e){const{CompressionStream:r,DecompressionStream:a}=e;if(typeof r!=U&&typeof a!=U)throw Error(Ne);We.set(t,{CompressionStream:r,DecompressionStream:a})}const He="Invalid uncompressed size",Ke="Invalid compressed data",Ye=Zt,Ge="deflate-raw",Xe="gzip",Je=[31,139,8];class Qe extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:a}){super({});const{compressed:n,encrypted:s,useCompressionStream:i,zipCrypto:o,computeCrc32:c,level:l,deflate64:d,format:p,compressionMethod:f}=t,u=this;let m,w,h,y=super.readable;const b=p&&Ve(p),g=c&&n&&!d&&!b&&(!s||o)&&!(!i||!a);if(s&&!o||!c||g||(m=new Nt,y=or(y,m)),n)if(b)y=cr(y,sr(b.CompressionStream,p,{level:l,chunkSize:e,compressionMethod:f}));else if(g)h=new $e,y=cr(y,new a(Xe)),y=or(y,h);else try{y=ir(y,i,{level:l,chunkSize:e},a,r)}catch(t){let e;try{e=new a(Xe)}catch{throw t}y=cr(y,e),y=or(y,new $e)}s&&(o?y=or(y,new ze(t)):(w=new we(t),y=or(y,w))),nr(u,y,()=>{s&&!o||!c||(u.crc32=g?h.crc32:new DataView(m.value.buffer).getUint32(0))})}}class $e extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,a){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const n=r.length+t.length;if(n<=8)return void(r=zt(r,t));const s=n-8,i=Math.min(s,r.length);a.enqueue(zt(r.subarray(0,i),t.subarray(0,s-i))),r=zt(r.subarray(i),t.subarray(s-i))},flush(){const e=At(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:a}){super({});const{zipCrypto:n,encrypted:s,checkCrc32:i,crc32:o,compressed:c,useCompressionStream:l,deflate64:d,format:p,compressionMethod:f,rawBitFlag:u,outputSize:m}=t;let w,h,y=super.readable;if(s&&(n?y=or(y,new Se(t)):(h=new me(t),y=or(y,h))),c){const t=p&&Ve(p);if(t)y=cr(y,sr(t.DecompressionStream,p,{chunkSize:e,compressionMethod:f,rawBitFlag:u,uncompressedSize:m}));else try{y=ir(y,l,{chunkSize:e,deflate64:d},a,r)}catch(t){if(d||m===F)throw t;let e;try{e=new a(Xe)}catch{throw t}y=((t,e,r)=>{const a=new Mt;let n,s,i,o=0,c=!1;const l=new Promise((t,e)=>{s=t,i=e});l.catch(()=>{}),r||s();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(Je),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){c=!0,f();try{await l}finally{u()}const e=new Uint8Array(8),n=At(e);n.setUint32(0,a.get(),!0),n.setUint32(4,r,!0),t.enqueue(e)},cancel(t){i(t)}}),p=new TransformStream({transform(t,e){a.append(t),o+=t.length,o>=r?s():c&&f(),e.enqueue(t)},cancel(t){i(t)}});return t=or(t,d),or(t=cr(t,e),p);function f(){u(),n=setTimeout(()=>i(Error(He)),5e3)}function u(){clearTimeout(n)}})(y,e,m)}y=(t=>{const e=t.getReader();return new ReadableStream({async pull(t){let r;try{r=await e.read()}catch(t){if(t&&t.message)throw t;const e=Error(Ke);throw e.cause=t,e}const{value:a,done:n}=r;n?t.close():t.enqueue(a)},cancel:t=>e.cancel(t)})})(y)}i&&(w=new Nt,y=or(y,w)),nr(this,y,()=>{if(i){const t=new DataView(w.value.buffer);if(o!=t.getUint32(0,!1))throw Error(Ye)}})}}const er=new Map;function rr(t,e){if(!t)return!1;let r=er.get(t);r||(r=new Map,er.set(t,r));let a=r.get(e);if(a===F){try{new t(e),a=!0}catch{a=!1}r.set(e,a)}return a}function ar(t){return rr(t,Ge)}function nr(t,e,r){e=or(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function sr(t,e,r){if(!t)throw Error("Compression method not supported");return new t(e,r)}function ir(t,e,r,a,n){const s=e&&a?a:n||a,i=r.deflate64?"deflate64-raw":Ge;let o;try{o=new s(i,r)}catch(t){if(!e||!n||s==n)throw t;o=new n(i,r)}return cr(t,o)}function or(t,e){return je(t).pipeThrough(e)}function cr(t,e){const r=e.writable.getWriter(),a=t.getReader();return(async()=>{try{for(;;){await r.ready;const t=await a.read();if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await(async(t,e)=>{try{await t.abort(e)}catch{}})(r,t),await(async(t,e)=>{try{await t.cancel(e)}catch{}})(a,t)}})(),e.readable}const lr="data",dr="deflate",pr="inflate";class fr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:a}=t;let n;a.startsWith(dr)?n=Qe:a.startsWith(pr)&&(n=tr),r.outputSize=0;let s=0;const i=new n(t,e),o=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(s+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:s})}}),l=new TransformStream({transform(e,a){if(e&&e.length&&(a.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw Error(He)},flush(){const{crc32:t}=i;Object.assign(r,{crc32:t,inputSize:s})}});Object.defineProperty(r,"readable",{get:()=>o.pipeThrough(c).pipeThrough(i).pipeThrough(l)})}}class ur extends TransformStream{constructor(t){const e=[];let r=0;function a(){const a=new Uint8Array(t);let n=0;for(;n<t;){const r=e[0],s=t-n;r.length<=s?(a.set(r,n),n+=r.length,e.shift()):(a.set(r.subarray(0,s),n),e[0]=r.subarray(s),n+=s)}return r-=t,a}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(n,s){for(e.push(n),r+=n.length;r>t;)s.enqueue(a())},flush(t){r&&t.enqueue(((t,e)=>{const r=new Uint8Array(e);let a=0;for(const e of t)r.set(e,a),a+=e.length;return r})(e,r))}})}}const mr="Worker startup timeout";let wr,hr,yr,br=()=>{};async function gr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(ar(e)||rr(e,Xe))return!0;if(r)try{return await br(t),!0}catch{return!1}return!1}function xr(t){t.createWorker?hr=!0:wr=!1}class vr{constructor(t,{readable:e,writable:r},{options:a,config:n,ut:s,useWebWorkers:i,transferStreams:o,workerURI:c,createWorker:l},d){const{signal:p}=s;return hr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new ur(ht(n))).pipeThrough(new Er(s),{signal:p}),writable:r,options:Object.assign({},a),workerURI:c,createWorker:l,transferStreams:o,terminate:()=>new Promise(e=>{const{yt:r,wt:a}=t;r?(a?t.bt=e:(r.terminate(),e()),t.gt=null):e()}),xt(){if(t.wt){const{bt:e}=t;e&&(t.bt=null,t.vt=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),wr===F&&(wr=typeof Worker!=O),(i&&yr&&(wr&&c||l)?yr:zr)(t,n)}}class Er extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:a}){let n=0;super({async start(){t&&await Sr(t,r)},async transform(t,a){n+=t.length,e&&await Sr(e,n,r),a.enqueue(t)},async flush(){a&&await Sr(a,n)}})}}async function Sr(t,...e){try{await t(...e)}catch{}}function zr(t,e){return{run:()=>kr(t,e)}}async function kr({options:t,readable:e,writable:r,xt:a},n){let s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(dr),r=e?n.CompressionStreamFallback:n.DecompressionStreamFallback,a=e?n.CompressionStream:n.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!ar(a))try{await br(n)}catch{}}else try{await br(n)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}s=new fr(t,n),await e.pipeThrough(s).pipeThrough(new ur(ht(n))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:a,inputSize:i,outputSize:o}=s;return{crc32:a,inputSize:i,outputSize:o}}catch(t){throw s&&(t.outputSize=s.outputSize),t}finally{a()}}const Ar={type:"module"},Rr="error";let Fr,Dr,Or,Ur=!0;try{Ur=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var jr;function Tr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Ir(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Cr(t,e,r,a,n=!0){const{createWorker:s}=r;let i,o,c;if(s)i=s();else if(Dr===F||Fr!==t){const s=typeof t==U;o=s?t(n):t;const l=o.startsWith("data:"),d=o.startsWith("blob:");if(l||d){a===F&&(a=!1),a&&(c=Ar);try{i=new Worker(o,c)}catch(n){if(d)try{URL.revokeObjectURL(o)}catch{}if(s&&d)return Cr(t,e,r,a,!1);if(a)throw n;return Cr(t,e,r,!0,!1)}}else{a===F&&(a=!0),a&&(c=Ar);try{o=new URL(o,e)}catch{}try{i=new Worker(o,c)}catch(s){if(a)return Cr(t,e,r,!1,n);throw s}}Fr=t,Dr=o,Or=c}else i=new Worker(Dr,Or);return i.addEventListener("message",t=>{r.Et=!0,Mr(r),(async({data:t},e)=>{const{type:r,value:a,messageId:n,result:s,error:i}=t,{reader:o,writer:c,St:l,zt:d,xt:p,ht:f}=e,u=()=>e.ht!=f;try{if(i){const{message:t,stack:e,code:r,name:a,outputSize:n,cause:s,codecImportFailed:o}=i,c=Error(t);Object.assign(c,{stack:e,code:r,name:a,outputSize:n}),s&&(c.cause=Object.assign(Error(s.message),{name:s.name})),o&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await o.read();u()||Pr({type:lr,value:t,done:r,messageId:n},e)}r==lr&&(await c.ready,await c.write(new Uint8Array(a)),u()||Pr({type:"ack",messageId:n},e)),"close"==r&&m(null,s)}}catch(i){u()||(Ir(e),m(i))}function m(t,e){u()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||p())}})(t,r)}),i.addEventListener(Rr,t=>Nr(t,r)),i.addEventListener("messageerror",t=>Nr(t,r)),i}function Mr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Nr(t,e){t.preventDefault&&t.preventDefault(),Mr(e);const{Et:r,zt:a,writer:n,xt:s}=e;Ir(e),r||(e.yt=null);let i=t.error||Error(t.message||Rr);r||(i=Object.assign(Error(i.message||Rr),{At:!0}),e.Rt=i),a&&(a(i),n&&n.releaseLock(),r&&s())}function Pr(t,{yt:e,writer:r,transferStreams:a,Et:n}){try{const{value:r,readable:s,writable:i}=t,o=[];if(r&&(t.value=kt(r),o.push(t.value.buffer)),a&&Ur&&n?(s&&o.push(s),i&&o.push(i)):t.readable=t.writable=null,o.length)try{return e.postMessage(t,o),!0}catch{Ur=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}jr=(t,e)=>{const{baseURI:r,chunkSize:a,workerStartupTimeout:n}=e;let{wasmURI:s}=e;if(!t.gt){let i;typeof s==U&&(s=s());try{i=Cr(t.workerURI,r,t)}catch{return xr(t),zr(t,e)}Object.assign(t,{yt:i,Et:!1,vt:!1,Rt:null,gt:{run:async()=>{try{return await(async(t,e)=>{if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||Error(mr);throw r.At=!0,r}let r,a;const n=new Promise((t,e)=>{r=t,a=e});Object.assign(t,{reader:null,writer:null,St:r,zt:a,result:n});const{readable:s,options:i}=t,{writable:o,closed:c,Ft:l}=(t=>{const e=new AbortController,{writable:r,readable:a}=new TransformStream,n=a.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return n.catch(()=>{}),{writable:r,closed:n,Ft:()=>e.abort()}})(t.writable);let d;try{d=Pr({type:"start",options:i,config:e,readable:s,writable:o},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:s.getReader(),writer:o.getWriter()});const{workerStartupTimeout:p}=e;!t.Et&&Number.isFinite(p)&&p>=0&&(t.kt=setTimeout(()=>(t=>{if(t.kt=null,t.Et)return;const{zt:e,writer:r}=t;if(Ir(t),t.yt=null,e){const t=Error(mr);t.At=!0,e(t),r&&r.releaseLock()}})(t),p));try{const t=await n;return await f(),await c,t}catch(t){await f(),l();try{await c}catch{}throw t}async function f(){if(!d&&!o.locked)try{await o.getWriter().close()}catch{}}})(t,{chunkSize:a,wasmURI:s,baseURI:r,workerStartupTimeout:n})}catch(r){if(r&&r.At)return xr(t),Tr(t),kr(t,e);if(r&&r.codecImportFailed){if(t.reader)return Tr(t),kr(t,e);t.xt()}throw r}}}})}return t.gt},yr=jr;let _r=[];const Wr=[];let Lr,Br,qr=0;async function Vr(t,e){const{options:r,config:a}=e,{transferStreams:n,useWebWorkers:s,useCompressionStream:i,compressed:o,checkCrc32:c,computeCrc32:l,encrypted:d,format:p,codecURI:f}=r,{workerURI:u,createWorker:m,maxWorkers:w}=a;p&&(f&&(r.codecURI=((t,e)=>{try{return new URL(t,e).toString()}catch{return t}})(f,a.baseURI)),await(async(t,e)=>{!We.has(t)&&e&&Ze(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))})(p,r.codecURI)),e.transferStreams=!p&&(n||n===F&&a.transferStreams);const h=!(o||c||l||d),y=p===F||!!r.codecURI;return e.useWebWorkers=!h&&y&&(s||s===F&&a.useWebWorkers),e.workerURI=e.useWebWorkers&&u?u:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=i||i===F&&a.useCompressionStream,(await(async()=>{const r=_r.find(t=>!t.wt);if(r)return Gr(r),new vr(r,t,e,b);if(_r.length<w){const r={Dt:qr};return qr++,_r.push(r),new vr(r,t,e,b)}return new Promise(r=>{Wr.push({resolve:r,stream:t,Ot:e}),Br=a.workerStarvationTimeout,Zr()})})()).run();function b(t){if(Hr(),Wr.length){const[{resolve:e,stream:r,Ot:a}]=Wr.splice(0,1);e(new vr(t,r,a,b)),Zr()}else t.yt?(Gr(t),((t,e)=>{const{config:r}=e,{terminateWorkerTimeout:a}=r;Number.isFinite(a)&&a>=0&&(t.vt?t.vt=!1:t.Ut=setTimeout(async()=>{_r=_r.filter(e=>e!=t);try{await t.terminate()}catch{}},a))})(t,e)):_r=_r.filter(e=>e!=t)}}function Zr(){!Lr&&Wr.length&&Number.isFinite(Br)&&Br>=0&&(Lr=setTimeout(Kr,Br))}function Hr(){Lr&&(clearTimeout(Lr),Lr=null)}function Kr(){if(Lr=null,Wr.length){const[{resolve:t,stream:e,Ot:r}]=Wr.splice(0,1),a=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new vr({},e,a,Yr)),Zr()}}function Yr(){Hr(),Zr()}function Gr(t){const{Ut:e}=t;e&&(clearTimeout(e),t.Ut=null)}const Xr="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function Jr(t,e){return Qr(t,e,!0)}function Qr(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?(t=>{{let e="";for(let r=0;r<t.length;r++)e+=Xr[t[r]];return e}})(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const $r="HTTP error ",ta="HTTP Range not supported",ea="HTTP resource changed",ra="Writer iterator completed too soon",aa="Writer not initialized",na="Content-Range",sa="Range",ia="GET",oa="bytes",ca=16777216,la="writable",da=Symbol();class pa{constructor(){this.size=0}init(){this.initialized=!0}}class fa extends pa{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=ht(wt())}={}){const a=this;let n=0;return r=yt(r),new ReadableStream({async pull(s){const i=e===F?r:Math.min(r,e-n),o=await Ja(a,t+n,i);o.length&&s.enqueue(o),n+r>=e||!o.length&&i?s.close():n+=r}})}}class ua extends pa{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw Error(aa);return t.writeUint8Array(kt(e))}});Object.defineProperty(t,la,{get:()=>e})}writeUint8Array(){}}class ma extends fa{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{jt:t,Tt:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{Tt:r,jt:a}=this,n=new Uint8Array(e),s=4*Math.floor(t/3),i=atob(a.substring(s+r,4*Math.ceil((t+e)/3)+r)),o=t-3*Math.floor(s/4);let c=0;for(let t=o;t<o+e&&t<i.length;t++)n[t-o]=i.charCodeAt(t),c++;return c<n.length?n.subarray(0,c):n}}class wa extends ua{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",It:""})}writeUint8Array(t){const e=this;let r,a=e.It;const n=e.It.length;for(e.It="",r=0;r<3*Math.floor((n+t.length)/3)-n;r++)a+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.It+=String.fromCharCode(t[r]);a.length>2?e.data+=btoa(a):e.It=a+e.It}getData(){return this.data+btoa(this.It)}}let ha,ya;class ba extends fa{constructor(t){super(),Object.assign(this,{Ct:t,size:t.size}),ya||(ya=(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();ha=1==e}catch{ha=!1}})())}createReadable(t){const{Ct:e,size:r}=this,{offset:a=0,size:n=r-a}=t||{};return!a&&n>=r?je(e.stream()):ha?je(e.slice(a,a+n).stream()):super.createReadable(t)}async readUint8Array(t,e){const r=this,a=t+e,n=!t&&a>=r.size?r.Ct:r.Ct.slice(t,a);let s=await n.arrayBuffer();return s.byteLength>e&&(s=s.slice(t,a)),new Uint8Array(s)}}class ga extends pa{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,la,{get:()=>r.writable}),e.contentType=t,e.Mt=Te(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class xa extends ba{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function va(t){let e=0;for(let r=0;r<t.length;r++){const a=t.charCodeAt(r);a<128?e+=1:a<2048?e+=2:a<55296||a>=57344?e+=3:a<56320&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class Ea extends ga{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():((t,e)=>Qr(t,e,!1))(new Uint8Array(await r.arrayBuffer()),t)}}class Sa extends fa{constructor(t,e){super(),ka(this,t,e)}async init(){await Aa(this,Pa,Ia),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:a,size:n}=e;if((r||a)&&n!==F){const{offset:r=0,size:a=n-r}=t||{};if(a>0&&r<n)return((t,e,r)=>{let a,n=e,s=0,i=r;return new ReadableStream({start:()=>o(),async pull(t){a||await o();const{value:e,done:r}=await a.read();if(r)throw Error(ta);const n=e.length>s?e.subarray(0,s):e;s-=n.length,i-=n.length,n.length&&t.enqueue(n),s||(await(async()=>{const t=a;a=F,await t.cancel()})(),i||t.close())},cancel:t=>a&&a.cancel(t)});async function o(){const e=Math.min(t.maximumRangeSize,i),r=await Pa(ia,t,ja(t,n,e));if(206!=r.status)throw Error(ta);const o=r.headers.get(na);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=n)throw Error(ta)}Ua(t,r),Oa(t,r),n+=e,s=e,a=r.body.getReader()}})(e,r,Math.min(a,n-r))}return super.createReadable(t)}readUint8Array(t,e){return Ra(this,t,e,Pa,Ia)}}class za extends fa{constructor(t,e){super(),ka(this,t,e)}async init(){await Aa(this,_a,Ca),super.init()}readUint8Array(t,e){return Ra(this,t,e,_a,Ca)}}function ka(t,e,r){const{preventHeadRequest:a,useRangeHeader:n,forceRangeRequests:s,combineSizeEocd:i,checkResourceChanges:o=!0,maximumRangeSize:c=ca,fetch:l}=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:a,useRangeHeader:n,forceRangeRequests:s,combineSizeEocd:i,checkResourceChanges:o,maximumRangeSize:c,fetch:l})}async function Aa(t,e,r){const{url:a,preventHeadRequest:n,useRangeHeader:s,forceRangeRequests:i,combineSizeEocd:o}=t;if((t=>{const{baseURI:e}=wt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r})(a)&&(s||i)&&(typeof n==O||n)){const a=await e(ia,t,ja(t,o?-22:void 0)),n=a.headers.get("Accept-Ranges");if(!(i||n&&n.toLowerCase()==oa))throw Error(ta);{if(o){const e=new Uint8Array(await a.arrayBuffer());206==a.status&&e.length==p&&(t.Pt=e)}Oa(t,a);const n=Fa(a);n===F?await Na(t,e,r):t.size=n}}else await Na(t,e,r)}async function Ra(t,e,r,a,n){const{useRangeHeader:s,forceRangeRequests:i,Pt:o,size:c,options:l}=t;if(s||i){if(o&&e==c-p&&r==p)return o;if(e>=c||0===r)return I;{e+r>c&&(r=c-e);const n=await a(ia,t,ja(t,e,r));if(206!=n.status)throw Error(ta);const s=n.headers.get(na);if(s){const t=Number(s.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw Error(ta)}Ua(t,n),Oa(t,n);const i=new Uint8Array(await n.arrayBuffer());if(i.length!=r)throw Error(ta);return i}}{const{data:a}=t;return a||await n(t,l),t.data.subarray(e,e+r)}}function Fa(t){const e=t.headers.get(na);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Da({headers:t}){return{_t:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function Oa(t,e){const{checkResourceChanges:r,Wt:a}=t;r&&!a&&206==e.status&&(t.Wt=Da(e))}function Ua(t,e){const{checkResourceChanges:r,Wt:a,size:n}=t;if(r){const t=Fa(e);if(t!==F&&n!==F&&t!=n)throw Error(ea);if(a){const t=Da(e);if(Object.entries(a).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw Error(ea)}}}function ja(t,e=0,r=1){return Object.assign({},Ta(t),{[sa]:oa+"="+(e<0?e:e+"-"+(e+r-1))})}function Ta({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Ia(t){await Ma(t,Pa)}async function Ca(t){await Ma(t,_a)}async function Ma(t,e){const r=await e(ia,t,Ta(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Na(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const a=await e("HEAD",t,Ta(t)),n=a.headers.get("Content-Length");n&&!a.headers.get("Content-Encoding")?t.size=Number(n):await r(t,t.options)}}async function Pa(t,{fetch:e=fetch,options:r,url:a},n){const s=await e(a,Object.assign({},r,{method:t,headers:n}));if(s.status<400)return s;throw 416==s.status?Error(ta):Error($r+(s.statusText||s.status))}function _a(t,{url:e},r){return new Promise((a,n)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",()=>{if(s.status<400){const t=[];s.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)}),a({status:s.status,arrayBuffer:()=>s.response,headers:new Map(t)})}else n(416==s.status?Error(ta):Error($r+(s.statusText||s.status)))},!1),s.addEventListener("error",t=>n(t.detail?t.detail.error:Error("Network error")),!1),s.open(t,e),r)for(const t of Object.entries(r))s.setRequestHeader(t[0],t[1]);s.responseType="arraybuffer",s.send()})}class Wa extends fa{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new za(t,e):new Sa(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 La extends Wa{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Ba extends fa{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Lt:t,size:t.length})}readUint8Array(t,e){return this.Lt.slice(t,t+e)}}class qa extends ua{constructor(t){super(),this.Bt=t||262144}init(t=0){Object.assign(this,{offset:0,Lt:new Uint8Array(t>0?t:this.Bt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Lt.length){let t=e.Lt.length?2*e.Lt.length:e.Bt;for(;t<r;)t*=2;const a=e.Lt;e.Lt=new Uint8Array(t),e.Lt.set(a)}e.Lt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Lt.length?this.Lt:this.Lt.slice(0,this.offset)}}class Va extends fa{constructor(t){super(),this.qt=t}async init(){const t=this;t.Vt=0;const e=t.qt=await Promise.all(t.qt.map(Xa));t.Zt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Zt:e,size:r}=this,a=e[t];return a===F?r:a}async readUint8Array(t,e){const r=this,{qt:a}=this;let n,s=0,i=t;for(;a[s]&&i>=a[s].size;)i-=a[s].size,s++;const o=a[s];if(o){const a=o.size;if(i+e<=a)n=await Ja(o,i,e);else{const s=a-i;n=zt(await Ja(o,i,s),await r.readUint8Array(t+s,e-s))}}else n=I;return r.Vt=Math.max(s,r.Vt),n}}class Za extends pa{constructor(t,e=4294967295){super();const r=this;let a,n,s;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const i=new WritableStream({async write(e){if(e===da)return void(s&&await c());const{availableSize:i}=r;if(s)e.length>=i?(await o(e.subarray(0,i)),await c(),e.length>i&&await this.write(e.subarray(i))):await o(e);else{const{value:i,done:o}=await t.next();if(o&&!i)throw Error(ra);a=i,a.size=0,a.maxSize&&(r.maxSize=a.maxSize),r.availableSize=r.maxSize,await Ga(a),n=i.writable,s=n.getWriter(),await this.write(e)}},async close(){s&&(await s.ready,await l())},async abort(t){s&&await s.abort(t)}});async function o(t){const e=t.length;e&&(await s.ready,await s.write(t),a.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=a.size,r.diskNumber++,s=null,r.availableSize=r.maxSize}async function l(){await s.close()}Object.defineProperty(r,la,{get:()=>i})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(da)}finally{t.releaseLock()}}}class Ha{constructor(t){return Array.isArray(t)&&(t=new Va(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:je(t)}),t}}class Ka{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new Za(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:Ie(t)}),t.size===F&&(t.size=0),t}}function Ya(t){return!(!t||!t.getData)}async function Ga(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function Xa(t){return t=new Ha(t),await Ga(t),t.size!==F&&t.readUint8Array||(t=new ba(await Te(t.readable)),await Ga(t)),t}function Ja(t,e,r){return t.readUint8Array(e,r)}function Qa(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?fa.prototype.createReadable.call(t,e):t.readable}const $a="filename",tn="rawFilename",en="comment",rn="rawComment",an="uncompressedSize",nn="compressedSize",sn="offset",on="diskNumberStart",cn="lastModDate",ln="rawLastModDate",dn="lastAccessDate",pn="rawLastAccessDate",fn="creationDate",un="rawCreationDate",mn="internalFileAttributes",wn="externalFileAttributes",hn="internalFileAttribute",yn="externalFileAttribute",bn="msdosAttributesRaw",gn="msdosAttributes",xn="msDosCompatible",vn="zip64",En="encrypted",Sn="version",zn="versionMadeBy",kn="zipCrypto",An="directory",Rn="executable",Fn="compressionMethod",Dn="signature",On="extraField",Un="unixMode",jn="setuid",Tn="setgid",In="sticky",Cn=[$a,tn,an,nn,cn,ln,en,rn,dn,pn,fn,un,sn,on,mn,wn,hn,yn,bn,gn,xn,vn,En,Sn,zn,kn,An,Rn,"symlink",Fn,Dn,"crc32",On,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Un,"unixExternalUpper",jn,Tn,In,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Mn{constructor(t){Cn.forEach(e=>this[e]=t[e])}}const Nn="File format is not recognized",Pn="End of central directory not found",_n="End of Zip64 central directory locator not found",Wn="Central directory header not found",Ln="Local file header not found",Bn="Zip64 extra field not found",qn="File contains encrypted entry",Vn="Encryption method not supported",Zn="Compression method not supported",Hn="Split zip file",Kn="Overlapping entry found",Yn="Entry data out of bounds",Gn="Ambiguous archive",Xn="Encrypted central directory is not supported",Jn="Unsafe filename",Qn="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",$n="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",ts="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",es="64-bit value exceeds Number.MAX_SAFE_INTEGER",rs=/^[a-zA-Z]:/,as="utf-8",ns="cp437",ss=[[an,t],[nn,t],[sn,t],[on,e]],is={[e]:{Kt:Ns,bytes:4},[t]:{Kt:Ps,bytes:8}},os=BigInt(Number.MAX_SAFE_INTEGER);class cs{constructor(t,e={}){Object.assign(this,{reader:new Ha(t),options:e,Yt:new Map})}async*getEntriesGenerator(a={}){const s=this;let{reader:i}=s;if(await Ga(i),i.size!==F&&i.readUint8Array||(i=new ba(await Te(i.readable)),await Ga(i)),i.size<p)throw Error(Nn);const c=Ss(a,s.options),m=c==G,w=c!=J,h=((t,r)=>{if(t!==F){const e=it(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw Error(ts);return e}return r==G?0:r==J?1/0:e})(Us(s,a,"maxAppendedDataSize"),c),y=((t,e)=>{if(t===F)return e;if(!Es(t))throw Error($n);return t})(Us(s,a,"filenameValidation"),c),b=Us(s,a,"normalizeFilename"),{Gt:g,Xt:k}=await(async(t,e,r)=>{const{size:a}=t,n=Math.min(a,65557),s={count:64};let i,o,c=0;for await(const[r,l,d,f,u]of As(t,n)){const n=Ms(r,f+20);if(u+p+n==a){const n=await Fs(t,r,l,f,u,a,s);if(2==n){if(i||(i=Rs(d,f,u)),c++,!e||c>1)break}else 1!=n||o||(o=Rs(d,f,u))}}return i||(i=o),i||(i=await(async(t,e,r)=>{const{size:a}=t,n=Math.min(a,e==1/0?a:65557+e);let s,i;for await(const[e,o,c,l,d]of As(t,n)){const n=Rs(c,l,d);s||(s=n);const p=await Fs(t,e,o,l,d,a,r);if(2==p)return n;1!=p||i||(i=n)}return i||s})(t,r,s)),{Gt:i,Xt:c}})(i,w,h);if(!g)throw await(async t=>await vs(t)==n)(i)?Error(Hn):Error(Pn);w&&k>1&&Os("multiple end of central directory records");const A=At(g);let R=Ns(A,12),D=Ns(A,16);const O=g.offset,U=Ms(A,20),j=O+p+U;i.size-j>h&&Os("appended data");let T=Ms(A,4);const C=i.Vt||0;let M,N,P,_,W=Ms(A,6),L=Ms(A,10),B=0,q=u;const V=D==t||R==t||L==e||W==e;if(D!=t&&W!=e&&(D+=xs(i,W)),V){const r=g.offset>=f?await Ja(i,g.offset-f,f):I,a=At(r);if(r.length==f&&Ns(a,0)==d){D=xs(i,Ns(a,4))+Ps(a,8);let r=await Ja(i,D,u),n=At(r);const s=g.offset-f-u;if((r.length<u||Ns(n,0)!=l)&&D!=s&&s>=0){const t=D;D=s,D>t&&(B=D-t),r=await Ja(i,D,u),n=At(r)}if(r.length<u||Ns(n,0)!=l)throw Error(_n);if(N=!0,P=Ps(n,4)>44,P){const t=Math.min(Ps(n,4)-44,i.size-D-u);t>0&&(q+=t,_=(t=>{const e={rawExtensibleData:t};if(t.length>=28){const r=At(t),a=Ms(r,26);Object.assign(e,{compressionMethod:Ms(r,0),compressedSize:Ps(r,2),uncompressedSize:Ps(r,10),encryptionAlgorithm:Ms(r,18),bitLength:Ms(r,20),flags:Ms(r,22),hashAlgorithm:Ms(r,24),hashData:t.subarray(28,28+a)})}return e})(await Ja(i,D+u,t)))}T==e?T=Ns(n,16):m&&T!=Ns(n,16)&&Os("mismatched zip64 end of central directory record"),W==e?W=Ns(n,20):m&&W!=Ns(n,20)&&Os("mismatched zip64 end of central directory record"),L==e?L=Ps(n,32):m&&L!=Ps(n,32)&&Os("mismatched zip64 end of central directory record"),R==t?R=Ps(n,40):m&&R!=Ps(n,40)&&Os("mismatched zip64 end of central directory record"),D=xs(i,W)+Ps(n,48)+B}}let Z=R;const H=g.offset-(N?q+f:0);if(D>=i.size&&(B=i.size-D-R-p,D=i.size-R-p),C!=T)throw Error(Hn);if(D<0)throw Error(Nn);let X=0,Q=await Ja(i,D,R),$=At(Q);if(R){if(Q.length<4)throw Error(Nn);const t=H-R;if(D!=t&&W==T){let e=!(Ns($,X)==o||_&&_.compressedSize||ps($));if(!e&&t>=0&&t+4<=i.size&&(e=Ns(At(await Ja(i,t,4)),0)==o),e){const e=D;D=t,D>e&&(B+=D-e),Q=await Ja(i,D,R),$=At(Q)}}}const tt=H-D;if(R!=tt&&tt>=0&&W==T&&(R=tt,Q=await Ja(i,D,R),$=At(Q)),D<0||D>=i.size)throw Error(Nn);s.directoryOffset=D,s.directoryLength=Z;const et=js(s,a,"decryptCentralDirectory");let rt,at;if(et&&L&&Q.length>=4&&Ns($,0)!=o&&(P||ps($))){const t=((t,e,r)=>{const a=t&&t.compressedSize?t.compressedSize:e;return a>0&&a<=r?a:r})(_,Z,Q.length);at=Q.subarray(t),Q=await et(Q.subarray(0,t),_),$=At(Q),Z=Q.length,rt=!0}M=D;const nt=Us(s,a,"filenameEncoding"),st=Us(s,a,"commentEncoding"),ot=m?new Set:F;let ct;for(let t=0;t<L;t++){const n=new ds(i,s.options);if(X+46>Q.length||Ns($,X)!=o){if(0==t&&!rt&&(P||ps($)))throw Error(Xn);throw Error(Wn)}us(n,$,X+6);const c=!!n.bitFlag.languageEncodingFlag,l=X+46,d=l+n.filenameLength,p=d+n.extraFieldLength,f=Ms($,X+4),u=!(f>>8),w=f>>8==3,h=Q.subarray(l,d),g=Ms($,X+32),k=p+g,A=Q.subarray(p,k),R=c,D=c,O=Ns($,X+38),U=O&r,j={readOnly:!!(1&U),hidden:!!(2&U),system:!!(4&U),directory:!!(16&U),archive:!!(32&U)},T=Ns($,X+42),I=js(s,a,"decodeText")||Jr,C=R?as:nt||ns,N=D?as:st||ns;let _=I(h,C,K);if(_===F&&(_=Jr(h,C)),b){const t=b(_);t!==F&&(_=t)}if(ks(_,y)){const t=Error(Jn);throw t.filename=_,t}let W=I(A,N,Y);W===F&&(W=Jr(A,N)),Object.assign(n,{index:t,Jt:rt,versionMadeBy:f,msDosCompatible:u,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:g,offset:T,diskNumberStart:Ms($,X+34),internalFileAttributes:Ms($,X+36),externalFileAttributes:O,msdosAttributesRaw:U,msdosAttributes:j,rawFilename:h,filenameUTF8:R,commentUTF8:D,rawExtraField:Q.subarray(d,p),rawComment:A,filename:_,comment:W}),ms(n,n,$,X+6),n.offset+=B,M=Math.min(xs(i,n.diskNumberStart)+n.offset,M),m&&(ot.has(n.filename)&&(ct=!0),ot.add(n.filename));const q=n.externalFileAttributes>>16&e;n.unixMode===F&&16877&q&&(n.unixMode=q);const V=!!(n.unixMode&E),Z=!!(n.unixMode&S),H=!!(512&n.unixMode),G=40960==((n.unixMode===F?q:n.unixMode)&x),J=!G&&(n.unixMode!==F?!!(73&n.unixMode):w&&!!(73&q)),tt=n.unixMode!==F&&(n.unixMode&x)==v,et=(q&x)==v;Object.assign(n,{setuid:V,setgid:Z,sticky:H,symlink:G,unixExternalUpper:q,internalFileAttribute:n.internalFileAttributes,externalFileAttribute:n.externalFileAttributes,executable:J,directory:tt||et||u&&j.directory||n.filename.endsWith(z)&&!n.uncompressedSize,zipCrypto:n.encrypted&&!n.extraFieldAES});const at=new Mn(n);at.getData=(t,e)=>n.getData(t,at,s.Yt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=Te(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await n.getData(e,at,s.Yt,t),r},X=k;const{onprogress:it}=a;if(it)try{await it(t+1,L,new Mn(n))}catch{}yield at}let lt=X,dt=fs(Q.subarray(X))||(rt?fs(at):F);if(!dt&&!rt){const t=D+X,e=Math.min(H-t,65541);e>=6&&(dt=fs(await Ja(i,t,e)))}dt&&(s.digitalSignature=dt,lt=X+6+dt.length),m&&X!=Z&<!=Z&&Os("trailing central directory data"),ct&&Os("duplicate filename");const pt=Us(s,a,"extractPrependedData"),ft=Us(s,a,"extractAppendedData"),ut=(m||pt)&&L&&4==M&&await(async t=>{const e=await vs(t);return e==n||808471376==e})(i)?4:0;return m&&(B||L&&M>ut)&&Os("prepended data"),pt&&(s.prependedData=M>ut?await Ja(i,ut,M-ut):I),s.comment=U?await Ja(i,O+p,U):I,ft&&(s.appendedData=j<i.size?await Ja(i,j,i.size-j):I),!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()}}class ls{constructor(t={}){const{readable:e,writable:r}=new TransformStream,a=new cs(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await a.next();if(e)return t.close();const n={...r,readable:(()=>{const{readable:t,writable:e}=new TransformStream;if(r.getData)return(async()=>{try{await r.getData(e)}catch(t){try{await e.abort(t)}catch{}}})(),t})()};delete n.getData,t.enqueue(n)}}),this.writable=r}}let ds=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,n,i={}){const o=this,c=wt(),{reader:l,index:d,offset:p,diskNumberStart:f,extraFieldAES:u,extraFieldZip64:m,compressionMethod:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:v}=o,{dataDescriptor:E}=h,S=e.localDirectory={},z=xs(l,f)+p,A=await Ja(l,z,k),R=At(A);let D=Us(o,i,C),O=Us(o,i,M);const U=Us(o,i,N);if(at(D,O),D=D&&D.length&&D,O=O&&O.length&&O,u&&99!=u.originalCompressionMethod)throw Error(Zn);if(A.length<k||Ns(R,0)!=a)throw Error(Ln);us(S,R,4);const{extraFieldLength:j,filenameLength:T}=S,q=Us(o,i,"checkLocalDirectory"),V=Ss(i,o.options),Z=((t,e)=>t===F?e!=J:!!t)(q,V),H=((t,e)=>t===F?e==G:!!t)(q,V);let K=I;if(H&&(T||j)){const t=await Ja(l,z+k,T+j);K=t.subarray(0,T),S.rawExtraField=t.subarray(T)}else S.rawExtraField=j?await Ja(l,z+k+T,j):I;H&&(S.rawFilename=K),ms(o,S,R,4,!0),Z&&((t,e,r,a)=>{const{rawFilename:n}=t,s=t.Jt&&!(8192&~e.rawBitFlag);!a||s||r.length==n.length&&!r.some((t,e)=>t!=n[e])||Os("mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&Os("mismatched local file header (general purpose bit flag)"),e.compressionMethod!=t.compressionMethod&&Os("mismatched local file header (compression method)"),e.bitFlag.dataDescriptor||s||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Os("mismatched local file header (crc32 or sizes)")})(o,S,K,H);const{lastAccessDate:Y,creationDate:X,uid:Q,gid:$}=S;Y&&(e.lastAccessDate=Y),X&&(e.creationDate=X),Q!==F&&e.uid===F&&(e.uid=Q),$!==F&&e.gid===F&&(e.gid=$);const tt=o.encrypted&&S.encrypted&&!U,et=tt&&!u;if(U||(e.zipCrypto=et),tt&&!(64&~S.rawBitFlag))throw Error(Vn);const nt=U?F:qe(w);if(0!=w&&8!=w&&9!=w&&!nt&&!U)throw Error(Zn);if(tt){if(!et&&(u.strength<1||u.strength>3))throw Error(Vn);if(!D&&!O)throw Error(qn)}const st=z+k+T+j;if(st+v>l.size)throw Error(Yn);const it=v,ot=je(l.createReadable({offset:st,size:it})),ct=rt(Us(o,i,P)),lt=Us(o,i,"checkPasswordOnly");let dt=Us(o,i,"checkOverlappingEntry");const pt=Us(o,i,"checkOverlappingEntryOnly");pt&&(dt=!0);const{onstart:ft,onprogress:ut,onend:mt}=i,ht=0!=w&&!U,yt=U?v:x,bt=9==w;let gt=Us(o,i,W);bt&&(gt=!1);const xt=Us(o,i,"checkCrc32"),vt=(xt===F?Us(o,i,"checkSignature"):xt)&&!U&&(!tt||et||u&&1==u.vendorVersion),Et={options:{codecType:pr,password:D,rawPassword:O,zipCrypto:et,encryptionStrength:u&&u.strength,checkCrc32:vt,checkAuthenticationCode:Us(o,i,"checkAuthenticationCode"),passwordVerification:et&&(E?g>>>8&r:b>>>24&r),outputSize:yt,crc32:b,compressed:ht,encrypted:tt,useWebWorkers:Us(o,i,_),useCompressionStream:gt,transferStreams:Us(o,i,L),deflate64:bt,format:nt?nt.format:F,codecURI:nt?nt.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:lt},config:c,ut:{signal:ct,size:it,onstart:ft,onprogress:ut,onend:mt}};let St,zt;dt&&await(async({reader:t,$t:e,index:r,offset:a,crc32:n,compressedSize:i,uncompressedSize:o,te:c,dataDescriptor:l,extraFieldZip64:d,Yt:p})=>{let f=0;if(l&&(f=d?20:12),f){const r=await Ja(t,c+i,f+4),a=At(r);let l=r.length==f+4&&Ns(a,0)==s;if(l){const t=gs(a,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==n)&&t.compressedSize==i&&t.uncompressedSize==o?f+=4:l=!1}if(r.length>=f){const t=gs(a,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const u={start:a,end:c+i+f,$t:e};for(const[t,e]of p)if(t!=r&&u.start<e.end&&e.start<u.end){const t=Error(Kn);throw t.overlappingEntry=e.$t,t}p.set(r,u)})({reader:l,$t:e,index:d,offset:z,crc32:b,compressedSize:v,uncompressedSize:x,te:st,dataDescriptor:E||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Yt:n});try{if(!pt){lt&&(t=new WritableStream),t=new Ka(t),await Ga(t,((t,e,r)=>Math.min(t,r?1032*e:e))(yt,v,ht)),({writable:St}=t);const{outputSize:e}=await Vr({readable:ot,writable:St},Et);if(t.size+=e,e!=yt)throw Error(He)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!lt||e.message!=Kt)throw zt=e,e}finally{if((Ya(t)||!Us(o,i,B))&&St&&!St.locked){const t=St.getWriter();if(zt)try{await t.abort(zt)}catch{}else await t.close()}}return lt||pt?F:t.getData?t.getData():St}};function ps(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==Ns(t,r))return!0;return!1}function fs(t){if(t.length>=6){const e=At(t);if(Ns(e,0)==i){const r=Ms(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function us(t,e,r){const a=t.rawBitFlag=Ms(e,r+2),n=!(1&~a),s=Ns(e,r+6);Object.assign(t,{encrypted:n,version:Ms(e,r),bitFlag:{level:(6&a)>>1,dataDescriptor:!(8&~a),languageEncodingFlag:(a&g)==g},rawLastModDate:s,lastModDate:Ts(s),filenameLength:Ms(e,r+22),extraFieldLength:Ms(e,r+24)})}function ms(t,e,r,a,n){const{rawExtraField:s}=e,i=e.extraField=new Map,o=At(s);let c=0;try{for(;c<s.length;){const t=Ms(o,c),e=Ms(o,c+2);i.set(t,{type:t,data:s.slice(c+4,c+4+e)}),c+=4+e}}catch{}const l=Ms(r,a+4);Object.assign(e,{signature:Ns(r,a+10),crc32:Ns(r,a+10),compressedSize:Ns(r,a+14),uncompressedSize:Ns(r,a+18)});const d=i.get(1);d&&(((t,e)=>{e.zip64=!0;const r=At(t.data),a=ss.filter(([t,r])=>e[t]==r),n=a.reduce((t,[,e])=>t+is[e].bytes,0);if(t.data.length<n)throw Error(Bn);for(let n=0,s=0;n<a.length;n++){const[i,o]=a[n],c=is[o];e[i]=t[i]=c.Kt(r,s),s+=c.bytes}})(d,e),e.extraFieldZip64=d);const p=i.get(28789);p&&(ws(p,$a,tn,e,t),e.extraFieldUnicodePath=p);const f=i.get(25461);f&&(ws(f,en,rn,e,t),e.extraFieldUnicodeComment=f);const u=i.get(m);u&&u.data.length>=7?(((t,e,r)=>{const a=At(t.data),n=Cs(a,4);Object.assign(t,{vendorVersion:Cs(a,0),vendorId:Cs(a,2),strength:n,originalCompressionMethod:r,compressionMethod:Ms(a,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)})(u,e,l),e.extraFieldAES=u):e.compressionMethod=l;const g=i.get(13);g&&(hs(g,e),e.extraFieldPkwareUnix=g);const x=i.get(22613);x&&(hs(x,e),e.extraFieldUnixType1=x);const v=i.get(10);v&&(((t,e)=>{const r=At(t.data);let a,n=4;try{for(;n<t.data.length&&!a;){const e=Ms(r,n),s=Ms(r,n+2);1==e&&(a=t.data.slice(n+4,n+4+s)),n+=4+s}}catch{}if(a&&24==a.length){const r=At(a),n=r.getBigUint64(0,!0),s=r.getBigUint64(8,!0),i=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:n,rawLastAccessDate:s,rawCreationDate:i});const o={lastModDate:Is(n),lastAccessDate:Is(s),creationDate:Is(i)};Object.assign(t,o),Object.assign(e,o,{rawLastAccessDate:s,rawCreationDate:i})}})(v,e),e.extraFieldNTFS=v);const E=i.get(b);let S;if(E&&(S=ys(E,e,!1),e.extraFieldUnix=E),!S){const t=i.get(y);t&&(ys(t,e,!0),e.extraFieldInfoZip=t)}const z=i.get(w);z&&(((t,e,r)=>{if(!t.data.length)return;const a=At(t.data),n=Cs(a,0),s=[],i=[];r?(1&~n||(s.push(cn),i.push(ln)),2&~n||(s.push(dn),i.push(pn)),4&~n||(s.push(fn),i.push(un))):t.data.length>=5&&(s.push(cn),i.push(ln));let o=1;s.forEach((r,n)=>{if(t.data.length>=o+4){const s=Ns(a,o);e[r]=t[r]=new Date(1e3*(0|s));const c=i[n];t[c]=s}o+=4})})(z,e,n),e.extraFieldExtendedTimestamp=z);const k=i.get(h);k&&(e.extraFieldUSDZ=k)}function ws(t,e,r,a,n){if(t.data.length<5)return void(t.valid=!1);const s=At(t.data),i=new Mt;i.append(n[r]);const o=At(new Uint8Array(4));o.setUint32(0,i.get(),!0);const c=Ns(s,1);Object.assign(t,{version:Cs(s,0),[e]:Jr(t.data.subarray(5)),valid:!n.bitFlag.languageEncodingFlag&&c==Ns(o,0)}),t.valid&&(a[e]=t[e],a[e+"UTF8"]=!0)}function hs(t,e){if(t.data.length<8)return;const r=At(t.data),a={lastAccessDate:new Date(1e3*(0|Ns(r,0))),lastModDate:new Date(1e3*(0|Ns(r,4)))};t.data.length>=12&&(a.uid=Ms(r,8),a.gid=Ms(r,10)),Object.assign(t,a),Object.assign(e,a)}function ys(t,e,r){try{const a=At(t.data);let n,s;if(r){let e=0;const r=Cs(a,e++),i=Cs(a,e++);n=bs(t.data.subarray(e,e+i)),e+=i;const o=Cs(a,e++);s=bs(t.data.subarray(e,e+o)),Object.assign(t,{version:r,uid:n,gid:s})}else t.data.length>=4&&(n=Ms(a,0),s=Ms(a,2),Object.assign(t,{uid:n,gid:s}));return n!==F&&(e.uid=n),s!==F&&(e.gid=s),n!==F||s!==F}catch{}}function bs(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function gs(t,e,r){const a=Ns(t,e);let n,s;return r?(n=Ps(t,e+4),s=Ps(t,e+12)):(n=Ns(t,e+4),s=Ns(t,e+8)),{crc32:a,compressedSize:n,uncompressedSize:s}}function xs(t,e){return t.Ht?t.Ht(e):0}async function vs(t){return Ns(At(await Ja(t,0,4)))}function Es(t){return t===G||t===X||t===J}function Ss(t,e){return zs(t,zs(e,X))}function zs(t,e){const r=t.strictness;if(r!==F){if(!Es(r))throw Error(Qn);return r}const a=t.checkAmbiguity;return a===F?e:a?G:e==J?J:X}function ks(t,e){if(e==J)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||rs.test(t))||e==G&&(r.includes(".")||r.includes(""))}async function*As(t,e){const r=t.size-e,a=await Ja(t,r,e),n=At(a);for(let t=a.length-p;t>=0;t--)Ns(n,t)==c&&(yield[n,r,a,t,r+t])}function Rs(t,e,r){return{offset:r,buffer:t.slice(e,e+p).buffer}}async function Fs(r,a,n,s,i,c,l){const p=Ms(a,s+10),u=Ns(a,s+12),m=Ns(a,s+16);if(p==e||u==t||m==t)return await Ds(r,a,n,i-f,c,l)==d?2:0;if(!p&&!u)return 1;const w=Ms(a,s+6);for(const t of[i-u,xs(r,w)+m])if(await Ds(r,a,n,t,c,l)==o)return 2;return 0}async function Ds(t,e,r,a,n,s){return a<0||a+4>n?F:a>=r?Ns(e,a-r):s.count>0?(s.count--,Ns(At(await Ja(t,a,4)),0)):F}function Os(t){const e=Error(Gn);throw e.reason=t,e}function Us(t,e,r){return e[r]===F?t.options[r]:e[r]}function js(t,e,r){return et(Us(t,e,r))}function Ts(t){const r=(4294901760&t)>>16,a=t&e;return new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&a)>>11,(2016&a)>>5,2*(31&a),0)}function Is(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Cs(t,e){return t.getUint8(e)}function Ms(t,e){return t.getUint16(e,!0)}function Ns(t,e){return t.getUint32(e,!0)}function Ps(t,e){const r=t.getBigUint64(e,!0);if(r>os)throw Error(es);return Number(r)}var _s=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Gn,ERR_BAD_FORMAT:Nn,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Wn,ERR_ENCRYPTED:qn,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Xn,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Yn,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:_n,ERR_EOCDR_NOT_FOUND:Pn,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Bn,ERR_INVALID_AUTHENTICATION_CODE:Ht,ERR_INVALID_COMPRESSED_DATA:Ke,ERR_INVALID_CRC32:Ye,ERR_INVALID_FILENAME_VALIDATION:$n,ERR_INVALID_MAX_APPENDED_DATA_SIZE:ts,ERR_INVALID_PASSWORD:Vt,ERR_INVALID_SIGNATURE:Zt,ERR_INVALID_STRICTNESS:Qn,ERR_INVALID_UNCOMPRESSED_SIZE:He,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Ln,ERR_OVERLAPPING_ENTRY:Kn,ERR_SPLIT_ZIP_FILE:Hn,ERR_UNSAFE_FILENAME:Jn,ERR_UNSUPPORTED_COMPRESSION:Zn,ERR_UNSUPPORTED_ENCRYPTION:Vn,ERR_UNSUPPORTED_UINT64:es,ERR_WORKER_STARTUP_TIMEOUT:mr,ZipReader:cs,ZipReaderStream:ls});const Ws="File already exists",Ls="Zip file comment exceeds 64KB",Bs="Invalid zip file comment (must be a Uint8Array)",qs="File entry comment exceeds 64KB",Vs="Invalid file entry comment (must be a string)",Zs="Invalid date (must be a valid Date instance)",Hs="File entry name exceeds 64KB",Ks="Version exceeds 65535",Ys="The strength must equal 1, 2, or 3",Gs="Encryption is not supported in USDZ files",Xs="Encryption is not supported when the 'passThrough' option is set",Js="Invalid extra field (must be a Map)",Qs="Invalid extra field type (must be integer 0..65535)",$s="Invalid extra field data (must be a Uint8Array)",ti="Extra field data exceeds 64KB",ei=-2147483648,ri=2147483647,ai=BigInt(0),ni=BigInt("0x7fffffffffffffff"),si="Zip64 is not supported (set the 'zip64' option to 'true')",ii="Undefined uncompressed size",oi="Undefined compression method",ci="Undetermined size",li="Undefined reader",di="Zip file not empty",pi="Invalid uid (must be integer 0..2^32-1)",fi="Invalid gid (must be integer 0..2^32-1)",ui="Invalid UNIX mode (must be integer 0..65535)",mi="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",wi="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",hi="Invalid msdosAttributesRaw (must be integer 0..255)",yi="Invalid msdosAttributes (must be an object with boolean flags)",bi="Invalid level (must be integer 0..9)",gi="Signature data exceeds 64KB",xi=new Uint8Array([7,0,2,0,65,69,3,0,0]),vi="infozip",Ei="unix";let Si=0;const zi=[];class ki{constructor(t,e={}){t=new Ka(t);const{availableSize:r=D,maxSize:a=D}=t;Object.assign(this,{writer:t,ee:r>0&&r!==D&&a>0&&a!==D,options:e,re:new Map,ae:new Set,offset:e[V]===F?t.size||t.writable.size||0:e[V],ne:e[V]===F?0:e[V]-(t.size||t.writable.size||0),se:new Set,ie:0,oe:F})}async prependZip(t){if(this.ae.size)throw Error(di);t=new Ha(t),await Ga(t),t.size!==F&&t.readUint8Array||(t=new ba(await Te(t.readable)),await Ga(t));const{ZipReader:e}=await Promise.resolve().then(()=>_s),r=new e(t),a=await r.getEntries();await r.close(),await Ga(this.writer);const{directoryOffset:s}=r;this.ee&&(delete this.ee,await(async t=>At(await Ja(t,0,4)).getUint32(0,!0)==n)(t)||(await Ki(this.writer,Hi()),this.offset+=4));const i=await(async(t,e,r,a)=>{const{writer:n}=t,s=new Map;if(n.closeDisk){const i=Array.from(r).sort((t,r)=>Zi(e,t)-Zi(e,r));let o=0;for(const r of i){const a=Zi(e,r);await qi(t,e,o,a-o),Wi(n,await Vi(e,a))&&await n.closeDisk(),s.set(r,{offset:Li(t,n),diskNumberStart:Pi(n)}),o=a}await qi(t,e,o,a-o)}else{const n=t.offset;await qi(t,e,0,a),r.forEach(t=>s.set(t,{offset:n+Zi(e,t),diskNumberStart:0}))}return s})(this,t,a,s);this.ae=new Set(a.map(t=>t.filename)),this.re=new Map(a.map(t=>{const{version:e,rawLastModDate:r,lastAccessDate:a,creationDate:n,rawFilename:s,bitFlag:o,encrypted:c,uncompressedSize:l,compressedSize:d,extraFieldZip64:p}=t;let{compressionMethod:f,ce:u,le:m,de:w,pe:h,fe:y,rawExtraField:b}=t;const{level:g,languageEncodingFlag:x,dataDescriptor:v}=o;u=u||I,m=m||I,w=w||I,h=h||I,y=y||I,b=Bi(b||I),t.extraFieldAES&&(f=99);const E=fo(u,m,w,h,y,b),S=!!p&&p.uncompressedSize!==F,z=!!p&&p.compressedSize!==F,k=-7&mo(g,x,v,c,f)|g<<1,{ue:A,me:R}=uo({version:e,bitFlag:k,compressionMethod:f,uncompressedSize:l,compressedSize:d,rawLastModDate:r,rawFilename:s,we:z,he:S,extraFieldLength:E}),{crc32:D}=t;D!==F&&co(R,10,D);const{offset:O,diskNumberStart:U}=i.get(t);return Object.assign(t,{he:S,we:z,offset:O,diskNumberStart:U,ye:!1,ce:u,le:m,de:w,pe:h,fe:y,rawExtraField:b,extendedTimestamp:w.length>0||h.length>0,be:1+(a?2:0)+(n?4:0),ue:A,me:R}),[t.filename,t]}))}async add(e="",a,n={}){const s=this;n=Object.assign({},n);const{se:i}=s;let o,c;Si<wt().maxWorkers?Si++:await new Promise(t=>zi.push(t));try{if(e=e.trim(),Qi(s,n,An)&&!e.endsWith(z)&&(e+=z),s.ae.has(e))throw Error(Ws);return s.ae.add(e),c=!0,o=(async(e,a,n,s)=>{const i=Fi(e,a,s);({name:a}=i);const o=Di(e,a,s),{comment:c}=o,l=s[On];let d;e.re.set(a,F);try{const{ge:c}=o;0==c.level||c.compressionMethod!==F||c.passThrough||await gr(wt())||(c.level=0);const l=await(async(t,e,{ge:r},a)=>{if(r.passThrough&&!e&&!Qi(t,a,An))throw Error(li);let n;return e&&(e=new Ha(e),await Ga(e),({size:n}=e)),Object.assign({reader:e},Ui(t,!!e,n,r,a))})(e,n,o,s);({reader:n}=l);const p=_i(e.writer),f=Pi(e.writer),u=ji(s=Object.assign({},s,i.ge,o.ge,l.ge,{signature:s[Dn],crc32:s.crc32===F?s[Dn]:s.crc32,offset:e.offset-p,diskNumberStart:f,[Z]:e.options[Z]})),m=Ci(s),w=fo(u.xe,m.ve);d=await(async(e,a,n,s,i)=>{const{re:o,writer:c}=e,{keepOrder:l,dataDescriptor:d,Ee:p,signal:f}=i,{Se:u}=s,m=e.options[Z],w=e.oe;let h,y,b,g,x,v,E,S={},z=0;o.set(a,S),e.oe=S;try{let y;l&&(y=w&&w.ze,S.ze=new Promise(t=>b=t)),i.bufferedWrite||!l||e.ke||e.ie||!d&&!p?(h=!0,e.ie++,E=i.createTempStream?await i.createTempStream():new TransformStream(F,F,{highWaterMark:D}),E.size=0,await Ga(c)):(E=c,await A()),await Ga(E);const O=_i(c);e.ee&&(delete e.ee,await Ki(c,Hi()),e.offset+=4),m&&!h&&Ti(s,e.offset-O);const{xe:U}=u;h||(await y,await R());const j=Pi(c),T=Li(e,c);if(S.diskNumberStart=j,h||(x=!0,v=c.size,await Ki(E,U)),S=await(async(e,a,{diskNumberStart:n,ze:s},i,o,c)=>{const{Se:l,Ae:d,Re:p}=i,{ue:f,me:u,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,ce:x,Fe:v,de:E,be:S,pe:z,fe:k,le:A}=l,{ve:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:U,password:j,rawPassword:T,level:I,zip64:C,he:M,we:N,zipCrypto:P,dataDescriptor:_,directory:W,executable:L,versionMadeBy:B,rawComment:q,rawExtraField:V,useWebWorkers:Z,transferStreams:H,onstart:K,onprogress:Y,onend:G,signal:X,encryptionStrength:J,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,uid:rt,gid:at,unixMode:nt,symlink:st,setuid:it,setgid:ot,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:pt,useCompressionStream:ft,passThrough:ut,format:mt,codecURI:wt}=c,ht={ze:s,versionMadeBy:B,zip64:C,directory:!!W,executable:!!L,filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,ce:x,Fe:v,de:E,pe:z,fe:k,le:A,rawExtraField:V,extendedTimestamp:Q,msDosCompatible:$,internalFileAttributes:tt,externalFileAttributes:et,diskNumberStart:n,uid:rt,gid:at,unixMode:nt,symlink:!!st,setuid:it,setgid:ot,sticky:ct,unixExternalUpper:lt,msdosAttributesRaw:dt,msdosAttributes:pt};let{crc32:yt,uncompressedSize:bt}=c,gt=0;ut||(bt=0);const{writable:xt}=a;if(e){const n=je(Qa(e)),s=e.size,i={options:{codecType:dr,level:I,rawPassword:T,password:j,encryptionStrength:J,zipCrypto:h&&P,passwordVerification:h&&P&&w>>8&r,computeCrc32:!ut,compressed:y&&!ut,encrypted:h&&!ut,useWebWorkers:Z,useCompressionStream:ft,transferStreams:H,format:mt,codecURI:wt,compressionMethod:g},config:o,ut:{signal:X,size:s,onstart:K,onprogress:Y,onend:G}};try{const e=await Vr({readable:n,writable:xt},i);if(gt=e.outputSize,a.size+=gt,ut||(bt=e.inputSize,h&&!P||(yt=e.crc32)),!N&>>=t||!M&&bt>=t)throw Error(si)}catch(t){throw t.outputSize!==F&&(a.size+=t.outputSize),t}}return(({crc32:t,compressedSize:e,uncompressedSize:r,Se:a,Ae:n},{zip64:s,zipCrypto:i,passThrough:o,dataDescriptor:c})=>{const{me:l,encrypted:d}=a,{De:p,Oe:f}=n;d&&!i&&!o||t===F||(co(l,10,t),c&&co(p,f,t)),s?c&&(lo(p,f+4,BigInt(e)),lo(p,f+12,BigInt(r))):(co(l,14,e),co(l,18,r),c&&(co(p,f+4,e),co(p,f+8,r)))})({crc32:yt,compressedSize:gt,uncompressedSize:bt,Se:l,Ae:d},c),_&&await Ki(a,R),Object.assign(ht,{uncompressedSize:bt,compressedSize:gt,lastModDate:m,rawLastModDate:w,creationDate:U,lastAccessDate:O,encrypted:!!h,zipCrypto:!!P,size:p+gt,compressionMethod:g,version:b,ue:f,me:u,signature:yt,crc32:!h||P||ut?yt:F,be:S,he:M,we:N}),ht})(n,E,S,s,wt(),i),h||(x=!1),o.set(a,S),S.filename=a,h){if(await Promise.all([E.writable.getWriter().close(),y]),await A(),g=!0,v=c.size,await R(),S.diskNumberStart=Pi(c),S.offset=Li(e,c),m){const t=s.Re;Ti(s,e.offset-_i(c)),S.size+=s.Re-t}(({rawFilename:t,encrypted:e,zip64:r,Fe:a,crc32:n,compressedSize:s,uncompressedSize:i,he:o,we:c},l,{dataDescriptor:d,passThrough:p})=>{if(d||((!e||p&&n!==F)&&co(l,14,n),c||co(l,18,s),o||co(l,22,i)),r&&a){const e=k+fo(t)+4;lo(l,e,BigInt(i)),lo(l,e+8,BigInt(s))}})(S,u.Ue,i),await Ki(c,u.xe),await(async(t,e,r)=>{const a=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){var e;await a.ready,await a.write(t),e=fo(t),z+=e}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}})(E.readable,c,f),c.size+=E.size,g=!1}else S.diskNumberStart=j,S.offset=T;return e.offset+=S.size,S}catch(t){if(g||x){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-v,h&&(e.offset+=z)}throw o.delete(a),t}finally{if(h&&e.ie--,b&&b(),y&&y(),h&&E&&E.dispose)try{await E.dispose()}catch{}}async function A(){e.ke=!0;const{je:t}=e;e.je=new Promise(t=>y=()=>{e.ke=!1,t()}),await t}async function R(){Wi(c,fo(u.xe))&&await c.closeDisk()}})(e,a,n,{Se:u,Ae:m,Re:w},s)}catch(t){throw e.re.delete(a),t}return Object.assign(d,{name:a,comment:c,extraField:l,[hn]:d.internalFileAttributes,[yn]:d.externalFileAttributes}),new Mn(d)})(s,e,a,n),i.add(o),await o}catch(t){throw c&&s.ae.delete(e),t}finally{i.delete(o);const t=zi.shift();t?t():Si--}}remove(t){const{ae:e,re:r}=this;if(typeof t==T&&(t=r.get(t)),t&&t.filename!==F){const{filename:a}=t;if(e.has(a)&&r.has(a))return e.delete(a),r.delete(a),!0}return!1}async close(r=I,a={}){const{se:n,writer:s}=this,{writable:f}=s;if(!(r instanceof Uint8Array))throw Error(Bs);if(fo(r)>e)throw Error(Ls);for(;n.size;)await Promise.allSettled(Array.from(n));return await(async(r,a,n)=>{const s=Mi(r.re),{Te:f,Ie:u}=await(async(r,a,n)=>{const{re:s,writer:i}=r,c=new Uint8Array(a);await Ga(i);let l=0,d=0,p=Pi(i),f=_i(i);for(const[r,a]of Array.from(s.values()).entries()){const{offset:u,rawFilename:m,ce:w,le:h,de:y,pe:b,fe:g,rawExtraField:x,rawComment:v,versionMadeBy:E,ue:S,me:z,he:k,we:A,ye:R,Ce:F,internalFileAttributes:D,externalFileAttributes:O,diskNumberStart:U,uncompressedSize:j,compressedSize:T}=a,I=fo(w,h,y,b,g,x),C=46+fo(m,v)+I;Wi(i,l+C-d)&&(await Ki(i,c.slice(d,l)),d=l,await i.closeDisk()),0==r&&(p=Pi(i),f=_i(i)),k||co(z,18,j),A||co(z,14,T),(F||R)&&a.version<45&&oo(z,0,45);const M=Ni(C);if(M.Me(o),M.Ne(E),M.Pe(S.subarray(0,24)),M.Ne(I),M.Ne(fo(v)),M.Ne(R?e:U),M.Ne(D),M.Me(O),M.Me(F?t:u),M.Pe(m),M.Pe(w),M.Pe(h),M.Pe(y),M.Pe(b),M.Pe(g),M.Pe(x),M.Pe(v),po(c,M.Lt,l),l+=C,n.onprogress)try{await n.onprogress(r+1,s.size,new Mn(a))}catch{}}return await Ki(i,d?c.slice(d):c),{Te:{diskNumber:p,diskOffset:f},Ie:c}})(r,s,n),m=await(async(t,r,a)=>{const n=to(t,a,H);if(n){const a=await n(r),s=fo(a);if(s>e)throw Error(gi);const o=Ni(6+s);o.Me(i),o.Ne(s),o.Pe(a);const{writer:c}=t;return Wi(c,fo(o.Lt))&&await c.closeDisk(),await Ki(c,o.Lt),6+s}return 0})(r,u,n);await(async(r,a,n,s)=>{const{writer:i}=r,{Te:o,_e:f}=s;let{We:u}=s,m=r.re.size,w=o.diskNumber,h=Li(r,o),y=Pi(i);Wi(i,p)&&y++;let b=Qi(r,n,vn);if(h>=t||u>=t||m>=e||y>=e){if(!1===b)throw Error(si);b=!0}const g=fo(a);if(g>e)throw Error(Ls);const x=Ni(b?98:p);Wi(i,fo(x.Lt)+g)&&await i.closeDisk(),y=Pi(i),b&&(x.Me(l),x.Le(44),x.Ne(45),x.Ne(45),x.Me(y),x.Me(w),x.Le(m),x.Le(m),x.Le(u),x.Le(h),x.Me(d),x.Me(y),x.Le(BigInt(Li(r,i))+BigInt(u)+BigInt(f)),x.Me(y+1),Qi(r,n,"supportZip64SplitFile",!0)&&(y=e,w=e),m=e,h=t,u=t),x.Me(c),x.Ne(y),x.Ne(w),x.Ne(m),x.Ne(m),x.Me(u),x.Me(h),x.Ne(g),await Ki(i,x.Lt),g&&await Ki(i,a)})(r,a,n,{Te:f,We:s,_e:m})})(this,r,a),!Ya(s)&&Qi(this,a,B)||await f.getWriter().close(),s.getData?s.getData():f}}class Ai{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new ki(r,t),this.se=new Set}transform(t){const e=this.zipWriter;let r;const{readable:a,writable:n}=new TransformStream({start(t){r=t},flush:()=>{(async()=>{try{await e.close()}catch(t){try{await e.writer.writable.abort(t)}catch{}}})()}});return Ri(this,this.zipWriter.add(t,a),t=>r.error(t)),{readable:this.readable,writable:n}}writable(t){let e;const{readable:r,writable:a}=new TransformStream({start(t){e=t}});return Ri(this,this.zipWriter.add(t,r),t=>e.error(t)),a}async close(t,e={}){return await Promise.all(Array.from(this.se)),this.zipWriter.close(t,e)}}function Ri(t,e,r){t.se.add(e),e.catch(t=>{try{r(t)}catch{}})}function Fi(a,n,s){n=n.trim();let i=Qi(a,s,xn),o=Qi(a,s,zn,i?20:768);const c=Qi(a,s,Rn),l=ao(a,s,"uid"),d=ao(a,s,"gid");let p=ao(a,s,Un),f=Qi(a,s,"unixExtraFieldType"),u=Qi(a,s,jn),m=Qi(a,s,Tn),w=Qi(a,s,In);if(st(l,t,pi),st(d,t,fi),st(p,e,ui),f!==F&&f!==vi&&f!==Ei)throw Error(mi);if(f===Ei&&(l!==F&&l>e||d!==F&&d>e))throw Error(wi);f!==F||l===F&&d===F||(f=vi);let h=ao(a,s,bn),y=Qi(a,s,gn);const b=h!==F||y!==F;if(l!==F||d!==F||p!==F||f||c?(i=!1,o=o&r|768):b&&(i=!0,o&=r),st(h,r,hi),y&&(typeof y!==j||Array.isArray(y)))throw Error(yi);if(o>e)throw Error(Ks);let g=eo(a,s,wn,yn);const k=g!==F;k||(g=0),!s[An]&&n.endsWith(z)&&(s[An]=!0);const A=Qi(a,s,An);if(A?(n.endsWith(z)||(n+=z),k||(g=16,i||(g|=16877<<16))):i||k||(g=c?493<<16:27525120),!i){const t=p!==F||!!(u||m||w);p=p===F?g>>16&e:p&e,u?p|=E:u=!!(p&E),m?p|=S:m=!!(p&S),w?p|=512:w=!!(512&p),k&&!t||(A?p=-61441&p|v:p&x||(p|=32768),g=(p&e)<<16|g&e)}return({msdosAttributesRaw:h,msdosAttributes:y}=((t,e)=>{if(t!==F)t&=r;else if(e!==F){const{readOnly:a,hidden:n,system:s,directory:i,archive:o}=e;let c=0;a&&(c|=1),n&&(c|=2),s&&(c|=4),i&&(c|=16),o&&(c|=32),t=c&r}return e===F&&(e={readOnly:!!(1&t),hidden:!!(2&t),system:!!(4&t),directory:!!(16&t),archive:!!(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}})(h,y)),b&&(g=g&t|h&r),{name:n,ge:{versionMadeBy:o,msDosCompatible:!!i,externalFileAttributes:g,unixExternalUpper:g>>16&e,uid:l,gid:d,unixMode:p,unixExtraFieldType:f,symlink:p!==F&&40960==(p&x),setuid:u,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function Di(t,r,a){const n=to(t,a,"encodeText")||Pt;let s=n(r,K);if(s===F&&(s=Pt(r)),fo(s)>e)throw Error(Hs);const i=a[en]||"";if(typeof i!=T)throw Error(Vs);let o=n(i,Y);if(o===F&&(o=Pt(i)),fo(o)>e)throw Error(qs);const c=Qi(t,a,Sn,20);if(c>e)throw Error(Ks);const l=$i(t,a,cn,new Date),d=$i(t,a,dn),p=$i(t,a,fn),f=eo(t,a,mn,hn,0),u=Qi(t,a,N),m=Qi(t,a,C),w=Qi(t,a,M);at(m,w);const h=ao(t,a,"encryptionStrength",3),y=Qi(t,a,kn),b=Qi(t,a,"extendedTimestamp",!0),g=Qi(t,a,"ntfsTimestamp"),x=Qi(t,a,"keepOrder",!0),v=Qi(t,a,_),E=Qi(t,a,L),S=Qi(t,a,"bufferedWrite"),z=to(t,a,"createTempStream"),k=Qi(t,a,"dataDescriptorSignature",!0),A=rt(Qi(t,a,P)),R=Qi(t,a,"useUnicodeFileNames",!0),D=Qi(t,a,Fn),O=u||D===F?F:qe(D);if(!u&&D!==F&&0!==D&&8!==D&&!O)throw Error("Compression method not supported");let U=ao(t,a,"level");if(st(U,9,bi),t.options[Z]){if(m!==F||w!==F)throw Error(Gs);U===F&&D===F&&(U=0)}u&&(U=F);let j=Qi(t,a,W),I=Qi(t,a,q);S&&I===F&&(I=!1),(I===F||y)&&(I=!0),U!==F&&6!=U&&(j=!1);const B=Qi(t,a,vn);if(!(y||m===F&&w===F||Number.isInteger(h)&&h>=1&&h<=3))throw Error(Ys);const V=Oi(a[On]),H=Oi(a.localExtraField);return{comment:i,ge:{rawFilename:s,rawComment:o,version:c,lastModDate:l,lastAccessDate:d,creationDate:p,internalFileAttributes:f,passThrough:u,password:m,rawPassword:w,encryptionStrength:h,zipCrypto:y,extendedTimestamp:b,ntfsTimestamp:g,keepOrder:x,useWebWorkers:v,transferStreams:E,bufferedWrite:S,createTempStream:z,dataDescriptorSignature:k,signal:A,useUnicodeFileNames:R,compressionMethod:D,format:O?O.format:F,codecURI:O?O.codecURI:F,Be:O?O.versionNeeded:F,level:U,useCompressionStream:j,dataDescriptor:I,zip64:B,rawExtraField:V,qe:H}}}function Oi(t){if(!t)return I;if(!(t instanceof Map))throw Error(Js);let r=0,a=0;t.forEach((t,a)=>{if(nt(a,e,Qs),!(t instanceof Uint8Array))throw Error($s);if(fo(t)>e)throw Error(ti);r+=4+fo(t)});const n=new Uint8Array(r),s=At(n);return t.forEach((t,e)=>{oo(s,a,e),oo(s,a+2,fo(t)),po(n,t,a+4),a+=4+fo(t)}),n}function Ui(e,r,a,n,s){const{passThrough:i,zipCrypto:o,password:c,rawPassword:l,encryptionStrength:d}=n;let{dataDescriptor:p,zip64:f,level:u,compressionMethod:m}=n,w=0,h=0;if(i&&r){if(h=s[an],h===F)throw Error(ii);if(m===F)throw Error(oi)}const y=!0===f,b=Qi(e,s,En);if(r&&i&&!b&&fo(c,l))throw Error(Xs);const g=r&&(!!(c&&fo(c)||l&&fo(l))||i&&b);r||(u=0,m=0);const x=g?o?12:16+4*d:0;r&&(i?(s.uncompressedSize=h,w=a===F?no(h)+x:a):a===F?(p=!0,(f||f===F)&&(f=!0,h=w=4294967296)):(s.uncompressedSize=h=a,w=(so(m,u)?no(h):h)+x));const v=!(g||r&&(0!==a||i)||so(m,u));v&&!o&&Qi(e,s,q)===F&&(p=!1);const E=y||h>=t,S=y||w>=t;if(E||S){if(!1===f)throw Error(si);f=!0}return f=f||!1,{Ve:w,ge:{dataDescriptor:p,Ee:v,zip64:f,he:E,we:S,uncompressedSize:h,level:u,compressionMethod:m,encrypted:g}}}function ji(t){const{rawFilename:r,lastModDate:n,lastAccessDate:s,creationDate:i,level:o,zip64:c,zipCrypto:l,useUnicodeFileNames:d,dataDescriptor:p,directory:f,rawExtraField:u,qe:h,encryptionStrength:g,extendedTimestamp:x,ntfsTimestamp:v,passThrough:E,encrypted:S,he:z,we:D,uncompressedSize:O,crc32:U}=t;let{version:j,compressionMethod:T}=t;const C=!f&&so(T,o);let M;const N=E||!C,P=c&&(t.bufferedWrite||!p||!z&&!D||N),_=P||c&&p&&(z||D);if(c&&(z||D)){const t=20,e=Ni(t);if(e.Ne(1),e.Ne(t-4),M=e.Lt,P&&(e.Le(O),N)){const t=S?l?12:16+4*g:0;e.Le(E?0:O+t)}}else M=I;let W,L,B,q,V;if(S&&!l){const t=Ni(fo(xi)+2);t.Ne(m),t.Pe(xi),W=t.Lt,W[8]=g}else W=I;if(x){const t=Gi(n),e=Xi(t);if(e){const e=9+(s?4:0)+(i?4:0),r=Ni(e);q=1+(s?2:0)+(i?4:0),r.Ne(w),r.Ne(e-4),r.Ze(q),r.Me(t),s&&r.Me(Ji(Gi(s))),i&&r.Me(Ji(Gi(i))),B=r.Lt}else B=I;if(v===F?!e||s||i:v)try{const t=Yi(n),e=Ni(36);e.Ne(10),e.Ne(32),e.He(4),e.Ne(1),e.Ne(24),e.Le(t),e.Le(s?Yi(s):t),e.Le(i?Yi(i):t),L=e.Lt}catch{L=I}else L=I}else L=B=I;try{const{uid:r,gid:a,unixExtraFieldType:n}=t;if(n!=vi||r===F&&a===F)if(n!=Ei||r===F&&a===F)V=I;else{const t=Ni(8);t.Ne(b),t.Ne(4),t.Ne((r===F?0:r)&e),t.Ne((a===F?0:a)&e),V=t.Lt}else{const t=Ii(r===F?0:r),e=Ii(a===F?0:a),n=3+t.length+e.length,s=Ni(4+n);s.Ne(y),s.Ne(n),s.Ze(1),s.Ze(t.length),s.Pe(t),s.Ze(e.length),s.Pe(e),V=s.Lt}}catch{V=I}T===F&&(T=C?8:0);const{Be:H}=t;C&&H!==F&&(j=j>H?j:H),c&&(j=j>45?j:45),S&&!l&&(j=j>51?j:51,E&&U!==F&&(W[4]=1),oo(At(W),9,T),T=99);const K=_?fo(M):0,Y=K+fo(W,B,L,V,u,h);if(Y+(t[Z]?67:0)>e)throw Error(ti);const G=new Date(2e3*Math.ceil(Math.floor(n.getTime()/1e3)/2)),{ue:X,me:J,rawLastModDate:Q}=uo({version:j,bitFlag:mo(o,d,p,S,T),compressionMethod:T,uncompressedSize:O,lastModDate:G<R?R:G>A?A:G,rawFilename:r,we:D,he:z,extraFieldLength:Y}),$=Ni(k+fo(r)+Y),tt=$.Lt,et=At(tt);return $.Me(a),$.Pe(X),$.Pe(r),_&&$.Pe(M),$.Pe(W),$.Pe(B),$.Pe(L),$.Pe(V),$.Pe(u),$.Pe(h),p&&(D||co(et,18,0),z||co(et,22,0)),{xe:tt,Ue:et,ue:X,me:J,lastModDate:n,rawLastModDate:Q,encrypted:S,compressed:C,version:j,compressionMethod:T,be:q,ce:I,Fe:K,de:B,pe:L,fe:V,le:W,extraFieldLength:Y}}function Ti(t,e){const{Se:r}=t;let{xe:a,extraFieldLength:n}=r,s=64-(e+fo(a))%64;s<4&&(s+=64);const i=new Uint8Array(s),o=At(i);oo(o,0,h),oo(o,2,s-4);const c=a;r.xe=a=new Uint8Array(fo(c)+s),po(a,c),po(a,i,fo(c));const l=At(a);oo(l,28,n+s),r.Ue=l,t.Re+=s}function Ii(t){const e=new Uint8Array(4);At(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function Ci({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let a,n=I,i=0,o=t?20:12;return r&&(o+=4),e&&(n=new Uint8Array(o),a=At(n),r&&(i=4,co(a,0,s))),{ve:n,De:a,Oe:i}}function Mi(r){let a=0;for(const[,n]of r){const{rawFilename:r,le:s,rawComment:i,pe:o,fe:c,rawExtraField:l,extendedTimestamp:d,be:p,lastModDate:f,he:u,we:m,uncompressedSize:h,compressedSize:y}=n,b=n.offset>=t,g=n.diskNumberStart>=e;let x,v;if(b||g||u||m){const t=4+(u?8:0)+(m?8:0)+(b?8:0)+(g?4:0),e=Ni(t);e.Ne(1),e.Ne(t-4),u&&e.Le(h),m&&e.Le(y),b&&e.Le(n.offset),g&&e.Me(n.diskNumberStart),x=e.Lt}else x=I;n.ce=x,n.Ce=b,n.ye=g;const E=Gi(f);if(d&&Xi(E)){const t=Ni(9);t.Ne(w),t.Ne(5),t.Ze(p),t.Me(E),v=t.Lt}else v=I;n.de=v;const S=fo(x,s,o,c,v,l);if(S>e)throw Error(ti);a+=46+fo(r,i)+S}return a}function Ni(t){const e=new Uint8Array(t),r=At(e);let a=0;return{Lt:e,Ze:t=>{((t,e,r)=>{t.setUint8(e,r)})(r,a,t),a+=1},Ne:t=>{oo(r,a,t),a+=2},Me:t=>{co(r,a,t),a+=4},Le:t=>{lo(r,a,BigInt(t)),a+=8},Pe:t=>{po(e,t,a),a+=fo(t)},He:t=>a+=t}}function Pi(t){const{diskNumber:e=0}=t;return e}function _i(t){const{diskOffset:e=0}=t;return e}function Wi(t,e){const{availableSize:r=D}=t;return e>r}function Li(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function Bi(t){const e=At(t);let r=0;for(;r+4<=fo(t);){const a=4+io(e,r+2);if(1==io(e,r))return Bi(zt(t.subarray(0,r),t.subarray(Math.min(r+a,fo(t)))));r+=a}return t}async function qi(t,e,r,a){if(a>0){const{writer:n}=t;await Qa(e,{offset:r,size:a}).pipeTo(n.writable,{preventClose:!0,preventAbort:!0}),n.size+=a,t.offset+=a}}async function Vi(t,e){const r=await Ja(t,e,k);if(fo(r)<k)return k;const a=At(r);return k+io(a,26)+io(a,28)}function Zi(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function Hi(){const t=new Uint8Array(4);return co(At(t),0,n),t}async function Ki(t,e){const{writable:r}=t,a=r.getWriter();try{await a.ready,t.size+=fo(e),await a.write(e)}finally{a.releaseLock()}}function Yi(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<ai?ai:e>ni?ni:e}}function Gi(t){return Math.floor(t.getTime()/1e3)}function Xi(t){return t>=ei&&t<=ri}function Ji(t){return Math.min(ri,Math.max(ei,t))}function Qi(t,e,r,a){const n=e[r]===F?t.options[r]:e[r];return n===F?a:n}function $i(t,e,r,a){const n=Qi(t,e,r,a);if(null===n)return a;if(n!==F&&(typeof n.getTime!=U||Number.isNaN(n.getTime())))throw Error(Zs);return n}function to(t,e,r){return et(Qi(t,e,r))}function eo(t,e,r,a,n){const s=ro(e,r,a),i=s===F?ro(t.options,r,a):s;return i===F?n:i}function ro(t,e,r){return t[e]===F?t[r]:t[e]}function ao(t,e,r,a){return it(Qi(t,e,r,a))}function no(t){return t+5*(Math.floor(t/16383)+1)}function so(t,e){return t===F?e===F||e>0:0!==t}function io(t,e){return t.getUint16(e,!0)}function oo(t,e,r){t.setUint16(e,r,!0)}function co(t,e,r){t.setUint32(e,r,!0)}function lo(t,e,r){t.setBigUint64(e,r,!0)}function po(t,e,r){t.set(e,r)}function fo(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function uo({version:e,bitFlag:r,compressionMethod:a,uncompressedSize:n,compressedSize:s,lastModDate:i,rawLastModDate:o,rawFilename:c,we:l,he:d,extraFieldLength:p}){const f=Ni(26),u=f.Lt,m=At(u);if(f.Ne(e),f.Ne(r),f.Ne(a),o===F){const t=new Uint32Array(1),e=At(t);oo(e,0,(i.getHours()<<6|i.getMinutes())<<5|i.getSeconds()/2),oo(e,2,(i.getFullYear()-1980<<4|i.getMonth()+1)<<5|i.getDate()),o=t[0]}return f.Me(o),f.He(4),l||s!==F?f.Me(l?t:s):f.He(4),d||n!==F?f.Me(d?t:n):f.He(4),f.Ne(fo(c)),f.Ne(p),{ue:u,me:m,rawLastModDate:o}}function mo(t,e,r,a,n){let s=0;return e&&(s|=g),r&&(s|=8),8!=n&&9!=n||(t>=0&&t<=3&&(s|=6),t>3&&t<=5&&(s|=4),9==t&&(s|=2)),a&&(s|=1),s}const wo=1048576,ho=".zip.js-temp";function yo(t={}){const{thresholdBytes:e=wo,directoryName:r=ho,getDirectory:a=()=>navigator.storage.getDirectory()}=t;let n;function s(){return n||(n=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),n}return()=>{const t=[];let r,a,n,i,o=0,c=!1;const l=new WritableStream({async write(i){c?await n.write(i):(t.push(i),o+=i.length,o>e&&await(async()=>{const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),a=await e.getFileHandle(r,{create:!0}),n=(await a.createWritable()).getWriter(),c=!0;for(const e of t)await n.write(e);t.length=0})())},async close(){n&&(await n.close(),n=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!i){const t=await a.getFile();i=t.stream().getReader()}const{value:t,done:r}=await i.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){i&&await i.cancel(t)}},{highWaterMark:0}),dispose:async()=>{if(n){try{await n.close()}catch{}n=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}a=r=null}t.length=0}}}}const bo=1048576;function go(t={}){const{thresholdBytes:e=bo}=t;return()=>{const t=[];let r,a,n,s=0,i=!1;const o=new WritableStream({async write(n){i?await r.write(n):(t.push(n),s+=n.length,s>e&&await(async()=>{const e=new TransformStream;a=Te(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:o,readable:new ReadableStream({async pull(e){if(i){if(!n){const t=await a;n=t.stream().getReader()}const{value:t,done:r}=await n.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){n&&await n.cancel(t)}},{highWaterMark:0}),dispose:async()=>{if(r){try{await r.abort()}catch{}r=null}a&&(a.catch(()=>{}),a=null),t.length=0}}}}const xo=1048576,vo=".zip.js-temp",Eo="createSyncAccessHandle is only available in dedicated workers";function So(t={}){const{thresholdBytes:e=xo,directoryName:r=vo,getDirectory:a}=t;if(!(a||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw Error(Eo);const n=a||(()=>navigator.storage.getDirectory());let s;function i(){return s||(s=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),s}return()=>{const t=[];let r,a,n=0,s=!1,o=0,c=0;const l=new WritableStream({async write(c){s?(a.write(c,{at:o}),o+=c.length):(t.push(c),n+=c.length,n>e&&await(async()=>{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 n=await e.getFileHandle(r,{create:!0});a=await n.createSyncAccessHandle(),s=!0;for(const e of t)a.write(e,{at:o}),o+=e.length;t.length=0})())},close(){a&&a.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(s){const t=o-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),n=a.read(r,{at:c});n?(c+=n,e.enqueue(r.subarray(0,n))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async()=>{if(a){try{a.close()}catch{}a=null}if(r){try{const t=await i();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{Et({baseURI:import.meta.url})}catch{}let zo,ko,Ao,Ro,Fo;function Do(t,e,r={}){if(!zo){const t=Error("WASM module not loaded");throw t.cause=Fo,t}const a="number"==typeof r.level?r.level:-1,n="number"==typeof r.outBuffer?r.outBuffer:65536,s="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.Ke=ko(n),this.in=ko(s),this.inBufferSize=s,!this.Ke||!this.in)throw Error("allocation failed");if(this.Ye=new Uint8Array(n),t?(this.Ge=zo.deflate_process,this.Xe=zo.deflate_last_consumed,this.Je=zo.deflate_end,this.Qe=zo.deflate_new(),r="gzip"===e?zo.deflate_init_gzip(this.Qe,a):"deflate-raw"===e?zo.deflate_init_raw(this.Qe,a):zo.deflate_init(this.Qe,a)):"deflate64-raw"===e?(this.Ge=zo.inflate9_process,this.Xe=zo.inflate9_last_consumed,this.Je=zo.inflate9_end,this.Qe=zo.inflate9_new(),r=zo.inflate9_init_raw(this.Qe)):(this.Ge=zo.inflate_process,this.Xe=zo.inflate_last_consumed,this.Je=zo.inflate_end,this.Qe=zo.inflate_new(),r="deflate-raw"===e?zo.inflate_init_raw(this.Qe):"gzip"===e?zo.inflate_init_gzip(this.Qe):zo.inflate_init(this.Qe)),0!==r)throw Error("init failed:"+r)}catch(t){throw i(this),t}},transform(e,r){try{const a=e,s=new Uint8Array(Ro.buffer),i=this.Ge,o=this.Xe,c=this.Ke,l=this.Ye;let d=0;for(;d<a.length;){const e=Math.min(a.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&Ao&&(Ao(this.in),this.in=0),this.in=ko(e),this.inBufferSize=e,!this.in))throw Error("allocation failed");s.set(a.subarray(d,d+e),this.in);const p=i(this.Qe,this.in,e,c,n,0),f=16777215&p;if(f&&(l.set(s.subarray(c,c+f),0),r.enqueue(l.slice(0,f))),!t){const t=p>>24&255,e=128&t?t-256:t;if(e<0)throw Error("process error:"+e)}const u=o(this.Qe);if(0===u)break;d+=u}}catch(t){i(this),r.error(t)}},flush(e){try{const r=new Uint8Array(Ro.buffer),a=this.Ge,s=this.Ke,i=this.Ye;for(;;){const o=a(this.Qe,0,0,s,n,4),c=16777215&o,l=o>>24&255;if(!t){const t=128&l?l-256:l;if(t<0)throw Error("process error:"+t)}if(c&&(i.set(r.subarray(s,s+c),0),e.enqueue(i.slice(0,c))),1===l||0===c)break}}catch(t){e.error(t)}finally{const t=i(this);0!==t&&e.error(Error("end error:"+t))}},cancel(){i(this)}});function i(t){let e=0;return t.Qe&&t.Je&&(e=t.Je(t.Qe)),t.Qe=0,t.in&&Ao&&Ao(t.in),t.in=0,t.Ke&&Ao&&Ao(t.Ke),t.Ke=0,e}}class Oo{constructor(t="deflate",e){return Do(!0,t,e)}}class Uo{constructor(t="deflate",e){return Do(!1,t,e)}}Oo.ft=!0,Uo.ft=!0;let jo,To=!1;function Io(){jo=null,(async()=>{await Promise.allSettled(_r.map(t=>(Gr(t),t.terminate()))),wr=F,hr=!1})(),To=!1,zo=ko=Ao=Ro=Fo=null}(({$e:t})=>{br=t})({$e:t=>{if(!jo){let{wasmURI:e}=t;typeof e==U&&(e=e()),jo=(async(t,{baseURI:e})=>{if(!To)try{await(async(t,e)=>{let r,a;try{try{a=new URL(t,e)}catch{}const n=await fetch(a);r=await n.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=(t=>{const e=t.split(",")[1],r=atob(e),a=r.length,n=new Uint8Array(a);for(let t=0;t<a;++t)n[t]=r.charCodeAt(t);return n.buffer})(t)}(t=>{if(zo=t,({malloc:ko,free:Ao,memory:Ro}=zo),"function"!=typeof ko||"function"!=typeof Ao||!Ro)throw zo=ko=Ao=Ro=null,Error("Invalid WASM module")})((await WebAssembly.instantiate(r)).instance.exports)})(t,e),To=!0}catch(t){throw(t=>{Fo=t})(t),t}})(e,t).catch(t=>{throw jo=null,t})}return jo}}),Et({CompressionStreamFallback:Oo,DecompressionStreamFallback:Uo}),Et({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const Co="Entry filename already exists",Mo="Readable stream already consumed",No="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Po="Invalid readerOptions (must be an object)",_o="zipjs-abort-export",Wo="The operation was aborted",Lo=new Set([1,m,10,w,28789,25461,h,y,b,22613,13]);class Bo{constructor(t,e,r,a){const n=this;if(t.root&&a&&a.getChildByName(e))throw Error(Co);r||(r={}),Object.assign(n,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.er++,parent:a,children:[],uncompressedSize:r.uncompressedSize||0,rr:r.rr||r.uncompressedSize===F,passThrough:r.passThrough,ar:r.ar||new Date}),!a&&t.root||(t.entries[n.id]=n),a&&n.parent.children.push(n)}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!!e}rename(t){const e=this.parent;if(e&&e.getChildByName(t))throw Error(Co);this.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class qo extends Bo{constructor(t,e,r,a){super(t,e,r,a);const n=this;n.Reader=r.Reader,n.Writer=r.Writer,r.getData&&(n.getData=r.getData)}clone(){return new qo(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&((t,e)=>{const{contentType:r}=t;return r===F||(t.constructor==ga?e.type==r:t.constructor!=wa||e.startsWith("data:"+(r||"")+";base64,"))})(t,r.data))return r.data;{const a=r.reader=Qo(r.Reader,r.data,e),n=r.uncompressedSize||a.size;await Promise.all([Ga(a),Ga(t,n)]);const s=rt(e.signal),i=((t,e,r,a)=>{const{onstart:n,onprogress:s,onend:i}=r,{readable:o}=e;return t.data instanceof Mn||!n&&!s&&!i?o:je(o).pipeThrough(new Er({onstart:n,onprogress:s,onend:i,size:e.size}),{signal:a})})(r,a,e,s),o=!Ya(t)&&!!e.preventClose;return r.uncompressedSize=a.size,await je(i).pipeTo(Ie(t.writable),{signal:s,preventClose:o,preventAbort:o}),t.getData?t.getData():t.writable}}isPasswordProtected(){return!(!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.message==Vt)return!1;throw t}}getText(t,e){return this.getData(new Ea(t),e)}getBlob(t,e){return this.getData(new ga(t),e)}getData64URI(t,e){return this.getData(new wa(t),e)}getUint8Array(t){return this.getData(new qa,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return kt(await this.getUint8Array(t)).buffer}replaceBlob(t){Object.assign(this,{data:t,Reader:ba,Writer:ga,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:xa,Writer:Ea,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:ma,Writer:wa,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:Ba,Writer:qa,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:Xo(t),Writer:null,reader:null})}}class Vo extends Bo{constructor(t,e,r,a){super(t,e,r,a),this.directory=!0}clone(t){const e=this,r=new Vo(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const a=e.clone(t);return a.parent=r,a})),r}addDirectory(t,e){return dc(this,t,{options:e},!0)}addText(t,e,r={}){return dc(this,t,{data:e,Reader:xa,Writer:Ea,options:r,uncompressedSize:va(e)})}addBlob(t,e,r={}){return dc(this,t,{data:e,Reader:ba,Writer:ga,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){let a=e.length;for(;"="==e.charAt(a-1);)a--;const n=e.indexOf(",")+1;return dc(this,t,{data:e,Reader:ma,Writer:wa,options:r,uncompressedSize:Math.floor(.75*(a-n))})}addUint8Array(t,e,r={}){return dc(this,t,{data:e,Reader:Ba,Writer:qa,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return dc(this,t,{data:e,Reader:class extends Wa{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return dc(this,t,{Reader:Xo(e),options:r})}addFileSystemEntry(t,e={}){return oc(this,t,e)}addFileSystemHandle(t,e={}){return oc(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),dc(this,t.name,{data:t,Reader:()=>({readable:t.stream(),size:t.size}),options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new ba(t),e)}importData64URI(t,e){return this.importZip(new ma(t),e)}importUint8Array(t,e){return this.importZip(new Ba(t),e)}importHttpContent(t,e){return this.importZip(new Wa(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new ga(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new wa(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new qa,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return(async(t,e,r)=>{const{onstart:a,onprogress:n,onend:s}=r,i=nc(r.readerOptions),o=new AbortController,{signal:c}=o,l=((t,e)=>{if(!rt(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,o),d=Object.assign({},r,i,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),p=Ko([t],t=>Go(t,d.passThrough)),f=[];let u=!1,m=0;try{a&&await Sr(a,p),await h(t,e),s&&await Sr(s,m)}catch(t){try{t.exportedEntryNames=f}catch{}throw t}finally{l()}return e;function w(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),m+=t.length,n&&await Sr(n,m,p)},close:()=>e.close(),abort:t=>e.abort(t)})}async function h(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=>!ec(t.reason));throw(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(u||ec(c.reason))return;throw c.reason===F?new DOMException(Wo,"AbortError"):c.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await h(e,t)}else{const a=await r.getFileHandle(e.name,{create:!0}),n=await a.createWritable();try{await e.getData({writable:w(n)},d)}catch(t){throw u?Error(_o):t}f.push(e.getRelativeName(t))}}catch(r){u=!0,o.abort(Error(_o));try{r.entryName===F&&(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==U?(r=t,e=Object.assign({},r.options,e)):(await Ga(t),r=new cs(t,e));const a=[],n=await r.getEntries(e);for(const t of n){let r=this;try{const n=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=n.pop();if(n.forEach(t=>{const e=r;if(r=r.getChildByName(t),r){if(!r.directory)throw Error(Co)}else r=new Vo(this.fs,t,{data:null},e),a.push(r)}),t.directory){let e=r;if(s)if(e=r.getChildByName(s),e){if(!e.directory)throw Error(Co)}else e=new Vo(this.fs,s,{data:null},r),a.push(e);e==this||e.data||(e.data=t)}else a.push(dc(r,s,{data:t,Reader:Jo(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}catch(e){try{e.cause={entry:t}}catch{}throw e}}return a}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[a]=await Promise.all([$o(r,nc(e.readerOptions)),Ga(t)]),n=new ki(t,e);return await(async(t,e,r,a,n)=>{const{onstart:s,onprogress:i,onend:o,onentryprogress:c}=a,l=e,d=Ko(e.children,t=>ic(t)?0:1);let p=0,f=0;if(s&&await Sr(s,r),a.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await u(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 u(t);async function u(e){if(ic(e))return;const{name:s,nr:o}=rc(e,l,a);let u=0;const m=await t.add(s,n.get(e),Object.assign(o,{onstart:F,onend:F,onprogress:async t=>{p+=t-u,u=t,i&&await Sr(i,p,r)}}));f++,c&&await Sr(c,f,d,m)}o&&await Sr(o,p)})(n,r,Ko([r],Yo),e,a),await n.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const a=this;nc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const n=!r.bufferedWrite||!1!==r.keepOrder&&a.children.every(t=>!t.children.length);return(async(r,a,n,s)=>{const i={options:r};if(et(r[H]))throw Error(ci);if(s!==F&&!(s instanceof Uint8Array))throw Error(Bs);const o=fo(s);if(o>e)throw Error(Ls);const c=r[Z],l=new Map;let d=!!c;const f=r[V]===F?0:r[V];let u=f,m=D;for(const t of a){let{name:e}=t;const{size:r}=t,a=Object.assign({},t.options);e=e.trim(),Qi(i,a,An)&&!e.endsWith(z)&&(e+=z);const n=Fi(i,e,a);({name:e}=n);const{ge:s}=Di(i,e,a);0==s.level||s.compressionMethod!==F||s.passThrough||await gr(wt())||(s.level=0);const o=!Qi(i,a,An);if(o&&r===F)throw Error(ci);const{Ve:d,ge:p}=Ui(i,o,r,s,a);if(o&&!s.passThrough&&so(p.compressionMethod,p.level))throw Error(ci);const f=Object.assign({},a,n.ge,s,p,{[Z]:c}),w=ji(f),h=Ci(f),y={Se:w,Re:fo(w.xe,h.ve)};c&&Ti(y,u);const b=o?d:0;l.set(e,Object.assign({},f,w,{offset:u,diskNumberStart:0,compressedSize:b}));const g=y.Re+b;m=Math.min(m,g),u+=g}if(l.size&&u-m>=t&&(d=!0),d&&!n)throw Error(ci);const w=Mi(l);let h=Qi(i,r,vn);if(u>=t||w>=t||l.size>=e){if(!1===h)throw Error(si);h=!0}return u-f+w+o+(h?98:p)})(r,a.getChildren({recursive:!0}).filter(t=>!ic(t)).map(t=>{const{name:e,nr:n}=rc(t,a,r);return{name:e,size:t.directory?0:ac(t,sc(t,r)),options:n}}),n,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const a=e[r];if(a.name==t)return a}}getChildren(t={}){return((t,e)=>{const r=[],a=[t];let n=0;for(;n<a.length;)for(const t of a[n++].children)r.push(t),e&&a.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 Zo{constructor(){lc(this)}get children(){return this.root.children}remove(t){tc(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=F}move(t,e){if(t==this.root)throw Error("Root directory cannot be moved");if(!e.directory)throw Error("Target entry is not a directory");if(e.isDescendantOf(t))throw Error("Entry is a ancestor of target entry");if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw Error(Co)}else tc(t),t.parent=e,e.children.push(t),((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)}})(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.getChildByName(e[t]);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 lc(this),this.root.importBlob(t,e)}importData64URI(t,e){return lc(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return lc(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return lc(this),this.root.importHttpContent(t,e)}importReadable(t,e){return lc(this),this.root.importReadable(t,e)}importZip(t,e){return lc(this),this.root.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 Ho={FS:Zo,ZipDirectoryEntry:Vo,ZipFileEntry:qo};function Ko(t,e){let r=0;const a=Array.from(t);for(;a.length;){const t=a.pop();r+=e(t)||0;for(const e of t.children)a.push(e)}return r}function Yo(t){return t.uncompressedSize}function Go(t,e){const{data:r}=t;return e&&r instanceof Mn?r.compressedSize:t.uncompressedSize}function Xo(t){let e;return()=>{if(e)throw Error(Mo);return e=!0,{readable:t}}}function Jo(t){return class extends fa{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:a,checkOverlappingEntryOnly:n}=r,s=await e.entry.getData(new ga,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:n||a,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=s,e.sr=new ba(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.sr.readUint8Array(t,e)}}}function Qo(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function $o(t,e){const r=[],a=[t],n=new Map;for(;a.length;){const t=a.pop();for(const e of t.children)e.directory?a.push(e):r.push(e)}return await Promise.all(r.map(async t=>{const r=t.reader=Qo(t.Reader,t.data,e);n.set(t,r);try{await Ga(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.rr=!1)})),n}function tc(t){if(t.parent){const e=t.parent.children;e.forEach((r,a)=>{r.id==t.id&&e.splice(a,1)})}}function ec(t){return!!t&&t.message==_o}function rc(t,e,r){const a=r.relativePath?t.getRelativeName(e):t.getFullname(),n=t.options||{};let s={},i={};if(t.data instanceof Mn){const{externalFileAttributes:e,versionMadeBy:a,comment:n,lastModDate:o,creationDate:c,lastAccessDate:l,uncompressedSize:d,encrypted:p,zipCrypto:f,crc32:u,compressionMethod:m,extraFieldAES:w,internalFileAttributes:h,extraField:y,uid:b,gid:g}=t.data;s={externalFileAttributes:e,versionMadeBy:a,comment:n,lastModDate:o,creationDate:c,lastAccessDate:l,internalFileAttributes:h};const x=(t=>{if(t){const e=new Map;if(t.forEach((t,r)=>{Lo.has(r)||e.set(r,t.data)}),e.size)return e}})(y);if(x&&(s.extraField=x),b===F&&g===F||Object.assign(s,{uid:b,gid:g,unixExtraFieldType:"infozip"}),sc(t,r)){let t;w&&(t=w.strength),i={passThrough:!0,encrypted:p,zipCrypto:f,crc32:u,uncompressedSize:d,encryptionStrength:t,compressionMethod:m}}}const o=Object.assign({lastModDate:t.ar},s,r,n,i,{directory:t.directory});if(!t.directory&&o.passThrough&&o.uncompressedSize===F)throw Error(No);return{name:a,nr:o}}function ac(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.rr?F:Go(t,e)}function nc(t){if(t&&(typeof t!=j||Array.isArray(t)))throw Error(Po);return t}function sc(t,e){const{readerOptions:r}=e;return!(t.directory||!(t.passThrough||r&&r.passThrough))}function ic(t){return t.directory&&null===t.data}function oc(t,e,r){return async function t(e,a,n,s=""){if(a){const i=s?s+"/"+a.name:a.name;try{if((a.isFile||a.isDirectory)&&(a=await cc(a)),"file"==a.kind){const t=await a.getFile();n.push(dc(e,t.name,{Reader:()=>({readable:t.stream(),size:t.size}),options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==a.kind){const s=e.addDirectory(a.name,r);n.push(s);for await(const e of a.values())await t(s,e,n,i)}}catch(t){try{t.entryName===F&&(t.entryName=i)}catch{}throw t}}return n}(t,e,[])}async function cc(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 t=>{const e=[];function r(t,a,n){t.readEntries(async s=>{if(s.length){for(const t of s)e.push(await cc(t));r(t,a,n)}else a(e)},n)}return await new Promise((e,a)=>r(t.createReader(),e,a)),{[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 lc(t){t.entries=[],t.er=0,t.root=new Vo(t)}function dc(t,e,r,a){if(t.directory)return a?new Vo(t.fs,e,r,t):new qo(t.fs,e,r,t);throw Error("Parent entry is not a directory")}let pc;function fc(t){return t&&(pc||(pc=(()=>{const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),a=e.slice(0,r);let n="";for(const s of e.slice(r+1).split(",")){const e=s.split(" "),r=n.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);n=r;const i=r.replace(/!/g,"+xml"),o=e.length>1?e.slice(1):[i.split("+")[0]];for(const e of o)t[e]=a+"/"+i}}return t})()),pc)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{ba as BlobReader,ga as BlobWriter,ma as Data64URIReader,wa as Data64URIWriter,Wo as ERR_ABORTED,Gn as ERR_AMBIGUOUS_ARCHIVE,Nn as ERR_BAD_FORMAT,Wn as ERR_CENTRAL_DIRECTORY_NOT_FOUND,Ws as ERR_DUPLICATED_NAME,qn as ERR_ENCRYPTED,Xn as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Yn as ERR_ENTRY_DATA_OUT_OF_BOUNDS,Co as ERR_ENTRY_EXISTS,_n as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Pn as ERR_EOCDR_NOT_FOUND,Bn as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,ta as ERR_HTTP_RANGE,ea as ERR_HTTP_RESOURCE_CHANGED,Ht as ERR_INVALID_AUTHENTICATION_CODE,Ce as ERR_INVALID_CODEC_DEFINITION,Ne as ERR_INVALID_CODEC_MODULE,Ls as ERR_INVALID_COMMENT,Bs as ERR_INVALID_COMMENT_TYPE,Ke as ERR_INVALID_COMPRESSED_DATA,Ye as ERR_INVALID_CRC32,Zs as ERR_INVALID_DATE,Ys as ERR_INVALID_ENCRYPTION_STRENGTH,qs as ERR_INVALID_ENTRY_COMMENT,Vs as ERR_INVALID_ENTRY_COMMENT_TYPE,Hs as ERR_INVALID_ENTRY_NAME,Js as ERR_INVALID_EXTRAFIELD,ti as ERR_INVALID_EXTRAFIELD_DATA,$s as ERR_INVALID_EXTRAFIELD_DATA_TYPE,Qs as ERR_INVALID_EXTRAFIELD_TYPE,$n as ERR_INVALID_FILENAME_VALIDATION,Q as ERR_INVALID_FUNCTION_OPTION,fi as ERR_INVALID_GID,bi as ERR_INVALID_LEVEL,ts as ERR_INVALID_MAX_APPENDED_DATA_SIZE,ot as ERR_INVALID_MAX_WORKERS,hi as ERR_INVALID_MSDOS_ATTRIBUTES,yi as ERR_INVALID_MSDOS_DATA,Vt as ERR_INVALID_PASSWORD,tt as ERR_INVALID_PASSWORD_TYPE,No as ERR_INVALID_PASS_THROUGH,Po as ERR_INVALID_READER_OPTIONS,$ as ERR_INVALID_SIGNAL,Zt as ERR_INVALID_SIGNATURE,gi as ERR_INVALID_SIGNATURE_DATA,Qn as ERR_INVALID_STRICTNESS,pi as ERR_INVALID_UID,He as ERR_INVALID_UNCOMPRESSED_SIZE,mi as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,wi as ERR_INVALID_UNIX_ID_SIZE,ui as ERR_INVALID_UNIX_MODE,Ks as ERR_INVALID_VERSION,ra as ERR_ITERATOR_COMPLETED_TOO_SOON,Ln as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Kn as ERR_OVERLAPPING_ENTRY,Mo as ERR_READABLE_CONSUMED,Me as ERR_RESERVED_COMPRESSION_METHOD,Hn as ERR_SPLIT_ZIP_FILE,oi as ERR_UNDEFINED_COMPRESSION_METHOD,li as ERR_UNDEFINED_READER,ii as ERR_UNDEFINED_UNCOMPRESSED_SIZE,ci as ERR_UNDETERMINED_SIZE,Jn as ERR_UNSAFE_FILENAME,Zn as ERR_UNSUPPORTED_COMPRESSION,Eo as ERR_UNSUPPORTED_CONTEXT,Yt as ERR_UNSUPPORTED_CRYPTO_API,Vn as ERR_UNSUPPORTED_ENCRYPTION,Xs as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,Gs as ERR_UNSUPPORTED_ENCRYPTION_USDZ,si as ERR_UNSUPPORTED_FORMAT,es as ERR_UNSUPPORTED_UINT64,mr as ERR_WORKER_STARTUP_TIMEOUT,aa as ERR_WRITER_NOT_INITIALIZED,di as ERR_ZIP_NOT_EMPTY,La as HttpRangeReader,Wa as HttpReader,fa as Reader,Va as SplitDataReader,Za as SplitDataWriter,xa as TextReader,Ea as TextWriter,Ba as Uint8ArrayReader,qa as Uint8ArrayWriter,ua as Writer,Vo as ZipDirectoryEntry,Bo as ZipEntry,Zo as ZipFS,qo as ZipFileEntry,cs as ZipReader,ls as ZipReaderStream,ki as ZipWriter,Ai as ZipWriterStream,bt as configure,go as createBlobTempStream,yo as createOPFSTempStream,So as createSyncAccessHandleTempStream,Ho as fs,fc as getMimeType,Le as registerCodec,St as resetConfiguration,Io as terminateWorkers,Be as unregisterCodec};
|
|
1
|
+
const t=4294967295,e=65535,r=255,n=67324752,a=134695760,s=a,o=84233040,i=33639248,c=101010256,l=101075792,d=117853008,f=46,u=22,p=20,m=56,w=39169,h=21589,y=6534,b=30837,g=30805,x=2048,E=61440,v=16384,S=2048,z=1024,k="/",A=30,R=new Date(2107,11,31,23,59,58),D=new Date(1980,0,1),F=void 0,O=1/0,U="undefined",T="function",I="object",j="string",C=new Uint8Array,M="password",N="rawPassword",_="passThrough",B="signal",P="useWebWorkers",W="useCompressionStream",L="transferStreams",q="preventClose",Z="dataDescriptor",V="offset",H="usdz",G="maxAppendedDataSize",K="signCentralDirectory",Y="filename",X="comment",J="strict",Q="balanced",$="tolerant",tt="Invalid option (must be a function)",et="Invalid signal (must be an AbortSignal instance)",rt="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function nt(t){if(t&&typeof t!=T)throw new Error(tt);return t}function at(t){if(t&&(typeof t.addEventListener!=T||"boolean"!=typeof t.aborted))throw new Error(et);return t||F}function st(t,e){if(t&&typeof t!=j||e&&!(e instanceof Uint8Array))throw new Error(rt)}function ot(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function it(t,e,r){t!==F&&ot(t,e,r)}function ct(t){return typeof t==j&&t.trim()?Number(t):t}const lt="Invalid maxWorkers (must be an integer greater than 0)";let dt=2;try{typeof navigator!=U&&navigator.hardwareConcurrency&&(dt=navigator.hardwareConcurrency)}catch{}const ft={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:dt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=U&&CompressionStream,DecompressionStream:typeof DecompressionStream!=U&&DecompressionStream},ut="maxWorkers",pt=["chunkSize",ut,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],mt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],wt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...pt,...mt],ht={...ft};function yt(){return ht}function bt(t){return gt(t.chunkSize)}function gt(t){return t=ct(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function xt(t){Object.assign(ht,Et(St(t)))}function Et(t){const e={};for(const r of wt){const n=t[r];n!==F&&(e[r]=vt(r,n))}return e}function vt(t,e){if(pt.includes(t)){if(e=ct(e),t==ut&&(!Number.isInteger(e)||e<1))throw new Error(lt)}else mt.includes(t)&&nt(e);return e}function St(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===F&&r===F)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===F&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===F&&(n.DecompressionStreamFallback=r),n}function zt(t){const e=Et(St(t));Object.assign(ft,e),Object.assign(ht,e)}function kt(){for(const t of wt)delete ht[t];Object.assign(ht,ft)}function At(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Rt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Dt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Ft=[[],[],[],[],[],[],[],[]];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;Ft[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Ft[e-1][t];Ft[e][t]=r>>>8^Ft[0][255&r]}const[Ot,Ut,Tt,It,jt,Ct,Mt,Nt]=Ft;class _t{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 a=new DataView(t.buffer,t.byteOffset,r),s=r-8;for(;n<=s;n+=8){const t=e^a.getInt32(n,!0),r=a.getInt32(n+4,!0);e=Nt[255&t]^Mt[t>>>8&255]^Ct[t>>>16&255]^jt[t>>>24&255]^It[255&r]^Tt[r>>>8&255]^Ut[r>>>16&255]^Ot[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Ot[255&(e^t[n])];this.o=e}get(){return~this.o}}class Bt extends TransformStream{constructor(){let t;const e=new _t;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 Pt(t){if(typeof TextEncoder==U){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 Wt={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=Wt.l(r);return 32===n?t.concat(e):Wt.m(e,n,0|r,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const r=t[e-1];return 32*(e-1)+Wt.l(r)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=Wt.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,n){for(void 0===n&&(n=[]);e>=32;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(let a=0;a<t.length;a++)n.push(r|t[a]>>>e),r=t[a]<<32-e;const a=t.length?t[t.length-1]:0,s=Wt.l(a);return n.push(Wt.v(e+s&31,e+s>32?r:n.pop(),1)),n}},Lt={bytes:{S(t){const e=Wt.bitLength(t)/8,r=new Uint8Array(e);let n;for(let a=0;a<e;a++)3&a||(n=t[a/4]),r[a]=n>>>24,n<<=8;return r},A(t){const e=[];let r,n=0;for(r=0;r<t.length;r++)n=n<<8|t[r],3&~r||(e.push(n),n=0);return 3&r&&e.push(Wt.v(8*(3&r),n)),e}}},qt=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.D=[1518500249,1859775393,2400959708,3395469782],t?(e.F=t.F.slice(0),e.O=t.O.slice(0),e.U=t.U):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.U=0,t}update(t){const e=this;"string"==typeof t&&(t=Lt.T.A(t));const r=e.O=Wt.concat(e.O,t),n=e.U,a=e.U=n+Wt.bitLength(t);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let o=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=a;t+=e.blockSize)e.I(s.subarray(16*o,16*(o+1))),o+=1;return r.splice(0,16*o),e}j(){const t=this;let e=t.O;const r=t.F;e=Wt.concat(e,[Wt.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.U/4294967296)),e.push(0|t.U);e.length;)t.I(e.splice(0,16));return t.reset(),r}C(t,e,r,n){return t<=19?e&r|~e&n:t<=39?e^r^n:t<=59?e&r|e&n|r&n:t<=79?e^r^n:void 0}M(t,e){return e<<t|e>>>32-t}I(t){const e=this,r=e.F,n=Array(80);for(let e=0;e<16;e++)n[e]=t[e];let a=r[0],s=r[1],o=r[2],i=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e.M(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.M(5,a)+e.C(t,s,o,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=o,o=e.M(30,s),s=a,a=r}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+o|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0}},Zt={importKey:t=>new Zt.N(Lt.bytes.A(t)),_(t,e,r,n){if(r=r||1e4,n<0||r<0)throw new Error("invalid params to pbkdf2");const a=1+(n>>5)<<2;let s,o,i,c,l;const d=new ArrayBuffer(a),f=new DataView(d);let u=0;const p=Wt;for(e=Lt.bytes.A(e),l=1;u<(a||1);l++){for(s=o=t.encrypt(p.concat(e,[l])),i=1;i<r;i++)for(o=t.encrypt(o),c=0;c<o.length;c++)s[c]^=o[c];for(i=0;u<(a||1)&&i<s.length;i++)f.setInt32(u,s[i]),u+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.B=qt,n=[[],[]];e.P=[new r,new r];const a=e.P[0].blockSize/32;t.length>a&&(t=(new r).update(t).j());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e.P[0].update(n[0]),e.P[1].update(n[1]),e.W=new r(e.P[0])}reset(){const t=this;t.W=new t.B(t.P[0]),t.L=!1}update(t){this.L=!0,this.W.update(t)}digest(){const t=this,e=t.W.j(),r=new t.B(t.P[1]).update(e).j();return t.reset(),r}encrypt(t){if(this.L)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},Vt=typeof crypto!=U&&typeof crypto.getRandomValues==T,Ht="Invalid password",Gt="Invalid signature",Kt=Gt,Yt="zipjs-abort-check-password",Xt="Crypto API not supported";function Jt(t){if(Vt)return crypto.getRandomValues(t);throw new Error(Xt)}const Qt=16,$t={name:"PBKDF2"},te=Object.assign({hash:{name:"HMAC"}},$t),ee=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},$t),re=["deriveBits"],ne=[8,12,16],ae=[16,24,32],se=10,oe=[0,0,0,0],ie=typeof crypto!=U,ce=ie&&crypto.subtle,le=ie&&typeof ce!=U,de=Lt.bytes,fe=class{constructor(t){const e=this;e.Z=[[[],[],[],[],[]],[[],[],[],[],[]]],e.Z[0][0][0]||e.V();const r=e.Z[0][4],n=e.Z[1],a=t.length;let s,o,i,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("invalid aes key size");for(e.D=[o=t.slice(0),i=[]],s=a;s<4*a+28;s++){let t=o[s-1];(s%a===0||8===a&&s%a===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],s%a===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),o[s]=o[s-a]^t}for(let t=0;s;t++,s--){const e=o[3&t?s:s-4];i[t]=s<=4||t<4?e:n[0][r[e>>>24]]^n[1][r[e>>16&255]]^n[2][r[e>>8&255]]^n[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}V(){const t=this.Z[0],e=this.Z[1],r=t[4],n=e[4],a=[],s=[];let o,i,c,l;for(let t=0;t<256;t++)s[(a[t]=t<<1^283*(t>>7))^t]=t;for(let d=o=0;!r[d];d^=i||1,o=s[o]||1){let s=o^o<<1^o<<2^o<<3^o<<4;s=s>>8^255&s^99,r[d]=s,n[s]=d,l=a[c=a[i=a[d]]];let f=16843009*l^65537*c^257*i^16843008*d,u=257*a[s]^16843008*s;for(let r=0;r<4;r++)t[r][d]=u=u<<24^u>>>8,e[r][s]=f=f<<24^f>>>8}for(let r=0;r<5;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw new Error("invalid aes block size");const r=this.D[e],n=r.length/4-2,a=[0,0,0,0],s=this.Z[e],o=s[0],i=s[1],c=s[2],l=s[3],d=s[4];let f,u,p,m=t[0]^r[0],w=t[e?3:1]^r[1],h=t[2]^r[2],y=t[e?1:3]^r[3],b=4;for(let t=0;t<n;t++)f=o[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],u=o[w>>>24]^i[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],p=o[h>>>24]^i[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=o[y>>>24]^i[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=f,w=u,h=p;for(let t=0;t<4;t++)a[e?3&-t:t]=d[m>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],f=m,m=w,w=h,h=y,y=f;return a}},ue=class{constructor(t,e){this.G=t,this.K=e,this.Y=e}reset(){this.Y=this.K}update(t){return this.X(this.G,t,this.Y)}J(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}return t}$(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}X(t,e,r){let n;if(!(n=e.length))return[];const a=Wt.bitLength(e);for(let a=0;a<n;a+=4){this.$(r);const n=t.encrypt(r);e[a]^=n[0],e[a+1]^=n[1],e[a+2]^=n[2],e[a+3]^=n[3]}return Wt.h(e,a)}},pe=Zt.N;let me=ie&&le&&typeof ce.importKey==T,we=ie&&le&&typeof ce.deriveBits==T;class he extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){be(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:s,et:o,ready:i}=r;a?(await async function(t,e,r,n){const a=await xe(t,e,r,ve(n,0,ne[e])),s=ve(n,ne[e]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(Ht)}(r,s,a,ve(t,0,ne[s]+2)),t=ve(t,ne[s]+2),n?e.error(new Error(Yt)):o()):await i;const c=new Uint8Array(t.length-se-(t.length-se)%Qt);e.enqueue(ge(r,t,c,0,se,!0))},async flush(t){const{nt:e,st:r,ot:n,ready:s}=this;if(r&&e){await s;const o=ve(n,0,n.length-se),i=ve(n,n.length-se);let c=C;if(o.length){const t=ze(de,o);r.update(t);const n=e.update(t);c=Se(de,n)}const l=ve(Se(de,r.digest()),0,se);let d=n.length<se?1:0;for(let t=0;t<se;t++)d|=l[t]^i[t];if(d&&a)throw new Error(Kt);t.enqueue(c)}}})}}class ye extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){be(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:s,ready:o}=r;let i=C;n?(i=await async function(t,e,r){const n=Jt(new Uint8Array(ne[e]));return At(n,await xe(t,e,r,n))}(r,a,n),s()):await o;const c=new Uint8Array(i.length+t.length-t.length%Qt);c.set(i,0),e.enqueue(ge(r,t,c,i.length,0))},async flush(t){const{nt:e,st:r,ot:n,ready:a}=this;if(r&&e){await a;let s=C;if(n.length){const t=e.update(ze(de,n));r.update(t),s=Se(de,t)}const o=Se(de,r.digest()).slice(0,se);t.enqueue(At(s,o))}}})}}function be(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:Ee(e,r),strength:n-1,ot:C})}function ge(t,e,r,n,a,s){const{nt:o,st:i,ot:c}=t;c.length&&(e=At(c,e));const l=e.length-a;let d;for(r=function(t,e){if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t}(r,n+(l-l%Qt)),d=0;d<=l-Qt;d+=Qt){const t=ze(de,ve(e,d,d+Qt));s&&i.update(t);const a=o.update(t);s||i.update(a),r.set(Se(de,a),d+n)}return t.ot=ve(e,d),r}async function xe(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!me)return Zt.importKey(e);try{return await ce.importKey("raw",e,r,!1,a)}catch{return me=!1,Zt.importKey(e)}}(0,r,te,0,re),s=await async function(t,e,r){if(!we)return Zt._(e,t.salt,ee.iterations,r);try{return await ce.deriveBits(t,e,r)}catch{return we=!1,Zt._(e,t.salt,ee.iterations,r)}}(Object.assign({salt:n},ee),a,8*(2*ae[e]+2)),o=new Uint8Array(s),i=ze(de,ve(o,0,ae[e])),c=ze(de,ve(o,ae[e],2*ae[e])),l=ve(o,2*ae[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new ue(new fe(i),Array.from(oe)),st:new pe(c)}),l}function Ee(t,e){return e===F?Pt(t):e}function ve(t,e,r){return t.subarray(e,r)}function Se(t,e){return t.S(e)}function ze(t,e){return t.A(e)}class ke extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Re(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=De(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Ht);t=t.subarray(12)}n?e.error(new Error(Yt)):e.enqueue(De(r,t))}})}}class Ae extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Re(this,t,e,r)},transform(t,e){const r=this;let n,a;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Jt(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(Fe(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(Fe(r,t),a),e.enqueue(n)}})}}function Re(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,{keys:n,ct:new _t(n[0]),lt:new _t(n[2])}),r)for(let e=0;e<r.length;e++)Oe(t,r[e]);else for(let r=0;r<e.length;r++)Oe(t,e.charCodeAt(r))}(t,e,r)}function De(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ue(t)^e[n],Oe(t,r[n]);return r}function Fe(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ue(t)^e[n],Oe(t,e[n]);return r}function Oe(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=Ie(Math.imul(Ie(r+Te(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Ue(t){const e=2|t.keys[2];return Te(Math.imul(e,1^e)>>>8)}function Te(t){return 255&t}function Ie(t){return 4294967295&t}function je(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function Ce(t,e){t=je(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=T||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 Me(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 Ne="Invalid codec definition",_e="Reserved compression method",Be="Invalid codec module",Pe=[0,8,9,99],We=new Map,Le=new Map;function qe(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:s,DecompressionStream:o,versionNeeded:i}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=j||!n.length)throw new Error(Ne);if(Pe.includes(r))throw new Error(_e);const c=typeof s==T||typeof o==T;if(!(c||typeof a==j&&a.length))throw new Error(Ne);We.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&Ge(n,{CompressionStream:s,DecompressionStream:o})}function Ze(t){const e=We.get(t);if(e){let r;We.delete(t),We.forEach(t=>r=r||t.format==e.format),r||Le.delete(e.format)}}function Ve(t){return We.get(t)}function He(t){return Le.get(t)}function Ge(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=T&&typeof n!=T)throw new Error(Be);Le.set(t,{CompressionStream:r,DecompressionStream:n})}const Ke="Invalid uncompressed size",Ye="Invalid compressed data",Xe=Gt,Je="deflate-raw",Qe="gzip",$e=[31,139,8];class tr extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:s,useCompressionStream:o,zipCrypto:i,computeCrc32:c,level:l,deflate64:d,format:f,compressionMethod:u}=t,p=this;let m,w,h,y=super.readable;const b=f&&He(f),g=c&&a&&!d&&!b&&(!s||i)&&Boolean(o&&n);if(s&&!i||!c||g||(m=new Bt,y=lr(y,m)),a)if(b)y=dr(y,ir(b.CompressionStream,f,{level:l,chunkSize:e,compressionMethod:u}));else if(g)h=new er,y=dr(y,new n(Qe)),y=lr(y,h);else try{y=cr(y,o,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(Qe)}catch{throw t}y=dr(y,e),y=lr(y,new er)}s&&(i?y=lr(y,new Ae(t)):(w=new ye(t),y=lr(y,w))),or(p,y,()=>{s&&!i||!c||(p.crc32=g?h.crc32:new DataView(m.value.buffer).getUint32(0))})}}class er 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 a=r.length+t.length;if(a<=8)return void(r=At(r,t));const s=a-8,o=Math.min(s,r.length);n.enqueue(At(r.subarray(0,o),t.subarray(0,s-o))),r=At(r.subarray(o),t.subarray(s-o))},flush(){const e=Dt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class rr extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:s,checkCrc32:o,crc32:i,compressed:c,useCompressionStream:l,deflate64:d,format:f,compressionMethod:u,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(s&&(a?y=lr(y,new ke(t)):(h=new he(t),y=lr(y,h))),c){const t=f&&He(f);if(t)y=dr(y,ir(t.DecompressionStream,f,{chunkSize:e,compressionMethod:u,rawBitFlag:p,uncompressedSize:m}));else try{y=cr(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(Qe)}catch{throw t}y=function(t,e,r){const n=new _t;let a,s,o,i=0,c=!1;const l=new Promise((t,e)=>{s=t,o=e});l.catch(()=>{}),r||s();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set($e),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){c=!0,u();try{await l}finally{p()}const e=new Uint8Array(8),a=Dt(e);a.setUint32(0,n.get(),!0),a.setUint32(4,r,!0),t.enqueue(e)},cancel(t){o(t)}}),f=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?s():c&&u(),e.enqueue(t)},cancel(t){o(t)}});return t=lr(t,d),lr(t=dr(t,e),f);function u(){p(),a=setTimeout(()=>o(new Error(Ke)),5e3)}function p(){clearTimeout(a)}}(y,e,m)}y=function(t){const e=t.getReader();return new ReadableStream({async pull(t){let r;try{r=await e.read()}catch(t){if(t&&t.message)throw t;const e=new Error(Ye);throw e.cause=t,e}const{value:n,done:a}=r;a?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}(y)}o&&(w=new Bt,y=lr(y,w)),or(this,y,()=>{if(o){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(Xe)}})}}const nr=new Map;function ar(t,e){if(!t)return!1;let r=nr.get(t);r||(r=new Map,nr.set(t,r));let n=r.get(e);if(n===F){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function sr(t){return ar(t,Je)}function or(t,e,r){e=lr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function ir(t,e,r){if(!t)throw new Error("Compression method not supported");return new t(e,r)}function cr(t,e,r,n,a){const s=e&&n?n:a||n,o=r.deflate64?"deflate64-raw":Je;let i;try{i=new s(o,r)}catch(t){if(!e||!a||s==a)throw t;i=new a(o,r)}return dr(t,i)}function lr(t,e){return je(t).pipeThrough(e)}function dr(t,e){const r=e.writable.getWriter(),n=t.getReader();return async function(){try{for(;;){await r.ready;const t=await n.read();if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await async function(t,e){try{await t.abort(e)}catch{}}(r,t),await async function(t,e){try{await t.cancel(e)}catch{}}(n,t)}}(),e.readable}const fr="data",ur="deflate",pr="inflate";class mr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(ur)?a=tr:n.startsWith(pr)&&(a=rr),r.outputSize=0;let s=0;const o=new a(t,e),i=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(s+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:s})}}),l=new TransformStream({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw new Error(Ke)},flush(){const{crc32:t}=o;Object.assign(r,{crc32:t,inputSize:s})}});Object.defineProperty(r,"readable",{get:()=>i.pipeThrough(c).pipeThrough(o).pipeThrough(l)})}}class wr extends TransformStream{constructor(t){const e=[];let r=0;function n(){const n=new Uint8Array(t);let a=0;for(;a<t;){const r=e[0],s=t-a;r.length<=s?(n.set(r,a),a+=r.length,e.shift()):(n.set(r.subarray(0,s),a),e[0]=r.subarray(s),a+=s)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(a,s){for(e.push(a),r+=a.length;r>t;)s.enqueue(n())},flush(t){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))}})}}const hr="Worker startup timeout";let yr,br,gr,xr=()=>{};async function Er(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(sr(e)||ar(e,Qe))return!0;if(r)try{return await xr(t),!0}catch{return!1}return!1}function vr(t){t.createWorker?br=!0:yr=!1}class Sr{constructor(t,{readable:e,writable:r},{options:n,config:a,ut:s,useWebWorkers:o,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:f}=s;return br&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new wr(bt(a))).pipeThrough(new zr(s),{signal:f}),writable:r,options:Object.assign({},n),workerURI:c,createWorker:l,transferStreams:i,terminate:()=>new Promise(e=>{const{yt:r,wt:n}=t;r?(n?t.bt=e:(r.terminate(),e()),t.gt=null):e()}),xt(){if(t.wt){const{bt:e}=t;e&&(t.bt=null,t.Et=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),yr===F&&(yr=typeof Worker!=U),(o&&gr&&(yr&&c||l)?gr:Ar)(t,a)}}class zr extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await kr(t,r)},async transform(t,n){a+=t.length,e&&await kr(e,a,r),n.enqueue(t)},async flush(){n&&await kr(n,a)}})}}async function kr(t,...e){try{await t(...e)}catch{}}function Ar(t,e){return{run:()=>Rr(t,e)}}async function Rr({options:t,readable:e,writable:r,xt:n},a){let s;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(ur),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!sr(n))try{await xr(a)}catch{}}else try{await xr(a)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}s=new mr(t,a),await e.pipeThrough(s).pipeThrough(new wr(bt(a))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:n,inputSize:o,outputSize:i}=s;return{crc32:n,inputSize:o,outputSize:i}}catch(t){throw s&&(t.outputSize=s.outputSize),t}finally{n()}}const Dr={type:"module"},Fr="error";let Or,Ur,Tr,Ir=!0;try{Ir=typeof structuredClone==T&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var jr;function Cr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function Mr(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Nr(t,e,r,n,a=!0){const{createWorker:s}=r;let o,i,c;if(s)o=s();else if(Ur===F||Or!==t){const s=typeof t==T;i=s?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Dr);try{o=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(s&&d)return Nr(t,e,r,n,!1);if(n)throw a;return Nr(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Dr);try{i=new URL(i,e)}catch{}try{o=new Worker(i,c)}catch(s){if(n)return Nr(t,e,r,!1,a);throw s}}Or=t,Ur=i,Tr=c}else o=new Worker(Ur,Tr);return o.addEventListener("message",t=>{r.vt=!0,_r(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:s,error:o}=t,{reader:i,writer:c,St:l,zt:d,xt:f,ht:u}=e,p=()=>e.ht!=u;try{if(o){const{message:t,stack:e,code:r,name:n,outputSize:a,cause:s,codecImportFailed:i}=o,c=new Error(t);Object.assign(c,{stack:e,code:r,name:n,outputSize:a}),s&&(c.cause=Object.assign(new Error(s.message),{name:s.name})),i&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await i.read();p()||Pr({type:fr,value:t,done:r,messageId:a},e)}r==fr&&(await c.ready,await c.write(new Uint8Array(n)),p()||Pr({type:"ack",messageId:a},e)),"close"==r&&m(null,s)}}catch(o){p()||(Mr(e),m(o))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||f())}}(t,r)}),o.addEventListener(Fr,t=>Br(t,r)),o.addEventListener("messageerror",t=>Br(t,r)),o}function _r(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Br(t,e){t.preventDefault&&t.preventDefault(),_r(e);const{vt:r,zt:n,writer:a,xt:s}=e;Mr(e),r||(e.yt=null);let o=t.error||new Error(t.message||Fr);r||(o=Object.assign(new Error(o.message||Fr),{At:!0}),e.Rt=o),n&&(n(o),a&&a.releaseLock(),r&&s())}function Pr(t,{yt:e,writer:r,transferStreams:n,vt:a}){try{const{value:r,readable:s,writable:o}=t,i=[];if(r&&(t.value=Rt(r),i.push(t.value.buffer)),n&&Ir&&a?(s&&i.push(s),o&&i.push(o)):t.readable=t.writable=null,i.length)try{return e.postMessage(t,i),!0}catch{Ir=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}jr=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:s}=e;if(!t.gt){let o;typeof s==T&&(s=s());try{o=Nr(t.workerURI,r,t)}catch{return vr(t),Ar(t,e)}Object.assign(t,{yt:o,vt:!1,Et:!1,Rt:null,gt:{run:async()=>{try{return await async function(t,e){if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||new Error(hr);throw r.At=!0,r}let r,n;const a=new Promise((t,e)=>{r=t,n=e});Object.assign(t,{reader:null,writer:null,St:r,zt:n,result:a});const{readable:s,options:o}=t,{writable:i,closed:c,Dt:l}=function(t){const e=new AbortController,{writable:r,readable:n}=new TransformStream,a=n.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return a.catch(()=>{}),{writable:r,closed:a,Dt:()=>e.abort()}}(t.writable);let d;try{d=Pr({type:"start",options:o,config:e,readable:s,writable:i},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:s.getReader(),writer:i.getWriter()});const{workerStartupTimeout:f}=e;!t.vt&&Number.isFinite(f)&&f>=0&&(t.kt=setTimeout(()=>function(t){if(t.kt=null,t.vt)return;const{zt:e,writer:r}=t;if(Mr(t),t.yt=null,e){const t=new Error(hr);t.At=!0,e(t),r&&r.releaseLock()}}(t),f));try{const t=await a;return await u(),await c,t}catch(t){await u(),l();try{await c}catch{}throw t}async function u(){if(!d&&!i.locked)try{await i.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:s,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.At)return vr(t),Cr(t),Rr(t,e);if(r&&r.codecImportFailed){if(t.reader)return Cr(t),Rr(t,e);t.xt()}throw r}}}})}return t.gt},gr=jr;let Wr=[];const Lr=[];let qr,Zr,Vr=0;async function Hr(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:s,useCompressionStream:o,compressed:i,checkCrc32:c,computeCrc32:l,encrypted:d,format:f,codecURI:u}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;f&&(u&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(u,n.baseURI)),await async function(t,e){!Le.has(t)&&e&&Ge(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(f,r.codecURI)),e.transferStreams=!f&&(a||a===F&&n.transferStreams);const h=!(i||c||l||d),y=f===F||Boolean(r.codecURI);return e.useWebWorkers=!h&&y&&(s||s===F&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=o||o===F&&n.useCompressionStream,(await async function(){const r=Wr.find(t=>!t.wt);if(r)return Jr(r),new Sr(r,t,e,b);if(Wr.length<w){const r={Ft:Vr};return Vr++,Wr.push(r),new Sr(r,t,e,b)}return new Promise(r=>{Lr.push({resolve:r,stream:t,Ot:e}),Zr=n.workerStarvationTimeout,Gr()})}()).run();function b(t){if(Kr(),Lr.length){const[{resolve:e,stream:r,Ot:n}]=Lr.splice(0,1);e(new Sr(t,r,n,b)),Gr()}else t.yt?(Jr(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Et?t.Et=!1:t.Ut=setTimeout(async()=>{Wr=Wr.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):Wr=Wr.filter(e=>e!=t)}}function Gr(){!qr&&Lr.length&&Number.isFinite(Zr)&&Zr>=0&&(qr=setTimeout(Yr,Zr))}function Kr(){qr&&(clearTimeout(qr),qr=null)}function Yr(){if(qr=null,Lr.length){const[{resolve:t,stream:e,Ot:r}]=Lr.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new Sr({},e,n,Xr)),Gr()}}function Xr(){Kr(),Gr()}function Jr(t){const{Ut:e}=t;e&&(clearTimeout(e),t.Ut=null)}const Qr="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),$r=256==Qr.length;function tn(t,e){return en(t,e,!0)}function en(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){if($r){let e="";for(let r=0;r<t.length;r++)e+=Qr[t[r]];return e}return(new TextDecoder).decode(t)}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const rn="HTTP error ",nn="HTTP Range not supported",an="HTTP resource changed",sn="Writer iterator completed too soon",on="Writer not initialized",cn="Content-Range",ln="Range",dn="GET",fn="bytes",un=16777216,pn="writable",mn=Symbol();class wn{constructor(){this.size=0}init(){this.initialized=!0}}class hn extends wn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=bt(yt())}={}){const n=this;let a=0;return r=gt(r),new ReadableStream({async pull(s){const o=e===F?r:Math.min(r,e-a),i=await ea(n,t+a,o);i.length&&s.enqueue(i),a+r>=e||!i.length&&o?s.close():a+=r}})}}class yn extends wn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(on);return t.writeUint8Array(Rt(e))}});Object.defineProperty(t,pn,{get:()=>e})}writeUint8Array(){}}class bn extends hn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{Tt:t,It:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{It:r,Tt:n}=this,a=new Uint8Array(e),s=4*Math.floor(t/3),o=atob(n.substring(s+r,4*Math.ceil((t+e)/3)+r)),i=t-3*Math.floor(s/4);let c=0;for(let t=i;t<i+e&&t<o.length;t++)a[t-i]=o.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class gn extends yn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",jt:""})}writeUint8Array(t){const e=this;let r,n=e.jt;const a=e.jt.length;for(e.jt="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.jt+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.jt=n+e.jt}getData(){return this.data+btoa(this.jt)}}let xn,En;class vn extends hn{constructor(t){super(),Object.assign(this,{Ct:t,size:t.size}),En||(En=(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();xn=1==e}catch{xn=!1}})())}createReadable(t){const{Ct:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};return!n&&a>=r?je(e.stream()):xn?je(e.slice(n,n+a).stream()):super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.Ct:r.Ct.slice(t,n);let s=await a.arrayBuffer();return s.byteLength>e&&(s=s.slice(t,n)),new Uint8Array(s)}}class Sn extends wn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,pn,{get:()=>r.writable}),e.contentType=t,e.Mt=Ce(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class zn extends vn{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function kn(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 An extends Sn{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 en(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class Rn extends hn{constructor(t,e){super(),Fn(this,t,e)}async init(){await On(this,Ln,_n),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a}=e;if((r||n)&&a!==F){const{offset:r=0,size:n=a-r}=t||{};if(n>0&&r<a)return function(t,e,r){let n,a=e,s=0,o=r;return new ReadableStream({start:()=>i(),async pull(t){n||await i();const{value:e,done:r}=await n.read();if(r)throw new Error(nn);const a=e.length>s?e.subarray(0,s):e;s-=a.length,o-=a.length,a.length&&t.enqueue(a),s||(await async function(){const t=n;n=F,await t.cancel()}(),o||t.close())},cancel:t=>n&&n.cancel(t)});async function i(){const e=Math.min(t.maximumRangeSize,o),r=await Ln(dn,t,Mn(t,a,e));if(206!=r.status)throw new Error(nn);const i=r.headers.get(cn);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(nn)}Cn(t,r),jn(t,r),a+=e,s=e,n=r.body.getReader()}}(e,r,Math.min(n,a-r))}return super.createReadable(t)}readUint8Array(t,e){return Un(this,t,e,Ln,_n)}}class Dn extends hn{constructor(t,e){super(),Fn(this,t,e)}async init(){await On(this,qn,Bn),super.init()}readUint8Array(t,e){return Un(this,t,e,qn,Bn)}}function Fn(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:s,combineSizeEocd:o,checkResourceChanges:i=!0,maximumRangeSize:c=un,fetch:l}=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:a,forceRangeRequests:s,combineSizeEocd:o,checkResourceChanges:i,maximumRangeSize:c,fetch:l})}async function On(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:s,forceRangeRequests:o,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=yt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(s||o)&&(typeof a==U||a)){const n=await e(dn,t,Mn(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(o||a&&a.toLowerCase()==fn))throw new Error(nn);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==u&&(t._t=e)}jn(t,n);const a=Tn(n);a===F?await Wn(t,e,r):t.size=a}}else await Wn(t,e,r)}async function Un(t,e,r,n,a){const{useRangeHeader:s,forceRangeRequests:o,_t:i,size:c,options:l}=t;if(s||o){if(i&&e==c-u&&r==u)return i;if(e>=c||0===r)return C;{e+r>c&&(r=c-e);const a=await n(dn,t,Mn(t,e,r));if(206!=a.status)throw new Error(nn);const s=a.headers.get(cn);if(s){const t=Number(s.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(nn)}Cn(t,a),jn(t,a);const o=new Uint8Array(await a.arrayBuffer());if(o.length!=r)throw new Error(nn);return o}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function Tn(t){const e=t.headers.get(cn);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function In({headers:t}){return{Bt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function jn(t,e){const{checkResourceChanges:r,Pt:n}=t;r&&!n&&206==e.status&&(t.Pt=In(e))}function Cn(t,e){const{checkResourceChanges:r,Pt:n,size:a}=t;if(r){const t=Tn(e);if(t!==F&&a!==F&&t!=a)throw new Error(an);if(n){const t=In(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(an)}}}function Mn(t,e=0,r=1){return Object.assign({},Nn(t),{[ln]:fn+"="+(e<0?e:e+"-"+(e+r-1))})}function Nn({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function _n(t){await Pn(t,Ln)}async function Bn(t){await Pn(t,qn)}async function Pn(t,e){const r=await e(dn,t,Nn(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Wn(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,Nn(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function Ln(t,{fetch:e=fetch,options:r,url:n},a){const s=await e(n,Object.assign({},r,{method:t,headers:a}));if(s.status<400)return s;throw 416==s.status?new Error(nn):new Error(rn+(s.statusText||s.status))}function qn(t,{url:e},r){return new Promise((n,a)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",()=>{if(s.status<400){const t=[];s.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:s.status,arrayBuffer:()=>s.response,headers:new Map(t)})}else a(416==s.status?new Error(nn):new Error(rn+(s.statusText||s.status)))},!1),s.addEventListener("error",t=>a(t.detail?t.detail.error:new Error("Network error")),!1),s.open(t,e),r)for(const t of Object.entries(r))s.setRequestHeader(t[0],t[1]);s.responseType="arraybuffer",s.send()})}class Zn extends hn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Dn(t,e):new Rn(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 Vn extends Zn{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Hn extends hn{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Wt:t,size:t.length})}readUint8Array(t,e){return this.Wt.slice(t,t+e)}}class Gn extends yn{constructor(t){super(),this.Lt=t||262144}init(t=0){Object.assign(this,{offset:0,Wt:new Uint8Array(t>0?t:this.Lt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Wt.length){let t=e.Wt.length?2*e.Wt.length:e.Lt;for(;t<r;)t*=2;const n=e.Wt;e.Wt=new Uint8Array(t),e.Wt.set(n)}e.Wt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Wt.length?this.Wt:this.Wt.slice(0,this.offset)}}class Kn extends hn{constructor(t){super(),this.qt=t}async init(){const t=this;t.Zt=0;const e=t.qt=await Promise.all(t.qt.map(ta));t.Vt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Vt:e,size:r}=this,n=e[t];return n===F?r:n}async readUint8Array(t,e){const r=this,{qt:n}=this;let a,s=0,o=t;for(;n[s]&&o>=n[s].size;)o-=n[s].size,s++;const i=n[s];if(i){const n=i.size;if(o+e<=n)a=await ea(i,o,e);else{const s=n-o;a=At(await ea(i,o,s),await r.readUint8Array(t+s,e-s))}}else a=C;return r.Zt=Math.max(s,r.Zt),a}}class Yn extends wn{constructor(t,e=4294967295){super();const r=this;let n,a,s;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const o=new WritableStream({async write(e){if(e===mn)return void(s&&await c());const{availableSize:o}=r;if(s)e.length>=o?(await i(e.subarray(0,o)),await c(),e.length>o&&await this.write(e.subarray(o))):await i(e);else{const{value:o,done:i}=await t.next();if(i&&!o)throw new Error(sn);n=o,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await $n(n),a=o.writable,s=a.getWriter(),await this.write(e)}},async close(){s&&(await s.ready,await l())},async abort(t){s&&await s.abort(t)}});async function i(t){const e=t.length;e&&(await s.ready,await s.write(t),n.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=n.size,r.diskNumber++,s=null,r.availableSize=r.maxSize}async function l(){await s.close()}Object.defineProperty(r,pn,{get:()=>o})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(mn)}finally{t.releaseLock()}}}class Xn{constructor(t){return Array.isArray(t)&&(t=new Kn(t)),(t instanceof ReadableStream||typeof t.getReader==T)&&(t={readable:je(t)}),t}}class Jn{constructor(t){return t.writable===F&&typeof t.next==T&&(t=new Yn(t)),(t instanceof WritableStream||typeof t.getWriter==T)&&(t={writable:Me(t)}),t.size===F&&(t.size=0),t}}function Qn(t){return Boolean(t&&t.getData)}async function $n(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function ta(t){return t=new Xn(t),await $n(t),t.size!==F&&t.readUint8Array||(t=new vn(await Ce(t.readable)),await $n(t)),t}function ea(t,e,r){return t.readUint8Array(e,r)}function ra(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?hn.prototype.createReadable.call(t,e):t.readable}const na="filename",aa="rawFilename",sa="comment",oa="rawComment",ia="uncompressedSize",ca="compressedSize",la="offset",da="diskNumberStart",fa="lastModDate",ua="rawLastModDate",pa="lastAccessDate",ma="rawLastAccessDate",wa="creationDate",ha="rawCreationDate",ya="internalFileAttributes",ba="externalFileAttributes",ga="internalFileAttribute",xa="externalFileAttribute",Ea="msdosAttributesRaw",va="msdosAttributes",Sa="msDosCompatible",za="zip64",ka="encrypted",Aa="version",Ra="versionMadeBy",Da="zipCrypto",Fa="directory",Oa="executable",Ua="compressionMethod",Ta="signature",Ia="extraField",ja="unixMode",Ca="setuid",Ma="setgid",Na="sticky",_a=[na,aa,ia,ca,fa,ua,sa,oa,pa,ma,wa,ha,la,da,ya,ba,ga,xa,Ea,va,Sa,za,ka,Aa,Ra,Da,Fa,Oa,"symlink",Ua,Ta,"crc32",Ia,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",ja,"unixExternalUpper",Ca,Ma,Na,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class Ba{constructor(t){_a.forEach(e=>this[e]=t[e])}}const Pa="File format is not recognized",Wa="End of central directory not found",La="End of Zip64 central directory locator not found",qa="Central directory header not found",Za="Local file header not found",Va="Zip64 extra field not found",Ha="File contains encrypted entry",Ga="Encryption method not supported",Ka="Compression method not supported",Ya="Split zip file",Xa="Overlapping entry found",Ja="Entry data out of bounds",Qa="Ambiguous archive",$a="Encrypted central directory is not supported",ts="Unsafe filename",es="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",rs="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",ns="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",as="64-bit value exceeds Number.MAX_SAFE_INTEGER",ss="unsorted central directory",os="unknown version needed to extract",is="compressed patched data",cs="malformed extra field",ls="unknown zip64 extensible data",ds="wrapped entries count",fs="appended data",us="prepended data",ps="trailing central directory data",ms="duplicate filename",ws="mismatched zip64 end of central directory record",hs="mismatched local file header (general purpose bit flag)",ys="mismatched local file header (compression method)",bs="mismatched local file header (crc32 or sizes)",gs=/^[a-zA-Z]:/,xs="utf-8",Es="cp437",vs=[[ia,t],[ca,t],[la,t],[da,e]],Ss={[e]:{Gt:oo,bytes:4},[t]:{Gt:io,bytes:8}},zs=BigInt(Number.MAX_SAFE_INTEGER);class ks{constructor(t,e={}){Object.assign(this,{reader:new Xn(t),options:e,Kt:new Map})}async*getEntriesGenerator(n={}){const s=this;let{reader:o}=s;if(await $n(o),o.size!==F&&o.readUint8Array||(o=new vn(await Ce(o.readable)),await $n(o)),o.size<u)throw new Error(Pa);const c=s.warnings=[],w=Ls(n,s.options),h=w==J,y=w!=$,b=Vs(to(s,n,G),w),g=function(t,e){if(t===F)return e;if(!Ws(t))throw new Error(rs);return t}(to(s,n,"filenameValidation"),w),x=to(s,n,"normalizeFilename"),{Yt:A,Xt:R}=await Hs(o,y,b);if(!A)throw await async function(t){return await Ps(t)==a}(o)?new Error(Ya):new Error(Wa);y&&R>1&&$s("multiple end of central directory records");const D=Dt(A);let O=oo(D,12),U=oo(D,16);const T=A.offset,I=so(D,20),j=T+u+I,M=o.size-j;M>b&&$s(fs),M>0&&Qs(c,fs);let N=so(D,4);const _=o.Zt||0;let B,P,W,L,q=so(D,6),Z=so(D,10),V=0,H=m;const K=U==t||O==t||Z==e||q==e;if(U!=t&&q!=e&&(U+=Bs(o,q)),K){const r=A.offset>=p?await ea(o,A.offset-p,p):C,n=Dt(r);if(r.length==p&&oo(n,0)==d){U=Bs(o,oo(n,4))+io(n,8);let r=await ea(o,U,m),a=Dt(r);const s=A.offset-p-m;if((r.length<m||oo(a,0)!=l)&&U!=s&&s>=0){const t=U;U=s,U>t&&(V=U-t),r=await ea(o,U,m),a=Dt(r)}if(r.length<m||oo(a,0)!=l)throw new Error(La);if(P=!0,W=io(a,4)>44,W){const t=Math.min(io(a,4)-44,o.size-U-m);t>0&&(H+=t,L=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Dt(t),n=so(r,26);Object.assign(e,{compressionMethod:so(r,0),compressedSize:io(r,2),uncompressedSize:io(r,10),encryptionAlgorithm:so(r,18),bitLength:so(r,20),flags:so(r,22),hashAlgorithm:so(r,24),hashData:t.subarray(28,28+n)})}return e}(await ea(o,U+m,t)))}N==e?N=oo(a,16):N!=oo(a,16)&&Js(h,c,ws),q==e?q=oo(a,20):q!=oo(a,20)&&Js(h,c,ws),Z==e?Z=io(a,32):Z!=io(a,32)&&Js(h,c,ws),O==t?O=io(a,40):O!=io(a,40)&&Js(h,c,ws),U=Bs(o,q)+io(a,48)+V}}let Q=O;const tt=A.offset-(P?H+p:0);if(U>=o.size&&(V=o.size-U-O-u,U=o.size-O-u),_!=N)throw new Error(Ya);if(U<0)throw new Error(Pa);let et=0,rt=await ea(o,U,O),nt=Dt(rt);if(O){if(rt.length<4)throw new Error(Pa);const t=tt-O;if(U!=t&&q==N){let e=!(oo(nt,et)==i||Boolean(L&&L.compressedSize)||Fs(nt));if(!e&&t>=0&&t+4<=o.size&&(e=oo(Dt(await ea(o,t,4)),0)==i),e){const e=U;U=t,U>e&&(V+=U-e),rt=await ea(o,U,O),nt=Dt(rt)}}}const at=tt-U;if(O!=at&&at>=0&&q==N&&(O=at,rt=await ea(o,U,O),nt=Dt(rt)),U<0||U>=o.size)throw new Error(Pa);s.directoryOffset=U,s.directoryLength=Q;const st=eo(s,n,"decryptCentralDirectory");let ot,it;if(st&&Z&&rt.length>=4&&oo(nt,0)!=i&&(W||Fs(nt))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(L,Q,rt.length);it=rt.subarray(t),rt=await st(rt.subarray(0,t),L),nt=Dt(rt),Q=rt.length,ot=!0}L&&!ot&&(rt.length<4||oo(nt,0)==i)&&Qs(c,ls),B=U;const ct=to(s,n,"filenameEncoding"),lt=to(s,n,"commentEncoding"),dt=new Set;let ft,ut=-1;const pt=!h&&!P;!Z&&pt&&(Z=Os(nt,rt,et),Z&&Qs(c,ds));for(let t=0;t<Z;t++){const a=new Ds(o,s.options);if(et+f>rt.length||oo(nt,et)!=i){if(0==t&&!ot&&(W||Fs(nt)))throw new Error($a);throw new Error(qa)}Ts(a,nt,et+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=et+f,u=d+a.filenameLength,p=u+a.extraFieldLength,m=so(nt,et+4),w=!(m>>8),h=m>>8==3,y=rt.subarray(d,u),b=so(nt,et+32),A=p+b,R=rt.subarray(p,A),D=l,O=l,U=oo(nt,et+38),T=U&r,I={readOnly:Boolean(1&T),hidden:Boolean(2&T),system:Boolean(4&T),directory:Boolean(16&T),archive:Boolean(32&T)},j=oo(nt,et+42),C=eo(s,n,"decodeText")||tn,M=D?xs:ct||Es,N=O?xs:lt||Es;let _=C(y,M,Y);if(_===F&&(_=tn(y,M)),x){const t=x(_);t!==F&&(_=t)}if(Zs(_,g)){const t=new Error(ts);throw t.filename=_,t}let P=C(R,N,X);P===F&&(P=tn(R,N)),Object.assign(a,{index:t,Jt:ot,versionMadeBy:m,msDosCompatible:w,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:b,offset:j,diskNumberStart:so(nt,et+34),internalFileAttributes:so(nt,et+36),externalFileAttributes:U,msdosAttributesRaw:T,msdosAttributes:I,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:rt.subarray(u,p),rawComment:R,filename:_,comment:P}),Is(a,a,nt,et+6)&&Qs(c,cs,_),a.offset+=V;const L=Bs(o,a.diskNumberStart)+a.offset;B=Math.min(L,B),L<ut&&Qs(c,ss,_),ut=L,(a.version&r)>63&&Qs(c,os,_),32&~a.rawBitFlag||Qs(c,is,_),dt.has(a.filename)&&(ft=!0),dt.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&q&&(a.unixMode=q);const H=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),J=40960==((a.unixMode===F?q:a.unixMode)&E),Q=!J&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&q)),$=a.unixMode!==F&&(a.unixMode&E)==v,tt=(q&E)==v;Object.assign(a,{setuid:H,setgid:G,sticky:K,symlink:J,unixExternalUpper:q,internalFileAttribute:a.internalFileAttributes,externalFileAttribute:a.externalFileAttributes,executable:Q,directory:$||tt||w&&I.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const at=new Ba(a);if(at.getData=(t,e)=>a.getData(t,at,s.Kt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=Ce(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,at,s.Kt,t),r},et=A,t==Z-1&&pt){const t=Os(nt,rt,et);t&&(Z+=t,Qs(c,ds))}const{onprogress:st}=n;if(st)try{await st(t+1,Z,new Ba(a))}catch{}yield at}let mt=et,wt=Us(rt.subarray(et))||(ot?Us(it):F);if(!wt&&!ot){const t=U+et,e=Math.min(tt-t,65541);e>=6&&(wt=Us(await ea(o,t,e)))}wt&&(s.digitalSignature=wt,mt=et+6+wt.length),(et!=Q&&mt!=Q||!ot&&et!=O&&mt!=O)&&Js(h,c,ps),ft&&Js(h,c,ms);const ht=to(s,n,"extractPrependedData"),yt=to(s,n,"extractAppendedData"),bt=(h||ht)&&Z&&4==B&&await async function(t){const e=await Ps(t);return e==a||808471376==e}(o)?4:0;return h&&(V||Z&&B>bt)&&$s(us),(V||Z&&B>4)&&Qs(c,us),ht&&(s.prependedData=B>bt?await ea(o,bt,B-bt):C),s.comment=I?await ea(o,T+u,I):C,yt&&(s.appendedData=j<o.size?await ea(o,j,o.size-j):C),!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()}}class As{constructor(t={}){const{readable:e,writable:r}=new TransformStream,n=new ks(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await n.next();if(e)return t.close();const a={...r,readable:function(){const{readable:t,writable:e}=new TransformStream;if(r.getData)return async function(){try{await r.getData(e)}catch(t){try{await e.abort(t)}catch{}}}(),t}()};delete a.getData,t.enqueue(a)}}),this.writable=r}}async function Rs(t,e={}){if(t=new Xn(t),await $n(t),t.size!==F&&t.readUint8Array||(t=new vn(await Ce(t.readable)),await $n(t)),t.size<u)return!1;const r=Ls(e,{}),n=r!=$,a=Vs(e[G],r),{Yt:s,Xt:o}=await Hs(t,n,a);if(!s||r==J&&o>1)return!1;const i=so(Dt(s),20),c=s.offset+u+i;return t.size-c<=a}let Ds=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,o={}){const i=this,c=yt(),{reader:l,index:d,offset:f,diskNumberStart:u,extraFieldAES:p,extraFieldZip64:m,compressionMethod:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:E}=i,{dataDescriptor:v}=h,S=e.localDirectory={},z=e.warnings=[],k=Bs(l,u)+f,R=await ea(l,k,A),D=Dt(R);let O=to(i,o,M),U=to(i,o,N);const T=to(i,o,_);if(st(O,U),O=O&&O.length&&O,U=U&&U.length&&U,p&&99!=p.originalCompressionMethod)throw new Error(Ka);if(R.length<A||oo(D,0)!=n)throw new Error(Za);Ts(S,D,4);const{extraFieldLength:I,filenameLength:j}=S,Z=S.dataOffset=k+A+j+I,V=to(i,o,"checkLocalDirectory"),H=Ls(o,i.options),G=function(t,e){return t===F?e!=$:Boolean(t)}(V,H),K=function(t,e){return t===F?e==J:Boolean(t)}(V,H);let Y=C;if(K&&(j||I)){const t=await ea(l,k+A,j+I);Y=t.subarray(0,j),S.rawExtraField=t.subarray(j)}else S.rawExtraField=I?await ea(l,k+A+j,I):C;K&&(S.rawFilename=Y),Is(i,S,D,4,!0)&&Qs(z,cs),function(t,e,r,n,a){const{rawFilename:s}=t,o=!a,i=t.Jt&&!(8192&~e.rawBitFlag);!n||i||r.length==s.length&&!r.some((t,e)=>t!=s[e])||Js(o,a,"mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&Js(o,a,hs),e.compressionMethod!=t.compressionMethod&&Js(o,a,ys),e.bitFlag.dataDescriptor||i||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Js(o,a,bs)}(i,S,Y,K,G?F:z);const{lastAccessDate:X,creationDate:Q,uid:tt,gid:et}=S;X&&(e.lastAccessDate=X),Q&&(e.creationDate=Q),tt!==F&&e.uid===F&&(e.uid=tt),et!==F&&e.gid===F&&(e.gid=et);const rt=i.encrypted&&S.encrypted&&!T,nt=rt&&!p;if(T||(e.zipCrypto=nt),rt&&!(64&~S.rawBitFlag))throw new Error(Ga);const ot=T?F:Ve(w);if(0!=w&&8!=w&&9!=w&&!ot&&!T)throw new Error(Ka);if(rt){if(!nt&&(p.strength<1||p.strength>3))throw new Error(Ga);if(!O&&!U)throw new Error(Ha)}if(Z+E>l.size)throw new Error(Ja);const it=E,ct=je(l.createReadable({offset:Z,size:it})),lt=at(to(i,o,B)),dt=to(i,o,"checkPasswordOnly");let ft=to(i,o,"checkOverlappingEntry");const ut=to(i,o,"checkOverlappingEntryOnly");ut&&(ft=!0);const{onstart:pt,onprogress:mt,onend:wt}=o,ht=0!=w&&!T,bt=T?E:x,gt=9==w;let xt=to(i,o,W);gt&&(xt=!1);const Et=to(i,o,"checkCrc32"),vt=(Et===F?to(i,o,"checkSignature"):Et)&&!T&&(!rt||nt||p&&1==p.vendorVersion),St={options:{codecType:pr,password:O,rawPassword:U,zipCrypto:nt,encryptionStrength:p&&p.strength,checkCrc32:vt,checkAuthenticationCode:to(i,o,"checkAuthenticationCode"),passwordVerification:nt&&(v?g>>>8&r:b>>>24&r),outputSize:bt,crc32:b,compressed:ht,encrypted:rt,useWebWorkers:to(i,o,P),useCompressionStream:xt,transferStreams:to(i,o,L),deflate64:gt,format:ot?ot.format:F,codecURI:ot?ot.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:dt},config:c,ut:{signal:lt,size:it,onstart:pt,onprogress:mt,onend:wt}};let zt,kt;ft&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:o,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Kt:f}){let u=0;if(l&&(u=d?20:12),u){const r=await ea(t,c+o,u+4),n=Dt(r);let l=r.length==u+4&&oo(n,0)==s;if(l){const t=_s(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==o&&t.uncompressedSize==i?u+=4:l=!1}if(r.length>=u){const t=_s(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+o+u,$t:e};for(const[t,e]of f)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(Xa);throw t.overlappingEntry=e.$t,t}f.set(r,p)}({reader:l,$t:e,index:d,offset:k,crc32:b,compressedSize:E,uncompressedSize:x,dataOffset:Z,dataDescriptor:v||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Kt:a});try{if(!ut){dt&&(t=new WritableStream),t=new Jn(t),await $n(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(bt,E,ht)),({writable:zt}=t);const{outputSize:e}=await Hr({readable:ct,writable:zt},St);if(t.size+=e,e!=bt)throw new Error(Ke)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!dt||e.message!=Yt)throw kt=e,e}finally{if((Qn(t)||!to(i,o,q))&&zt&&!zt.locked){const t=zt.getWriter();if(kt)try{await t.abort(kt)}catch{}else await t.close()}}return dt||ut?F:t.getData?t.getData():zt}};function Fs(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==oo(t,r))return!0;return!1}function Os(t,e,r){let n=0;for(;r+f<=e.length&&oo(t,r)==i;)r+=f+so(t,r+28)+so(t,r+30)+so(t,r+32),n++;return n%65536?0:n}function Us(t){if(t.length>=6){const e=Dt(t);if(oo(e,0)==o){const r=so(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function Ts(t,e,r){const n=t.rawBitFlag=so(e,r+2),a=!(1&~n),s=oo(e,r+6);Object.assign(t,{encrypted:a,version:so(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:s,lastModDate:ro(s),filenameLength:so(e,r+22),extraFieldLength:so(e,r+24)})}function Is(t,e,r,n,a){const{rawExtraField:s}=e,o=e.extraField=new Map,i=Dt(s);let c=0,l=!1;try{for(;c<s.length;){const t=so(i,c),e=so(i,c+2);o.set(t,{type:t,data:s.slice(c+4,c+4+e)}),c+=4+e}}catch{l=!0}c>s.length&&(l=!0);const d=so(r,n+4);Object.assign(e,{signature:oo(r,n+10),crc32:oo(r,n+10),compressedSize:oo(r,n+14),uncompressedSize:oo(r,n+18)});const f=o.get(1);f&&(function(t,e){e.zip64=!0;const r=Dt(t.data),n=vs.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+Ss[e].bytes,0);if(t.data.length<a)throw new Error(Va);for(let a=0,s=0;a<n.length;a++){const[o,i]=n[a],c=Ss[i];e[o]=t[o]=c.Gt(r,s),s+=c.bytes}}(f,e),e.extraFieldZip64=f);const u=o.get(28789);u&&(js(u,na,aa,e,t),e.extraFieldUnicodePath=u);const p=o.get(25461);p&&(js(p,sa,oa,e,t),e.extraFieldUnicodeComment=p);const m=o.get(w);m&&m.data.length>=7?(function(t,e,r){const n=Dt(t.data),a=ao(n,4);Object.assign(t,{vendorVersion:ao(n,0),vendorId:ao(n,2),strength:a,originalCompressionMethod:r,compressionMethod:so(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(m,e,d),e.extraFieldAES=m):e.compressionMethod=d;const x=o.get(13);x&&(Cs(x,e),e.extraFieldPkwareUnix=x);const E=o.get(22613);E&&(Cs(E,e),e.extraFieldUnixType1=E);const v=o.get(10);v&&(function(t,e){const r=Dt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=so(r,a),s=so(r,a+2);1==e&&(n=t.data.slice(a+4,a+4+s)),a+=4+s}}catch{}if(n&&24==n.length){const r=Dt(n),a=r.getBigUint64(0,!0),s=r.getBigUint64(8,!0),o=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:s,rawCreationDate:o});const i={lastModDate:no(a),lastAccessDate:no(s),creationDate:no(o)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:s,rawCreationDate:o})}}(v,e),e.extraFieldNTFS=v);const S=o.get(g);let z;if(S&&(z=Ms(S,e,!1),e.extraFieldUnix=S),!z){const t=o.get(b);t&&(Ms(t,e,!0),e.extraFieldInfoZip=t)}const k=o.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Dt(t.data),a=ao(n,0),s=[],o=[];r?(1&~a||(s.push(fa),o.push(ua)),2&~a||(s.push(pa),o.push(ma)),4&~a||(s.push(wa),o.push(ha))):t.data.length>=5&&(s.push(fa),o.push(ua));let i=1;s.forEach((r,a)=>{if(t.data.length>=i+4){const s=oo(n,i);e[r]=t[r]=new Date(1e3*(0|s));const c=o[a];t[c]=s}i+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=o.get(y);return A&&(e.extraFieldUSDZ=A),l}function js(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const s=Dt(t.data),o=new _t;o.append(a[r]);const i=Dt(new Uint8Array(4));i.setUint32(0,o.get(),!0);const c=oo(s,1),l=ao(s,0);Object.assign(t,{version:l,[e]:tn(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==oo(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function Cs(t,e){if(t.data.length<8)return;const r=Dt(t.data),n={lastAccessDate:new Date(1e3*(0|oo(r,0))),lastModDate:new Date(1e3*(0|oo(r,4)))};t.data.length>=12&&(n.uid=so(r,8),n.gid=so(r,10)),Object.assign(t,n),Object.assign(e,n)}function Ms(t,e,r){try{const n=Dt(t.data);let a,s;if(r){let e=0;const r=ao(n,e++),o=ao(n,e++);a=Ns(t.data.subarray(e,e+o)),e+=o;const i=ao(n,e++);s=Ns(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:s})}else t.data.length>=4&&(a=so(n,0),s=so(n,2),Object.assign(t,{uid:a,gid:s}));return a!==F&&(e.uid=a),s!==F&&(e.gid=s),a!==F||s!==F}catch{}}function Ns(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function _s(t,e,r){const n=oo(t,e);let a,s;return r?(a=io(t,e+4),s=io(t,e+12)):(a=oo(t,e+4),s=oo(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:s}}function Bs(t,e){return t.Ht?t.Ht(e):0}async function Ps(t){return oo(Dt(await ea(t,0,4)))}function Ws(t){return t===J||t===Q||t===$}function Ls(t,e){return qs(t,qs(e,Q))}function qs(t,e){const r=t.strictness;if(r!==F){if(!Ws(r))throw new Error(es);return r}const n=t.checkAmbiguity;return n===F?e:n?J:e==$?$:Q}function Zs(t,e){if(e==$)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||gs.test(t))||e==J&&(r.includes(".")||r.includes(""))}function Vs(t,r){if(t!==F){const e=ct(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(ns);return e}return r==J?0:r==$?1/0:e}async function Hs(t,e,r){const{size:n}=t,a=Math.min(n,65557),s={count:64};let o,i,c=0;for await(const[r,l,d,f,p]of Gs(t,a)){const a=so(r,f+20);if(p+u+a==n){const a=await Ys(t,r,l,f,p,n,s);if(2==a){if(o||(o=Ks(d,f,p)),c++,!e||c>1)break}else 1!=a||i||(i=Ks(d,f,p))}}return o||(o=i),o||(o=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let s,o;for await(const[e,i,c,l,d]of Gs(t,a)){const a=Ks(c,l,d);s||(s=a);const f=await Ys(t,e,i,l,d,n,r);if(2==f)return a;1!=f||o||(o=a)}return o||s}(t,r,s)),{Yt:o,Xt:c}}async function*Gs(t,e){const r=t.size-e,n=await ea(t,r,e),a=Dt(n);for(let t=n.length-u;t>=0;t--)oo(a,t)==c&&(yield[a,r,n,t,r+t])}function Ks(t,e,r){return{offset:r,buffer:t.slice(e,e+u).buffer}}async function Ys(r,n,a,s,o,c,l){const f=so(n,s+10),u=oo(n,s+12),m=oo(n,s+16);if(f==e||u==t||m==t)return await Xs(r,n,a,o-p,c,l)==d?2:0;if(!f&&!u)return 1;const w=so(n,s+6);for(const t of[o-u,Bs(r,w)+m])if(await Xs(r,n,a,t,c,l)==i)return 2;return 0}async function Xs(t,e,r,n,a,s){return n<0||n+4>a?F:n>=r?oo(e,n-r):s.count>0?(s.count--,oo(Dt(await ea(t,n,4)),0)):F}function Js(t,e,r){t?$s(r):Qs(e,r)}function Qs(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==F&&(n.filename=r),t.push(n)}}function $s(t){const e=new Error(Qa);throw e.reason=t,e}function to(t,e,r){return e[r]===F?t.options[r]:e[r]}function eo(t,e,r){return nt(to(t,e,r))}function ro(t){const r=(4294901760&t)>>16,n=t&e,a=new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&n)>>11,(2016&n)>>5,2*(31&n),0);return a<D?D:a}function no(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function ao(t,e){return t.getUint8(e)}function so(t,e){return t.getUint16(e,!0)}function oo(t,e){return t.getUint32(e,!0)}function io(t,e){const r=t.getBigUint64(e,!0);if(r>zs)throw new Error(as);return Number(r)}var co=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Qa,ERR_BAD_FORMAT:Pa,ERR_CENTRAL_DIRECTORY_NOT_FOUND:qa,ERR_ENCRYPTED:Ha,ERR_ENCRYPTED_CENTRAL_DIRECTORY:$a,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Ja,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:La,ERR_EOCDR_NOT_FOUND:Wa,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Va,ERR_INVALID_AUTHENTICATION_CODE:Kt,ERR_INVALID_COMPRESSED_DATA:Ye,ERR_INVALID_CRC32:Xe,ERR_INVALID_FILENAME_VALIDATION:rs,ERR_INVALID_MAX_APPENDED_DATA_SIZE:ns,ERR_INVALID_PASSWORD:Ht,ERR_INVALID_SIGNATURE:Gt,ERR_INVALID_STRICTNESS:es,ERR_INVALID_UNCOMPRESSED_SIZE:Ke,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Za,ERR_OVERLAPPING_ENTRY:Xa,ERR_SPLIT_ZIP_FILE:Ya,ERR_UNSAFE_FILENAME:ts,ERR_UNSUPPORTED_COMPRESSION:Ka,ERR_UNSUPPORTED_ENCRYPTION:Ga,ERR_UNSUPPORTED_UINT64:as,ERR_WORKER_STARTUP_TIMEOUT:hr,WARNING_APPENDED_DATA:fs,WARNING_COMPRESSED_PATCHED_DATA:is,WARNING_DUPLICATE_FILENAME:ms,WARNING_MALFORMED_EXTRA_FIELD:cs,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:hs,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:ys,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:bs,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:ws,WARNING_PREPENDED_DATA:us,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:ps,WARNING_UNKNOWN_VERSION:os,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:ls,WARNING_UNSORTED_CENTRAL_DIRECTORY:ss,WARNING_WRAPPED_ENTRIES_COUNT:ds,ZipReader:ks,ZipReaderStream:As,isZipFile:Rs});const lo="File already exists",fo="Zip file comment exceeds 64KB",uo="Invalid zip file comment (must be a Uint8Array)",po="File entry comment exceeds 64KB",mo="Invalid file entry comment (must be a string)",wo="Invalid date (must be a valid Date instance)",ho="File entry name exceeds 64KB",yo="Version exceeds 65535",bo="The strength must equal 1, 2, or 3",go="Encryption is not supported in USDZ files",xo="Encryption is not supported when the 'passThrough' option is set",Eo="Invalid extra field (must be a Map)",vo="Invalid extra field type (must be integer 0..65535)",So="Invalid extra field data (must be a Uint8Array)",zo="Extra field data exceeds 64KB",ko=-2147483648,Ao=2147483647,Ro=BigInt(0),Do=BigInt("0x7fffffffffffffff"),Fo="Zip64 is not supported (set the 'zip64' option to 'true')",Oo="Undefined uncompressed size",Uo="Undefined compression method",To="Undetermined size",Io="Undefined reader",jo="Zip file not empty",Co="Invalid uid (must be integer 0..2^32-1)",Mo="Invalid gid (must be integer 0..2^32-1)",No="Invalid UNIX mode (must be integer 0..65535)",_o="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",Bo="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Po="Invalid msdosAttributesRaw (must be integer 0..255)",Wo="Invalid msdosAttributes (must be an object with boolean flags)",Lo="Invalid level (must be integer 0..9)",qo="Signature data exceeds 64KB",Zo=new Uint8Array([7,0,2,0,65,69,3,0,0]),Vo="infozip",Ho="unix";let Go=0;const Ko=[];class Yo{constructor(t,e={}){t=new Jn(t);const{availableSize:r=O,maxSize:n=O}=t,a=r>0&&r!==O&&n>0&&n!==O;Object.assign(this,{writer:t,te:a,options:e,ee:new Map,re:new Set,offset:e[V]===F?t.size||t.writable.size||0:e[V],ne:e[V]===F?0:e[V]-(t.size||t.writable.size||0),ae:new Set,se:[],oe:0,ie:F})}prependZip(t){return Qo(this,async function(t,e){if(t.re.size)throw new Error(jo);await t.ce(e)}(this,t))}appendZip(t){return Qo(this,this.ce(t))}async ce(t){const e=this,{ae:r,re:n,ee:s}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let o;const i=new Promise(t=>o=t);r.add(i);const c=[];let l;try{t=new Xn(t),await $n(t),t.size!==F&&t.readUint8Array||(t=new vn(await Ce(t.readable)),await $n(t));const{ZipReader:r}=await Promise.resolve().then(function(){return co}),o=new r(t),i=await o.getEntries();await o.close(),await $n(e.writer);const{directoryOffset:d}=o;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(lo);n.add(t),c.push(t)}),e.le=!0;const{de:f}=e;e.de=new Promise(t=>l=()=>{e.le=!1,t()}),await f,e.te&&(delete e.te,await async function(t){return Dt(await ea(t,0,4)).getUint32(0,!0)==a}(t)||(await Ei(e.writer,gi()),e.offset+=4));const u=await async function(t,e,r,n){const{writer:a}=t,s=new Map;if(a.closeDisk){const o=Array.from(r).sort((t,r)=>bi(e,t)-bi(e,r));let i=0;for(const r of o){const n=bi(e,r);await hi(t,e,i,n-i),pi(a,await yi(e,n))&&await a.closeDisk(),s.set(r,{offset:mi(t,a),diskNumberStart:fi(a)}),i=n}await hi(t,e,i,n-i)}else{const a=t.offset;await hi(t,e,0,n),r.forEach(t=>s.set(t,{offset:a+bi(e,t),diskNumberStart:0}))}return s}(e,t,i,d);i.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:o,uncompressedSize:i,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:f}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;f=wi(f||C),t.extraFieldAES&&(d=99);const h=Pi(f),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Li(p,m,w,o,d)|p<<1,{fe:x,ue:E}=Wi({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,pe:b,me:y,extraFieldLength:h}),{crc32:v}=t;v!==F&&Ni(E,10,v);const{offset:S,diskNumberStart:z}=u.get(t);Object.assign(t,{me:y,pe:b,offset:S,diskNumberStart:z,we:!1,he:C,ye:C,be:C,ge:C,xe:C,rawExtraField:f,Ee:C,extendedTimestamp:!1,fe:x,ue:E}),s.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{o(),r.delete(i),l&&l()}}add(e="",n,a={}){const s=this,{ae:o}=s,i=async function(e,n,a,s){if(Ri(e,s=Object.assign({},s),Fa)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(lo);e.re.add(n),Go<yt().maxWorkers?Go++:await new Promise(t=>Ko.push(t));try{return await async function(e,n,a,s){const o=ei(e,n,s);({name:n}=o);const i=ri(e,n,s),{comment:c}=i,l=s[Ia];let d;e.ee.set(n,F);try{const{ve:c}=i;0==c.level||c.compressionMethod!==F||c.passThrough||await Er(yt())||(c.level=0);const l=await async function(t,e,{ve:r},n){if(r.passThrough&&!e&&!Ri(t,n,Fa))throw new Error(Io);let a;return e&&(e=new Xn(e),await $n(e),({size:a}=e)),Object.assign({reader:e},ai(t,Boolean(e),a,r,n))}(e,a,i,s);({reader:a}=l);const f=ui(e.writer),u=fi(e.writer),p=si(s=Object.assign({},s,o.ve,i.ve,l.ve,{signature:s[Ta],crc32:s.crc32===F?s[Ta]:s.crc32,offset:e.offset-f,diskNumberStart:u,[H]:e.options[H]})),m=ci(s),w=Pi(p.Se,m.ze);d=await async function(e,n,a,s,o){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,ke:f,signal:u}=o,{Ae:p}=s,m=e.options[H],w=e.ie;let h,y,b,g,x,E,v,S={},z=0;i.set(n,S),e.ie=S;try{let y;l&&(y=w&&w.Re,S.Re=new Promise(t=>b=t)),o.bufferedWrite||!l||e.le||e.oe||!d&&!f?(h=!0,e.oe++,v=o.createTempStream?await o.createTempStream():new TransformStream(F,F,{highWaterMark:O}),v.size=0,await $n(c)):(v=c,await k()),await $n(v);const D=ui(c);e.te&&!h&&await xi(e,c),m&&!h&&oi(s,e.offset-D);const{Se:U}=p;h||(await y,await R());const T=fi(c),I=mi(e,c);if(S.diskNumberStart=T,h||(x=!0,E=c.size,await Ei(v,U)),S=await async function(e,n,{diskNumberStart:a,Re:s},o,i,c){const{Ae:l,De:d,Fe:f}=o,{fe:u,ue:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,he:x,Oe:E,be:v,Ue:S,ge:z,xe:k,ye:A}=l,{ze:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:U,password:T,rawPassword:I,level:j,zip64:C,me:M,pe:N,zipCrypto:_,dataDescriptor:B,directory:P,executable:W,versionMadeBy:L,rawComment:q,rawExtraField:Z,Ee:V,useWebWorkers:H,transferStreams:G,onstart:K,onprogress:Y,onend:X,signal:J,encryptionStrength:Q,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,uid:nt,gid:at,unixMode:st,symlink:ot,setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut,useCompressionStream:pt,passThrough:mt,format:wt,codecURI:ht}=c,yt={Re:s,versionMadeBy:L,zip64:C,directory:Boolean(P),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,he:x,Oe:E,be:v,ge:z,xe:k,ye:A,rawExtraField:Z,Ee:V,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,diskNumberStart:a,uid:nt,gid:at,unixMode:st,symlink:Boolean(ot),setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut};let{crc32:bt,uncompressedSize:gt}=c,xt=0;mt||(gt=0);const{writable:Et}=n;if(e){const a=je(ra(e)),s=e.size,o={options:{codecType:ur,level:j,rawPassword:I,password:T,encryptionStrength:Q,zipCrypto:h&&_,passwordVerification:h&&_&&w>>8&r,computeCrc32:!mt,compressed:y&&!mt,encrypted:h&&!mt,useWebWorkers:H,useCompressionStream:pt,transferStreams:G,format:wt,codecURI:ht,compressionMethod:g},config:i,ut:{signal:J,size:s,onstart:K,onprogress:Y,onend:X}};try{const e=await Hr({readable:a,writable:Et},o);if(xt=e.outputSize,n.size+=xt,mt||(gt=e.inputSize,h&&!_||(bt=e.crc32)),!N&&xt>=t||!M&>>=t)throw new Error(Fo)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,Ae:n,De:a},{zip64:s,zipCrypto:o,passThrough:i,dataDescriptor:c}){const{ue:l,encrypted:d}=n,{Te:f,Ie:u}=a;d&&!o&&!i||t===F||(Ni(l,10,t),c&&Ni(f,u,t)),s?c&&(_i(f,u+4,BigInt(e)),_i(f,u+12,BigInt(r))):(Ni(l,14,e),Ni(l,18,r),c&&(Ni(f,u+4,e),Ni(f,u+8,r)))}({crc32:bt,compressedSize:xt,uncompressedSize:gt,Ae:l,De:d},c),B&&await Ei(n,R),Object.assign(yt,{uncompressedSize:gt,compressedSize:xt,lastModDate:m,rawLastModDate:w,creationDate:U,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(_),size:f+xt,compressionMethod:g,version:b,fe:u,ue:p,signature:bt,crc32:!h||_||mt?bt:F,Ue:S,me:M,pe:N}),yt}(a,v,S,s,yt(),o),h||(x=!1),i.set(n,S),S.filename=n,h){if(await Promise.all([v.writable.getWriter().close(),y]),await k(),e.te&&await xi(e,c),g=!0,E=c.size,await R(),S.diskNumberStart=fi(c),S.offset=mi(e,c),m){const t=s.Fe;oi(s,e.offset-ui(c)),S.size+=s.Fe-t}!function({rawFilename:t,encrypted:e,zip64:r,Oe:n,crc32:a,compressedSize:s,uncompressedSize:o,me:i,pe:c},l,{dataDescriptor:d,passThrough:f}){if(d||((!e||f&&a!==F)&&Ni(l,14,a),c||Ni(l,18,s),i||Ni(l,22,o)),r&&n){const e=A+Pi(t)+4;_i(l,e,BigInt(o)),_i(l,e+8,BigInt(s))}}(S,p.je,o),await Ei(c,p.Se),await vi(v.readable,c,u,t=>z+=t),c.size+=v.size,g=!1}else S.diskNumberStart=T,S.offset=I;return e.offset+=S.size,S}catch(t){if(g||x){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-E,h&&(e.offset+=z)}throw i.delete(n),t}finally{if(h&&e.oe--,b&&b(),y&&y(),h&&v&&v.dispose)try{await v.dispose()}catch{}}async function k(){e.le=!0;const{de:t}=e;e.de=new Promise(t=>y=()=>{e.le=!1,t()}),await t}async function R(){pi(c,Pi(p.Se))&&await c.closeDisk()}}(e,n,a,{Ae:p,De:m,Fe:w},s)}catch(t){throw e.ee.delete(n),t}return Object.assign(d,{name:n,comment:c,extraField:l,[ga]:d.internalFileAttributes,[xa]:d.externalFileAttributes}),new Ba(d)}(e,n,a,s)}catch(t){throw e.re.delete(n),t}finally{const t=Ko.shift();t?t():Go--}}(s,e,n,a);o.add(i);const c=()=>o.delete(i);return Promise.prototype.then.call(i,c,c),Qo(s,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==j&&(t=r.get(t)),t&&t.filename!==F){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=C,n={}){const a=this,{ae:s,writer:p}=this,{writable:m}=p;if(!(r instanceof Uint8Array))throw new Error(uo);if(Pi(r)>e)throw new Error(fo);for(;s.size;)await Promise.allSettled(Array.from(s));await Promise.allSettled(a.se.map(t=>t.Ce));const w=a.se.filter(t=>t.error&&!t.Me);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.Me=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const s=li(r.ee),{Ne:p,_e:m,Be:w}=await async function(r,n,a){const{ee:s,writer:o}=r,c=new Uint8Array(n);await $n(o);let l=0,d=0,u=fi(o),p=ui(o),m=0;for(const[r,n]of Array.from(s.values()).entries()){const{offset:w,rawFilename:h,he:y,ye:b,be:g,ge:x,xe:E,rawExtraField:v,Ee:S,rawComment:z,versionMadeBy:k,fe:A,ue:R,me:D,pe:F,we:O,Pe:U,internalFileAttributes:T,externalFileAttributes:I,diskNumberStart:j,uncompressedSize:C,compressedSize:M}=n,N=Pi(y,b,g,x,E,v,S),_=f+Pi(h,z)+N;pi(o,l+_-d)&&(await Ei(o,c.slice(d,l)),d=l,m=0,await o.closeDisk()),0==r&&(u=fi(o),p=ui(o)),D||Ni(R,18,C),F||Ni(R,14,M),(U||O)&&n.version<45&&Mi(R,0,45);const B=di(_);if(B.We(i),B.Le(k),B.qe(A.subarray(0,24)),B.Le(N),B.Le(Pi(z)),B.Le(O?e:j),B.Le(T),B.We(I),B.We(U?t:w),B.qe(h),B.qe(y),B.qe(b),B.qe(g),B.qe(x),B.qe(E),B.qe(v),B.qe(S),B.qe(z),Bi(c,B.Wt,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,s.size,new Ba(n))}catch{}}return await Ei(o,d?c.slice(d):c),{Ne:{diskNumber:u,diskOffset:p},_e:{diskNumber:fi(o),Ze:m},Be:c}}(r,s,a),h=await async function(t,r,n){const a=Fi(t,n,K);if(a){const n=await a(r),s=Pi(n);if(s>e)throw new Error(qo);const i=di(6+s);i.We(o),i.Le(s),i.qe(n);const{writer:c}=t;return pi(c,Pi(i.Wt))&&await c.closeDisk(),await Ei(c,i.Wt),6+s}return 0}(r,w,a);await async function(r,n,a,s){const{writer:o}=r,{Ne:i,_e:f,Ve:p}=s;let{He:m}=s,w=r.ee.size,h=i.diskNumber,y=mi(r,i);const b=Pi(n);if(b>e)throw new Error(fo);let g=Ri(r,a,za),x=fi(o);if(pi(o,(g?98:u)+b)&&x++,y>=t||m>=t||w>=e||x>=e){if(!1===g)throw new Error(Fo);g=!0}const E=di(g?98:u);pi(o,Pi(E.Wt)+b)&&await o.closeDisk(),x=fi(o);let v=x==f.diskNumber?f.Ze:0;g&&(E.We(l),E.Ge(44),E.Le(45),E.Le(45),E.We(x),E.We(h),E.Ge(v),E.Ge(w),E.Ge(m),E.Ge(y),E.We(d),E.We(x),E.Ge(BigInt(mi(r,o))+BigInt(m)+BigInt(p)),E.We(x+1),Ri(r,a,"supportZip64SplitFile",!0)&&(x=e,h=e),v=e,w=e,y=t,m=t),E.We(c),E.Le(x),E.Le(h),E.Le(v),E.Le(w),E.We(m),E.We(y),E.Le(b),await Ei(o,E.Wt),b&&await Ei(o,n)}(r,n,a,{Ne:p,_e:m,He:s,Ve:h})}(a,r,n),!Qn(p)&&Ri(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class Xo{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Yo(r,t),this.ae=new Set}transform(t){const e=this.zipWriter;let r;const{readable:n,writable:a}=new TransformStream({start(t){r=t},flush:()=>{!async function(){try{await e.close()}catch(t){await $o(e,t)}}()}});return ti(this,this.zipWriter.add(t,n),t=>r.error(t)),{readable:this.readable,writable:a}}writable(t){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}});return ti(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.ae))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await $o(r,t),t}try{return await r.close(t,e)}catch(t){throw await $o(r,t),t}}}class Jo extends Promise{then(t,e){const{Ke:r}=this;return r&&(r.Me=!0),super.then(t,e)}}function Qo(t,e){const r=new Jo((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.Ke=n,n.Ce=Promise.prototype.then.call(r,F,t=>n.error=t),t.se.push(n),r}async function $o(t,e){try{await t.writer.writable.abort(e)}catch{}}function ti(t,e,r){t.ae.add(e),e.catch(t=>{try{r(t)}catch{}})}function ei(n,a,s){let o=Ri(n,s,Sa),i=Ri(n,s,Ra,o?20:768);const c=Ri(n,s,Oa),l=Ti(n,s,"uid"),d=Ti(n,s,"gid");let f=Ti(n,s,ja),u=Ri(n,s,"unixExtraFieldType"),p=Ri(n,s,Ca),m=Ri(n,s,Ma),w=Ri(n,s,Na);if(it(l,t,Co),it(d,t,Mo),it(f,e,No),u!==F&&u!==Vo&&u!==Ho)throw new Error(_o);if(u===Ho&&(l!==F&&l>e||d!==F&&d>e))throw new Error(Bo);u!==F||l===F&&d===F||(u=Vo);let h=Ti(n,s,Ea),y=Ri(n,s,va);const b=h!==F||y!==F;if(l!==F||d!==F||f!==F||u||c?(o=!1,i=i&r|768):b&&(o=!0,i&=r),it(h,r,Po),y&&(typeof y!==I||Array.isArray(y)))throw new Error(Wo);if(i>e)throw new Error(yo);let g=Oi(n,s,ba,xa);const x=g!==F;x||(g=0),!s[Fa]&&a.endsWith(k)&&(s[Fa]=!0);const A=Ri(n,s,Fa);if(A?(a.endsWith(k)||(a+=k),x||(g=16,o||(g|=16877<<16))):o||x||(g=c?493<<16:27525120),!o){const t=f!==F||Boolean(p||m||w);f=f===F?g>>16&e:f&e,p?f|=S:p=Boolean(f&S),m?f|=z:m=Boolean(f&z),w?f|=512:w=Boolean(512&f),x&&!t||(A?f=-61441&f|v:f&E||(f|=32768),g=(f&e)<<16|g&e)}({msdosAttributesRaw:h,msdosAttributes:y}=function(t,e){if(t!==F)t&=r;else if(e!==F){const{readOnly:n,hidden:a,system:s,directory:o,archive:i}=e;let c=0;n&&(c|=1),a&&(c|=2),s&&(c|=4),o&&(c|=16),i&&(c|=32),t=c&r}return e===F&&(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}}(h,y)),b&&(g=g&t|h&r);const R=g>>16&e,D=f!==F&&40960==(f&E);return{name:a,ve:{versionMadeBy:i,msDosCompatible:Boolean(o),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:f,unixExtraFieldType:u,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function ri(t,r,n){const a=Fi(t,n,"encodeText")||Pt;let s=a(r,Y);if(s===F&&(s=Pt(r)),Pi(s)>e)throw new Error(ho);const o=n[sa]||"";if(typeof o!=j)throw new Error(mo);let i=a(o,X);if(i===F&&(i=Pt(o)),Pi(i)>e)throw new Error(po);const c=Ri(t,n,Aa);if(c!==F&&c>e)throw new Error(yo);const l=Di(t,n,fa,new Date),d=Ri(t,n,ua),f=Di(t,n,pa),u=Di(t,n,wa),p=Oi(t,n,ya,ga,0),m=Ri(t,n,_),w=Ri(t,n,M),h=Ri(t,n,N);st(w,h);const y=Ti(t,n,"encryptionStrength",3),b=Ri(t,n,Da),g=Ri(t,n,"extendedTimestamp",!0),x=Ri(t,n,"ntfsTimestamp"),E=Ri(t,n,"keepOrder",!0),v=Ri(t,n,P),S=Ri(t,n,L),z=Ri(t,n,"bufferedWrite"),k=Fi(t,n,"createTempStream"),A=Ri(t,n,"dataDescriptorSignature",!0),R=at(Ri(t,n,B)),D=Ri(t,n,"useUnicodeFileNames",!0),O=Ri(t,n,Ua),U=m||O===F?F:Ve(O);if(!m&&O!==F&&0!==O&&8!==O&&!U)throw new Error("Compression method not supported");let T=Ti(t,n,"level");if(it(T,9,Lo),t.options[H]){if(w!==F||h!==F)throw new Error(go);T===F&&O===F&&(T=0)}m&&(T=F);let I=Ri(t,n,W),C=Ri(t,n,Z);z&&C===F&&(C=!1),(C===F||b&&!m)&&(C=!0),T!==F&&6!=T&&(I=!1);const q=Ri(t,n,za);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(bo);const V=ni(n[Ia]),G=ni(n.localExtraField),K=ni(n.centralExtraField);return{comment:o,ve:{rawFilename:s,rawComment:i,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:f,creationDate:u,internalFileAttributes:p,passThrough:m,password:w,rawPassword:h,encryptionStrength:y,zipCrypto:b,extendedTimestamp:g,ntfsTimestamp:x,keepOrder:E,useWebWorkers:v,transferStreams:S,bufferedWrite:z,createTempStream:k,dataDescriptorSignature:A,signal:R,useUnicodeFileNames:D,compressionMethod:O,format:U?U.format:F,codecURI:U?U.codecURI:F,Ye:U?U.versionNeeded:F,level:T,useCompressionStream:I,dataDescriptor:C,zip64:q,rawExtraField:V,Xe:G,Ee:K}}}function ni(t){if(!t)return C;if(!(t instanceof Map))throw new Error(Eo);let r=0,n=0;t.forEach((t,n)=>{if(ot(n,e,vo),!(t instanceof Uint8Array))throw new Error(So);if(Pi(t)>e)throw new Error(zo);r+=4+Pi(t)});const a=new Uint8Array(r),s=Dt(a);return t.forEach((t,e)=>{Mi(s,n,e),Mi(s,n+2,Pi(t)),Bi(a,t,n+4),n+=4+Pi(t)}),a}function ai(e,r,n,a,s){const{passThrough:o,zipCrypto:i,password:c,rawPassword:l,encryptionStrength:d}=a;let{dataDescriptor:f,zip64:u,level:p,compressionMethod:m}=a,w=0,h=0;if(o&&r){if(h=s[ia],h===F)throw new Error(Oo);if(m===F)throw new Error(Uo)}const y=!0===u,b=Ri(e,s,ka);if(r&&o&&!b&&Pi(c,l))throw new Error(xo);const g=r&&(Boolean(c&&Pi(c)||l&&Pi(l))||o&&b);r||(p=0,m=0);const x=g?i?12:16+4*d:0;r&&(o?(s.uncompressedSize=h,w=n===F?Ii(h)+x:n):n===F?(f=!0,(u||u===F)&&(u=!0,h=w=4294967296)):(s.uncompressedSize=h=n,w=(ji(m,p)?Ii(h):h)+x));const E=!(g||r&&(0!==n||o)||ji(m,p));E&&!i&&Ri(e,s,Z)===F&&(f=!1);const v=y||h>=t,S=y||w>=t;if(v||S){if(!1===u)throw new Error(Fo);u=!0}return u=u||!1,{Je:w,ve:{dataDescriptor:f,ke:E,zip64:u,me:v,pe:S,uncompressedSize:h,level:p,compressionMethod:m,encrypted:g}}}function si(t){const{rawFilename:r,lastModDate:a,rawLastModDate:s,lastAccessDate:o,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:f,dataDescriptor:u,directory:p,rawExtraField:m,Xe:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,passThrough:S,encrypted:z,me:k,pe:O,uncompressedSize:U,crc32:T}=t;let{version:I,compressionMethod:j}=t;const M=!p&&ji(j,c);let N;const _=S||!M,B=l&&(t.bufferedWrite||!u||!k&&!O||_),P=B||l&&u&&(k||O);if(l&&(k||O)){const t=20,e=di(t);if(e.Le(1),e.Le(t-4),N=e.Wt,B&&(e.Ge(U),_)){const t=z?d?12:16+4*x:0;e.Ge(S?0:U+t)}}else N=C;let W,L,q,Z,V;if(z&&!d){const t=di(Pi(Zo)+2);t.Le(w),t.qe(Zo),W=t.Wt,W[8]=x}else W=C;if(E){const t=zi(a),e=ki(t);if(e){const e=9+(o?4:0)+(i?4:0),r=di(e);Z=1+(o?2:0)+(i?4:0),r.Le(h),r.Le(e-4),r.Qe(Z),r.We(t),o&&r.We(Ai(zi(o))),i&&r.We(Ai(zi(i))),q=r.Wt}else q=C;if(v===F?!e||Boolean(o||i):v)try{const t=Si(a),e=di(36);e.Le(10),e.Le(32),e.$e(4),e.Le(1),e.Le(24),e.Ge(t),e.Ge(o?Si(o):t),e.Ge(i?Si(i):t),L=e.Wt}catch{L=C}else L=C}else L=q=C;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=Vo||r===F&&n===F)if(a!=Ho||r===F&&n===F)V=C;else{const t=di(8);t.Le(g),t.Le(4),t.Le((r===F?0:r)&e),t.Le((n===F?0:n)&e),V=t.Wt}else{const t=ii(r===F?0:r),e=ii(n===F?0:n),a=3+t.length+e.length,s=di(4+a);s.Le(b),s.Le(a),s.Qe(1),s.Qe(t.length),s.qe(t),s.Qe(e.length),s.qe(e),V=s.Wt}}catch{V=C}j===F&&(j=M?8:0),I===F&&(I=0!=j||p||z?20:10);const{Ye:G}=t;M&&G!==F&&(I=I>G?I:G),l&&(I=I>45?I:45),z&&!d&&(I=I>51?I:51,S&&T!==F&&(W[4]=1),Mi(Dt(W),9,j),j=99);const K=P?Pi(N):0,Y=K+Pi(W,q,L,V,m,y);if(Y+(t[H]?67:0)>e)throw new Error(zo);const X=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),{fe:J,ue:Q,rawLastModDate:$}=Wi({version:I,bitFlag:Li(c,f,u,z,j),compressionMethod:j,uncompressedSize:U,lastModDate:X<D?D:X>R?R:X,rawLastModDate:s,rawFilename:r,pe:O,me:k,extraFieldLength:Y}),tt=di(A+Pi(r)+Y),et=tt.Wt,rt=Dt(et);return tt.We(n),tt.qe(J),tt.qe(r),P&&tt.qe(N),tt.qe(W),tt.qe(q),tt.qe(L),tt.qe(V),tt.qe(m),tt.qe(y),u&&(O||Ni(rt,18,0),k||Ni(rt,22,0)),{Se:et,je:rt,fe:J,ue:Q,lastModDate:a,rawLastModDate:$,encrypted:z,compressed:M,version:I,compressionMethod:j,Ue:Z,he:C,Oe:K,be:q,ge:L,xe:V,ye:W,extraFieldLength:Y}}function oi(t,e){const{Ae:r}=t;let{Se:n,extraFieldLength:a}=r,s=64-(e+Pi(n))%64;s<4&&(s+=64);const o=new Uint8Array(s),i=Dt(o);Mi(i,0,y),Mi(i,2,s-4);const c=n;r.Se=n=new Uint8Array(Pi(c)+s),Bi(n,c),Bi(n,o,Pi(c));const l=Dt(n);Mi(l,28,a+s),r.je=l,t.Fe+=s}function ii(t){const e=new Uint8Array(4);Dt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function ci({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=C,o=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Dt(a),r&&(o=4,Ni(n,0,s))),{ze:a,Te:n,Ie:o}}function li(r){let n=0;for(const[,a]of r){const{rawFilename:r,ye:s,rawComment:o,ge:i,xe:c,rawExtraField:l,Ee:d,extendedTimestamp:u,Ue:p,lastModDate:m,me:w,pe:y,uncompressedSize:b,compressedSize:g}=a,x=a.offset>=t,E=a.diskNumberStart>=e;let v,S;if(x||E||w||y){const t=4+(w?8:0)+(y?8:0)+(x?8:0)+(E?4:0),e=di(t);e.Le(1),e.Le(t-4),w&&e.Ge(b),y&&e.Ge(g),x&&e.Ge(a.offset),E&&e.We(a.diskNumberStart),v=e.Wt}else v=C;a.he=v,a.Pe=x,a.we=E;const z=zi(m);if(u&&ki(z)){const t=di(9);t.Le(h),t.Le(5),t.Qe(p),t.We(z),S=t.Wt}else S=C;a.be=S;const k=Pi(v,s,i,c,S,l,d);if(k>e)throw new Error(zo);n+=f+Pi(r,o)+k}return n}function di(t){const e=new Uint8Array(t),r=Dt(e);let n=0;return{Wt:e,Qe:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Le:t=>{Mi(r,n,t),n+=2},We:t=>{Ni(r,n,t),n+=4},Ge:t=>{_i(r,n,BigInt(t)),n+=8},qe:t=>{Bi(e,t,n),n+=Pi(t)},$e:t=>n+=t}}function fi(t){const{diskNumber:e=0}=t;return e}function ui(t){const{diskOffset:e=0}=t;return e}function pi(t,e){const{availableSize:r=O}=t;return e>r}function mi(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function wi(t){const e=Dt(t);let r=0;for(;r+4<=Pi(t);){const n=4+Ci(e,r+2);if(1==Ci(e,r))return wi(At(t.subarray(0,r),t.subarray(Math.min(r+n,Pi(t)))));r+=n}return t}async function hi(t,e,r,n){if(n>0){const{writer:a}=t;let s=0;try{await vi(ra(e,{offset:r,size:n}),a,F,t=>s+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=s,t.offset+=s}}}async function yi(t,e){const r=await ea(t,e,A);if(Pi(r)<A)return A;const n=Dt(r);return A+Ci(n,26)+Ci(n,28)}function bi(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function gi(){const t=new Uint8Array(4);return Ni(Dt(t),0,a),t}async function xi(t,e){delete t.te,await Ei(e,gi()),t.offset+=4}async function Ei(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Pi(e),await n.write(e)}finally{n.releaseLock()}}async function vi(t,e,r,n){const a=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){await a.ready,await a.write(t),n(Pi(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function Si(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<Ro?Ro:e>Do?Do:e}}function zi(t){return Math.floor(t.getTime()/1e3)}function ki(t){return t>=ko&&t<=Ao}function Ai(t){return Math.min(Ao,Math.max(ko,t))}function Ri(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function Di(t,e,r,n){const a=Ri(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=T||Number.isNaN(a.getTime())))throw new Error(wo);return a}function Fi(t,e,r){return nt(Ri(t,e,r))}function Oi(t,e,r,n,a){const s=Ui(e,r,n),o=s===F?Ui(t.options,r,n):s;return o===F?a:o}function Ui(t,e,r){return t[e]===F?t[r]:t[e]}function Ti(t,e,r,n){return ct(Ri(t,e,r,n))}function Ii(t){return t+5*(Math.floor(t/16383)+1)}function ji(t,e){return t===F?e===F||e>0:0!==t}function Ci(t,e){return t.getUint16(e,!0)}function Mi(t,e,r){t.setUint16(e,r,!0)}function Ni(t,e,r){t.setUint32(e,r,!0)}function _i(t,e,r){t.setBigUint64(e,r,!0)}function Bi(t,e,r){t.set(e,r)}function Pi(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function Wi({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:s,lastModDate:o,rawLastModDate:i,rawFilename:c,pe:l,me:d,extraFieldLength:f}){const u=di(26),p=u.Wt,m=Dt(p);if(u.Le(e),u.Le(r),u.Le(n),i===F){const t=new Uint32Array(1),e=Dt(t);Mi(e,0,(o.getHours()<<6|o.getMinutes())<<5|o.getSeconds()/2),Mi(e,2,(o.getFullYear()-1980<<4|o.getMonth()+1)<<5|o.getDate()),i=t[0]}return u.We(i),u.$e(4),l||s!==F?u.We(l?t:s):u.$e(4),d||a!==F?u.We(d?t:a):u.$e(4),u.Le(Pi(c)),u.Le(f),{fe:p,ue:m,rawLastModDate:i}}function Li(t,e,r,n,a){let s=0;return e&&(s|=x),r&&(s|=8),8!=a&&9!=a||(t>=0&&t<=3&&(s|=6),t>3&&t<=5&&(s|=4),9==t&&(s|=2)),n&&(s|=1),s}const qi=1048576,Zi=".zip.js-temp";function Vi(t={}){const{thresholdBytes:e=qi,directoryName:r=Zi,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let a;function s(){return a||(a=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,a,o,i=0,c=!1;const l=new WritableStream({async write(o){c?await a.write(o):(t.push(o),i+=o.length,i>e&&await async function(){const e=await s();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}),a=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await a.write(e);t.length=0}())},async close(){a&&(await a.close(),a=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!o){const t=await n.getFile();o=t.stream().getReader()}const{value:t,done:r}=await o.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){o&&await o.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(a){try{await a.close()}catch{}a=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const Hi=1048576;function Gi(t={}){const{thresholdBytes:e=Hi}=t;return function(){const t=[];let r,n,a,s=0,o=!1;const i=new WritableStream({async write(a){o?await r.write(a):(t.push(a),s+=a.length,s>e&&await async function(){const e=new TransformStream;n=Ce(e.readable),r=e.writable.getWriter(),o=!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:i,readable:new ReadableStream({async pull(e){if(o){if(!a){const t=await n;a=t.stream().getReader()}const{value:t,done:r}=await a.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){a&&await a.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 Ki=1048576,Yi=".zip.js-temp",Xi="createSyncAccessHandle is only available in dedicated workers";function Ji(t={}){const{thresholdBytes:e=Ki,directoryName:r=Yi,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(Xi);const a=n||(()=>navigator.storage.getDirectory());let s;function o(){return s||(s=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),s}return function(){const t=[];let r,n,a=0,s=!1,i=0,c=0;const l=new WritableStream({async write(c){s?(n.write(c,{at:i}),i+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await o();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const a=await e.getFileHandle(r,{create:!0});n=await a.createSyncAccessHandle(),s=!0;for(const e of t)n.write(e,{at:i}),i+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(s){const t=i-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),a=n.read(r,{at:c});a?(c+=a,e.enqueue(r.subarray(0,a))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await o();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{zt({baseURI:import.meta.url})}catch{}let Qi,$i,tc,ec,rc;function nc(t,e,r={}){if(!Qi){const t=new Error("WASM module not loaded");throw t.cause=rc,t}const n="number"==typeof r.level?r.level:-1,a="number"==typeof r.outBuffer?r.outBuffer:65536,s="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.er=$i(a),this.in=$i(s),this.inBufferSize=s,!this.er||!this.in)throw new Error("allocation failed");if(this.rr=new Uint8Array(a),t?(this.nr=Qi.deflate_process,this.ar=Qi.deflate_last_consumed,this.sr=Qi.deflate_end,this.ir=Qi.deflate_new(),r="gzip"===e?Qi.deflate_init_gzip(this.ir,n):"deflate-raw"===e?Qi.deflate_init_raw(this.ir,n):Qi.deflate_init(this.ir,n)):"deflate64-raw"===e?(this.nr=Qi.inflate9_process,this.ar=Qi.inflate9_last_consumed,this.sr=Qi.inflate9_end,this.ir=Qi.inflate9_new(),r=Qi.inflate9_init_raw(this.ir)):(this.nr=Qi.inflate_process,this.ar=Qi.inflate_last_consumed,this.sr=Qi.inflate_end,this.ir=Qi.inflate_new(),r="deflate-raw"===e?Qi.inflate_init_raw(this.ir):"gzip"===e?Qi.inflate_init_gzip(this.ir):Qi.inflate_init(this.ir)),0!==r)throw new Error("init failed:"+r)}catch(t){throw o(this),t}},transform(e,r){try{const n=e,s=new Uint8Array(ec.buffer),o=this.nr,i=this.ar,c=this.er,l=this.rr;let d=0;for(;d<n.length;){const e=Math.min(n.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&tc&&(tc(this.in),this.in=0),this.in=$i(e),this.inBufferSize=e,!this.in))throw new Error("allocation failed");s.set(n.subarray(d,d+e),this.in);const f=o(this.ir,this.in,e,c,a,0),u=16777215&f;if(u&&(l.set(s.subarray(c,c+u),0),r.enqueue(l.slice(0,u))),!t){const t=f>>24&255,e=128&t?t-256:t;if(e<0)throw new Error("process error:"+e)}const p=i(this.ir);if(0===p)break;d+=p}}catch(t){o(this),r.error(t)}},flush(e){try{const r=new Uint8Array(ec.buffer),n=this.nr,s=this.er,o=this.rr;for(;;){const i=n(this.ir,0,0,s,a,4),c=16777215&i,l=i>>24&255;if(!t){const t=128&l?l-256:l;if(t<0)throw new Error("process error:"+t)}if(c&&(o.set(r.subarray(s,s+c),0),e.enqueue(o.slice(0,c))),1===l||0===c)break}}catch(t){e.error(t)}finally{const t=o(this);0!==t&&e.error(new Error("end error:"+t))}},cancel(){o(this)}});function o(t){let e=0;return t.ir&&t.sr&&(e=t.sr(t.ir)),t.ir=0,t.in&&tc&&tc(t.in),t.in=0,t.er&&tc&&tc(t.er),t.er=0,e}}class ac{constructor(t="deflate",e){return nc(!0,t,e)}}class sc{constructor(t="deflate",e){return nc(!1,t,e)}}ac.ft=!0,sc.ft=!0;let oc,ic=!1;function cc(){oc=null,async function(){await Promise.allSettled(Wr.map(t=>(Jr(t),t.terminate()))),yr=F,br=!1}(),ic=!1,Qi=$i=tc=ec=rc=null}!function({cr:t}){xr=t}({cr:t=>{if(!oc){let{wasmURI:e}=t;typeof e==T&&(e=e()),oc=async function(t,{baseURI:e}){if(!ic)try{await async function(t,e){let r,n;try{try{n=new URL(t,e)}catch{}const a=await fetch(n);r=await a.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,a=new Uint8Array(n);for(let t=0;t<n;++t)a[t]=r.charCodeAt(t);return a.buffer}(t)}!function(t){if(Qi=t,({malloc:$i,free:tc,memory:ec}=Qi),"function"!=typeof $i||"function"!=typeof tc||!ec)throw Qi=$i=tc=ec=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),ic=!0}catch(t){throw function(t){rc=t}(t),t}}(e,t).catch(t=>{throw oc=null,t})}return oc}}),zt({CompressionStreamFallback:ac,DecompressionStreamFallback:sc}),zt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const lc="Entry filename already exists",dc="Readable stream already consumed",fc="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",uc="Invalid readerOptions (must be an object)",pc="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",mc="zipjs-abort-export",wc="The operation was aborted",hc=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class yc{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(lc);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.lr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,dr:r.dr||r.uncompressedSize===F,passThrough:r.passThrough,ur:r.ur||new Date}),!n&&t.root||(t.entries[a.id]=a),n&&a.parent.children.push(a)}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.parent;if(e&&e.getChildByName(t))throw new Error(lc);this.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class bc extends yc{constructor(t,e,r,n){super(t,e,r,n);const a=this;a.Reader=r.Reader,a.Writer=r.Writer,r.getData&&(a.getData=r.getData)}clone(){return new bc(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===F||(t.constructor==Sn?e.type==r:t.constructor!=gn||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=Rc(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([$n(n),$n(t,a)]);const s=at(e.signal),o=function(t,e,r,n){const{onstart:a,onprogress:s,onend:o}=r,{readable:i}=e;return t.data instanceof Ba||!a&&!s&&!o?i:je(i).pipeThrough(new zr({onstart:a,onprogress:s,onend:o,size:e.size}),{signal:n})}(r,n,e,s),i=!Qn(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await je(o).pipeTo(Me(t.writable),{signal:s,preventClose:i,preventAbort:i}),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.message==Ht)return!1;throw t}}getText(t,e){return this.getData(new An(t),e)}getBlob(t,e){return this.getData(new Sn(t),e)}getData64URI(t,e){return this.getData(new gn(t),e)}getUint8Array(t){return this.getData(new Gn,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Rt(await this.getUint8Array(t)).buffer}replaceBlob(t){Object.assign(this,{data:t,Reader:vn,Writer:Sn,reader:null})}replaceText(t){Object.assign(this,{data:t,Reader:zn,Writer:An,reader:null})}replaceData64URI(t){Object.assign(this,{data:t,Reader:bn,Writer:gn,reader:null})}replaceUint8Array(t){Object.assign(this,{data:t,Reader:Hn,Writer:Gn,reader:null})}replaceReadable(t){Object.assign(this,{data:null,Reader:kc(t),Writer:null,reader:null})}}class gc extends yc{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new gc(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 Bc(this,t,{options:e},!0)}addText(t,e,r={}){return Bc(this,t,{data:e,Reader:zn,Writer:An,options:r,uncompressedSize:kn(e)})}addBlob(t,e,r={}){return Bc(this,t,{data:e,Reader:vn,Writer:Sn,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){let n=e.length;for(;"="==e.charAt(n-1);)n--;const a=e.indexOf(",")+1;return Bc(this,t,{data:e,Reader:bn,Writer:gn,options:r,uncompressedSize:Math.floor(.75*(n-a))})}addUint8Array(t,e,r={}){return Bc(this,t,{data:e,Reader:Hn,Writer:Gn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return Bc(this,t,{data:e,Reader:class extends Zn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return Bc(this,t,{Reader:kc(e),options:r})}addFileSystemEntry(t,e={}){return Mc(this,t,e)}addFileSystemHandle(t,e={}){return Mc(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),Bc(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 vn(t),e)}importData64URI(t,e){return this.importZip(new bn(t),e)}importUint8Array(t,e){return this.importZip(new Hn(t),e)}importHttpContent(t,e){return this.importZip(new Zn(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new Sn(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new gn(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Gn,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:a,onend:s}=r,o=Ic(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!at(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,i),d=Object.assign({},r,o,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),f=vc([t],t=>zc(t,d.passThrough)),u=[];let p=!1,m=0;try{n&&await kr(n,f),await h(t,e),s&&await kr(s,m)}catch(t){try{t.exportedEntryNames=u}catch{}throw t}finally{l()}return e;function w(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),m+=t.length,a&&await kr(a,m,f)},close:()=>e.close(),abort:t=>e.abort(t)})}async function h(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=>!Oc(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(p||Oc(c.reason))return;throw c.reason===F?new DOMException(wc,"AbortError"):c.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await h(e,t)}else{const n=await r.getFileHandle(e.name,{create:!0}),a=await n.createWritable();try{await e.getData({writable:w(a)},d)}catch(t){throw p?new Error(mc):t}u.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(mc));try{r.entryName===F&&(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==T?(r=t,e=Object.assign({},r.options,e)):(await $n(t),r=new ks(t,e));const n=[],a=await r.getEntries(e);for(const t of a){let r=this;try{const a=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=a.pop();if(a.forEach(t=>{const e=r;if(r=r.getChildByName(t),r){if(!r.directory)throw new Error(lc)}else r=new gc(this.fs,t,{data:null},e),n.push(r)}),t.directory){let e=r;if(s)if(e=r.getChildByName(s),e){if(!e.directory)throw new Error(lc)}else e=new gc(this.fs,s,{data:null},r),n.push(e);e==this||e.data||(e.data=t)}else n.push(Bc(r,s,{data:t,Reader:Ac(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}catch(e){try{e.cause={entry:t}}catch{}throw e}}return n}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[n]=await Promise.all([Dc(r,Ic(e.readerOptions)),$n(t)]),a=new Yo(t,e);return await async function(t,e,r,n,a){const{onstart:s,onprogress:o,onend:i,onentryprogress:c}=n,l=e,d=vc(e.children,t=>Cc(t)?0:1);let f=0,u=0;if(s&&await kr(s,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await p(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 p(t);async function p(e){if(Cc(e))return;const{name:s,pr:i}=Uc(e,l,n);let p=0;const m=await t.add(s,a.get(e),Object.assign(i,{onstart:F,onend:F,onprogress:async t=>{f+=t-p,p=t,o&&await kr(o,f,r)}}));u++,c&&await kr(c,u,d,m)}i&&await kr(i,f)}(a,r,vc([r],Sc),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;Ic((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=!r.bufferedWrite||!1!==r.keepOrder&&n.children.every(t=>!t.children.length);return async function(r,n,a,s){const o={options:r};if(nt(r[K]))throw new Error(To);if(s!==F&&!(s instanceof Uint8Array))throw new Error(uo);const i=Pi(s);if(i>e)throw new Error(fo);const c=r[H],l=new Map;let d=Boolean(c);const f=r[V]===F?0:r[V];let p=f,m=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);Ri(o,n,Fa)&&!e.endsWith(k)&&(e+=k);const a=ei(o,e,n);({name:e}=a);const{ve:s}=ri(o,e,n);0==s.level||s.compressionMethod!==F||s.passThrough||await Er(yt())||(s.level=0);const i=!Ri(o,n,Fa);if(i&&r===F)throw new Error(To);const{Je:d,ve:f}=ai(o,i,r,s,n);if(i&&!s.passThrough&&ji(f.compressionMethod,f.level))throw new Error(To);const u=Object.assign({},n,a.ve,s,f,{[H]:c}),w=si(u),h=ci(u),y={Ae:w,Fe:Pi(w.Se,h.ze)};c&&oi(y,p);const b=i?d:0;l.set(e,Object.assign({},u,w,{offset:p,diskNumberStart:0,compressedSize:b}));const g=y.Fe+b;m=Math.min(m,g),p+=g}if(l.size&&p-m>=t&&(d=!0),d&&!a)throw new Error(To);const w=li(l);let h=Ri(o,r,za);if(p>=t||w>=t||l.size>=e){if(!1===h)throw new Error(Fo);h=!0}return p-f+w+i+(h?98:u)}(r,n.getChildren({recursive:!0}).filter(t=>!Cc(t)).map(t=>{const{name:e,pr:a}=Uc(t,n,r);return{name:e,size:t.directory?0:Tc(t,jc(t,r)),options:a}}),a,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 a=0;for(;a<n.length;)for(const t of n[a++].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 xc{constructor(){_c(this)}get children(){return this.root.children}remove(t){Fc(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=F}move(t,e){if(t==this.root)throw new Error("Root directory cannot be moved");if(!e.directory)throw new Error("Target entry is not a directory");if(e.isDescendantOf(t))throw new Error("Entry is a ancestor of target entry");if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(lc)}else Fc(t),t.parent=e,e.children.push(t),function(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)}}(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.getChildByName(e[t]);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 _c(this),this.root.importBlob(t,e)}importData64URI(t,e){return _c(this),this.root.importData64URI(t,e)}importUint8Array(t,e){return _c(this),this.root.importUint8Array(t,e)}importHttpContent(t,e){return _c(this),this.root.importHttpContent(t,e)}importReadable(t,e){return _c(this),this.root.importReadable(t,e)}importZip(t,e){return _c(this),this.root.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 Ec={FS:xc,ZipDirectoryEntry:gc,ZipFileEntry:bc};function vc(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 Sc(t){return t.uncompressedSize}function zc(t,e){const{data:r}=t;return e&&r instanceof Ba?r.compressedSize:t.uncompressedSize}function kc(t){let e;return function(){if(e)throw new Error(dc);return e=!0,{readable:t}}}function Ac(t){return class extends hn{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:n,checkOverlappingEntryOnly:a}=r,s=await e.entry.getData(new Sn,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=s,e.mr=new vn(s),e.size=s.size,super.init()}readUint8Array(t,e){return this.mr.readUint8Array(t,e)}}}function Rc(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function Dc(t,e){const r=[],n=[t],a=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 t=>{const r=t.reader=Rc(t.Reader,t.data,e);a.set(t,r);try{await $n(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.dr=!1)})),a}function Fc(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function Oc(t){return Boolean(t)&&t.message==mc}function Uc(t,e,n){const a=n.relativePath?t.getRelativeName(e):t.getFullname(),s=t.options||{};let o={},i={};if(t.data instanceof Ba){const{externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,rawLastModDate:d,creationDate:f,lastAccessDate:u,uncompressedSize:p,encrypted:m,zipCrypto:w,crc32:h,compressionMethod:y,extraFieldAES:b,internalFileAttributes:g,extraField:x,bitFlag:E,uid:v,gid:S}=t.data;o={externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,creationDate:f,lastAccessDate:u,internalFileAttributes:g};const z=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{hc.has(r)||e.set(r,t.data)}),e.size)return e}}(x);if(z&&(o.extraField=z),v===F&&S===F||Object.assign(o,{uid:v,gid:S,unixExtraFieldType:"infozip"}),jc(t,n)){let t;b&&(t=b.strength),i={passThrough:!0,encrypted:m,zipCrypto:w,crc32:h,uncompressedSize:p,encryptionStrength:t,compressionMethod:y},E&&(i.dataDescriptor=E.dataDescriptor);const e=s.lastModDate===F?n.lastModDate:s.lastModDate;if(e===F)i.rawLastModDate=d;else if(w&&(!E||E.dataDescriptor)&&e instanceof Date&&function(t){let e=new Date(2e3*Math.ceil(Math.floor(t.getTime()/1e3)/2));return e<D?e=D:e>R&&(e=R),(e.getHours()<<3|e.getMinutes()>>3)&r}(e)!=(d>>>8&r))throw new Error(pc)}}const c=Object.assign({lastModDate:t.ur},o,n,s,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(fc);return{name:a,pr:c}}function Tc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.dr?F:zc(t,e)}function Ic(t){if(t&&(typeof t!=I||Array.isArray(t)))throw new Error(uc);return t}function jc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function Cc(t){return t.directory&&null===t.data}function Mc(t,e,r){return async function t(e,n,a,s=""){if(n){const o=s?s+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await Nc(n)),"file"==n.kind){const t=await n.getFile();a.push(Bc(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 s=e.addDirectory(n.name,r);a.push(s);for await(const e of n.values())await t(s,e,a,o)}}catch(t){try{t.entryName===F&&(t.entryName=o)}catch{}throw t}}return a}(t,e,[])}async function Nc(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,a){t.readEntries(async s=>{if(s.length){for(const t of s)e.push(await Nc(t));r(t,n,a)}else n(e)},a)}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 _c(t){t.entries=[],t.lr=0,t.root=new gc(t)}function Bc(t,e,r,n){if(t.directory)return n?new gc(t.fs,e,r,t):new bc(t.fs,e,r,t);throw new Error("Parent entry is not a directory")}let Pc;function Wc(t){return t&&(Pc||(Pc=function(){const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),n=e.slice(0,r);let a="";for(const s of e.slice(r+1).split(",")){const e=s.split(" "),r=a.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);a=r;const o=r.replace(/!/g,"+xml"),i=e.length>1?e.slice(1):[o.split("+")[0]];for(const e of i)t[e]=n+"/"+o}}return t}()),Pc)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{vn as BlobReader,Sn as BlobWriter,bn as Data64URIReader,gn as Data64URIWriter,wc as ERR_ABORTED,Qa as ERR_AMBIGUOUS_ARCHIVE,Pa as ERR_BAD_FORMAT,qa as ERR_CENTRAL_DIRECTORY_NOT_FOUND,lo as ERR_DUPLICATED_NAME,Ha as ERR_ENCRYPTED,$a as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Ja as ERR_ENTRY_DATA_OUT_OF_BOUNDS,lc as ERR_ENTRY_EXISTS,La as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Wa as ERR_EOCDR_NOT_FOUND,Va as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,nn as ERR_HTTP_RANGE,an as ERR_HTTP_RESOURCE_CHANGED,Kt as ERR_INVALID_AUTHENTICATION_CODE,Ne as ERR_INVALID_CODEC_DEFINITION,Be as ERR_INVALID_CODEC_MODULE,fo as ERR_INVALID_COMMENT,uo as ERR_INVALID_COMMENT_TYPE,Ye as ERR_INVALID_COMPRESSED_DATA,Xe as ERR_INVALID_CRC32,wo as ERR_INVALID_DATE,bo as ERR_INVALID_ENCRYPTION_STRENGTH,po as ERR_INVALID_ENTRY_COMMENT,mo as ERR_INVALID_ENTRY_COMMENT_TYPE,ho as ERR_INVALID_ENTRY_NAME,Eo as ERR_INVALID_EXTRAFIELD,zo as ERR_INVALID_EXTRAFIELD_DATA,So as ERR_INVALID_EXTRAFIELD_DATA_TYPE,vo as ERR_INVALID_EXTRAFIELD_TYPE,rs as ERR_INVALID_FILENAME_VALIDATION,tt as ERR_INVALID_FUNCTION_OPTION,Mo as ERR_INVALID_GID,Lo as ERR_INVALID_LEVEL,ns as ERR_INVALID_MAX_APPENDED_DATA_SIZE,lt as ERR_INVALID_MAX_WORKERS,Po as ERR_INVALID_MSDOS_ATTRIBUTES,Wo as ERR_INVALID_MSDOS_DATA,Ht as ERR_INVALID_PASSWORD,rt as ERR_INVALID_PASSWORD_TYPE,fc as ERR_INVALID_PASS_THROUGH,uc as ERR_INVALID_READER_OPTIONS,et as ERR_INVALID_SIGNAL,Gt as ERR_INVALID_SIGNATURE,qo as ERR_INVALID_SIGNATURE_DATA,es as ERR_INVALID_STRICTNESS,Co as ERR_INVALID_UID,Ke as ERR_INVALID_UNCOMPRESSED_SIZE,_o as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,Bo as ERR_INVALID_UNIX_ID_SIZE,No as ERR_INVALID_UNIX_MODE,yo as ERR_INVALID_VERSION,sn as ERR_ITERATOR_COMPLETED_TOO_SOON,Za as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Xa as ERR_OVERLAPPING_ENTRY,dc as ERR_READABLE_CONSUMED,_e as ERR_RESERVED_COMPRESSION_METHOD,Ya as ERR_SPLIT_ZIP_FILE,Uo as ERR_UNDEFINED_COMPRESSION_METHOD,Io as ERR_UNDEFINED_READER,Oo as ERR_UNDEFINED_UNCOMPRESSED_SIZE,To as ERR_UNDETERMINED_SIZE,ts as ERR_UNSAFE_FILENAME,Ka as ERR_UNSUPPORTED_COMPRESSION,Xi as ERR_UNSUPPORTED_CONTEXT,Xt as ERR_UNSUPPORTED_CRYPTO_API,Ga as ERR_UNSUPPORTED_ENCRYPTION,xo as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,go as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Fo as ERR_UNSUPPORTED_FORMAT,as as ERR_UNSUPPORTED_UINT64,hr as ERR_WORKER_STARTUP_TIMEOUT,on as ERR_WRITER_NOT_INITIALIZED,pc as ERR_ZIP_CRYPTO_LAST_MOD_DATE,jo as ERR_ZIP_NOT_EMPTY,Vn as HttpRangeReader,Zn as HttpReader,hn as Reader,Kn as SplitDataReader,Yn as SplitDataWriter,zn as TextReader,An as TextWriter,Hn as Uint8ArrayReader,Gn as Uint8ArrayWriter,fs as WARNING_APPENDED_DATA,is as WARNING_COMPRESSED_PATCHED_DATA,ms as WARNING_DUPLICATE_FILENAME,cs as WARNING_MALFORMED_EXTRA_FIELD,hs as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,ys as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,bs as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,ws as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,us as WARNING_PREPENDED_DATA,ps as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,os as WARNING_UNKNOWN_VERSION,ls as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,ss as WARNING_UNSORTED_CENTRAL_DIRECTORY,ds as WARNING_WRAPPED_ENTRIES_COUNT,yn as Writer,gc as ZipDirectoryEntry,yc as ZipEntry,xc as ZipFS,bc as ZipFileEntry,ks as ZipReader,As as ZipReaderStream,Yo as ZipWriter,Xo as ZipWriterStream,xt as configure,Gi as createBlobTempStream,Vi as createOPFSTempStream,Ji as createSyncAccessHandleTempStream,Ec as fs,Wc as getMimeType,Rs as isZipFile,qe as registerCodec,kt as resetConfiguration,cc as terminateWorkers,Ze as unregisterCodec};
|