((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})})(this,(function(e){"use strict";const{Array:t,Object:n,String:r,Number:i,BigInt:s,Math:a,Date:o,Map:l,Set:c,Response:f,URL:u,Error:d,Uint8Array:w,Uint16Array:h,Uint32Array:p,DataView:_,Blob:g,Promise:m,TextEncoder:b,TextDecoder:y,document:x,crypto:k,btoa:S,TransformStream:v,ReadableStream:z,WritableStream:A,CompressionStream:C,DecompressionStream:F,navigator:D,Worker:E}="undefined"!=typeof globalThis?globalThis:this||self;var R=void 0!==x?x.currentScript:null;const T=15,I=573,W=-2;function U(e){return j(e.map((([e,n])=>new t(e).fill(n,0,e))))}function j(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?j(n):n)),[])}const L=[0,1,2,3].concat(...U([[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 N(){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 o,l,c,f=-1;for(n.heap_len=0,n.heap_max=I,o=0;s>o;o++)0!==r[2*o]?(n.heap[++n.heap_len]=f=o,n.depth[o]=0):r[2*o+1]=0;for(;2>n.heap_len;)c=n.heap[++n.heap_len]=2>f?++f:0,r[2*c]=1,n.depth[c]=0,n.opt_len--,i&&(n.static_len-=i[2*c+1]);for(e.max_code=f,o=a.floor(n.heap_len/2);o>=1;o--)n.pqdownheap(r,o);c=s;do{o=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(r,1),l=n.heap[1],n.heap[--n.heap_max]=o,n.heap[--n.heap_max]=l,r[2*c]=r[2*o]+r[2*l],n.depth[c]=a.max(n.depth[o],n.depth[l])+1,r[2*o+1]=r[2*l+1]=c,n.heap[1]=c++,n.pqdownheap(r,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],(t=>{const n=e.dyn_tree,r=e.stat_desc.static_tree,i=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,a=e.stat_desc.max_length;let o,l,c,f,u,d,w=0;for(f=0;T>=f;f++)t.bl_count[f]=0;for(n[2*t.heap[t.heap_max]+1]=0,o=t.heap_max+1;I>o;o++)l=t.heap[o],f=n[2*n[2*l+1]+1]+1,f>a&&(f=a,w++),n[2*l+1]=f,l>e.max_code||(t.bl_count[f]++,u=0,s>l||(u=i[l-s]),d=n[2*l],t.opt_len+=d*(f+u),r&&(t.static_len+=d*(r[2*l+1]+u)));if(0!==w){do{for(f=a-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[a]--,w-=2}while(w>0);for(f=a;0!==f;f--)for(l=t.bl_count[f];0!==l;)c=t.heap[--o],c>e.max_code||(n[2*c+1]!=f&&(t.opt_len+=(f-n[2*c+1])*n[2*c],n[2*c+1]=f),l--)}})(n),((e,n,r)=>{const i=[];let s,a,o,l=0;for(s=1;T>=s;s++)i[s]=l=l+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 q(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}N._length_code=[0,1,2,3,4,5,6,7].concat(...U([[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]])),N.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],N.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],N.d_code=e=>256>e?L[e]:L[256+(e>>>7)],N.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],N.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],N.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],N.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const O=U([[144,8],[112,9],[24,7],[8,8]]);q.static_ltree=j([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,O[t]])));const P=U([[30,5]]);function M(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}q.static_dtree=j([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,P[t]]))),q.static_l_desc=new q(q.static_ltree,N.extra_lbits,257,286,T),q.static_d_desc=new q(q.static_dtree,N.extra_dbits,0,30,T),q.static_bl_desc=new q(null,N.extra_blbits,0,19,7);const G=[new M(0,0,0,0,0),new M(4,4,8,4,1),new M(4,5,16,8,1),new M(4,6,32,32,1),new M(4,4,16,16,2),new M(8,16,32,32,2),new M(8,16,128,128,2),new M(8,32,128,256,2),new M(32,128,258,1024,2),new M(32,258,258,4096,2)],B=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],H=113,V=666,K=262;function Z(e,t,n,r){const i=e[2*t],s=e[2*n];return s>i||i==s&&r[t]<=r[n]}function X(){const e=this;let t,n,r,i,s,o,l,c,f,u,d,p,_,g,m,b,y,x,k,S,v,z,A,C,F,D,E,R,T,I,U,j,L;const O=new N,P=new N,M=new N;let X,Y,Q,J,$,ee;function te(){let t;for(t=0;286>t;t++)U[2*t]=0;for(t=0;30>t;t++)j[2*t]=0;for(t=0;19>t;t++)L[2*t]=0;U[512]=1,e.opt_len=e.static_len=0,Y=Q=0}function ne(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 l=0;t>=l;l++)n=i,i=e[2*(l+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 re(t){e.pending_buf[e.pending++]=t}function ie(e){re(255&e),re(e>>>8&255)}function se(e,t){let n;const r=t;ee>16-r?(n=e,$|=n<<ee&65535,ie($),$=n>>>16-ee,ee+=r-16):($|=e<<ee&65535,ee+=r)}function ae(e,t){const n=2*e;se(65535&t[n],65535&t[n+1])}function oe(e,t){let n,r,i=-1,s=e[1],a=0,o=7,l=4;for(0===s&&(o=138,l=3),n=0;t>=n;n++)if(r=s,s=e[2*(n+1)+1],++a>=o||r!=s){if(l>a)do{ae(r,L)}while(0!=--a);else 0!==r?(r!=i&&(ae(r,L),a--),ae(16,L),se(a-3,2)):a>10?(ae(18,L),se(a-11,7)):(ae(17,L),se(a-3,3));a=0,i=r,0===s?(o=138,l=3):r==s?(o=6,l=3):(o=7,l=4)}}function le(){16==ee?(ie($),$=0,ee=0):8>ee||(re(255&$),$>>>=8,ee-=8)}function ce(t,n){let r,i,s;if(e.dist_buf[Y]=t,e.lc_buf[Y]=255&n,Y++,0===t?U[2*n]++:(Q++,t--,U[2*(N._length_code[n]+256+1)]++,j[2*N.d_code(t)]++),!(8191&Y)&&E>2){for(r=8*Y,i=v-y,s=0;30>s;s++)r+=j[2*s]*(5+N.extra_dbits[s]);if(r>>>=3,Q<a.floor(Y/2)&&r<a.floor(i/2))return!0}return Y==X-1}function fe(t,n){let r,i,s,a,o=0;if(0!==Y)do{r=e.dist_buf[o],i=e.lc_buf[o],o++,0===r?ae(i,t):(s=N._length_code[i],ae(s+256+1,t),a=N.extra_lbits[s],0!==a&&(i-=N.base_length[s],se(i,a)),r--,s=N.d_code(r),ae(s,n),a=N.extra_dbits[s],0!==a&&(r-=N.base_dist[s],se(r,a)))}while(Y>o);ae(256,t),J=t[513]}function ue(){ee>8?ie($):ee>0&&re(255&$),$=0,ee=0}function de(t,n,r){se(0+(r?1:0),3),((t,n)=>{ue(),J=8,ie(n),ie(~n),e.pending_buf.set(c.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function we(n){((t,n,r)=>{let i,s,a=0;E>0?(O.build_tree(e),P.build_tree(e),a=(()=>{let t;for(ne(U,O.max_code),ne(j,P.max_code),M.build_tree(e),t=18;t>=3&&0===L[2*N.bl_order[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==t?s==i?(se(2+(r?1:0),3),fe(q.static_ltree,q.static_dtree)):(se(4+(r?1:0),3),((e,t,n)=>{let r;for(se(e-257,5),se(t-1,5),se(n-4,4),r=0;n>r;r++)se(L[2*N.bl_order[r]+1],3);oe(U,e-1),oe(j,t-1)})(O.max_code+1,P.max_code+1,a+1),fe(U,j)):de(t,n,r),te(),r&&ue()})(0>y?-1:y,v-y,n),y=v,t.flush_pending()}function he(){let e,n,r,i;do{if(i=f-A-v,0===i&&0===v&&0===A)i=s;else if(-1==i)i--;else if(v>=s+s-K){c.set(c.subarray(s,s+s),0),z-=s,v-=s,y-=s,e=_,r=e;do{n=65535&d[--r],d[r]=s>n?0:n-s}while(0!=--e);e=s,r=e;do{n=65535&u[--r],u[r]=s>n?0:n-s}while(0!=--e);i+=s}if(0===t.avail_in)return;e=t.read_buf(c,v+A,i),A+=e,3>A||(p=255&c[v],p=(p<<b^255&c[v+1])&m)}while(K>A&&0!==t.avail_in)}function pe(e){let t,n,r=F,i=v,a=C;const o=v>s-K?v-(s-K):0;let f=I;const d=l,w=v+258;let h=c[i+a-1],p=c[i+a];T>C||(r>>=2),f>A&&(f=A);do{if(t=e,c[t+a]==p&&c[t+a-1]==h&&c[t]==c[i]&&c[++t]==c[i+1]){i+=2,t++;do{}while(c[++i]==c[++t]&&c[++i]==c[++t]&&c[++i]==c[++t]&&c[++i]==c[++t]&&c[++i]==c[++t]&&c[++i]==c[++t]&&c[++i]==c[++t]&&c[++i]==c[++t]&&w>i);if(n=258-(w-i),i=w-258,n>a){if(z=e,a=n,n>=f)break;h=c[i+a-1],p=c[i+a]}}}while((e=65535&u[e&d])>o&&0!=--r);return a>A?A:a}e.depth=[],e.bl_count=[],e.heap=[],U=[],j=[],L=[],e.pqdownheap=(t,n)=>{const r=e.heap,i=r[n];let s=n<<1;for(;s<=e.heap_len&&(s<e.heap_len&&Z(t,r[s+1],r[s],e.depth)&&s++,!Z(t,i,r[s],e.depth));)r[n]=r[s],n=s,s<<=1;r[n]=i},e.deflateInit=(t,k,z,N,B,V)=>(N||(N=8),B||(B=8),V||(V=0),t.msg=null,-1==k&&(k=6),1>B||B>9||8!=N||9>z||z>15||0>k||k>9||0>V||V>2?W:(t.dstate=e,o=z,s=1<<o,l=s-1,g=B+7,_=1<<g,m=_-1,b=a.floor((g+3-1)/3),c=new w(2*s),u=[],d=[],X=1<<B+6,e.pending_buf=new w(4*X),r=4*X,e.dist_buf=new h(X),e.lc_buf=new w(X),E=k,R=V,(t=>(t.total_in=t.total_out=0,t.msg=null,e.pending=0,e.pending_out=0,n=H,i=0,O.dyn_tree=U,O.stat_desc=q.static_l_desc,P.dyn_tree=j,P.stat_desc=q.static_d_desc,M.dyn_tree=L,M.stat_desc=q.static_bl_desc,$=0,ee=0,J=8,te(),(()=>{f=2*s,d[_-1]=0;for(let e=0;_-1>e;e++)d[e]=0;D=G[E].max_lazy,T=G[E].good_length,I=G[E].nice_length,F=G[E].max_chain,v=0,y=0,A=0,x=C=2,S=0,p=0})(),0))(t))),e.deflateEnd=()=>42!=n&&n!=H&&n!=V?W:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,d=null,u=null,c=null,e.dstate=null,n==H?-3:0),e.deflateParams=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?W:(G[E].func!=G[t].func&&0!==e.total_in&&(r=e.deflate(1)),E!=t&&(E=t,D=G[E].max_lazy,T=G[E].good_length,I=G[E].nice_length,F=G[E].max_chain),R=n,r)},e.deflateSetDictionary=(e,t,r)=>{let i,a=r,o=0;if(!t||42!=n)return W;if(3>a)return 0;for(a>s-K&&(a=s-K,o=r-a),c.set(t.subarray(o,o+a),0),v=a,y=a,p=255&c[0],p=(p<<b^255&c[1])&m,i=0;a-3>=i;i++)p=(p<<b^255&c[i+2])&m,u[i&l]=d[p],d[p]=i;return 0},e.deflate=(a,f)=>{let w,h,g,F,T;if(f>4||0>f)return W;if(!a.next_out||!a.next_in&&0!==a.avail_in||n==V&&4!=f)return a.msg=B[4],W;if(0===a.avail_out)return a.msg=B[7],-5;var I;if(t=a,F=i,i=f,42==n&&(h=8+(o-8<<4)<<8,g=(E-1&255)>>1,g>3&&(g=3),h|=g<<6,0!==v&&(h|=32),h+=31-h%31,n=H,re((I=h)>>8&255),re(255&I)),0!==e.pending){if(t.flush_pending(),0===t.avail_out)return i=-1,0}else if(0===t.avail_in&&F>=f&&4!=f)return t.msg=B[7],-5;if(n==V&&0!==t.avail_in)return a.msg=B[7],-5;if(0!==t.avail_in||0!==A||0!=f&&n!=V){switch(T=-1,G[E].func){case 0:T=(e=>{let n,i=65535;for(i>r-5&&(i=r-5);;){if(1>=A){if(he(),0===A&&0==e)return 0;if(0===A)break}if(v+=A,A=0,n=y+i,(0===v||v>=n)&&(A=v-n,v=n,we(!1),0===t.avail_out))return 0;if(v-y>=s-K&&(we(!1),0===t.avail_out))return 0}return we(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(f);break;case 1:T=(e=>{let n,r=0;for(;;){if(K>A){if(he(),K>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<b^255&c[v+2])&m,r=65535&d[p],u[v&l]=d[p],d[p]=v),0===r||(v-r&65535)>s-K||2!=R&&(x=pe(r)),3>x)n=ce(0,255&c[v]),A--,v++;else if(n=ce(v-z,x-3),A-=x,x>D||3>A)v+=x,x=0,p=255&c[v],p=(p<<b^255&c[v+1])&m;else{x--;do{v++,p=(p<<b^255&c[v+2])&m,r=65535&d[p],u[v&l]=d[p],d[p]=v}while(0!=--x);v++}if(n&&(we(!1),0===t.avail_out))return 0}return we(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(f);break;case 2:T=(e=>{let n,r,i=0;for(;;){if(K>A){if(he(),K>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<b^255&c[v+2])&m,i=65535&d[p],u[v&l]=d[p],d[p]=v),C=x,k=z,x=2,0!==i&&D>C&&s-K>=(v-i&65535)&&(2!=R&&(x=pe(i)),5>=x&&(1==R||3==x&&v-z>4096)&&(x=2)),3>C||x>C)if(0!==S){if(n=ce(0,255&c[v-1]),n&&we(!1),v++,A--,0===t.avail_out)return 0}else S=1,v++,A--;else{r=v+A-3,n=ce(v-1-k,C-3),A-=C-1,C-=2;do{++v>r||(p=(p<<b^255&c[v+2])&m,i=65535&d[p],u[v&l]=d[p],d[p]=v)}while(0!=--C);if(S=0,x=2,v++,n&&(we(!1),0===t.avail_out))return 0}}return 0!==S&&(n=ce(0,255&c[v-1]),S=0),we(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(f)}if(2!=T&&3!=T||(n=V),0==T||2==T)return 0===t.avail_out&&(i=-1),0;if(1==T){if(1==f)se(2,3),ae(256,q.static_ltree),le(),9>1+J+10-ee&&(se(2,3),ae(256,q.static_ltree),le()),J=7;else if(de(0,0,!1),3==f)for(w=0;_>w;w++)d[w]=0;if(t.flush_pending(),0===t.avail_out)return i=-1,0}}return 4!=f?0:1}}function Y(){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}Y.prototype={deflateInit(e,t){const n=this;return n.dstate=new X,t||(t=T),n.dstate.deflateInit(n,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):W},deflateEnd(){const e=this;if(!e.dstate)return W;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const n=this;return n.dstate?n.dstate.deflateParams(n,e,t):W},deflateSetDictionary(e,t){const n=this;return n.dstate?n.dstate.deflateSetDictionary(n,e,t):W},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 Q=0,J=1,$=-2,ee=-3,te=-4,ne=-5,re=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ie=1440,se=[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],ae=[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],oe=[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],le=[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],ce=[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],fe=[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],ue=15;function de(){let e,t,n,r,i,s;function a(e,t,a,o,l,c,f,u,d,w,h){let p,_,g,m,b,y,x,k,S,v,z,A,C,F,D;v=0,b=a;do{n[e[t+v]]++,v++,b--}while(0!==b);if(n[0]==a)return f[0]=-1,u[0]=0,Q;for(k=u[0],y=1;ue>=y&&0===n[y];y++);for(x=y,y>k&&(k=y),b=ue;0!==b&&0===n[b];b--);for(g=b,k>b&&(k=b),u[0]=k,F=1<<y;b>y;y++,F<<=1)if(0>(F-=n[y]))return ee;if(0>(F-=n[b]))return ee;for(n[b]+=F,s[1]=y=0,v=1,C=2;0!=--b;)s[C]=y+=n[v],C++,v++;b=0,v=0;do{0!==(y=e[t+v])&&(h[s[y]++]=b),v++}while(++b<a);for(a=s[g],s[0]=b=0,v=0,m=-1,A=-k,i[0]=0,z=0,D=0;g>=x;x++)for(p=n[x];0!=p--;){for(;x>A+k;){if(m++,A+=k,D=g-A,D=D>k?k:D,(_=1<<(y=x-A))>p+1&&(_-=p+1,C=x,D>y))for(;++y<D&&(_<<=1)>n[++C];)_-=n[C];if(D=1<<y,w[0]+D>ie)return ee;i[m]=z=w[0],w[0]+=D,0!==m?(s[m]=b,r[0]=y,r[1]=k,y=b>>>A-k,r[2]=z-i[m-1]-y,d.set(r,3*(i[m-1]+y))):f[0]=z}for(r[1]=x-A,a>v?h[v]<o?(r[0]=256>h[v]?0:96,r[2]=h[v++]):(r[0]=c[h[v]-o]+16+64,r[2]=l[h[v++]-o]):r[0]=192,_=1<<x-A,y=b>>>A;D>y;y+=_)d.set(r,3*(z+y));for(y=1<<x-1;b&y;y>>>=1)b^=y;for(b^=y,S=(1<<A)-1;(b&S)!=s[m];)m--,A-=k,S=(1<<A)-1}return 0!==F&&1!=g?ne:Q}function o(a){let o;for(e||(e=[],t=[],n=new Int32Array(ue+1),r=[],i=new Int32Array(ue),s=new Int32Array(ue+1)),t.length<a&&(t=[]),o=0;a>o;o++)t[o]=0;for(o=0;ue+1>o;o++)n[o]=0;for(o=0;3>o;o++)r[o]=0;i.set(n.subarray(0,ue),0),s.set(n.subarray(0,ue+1),0)}this.inflate_trees_bits=(n,r,i,s,l)=>{let c;return o(19),e[0]=0,c=a(n,0,19,19,null,null,i,r,s,e,t),c==ee?l.msg="oversubscribed dynamic bit lengths tree":c!=ne&&0!==r[0]||(l.msg="incomplete dynamic bit lengths tree",c=ee),c},this.inflate_trees_dynamic=(n,r,i,s,l,c,f,u,d)=>{let w;return o(288),e[0]=0,w=a(i,0,n,257,oe,le,c,s,u,e,t),w!=Q||0===s[0]?(w==ee?d.msg="oversubscribed literal/length tree":w!=te&&(d.msg="incomplete literal/length tree",w=ee),w):(o(288),w=a(i,n,r,0,ce,fe,f,l,u,e,t),w!=Q||0===l[0]&&n>257?(w==ee?d.msg="oversubscribed distance tree":w==ne?(d.msg="incomplete distance tree",w=ee):w!=te&&(d.msg="empty distance tree with lengths",w=ee),w):Q)}}de.inflate_trees_fixed=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=se,r[0]=ae,Q);const we=0,he=1,pe=2,_e=3,ge=4,me=5,be=6,ye=7,xe=8,ke=9;function Se(){const e=this;let t,n,r,i,s=0,a=0,o=0,l=0,c=0,f=0,u=0,d=0,w=0,h=0;function p(e,t,n,r,i,s,a,o){let l,c,f,u,d,w,h,p,_,g,m,b,y,x,k,S;h=o.next_in_index,p=o.avail_in,d=a.bitb,w=a.bitk,_=a.write,g=_<a.read?a.read-_-1:a.end-_,m=re[e],b=re[t];do{for(;20>w;)p--,d|=(255&o.read_byte(h++))<<w,w+=8;if(l=d&m,c=n,f=r,S=3*(f+l),0!==(u=c[S]))for(;;){if(d>>=c[S+1],w-=c[S+1],16&u){for(u&=15,y=c[S+2]+(d&re[u]),d>>=u,w-=u;15>w;)p--,d|=(255&o.read_byte(h++))<<w,w+=8;for(l=d&b,c=i,f=s,S=3*(f+l),u=c[S];;){if(d>>=c[S+1],w-=c[S+1],16&u){for(u&=15;u>w;)p--,d|=(255&o.read_byte(h++))<<w,w+=8;if(x=c[S+2]+(d&re[u]),d>>=u,w-=u,g-=y,x>_){k=_-x;do{k+=a.end}while(0>k);if(u=a.end-k,y>u){if(y-=u,_-k>0&&u>_-k)do{a.win[_++]=a.win[k++]}while(0!=--u);else a.win.set(a.win.subarray(k,k+u),_),_+=u,k+=u,u=0;k=0}}else k=_-x,_-k>0&&2>_-k?(a.win[_++]=a.win[k++],a.win[_++]=a.win[k++],y-=2):(a.win.set(a.win.subarray(k,k+2),_),_+=2,k+=2,y-=2);if(_-k>0&&y>_-k)do{a.win[_++]=a.win[k++]}while(0!=--y);else a.win.set(a.win.subarray(k,k+y),_),_+=y,k+=y,y=0;break}if(64&u)return o.msg="invalid distance code",y=o.avail_in-p,y=y>w>>3?w>>3:y,p+=y,h-=y,w-=y<<3,a.bitb=d,a.bitk=w,o.avail_in=p,o.total_in+=h-o.next_in_index,o.next_in_index=h,a.write=_,ee;l+=c[S+2],l+=d&re[u],S=3*(f+l),u=c[S]}break}if(64&u)return 32&u?(y=o.avail_in-p,y=y>w>>3?w>>3:y,p+=y,h-=y,w-=y<<3,a.bitb=d,a.bitk=w,o.avail_in=p,o.total_in+=h-o.next_in_index,o.next_in_index=h,a.write=_,J):(o.msg="invalid literal/length code",y=o.avail_in-p,y=y>w>>3?w>>3:y,p+=y,h-=y,w-=y<<3,a.bitb=d,a.bitk=w,o.avail_in=p,o.total_in+=h-o.next_in_index,o.next_in_index=h,a.write=_,ee);if(l+=c[S+2],l+=d&re[u],S=3*(f+l),0===(u=c[S])){d>>=c[S+1],w-=c[S+1],a.win[_++]=c[S+2],g--;break}}else d>>=c[S+1],w-=c[S+1],a.win[_++]=c[S+2],g--}while(g>=258&&p>=10);return y=o.avail_in-p,y=y>w>>3?w>>3:y,p+=y,h-=y,w-=y<<3,a.bitb=d,a.bitk=w,o.avail_in=p,o.total_in+=h-o.next_in_index,o.next_in_index=h,a.write=_,Q}e.init=(e,s,a,o,l,c)=>{t=we,u=e,d=s,r=a,w=o,i=l,h=c,n=null},e.proc=(e,_,g)=>{let m,b,y,x,k,S,v,z=0,A=0,C=0;for(C=_.next_in_index,x=_.avail_in,z=e.bitb,A=e.bitk,k=e.write,S=k<e.read?e.read-k-1:e.end-k;;)switch(t){case we:if(S>=258&&x>=10&&(e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,g=p(u,d,r,w,i,h,e,_),C=_.next_in_index,x=_.avail_in,z=e.bitb,A=e.bitk,k=e.write,S=k<e.read?e.read-k-1:e.end-k,g!=Q)){t=g==J?ye:ke;break}o=u,n=r,a=w,t=he;case he:for(m=o;m>A;){if(0===x)return e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);g=Q,x--,z|=(255&_.read_byte(C++))<<A,A+=8}if(b=3*(a+(z&re[m])),z>>>=n[b+1],A-=n[b+1],y=n[b],0===y){l=n[b+2],t=be;break}if(16&y){c=15&y,s=n[b+2],t=pe;break}if(!(64&y)){o=y,a=b/3+n[b+2];break}if(32&y){t=ye;break}return t=ke,_.msg="invalid literal/length code",g=ee,e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);case pe:for(m=c;m>A;){if(0===x)return e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);g=Q,x--,z|=(255&_.read_byte(C++))<<A,A+=8}s+=z&re[m],z>>=m,A-=m,o=d,n=i,a=h,t=_e;case _e:for(m=o;m>A;){if(0===x)return e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);g=Q,x--,z|=(255&_.read_byte(C++))<<A,A+=8}if(b=3*(a+(z&re[m])),z>>=n[b+1],A-=n[b+1],y=n[b],16&y){c=15&y,f=n[b+2],t=ge;break}if(!(64&y)){o=y,a=b/3+n[b+2];break}return t=ke,_.msg="invalid distance code",g=ee,e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);case ge:for(m=c;m>A;){if(0===x)return e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);g=Q,x--,z|=(255&_.read_byte(C++))<<A,A+=8}f+=z&re[m],z>>=m,A-=m,t=me;case me:for(v=k-f;0>v;)v+=e.end;for(;0!==s;){if(0===S&&(k==e.end&&0!==e.read&&(k=0,S=k<e.read?e.read-k-1:e.end-k),0===S&&(e.write=k,g=e.inflate_flush(_,g),k=e.write,S=k<e.read?e.read-k-1:e.end-k,k==e.end&&0!==e.read&&(k=0,S=k<e.read?e.read-k-1:e.end-k),0===S)))return e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);e.win[k++]=e.win[v++],S--,v==e.end&&(v=0),s--}t=we;break;case be:if(0===S&&(k==e.end&&0!==e.read&&(k=0,S=k<e.read?e.read-k-1:e.end-k),0===S&&(e.write=k,g=e.inflate_flush(_,g),k=e.write,S=k<e.read?e.read-k-1:e.end-k,k==e.end&&0!==e.read&&(k=0,S=k<e.read?e.read-k-1:e.end-k),0===S)))return e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);g=Q,e.win[k++]=l,S--,t=we;break;case ye:if(A>7&&(A-=8,x++,C--),e.write=k,g=e.inflate_flush(_,g),k=e.write,S=k<e.read?e.read-k-1:e.end-k,e.read!=e.write)return e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);t=xe;case xe:return g=J,e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);case ke:return g=ee,e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g);default:return g=$,e.bitb=z,e.bitk=A,_.avail_in=x,_.total_in+=C-_.next_in_index,_.next_in_index=C,e.write=k,e.inflate_flush(_,g)}},e.free=()=>{}}const ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ze=0,Ae=1,Ce=2,Fe=3,De=4,Ee=5,Re=6,Te=7,Ie=8,We=9;function Ue(e,t){const n=this;let r,i=ze,s=0,a=0,o=0;const l=[0],c=[0],f=new Se;let u=0,d=new Int32Array(3*ie);const h=new de;n.bitk=0,n.bitb=0,n.win=new w(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),i==Re&&f.free(e),i=ze,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==ne&&(t=Q),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==ne&&(t=Q),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 w,p,_,g,m,b,y,x;for(g=e.next_in_index,m=e.avail_in,p=n.bitb,_=n.bitk,b=n.write,y=b<n.read?n.read-b-1:n.end-b;;){let k,S,v,z,A,C,F,D;switch(i){case ze:for(;3>_;){if(0===m)return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);t=Q,m--,p|=(255&e.read_byte(g++))<<_,_+=8}switch(w=7&p,u=1&w,w>>>1){case 0:p>>>=3,_-=3,w=7&_,p>>>=w,_-=w,i=Ae;break;case 1:k=[],S=[],v=[[]],z=[[]],de.inflate_trees_fixed(k,S,v,z),f.init(k[0],S[0],v[0],0,z[0],0),p>>>=3,_-=3,i=Re;break;case 2:p>>>=3,_-=3,i=Fe;break;case 3:return p>>>=3,_-=3,i=We,e.msg="invalid block type",t=ee,n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t)}break;case Ae:for(;32>_;){if(0===m)return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);t=Q,m--,p|=(255&e.read_byte(g++))<<_,_+=8}if((~p>>>16&65535)!=(65535&p))return i=We,e.msg="invalid stored block lengths",t=ee,n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);s=65535&p,p=_=0,i=0!==s?Ce:0!==u?Te:ze;break;case Ce:if(0===m)return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);if(0===y&&(b==n.end&&0!==n.read&&(b=0,y=b<n.read?n.read-b-1:n.end-b),0===y&&(n.write=b,t=n.inflate_flush(e,t),b=n.write,y=b<n.read?n.read-b-1:n.end-b,b==n.end&&0!==n.read&&(b=0,y=b<n.read?n.read-b-1:n.end-b),0===y)))return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);if(t=Q,w=s,w>m&&(w=m),w>y&&(w=y),n.win.set(e.read_buf(g,w),b),g+=w,m-=w,b+=w,y-=w,0!=(s-=w))break;i=0!==u?Te:ze;break;case Fe:for(;14>_;){if(0===m)return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);t=Q,m--,p|=(255&e.read_byte(g++))<<_,_+=8}if(a=w=16383&p,(31&w)>29||(w>>5&31)>29)return i=We,e.msg="too many length or distance symbols",t=ee,n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);if(w=258+(31&w)+(w>>5&31),!r||r.length<w)r=[];else for(x=0;w>x;x++)r[x]=0;p>>>=14,_-=14,o=0,i=De;case De:for(;4+(a>>>10)>o;){for(;3>_;){if(0===m)return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);t=Q,m--,p|=(255&e.read_byte(g++))<<_,_+=8}r[ve[o++]]=7&p,p>>>=3,_-=3}for(;19>o;)r[ve[o++]]=0;if(l[0]=7,w=h.inflate_trees_bits(r,l,c,d,e),w!=Q)return(t=w)==ee&&(r=null,i=We),n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);o=0,i=Ee;case Ee:for(;w=a,258+(31&w)+(w>>5&31)>o;){let s,f;for(w=l[0];w>_;){if(0===m)return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);t=Q,m--,p|=(255&e.read_byte(g++))<<_,_+=8}if(w=d[3*(c[0]+(p&re[w]))+1],f=d[3*(c[0]+(p&re[w]))+2],16>f)p>>>=w,_-=w,r[o++]=f;else{for(x=18==f?7:f-14,s=18==f?11:3;w+x>_;){if(0===m)return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);t=Q,m--,p|=(255&e.read_byte(g++))<<_,_+=8}if(p>>>=w,_-=w,s+=p&re[x],p>>>=x,_-=x,x=o,w=a,x+s>258+(31&w)+(w>>5&31)||16==f&&1>x)return r=null,i=We,e.msg="invalid bit length repeat",t=ee,n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);f=16==f?r[x-1]:0;do{r[x++]=f}while(0!=--s);o=x}}if(c[0]=-1,A=[],C=[],F=[],D=[],A[0]=9,C[0]=6,w=a,w=h.inflate_trees_dynamic(257+(31&w),1+(w>>5&31),r,A,C,F,D,d,e),w!=Q)return w==ee&&(r=null,i=We),t=w,n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);f.init(A[0],C[0],d,F[0],d,D[0]),i=Re;case Re:if(n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,(t=f.proc(n,e,t))!=J)return n.inflate_flush(e,t);if(t=Q,f.free(e),g=e.next_in_index,m=e.avail_in,p=n.bitb,_=n.bitk,b=n.write,y=b<n.read?n.read-b-1:n.end-b,0===u){i=ze;break}i=Te;case Te:if(n.write=b,t=n.inflate_flush(e,t),b=n.write,y=b<n.read?n.read-b-1:n.end-b,n.read!=n.write)return n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);i=Ie;case Ie:return t=J,n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);case We:return t=ee,n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t);default:return t=$,n.bitb=p,n.bitk=_,e.avail_in=m,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=b,n.inflate_flush(e,t)}}},n.free=e=>{n.reset(e,null),n.win=null,d=null},n.set_dictionary=(e,t,r)=>{n.win.set(e.subarray(t,t+r),0),n.read=n.write=r},n.sync_point=()=>i==Ae?1:0}const je=13,Le=[0,0,255,255];function Ne(){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),Q):$}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,Q),e.inflateInit=(n,r)=>(n.msg=null,e.blocks=null,8>r||r>15?(e.inflateEnd(n),$):(e.wbits=r,n.istate.blocks=new Ue(n,1<<r),t(n),Q)),e.inflate=(e,t)=>{let n,r;if(!e||!e.istate||!e.next_in)return $;const i=e.istate;for(t=4==t?ne:Q,n=ne;;)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=je,e.msg="unknown compression method",i.marker=5;break}if(8+(i.method>>4)>i.wbits){i.mode=je,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=je,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=je,e.msg="need dictionary",i.marker=0,$;case 7:if(n=i.blocks.proc(e,n),n==ee){i.mode=je,i.marker=0;break}if(n==Q&&(n=t),n!=J)return n;n=t,i.blocks.reset(e,i.was),i.mode=12;case 12:return e.avail_in=0,J;case je:return ee;default:return $}},e.inflateSetDictionary=(e,t,n)=>{let r=0,i=n;if(!e||!e.istate||6!=e.istate.mode)return $;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,Q},e.inflateSync=e=>{let n,r,i,s,a;if(!e||!e.istate)return $;const o=e.istate;if(o.mode!=je&&(o.mode=je,o.marker=0),0===(n=e.avail_in))return ne;for(r=e.next_in_index,i=o.marker;0!==n&&4>i;)e.read_byte(r)==Le[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?ee:(s=e.total_in,a=e.total_out,t(e),e.total_in=s,e.total_out=a,o.mode=7,Q)},e.inflateSyncPoint=e=>e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():$}function qe(){}qe.prototype={inflateInit(e){const t=this;return t.istate=new Ne,e||(e=15),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):$},inflateEnd(){const e=this;if(!e.istate)return $;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):$},inflateSetDictionary(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):$},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};const Oe=4294967295,Pe=65535,Me=67324752,Ge=134695760,Be=Ge,He=33639248,Ve=101010256,Ke=101075792,Ze=117853008,Xe=22,Ye=21589,Qe=2048,Je="/",$e=new o(2107,11,31),et=new o(1980,0,1),tt=void 0,nt="undefined",rt="function";class it{constructor(e){return class extends v{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 st=2;try{typeof D!=nt&&D.hardwareConcurrency&&(st=D.hardwareConcurrency)}catch(e){}const at={chunkSize:524288,maxWorkers:st,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:tt,CompressionStreamNative:typeof C!=nt&&C,DecompressionStreamNative:typeof F!=nt&&F},ot=n.assign({},at);function lt(){return ot}function ct(e){return a.max(e.chunkSize,64)}function ft(e){const{baseURL:n,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:s,useCompressionStream:a,useWebWorkers:o,Deflate:l,Inflate:c,CompressionStream:f,DecompressionStream:u,workerScripts:w}=e;if(ut("baseURL",n),ut("chunkSize",r),ut("maxWorkers",i),ut("terminateWorkerTimeout",s),ut("useCompressionStream",a),ut("useWebWorkers",o),l&&(ot.CompressionStream=new it(l)),c&&(ot.DecompressionStream=new it(c)),ut("CompressionStream",f),ut("DecompressionStream",u),w!==tt){const{deflate:e,inflate:n}=w;if((e||n)&&(ot.workerScripts||(ot.workerScripts={})),e){if(!t.isArray(e))throw new d("workerScripts.deflate must be an array");ot.workerScripts.deflate=e}if(n){if(!t.isArray(n))throw new d("workerScripts.inflate must be an array");ot.workerScripts.inflate=n}}}function ut(e,t){t!==tt&&(ot[e]=t)}function dt(e,t,r){return class{constructor(i){const s=this;var a,o;a=i,o="level",(typeof n.hasOwn===rt?n.hasOwn(a,o):a.hasOwnProperty(o))&&i.level===tt&&delete i.level,s.codec=new e(n.assign({},t,i)),r(s.codec,(e=>{if(s.pendingData){const t=s.pendingData;s.pendingData=new w(t.length+e.length);const{pendingData:n}=s;n.set(t,0),n.set(e,t.length)}else s.pendingData=new w(e)}))}append(e){return this.codec.push(e),i(this)}flush(){return this.codec.push(new w,!0),i(this)}};function i(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new w}}const wt=[];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;wt[e]=t}class ht{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^wt[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class pt extends v{constructor(){let e;const t=new ht;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new w(4);new _(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}function _t(e){if(typeof b==nt){const t=new w((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new b).encode(e)}const gt={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=gt.getPartial(n);return 32===r?e.concat(t):gt._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)+gt.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,a.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=gt.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>a.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let 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=gt.getPartial(i);return r.push(gt.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},mt={bytes:{fromBits(e){const t=gt.bitLength(e)/8,n=new w(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(gt.partial(8*(3&n),r)),t}}},bt=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=mt.utf8String.toBits(e));const n=t._buffer=gt.concat(t._buffer,e),r=t._length,i=t._length=r+gt.bitLength(e);if(i>9007199254740991)throw new d("Cannot hash more than 2^53 - 1 bits");const s=new p(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=gt.concat(t,[gt.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(a.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_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 n=this,r=n._h,i=t(80);for(let t=0;16>t;t++)i[t]=e[t];let s=r[0],o=r[1],l=r[2],c=r[3],f=r[4];for(let e=0;79>=e;e++){16>e||(i[e]=n._S(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n._S(5,s)+n._f(e,o,l,c)+f+i[e]+n._key[a.floor(e/20)]|0;f=c,c=l,l=n._S(30,o),o=s,s=t}r[0]=r[0]+s|0,r[1]=r[1]+o|0,r[2]=r[2]+l|0,r[3]=r[3]+c|0,r[4]=r[4]+f|0}},yt={getRandomValues(e){const t=new p(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(a.random()>.5?1:-1))};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||a.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},xt={importKey:e=>new xt.hmacSha1(mt.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new d("invalid params to pbkdf2");const i=1+(r>>5)<<2;let s,a,o,l,c;const f=new ArrayBuffer(i),u=new _(f);let w=0;const h=gt;for(t=mt.bytes.toBits(t),c=1;(i||1)>w;c++){for(s=a=e.encrypt(h.concat(t,[c])),o=1;n>o;o++)for(a=e.encrypt(a),l=0;l<a.length;l++)s[l]^=a[l];for(o=0;(i||1)>w&&o<s.length;o++)u.setInt32(w,s[o]),w+=4}return f.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=bt,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 new d("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},kt=typeof k!=nt&&typeof k.getRandomValues==rt,St="Invalid password",vt="Invalid signature",zt="zipjs-abort-check-password";function At(e){return kt?k.getRandomValues(e):yt.getRandomValues(e)}const Ct=16,Ft={name:"PBKDF2"},Dt=n.assign({hash:{name:"HMAC"}},Ft),Et=n.assign({iterations:1e3,hash:{name:"SHA-1"}},Ft),Rt=["deriveBits"],Tt=[8,12,16],It=[16,24,32],Wt=10,Ut=[0,0,0,0],jt=typeof k!=nt,Lt=jt&&k.subtle,Nt=jt&&typeof Lt!=nt,qt=mt.bytes,Ot=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,l=1;if(4!==i&&6!==i&&8!==i)throw new d("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^l<<24,l=l<<1^283*(l>>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,l,c;for(let e=0;256>e;e++)s[(i[e]=e<<1^283*(e>>7))^e]=e;for(let f=a=0;!n[f];f^=o||1,a=s[a]||1){let s=a^a<<1^a<<2^a<<3^a<<4;s=s>>8^255&s^99,n[f]=s,r[s]=f,c=i[l=i[o=i[f]]];let u=16843009*c^65537*l^257*o^16843008*f,d=257*i[s]^16843008*s;for(let n=0;4>n;n++)e[n][f]=d=d<<24^d>>>8,t[n][s]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new d("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],l=s[2],c=s[3],f=s[4];let u,w,h,p=e[0]^n[0],_=e[t?3:1]^n[1],g=e[2]^n[2],m=e[t?1:3]^n[3],b=4;for(let e=0;r>e;e++)u=a[p>>>24]^o[_>>16&255]^l[g>>8&255]^c[255&m]^n[b],w=a[_>>>24]^o[g>>16&255]^l[m>>8&255]^c[255&p]^n[b+1],h=a[g>>>24]^o[m>>16&255]^l[p>>8&255]^c[255&_]^n[b+2],m=a[m>>>24]^o[p>>16&255]^l[_>>8&255]^c[255&g]^n[b+3],b+=4,p=u,_=w,g=h;for(let e=0;4>e;e++)i[t?3&-e:e]=f[p>>>24]<<24^f[_>>16&255]<<16^f[g>>8&255]<<8^f[255&m]^n[b++],u=p,p=_,_=g,g=m,m=u;return i}},Pt=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=gt.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 gt.clamp(t,i)}},Mt=xt.hmacSha1;let Gt=jt&&Nt&&typeof Lt.importKey==rt,Bt=jt&&Nt&&typeof Lt.deriveBits==rt;class Ht extends v{constructor({password:e,rawPassword:t,signed:r,encryptionStrength:i,checkPasswordOnly:s}){super({start(){n.assign(this,{ready:new m((e=>this.resolveReady=e)),password:Xt(e,t),signed:r,strength:i-1,pending:new w})},async transform(e,t){const n=this,{password:r,strength:i,resolveReady:a,ready:o}=n;r?(await(async(e,t,n,r)=>{const i=await Zt(e,t,n,Qt(r,0,Tt[t])),s=Qt(r,Tt[t]);if(i[0]!=s[0]||i[1]!=s[1])throw new d(St)})(n,i,r,Qt(e,0,Tt[i]+2)),e=Qt(e,Tt[i]+2),s?t.error(new d(zt)):a()):await o;const l=new w(e.length-Wt-(e.length-Wt)%Ct);t.enqueue(Kt(n,e,l,0,Wt,!0))},async flush(e){const{signed:t,ctr:n,hmac:r,pending:i,ready:s}=this;if(r&&n){await s;const a=Qt(i,0,i.length-Wt),o=Qt(i,i.length-Wt);let l=new w;if(a.length){const e=$t(qt,a);r.update(e);const t=n.update(e);l=Jt(qt,t)}if(t){const e=Qt(Jt(qt,r.digest()),0,Wt);for(let t=0;Wt>t;t++)if(e[t]!=o[t])throw new d(vt)}e.enqueue(l)}}})}}class Vt extends v{constructor({password:e,rawPassword:t,encryptionStrength:r}){let i;super({start(){n.assign(this,{ready:new m((e=>this.resolveReady=e)),password:Xt(e,t),strength:r-1,pending:new w})},async transform(e,t){const n=this,{password:r,strength:i,resolveReady:s,ready:a}=n;let o=new w;r?(o=await(async(e,t,n)=>{const r=At(new w(Tt[t]));return Yt(r,await Zt(e,t,n,r))})(n,i,r),s()):await a;const l=new w(o.length+e.length-e.length%Ct);l.set(o,0),t.enqueue(Kt(n,e,l,o.length,0))},async flush(e){const{ctr:t,hmac:n,pending:r,ready:s}=this;if(n&&t){await s;let a=new w;if(r.length){const e=t.update($t(qt,r));n.update(e),a=Jt(qt,e)}i.signature=Jt(qt,n.digest()).slice(0,Wt),e.enqueue(Yt(a,i.signature))}}}),i=this}}function Kt(e,t,n,r,i,s){const{ctr:a,hmac:o,pending:l}=e,c=t.length-i;let f;for(l.length&&(t=Yt(l,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new w(t)).set(n,0)}return e})(n,c-c%Ct)),f=0;c-Ct>=f;f+=Ct){const e=$t(qt,Qt(t,f,f+Ct));s&&o.update(e);const i=a.update(e);s||o.update(i),n.set(Jt(qt,i),f+r)}return e.pending=Qt(t,f),n}async function Zt(e,r,i,s){e.password=null;const a=await(async(e,t,n,r,i)=>{if(!Gt)return xt.importKey(t);try{return await Lt.importKey("raw",t,n,!1,i)}catch(e){return Gt=!1,xt.importKey(t)}})(0,i,Dt,0,Rt),o=await(async(e,t,n)=>{if(!Bt)return xt.pbkdf2(t,e.salt,Et.iterations,n);try{return await Lt.deriveBits(e,t,n)}catch(r){return Bt=!1,xt.pbkdf2(t,e.salt,Et.iterations,n)}})(n.assign({salt:s},Et),a,8*(2*It[r]+2)),l=new w(o),c=$t(qt,Qt(l,0,It[r])),f=$t(qt,Qt(l,It[r],2*It[r])),u=Qt(l,2*It[r]);return n.assign(e,{keys:{key:c,authentication:f,passwordVerification:u},ctr:new Pt(new Ot(c),t.from(Ut)),hmac:new Mt(f)}),u}function Xt(e,t){return t===tt?_t(e):t}function Yt(e,t){let n=e;return e.length+t.length&&(n=new w(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function Qt(e,t,n){return e.subarray(t,n)}function Jt(e,t){return e.fromBits(t)}function $t(e,t){return e.toBits(t)}class en extends v{constructor({password:e,passwordVerification:t,checkPasswordOnly:r}){super({start(){n.assign(this,{password:e,passwordVerification:t}),sn(this,e)},transform(e,t){const n=this;if(n.password){const t=nn(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new d(St);e=e.subarray(12)}r?t.error(new d(zt)):t.enqueue(nn(n,e))}})}}class tn extends v{constructor({password:e,passwordVerification:t}){super({start(){n.assign(this,{password:e,passwordVerification:t}),sn(this,e)},transform(e,t){const n=this;let r,i;if(n.password){n.password=null;const t=At(new w(12));t[11]=n.passwordVerification,r=new w(e.length+t.length),r.set(rn(n,t),0),i=12}else r=new w(e.length),i=0;r.set(rn(n,e),i),t.enqueue(r)}})}}function nn(e,t){const n=new w(t.length);for(let r=0;r<t.length;r++)n[r]=on(e)^t[r],an(e,n[r]);return n}function rn(e,t){const n=new w(t.length);for(let r=0;r<t.length;r++)n[r]=on(e)^t[r],an(e,t[r]);return n}function sn(e,t){const r=[305419896,591751049,878082192];n.assign(e,{keys:r,crcKey0:new ht(r[0]),crcKey2:new ht(r[2])});for(let n=0;n<t.length;n++)an(e,t.charCodeAt(n))}function an(e,t){let[n,r,i]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=cn(a.imul(cn(r+ln(n)),134775813)+1),e.crcKey2.append([r>>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function on(e){const t=2|e.keys[2];return ln(a.imul(t,1^t)>>>8)}function ln(e){return 255&e}function cn(e){return 4294967295&e}const fn="deflate-raw";class un extends v{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:i,encrypted:s,useCompressionStream:a,zipCrypto:o,signed:l,level:c}=e,f=this;let u,d,w=wn(super.readable);s&&!o||!l||(u=new pt,w=_n(w,u)),i&&(w=pn(w,a,{level:c,chunkSize:t},r,n)),s&&(o?w=_n(w,new tn(e)):(d=new Vt(e),w=_n(w,d))),hn(f,w,(()=>{let e;s&&!o&&(e=d.signature),s&&!o||!l||(e=new _(u.value.buffer).getUint32(0)),f.signature=e}))}}class dn extends v{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:s,signed:a,signature:o,compressed:l,useCompressionStream:c}=e;let f,u,w=wn(super.readable);s&&(i?w=_n(w,new en(e)):(u=new Ht(e),w=_n(w,u))),l&&(w=pn(w,c,{chunkSize:t},r,n)),s&&!i||!a||(f=new pt,w=_n(w,f)),hn(this,w,(()=>{if((!s||i)&&a){const e=new _(f.value.buffer);if(o!=e.getUint32(0,!1))throw new d(vt)}}))}}function wn(e){return _n(e,new v({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function hn(e,t,r){t=_n(t,new v({flush:r})),n.defineProperty(e,"readable",{get:()=>t})}function pn(e,t,n,r,i){try{e=_n(e,new(t&&r?r:i)(fn,n))}catch(r){if(!t)return e;try{e=_n(e,new i(fn,n))}catch(t){return e}}return e}function _n(e,t){return e.pipeThrough(t)}const gn="data",mn="close",bn="deflate",yn="inflate";class xn extends v{constructor(e,t){super({});const r=this,{codecType:i}=e;let s;i.startsWith(bn)?s=un:i.startsWith(yn)&&(s=dn);let a=0,o=0;const l=new s(e,t),c=super.readable,f=new v({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){n.assign(r,{inputSize:o})}}),u=new v({transform(e,t){e&&e.length&&(a+=e.length,t.enqueue(e))},flush(){const{signature:e}=l;n.assign(r,{signature:e,outputSize:a,inputSize:o})}});n.defineProperty(r,"readable",{get:()=>c.pipeThrough(f).pipeThrough(l).pipeThrough(u)})}}class kn extends v{constructor(e){let t;super({transform:function n(r,i){if(t){const e=new w(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 Sn=typeof E!=nt;class vn{constructor(e,{readable:t,writable:r},{options:i,config:s,streamOptions:a,useWebWorkers:o,transferStreams:l,scripts:c},f){const{signal:u}=a;return n.assign(e,{busy:!0,readable:t.pipeThrough(new kn(s.chunkSize)).pipeThrough(new zn(t,a),{signal:u}),writable:r,options:n.assign({},i),scripts:c,transferStreams:l,terminate:()=>new m((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,f(e)}}),(o&&Sn?Fn:Cn)(e,s)}}class zn extends v{constructor(e,{onstart:t,onprogress:n,size:r,onend:i}){let s=0;super({async start(){t&&await An(t,r)},async transform(e,t){s+=e.length,n&&await An(n,s,r),t.enqueue(e)},async flush(){e.size=s,i&&await An(i,s)}})}}async function An(e,...t){try{await e(...t)}catch(e){}}function Cn(e,t){return{run:()=>(async({options:e,readable:t,writable:n,onTaskFinished:r},i)=>{try{const r=new xn(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 Fn(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let s;try{s=((e,t,r)=>{const i={type:"module"};let s,a;typeof e==rt&&(e=e());try{s=new u(e,t)}catch(t){s=e}if(Dn)try{a=new E(s)}catch(e){Dn=!1,a=new E(s,i)}else a=new E(s,i);return a.addEventListener("message",(e=>(async({data:e},t)=>{const{type:r,value:i,messageId:s,result:a,error:o}=e,{reader:l,writer:c,resolveResult:f,rejectResult:u,onTaskFinished:h}=t;try{if(o){const{message:e,stack:t,code:r,name:i}=o,s=new d(e);n.assign(s,{stack:t,code:r,name:i}),p(s)}else{if("pull"==r){const{value:e,done:n}=await l.read();Rn({type:gn,value:e,done:n,messageId:s},t)}r==gn&&(await c.ready,await c.write(new w(i)),Rn({type:"ack",messageId:s},t)),r==mn&&p(null,a)}}catch(o){Rn({type:mn,messageId:s},t),p(o)}function p(e,t){e?u(e):f(t),c&&c.releaseLock(),h()}})(e,r))),a})(e.scripts[0],r,e)}catch(n){return Sn=!1,Cn(e,t)}n.assign(e,{worker:s,interface:{run:()=>(async(e,t)=>{let r,i;const s=new m(((e,t)=>{r=e,i=t}));n.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:s});const{readable:a,options:o,scripts:l}=e,{writable:c,closed:f}=(e=>{let t;const n=new m((e=>t=e));return{writable:new A({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),u=Rn({type:"start",scripts:l.slice(1),options:o,config:t,readable:a,writable:c},e);u||n.assign(e,{reader:a.getReader(),writer:c.getWriter()});const d=await s;return u||await c.getWriter().close(),await f,d})(e,{chunkSize:i})}})}return e.interface}let Dn=!0,En=!0;function Rn(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:i}){try{let{value:n,readable:r,writable:s}=e;const 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&&En?(r&&a.push(r),s&&a.push(s)):e.readable=e.writable=null,a.length)try{return t.postMessage(e,a),!0}catch(n){En=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(e){throw n&&n.releaseLock(),r(),e}}let Tn=[];const In=[];let Wn=0;async function Un(e,t){const{options:n,config:r}=t,{transferStreams:s,useWebWorkers:a,useCompressionStream:o,codecType:l,compressed:c,signed:f,encrypted:u}=n,{workerScripts:d,maxWorkers:w}=r;t.transferStreams=s||s===tt;const h=!(c||f||u||t.transferStreams);return t.useWebWorkers=!h&&(a||a===tt&&r.useWebWorkers),t.scripts=t.useWebWorkers&&d?d[l]:[],n.useCompressionStream=o||o===tt&&r.useCompressionStream,(await(async()=>{const n=Tn.find((e=>!e.busy));if(n)return jn(n),new vn(n,e,t,p);if(Tn.length<w){const n={indexWorker:Wn};return Wn++,Tn.push(n),new vn(n,e,t,p)}return new m((n=>In.push({resolve:n,stream:e,workerOptions:t})))})()).run();function p(e){if(In.length){const[{resolve:t,stream:n,workerOptions:r}]=In.splice(0,1);t(new vn(e,n,r,p))}else e.worker?(jn(e),((e,t)=>{const{config:n}=t,{terminateWorkerTimeout:r}=n;i.isFinite(r)&&r>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout((async()=>{Tn=Tn.filter((t=>t!=e));try{await e.terminate()}catch(e){}}),r))})(e,t)):Tn=Tn.filter((t=>t!=e))}}function jn(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}const Ln="HTTP error ",Nn="HTTP Range not supported",qn="Writer iterator completed too soon",On="Content-Length",Pn="Range",Mn="HEAD",Gn="GET",Bn="bytes",Hn=65536,Vn="writable";class Kn{constructor(){this.size=0}init(){this.initialized=!0}}class Zn extends Kn{get readable(){const e=this,{chunkSize:t=Hn}=e,n=new z({start(){this.chunkOffset=0},async pull(r){const{offset:i=0,size:s,diskNumberStart:o}=n,{chunkOffset:l}=this;r.enqueue(await gr(e,i+l,a.min(t,s-l),o)),l+t>s?r.close():this.chunkOffset+=t}});return n}}class Xn extends Kn{constructor(){super();const e=this,t=new A({write:t=>e.writeUint8Array(t)});n.defineProperty(e,Vn,{get:()=>t})}writeUint8Array(){}}class Yn extends Zn{constructor(e){super(),n.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 w(s)}}class Qn extends Kn{constructor(e){super();const t=new v,r=[];e&&r.push(["Content-Type",e]),n.defineProperty(this,Vn,{get:()=>t.writable}),this.blob=new f(t.readable,{headers:r}).blob()}getData(){return this.blob}}class Jn extends Zn{constructor(e,t){super(),er(this,e,t)}async init(){await tr(this,cr,sr),super.init()}readUint8Array(e,t){return nr(this,e,t,cr,sr)}}class $n extends Zn{constructor(e,t){super(),er(this,e,t)}async init(){await tr(this,fr,ar),super.init()}readUint8Array(e,t){return nr(this,e,t,fr,ar)}}function er(e,t,r){const{preventHeadRequest:i,useRangeHeader:s,forceRangeRequests:a,combineSizeEocd:o}=r;delete(r=n.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.useXHR,n.assign(e,{url:t,options:r,preventHeadRequest:i,useRangeHeader:s,forceRangeRequests:a,combineSizeEocd:o})}async function tr(e,t,n){const{url:r,preventHeadRequest:s,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:l}=e;if((e=>{const{baseURL:t}=lt(),{protocol:n}=new u(e,t);return"http:"==n||"https:"==n})(r)&&(a||o)&&(void 0===s||s)){const r=await t(Gn,e,rr(e,l?-22:void 0));if(!o&&r.headers.get("Accept-Ranges")!=Bn)throw new d(Nn);{let s;l&&(e.eocdCache=new w(await r.arrayBuffer()));const a=r.headers.get("Content-Range");if(a){const e=a.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(s=i(t))}}s===tt?await lr(e,t,n):e.size=s}}else await lr(e,t,n)}async function nr(e,t,n,r,i){const{useRangeHeader:s,forceRangeRequests:a,eocdCache:o,size:l,options:c}=e;if(s||a){if(o&&t==l-Xe&&n==Xe)return o;const i=await r(Gn,e,rr(e,t,n));if(206!=i.status)throw new d(Nn);return new w(await i.arrayBuffer())}{const{data:r}=e;return r||await i(e,c),new w(e.data.subarray(t,t+n))}}function rr(e,t=0,r=1){return n.assign({},ir(e),{[Pn]:Bn+"="+(0>t?t:t+"-"+(t+r-1))})}function ir({options:e}){const{headers:t}=e;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function sr(e){await or(e,cr)}async function ar(e){await or(e,fr)}async function or(e,t){const n=await t(Gn,e,ir(e));e.data=new w(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function lr(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t(Mn,e,ir(e))).headers.get(On);r?e.size=i(r):await n(e,e.options)}}async function cr(e,{options:t,url:r},i){const s=await fetch(r,n.assign({},t,{method:e,headers:i}));if(400>s.status)return s;throw 416==s.status?new d(Nn):new d(Ln+(s.statusText||s.status))}function fr(e,{url:t},r){return new m(((i,s)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",(()=>{if(400>a.status){const e=[];a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),i({status:a.status,arrayBuffer:()=>a.response,headers:new l(e)})}else s(416==a.status?new d(Nn):new d(Ln+(a.statusText||a.status)))}),!1),a.addEventListener("error",(e=>s(e.detail?e.detail.error:new d("Network error"))),!1),a.open(e,t),r)for(const e of n.entries(r))a.setRequestHeader(e[0],e[1]);a.responseType="arraybuffer",a.send()}))}class ur extends Zn{constructor(e,t={}){super(),n.assign(this,{url:e,reader:t.useXHR?new $n(e,t):new Jn(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 dr extends Zn{constructor(e){super(),this.readers=e}async init(){const e=this,{readers:t}=e;e.lastDiskNumber=0,e.lastDiskOffset=0,await m.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,o=n;-1==o&&(o=i.length-1);let l=e;for(;l>=i[o].size;)l-=i[o].size,o++;const c=i[o],f=c.size;if(l+t>f){const i=f-l;s=new w(t),s.set(await gr(c,l,i)),s.set(await r.readUint8Array(e+i,t-i,n),i)}else s=await gr(c,l,t);return r.lastDiskNumber=a.max(o,r.lastDiskNumber),s}}class wr extends Kn{constructor(e,t=4294967295){super();const r=this;let i,s,a;n.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});const o=new A({async write(t){const{availableSize:n}=r;if(a)t.length<n?await l(t):(await l(t.slice(0,n)),await c(),r.diskOffset+=i.size,r.diskNumber++,a=null,await this.write(t.slice(n)));else{const{value:n,done:o}=await e.next();if(o&&!n)throw new d(qn);i=n,i.size=0,i.maxSize&&(r.maxSize=i.maxSize),r.availableSize=r.maxSize,await hr(i),s=n.writable,a=s.getWriter(),await this.write(t)}},async close(){await a.ready,await c()}});async function l(e){const t=e.length;t&&(await a.ready,await a.write(e),i.size+=t,r.size+=t,r.availableSize-=t)}async function c(){s.size=i.size,await a.close()}n.defineProperty(r,Vn,{get:()=>o})}}async function hr(e,t){if(!e.init||e.initialized)return m.resolve();await e.init(t)}function pr(e){return t.isArray(e)&&(e=new dr(e)),e instanceof z&&(e={readable:e}),e}function _r(e){e.writable===tt&&typeof e.next==rt&&(e=new wr(e)),e instanceof A&&(e={writable:e});const{writable:t}=e;return t.size===tt&&(t.size=0),e instanceof wr||n.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function gr(e,t,n,r){return e.readUint8Array(t,n,r)}const mr=dr,br=wr,yr="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),xr=256==yr.length;function kr(e,t){return t&&"cp437"==t.trim().toLowerCase()?(e=>{if(xr){let t="";for(let n=0;n<e.length;n++)t+=yr[e[n]];return t}return(new y).decode(e)})(e):new y(t).decode(e)}const Sr="filename",vr="rawFilename",zr="comment",Ar="rawComment",Cr="uncompressedSize",Fr="compressedSize",Dr="offset",Er="diskNumberStart",Rr="lastModDate",Tr="rawLastModDate",Ir="lastAccessDate",Wr="creationDate",Ur="internalFileAttribute",jr="externalFileAttribute",Lr="msDosCompatible",Nr="zip64",qr=[Sr,vr,Fr,Cr,Rr,Tr,zr,Ar,Ir,Wr,Dr,Er,Er,Ur,jr,Lr,Nr,"directory","bitFlag","encrypted","signature","filenameUTF8","commentUTF8","compressionMethod","version","versionMadeBy","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class Or{constructor(e){qr.forEach((t=>this[t]=e[t]))}}const Pr="File format is not recognized",Mr="End of central directory not found",Gr="End of Zip64 central directory locator not found",Br="Central directory header not found",Hr="Local file header not found",Vr="Zip64 extra field not found",Kr="File contains encrypted entry",Zr="Encryption method not supported",Xr="Compression method not supported",Yr="Split zip file",Qr="utf-8",Jr="cp437",$r=[[Cr,Oe],[Fr,Oe],[Dr,Oe],[Er,Pe]],ei={[Pe]:{getValue:ui,bytes:4},[Oe]:{getValue:di,bytes:8}};class ti{constructor(e,t={}){n.assign(this,{reader:pr(e),options:t,config:lt()})}async*getEntriesGenerator(e={}){const t=this;let{reader:r}=t;const{config:i}=t;if(await hr(r),r.size!==tt&&r.readUint8Array||(r=new Yn(await new f(r.readable).blob()),await hr(r)),r.size<Xe)throw new d(Pr);r.chunkSize=ct(i);const s=await(async(e,t,n)=>{const r=new w(4);var i;return i=t,wi(r).setUint32(0,i,!0),await s(22)||await s(a.min(1048582,n));async function s(t){const i=n-t,s=await gr(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}}})(r,Ve,r.size);if(!s)throw ui(wi(await gr(r,0,4)))==Ge?new d(Yr):new d(Mr);const o=wi(s);let l=ui(o,12),c=ui(o,16);const u=s.offset,h=fi(o,20),p=u+Xe+h;let _=fi(o,4);const g=r.lastDiskNumber||0;let m=fi(o,6),b=fi(o,8),y=0,x=0;if(c==Oe||l==Oe||b==Pe||m==Pe){const e=wi(await gr(r,s.offset-20,20));if(ui(e,0)==Ze){c=di(e,8);let t=await gr(r,c,56,-1),n=wi(t);const i=s.offset-20-56;if(ui(n,0)!=Ke&&c!=i){const e=c;c=i,y=c-e,t=await gr(r,c,56,-1),n=wi(t)}if(ui(n,0)!=Ke)throw new d(Gr);_==Pe&&(_=ui(n,16)),m==Pe&&(m=ui(n,20)),b==Pe&&(b=di(n,32)),l==Oe&&(l=di(n,40)),c-=l}}if(c<r.size||(y=r.size-c-l-Xe,c=r.size-l-Xe),g!=_)throw new d(Yr);if(0>c)throw new d(Pr);let k=0,S=await gr(r,c,l,m),v=wi(S);if(l){const e=s.offset-l;if(ui(v,k)!=He&&c!=e){const t=c;c=e,y+=c-t,S=await gr(r,c,l,m),v=wi(S)}}const z=s.offset-c-(r.lastDiskOffset||0);if(l==z||0>z||(l=z,S=await gr(r,c,l,m),v=wi(S)),0>c||c>=r.size)throw new d(Pr);const A=ai(t,e,"filenameEncoding"),C=ai(t,e,"commentEncoding");for(let s=0;b>s;s++){const o=new ni(r,i,t.options);if(ui(v,k)!=He)throw new d(Br);ri(o,v,k+6);const l=!!o.bitFlag.languageEncodingFlag,c=k+46,f=c+o.filenameLength,u=f+o.extraFieldLength,w=fi(v,k+4),h=!0,p=S.subarray(c,f),_=fi(v,k+32),g=u+_,m=S.subarray(u,g),z=l,F=l,D=h&&!(16&~ci(v,k+38)),E=ui(v,k+42)+y;n.assign(o,{versionMadeBy:w,msDosCompatible:h,compressedSize:0,uncompressedSize:0,commentLength:_,directory:D,offset:E,diskNumberStart:fi(v,k+34),internalFileAttribute:fi(v,k+36),externalFileAttribute:ui(v,k+38),rawFilename:p,filenameUTF8:z,commentUTF8:F,rawExtraField:S.subarray(f,u)});const R=ai(t,e,"decodeText")||kr,T=z?Qr:A||Jr,I=F?Qr:C||Jr;let W=R(p,T);W===tt&&(W=kr(p,T));let U=R(m,I);U===tt&&(U=kr(m,I)),n.assign(o,{rawComment:m,filename:W,comment:U,directory:D||W.endsWith(Je)}),x=a.max(E,x),await ii(o,o,v,k+6);const j=new Or(o);j.getData=(e,t)=>o.getData(e,j,t),k=g;const{onprogress:L}=e;if(L)try{await L(s+1,b,new Or(o))}catch(e){}yield j}const F=ai(t,e,"extractPrependedData"),D=ai(t,e,"extractAppendedData");return F&&(t.prependedData=x>0?await gr(r,0,x):new w),t.comment=h?await gr(r,u+Xe,h):new w,D&&(t.appendedData=p<r.size?await gr(r,p,r.size-p):new w),!0}async getEntries(e={}){const t=[];for await(const n of this.getEntriesGenerator(e))t.push(n);return t}async close(){}}class ni{constructor(e,t,r){n.assign(this,{reader:e,config:t,options:r})}async getData(e,t,r={}){const i=this,{reader:s,offset:a,diskNumberStart:o,extraFieldAES:l,compressionMethod:c,config:f,bitFlag:u,signature:h,rawLastModDate:p,uncompressedSize:_,compressedSize:g}=i,m=t.localDirectory={},b=wi(await gr(s,a,30,o));let y=ai(i,r,"password"),x=ai(i,r,"rawPassword");if(y=y&&y.length&&y,x=x&&x.length&&x,l&&99!=l.originalCompressionMethod)throw new d(Xr);if(0!=c&&8!=c)throw new d(Xr);if(ui(b,0)!=Me)throw new d(Hr);ri(m,b,4),m.rawExtraField=m.extraFieldLength?await gr(s,a+30+m.filenameLength,m.extraFieldLength,o):new w,await ii(i,m,b,4,!0),n.assign(t,{lastAccessDate:m.lastAccessDate,creationDate:m.creationDate});const k=i.encrypted&&m.encrypted,S=k&&!l;if(k){if(!S&&l.strength===tt)throw new d(Zr);if(!y&&!x)throw new d(Kr)}const v=a+30+m.filenameLength+m.extraFieldLength,z=g,C=s.readable;n.assign(C,{diskNumberStart:o,offset:v,size:z});const F=ai(i,r,"signal"),D=ai(i,r,"checkPasswordOnly");D&&(e=new A),e=_r(e),await hr(e,_);const{writable:E}=e,{onstart:R,onprogress:T,onend:I}=r,W={options:{codecType:yn,password:y,rawPassword:x,zipCrypto:S,encryptionStrength:l&&l.strength,signed:ai(i,r,"checkSignature"),passwordVerification:S&&(u.dataDescriptor?p>>>8&255:h>>>24&255),signature:h,compressed:0!=c,encrypted:k,useWebWorkers:ai(i,r,"useWebWorkers"),useCompressionStream:ai(i,r,"useCompressionStream"),transferStreams:ai(i,r,"transferStreams"),checkPasswordOnly:D},config:f,streamOptions:{signal:F,size:z,onstart:R,onprogress:T,onend:I}};let U=0;try{({outputSize:U}=await Un({readable:C,writable:E},W))}catch(e){if(!D||e.message!=zt)throw e}finally{const e=ai(i,r,"preventClose");E.size+=U,e||E.locked||await E.getWriter().close()}return D?tt:e.getData?e.getData():E}}function ri(e,t,r){const i=e.rawBitFlag=fi(t,r+2),s=!(1&~i),a=ui(t,r+6);n.assign(e,{encrypted:s,version:fi(t,r),bitFlag:{level:(6&i)>>1,dataDescriptor:!(8&~i),languageEncodingFlag:(i&Qe)==Qe},rawLastModDate:a,lastModDate:oi(a),filenameLength:fi(t,r+22),extraFieldLength:fi(t,r+24)})}async function ii(e,t,r,i,s){const{rawExtraField:a}=t,c=t.extraField=new l,f=wi(new w(a));let u=0;try{for(;u<a.length;){const e=fi(f,u),t=fi(f,u+2);c.set(e,{type:e,data:a.slice(u+4,u+4+t)}),u+=4+t}}catch(e){}const h=fi(r,i+4);n.assign(t,{signature:ui(r,i+10),uncompressedSize:ui(r,i+18),compressedSize:ui(r,i+14)});const p=c.get(1);p&&(((e,t)=>{t.zip64=!0;const n=wi(e.data),r=$r.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=ei[o];t[a]=e[a]=r.getValue(n,s),s+=r.bytes}else if(e[a])throw new d(Vr)}})(p,t),t.extraFieldZip64=p);const _=c.get(28789);_&&(await si(_,Sr,vr,t,e),t.extraFieldUnicodePath=_);const g=c.get(25461);g&&(await si(g,zr,Ar,t,e),t.extraFieldUnicodeComment=g);const m=c.get(39169);m?(((e,t,r)=>{const i=wi(e.data),s=ci(i,4);n.assign(e,{vendorVersion:ci(i,0),vendorId:ci(i,2),strength:s,originalCompressionMethod:r,compressionMethod:fi(i,5)}),t.compressionMethod=e.compressionMethod})(m,t,h),t.extraFieldAES=m):t.compressionMethod=h;const b=c.get(10);b&&(((e,t)=>{const r=wi(e.data);let i,s=4;try{for(;s<e.data.length&&!i;){const t=fi(r,s),n=fi(r,s+2);1==t&&(i=e.data.slice(s+4,s+4+n)),s+=4+n}}catch(e){}try{if(i&&24==i.length){const r=wi(i),s=r.getBigUint64(0,!0),a=r.getBigUint64(8,!0),o=r.getBigUint64(16,!0);n.assign(e,{rawLastModDate:s,rawLastAccessDate:a,rawCreationDate:o});const l={lastModDate:li(s),lastAccessDate:li(a),creationDate:li(o)};n.assign(e,l),n.assign(t,l)}}catch(e){}})(b,t),t.extraFieldNTFS=b);const y=c.get(Ye);y&&(((e,t,n)=>{const r=wi(e.data),i=ci(r,0),s=[],a=[];n?(1&~i||(s.push(Rr),a.push(Tr)),2&~i||(s.push(Ir),a.push("rawLastAccessDate")),4&~i||(s.push(Wr),a.push("rawCreationDate"))):5>e.data.length||(s.push(Rr),a.push(Tr));let l=1;s.forEach(((n,i)=>{if(e.data.length>=l+4){const s=ui(r,l);t[n]=e[n]=new o(1e3*s);const c=a[i];e[c]=s}l+=4}))})(y,t,s),t.extraFieldExtendedTimestamp=y);const x=c.get(6534);x&&(t.extraFieldUSDZ=x)}async function si(e,t,r,i,s){const a=wi(e.data),o=new ht;o.append(s[r]);const l=wi(new w(4));l.setUint32(0,o.get(),!0);const c=ui(a,1);n.assign(e,{version:ci(a,0),[t]:kr(e.data.subarray(5)),valid:!s.bitFlag.languageEncodingFlag&&c==ui(l,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function ai(e,t,n){return t[n]===tt?e.options[n]:t[n]}function oi(e){const t=(4294901760&e)>>16,n=65535&e;try{return new o(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function li(e){return new o(i(e/s(1e4)-s(116444736e5)))}function ci(e,t){return e.getUint8(t)}function fi(e,t){return e.getUint16(t,!0)}function ui(e,t){return e.getUint32(t,!0)}function di(e,t){return i(e.getBigUint64(t,!0))}function wi(e){return new _(e.buffer)}const hi="File already exists",pi="Zip file comment exceeds 64KB",_i="File entry comment exceeds 64KB",gi="File entry name exceeds 64KB",mi="Version exceeds 65535",bi="The strength must equal 1, 2, or 3",yi="Extra field type exceeds 65535",xi="Extra field data exceeds 64KB",ki="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",Si=new w([7,0,2,0,65,69,3,0,0]);let vi=0;const zi=[];class Ai{constructor(e,t={}){const r=(e=_r(e)).availableSize!==tt&&e.availableSize>0&&e.availableSize!==1/0&&e.maxSize!==tt&&e.maxSize>0&&e.maxSize!==1/0;n.assign(this,{writer:e,addSplitZipSignature:r,options:t,config:lt(),files:new l,filenames:new c,offset:e.writable.size,pendingEntriesSize:0,pendingAddFileCalls:new c,bufferedWrites:0})}async add(e="",r,i={}){const l=this,{pendingAddFileCalls:c,config:u}=l;let g;vi<u.maxWorkers?vi++:await new m((e=>zi.push(e)));try{if(e=e.trim(),l.filenames.has(e))throw new d(hi);return l.filenames.add(e),g=(async(e,r,i,l)=>{r=r.trim(),l.directory&&!r.endsWith(Je)?r+=Je:l.directory=r.endsWith(Je);const c=Di(e,l,"encodeText",_t);let u=c(r);if(u===tt&&(u=_t(r)),ji(u)>Pe)throw new d(gi);const g=l.comment||"";let b=c(g);if(b===tt&&(b=_t(g)),ji(b)>Pe)throw new d(_i);const y=Di(e,l,"version",20);if(y>Pe)throw new d(mi);const x=Di(e,l,"versionMadeBy",20);if(x>Pe)throw new d(mi);const k=Di(e,l,Rr,new o),S=Di(e,l,Ir),z=Di(e,l,Wr),A=Di(e,l,Lr,!0),C=Di(e,l,Ur,0),F=Di(e,l,jr,0),D=Di(e,l,"password"),E=Di(e,l,"rawPassword"),R=Di(e,l,"encryptionStrength",3),T=Di(e,l,"zipCrypto"),I=Di(e,l,"extendedTimestamp",!0),W=Di(e,l,"keepOrder",!0),U=Di(e,l,"level"),j=Di(e,l,"useWebWorkers"),L=Di(e,l,"bufferedWrite"),N=Di(e,l,"dataDescriptorSignature",!1),q=Di(e,l,"signal"),O=Di(e,l,"useCompressionStream");let P=Di(e,l,"dataDescriptor",!0),M=Di(e,l,Nr);if(D!==tt&&R!==tt&&(1>R||R>3))throw new d(bi);let G=new w;const{extraField:B}=l;if(B){let e=0,t=0;B.forEach((t=>e+=4+ji(t))),G=new w(e),B.forEach(((e,n)=>{if(n>Pe)throw new d(yi);if(ji(e)>Pe)throw new d(xi);Wi(G,new h([n]),t),Wi(G,new h([ji(e)]),t+2),Wi(G,e,t+4),t+=4+ji(e)}))}let H=0,V=0,K=0;const Z=!0===M;i&&(i=pr(i),await hr(i),i.size===tt?(P=!0,(M||M===tt)&&(M=!0,K=H=4294967296)):(K=i.size,H=(e=>e+5*(a.floor(e/16383)+1))(K)));const{diskOffset:X,diskNumber:Y,maxSize:Q}=e.writer,J=Z||K>Oe,$=Z||H>Oe,ee=Z||e.offset+e.pendingEntriesSize-X>Oe,te=Di(e,l,"supportZip64SplitFile",!0)&&Z||Y+a.ceil(e.pendingEntriesSize/Q)>Pe;if(ee||J||$||te){if(!1===M||!W)throw new d(ki);M=!0}M=M||!1;const ne=(e=>{const{rawFilename:t,lastModDate:n,lastAccessDate:r,creationDate:i,rawPassword:s,password:o,level:l,zip64:c,zipCrypto:f,dataDescriptor:u,directory:d,rawExtraField:h,encryptionStrength:_,extendedTimestamp:g}=e,m=0!==l&&!d,b=!!(o&&ji(o)||s&&ji(s));let y,x,k,S,v=e.version;if(b&&!f){y=new w(ji(Si)+2);const e=Ui(y);Ri(e,0,39169),Wi(y,Si,2),Ei(e,8,_)}else y=new w;if(g){k=new w(9+(r?4:0)+(i?4:0));const e=Ui(k);Ri(e,0,Ye),Ri(e,2,ji(k)-4),S=1+(r?2:0)+(i?4:0),Ei(e,4,S);let t=5;Ti(e,t,a.floor(n.getTime()/1e3)),t+=4,r&&(Ti(e,t,a.floor(r.getTime()/1e3)),t+=4),i&&Ti(e,t,a.floor(i.getTime()/1e3));try{x=new w(36);const e=Ui(x),t=Fi(n);Ri(e,0,10),Ri(e,2,32),Ri(e,8,1),Ri(e,10,24),Ii(e,12,t),Ii(e,20,Fi(r)||t),Ii(e,28,Fi(i)||t)}catch(e){x=new w}}else x=k=new w;let z=Qe;u&&(z|=8);let A=0;m&&(A=8),c&&(v=v>45?v:45),b&&(z|=1,f||(v=v>51?v:51,A=99,m&&(y[9]=8)));const C=new w(26),F=Ui(C);Ri(F,0,v),Ri(F,2,z),Ri(F,4,A);const D=new p(1),E=Ui(D);let R;R=et>n?et:n>$e?$e:n,Ri(E,0,(R.getHours()<<6|R.getMinutes())<<5|R.getSeconds()/2),Ri(E,2,(R.getFullYear()-1980<<4|R.getMonth()+1)<<5|R.getDate());const T=D[0];Ti(F,6,T),Ri(F,22,ji(t));const I=ji(y,k,x,h);Ri(F,24,I);const W=new w(30+ji(t)+I);return Ti(Ui(W),0,Me),Wi(W,C,4),Wi(W,t,30),Wi(W,y,30+ji(t)),Wi(W,k,30+ji(t,y)),Wi(W,x,30+ji(t,y,k)),Wi(W,h,30+ji(t,y,k,x)),{localHeaderArray:W,headerArray:C,headerView:F,lastModDate:n,rawLastModDate:T,encrypted:b,compressed:m,version:v,compressionMethod:A,extraFieldExtendedTimestampFlag:S,rawExtraFieldExtendedTimestamp:k,rawExtraFieldNTFS:x,rawExtraFieldAES:y,extraFieldLength:I}})(l=n.assign({},l,{rawFilename:u,rawComment:b,version:y,versionMadeBy:x,lastModDate:k,lastAccessDate:S,creationDate:z,rawExtraField:G,zip64:M,zip64UncompressedSize:J,zip64CompressedSize:$,zip64Offset:ee,zip64DiskNumberStart:te,password:D,rawPassword:E,level:O||e.config.CompressionStream!==tt?U:0,useWebWorkers:j,encryptionStrength:R,extendedTimestamp:I,zipCrypto:T,bufferedWrite:L,keepOrder:W,dataDescriptor:P,dataDescriptorSignature:N,signal:q,msDosCompatible:A,internalFileAttribute:C,externalFileAttribute:F,useCompressionStream:O})),re=(e=>{const{zip64:t,dataDescriptor:n,dataDescriptorSignature:r}=e;let i,s=new w,a=0;return n&&(s=new w(t?r?24:20:r?16:12),i=Ui(s),r&&(a=4,Ti(i,0,Be))),{dataDescriptorArray:s,dataDescriptorView:i,dataDescriptorOffset:a}})(l),ie=ji(ne.localHeaderArray,re.dataDescriptorArray);let se;V=ie+H,e.options.usdz&&(V+=V+64),e.pendingEntriesSize+=V;try{se=await(async(e,r,i,a,o)=>{const{files:l,writer:c}=e,{keepOrder:u,dataDescriptor:h,signal:p}=o,{headerInfo:g}=a,{usdz:b}=e.options,y=t.from(l.values()).pop();let x,k,S,z,A,C,F,D={};l.set(r,D);try{let t;u&&(t=y&&y.lock,D.lock=new m((e=>S=e))),!(o.bufferedWrite||e.writerLocked||e.bufferedWrites&&u)&&h||b?(C=c,await E()):(C=new v,F=new f(C.readable).blob(),C.writable.size=0,x=!0,e.bufferedWrites++,await hr(c)),await hr(C);const{writable:g}=c;let{diskOffset:k}=c;if(e.addSplitZipSignature){delete e.addSplitZipSignature;const t=new w(4);Ti(Ui(t),0,Ge),await Ci(g,t),e.offset+=4}b&&((e,t)=>{const{headerInfo:n}=e;let{localHeaderArray:r,extraFieldLength:i}=n,s=Ui(r),a=64-(t+ji(r))%64;4>a&&(a+=64);const o=new w(a),l=Ui(o);Ri(l,0,6534),Ri(l,2,a-2);const c=r;n.localHeaderArray=r=new w(ji(c)+a),Wi(r,c),Wi(r,o,ji(c)),s=Ui(r),Ri(s,28,i+a),e.metadataSize+=a})(a,e.offset-k),x||(await t,await R(g));const{diskNumber:T}=c;if(A=!0,D.diskNumberStart=T,D=await(async(e,t,{diskNumberStart:r,lock:i},a,o,l)=>{const{headerInfo:c,dataDescriptorInfo:f,metadataSize:u}=a,{localHeaderArray:d,headerArray:h,lastModDate:p,rawLastModDate:_,encrypted:g,compressed:m,version:b,compressionMethod:y,rawExtraFieldExtendedTimestamp:x,extraFieldExtendedTimestampFlag:k,rawExtraFieldNTFS:S,rawExtraFieldAES:v}=c,{dataDescriptorArray:z}=f,{rawFilename:A,lastAccessDate:C,creationDate:F,password:D,rawPassword:E,level:R,zip64:T,zip64UncompressedSize:I,zip64CompressedSize:W,zip64Offset:U,zip64DiskNumberStart:j,zipCrypto:L,dataDescriptor:N,directory:q,versionMadeBy:O,rawComment:P,rawExtraField:M,useWebWorkers:G,onstart:B,onprogress:H,onend:V,signal:K,encryptionStrength:Z,extendedTimestamp:X,msDosCompatible:Y,internalFileAttribute:Q,externalFileAttribute:J,useCompressionStream:$}=l,ee={lock:i,versionMadeBy:O,zip64:T,directory:!!q,filenameUTF8:!0,rawFilename:A,commentUTF8:!0,rawComment:P,rawExtraFieldExtendedTimestamp:x,rawExtraFieldNTFS:S,rawExtraFieldAES:v,rawExtraField:M,extendedTimestamp:X,msDosCompatible:Y,internalFileAttribute:Q,externalFileAttribute:J,diskNumberStart:r};let te,ne=0,re=0;const{writable:ie}=t;if(e){e.chunkSize=ct(o),await Ci(ie,d);const t=e.readable,n=t.size=e.size,r={options:{codecType:bn,level:R,rawPassword:E,password:D,encryptionStrength:Z,zipCrypto:g&&L,passwordVerification:g&&L&&_>>8&255,signed:!0,compressed:m,encrypted:g,useWebWorkers:G,useCompressionStream:$,transferStreams:!1},config:o,streamOptions:{signal:K,size:n,onstart:B,onprogress:H,onend:V}},i=await Un({readable:t,writable:ie},r);re=i.inputSize,ne=i.outputSize,te=i.signature,ie.size+=re}else await Ci(ie,d);let se;if(T){let e=4;I&&(e+=8),W&&(e+=8),U&&(e+=8),j&&(e+=4),se=new w(e)}else se=new w;return((e,t)=>{const{signature:n,rawExtraFieldZip64:r,compressedSize:i,uncompressedSize:a,headerInfo:o,dataDescriptorInfo:l}=e,{headerView:c,encrypted:f}=o,{dataDescriptorView:u,dataDescriptorOffset:d}=l,{zip64:w,zip64UncompressedSize:h,zip64CompressedSize:p,zipCrypto:_,dataDescriptor:g}=t;if(f&&!_||n===tt||(Ti(c,10,n),g&&Ti(u,d,n)),w){const e=Ui(r);Ri(e,0,1),Ri(e,2,ji(r)-4);let t=4;h&&(Ti(c,18,Oe),Ii(e,t,s(a)),t+=8),p&&(Ti(c,14,Oe),Ii(e,t,s(i))),g&&(Ii(u,d+4,s(i)),Ii(u,d+12,s(a)))}else Ti(c,14,i),Ti(c,18,a),g&&(Ti(u,d+4,i),Ti(u,d+8,a))})({signature:te,rawExtraFieldZip64:se,compressedSize:ne,uncompressedSize:re,headerInfo:c,dataDescriptorInfo:f},l),N&&await Ci(ie,z),n.assign(ee,{uncompressedSize:re,compressedSize:ne,lastModDate:p,rawLastModDate:_,creationDate:F,lastAccessDate:C,encrypted:g,size:u+ne,compressionMethod:y,version:b,headerArray:h,signature:te,rawExtraFieldZip64:se,extraFieldExtendedTimestampFlag:k,zip64UncompressedSize:I,zip64CompressedSize:W,zip64Offset:U,zip64DiskNumberStart:j}),ee})(i,C,D,a,e.config,o),A=!1,l.set(r,D),D.filename=r,x){await C.writable.getWriter().close();let e=await F;await t,await E(),z=!0,h||(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 _(i);return e.encrypted&&!r||Ti(s,14,e.signature),e.zip64?(Ti(s,18,Oe),Ti(s,22,Oe)):(Ti(s,18,e.compressedSize),Ti(s,22,e.uncompressedSize)),await Ci(n,new w(i)),t.slice(i.byteLength)})(D,e,g,o)),await R(g),D.diskNumberStart=c.diskNumber,k=c.diskOffset,await e.stream().pipeTo(g,{preventClose:!0,preventAbort:!0,signal:p}),g.size+=e.size,z=!1}if(D.offset=e.offset-k,D.zip64)((e,t)=>{const{rawExtraFieldZip64:n,offset:r,diskNumberStart:i}=e,{zip64UncompressedSize:a,zip64CompressedSize:o,zip64Offset:l,zip64DiskNumberStart:c}=t,f=Ui(n);let u=4;a&&(u+=8),o&&(u+=8),l&&(Ii(f,u,s(r)),u+=8),c&&Ti(f,u,i)})(D,o);else if(D.offset>Oe)throw new d(ki);return e.offset+=D.size,D}catch(t){if(x&&z||!x&&A){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch(e){}x?e.offset+=C.writable.size:e.offset=C.writable.size}throw l.delete(r),t}finally{x&&e.bufferedWrites--,S&&S(),k&&k()}async function E(){e.writerLocked=!0;const{lockWriter:t}=e;e.lockWriter=new m((t=>k=()=>{e.writerLocked=!1,t()})),await t}async function R(e){ji(g.localHeaderArray)>c.availableSize&&(c.availableSize=0,await Ci(e,new w))}})(e,r,i,{headerInfo:ne,dataDescriptorInfo:re,metadataSize:ie},l)}finally{e.pendingEntriesSize-=V}return n.assign(se,{name:r,comment:g,extraField:B}),new Or(se)})(l,e,r,i),c.add(g),await g}catch(t){throw l.filenames.delete(e),t}finally{c.delete(g);const e=zi.shift();e?e():vi--}}async close(e=new w,n={}){const{pendingAddFileCalls:r,writer:i}=this,{writable:o}=i;for(;r.size;)await m.allSettled(t.from(r));return await(async(e,n,r)=>{const{files:i,writer:o}=e,{diskOffset:l,writable:c}=o;let{diskNumber:f}=o,u=0,h=0,p=e.offset-l,_=i.size;for(const[,e]of i){const{rawFilename:t,rawExtraFieldZip64:n,rawExtraFieldAES:r,rawComment:i,rawExtraFieldNTFS:s,rawExtraField:o,extendedTimestamp:l,extraFieldExtendedTimestampFlag:c,lastModDate:f}=e;let u;if(l){u=new w(9);const e=Ui(u);Ri(e,0,Ye),Ri(e,2,5),Ei(e,4,c),Ti(e,5,a.floor(f.getTime()/1e3))}else u=new w;e.rawExtraFieldCDExtendedTimestamp=u,h+=46+ji(t,i,n,r,s,u,o)}const g=new w(h),m=Ui(g);await hr(o);let b=0;for(const[e,n]of t.from(i.values()).entries()){const{offset:t,rawFilename:s,rawExtraFieldZip64:a,rawExtraFieldAES:l,rawExtraFieldCDExtendedTimestamp:f,rawExtraFieldNTFS:d,rawExtraField:w,rawComment:h,versionMadeBy:p,headerArray:_,directory:y,zip64:x,zip64UncompressedSize:k,zip64CompressedSize:S,zip64DiskNumberStart:v,zip64Offset:z,msDosCompatible:A,internalFileAttribute:C,externalFileAttribute:F,diskNumberStart:D,uncompressedSize:E,compressedSize:R}=n,T=ji(a,l,f,d,w);Ti(m,u,He),Ri(m,u+4,p);const I=Ui(_);k||Ti(I,18,E),S||Ti(I,14,R),Wi(g,_,u+6),Ri(m,u+30,T),Ri(m,u+32,ji(h)),Ri(m,u+34,x&&v?Pe:D),Ri(m,u+36,C),F?Ti(m,u+38,F):y&&A&&Ei(m,u+38,16),Ti(m,u+42,x&&z?Oe:t),Wi(g,s,u+46),Wi(g,a,u+46+ji(s)),Wi(g,l,u+46+ji(s,a)),Wi(g,f,u+46+ji(s,a,l)),Wi(g,d,u+46+ji(s,a,l,f)),Wi(g,w,u+46+ji(s,a,l,f,d)),Wi(g,h,u+46+ji(s)+T);const W=46+ji(s,h)+T;if(u-b>o.availableSize&&(o.availableSize=0,await Ci(c,g.slice(b,u)),b=u),u+=W,r.onprogress)try{await r.onprogress(e+1,i.size,new Or(n))}catch(e){}}await Ci(c,b?g.slice(b):g);let y=o.diskNumber;const{availableSize:x}=o;Xe>x&&y++;let k=Di(e,r,"zip64");if(p>Oe||h>Oe||_>Pe||y>Pe){if(!1===k)throw new d(ki);k=!0}const S=new w(k?98:Xe),v=Ui(S);u=0,k&&(Ti(v,0,Ke),Ii(v,4,s(44)),Ri(v,12,45),Ri(v,14,45),Ti(v,16,y),Ti(v,20,f),Ii(v,24,s(_)),Ii(v,32,s(_)),Ii(v,40,s(h)),Ii(v,48,s(p)),Ti(v,56,Ze),Ii(v,64,s(p)+s(h)),Ti(v,72,y+1),Di(e,r,"supportZip64SplitFile",!0)&&(y=Pe,f=Pe),_=Pe,p=Oe,h=Oe,u+=76),Ti(v,u,Ve),Ri(v,u+4,y),Ri(v,u+6,f),Ri(v,u+8,_),Ri(v,u+10,_),Ti(v,u+12,h),Ti(v,u+16,p);const z=ji(n);if(z){if(z>Pe)throw new d(pi);Ri(v,u+20,z)}await Ci(c,S),z&&await Ci(c,n)})(this,e,n),Di(this,n,"preventClose")||await o.getWriter().close(),i.getData?i.getData():o}}async function Ci(e,t){const n=e.getWriter();try{await n.ready,e.size+=ji(t),await n.write(t)}finally{n.releaseLock()}}function Fi(e){if(e)return(s(e.getTime())+s(116444736e5))*s(1e4)}function Di(e,t,n,r){const i=t[n]===tt?e.options[n]:t[n];return i===tt?r:i}function Ei(e,t,n){e.setUint8(t,n)}function Ri(e,t,n){e.setUint16(t,n,!0)}function Ti(e,t,n){e.setUint32(t,n,!0)}function Ii(e,t,n){e.setBigUint64(t,n,!0)}function Wi(e,t,n){e.set(t,n)}function Ui(e){return new _(e.buffer)}function ji(...e){let t=0;return e.forEach((e=>e&&(t+=e.length))),t}let Li;try{Li=void 0===x&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:void 0===x?location.href:R&&R.src||new u("zip-full.min.js",x.baseURI).href}catch(e){}(e=>{const t=()=>u.createObjectURL(new g(['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=15,Te=573,We=-2;function je(t){return He(t.map((([t,n])=>new e(t).fill(n,0,t))))}function He(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?He(n):n)),[])}const Le=[0,1,2,3].concat(...je([[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 Fe(){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=Te,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;Oe>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;Te>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;Oe>=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 qe(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}Fe.ke=[0,1,2,3,4,5,6,7].concat(...je([[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]])),Fe.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],Fe.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],Fe.ze=e=>256>e?Le[e]:Le[256+(e>>>7)],Fe.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],Fe.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],Fe.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fe._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ge=je([[144,8],[112,9],[24,7],[8,8]]);qe.Ie=He([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,Ge[t]])));const Je=je([[30,5]]);function Qe(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}qe.Ee=He([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,Je[t]]))),qe.Me=new qe(qe.Ie,Fe.Ce,257,286,Oe),qe.Ue=new qe(qe.Ee,Fe.xe,0,30,Oe),qe.Ke=new qe(null,Fe.Ae,0,19,7);const Xe=[new Qe(0,0,0,0,0),new Qe(4,4,8,4,1),new Qe(4,5,16,8,1),new Qe(4,6,32,32,1),new Qe(4,4,16,16,2),new Qe(8,16,32,32,2),new Qe(8,16,128,128,2),new Qe(8,32,128,256,2),new Qe(32,128,258,1024,2),new Qe(32,258,258,4096,2)],Ye=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Ze=113,$e=666,et=262;function tt(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function nt(){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 Fe,N=new Fe,O=new Fe;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*(Fe.ke[n]+256+1)]++,M[2*Fe.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+Fe.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=Fe.ke[s],Y(i+256+1,t),o=Fe.Ce[i],0!==o&&(s-=Fe.ve[i],X(s,o)),r--,i=Fe.ze(r),Y(i,n),o=Fe.xe[i],0!==o&&(r-=Fe.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*Fe._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(qe.Ie,qe.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*Fe._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-et){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(et>A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-et?C-(f-et):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&&tt(t,r[i+1],r[i],e.ue)&&i++,!tt(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?We:(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=Ze,c=0,K.se=E,K.oe=qe.Me,N.se=M,N.oe=qe.Ue,O.se=U,O.oe=qe.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=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Ze&&n!=$e?We:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Ze?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?We:(Xe[D].Be!=Xe[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return We;if(3>i)return 0;for(i>f-et&&(i=f-et,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 We;if(!r.et||!r.tt&&0!==r.je||n==$e&&4!=i)return r.Fe=Ye[4],We;if(0===r.nt)return r.Fe=Ye[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=Ze,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=Ye[7],-5;if(n==$e&&0!==t.je)return r.Fe=Ye[7],-5;if(0!==t.je||0!==A||0!=i&&n!=$e){switch(R=-1,Xe[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-et&&(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(et>A){if(ie(),et>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-et||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(et>A){if(ie(),et>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-et>=(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=$e),0==R||2==R)return 0===t.nt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,qe.Ie),$(),9>1+H+10-F&&(X(2,3),Y(256,qe.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 rt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function st(e){const t=new rt,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}}rt.prototype={Le(e,t){const n=this;return n.qe=new nt,t||(t=Oe),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):We},Xe(){const e=this;if(!e.qe)return We;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):We},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):We},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 it=0,ot=1,ct=-2,ft=-3,at=-4,lt=-5,ut=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],wt=1440,ht=[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],dt=[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],pt=[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],yt=[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],mt=[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],bt=[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],gt=15;function kt(){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,it;for(S=u[0],k=1;gt>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=gt;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 ft;if(0>(I-=n[g]))return ft;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>wt)return ft;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?lt:it}function c(o){let c;for(e||(e=[],t=[],n=new f(gt+1),r=[],s=new f(gt),i=new f(gt+1)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;gt+1>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,gt),0),i.set(n.subarray(0,gt+1),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==ft?f.Fe="oversubscribed dynamic bit lengths tree":a!=lt&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=ft),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,pt,yt,a,i,u,e,t),h!=it||0===i[0]?(h==ft?w.Fe="oversubscribed literal/length tree":h!=at&&(w.Fe="incomplete literal/length tree",h=ft),h):(c(288),h=o(s,n,r,0,mt,bt,l,f,u,e,t),h!=it||0===f[0]&&n>257?(h==ft?w.Fe="oversubscribed distance tree":h==lt?(w.Fe="incomplete distance tree",h=ft):h!=at&&(w.Fe="empty distance tree with lengths",h=ft),h):it)}}kt.ct=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ht,r[0]=dt,it);const vt=0,St=1,zt=2,Ct=3,xt=4,At=5,_t=6,It=7,Pt=8,Dt=9;function Vt(){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.ft,h=o.lt,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ut[e],g=ut[t];do{for(;20>h;)p--,w|=(255&c.ut(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&ut[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ut(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.ut(d++))<<h,h+=8;if(v=a[z+2]+(w&ut[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.wt[y++]=o.wt[S++]}while(0!=--u);else o.wt.set(o.wt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.wt[y++]=o.wt[S++],o.wt[y++]=o.wt[S++],k-=2):(o.wt.set(o.wt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--k);else o.wt.set(o.wt.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.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft;f+=a[z+2],f+=w&ut[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.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ot):(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.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft);if(f+=a[z+2],f+=w&ut[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.wt[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.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,it}e.init=(e,i,o,c,f,a)=>{t=vt,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ht=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case vt:if(z>=258&&v>=10&&(e.ft=x,e.lt=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.ft,A=e.lt,S=e.write,z=S<e.read?e.read-S-1:e.end-S,m!=it)){t=m==ot?It:Dt;break}c=u,n=r,o=h,t=St;case St:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}if(g=3*(o+(x&ut[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=_t;break}if(16&k){a=15&k,i=n[g+2],t=zt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=It;break}return t=Dt,y.Fe="invalid literal/length code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case zt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}i+=x&ut[b],x>>=b,A-=b,c=w,n=s,o=d,t=Ct;case Ct:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}if(g=3*(o+(x&ut[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=xt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=Dt,y.Fe="invalid distance code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case xt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}l+=x&ut[b],x>>=b,A-=b,t=At;case At: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.dt(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.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);e.wt[S++]=e.wt[C++],z--,C==e.end&&(C=0),i--}t=vt;break;case _t: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.dt(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.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,e.wt[S++]=f,z--,t=vt;break;case It:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.dt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);t=Pt;case Pt:return m=ot,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case Dt:return m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);default:return m=ct,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m)}},e.yt=()=>{}}const Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bt=0,Et=1,Mt=2,Ut=3,Kt=4,Nt=5,Ot=6,Tt=7,Wt=8,jt=9;function Ht(e,t){const n=this;let r,s=Bt,o=0,c=0,a=0;const l=[0],u=[0],w=new Vt;let h=0,d=new f(3*wt);const p=new kt;n.lt=0,n.ft=0,n.wt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),s==Ot&&w.yt(e),s=Bt,n.lt=0,n.ft=0,n.read=n.write=0},n.reset(e,null),n.dt=(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==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.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==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.ht=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ft,y=n.lt,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 Bt:for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(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=Et;break;case 1:S=[],z=[],C=[[]],x=[[]],kt.ct(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=Ot;break;case 2:f>>>=3,y-=3,s=Ut;break;case 3:return f>>>=3,y-=3,s=jt,e.Fe="invalid block type",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}break;case Et:for(;32>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=jt,e.Fe="invalid stored block lengths",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);o=65535&f,f=y=0,s=0!==o?Mt:0!==h?Tt:Bt;break;case Mt:if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(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.dt(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.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(t=it,i=o,i>b&&(i=b),i>k&&(i=k),n.wt.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?Tt:Bt;break;case Ut:for(;14>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=jt,e.Fe="too many length or distance symbols",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(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=Kt;case Kt:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}r[Rt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[Rt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),i!=it)return(t=i)==ft&&(r=null,s=jt),n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);a=0,s=Nt;case Nt:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ut[i]))+1],w=d[3*(u[0]+(f&ut[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.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ut[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=jt,e.Fe="invalid bit length repeat",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(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),i!=it)return i==ft&&(r=null,s=jt),t=i,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=Ot;case Ot:if(n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,(t=w.ht(n,e,t))!=ot)return n.dt(e,t);if(t=it,w.yt(e),m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=Bt;break}s=Tt;case Tt:if(n.write=g,t=n.dt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);s=Wt;case Wt:return t=ot,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);case jt:return t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);default:return t=ct,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}}},n.yt=e=>{n.reset(e,null),n.wt=null,d=null},n.bt=(e,t,r)=>{n.wt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>s==Et?1:0}const Lt=13,Ft=[0,0,255,255];function qt(){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),it):ct}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.yt(t),e.vt=null,it),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),ct):(e.Ct=r,n.kt.vt=new Ht(n,1<<r),t(n),it)),e._t=(e,t)=>{let n,r;if(!e||!e.kt||!e.tt)return ct;const s=e.kt;for(t=4==t?lt:it,n=lt;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.ut(e.rt++)))){s.mode=Lt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=Lt,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.ut(e.rt++),((s.method<<8)+r)%31!=0){s.mode=Lt,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.ut(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.ut(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.ut(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.ut(e.rt++),s.mode=6,2);case 6:return s.mode=Lt,e.Fe="need dictionary",s.marker=0,ct;case 7:if(n=s.vt.ht(e,n),n==ft){s.mode=Lt,s.marker=0;break}if(n==it&&(n=t),n!=ot)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,ot;case Lt:return ft;default:return ct}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return ct;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,it},e.Pt=e=>{let n,r,s,i,o;if(!e||!e.kt)return ct;const c=e.kt;if(c.mode!=Lt&&(c.mode=Lt,c.marker=0),0===(n=e.je))return lt;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.ut(r)==Ft[s]?s++:s=0!==e.ut(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?ft:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,it)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():ct}function Gt(){}function Jt(e){const t=new Gt,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===lt){if(0!==t.je)throw new s("inflating: bad input")}else if(a!==it&&a!==ot)throw new s("inflating: "+t.Fe);if((c||a===ot)&&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()}}Gt.prototype={At(e){const t=this;return t.kt=new qt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):ct},xt(){const e=this;if(!e.kt)return ct;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):ct},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):ct},ut(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=st,self.Inflate=Jt};\n'],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})})(ft),ft({Deflate:function(e){const t=new Y,n=(r=e&&e.chunkSize?e.chunkSize:65536)+5*(a.floor(r/16383)+1);var r;const i=new w(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,l=0,c=0;const f=[];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 new d("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==n?f.push(new w(i)):f.push(i.subarray(0,t.next_out_index))),c+=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 f.length>1?(a=new w(c),f.forEach((e=>{a.set(e,l),l+=e.length}))):a=f[0]?new w(f[0]):new w,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 new d("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 w(a),o.forEach((e=>{r.set(e,s),s+=e.length})),r}},Inflate:function(e){const t=new qe,n=e&&e.chunkSize?a.floor(2*e.chunkSize):131072,r=new w(n);let i=!1;t.inflateInit(),t.next_out=r,this.append=(e,s)=>{const a=[];let o,l,c=0,f=0,u=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===ne){if(0!==t.avail_in)throw new d("inflating: bad input")}else if(o!==Q&&o!==J)throw new d("inflating: "+t.msg);if((i||o===J)&&t.avail_in===e.length)throw new d("inflating: bad input");t.next_out_index&&(t.next_out_index===n?a.push(new w(r)):a.push(r.subarray(0,t.next_out_index))),u+=t.next_out_index,s&&t.next_in_index>0&&t.next_in_index!=c&&(s(t.next_in_index),c=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return a.length>1?(l=new w(u),a.forEach((e=>{l.set(e,f),f+=e.length}))):l=a[0]?new w(a[0]):new w,l}},this.flush=()=>{t.inflateEnd()}},baseURL:Li}),e.BlobReader=Yn,e.BlobWriter=Qn,e.Data64URIReader=class extends Zn{constructor(e){super();let t=e.length;for(;"="==e.charAt(t-1);)t--;const r=e.indexOf(",")+1;n.assign(this,{dataURI:e,dataStart:r,size:a.floor(.75*(t-r))})}readUint8Array(e,t){const{dataStart:n,dataURI:r}=this,i=new w(t),s=4*a.floor(e/3),o=atob(r.substring(s+n,4*a.ceil((e+t)/3)+n)),l=e-3*a.floor(s/4);for(let e=l;l+t>e;e++)i[e-l]=o.charCodeAt(e);return i}},e.Data64URIWriter=class extends Xn{constructor(e){super(),n.assign(this,{data:"data:"+(e||"")+";base64,",pending:[]})}writeUint8Array(e){const t=this;let n=0,i=t.pending;const s=t.pending.length;for(t.pending="",n=0;n<3*a.floor((s+e.length)/3)-s;n++)i+=r.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=r.fromCharCode(e[n]);i.length>2?t.data+=S(i):t.pending=i}getData(){return this.data+S(this.pending)}},e.ERR_BAD_FORMAT=Pr,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=Br,e.ERR_DUPLICATED_NAME=hi,e.ERR_ENCRYPTED=Kr,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Gr,e.ERR_EOCDR_NOT_FOUND=Mr,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=Vr,e.ERR_HTTP_RANGE=Nn,e.ERR_INVALID_COMMENT=pi,e.ERR_INVALID_ENCRYPTION_STRENGTH=bi,e.ERR_INVALID_ENTRY_COMMENT=_i,e.ERR_INVALID_ENTRY_NAME=gi,e.ERR_INVALID_EXTRAFIELD_DATA=xi,e.ERR_INVALID_EXTRAFIELD_TYPE=yi,e.ERR_INVALID_PASSWORD=St,e.ERR_INVALID_SIGNATURE=vt,e.ERR_INVALID_VERSION=mi,e.ERR_ITERATOR_COMPLETED_TOO_SOON=qn,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=Hr,e.ERR_SPLIT_ZIP_FILE=Yr,e.ERR_UNSUPPORTED_COMPRESSION=Xr,e.ERR_UNSUPPORTED_ENCRYPTION=Zr,e.ERR_UNSUPPORTED_FORMAT=ki,e.HttpRangeReader=class extends ur{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=ur,e.Reader=Zn,e.SplitDataReader=dr,e.SplitDataWriter=wr,e.SplitZipReader=mr,e.SplitZipWriter=br,e.TextReader=class extends Yn{constructor(e){super(new g([e],{type:"text/plain"}))}},e.TextWriter=class extends Qn{constructor(e){super(e),n.assign(this,{encoding:e,utf8:!e||"utf-8"==e.toLowerCase()})}async getData(){const{encoding:e,utf8:t}=this,r=await super.getData();if(r.text&&t)return r.text();{const t=new FileReader;return new m(((i,s)=>{n.assign(t,{onload:({target:e})=>i(e.result),onerror:()=>s(t.error)}),t.readAsText(r,e)}))}}},e.Uint8ArrayReader=class extends Zn{constructor(e){super(),n.assign(this,{array:e,size:e.length})}readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends Xn{init(e=0){n.assign(this,{offset:0,array:new w(e)}),super.init()}writeUint8Array(e){const t=this;if(t.offset+e.length>t.array.length){const n=t.array;t.array=new w(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}},e.Writer=Xn,e.ZipReader=ti,e.ZipReaderStream=class{constructor(e={}){const{readable:t,writable:n}=new v,r=new ti(t,e).getEntriesGenerator();this.readable=new z({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 v;if(n.getData)return n.getData(t),e})()};delete i.getData,e.enqueue(i)}}),this.writable=n}},e.ZipWriter=Ai,e.ZipWriterStream=class{constructor(e={}){const{readable:t,writable:n}=new v;this.readable=t,this.zipWriter=new Ai(n,e)}transform(e){const{readable:t,writable:n}=new v({flush:()=>{this.zipWriter.close()}});return this.zipWriter.add(e,t),{readable:this.readable,writable:n}}writable(e){const{readable:t,writable:n}=new v;return this.zipWriter.add(e,t),n}close(e,t={}){return this.zipWriter.close(e,t)}},e.configure=ft,e.getMimeType=()=>"application/octet-stream",e.initReader=pr,e.initShimAsyncCodec=(e,t={},n)=>({Deflate:dt(e.Deflate,t.deflate,n),Inflate:dt(e.Inflate,t.inflate,n)}),e.initStream=hr,e.initWriter=_r,e.readUint8Array=gr,e.terminateWorkers=async()=>{await m.allSettled(Tn.map((e=>(jn(e),e.terminate()))))}})); |