-
Notifications
You must be signed in to change notification settings - Fork 513
/
index.min.js
1 lines (1 loc) · 166 KB
/
index.min.js
1
const e=-2;function t(e){return n(e.map((([e,t])=>Array(e).fill(t,0,e))))}function n(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?n(t):t)),[])}const r=[0,1,2,3].concat(...t([[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,i=e.stat_desc.static_tree,s=e.stat_desc.elems;let a,o,c,l=-1;for(n.heap_len=0,n.heap_max=573,a=0;s>a;a++)0!==r[2*a]?(n.heap[++n.heap_len]=l=a,n.depth[a]=0):r[2*a+1]=0;for(;2>n.heap_len;)c=n.heap[++n.heap_len]=2>l?++l:0,r[2*c]=1,n.depth[c]=0,n.opt_len--,i&&(n.static_len-=i[2*c+1]);for(e.max_code=l,a=Math.floor(n.heap_len/2);a>=1;a--)n.pqdownheap(r,a);c=s;do{a=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(r,1),o=n.heap[1],n.heap[--n.heap_max]=a,n.heap[--n.heap_max]=o,r[2*c]=r[2*a]+r[2*o],n.depth[c]=Math.max(n.depth[a],n.depth[o])+1,r[2*a+1]=r[2*o+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,i=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,a=e.stat_desc.max_length;let o,c,l,d,f,u,p=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++)c=t.heap[o],d=n[2*n[2*c+1]+1]+1,d>a&&(d=a,p++),n[2*c+1]=d,c>e.max_code||(t.bl_count[d]++,f=0,s>c||(f=i[c-s]),u=n[2*c],t.opt_len+=u*(d+f),r&&(t.static_len+=u*(r[2*c+1]+f)));if(0!==p){do{for(d=a-1;0===t.bl_count[d];)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[a]--,p-=2}while(p>0);for(d=a;0!==d;d--)for(c=t.bl_count[d];0!==c;)l=t.heap[--o],l>e.max_code||(n[2*l+1]!=d&&(t.opt_len+=(d-n[2*l+1])*n[2*l],n[2*l+1]=d),c--)}})(n),((e,n,r)=>{const i=[];let s,a,o,c=0;for(s=1;15>=s;s++)i[s]=c=c+r[s-1]<<1;for(a=0;n>=a;a++)o=e[2*a+1],0!==o&&(e[2*a]=t(i[o]++,o))})(r,e.max_code,n.bl_count)}}function s(e,t,n,r,i){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=n,s.elems=r,s.max_length=i}i._length_code=[0,1,2,3,4,5,6,7].concat(...t([[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?r[e]:r[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 a=t([[144,8],[112,9],[24,7],[8,8]]);s.static_ltree=n([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,a[t]])));const o=t([[30,5]]);function c(e,t,n,r,i){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=n,s.max_chain=r,s.func=i}s.static_dtree=n([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,o[t]]))),s.static_l_desc=new s(s.static_ltree,i.extra_lbits,257,286,15),s.static_d_desc=new s(s.static_dtree,i.extra_dbits,0,30,15),s.static_bl_desc=new s(null,i.extra_blbits,0,19,7);const l=[new c(0,0,0,0,0),new c(4,4,8,4,1),new c(4,5,16,8,1),new c(4,6,32,32,1),new c(4,4,16,16,2),new c(8,16,32,32,2),new c(8,16,128,128,2),new c(8,32,128,256,2),new c(32,128,258,1024,2),new c(32,258,258,4096,2)],d=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],f=113,u=666,p=262;function m(e,t,n,r){const i=e[2*t],s=e[2*n];return s>i||i==s&&r[t]<=r[n]}function h(){const t=this;let n,r,a,o,c,h,w,g,x,b,v,y,_,k,z,S,A,j,C,D,U,E,F,T,R,O,q,W,I,M,P,B,L;const H=new i,N=new i,G=new i;let Z,V,K,X,J,Y;function Q(){let e;for(e=0;286>e;e++)P[2*e]=0;for(e=0;30>e;e++)B[2*e]=0;for(e=0;19>e;e++)L[2*e]=0;P[512]=1,t.opt_len=t.static_len=0,V=K=0}function $(e,t){let n,r=-1,i=e[1],s=0,a=7,o=4;0===i&&(a=138,o=3),e[2*(t+1)+1]=65535;for(let c=0;t>=c;c++)n=i,i=e[2*(c+1)+1],++s<a&&n==i||(o>s?L[2*n]+=s:0!==n?(n!=r&&L[2*n]++,L[32]++):s>10?L[36]++:L[34]++,s=0,r=n,0===i?(a=138,o=3):n==i?(a=6,o=3):(a=7,o=4))}function ee(e){t.pending_buf[t.pending++]=e}function te(e){ee(255&e),ee(e>>>8&255)}function ne(e,t){let n;const r=t;Y>16-r?(n=e,J|=n<<Y&65535,te(J),J=n>>>16-Y,Y+=r-16):(J|=e<<Y&65535,Y+=r)}function re(e,t){const n=2*e;ne(65535&t[n],65535&t[n+1])}function ie(e,t){let n,r,i=-1,s=e[1],a=0,o=7,c=4;for(0===s&&(o=138,c=3),n=0;t>=n;n++)if(r=s,s=e[2*(n+1)+1],++a>=o||r!=s){if(c>a)do{re(r,L)}while(0!=--a);else 0!==r?(r!=i&&(re(r,L),a--),re(16,L),ne(a-3,2)):a>10?(re(18,L),ne(a-11,7)):(re(17,L),ne(a-3,3));a=0,i=r,0===s?(o=138,c=3):r==s?(o=6,c=3):(o=7,c=4)}}function se(){16==Y?(te(J),J=0,Y=0):8>Y||(ee(255&J),J>>>=8,Y-=8)}function ae(e,n){let r,s,a;if(t.dist_buf[V]=e,t.lc_buf[V]=255&n,V++,0===e?P[2*n]++:(K++,e--,P[2*(i._length_code[n]+256+1)]++,B[2*i.d_code(e)]++),!(8191&V)&&q>2){for(r=8*V,s=U-A,a=0;30>a;a++)r+=B[2*a]*(5+i.extra_dbits[a]);if(r>>>=3,Math.floor(V/2)>K&&Math.floor(s/2)>r)return!0}return V==Z-1}function oe(e,n){let r,s,a,o,c=0;if(0!==V)do{r=t.dist_buf[c],s=t.lc_buf[c],c++,0===r?re(s,e):(a=i._length_code[s],re(a+256+1,e),o=i.extra_lbits[a],0!==o&&(s-=i.base_length[a],ne(s,o)),r--,a=i.d_code(r),re(a,n),o=i.extra_dbits[a],0!==o&&(r-=i.base_dist[a],ne(r,o)))}while(V>c);re(256,e),X=e[513]}function ce(){Y>8?te(J):Y>0&&ee(255&J),J=0,Y=0}function le(e,n,r){ne(0+(r?1:0),3),((e,n)=>{ce(),X=8,te(n),te(~n),t.pending_buf.set(g.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function de(e){((e,n,r)=>{let a,o,c=0;q>0?(H.build_tree(t),N.build_tree(t),c=(()=>{let e;for($(P,H.max_code),$(B,N.max_code),G.build_tree(t),e=18;e>=3&&0===L[2*i.bl_order[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(),a=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o>a||(a=o)):a=o=n+5,n+4>a||-1==e?o==a?(ne(2+(r?1:0),3),oe(s.static_ltree,s.static_dtree)):(ne(4+(r?1:0),3),((e,t,n)=>{let r;for(ne(e-257,5),ne(t-1,5),ne(n-4,4),r=0;n>r;r++)ne(L[2*i.bl_order[r]+1],3);ie(P,e-1),ie(B,t-1)})(H.max_code+1,N.max_code+1,c+1),oe(P,B)):le(e,n,r),Q(),r&&ce()})(0>A?-1:A,U-A,e),A=U,n.flush_pending()}function fe(){let e,t,r,i;do{if(i=x-F-U,0===i&&0===U&&0===F)i=c;else if(-1==i)i--;else if(U>=c+c-p){g.set(g.subarray(c,c+c),0),E-=c,U-=c,A-=c,e=_,r=e;do{t=65535&v[--r],v[r]=c>t?0:t-c}while(0!=--e);e=c,r=e;do{t=65535&b[--r],b[r]=c>t?0:t-c}while(0!=--e);i+=c}if(0===n.avail_in)return;e=n.read_buf(g,U+F,i),F+=e,3>F||(y=255&g[U],y=(y<<S^255&g[U+1])&z)}while(p>F&&0!==n.avail_in)}function ue(e){let t,n,r=R,i=U,s=T;const a=U>c-p?U-(c-p):0;let o=M;const l=w,d=U+258;let f=g[i+s-1],u=g[i+s];I>T||(r>>=2),o>F&&(o=F);do{if(t=e,g[t+s]==u&&g[t+s-1]==f&&g[t]==g[i]&&g[++t]==g[i+1]){i+=2,t++;do{}while(g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&d>i);if(n=258-(d-i),i=d-258,n>s){if(E=e,s=n,n>=o)break;f=g[i+s-1],u=g[i+s]}}}while((e=65535&b[e&l])>a&&0!=--r);return s>F?F:s}t.depth=[],t.bl_count=[],t.heap=[],P=[],B=[],L=[],t.pqdownheap=(e,n)=>{const r=t.heap,i=r[n];let s=n<<1;for(;s<=t.heap_len&&(s<t.heap_len&&m(e,r[s+1],r[s],t.depth)&&s++,!m(e,i,r[s],t.depth));)r[n]=r[s],n=s,s<<=1;r[n]=i},t.deflateInit=(n,i,d,u,p,m)=>(u||(u=8),p||(p=8),m||(m=0),n.msg=null,-1==i&&(i=6),1>p||p>9||8!=u||9>d||d>15||0>i||i>9||0>m||m>2?e:(n.dstate=t,h=d,c=1<<h,w=c-1,k=p+7,_=1<<k,z=_-1,S=Math.floor((k+3-1)/3),g=new Uint8Array(2*c),b=[],v=[],Z=1<<p+6,t.pending_buf=new Uint8Array(4*Z),a=4*Z,t.dist_buf=new Uint16Array(Z),t.lc_buf=new Uint8Array(Z),q=i,W=m,(e=>(e.total_in=e.total_out=0,e.msg=null,t.pending=0,t.pending_out=0,r=f,o=0,H.dyn_tree=P,H.stat_desc=s.static_l_desc,N.dyn_tree=B,N.stat_desc=s.static_d_desc,G.dyn_tree=L,G.stat_desc=s.static_bl_desc,J=0,Y=0,X=8,Q(),(()=>{x=2*c,v[_-1]=0;for(let e=0;_-1>e;e++)v[e]=0;O=l[q].max_lazy,I=l[q].good_length,M=l[q].nice_length,R=l[q].max_chain,U=0,A=0,F=0,j=T=2,D=0,y=0})(),0))(n))),t.deflateEnd=()=>42!=r&&r!=f&&r!=u?e:(t.lc_buf=null,t.dist_buf=null,t.pending_buf=null,v=null,b=null,g=null,t.dstate=null,r==f?-3:0),t.deflateParams=(t,n,r)=>{let i=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(l[q].func!=l[n].func&&0!==t.total_in&&(i=t.deflate(1)),q!=n&&(q=n,O=l[q].max_lazy,I=l[q].good_length,M=l[q].nice_length,R=l[q].max_chain),W=r,i)},t.deflateSetDictionary=(t,n,i)=>{let s,a=i,o=0;if(!n||42!=r)return e;if(3>a)return 0;for(a>c-p&&(a=c-p,o=i-a),g.set(n.subarray(o,o+a),0),U=a,A=a,y=255&g[0],y=(y<<S^255&g[1])&z,s=0;a-3>=s;s++)y=(y<<S^255&g[s+2])&z,b[s&w]=v[y],v[y]=s;return 0},t.deflate=(i,m)=>{let x,k,R,I,M;if(m>4||0>m)return e;if(!i.next_out||!i.next_in&&0!==i.avail_in||r==u&&4!=m)return i.msg=d[4],e;if(0===i.avail_out)return i.msg=d[7],-5;var P;if(n=i,I=o,o=m,42==r&&(k=8+(h-8<<4)<<8,R=(q-1&255)>>1,R>3&&(R=3),k|=R<<6,0!==U&&(k|=32),k+=31-k%31,r=f,ee((P=k)>>8&255),ee(255&P)),0!==t.pending){if(n.flush_pending(),0===n.avail_out)return o=-1,0}else if(0===n.avail_in&&I>=m&&4!=m)return n.msg=d[7],-5;if(r==u&&0!==n.avail_in)return i.msg=d[7],-5;if(0!==n.avail_in||0!==F||0!=m&&r!=u){switch(M=-1,l[q].func){case 0:M=(e=>{let t,r=65535;for(r>a-5&&(r=a-5);;){if(1>=F){if(fe(),0===F&&0==e)return 0;if(0===F)break}if(U+=F,F=0,t=A+r,(0===U||U>=t)&&(F=U-t,U=t,de(!1),0===n.avail_out))return 0;if(U-A>=c-p&&(de(!1),0===n.avail_out))return 0}return de(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(m);break;case 1:M=(e=>{let t,r=0;for(;;){if(p>F){if(fe(),p>F&&0==e)return 0;if(0===F)break}if(3>F||(y=(y<<S^255&g[U+2])&z,r=65535&v[y],b[U&w]=v[y],v[y]=U),0===r||(U-r&65535)>c-p||2!=W&&(j=ue(r)),3>j)t=ae(0,255&g[U]),F--,U++;else if(t=ae(U-E,j-3),F-=j,j>O||3>F)U+=j,j=0,y=255&g[U],y=(y<<S^255&g[U+1])&z;else{j--;do{U++,y=(y<<S^255&g[U+2])&z,r=65535&v[y],b[U&w]=v[y],v[y]=U}while(0!=--j);U++}if(t&&(de(!1),0===n.avail_out))return 0}return de(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(m);break;case 2:M=(e=>{let t,r,i=0;for(;;){if(p>F){if(fe(),p>F&&0==e)return 0;if(0===F)break}if(3>F||(y=(y<<S^255&g[U+2])&z,i=65535&v[y],b[U&w]=v[y],v[y]=U),T=j,C=E,j=2,0!==i&&O>T&&c-p>=(U-i&65535)&&(2!=W&&(j=ue(i)),5>=j&&(1==W||3==j&&U-E>4096)&&(j=2)),3>T||j>T)if(0!==D){if(t=ae(0,255&g[U-1]),t&&de(!1),U++,F--,0===n.avail_out)return 0}else D=1,U++,F--;else{r=U+F-3,t=ae(U-1-C,T-3),F-=T-1,T-=2;do{++U>r||(y=(y<<S^255&g[U+2])&z,i=65535&v[y],b[U&w]=v[y],v[y]=U)}while(0!=--T);if(D=0,j=2,U++,t&&(de(!1),0===n.avail_out))return 0}}return 0!==D&&(t=ae(0,255&g[U-1]),D=0),de(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(m)}if(2!=M&&3!=M||(r=u),0==M||2==M)return 0===n.avail_out&&(o=-1),0;if(1==M){if(1==m)ne(2,3),re(256,s.static_ltree),se(),9>1+X+10-Y&&(ne(2,3),re(256,s.static_ltree),se()),X=7;else if(le(0,0,!1),3==m)for(x=0;_>x;x++)v[x]=0;if(n.flush_pending(),0===n.avail_out)return o=-1,0}}return 4!=m?0:1}}function w(){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}w.prototype={deflateInit(e,t){const n=this;return n.dstate=new h,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 i=r.avail_in;return i>n&&(i=n),0===i?0:(r.avail_in-=i,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+i),t),r.next_in_index+=i,r.total_in+=i,i)},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))}};const g=-2,x=-3,b=-5,v=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],y=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],_=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],k=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],S=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function j(){let e,t,n,r,i,s;function a(e,t,a,o,c,l,d,f,u,p,m){let h,w,g,v,y,_,k,z,S,A,j,C,D,U,E;A=0,y=a;do{n[e[t+A]]++,A++,y--}while(0!==y);if(n[0]==a)return d[0]=-1,f[0]=0,0;for(z=f[0],_=1;15>=_&&0===n[_];_++);for(k=_,_>z&&(z=_),y=15;0!==y&&0===n[y];y--);for(g=y,z>y&&(z=y),f[0]=z,U=1<<_;y>_;_++,U<<=1)if(0>(U-=n[_]))return x;if(0>(U-=n[y]))return x;for(n[y]+=U,s[1]=_=0,A=1,D=2;0!=--y;)s[D]=_+=n[A],D++,A++;y=0,A=0;do{0!==(_=e[t+A])&&(m[s[_]++]=y),A++}while(++y<a);for(a=s[g],s[0]=y=0,A=0,v=-1,C=-z,i[0]=0,j=0,E=0;g>=k;k++)for(h=n[k];0!=h--;){for(;k>C+z;){if(v++,C+=z,E=g-C,E=E>z?z:E,(w=1<<(_=k-C))>h+1&&(w-=h+1,D=k,E>_))for(;++_<E&&(w<<=1)>n[++D];)w-=n[D];if(E=1<<_,p[0]+E>1440)return x;i[v]=j=p[0],p[0]+=E,0!==v?(s[v]=y,r[0]=_,r[1]=z,_=y>>>C-z,r[2]=j-i[v-1]-_,u.set(r,3*(i[v-1]+_))):d[0]=j}for(r[1]=k-C,a>A?m[A]<o?(r[0]=256>m[A]?0:96,r[2]=m[A++]):(r[0]=l[m[A]-o]+16+64,r[2]=c[m[A++]-o]):r[0]=192,w=1<<k-C,_=y>>>C;E>_;_+=w)u.set(r,3*(j+_));for(_=1<<k-1;y&_;_>>>=1)y^=_;for(y^=_,S=(1<<C)-1;(y&S)!=s[v];)v--,C-=z,S=(1<<C)-1}return 0!==U&&1!=g?b:0}function o(a){let o;for(e||(e=[],t=[],n=new Int32Array(16),r=[],i=new Int32Array(15),s=new Int32Array(16)),t.length<a&&(t=[]),o=0;a>o;o++)t[o]=0;for(o=0;16>o;o++)n[o]=0;for(o=0;3>o;o++)r[o]=0;i.set(n.subarray(0,15),0),s.set(n.subarray(0,16),0)}this.inflate_trees_bits=(n,r,i,s,c)=>{let l;return o(19),e[0]=0,l=a(n,0,19,19,null,null,i,r,s,e,t),l==x?c.msg="oversubscribed dynamic bit lengths tree":l!=b&&0!==r[0]||(c.msg="incomplete dynamic bit lengths tree",l=x),l},this.inflate_trees_dynamic=(n,r,i,s,c,l,d,f,u)=>{let p;return o(288),e[0]=0,p=a(i,0,n,257,k,z,l,s,f,e,t),0!=p||0===s[0]?(p==x?u.msg="oversubscribed literal/length tree":-4!=p&&(u.msg="incomplete literal/length tree",p=x),p):(o(288),p=a(i,n,r,0,S,A,d,c,f,e,t),0!=p||0===c[0]&&n>257?(p==x?u.msg="oversubscribed distance tree":p==b?(u.msg="incomplete distance tree",p=x):-4!=p&&(u.msg="empty distance tree with lengths",p=x),p):0)}}function C(){const e=this;let t,n,r,i,s=0,a=0,o=0,c=0,l=0,d=0,f=0,u=0,p=0,m=0;function h(e,t,n,r,i,s,a,o){let c,l,d,f,u,p,m,h,w,g,b,y,_,k,z,S;m=o.next_in_index,h=o.avail_in,u=a.bitb,p=a.bitk,w=a.write,g=w<a.read?a.read-w-1:a.end-w,b=v[e],y=v[t];do{for(;20>p;)h--,u|=(255&o.read_byte(m++))<<p,p+=8;if(c=u&b,l=n,d=r,S=3*(d+c),0!==(f=l[S]))for(;;){if(u>>=l[S+1],p-=l[S+1],16&f){for(f&=15,_=l[S+2]+(u&v[f]),u>>=f,p-=f;15>p;)h--,u|=(255&o.read_byte(m++))<<p,p+=8;for(c=u&y,l=i,d=s,S=3*(d+c),f=l[S];;){if(u>>=l[S+1],p-=l[S+1],16&f){for(f&=15;f>p;)h--,u|=(255&o.read_byte(m++))<<p,p+=8;if(k=l[S+2]+(u&v[f]),u>>=f,p-=f,g-=_,k>w){z=w-k;do{z+=a.end}while(0>z);if(f=a.end-z,_>f){if(_-=f,w-z>0&&f>w-z)do{a.win[w++]=a.win[z++]}while(0!=--f);else a.win.set(a.win.subarray(z,z+f),w),w+=f,z+=f,f=0;z=0}}else z=w-k,w-z>0&&2>w-z?(a.win[w++]=a.win[z++],a.win[w++]=a.win[z++],_-=2):(a.win.set(a.win.subarray(z,z+2),w),w+=2,z+=2,_-=2);if(w-z>0&&_>w-z)do{a.win[w++]=a.win[z++]}while(0!=--_);else a.win.set(a.win.subarray(z,z+_),w),w+=_,z+=_,_=0;break}if(64&f)return o.msg="invalid distance code",_=o.avail_in-h,_=_>p>>3?p>>3:_,h+=_,m-=_,p-=_<<3,a.bitb=u,a.bitk=p,o.avail_in=h,o.total_in+=m-o.next_in_index,o.next_in_index=m,a.write=w,x;c+=l[S+2],c+=u&v[f],S=3*(d+c),f=l[S]}break}if(64&f)return 32&f?(_=o.avail_in-h,_=_>p>>3?p>>3:_,h+=_,m-=_,p-=_<<3,a.bitb=u,a.bitk=p,o.avail_in=h,o.total_in+=m-o.next_in_index,o.next_in_index=m,a.write=w,1):(o.msg="invalid literal/length code",_=o.avail_in-h,_=_>p>>3?p>>3:_,h+=_,m-=_,p-=_<<3,a.bitb=u,a.bitk=p,o.avail_in=h,o.total_in+=m-o.next_in_index,o.next_in_index=m,a.write=w,x);if(c+=l[S+2],c+=u&v[f],S=3*(d+c),0===(f=l[S])){u>>=l[S+1],p-=l[S+1],a.win[w++]=l[S+2],g--;break}}else u>>=l[S+1],p-=l[S+1],a.win[w++]=l[S+2],g--}while(g>=258&&h>=10);return _=o.avail_in-h,_=_>p>>3?p>>3:_,h+=_,m-=_,p-=_<<3,a.bitb=u,a.bitk=p,o.avail_in=h,o.total_in+=m-o.next_in_index,o.next_in_index=m,a.write=w,0}e.init=(e,s,a,o,c,l)=>{t=0,f=e,u=s,r=a,p=o,i=c,m=l,n=null},e.proc=(e,w,b)=>{let y,_,k,z,S,A,j,C=0,D=0,U=0;for(U=w.next_in_index,z=w.avail_in,C=e.bitb,D=e.bitk,S=e.write,A=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(A>=258&&z>=10&&(e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,b=h(f,u,r,p,i,m,e,w),U=w.next_in_index,z=w.avail_in,C=e.bitb,D=e.bitk,S=e.write,A=S<e.read?e.read-S-1:e.end-S,0!=b)){t=1==b?7:9;break}o=f,n=r,a=p,t=1;case 1:for(y=o;y>D;){if(0===z)return e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);b=0,z--,C|=(255&w.read_byte(U++))<<D,D+=8}if(_=3*(a+(C&v[y])),C>>>=n[_+1],D-=n[_+1],k=n[_],0===k){c=n[_+2],t=6;break}if(16&k){l=15&k,s=n[_+2],t=2;break}if(!(64&k)){o=k,a=_/3+n[_+2];break}if(32&k){t=7;break}return t=9,w.msg="invalid literal/length code",b=x,e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);case 2:for(y=l;y>D;){if(0===z)return e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);b=0,z--,C|=(255&w.read_byte(U++))<<D,D+=8}s+=C&v[y],C>>=y,D-=y,o=u,n=i,a=m,t=3;case 3:for(y=o;y>D;){if(0===z)return e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);b=0,z--,C|=(255&w.read_byte(U++))<<D,D+=8}if(_=3*(a+(C&v[y])),C>>=n[_+1],D-=n[_+1],k=n[_],16&k){l=15&k,d=n[_+2],t=4;break}if(!(64&k)){o=k,a=_/3+n[_+2];break}return t=9,w.msg="invalid distance code",b=x,e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);case 4:for(y=l;y>D;){if(0===z)return e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);b=0,z--,C|=(255&w.read_byte(U++))<<D,D+=8}d+=C&v[y],C>>=y,D-=y,t=5;case 5:for(j=S-d;0>j;)j+=e.end;for(;0!==s;){if(0===A&&(S==e.end&&0!==e.read&&(S=0,A=S<e.read?e.read-S-1:e.end-S),0===A&&(e.write=S,b=e.inflate_flush(w,b),S=e.write,A=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,A=S<e.read?e.read-S-1:e.end-S),0===A)))return e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);e.win[S++]=e.win[j++],A--,j==e.end&&(j=0),s--}t=0;break;case 6:if(0===A&&(S==e.end&&0!==e.read&&(S=0,A=S<e.read?e.read-S-1:e.end-S),0===A&&(e.write=S,b=e.inflate_flush(w,b),S=e.write,A=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,A=S<e.read?e.read-S-1:e.end-S),0===A)))return e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);b=0,e.win[S++]=c,A--,t=0;break;case 7:if(D>7&&(D-=8,z++,U--),e.write=S,b=e.inflate_flush(w,b),S=e.write,A=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);t=8;case 8:return b=1,e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);case 9:return b=x,e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b);default:return b=g,e.bitb=C,e.bitk=D,w.avail_in=z,w.total_in+=U-w.next_in_index,w.next_in_index=U,e.write=S,e.inflate_flush(w,b)}},e.free=()=>{}}j.inflate_trees_fixed=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=y,r[0]=_,0);const D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function U(e,t){const n=this;let r,i=0,s=0,a=0,o=0;const c=[0],l=[0],d=new C;let f=0,u=new Int32Array(4320);const p=new j;n.bitk=0,n.bitb=0,n.win=new Uint8Array(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==i&&d.free(e),i=0,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=(e,t)=>{let r,i,s;return i=e.next_out_index,s=n.read,r=(s>n.write?n.end:n.write)-s,r>e.avail_out&&(r=e.avail_out),0!==r&&t==b&&(t=0),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(s,s+r),i),i+=r,s+=r,s==n.end&&(s=0,n.write==n.end&&(n.write=0),r=n.write-s,r>e.avail_out&&(r=e.avail_out),0!==r&&t==b&&(t=0),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(s,s+r),i),i+=r,s+=r),e.next_out_index=i,n.read=s,t},n.proc=(e,t)=>{let m,h,w,b,y,_,k,z;for(b=e.next_in_index,y=e.avail_in,h=n.bitb,w=n.bitk,_=n.write,k=_<n.read?n.read-_-1:n.end-_;;){let S,A,C,U,E,F,T,R;switch(i){case 0:for(;3>w;){if(0===y)return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);t=0,y--,h|=(255&e.read_byte(b++))<<w,w+=8}switch(m=7&h,f=1&m,m>>>1){case 0:h>>>=3,w-=3,m=7&w,h>>>=m,w-=m,i=1;break;case 1:S=[],A=[],C=[[]],U=[[]],j.inflate_trees_fixed(S,A,C,U),d.init(S[0],A[0],C[0],0,U[0],0),h>>>=3,w-=3,i=6;break;case 2:h>>>=3,w-=3,i=3;break;case 3:return h>>>=3,w-=3,i=9,e.msg="invalid block type",t=x,n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t)}break;case 1:for(;32>w;){if(0===y)return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);t=0,y--,h|=(255&e.read_byte(b++))<<w,w+=8}if((~h>>>16&65535)!=(65535&h))return i=9,e.msg="invalid stored block lengths",t=x,n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);s=65535&h,h=w=0,i=0!==s?2:0!==f?7:0;break;case 2:if(0===y)return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);if(0===k&&(_==n.end&&0!==n.read&&(_=0,k=_<n.read?n.read-_-1:n.end-_),0===k&&(n.write=_,t=n.inflate_flush(e,t),_=n.write,k=_<n.read?n.read-_-1:n.end-_,_==n.end&&0!==n.read&&(_=0,k=_<n.read?n.read-_-1:n.end-_),0===k)))return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);if(t=0,m=s,m>y&&(m=y),m>k&&(m=k),n.win.set(e.read_buf(b,m),_),b+=m,y-=m,_+=m,k-=m,0!=(s-=m))break;i=0!==f?7:0;break;case 3:for(;14>w;){if(0===y)return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);t=0,y--,h|=(255&e.read_byte(b++))<<w,w+=8}if(a=m=16383&h,(31&m)>29||(m>>5&31)>29)return i=9,e.msg="too many length or distance symbols",t=x,n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);if(m=258+(31&m)+(m>>5&31),!r||r.length<m)r=[];else for(z=0;m>z;z++)r[z]=0;h>>>=14,w-=14,o=0,i=4;case 4:for(;4+(a>>>10)>o;){for(;3>w;){if(0===y)return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);t=0,y--,h|=(255&e.read_byte(b++))<<w,w+=8}r[D[o++]]=7&h,h>>>=3,w-=3}for(;19>o;)r[D[o++]]=0;if(c[0]=7,m=p.inflate_trees_bits(r,c,l,u,e),0!=m)return(t=m)==x&&(r=null,i=9),n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);o=0,i=5;case 5:for(;m=a,258+(31&m)+(m>>5&31)>o;){let s,d;for(m=c[0];m>w;){if(0===y)return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);t=0,y--,h|=(255&e.read_byte(b++))<<w,w+=8}if(m=u[3*(l[0]+(h&v[m]))+1],d=u[3*(l[0]+(h&v[m]))+2],16>d)h>>>=m,w-=m,r[o++]=d;else{for(z=18==d?7:d-14,s=18==d?11:3;m+z>w;){if(0===y)return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);t=0,y--,h|=(255&e.read_byte(b++))<<w,w+=8}if(h>>>=m,w-=m,s+=h&v[z],h>>>=z,w-=z,z=o,m=a,z+s>258+(31&m)+(m>>5&31)||16==d&&1>z)return r=null,i=9,e.msg="invalid bit length repeat",t=x,n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);d=16==d?r[z-1]:0;do{r[z++]=d}while(0!=--s);o=z}}if(l[0]=-1,E=[],F=[],T=[],R=[],E[0]=9,F[0]=6,m=a,m=p.inflate_trees_dynamic(257+(31&m),1+(m>>5&31),r,E,F,T,R,u,e),0!=m)return m==x&&(r=null,i=9),t=m,n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);d.init(E[0],F[0],u,T[0],u,R[0]),i=6;case 6:if(n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,1!=(t=d.proc(n,e,t)))return n.inflate_flush(e,t);if(t=0,d.free(e),b=e.next_in_index,y=e.avail_in,h=n.bitb,w=n.bitk,_=n.write,k=_<n.read?n.read-_-1:n.end-_,0===f){i=0;break}i=7;case 7:if(n.write=_,t=n.inflate_flush(e,t),_=n.write,k=_<n.read?n.read-_-1:n.end-_,n.read!=n.write)return n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);i=8;case 8:return t=1,n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);case 9:return t=x,n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t);default:return t=g,n.bitb=h,n.bitk=w,e.avail_in=y,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=_,n.inflate_flush(e,t)}}},n.free=e=>{n.reset(e,null),n.win=null,u=null},n.set_dictionary=(e,t,r)=>{n.win.set(e.subarray(t,t+r),0),n.read=n.write=r},n.sync_point=()=>1==i?1:0}const E=13,F=[0,0,255,255];function T(){const e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):g}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=t=>(e.blocks&&e.blocks.free(t),e.blocks=null,0),e.inflateInit=(n,r)=>(n.msg=null,e.blocks=null,8>r||r>15?(e.inflateEnd(n),g):(e.wbits=r,n.istate.blocks=new U(n,1<<r),t(n),0)),e.inflate=(e,t)=>{let n,r;if(!e||!e.istate||!e.next_in)return g;const i=e.istate;for(t=4==t?b:0,n=b;;)switch(i.mode){case 0:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,8!=(15&(i.method=e.read_byte(e.next_in_index++)))){i.mode=E,e.msg="unknown compression method",i.marker=5;break}if(8+(i.method>>4)>i.wbits){i.mode=E,e.msg="invalid win size",i.marker=5;break}i.mode=1;case 1:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,r=255&e.read_byte(e.next_in_index++),((i.method<<8)+r)%31!=0){i.mode=E,e.msg="incorrect header check",i.marker=5;break}if(!(32&r)){i.mode=7;break}i.mode=2;case 2:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,i.mode=3;case 3:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,i.mode=4;case 4:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,i.mode=5;case 5:return 0===e.avail_in?n:(n=t,e.avail_in--,e.total_in++,i.need+=255&e.read_byte(e.next_in_index++),i.mode=6,2);case 6:return i.mode=E,e.msg="need dictionary",i.marker=0,g;case 7:if(n=i.blocks.proc(e,n),n==x){i.mode=E,i.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,i.blocks.reset(e,i.was),i.mode=12;case 12:return e.avail_in=0,1;case E:return x;default:return g}},e.inflateSetDictionary=(e,t,n)=>{let r=0,i=n;if(!e||!e.istate||6!=e.istate.mode)return g;const s=e.istate;return i<1<<s.wbits||(i=(1<<s.wbits)-1,r=n-i),s.blocks.set_dictionary(t,r,i),s.mode=7,0},e.inflateSync=e=>{let n,r,i,s,a;if(!e||!e.istate)return g;const o=e.istate;if(o.mode!=E&&(o.mode=E,o.marker=0),0===(n=e.avail_in))return b;for(r=e.next_in_index,i=o.marker;0!==n&&4>i;)e.read_byte(r)==F[i]?i++:i=0!==e.read_byte(r)?0:4-i,r++,n--;return e.total_in+=r-e.next_in_index,e.next_in_index=r,e.avail_in=n,o.marker=i,4!=i?x:(s=e.total_in,a=e.total_out,t(e),e.total_in=s,e.total_out=a,o.mode=7,0)},e.inflateSyncPoint=e=>e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():g}function R(){}R.prototype={inflateInit(e){const t=this;return t.istate=new T,e||(e=15),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):g},inflateEnd(){const e=this;if(!e.istate)return g;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):g},inflateSetDictionary(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):g},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};const O=4294967295,q=65535,W=67324752,I=134695760,M=I,P=33639248,B=101010256,L=101075792,H=117853008,N=22,G=21589,Z=2048,V="/",K=new Date(2107,11,31),X=new Date(1980,0,1),J=void 0,Y="undefined",Q="function";class ${constructor(e){return class extends TransformStream{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}let ee=2;try{typeof navigator!=Y&&navigator.hardwareConcurrency&&(ee=navigator.hardwareConcurrency)}catch(e){}const te={chunkSize:524288,maxWorkers:ee,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:J,CompressionStreamNative:typeof CompressionStream!=Y&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=Y&&DecompressionStream},ne=Object.assign({},te);function re(){return ne}function ie(e){return Math.max(e.chunkSize,64)}function se(e){const{baseURL:t,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:i,useCompressionStream:s,useWebWorkers:a,Deflate:o,Inflate:c,CompressionStream:l,DecompressionStream:d,workerScripts:f}=e;if(ae("baseURL",t),ae("chunkSize",n),ae("maxWorkers",r),ae("terminateWorkerTimeout",i),ae("useCompressionStream",s),ae("useWebWorkers",a),o&&(ne.CompressionStream=new $(o)),c&&(ne.DecompressionStream=new $(c)),ae("CompressionStream",l),ae("DecompressionStream",d),f!==J){const{deflate:e,inflate:t}=f;if((e||t)&&(ne.workerScripts||(ne.workerScripts={})),e){if(!Array.isArray(e))throw Error("workerScripts.deflate must be an array");ne.workerScripts.deflate=e}if(t){if(!Array.isArray(t))throw Error("workerScripts.inflate must be an array");ne.workerScripts.inflate=t}}}function ae(e,t){t!==J&&(ne[e]=t)}const oe={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}},ce=(()=>{const e={};for(const t of Object.keys(oe))for(const n of Object.keys(oe[t])){const r=oe[t][n];if("string"==typeof r)e[r]=t+"/"+n;else for(let i=0;i<r.length;i++)e[r[i]]=t+"/"+n}return e})();function le(e){return e&&ce[e.split(".").pop().toLowerCase()]||"application/octet-stream"}const de=[];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;de[e]=t}class fe{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^de[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class ue extends TransformStream{constructor(){let e;const t=new fe;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}function pe(e){if(typeof TextEncoder==Y){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new TextEncoder).encode(e)}const me={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=me.getPartial(n);return 32===r?e.concat(t):me._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)+me.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=me.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=>Math.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 i=0;i<e.length;i++)r.push(n|e[i]>>>t),n=e[i]<<32-t;const i=e.length?e[e.length-1]:0,s=me.getPartial(i);return r.push(me.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},he={bytes:{fromBits(e){const t=me.bitLength(e)/8,n=new Uint8Array(t);let r;for(let i=0;t>i;i++)3&i||(r=e[i/4]),n[i]=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&~n||(t.push(r),r=0);return 3&n&&t.push(me.partial(8*(3&n),r)),t}}},we=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;"string"==typeof e&&(e=he.utf8String.toBits(e));const n=t._buffer=me.concat(t._buffer,e),r=t._length,i=t._length=r+me.bitLength(e);if(i>9007199254740991)throw Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(n);let a=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t._block(s.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=me.concat(t,[me.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){return 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){return t<<e|t>>>32-e}_block(e){const t=this,n=t._h,r=Array(80);for(let t=0;16>t;t++)r[t]=e[t];let i=n[0],s=n[1],a=n[2],o=n[3],c=n[4];for(let e=0;79>=e;e++){16>e||(r[e]=t._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const n=t._S(5,i)+t._f(e,s,a,o)+c+r[e]+t._key[Math.floor(e/20)]|0;c=o,o=a,a=t._S(30,s),s=i,i=n}n[0]=n[0]+i|0,n[1]=n[1]+s|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0}},ge={getRandomValues(e){const t=new Uint32Array(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)*(Math.random()>.5?1:-1))};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||Math.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},xe={importKey:e=>new xe.hmacSha1(he.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw Error("invalid params to pbkdf2");const i=1+(r>>5)<<2;let s,a,o,c,l;const d=new ArrayBuffer(i),f=new DataView(d);let u=0;const p=me;for(t=he.bytes.toBits(t),l=1;(i||1)>u;l++){for(s=a=e.encrypt(p.concat(t,[l])),o=1;n>o;o++)for(a=e.encrypt(a),c=0;c<a.length;c++)s[c]^=a[c];for(o=0;(i||1)>u&&o<s.length;o++)f.setInt32(u,s[o]),u+=4}return d.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=we,r=[[],[]];t._baseHash=[new n,new n];const i=t._baseHash[0].blockSize/32;e.length>i&&(e=(new n).update(e).finalize());for(let t=0;i>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 Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},be=typeof crypto!=Y&&typeof crypto.getRandomValues==Q,ve="Invalid password",ye="Invalid signature",_e="zipjs-abort-check-password";function ke(e){return be?crypto.getRandomValues(e):ge.getRandomValues(e)}const ze=16,Se={name:"PBKDF2"},Ae=Object.assign({hash:{name:"HMAC"}},Se),je=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Se),Ce=["deriveBits"],De=[8,12,16],Ue=[16,24,32],Ee=10,Fe=[0,0,0,0],Te=typeof crypto!=Y,Re=Te&&crypto.subtle,Oe=Te&&typeof Re!=Y,qe=he.bytes,We=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],i=e.length;let s,a,o,c=1;if(4!==i&&6!==i&&8!==i)throw Error("invalid aes key size");for(t._key=[a=e.slice(0),o=[]],s=i;4*i+28>s;s++){let e=a[s-1];(s%i==0||8===i&&s%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],s%i==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),a[s]=a[s-i]^e}for(let e=0;s;e++,s--){const t=a[3&e?s:s-4];o[e]=4>=s||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],i=[],s=[];let a,o,c,l;for(let e=0;256>e;e++)s[(i[e]=e<<1^283*(e>>7))^e]=e;for(let d=a=0;!n[d];d^=o||1,a=s[a]||1){let s=a^a<<1^a<<2^a<<3^a<<4;s=s>>8^255&s^99,n[d]=s,r[s]=d,l=i[c=i[o=i[d]]];let f=16843009*l^65537*c^257*o^16843008*d,u=257*i[s]^16843008*s;for(let n=0;4>n;n++)e[n][d]=u=u<<24^u>>>8,t[n][s]=f=f<<24^f>>>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 Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,i=[0,0,0,0],s=this._tables[t],a=s[0],o=s[1],c=s[2],l=s[3],d=s[4];let f,u,p,m=e[0]^n[0],h=e[t?3:1]^n[1],w=e[2]^n[2],g=e[t?1:3]^n[3],x=4;for(let e=0;r>e;e++)f=a[m>>>24]^o[h>>16&255]^c[w>>8&255]^l[255&g]^n[x],u=a[h>>>24]^o[w>>16&255]^c[g>>8&255]^l[255&m]^n[x+1],p=a[w>>>24]^o[g>>16&255]^c[m>>8&255]^l[255&h]^n[x+2],g=a[g>>>24]^o[m>>16&255]^c[h>>8&255]^l[255&w]^n[x+3],x+=4,m=f,h=u,w=p;for(let e=0;4>e;e++)i[t?3&-e:e]=d[m>>>24]<<24^d[h>>16&255]<<16^d[w>>8&255]<<8^d[255&g]^n[x++],f=m,m=h,h=w,w=g,g=f;return i}},Ie=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))e+=1<<24;else{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}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 i=me.bitLength(t);for(let i=0;r>i;i+=4){this.incCounter(n);const r=e.encrypt(n);t[i]^=r[0],t[i+1]^=r[1],t[i+2]^=r[2],t[i+3]^=r[3]}return me.clamp(t,i)}},Me=xe.hmacSha1;let Pe=Te&&Oe&&typeof Re.importKey==Q,Be=Te&&Oe&&typeof Re.deriveBits==Q;class Le extends TransformStream{constructor({password:e,rawPassword:t,signed:n,encryptionStrength:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{ready:new Promise((e=>this.resolveReady=e)),password:Ze(e,t),signed:n,strength:r-1,pending:new Uint8Array})},async transform(e,t){const n=this,{password:r,strength:s,resolveReady:a,ready:o}=n;r?(await(async(e,t,n,r)=>{const i=await Ge(e,t,n,Ke(r,0,De[t])),s=Ke(r,De[t]);if(i[0]!=s[0]||i[1]!=s[1])throw Error(ve)})(n,s,r,Ke(e,0,De[s]+2)),e=Ke(e,De[s]+2),i?t.error(Error(_e)):a()):await o;const c=new Uint8Array(e.length-Ee-(e.length-Ee)%ze);t.enqueue(Ne(n,e,c,0,Ee,!0))},async flush(e){const{signed:t,ctr:n,hmac:r,pending:i,ready:s}=this;if(r&&n){await s;const a=Ke(i,0,i.length-Ee),o=Ke(i,i.length-Ee);let c=new Uint8Array;if(a.length){const e=Je(qe,a);r.update(e);const t=n.update(e);c=Xe(qe,t)}if(t){const e=Ke(Xe(qe,r.digest()),0,Ee);for(let t=0;Ee>t;t++)if(e[t]!=o[t])throw Error(ye)}e.enqueue(c)}}})}}class He extends TransformStream{constructor({password:e,rawPassword:t,encryptionStrength:n}){let r;super({start(){Object.assign(this,{ready:new Promise((e=>this.resolveReady=e)),password:Ze(e,t),strength:n-1,pending:new Uint8Array})},async transform(e,t){const n=this,{password:r,strength:i,resolveReady:s,ready:a}=n;let o=new Uint8Array;r?(o=await(async(e,t,n)=>{const r=ke(new Uint8Array(De[t]));return Ve(r,await Ge(e,t,n,r))})(n,i,r),s()):await a;const c=new Uint8Array(o.length+e.length-e.length%ze);c.set(o,0),t.enqueue(Ne(n,e,c,o.length,0))},async flush(e){const{ctr:t,hmac:n,pending:i,ready:s}=this;if(n&&t){await s;let a=new Uint8Array;if(i.length){const e=t.update(Je(qe,i));n.update(e),a=Xe(qe,e)}r.signature=Xe(qe,n.digest()).slice(0,Ee),e.enqueue(Ve(a,r.signature))}}}),r=this}}function Ne(e,t,n,r,i,s){const{ctr:a,hmac:o,pending:c}=e,l=t.length-i;let d;for(c.length&&(t=Ve(c,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new Uint8Array(t)).set(n,0)}return e})(n,l-l%ze)),d=0;l-ze>=d;d+=ze){const e=Je(qe,Ke(t,d,d+ze));s&&o.update(e);const i=a.update(e);s||o.update(i),n.set(Xe(qe,i),d+r)}return e.pending=Ke(t,d),n}async function Ge(e,t,n,r){e.password=null;const i=await(async(e,t,n,r,i)=>{if(!Pe)return xe.importKey(t);try{return await Re.importKey("raw",t,n,!1,i)}catch(e){return Pe=!1,xe.importKey(t)}})(0,n,Ae,0,Ce),s=await(async(e,t,n)=>{if(!Be)return xe.pbkdf2(t,e.salt,je.iterations,n);try{return await Re.deriveBits(e,t,n)}catch(r){return Be=!1,xe.pbkdf2(t,e.salt,je.iterations,n)}})(Object.assign({salt:r},je),i,8*(2*Ue[t]+2)),a=new Uint8Array(s),o=Je(qe,Ke(a,0,Ue[t])),c=Je(qe,Ke(a,Ue[t],2*Ue[t])),l=Ke(a,2*Ue[t]);return Object.assign(e,{keys:{key:o,authentication:c,passwordVerification:l},ctr:new Ie(new We(o),Array.from(Fe)),hmac:new Me(c)}),l}function Ze(e,t){return t===J?pe(e):t}function Ve(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function Ke(e,t,n){return e.subarray(t,n)}function Xe(e,t){return e.fromBits(t)}function Je(e,t){return e.toBits(t)}class Ye extends TransformStream{constructor({password:e,passwordVerification:t,checkPasswordOnly:n}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),tt(this,e)},transform(e,t){const r=this;if(r.password){const t=$e(r,e.subarray(0,12));if(r.password=null,t[11]!=r.passwordVerification)throw Error(ve);e=e.subarray(12)}n?t.error(Error(_e)):t.enqueue($e(r,e))}})}}class Qe extends TransformStream{constructor({password:e,passwordVerification:t}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),tt(this,e)},transform(e,t){const n=this;let r,i;if(n.password){n.password=null;const t=ke(new Uint8Array(12));t[11]=n.passwordVerification,r=new Uint8Array(e.length+t.length),r.set(et(n,t),0),i=12}else r=new Uint8Array(e.length),i=0;r.set(et(n,e),i),t.enqueue(r)}})}}function $e(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=rt(e)^t[r],nt(e,n[r]);return n}function et(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=rt(e)^t[r],nt(e,t[r]);return n}function tt(e,t){const n=[305419896,591751049,878082192];Object.assign(e,{keys:n,crcKey0:new fe(n[0]),crcKey2:new fe(n[2])});for(let n=0;n<t.length;n++)nt(e,t.charCodeAt(n))}function nt(e,t){let[n,r,i]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=st(Math.imul(st(r+it(n)),134775813)+1),e.crcKey2.append([r>>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function rt(e){const t=2|e.keys[2];return it(Math.imul(t,1^t)>>>8)}function it(e){return 255&e}function st(e){return 4294967295&e}const at="deflate-raw";class ot extends TransformStream{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:i,encrypted:s,useCompressionStream:a,zipCrypto:o,signed:c,level:l}=e,d=this;let f,u,p=lt(super.readable);s&&!o||!c||(f=new ue,p=ut(p,f)),i&&(p=ft(p,a,{level:l,chunkSize:t},r,n)),s&&(o?p=ut(p,new Qe(e)):(u=new He(e),p=ut(p,u))),dt(d,p,(()=>{let e;s&&!o&&(e=u.signature),s&&!o||!c||(e=new DataView(f.value.buffer).getUint32(0)),d.signature=e}))}}class ct extends TransformStream{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:s,signed:a,signature:o,compressed:c,useCompressionStream:l}=e;let d,f,u=lt(super.readable);s&&(i?u=ut(u,new Ye(e)):(f=new Le(e),u=ut(u,f))),c&&(u=ft(u,l,{chunkSize:t},r,n)),s&&!i||!a||(d=new ue,u=ut(u,d)),dt(this,u,(()=>{if((!s||i)&&a){const e=new DataView(d.value.buffer);if(o!=e.getUint32(0,!1))throw Error(ye)}}))}}function lt(e){return ut(e,new TransformStream({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function dt(e,t,n){t=ut(t,new TransformStream({flush:n})),Object.defineProperty(e,"readable",{get:()=>t})}function ft(e,t,n,r,i){try{e=ut(e,new(t&&r?r:i)(at,n))}catch(r){if(!t)return e;try{e=ut(e,new i(at,n))}catch(t){return e}}return e}function ut(e,t){return e.pipeThrough(t)}const pt="data",mt="close",ht="deflate",wt="inflate";class gt extends TransformStream{constructor(e,t){super({});const n=this,{codecType:r}=e;let i;r.startsWith(ht)?i=ot:r.startsWith(wt)&&(i=ct);let s=0,a=0;const o=new i(e,t),c=super.readable,l=new TransformStream({transform(e,t){e&&e.length&&(a+=e.length,t.enqueue(e))},flush(){Object.assign(n,{inputSize:a})}}),d=new TransformStream({transform(e,t){e&&e.length&&(s+=e.length,t.enqueue(e))},flush(){const{signature:e}=o;Object.assign(n,{signature:e,outputSize:s,inputSize:a})}});Object.defineProperty(n,"readable",{get:()=>c.pipeThrough(l).pipeThrough(o).pipeThrough(d)})}}class xt extends TransformStream{constructor(e){let t;super({transform:function n(r,i){if(t){const e=new Uint8Array(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(i.enqueue(r.slice(0,e)),n(r.slice(e),i)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}let bt=typeof Worker!=Y;class vt{constructor(e,{readable:t,writable:n},{options:r,config:i,streamOptions:s,useWebWorkers:a,transferStreams:o,scripts:c},l){const{signal:d}=s;return Object.assign(e,{busy:!0,readable:t.pipeThrough(new xt(i.chunkSize)).pipeThrough(new yt(t,s),{signal:d}),writable:n,options:Object.assign({},r),scripts:c,transferStreams:o,terminate:()=>new Promise((t=>{const{worker:n,busy:r}=e;n?(r?e.resolveTerminated=t:(n.terminate(),t()),e.interface=null):t()})),onTaskFinished(){const{resolveTerminated:t}=e;t&&(e.resolveTerminated=null,e.terminated=!0,e.worker.terminate(),t()),e.busy=!1,l(e)}}),(a&&bt?zt:kt)(e,i)}}class yt extends TransformStream{constructor(e,{onstart:t,onprogress:n,size:r,onend:i}){let s=0;super({async start(){t&&await _t(t,r)},async transform(e,t){s+=e.length,n&&await _t(n,s,r),t.enqueue(e)},async flush(){e.size=s,i&&await _t(i,s)}})}}async function _t(e,...t){try{await e(...t)}catch(e){}}function kt(e,t){return{run:()=>(async({options:e,readable:t,writable:n,onTaskFinished:r},i)=>{try{const r=new gt(e,i);await t.pipeThrough(r).pipeTo(n,{preventClose:!0,preventAbort:!0});const{signature:s,inputSize:a,outputSize:o}=r;return{signature:s,inputSize:a,outputSize:o}}finally{r()}})(e,t)}}function zt(e,t){const{baseURL:n,chunkSize:r}=t;if(!e.interface){let i;try{i=((e,t,n)=>{const r={type:"module"};let i,s;typeof e==Q&&(e=e());try{i=new URL(e,t)}catch(t){i=e}if(St)try{s=new Worker(i)}catch(e){St=!1,s=new Worker(i,r)}else s=new Worker(i,r);return s.addEventListener("message",(e=>(async({data:e},t)=>{const{type:n,value:r,messageId:i,result:s,error:a}=e,{reader:o,writer:c,resolveResult:l,rejectResult:d,onTaskFinished:f}=t;try{if(a){const{message:e,stack:t,code:n,name:r}=a,i=Error(e);Object.assign(i,{stack:t,code:n,name:r}),u(i)}else{if("pull"==n){const{value:e,done:n}=await o.read();jt({type:pt,value:e,done:n,messageId:i},t)}n==pt&&(await c.ready,await c.write(new Uint8Array(r)),jt({type:"ack",messageId:i},t)),n==mt&&u(null,s)}}catch(a){jt({type:mt,messageId:i},t),u(a)}function u(e,t){e?d(e):l(t),c&&c.releaseLock(),f()}})(e,n))),s})(e.scripts[0],n,e)}catch(n){return bt=!1,kt(e,t)}Object.assign(e,{worker:i,interface:{run:()=>(async(e,t)=>{let n,r;const i=new Promise(((e,t)=>{n=e,r=t}));Object.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:i});const{readable:s,options:a,scripts:o}=e,{writable:c,closed:l}=(e=>{let t;const n=new Promise((e=>t=e));return{writable:new WritableStream({async write(t){const n=e.getWriter();await n.ready,await n.write(t),n.releaseLock()},close(){t()},abort:t=>e.getWriter().abort(t)}),closed:n}})(e.writable),d=jt({type:"start",scripts:o.slice(1),options:a,config:t,readable:s,writable:c},e);d||Object.assign(e,{reader:s.getReader(),writer:c.getWriter()});const f=await i;return d||await c.getWriter().close(),await l,f})(e,{chunkSize:r})}})}return e.interface}let St=!0,At=!0;function jt(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:i}){try{const{value:n,readable:r,writable:s}=e,a=[];if(n&&(n.byteLength<n.buffer.byteLength?e.value=n.buffer.slice(0,n.byteLength):e.value=n.buffer,a.push(e.value)),i&&At?(r&&a.push(r),s&&a.push(s)):e.readable=e.writable=null,a.length)try{return t.postMessage(e,a),!0}catch(n){At=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(e){throw n&&n.releaseLock(),r(),e}}let Ct=[];const Dt=[];let Ut=0;async function Et(e,t){const{options:n,config:r}=t,{transferStreams:i,useWebWorkers:s,useCompressionStream:a,codecType:o,compressed:c,signed:l,encrypted:d}=n,{workerScripts:f,maxWorkers:u}=r;t.transferStreams=i||i===J;const p=!(c||l||d||t.transferStreams);return t.useWebWorkers=!p&&(s||s===J&&r.useWebWorkers),t.scripts=t.useWebWorkers&&f?f[o]:[],n.useCompressionStream=a||a===J&&r.useCompressionStream,(await(async()=>{const n=Ct.find((e=>!e.busy));if(n)return Ft(n),new vt(n,e,t,m);if(Ct.length<u){const n={indexWorker:Ut};return Ut++,Ct.push(n),new vt(n,e,t,m)}return new Promise((n=>Dt.push({resolve:n,stream:e,workerOptions:t})))})()).run();function m(e){if(Dt.length){const[{resolve:t,stream:n,workerOptions:r}]=Dt.splice(0,1);t(new vt(e,n,r,m))}else e.worker?(Ft(e),((e,t)=>{const{config:n}=t,{terminateWorkerTimeout:r}=n;Number.isFinite(r)&&r>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout((async()=>{Ct=Ct.filter((t=>t!=e));try{await e.terminate()}catch(e){}}),r))})(e,t)):Ct=Ct.filter((t=>t!=e))}}function Ft(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}async function Tt(){await Promise.allSettled(Ct.map((e=>(Ft(e),e.terminate()))))}function Rt(e,t={},n){return{Deflate:Ot(e.Deflate,t.deflate,n),Inflate:Ot(e.Inflate,t.inflate,n)}}function Ot(e,t,n){return class{constructor(r){const i=this;var s,a;s=r,a="level",(typeof Object.hasOwn===Q?Object.hasOwn(s,a):s.hasOwnProperty(a))&&r.level===J&&delete r.level,i.codec=new e(Object.assign({},t,r)),n(i.codec,(e=>{if(i.pendingData){const t=i.pendingData;i.pendingData=new Uint8Array(t.length+e.length);const{pendingData:n}=i;n.set(t,0),n.set(e,t.length)}else i.pendingData=new Uint8Array(e)}))}append(e){return this.codec.push(e),r(this)}flush(){return this.codec.push(new Uint8Array,!0),r(this)}};function r(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new Uint8Array}}const qt="HTTP error ",Wt="HTTP Range not supported",It="Writer iterator completed too soon",Mt="Range",Pt="GET",Bt="bytes",Lt=65536,Ht="writable";class Nt{constructor(){this.size=0}init(){this.initialized=!0}}class Gt extends Nt{get readable(){const e=this,{chunkSize:t=Lt}=e,n=new ReadableStream({start(){this.chunkOffset=0},async pull(r){const{offset:i=0,size:s,diskNumberStart:a}=n,{chunkOffset:o}=this;r.enqueue(await _n(e,i+o,Math.min(t,s-o),a)),o+t>s?r.close():this.chunkOffset+=t}});return n}}class Zt extends Nt{constructor(){super();const e=this,t=new WritableStream({write:t=>e.writeUint8Array(t)});Object.defineProperty(e,Ht,{get:()=>t})}writeUint8Array(){}}class Vt extends Gt{constructor(e){super();let t=e.length;for(;"="==e.charAt(t-1);)t--;const n=e.indexOf(",")+1;Object.assign(this,{dataURI:e,dataStart:n,size:Math.floor(.75*(t-n))})}readUint8Array(e,t){const{dataStart:n,dataURI:r}=this,i=new Uint8Array(t),s=4*Math.floor(e/3),a=atob(r.substring(s+n,4*Math.ceil((e+t)/3)+n)),o=e-3*Math.floor(s/4);for(let e=o;o+t>e;e++)i[e-o]=a.charCodeAt(e);return i}}class Kt extends Zt{constructor(e){super(),Object.assign(this,{data:"data:"+(e||"")+";base64,",pending:[]})}writeUint8Array(e){const t=this;let n=0,r=t.pending;const i=t.pending.length;for(t.pending="",n=0;n<3*Math.floor((i+e.length)/3)-i;n++)r+=String.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=String.fromCharCode(e[n]);r.length>2?t.data+=btoa(r):t.pending=r}getData(){return this.data+btoa(this.pending)}}class Xt extends Gt{constructor(e){super(),Object.assign(this,{blob:e,size:e.size})}async readUint8Array(e,t){const n=this,r=e+t,i=e||r<n.size?n.blob.slice(e,r):n.blob;let s=await i.arrayBuffer();return s.byteLength>t&&(s=s.slice(e,r)),new Uint8Array(s)}}class Jt extends Nt{constructor(e){super();const t=new TransformStream,n=[];e&&n.push(["Content-Type",e]),Object.defineProperty(this,Ht,{get:()=>t.writable}),this.blob=new Response(t.readable,{headers:n}).blob()}getData(){return this.blob}}class Yt extends Xt{constructor(e){super(new Blob([e],{type:"text/plain"}))}}class Qt extends Jt{constructor(e){super(e),Object.assign(this,{encoding:e,utf8:!e||"utf-8"==e.toLowerCase()})}async getData(){const{encoding:e,utf8:t}=this,n=await super.getData();if(n.text&&t)return n.text();{const t=new FileReader;return new Promise(((r,i)=>{Object.assign(t,{onload:({target:e})=>r(e.result),onerror:()=>i(t.error)}),t.readAsText(n,e)}))}}}class $t extends Gt{constructor(e,t){super(),tn(this,e,t)}async init(){await nn(this,fn,on),super.init()}readUint8Array(e,t){return rn(this,e,t,fn,on)}}class en extends Gt{constructor(e,t){super(),tn(this,e,t)}async init(){await nn(this,un,cn),super.init()}readUint8Array(e,t){return rn(this,e,t,un,cn)}}function tn(e,t,n){const{preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:s,combineSizeEocd:a}=n;delete(n=Object.assign({},n)).preventHeadRequest,delete n.useRangeHeader,delete n.forceRangeRequests,delete n.combineSizeEocd,delete n.useXHR,Object.assign(e,{url:t,options:n,preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:s,combineSizeEocd:a})}async function nn(e,t,n){const{url:r,preventHeadRequest:i,useRangeHeader:s,forceRangeRequests:a,combineSizeEocd:o}=e;if((e=>{const{baseURL:t}=re(),{protocol:n}=new URL(e,t);return"http:"==n||"https:"==n})(r)&&(s||a)&&(void 0===i||i)){const r=await t(Pt,e,sn(e,o?-22:void 0));if(!a&&r.headers.get("Accept-Ranges")!=Bt)throw Error(Wt);{let i;o&&(e.eocdCache=new Uint8Array(await r.arrayBuffer()));const s=r.headers.get("Content-Range");if(s){const e=s.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(i=Number(t))}}i===J?await dn(e,t,n):e.size=i}}else await dn(e,t,n)}async function rn(e,t,n,r,i){const{useRangeHeader:s,forceRangeRequests:a,eocdCache:o,size:c,options:l}=e;if(s||a){if(o&&t==c-N&&n==N)return o;const i=await r(Pt,e,sn(e,t,n));if(206!=i.status)throw Error(Wt);return new Uint8Array(await i.arrayBuffer())}{const{data:r}=e;return r||await i(e,l),new Uint8Array(e.data.subarray(t,t+n))}}function sn(e,t=0,n=1){return Object.assign({},an(e),{[Mt]:Bt+"="+(0>t?t:t+"-"+(t+n-1))})}function an({options:e}){const{headers:t}=e;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function on(e){await ln(e,fn)}async function cn(e){await ln(e,un)}async function ln(e,t){const n=await t(Pt,e,an(e));e.data=new Uint8Array(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function dn(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t("HEAD",e,an(e))).headers.get("Content-Length");r?e.size=Number(r):await n(e,e.options)}}async function fn(e,{options:t,url:n},r){const i=await fetch(n,Object.assign({},t,{method:e,headers:r}));if(400>i.status)return i;throw 416==i.status?Error(Wt):Error(qt+(i.statusText||i.status))}function un(e,{url:t},n){return new Promise(((r,i)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",(()=>{if(400>s.status){const e=[];s.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)})),r({status:s.status,arrayBuffer:()=>s.response,headers:new Map(e)})}else i(416==s.status?Error(Wt):Error(qt+(s.statusText||s.status)))}),!1),s.addEventListener("error",(e=>i(e.detail?e.detail.error:Error("Network error"))),!1),s.open(e,t),n)for(const e of Object.entries(n))s.setRequestHeader(e[0],e[1]);s.responseType="arraybuffer",s.send()}))}class pn extends Gt{constructor(e,t={}){super(),Object.assign(this,{url:e,reader:t.useXHR?new en(e,t):new $t(e,t)})}set size(e){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}class mn extends pn{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}}class hn extends Gt{constructor(e){super(),Object.assign(this,{array:e,size:e.length})}readUint8Array(e,t){return this.array.slice(e,e+t)}}class wn extends Zt{init(e=0){Object.assign(this,{offset:0,array:new Uint8Array(e)}),super.init()}writeUint8Array(e){const t=this;if(t.offset+e.length>t.array.length){const n=t.array;t.array=new Uint8Array(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}}class gn extends Gt{constructor(e){super(),this.readers=e}async init(){const e=this,{readers:t}=e;e.lastDiskNumber=0,e.lastDiskOffset=0,await Promise.all(t.map((async(n,r)=>{await n.init(),r!=t.length-1&&(e.lastDiskOffset+=n.size),e.size+=n.size}))),super.init()}async readUint8Array(e,t,n=0){const r=this,{readers:i}=this;let s,a=n;-1==a&&(a=i.length-1);let o=e;for(;o>=i[a].size;)o-=i[a].size,a++;const c=i[a],l=c.size;if(o+t>l){const i=l-o;s=new Uint8Array(t),s.set(await _n(c,o,i)),s.set(await r.readUint8Array(e+i,t-i,n),i)}else s=await _n(c,o,t);return r.lastDiskNumber=Math.max(a,r.lastDiskNumber),s}}class xn extends Nt{constructor(e,t=4294967295){super();const n=this;let r,i,s;Object.assign(n,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});const a=new WritableStream({async write(t){const{availableSize:a}=n;if(s)t.length<a?await o(t):(await o(t.slice(0,a)),await c(),n.diskOffset+=r.size,n.diskNumber++,s=null,await this.write(t.slice(a)));else{const{value:a,done:o}=await e.next();if(o&&!a)throw Error(It);r=a,r.size=0,r.maxSize&&(n.maxSize=r.maxSize),n.availableSize=n.maxSize,await bn(r),i=a.writable,s=i.getWriter(),await this.write(t)}},async close(){await s.ready,await c()}});async function o(e){const t=e.length;t&&(await s.ready,await s.write(e),r.size+=t,n.size+=t,n.availableSize-=t)}async function c(){i.size=r.size,await s.close()}Object.defineProperty(n,Ht,{get:()=>a})}}async function bn(e,t){if(!e.init||e.initialized)return Promise.resolve();await e.init(t)}function vn(e){return Array.isArray(e)&&(e=new gn(e)),e instanceof ReadableStream&&(e={readable:e}),e}function yn(e){e.writable===J&&typeof e.next==Q&&(e=new xn(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===J&&(t.size=0),e instanceof xn||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function _n(e,t,n,r){return e.readUint8Array(t,n,r)}const kn=gn,zn=xn,Sn="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function An(e,t){return t&&"cp437"==t.trim().toLowerCase()?(e=>{{let t="";for(let n=0;n<e.length;n++)t+=Sn[e[n]];return t}})(e):new TextDecoder(t).decode(e)}const jn="filename",Cn="rawFilename",Dn="comment",Un="rawComment",En="uncompressedSize",Fn="compressedSize",Tn="offset",Rn="diskNumberStart",On="lastModDate",qn="rawLastModDate",Wn="lastAccessDate",In="creationDate",Mn="internalFileAttribute",Pn="externalFileAttribute",Bn="msDosCompatible",Ln="zip64",Hn="encrypted",Nn="version",Gn="versionMadeBy",Zn="zipCrypto",Vn=[jn,Cn,Fn,En,On,qn,Dn,Un,Wn,In,Tn,Rn,Rn,Mn,Pn,Bn,Ln,Hn,Nn,Gn,Zn,"directory","bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class Kn{constructor(e){Vn.forEach((t=>this[t]=e[t]))}}const Xn="File format is not recognized",Jn="End of central directory not found",Yn="End of Zip64 central directory locator not found",Qn="Central directory header not found",$n="Local file header not found",er="Zip64 extra field not found",tr="File contains encrypted entry",nr="Encryption method not supported",rr="Compression method not supported",ir="Split zip file",sr="utf-8",ar="cp437",or=[[En,O],[Fn,O],[Tn,O],[Rn,q]],cr={[q]:{getValue:vr,bytes:4},[O]:{getValue:yr,bytes:8}};class lr{constructor(e,t={}){Object.assign(this,{reader:vn(e),options:t,config:re()})}async*getEntriesGenerator(e={}){const t=this;let{reader:n}=t;const{config:r}=t;if(await bn(n),n.size!==J&&n.readUint8Array||(n=new Xt(await new Response(n.readable).blob()),await bn(n)),n.size<N)throw Error(Xn);n.chunkSize=ie(r);const i=await(async(e,t,n)=>{const r=new Uint8Array(4);var i;return i=t,_r(r).setUint32(0,i,!0),await s(22)||await s(Math.min(1048582,n));async function s(t){const i=n-t,s=await _n(e,i,t);for(let e=s.length-22;e>=0;e--)if(s[e]==r[0]&&s[e+1]==r[1]&&s[e+2]==r[2]&&s[e+3]==r[3])return{offset:i+e,buffer:s.slice(e,e+22).buffer}}})(n,B,n.size);if(!i)throw vr(_r(await _n(n,0,4)))==I?Error(ir):Error(Jn);const s=_r(i);let a=vr(s,12),o=vr(s,16);const c=i.offset,l=br(s,20),d=c+N+l;let f=br(s,4);const u=n.lastDiskNumber||0;let p=br(s,6),m=br(s,8),h=0,w=0;if(o==O||a==O||m==q||p==q){const e=_r(await _n(n,i.offset-20,20));if(vr(e,0)==H){o=yr(e,8);let t=await _n(n,o,56,-1),r=_r(t);const s=i.offset-20-56;if(vr(r,0)!=L&&o!=s){const e=o;o=s,h=o-e,t=await _n(n,o,56,-1),r=_r(t)}if(vr(r,0)!=L)throw Error(Yn);f==q&&(f=vr(r,16)),p==q&&(p=vr(r,20)),m==q&&(m=yr(r,32)),a==O&&(a=yr(r,40)),o-=a}}if(o<n.size||(h=n.size-o-a-N,o=n.size-a-N),u!=f)throw Error(ir);if(0>o)throw Error(Xn);let g=0,x=await _n(n,o,a,p),b=_r(x);if(a){const e=i.offset-a;if(vr(b,g)!=P&&o!=e){const t=o;o=e,h+=o-t,x=await _n(n,o,a,p),b=_r(x)}}const v=i.offset-o-(n.lastDiskOffset||0);if(a==v||0>v||(a=v,x=await _n(n,o,a,p),b=_r(x)),0>o||o>=n.size)throw Error(Xn);const y=hr(t,e,"filenameEncoding"),_=hr(t,e,"commentEncoding");for(let i=0;m>i;i++){const s=new fr(n,r,t.options);if(vr(b,g)!=P)throw Error(Qn);ur(s,b,g+6);const a=!!s.bitFlag.languageEncodingFlag,o=g+46,c=o+s.filenameLength,l=c+s.extraFieldLength,d=br(b,g+4),f=!0,u=x.subarray(o,c),p=br(b,g+32),v=l+p,k=x.subarray(l,v),z=a,S=a,A=f&&!(16&~xr(b,g+38)),j=vr(b,g+42)+h;Object.assign(s,{versionMadeBy:d,msDosCompatible:f,compressedSize:0,uncompressedSize:0,commentLength:p,directory:A,offset:j,diskNumberStart:br(b,g+34),internalFileAttribute:br(b,g+36),externalFileAttribute:vr(b,g+38),rawFilename:u,filenameUTF8:z,commentUTF8:S,rawExtraField:x.subarray(c,l)});const C=hr(t,e,"decodeText")||An,D=z?sr:y||ar,U=S?sr:_||ar;let E=C(u,D);E===J&&(E=An(u,D));let F=C(k,U);F===J&&(F=An(k,U)),Object.assign(s,{rawComment:k,filename:E,comment:F,directory:A||E.endsWith(V)}),w=Math.max(j,w),pr(s,s,b,g+6),s.zipCrypto=s.encrypted&&!s.extraFieldAES;const T=new Kn(s);T.getData=(e,t)=>s.getData(e,T,t),g=v;const{onprogress:R}=e;if(R)try{await R(i+1,m,new Kn(s))}catch(e){}yield T}const k=hr(t,e,"extractPrependedData"),z=hr(t,e,"extractAppendedData");return k&&(t.prependedData=w>0?await _n(n,0,w):new Uint8Array),t.comment=l?await _n(n,c+N,l):new Uint8Array,z&&(t.appendedData=d<n.size?await _n(n,d,n.size-d):new Uint8Array),!0}async getEntries(e={}){const t=[];for await(const n of this.getEntriesGenerator(e))t.push(n);return t}async close(){}}class dr{constructor(e={}){const{readable:t,writable:n}=new TransformStream,r=new lr(t,e).getEntriesGenerator();this.readable=new ReadableStream({async pull(e){const{done:t,value:n}=await r.next();if(t)return e.close();const i={...n,readable:(()=>{const{readable:e,writable:t}=new TransformStream;if(n.getData)return n.getData(t),e})()};delete i.getData,e.enqueue(i)}}),this.writable=n}}let fr=class{constructor(e,t,n){Object.assign(this,{reader:e,config:t,options:n})}async getData(e,t,n={}){const r=this,{reader:i,offset:s,diskNumberStart:a,extraFieldAES:o,compressionMethod:c,config:l,bitFlag:d,signature:f,rawLastModDate:u,uncompressedSize:p,compressedSize:m}=r,h=t.localDirectory={},w=_r(await _n(i,s,30,a));let g=hr(r,n,"password"),x=hr(r,n,"rawPassword");const b=hr(r,n,"passThrough");if(g=g&&g.length&&g,x=x&&x.length&&x,o&&99!=o.originalCompressionMethod)throw Error(rr);if(0!=c&&8!=c&&!b)throw Error(rr);if(vr(w,0)!=W)throw Error($n);ur(h,w,4),h.rawExtraField=h.extraFieldLength?await _n(i,s+30+h.filenameLength,h.extraFieldLength,a):new Uint8Array,pr(r,h,w,4,!0),Object.assign(t,{lastAccessDate:h.lastAccessDate,creationDate:h.creationDate});const v=r.encrypted&&h.encrypted&&!b,y=v&&!o;if(b||(t.zipCrypto=y),v){if(!y&&o.strength===J)throw Error(nr);if(!g&&!x)throw Error(tr)}const _=s+30+h.filenameLength+h.extraFieldLength,k=m,z=i.readable;Object.assign(z,{diskNumberStart:a,offset:_,size:k});const S=hr(r,n,"signal"),A=hr(r,n,"checkPasswordOnly");A&&(e=new WritableStream),e=yn(e),await bn(e,b?m:p);const{writable:j}=e,{onstart:C,onprogress:D,onend:U}=n,E={options:{codecType:wt,password:g,rawPassword:x,zipCrypto:y,encryptionStrength:o&&o.strength,signed:hr(r,n,"checkSignature")&&!b,passwordVerification:y&&(d.dataDescriptor?u>>>8&255:f>>>24&255),signature:f,compressed:0!=c&&!b,encrypted:r.encrypted&&!b,useWebWorkers:hr(r,n,"useWebWorkers"),useCompressionStream:hr(r,n,"useCompressionStream"),transferStreams:hr(r,n,"transferStreams"),checkPasswordOnly:A},config:l,streamOptions:{signal:S,size:k,onstart:C,onprogress:D,onend:U}};let F=0;try{({outputSize:F}=await Et({readable:z,writable:j},E))}catch(e){if(!A||e.message!=_e)throw e}finally{const e=hr(r,n,"preventClose");j.size+=F,e||j.locked||await j.getWriter().close()}return A?J:e.getData?e.getData():j}};function ur(e,t,n){const r=e.rawBitFlag=br(t,n+2),i=!(1&~r),s=vr(t,n+6);Object.assign(e,{encrypted:i,version:br(t,n),bitFlag:{level:(6&r)>>1,dataDescriptor:!(8&~r),languageEncodingFlag:(r&Z)==Z},rawLastModDate:s,lastModDate:wr(s),filenameLength:br(t,n+22),extraFieldLength:br(t,n+24)})}function pr(e,t,n,r,i){const{rawExtraField:s}=t,a=t.extraField=new Map,o=_r(new Uint8Array(s));let c=0;try{for(;c<s.length;){const e=br(o,c),t=br(o,c+2);a.set(e,{type:e,data:s.slice(c+4,c+4+t)}),c+=4+t}}catch(e){}const l=br(n,r+4);Object.assign(t,{signature:vr(n,r+10),uncompressedSize:vr(n,r+18),compressedSize:vr(n,r+14)});const d=a.get(1);d&&(((e,t)=>{t.zip64=!0;const n=_r(e.data),r=or.filter((([e,n])=>t[e]==n));for(let i=0,s=0;i<r.length;i++){const[a,o]=r[i];if(t[a]==o){const r=cr[o];t[a]=e[a]=r.getValue(n,s),s+=r.bytes}else if(e[a])throw Error(er)}})(d,t),t.extraFieldZip64=d);const f=a.get(28789);f&&(mr(f,jn,Cn,t,e),t.extraFieldUnicodePath=f);const u=a.get(25461);u&&(mr(u,Dn,Un,t,e),t.extraFieldUnicodeComment=u);const p=a.get(39169);p?(((e,t,n)=>{const r=_r(e.data),i=xr(r,4);Object.assign(e,{vendorVersion:xr(r,0),vendorId:xr(r,2),strength:i,originalCompressionMethod:n,compressionMethod:br(r,5)}),t.compressionMethod=e.compressionMethod})(p,t,l),t.extraFieldAES=p):t.compressionMethod=l;const m=a.get(10);m&&(((e,t)=>{const n=_r(e.data);let r,i=4;try{for(;i<e.data.length&&!r;){const t=br(n,i),s=br(n,i+2);1==t&&(r=e.data.slice(i+4,i+4+s)),i+=4+s}}catch(e){}try{if(r&&24==r.length){const n=_r(r),i=n.getBigUint64(0,!0),s=n.getBigUint64(8,!0),a=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:i,rawLastAccessDate:s,rawCreationDate:a});const o={lastModDate:gr(i),lastAccessDate:gr(s),creationDate:gr(a)};Object.assign(e,o),Object.assign(t,o)}}catch(e){}})(m,t),t.extraFieldNTFS=m);const h=a.get(G);h&&(((e,t,n)=>{const r=_r(e.data),i=xr(r,0),s=[],a=[];n?(1&~i||(s.push(On),a.push(qn)),2&~i||(s.push(Wn),a.push("rawLastAccessDate")),4&~i||(s.push(In),a.push("rawCreationDate"))):5>e.data.length||(s.push(On),a.push(qn));let o=1;s.forEach(((n,i)=>{if(e.data.length>=o+4){const s=vr(r,o);t[n]=e[n]=new Date(1e3*s);const c=a[i];e[c]=s}o+=4}))})(h,t,i),t.extraFieldExtendedTimestamp=h);const w=a.get(6534);w&&(t.extraFieldUSDZ=w)}function mr(e,t,n,r,i){const s=_r(e.data),a=new fe;a.append(i[n]);const o=_r(new Uint8Array(4));o.setUint32(0,a.get(),!0);const c=vr(s,1);Object.assign(e,{version:xr(s,0),[t]:An(e.data.subarray(5)),valid:!i.bitFlag.languageEncodingFlag&&c==vr(o,0)}),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function hr(e,t,n){return t[n]===J?e.options[n]:t[n]}function wr(e){const t=(4294901760&e)>>16,n=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function gr(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function xr(e,t){return e.getUint8(t)}function br(e,t){return e.getUint16(t,!0)}function vr(e,t){return e.getUint32(t,!0)}function yr(e,t){return Number(e.getBigUint64(t,!0))}function _r(e){return new DataView(e.buffer)}const kr="File already exists",zr="Zip file comment exceeds 64KB",Sr="File entry comment exceeds 64KB",Ar="File entry name exceeds 64KB",jr="Version exceeds 65535",Cr="The strength must equal 1, 2, or 3",Dr="Extra field type exceeds 65535",Ur="Extra field data exceeds 64KB",Er="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",Fr="Undefined uncompressed size",Tr=new Uint8Array([7,0,2,0,65,69,3,0,0]);let Rr=0;const Or=[];class qr{constructor(e,t={}){const n=(e=yn(e)).availableSize!==J&&e.availableSize>0&&e.availableSize!==1/0&&e.maxSize!==J&&e.maxSize>0&&e.maxSize!==1/0;Object.assign(this,{writer:e,addSplitZipSignature:n,options:t,config:re(),files:new Map,filenames:new Set,offset:t.offset===J?e.writable.size:t.offset,pendingEntriesSize:0,pendingAddFileCalls:new Set,bufferedWrites:0})}async add(e="",t,n={}){const r=this,{pendingAddFileCalls:i,config:s}=r;let a;Rr<s.maxWorkers?Rr++:await new Promise((e=>Or.push(e)));try{if(e=e.trim(),r.filenames.has(e))throw Error(kr);return r.filenames.add(e),a=(async(e,t,n,r)=>{t=t.trim(),r.directory&&!t.endsWith(V)?t+=V:r.directory=t.endsWith(V);const i=Pr(e,r,"encodeText",pe);let s=i(t);if(s===J&&(s=pe(t)),Kr(s)>q)throw Error(Ar);const a=r.comment||"";let o=i(a);if(o===J&&(o=pe(a)),Kr(o)>q)throw Error(Sr);const c=Pr(e,r,Nn,20);if(c>q)throw Error(jr);const l=Pr(e,r,Gn,20);if(l>q)throw Error(jr);const d=Pr(e,r,On,new Date),f=Pr(e,r,Wn),u=Pr(e,r,In),p=Pr(e,r,Bn,!0),m=Pr(e,r,Mn,0),h=Pr(e,r,Pn,0),w=Pr(e,r,"passThrough");let g,x;w||(g=Pr(e,r,"password"),x=Pr(e,r,"rawPassword"));const b=Pr(e,r,"encryptionStrength",3),v=Pr(e,r,Zn),y=Pr(e,r,"extendedTimestamp",!0),_=Pr(e,r,"keepOrder",!0),k=Pr(e,r,"level"),z=Pr(e,r,"useWebWorkers"),S=Pr(e,r,"bufferedWrite"),A=Pr(e,r,"dataDescriptorSignature",!1),j=Pr(e,r,"signal"),C=Pr(e,r,"useUnicodeFileNames",!0),D=Pr(e,r,"useCompressionStream"),U=Pr(e,r,"compressionMethod");let E=Pr(e,r,"dataDescriptor",!0),F=Pr(e,r,Ln);if(!v&&(g!==J||x!==J)&&(1>b||b>3))throw Error(Cr);let T=new Uint8Array;const{extraField:R}=r;if(R){let e=0,t=0;R.forEach((t=>e+=4+Kr(t))),T=new Uint8Array(e),R.forEach(((e,n)=>{if(n>q)throw Error(Dr);if(Kr(e)>q)throw Error(Ur);Zr(T,new Uint16Array([n]),t),Zr(T,new Uint16Array([Kr(e)]),t+2),Zr(T,e,t+4),t+=4+Kr(e)}))}let P=0,B=0,L=0;if(w&&(({uncompressedSize:L}=r),L===J))throw Error(Fr);const H=!0===F;n&&(n=vn(n),await bn(n),w?P=Br(L):n.size===J?(E=!0,(F||F===J)&&(F=!0,L=P=4294967296)):(L=n.size,P=Br(L)));const{diskOffset:N,diskNumber:Y,maxSize:Q}=e.writer,$=H||L>O,ee=H||P>O,te=H||e.offset+e.pendingEntriesSize-N>O,ne=Pr(e,r,"supportZip64SplitFile",!0)&&H||Y+Math.ceil(e.pendingEntriesSize/Q)>q;if(te||$||ee||ne){if(!1===F||!_)throw Error(Er);F=!0}F=F||!1;const re=Pr(e,r,Hn),{signature:se}=r,ae=(e=>{const{rawFilename:t,lastModDate:n,lastAccessDate:r,creationDate:i,level:s,zip64:a,zipCrypto:o,useUnicodeFileNames:c,dataDescriptor:l,directory:d,rawExtraField:f,encryptionStrength:u,extendedTimestamp:p,encrypted:m}=e,h=0!==s&&!d;let w,g,x,b,{version:v,compressionMethod:y}=e;if(m&&!o){w=new Uint8Array(Kr(Tr)+2);const e=Vr(w);Hr(e,0,39169),Zr(w,Tr,2),Lr(e,8,u)}else w=new Uint8Array;if(p){x=new Uint8Array(9+(r?4:0)+(i?4:0));const e=Vr(x);Hr(e,0,G),Hr(e,2,Kr(x)-4),b=1+(r?2:0)+(i?4:0),Lr(e,4,b);let t=5;Nr(e,t,Math.floor(n.getTime()/1e3)),t+=4,r&&(Nr(e,t,Math.floor(r.getTime()/1e3)),t+=4),i&&Nr(e,t,Math.floor(i.getTime()/1e3));try{g=new Uint8Array(36);const e=Vr(g),t=Mr(n);Hr(e,0,10),Hr(e,2,32),Hr(e,8,1),Hr(e,10,24),Gr(e,12,t),Gr(e,20,Mr(r)||t),Gr(e,28,Mr(i)||t)}catch(e){g=new Uint8Array}}else g=x=new Uint8Array;let _=0;c&&(_|=Z),l&&(_|=8),y===J&&(y=h?8:0),8==y&&(s>=1&&3>s&&(_|=6),s>=3&&5>s&&(_|=1),9===s&&(_|=2)),a&&(v=v>45?v:45),m&&(_|=1,o||(v=v>51?v:51,w[9]=y,y=99));const k=new Uint8Array(26),z=Vr(k);Hr(z,0,v),Hr(z,2,_),Hr(z,4,y);const S=new Uint32Array(1),A=Vr(S);let j;j=X>n?X:n>K?K:n,Hr(A,0,(j.getHours()<<6|j.getMinutes())<<5|j.getSeconds()/2),Hr(A,2,(j.getFullYear()-1980<<4|j.getMonth()+1)<<5|j.getDate());const C=S[0];Nr(z,6,C),Hr(z,22,Kr(t));const D=Kr(w,x,g,f);Hr(z,24,D);const U=new Uint8Array(30+Kr(t)+D);return Nr(Vr(U),0,W),Zr(U,k,4),Zr(U,t,30),Zr(U,w,30+Kr(t)),Zr(U,x,30+Kr(t,w)),Zr(U,g,30+Kr(t,w,x)),Zr(U,f,30+Kr(t,w,x,g)),{localHeaderArray:U,headerArray:k,headerView:z,lastModDate:n,rawLastModDate:C,encrypted:m,compressed:h,version:v,compressionMethod:y,extraFieldExtendedTimestampFlag:b,rawExtraFieldExtendedTimestamp:x,rawExtraFieldNTFS:g,rawExtraFieldAES:w,extraFieldLength:D}})(r=Object.assign({},r,{rawFilename:s,rawComment:o,version:c,versionMadeBy:l,lastModDate:d,lastAccessDate:f,creationDate:u,rawExtraField:T,zip64:F,zip64UncompressedSize:$,zip64CompressedSize:ee,zip64Offset:te,zip64DiskNumberStart:ne,password:g,rawPassword:x,level:D||e.config.CompressionStream!==J||e.config.CompressionStreamNative!==J?k:0,useWebWorkers:z,encryptionStrength:b,extendedTimestamp:y,zipCrypto:v,bufferedWrite:S,keepOrder:_,useUnicodeFileNames:C,dataDescriptor:E,dataDescriptorSignature:A,signal:j,msDosCompatible:p,internalFileAttribute:m,externalFileAttribute:h,useCompressionStream:D,passThrough:w,encrypted:!!(g&&Kr(g)||x&&Kr(x))||w&&re,signature:se,compressionMethod:U})),oe=(e=>{const{zip64:t,dataDescriptor:n,dataDescriptorSignature:r}=e;let i,s=new Uint8Array,a=0;return n&&(s=new Uint8Array(t?r?24:20:r?16:12),i=Vr(s),r&&(a=4,Nr(i,0,M))),{dataDescriptorArray:s,dataDescriptorView:i,dataDescriptorOffset:a}})(r),ce=Kr(ae.localHeaderArray,oe.dataDescriptorArray);let le;B=ce+P,e.options.usdz&&(B+=B+64),e.pendingEntriesSize+=B;try{le=await(async(e,t,n,r,i)=>{const{files:s,writer:a}=e,{keepOrder:o,dataDescriptor:c,signal:l}=i,{headerInfo:d}=r,{usdz:f}=e.options,u=Array.from(s.values()).pop();let p,m,h,w,g,x,b,v={};s.set(t,v);try{let d;o&&(d=u&&u.lock,v.lock=new Promise((e=>h=e))),!(i.bufferedWrite||e.writerLocked||e.bufferedWrites&&o)&&c||f?(x=a,await y()):(x=new TransformStream,b=new Response(x.readable).blob(),x.writable.size=0,p=!0,e.bufferedWrites++,await bn(a)),await bn(x);const{writable:m}=a;let{diskOffset:k}=a;if(e.addSplitZipSignature){delete e.addSplitZipSignature;const t=new Uint8Array(4);Nr(Vr(t),0,I),await Ir(m,t),e.offset+=4}f&&((e,t)=>{const{headerInfo:n}=e;let{localHeaderArray:r,extraFieldLength:i}=n,s=Vr(r),a=64-(t+Kr(r))%64;4>a&&(a+=64);const o=new Uint8Array(a),c=Vr(o);Hr(c,0,6534),Hr(c,2,a-2);const l=r;n.localHeaderArray=r=new Uint8Array(Kr(l)+a),Zr(r,l),Zr(r,o,Kr(l)),s=Vr(r),Hr(s,28,i+a),e.metadataSize+=a})(r,e.offset-k),p||(await d,await _(m));const{diskNumber:z}=a;if(g=!0,v.diskNumberStart=z,v=await(async(e,t,{diskNumberStart:n,lock:r},i,s,a)=>{const{headerInfo:o,dataDescriptorInfo:c,metadataSize:l}=i,{localHeaderArray:d,headerArray:f,lastModDate:u,rawLastModDate:p,encrypted:m,compressed:h,version:w,compressionMethod:g,rawExtraFieldExtendedTimestamp:x,extraFieldExtendedTimestampFlag:b,rawExtraFieldNTFS:v,rawExtraFieldAES:y}=o,{dataDescriptorArray:_}=c,{rawFilename:k,lastAccessDate:z,creationDate:S,password:A,rawPassword:j,level:C,zip64:D,zip64UncompressedSize:U,zip64CompressedSize:E,zip64Offset:F,zip64DiskNumberStart:T,zipCrypto:R,dataDescriptor:q,directory:W,versionMadeBy:I,rawComment:M,rawExtraField:P,useWebWorkers:B,onstart:L,onprogress:H,onend:N,signal:G,encryptionStrength:Z,extendedTimestamp:V,msDosCompatible:K,internalFileAttribute:X,externalFileAttribute:Y,useCompressionStream:Q,passThrough:$}=a,ee={lock:r,versionMadeBy:I,zip64:D,directory:!!W,filenameUTF8:!0,rawFilename:k,commentUTF8:!0,rawComment:M,rawExtraFieldExtendedTimestamp:x,rawExtraFieldNTFS:v,rawExtraFieldAES:y,rawExtraField:P,extendedTimestamp:V,msDosCompatible:K,internalFileAttribute:X,externalFileAttribute:Y,diskNumberStart:n};let{signature:te,uncompressedSize:ne}=a,re=0;$||(ne=0);const{writable:se}=t;if(e){e.chunkSize=ie(s),await Ir(se,d);const t=e.readable,n=t.size=e.size,r={options:{codecType:ht,level:C,rawPassword:j,password:A,encryptionStrength:Z,zipCrypto:m&&R,passwordVerification:m&&R&&p>>8&255,signed:!$,compressed:h&&!$,encrypted:m&&!$,useWebWorkers:B,useCompressionStream:Q,transferStreams:!1},config:s,streamOptions:{signal:G,size:n,onstart:L,onprogress:H,onend:N}},i=await Et({readable:t,writable:se},r);re=i.outputSize,$||(ne=i.inputSize,te=i.signature),se.size+=ne}else await Ir(se,d);let ae;if(D){let e=4;U&&(e+=8),E&&(e+=8),F&&(e+=8),T&&(e+=4),ae=new Uint8Array(e)}else ae=new Uint8Array;return((e,t)=>{const{signature:n,rawExtraFieldZip64:r,compressedSize:i,uncompressedSize:s,headerInfo:a,dataDescriptorInfo:o}=e,{headerView:c,encrypted:l}=a,{dataDescriptorView:d,dataDescriptorOffset:f}=o,{zip64:u,zip64UncompressedSize:p,zip64CompressedSize:m,zipCrypto:h,dataDescriptor:w}=t;if(l&&!h||n===J||(Nr(c,10,n),w&&Nr(d,f,n)),u){const e=Vr(r);Hr(e,0,1),Hr(e,2,Kr(r)-4);let t=4;p&&(Nr(c,18,O),Gr(e,t,BigInt(s)),t+=8),m&&(Nr(c,14,O),Gr(e,t,BigInt(i))),w&&(Gr(d,f+4,BigInt(i)),Gr(d,f+12,BigInt(s)))}else Nr(c,14,i),Nr(c,18,s),w&&(Nr(d,f+4,i),Nr(d,f+8,s))})({signature:te,rawExtraFieldZip64:ae,compressedSize:re,uncompressedSize:ne,headerInfo:o,dataDescriptorInfo:c},a),q&&await Ir(se,_),Object.assign(ee,{uncompressedSize:ne,compressedSize:re,lastModDate:u,rawLastModDate:p,creationDate:S,lastAccessDate:z,encrypted:m,zipCrypto:R,size:l+re,compressionMethod:g,version:w,headerArray:f,signature:te,rawExtraFieldZip64:ae,extraFieldExtendedTimestampFlag:b,zip64UncompressedSize:U,zip64CompressedSize:E,zip64Offset:F,zip64DiskNumberStart:T}),ee})(n,x,v,r,e.config,i),g=!1,s.set(t,v),v.filename=t,p){await x.writable.getWriter().close();let e=await b;await d,await y(),w=!0,c||(e=await(async(e,t,n,{zipCrypto:r})=>{let i;i=await t.slice(0,26).arrayBuffer(),26!=i.byteLength&&(i=i.slice(0,26));const s=new DataView(i);return e.encrypted&&!r||Nr(s,14,e.signature),e.zip64?(Nr(s,18,O),Nr(s,22,O)):(Nr(s,18,e.compressedSize),Nr(s,22,e.uncompressedSize)),await Ir(n,new Uint8Array(i)),t.slice(i.byteLength)})(v,e,m,i)),await _(m),v.diskNumberStart=a.diskNumber,k=a.diskOffset,await e.stream().pipeTo(m,{preventClose:!0,preventAbort:!0,signal:l}),m.size+=e.size,w=!1}if(v.offset=e.offset-k,v.zip64)((e,t)=>{const{rawExtraFieldZip64:n,offset:r,diskNumberStart:i}=e,{zip64UncompressedSize:s,zip64CompressedSize:a,zip64Offset:o,zip64DiskNumberStart:c}=t,l=Vr(n);let d=4;s&&(d+=8),a&&(d+=8),o&&(Gr(l,d,BigInt(r)),d+=8),c&&Nr(l,d,i)})(v,i);else if(v.offset>O)throw Error(Er);return e.offset+=v.size,v}catch(n){if(p&&w||!p&&g){if(e.hasCorruptedEntries=!0,n)try{n.corruptedEntry=!0}catch(e){}p?e.offset+=x.writable.size:e.offset=x.writable.size}throw s.delete(t),n}finally{p&&e.bufferedWrites--,h&&h(),m&&m()}async function y(){e.writerLocked=!0;const{lockWriter:t}=e;e.lockWriter=new Promise((t=>m=()=>{e.writerLocked=!1,t()})),await t}async function _(e){Kr(d.localHeaderArray)>a.availableSize&&(a.availableSize=0,await Ir(e,new Uint8Array))}})(e,t,n,{headerInfo:ae,dataDescriptorInfo:oe,metadataSize:ce},r)}finally{e.pendingEntriesSize-=B}return Object.assign(le,{name:t,comment:a,extraField:R}),new Kn(le)})(r,e,t,n),i.add(a),await a}catch(t){throw r.filenames.delete(e),t}finally{i.delete(a);const e=Or.shift();e?e():Rr--}}async close(e=new Uint8Array,t={}){const{pendingAddFileCalls:n,writer:r}=this,{writable:i}=r;for(;n.size;)await Promise.allSettled(Array.from(n));return await(async(e,t,n)=>{const{files:r,writer:i}=e,{diskOffset:s,writable:a}=i;let{diskNumber:o}=i,c=0,l=0,d=e.offset-s,f=r.size;for(const[,e]of r){const{rawFilename:t,rawExtraFieldZip64:n,rawExtraFieldAES:r,rawComment:i,rawExtraFieldNTFS:s,rawExtraField:a,extendedTimestamp:o,extraFieldExtendedTimestampFlag:c,lastModDate:d}=e;let f;if(o){f=new Uint8Array(9);const e=Vr(f);Hr(e,0,G),Hr(e,2,5),Lr(e,4,c),Nr(e,5,Math.floor(d.getTime()/1e3))}else f=new Uint8Array;e.rawExtraFieldCDExtendedTimestamp=f,l+=46+Kr(t,i,n,r,s,f,a)}const u=new Uint8Array(l),p=Vr(u);await bn(i);let m=0;for(const[e,t]of Array.from(r.values()).entries()){const{offset:s,rawFilename:o,rawExtraFieldZip64:l,rawExtraFieldAES:d,rawExtraFieldCDExtendedTimestamp:f,rawExtraFieldNTFS:h,rawExtraField:w,rawComment:g,versionMadeBy:x,headerArray:b,directory:v,zip64:y,zip64UncompressedSize:_,zip64CompressedSize:k,zip64DiskNumberStart:z,zip64Offset:S,msDosCompatible:A,internalFileAttribute:j,externalFileAttribute:C,diskNumberStart:D,uncompressedSize:U,compressedSize:E}=t,F=Kr(l,d,f,h,w);Nr(p,c,P),Hr(p,c+4,x);const T=Vr(b);_||Nr(T,18,U),k||Nr(T,14,E),Zr(u,b,c+6),Hr(p,c+30,F),Hr(p,c+32,Kr(g)),Hr(p,c+34,y&&z?q:D),Hr(p,c+36,j),C?Nr(p,c+38,C):v&&A&&Lr(p,c+38,16),Nr(p,c+42,y&&S?O:s),Zr(u,o,c+46),Zr(u,l,c+46+Kr(o)),Zr(u,d,c+46+Kr(o,l)),Zr(u,f,c+46+Kr(o,l,d)),Zr(u,h,c+46+Kr(o,l,d,f)),Zr(u,w,c+46+Kr(o,l,d,f,h)),Zr(u,g,c+46+Kr(o)+F);const R=46+Kr(o,g)+F;if(c-m>i.availableSize&&(i.availableSize=0,await Ir(a,u.slice(m,c)),m=c),c+=R,n.onprogress)try{await n.onprogress(e+1,r.size,new Kn(t))}catch(e){}}await Ir(a,m?u.slice(m):u);let h=i.diskNumber;const{availableSize:w}=i;N>w&&h++;let g=Pr(e,n,Ln);if(d>O||l>O||f>q||h>q){if(!1===g)throw Error(Er);g=!0}const x=new Uint8Array(g?98:N),b=Vr(x);c=0,g&&(Nr(b,0,L),Gr(b,4,BigInt(44)),Hr(b,12,45),Hr(b,14,45),Nr(b,16,h),Nr(b,20,o),Gr(b,24,BigInt(f)),Gr(b,32,BigInt(f)),Gr(b,40,BigInt(l)),Gr(b,48,BigInt(d)),Nr(b,56,H),Gr(b,64,BigInt(d)+BigInt(l)),Nr(b,72,h+1),Pr(e,n,"supportZip64SplitFile",!0)&&(h=q,o=q),f=q,d=O,l=O,c+=76),Nr(b,c,B),Hr(b,c+4,h),Hr(b,c+6,o),Hr(b,c+8,f),Hr(b,c+10,f),Nr(b,c+12,l),Nr(b,c+16,d);const v=Kr(t);if(v){if(v>q)throw Error(zr);Hr(b,c+20,v)}await Ir(a,x),v&&await Ir(a,t)})(this,e,t),Pr(this,t,"preventClose")||await i.getWriter().close(),r.getData?r.getData():i}}class Wr{constructor(e={}){const{readable:t,writable:n}=new TransformStream;this.readable=t,this.zipWriter=new qr(n,e)}transform(e){const{readable:t,writable:n}=new TransformStream({flush:()=>{this.zipWriter.close()}});return this.zipWriter.add(e,t),{readable:this.readable,writable:n}}writable(e){const{readable:t,writable:n}=new TransformStream;return this.zipWriter.add(e,t),n}close(e,t={}){return this.zipWriter.close(e,t)}}async function Ir(e,t){const n=e.getWriter();try{await n.ready,e.size+=Kr(t),await n.write(t)}finally{n.releaseLock()}}function Mr(e){if(e)return(BigInt(e.getTime())+BigInt(116444736e5))*BigInt(1e4)}function Pr(e,t,n,r){const i=t[n]===J?e.options[n]:t[n];return i===J?r:i}function Br(e){return e+5*(Math.floor(e/16383)+1)}function Lr(e,t,n){e.setUint8(t,n)}function Hr(e,t,n){e.setUint16(t,n,!0)}function Nr(e,t,n){e.setUint32(t,n,!0)}function Gr(e,t,n){e.setBigUint64(t,n,!0)}function Zr(e,t,n){e.set(t,n)}function Vr(e){return new DataView(e.buffer)}function Kr(...e){let t=0;return e.forEach((e=>e&&(t+=e.length))),t}class Xr{constructor(e,t,n,r){const i=this;if(e.root&&r&&r.getChildByName(t))throw Error("Entry filename already exists");n||(n={}),Object.assign(i,{fs:e,name:t,data:n.data,options:n.options,id:e.entries.length,parent:r,children:[],uncompressedSize:n.uncompressedSize||0,passThrough:n.passThrough}),e.entries.push(i),r&&i.parent.children.push(i)}moveTo(e){this.fs.move(this,e)}getFullname(){return this.getRelativeName()}getRelativeName(e=this.fs.root){let t=this.name,n=this.parent;for(;n&&n!=e;)t=(n.name?n.name+"/":"")+t,n=n.parent;return t}isDescendantOf(e){let t=this.parent;for(;t&&t.id!=e.id;)t=t.parent;return!!t}rename(e){const t=this.parent;if(t&&t.getChildByName(e))throw Error("Entry filename already exists");this.name=e}}class Jr extends Xr{constructor(e,t,n,r){super(e,t,n,r);const i=this;i.Reader=n.Reader,i.Writer=n.Writer,n.getData&&(i.getData=n.getData)}clone(){return new Jr(this.fs,this.name,this)}async getData(e,t={}){const n=this;if(!e||e.constructor==n.Writer&&n.data)return n.data;{const r=n.reader=new n.Reader(n.data,t),i=n.data?n.data.uncompressedSize:r.size;await Promise.all([bn(r),bn(e,i)]);const s=r.readable;return s.size=n.uncompressedSize=r.size,await s.pipeTo(e.writable),e.getData?e.getData():e.writable}}isPasswordProtected(){return this.data.encrypted}async checkPassword(e,t={}){const n=this;if(!n.isPasswordProtected())return!0;t.password=e,t.checkPasswordOnly=!0;try{return await n.data.getData(null,t),!0}catch(e){if(e.message==ve)return!1;throw e}}getText(e,t){return this.getData(new Qt(e),t)}getBlob(e,t){return this.getData(new Jt(e),t)}getData64URI(e,t){return this.getData(new Kt(e),t)}getUint8Array(e){return this.getData(new wn,e)}getWritable(e=new WritableStream,t){return this.getData({writable:e},t)}replaceBlob(e){Object.assign(this,{data:e,Reader:Xt,Writer:Jt,reader:null})}replaceText(e){Object.assign(this,{data:e,Reader:Yt,Writer:Qt,reader:null})}replaceData64URI(e){Object.assign(this,{data:e,Reader:Vt,Writer:Kt,reader:null})}replaceUint8Array(e){Object.assign(this,{data:e,Reader:hn,Writer:wn,reader:null})}replaceReadable(e){Object.assign(this,{data:null,Reader:()=>({readable:e}),Writer:null,reader:null})}}class Yr extends Xr{constructor(e,t,n,r){super(e,t,n,r),this.directory=!0}clone(e){const t=this,n=new Yr(t.fs,t.name);return e&&(n.children=t.children.map((t=>{const r=t.clone(e);return r.parent=n,r}))),n}addDirectory(e,t){return si(this,e,{options:t},!0)}addText(e,t,n={}){return si(this,e,{data:t,Reader:Yt,Writer:Qt,options:n,uncompressedSize:t.length})}addBlob(e,t,n={}){return si(this,e,{data:t,Reader:Xt,Writer:Jt,options:n,uncompressedSize:t.size})}addData64URI(e,t,n={}){let r=t.length;for(;"="==t.charAt(r-1);)r--;const i=t.indexOf(",")+1;return si(this,e,{data:t,Reader:Vt,Writer:Kt,options:n,uncompressedSize:Math.floor(.75*(r-i))})}addUint8Array(e,t,n={}){return si(this,e,{data:t,Reader:hn,Writer:wn,options:n,uncompressedSize:t.length})}addHttpContent(e,t,n={}){return si(this,e,{data:t,Reader:class extends pn{constructor(e){super(e,n)}},options:n})}addReadable(e,t,n={}){return si(this,e,{Reader:()=>({readable:t}),options:n})}addFileSystemEntry(e,t={}){return ni(this,e,t)}addFileSystemHandle(e,t={}){return ni(this,e,t)}addFile(e,t={}){return t.lastModDate||(t.lastModDate=new Date(e.lastModified)),si(this,e.name,{data:e,Reader:()=>({readable:e.stream(),size:e.size}),options:t,uncompressedSize:e.size})}addData(e,t){return si(this,e,t)}importBlob(e,t){return this.importZip(new Xt(e),t)}importData64URI(e,t){return this.importZip(new Vt(e),t)}importUint8Array(e,t){return this.importZip(new hn(e),t)}importHttpContent(e,t){return this.importZip(new pn(e,t),t)}importReadable(e,t){return this.importZip({readable:e},t)}exportBlob(e={}){return this.exportZip(new Jt(e.mimeType||"application/zip"),e)}exportData64URI(e={}){return this.exportZip(new Kt(e.mimeType||"application/zip"),e)}exportUint8Array(e={}){return this.exportZip(new wn,e)}async exportWritable(e=new WritableStream,t={}){return await this.exportZip({writable:e},t),e}async importZip(e,t={}){await bn(e);const n=new lr(e,t),r=[],i=await n.getEntries();for(const e of i){let n=this;try{const i=e.filename.split("/"),s=i.pop();i.forEach(((t,s)=>{const a=n;n=n.getChildByName(t),n||(n=new Yr(this.fs,t,{data:s==i.length-1?e:null},a),r.push(n))})),e.directory||r.push(si(n,s,{data:e,Reader:$r(Object.assign({},t)),uncompressedSize:e.uncompressedSize,passThrough:t.passThrough}))}catch(t){try{t.cause={entry:e}}catch(e){}throw t}}return r}async exportZip(e,t){const n=this;t.bufferedWrite===J&&(t.bufferedWrite=!0),await Promise.all([ei(n,t.readerOptions),bn(e)]);const r=new qr(e,t);return await(async(e,t,n,r)=>{const i=t,s=new Map;await async function e(t,a){async function o(a){const o=r.relativePath?a.getRelativeName(i):a.getFullname(),c=a.options||{};let l={};if(a.data instanceof Kn){const{externalFileAttribute:e,versionMadeBy:t,comment:n,lastModDate:r,creationDate:i,lastAccessDate:s,uncompressedSize:o,encrypted:c,zipCrypto:d,signature:f,compressionMethod:u,extraFieldAES:p}=a.data;if(l={externalFileAttribute:e,versionMadeBy:t,comment:n,lastModDate:r,creationDate:i,lastAccessDate:s},a.passThrough){let e,t;0===u&&(e=0),p&&(t=p.strength),l=Object.assign(l,{passThrough:!0,encrypted:c,zipCrypto:d,signature:f,uncompressedSize:o,level:e,encryptionStrength:t,compressionMethod:u})}}await t.add(o,a.reader,Object.assign({directory:a.directory},Object.assign({},r,l,c,{onprogress:async e=>{if(r.onprogress){s.set(o,e);try{await r.onprogress(Array.from(s.values()).reduce(((e,t)=>e+t)),n)}catch(e){}}}}))),await e(t,a)}await(async()=>{if(r.bufferedWrite)await Promise.allSettled(a.children.map(o));else for(const e of a.children)await o(e)})()}(e,t)})(r,n,(e=>{let t=0;return e.forEach((function e(n){t+=n.uncompressedSize,n.children&&n.children.forEach(e)})),t})([n]),t),await r.close(),e.getData?e.getData():e.writable}getChildByName(e){const t=this.children;for(let n=0;n<t.length;n++){const r=t[n];if(r.name==e)return r}}isPasswordProtected(){const e=this.children;for(let t=0;t<e.length;t++)if(e[t].isPasswordProtected())return!0;return!1}async checkPassword(e,t={}){const n=this.children;return!(await Promise.all(n.map((n=>n.checkPassword(e,t))))).includes(!1)}}const Qr={FS:class{constructor(){ii(this)}get children(){return this.root.children}remove(e){ti(e),this.entries[e.id]=null}move(e,t){if(e==this.root)throw Error("Root directory cannot be moved");if(!t.directory)throw Error("Target entry is not a directory");if(t.isDescendantOf(e))throw Error("Entry is a ancestor of target entry");if(e!=t){if(t.getChildByName(e.name))throw Error("Entry filename already exists");ti(e),e.parent=t,t.children.push(e)}}find(e){const t=e.split("/");let n=this.root;for(let e=0;n&&e<t.length;e++)n=n.getChildByName(t[e]);return n}getById(e){return this.entries[e]}getChildByName(e){return this.root.getChildByName(e)}addDirectory(e,t){return this.root.addDirectory(e,t)}addText(e,t,n){return this.root.addText(e,t,n)}addBlob(e,t,n){return this.root.addBlob(e,t,n)}addData64URI(e,t,n){return this.root.addData64URI(e,t,n)}addUint8Array(e,t,n){return this.root.addUint8Array(e,t,n)}addHttpContent(e,t,n){return this.root.addHttpContent(e,t,n)}addReadable(e,t,n){return this.root.addReadable(e,t,n)}addFileSystemEntry(e,t){return this.root.addFileSystemEntry(e,t)}addFileSystemHandle(e,t){return this.root.addFileSystemHandle(e,t)}addFile(e,t){return this.root.addFile(e,t)}addData(e,t){return this.root.addData(e,t)}importBlob(e,t){return ii(this),this.root.importBlob(e,t)}importData64URI(e,t){return ii(this),this.root.importData64URI(e,t)}importUint8Array(e,t){return ii(this),this.root.importUint8Array(e,t)}importHttpContent(e,t){return ii(this),this.root.importHttpContent(e,t)}importReadable(e,t){return ii(this),this.root.importReadable(e,t)}importZip(e,t){return this.root.importZip(e,t)}exportBlob(e){return this.root.exportBlob(e)}exportData64URI(e){return this.root.exportData64URI(e)}exportUint8Array(e){return this.root.exportUint8Array(e)}exportWritable(e,t){return this.root.exportWritable(e,t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(e,t){return this.root.checkPassword(e,t)}},ZipDirectoryEntry:Yr,ZipFileEntry:Jr};function $r(e){return class extends Gt{constructor(e,t={}){super(),this.entry=e,this.options=t}async init(){const t=this;t.size=t.entry.uncompressedSize;const n=await t.entry.getData(new Jt,Object.assign({},t.options,e));t.data=n,t.blobReader=new Xt(n),super.init()}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}}}async function ei(e,t){e.children.length&&await Promise.all(e.children.map((async e=>{if(e.directory)await ei(e,t);else{const n=e.reader=new e.Reader(e.data,t);try{await bn(n)}catch(t){try{t.entryId=e.id,t.cause={entry:e}}catch(e){}throw t}e.uncompressedSize=n.size}})))}function ti(e){if(e.parent){const t=e.parent.children;t.forEach(((n,r)=>{n.id==e.id&&t.splice(r,1)}))}}function ni(e,t,n){return async function e(t,r,i){if(r)try{if((r.isFile||r.isDirectory)&&(r=await ri(r)),"file"==r.kind){const e=await r.getFile();i.push(t.addData(e.name,{Reader:()=>({readable:e.stream(),size:e.size}),options:Object.assign({},{lastModDate:new Date(e.lastModified)},n),uncompressedSize:e.size}))}else if("directory"==r.kind){const n=t.addDirectory(r.name);i.push(n);for await(const t of r.values())await e(n,t,i)}}catch(e){const t=e.message+(r?" ("+r.name+")":"");throw Error(t)}return i}(e,t,[])}async function ri(e){const t={name:e.name};if(e.isFile&&(t.kind="file",t.getFile=()=>new Promise(((t,n)=>e.file(t,n)))),e.isDirectory){t.kind="directory";const n=await(async e=>{const t=[];function n(e,r,i){e.readEntries((async s=>{if(s.length){for(const e of s)t.push(await ri(e));n(e,r,i)}else r(t)}),i)}return await new Promise(((t,r)=>n(e.createReader(),t,r))),{[Symbol.iterator](){let e=0;return{next(){const n={value:t[e],done:e===t.length};return e++,n}}}}})(e);t.values=()=>n}return t}function ii(e){e.entries=[],e.root=new Yr(e)}function si(e,t,n,r){if(e.directory)return r?new Yr(e.fs,t,n,e):new Jr(e.fs,t,n,e);throw Error("Parent entry is not a directory")}let ai;try{ai=import.meta.url}catch(e){}se({baseURL:ai}),((e,t={})=>{const n='const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];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;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(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(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.v=[1732584193,4023233417,2562383102,271733878,3285377520],t.S=[1518500249,1859775393,2400959708,3395469782],e?(t.C=e.C.slice(0),t.A=e.A.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.C=e.v.slice(0),e.A=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=I.I.k(e));const n=t.A=_.concat(t.A,e),r=t._,i=t._=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return 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}R(e,t){return t<<e|t>>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(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)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},B:class{constructor(e){const t=this,n=t.U=P,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||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.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{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}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(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 _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.m(t)}function ae(e,t){return e.k(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,te:new x(r[0]),ne:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.te.append([t]),n=~e.te.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.ne.append([s>>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[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 He(){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.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=573,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;573>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function Le(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}He.ke=[0,1,2,3,4,5,6,7].concat(...Te([[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]])),He.ve=[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],He.Se=[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],He.ze=e=>256>e?je[e]:je[256+(e>>>7)],He.Ce=[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],He.xe=[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],He.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le.Ie=We([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,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}Le.Ee=We([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,qe[t]]))),Le.Me=new Le(Le.Ie,He.Ce,257,286,15),Le.Ue=new Le(Le.Ee,He.xe,0,30,15),Le.Ke=new Le(null,He.Ae,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ke[n]+256+1)]++,M[2*He.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.xe[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Oe[c],s=e.Te[c],c++,0===r?Y(s,t):(i=He.ke[s],Y(i+256+1,t),o=He.Ce[i],0!==o&&(s-=He.ve[i],X(s,o)),r--,i=He.ze(r),Y(i,n),o=He.xe[i],0!==o&&(r-=He.Se[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*He._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le.Ie,Le.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i<e.fe&&$e(t,r[i+1],r[i],e.ue)&&i++,!$e(t,s,r[i],e.ue));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.Le=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.qe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ne=new i(4*T),s=4*T,e.Oe=new o(T),e.Te=new i(T),D=S,V=G,(t=>(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Xe,c=0,K.se=E,K.oe=Le.Me,N.se=M,N.oe=Le.Ue,O.se=U,O.oe=Le.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Xe?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Be!=Je[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ze=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.et||!r.tt&&0!==r.je||n==Ye&&4!=i)return r.Fe=Qe[4],Oe;if(0===r.nt)return r.Fe=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Qe[7],-5;if(n==Ye&&0!==t.je)return r.Fe=Qe[7],-5;if(0!==t.je||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.nt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.nt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le.Ie),$(),9>1+H+10-F&&(X(2,3),Y(256,Le.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={Le(e,t){const n=this;return n.qe=new et,t||(t=15),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):Oe},Xe(){const e=this;if(!e.qe)return Oe;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):Oe},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):Oe},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Fe="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=st),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Fe="oversubscribed literal/length tree":-4!=h&&(w.Fe="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Fe="oversubscribed distance tree":h==it?(w.Fe="incomplete distance tree",h=st):-4!=h&&(w.Fe="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ct,h=o.ft,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--u);else o.ut.set(o.ut.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.ut[y++]=o.ut[S++],o.ut[y++]=o.ut[S++],k-=2):(o.ut.set(o.ut.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--k);else o.ut.set(o.ut.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,1):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.wt=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Fe="invalid literal/length code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Fe="invalid distance code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);e.ut[S++]=e.ut[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,e.ut[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);t=8;case 8:return m=1,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 9:return m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);default:return m=rt,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m)}},e.dt=()=>{}}ht.yt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ft=0,n.ct=0,n.ut=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.dt(e),s=0,n.ft=0,n.ct=0,n.read=n.write=0},n.reset(e,null),n.ht=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.wt=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.yt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Fe="invalid block type",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Fe="invalid stored block lengths",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.ut.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Fe="too many length or distance symbols",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Fe="invalid bit length repeat",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,1!=(t=w.wt(n,e,t)))return n.ht(e,t);if(t=0,w.dt(e),m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);s=8;case 8:return t=1,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);case 9:return t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);default:return t=rt,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}}},n.dt=e=>{n.reset(e,null),n.ut=null,d=null},n.bt=(e,t,r)=>{n.ut.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),0):rt}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.dt(t),e.vt=null,0),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),rt):(e.Ct=r,n.kt.vt=new yt(n,1<<r),t(n),0)),e._t=(e,t)=>{let n,r;if(!e||!e.kt||!e.tt)return rt;const s=e.kt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.lt(e.rt++)))){s.mode=mt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=mt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.lt(e.rt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.lt(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.lt(e.rt++),s.mode=6,2);case 6:return s.mode=mt,e.Fe="need dictionary",s.marker=0,rt;case 7:if(n=s.vt.wt(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,1;case mt:return st;default:return rt}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return rt;const i=e.kt;return s<1<<i.Ct||(s=(1<<i.Ct)-1,r=n-s),i.vt.bt(t,r,s),i.mode=7,0},e.Pt=e=>{let n,r,s,i,o;if(!e||!e.kt)return rt;const c=e.kt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.je))return it;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.lt(r)==bt[s]?s++:s=0!==e.lt(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?st:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,0)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===it){if(0!==t.je)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Fe);if((c||1===a)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}kt.prototype={At(e){const t=this;return t.kt=new gt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):rt},xt(){const e=this;if(!e.kt)return rt;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):rt},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):rt},lt(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};\n',r=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"}));se({workerScripts:{inflate:[r],deflate:[r]}})})(),se({Deflate:function(e){const t=new w,n=(r=e&&e.chunkSize?e.chunkSize:65536)+5*(Math.floor(r/16383)+1);var r;const i=new Uint8Array(n);let s=e?e.level:-1;void 0===s&&(s=-1),t.deflateInit(s),t.next_out=i,this.append=(e,r)=>{let s,a,o=0,c=0,l=0;const d=[];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,s=t.deflate(0),0!=s)throw Error("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==n?d.push(new Uint8Array(i)):d.push(i.subarray(0,t.next_out_index))),l+=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 d.length>1?(a=new Uint8Array(l),d.forEach((e=>{a.set(e,c),c+=e.length}))):a=d[0]?new Uint8Array(d[0]):new Uint8Array,a}},this.flush=()=>{let e,r,s=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 Error("deflating: "+t.msg);n-t.avail_out>0&&o.push(i.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 Uint8Array(a),o.forEach((e=>{r.set(e,s),s+=e.length})),r}},Inflate:function(e){const t=new R,n=e&&e.chunkSize?Math.floor(2*e.chunkSize):131072,r=new Uint8Array(n);let i=!1;t.inflateInit(),t.next_out=r,this.append=(e,s)=>{const a=[];let o,c,l=0,d=0,f=0;if(0!==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,0!==t.avail_in||i||(t.next_in_index=0,i=!0),o=t.inflate(0),i&&o===b){if(0!==t.avail_in)throw Error("inflating: bad input")}else if(0!==o&&1!==o)throw Error("inflating: "+t.msg);if((i||1===o)&&t.avail_in===e.length)throw Error("inflating: bad input");t.next_out_index&&(t.next_out_index===n?a.push(new Uint8Array(r)):a.push(r.subarray(0,t.next_out_index))),f+=t.next_out_index,s&&t.next_in_index>0&&t.next_in_index!=l&&(s(t.next_in_index),l=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return a.length>1?(c=new Uint8Array(f),a.forEach((e=>{c.set(e,d),d+=e.length}))):c=a[0]?new Uint8Array(a[0]):new Uint8Array,c}},this.flush=()=>{t.inflateEnd()}}});export{Xt as BlobReader,Jt as BlobWriter,Vt as Data64URIReader,Kt as Data64URIWriter,Xn as ERR_BAD_FORMAT,Qn as ERR_CENTRAL_DIRECTORY_NOT_FOUND,kr as ERR_DUPLICATED_NAME,tr as ERR_ENCRYPTED,Yn as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Jn as ERR_EOCDR_NOT_FOUND,er as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,Wt as ERR_HTTP_RANGE,zr as ERR_INVALID_COMMENT,Cr as ERR_INVALID_ENCRYPTION_STRENGTH,Sr as ERR_INVALID_ENTRY_COMMENT,Ar as ERR_INVALID_ENTRY_NAME,Ur as ERR_INVALID_EXTRAFIELD_DATA,Dr as ERR_INVALID_EXTRAFIELD_TYPE,ve as ERR_INVALID_PASSWORD,ye as ERR_INVALID_SIGNATURE,jr as ERR_INVALID_VERSION,It as ERR_ITERATOR_COMPLETED_TOO_SOON,$n as ERR_LOCAL_FILE_HEADER_NOT_FOUND,ir as ERR_SPLIT_ZIP_FILE,Fr as ERR_UNDEFINED_UNCOMPRESSED_SIZE,rr as ERR_UNSUPPORTED_COMPRESSION,nr as ERR_UNSUPPORTED_ENCRYPTION,Er as ERR_UNSUPPORTED_FORMAT,mn as HttpRangeReader,pn as HttpReader,Gt as Reader,gn as SplitDataReader,xn as SplitDataWriter,kn as SplitZipReader,zn as SplitZipWriter,Yt as TextReader,Qt as TextWriter,hn as Uint8ArrayReader,wn as Uint8ArrayWriter,Zt as Writer,lr as ZipReader,dr as ZipReaderStream,qr as ZipWriter,Wr as ZipWriterStream,se as configure,Qr as fs,le as getMimeType,Rt as initShimAsyncCodec,Tt as terminateWorkers};