single-file-core 1.6.20 → 1.6.21

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.
@@ -1 +1 @@
1
- !function(){"use strict";const{Array:t,Object:e,Number:n,Math:r,Error:s,Uint8Array:o,Uint16Array:c,Uint32Array:a,Int32Array:i,Map:w,DataView:u,Promise:f,TextEncoder:l,crypto:p,postMessage:d,TransformStream:h,ReadableStream:y,WritableStream:m,CompressionStream:S,DecompressionStream:g}=self,v=void 0,z="undefined",k="function",C=new o,I=[[],[],[],[],[],[],[],[]];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)e=1&e?e>>>1^3988292384:e>>>1;I[0][t]=e}for(let t=0;256>t;t++)for(let e=1;8>e;e++){const n=I[e-1][t];I[e][t]=n>>>8^I[0][255&n]}const[b,x,A,P,M,D,F,E]=I;class R{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const n=0|t.length;let r=0;if(n>=8&&t.buffer){const s=new u(t.buffer,t.byteOffset,n),o=n-8;for(;o>=r;r+=8){const t=e^s.getInt32(r,!0),n=s.getInt32(r+4,!0);e=E[255&t]^F[t>>>8&255]^D[t>>>16&255]^M[t>>>24&255]^P[255&n]^A[n>>>8&255]^x[n>>>16&255]^b[n>>>24&255]}}for(;n>r;r++)e=e>>>8^b[255&(e^t[r])];this.o=e}get(){return~this.o}}class T extends h{constructor(){let t;const e=new R;super({transform(t,n){e.append(t),n.enqueue(t)},flush(){const n=new o(4);new u(n.buffer).setUint32(0,e.get()),t.value=n}}),t=this}}function U(t,e){const n=new o(t.length+e.length);return n.set(t),n.set(e,t.length),n}function V(t){return new u(t.buffer,t.byteOffset,t.byteLength)}const B=64,j=20,K=new o([128]),O=new o(1),H=new i([1732584193,4023233417,2562383102,271733878,3285377520]),W=new o(256),L=new i(256),N=new i(256),q=new i(256),G=new i(256);let J=!1;function Q(t,e){(()=>{if(!J){let t=1,e=1;do{t=255&(t^t<<1^(128&t?27:0)),e=255&(e^e<<1),e=255&(e^e<<2),e=255&(e^e<<4),128&e&&(e^=9),W[t]=255&(e^(e<<1|e>>7)^(e<<2|e>>6)^(e<<3|e>>5)^(e<<4|e>>4)^99)}while(1!=t);W[0]=99;for(let t=0;256>t;t++){const e=W[t],n=$(e),r=n<<24|e<<16|e<<8|n^e;L[t]=r,N[t]=r>>>8|r<<24,q[t]=r>>>16|r<<16,G[t]=r>>>24|r<<8}J=!0}})();const n=new i(60),r=((t,e)=>{const n=t.length>>2,r=n+6,s=4*(r+1);let o=1;for(let r=0;n>r;r++)e[r]=t[4*r]<<24|t[4*r+1]<<16|t[4*r+2]<<8|t[4*r+3];for(let t=n;s>t;t++){let r=e[t-1];t%n==0?(r=Y(r<<8|r>>>24)^o<<24,o=$(o)):n>6&&t%n==4&&(r=Y(r)),e[t]=e[t-n]^r}return r})(t,n),s=new i(4),o=X(e);let c=0,a=0,w=0,f=0;return{process(t,e){e&&o.update(t,0,t.length),(t=>{const e=new u(t.buffer,t.byteOffset,t.byteLength),n=t.length;let r=0;for(;n>=r+16;r+=16)l(),e.setInt32(r,e.getInt32(r)^s[0]),e.setInt32(r+4,e.getInt32(r+4)^s[1]),e.setInt32(r+8,e.getInt32(r+8)^s[2]),e.setInt32(r+12,e.getInt32(r+12)^s[3]);if(n>r){l();for(let e=0;n>r;r++,e++)t[r]^=s[e>>2]>>>24-8*(3&e)}})(t),e||o.update(t,0,t.length)},digest:()=>o.digest()};function l(){c=c+1|0,c||(a=a+1|0,a||(w=w+1|0,w||(f=f+1|0)));let t=Z(c)^n[0],e=Z(a)^n[1],o=Z(w)^n[2],i=Z(f)^n[3],u=L[t>>>24]^N[e>>>16&255]^q[o>>>8&255]^G[255&i]^n[4],l=L[e>>>24]^N[o>>>16&255]^q[i>>>8&255]^G[255&t]^n[5],p=L[o>>>24]^N[i>>>16&255]^q[t>>>8&255]^G[255&e]^n[6],d=L[i>>>24]^N[t>>>16&255]^q[e>>>8&255]^G[255&o]^n[7];t=L[u>>>24]^N[l>>>16&255]^q[p>>>8&255]^G[255&d]^n[8],e=L[l>>>24]^N[p>>>16&255]^q[d>>>8&255]^G[255&u]^n[9],o=L[p>>>24]^N[d>>>16&255]^q[u>>>8&255]^G[255&l]^n[10],i=L[d>>>24]^N[u>>>16&255]^q[l>>>8&255]^G[255&p]^n[11],u=L[t>>>24]^N[e>>>16&255]^q[o>>>8&255]^G[255&i]^n[12],l=L[e>>>24]^N[o>>>16&255]^q[i>>>8&255]^G[255&t]^n[13],p=L[o>>>24]^N[i>>>16&255]^q[t>>>8&255]^G[255&e]^n[14],d=L[i>>>24]^N[t>>>16&255]^q[e>>>8&255]^G[255&o]^n[15],t=L[u>>>24]^N[l>>>16&255]^q[p>>>8&255]^G[255&d]^n[16],e=L[l>>>24]^N[p>>>16&255]^q[d>>>8&255]^G[255&u]^n[17],o=L[p>>>24]^N[d>>>16&255]^q[u>>>8&255]^G[255&l]^n[18],i=L[d>>>24]^N[u>>>16&255]^q[l>>>8&255]^G[255&p]^n[19],u=L[t>>>24]^N[e>>>16&255]^q[o>>>8&255]^G[255&i]^n[20],l=L[e>>>24]^N[o>>>16&255]^q[i>>>8&255]^G[255&t]^n[21],p=L[o>>>24]^N[i>>>16&255]^q[t>>>8&255]^G[255&e]^n[22],d=L[i>>>24]^N[t>>>16&255]^q[e>>>8&255]^G[255&o]^n[23],t=L[u>>>24]^N[l>>>16&255]^q[p>>>8&255]^G[255&d]^n[24],e=L[l>>>24]^N[p>>>16&255]^q[d>>>8&255]^G[255&u]^n[25],o=L[p>>>24]^N[d>>>16&255]^q[u>>>8&255]^G[255&l]^n[26],i=L[d>>>24]^N[u>>>16&255]^q[l>>>8&255]^G[255&p]^n[27],u=L[t>>>24]^N[e>>>16&255]^q[o>>>8&255]^G[255&i]^n[28],l=L[e>>>24]^N[o>>>16&255]^q[i>>>8&255]^G[255&t]^n[29],p=L[o>>>24]^N[i>>>16&255]^q[t>>>8&255]^G[255&e]^n[30],d=L[i>>>24]^N[t>>>16&255]^q[e>>>8&255]^G[255&o]^n[31],t=L[u>>>24]^N[l>>>16&255]^q[p>>>8&255]^G[255&d]^n[32],e=L[l>>>24]^N[p>>>16&255]^q[d>>>8&255]^G[255&u]^n[33],o=L[p>>>24]^N[d>>>16&255]^q[u>>>8&255]^G[255&l]^n[34],i=L[d>>>24]^N[u>>>16&255]^q[l>>>8&255]^G[255&p]^n[35],u=L[t>>>24]^N[e>>>16&255]^q[o>>>8&255]^G[255&i]^n[36],l=L[e>>>24]^N[o>>>16&255]^q[i>>>8&255]^G[255&t]^n[37],p=L[o>>>24]^N[i>>>16&255]^q[t>>>8&255]^G[255&e]^n[38],d=L[i>>>24]^N[t>>>16&255]^q[e>>>8&255]^G[255&o]^n[39];let h=40;r>10&&(t=L[u>>>24]^N[l>>>16&255]^q[p>>>8&255]^G[255&d]^n[40],e=L[l>>>24]^N[p>>>16&255]^q[d>>>8&255]^G[255&u]^n[41],o=L[p>>>24]^N[d>>>16&255]^q[u>>>8&255]^G[255&l]^n[42],i=L[d>>>24]^N[u>>>16&255]^q[l>>>8&255]^G[255&p]^n[43],u=L[t>>>24]^N[e>>>16&255]^q[o>>>8&255]^G[255&i]^n[44],l=L[e>>>24]^N[o>>>16&255]^q[i>>>8&255]^G[255&t]^n[45],p=L[o>>>24]^N[i>>>16&255]^q[t>>>8&255]^G[255&e]^n[46],d=L[i>>>24]^N[t>>>16&255]^q[e>>>8&255]^G[255&o]^n[47],h=48),r>12&&(t=L[u>>>24]^N[l>>>16&255]^q[p>>>8&255]^G[255&d]^n[48],e=L[l>>>24]^N[p>>>16&255]^q[d>>>8&255]^G[255&u]^n[49],o=L[p>>>24]^N[d>>>16&255]^q[u>>>8&255]^G[255&l]^n[50],i=L[d>>>24]^N[u>>>16&255]^q[l>>>8&255]^G[255&p]^n[51],u=L[t>>>24]^N[e>>>16&255]^q[o>>>8&255]^G[255&i]^n[52],l=L[e>>>24]^N[o>>>16&255]^q[i>>>8&255]^G[255&t]^n[53],p=L[o>>>24]^N[i>>>16&255]^q[t>>>8&255]^G[255&e]^n[54],d=L[i>>>24]^N[t>>>16&255]^q[e>>>8&255]^G[255&o]^n[55],h=56),s[0]=(W[u>>>24]<<24|W[l>>>16&255]<<16|W[p>>>8&255]<<8|W[255&d])^n[h],s[1]=(W[l>>>24]<<24|W[p>>>16&255]<<16|W[d>>>8&255]<<8|W[255&u])^n[h+1],s[2]=(W[p>>>24]<<24|W[d>>>16&255]<<16|W[u>>>8&255]<<8|W[255&l])^n[h+2],s[3]=(W[d>>>24]<<24|W[u>>>16&255]<<16|W[l>>>8&255]<<8|W[255&p])^n[h+3]}}function X(t){const e=(()=>{const t=new i(H),e=new i(16),n=new o(B),s=new u(n.buffer),c=new o(8);let a=0,w=0;return{update:f,digest:()=>{const e=8*w,n=r.floor(e/4294967296),s=e>>>0;for(f(K,0,1);56!=a;)f(O,0,1);c[0]=n>>>24,c[1]=n>>>16,c[2]=n>>>8,c[3]=n,c[4]=s>>>24,c[5]=s>>>16,c[6]=s>>>8,c[7]=s,f(c,0,8);const i=new o(j),l=new u(i.buffer);for(let e=0;e<t.length;e++)l.setInt32(4*e,t[e]);return t.set(H),a=0,w=0,i}};function f(t,e,r){const o=e+r;if(w+=r,a){for(;o>e&&B>a;)n[a++]=t[e++];a==B&&(l(s,0),a=0)}if(o>=e+B){const n=new u(t.buffer,t.byteOffset,t.byteLength);for(;o>=e+B;e+=B)l(n,e)}for(;o>e;)n[a++]=t[e++]}function l(n,r){for(let t=0;16>t;t++)e[t]=n.getInt32(r+4*t);let s,o=t[0],c=t[1],a=t[2],i=t[3],w=t[4];for(let t=0;15>t;t+=5)w=(o<<5|o>>>27)+((a^i)&c^i)+w+1518500249+e[t]|0,c=c<<30|c>>>2,i=(w<<5|w>>>27)+((c^a)&o^a)+i+1518500249+e[t+1]|0,o=o<<30|o>>>2,a=(i<<5|i>>>27)+((o^c)&w^c)+a+1518500249+e[t+2]|0,w=w<<30|w>>>2,c=(a<<5|a>>>27)+((w^o)&i^o)+c+1518500249+e[t+3]|0,i=i<<30|i>>>2,o=(c<<5|c>>>27)+((i^w)&a^w)+o+1518500249+e[t+4]|0,a=a<<30|a>>>2;w=(o<<5|o>>>27)+((a^i)&c^i)+w+1518500249+e[15]|0,c=c<<30|c>>>2,s=e[13]^e[8]^e[2]^e[0],s=s<<1|s>>>31,e[0]=s,i=(w<<5|w>>>27)+((c^a)&o^a)+i+1518500249+s|0,o=o<<30|o>>>2,s=e[14]^e[9]^e[3]^e[1],s=s<<1|s>>>31,e[1]=s,a=(i<<5|i>>>27)+((o^c)&w^c)+a+1518500249+s|0,w=w<<30|w>>>2,s=e[15]^e[10]^e[4]^e[2],s=s<<1|s>>>31,e[2]=s,c=(a<<5|a>>>27)+((w^o)&i^o)+c+1518500249+s|0,i=i<<30|i>>>2,s=e[0]^e[11]^e[5]^e[3],s=s<<1|s>>>31,e[3]=s,o=(c<<5|c>>>27)+((i^w)&a^w)+o+1518500249+s|0,a=a<<30|a>>>2;for(let t=20;40>t;t+=5)s=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],s=s<<1|s>>>31,e[15&t]=s,w=(o<<5|o>>>27)+(c^a^i)+w+1859775393+s|0,c=c<<30|c>>>2,s=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],s=s<<1|s>>>31,e[t+1&15]=s,i=(w<<5|w>>>27)+(o^c^a)+i+1859775393+s|0,o=o<<30|o>>>2,s=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],s=s<<1|s>>>31,e[t+2&15]=s,a=(i<<5|i>>>27)+(w^o^c)+a+1859775393+s|0,w=w<<30|w>>>2,s=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],s=s<<1|s>>>31,e[t+3&15]=s,c=(a<<5|a>>>27)+(i^w^o)+c+1859775393+s|0,i=i<<30|i>>>2,s=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],s=s<<1|s>>>31,e[t+4&15]=s,o=(c<<5|c>>>27)+(a^i^w)+o+1859775393+s|0,a=a<<30|a>>>2;for(let t=40;60>t;t+=5)s=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],s=s<<1|s>>>31,e[15&t]=s,w=(o<<5|o>>>27)+(c&a|(c|a)&i)+w+2400959708+s|0,c=c<<30|c>>>2,s=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],s=s<<1|s>>>31,e[t+1&15]=s,i=(w<<5|w>>>27)+(o&c|(o|c)&a)+i+2400959708+s|0,o=o<<30|o>>>2,s=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],s=s<<1|s>>>31,e[t+2&15]=s,a=(i<<5|i>>>27)+(w&o|(w|o)&c)+a+2400959708+s|0,w=w<<30|w>>>2,s=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],s=s<<1|s>>>31,e[t+3&15]=s,c=(a<<5|a>>>27)+(i&w|(i|w)&o)+c+2400959708+s|0,i=i<<30|i>>>2,s=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],s=s<<1|s>>>31,e[t+4&15]=s,o=(c<<5|c>>>27)+(a&i|(a|i)&w)+o+2400959708+s|0,a=a<<30|a>>>2;for(let t=60;80>t;t+=5)s=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],s=s<<1|s>>>31,e[15&t]=s,w=(o<<5|o>>>27)+(c^a^i)+w+3395469782+s|0,c=c<<30|c>>>2,s=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],s=s<<1|s>>>31,e[t+1&15]=s,i=(w<<5|w>>>27)+(o^c^a)+i+3395469782+s|0,o=o<<30|o>>>2,s=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],s=s<<1|s>>>31,e[t+2&15]=s,a=(i<<5|i>>>27)+(w^o^c)+a+3395469782+s|0,w=w<<30|w>>>2,s=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],s=s<<1|s>>>31,e[t+3&15]=s,c=(a<<5|a>>>27)+(i^w^o)+c+3395469782+s|0,i=i<<30|i>>>2,s=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],s=s<<1|s>>>31,e[t+4&15]=s,o=(c<<5|c>>>27)+(a^i^w)+o+3395469782+s|0,a=a<<30|a>>>2;t[0]=t[0]+o|0,t[1]=t[1]+c|0,t[2]=t[2]+a|0,t[3]=t[3]+i|0,t[4]=t[4]+w|0}})(),n=new o(B),s=new o(B);t.length>B&&(e.update(t,0,t.length),t=e.digest());for(let e=0;B>e;e++){const r=e<t.length?t[e]:0;n[e]=54^r,s[e]=92^r}return e.update(n,0,B),{update(t,n,r){e.update(t,n,r)},digest(){const t=e.digest();e.update(s,0,B),e.update(t,0,j);const r=e.digest();return e.update(n,0,B),r}}}function Y(t){return W[t>>>24]<<24|W[t>>>16&255]<<16|W[t>>>8&255]<<8|W[255&t]}function Z(t){return t<<24|(65280&t)<<8|t>>>8&65280|t>>>24}function $(t){return 255&(t<<1^27*(t>>7))}const _=typeof p!=z&&typeof p.getRandomValues==k,tt="Invalid password",et="zipjs-abort-check-password";function nt(t){if(_)return p.getRandomValues(t);throw new s("Crypto API not supported")}const rt={name:"PBKDF2"},st=e.assign({hash:{name:"HMAC"}},rt),ot=e.assign({iterations:1e3,hash:{name:"SHA-1"}},rt),ct=["deriveBits"],at=[8,12,16],it=[16,24,32],wt=10,ut=typeof p!=z,ft=ut&&p.subtle;let lt=ut&&typeof ft!=z&&typeof ft.importKey==k&&typeof ft.deriveBits==k,pt=Q;class dt extends h{constructor({password:t,rawPassword:e,encryptionStrength:n,checkPasswordOnly:r,checkAuthenticationCode:c=!0}){super({start(){yt(this,t,e,n)},async transform(t,e){const n=this,{password:c,strength:a,l:i,ready:w}=n;c?(await(async(t,e,n,r)=>{const o=await gt(t,e,n,zt(r,0,at[e])),c=zt(r,at[e]);if(o[0]!=c[0]||o[1]!=c[1])throw St(t),new s(tt)})(n,a,c,zt(t,0,at[a]+2)),t=zt(t,at[a]+2),r?(St(n),e.error(new s(et))):i()):await w;const u=new o(t.length-wt-(t.length-wt)%16);e.enqueue(mt(n,t,u,0,wt,!0))},async flush(t){const{h:e,m:n,ready:r}=this;if(e){await r;const a=zt(n,n.length-wt),i=new o(zt(n,0,n.length-wt));e.process(i,!0);const w=e.digest();let u=n.length<wt?1:0;for(let t=0;wt>t;t++)u|=w[t]^a[t];if(u&&c)throw new s("Invalid authentication code");t.enqueue(i)}},cancel(){St(this)}})}}class ht extends h{constructor({password:t,rawPassword:e,encryptionStrength:n}){super({start(){yt(this,t,e,n)},async transform(t,e){const n=this,{password:r,strength:s,l:c,ready:a}=n;let i=C;r?(i=await(async(t,e,n)=>{const r=nt(new o(at[e]));return U(r,await gt(t,e,n,r))})(n,s,r),c()):await a;const w=new o(i.length+t.length-t.length%16);w.set(i,0),e.enqueue(mt(n,t,w,i.length,0,!1))},async flush(t){const{h:e,m:n,ready:r}=this;if(e){await r;const s=new o(n);e.process(s,!1);const c=zt(e.digest(),0,wt);t.enqueue(U(s,c))}},cancel(){St(this)}})}}function yt(t,n,r,s){e.assign(t,{ready:new f(e=>t.l=e),password:vt(n,r),strength:s-1,m:C})}function mt(t,e,n,r,s,c){const{h:a,m:i}=t;i.length&&(e=U(i,e));const w=e.length-s,u=w-w%16;if(n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new o(e)).set(n,0)}return t})(n,r+u),u){const t=zt(n,r,r+u);t.set(zt(e,0,u)),a.process(t,c)}return t.m=zt(e,u),n}function St({h:t}){t&&t.dispose&&t.dispose()}async function gt(t,n,s,c){t.password=null;const a=it[n],i=await(async(t,n,s)=>{if(lt)try{const r=await ft.importKey("raw",t,st,!1,ct);return new o(await ft.deriveBits(e.assign({salt:n},ot),r,8*s))}catch{lt=!1}return((t,e,n,s)=>{const c=X(t),a=new o(s),i=new o(e.length+4),w=new u(i.buffer);i.set(e);for(let t=1,n=0;s>n;t++,n+=j){w.setUint32(e.length,t),c.update(i,0,i.length);let o=c.digest();const u=o.slice();for(let t=1;1e3>t;t++){c.update(o,0,j),o=c.digest();for(let t=0;j>t;t++)u[t]^=o[t]}a.set(u.subarray(0,r.min(j,s-n)),n)}return a})(t,n,0,s)})(s,c,2*a+2);return t.h=pt(zt(i,0,a),zt(i,a,2*a)),zt(i,2*a)}function vt(t,e){return e===v?(t=>{if(typeof l==z){const e=new o((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new l).encode(t)})(t):e}function zt(t,e,n){return t.subarray(e,n)}class kt extends h{constructor({password:t,rawPassword:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){It(this,t,e,n)},transform(t,e){const n=this;if(n.password||n.rawPassword){const e=bt(n,t.subarray(0,12));if(n.password=n.rawPassword=null,0!=(e[11]^n.passwordVerification))throw new s(tt);t=t.subarray(12)}r?e.error(new s(et)):e.enqueue(bt(n,t))}})}}class Ct extends h{constructor({password:t,rawPassword:e,passwordVerification:n}){super({start(){It(this,t,e,n)},transform(t,e){const n=this;let r,s;if(n.password||n.rawPassword){n.password=n.rawPassword=null;const e=nt(new o(12));e[11]=n.passwordVerification,r=new o(t.length+e.length),r.set(xt(n,e),0),s=12}else r=new o(t.length),s=0;r.set(xt(n,t),s),e.enqueue(r)}})}}function It(t,n,r,s){e.assign(t,{password:n,rawPassword:r,passwordVerification:s}),((t,n,r)=>{const s=[305419896,591751049,878082192];if(e.assign(t,{keys:s,S:new R(s[0]),v:new R(s[2])}),r)for(let e=0;e<r.length;e++)At(t,r[e]);else for(let e=0;e<n.length;e++)At(t,n.charCodeAt(e))})(t,n,r)}function bt(t,e){const n=new o(e.length);for(let r=0;r<e.length;r++)n[r]=Pt(t)^e[r],At(t,n[r]);return n}function xt(t,e){const n=new o(e.length);for(let r=0;r<e.length;r++)n[r]=Pt(t)^e[r],At(t,e[r]);return n}function At(t,e){let[,n]=t.keys;t.S.append([e]);const s=~t.S.get();n=Dt(r.imul(Dt(n+Mt(s)),134775813)+1),t.v.append([n>>>24]);const o=~t.v.get();t.keys=[s,n,o]}function Pt(t){const e=2|t.keys[2];return Mt(r.imul(e,1^e)>>>8)}function Mt(t){return 255&t}function Dt(t){return 4294967295&t}function Ft(t){if(t instanceof y)return t;const e=t.getReader();return new y({async pull(t){const{value:n,done:r}=await e.read();r?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}const Et=new w;function Rt(t){return Et.get(t)}const Tt="Invalid uncompressed size",Ut="deflate-raw",Vt="gzip",Bt=[31,139,8];class jt extends h{constructor(t,{chunkSize:e,CompressionStreamFallback:n,CompressionStream:r}){super({});const{compressed:s,encrypted:o,useCompressionStream:c,zipCrypto:a,computeCrc32:i,level:w,deflate64:f,format:l,compressionMethod:p,inputSize:d}=t,h=this;let y,m,S,g=super.readable;const v=l&&Rt(l),z=((t,e,n)=>t&&e?e:n&&n.C?n:void 0)(c,r,n),k=i&&s&&!f&&!v&&(!o||a)&&!!z;if(o&&!a||!i||k||(y=new T,g=qt(g,y)),s)if(v)g=Gt(g,Lt(v.CompressionStream,l,{level:w,chunkSize:e,compressionMethod:p,uncompressedSize:d}));else if(k)S=new Kt,g=Gt(g,new z(Vt,{level:w,chunkSize:e})),g=qt(g,S);else try{g=Nt(g,c,{level:w,chunkSize:e},r,n)}catch(t){let e;try{e=new r(Vt)}catch{throw t}g=Gt(g,e),g=qt(g,new Kt)}o&&(a?g=qt(g,new Ct(t)):(m=new ht(t),g=qt(g,m))),Wt(h,g,()=>{o&&!a||!i||(h.crc32=k?S.crc32:new u(y.value.buffer).getUint32(0))})}}class Kt extends h{constructor(){let t,e=10,n=new o(0);super({transform(t,s){if(e){const n=r.min(e,t.length);if(e-=n,!(t=t.subarray(n)).length)return}const o=n.length+t.length;if(8>=o)return void(n=U(n,t));const c=o-8,a=r.min(c,n.length);s.enqueue(U(n.subarray(0,a),t.subarray(0,c-a))),n=U(n.subarray(a),t.subarray(c-a))},flush(){const e=V(n);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class Ot extends h{constructor(t,{chunkSize:e,DecompressionStreamFallback:n,DecompressionStream:r}){super({});const{zipCrypto:c,encrypted:a,checkCrc32:i,crc32:w,compressed:l,useCompressionStream:p,deflate64:d,format:m,compressionMethod:S,rawBitFlag:g,outputSize:z}=t;let k,C,I,b=super.readable;if(a&&(c?b=qt(b,new kt(t)):(C=new dt(t),b=qt(b,C))),l){const t=m&&Rt(m);if(t)b=Gt(b,Lt(t.DecompressionStream,m,{chunkSize:e,compressionMethod:S,rawBitFlag:g,uncompressedSize:z}));else try{b=Nt(b,p,{chunkSize:e,deflate64:d},r,n)}catch(t){if(d||z===v)throw t;let e;try{e=new r(Vt)}catch{throw t}I=new R,b=((t,e,n,r)=>{let c,a,i,w=0,u=!1;const l=new f((t,e)=>{a=t,i=e});l.catch(()=>{}),n||a();const p=new h({start(t){const e=new o(10);e.set(Bt),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){u=!0,y();try{await l}finally{m()}const e=new o(8),s=V(e);s.setUint32(0,r.get(),!0),s.setUint32(4,n,!0),t.enqueue(e)},cancel(t){i(t)}}),d=new h({transform(t,e){r.append(t),w+=t.length,n>w?u&&y():a(),e.enqueue(t)},cancel(t){i(t)}});return t=qt(t,p),qt(t=Gt(t,e),d);function y(){m(),c=setTimeout(()=>i(new s(Tt)),5e3)}function m(){clearTimeout(c)}})(b,e,z,I)}b=(t=>{const e=t.getReader();return new y({async pull(t){let n;try{n=await e.read()}catch(t){if(t&&t.message)throw t;const e=new s("Invalid compressed data");throw e.cause=t,e}const{value:r,done:o}=n;o?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})})(b)}i&&!I&&(k=new T,b=qt(b,k)),Wt(this,b,()=>{if(i){const t=I?I.get()>>>0:new u(k.value.buffer).getUint32(0,!1);if(w!=t)throw new s("Invalid CRC32")}})}}const Ht=new w;function Wt(t,n,r){n=qt(n,new h({flush:r})),e.defineProperty(t,"readable",{get:()=>n})}function Lt(t,e,n){if(!t)throw new s("Compression method not supported");return new t(e,n)}function Nt(t,e,n,r,s){const o=e&&r?r:s||r,c=n.deflate64?"deflate64-raw":Ut;let a;try{a=new o(c,n)}catch(t){if(!e||!s||o==s)throw t;a=new s(c,n)}return Gt(t,a)}function qt(t,e){return Ft(t).pipeThrough(e)}function Gt(t,e){const n=e.writable.getWriter(),r=t.getReader();return(async()=>{try{for(;;){await n.ready;const t=await r.read();if(t.done){await n.close();break}await n.write(t.value)}}catch(t){await(async(t,e)=>{try{await t.abort(e)}catch{}})(n,t),await(async(t,e)=>{try{await t.cancel(e)}catch{}})(r,t)}})(),e.readable}const Jt="data",Qt="deflate";class Xt extends h{constructor(t,n){super({});const r=this,{codecType:o}=t;let c;o.startsWith(Qt)?c=jt:o.startsWith("inflate")&&(c=Ot),r.outputSize=0;let a=0;const i=new c(t,n),w=super.readable,u=new h({transform(t,e){t&&t.length&&(a+=t.length,e.enqueue(t))},flush(){e.assign(r,{inputSize:a})}}),f=new h({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==v&&r.outputSize>t.outputSize))throw new s(Tt)},flush(){const{crc32:t}=i;e.assign(r,{crc32:t,inputSize:a})}});e.defineProperty(r,"readable",{get:()=>w.pipeThrough(u).pipeThrough(i).pipeThrough(f)})}}class Yt extends h{constructor(t){const r=[];let s=0,c=0;function a(){const e=new o(t);let n=0;for(;t>n;){const s=r[0],o=t-n;s.length>o?(e.set(s.subarray(0,o),n),r[0]=s.subarray(o),n+=o):(e.set(s,n),n+=s.length,r.shift())}return s-=t,e}n.isFinite(t)&&t>=1||(t=65536),super({transform(e,n){for(r.push(e),s+=e.length;s>t;)c+=t,n.enqueue(a())},flush(t){s&&(c+=s,t.enqueue(((t,e)=>{const n=new o(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n})(r,s)))}}),e.defineProperty(this,"outputSize",{get:()=>c})}}let Zt=2;try{typeof navigator!=z&&navigator.hardwareConcurrency&&(Zt=navigator.hardwareConcurrency)}catch{}function $t(t){return!!t&&"object"==typeof t}const _t=new w,te=new w,ee=(()=>{try{return structuredClone(new s)instanceof s}catch{return!1}})();let ne=0;async function re(t){let e,o,c;try{const{options:a,config:i}=t;if(a.format)try{await(async(t,e)=>{!Et.has(t)&&e&&((t,e)=>{const{CompressionStream:n,DecompressionStream:r}=e;if(typeof n!=k&&typeof r!=k)throw new s("Invalid codec module");Et.set(t,{CompressionStream:n,DecompressionStream:r})})(t,await(import(e)))})(a.format,a.codecURI)}catch(t){if($t(t))try{t.codecImportFailed=!0}catch{}throw t}if(i.CompressionStream=self.CompressionStream,i.DecompressionStream=self.DecompressionStream,a.compressed&&!a.format)if(a.useCompressionStream){if(!((t,e)=>{if(!t)return!1;let n=Ht.get(t);n||(n=new w,Ht.set(t,n));let r=n.get(e);if(r===v){try{new t(e),r=!0}catch{r=!1}n.set(e,r)}return r})(a.codecType.startsWith(Qt)?i.CompressionStream:i.DecompressionStream,Ut))try{await self.initModule(t.config)}catch{}}else try{await self.initModule(t.config)}catch{a.useCompressionStream=!0}if(a.encrypted&&!a.zipCrypto)try{await self.initModule(t.config)}catch{}!i.CompressionStreamFallback&&i.CompressionStreamZlib&&(i.CompressionStreamFallback=i.CompressionStreamZlib),!i.DecompressionStreamFallback&&i.DecompressionStreamZlib&&(i.DecompressionStreamFallback=i.DecompressionStreamZlib);const u={highWaterMark:1},l=t.readable?Ft(t.readable):new y({async pull(t){const e=new f(t=>_t.set(ne,t));se({type:"pull",messageId:ne}),ne=(ne+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await e;t.enqueue(r),s&&t.close()}},u);c=t.writable?(t=>{if(t instanceof m)return t;const e=t.getWriter();return new m({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})})(t.writable):new m({async write(t){let e;const r=new f(t=>e=t);te.set(ne,e),se({type:Jt,value:t,messageId:ne}),ne=(ne+1)%n.MAX_SAFE_INTEGER,await r}},u),e=new Xt(a,i),o=new Yt((t=>{return s="string"==typeof(e=s=t.chunkSize)&&e.trim()?n(e):e,n.isInteger(s)&&s>=1?r.max(s,64):65536;var e,s})(i)),await l.pipeThrough(e).pipeThrough(o).pipeTo(c,{preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{crc32:p,inputSize:d,outputSize:h}=e;se({type:"close",result:{crc32:p,inputSize:d,outputSize:h}})}catch(t){const e=o?o.outputSize:0;if($t(t))try{t.outputSize=e}catch{}if(c&&!c.locked)try{await c.getWriter().close()}catch{}oe(t,e)}}function se(t){const{value:e}=t;if(e)if(e.length)try{t.value=(n=e,n.byteOffset||n.byteLength!=n.buffer.byteLength?new o(n):n).buffer,d(t,[t.value])}catch{d(t)}else d(t);else d(t);var n}function oe(t,e){const{message:n,stack:r,code:o,name:c,outputSize:a,cause:i,codecImportFailed:w}=((t=new s("Unknown error"))=>$t(t)?t:new s(t+""))(t),u={message:n,stack:r,code:o,name:c,outputSize:a===v?e:a};if(i&&(u.cause={name:i.name,message:i.message}),w&&(u.codecImportFailed=!0),ee)try{return void d({error:u,errorValue:{value:t}})}catch{}d({error:u})}addEventListener("message",({data:t})=>{const{type:e,messageId:n,value:r,done:s}=t;try{if("start"==e&&re(t),e==Jt){const t=_t.get(n);_t.delete(n),t({value:r||new o,done:s})}if("ack"==e){const t=te.get(n);te.delete(n),t()}}catch(t){oe(t)}}),d({type:"ready"}),((t={})=>{const{init:e,I:n}=t,r=t.CompressionStreamFallback||t.CompressionStreamZlib,s=t.DecompressionStreamFallback||t.DecompressionStreamZlib;n&&(pt=n||Q),self.initModule=async t=>{e&&await e(t),r&&(t.CompressionStreamFallback=r),s&&(t.DecompressionStreamFallback=s)}})()}();
1
+ !function(){"use strict";const{Array:t,Object:e,Number:n,Math:r,Error:o,Uint8Array:s,Uint16Array:c,Uint32Array:a,Int32Array:i,Map:u,DataView:w,Promise:f,TextEncoder:l,crypto:p,postMessage:d,TransformStream:h,ReadableStream:y,WritableStream:m,CompressionStream:S,DecompressionStream:g}=self,v=void 0,z="undefined",k="function",C=new s,I=[[],[],[],[],[],[],[],[]];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)e=1&e?e>>>1^3988292384:e>>>1;I[0][t]=e}for(let t=0;256>t;t++)for(let e=1;8>e;e++){const n=I[e-1][t];I[e][t]=n>>>8^I[0][255&n]}const[b,x,A,M,P,R,D,E]=I;class F{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const n=0|t.length;let r=0;if(n>=8&&t.buffer){const o=new w(t.buffer,t.byteOffset,n),s=n-8;for(;s>=r;r+=8){const t=e^o.getInt32(r,!0),n=o.getInt32(r+4,!0);e=E[255&t]^D[t>>>8&255]^R[t>>>16&255]^P[t>>>24&255]^M[255&n]^A[n>>>8&255]^x[n>>>16&255]^b[n>>>24&255]}}for(;n>r;r++)e=e>>>8^b[255&(e^t[r])];this.o=e}get(){return~this.o}}class U extends h{constructor(){let t;const e=new F;super({transform(t,n){e.append(t),n.enqueue(t)},flush(){const n=new s(4);new w(n.buffer).setUint32(0,e.get()),t.value=n}}),t=this}}function V(t,e){const n=new s(t.length+e.length);return n.set(t),n.set(e,t.length),n}function B(t){return new w(t.buffer,t.byteOffset,t.byteLength)}const K=64,O=20,j=new s([128]),T=new s(1),H=new i([1732584193,4023233417,2562383102,271733878,3285377520]),W=new s(256),_=new i(256),L=new i(256),N=new i(256),Z=new i(256);let q=!1;function G(t,e){(()=>{if(!q){let t=1,e=1;do{t=255&(t^t<<1^(128&t?27:0)),e=255&(e^e<<1),e=255&(e^e<<2),e=255&(e^e<<4),128&e&&(e^=9),W[t]=255&(e^(e<<1|e>>7)^(e<<2|e>>6)^(e<<3|e>>5)^(e<<4|e>>4)^99)}while(1!=t);W[0]=99;for(let t=0;256>t;t++){const e=W[t],n=Y(e),r=n<<24|e<<16|e<<8|n^e;_[t]=r,L[t]=r>>>8|r<<24,N[t]=r>>>16|r<<16,Z[t]=r>>>24|r<<8}q=!0}})();const n=new i(60),r=((t,e)=>{const n=t.length>>2,r=n+6,o=4*(r+1);let s=1;for(let r=0;n>r;r++)e[r]=t[4*r]<<24|t[4*r+1]<<16|t[4*r+2]<<8|t[4*r+3];for(let t=n;o>t;t++){let r=e[t-1];t%n==0?(r=Q(r<<8|r>>>24)^s<<24,s=Y(s)):n>6&&t%n==4&&(r=Q(r)),e[t]=e[t-n]^r}return r})(t,n),o=new i(4),s=J(e);let c=0,a=0,u=0,f=0;return{process(t,e){e&&s.update(t,0,t.length),(t=>{const e=new w(t.buffer,t.byteOffset,t.byteLength),n=t.length;let r=0;for(;n>=r+16;r+=16)l(),e.setInt32(r,e.getInt32(r)^o[0]),e.setInt32(r+4,e.getInt32(r+4)^o[1]),e.setInt32(r+8,e.getInt32(r+8)^o[2]),e.setInt32(r+12,e.getInt32(r+12)^o[3]);if(n>r){l();for(let e=0;n>r;r++,e++)t[r]^=o[e>>2]>>>24-8*(3&e)}})(t),e||s.update(t,0,t.length)},digest:()=>s.digest()};function l(){c=c+1|0,c||(a=a+1|0,a||(u=u+1|0,u||(f=f+1|0)));let t=X(c)^n[0],e=X(a)^n[1],s=X(u)^n[2],i=X(f)^n[3],w=_[t>>>24]^L[e>>>16&255]^N[s>>>8&255]^Z[255&i]^n[4],l=_[e>>>24]^L[s>>>16&255]^N[i>>>8&255]^Z[255&t]^n[5],p=_[s>>>24]^L[i>>>16&255]^N[t>>>8&255]^Z[255&e]^n[6],d=_[i>>>24]^L[t>>>16&255]^N[e>>>8&255]^Z[255&s]^n[7];t=_[w>>>24]^L[l>>>16&255]^N[p>>>8&255]^Z[255&d]^n[8],e=_[l>>>24]^L[p>>>16&255]^N[d>>>8&255]^Z[255&w]^n[9],s=_[p>>>24]^L[d>>>16&255]^N[w>>>8&255]^Z[255&l]^n[10],i=_[d>>>24]^L[w>>>16&255]^N[l>>>8&255]^Z[255&p]^n[11],w=_[t>>>24]^L[e>>>16&255]^N[s>>>8&255]^Z[255&i]^n[12],l=_[e>>>24]^L[s>>>16&255]^N[i>>>8&255]^Z[255&t]^n[13],p=_[s>>>24]^L[i>>>16&255]^N[t>>>8&255]^Z[255&e]^n[14],d=_[i>>>24]^L[t>>>16&255]^N[e>>>8&255]^Z[255&s]^n[15],t=_[w>>>24]^L[l>>>16&255]^N[p>>>8&255]^Z[255&d]^n[16],e=_[l>>>24]^L[p>>>16&255]^N[d>>>8&255]^Z[255&w]^n[17],s=_[p>>>24]^L[d>>>16&255]^N[w>>>8&255]^Z[255&l]^n[18],i=_[d>>>24]^L[w>>>16&255]^N[l>>>8&255]^Z[255&p]^n[19],w=_[t>>>24]^L[e>>>16&255]^N[s>>>8&255]^Z[255&i]^n[20],l=_[e>>>24]^L[s>>>16&255]^N[i>>>8&255]^Z[255&t]^n[21],p=_[s>>>24]^L[i>>>16&255]^N[t>>>8&255]^Z[255&e]^n[22],d=_[i>>>24]^L[t>>>16&255]^N[e>>>8&255]^Z[255&s]^n[23],t=_[w>>>24]^L[l>>>16&255]^N[p>>>8&255]^Z[255&d]^n[24],e=_[l>>>24]^L[p>>>16&255]^N[d>>>8&255]^Z[255&w]^n[25],s=_[p>>>24]^L[d>>>16&255]^N[w>>>8&255]^Z[255&l]^n[26],i=_[d>>>24]^L[w>>>16&255]^N[l>>>8&255]^Z[255&p]^n[27],w=_[t>>>24]^L[e>>>16&255]^N[s>>>8&255]^Z[255&i]^n[28],l=_[e>>>24]^L[s>>>16&255]^N[i>>>8&255]^Z[255&t]^n[29],p=_[s>>>24]^L[i>>>16&255]^N[t>>>8&255]^Z[255&e]^n[30],d=_[i>>>24]^L[t>>>16&255]^N[e>>>8&255]^Z[255&s]^n[31],t=_[w>>>24]^L[l>>>16&255]^N[p>>>8&255]^Z[255&d]^n[32],e=_[l>>>24]^L[p>>>16&255]^N[d>>>8&255]^Z[255&w]^n[33],s=_[p>>>24]^L[d>>>16&255]^N[w>>>8&255]^Z[255&l]^n[34],i=_[d>>>24]^L[w>>>16&255]^N[l>>>8&255]^Z[255&p]^n[35],w=_[t>>>24]^L[e>>>16&255]^N[s>>>8&255]^Z[255&i]^n[36],l=_[e>>>24]^L[s>>>16&255]^N[i>>>8&255]^Z[255&t]^n[37],p=_[s>>>24]^L[i>>>16&255]^N[t>>>8&255]^Z[255&e]^n[38],d=_[i>>>24]^L[t>>>16&255]^N[e>>>8&255]^Z[255&s]^n[39];let h=40;r>10&&(t=_[w>>>24]^L[l>>>16&255]^N[p>>>8&255]^Z[255&d]^n[40],e=_[l>>>24]^L[p>>>16&255]^N[d>>>8&255]^Z[255&w]^n[41],s=_[p>>>24]^L[d>>>16&255]^N[w>>>8&255]^Z[255&l]^n[42],i=_[d>>>24]^L[w>>>16&255]^N[l>>>8&255]^Z[255&p]^n[43],w=_[t>>>24]^L[e>>>16&255]^N[s>>>8&255]^Z[255&i]^n[44],l=_[e>>>24]^L[s>>>16&255]^N[i>>>8&255]^Z[255&t]^n[45],p=_[s>>>24]^L[i>>>16&255]^N[t>>>8&255]^Z[255&e]^n[46],d=_[i>>>24]^L[t>>>16&255]^N[e>>>8&255]^Z[255&s]^n[47],h=48),r>12&&(t=_[w>>>24]^L[l>>>16&255]^N[p>>>8&255]^Z[255&d]^n[48],e=_[l>>>24]^L[p>>>16&255]^N[d>>>8&255]^Z[255&w]^n[49],s=_[p>>>24]^L[d>>>16&255]^N[w>>>8&255]^Z[255&l]^n[50],i=_[d>>>24]^L[w>>>16&255]^N[l>>>8&255]^Z[255&p]^n[51],w=_[t>>>24]^L[e>>>16&255]^N[s>>>8&255]^Z[255&i]^n[52],l=_[e>>>24]^L[s>>>16&255]^N[i>>>8&255]^Z[255&t]^n[53],p=_[s>>>24]^L[i>>>16&255]^N[t>>>8&255]^Z[255&e]^n[54],d=_[i>>>24]^L[t>>>16&255]^N[e>>>8&255]^Z[255&s]^n[55],h=56),o[0]=(W[w>>>24]<<24|W[l>>>16&255]<<16|W[p>>>8&255]<<8|W[255&d])^n[h],o[1]=(W[l>>>24]<<24|W[p>>>16&255]<<16|W[d>>>8&255]<<8|W[255&w])^n[h+1],o[2]=(W[p>>>24]<<24|W[d>>>16&255]<<16|W[w>>>8&255]<<8|W[255&l])^n[h+2],o[3]=(W[d>>>24]<<24|W[w>>>16&255]<<16|W[l>>>8&255]<<8|W[255&p])^n[h+3]}}function J(t){const e=(()=>{const t=new i(H),e=new i(16),n=new s(K),o=new w(n.buffer),c=new s(8);let a=0,u=0;return{update:f,digest:()=>{const e=8*u,n=r.floor(e/4294967296),o=e>>>0;for(f(j,0,1);56!=a;)f(T,0,1);c[0]=n>>>24,c[1]=n>>>16,c[2]=n>>>8,c[3]=n,c[4]=o>>>24,c[5]=o>>>16,c[6]=o>>>8,c[7]=o,f(c,0,8);const i=new s(O),l=new w(i.buffer);for(let e=0;e<t.length;e++)l.setInt32(4*e,t[e]);return t.set(H),a=0,u=0,i}};function f(t,e,r){const s=e+r;if(u+=r,a){for(;s>e&&K>a;)n[a++]=t[e++];a==K&&(l(o,0),a=0)}if(s>=e+K){const n=new w(t.buffer,t.byteOffset,t.byteLength);for(;s>=e+K;e+=K)l(n,e)}for(;s>e;)n[a++]=t[e++]}function l(n,r){for(let t=0;16>t;t++)e[t]=n.getInt32(r+4*t);let o,s=t[0],c=t[1],a=t[2],i=t[3],u=t[4];for(let t=0;15>t;t+=5)u=(s<<5|s>>>27)+((a^i)&c^i)+u+1518500249+e[t]|0,c=c<<30|c>>>2,i=(u<<5|u>>>27)+((c^a)&s^a)+i+1518500249+e[t+1]|0,s=s<<30|s>>>2,a=(i<<5|i>>>27)+((s^c)&u^c)+a+1518500249+e[t+2]|0,u=u<<30|u>>>2,c=(a<<5|a>>>27)+((u^s)&i^s)+c+1518500249+e[t+3]|0,i=i<<30|i>>>2,s=(c<<5|c>>>27)+((i^u)&a^u)+s+1518500249+e[t+4]|0,a=a<<30|a>>>2;u=(s<<5|s>>>27)+((a^i)&c^i)+u+1518500249+e[15]|0,c=c<<30|c>>>2,o=e[13]^e[8]^e[2]^e[0],o=o<<1|o>>>31,e[0]=o,i=(u<<5|u>>>27)+((c^a)&s^a)+i+1518500249+o|0,s=s<<30|s>>>2,o=e[14]^e[9]^e[3]^e[1],o=o<<1|o>>>31,e[1]=o,a=(i<<5|i>>>27)+((s^c)&u^c)+a+1518500249+o|0,u=u<<30|u>>>2,o=e[15]^e[10]^e[4]^e[2],o=o<<1|o>>>31,e[2]=o,c=(a<<5|a>>>27)+((u^s)&i^s)+c+1518500249+o|0,i=i<<30|i>>>2,o=e[0]^e[11]^e[5]^e[3],o=o<<1|o>>>31,e[3]=o,s=(c<<5|c>>>27)+((i^u)&a^u)+s+1518500249+o|0,a=a<<30|a>>>2;for(let t=20;40>t;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(s<<5|s>>>27)+(c^a^i)+u+1859775393+o|0,c=c<<30|c>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,i=(u<<5|u>>>27)+(s^c^a)+i+1859775393+o|0,s=s<<30|s>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,a=(i<<5|i>>>27)+(u^s^c)+a+1859775393+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,c=(a<<5|a>>>27)+(i^u^s)+c+1859775393+o|0,i=i<<30|i>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,s=(c<<5|c>>>27)+(a^i^u)+s+1859775393+o|0,a=a<<30|a>>>2;for(let t=40;60>t;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(s<<5|s>>>27)+(c&a|(c|a)&i)+u+2400959708+o|0,c=c<<30|c>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,i=(u<<5|u>>>27)+(s&c|(s|c)&a)+i+2400959708+o|0,s=s<<30|s>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,a=(i<<5|i>>>27)+(u&s|(u|s)&c)+a+2400959708+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,c=(a<<5|a>>>27)+(i&u|(i|u)&s)+c+2400959708+o|0,i=i<<30|i>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,s=(c<<5|c>>>27)+(a&i|(a|i)&u)+s+2400959708+o|0,a=a<<30|a>>>2;for(let t=60;80>t;t+=5)o=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],o=o<<1|o>>>31,e[15&t]=o,u=(s<<5|s>>>27)+(c^a^i)+u+3395469782+o|0,c=c<<30|c>>>2,o=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],o=o<<1|o>>>31,e[t+1&15]=o,i=(u<<5|u>>>27)+(s^c^a)+i+3395469782+o|0,s=s<<30|s>>>2,o=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],o=o<<1|o>>>31,e[t+2&15]=o,a=(i<<5|i>>>27)+(u^s^c)+a+3395469782+o|0,u=u<<30|u>>>2,o=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],o=o<<1|o>>>31,e[t+3&15]=o,c=(a<<5|a>>>27)+(i^u^s)+c+3395469782+o|0,i=i<<30|i>>>2,o=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],o=o<<1|o>>>31,e[t+4&15]=o,s=(c<<5|c>>>27)+(a^i^u)+s+3395469782+o|0,a=a<<30|a>>>2;t[0]=t[0]+s|0,t[1]=t[1]+c|0,t[2]=t[2]+a|0,t[3]=t[3]+i|0,t[4]=t[4]+u|0}})(),n=new s(K),o=new s(K);t.length>K&&(e.update(t,0,t.length),t=e.digest());for(let e=0;K>e;e++){const r=e<t.length?t[e]:0;n[e]=54^r,o[e]=92^r}return e.update(n,0,K),{update(t,n,r){e.update(t,n,r)},digest(){const t=e.digest();e.update(o,0,K),e.update(t,0,O);const r=e.digest();return e.update(n,0,K),r}}}function Q(t){return W[t>>>24]<<24|W[t>>>16&255]<<16|W[t>>>8&255]<<8|W[255&t]}function X(t){return t<<24|(65280&t)<<8|t>>>8&65280|t>>>24}function Y(t){return 255&(t<<1^27*(t>>7))}const $=typeof p!=z&&typeof p.getRandomValues==k,tt="Invalid password",et="zipjs-abort-check-password";function nt(t){if($)return p.getRandomValues(t);throw new o("Crypto API not supported")}const rt={name:"PBKDF2"},ot=e.assign({hash:{name:"HMAC"}},rt),st=e.assign({iterations:1e3,hash:{name:"SHA-1"}},rt),ct=["deriveBits"],at=[8,12,16],it=[16,24,32],ut=10,wt=typeof p!=z,ft=wt&&p.subtle;let lt=wt&&typeof ft!=z&&typeof ft.importKey==k&&typeof ft.deriveBits==k,pt=G;class dt extends h{constructor({password:t,rawPassword:e,encryptionStrength:n,checkPasswordOnly:r,checkAuthenticationCode:c=!0}){const a={};super({start(){yt(a,t,e,n)},async transform(t,e){const{password:n,strength:c,l:i,ready:u}=a;if(n?(await(async(t,e,n,r)=>{const s=await vt(t,e,n,kt(r,0,at[e])),c=kt(r,at[e]);if(s[0]!=c[0]||s[1]!=c[1])throw gt(t),new o(tt)})(a,c,n,kt(t,0,at[c]+2)),t=kt(t,at[c]+2),r?(gt(a),e.error(new o(et))):i()):await u,a.h)return;const w=new s(t.length-ut-(t.length-ut)%16);e.enqueue(St(a,t,w,0,ut,!0))},async flush(t){const{m:e,S:n,ready:r}=a;if(e){if(await r,a.h)return;const i=kt(n,n.length-ut),u=new s(kt(n,0,n.length-ut));e.process(u,!0);const w=e.digest();let f=n.length<ut?1:0;for(let t=0;ut>t;t++)f|=w[t]^i[t];if(f&&c)return void t.error(new o("Invalid authentication code"));t.enqueue(u)}}}),mt(this,a)}}class ht extends h{constructor({password:t,rawPassword:e,encryptionStrength:n}){const r={};super({start(){yt(r,t,e,n)},async transform(t,e){const{password:n,strength:o,l:c,ready:a}=r;let i=C;if(n?(i=await(async(t,e,n)=>{const r=nt(new s(at[e]));return V(r,await vt(t,e,n,r))})(r,o,n),c()):await a,r.h)return;const u=new s(i.length+t.length-t.length%16);u.set(i,0),e.enqueue(St(r,t,u,i.length,0,!1))},async flush(t){const{m:e,S:n,ready:o}=r;if(e){if(await o,r.h)return;const c=new s(n);e.process(c,!1);const a=kt(e.digest(),0,ut);t.enqueue(V(c,a))}}}),mt(this,r)}}function yt(t,n,r,o){e.assign(t,{ready:new f(e=>t.l=e),password:zt(n,r),strength:o-1,S:C,h:!1})}function mt(t,n){const r=t.readable.getReader(),o=new y({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw gt(n),r.cancel(t).catch(()=>{}),t}},cancel:t=>(gt(n),r.cancel(t))});e.defineProperty(t,"readable",{get:()=>o})}function St(t,e,n,r,o,c){const{m:a,S:i}=t;i.length&&(e=V(i,e));const u=e.length-o,w=u-u%16;if(n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new s(e)).set(n,0)}return t})(n,r+w),w){const t=kt(n,r,r+w);t.set(kt(e,0,w)),a.process(t,c)}return t.S=kt(e,w),n}function gt(t){const{m:e}=t;t.h=!0,e&&e.dispose&&e.dispose()}async function vt(t,n,o,c){t.password=null;const a=it[n],i=await(async(t,n,o)=>{if(lt)try{const r=await ft.importKey("raw",t,ot,!1,ct);return new s(await ft.deriveBits(e.assign({salt:n},st),r,8*o))}catch{lt=!1}return((t,e,n,o)=>{const c=J(t),a=new s(o),i=new s(e.length+4),u=new w(i.buffer);i.set(e);for(let t=1,n=0;o>n;t++,n+=O){u.setUint32(e.length,t),c.update(i,0,i.length);let s=c.digest();const w=s.slice();for(let t=1;1e3>t;t++){c.update(s,0,O),s=c.digest();for(let t=0;O>t;t++)w[t]^=s[t]}a.set(w.subarray(0,r.min(O,o-n)),n)}return a})(t,n,0,o)})(o,c,2*a+2);return t.m=pt(kt(i,0,a),kt(i,a,2*a)),t.h&&gt(t),kt(i,2*a)}function zt(t,e){return e===v?(t=>{if(typeof l==z){const e=new s((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new l).encode(t)})(t):e}function kt(t,e,n){return t.subarray(e,n)}class Ct extends h{constructor({password:t,rawPassword:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){bt(this,t,e,n)},transform(t,e){const n=this;if(n.password||n.rawPassword){const e=xt(n,t.subarray(0,12));if(n.password=n.rawPassword=null,0!=(e[11]^n.passwordVerification))throw new o(tt);t=t.subarray(12)}r?e.error(new o(et)):e.enqueue(xt(n,t))}})}}class It extends h{constructor({password:t,rawPassword:e,passwordVerification:n}){super({start(){bt(this,t,e,n)},transform(t,e){const n=this;let r,o;if(n.password||n.rawPassword){n.password=n.rawPassword=null;const e=nt(new s(12));e[11]=n.passwordVerification,r=new s(t.length+e.length),r.set(At(n,e),0),o=12}else r=new s(t.length),o=0;r.set(At(n,t),o),e.enqueue(r)}})}}function bt(t,n,r,o){e.assign(t,{password:n,rawPassword:r,passwordVerification:o}),((t,n,r)=>{const o=[305419896,591751049,878082192];if(e.assign(t,{v:o,C:new F(o[0]),I:new F(o[2])}),r)for(let e=0;e<r.length;e++)Mt(t,r[e]);else for(let e=0;e<n.length;e++)Mt(t,n.charCodeAt(e))})(t,n,r)}function xt(t,e){const n=new s(e.length);for(let r=0;r<e.length;r++)n[r]=Pt(t)^e[r],Mt(t,n[r]);return n}function At(t,e){const n=new s(e.length);for(let r=0;r<e.length;r++)n[r]=Pt(t)^e[r],Mt(t,e[r]);return n}function Mt(t,e){let[,n]=t.v;t.C.append([e]);const o=~t.C.get();n=Dt(r.imul(Dt(n+Rt(o)),134775813)+1),t.I.append([n>>>24]);const s=~t.I.get();t.v=[o,n,s]}function Pt(t){const e=2|t.v[2];return Rt(r.imul(e,1^e)>>>8)}function Rt(t){return 255&t}function Dt(t){return 4294967295&t}function Et(t){return!!t&&"object"==typeof t}const Ft=new u;function Ut(t){return Ft.get(t)}const Vt="Invalid uncompressed size",Bt="Codec out of memory",Kt="Invalid CRC32",Ot="deflate-raw",jt="gzip",Tt=[31,139,8];class Ht extends h{constructor(t,{chunkSize:e,CompressionStreamFallback:n,CompressionStream:r}){super({});const{compressed:o,encrypted:s,useCompressionStream:c,zipCrypto:a,computeCrc32:i,level:u,deflate64:f,format:l,compressionMethod:p,inputSize:d}=t,h=this;let y,m,S,g=super.readable;const v=l&&Ut(l),z=qt(c,r,n),k=i&&o&&!f&&!v&&(!s||a)&&!!z;if(s&&!a||!i||k||(y=new U,g=Jt(g,y)),o)if(v)g=Qt(g,Zt(v.CompressionStream,l,{level:u,chunkSize:e,compressionMethod:p,uncompressedSize:d}));else if(k)S=new Wt,g=Qt(g,new z(jt,{level:u,chunkSize:e})),g=Jt(g,S);else try{g=Gt(g,c,{level:u,chunkSize:e},r,n)}catch(t){if(!c&&n)throw ee(t);let e;try{e=new r(jt)}catch{throw ee(t)}g=Qt(g,e),g=Jt(g,new Wt)}s&&(a?g=Jt(g,new It(t)):(m=new ht(t),g=Jt(g,m))),Nt(h,g,()=>{s&&!a||!i||(h.crc32=k?S.crc32:new w(y.value.buffer).getUint32(0))})}}class Wt extends h{constructor(){let t,e=10,n=new s(0);super({transform(t,o){if(e){const n=r.min(e,t.length);if(e-=n,!(t=t.subarray(n)).length)return}const s=n.length+t.length;if(8>=s)return void(n=V(n,t));const c=s-8,a=r.min(c,n.length);o.enqueue(V(n.subarray(0,a),t.subarray(0,c-a))),n=V(n.subarray(a),t.subarray(c-a))},flush(){const e=B(n);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class _t extends h{constructor(t,{chunkSize:e,DecompressionStreamFallback:n,DecompressionStream:r}){super({});const{zipCrypto:c,encrypted:a,checkCrc32:i,crc32:u,compressed:l,useCompressionStream:p,deflate64:d,format:h,compressionMethod:m,rawBitFlag:S,outputSize:g}=t;let z,k,C,I=super.readable;if(a&&(c?I=Jt(I,new Ct(t)):(k=new dt(t),I=Jt(I,k))),l){const t=new Set,c=h&&Ut(h);let a;if(c)I=Qt(I,Zt(c.DecompressionStream,h,{chunkSize:e,compressionMethod:m,rawBitFlag:S,uncompressedSize:g}),t);else{const o=qt(p,r,n);if(i&&!d&&u!==v&&g!==v&&o)try{a=new o(jt,{chunkSize:e})}catch{a=v}if(!a)try{I=Gt(I,p,{chunkSize:e,deflate64:d},r,n,t)}catch(t){if(d||g===v||!p&&n)throw ee(t);try{a=new r(jt)}catch{throw ee(t)}}}a?(C=!0,I=((t,e,n,r,c)=>{const a=e.writable.getWriter(),i=e.readable.getReader(),u=r===v?new F:v;let w,l,p=0,d=!1,h=!1;const m=new y({start(t){l=t},pull(){z()},cancel:t=>(h=!0,z(),i.cancel(t))});return(async()=>{const e=t.getReader();try{const t=new s(10);for(t.set(Tt),await a.write(t);;){await g(),await a.ready;const{value:t,done:n}=await $t(e,c);if(n)break;await a.write(t)}u&&await a.write(new s(0));const o=new s(8),i=B(o);i.setUint32(0,u?u.get():r,!0),i.setUint32(4,n,!0),d=!0,await a.write(o),await a.close()}catch(t){await Xt(a,t),await Yt(e,t)}})(),(async()=>{try{for(;;){const{value:t,done:e}=await S();if(e)break;if(p+=t.length,p>n)throw new o(Vt);u&&u.append(t),l.enqueue(t)}h||(h=!0,l.close())}catch(t){(t=>{h||(h=!0,l.error(t),z())})(t),await Yt(i,t)}})(),m;function S(){return i.read().catch(t=>{if(d){if(!u)throw re(t,Kt);if(p!=n)throw re(t,Vt);return{done:!0}}throw te(t,c)})}function g(){if(!h&&0>=l.desiredSize)return new f(t=>w=t)}function z(){if(w){const t=w;w=v,t()}}})(I,a,g,u,t)):I=((t,e)=>{const n=t.getReader();return new y({async pull(t){try{const{value:e,done:r}=await n.read();r?t.close():t.enqueue(e)}catch(t){throw await Yt(n,t),te(t,e)}},cancel:t=>n.cancel(t)})})(I,t)}i&&!C&&(z=new U,I=Jt(I,z)),Nt(this,I,()=>{if(z){const t=new w(z.value.buffer).getUint32(0,!1);if(u!=t)throw new o(Kt)}})}}const Lt=new u;function Nt(t,n,r){n=Jt(n,new h({flush:r})),e.defineProperty(t,"readable",{get:()=>n})}function Zt(t,e,n){if(!t)throw new o("Compression method not supported");return new t(e,n)}function qt(t,e,n){return t&&e?e:n&&n.requiresModule?n:void 0}function Gt(t,e,n,r,o,s){const c=e&&r?r:o||r,a=n.deflate64?"deflate64-raw":Ot;let i;try{i=new c(a,n)}catch(t){if(!e||!o||c==o)throw t;i=new o(a,n)}return Qt(t,i,s)}function Jt(t,e){return(t=>{if(t instanceof y)return t;const e=t.getReader();return new y({async pull(t){try{const{value:n,done:r}=await e.read();r?t.close():t.enqueue(n)}catch(t){throw e.cancel(t).catch(()=>{}),t}},cancel:t=>e.cancel(t)})})(t).pipeThrough(e)}function Qt(t,e,n){const r=e.writable.getWriter(),o=t.getReader();return(async()=>{try{for(;;){await r.ready;const t=await $t(o,n);if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await Xt(r,t),await Yt(o,t)}})(),e.readable}async function Xt(t,e){try{await t.abort(e)}catch{}}async function Yt(t,e){try{await t.cancel(e)}catch{}}function $t(t,e){const n=t.read();return e?n.catch(t=>{throw e.add(t),t}):n}function te(t,e){return e.has(t)?t:re(t,ne(t)?Bt:"Invalid compressed data")}function ee(t){return ne(t)?re(t,Bt):t}function ne(t){return Et(t)&&"Z_MEM_ERROR"==t.code}function re(t,e){const n=new o(e);return n.cause=t,n}const oe="data",se="deflate";class ce extends h{constructor(t,n){super({});const r=this,{codecType:s}=t;let c;s.startsWith(se)?c=Ht:s.startsWith("inflate")&&(c=_t),r.outputSize=0;let a=0;const i=new c(t,n),u=super.readable,w=new h({transform(t,e){t&&t.length&&(a+=t.length,e.enqueue(t))},flush(){e.assign(r,{inputSize:a})}}),f=new h({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==v&&r.outputSize>t.outputSize))throw new o(Vt)},flush(){const{crc32:t}=i;e.assign(r,{crc32:t,inputSize:a})}});e.defineProperty(r,"readable",{get:()=>u.pipeThrough(w).pipeThrough(i).pipeThrough(f)})}}class ae extends h{constructor(t){const r=[];let o=0,c=0;function a(){const e=new s(t);let n=0;for(;t>n;){const o=r[0],s=t-n;o.length>s?(e.set(o.subarray(0,s),n),r[0]=o.subarray(s),n+=s):(e.set(o,n),n+=o.length,r.shift())}return o-=t,e}n.isFinite(t)&&t>=1||(t=262144),super({transform(e,n){for(r.push(e),o+=e.length;o>t;)c+=t,n.enqueue(a())},flush(t){o&&(c+=o,t.enqueue(((t,e)=>{const n=new s(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n})(r,o)))}}),e.defineProperty(this,"outputSize",{get:()=>c})}}let ie=2;try{typeof navigator!=z&&navigator.hardwareConcurrency&&(ie=navigator.hardwareConcurrency)}catch{}const ue=new u,we=new u,fe=(()=>{try{return structuredClone(new o)instanceof o}catch{return!1}})();let le=0;async function pe(t){let e,s,c;try{const{options:a,config:i}=t;if(a.format)try{await(async(t,e)=>{!Ft.has(t)&&e&&((t,e)=>{const{CompressionStream:n,DecompressionStream:r}=e;if(typeof n!=k&&typeof r!=k)throw new o("Invalid codec module");Ft.set(t,{CompressionStream:n,DecompressionStream:r})})(t,await(import(e)))})(a.format,a.codecURI)}catch(t){if(Et(t))try{t.codecImportFailed=!0}catch{}throw t}if(i.CompressionStream=self.CompressionStream,i.DecompressionStream=self.DecompressionStream,a.compressed&&!a.format)if(a.useCompressionStream){if(!((t,e)=>{if(!t)return!1;let n=Lt.get(t);n||(n=new u,Lt.set(t,n));let r=n.get(e);if(r===v){try{new t(e),r=!0}catch{r=!1}n.set(e,r)}return r})(a.codecType.startsWith(se)?i.CompressionStream:i.DecompressionStream,Ot))try{await self.initModule(t.config)}catch{}}else try{await self.initModule(t.config)}catch{a.useCompressionStream=!0}if(a.encrypted&&!a.zipCrypto)try{await self.initModule(t.config)}catch{}!i.CompressionStreamFallback&&i.CompressionStreamZlib&&(i.CompressionStreamFallback=i.CompressionStreamZlib),!i.DecompressionStreamFallback&&i.DecompressionStreamZlib&&(i.DecompressionStreamFallback=i.DecompressionStreamZlib);const w={highWaterMark:1},l=new y({async pull(t){const e=new f(t=>ue.set(le,t));de({type:"pull",messageId:le}),le=(le+1)%n.MAX_SAFE_INTEGER;const{value:r,done:o}=await e;t.enqueue(r),o&&t.close()}},w);c=new m({async write(t){let e;const r=new f(t=>e=t);we.set(le,e),de({type:oe,value:t,messageId:le}),le=(le+1)%n.MAX_SAFE_INTEGER,await r}},w),e=new ce(a,i),s=new ae((t=>{return o="string"==typeof(e=o=t.chunkSize)&&e.trim()?n(e):e,n.isInteger(o)&&o>=1?r.max(o,64):262144;var e,o})(i)),await l.pipeThrough(e).pipeThrough(s).pipeTo(c,{preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{crc32:p,inputSize:d,outputSize:h}=e;de({type:"close",result:{crc32:p,inputSize:d,outputSize:h}})}catch(t){const e=s?s.outputSize:0;if(Et(t))try{t.outputSize=e}catch{}if(c&&!c.locked)try{await c.getWriter().close()}catch{}he(t,e)}}function de(t){const{value:e}=t;if(e)if(e.length)try{t.value=(n=e,n.byteOffset||n.byteLength!=n.buffer.byteLength?new s(n):n).buffer,d(t,[t.value])}catch{d(t)}else d(t);else d(t);var n}function he(t,e){const{message:n,stack:r,code:s,name:c,outputSize:a,cause:i,codecImportFailed:u}=((t=new o("Unknown error"))=>Et(t)?t:new o(t+""))(t),w={message:n,stack:r,code:s,name:c,outputSize:a===v?e:a};if(Et(i)&&(w.cause={name:i.name,message:i.message,code:i.code}),u&&(w.codecImportFailed=!0),fe)try{return void d({error:w,errorValue:{value:t}})}catch{}d({error:w})}addEventListener("message",({data:t})=>{const{type:e,messageId:n,value:r,done:o}=t;try{if("start"==e&&pe(t),e==oe){const t=ue.get(n);ue.delete(n),t({value:r||new s,done:o})}if("ack"==e){const t=we.get(n);we.delete(n),t()}}catch(t){he(t)}}),d({type:"ready"}),((t={})=>{const{init:e,A:n}=t,r=t.CompressionStreamFallback||t.CompressionStreamZlib,o=t.DecompressionStreamFallback||t.DecompressionStreamZlib;n&&(pt=n||G),self.initModule=async t=>{e&&await e(t),r&&(t.CompressionStreamFallback=r),o&&(t.DecompressionStreamFallback=o)}})()}();