From 9eae3cad1d5848bb521f07f0c6ea9a2743fd2dc5 Mon Sep 17 00:00:00 2001 From: Gildas Date: Mon, 22 Jul 2024 22:58:38 +0200 Subject: [PATCH] update `single-file-core` --- build.sh | 2 +- lib/single-file-bundle.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index f200ffb..a0d2739 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -deno vendor "npm:single-file-core@1.5.8" +deno vendor "npm:single-file-core@1.5.9" echo " import { build } from 'npm:esbuild'; diff --git a/lib/single-file-bundle.js b/lib/single-file-bundle.js index b307b21..aaed482 100644 --- a/lib/single-file-bundle.js +++ b/lib/single-file-bundle.js @@ -1 +1 @@ -const script = "var singlefile=(()=>{var $n=Object.defineProperty;var Qw=Object.getOwnPropertyDescriptor;var ef=Object.getOwnPropertyNames;var tf=Object.prototype.hasOwnProperty;var ne=(e,t)=>{for(var a in t)$n(e,a,{get:t[a],enumerable:!0})},af=(e,t,a,o)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let i of ef(t))!tf.call(e,i)&&i!==a&&$n(e,i,{get:()=>t[i],enumerable:!(o=Qw(t,i))||o.enumerable});return e};var of=e=>af($n({},\"__esModule\",{value:!0}),e);var A1={};ne(A1,{SingleFile:()=>Xn,getPageData:()=>j1,helper:()=>Yi,init:()=>Gw,modules:()=>Bn,processors:()=>Ds,vendor:()=>Mn});var Ds={};ne(Ds,{compression:()=>Ro,frameTree:()=>Uo,hooksFrames:()=>zo,lazy:()=>ra});var Ro={};ne(Ro,{process:()=>xa});var is={};ne(is,{BlobReader:()=>ta,BlobWriter:()=>Ai,Data64URIReader:()=>vr,Data64URIWriter:()=>Sr,ERR_BAD_FORMAT:()=>ki,ERR_CENTRAL_DIRECTORY_NOT_FOUND:()=>cm,ERR_DUPLICATED_NAME:()=>wm,ERR_ENCRYPTED:()=>hm,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:()=>lm,ERR_EOCDR_NOT_FOUND:()=>sm,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:()=>mm,ERR_HTTP_RANGE:()=>Lo,ERR_INVALID_COMMENT:()=>fm,ERR_INVALID_ENCRYPTION_STRENGTH:()=>km,ERR_INVALID_ENTRY_COMMENT:()=>bm,ERR_INVALID_ENTRY_NAME:()=>ym,ERR_INVALID_EXTRAFIELD_DATA:()=>Sm,ERR_INVALID_EXTRAFIELD_TYPE:()=>vm,ERR_INVALID_PASSWORD:()=>Wr,ERR_INVALID_SIGNATURE:()=>Kr,ERR_INVALID_VERSION:()=>Dr,ERR_ITERATOR_COMPLETED_TOO_SOON:()=>Hd,ERR_LOCAL_FILE_HEADER_NOT_FOUND:()=>dm,ERR_SPLIT_ZIP_FILE:()=>_r,ERR_UNSUPPORTED_COMPRESSION:()=>Ir,ERR_UNSUPPORTED_ENCRYPTION:()=>um,ERR_UNSUPPORTED_FORMAT:()=>zi,HttpRangeReader:()=>Tr,HttpReader:()=>xi,Reader:()=>bt,SplitDataReader:()=>jo,SplitDataWriter:()=>va,SplitZipReader:()=>eb,SplitZipWriter:()=>tb,TextReader:()=>So,TextWriter:()=>Er,Uint8ArrayReader:()=>Lr,Uint8ArrayWriter:()=>Eo,Writer:()=>vo,ZipReader:()=>Ti,ZipReaderStream:()=>Mr,ZipWriter:()=>Ea,ZipWriterStream:()=>Nr,configure:()=>Co,getMimeType:()=>pf,initReader:()=>es,initShimAsyncCodec:()=>gf,initStream:()=>Ct,initWriter:()=>ts,readUint8Array:()=>Re,terminateWorkers:()=>Gf});var Cb={},{Array:Ft,Object:N,String:Lc,Number:Ao,BigInt:ze,Math:re,Date:ja,Map:Or,Set:Rc,Response:Fr,URL:Br,Error:H,Uint8Array:P,Uint16Array:zc,Uint32Array:Ur,DataView:aa,Blob:rd,Promise:Ne,TextEncoder:Ic,TextDecoder:sd,crypto:fo,btoa:_c,TransformStream:me,ReadableStream:Hr,WritableStream:xo,CompressionStream:Mc,DecompressionStream:Pc,navigator:Jn,Worker:gi}=globalThis,ue=4294967295,de=65535,or=8,ld=0,cd=99,dd=67324752,qr=134695760,nf=qr,ir=33639248,md=101010256,nr=101075792,hd=117853008,Qe=22,po=20,go=56,rf=Qe+po+go,ud=1,pd=39169,gd=10,wd=1,Gr=21589,sf=28789,lf=25461,fd=6534,rr=1,cf=6,sr=8,lr=2048,cr=16,df=20,Dc=45,Nc=51,wi=\"/\",Oc=new ja(2107,11,31),Fc=new ja(1980,0,1),Q=void 0,Bt=\"undefined\",Aa=\"function\",Si=class{constructor(t){return class extends me{constructor(a,o){let i=new t(o);super({transform(n,r){r.enqueue(i.append(n))},flush(n){let r=i.flush();r&&n.enqueue(r)}})}}}},mf=64,bd=2;try{typeof Jn!=Bt&&Jn.hardwareConcurrency&&(bd=Jn.hardwareConcurrency)}catch{}var hf={chunkSize:512*1024,maxWorkers:bd,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:Q,CompressionStreamNative:typeof Mc!=Bt&&Mc,DecompressionStreamNative:typeof Pc!=Bt&&Pc},Nt=N.assign({},hf);function Vr(){return Nt}function yd(e){return re.max(e.chunkSize,mf)}function Co(e){let{baseURL:t,chunkSize:a,maxWorkers:o,terminateWorkerTimeout:i,useCompressionStream:n,useWebWorkers:r,Deflate:s,Inflate:l,CompressionStream:c,DecompressionStream:d,workerScripts:m}=e;if(Pt(\"baseURL\",t),Pt(\"chunkSize\",a),Pt(\"maxWorkers\",o),Pt(\"terminateWorkerTimeout\",i),Pt(\"useCompressionStream\",n),Pt(\"useWebWorkers\",r),s&&(Nt.CompressionStream=new Si(s)),l&&(Nt.DecompressionStream=new Si(l)),Pt(\"CompressionStream\",c),Pt(\"DecompressionStream\",d),m!==Q){let{deflate:h,inflate:u}=m;if((h||u)&&(Nt.workerScripts||(Nt.workerScripts={})),h){if(!Ft.isArray(h))throw new H(\"workerScripts.deflate must be an array\");Nt.workerScripts.deflate=h}if(u){if(!Ft.isArray(u))throw new H(\"workerScripts.inflate must be an array\");Nt.workerScripts.inflate=u}}}function Pt(e,t){t!==Q&&(Nt[e]=t)}function uf(e){let t=()=>Br.createObjectURL(new rd([`const{Array:e,Object:t,Number:n,Math:s,Error:r,Uint8Array:a,Uint16Array:i,Uint32Array:o,Int32Array:l,Map:c,DataView:h,Promise:f,TextEncoder:u,crypto:p,postMessage:d,TransformStream:g,ReadableStream:w,WritableStream:y,CompressionStream:v,DecompressionStream:b}=self,m=void 0,_=\"undefined\",S=\"function\";class k{constructor(e){return class extends g{constructor(t,n){const s=new e(n);super({transform(e,t){t.enqueue(s.append(e))},flush(e){const t=s.flush();t&&e.enqueue(t)}})}}}}const z=[];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;z[e]=t}class D{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,s=0|e.length;s>n;n++)t=t>>>8^z[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class C extends g{constructor(){let e;const t=new D;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new a(4);new h(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const x={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],s=x.getPartial(n);return 32===s?e.concat(t):x._shiftRight(t,s,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)+x.getPartial(n)},clamp(e,t){if(32*e.length0&&t&&(e[n-1]=x.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=>s.round(e/1099511627776)||32,_shiftRight(e,t,n,s){for(void 0===s&&(s=[]);t>=32;t-=32)s.push(n),n=0;if(0===t)return s.concat(e);for(let r=0;r>>t),n=e[r]<<32-t;const r=e.length?e[e.length-1]:0,a=x.getPartial(r);return s.push(x.partial(t+a&31,t+a>32?n:s.pop(),1)),s}},I={bytes:{fromBits(e){const t=x.bitLength(e)/8,n=new a(t);let s;for(let r=0;t>r;r++)3&r||(s=e[r/4]),n[r]=s>>>24,s<<=8;return n},toBits(e){const t=[];let n,s=0;for(n=0;n9007199254740991)throw new r(\"Cannot hash more than 2^53 - 1 bits\");const i=new o(n);let l=0;for(let e=t.blockSize+s-(t.blockSize+s&t.blockSize-1);a>=e;e+=t.blockSize)t._block(i.subarray(16*l,16*(l+1))),l+=1;return n.splice(0,16*l),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=x.concat(t,[x.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(s.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,s){return e>19?e>39?e>59?e>79?void 0:t^n^s:t&n|t&s|n&s:t^n^s:t&n|~t&s}_S(e,t){return t<>>32-e}_block(t){const n=this,r=n._h,a=e(80);for(let e=0;16>e;e++)a[e]=t[e];let i=r[0],o=r[1],l=r[2],c=r[3],h=r[4];for(let e=0;79>=e;e++){16>e||(a[e]=n._S(1,a[e-3]^a[e-8]^a[e-14]^a[e-16]));const t=n._S(5,i)+n._f(e,o,l,c)+h+a[e]+n._key[s.floor(e/20)]|0;h=c,c=l,l=n._S(30,o),o=i,i=t}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+l|0,r[3]=r[3]+c|0,r[4]=r[4]+h|0}},A={getRandomValues(e){const t=new o(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)*(s.random()>.5?1:-1))};for(let r,a=0;anew q.hmacSha1(I.bytes.toBits(e)),pbkdf2(e,t,n,s){if(n=n||1e4,0>s||0>n)throw new r(\"invalid params to pbkdf2\");const a=1+(s>>5)<<2;let i,o,l,c,f;const u=new ArrayBuffer(a),p=new h(u);let d=0;const g=x;for(t=I.bytes.toBits(t),f=1;(a||1)>d;f++){for(i=o=e.encrypt(g.concat(t,[f])),l=1;n>l;l++)for(o=e.encrypt(o),c=0;cd&&lr&&(e=(new n).update(e).finalize());for(let t=0;r>t;t++)s[0][t]=909522486^e[t],s[1][t]=1549556828^e[t];t._baseHash[0].update(s[0]),t._baseHash[1].update(s[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 r(\"encrypt on already updated hmac called!\");return this.update(e),this.digest(e)}}},R=typeof p!=_&&typeof p.getRandomValues==S,H=\"Invalid password\",P=\"Invalid signature\",B=\"zipjs-abort-check-password\";function K(e){return R?p.getRandomValues(e):A.getRandomValues(e)}const V=16,E={name:\"PBKDF2\"},U=t.assign({hash:{name:\"HMAC\"}},E),W=t.assign({iterations:1e3,hash:{name:\"SHA-1\"}},E),M=[\"deriveBits\"],N=[8,12,16],O=[16,24,32],F=10,L=[0,0,0,0],j=typeof p!=_,G=j&&p.subtle,X=j&&typeof G!=_,J=I.bytes,Q=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],s=t._tables[1],a=e.length;let i,o,l,c=1;if(4!==a&&6!==a&&8!==a)throw new r(\"invalid aes key size\");for(t._key=[o=e.slice(0),l=[]],i=a;4*a+28>i;i++){let e=o[i-1];(i%a==0||8===a&&i%a==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],i%a==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),o[i]=o[i-a]^e}for(let e=0;i;e++,i--){const t=o[3&e?i:i-4];l[e]=4>=i||4>e?t:s[0][n[t>>>24]]^s[1][n[t>>16&255]]^s[2][n[t>>8&255]]^s[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],s=t[4],r=[],a=[];let i,o,l,c;for(let e=0;256>e;e++)a[(r[e]=e<<1^283*(e>>7))^e]=e;for(let h=i=0;!n[h];h^=o||1,i=a[i]||1){let a=i^i<<1^i<<2^i<<3^i<<4;a=a>>8^255&a^99,n[h]=a,s[a]=h,c=r[l=r[o=r[h]]];let f=16843009*c^65537*l^257*o^16843008*h,u=257*r[a]^16843008*a;for(let n=0;4>n;n++)e[n][h]=u=u<<24^u>>>8,t[n][a]=f=f<<24^f>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new r(\"invalid aes block size\");const n=this._key[t],s=n.length/4-2,a=[0,0,0,0],i=this._tables[t],o=i[0],l=i[1],c=i[2],h=i[3],f=i[4];let u,p,d,g=e[0]^n[0],w=e[t?3:1]^n[1],y=e[2]^n[2],v=e[t?1:3]^n[3],b=4;for(let e=0;s>e;e++)u=o[g>>>24]^l[w>>16&255]^c[y>>8&255]^h[255&v]^n[b],p=o[w>>>24]^l[y>>16&255]^c[v>>8&255]^h[255&g]^n[b+1],d=o[y>>>24]^l[v>>16&255]^c[g>>8&255]^h[255&w]^n[b+2],v=o[v>>>24]^l[g>>16&255]^c[w>>8&255]^h[255&y]^n[b+3],b+=4,g=u,w=p,y=d;for(let e=0;4>e;e++)a[t?3&-e:e]=f[g>>>24]<<24^f[w>>16&255]<<16^f[y>>8&255]<<8^f[255&v]^n[b++],u=g,g=w,w=y,y=v,v=u;return a}},Y=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,s=255&e;255===t?(t=0,255===n?(n=0,255===s?s=0:++s):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=s}return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let s;if(!(s=t.length))return[];const r=x.bitLength(t);for(let r=0;s>r;r+=4){this.incCounter(n);const s=e.encrypt(n);t[r]^=s[0],t[r+1]^=s[1],t[r+2]^=s[2],t[r+3]^=s[3]}return x.clamp(t,r)}},Z=q.hmacSha1;let $=j&&X&&typeof G.importKey==S,ee=j&&X&&typeof G.deriveBits==S;class te extends g{constructor({password:e,rawPassword:n,signed:s,encryptionStrength:i,checkPasswordOnly:o}){super({start(){t.assign(this,{ready:new f((e=>this.resolveReady=e)),password:ae(e,n),signed:s,strength:i-1,pending:new a})},async transform(e,t){const n=this,{password:s,strength:i,resolveReady:l,ready:c}=n;s?(await(async(e,t,n,s)=>{const a=await re(e,t,n,oe(s,0,N[t])),i=oe(s,N[t]);if(a[0]!=i[0]||a[1]!=i[1])throw new r(H)})(n,i,s,oe(e,0,N[i]+2)),e=oe(e,N[i]+2),o?t.error(new r(B)):l()):await c;const h=new a(e.length-F-(e.length-F)%V);t.enqueue(se(n,e,h,0,F,!0))},async flush(e){const{signed:t,ctr:n,hmac:s,pending:i,ready:o}=this;if(s&&n){await o;const l=oe(i,0,i.length-F),c=oe(i,i.length-F);let h=new a;if(l.length){const e=ce(J,l);s.update(e);const t=n.update(e);h=le(J,t)}if(t){const e=oe(le(J,s.digest()),0,F);for(let t=0;F>t;t++)if(e[t]!=c[t])throw new r(P)}e.enqueue(h)}}})}}class ne extends g{constructor({password:e,rawPassword:n,encryptionStrength:s}){let r;super({start(){t.assign(this,{ready:new f((e=>this.resolveReady=e)),password:ae(e,n),strength:s-1,pending:new a})},async transform(e,t){const n=this,{password:s,strength:r,resolveReady:i,ready:o}=n;let l=new a;s?(l=await(async(e,t,n)=>{const s=K(new a(N[t]));return ie(s,await re(e,t,n,s))})(n,r,s),i()):await o;const c=new a(l.length+e.length-e.length%V);c.set(l,0),t.enqueue(se(n,e,c,l.length,0))},async flush(e){const{ctr:t,hmac:n,pending:s,ready:i}=this;if(n&&t){await i;let o=new a;if(s.length){const e=t.update(ce(J,s));n.update(e),o=le(J,e)}r.signature=le(J,n.digest()).slice(0,F),e.enqueue(ie(o,r.signature))}}}),r=this}}function se(e,t,n,s,r,i){const{ctr:o,hmac:l,pending:c}=e,h=t.length-r;let f;for(c.length&&(t=ie(c,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new a(t)).set(n,0)}return e})(n,h-h%V)),f=0;h-V>=f;f+=V){const e=ce(J,oe(t,f,f+V));i&&l.update(e);const r=o.update(e);i||l.update(r),n.set(le(J,r),f+s)}return e.pending=oe(t,f),n}async function re(n,s,r,i){n.password=null;const o=await(async(e,t,n,s,r)=>{if(!$)return q.importKey(t);try{return await G.importKey(\"raw\",t,n,!1,r)}catch(e){return $=!1,q.importKey(t)}})(0,r,U,0,M),l=await(async(e,t,n)=>{if(!ee)return q.pbkdf2(t,e.salt,W.iterations,n);try{return await G.deriveBits(e,t,n)}catch(s){return ee=!1,q.pbkdf2(t,e.salt,W.iterations,n)}})(t.assign({salt:i},W),o,8*(2*O[s]+2)),c=new a(l),h=ce(J,oe(c,0,O[s])),f=ce(J,oe(c,O[s],2*O[s])),u=oe(c,2*O[s]);return t.assign(n,{keys:{key:h,authentication:f,passwordVerification:u},ctr:new Y(new Q(h),e.from(L)),hmac:new Z(f)}),u}function ae(e,t){return t===m?(e=>{if(typeof u==_){const t=new a((e=unescape(encodeURIComponent(e))).length);for(let n=0;n>>24]),a=~e.crcKey2.get(),e.keys=[n,r,a]}function we(e){const t=2|e.keys[2];return ye(s.imul(t,1^t)>>>8)}function ye(e){return 255&e}function ve(e){return 4294967295&e}const be=\"deflate-raw\";class me extends g{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:s}){super({});const{compressed:r,encrypted:a,useCompressionStream:i,zipCrypto:o,signed:l,level:c}=e,f=this;let u,p,d=Se(super.readable);a&&!o||!l||(u=new C,d=De(d,u)),r&&(d=ze(d,i,{level:c,chunkSize:t},s,n)),a&&(o?d=De(d,new fe(e)):(p=new ne(e),d=De(d,p))),ke(f,d,(()=>{let e;a&&!o&&(e=p.signature),a&&!o||!l||(e=new h(u.value.buffer).getUint32(0)),f.signature=e}))}}class _e extends g{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:s}){super({});const{zipCrypto:a,encrypted:i,signed:o,signature:l,compressed:c,useCompressionStream:f}=e;let u,p,d=Se(super.readable);i&&(a?d=De(d,new he(e)):(p=new te(e),d=De(d,p))),c&&(d=ze(d,f,{chunkSize:t},s,n)),i&&!a||!o||(u=new C,d=De(d,u)),ke(this,d,(()=>{if((!i||a)&&o){const e=new h(u.value.buffer);if(l!=e.getUint32(0,!1))throw new r(P)}}))}}function Se(e){return De(e,new g({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ke(e,n,s){n=De(n,new g({flush:s})),t.defineProperty(e,\"readable\",{get:()=>n})}function ze(e,t,n,s,r){try{e=De(e,new(t&&s?s:r)(be,n))}catch(s){if(!t)return e;try{e=De(e,new r(be,n))}catch(t){return e}}return e}function De(e,t){return e.pipeThrough(t)}const Ce=\"data\",xe=\"close\";class Ie extends g{constructor(e,n){super({});const s=this,{codecType:r}=e;let a;r.startsWith(\"deflate\")?a=me:r.startsWith(\"inflate\")&&(a=_e);let i=0,o=0;const l=new a(e,n),c=super.readable,h=new g({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){t.assign(s,{inputSize:o})}}),f=new g({transform(e,t){e&&e.length&&(i+=e.length,t.enqueue(e))},flush(){const{signature:e}=l;t.assign(s,{signature:e,outputSize:i,inputSize:o})}});t.defineProperty(s,\"readable\",{get:()=>c.pipeThrough(h).pipeThrough(l).pipeThrough(f)})}}class Te extends g{constructor(e){let t;super({transform:function n(s,r){if(t){const e=new a(t.length+s.length);e.set(t),e.set(s,t.length),s=e,t=null}s.length>e?(r.enqueue(s.slice(0,e)),n(s.slice(e),r)):t=s},flush(e){t&&t.length&&e.enqueue(t)}})}}const Ae=new c,qe=new c;let Re,He=0,Pe=!0;async function Be(e){try{const{options:t,scripts:s,config:r}=e;if(s&&s.length)try{Pe?importScripts.apply(m,s):await Ke(s)}catch(e){Pe=!1,await Ke(s)}self.initCodec&&self.initCodec(),r.CompressionStreamNative=self.CompressionStream,r.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(r.CompressionStream=new k(self.Deflate)),self.Inflate&&(r.DecompressionStream=new k(self.Inflate));const a={highWaterMark:1},i=e.readable||new w({async pull(e){const t=new f((e=>Ae.set(He,e)));Ve({type:\"pull\",messageId:He}),He=(He+1)%n.MAX_SAFE_INTEGER;const{value:s,done:r}=await t;e.enqueue(s),r&&e.close()}},a),o=e.writable||new y({async write(e){let t;const s=new f((e=>t=e));qe.set(He,t),Ve({type:Ce,value:e,messageId:He}),He=(He+1)%n.MAX_SAFE_INTEGER,await s}},a),l=new Ie(t,r);Re=new AbortController;const{signal:c}=Re;await i.pipeThrough(l).pipeThrough(new Te(r.chunkSize)).pipeTo(o,{signal:c,preventClose:!0,preventAbort:!0}),await o.getWriter().close();const{signature:h,inputSize:u,outputSize:p}=l;Ve({type:xe,result:{signature:h,inputSize:u,outputSize:p}})}catch(e){Ee(e)}}async function Ke(e){for(const t of e)await import(t)}function Ve(e){let{value:t}=e;if(t)if(t.length)try{t=new a(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ee(e=new r(\"Unknown error\")){const{message:t,stack:n,code:s,name:a}=e;d({error:{message:t,stack:n,code:s,name:a}})}addEventListener(\"message\",(({data:e})=>{const{type:t,messageId:n,value:s,done:r}=e;try{if(\"start\"==t&&Be(e),t==Ce){const e=Ae.get(n);Ae.delete(n),e({value:new a(s),done:r})}if(\"ack\"==t){const e=qe.get(n);qe.delete(n),e()}t==xe&&Re.abort()}catch(e){Ee(e)}}));var Ue=a,We=i,Me=l,Ne=new Ue([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,0,0,0]),Oe=new Ue([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,0,0]),Fe=new Ue([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Le=(e,t)=>{for(var n=new We(31),s=0;31>s;++s)n[s]=t+=1<s;++s)for(var a=n[s];a$e;++$e){var et=(43690&$e)>>1|(21845&$e)<<1;et=(61680&(et=(52428&et)>>2|(13107&et)<<2))>>4|(3855&et)<<4,Ze[$e]=((65280&et)>>8|(255&et)<<8)>>1}var tt=(e,t,n)=>{for(var s=e.length,r=0,a=new We(t);s>r;++r)e[r]&&++a[e[r]-1];var i,o=new We(t);for(r=1;t>r;++r)o[r]=o[r-1]+a[r-1]<<1;if(n){i=new We(1<r;++r)if(e[r])for(var c=r<<4|e[r],h=t-e[r],f=o[e[r]-1]++<=f;++f)i[Ze[f]>>l]=c}else for(i=new We(s),r=0;s>r;++r)e[r]&&(i[r]=Ze[o[e[r]-1]++]>>15-e[r]);return i},nt=new Ue(288);for($e=0;144>$e;++$e)nt[$e]=8;for($e=144;256>$e;++$e)nt[$e]=9;for($e=256;280>$e;++$e)nt[$e]=7;for($e=280;288>$e;++$e)nt[$e]=8;var st=new Ue(32);for($e=0;32>$e;++$e)st[$e]=5;var rt=tt(nt,9,0),at=tt(nt,9,1),it=tt(st,5,0),ot=tt(st,5,1),lt=e=>{for(var t=e[0],n=1;nt&&(t=e[n]);return t},ct=(e,t,n)=>{var s=t/8|0;return(e[s]|e[s+1]<<8)>>(7&t)&n},ht=(e,t)=>{var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},ft=e=>(e+7)/8|0,ut=(e,t,n)=>((null==t||0>t)&&(t=0),(null==n||n>e.length)&&(n=e.length),new Ue(e.subarray(t,n))),pt=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],dt=(e,t,n)=>{var s=new r(t||pt[e]);if(s.code=e,r.captureStackTrace&&r.captureStackTrace(s,dt),!n)throw s;return s},gt=(e,t,n)=>{n<<=7&t;var s=t/8|0;e[s]|=n,e[s+1]|=n>>8},wt=(e,t,n)=>{n<<=7&t;var s=t/8|0;e[s]|=n,e[s+1]|=n>>8,e[s+2]|=n>>16},yt=(e,t)=>{for(var n=[],s=0;se.f-t.f)),n.push({s:-1,f:25001});var o=n[0],l=n[1],c=0,h=1,f=2;for(n[0]={s:-1,f:o.f+l.f,l:o,r:l};h!=r-1;)o=n[n[c].fs;++s)a[s].s>u&&(u=a[s].s);var p=new We(u+1),d=vt(n[h-1],p,0);if(d>t){s=0;var g=0,w=d-t,y=1<p[t.s]-p[e.s]||e.f-t.f));r>s;++s){var v=a[s].s;if(p[v]<=t)break;g+=y-(1<>=w;g>0;){var b=a[s].s;p[b]=0&&g;--s){var m=a[s].s;p[m]==t&&(--p[m],++g)}d=t}return{t:new Ue(p),l:d}},vt=(e,t,n)=>-1==e.s?s.max(vt(e.l,t,n+1),vt(e.r,t,n+1)):t[e.s]=n,bt=e=>{for(var t=e.length;t&&!e[--t];);for(var n=new We(++t),s=0,r=e[0],a=1,i=e=>{n[s++]=e},o=1;t>=o;++o)if(e[o]==r&&o!=t)++a;else{if(!r&&a>2){for(;a>138;a-=138)i(32754);a>2&&(i(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(i(r),--a;a>6;a-=6)i(8304);a>2&&(i(a-3<<5|8208),a=0)}for(;a--;)i(r);a=1,r=e[o]}return{c:n.subarray(0,s),n:t}},mt=(e,t)=>{for(var n=0,s=0;s{var s=n.length,r=ft(t+2);e[r]=255&s,e[r+1]=s>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var a=0;s>a;++a)e[r+a+4]=n[a];return 8*(r+4+s)},St=(e,t,n,s,r,a,i,o,l,c,h)=>{gt(t,h++,n),++r[256];for(var f=yt(r,15),u=f.t,p=f.l,d=yt(a,15),g=d.t,w=d.l,y=bt(u),v=y.c,b=y.n,m=bt(g),_=m.c,S=m.n,k=new We(19),z=0;z4&&!C[Fe[I-1]];--I);var T,A,q,R,H=c+5<<3,P=mt(r,nt)+mt(a,st)+i,B=mt(r,u)+mt(a,g)+i+14+3*I+mt(k,C)+2*k[16]+3*k[17]+7*k[18];if(l>=0&&P>=H&&B>=H)return _t(t,h,e.subarray(l,l+c));if(gt(t,h,1+(P>B)),h+=2,P>B){T=tt(u,p,0),A=u,q=tt(g,w,0),R=g;var K=tt(C,x,0);for(gt(t,h,b-257),gt(t,h+5,S-1),gt(t,h+10,I-4),h+=14,z=0;I>z;++z)gt(t,h+3*z,C[Fe[z]]);h+=3*I;for(var V=[v,_],E=0;2>E;++E){var U=V[E];for(z=0;z15&&(gt(t,h,U[z]>>5&127),h+=U[z]>>12)}}}else T=rt,A=nt,q=it,R=st;for(z=0;o>z;++z){var M=s[z];if(M>255){wt(t,h,T[257+(W=M>>18&31)]),h+=A[W+257],W>7&&(gt(t,h,M>>23&31),h+=Ne[W]);var N=31&M;wt(t,h,q[N]),h+=R[N],N>3&&(wt(t,h,M>>5&8191),h+=Oe[N])}else wt(t,h,T[M]),h+=A[M]}return wt(t,h,T[256]),h+A[256]},kt=new Me([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zt=new Ue(0),Dt=function(){function e(e,t){if(\"function\"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Ue(98304),this.o.dictionary){var n=this.o.dictionary.subarray(-32768);this.b.set(n,32768-n.length),this.s.i=32768-n.length}}return e.prototype.p=function(e,t){this.ondata(((e,t,n,r,a)=>{if(!a&&(a={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new Ue(i.length+e.length);o.set(i),o.set(e,i.length),e=o,a.w=i.length}return((e,t,n,r,a,i)=>{var o=i.z||e.length,l=new Ue(0+o+5*(1+s.ceil(o/7e3))+0),c=l.subarray(0,l.length-0),h=i.l,f=7&(i.r||0);if(t){f&&(c[0]=i.r>>3);for(var u=kt[t-1],p=u>>13,d=8191&u,g=(1<(e[t]^e[t+1]<C+2;++C){var A=m(C),q=32767&C,R=y[A];if(w[q]=R,y[A]=q,C>=I){var H=o-C;if((z>7e3||x>24576)&&(H>423||!h)){f=St(e,c,0,_,S,k,D,x,T,C-T,f),x=z=D=0,T=C;for(var P=0;286>P;++P)S[P]=0;for(P=0;30>P;++P)k[P]=0}var B=2,K=0,V=d,E=q-R&32767;if(H>2&&A==m(C-E))for(var U=s.min(p,H)-1,W=s.min(32767,C),M=s.min(258,H);W>=E&&--V&&q!=R;){if(e[C+B]==e[C+B-E]){for(var N=0;M>N&&e[C+N]==e[C+N-E];++N);if(N>B){if(B=N,K=E,N>U)break;var O=s.min(E,N-2),F=0;for(P=0;O>P;++P){var L=C-E+P&32767,j=L-w[L]&32767;j>F&&(F=j,R=L)}}}E+=(q=R)-(R=w[q])&32767}if(K){_[x++]=268435456|Xe[B]<<18|Ye[K];var G=31&Xe[B],X=31&Ye[K];D+=Ne[G]+Oe[X],++S[257+G],++k[X],I=C+B,++z}else _[x++]=e[C],++S[e[C]]}}for(C=s.max(C,I);o>C;++C)_[x++]=e[C],++S[e[C]];f=St(e,c,h,_,S,k,D,x,T,C-T,f),h||(i.r=7&f|c[f/8|0]<<3,f-=7,i.h=y,i.p=w,i.i=C,i.w=I)}else{for(C=i.w||0;o+h>C;C+=65535){var J=C+65535;o>J||(c[f/8|0]=h,J=o),f=_t(c,f+1,e.subarray(C,J))}i.i=o}return ut(l,0,0+ft(f)+0)})(e,null==t.level?6:t.level,null==t.mem?a.l?s.ceil(1.5*s.max(8,s.min(13,s.log(e.length)))):20:12+t.mem,0,0,a)})(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||dt(5),this.s.l&&dt(4);var n=e.length+this.s.z;if(n>this.b.length){if(n>2*this.b.length-32768){var s=new Ue(-32768&n);s.set(this.b.subarray(0,this.s.z)),this.b=s}var r=this.b.length-this.s.z;this.b.set(e.subarray(0,r),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(r),32768),this.s.z=e.length-r+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e.prototype.flush=function(){this.ondata||dt(5),this.s.l&&dt(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},e}(),Ct=function(){function e(e,t){\"function\"==typeof e&&(t=e,e={}),this.ondata=t;var n=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new Ue(32768),this.p=new Ue(0),n&&this.o.set(n)}return e.prototype.e=function(e){if(this.ondata||dt(5),this.d&&dt(4),this.p.length){if(e.length){var t=new Ue(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,n=((e,t,n)=>{var r=e.length;if(!r||t.f&&!t.l)return n||new Ue(0);var a=!n,i=a||2!=t.i,o=t.i;a&&(n=new Ue(3*r));var l=e=>{var t=n.length;if(e>t){var r=new Ue(s.max(2*t,e));r.set(n),n=r}},c=t.f||0,h=t.p||0,f=t.b||0,u=t.l,p=t.d,d=t.m,g=t.n,w=8*r;do{if(!u){c=ct(e,h,1);var y=ct(e,h+1,3);if(h+=3,!y){var v=e[(T=ft(h)+4)-4]|e[T-3]<<8,b=T+v;if(b>r){o&&dt(0);break}i&&l(f+v),n.set(e.subarray(T,b),f),t.b=f+=v,t.p=h=8*b,t.f=c;continue}if(1==y)u=at,p=ot,d=9,g=5;else if(2==y){var m=ct(e,h,31)+257,_=ct(e,h+10,15)+4,S=m+ct(e,h+5,31)+1;h+=14;for(var k=new Ue(S),z=new Ue(19),D=0;_>D;++D)z[Fe[D]]=ct(e,h+3*D,7);h+=3*_;var C=lt(z),x=(1<D;){var T,A=I[ct(e,h,x)];if(h+=15&A,16>(T=A>>4))k[D++]=T;else{var q=0,R=0;for(16==T?(R=3+ct(e,h,3),h+=2,q=k[D-1]):17==T?(R=3+ct(e,h,7),h+=3):18==T&&(R=11+ct(e,h,127),h+=7);R--;)k[D++]=q}}var H=k.subarray(0,m),P=k.subarray(m);d=lt(H),g=lt(P),u=tt(H,d,1),p=tt(P,g,1)}else dt(1);if(h>w){o&&dt(0);break}}i&&l(f+131072);for(var B=(1<>4;if((h+=15&q)>w){o&&dt(0);break}if(q||dt(2),256>E)n[f++]=E;else{if(256==E){V=h,u=null;break}var U=E-254;if(E>264){var W=Ne[D=E-257];U=ct(e,h,(1<>4;if(M||dt(3),h+=15&M,P=Qe[N],N>3&&(W=Oe[N],P+=ht(e,h)&(1<w){o&&dt(0);break}i&&l(f+131072);var O=f+U;if(P>f){var F=0-P,L=s.min(P,O);for(0>F+f&&dt(3);L>f;++f)n[f]=(void 0)[F+f]}for(;O>f;++f)n[f]=n[f-P]}}t.l=u,t.p=V,t.b=f,t.f=c,u&&(c=1,t.m=d,t.d=p,t.n=g)}while(!c);return f!=n.length&&a?ut(n,0,f):n.subarray(0,f)})(this.p,this.s,this.o);this.ondata(ut(n,t,this.s.b),this.d),this.o=ut(n,this.s.b-32768),this.s.b=this.o.length,this.p=ut(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),xt=\"undefined\"!=typeof TextDecoder&&new TextDecoder;try{xt.decode(zt,{stream:!0})}catch(e){}function It(e,n,s){return class{constructor(r){const i=this;var o,l;o=r,l=\"level\",(typeof t.hasOwn===S?t.hasOwn(o,l):o.hasOwnProperty(l))&&r.level===m&&delete r.level,i.codec=new e(t.assign({},n,r)),s(i.codec,(e=>{if(i.pendingData){const t=i.pendingData;i.pendingData=new a(t.length+e.length);const{pendingData:n}=i;n.set(t,0),n.set(e,t.length)}else i.pendingData=new a(e)}))}append(e){return this.codec.push(e),r(this)}flush(){return this.codec.push(new a,!0),r(this)}};function r(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new a}}const{Deflate:Tt,Inflate:At}=((e,t={},n)=>({Deflate:It(e.Deflate,t.deflate,n),Inflate:It(e.Inflate,t.inflate,n)}))({Deflate:Dt,Inflate:Ct},m,((e,t)=>e.ondata=t));self.initCodec=()=>{self.Deflate=Tt,self.Inflate=At};\n`],{type:\"text/javascript\"}));e({workerScripts:{inflate:[t],deflate:[t]}})}function pf(){return\"application/octet-stream\"}function gf(e,t={},a){return{Deflate:Bc(e.Deflate,t.deflate,a),Inflate:Bc(e.Inflate,t.inflate,a)}}function wf(e,t){return typeof N.hasOwn===Aa?N.hasOwn(e,t):e.hasOwnProperty(t)}function Bc(e,t,a){return class{constructor(i){let n=this,r=s=>{if(n.pendingData){let l=n.pendingData;n.pendingData=new P(l.length+s.length);let{pendingData:c}=n;c.set(l,0),c.set(s,l.length)}else n.pendingData=new P(s)};wf(i,\"level\")&&i.level===Q&&delete i.level,n.codec=new e(N.assign({},t,i)),a(n.codec,r)}append(i){return this.codec.push(i),o(this)}flush(){return this.codec.push(new P,!0),o(this)}};function o(i){if(i.pendingData){let n=i.pendingData;return i.pendingData=null,n}else return new P}}var kd=[];for(let e=0;e<256;e++){let t=e;for(let a=0;a<8;a++)t&1?t=t>>>1^3988292384:t=t>>>1;kd[e]=t}var ya=class{constructor(t){this.crc=t||-1}append(t){let a=this.crc|0;for(let o=0,i=t.length|0;o>>8^kd[(a^t[o])&255];this.crc=a}get(){return~this.crc}},Ei=class extends me{constructor(){let t,a=new ya;super({transform(o,i){a.append(o),i.enqueue(o)},flush(){let o=new P(4);new aa(o.buffer).setUint32(0,a.get()),t.value=o}}),t=this}};function fi(e){if(typeof Ic==Bt){e=unescape(encodeURIComponent(e));let t=new P(e.length);for(let a=0;a0&&t&&(e[a-1]=De.partial(t,e[a-1]&2147483648>>t-1,1)),e},partial(e,t,a){return e===32?t:(a?t|0:t<<32-e)+e*1099511627776},getPartial(e){return re.round(e/1099511627776)||32},_shiftRight(e,t,a,o){for(o===void 0&&(o=[]);t>=32;t-=32)o.push(a),a=0;if(t===0)return o.concat(e);for(let r=0;r>>t),a=e[r]<<32-t;let i=e.length?e[e.length-1]:0,n=De.getPartial(i);return o.push(De.partial(t+n&31,t+n>32?a:o.pop(),1)),o}},ji={bytes:{fromBits(e){let a=De.bitLength(e)/8,o=new P(a),i;for(let n=0;n>>24,i<<=8;return o},toBits(e){let t=[],a,o=0;for(a=0;a9007199254740991)throw new H(\"Cannot hash more than 2^53 - 1 bits\");let n=new Ur(a),r=0;for(let s=t.blockSize+o-(t.blockSize+o&t.blockSize-1);s<=i;s+=t.blockSize)t._block(n.subarray(16*r,16*(r+1))),r+=1;return a.splice(0,16*r),t}finalize(){let e=this,t=e._buffer,a=e._h;t=De.concat(t,[De.partial(1,1)]);for(let o=t.length+2;o&15;o++)t.push(0);for(t.push(re.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),a}_f(e,t,a,o){if(e<=19)return t&a|~t&o;if(e<=39)return t^a^o;if(e<=59)return t&a|t&o|a&o;if(e<=79)return t^a^o}_S(e,t){return t<>>32-e}_block(e){let t=this,a=t._h,o=Ft(80);for(let c=0;c<16;c++)o[c]=e[c];let i=a[0],n=a[1],r=a[2],s=a[3],l=a[4];for(let c=0;c<=79;c++){c>=16&&(o[c]=t._S(1,o[c-3]^o[c-8]^o[c-14]^o[c-16]));let d=t._S(5,i)+t._f(c,n,r,s)+l+o[c]+t._key[re.floor(c/20)]|0;l=s,s=r,r=t._S(30,n),n=i,i=d}a[0]=a[0]+i|0,a[1]=a[1]+n|0,a[2]=a[2]+r|0,a[3]=a[3]+s|0,a[4]=a[4]+l|0}};var Sd={};Sd.aes=class{constructor(e){let t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();let a=t._tables[0][4],o=t._tables[1],i=e.length,n,r,s,l=1;if(i!==4&&i!==6&&i!==8)throw new H(\"invalid aes key size\");for(t._key=[r=e.slice(0),s=[]],n=i;n<4*i+28;n++){let c=r[n-1];(n%i===0||i===8&&n%i===4)&&(c=a[c>>>24]<<24^a[c>>16&255]<<16^a[c>>8&255]<<8^a[c&255],n%i===0&&(c=c<<8^c>>>24^l<<24,l=l<<1^(l>>7)*283)),r[n]=r[n-i]^c}for(let c=0;n;c++,n--){let d=r[c&3?n:n-4];n<=4||c<4?s[c]=d:s[c]=o[0][a[d>>>24]]^o[1][a[d>>16&255]]^o[2][a[d>>8&255]]^o[3][a[d&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){let e=this._tables[0],t=this._tables[1],a=e[4],o=t[4],i=[],n=[],r,s,l,c;for(let d=0;d<256;d++)n[(i[d]=d<<1^(d>>7)*283)^d]=d;for(let d=r=0;!a[d];d^=s||1,r=n[r]||1){let m=r^r<<1^r<<2^r<<3^r<<4;m=m>>8^m&255^99,a[d]=m,o[m]=d,c=i[l=i[s=i[d]]];let h=c*16843009^l*65537^s*257^d*16843008,u=i[m]*257^m*16843008;for(let p=0;p<4;p++)e[p][d]=u=u<<24^u>>>8,t[p][m]=h=h<<24^h>>>8}for(let d=0;d<5;d++)e[d]=e[d].slice(0),t[d]=t[d].slice(0)}_crypt(e,t){if(e.length!==4)throw new H(\"invalid aes block size\");let a=this._key[t],o=a.length/4-2,i=[0,0,0,0],n=this._tables[t],r=n[0],s=n[1],l=n[2],c=n[3],d=n[4],m=e[0]^a[0],h=e[t?3:1]^a[1],u=e[2]^a[2],p=e[t?1:3]^a[3],w=4,b,k,E;for(let v=0;v>>24]^s[h>>16&255]^l[u>>8&255]^c[p&255]^a[w],k=r[h>>>24]^s[u>>16&255]^l[p>>8&255]^c[m&255]^a[w+1],E=r[u>>>24]^s[p>>16&255]^l[m>>8&255]^c[h&255]^a[w+2],p=r[p>>>24]^s[m>>16&255]^l[h>>8&255]^c[u&255]^a[w+3],w+=4,m=b,h=k,u=E;for(let v=0;v<4;v++)i[t?3&-v:v]=d[m>>>24]<<24^d[h>>16&255]<<16^d[u>>8&255]<<8^d[p&255]^a[w++],b=m,m=h,h=u,u=p,p=b;return i}};var ff={getRandomValues(e){let t=new Ur(e.buffer),a=o=>{let i=987654321,n=4294967295;return function(){return i=36969*(i&65535)+(i>>16)&n,o=18e3*(o&65535)+(o>>16)&n,(((i<<16)+o&n)/4294967296+.5)*(re.random()>.5?1:-1)}};for(let o=0,i;o>24&255)===255){let t=e>>16&255,a=e>>8&255,o=e&255;t===255?(t=0,a===255?(a=0,o===255?o=0:++o):++a):++t,e=0,e+=t<<16,e+=a<<8,e+=o}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,a){let o;if(!(o=t.length))return[];let i=De.bitLength(t);for(let n=0;n>5)+1<<2,n,r,s,l,c,d=new ArrayBuffer(i),m=new aa(d),h=0,u=De;for(t=ji.bytes.toBits(t),c=1;h<(i||1);c++){for(n=r=e.encrypt(u.concat(t,[c])),s=1;si&&(e=new a().update(e).finalize());for(let n=0;nthis.resolveReady=r),password:Ld(t,a),signed:o,strength:i-1,pending:new P})},async transform(r,s){let l=this,{password:c,strength:d,resolveReady:m,ready:h}=l;c?(await Tf(l,d,c,et(r,0,bo[d]+2)),r=et(r,bo[d]+2),n?s.error(new H(Xr)):m()):await h;let u=new P(r.length-Dt-(r.length-Dt)%wa);s.enqueue(Cd(l,r,u,0,Dt,!0))},async flush(r){let{signed:s,ctr:l,hmac:c,pending:d,ready:m}=this;if(c&&l){await m;let h=et(d,0,d.length-Dt),u=et(d,d.length-Dt),p=new P;if(h.length){let w=ko(wt,h);c.update(w);let b=l.update(w);p=yo(wt,b)}if(s){let w=et(yo(wt,c.digest()),0,Dt);for(let b=0;bthis.resolveReady=n),password:Ld(t,a),strength:o-1,pending:new P})},async transform(n,r){let s=this,{password:l,strength:c,resolveReady:d,ready:m}=s,h=new P;l?(h=await Lf(s,c,l),d()):await m;let u=new P(h.length+n.length-n.length%wa);u.set(h,0),r.enqueue(Cd(s,n,u,h.length,0))},async flush(n){let{ctr:r,hmac:s,pending:l,ready:c}=this;if(s&&r){await c;let d=new P;if(l.length){let m=r.update(ko(wt,l));s.update(m),d=yo(wt,m)}i.signature=yo(wt,s.digest()).slice(0,Dt),n.enqueue(Yr(d,i.signature))}}}),i=this}};function Cd(e,t,a,o,i,n){let{ctr:r,hmac:s,pending:l}=e,c=t.length-i;l.length&&(t=Yr(l,t),a=If(a,c-c%wa));let d;for(d=0;d<=c-wa;d+=wa){let m=ko(wt,et(t,d,d+wa));n&&s.update(m);let h=r.update(m);n||s.update(h),a.set(yo(wt,h),d+o)}return e.pending=et(t,d),a}async function Tf(e,t,a,o){let i=await Td(e,t,a,et(o,0,bo[t])),n=et(o,bo[t]);if(i[0]!=n[0]||i[1]!=n[1])throw new H(Wr)}async function Lf(e,t,a){let o=jd(new P(bo[t])),i=await Td(e,t,a,o);return Yr(o,i)}async function Td(e,t,a,o){e.password=null;let i=await Rf(yf,a,Sf,!1,Ef),n=await zf(N.assign({salt:o},dr),i,8*(uo[t]*2+2)),r=new P(n),s=ko(wt,et(r,0,uo[t])),l=ko(wt,et(r,uo[t],uo[t]*2)),c=et(r,uo[t]*2);return N.assign(e,{keys:{key:s,authentication:l,passwordVerification:c},ctr:new xf(new Af(s),Ft.from(jf)),hmac:new Cf(l)}),c}async function Rf(e,t,a,o,i){if(Uc)try{return await To.importKey(e,t,a,o,i)}catch{return Uc=!1,ea.importKey(t)}else return ea.importKey(t)}async function zf(e,t,a){if(Hc)try{return await To.deriveBits(e,t,a)}catch{return Hc=!1,ea.pbkdf2(t,e.salt,dr.iterations,a)}else return ea.pbkdf2(t,e.salt,dr.iterations,a)}function Ld(e,t){return t===Q?fi(e):t}function Yr(e,t){let a=e;return e.length+t.length&&(a=new P(e.length+t.length),a.set(e,0),a.set(t,e.length)),a}function If(e,t){if(t&&t>e.length){let a=e;e=new P(t),e.set(a,0)}return e}function et(e,t,a){return e.subarray(t,a)}function yo(e,t){return e.fromBits(t)}function ko(e,t){return e.toBits(t)}var fa=12,ur=class extends me{constructor({password:t,passwordVerification:a,checkPasswordOnly:o}){super({start(){N.assign(this,{password:t,passwordVerification:a}),Rd(this,t)},transform(i,n){let r=this;if(r.password){let s=qc(r,i.subarray(0,fa));if(r.password=null,s[fa-1]!=r.passwordVerification)throw new H(Wr);i=i.subarray(fa)}o?n.error(new H(Xr)):n.enqueue(qc(r,i))}})}},pr=class extends me{constructor({password:t,passwordVerification:a}){super({start(){N.assign(this,{password:t,passwordVerification:a}),Rd(this,t)},transform(o,i){let n=this,r,s;if(n.password){n.password=null;let l=jd(new P(fa));l[fa-1]=n.passwordVerification,r=new P(o.length+l.length),r.set(Gc(n,l),0),s=fa}else r=new P(o.length),s=0;r.set(Gc(n,o),s),i.enqueue(r)}})}};function qc(e,t){let a=new P(t.length);for(let o=0;o>>24]),i=~e.crcKey2.get(),e.keys=[a,o,i]}function zd(e){let t=e.keys[2]|2;return Id(re.imul(t,t^1)>>>8)}function Id(e){return e&255}function Vc(e){return e&4294967295}var Wc=\"deflate-raw\",gr=class extends me{constructor(t,{chunkSize:a,CompressionStream:o,CompressionStreamNative:i}){super({});let{compressed:n,encrypted:r,useCompressionStream:s,zipCrypto:l,signed:c,level:d}=t,m=this,h,u,p=_d(super.readable);(!r||l)&&c&&(h=new Ei,p=ft(p,h)),n&&(p=Pd(p,s,{level:d,chunkSize:a},i,o)),r&&(l?p=ft(p,new pr(t)):(u=new hr(t),p=ft(p,u))),Md(m,p,()=>{let w;r&&!l&&(w=u.signature),(!r||l)&&c&&(w=new aa(h.value.buffer).getUint32(0)),m.signature=w})}},wr=class extends me{constructor(t,{chunkSize:a,DecompressionStream:o,DecompressionStreamNative:i}){super({});let{zipCrypto:n,encrypted:r,signed:s,signature:l,compressed:c,useCompressionStream:d}=t,m,h,u=_d(super.readable);r&&(n?u=ft(u,new ur(t)):(h=new mr(t),u=ft(u,h))),c&&(u=Pd(u,d,{chunkSize:a},i,o)),(!r||n)&&s&&(m=new Ei,u=ft(u,m)),Md(this,u,()=>{if((!r||n)&&s){let p=new aa(m.value.buffer);if(l!=p.getUint32(0,!1))throw new H(Kr)}})}};function _d(e){return ft(e,new me({transform(t,a){t&&t.length&&a.enqueue(t)}}))}function Md(e,t,a){t=ft(t,new me({flush:a})),N.defineProperty(e,\"readable\",{get(){return t}})}function Pd(e,t,a,o,i){try{let n=t&&o?o:i;e=ft(e,new n(Wc,a))}catch{if(t)try{e=ft(e,new i(Wc,a))}catch{return e}else return e}return e}function ft(e,t){return e.pipeThrough(t)}var _f=\"message\",Mf=\"start\",Pf=\"pull\",Kc=\"data\",Df=\"ack\",Xc=\"close\",Dd=\"deflate\",Nd=\"inflate\",fr=class extends me{constructor(t,a){super({});let o=this,{codecType:i}=t,n;i.startsWith(Dd)?n=gr:i.startsWith(Nd)&&(n=wr);let r=0,s=0,l=new n(t,a),c=super.readable,d=new me({transform(h,u){h&&h.length&&(s+=h.length,u.enqueue(h))},flush(){N.assign(o,{inputSize:s})}}),m=new me({transform(h,u){h&&h.length&&(r+=h.length,u.enqueue(h))},flush(){let{signature:h}=l;N.assign(o,{signature:h,outputSize:r,inputSize:s})}});N.defineProperty(o,\"readable\",{get(){return c.pipeThrough(d).pipeThrough(l).pipeThrough(m)}})}},br=class extends me{constructor(t){let a;super({transform:o,flush(i){a&&a.length&&i.enqueue(a)}});function o(i,n){if(a){let r=new P(a.length+i.length);r.set(a),r.set(i,a.length),i=r,a=null}i.length>t?(n.enqueue(i.slice(0,t)),o(i.slice(t),n)):a=i}}},Od=typeof gi!=Bt,wo=class{constructor(t,{readable:a,writable:o},{options:i,config:n,streamOptions:r,useWebWorkers:s,transferStreams:l,scripts:c},d){let{signal:m}=r;return N.assign(t,{busy:!0,readable:a.pipeThrough(new br(n.chunkSize)).pipeThrough(new yr(a,r),{signal:m}),writable:o,options:N.assign({},i),scripts:c,transferStreams:l,terminate(){return new Ne(h=>{let{worker:u,busy:p}=t;u?(p?t.resolveTerminated=h:(u.terminate(),h()),t.interface=null):h()})},onTaskFinished(){let{resolveTerminated:h}=t;h&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),h()),t.busy=!1,d(t)}}),(s&&Od?Nf:Fd)(t,n)}},yr=class extends me{constructor(t,{onstart:a,onprogress:o,size:i,onend:n}){let r=0;super({async start(){a&&await Zn(a,i)},async transform(s,l){r+=s.length,o&&await Zn(o,r,i),l.enqueue(s)},async flush(){t.size=r,n&&await Zn(n,r)}})}};async function Zn(e,...t){try{await e(...t)}catch{}}function Fd(e,t){return{run:()=>Of(e,t)}}function Nf(e,t){let{baseURL:a,chunkSize:o}=t;if(!e.interface){let i;try{i=Uf(e.scripts[0],a,e)}catch{return Od=!1,Fd(e,t)}N.assign(e,{worker:i,interface:{run:()=>Ff(e,{chunkSize:o})}})}return e.interface}async function Of({options:e,readable:t,writable:a,onTaskFinished:o},i){try{let n=new fr(e,i);await t.pipeThrough(n).pipeTo(a,{preventClose:!0,preventAbort:!0});let{signature:r,inputSize:s,outputSize:l}=n;return{signature:r,inputSize:s,outputSize:l}}finally{o()}}async function Ff(e,t){let a,o,i=new Ne((h,u)=>{a=h,o=u});N.assign(e,{reader:null,writer:null,resolveResult:a,rejectResult:o,result:i});let{readable:n,options:r,scripts:s}=e,{writable:l,closed:c}=Bf(e.writable),d=bi({type:Mf,scripts:s.slice(1),options:r,config:t,readable:n,writable:l},e);d||N.assign(e,{reader:n.getReader(),writer:l.getWriter()});let m=await i;return d||await l.getWriter().close(),await c,m}function Bf(e){let t,a=new Ne(i=>t=i);return{writable:new xo({async write(i){let n=e.getWriter();await n.ready,await n.write(i),n.releaseLock()},close(){t()},abort(i){return e.getWriter().abort(i)}}),closed:a}}var Yc=!0,$c=!0;function Uf(e,t,a){let o={type:\"module\"},i,n;typeof e==Aa&&(e=e());try{i=new Br(e,t)}catch{i=e}if(Yc)try{n=new gi(i)}catch{Yc=!1,n=new gi(i,o)}else n=new gi(i,o);return n.addEventListener(_f,r=>Hf(r,a)),n}function bi(e,{worker:t,writer:a,onTaskFinished:o,transferStreams:i}){try{let{value:n,readable:r,writable:s}=e,l=[];if(n&&(n.byteLength!k.busy);if(b)return kr(b),new wo(b,e,t,w);if(Ot.lengthQn.push({resolve:k,stream:e,workerOptions:t}))}function w(b){if(Qn.length){let[{resolve:k,stream:E,workerOptions:v}]=Qn.splice(0,1);k(new wo(b,E,v,w))}else b.worker?(kr(b),qf(b,t)):Ot=Ot.filter(k=>k!=b)}}function qf(e,t){let{config:a}=t,{terminateWorkerTimeout:o}=a;Ao.isFinite(o)&&o>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Ot=Ot.filter(i=>i!=e);try{await e.terminate()}catch{}},o))}function kr(e){let{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}async function Gf(){await Ne.allSettled(Ot.map(e=>(kr(e),e.terminate())))}var Ud=\"HTTP error \",Lo=\"HTTP Range not supported\",Hd=\"Writer iterator completed too soon\",Vf=\"text/plain\",Wf=\"Content-Length\",Kf=\"Content-Range\",Xf=\"Accept-Ranges\",Yf=\"Range\",$f=\"Content-Type\",Jf=\"HEAD\",Jr=\"GET\",qd=\"bytes\",Zf=64*1024,Zr=\"writable\",ka=class{constructor(){this.size=0}init(){this.initialized=!0}},bt=class extends ka{get readable(){let t=this,{chunkSize:a=Zf}=t,o=new Hr({start(){this.chunkOffset=0},async pull(i){let{offset:n=0,size:r,diskNumberStart:s}=o,{chunkOffset:l}=this;i.enqueue(await Re(t,n+l,re.min(a,r-l),s)),l+a>r?i.close():this.chunkOffset+=a}});return o}},vo=class extends ka{constructor(){super();let t=this,a=new xo({write(o){return t.writeUint8Array(o)}});N.defineProperty(t,Zr,{get(){return a}})}writeUint8Array(){}},vr=class extends bt{constructor(t){super();let a=t.length;for(;t.charAt(a-1)==\"=\";)a--;let o=t.indexOf(\",\")+1;N.assign(this,{dataURI:t,dataStart:o,size:re.floor((a-o)*.75)})}readUint8Array(t,a){let{dataStart:o,dataURI:i}=this,n=new P(a),r=re.floor(t/3)*4,s=atob(i.substring(r+o,re.ceil((t+a)/3)*4+o)),l=t-re.floor(r/4)*3;for(let c=l;c2?a.data+=_c(i):a.pending=i}getData(){return this.data+_c(this.pending)}},ta=class extends bt{constructor(t){super(),N.assign(this,{blob:t,size:t.size})}async readUint8Array(t,a){let o=this,i=t+a,r=await(t||ia&&(r=r.slice(t,i)),new P(r)}},Ai=class extends ka{constructor(t){super();let a=this,o=new me,i=[];t&&i.push([$f,t]),N.defineProperty(a,Zr,{get(){return o.writable}}),a.blob=new Fr(o.readable,{headers:i}).blob()}getData(){return this.blob}},So=class extends ta{constructor(t){super(new rd([t],{type:Vf}))}},Er=class extends Ai{constructor(t){super(t),N.assign(this,{encoding:t,utf8:!t||t.toLowerCase()==\"utf-8\"})}async getData(){let{encoding:t,utf8:a}=this,o=await super.getData();if(o.text&&a)return o.text();{let i=new FileReader;return new Ne((n,r)=>{N.assign(i,{onload:({target:s})=>n(s.result),onerror:()=>r(i.error)}),i.readAsText(o,t)})}}},jr=class extends bt{constructor(t,a){super(),Gd(this,t,a)}async init(){await Vd(this,xr,Zc),super.init()}readUint8Array(t,a){return Wd(this,t,a,xr,Zc)}},Ar=class extends bt{constructor(t,a){super(),Gd(this,t,a)}async init(){await Vd(this,Cr,Qc),super.init()}readUint8Array(t,a){return Wd(this,t,a,Cr,Qc)}};function Gd(e,t,a){let{preventHeadRequest:o,useRangeHeader:i,forceRangeRequests:n,combineSizeEocd:r}=a;a=N.assign({},a),delete a.preventHeadRequest,delete a.useRangeHeader,delete a.forceRangeRequests,delete a.combineSizeEocd,delete a.useXHR,N.assign(e,{url:t,options:a,preventHeadRequest:o,useRangeHeader:i,forceRangeRequests:n,combineSizeEocd:r})}async function Vd(e,t,a){let{url:o,preventHeadRequest:i,useRangeHeader:n,forceRangeRequests:r,combineSizeEocd:s}=e;if(Qf(o)&&(n||r)&&(typeof i>\"u\"||i)){let l=await t(Jr,e,Kd(e,s?-Qe:void 0));if(!r&&l.headers.get(Xf)!=qd)throw new H(Lo);{s&&(e.eocdCache=new P(await l.arrayBuffer()));let c,d=l.headers.get(Kf);if(d){let m=d.trim().split(/\\s*\\/\\s*/);if(m.length){let h=m[1];h&&h!=\"*\"&&(c=Ao(h))}}c===Q?await ed(e,t,a):e.size=c}}else await ed(e,t,a)}async function Wd(e,t,a,o,i){let{useRangeHeader:n,forceRangeRequests:r,eocdCache:s,size:l,options:c}=e;if(n||r){if(s&&t==l-Qe&&a==Qe)return s;let d=await o(Jr,e,Kd(e,t,a));if(d.status!=206)throw new H(Lo);return new P(await d.arrayBuffer())}else{let{data:d}=e;return d||await i(e,c),new P(e.data.subarray(t,t+a))}}function Kd(e,t=0,a=1){return N.assign({},Qr(e),{[Yf]:qd+\"=\"+(t<0?t:t+\"-\"+(t+a-1))})}function Qr({options:e}){let{headers:t}=e;if(t)return Symbol.iterator in t?N.fromEntries(t):t}async function Zc(e){await Xd(e,xr)}async function Qc(e){await Xd(e,Cr)}async function Xd(e,t){let a=await t(Jr,e,Qr(e));e.data=new P(await a.arrayBuffer()),e.size||(e.size=e.data.length)}async function ed(e,t,a){if(e.preventHeadRequest)await a(e,e.options);else{let i=(await t(Jf,e,Qr(e))).headers.get(Wf);i?e.size=Ao(i):await a(e,e.options)}}async function xr(e,{options:t,url:a},o){let i=await fetch(a,N.assign({},t,{method:e,headers:o}));if(i.status<400)return i;throw i.status==416?new H(Lo):new H(Ud+(i.statusText||i.status))}function Cr(e,{url:t},a){return new Ne((o,i)=>{let n=new XMLHttpRequest;if(n.addEventListener(\"load\",()=>{if(n.status<400){let r=[];n.getAllResponseHeaders().trim().split(/[\\r\\n]+/).forEach(s=>{let l=s.trim().split(/\\s*:\\s*/);l[0]=l[0].trim().replace(/^[a-z]|-[a-z]/g,c=>c.toUpperCase()),r.push(l)}),o({status:n.status,arrayBuffer:()=>n.response,headers:new Or(r)})}else i(n.status==416?new H(Lo):new H(Ud+(n.statusText||n.status)))},!1),n.addEventListener(\"error\",r=>i(r.detail?r.detail.error:new H(\"Network error\")),!1),n.open(e,t),a)for(let r of N.entries(a))n.setRequestHeader(r[0],r[1]);n.responseType=\"arraybuffer\",n.send()})}var xi=class extends bt{constructor(t,a={}){super(),N.assign(this,{url:t,reader:a.useXHR?new Ar(t,a):new jr(t,a)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(t,a){return this.reader.readUint8Array(t,a)}},Tr=class extends xi{constructor(t,a={}){a.useRangeHeader=!0,super(t,a)}},Lr=class extends bt{constructor(t){super(),N.assign(this,{array:t,size:t.length})}readUint8Array(t,a){return this.array.slice(t,t+a)}},Eo=class extends vo{init(t=0){N.assign(this,{offset:0,array:new P(t)}),super.init()}writeUint8Array(t){let a=this;if(a.offset+t.length>a.array.length){let o=a.array;a.array=new P(o.length+t.length),a.array.set(o)}a.array.set(t,a.offset),a.offset+=t.length}getData(){return this.array}},jo=class extends bt{constructor(t){super(),this.readers=t}async init(){let t=this,{readers:a}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Ne.all(a.map(async(o,i)=>{await o.init(),i!=a.length-1&&(t.lastDiskOffset+=o.size),t.size+=o.size})),super.init()}async readUint8Array(t,a,o=0){let i=this,{readers:n}=this,r,s=o;s==-1&&(s=n.length-1);let l=t;for(;l>=n[s].size;)l-=n[s].size,s++;let c=n[s],d=c.size;if(l+a<=d)r=await Re(c,l,a);else{let m=d-l;r=new P(a),r.set(await Re(c,l,m)),r.set(await i.readUint8Array(t+m,a-m,o),m)}return i.lastDiskNumber=re.max(s,i.lastDiskNumber),r}},va=class extends ka{constructor(t,a=4294967295){super();let o=this;N.assign(o,{diskNumber:0,diskOffset:0,size:0,maxSize:a,availableSize:a});let i,n,r,s=new xo({async write(d){let{availableSize:m}=o;if(r)d.length>=m?(await l(d.slice(0,m)),await c(),o.diskOffset+=i.size,o.diskNumber++,r=null,await this.write(d.slice(m))):await l(d);else{let{value:h,done:u}=await t.next();if(u&&!h)throw new H(Hd);i=h,i.size=0,i.maxSize&&(o.maxSize=i.maxSize),o.availableSize=o.maxSize,await Ct(i),n=h.writable,r=n.getWriter(),await this.write(d)}},async close(){await r.ready,await c()}});N.defineProperty(o,Zr,{get(){return s}});async function l(d){let m=d.length;m&&(await r.ready,await r.write(d),i.size+=m,o.size+=m,o.availableSize-=m)}async function c(){n.size=i.size,await r.close()}}};function Qf(e){let{baseURL:t}=Vr(),{protocol:a}=new Br(e,t);return a==\"http:\"||a==\"https:\"}async function Ct(e,t){if(e.init&&!e.initialized)await e.init(t);else return Ne.resolve()}function es(e){return Ft.isArray(e)&&(e=new jo(e)),e instanceof Hr&&(e={readable:e}),e}function ts(e){e.writable===Q&&typeof e.next==Aa&&(e=new va(e)),e instanceof xo&&(e={writable:e});let{writable:t}=e;return t.size===Q&&(t.size=0),e instanceof va||N.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function Re(e,t,a,o){return e.readUint8Array(t,a,o)}var eb=jo,tb=va,Yd=\"\\0\\u263A\\u263B\\u2665\\u2666\\u2663\\u2660\\u2022\\u25D8\\u25CB\\u25D9\\u2642\\u2640\\u266A\\u266B\\u263C\\u25BA\\u25C4\\u2195\\u203C\\xB6\\xA7\\u25AC\\u21A8\\u2191\\u2193\\u2192\\u2190\\u221F\\u2194\\u25B2\\u25BC !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\u2302\\xC7\\xFC\\xE9\\xE2\\xE4\\xE0\\xE5\\xE7\\xEA\\xEB\\xE8\\xEF\\xEE\\xEC\\xC4\\xC5\\xC9\\xE6\\xC6\\xF4\\xF6\\xF2\\xFB\\xF9\\xFF\\xD6\\xDC\\xA2\\xA3\\xA5\\u20A7\\u0192\\xE1\\xED\\xF3\\xFA\\xF1\\xD1\\xAA\\xBA\\xBF\\u2310\\xAC\\xBD\\xBC\\xA1\\xAB\\xBB\\u2591\\u2592\\u2593\\u2502\\u2524\\u2561\\u2562\\u2556\\u2555\\u2563\\u2551\\u2557\\u255D\\u255C\\u255B\\u2510\\u2514\\u2534\\u252C\\u251C\\u2500\\u253C\\u255E\\u255F\\u255A\\u2554\\u2569\\u2566\\u2560\\u2550\\u256C\\u2567\\u2568\\u2564\\u2565\\u2559\\u2558\\u2552\\u2553\\u256B\\u256A\\u2518\\u250C\\u2588\\u2584\\u258C\\u2590\\u2580\\u03B1\\xDF\\u0393\\u03C0\\u03A3\\u03C3\\xB5\\u03C4\\u03A6\\u0398\\u03A9\\u03B4\\u221E\\u03C6\\u03B5\\u2229\\u2261\\xB1\\u2265\\u2264\\u2320\\u2321\\xF7\\u2248\\xB0\\u2219\\xB7\\u221A\\u207F\\xB2\\u25A0 \".split(\"\"),ab=Yd.length==256;function ob(e){if(ab){let t=\"\";for(let a=0;athis[a]=t[a])}},ki=\"File format is not recognized\",sm=\"End of central directory not found\",lm=\"End of Zip64 central directory locator not found\",cm=\"Central directory header not found\",dm=\"Local file header not found\",mm=\"Zip64 extra field not found\",hm=\"File contains encrypted entry\",um=\"Encryption method not supported\",Ir=\"Compression method not supported\",_r=\"Split zip file\",td=\"utf-8\",ad=\"cp437\",sb=[[em,ue],[tm,ue],[am,ue],[Rr,de]],lb={[de]:{getValue:he,bytes:4},[ue]:{getValue:vi,bytes:8}},Ti=class{constructor(t,a={}){N.assign(this,{reader:es(t),options:a,config:Vr()})}async*getEntriesGenerator(t={}){let a=this,{reader:o}=a,{config:i}=a;if(await Ct(o),(o.size===Q||!o.readUint8Array)&&(o=new ta(await new Fr(o.readable).blob()),await Ct(o)),o.size=o.size&&(b=o.size-l-s-Qe,l=o.size-s-Qe),u!=h)throw new H(_r);if(l<0)throw new H(ki);let E=0,v=await Re(o,l,s,p),g=je(v);if(s){let L=n.offset-s;if(he(g,E)!=ir&&l!=L){let A=l;l=L,b+=l-A,v=await Re(o,l,s,p),g=je(v)}}let j=n.offset-l-(o.lastDiskOffset||0);if(s!=j&&j>=0&&(s=j,v=await Re(o,l,s,p),g=je(v)),l<0||l>=o.size)throw new H(ki);let T=Be(a,t,\"filenameEncoding\"),z=Be(a,t,\"commentEncoding\");for(let L=0;LA.getData(Fe,Pe,Ve),E=K;let{onprogress:G}=t;if(G)try{await G(L+1,w,new Sa(A))}catch{}yield Pe}let f=Be(a,t,\"extractPrependedData\"),y=Be(a,t,\"extractAppendedData\");return f&&(a.prependedData=k>0?await Re(o,0,k):new P),a.comment=d?await Re(o,c+Qe,d):new P,y&&(a.appendedData=m>>8&255:h>>>24&255),signature:h,compressed:c!=0,encrypted:j,useWebWorkers:Be(i,o,\"useWebWorkers\"),useCompressionStream:Be(i,o,\"useCompressionStream\"),transferStreams:Be(i,o,\"transferStreams\"),checkPasswordOnly:A},config:d,streamOptions:{signal:L,size:f,onstart:O,onprogress:q,onend:R}},B=0;try{({outputSize:B}=await Bd({readable:y,writable:M},D))}catch(U){if(!A||U.message!=Xr)throw U}finally{let U=Be(i,o,\"preventClose\");M.size+=B,!U&&!M.locked&&await M.getWriter().close()}return A?Q:t.getData?t.getData():M}};function pm(e,t,a){let o=e.rawBitFlag=Ee(t,a+2),i=(o&rr)==rr,n=he(t,a+6);N.assign(e,{encrypted:i,version:Ee(t,a),bitFlag:{level:(o&cf)>>1,dataDescriptor:(o&sr)==sr,languageEncodingFlag:(o&lr)==lr},rawLastModDate:n,lastModDate:pb(n),filenameLength:Ee(t,a+22),extraFieldLength:Ee(t,a+24)})}async function gm(e,t,a,o,i){let{rawExtraField:n}=t,r=t.extraField=new Or,s=je(new P(n)),l=0;try{for(;lt[i]==n);for(let i=0,n=0;i=5&&(n.push(Ci),r.push(zr));let s=1;n.forEach((l,c)=>{if(e.data.length>=s+4){let d=he(o,s);t[l]=e[l]=new ja(d*1e3);let m=r[c];e[m]=d}s+=4})}async function ub(e,t,a,o,i){let n=new P(4),r=je(n);gb(r,0,t);let s=o+i;return await l(o)||await l(re.min(s,a));async function l(c){let d=a-c,m=await Re(e,d,c);for(let h=m.length-o;h>=0;h--)if(m[h]==n[0]&&m[h+1]==n[1]&&m[h+2]==n[2]&&m[h+3]==n[3])return{offset:d+h,buffer:m.slice(h,h+o).buffer}}}function Be(e,t,a){return t[a]===Q?e.options[a]:t[a]}function pb(e){let t=(e&4294901760)>>16,a=e&65535;try{return new ja(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(a&63488)>>11,(a&2016)>>5,(a&31)*2,0)}catch{}}function er(e){return new ja(Ao(e/ze(1e4)-ze(116444736e5)))}function ba(e,t){return e.getUint8(t)}function Ee(e,t){return e.getUint16(t,!0)}function he(e,t){return e.getUint32(t,!0)}function vi(e,t){return Ao(e.getBigUint64(t,!0))}function gb(e,t,a){e.setUint32(t,a,!0)}function je(e){return new aa(e.buffer)}var wm=\"File already exists\",fm=\"Zip file comment exceeds 64KB\",bm=\"File entry comment exceeds 64KB\",ym=\"File entry name exceeds 64KB\",Dr=\"Version exceeds 65535\",km=\"The strength must equal 1, 2, or 3\",vm=\"Extra field type exceeds 65535\",Sm=\"Extra field data exceeds 64KB\",zi=\"Zip64 is not supported (make sure 'keepOrder' is set to 'true')\",id=new P([7,0,2,0,65,69,3,0,0]),tr=0,nd=[],Ea=class{constructor(t,a={}){t=ts(t);let o=t.availableSize!==Q&&t.availableSize>0&&t.availableSize!==1/0&&t.maxSize!==Q&&t.maxSize>0&&t.maxSize!==1/0;N.assign(this,{writer:t,addSplitZipSignature:o,options:a,config:Vr(),files:new Or,filenames:new Rc,offset:t.writable.size,pendingEntriesSize:0,pendingAddFileCalls:new Rc,bufferedWrites:0})}async add(t=\"\",a,o={}){let i=this,{pendingAddFileCalls:n,config:r}=i;trnd.push(l));let s;try{if(t=t.trim(),i.filenames.has(t))throw new H(wm);return i.filenames.add(t),s=wb(i,t,a,o),n.add(s),await s}catch(l){throw i.filenames.delete(t),l}finally{n.delete(s);let l=nd.shift();l?l():tr--}}async close(t=new P,a={}){let o=this,{pendingAddFileCalls:i,writer:n}=this,{writable:r}=n;for(;i.size;)await Ne.allSettled(Ft.from(i));return await Ab(this,t,a),te(o,a,\"preventClose\")||await r.getWriter().close(),n.getData?n.getData():r}},Nr=class{constructor(t={}){let{readable:a,writable:o}=new me;this.readable=a,this.zipWriter=new Ea(o,t)}transform(t){let{readable:a,writable:o}=new me({flush:()=>{this.zipWriter.close()}});return this.zipWriter.add(t,a),{readable:this.readable,writable:o}}writable(t){let{readable:a,writable:o}=new me;return this.zipWriter.add(t,a),o}close(t=void 0,a={}){return this.zipWriter.close(t,a)}};async function wb(e,t,a,o){t=t.trim(),o.directory&&!t.endsWith(wi)?t+=wi:o.directory=t.endsWith(wi);let i=te(e,o,\"encodeText\",fi),n=i(t);if(n===Q&&(n=fi(t)),W(n)>de)throw new H(ym);let r=o.comment||\"\",s=i(r);if(s===Q&&(s=fi(r)),W(s)>de)throw new H(bm);let l=te(e,o,\"version\",df);if(l>de)throw new H(Dr);let c=te(e,o,\"versionMadeBy\",20);if(c>de)throw new H(Dr);let d=te(e,o,Ci,new ja),m=te(e,o,as),h=te(e,o,os),u=te(e,o,nm,!0),p=te(e,o,om,0),w=te(e,o,im,0),b=te(e,o,\"password\"),k=te(e,o,\"rawPassword\"),E=te(e,o,\"encryptionStrength\",3),v=te(e,o,\"zipCrypto\"),g=te(e,o,\"extendedTimestamp\",!0),j=te(e,o,\"keepOrder\",!0),T=te(e,o,\"level\"),z=te(e,o,\"useWebWorkers\"),f=te(e,o,\"bufferedWrite\"),y=te(e,o,\"dataDescriptorSignature\",!1),L=te(e,o,\"signal\"),A=te(e,o,\"useCompressionStream\"),M=te(e,o,\"dataDescriptor\",!0),O=te(e,o,rm);if(b!==Q&&E!==Q&&(E<1||E>3))throw new H(km);let q=new P,{extraField:R}=o;if(R){let G=0,Fe=0;R.forEach(Ve=>G+=4+W(Ve)),q=new P(G),R.forEach((Ve,ye)=>{if(ye>de)throw new H(vm);if(W(Ve)>de)throw new H(Sm);pe(q,new zc([ye]),Fe),pe(q,new zc([W(Ve)]),Fe+2),pe(q,Ve,Fe+4),Fe+=4+W(Ve)})}let D=0,B=0,U=0,$=O===!0;a&&(a=es(a),await Ct(a),a.size===Q?(M=!0,(O||O===Q)&&(O=!0,U=D=ue+1)):(U=a.size,D=xb(U)));let{diskOffset:K,diskNumber:le,maxSize:we}=e.writer,fe=$||U>ue,_e=$||D>ue,Le=$||e.offset+e.pendingEntriesSize-K>ue,x=te(e,o,\"supportZip64SplitFile\",!0)&&$||le+re.ceil(e.pendingEntriesSize/we)>de;if(Le||fe||_e||x){if(O===!1||!j)throw new H(zi);O=!0}O=O||!1,o=N.assign({},o,{rawFilename:n,rawComment:s,version:l,versionMadeBy:c,lastModDate:d,lastAccessDate:m,creationDate:h,rawExtraField:q,zip64:O,zip64UncompressedSize:fe,zip64CompressedSize:_e,zip64Offset:Le,zip64DiskNumberStart:x,password:b,rawPassword:k,level:!A&&e.config.CompressionStream===Q&&e.config.CompressionStreamNative===Q?0:T,useWebWorkers:z,encryptionStrength:E,extendedTimestamp:g,zipCrypto:v,bufferedWrite:f,keepOrder:j,dataDescriptor:M,dataDescriptorSignature:y,signal:L,msDosCompatible:u,internalFileAttribute:p,externalFileAttribute:w,useCompressionStream:A});let be=yb(o),Se=vb(o),ce=W(be.localHeaderArray,Se.dataDescriptorArray);B=ce+D,e.options.usdz&&(B+=B+64),e.pendingEntriesSize+=B;let Pe;try{Pe=await fb(e,t,a,{headerInfo:be,dataDescriptorInfo:Se,metadataSize:ce},o)}finally{e.pendingEntriesSize-=B}return N.assign(Pe,{name:t,comment:r,extraField:R}),new Sa(Pe)}async function fb(e,t,a,o,i){let{files:n,writer:r}=e,{keepOrder:s,dataDescriptor:l,signal:c}=i,{headerInfo:d}=o,{usdz:m}=e.options,h=Ft.from(n.values()).pop(),u={},p,w,b,k,E,v,g;n.set(t,u);try{let f;s&&(f=h&&h.lock,j()),(i.bufferedWrite||e.writerLocked||e.bufferedWrites&&s||!l)&&!m?(v=new me,g=new Fr(v.readable).blob(),v.writable.size=0,p=!0,e.bufferedWrites++,await Ct(r)):(v=r,await T()),await Ct(v);let{writable:y}=r,{diskOffset:L}=r;if(e.addSplitZipSignature){delete e.addSplitZipSignature;let M=new P(4),O=Ie(M);V(O,0,qr),await gt(y,M),e.offset+=4}m&&kb(o,e.offset-L),p||(await f,await z(y));let{diskNumber:A}=r;if(E=!0,u.diskNumberStart=A,u=await bb(a,v,u,o,e.config,i),E=!1,n.set(t,u),u.filename=t,p){await v.writable.getWriter().close();let M=await g;await f,await T(),k=!0,l||(M=await Eb(u,M,y,i)),await z(y),u.diskNumberStart=r.diskNumber,L=r.diskOffset,await M.stream().pipeTo(y,{preventClose:!0,preventAbort:!0,signal:c}),y.size+=M.size,k=!1}if(u.offset=e.offset-L,u.zip64)jb(u,i);else if(u.offset>ue)throw new H(zi);return e.offset+=u.size,u}catch(f){if(p&&k||!p&&E){if(e.hasCorruptedEntries=!0,f)try{f.corruptedEntry=!0}catch{}p?e.offset+=v.writable.size:e.offset=v.writable.size}throw n.delete(t),f}finally{p&&e.bufferedWrites--,b&&b(),w&&w()}function j(){u.lock=new Ne(f=>b=f)}async function T(){e.writerLocked=!0;let{lockWriter:f}=e;e.lockWriter=new Ne(y=>w=()=>{e.writerLocked=!1,y()}),await f}async function z(f){W(d.localHeaderArray)>r.availableSize&&(r.availableSize=0,await gt(f,new P))}}async function bb(e,t,{diskNumberStart:a,lock:o},i,n,r){let{headerInfo:s,dataDescriptorInfo:l,metadataSize:c}=i,{localHeaderArray:d,headerArray:m,lastModDate:h,rawLastModDate:u,encrypted:p,compressed:w,version:b,compressionMethod:k,rawExtraFieldExtendedTimestamp:E,extraFieldExtendedTimestampFlag:v,rawExtraFieldNTFS:g,rawExtraFieldAES:j}=s,{dataDescriptorArray:T}=l,{rawFilename:z,lastAccessDate:f,creationDate:y,password:L,rawPassword:A,level:M,zip64:O,zip64UncompressedSize:q,zip64CompressedSize:R,zip64Offset:D,zip64DiskNumberStart:B,zipCrypto:U,dataDescriptor:$,directory:K,versionMadeBy:le,rawComment:we,rawExtraField:fe,useWebWorkers:_e,onstart:Le,onprogress:lt,onend:x,signal:be,encryptionStrength:Se,extendedTimestamp:ce,msDosCompatible:Pe,internalFileAttribute:G,externalFileAttribute:Fe,useCompressionStream:Ve}=r,ye={lock:o,versionMadeBy:le,zip64:O,directory:!!K,filenameUTF8:!0,rawFilename:z,commentUTF8:!0,rawComment:we,rawExtraFieldExtendedTimestamp:E,rawExtraFieldNTFS:g,rawExtraFieldAES:j,rawExtraField:fe,extendedTimestamp:ce,msDosCompatible:Pe,internalFileAttribute:G,externalFileAttribute:Fe,diskNumberStart:a},Jt=0,ga=0,mo,{writable:Mt}=t;if(e){e.chunkSize=yd(n),await gt(Mt,d);let J=e.readable,Yn=J.size=e.size,pi={options:{codecType:Dd,level:M,rawPassword:A,password:L,encryptionStrength:Se,zipCrypto:p&&U,passwordVerification:p&&U&&u>>8&255,signed:!0,compressed:w,encrypted:p,useWebWorkers:_e,useCompressionStream:Ve,transferStreams:!1},config:n,streamOptions:{signal:be,size:Yn,onstart:Le,onprogress:lt,onend:x}},Qt=await Bd({readable:J,writable:Mt},pi);ga=Qt.inputSize,Jt=Qt.outputSize,mo=Qt.signature,Mt.size+=ga}else await gt(Mt,d);let Zt;if(O){let J=4;q&&(J+=8),R&&(J+=8),D&&(J+=8),B&&(J+=4),Zt=new P(J)}else Zt=new P;return Sb({signature:mo,rawExtraFieldZip64:Zt,compressedSize:Jt,uncompressedSize:ga,headerInfo:s,dataDescriptorInfo:l},r),$&&await gt(Mt,T),N.assign(ye,{uncompressedSize:ga,compressedSize:Jt,lastModDate:h,rawLastModDate:u,creationDate:y,lastAccessDate:f,encrypted:p,size:c+Jt,compressionMethod:k,version:b,headerArray:m,signature:mo,rawExtraFieldZip64:Zt,extraFieldExtendedTimestampFlag:v,zip64UncompressedSize:q,zip64CompressedSize:R,zip64Offset:D,zip64DiskNumberStart:B}),ye}function yb(e){let{rawFilename:t,lastModDate:a,lastAccessDate:o,creationDate:i,rawPassword:n,password:r,level:s,zip64:l,zipCrypto:c,dataDescriptor:d,directory:m,rawExtraField:h,encryptionStrength:u,extendedTimestamp:p}=e,w=s!==0&&!m,b=!!(r&&W(r)||n&&W(n)),k=e.version,E;if(b&&!c){E=new P(W(id)+2);let B=Ie(E);X(B,0,pd),pe(E,id,2),Li(B,8,u)}else E=new P;let v,g,j;if(p){g=new P(9+(o?4:0)+(i?4:0));let B=Ie(g);X(B,0,Gr),X(B,2,W(g)-4),j=1+(o?2:0)+(i?4:0),Li(B,4,j);let U=5;V(B,U,re.floor(a.getTime()/1e3)),U+=4,o&&(V(B,U,re.floor(o.getTime()/1e3)),U+=4),i&&V(B,U,re.floor(i.getTime()/1e3));try{v=new P(36);let $=Ie(v),K=ar(a);X($,0,gd),X($,2,32),X($,8,wd),X($,10,24),Ue($,12,K),Ue($,20,ar(o)||K),Ue($,28,ar(i)||K)}catch{v=new P}}else v=g=new P;let T=lr;d&&(T=T|sr);let z=ld;w&&(z=or),l&&(k=k>Dc?k:Dc),b&&(T=T|rr,c||(k=k>Nc?k:Nc,z=cd,w&&(E[9]=or)));let f=new P(26),y=Ie(f);X(y,0,k),X(y,2,T),X(y,4,z);let L=new Ur(1),A=Ie(L),M;aOc?M=Oc:M=a,X(A,0,(M.getHours()<<6|M.getMinutes())<<5|M.getSeconds()/2),X(A,2,(M.getFullYear()-1980<<4|M.getMonth()+1)<<5|M.getDate());let O=L[0];V(y,6,O),X(y,22,W(t));let q=W(E,g,v,h);X(y,24,q);let R=new P(30+W(t)+q),D=Ie(R);return V(D,0,dd),pe(R,f,4),pe(R,t,30),pe(R,E,30+W(t)),pe(R,g,30+W(t,E)),pe(R,v,30+W(t,E,g)),pe(R,h,30+W(t,E,g,v)),{localHeaderArray:R,headerArray:f,headerView:y,lastModDate:a,rawLastModDate:O,encrypted:b,compressed:w,version:k,compressionMethod:z,extraFieldExtendedTimestampFlag:j,rawExtraFieldExtendedTimestamp:g,rawExtraFieldNTFS:v,rawExtraFieldAES:E,extraFieldLength:q}}function kb(e,t){let{headerInfo:a}=e,{localHeaderArray:o,extraFieldLength:i}=a,n=Ie(o),r=64-(t+W(o))%64;r<4&&(r+=64);let s=new P(r),l=Ie(s);X(l,0,fd),X(l,2,r-2);let c=o;a.localHeaderArray=o=new P(W(c)+r),pe(o,c),pe(o,s,W(c)),n=Ie(o),X(n,28,i+r),e.metadataSize+=r}function vb(e){let{zip64:t,dataDescriptor:a,dataDescriptorSignature:o}=e,i=new P,n,r=0;return a&&(i=new P(t?o?24:20:o?16:12),n=Ie(i),o&&(r=4,V(n,0,nf))),{dataDescriptorArray:i,dataDescriptorView:n,dataDescriptorOffset:r}}function Sb(e,t){let{signature:a,rawExtraFieldZip64:o,compressedSize:i,uncompressedSize:n,headerInfo:r,dataDescriptorInfo:s}=e,{headerView:l,encrypted:c}=r,{dataDescriptorView:d,dataDescriptorOffset:m}=s,{zip64:h,zip64UncompressedSize:u,zip64CompressedSize:p,zipCrypto:w,dataDescriptor:b}=t;if((!c||w)&&a!==Q&&(V(l,10,a),b&&V(d,m,a)),h){let k=Ie(o);X(k,0,ud),X(k,2,W(o)-4);let E=4;u&&(V(l,18,ue),Ue(k,E,ze(n)),E+=8),p&&(V(l,14,ue),Ue(k,E,ze(i))),b&&(Ue(d,m+4,ze(i)),Ue(d,m+12,ze(n)))}else V(l,14,i),V(l,18,n),b&&(V(d,m+4,i),V(d,m+8,n))}async function Eb(e,t,a,{zipCrypto:o}){let i;i=await t.slice(0,26).arrayBuffer(),i.byteLength!=26&&(i=i.slice(0,26));let n=new aa(i);return(!e.encrypted||o)&&V(n,14,e.signature),e.zip64?(V(n,18,ue),V(n,22,ue)):(V(n,18,e.compressedSize),V(n,22,e.uncompressedSize)),await gt(a,new P(i)),t.slice(i.byteLength)}function jb(e,t){let{rawExtraFieldZip64:a,offset:o,diskNumberStart:i}=e,{zip64UncompressedSize:n,zip64CompressedSize:r,zip64Offset:s,zip64DiskNumberStart:l}=t,c=Ie(a),d=4;n&&(d+=8),r&&(d+=8),s&&(Ue(c,d,ze(o)),d+=8),l&&V(c,d,i)}async function Ab(e,t,a){let{files:o,writer:i}=e,{diskOffset:n,writable:r}=i,{diskNumber:s}=i,l=0,c=0,d=e.offset-n,m=o.size;for(let[,j]of o){let{rawFilename:T,rawExtraFieldZip64:z,rawExtraFieldAES:f,rawComment:y,rawExtraFieldNTFS:L,rawExtraField:A,extendedTimestamp:M,extraFieldExtendedTimestampFlag:O,lastModDate:q}=j,R;if(M){R=new P(9);let D=Ie(R);X(D,0,Gr),X(D,2,5),Li(D,4,O),V(D,5,re.floor(q.getTime()/1e3))}else R=new P;j.rawExtraFieldCDExtendedTimestamp=R,c+=46+W(T,y,z,f,L,R,A)}let h=new P(c),u=Ie(h);await Ct(i);let p=0;for(let[j,T]of Ft.from(o.values()).entries()){let{offset:z,rawFilename:f,rawExtraFieldZip64:y,rawExtraFieldAES:L,rawExtraFieldCDExtendedTimestamp:A,rawExtraFieldNTFS:M,rawExtraField:O,rawComment:q,versionMadeBy:R,headerArray:D,directory:B,zip64:U,zip64UncompressedSize:$,zip64CompressedSize:K,zip64DiskNumberStart:le,zip64Offset:we,msDosCompatible:fe,internalFileAttribute:_e,externalFileAttribute:Le,diskNumberStart:lt,uncompressedSize:x,compressedSize:be}=T,Se=W(y,L,A,M,O);V(u,l,ir),X(u,l+4,R);let ce=Ie(D);$||V(ce,18,x),K||V(ce,14,be),pe(h,D,l+6),X(u,l+30,Se),X(u,l+32,W(q)),X(u,l+34,U&&le?de:lt),X(u,l+36,_e),Le?V(u,l+38,Le):B&&fe&&Li(u,l+38,cr),V(u,l+42,U&&we?ue:z),pe(h,f,l+46),pe(h,y,l+46+W(f)),pe(h,L,l+46+W(f,y)),pe(h,A,l+46+W(f,y,L)),pe(h,M,l+46+W(f,y,L,A)),pe(h,O,l+46+W(f,y,L,A,M)),pe(h,q,l+46+W(f)+Se);let Pe=46+W(f,q)+Se;if(l-p>i.availableSize&&(i.availableSize=0,await gt(r,h.slice(p,l)),p=l),l+=Pe,a.onprogress)try{await a.onprogress(j+1,o.size,new Sa(T))}catch{}}await gt(r,p?h.slice(p):h);let w=i.diskNumber,{availableSize:b}=i;bue||c>ue||m>de||w>de){if(k===!1)throw new H(zi);k=!0}let E=new P(k?rf:Qe),v=Ie(E);l=0,k&&(V(v,0,nr),Ue(v,4,ze(44)),X(v,12,45),X(v,14,45),V(v,16,w),V(v,20,s),Ue(v,24,ze(m)),Ue(v,32,ze(m)),Ue(v,40,ze(c)),Ue(v,48,ze(d)),V(v,56,hd),Ue(v,64,ze(d)+ze(c)),V(v,72,w+1),te(e,a,\"supportZip64SplitFile\",!0)&&(w=de,s=de),m=de,d=ue,c=ue,l+=go+po),V(v,l,md),X(v,l+4,w),X(v,l+6,s),X(v,l+8,m),X(v,l+10,m),V(v,l+12,c),V(v,l+16,d);let g=W(t);if(g)if(g<=de)X(v,l+20,g);else throw new H(fm);await gt(r,E),g&&await gt(r,t)}async function gt(e,t){let a=e.getWriter();try{await a.ready,e.size+=W(t),await a.write(t)}finally{a.releaseLock()}}function ar(e){if(e)return(ze(e.getTime())+ze(116444736e5))*ze(1e4)}function te(e,t,a,o){let i=t[a]===Q?e.options[a]:t[a];return i===Q?o:i}function xb(e){return e+5*(re.floor(e/16383)+1)}function Li(e,t,a){e.setUint8(t,a)}function X(e,t,a){e.setUint16(t,a,!0)}function V(e,t,a){e.setUint32(t,a,!0)}function Ue(e,t,a){e.setBigUint64(t,a,!0)}function pe(e,t,a){e.set(t,a)}function Ie(e){return new aa(e.buffer)}function W(...e){let t=0;return e.forEach(a=>a&&(t+=a.length)),t}var Em;try{Em=Cb.url}catch{}Co({baseURL:Em});uf(Co);async function jm(e,{password:t,prompt:a=()=>{},shadowRootScriptURL:o,zipOptions:i={useWebWorkers:!1},noBlobURL:n}={}){let r={gif:\"image/gif\",jpg:\"image/jpeg\",png:\"image/png\",tif:\"image/tiff\",tiff:\"image/tiff\",bmp:\"image/bmp\",ico:\"image/vnd.microsoft.icon\",webp:\"image/webp\",svg:\"image/svg+xml\",avi:\"video/x-msvideo\",ogv:\"video/ogg\",mp4:\"video/mp4\",mpeg:\"video/mpeg\",ts:\"video/mp2t\",webm:\"video/webm\",\"3gp\":\"video/3gpp\",\"3g2\":\"video/3gpp\",mp3:\"audio/mpeg\",oga:\"audio/ogg\",mid:\"audio/midi\",midi:\"audio/midi\",opus:\"audio/opus\",wav:\"audio/wav\",weba:\"audio/webm\",heif:\"image/heif\",heic:\"image/heic\",avif:\"image/avif\",apng:\"image/apng\",mov:\"video/quicktime\",otf:\"font/otf\",ttf:\"font/ttf\",woff:\"font/woff\",woff2:\"font/woff2\",eot:\"application/vnd.ms-fontobject\",pdf:\"application/pdf\"},s=/stylesheet_[0-9]+\\.css/,l=/scripts\\/[0-9]+\\.js/,c=/^([0-9_]+\\/)?index\\.html$/,d=/index\\.html$/,m=/frames\\//,h=/^frames\\/\\d+\\/index.html/,u=/manifest\\.json$/,p=\";charset=utf-8\",w=/([{}()^$&.*?/+|[\\\\\\\\]|\\]|-)/g;Array.isArray(e)&&(e=new Blob([new Uint8Array(e)])),zip.configure(i);let b=new zip.BlobReader(e),k=new zip.ZipReader(b),E=await k.getEntries(),v={password:t},g,j,T,z=[],f=[],y=[];await Promise.all(E.map(async R=>{let{filename:D}=R,B,U,$,K,le={};if(!v.password&&R.encrypted&&(v.password=a(\"Please enter the password to view the page\")),D.match(d)||D.match(s)||D.match(l))D.match(d)?f.push(le):y.push(le),B=new zip.TextWriter,$=await R.getData(B,v),D.match(d)?K=\"text/html\"+p:D.match(s)?K=\"text/css\"+p:D.match(l)&&(K=\"text/javascript\"+p);else{z.push(le);let Le=D.match(/\\.([^.]+)/);if(Le&&Le[1]&&r[Le[1]]?K=r[Le[1]]:K=\"application/octet-stream\",D.match(m)||n)U=await R.getData(new zip.Data64URIWriter(K),v);else{let lt=await R.getData(new zip.BlobWriter(K),v);U=URL.createObjectURL(lt)}}let we=R.filename.match(/^([0-9_]+\\/)?(.*)$/)[2],fe=\"\",_e=D.match(/(.*\\/)[^/]+$/);_e&&_e[1]&&(fe=_e[1]),Object.assign(le,{prefixPath:fe,filename:R.filename,name:we,url:R.comment,content:U,mimeType:K,textContent:$,parentResources:[]})})),await k.close(),f.sort(O),y.sort(q),z=z.sort(O).concat(...y).concat(...f);for(let R of z){let{filename:D,prefixPath:B}=R,{textContent:U}=R;U!==void 0&&(D.match(c)&&(j=U),D.match(l)||(z.forEach($=>{let{filename:K,parentResources:le,content:we}=$;if(K.startsWith(B)&&K!=R.filename){let fe=K.substring(B.length);fe.match(u)||U.includes(fe)&&(le.push(R.filename),$.textContent===void 0&&(U=M(U,fe,we)))}}),R.textContent=U))}for(let R of z){let{textContent:D,prefixPath:B,filename:U}=R;if(D!==void 0){if(!U.match(l)){let $=U;for(let K of z){let{filename:le}=K;if(le.startsWith(B)&&le!=$){let we=le.substring(B.length);we.match(u)||D.indexOf(we)!=-1&&(K.content=await L(K),D=M(D,we,K.content))}}R.textContent=D,R.content=await L(R)}U.match(d)&&o&&(R.textContent=D.replace(/