@zip.js/zip.js 2.6.20 → 2.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.
- package/dist/zip-fs-full.js +214 -118
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +214 -118
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +214 -118
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +214 -118
- package/dist/zip.min.js +1 -1
- package/lib/core/zip-writer.js +214 -118
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})})(this,(function(e){"use strict";const{Array:t,Object:n,String:r,BigInt:s,Math:i,Date:a,Map:o,URL:l,Error:c,Uint8Array:u,Uint16Array:d,Uint32Array:h,DataView:f,Blob:p,Promise:w,TextEncoder:g,TextDecoder:_,document:m,crypto:y,btoa:b,TransformStream:x,ReadableStream:k,WritableStream:v,CompressionStream:R,DecompressionStream:z,navigator:S}=globalThis,T=(()=>{const e=-2;function n(e){return r(e.map((([e,n])=>new t(e).fill(n,0,e))))}function r(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?r(n):n)),[])}const s=[0,1,2,3].concat(...n([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function a(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.build_tree=n=>{const r=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.elems;let o,l,c,u=-1;for(n.heap_len=0,n.heap_max=573,o=0;a>o;o++)0!==r[2*o]?(n.heap[++n.heap_len]=u=o,n.depth[o]=0):r[2*o+1]=0;for(;2>n.heap_len;)c=n.heap[++n.heap_len]=2>u?++u:0,r[2*c]=1,n.depth[c]=0,n.opt_len--,s&&(n.static_len-=s[2*c+1]);for(e.max_code=u,o=i.floor(n.heap_len/2);o>=1;o--)n.pqdownheap(r,o);c=a;do{o=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(r,1),l=n.heap[1],n.heap[--n.heap_max]=o,n.heap[--n.heap_max]=l,r[2*c]=r[2*o]+r[2*l],n.depth[c]=i.max(n.depth[o],n.depth[l])+1,r[2*o+1]=r[2*l+1]=c,n.heap[1]=c++,n.pqdownheap(r,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],(t=>{const n=e.dyn_tree,r=e.stat_desc.static_tree,s=e.stat_desc.extra_bits,i=e.stat_desc.extra_base,a=e.stat_desc.max_length;let o,l,c,u,d,h,f=0;for(u=0;15>=u;u++)t.bl_count[u]=0;for(n[2*t.heap[t.heap_max]+1]=0,o=t.heap_max+1;573>o;o++)l=t.heap[o],u=n[2*n[2*l+1]+1]+1,u>a&&(u=a,f++),n[2*l+1]=u,l>e.max_code||(t.bl_count[u]++,d=0,i>l||(d=s[l-i]),h=n[2*l],t.opt_len+=h*(u+d),r&&(t.static_len+=h*(r[2*l+1]+d)));if(0!==f){do{for(u=a-1;0===t.bl_count[u];)u--;t.bl_count[u]--,t.bl_count[u+1]+=2,t.bl_count[a]--,f-=2}while(f>0);for(u=a;0!==u;u--)for(l=t.bl_count[u];0!==l;)c=t.heap[--o],c>e.max_code||(n[2*c+1]!=u&&(t.opt_len+=(u-n[2*c+1])*n[2*c],n[2*c+1]=u),l--)}})(n),((e,n,r)=>{const s=[];let i,a,o,l=0;for(i=1;15>=i;i++)s[i]=l=l+r[i-1]<<1;for(a=0;n>=a;a++)o=e[2*a+1],0!==o&&(e[2*a]=t(s[o]++,o))})(r,e.max_code,n.bl_count)}}function o(e,t,n,r,s){const i=this;i.static_tree=e,i.extra_bits=t,i.extra_base=n,i.elems=r,i.max_length=s}a._length_code=[0,1,2,3,4,5,6,7].concat(...n([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),a.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],a.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],a.d_code=e=>256>e?s[e]:s[256+(e>>>7)],a.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],a.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const l=n([[144,8],[112,9],[24,7],[8,8]]);o.static_ltree=r([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,l[t]])));const h=n([[30,5]]);function f(e,t,n,r,s){const i=this;i.good_length=e,i.max_lazy=t,i.nice_length=n,i.max_chain=r,i.func=s}o.static_dtree=r([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,h[t]]))),o.static_l_desc=new o(o.static_ltree,a.extra_lbits,257,286,15),o.static_d_desc=new o(o.static_dtree,a.extra_dbits,0,30,15),o.static_bl_desc=new o(null,a.extra_blbits,0,19,7);const p=[new f(0,0,0,0,0),new f(4,4,8,4,1),new f(4,5,16,8,1),new f(4,6,32,32,1),new f(4,4,16,16,2),new f(8,16,32,32,2),new f(8,16,128,128,2),new f(8,32,128,256,2),new f(32,128,258,1024,2),new f(32,258,258,4096,2)],w=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],g=113,_=666,m=262;function y(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function b(){const t=this;let n,r,s,l,c,h,f,b,x,k,v,R,z,S,T,A,E,D,F,C,W,U,M,H,I,q,B,L,N,V,P,O,K;const Z=new a,X=new a,Y=new a;let j,G,J,Q,$,ee;function te(){let e;for(e=0;286>e;e++)P[2*e]=0;for(e=0;30>e;e++)O[2*e]=0;for(e=0;19>e;e++)K[2*e]=0;P[512]=1,t.opt_len=t.static_len=0,G=J=0}function ne(e,t){let n,r=-1,s=e[1],i=0,a=7,o=4;0===s&&(a=138,o=3),e[2*(t+1)+1]=65535;for(let l=0;t>=l;l++)n=s,s=e[2*(l+1)+1],++i<a&&n==s||(o>i?K[2*n]+=i:0!==n?(n!=r&&K[2*n]++,K[32]++):i>10?K[36]++:K[34]++,i=0,r=n,0===s?(a=138,o=3):n==s?(a=6,o=3):(a=7,o=4))}function re(e){t.pending_buf[t.pending++]=e}function se(e){re(255&e),re(e>>>8&255)}function ie(e,t){let n;const r=t;ee>16-r?(n=e,$|=n<<ee&65535,se($),$=n>>>16-ee,ee+=r-16):($|=e<<ee&65535,ee+=r)}function ae(e,t){const n=2*e;ie(65535&t[n],65535&t[n+1])}function oe(e,t){let n,r,s=-1,i=e[1],a=0,o=7,l=4;for(0===i&&(o=138,l=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++a>=o||r!=i){if(l>a)do{ae(r,K)}while(0!=--a);else 0!==r?(r!=s&&(ae(r,K),a--),ae(16,K),ie(a-3,2)):a>10?(ae(18,K),ie(a-11,7)):(ae(17,K),ie(a-3,3));a=0,s=r,0===i?(o=138,l=3):r==i?(o=6,l=3):(o=7,l=4)}}function le(){16==ee?(se($),$=0,ee=0):8>ee||(re(255&$),$>>>=8,ee-=8)}function ce(e,n){let r,s,o;if(t.dist_buf[G]=e,t.lc_buf[G]=255&n,G++,0===e?P[2*n]++:(J++,e--,P[2*(a._length_code[n]+256+1)]++,O[2*a.d_code(e)]++),0==(8191&G)&&B>2){for(r=8*G,s=W-E,o=0;30>o;o++)r+=O[2*o]*(5+a.extra_dbits[o]);if(r>>>=3,J<i.floor(G/2)&&r<i.floor(s/2))return!0}return G==j-1}function ue(e,n){let r,s,i,o,l=0;if(0!==G)do{r=t.dist_buf[l],s=t.lc_buf[l],l++,0===r?ae(s,e):(i=a._length_code[s],ae(i+256+1,e),o=a.extra_lbits[i],0!==o&&(s-=a.base_length[i],ie(s,o)),r--,i=a.d_code(r),ae(i,n),o=a.extra_dbits[i],0!==o&&(r-=a.base_dist[i],ie(r,o)))}while(G>l);ae(256,e),Q=e[513]}function de(){ee>8?se($):ee>0&&re(255&$),$=0,ee=0}function he(e,n,r){ie(0+(r?1:0),3),((e,n)=>{de(),Q=8,se(n),se(~n),t.pending_buf.set(b.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function fe(e){((e,n,r)=>{let s,i,l=0;B>0?(Z.build_tree(t),X.build_tree(t),l=(()=>{let e;for(ne(P,Z.max_code),ne(O,X.max_code),Y.build_tree(t),e=18;e>=3&&0===K[2*a.bl_order[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(),s=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==e?i==s?(ie(2+(r?1:0),3),ue(o.static_ltree,o.static_dtree)):(ie(4+(r?1:0),3),((e,t,n)=>{let r;for(ie(e-257,5),ie(t-1,5),ie(n-4,4),r=0;n>r;r++)ie(K[2*a.bl_order[r]+1],3);oe(P,e-1),oe(O,t-1)})(Z.max_code+1,X.max_code+1,l+1),ue(P,O)):he(e,n,r),te(),r&&de()})(0>E?-1:E,W-E,e),E=W,n.flush_pending()}function pe(){let e,t,r,s;do{if(s=x-M-W,0===s&&0===W&&0===M)s=c;else if(-1==s)s--;else if(W>=c+c-m){b.set(b.subarray(c,c+c),0),U-=c,W-=c,E-=c,e=z,r=e;do{t=65535&v[--r],v[r]=c>t?0:t-c}while(0!=--e);e=c,r=e;do{t=65535&k[--r],k[r]=c>t?0:t-c}while(0!=--e);s+=c}if(0===n.avail_in)return;e=n.read_buf(b,W+M,s),M+=e,3>M||(R=255&b[W],R=(R<<A^255&b[W+1])&T)}while(m>M&&0!==n.avail_in)}function we(e){let t,n,r=I,s=W,i=H;const a=W>c-m?W-(c-m):0;let o=V;const l=f,u=W+258;let d=b[s+i-1],h=b[s+i];N>H||(r>>=2),o>M&&(o=M);do{if(t=e,b[t+i]==h&&b[t+i-1]==d&&b[t]==b[s]&&b[++t]==b[s+1]){s+=2,t++;do{}while(b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&u>s);if(n=258-(u-s),s=u-258,n>i){if(U=e,i=n,n>=o)break;d=b[s+i-1],h=b[s+i]}}}while((e=65535&k[e&l])>a&&0!=--r);return i>M?M:i}t.depth=[],t.bl_count=[],t.heap=[],P=[],O=[],K=[],t.pqdownheap=(e,n)=>{const r=t.heap,s=r[n];let i=n<<1;for(;i<=t.heap_len&&(i<t.heap_len&&y(e,r[i+1],r[i],t.depth)&&i++,!y(e,s,r[i],t.depth));)r[n]=r[i],n=i,i<<=1;r[n]=s},t.deflateInit=(n,a,w,_,m,y)=>(_||(_=8),m||(m=8),y||(y=0),n.msg=null,-1==a&&(a=6),1>m||m>9||8!=_||9>w||w>15||0>a||a>9||0>y||y>2?e:(n.dstate=t,h=w,c=1<<h,f=c-1,S=m+7,z=1<<S,T=z-1,A=i.floor((S+3-1)/3),b=new u(2*c),k=[],v=[],j=1<<m+6,t.pending_buf=new u(4*j),s=4*j,t.dist_buf=new d(j),t.lc_buf=new u(j),B=a,L=y,(e=>(e.total_in=e.total_out=0,e.msg=null,t.pending=0,t.pending_out=0,r=g,l=0,Z.dyn_tree=P,Z.stat_desc=o.static_l_desc,X.dyn_tree=O,X.stat_desc=o.static_d_desc,Y.dyn_tree=K,Y.stat_desc=o.static_bl_desc,$=0,ee=0,Q=8,te(),(()=>{x=2*c,v[z-1]=0;for(let e=0;z-1>e;e++)v[e]=0;q=p[B].max_lazy,N=p[B].good_length,V=p[B].nice_length,I=p[B].max_chain,W=0,E=0,M=0,D=H=2,C=0,R=0})(),0))(n))),t.deflateEnd=()=>42!=r&&r!=g&&r!=_?e:(t.lc_buf=null,t.dist_buf=null,t.pending_buf=null,v=null,k=null,b=null,t.dstate=null,r==g?-3:0),t.deflateParams=(t,n,r)=>{let s=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(p[B].func!=p[n].func&&0!==t.total_in&&(s=t.deflate(1)),B!=n&&(B=n,q=p[B].max_lazy,N=p[B].good_length,V=p[B].nice_length,I=p[B].max_chain),L=r,s)},t.deflateSetDictionary=(t,n,s)=>{let i,a=s,o=0;if(!n||42!=r)return e;if(3>a)return 0;for(a>c-m&&(a=c-m,o=s-a),b.set(n.subarray(o,o+a),0),W=a,E=a,R=255&b[0],R=(R<<A^255&b[1])&T,i=0;a-3>=i;i++)R=(R<<A^255&b[i+2])&T,k[i&f]=v[R],v[R]=i;return 0},t.deflate=(i,a)=>{let u,d,y,x,S;if(a>4||0>a)return e;if(!i.next_out||!i.next_in&&0!==i.avail_in||r==_&&4!=a)return i.msg=w[4],e;if(0===i.avail_out)return i.msg=w[7],-5;var I;if(n=i,x=l,l=a,42==r&&(d=8+(h-8<<4)<<8,y=(B-1&255)>>1,y>3&&(y=3),d|=y<<6,0!==W&&(d|=32),d+=31-d%31,r=g,re((I=d)>>8&255),re(255&I)),0!==t.pending){if(n.flush_pending(),0===n.avail_out)return l=-1,0}else if(0===n.avail_in&&x>=a&&4!=a)return n.msg=w[7],-5;if(r==_&&0!==n.avail_in)return i.msg=w[7],-5;if(0!==n.avail_in||0!==M||0!=a&&r!=_){switch(S=-1,p[B].func){case 0:S=(e=>{let t,r=65535;for(r>s-5&&(r=s-5);;){if(1>=M){if(pe(),0===M&&0==e)return 0;if(0===M)break}if(W+=M,M=0,t=E+r,(0===W||W>=t)&&(M=W-t,W=t,fe(!1),0===n.avail_out))return 0;if(W-E>=c-m&&(fe(!1),0===n.avail_out))return 0}return fe(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a);break;case 1:S=(e=>{let t,r=0;for(;;){if(m>M){if(pe(),m>M&&0==e)return 0;if(0===M)break}if(3>M||(R=(R<<A^255&b[W+2])&T,r=65535&v[R],k[W&f]=v[R],v[R]=W),0===r||(W-r&65535)>c-m||2!=L&&(D=we(r)),3>D)t=ce(0,255&b[W]),M--,W++;else if(t=ce(W-U,D-3),M-=D,D>q||3>M)W+=D,D=0,R=255&b[W],R=(R<<A^255&b[W+1])&T;else{D--;do{W++,R=(R<<A^255&b[W+2])&T,r=65535&v[R],k[W&f]=v[R],v[R]=W}while(0!=--D);W++}if(t&&(fe(!1),0===n.avail_out))return 0}return fe(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a);break;case 2:S=(e=>{let t,r,s=0;for(;;){if(m>M){if(pe(),m>M&&0==e)return 0;if(0===M)break}if(3>M||(R=(R<<A^255&b[W+2])&T,s=65535&v[R],k[W&f]=v[R],v[R]=W),H=D,F=U,D=2,0!==s&&q>H&&c-m>=(W-s&65535)&&(2!=L&&(D=we(s)),5>=D&&(1==L||3==D&&W-U>4096)&&(D=2)),3>H||D>H)if(0!==C){if(t=ce(0,255&b[W-1]),t&&fe(!1),W++,M--,0===n.avail_out)return 0}else C=1,W++,M--;else{r=W+M-3,t=ce(W-1-F,H-3),M-=H-1,H-=2;do{++W>r||(R=(R<<A^255&b[W+2])&T,s=65535&v[R],k[W&f]=v[R],v[R]=W)}while(0!=--H);if(C=0,D=2,W++,t&&(fe(!1),0===n.avail_out))return 0}}return 0!==C&&(t=ce(0,255&b[W-1]),C=0),fe(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a)}if(2!=S&&3!=S||(r=_),0==S||2==S)return 0===n.avail_out&&(l=-1),0;if(1==S){if(1==a)ie(2,3),ae(256,o.static_ltree),le(),9>1+Q+10-ee&&(ie(2,3),ae(256,o.static_ltree),le()),Q=7;else if(he(0,0,!1),3==a)for(u=0;z>u;u++)v[u]=0;if(n.flush_pending(),0===n.avail_out)return l=-1,0}}return 4!=a?0:1}}function x(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}return x.prototype={deflateInit(e,t){const n=this;return n.dstate=new b,t||(t=15),n.dstate.deflateInit(n,e,t)},deflate(t){const n=this;return n.dstate?n.dstate.deflate(n,t):e},deflateEnd(){const t=this;if(!t.dstate)return e;const n=t.dstate.deflateEnd();return t.dstate=null,n},deflateParams(t,n){const r=this;return r.dstate?r.dstate.deflateParams(r,t,n):e},deflateSetDictionary(t,n){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,t,n):e},read_buf(e,t,n){const r=this;let s=r.avail_in;return s>n&&(s=n),0===s?0:(r.avail_in-=s,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+s),t),r.next_in_index+=s,r.total_in+=s,s)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,0===e.dstate.pending&&(e.dstate.pending_out=0))}},function(e){const t=new x,n=(r=e&&e.chunkSize?e.chunkSize:65536)+5*(i.floor(r/16383)+1);var r;const s=new u(n);let a=e?e.level:-1;void 0===a&&(a=-1),t.deflateInit(a),t.next_out=s,this.append=(e,r)=>{let i,a,o=0,l=0,d=0;const h=[];if(e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=n,i=t.deflate(0),0!=i)throw new c("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==n?h.push(new u(s)):h.push(s.slice(0,t.next_out_index))),d+=t.next_out_index,r&&t.next_in_index>0&&t.next_in_index!=o&&(r(t.next_in_index),o=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return h.length>1?(a=new u(d),h.forEach((e=>{a.set(e,l),l+=e.length}))):a=h[0]||new u,a}},this.flush=()=>{let e,r,i=0,a=0;const o=[];do{if(t.next_out_index=0,t.avail_out=n,e=t.deflate(4),1!=e&&0!=e)throw new c("deflating: "+t.msg);n-t.avail_out>0&&o.push(s.slice(0,t.next_out_index)),a+=t.next_out_index}while(t.avail_in>0||0===t.avail_out);return t.deflateEnd(),r=new u(a),o.forEach((e=>{r.set(e,i),i+=e.length})),r}}})(),A=void 0,E={chunkSize:524288,maxWorkers:void 0!==S&&S.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},D=n.assign({},E);function F(){return D}function C(e){const{baseURL:n,chunkSize:r,maxWorkers:s,terminateWorkerTimeout:i,useCompressionStream:a,useWebWorkers:o,Deflate:l,Inflate:u,workerScripts:d}=e;if(n!==A&&(D.baseURL=n),r!==A&&(D.chunkSize=r),s!==A&&(D.maxWorkers=s),i!==A&&(D.terminateWorkerTimeout=i),a!==A&&(D.useCompressionStream=a),o!==A&&(D.useWebWorkers=o),l!==A&&(D.Deflate=l),u!==A&&(D.Inflate=u),d!==A){const{deflate:e,inflate:n}=d;if((e||n)&&(D.workerScripts||(D.workerScripts={})),e){if(!t.isArray(e))throw new c("workerScripts.deflate must be an array");D.workerScripts.deflate=e}if(n){if(!t.isArray(n))throw new c("workerScripts.inflate must be an array");D.workerScripts.inflate=n}}}const W=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;W[e]=t}class U{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^W[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class M extends x{constructor(){super({start(){this.crc32=new U},transform(e){this.crc32.append(e)},flush(e){const t=new u(4);new f(t.buffer).setUint32(0,this.crc32.get()),e.enqueue(t)}})}}function H(e){if(void 0===g){const t=new u((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new g).encode(e)}const I={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=I.getPartial(n);return 32===r?e.concat(t):I._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+I.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,i.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=I.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>i.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=I.getPartial(s);return r.push(I.partial(t+i&31,t+i>32?n:r.pop(),1)),r}},q={bytes:{fromBits(e){const t=I.bitLength(e)/8,n=new u(t);let r;for(let s=0;t>s;s++)0==(3&s)&&(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(I.partial(8*(3&n),r)),t}}},B={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};B.sha1.prototype={blockSize:512,reset(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update(e){const t=this;"string"==typeof e&&(e=q.utf8String.toBits(e));const n=t._buffer=I.concat(t._buffer,e),r=t._length,s=t._length=r+I.bitLength(e);if(s>9007199254740991)throw new c("Cannot hash more than 2^53 - 1 bits");const i=new h(n);let a=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);s>=e;e+=t.blockSize)t._block(i.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),t},finalize(){const e=this;let t=e._buffer;const n=e._h;t=I.concat(t,[I.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(i.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,r)=>e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r,_S:(e,t)=>t<<e|t>>>32-e,_block(e){const n=this,r=n._h,s=t(80);for(let t=0;16>t;t++)s[t]=e[t];let a=r[0],o=r[1],l=r[2],c=r[3],u=r[4];for(let e=0;79>=e;e++){16>e||(s[e]=n._S(1,s[e-3]^s[e-8]^s[e-14]^s[e-16]));const t=n._S(5,a)+n._f(e,o,l,c)+u+s[e]+n._key[i.floor(e/20)]|0;u=c,c=l,l=n._S(30,o),o=a,a=t}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+l|0,r[3]=r[3]+c|0,r[4]=r[4]+u|0}};const L={getRandomValues(e){const t=new h(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(i.random()>.5?1:-1))};for(let r,s=0;s<e.length;s+=4){const e=n(4294967296*(r||i.random()));r=987654071*e(),t[s/4]=4294967296*e()|0}return e}},N={importKey:e=>new N.hmacSha1(q.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new c("invalid params to pbkdf2");const s=1+(r>>5)<<2;let i,a,o,l,u;const d=new ArrayBuffer(s),h=new f(d);let p=0;const w=I;for(t=q.bytes.toBits(t),u=1;(s||1)>p;u++){for(i=a=e.encrypt(w.concat(t,[u])),o=1;n>o;o++)for(a=e.encrypt(a),l=0;l<a.length;l++)i[l]^=a[l];for(o=0;(s||1)>p&&o<i.length;o++)h.setInt32(p,i[o]),p+=4}return d.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=B.sha1,r=[[],[]],s=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>s&&(e=n.hash(e));for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new c("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},V=void 0!==y&&"function"==typeof y.getRandomValues,P="Invalid password";function O(e){return V?y.getRandomValues(e):L.getRandomValues(e)}const K=16,Z={name:"PBKDF2"},X=n.assign({hash:{name:"HMAC"}},Z),Y=n.assign({iterations:1e3,hash:{name:"SHA-1"}},Z),j=["deriveBits"],G=[8,12,16],J=[16,24,32],Q=10,$=[0,0,0,0],ee="undefined",te="function",ne=typeof y!=ee,re=ne&&typeof y.subtle!=ee,se=ne&&re&&typeof y.subtle.importKey==te,ie=ne&&re&&typeof y.subtle.deriveBits==te,ae=q.bytes,oe=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],s=e.length;let i,a,o,l=1;if(4!==s&&6!==s&&8!==s)throw new c("invalid aes key size");for(t._key=[a=e.slice(0),o=[]],i=s;4*s+28>i;i++){let e=a[i-1];(i%s==0||8===s&&i%s==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],i%s==0&&(e=e<<8^e>>>24^l<<24,l=l<<1^283*(l>>7))),a[i]=a[i-s]^e}for(let e=0;i;e++,i--){const t=a[3&e?i:i-4];o[e]=4>=i||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],s=[],i=[];let a,o,l,c;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let u=a=0;!n[u];u^=o||1,a=i[a]||1){let i=a^a<<1^a<<2^a<<3^a<<4;i=i>>8^255&i^99,n[u]=i,r[i]=u,c=s[l=s[o=s[u]]];let d=16843009*c^65537*l^257*o^16843008*u,h=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][u]=h=h<<24^h>>>8,t[n][i]=d=d<<24^d>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new c("invalid aes block size");const n=this._key[t],r=n.length/4-2,s=[0,0,0,0],i=this._tables[t],a=i[0],o=i[1],l=i[2],u=i[3],d=i[4];let h,f,p,w=e[0]^n[0],g=e[t?3:1]^n[1],_=e[2]^n[2],m=e[t?1:3]^n[3],y=4;for(let e=0;r>e;e++)h=a[w>>>24]^o[g>>16&255]^l[_>>8&255]^u[255&m]^n[y],f=a[g>>>24]^o[_>>16&255]^l[m>>8&255]^u[255&w]^n[y+1],p=a[_>>>24]^o[m>>16&255]^l[w>>8&255]^u[255&g]^n[y+2],m=a[m>>>24]^o[w>>16&255]^l[g>>8&255]^u[255&_]^n[y+3],y+=4,w=h,g=f,_=p;for(let e=0;4>e;e++)s[t?3&-e:e]=d[w>>>24]<<24^d[g>>16&255]<<16^d[_>>8&255]<<8^d[255&m]^n[y++],h=w,w=g,g=_,_=m,m=h;return s}},le=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const s=I.bitLength(t);for(let s=0;r>s;s+=4){this.incCounter(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return I.clamp(t,s)}},ce=N.hmacSha1;class ue extends x{constructor(e,r,s){let i;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,signed:r,strength:s-1,pending:new u})},async transform(e,n){const r=this;if(r.password){const n=r.password;r.password=null;const s=we(e,0,G[r.strength]+2);await(async(e,t,n)=>{await fe(e,n,we(t,0,G[e.strength]));const r=we(t,G[e.strength]),s=e.keys.passwordVerification;if(s[0]!=r[0]||s[1]!=r[1])throw new c(P)})(r,s,n),r.ctr=new le(new oe(r.keys.key),t.from($)),r.hmac=new ce(r.keys.authentication),e=we(e,G[r.strength]+2),r.resolveReady()}else await r.ready;const s=new u(e.length-Q-(e.length-Q)%K);n.enqueue(he(r,e,s,0,Q,!0))},async flush(e){const t=this;await t.ready;const n=t.pending,r=we(n,0,n.length-Q),s=we(n,n.length-Q);let a=new u;if(r.length){const e=_e(ae,r);t.hmac.update(e);const n=t.ctr.update(e);a=ge(ae,n)}if(i.valid=!0,t.signed){const e=we(ge(ae,t.hmac.digest()),0,Q);for(let t=0;Q>t;t++)e[t]!=s[t]&&(i.valid=!1)}e.enqueue(a)}}),i=this}}class de extends x{constructor(e,r){let s;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,strength:r-1,pending:new u})},async transform(e,n){const r=this;let s=new u;if(r.password){const e=r.password;r.password=null,s=await(async(e,t)=>{const n=O(new u(G[e.strength]));return await fe(e,t,n),pe(n,e.keys.passwordVerification)})(r,e),r.ctr=new le(new oe(r.keys.key),t.from($)),r.hmac=new ce(r.keys.authentication),r.resolveReady()}else await r.ready;const i=new u(s.length+e.length-e.length%K);i.set(s,0),n.enqueue(he(r,e,i,s.length,0))},async flush(e){const t=this;await t.ready;let n=new u;if(t.pending.length){const e=t.ctr.update(_e(ae,t.pending));t.hmac.update(e),n=ge(ae,e)}s.signature=ge(ae,t.hmac.digest()).slice(0,Q),e.enqueue(pe(n,s.signature))}}),s=this}}function he(e,t,n,r,s,i){const a=t.length-s;let o;for(e.pending.length&&(t=pe(e.pending,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new u(t)).set(n,0)}return e})(n,a-a%K)),o=0;a-K>=o;o+=K){const s=_e(ae,we(t,o,o+K));i&&e.hmac.update(s);const a=e.ctr.update(s);i||e.hmac.update(a),n.set(ge(ae,a),o+r)}return e.pending=we(t,o),n}async function fe(e,t,r){const s=H(t),i=await((e,t,n,r,s)=>se?y.subtle.importKey("raw",t,n,!1,s):N.importKey(t))(0,s,X,0,j),a=await(async(e,t,n)=>ie?await y.subtle.deriveBits(e,t,n):N.pbkdf2(t,e.salt,Y.iterations,n))(n.assign({salt:r},Y),i,8*(2*J[e.strength]+2)),o=new u(a);e.keys={key:_e(ae,we(o,0,J[e.strength])),authentication:_e(ae,we(o,J[e.strength],2*J[e.strength])),passwordVerification:we(o,2*J[e.strength])}}function pe(e,t){let n=e;return e.length+t.length&&(n=new u(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function we(e,t,n){return e.subarray(t,n)}function ge(e,t){return e.fromBits(t)}function _e(e,t){return e.toBits(t)}class me extends x{constructor(e,t){let r;super({start(){n.assign(this,{password:e,passwordVerification:t}),ke(this,e)},transform(e,t){const n=this;if(n.password){const t=be(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new c(P);e=e.subarray(12)}t.enqueue(be(n,e))},flush(){r.valid=!0}}),r=this}}class ye extends x{constructor(e,t){super({start(){n.assign(this,{password:e,passwordVerification:t}),ke(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=O(new u(12));t[11]=n.passwordVerification,r=new u(e.length+t.length),r.set(xe(n,t),0),s=12}else r=new u(e.length),s=0;r.set(xe(n,e),s),t.enqueue(r)},flush(){}})}}function be(e,t){const n=new u(t.length);for(let r=0;r<t.length;r++)n[r]=Re(e)^t[r],ve(e,n[r]);return n}function xe(e,t){const n=new u(t.length);for(let r=0;r<t.length;r++)n[r]=Re(e)^t[r],ve(e,t[r]);return n}function ke(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new U(e.keys[0]),e.crcKey2=new U(e.keys[2]);for(let n=0;n<t.length;n++)ve(e,t.charCodeAt(n))}function ve(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=Se(e.keys[1]+ze(e.keys[0])),e.keys[1]=Se(i.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function Re(e){const t=2|e.keys[2];return ze(i.imul(t,1^t)>>>8)}function ze(e){return 255&e}function Se(e){return 4294967295&e}class Te extends x{constructor(e,t){let n;super({start(){n=new e(t)},transform(e,t){e=n.append(e),t.enqueue(e)},flush(e){const t=n.flush();t&&e.enqueue(t)}})}}const Ae="Invalid signature",Ee="deflate-raw",De="undefined",Fe=typeof R==De,Ce=typeof z==De;let We=!0,Ue=!0;class Me extends x{constructor(e,t,{chunkSize:n},...r){super({},...r);const{compressed:s,encrypted:i,useCompressionStream:a,password:o,passwordVerification:l,encryptionStrength:c,zipCrypto:u,signed:d,level:h}=t,p=this;let w,g,_=qe(super.readable);if(i&&!u||!d||([_,w]=_.tee(),w=w.pipeThrough(new M)),s)if(void 0!==a&&!a||Fe&&!Ue)_=Ie(e,_,{chunkSize:n,level:h});else try{_=_.pipeThrough(new R(Ee))}catch(t){Ue=!1,_=Ie(e,_,{chunkSize:n,level:h})}i&&(u?_=_.pipeThrough(new ye(o,l)):(g=new de(o,c),_=_.pipeThrough(g))),Be(p,_,(async()=>{let e;i&&!u&&(e=g.signature),i&&!u||!d||(e=await w.getReader().read(),e=new f(e.value.buffer).getUint32(0)),p.signature=e}))}}class He extends x{constructor(e,t,{chunkSize:n},...r){super({},...r);const{zipCrypto:s,encrypted:i,password:a,passwordVerification:o,signed:l,encryptionStrength:u,compressed:d,useCompressionStream:h}=t;let p,w,g=qe(super.readable);if(i&&(s?g=g.pipeThrough(new me(a,o)):(w=new ue(a,l,u),g=g.pipeThrough(w))),d)if(void 0!==h&&!h||Ce&&!We)g=Ie(e,g,{chunkSize:n});else try{g=g.pipeThrough(new z(Ee))}catch(t){We=!1,g=Ie(e,g,{chunkSize:n})}i&&!s||!l||([g,p]=g.tee(),p=p.pipeThrough(new M)),Be(this,g,(async()=>{if(i&&!s&&!w.valid)throw new c(Ae);if((!i||s)&&l){const e=await p.getReader().read(),n=new f(e.value.buffer);if(t.signature!=n.getUint32(0,!1))throw new c(Ae)}}))}}function Ie(e,t,n){return t.pipeThrough(new Te(e,n))}function qe(e){return e.pipeThrough(new x({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function Be(e,t,r){t=t.pipeThrough(new x({flush:r})),n.defineProperty(e,"readable",{get:()=>t})}const Le="deflate",Ne="data";class Ve{constructor(e,t,n,r,s){const{codecType:i}=r;async function a(i){const a=new i(e,r,s);await t.pipeThrough(a).pipeThrough(new x({transform(e,t){e&&e.length&&(n.size+=e.length,t.enqueue(e))}})).pipeTo(n,{preventClose:!0,preventAbort:!0});const{size:o,signature:l}=a;return{size:o,signature:l}}i.startsWith(Le)?this.run=()=>a(Me):i.startsWith("inflate")&&(this.run=()=>a(He))}}let Pe,Oe=!0;class Ke{constructor(e,t,r,s){const{readable:i,writable:a}=t,{options:o,config:d,streamOptions:h,webWorker:f,scripts:p,codecConstructor:g}=r;n.assign(e,{busy:!0,codecConstructor:g,readable:i,writable:a,options:n.assign({},o),scripts:p,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,s(e)}});const{signal:_,onstart:m,onprogress:y,size:b,onend:k}=h;let v=0;const R={};return m&&(R.start=()=>Ze(m,b())),R.transform=async(e,t)=>{v+=e.length,y&&await Ze(y,v,b()),t.enqueue(e)},R.flush=()=>{i.size=()=>v,k&&Ze(k,v)},e.readable=i.pipeThrough(new x(R,{highWaterMark:1,size:()=>d.chunkSize}),{signal:_}),void 0===Pe&&(Pe="undefined"!=typeof Worker),f&&Pe?((e,{baseURL:t,chunkSize:r})=>{const s={type:"module"},{readable:i,writable:a}=e;if(n.assign(e,{reader:i.getReader(),writer:a.getWriter(),result:new w(((t,n)=>{e.resolveResult=t,e.rejectResult=n}))}),!e.interface){if(Oe)try{e.worker=o({})}catch(t){Oe=!1,e.worker=o(s)}else e.worker=o(s);e.worker.addEventListener("message",(async t=>{const n=t.data,{reader:r,writer:s,resolveResult:i,rejectResult:a,onTaskFinished:o}=e,{type:l,data:h,messageId:f,result:p}=n,w=n.error;try{if(w){const{message:e,stack:t}=w,n=new c(e);n.stack=t,g(n)}else{if("pull"==l){const{value:e,done:t}=await r.read();d({type:Ne,data:e,done:t,messageId:f})}l==Ne&&(await s.ready,e.writable.size+=h.byteLength,await s.write(new u(h)),d({type:"ack",messageId:f})),"close"==l&&g(null,p)}}catch(e){g(e)}function g(e,t){e?a(e):i(t),s.releaseLock(),o()}}),!1),e.interface={run(){const{options:t}=e;return d({type:"start",scripts:e.scripts.slice(1),options:t,config:{chunkSize:r}}),e.result}}}return e.interface;function o(n){let r,s;r=e.scripts[0],"function"==typeof r&&(r=r());try{s=new l(r,t)}catch(e){s=r}return new Worker(s,n)}function d(t){const{worker:n,writer:r,onTaskFinished:s}=e;try{let{data:e}=t;if(e)try{const{buffer:r,length:s}=e;s!=r.byteLength&&(e=new u(e)),t.data=e.buffer,n.postMessage(t,[t.data])}catch(e){n.postMessage(t)}else n.postMessage(t)}catch(e){throw r.releaseLock(),s(),e}}})(e,d):((e,t)=>{const n=new Ve(e.codecConstructor,e.readable,e.writable,e.options,t),{onTaskFinished:r}=e;return{async run(){try{return await n.run()}finally{r()}}}})(e,d)}}async function Ze(e,...t){try{await e(...t)}catch(e){}}let Xe=[];const Ye=[];let je=0;function Ge(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}const Je="HTTP error ",Qe="HTTP Range not supported",$e="text/plain",et="GET",tt=65536;class nt{constructor(){this.size=0}init(){this.initialized=!0}}class rt extends nt{get readable(){const e=this,{chunkSize:t=tt}=e,n=new k({start(){this.chunkOffset=0},async pull(r){const{offset:s=0,size:a}=n,{chunkOffset:o}=this;r.enqueue(await e.readUint8Array(s+o,i.min(t,a()-o))),o+t>a()?r.close():this.chunkOffset+=t}});return n}}class st extends nt{constructor(){super();const e=this,t=new v({write:t=>e.writeUint8Array(t)});n.defineProperty(e,"writable",{get:()=>t})}writeUint8Array(){}}class it extends rt{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){return new u(await this.blob.slice(e,e+t).arrayBuffer())}}class at extends nt{constructor(e){super();const t=this;t.contentType=e,t.transformStream=new x,n.defineProperty(this,"writable",{get:()=>t.transformStream.writable})}init(){super.init();const{transformStream:e,contentType:t}=this;this.blob=new Response(e.readable).blob({type:t})}getData(){return this.blob}}class ot extends rt{constructor(e,t){super();const r=this;r.url=e,r.preventHeadRequest=t.preventHeadRequest,r.useRangeHeader=t.useRangeHeader,r.forceRangeRequests=t.forceRangeRequests,r.options=t=n.assign({},t),delete t.preventHeadRequest,delete t.useRangeHeader,delete t.forceRangeRequests,delete t.useXHR}async init(){super.init(),await ct(this,_t,ft)}readUint8Array(e,t){return ut(this,e,t,_t,ft)}}class lt extends rt{constructor(e,t){super();const n=this;n.url=e,n.preventHeadRequest=t.preventHeadRequest,n.useRangeHeader=t.useRangeHeader,n.forceRangeRequests=t.forceRangeRequests,n.options=t}async init(){super.init(),await ct(this,mt,pt)}readUint8Array(e,t){return ut(this,e,t,mt,pt)}}async function ct(e,t,n){if((e=>{const{baseURL:t}=F(),{protocol:n}=new l(e,t);return"http:"==n||"https:"==n})(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const r=await t(et,e,dt(e));if(!e.forceRangeRequests&&"bytes"!=r.headers.get("Accept-Ranges"))throw new c(Qe);{let s;const i=r.headers.get("Content-Range");if(i){const e=i.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(s=Number(t))}}void 0===s?await gt(e,t,n):e.size=s}}else await gt(e,t,n)}async function ut(e,t,n,r,s){if(e.useRangeHeader||e.forceRangeRequests){const s=await r(et,e,dt(e,t,n));if(206!=s.status)throw new c(Qe);return new u(await s.arrayBuffer())}return e.data||await s(e,e.options),new u(e.data.subarray(t,t+n))}function dt(e,t=0,r=1){return n.assign({},ht(e),{Range:"bytes="+t+"-"+(t+r-1)})}function ht(e){const t=e.options.headers;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function ft(e){await wt(e,_t)}async function pt(e){await wt(e,mt)}async function wt(e,t){const n=await t(et,e,ht(e));e.data=new u(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function gt(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t("HEAD",e,ht(e))).headers.get("Content-Length");r?e.size=Number(r):await n(e,e.options)}}async function _t(e,{options:t,url:r},s){const i=await fetch(r,n.assign({},t,{method:e,headers:s}));if(400>i.status)return i;throw 416==i.status?new c(Qe):new c(Je+(i.statusText||i.status))}function mt(e,{url:t},r){return new w(((s,i)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",(()=>{if(400>a.status){const e=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),s({status:a.status,arrayBuffer:()=>a.response,headers:new o(e)})}else i(416==a.status?new c(Qe):new c(Je+(a.statusText||a.status)))}),!1),a.addEventListener("error",(e=>i(e.detail.error)),!1),a.open(e,t),r)for(const e of n.entries(r))a.setRequestHeader(e[0],e[1]);a.responseType="arraybuffer",a.send()}))}class yt extends rt{constructor(e,t={}){super(),this.url=e,this.reader=t.useXHR?new lt(e,t):new ot(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}async function bt(e,t){e.init&&!e.initialized&&await e.init(t)}const xt=4294967295,kt=65535,vt=new a(2107,11,31),Rt=new a(1980,0,1),zt=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class St{constructor(e){zt.forEach((t=>this[t]=e[t]))}}const Tt="File already exists",At="Zip file comment exceeds 64KB",Et="File entry comment exceeds 64KB",Dt="File entry name exceeds 64KB",Ft="Version exceeds 65535",Ct="The strength must equal 1, 2, or 3",Wt="Extra field type exceeds 65535",Ut="Extra field data exceeds 64KB",Mt="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",Ht=new u([7,0,2,0,65,69,3,0,0]);let It=0;const qt=[];async function Bt(e,t){const n=e.getWriter();await n.ready,e.size+=t.length,await n.write(t),n.releaseLock()}function Lt(e){if(e)return(s(e.getTime())+s(116444736e5))*s(1e4)}function Nt(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function Vt(e,t,n){e.setUint8(t,n)}function Pt(e,t,n){e.setUint16(t,n,!0)}function Ot(e,t,n){e.setUint32(t,n,!0)}function Kt(e,t,n){e.setBigUint64(t,n,!0)}function Zt(e,t,n){e.set(t,n)}function Xt(e){return new f(e.buffer)}C({Deflate:T}),e.BlobReader=it,e.BlobWriter=at,e.Data64URIReader=class extends rt{constructor(e){super();const t=this;t.dataURI=e;let n=e.length;for(;"="==e.charAt(n-1);)n--;t.dataStart=e.indexOf(",")+1,t.size=i.floor(.75*(n-t.dataStart))}readUint8Array(e,t){const n=new u(t),r=4*i.floor(e/3),s=this.dataStart,a=atob(this.dataURI.substring(r+s,4*i.ceil((e+t)/3)+s)),o=e-3*i.floor(r/4);for(let e=o;o+t>e;e++)n[e-o]=a.charCodeAt(e);return n}},e.Data64URIWriter=class extends st{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}writeUint8Array(e){const t=this;let n=0,s=t.pending;const a=t.pending.length;for(t.pending="",n=0;n<3*i.floor((a+e.length)/3)-a;n++)s+=r.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=r.fromCharCode(e[n]);s.length>2?t.data+=b(s):t.pending=s}getData(){return this.data+b(this.pending)}},e.ERR_DUPLICATED_NAME=Tt,e.ERR_HTTP_RANGE=Qe,e.ERR_INVALID_COMMENT=At,e.ERR_INVALID_ENCRYPTION_STRENGTH=Ct,e.ERR_INVALID_ENTRY_COMMENT=Et,e.ERR_INVALID_ENTRY_NAME=Dt,e.ERR_INVALID_EXTRAFIELD_DATA=Ut,e.ERR_INVALID_EXTRAFIELD_TYPE=Wt,e.ERR_INVALID_VERSION=Ft,e.ERR_UNSUPPORTED_FORMAT=Mt,e.HttpRangeReader=class extends yt{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=yt,e.Reader=rt,e.TextReader=class extends rt{constructor(e){super(),this.blobReader=new it(new p([e],{type:$e}))}init(){const e=this;super.init(),e.blobReader.init(),e.size=e.blobReader.size}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},e.TextWriter=class extends st{constructor(e){super(),this.encoding=e,this.blob=new p([],{type:$e})}writeUint8Array(e){this.blob=new p([this.blob,e.buffer],{type:$e})}getData(){const e=this;if(e.blob.text&&(void 0===e.encoding||e.encoding&&"utf-8"==e.encoding.toLowerCase()))return e.blob.text();{const t=new FileReader;return new w(((n,r)=>{t.onload=e=>n(e.target.result),t.onerror=()=>r(t.error),t.readAsText(e.blob,e.encoding)}))}}},e.Uint8ArrayReader=class extends rt{constructor(e){super(),this.array=e,this.size=e.length}readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends st{init(e=0){super.init(),this.offset=0,this.array=new u(e)}writeUint8Array(e){const t=this;if(t.offset+e.length>t.array.length){const n=t.array;t.array=new u(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}},e.Writer=st,e.ZipWriter=class{constructor(e,t={}){null==e.writable.size&&(e.writable.size=0),n.assign(this,{writer:e,options:t,config:F(),files:new o,filenames:new Set,offset:e.writable.size,pendingCompressedSize:0,pendingAddFileCalls:new Set})}async add(e="",r,o={}){const l=this,{pendingAddFileCalls:p,config:g}=l;let _;It<g.maxWorkers?It++:await new w((e=>qt.push(e)));try{if(e=e.trim(),l.filenames.has(e))throw new c(Tt);return l.filenames.add(e),_=(async(e,r,o,l)=>{r=r.trim(),l.directory&&!r.endsWith("/")?r+="/":l.directory=r.endsWith("/");const p=H(r);if(p.length>kt)throw new c(Dt);const g=l.comment||"",_=H(g);if(_.length>kt)throw new c(Et);const m=e.options.version||l.version||0;if(m>kt)throw new c(Ft);const y=e.options.versionMadeBy||l.versionMadeBy||20;if(y>kt)throw new c(Ft);const b=Nt(e,l,"lastModDate")||new a,x=Nt(e,l,"lastAccessDate"),k=Nt(e,l,"creationDate"),v=Nt(e,l,"password"),R=Nt(e,l,"encryptionStrength")||3,z=Nt(e,l,"zipCrypto");if(void 0!==v&&void 0!==R&&(1>R||R>3))throw new c(Ct);let S=new u;const{extraField:T}=l;if(T){let e=0,t=0;T.forEach((t=>e+=4+t.length)),S=new u(e),T.forEach(((e,n)=>{if(n>kt)throw new c(Wt);if(e.length>kt)throw new c(Ut);Zt(S,new d([n]),t),Zt(S,new d([e.length]),t+2),Zt(S,e,t+4),t+=4+e.length}))}let A=Nt(e,l,"extendedTimestamp");void 0===A&&(A=!0);let E=0,D=Nt(e,l,"keepOrder");void 0===D&&(D=!0);let F=0,C=Nt(e,l,"msDosCompatible");void 0===C&&(C=!0);const W=Nt(e,l,"internalFileAttribute")||0,U=Nt(e,l,"externalFileAttribute")||0;o&&(await bt(o),void 0===o.size?l.dataDescriptor=!0:F=o.size,E=(e=>e+5*(i.floor(e/16383)+1))(F));let M=l.zip64||e.options.zip64||!1;if(e.offset+e.pendingCompressedSize>=xt||F>=xt||E>=xt){if(!1===l.zip64||!1===e.options.zip64||!D)throw new c(Mt);M=!0}e.pendingCompressedSize+=E,await w.resolve();const I=Nt(e,l,"level"),q=Nt(e,l,"useWebWorkers"),B=Nt(e,l,"bufferedWrite");let L=Nt(e,l,"dataDescriptor"),N=Nt(e,l,"dataDescriptorSignature");const V=Nt(e,l,"signal"),P=Nt(e,l,"useCompressionStream");void 0===L&&(L=!0),L&&void 0===N&&(N=!1);const O=await(async(e,r,a,o)=>{const{files:l,writer:d}=e,{keepOrder:p,dataDescriptor:g,zipCrypto:_,signal:m}=o,y=t.from(l.values()).pop();let b,x,k,v,R,z={};l.set(r,z);try{let t;if(p&&(t=y&&y.lock,z.lock=new w((e=>k=e))),o.bufferedWrite||e.lockWriter||!g?(R=new at,R.writable.size=0,b=!0,await bt(d)):(R=d,e.lockWriter=w.resolve(),x=()=>delete e.lockWriter),await bt(R),b||await t,z=await(async(e,t,r,a,o)=>{const{rawFilename:l,lastAccessDate:c,creationDate:d,password:f,level:p,zip64:g,zipCrypto:_,dataDescriptor:m,dataDescriptorSignature:y,directory:b,version:x,versionMadeBy:k,rawComment:v,rawExtraField:R,useWebWorkers:z,onstart:S,onprogress:T,onend:A,signal:E,encryptionStrength:D,extendedTimestamp:F,msDosCompatible:C,internalFileAttribute:W,externalFileAttribute:U,useCompressionStream:M}=o,H=!(!f||!f.length),I=0!==p&&!b;let q,B,L;if(H&&!_){q=new u(Ht.length+2);const e=Xt(q);Pt(e,0,39169),Zt(q,Ht,2),Vt(e,8,D)}else q=new u;if(F){L=new u(9+(c?4:0)+(d?4:0));const e=Xt(L);Pt(e,0,21589),Pt(e,2,L.length-4),Vt(e,4,1+(c?2:0)+(d?4:0)),Ot(e,5,i.floor(o.lastModDate.getTime()/1e3)),c&&Ot(e,9,i.floor(c.getTime()/1e3)),d&&Ot(e,13,i.floor(d.getTime()/1e3));try{B=new u(36);const e=Xt(B),t=Lt(o.lastModDate);Pt(e,0,10),Pt(e,2,32),Pt(e,8,1),Pt(e,10,24),Kt(e,12,t),Kt(e,20,Lt(c)||t),Kt(e,28,Lt(d)||t)}catch(e){B=new u}}else B=L=new u;const N={lock:r.lock,version:x||20,versionMadeBy:k,zip64:g,directory:!!b,filenameUTF8:!0,rawFilename:l,commentUTF8:!0,rawComment:v,rawExtraFieldZip64:g?new u(28):new u,rawExtraFieldExtendedTimestamp:L,rawExtraFieldNTFS:B,rawExtraFieldAES:q,rawExtraField:R,extendedTimestamp:F,msDosCompatible:C,internalFileAttribute:W,externalFileAttribute:U};let V=0,P=2048;m&&(P|=8);let O=0;I&&(O=8),g&&(N.version=N.version>45?N.version:45),H&&(P|=1,_||(N.version=N.version>51?N.version:51,O=99,I&&(N.rawExtraFieldAES[9]=8))),N.compressionMethod=O;const K=N.headerArray=new u(26),Z=Xt(K);Pt(Z,0,N.version),Pt(Z,2,P),Pt(Z,4,O);const X=new h(1),Y=Xt(X);let j;j=o.lastModDate<Rt?Rt:o.lastModDate>vt?vt:o.lastModDate,Pt(Y,0,(j.getHours()<<6|j.getMinutes())<<5|j.getSeconds()/2),Pt(Y,2,(j.getFullYear()-1980<<4|j.getMonth()+1)<<5|j.getDate());const G=X[0];Ot(Z,6,G),Pt(Z,22,l.length);const J=q.length+L.length+B.length+R.length;Pt(Z,24,J);const Q=new u(30+l.length+J);let $;Ot(Xt(Q),0,67324752),Zt(Q,K,4),Zt(Q,l,30),Zt(Q,q,30+l.length),Zt(Q,L,30+l.length+q.length),Zt(Q,B,30+l.length+q.length+L.length),Zt(Q,R,30+l.length+q.length+L.length+B.length);let ee=0;const{writable:te}=t;if(N.writingData=r.writingData=!0,e){e.chunkSize=(e=>i.max(e.chunkSize,64))(a),await Bt(te,Q);const t=()=>e.size,n=e.readable;n.size=t;const r={options:{codecType:Le,level:p,password:f,encryptionStrength:D,zipCrypto:H&&_,passwordVerification:H&&_&&G>>8&255,signed:!0,compressed:I,encrypted:H,useWebWorkers:z,useCompressionStream:M},config:a,streamOptions:{signal:E,size:t,onstart:S,onprogress:T,onend:A},codecConstructor:a.Deflate},s=te.size;$=await(async(e,t)=>{const{options:n,config:r}=t,s=!n.compressed&&!n.signed&&!n.encrypted,{useWebWorkers:i,useCompressionStream:a,codecType:o}=n,{workerScripts:l}=r;let c;if(t.webWorker=!s&&(i||void 0===i&&r.useWebWorkers),t.scripts=t.webWorker&&l?l[o]:[],n.useCompressionStream=void 0===a?r.useCompressionStream:a,Xe.length<r.maxWorkers){const n={indexWorker:je};je++,Xe.push(n),c=new Ke(n,e,t,u)}else{const n=Xe.find((e=>!e.busy));n?(Ge(n),c=new Ke(n,e,t,u)):c=await new w((n=>Ye.push({resolve:n,stream:e,workerOptions:t})))}return c.run();function u(e){if(Ye.length){const[{resolve:t,stream:n,workerOptions:r}]=Ye.splice(0,1);t(new Ke(e,n,r,u))}else if(e.worker){const{terminateWorkerTimeout:t}=r;Ge(e),Number.isFinite(t)&&t>=0&&(e.terminateTimeout=setTimeout((()=>{Xe=Xe.filter((t=>t!=e)),e.terminate()}),t))}else Xe=Xe.filter((t=>t!=e))}})({readable:n,writable:te},r),V=e.size=n.size(),ee=te.size-s}else await Bt(te,Q);let ne,re=new u,se=0;if(m&&(re=new u(g?y?24:20:y?16:12),ne=Xt(re),y&&(se=4,Ot(ne,0,134695760))),e){const{signature:e}=$;if(H&&!_||void 0===e||(Ot(Z,10,e),N.signature=e,m&&Ot(ne,se,e)),g){const e=Xt(N.rawExtraFieldZip64);Pt(e,0,1),Pt(e,2,24),Ot(Z,14,xt),Kt(e,12,s(ee)),Ot(Z,18,xt),Kt(e,4,s(V)),m&&(Kt(ne,se+4,s(ee)),Kt(ne,se+12,s(V)))}else Ot(Z,14,ee),Ot(Z,18,V),m&&(Ot(ne,se+4,ee),Ot(ne,se+8,V))}m&&await Bt(te,re);const ie=Q.length+ee+re.length;return n.assign(N,{compressedSize:ee,lastModDate:j,rawLastModDate:G,creationDate:d,lastAccessDate:c,encrypted:H,length:ie,writingData:!1}),N})(a,R,z,e.config,o),l.set(r,z),z.filename=r,b){await R.writable.getWriter().close();let n=await R.getData();await t,await async function t(){const{lockWriter:n}=e;if(n)return await n.then((()=>delete e.lockWriter)),t();e.lockWriter=new w((e=>x=e))}(),v=!0;const{writable:r}=d;if(!g){const e=await(e=>e.slice(0,26).arrayBuffer())(n),t=new f(e);z.encrypted&&!_||Ot(t,14,z.signature),z.zip64?(Ot(t,18,xt),Ot(t,22,xt)):(Ot(t,18,z.compressedSize),Ot(t,22,z.uncompressedSize)),await Bt(r,new u(e)),n=n.slice(e.byteLength)}await n.stream().pipeTo(r,{preventClose:!0,signal:m}),v=!1}if(z.offset=e.offset,z.zip64)Kt(Xt(z.rawExtraFieldZip64),20,s(z.offset));else if(z.offset>=xt)throw new c(Mt);return e.offset+=z.length,z}catch(t){throw(b&&v||!b&&z.writingData)&&(e.hasCorruptedEntries=!0,t&&(t.corruptedEntry=!0),b?e.offset+=R.writable.size:e.offset=R.writable.size),l.delete(r),t}finally{k&&k(),x&&x()}})(e,r,o,n.assign({},l,{rawFilename:p,rawComment:_,version:m,versionMadeBy:y,lastModDate:b,lastAccessDate:x,creationDate:k,rawExtraField:S,zip64:M,password:v,level:I,useWebWorkers:q,encryptionStrength:R,extendedTimestamp:A,zipCrypto:z,bufferedWrite:B,keepOrder:D,dataDescriptor:L,dataDescriptorSignature:N,signal:V,msDosCompatible:C,internalFileAttribute:W,externalFileAttribute:U,useCompressionStream:P}));return E&&(e.pendingCompressedSize-=E),n.assign(O,{name:r,comment:g,extraField:T}),new St(O)})(l,e,r,o),p.add(_),await _}catch(t){throw l.filenames.delete(e),t}finally{p.delete(_);const e=qt.shift();e?e():It--}}async close(e=new u,n={}){const{pendingAddFileCalls:r,writer:a}=this,{writable:o}=a;for(;r.size;)await w.all(t.from(r));return await(async(e,n,r)=>{const{files:a}=e;let o=0,l=0,d=e.offset,h=a.size;for(const[,e]of a)l+=46+e.rawFilename.length+e.rawComment.length+e.rawExtraFieldZip64.length+e.rawExtraFieldAES.length+e.rawExtraFieldExtendedTimestamp.length+e.rawExtraFieldNTFS.length+e.rawExtraField.length;let f=r.zip64||e.options.zip64||!1;if(d>=xt||l>=xt||h>=kt){if(!1===r.zip64||!1===e.options.zip64)throw new c(Mt);f=!0}const p=new u(l+(f?98:22)),w=Xt(p);for(const[e,n]of t.from(a.values()).entries()){const{rawFilename:t,rawExtraFieldZip64:s,rawExtraFieldAES:l,rawExtraField:c,rawComment:d,versionMadeBy:h,headerArray:f,directory:g,zip64:_,msDosCompatible:m,internalFileAttribute:y,externalFileAttribute:b}=n;let x,k;if(n.extendedTimestamp){k=n.rawExtraFieldNTFS,x=new u(9);const e=Xt(x);Pt(e,0,21589),Pt(e,2,x.length-4),Vt(e,4,1),Ot(e,5,i.floor(n.lastModDate.getTime()/1e3))}else k=x=new u;const v=s.length+l.length+x.length+k.length+c.length;if(Ot(w,o,33639248),Pt(w,o+4,h),Zt(p,f,o+6),Pt(w,o+30,v),Pt(w,o+32,d.length),Pt(w,o+36,y),b?Ot(w,o+38,b):g&&m&&Vt(w,o+38,16),Ot(w,o+42,_?xt:n.offset),Zt(p,t,o+46),Zt(p,s,o+46+t.length),Zt(p,l,o+46+t.length+s.length),Zt(p,x,o+46+t.length+s.length+l.length),Zt(p,k,o+46+t.length+s.length+l.length+x.length),Zt(p,c,o+46+t.length+s.length+l.length+x.length+k.length),Zt(p,d,o+46+t.length+v),o+=46+t.length+v+d.length,r.onprogress)try{await r.onprogress(e+1,a.size,new St(n))}catch(e){}}if(f&&(Ot(w,o,101075792),Kt(w,o+4,s(44)),Pt(w,o+12,45),Pt(w,o+14,45),Kt(w,o+24,s(h)),Kt(w,o+32,s(h)),Kt(w,o+40,s(l)),Kt(w,o+48,s(d)),Ot(w,o+56,117853008),Kt(w,o+64,s(d)+s(l)),Ot(w,o+72,1),h=kt,d=xt,l=xt,o+=76),Ot(w,o,101010256),Pt(w,o+8,h),Pt(w,o+10,h),Ot(w,o+12,l),Ot(w,o+16,d),n&&n.length){if(n.length>kt)throw new c(At);Pt(w,o+20,n.length)}const{writable:g}=e.writer;await bt(e.writer),await Bt(g,p),n&&n.length&&await Bt(g,n)})(this,e,n),a.preventClose||n.preventClose||await o.getWriter().close(),a.getData?a.getData():o}},e.configure=C,e.getMimeType=()=>"application/octet-stream",e.initStream=bt,e.terminateWorkers=()=>{Xe.forEach((e=>{Ge(e),e.terminate()}))},n.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})})(this,(function(e){"use strict";const{Array:t,Object:n,String:r,BigInt:s,Math:a,Date:i,Map:o,URL:l,Error:c,Uint8Array:d,Uint16Array:u,Uint32Array:h,DataView:f,Blob:p,Promise:w,TextEncoder:g,TextDecoder:_,document:m,crypto:y,btoa:b,TransformStream:x,ReadableStream:k,WritableStream:v,CompressionStream:z,DecompressionStream:R,navigator:S}=globalThis,T=(()=>{const e=-2;function n(e){return r(e.map((([e,n])=>new t(e).fill(n,0,e))))}function r(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?r(n):n)),[])}const s=[0,1,2,3].concat(...n([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function i(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.build_tree=n=>{const r=e.dyn_tree,s=e.stat_desc.static_tree,i=e.stat_desc.elems;let o,l,c,d=-1;for(n.heap_len=0,n.heap_max=573,o=0;i>o;o++)0!==r[2*o]?(n.heap[++n.heap_len]=d=o,n.depth[o]=0):r[2*o+1]=0;for(;2>n.heap_len;)c=n.heap[++n.heap_len]=2>d?++d:0,r[2*c]=1,n.depth[c]=0,n.opt_len--,s&&(n.static_len-=s[2*c+1]);for(e.max_code=d,o=a.floor(n.heap_len/2);o>=1;o--)n.pqdownheap(r,o);c=i;do{o=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(r,1),l=n.heap[1],n.heap[--n.heap_max]=o,n.heap[--n.heap_max]=l,r[2*c]=r[2*o]+r[2*l],n.depth[c]=a.max(n.depth[o],n.depth[l])+1,r[2*o+1]=r[2*l+1]=c,n.heap[1]=c++,n.pqdownheap(r,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],(t=>{const n=e.dyn_tree,r=e.stat_desc.static_tree,s=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,i=e.stat_desc.max_length;let o,l,c,d,u,h,f=0;for(d=0;15>=d;d++)t.bl_count[d]=0;for(n[2*t.heap[t.heap_max]+1]=0,o=t.heap_max+1;573>o;o++)l=t.heap[o],d=n[2*n[2*l+1]+1]+1,d>i&&(d=i,f++),n[2*l+1]=d,l>e.max_code||(t.bl_count[d]++,u=0,a>l||(u=s[l-a]),h=n[2*l],t.opt_len+=h*(d+u),r&&(t.static_len+=h*(r[2*l+1]+u)));if(0!==f){do{for(d=i-1;0===t.bl_count[d];)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[i]--,f-=2}while(f>0);for(d=i;0!==d;d--)for(l=t.bl_count[d];0!==l;)c=t.heap[--o],c>e.max_code||(n[2*c+1]!=d&&(t.opt_len+=(d-n[2*c+1])*n[2*c],n[2*c+1]=d),l--)}})(n),((e,n,r)=>{const s=[];let a,i,o,l=0;for(a=1;15>=a;a++)s[a]=l=l+r[a-1]<<1;for(i=0;n>=i;i++)o=e[2*i+1],0!==o&&(e[2*i]=t(s[o]++,o))})(r,e.max_code,n.bl_count)}}function o(e,t,n,r,s){const a=this;a.static_tree=e,a.extra_bits=t,a.extra_base=n,a.elems=r,a.max_length=s}i._length_code=[0,1,2,3,4,5,6,7].concat(...n([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),i.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],i.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],i.d_code=e=>256>e?s[e]:s[256+(e>>>7)],i.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],i.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],i.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],i.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const l=n([[144,8],[112,9],[24,7],[8,8]]);o.static_ltree=r([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,l[t]])));const h=n([[30,5]]);function f(e,t,n,r,s){const a=this;a.good_length=e,a.max_lazy=t,a.nice_length=n,a.max_chain=r,a.func=s}o.static_dtree=r([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,h[t]]))),o.static_l_desc=new o(o.static_ltree,i.extra_lbits,257,286,15),o.static_d_desc=new o(o.static_dtree,i.extra_dbits,0,30,15),o.static_bl_desc=new o(null,i.extra_blbits,0,19,7);const p=[new f(0,0,0,0,0),new f(4,4,8,4,1),new f(4,5,16,8,1),new f(4,6,32,32,1),new f(4,4,16,16,2),new f(8,16,32,32,2),new f(8,16,128,128,2),new f(8,32,128,256,2),new f(32,128,258,1024,2),new f(32,258,258,4096,2)],w=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],g=113,_=666,m=262;function y(e,t,n,r){const s=e[2*t],a=e[2*n];return a>s||s==a&&r[t]<=r[n]}function b(){const t=this;let n,r,s,l,c,h,f,b,x,k,v,z,R,S,T,D,E,A,F,C,W,I,U,H,M,L,q,B,N,V,P,O,K;const Z=new i,X=new i,Y=new i;let j,G,J,Q,$,ee;function te(){let e;for(e=0;286>e;e++)P[2*e]=0;for(e=0;30>e;e++)O[2*e]=0;for(e=0;19>e;e++)K[2*e]=0;P[512]=1,t.opt_len=t.static_len=0,G=J=0}function ne(e,t){let n,r=-1,s=e[1],a=0,i=7,o=4;0===s&&(i=138,o=3),e[2*(t+1)+1]=65535;for(let l=0;t>=l;l++)n=s,s=e[2*(l+1)+1],++a<i&&n==s||(o>a?K[2*n]+=a:0!==n?(n!=r&&K[2*n]++,K[32]++):a>10?K[36]++:K[34]++,a=0,r=n,0===s?(i=138,o=3):n==s?(i=6,o=3):(i=7,o=4))}function re(e){t.pending_buf[t.pending++]=e}function se(e){re(255&e),re(e>>>8&255)}function ae(e,t){let n;const r=t;ee>16-r?(n=e,$|=n<<ee&65535,se($),$=n>>>16-ee,ee+=r-16):($|=e<<ee&65535,ee+=r)}function ie(e,t){const n=2*e;ae(65535&t[n],65535&t[n+1])}function oe(e,t){let n,r,s=-1,a=e[1],i=0,o=7,l=4;for(0===a&&(o=138,l=3),n=0;t>=n;n++)if(r=a,a=e[2*(n+1)+1],++i>=o||r!=a){if(l>i)do{ie(r,K)}while(0!=--i);else 0!==r?(r!=s&&(ie(r,K),i--),ie(16,K),ae(i-3,2)):i>10?(ie(18,K),ae(i-11,7)):(ie(17,K),ae(i-3,3));i=0,s=r,0===a?(o=138,l=3):r==a?(o=6,l=3):(o=7,l=4)}}function le(){16==ee?(se($),$=0,ee=0):8>ee||(re(255&$),$>>>=8,ee-=8)}function ce(e,n){let r,s,o;if(t.dist_buf[G]=e,t.lc_buf[G]=255&n,G++,0===e?P[2*n]++:(J++,e--,P[2*(i._length_code[n]+256+1)]++,O[2*i.d_code(e)]++),0==(8191&G)&&q>2){for(r=8*G,s=W-E,o=0;30>o;o++)r+=O[2*o]*(5+i.extra_dbits[o]);if(r>>>=3,J<a.floor(G/2)&&r<a.floor(s/2))return!0}return G==j-1}function de(e,n){let r,s,a,o,l=0;if(0!==G)do{r=t.dist_buf[l],s=t.lc_buf[l],l++,0===r?ie(s,e):(a=i._length_code[s],ie(a+256+1,e),o=i.extra_lbits[a],0!==o&&(s-=i.base_length[a],ae(s,o)),r--,a=i.d_code(r),ie(a,n),o=i.extra_dbits[a],0!==o&&(r-=i.base_dist[a],ae(r,o)))}while(G>l);ie(256,e),Q=e[513]}function ue(){ee>8?se($):ee>0&&re(255&$),$=0,ee=0}function he(e,n,r){ae(0+(r?1:0),3),((e,n)=>{ue(),Q=8,se(n),se(~n),t.pending_buf.set(b.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function fe(e){((e,n,r)=>{let s,a,l=0;q>0?(Z.build_tree(t),X.build_tree(t),l=(()=>{let e;for(ne(P,Z.max_code),ne(O,X.max_code),Y.build_tree(t),e=18;e>=3&&0===K[2*i.bl_order[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(),s=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a>s||(s=a)):s=a=n+5,n+4>s||-1==e?a==s?(ae(2+(r?1:0),3),de(o.static_ltree,o.static_dtree)):(ae(4+(r?1:0),3),((e,t,n)=>{let r;for(ae(e-257,5),ae(t-1,5),ae(n-4,4),r=0;n>r;r++)ae(K[2*i.bl_order[r]+1],3);oe(P,e-1),oe(O,t-1)})(Z.max_code+1,X.max_code+1,l+1),de(P,O)):he(e,n,r),te(),r&&ue()})(0>E?-1:E,W-E,e),E=W,n.flush_pending()}function pe(){let e,t,r,s;do{if(s=x-U-W,0===s&&0===W&&0===U)s=c;else if(-1==s)s--;else if(W>=c+c-m){b.set(b.subarray(c,c+c),0),I-=c,W-=c,E-=c,e=R,r=e;do{t=65535&v[--r],v[r]=c>t?0:t-c}while(0!=--e);e=c,r=e;do{t=65535&k[--r],k[r]=c>t?0:t-c}while(0!=--e);s+=c}if(0===n.avail_in)return;e=n.read_buf(b,W+U,s),U+=e,3>U||(z=255&b[W],z=(z<<D^255&b[W+1])&T)}while(m>U&&0!==n.avail_in)}function we(e){let t,n,r=M,s=W,a=H;const i=W>c-m?W-(c-m):0;let o=V;const l=f,d=W+258;let u=b[s+a-1],h=b[s+a];N>H||(r>>=2),o>U&&(o=U);do{if(t=e,b[t+a]==h&&b[t+a-1]==u&&b[t]==b[s]&&b[++t]==b[s+1]){s+=2,t++;do{}while(b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&b[++s]==b[++t]&&d>s);if(n=258-(d-s),s=d-258,n>a){if(I=e,a=n,n>=o)break;u=b[s+a-1],h=b[s+a]}}}while((e=65535&k[e&l])>i&&0!=--r);return a>U?U:a}t.depth=[],t.bl_count=[],t.heap=[],P=[],O=[],K=[],t.pqdownheap=(e,n)=>{const r=t.heap,s=r[n];let a=n<<1;for(;a<=t.heap_len&&(a<t.heap_len&&y(e,r[a+1],r[a],t.depth)&&a++,!y(e,s,r[a],t.depth));)r[n]=r[a],n=a,a<<=1;r[n]=s},t.deflateInit=(n,i,w,_,m,y)=>(_||(_=8),m||(m=8),y||(y=0),n.msg=null,-1==i&&(i=6),1>m||m>9||8!=_||9>w||w>15||0>i||i>9||0>y||y>2?e:(n.dstate=t,h=w,c=1<<h,f=c-1,S=m+7,R=1<<S,T=R-1,D=a.floor((S+3-1)/3),b=new d(2*c),k=[],v=[],j=1<<m+6,t.pending_buf=new d(4*j),s=4*j,t.dist_buf=new u(j),t.lc_buf=new d(j),q=i,B=y,(e=>(e.total_in=e.total_out=0,e.msg=null,t.pending=0,t.pending_out=0,r=g,l=0,Z.dyn_tree=P,Z.stat_desc=o.static_l_desc,X.dyn_tree=O,X.stat_desc=o.static_d_desc,Y.dyn_tree=K,Y.stat_desc=o.static_bl_desc,$=0,ee=0,Q=8,te(),(()=>{x=2*c,v[R-1]=0;for(let e=0;R-1>e;e++)v[e]=0;L=p[q].max_lazy,N=p[q].good_length,V=p[q].nice_length,M=p[q].max_chain,W=0,E=0,U=0,A=H=2,C=0,z=0})(),0))(n))),t.deflateEnd=()=>42!=r&&r!=g&&r!=_?e:(t.lc_buf=null,t.dist_buf=null,t.pending_buf=null,v=null,k=null,b=null,t.dstate=null,r==g?-3:0),t.deflateParams=(t,n,r)=>{let s=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(p[q].func!=p[n].func&&0!==t.total_in&&(s=t.deflate(1)),q!=n&&(q=n,L=p[q].max_lazy,N=p[q].good_length,V=p[q].nice_length,M=p[q].max_chain),B=r,s)},t.deflateSetDictionary=(t,n,s)=>{let a,i=s,o=0;if(!n||42!=r)return e;if(3>i)return 0;for(i>c-m&&(i=c-m,o=s-i),b.set(n.subarray(o,o+i),0),W=i,E=i,z=255&b[0],z=(z<<D^255&b[1])&T,a=0;i-3>=a;a++)z=(z<<D^255&b[a+2])&T,k[a&f]=v[z],v[z]=a;return 0},t.deflate=(a,i)=>{let d,u,y,x,S;if(i>4||0>i)return e;if(!a.next_out||!a.next_in&&0!==a.avail_in||r==_&&4!=i)return a.msg=w[4],e;if(0===a.avail_out)return a.msg=w[7],-5;var M;if(n=a,x=l,l=i,42==r&&(u=8+(h-8<<4)<<8,y=(q-1&255)>>1,y>3&&(y=3),u|=y<<6,0!==W&&(u|=32),u+=31-u%31,r=g,re((M=u)>>8&255),re(255&M)),0!==t.pending){if(n.flush_pending(),0===n.avail_out)return l=-1,0}else if(0===n.avail_in&&x>=i&&4!=i)return n.msg=w[7],-5;if(r==_&&0!==n.avail_in)return a.msg=w[7],-5;if(0!==n.avail_in||0!==U||0!=i&&r!=_){switch(S=-1,p[q].func){case 0:S=(e=>{let t,r=65535;for(r>s-5&&(r=s-5);;){if(1>=U){if(pe(),0===U&&0==e)return 0;if(0===U)break}if(W+=U,U=0,t=E+r,(0===W||W>=t)&&(U=W-t,W=t,fe(!1),0===n.avail_out))return 0;if(W-E>=c-m&&(fe(!1),0===n.avail_out))return 0}return fe(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(i);break;case 1:S=(e=>{let t,r=0;for(;;){if(m>U){if(pe(),m>U&&0==e)return 0;if(0===U)break}if(3>U||(z=(z<<D^255&b[W+2])&T,r=65535&v[z],k[W&f]=v[z],v[z]=W),0===r||(W-r&65535)>c-m||2!=B&&(A=we(r)),3>A)t=ce(0,255&b[W]),U--,W++;else if(t=ce(W-I,A-3),U-=A,A>L||3>U)W+=A,A=0,z=255&b[W],z=(z<<D^255&b[W+1])&T;else{A--;do{W++,z=(z<<D^255&b[W+2])&T,r=65535&v[z],k[W&f]=v[z],v[z]=W}while(0!=--A);W++}if(t&&(fe(!1),0===n.avail_out))return 0}return fe(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(i);break;case 2:S=(e=>{let t,r,s=0;for(;;){if(m>U){if(pe(),m>U&&0==e)return 0;if(0===U)break}if(3>U||(z=(z<<D^255&b[W+2])&T,s=65535&v[z],k[W&f]=v[z],v[z]=W),H=A,F=I,A=2,0!==s&&L>H&&c-m>=(W-s&65535)&&(2!=B&&(A=we(s)),5>=A&&(1==B||3==A&&W-I>4096)&&(A=2)),3>H||A>H)if(0!==C){if(t=ce(0,255&b[W-1]),t&&fe(!1),W++,U--,0===n.avail_out)return 0}else C=1,W++,U--;else{r=W+U-3,t=ce(W-1-F,H-3),U-=H-1,H-=2;do{++W>r||(z=(z<<D^255&b[W+2])&T,s=65535&v[z],k[W&f]=v[z],v[z]=W)}while(0!=--H);if(C=0,A=2,W++,t&&(fe(!1),0===n.avail_out))return 0}}return 0!==C&&(t=ce(0,255&b[W-1]),C=0),fe(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(i)}if(2!=S&&3!=S||(r=_),0==S||2==S)return 0===n.avail_out&&(l=-1),0;if(1==S){if(1==i)ae(2,3),ie(256,o.static_ltree),le(),9>1+Q+10-ee&&(ae(2,3),ie(256,o.static_ltree),le()),Q=7;else if(he(0,0,!1),3==i)for(d=0;R>d;d++)v[d]=0;if(n.flush_pending(),0===n.avail_out)return l=-1,0}}return 4!=i?0:1}}function x(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}return x.prototype={deflateInit(e,t){const n=this;return n.dstate=new b,t||(t=15),n.dstate.deflateInit(n,e,t)},deflate(t){const n=this;return n.dstate?n.dstate.deflate(n,t):e},deflateEnd(){const t=this;if(!t.dstate)return e;const n=t.dstate.deflateEnd();return t.dstate=null,n},deflateParams(t,n){const r=this;return r.dstate?r.dstate.deflateParams(r,t,n):e},deflateSetDictionary(t,n){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,t,n):e},read_buf(e,t,n){const r=this;let s=r.avail_in;return s>n&&(s=n),0===s?0:(r.avail_in-=s,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+s),t),r.next_in_index+=s,r.total_in+=s,s)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,0===e.dstate.pending&&(e.dstate.pending_out=0))}},function(e){const t=new x,n=(r=e&&e.chunkSize?e.chunkSize:65536)+5*(a.floor(r/16383)+1);var r;const s=new d(n);let i=e?e.level:-1;void 0===i&&(i=-1),t.deflateInit(i),t.next_out=s,this.append=(e,r)=>{let a,i,o=0,l=0,u=0;const h=[];if(e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=n,a=t.deflate(0),0!=a)throw new c("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==n?h.push(new d(s)):h.push(s.slice(0,t.next_out_index))),u+=t.next_out_index,r&&t.next_in_index>0&&t.next_in_index!=o&&(r(t.next_in_index),o=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return h.length>1?(i=new d(u),h.forEach((e=>{i.set(e,l),l+=e.length}))):i=h[0]||new d,i}},this.flush=()=>{let e,r,a=0,i=0;const o=[];do{if(t.next_out_index=0,t.avail_out=n,e=t.deflate(4),1!=e&&0!=e)throw new c("deflating: "+t.msg);n-t.avail_out>0&&o.push(s.slice(0,t.next_out_index)),i+=t.next_out_index}while(t.avail_in>0||0===t.avail_out);return t.deflateEnd(),r=new d(i),o.forEach((e=>{r.set(e,a),a+=e.length})),r}}})(),D=void 0,E={chunkSize:524288,maxWorkers:void 0!==S&&S.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},A=n.assign({},E);function F(){return A}function C(e){const{baseURL:n,chunkSize:r,maxWorkers:s,terminateWorkerTimeout:a,useCompressionStream:i,useWebWorkers:o,Deflate:l,Inflate:d,workerScripts:u}=e;if(n!==D&&(A.baseURL=n),r!==D&&(A.chunkSize=r),s!==D&&(A.maxWorkers=s),a!==D&&(A.terminateWorkerTimeout=a),i!==D&&(A.useCompressionStream=i),o!==D&&(A.useWebWorkers=o),l!==D&&(A.Deflate=l),d!==D&&(A.Inflate=d),u!==D){const{deflate:e,inflate:n}=u;if((e||n)&&(A.workerScripts||(A.workerScripts={})),e){if(!t.isArray(e))throw new c("workerScripts.deflate must be an array");A.workerScripts.deflate=e}if(n){if(!t.isArray(n))throw new c("workerScripts.inflate must be an array");A.workerScripts.inflate=n}}}const W=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;W[e]=t}class I{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^W[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class U extends x{constructor(){super({start(){this.crc32=new I},transform(e){this.crc32.append(e)},flush(e){const t=new d(4);new f(t.buffer).setUint32(0,this.crc32.get()),e.enqueue(t)}})}}function H(e){if(void 0===g){const t=new d((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new g).encode(e)}const M={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=M.getPartial(n);return 32===r?e.concat(t):M._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+M.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,a.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=M.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>a.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,a=M.getPartial(s);return r.push(M.partial(t+a&31,t+a>32?n:r.pop(),1)),r}},L={bytes:{fromBits(e){const t=M.bitLength(e)/8,n=new d(t);let r;for(let s=0;t>s;s++)0==(3&s)&&(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(M.partial(8*(3&n),r)),t}}},q={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};q.sha1.prototype={blockSize:512,reset(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update(e){const t=this;"string"==typeof e&&(e=L.utf8String.toBits(e));const n=t._buffer=M.concat(t._buffer,e),r=t._length,s=t._length=r+M.bitLength(e);if(s>9007199254740991)throw new c("Cannot hash more than 2^53 - 1 bits");const a=new h(n);let i=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);s>=e;e+=t.blockSize)t._block(a.subarray(16*i,16*(i+1))),i+=1;return n.splice(0,16*i),t},finalize(){const e=this;let t=e._buffer;const n=e._h;t=M.concat(t,[M.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(a.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,r)=>e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r,_S:(e,t)=>t<<e|t>>>32-e,_block(e){const n=this,r=n._h,s=t(80);for(let t=0;16>t;t++)s[t]=e[t];let i=r[0],o=r[1],l=r[2],c=r[3],d=r[4];for(let e=0;79>=e;e++){16>e||(s[e]=n._S(1,s[e-3]^s[e-8]^s[e-14]^s[e-16]));const t=n._S(5,i)+n._f(e,o,l,c)+d+s[e]+n._key[a.floor(e/20)]|0;d=c,c=l,l=n._S(30,o),o=i,i=t}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+l|0,r[3]=r[3]+c|0,r[4]=r[4]+d|0}};const B={getRandomValues(e){const t=new h(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(a.random()>.5?1:-1))};for(let r,s=0;s<e.length;s+=4){const e=n(4294967296*(r||a.random()));r=987654071*e(),t[s/4]=4294967296*e()|0}return e}},N={importKey:e=>new N.hmacSha1(L.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new c("invalid params to pbkdf2");const s=1+(r>>5)<<2;let a,i,o,l,d;const u=new ArrayBuffer(s),h=new f(u);let p=0;const w=M;for(t=L.bytes.toBits(t),d=1;(s||1)>p;d++){for(a=i=e.encrypt(w.concat(t,[d])),o=1;n>o;o++)for(i=e.encrypt(i),l=0;l<i.length;l++)a[l]^=i[l];for(o=0;(s||1)>p&&o<a.length;o++)h.setInt32(p,a[o]),p+=4}return u.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=q.sha1,r=[[],[]],s=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>s&&(e=n.hash(e));for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new c("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},V=void 0!==y&&"function"==typeof y.getRandomValues,P="Invalid password";function O(e){return V?y.getRandomValues(e):B.getRandomValues(e)}const K=16,Z={name:"PBKDF2"},X=n.assign({hash:{name:"HMAC"}},Z),Y=n.assign({iterations:1e3,hash:{name:"SHA-1"}},Z),j=["deriveBits"],G=[8,12,16],J=[16,24,32],Q=10,$=[0,0,0,0],ee="undefined",te="function",ne=typeof y!=ee,re=ne&&typeof y.subtle!=ee,se=ne&&re&&typeof y.subtle.importKey==te,ae=ne&&re&&typeof y.subtle.deriveBits==te,ie=L.bytes,oe=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],s=e.length;let a,i,o,l=1;if(4!==s&&6!==s&&8!==s)throw new c("invalid aes key size");for(t._key=[i=e.slice(0),o=[]],a=s;4*s+28>a;a++){let e=i[a-1];(a%s==0||8===s&&a%s==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],a%s==0&&(e=e<<8^e>>>24^l<<24,l=l<<1^283*(l>>7))),i[a]=i[a-s]^e}for(let e=0;a;e++,a--){const t=i[3&e?a:a-4];o[e]=4>=a||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],s=[],a=[];let i,o,l,c;for(let e=0;256>e;e++)a[(s[e]=e<<1^283*(e>>7))^e]=e;for(let d=i=0;!n[d];d^=o||1,i=a[i]||1){let a=i^i<<1^i<<2^i<<3^i<<4;a=a>>8^255&a^99,n[d]=a,r[a]=d,c=s[l=s[o=s[d]]];let u=16843009*c^65537*l^257*o^16843008*d,h=257*s[a]^16843008*a;for(let n=0;4>n;n++)e[n][d]=h=h<<24^h>>>8,t[n][a]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new c("invalid aes block size");const n=this._key[t],r=n.length/4-2,s=[0,0,0,0],a=this._tables[t],i=a[0],o=a[1],l=a[2],d=a[3],u=a[4];let h,f,p,w=e[0]^n[0],g=e[t?3:1]^n[1],_=e[2]^n[2],m=e[t?1:3]^n[3],y=4;for(let e=0;r>e;e++)h=i[w>>>24]^o[g>>16&255]^l[_>>8&255]^d[255&m]^n[y],f=i[g>>>24]^o[_>>16&255]^l[m>>8&255]^d[255&w]^n[y+1],p=i[_>>>24]^o[m>>16&255]^l[w>>8&255]^d[255&g]^n[y+2],m=i[m>>>24]^o[w>>16&255]^l[g>>8&255]^d[255&_]^n[y+3],y+=4,w=h,g=f,_=p;for(let e=0;4>e;e++)s[t?3&-e:e]=u[w>>>24]<<24^u[g>>16&255]<<16^u[_>>8&255]<<8^u[255&m]^n[y++],h=w,w=g,g=_,_=m,m=h;return s}},le=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const s=M.bitLength(t);for(let s=0;r>s;s+=4){this.incCounter(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return M.clamp(t,s)}},ce=N.hmacSha1;class de extends x{constructor(e,r,s){let a;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,signed:r,strength:s-1,pending:new d})},async transform(e,n){const r=this;if(r.password){const n=r.password;r.password=null;const s=we(e,0,G[r.strength]+2);await(async(e,t,n)=>{await fe(e,n,we(t,0,G[e.strength]));const r=we(t,G[e.strength]),s=e.keys.passwordVerification;if(s[0]!=r[0]||s[1]!=r[1])throw new c(P)})(r,s,n),r.ctr=new le(new oe(r.keys.key),t.from($)),r.hmac=new ce(r.keys.authentication),e=we(e,G[r.strength]+2),r.resolveReady()}else await r.ready;const s=new d(e.length-Q-(e.length-Q)%K);n.enqueue(he(r,e,s,0,Q,!0))},async flush(e){const t=this;await t.ready;const n=t.pending,r=we(n,0,n.length-Q),s=we(n,n.length-Q);let i=new d;if(r.length){const e=_e(ie,r);t.hmac.update(e);const n=t.ctr.update(e);i=ge(ie,n)}if(a.valid=!0,t.signed){const e=we(ge(ie,t.hmac.digest()),0,Q);for(let t=0;Q>t;t++)e[t]!=s[t]&&(a.valid=!1)}e.enqueue(i)}}),a=this}}class ue extends x{constructor(e,r){let s;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,strength:r-1,pending:new d})},async transform(e,n){const r=this;let s=new d;if(r.password){const e=r.password;r.password=null,s=await(async(e,t)=>{const n=O(new d(G[e.strength]));return await fe(e,t,n),pe(n,e.keys.passwordVerification)})(r,e),r.ctr=new le(new oe(r.keys.key),t.from($)),r.hmac=new ce(r.keys.authentication),r.resolveReady()}else await r.ready;const a=new d(s.length+e.length-e.length%K);a.set(s,0),n.enqueue(he(r,e,a,s.length,0))},async flush(e){const t=this;await t.ready;let n=new d;if(t.pending.length){const e=t.ctr.update(_e(ie,t.pending));t.hmac.update(e),n=ge(ie,e)}s.signature=ge(ie,t.hmac.digest()).slice(0,Q),e.enqueue(pe(n,s.signature))}}),s=this}}function he(e,t,n,r,s,a){const i=t.length-s;let o;for(e.pending.length&&(t=pe(e.pending,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new d(t)).set(n,0)}return e})(n,i-i%K)),o=0;i-K>=o;o+=K){const s=_e(ie,we(t,o,o+K));a&&e.hmac.update(s);const i=e.ctr.update(s);a||e.hmac.update(i),n.set(ge(ie,i),o+r)}return e.pending=we(t,o),n}async function fe(e,t,r){const s=H(t),a=await((e,t,n,r,s)=>se?y.subtle.importKey("raw",t,n,!1,s):N.importKey(t))(0,s,X,0,j),i=await(async(e,t,n)=>ae?await y.subtle.deriveBits(e,t,n):N.pbkdf2(t,e.salt,Y.iterations,n))(n.assign({salt:r},Y),a,8*(2*J[e.strength]+2)),o=new d(i);e.keys={key:_e(ie,we(o,0,J[e.strength])),authentication:_e(ie,we(o,J[e.strength],2*J[e.strength])),passwordVerification:we(o,2*J[e.strength])}}function pe(e,t){let n=e;return e.length+t.length&&(n=new d(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function we(e,t,n){return e.subarray(t,n)}function ge(e,t){return e.fromBits(t)}function _e(e,t){return e.toBits(t)}class me extends x{constructor(e,t){let r;super({start(){n.assign(this,{password:e,passwordVerification:t}),ke(this,e)},transform(e,t){const n=this;if(n.password){const t=be(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new c(P);e=e.subarray(12)}t.enqueue(be(n,e))},flush(){r.valid=!0}}),r=this}}class ye extends x{constructor(e,t){super({start(){n.assign(this,{password:e,passwordVerification:t}),ke(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=O(new d(12));t[11]=n.passwordVerification,r=new d(e.length+t.length),r.set(xe(n,t),0),s=12}else r=new d(e.length),s=0;r.set(xe(n,e),s),t.enqueue(r)},flush(){}})}}function be(e,t){const n=new d(t.length);for(let r=0;r<t.length;r++)n[r]=ze(e)^t[r],ve(e,n[r]);return n}function xe(e,t){const n=new d(t.length);for(let r=0;r<t.length;r++)n[r]=ze(e)^t[r],ve(e,t[r]);return n}function ke(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new I(e.keys[0]),e.crcKey2=new I(e.keys[2]);for(let n=0;n<t.length;n++)ve(e,t.charCodeAt(n))}function ve(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=Se(e.keys[1]+Re(e.keys[0])),e.keys[1]=Se(a.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function ze(e){const t=2|e.keys[2];return Re(a.imul(t,1^t)>>>8)}function Re(e){return 255&e}function Se(e){return 4294967295&e}class Te extends x{constructor(e,t){let n;super({start(){n=new e(t)},transform(e,t){e=n.append(e),t.enqueue(e)},flush(e){const t=n.flush();t&&e.enqueue(t)}})}}const De="Invalid signature",Ee="deflate-raw",Ae="undefined",Fe=typeof z==Ae,Ce=typeof R==Ae;let We=!0,Ie=!0;class Ue extends x{constructor(e,t,{chunkSize:n},...r){super({},...r);const{compressed:s,encrypted:a,useCompressionStream:i,password:o,passwordVerification:l,encryptionStrength:c,zipCrypto:d,signed:u,level:h}=t,p=this;let w,g,_=Le(super.readable);if(a&&!d||!u||([_,w]=_.tee(),w=w.pipeThrough(new U)),s)if(void 0!==i&&!i||Fe&&!Ie)_=Me(e,_,{chunkSize:n,level:h});else try{_=_.pipeThrough(new z(Ee))}catch(t){Ie=!1,_=Me(e,_,{chunkSize:n,level:h})}a&&(d?_=_.pipeThrough(new ye(o,l)):(g=new ue(o,c),_=_.pipeThrough(g))),qe(p,_,(async()=>{let e;a&&!d&&(e=g.signature),a&&!d||!u||(e=await w.getReader().read(),e=new f(e.value.buffer).getUint32(0)),p.signature=e}))}}class He extends x{constructor(e,t,{chunkSize:n},...r){super({},...r);const{zipCrypto:s,encrypted:a,password:i,passwordVerification:o,signed:l,encryptionStrength:d,compressed:u,useCompressionStream:h}=t;let p,w,g=Le(super.readable);if(a&&(s?g=g.pipeThrough(new me(i,o)):(w=new de(i,l,d),g=g.pipeThrough(w))),u)if(void 0!==h&&!h||Ce&&!We)g=Me(e,g,{chunkSize:n});else try{g=g.pipeThrough(new R(Ee))}catch(t){We=!1,g=Me(e,g,{chunkSize:n})}a&&!s||!l||([g,p]=g.tee(),p=p.pipeThrough(new U)),qe(this,g,(async()=>{if(a&&!s&&!w.valid)throw new c(De);if((!a||s)&&l){const e=await p.getReader().read(),n=new f(e.value.buffer);if(t.signature!=n.getUint32(0,!1))throw new c(De)}}))}}function Me(e,t,n){return t.pipeThrough(new Te(e,n))}function Le(e){return e.pipeThrough(new x({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function qe(e,t,r){t=t.pipeThrough(new x({flush:r})),n.defineProperty(e,"readable",{get:()=>t})}const Be="deflate",Ne="data";class Ve{constructor(e,t,n,r,s){const{codecType:a}=r;async function i(a){const i=new a(e,r,s);await t.pipeThrough(i).pipeThrough(new x({transform(e,t){e&&e.length&&(n.size+=e.length,t.enqueue(e))}})).pipeTo(n,{preventClose:!0,preventAbort:!0});const{size:o,signature:l}=i;return{size:o,signature:l}}a.startsWith(Be)?this.run=()=>i(Ue):a.startsWith("inflate")&&(this.run=()=>i(He))}}let Pe,Oe=!0;class Ke{constructor(e,t,r,s){const{readable:a,writable:i}=t,{options:o,config:u,streamOptions:h,webWorker:f,scripts:p,codecConstructor:g}=r;n.assign(e,{busy:!0,codecConstructor:g,readable:a,writable:i,options:n.assign({},o),scripts:p,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,s(e)}});const{signal:_,onstart:m,onprogress:y,size:b,onend:k}=h;let v=0;const z={};return m&&(z.start=()=>Ze(m,b())),z.transform=async(e,t)=>{v+=e.length,y&&await Ze(y,v,b()),t.enqueue(e)},z.flush=()=>{a.size=()=>v,k&&Ze(k,v)},e.readable=a.pipeThrough(new x(z,{highWaterMark:1,size:()=>u.chunkSize}),{signal:_}),void 0===Pe&&(Pe="undefined"!=typeof Worker),f&&Pe?((e,{baseURL:t,chunkSize:r})=>{const s={type:"module"},{readable:a,writable:i}=e;if(n.assign(e,{reader:a.getReader(),writer:i.getWriter(),result:new w(((t,n)=>{e.resolveResult=t,e.rejectResult=n}))}),!e.interface){if(Oe)try{e.worker=o({})}catch(t){Oe=!1,e.worker=o(s)}else e.worker=o(s);e.worker.addEventListener("message",(async t=>{const n=t.data,{reader:r,writer:s,resolveResult:a,rejectResult:i,onTaskFinished:o}=e,{type:l,data:h,messageId:f,result:p}=n,w=n.error;try{if(w){const{message:e,stack:t}=w,n=new c(e);n.stack=t,g(n)}else{if("pull"==l){const{value:e,done:t}=await r.read();u({type:Ne,data:e,done:t,messageId:f})}l==Ne&&(await s.ready,e.writable.size+=h.byteLength,await s.write(new d(h)),u({type:"ack",messageId:f})),"close"==l&&g(null,p)}}catch(e){g(e)}function g(e,t){e?i(e):a(t),s.releaseLock(),o()}}),!1),e.interface={run(){const{options:t}=e;return u({type:"start",scripts:e.scripts.slice(1),options:t,config:{chunkSize:r}}),e.result}}}return e.interface;function o(n){let r,s;r=e.scripts[0],"function"==typeof r&&(r=r());try{s=new l(r,t)}catch(e){s=r}return new Worker(s,n)}function u(t){const{worker:n,writer:r,onTaskFinished:s}=e;try{let{data:e}=t;if(e)try{const{buffer:r,length:s}=e;s!=r.byteLength&&(e=new d(e)),t.data=e.buffer,n.postMessage(t,[t.data])}catch(e){n.postMessage(t)}else n.postMessage(t)}catch(e){throw r.releaseLock(),s(),e}}})(e,u):((e,t)=>{const n=new Ve(e.codecConstructor,e.readable,e.writable,e.options,t),{onTaskFinished:r}=e;return{async run(){try{return await n.run()}finally{r()}}}})(e,u)}}async function Ze(e,...t){try{await e(...t)}catch(e){}}let Xe=[];const Ye=[];let je=0;function Ge(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}const Je="HTTP error ",Qe="HTTP Range not supported",$e="text/plain",et="GET",tt=65536;class nt{constructor(){this.size=0}init(){this.initialized=!0}}class rt extends nt{get readable(){const e=this,{chunkSize:t=tt}=e,n=new k({start(){this.chunkOffset=0},async pull(r){const{offset:s=0,size:i}=n,{chunkOffset:o}=this;r.enqueue(await e.readUint8Array(s+o,a.min(t,i()-o))),o+t>i()?r.close():this.chunkOffset+=t}});return n}}class st extends nt{constructor(){super();const e=this,t=new v({write:t=>e.writeUint8Array(t)});n.defineProperty(e,"writable",{get:()=>t})}writeUint8Array(){}}class at extends rt{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){return new d(await this.blob.slice(e,e+t).arrayBuffer())}}class it extends nt{constructor(e){super();const t=this;t.contentType=e,t.transformStream=new x,n.defineProperty(this,"writable",{get:()=>t.transformStream.writable})}init(){super.init();const{transformStream:e,contentType:t}=this;this.blob=new Response(e.readable).blob({type:t})}getData(){return this.blob}}class ot extends rt{constructor(e,t){super();const r=this;r.url=e,r.preventHeadRequest=t.preventHeadRequest,r.useRangeHeader=t.useRangeHeader,r.forceRangeRequests=t.forceRangeRequests,r.options=t=n.assign({},t),delete t.preventHeadRequest,delete t.useRangeHeader,delete t.forceRangeRequests,delete t.useXHR}async init(){super.init(),await ct(this,_t,ft)}readUint8Array(e,t){return dt(this,e,t,_t,ft)}}class lt extends rt{constructor(e,t){super();const n=this;n.url=e,n.preventHeadRequest=t.preventHeadRequest,n.useRangeHeader=t.useRangeHeader,n.forceRangeRequests=t.forceRangeRequests,n.options=t}async init(){super.init(),await ct(this,mt,pt)}readUint8Array(e,t){return dt(this,e,t,mt,pt)}}async function ct(e,t,n){if((e=>{const{baseURL:t}=F(),{protocol:n}=new l(e,t);return"http:"==n||"https:"==n})(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const r=await t(et,e,ut(e));if(!e.forceRangeRequests&&"bytes"!=r.headers.get("Accept-Ranges"))throw new c(Qe);{let s;const a=r.headers.get("Content-Range");if(a){const e=a.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(s=Number(t))}}void 0===s?await gt(e,t,n):e.size=s}}else await gt(e,t,n)}async function dt(e,t,n,r,s){if(e.useRangeHeader||e.forceRangeRequests){const s=await r(et,e,ut(e,t,n));if(206!=s.status)throw new c(Qe);return new d(await s.arrayBuffer())}return e.data||await s(e,e.options),new d(e.data.subarray(t,t+n))}function ut(e,t=0,r=1){return n.assign({},ht(e),{Range:"bytes="+t+"-"+(t+r-1)})}function ht(e){const t=e.options.headers;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function ft(e){await wt(e,_t)}async function pt(e){await wt(e,mt)}async function wt(e,t){const n=await t(et,e,ht(e));e.data=new d(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function gt(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t("HEAD",e,ht(e))).headers.get("Content-Length");r?e.size=Number(r):await n(e,e.options)}}async function _t(e,{options:t,url:r},s){const a=await fetch(r,n.assign({},t,{method:e,headers:s}));if(400>a.status)return a;throw 416==a.status?new c(Qe):new c(Je+(a.statusText||a.status))}function mt(e,{url:t},r){return new w(((s,a)=>{const i=new XMLHttpRequest;if(i.addEventListener("load",(()=>{if(400>i.status){const e=[];i.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),s({status:i.status,arrayBuffer:()=>i.response,headers:new o(e)})}else a(416==i.status?new c(Qe):new c(Je+(i.statusText||i.status)))}),!1),i.addEventListener("error",(e=>a(e.detail.error)),!1),i.open(e,t),r)for(const e of n.entries(r))i.setRequestHeader(e[0],e[1]);i.responseType="arraybuffer",i.send()}))}class yt extends rt{constructor(e,t={}){super(),this.url=e,this.reader=t.useXHR?new lt(e,t):new ot(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}async function bt(e,t){e.init&&!e.initialized&&await e.init(t)}const xt=4294967295,kt=65535,vt=new i(2107,11,31),zt=new i(1980,0,1),Rt=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class St{constructor(e){Rt.forEach((t=>this[t]=e[t]))}}const Tt="File already exists",Dt="Zip file comment exceeds 64KB",Et="File entry comment exceeds 64KB",At="File entry name exceeds 64KB",Ft="Version exceeds 65535",Ct="The strength must equal 1, 2, or 3",Wt="Extra field type exceeds 65535",It="Extra field data exceeds 64KB",Ut="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",Ht=new d([7,0,2,0,65,69,3,0,0]);let Mt=0;const Lt=[];async function qt(e,t){const n=e.getWriter();await n.ready,e.size+=t.length,await n.write(t),n.releaseLock()}function Bt(e){if(e)return(s(e.getTime())+s(116444736e5))*s(1e4)}function Nt(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function Vt(e,t,n){e.setUint8(t,n)}function Pt(e,t,n){e.setUint16(t,n,!0)}function Ot(e,t,n){e.setUint32(t,n,!0)}function Kt(e,t,n){e.setBigUint64(t,n,!0)}function Zt(e,t,n){e.set(t,n)}function Xt(e){return new f(e.buffer)}C({Deflate:T}),e.BlobReader=at,e.BlobWriter=it,e.Data64URIReader=class extends rt{constructor(e){super();const t=this;t.dataURI=e;let n=e.length;for(;"="==e.charAt(n-1);)n--;t.dataStart=e.indexOf(",")+1,t.size=a.floor(.75*(n-t.dataStart))}readUint8Array(e,t){const n=new d(t),r=4*a.floor(e/3),s=this.dataStart,i=atob(this.dataURI.substring(r+s,4*a.ceil((e+t)/3)+s)),o=e-3*a.floor(r/4);for(let e=o;o+t>e;e++)n[e-o]=i.charCodeAt(e);return n}},e.Data64URIWriter=class extends st{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}writeUint8Array(e){const t=this;let n=0,s=t.pending;const i=t.pending.length;for(t.pending="",n=0;n<3*a.floor((i+e.length)/3)-i;n++)s+=r.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=r.fromCharCode(e[n]);s.length>2?t.data+=b(s):t.pending=s}getData(){return this.data+b(this.pending)}},e.ERR_DUPLICATED_NAME=Tt,e.ERR_HTTP_RANGE=Qe,e.ERR_INVALID_COMMENT=Dt,e.ERR_INVALID_ENCRYPTION_STRENGTH=Ct,e.ERR_INVALID_ENTRY_COMMENT=Et,e.ERR_INVALID_ENTRY_NAME=At,e.ERR_INVALID_EXTRAFIELD_DATA=It,e.ERR_INVALID_EXTRAFIELD_TYPE=Wt,e.ERR_INVALID_VERSION=Ft,e.ERR_UNSUPPORTED_FORMAT=Ut,e.HttpRangeReader=class extends yt{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=yt,e.Reader=rt,e.TextReader=class extends rt{constructor(e){super(),this.blobReader=new at(new p([e],{type:$e}))}init(){const e=this;super.init(),e.blobReader.init(),e.size=e.blobReader.size}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},e.TextWriter=class extends st{constructor(e){super(),this.encoding=e,this.blob=new p([],{type:$e})}writeUint8Array(e){this.blob=new p([this.blob,e.buffer],{type:$e})}getData(){const e=this;if(e.blob.text&&(void 0===e.encoding||e.encoding&&"utf-8"==e.encoding.toLowerCase()))return e.blob.text();{const t=new FileReader;return new w(((n,r)=>{t.onload=e=>n(e.target.result),t.onerror=()=>r(t.error),t.readAsText(e.blob,e.encoding)}))}}},e.Uint8ArrayReader=class extends rt{constructor(e){super(),this.array=e,this.size=e.length}readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends st{init(e=0){super.init(),this.offset=0,this.array=new d(e)}writeUint8Array(e){const t=this;if(t.offset+e.length>t.array.length){const n=t.array;t.array=new d(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}},e.Writer=st,e.ZipWriter=class{constructor(e,t={}){null==e.writable.size&&(e.writable.size=0),n.assign(this,{writer:e,options:t,config:F(),files:new o,filenames:new Set,offset:e.writable.size,pendingEntriesSize:0,pendingAddFileCalls:new Set})}async add(e="",r,o={}){const l=this,{pendingAddFileCalls:p,config:g}=l;let _;Mt<g.maxWorkers?Mt++:await new w((e=>Lt.push(e)));try{if(e=e.trim(),l.filenames.has(e))throw new c(Tt);return l.filenames.add(e),_=(async(e,r,o,l)=>{r=r.trim(),l.directory&&!r.endsWith("/")?r+="/":l.directory=r.endsWith("/");const p=H(r);if(p.length>kt)throw new c(At);const g=l.comment||"",_=H(g);if(_.length>kt)throw new c(Et);const m=e.options.version||l.version||0;if(m>kt)throw new c(Ft);const y=e.options.versionMadeBy||l.versionMadeBy||20;if(y>kt)throw new c(Ft);const b=Nt(e,l,"lastModDate")||new i,x=Nt(e,l,"lastAccessDate"),k=Nt(e,l,"creationDate"),v=Nt(e,l,"password"),z=Nt(e,l,"encryptionStrength")||3,R=Nt(e,l,"zipCrypto");if(void 0!==v&&void 0!==z&&(1>z||z>3))throw new c(Ct);let S=new d;const{extraField:T}=l;if(T){let e=0,t=0;T.forEach((t=>e+=4+t.length)),S=new d(e),T.forEach(((e,n)=>{if(n>kt)throw new c(Wt);if(e.length>kt)throw new c(It);Zt(S,new u([n]),t),Zt(S,new u([e.length]),t+2),Zt(S,e,t+4),t+=4+e.length}))}let D=Nt(e,l,"extendedTimestamp");void 0===D&&(D=!0);let E=0,A=0,F=Nt(e,l,"keepOrder");void 0===F&&(F=!0);let C=0,W=Nt(e,l,"msDosCompatible");void 0===W&&(W=!0);const I=Nt(e,l,"internalFileAttribute")||0,U=Nt(e,l,"externalFileAttribute")||0;o&&(await bt(o),void 0===o.size?l.dataDescriptor=!0:C=o.size,E=(e=>e+5*(a.floor(e/16383)+1))(C));let M=l.zip64||e.options.zip64||!1;if(e.offset+e.pendingEntriesSize>=xt||C>=xt||E>=xt){if(!1===l.zip64||!1===e.options.zip64||!F)throw new c(Ut);M=!0}const L=Nt(e,l,"level"),q=Nt(e,l,"useWebWorkers"),B=Nt(e,l,"bufferedWrite");let N=Nt(e,l,"dataDescriptor"),V=Nt(e,l,"dataDescriptorSignature");const P=Nt(e,l,"signal"),O=Nt(e,l,"useCompressionStream");void 0===N&&(N=!0),N&&void 0===V&&(V=!1);const K=(e=>{const{rawFilename:t,lastAccessDate:n,creationDate:r,password:s,level:i,zip64:o,zipCrypto:l,dataDescriptor:c,directory:u,rawExtraField:f,encryptionStrength:p,extendedTimestamp:w}=e;let g=e.version||20;const _=0!==i&&!u,m=!(!s||!s.length);let y,b,x;if(m&&!l){y=new d(Ht.length+2);const e=Xt(y);Pt(e,0,39169),Zt(y,Ht,2),Vt(e,8,p)}else y=new d;if(w){x=new d(9+(n?4:0)+(r?4:0));const t=Xt(x);Pt(t,0,21589),Pt(t,2,x.length-4),Vt(t,4,1+(n?2:0)+(r?4:0)),Ot(t,5,a.floor(e.lastModDate.getTime()/1e3)),n&&Ot(t,9,a.floor(n.getTime()/1e3)),r&&Ot(t,13,a.floor(r.getTime()/1e3));try{b=new d(36);const t=Xt(b),s=Bt(e.lastModDate);Pt(t,0,10),Pt(t,2,32),Pt(t,8,1),Pt(t,10,24),Kt(t,12,s),Kt(t,20,Bt(n)||s),Kt(t,28,Bt(r)||s)}catch(e){b=new d}}else b=x=new d;let k=2048;c&&(k|=8);let v=0;_&&(v=8),o&&(g=g>45?g:45),m&&(k|=1,l||(g=g>51?g:51,v=99,_&&(y[9]=8)));const z=new d(26),R=Xt(z);Pt(R,0,g),Pt(R,2,k),Pt(R,4,v);const S=new h(1),T=Xt(S);let D;D=e.lastModDate<zt?zt:e.lastModDate>vt?vt:e.lastModDate,Pt(T,0,(D.getHours()<<6|D.getMinutes())<<5|D.getSeconds()/2),Pt(T,2,(D.getFullYear()-1980<<4|D.getMonth()+1)<<5|D.getDate());const E=S[0];Ot(R,6,E),Pt(R,22,t.length);const A=y.length+x.length+b.length+f.length;Pt(R,24,A);const F=new d(30+t.length+A);return Ot(Xt(F),0,67324752),Zt(F,z,4),Zt(F,t,30),Zt(F,y,30+t.length),Zt(F,x,30+t.length+y.length),Zt(F,b,30+t.length+y.length+x.length),Zt(F,f,30+t.length+y.length+x.length+b.length),{localHeaderArray:F,headerArray:z,headerView:R,lastModDate:D,rawLastModDate:E,encrypted:m,compressed:_,version:g,compressionMethod:v,rawExtraFieldExtendedTimestamp:x,rawExtraFieldNTFS:b,rawExtraFieldAES:y}})(l=n.assign({},l,{rawFilename:p,rawComment:_,version:m,versionMadeBy:y,lastModDate:b,lastAccessDate:x,creationDate:k,rawExtraField:S,zip64:M,password:v,level:L,useWebWorkers:q,encryptionStrength:z,extendedTimestamp:D,zipCrypto:R,bufferedWrite:B,keepOrder:F,dataDescriptor:N,dataDescriptorSignature:V,signal:P,msDosCompatible:W,internalFileAttribute:I,externalFileAttribute:U,useCompressionStream:O})),Z=(e=>{const{zip64:t,dataDescriptor:n,dataDescriptorSignature:r}=e;let s,a=new d,i=0;return n&&(a=new d(t?r?24:20:r?16:12),s=Xt(a),r&&(i=4,Ot(s,0,134695760))),{dataDescriptorArray:a,dataDescriptorView:s,dataDescriptorOffset:i}})(l);A=K.localHeaderArray.length+E+Z.dataDescriptorArray.length,e.pendingEntriesSize+=A;const X=await(async(e,r,i,o,l)=>{const{files:u,writer:h}=e,{keepOrder:p,dataDescriptor:g,zipCrypto:_,signal:m}=l,y=t.from(u.values()).pop();let b,x,k,v,z,R={};u.set(r,R);try{let t;if(p&&(t=y&&y.lock,R.lock=new w((e=>k=e))),l.bufferedWrite||e.lockWriter||!g?(z=new it,z.writable.size=0,b=!0,await bt(h)):(z=h,e.lockWriter=w.resolve(),x=()=>delete e.lockWriter),await bt(z),b||await t,R.writingData=!0,R=await(async(e,t,r,i,o,l)=>{const{localHeaderInfo:c,dataDescriptorInfo:u}=i,{localHeaderArray:h,headerArray:f,lastModDate:p,rawLastModDate:g,encrypted:_,compressed:m,version:y,compressionMethod:b,rawExtraFieldExtendedTimestamp:x,rawExtraFieldNTFS:k,rawExtraFieldAES:v}=c,{dataDescriptorArray:z}=u,{rawFilename:R,lastAccessDate:S,creationDate:T,password:D,level:E,zip64:A,zipCrypto:F,dataDescriptor:C,directory:W,versionMadeBy:I,rawComment:U,rawExtraField:H,useWebWorkers:M,onstart:L,onprogress:q,onend:B,signal:N,encryptionStrength:V,extendedTimestamp:P,msDosCompatible:O,internalFileAttribute:K,externalFileAttribute:Z,useCompressionStream:X}=l,Y={lock:r.lock,versionMadeBy:I,zip64:A,directory:!!W,filenameUTF8:!0,rawFilename:R,commentUTF8:!0,rawComment:U,rawExtraFieldExtendedTimestamp:x,rawExtraFieldNTFS:k,rawExtraFieldAES:v,rawExtraField:H,extendedTimestamp:P,msDosCompatible:O,internalFileAttribute:K,externalFileAttribute:Z};let j,G=0,J=0;const{writable:Q}=t;if(e){e.chunkSize=(e=>a.max(e.chunkSize,64))(o),await qt(Q,h);const t=()=>e.size,n=e.readable;n.size=t;const r={options:{codecType:Be,level:E,password:D,encryptionStrength:V,zipCrypto:_&&F,passwordVerification:_&&F&&g>>8&255,signed:!0,compressed:m,encrypted:_,useWebWorkers:M,useCompressionStream:X},config:o,streamOptions:{signal:N,size:t,onstart:L,onprogress:q,onend:B},codecConstructor:o.Deflate},s=Q.size;j=(await(async(e,t)=>{const{options:n,config:r}=t,s=!n.compressed&&!n.signed&&!n.encrypted,{useWebWorkers:a,useCompressionStream:i,codecType:o}=n,{workerScripts:l}=r;let c;if(t.webWorker=!s&&(a||void 0===a&&r.useWebWorkers),t.scripts=t.webWorker&&l?l[o]:[],n.useCompressionStream=void 0===i?r.useCompressionStream:i,Xe.length<r.maxWorkers){const n={indexWorker:je};je++,Xe.push(n),c=new Ke(n,e,t,d)}else{const n=Xe.find((e=>!e.busy));n?(Ge(n),c=new Ke(n,e,t,d)):c=await new w((n=>Ye.push({resolve:n,stream:e,workerOptions:t})))}return c.run();function d(e){if(Ye.length){const[{resolve:t,stream:n,workerOptions:r}]=Ye.splice(0,1);t(new Ke(e,n,r,d))}else if(e.worker){const{terminateWorkerTimeout:t}=r;Ge(e),Number.isFinite(t)&&t>=0&&(e.terminateTimeout=setTimeout((()=>{Xe=Xe.filter((t=>t!=e)),e.terminate()}),t))}else Xe=Xe.filter((t=>t!=e))}})({readable:n,writable:Q},r)).signature,G=e.size=n.size(),J=Q.size-s}else await qt(Q,h);const $=A?new d(28):new d;return e&&((e,t)=>{const{signature:n,rawExtraFieldZip64:r,compressedSize:a,uncompressedSize:i,localHeaderInfo:o,dataDescriptorInfo:l}=e,{headerView:c,encrypted:d}=o,{dataDescriptorView:u,dataDescriptorOffset:h}=l,{zip64:f,zipCrypto:p,dataDescriptor:w}=t;if(d&&!p||void 0===n||(Ot(c,10,n),w&&Ot(u,h,n)),f){const e=Xt(r);Pt(e,0,1),Pt(e,2,24),Ot(c,14,xt),Kt(e,12,s(a)),Ot(c,18,xt),Kt(e,4,s(i)),w&&(Kt(u,h+4,s(a)),Kt(u,h+12,s(i)))}else Ot(c,14,a),Ot(c,18,i),w&&(Ot(u,h+4,a),Ot(u,h+8,i))})({signature:j,rawExtraFieldZip64:$,compressedSize:J,uncompressedSize:G,localHeaderInfo:c,dataDescriptorInfo:u},l),C&&await qt(Q,z),n.assign(Y,{compressedSize:J,lastModDate:p,rawLastModDate:g,creationDate:T,lastAccessDate:S,encrypted:_,length:h.length+J+z.length,compressionMethod:b,version:y,headerArray:f,signature:j,rawExtraFieldZip64:$}),Y})(i,z,R,o,e.config,l),u.set(r,R),R.filename=r,b){await z.writable.getWriter().close();let n=await z.getData();await t,await async function t(){const{lockWriter:n}=e;if(n)return await n.then((()=>delete e.lockWriter)),t();e.lockWriter=new w((e=>x=e))}(),v=!0;const{writable:r}=h;if(!g){const e=await(e=>e.slice(0,26).arrayBuffer())(n),t=new f(e);R.encrypted&&!_||Ot(t,14,R.signature),R.zip64?(Ot(t,18,xt),Ot(t,22,xt)):(Ot(t,18,R.compressedSize),Ot(t,22,R.uncompressedSize)),await qt(r,new d(e)),n=n.slice(e.byteLength)}await n.stream().pipeTo(r,{preventClose:!0,signal:m}),v=!1}if(R.offset=e.offset,R.zip64)Kt(Xt(R.rawExtraFieldZip64),20,s(R.offset));else if(R.offset>=xt)throw new c(Ut);return e.offset+=R.length,R}catch(t){throw(b&&v||!b&&R.writingData)&&(e.hasCorruptedEntries=!0,t&&(t.corruptedEntry=!0),b?e.offset+=z.writable.size:e.offset=z.writable.size),u.delete(r),t}finally{k&&k(),x&&x()}})(e,r,o,{localHeaderInfo:K,dataDescriptorInfo:Z},l);return A&&(e.pendingEntriesSize-=A),n.assign(X,{name:r,comment:g,extraField:T}),new St(X)})(l,e,r,o),p.add(_),await _}catch(t){throw l.filenames.delete(e),t}finally{p.delete(_);const e=Lt.shift();e?e():Mt--}}async close(e=new d,n={}){const{pendingAddFileCalls:r,writer:i}=this,{writable:o}=i;for(;r.size;)await w.all(t.from(r));return await(async(e,n,r)=>{const{files:i}=e;let o=0,l=0,u=e.offset,h=i.size;for(const[,e]of i)l+=46+e.rawFilename.length+e.rawComment.length+e.rawExtraFieldZip64.length+e.rawExtraFieldAES.length+e.rawExtraFieldExtendedTimestamp.length+e.rawExtraFieldNTFS.length+e.rawExtraField.length;let f=r.zip64||e.options.zip64||!1;if(u>=xt||l>=xt||h>=kt){if(!1===r.zip64||!1===e.options.zip64)throw new c(Ut);f=!0}const p=new d(l+(f?98:22)),w=Xt(p);for(const[e,n]of t.from(i.values()).entries()){const{rawFilename:t,rawExtraFieldZip64:s,rawExtraFieldAES:l,rawExtraField:c,rawComment:u,versionMadeBy:h,headerArray:f,directory:g,zip64:_,msDosCompatible:m,internalFileAttribute:y,externalFileAttribute:b}=n;let x,k;if(n.extendedTimestamp){k=n.rawExtraFieldNTFS,x=new d(9);const e=Xt(x);Pt(e,0,21589),Pt(e,2,x.length-4),Vt(e,4,1),Ot(e,5,a.floor(n.lastModDate.getTime()/1e3))}else k=x=new d;const v=s.length+l.length+x.length+k.length+c.length;if(Ot(w,o,33639248),Pt(w,o+4,h),Zt(p,f,o+6),Pt(w,o+30,v),Pt(w,o+32,u.length),Pt(w,o+36,y),b?Ot(w,o+38,b):g&&m&&Vt(w,o+38,16),Ot(w,o+42,_?xt:n.offset),Zt(p,t,o+46),Zt(p,s,o+46+t.length),Zt(p,l,o+46+t.length+s.length),Zt(p,x,o+46+t.length+s.length+l.length),Zt(p,k,o+46+t.length+s.length+l.length+x.length),Zt(p,c,o+46+t.length+s.length+l.length+x.length+k.length),Zt(p,u,o+46+t.length+v),o+=46+t.length+v+u.length,r.onprogress)try{await r.onprogress(e+1,i.size,new St(n))}catch(e){}}if(f&&(Ot(w,o,101075792),Kt(w,o+4,s(44)),Pt(w,o+12,45),Pt(w,o+14,45),Kt(w,o+24,s(h)),Kt(w,o+32,s(h)),Kt(w,o+40,s(l)),Kt(w,o+48,s(u)),Ot(w,o+56,117853008),Kt(w,o+64,s(u)+s(l)),Ot(w,o+72,1),h=kt,u=xt,l=xt,o+=76),Ot(w,o,101010256),Pt(w,o+8,h),Pt(w,o+10,h),Ot(w,o+12,l),Ot(w,o+16,u),n&&n.length){if(n.length>kt)throw new c(Dt);Pt(w,o+20,n.length)}const{writable:g}=e.writer;await bt(e.writer),await qt(g,p),n&&n.length&&await qt(g,n)})(this,e,n),i.preventClose||n.preventClose||await o.getWriter().close(),i.getData?i.getData():o}},e.configure=C,e.getMimeType=()=>"application/octet-stream",e.initStream=bt,e.terminateWorkers=()=>{Xe.forEach((e=>{Ge(e),e.terminate()}))},n.defineProperty(e,"__esModule",{value:!0})}));
|