Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zip.js/zip.js

Package Overview
Dependencies
Maintainers
1
Versions
276
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zip.js/zip.js - npm Package Compare versions

Comparing version 2.4.6 to 2.4.7

2

dist/z-worker.js

@@ -1,1 +0,1 @@

!function(){"use strict";const{Array:e,Object:t,Math:n,Error:i,Uint8Array:a,Uint16Array:r,Uint32Array:s,Int32Array:l,DataView:o,TextEncoder:_,crypto:d,postMessage:c}=globalThis,f=[];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;f[e]=t}class u{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,i=0|e.length;i>n;n++)t=t>>>8^f[255&(t^e[n])];this.crc=t}get(){return~this.crc}}const h={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],i=h.getPartial(n);return 32===i?e.concat(t):h._shiftRight(t,i,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)+h.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const i=(e=e.slice(0,n.ceil(t/32))).length;return t&=31,i>0&&t&&(e[i-1]=h.partial(t,e[i-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>n.round(e/1099511627776)||32,_shiftRight(e,t,n,i){for(void 0===i&&(i=[]);t>=32;t-=32)i.push(n),n=0;if(0===t)return i.concat(e);for(let a=0;a<e.length;a++)i.push(n|e[a]>>>t),n=e[a]<<32-t;const a=e.length?e[e.length-1]:0,r=h.getPartial(a);return i.push(h.partial(t+r&31,t+r>32?n:i.pop(),1)),i}},b={bytes:{fromBits(e){const t=h.bitLength(e)/8,n=new a(t);let i;for(let a=0;t>a;a++)0==(3&a)&&(i=e[a/4]),n[a]=i>>>24,i<<=8;return n},toBits(e){const t=[];let n,i=0;for(n=0;n<e.length;n++)i=i<<8|e[n],3==(3&n)&&(t.push(i),i=0);return 3&n&&t.push(h.partial(8*(3&n),i)),t}}},p={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};p.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=b.utf8String.toBits(e));const n=t._buffer=h.concat(t._buffer,e),a=t._length,r=t._length=a+h.bitLength(e);if(r>9007199254740991)throw new i("Cannot hash more than 2^53 - 1 bits");const l=new s(n);let o=0;for(let e=t.blockSize+a-(t.blockSize+a&t.blockSize-1);r>=e;e+=t.blockSize)t._block(l.subarray(16*o,16*(o+1))),o+=1;return n.splice(0,16*o),t},finalize:function(){const e=this;let t=e._buffer;const i=e._h;t=h.concat(t,[h.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(n.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),i},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,i)=>e>19?e>39?e>59?e>79?void 0:t^n^i:t&n|t&i|n&i:t^n^i:t&n|~t&i,_S:(e,t)=>t<<e|t>>>32-e,_block:function(t){const i=this,a=i._h,r=e(80);for(let e=0;16>e;e++)r[e]=t[e];let s=a[0],l=a[1],o=a[2],_=a[3],d=a[4];for(let e=0;79>=e;e++){16>e||(r[e]=i._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const t=i._S(5,s)+i._f(e,l,o,_)+d+r[e]+i._key[n.floor(e/20)]|0;d=_,_=o,o=i._S(30,l),l=s,s=t}a[0]=a[0]+s|0,a[1]=a[1]+l|0,a[2]=a[2]+o|0,a[3]=a[3]+_|0,a[4]=a[4]+d|0}};const w="Invalid pasword",x=16,g={name:"PBKDF2"},y=t.assign({hash:{name:"HMAC"}},g),m=t.assign({iterations:1e3,hash:{name:"SHA-1"}},g),k=["deriveBits"],v=[8,12,16],S=[16,24,32],z=10,I=[0,0,0,0],C=b.bytes,B=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],a=t._tables[1],r=e.length;let s,l,o,_=1;if(4!==r&&6!==r&&8!==r)throw new i("invalid aes key size");for(t._key=[l=e.slice(0),o=[]],s=r;4*r+28>s;s++){let e=l[s-1];(s%r==0||8===r&&s%r==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],s%r==0&&(e=e<<8^e>>>24^_<<24,_=_<<1^283*(_>>7))),l[s]=l[s-r]^e}for(let e=0;s;e++,s--){const t=l[3&e?s:s-4];o[e]=4>=s||4>e?t:a[0][n[t>>>24]]^a[1][n[t>>16&255]]^a[2][n[t>>8&255]]^a[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],i=t[4],a=[],r=[];let s,l,o,_;for(let e=0;256>e;e++)r[(a[e]=e<<1^283*(e>>7))^e]=e;for(let d=s=0;!n[d];d^=l||1,s=r[s]||1){let r=s^s<<1^s<<2^s<<3^s<<4;r=r>>8^255&r^99,n[d]=r,i[r]=d,_=a[o=a[l=a[d]]];let c=16843009*_^65537*o^257*l^16843008*d,f=257*a[r]^16843008*r;for(let n=0;4>n;n++)e[n][d]=f=f<<24^f>>>8,t[n][r]=c=c<<24^c>>>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 i("invalid aes block size");const n=this._key[t],a=n.length/4-2,r=[0,0,0,0],s=this._tables[t],l=s[0],o=s[1],_=s[2],d=s[3],c=s[4];let f,u,h,b=e[0]^n[0],p=e[t?3:1]^n[1],w=e[2]^n[2],x=e[t?1:3]^n[3],g=4;for(let e=0;a>e;e++)f=l[b>>>24]^o[p>>16&255]^_[w>>8&255]^d[255&x]^n[g],u=l[p>>>24]^o[w>>16&255]^_[x>>8&255]^d[255&b]^n[g+1],h=l[w>>>24]^o[x>>16&255]^_[b>>8&255]^d[255&p]^n[g+2],x=l[x>>>24]^o[b>>16&255]^_[p>>8&255]^d[255&w]^n[g+3],g+=4,b=f,p=u,w=h;for(let e=0;4>e;e++)r[t?3&-e:e]=c[b>>>24]<<24^c[p>>16&255]<<16^c[w>>8&255]<<8^c[255&x]^n[g++],f=b,b=p,p=w,w=x,x=f;return r}},E=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let i;if(!(i=t.length))return[];const a=h.bitLength(t);for(let a=0;i>a;a+=4){this.incCounter(n);const i=e.encrypt(n);t[a]^=i[0],t[a+1]^=i[1],t[a+2]^=i[2],t[a+3]^=i[3]}return h.clamp(t,a)}},H=class{constructor(e){const t=this,n=t._hash=p.sha1,i=[[],[]],a=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>a&&(e=n.hash(e));for(let t=0;a>t;t++)i[0][t]=909522486^e[t],i[1][t]=1549556828^e[t];t._baseHash[0].update(i[0]),t._baseHash[1].update(i[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}};class V{constructor(e,n,i){t.assign(this,{password:e,signed:n,strength:i-1,pendingInput:new a(0)})}async append(t){const n=this;if(n.password){const a=W(t,0,v[n.strength]+2);await(async(e,t,n)=>{await P(e,n,W(t,0,v[e.strength]));const a=W(t,v[e.strength]),r=e.keys.passwordVerification;if(r[0]!=a[0]||r[1]!=a[1])throw new i(w)})(n,a,n.password),n.password=null,n.aesCtrGladman=new E(new B(n.keys.key),e.from(I)),n.hmac=new H(n.keys.authentication),t=W(t,v[n.strength]+2)}return D(n,t,new a(t.length-z-(t.length-z)%x),0,z,!0)}flush(){const e=this,t=e.pendingInput,n=W(t,0,t.length-z),i=W(t,t.length-z);let r=new a(0);if(n.length){const t=C.toBits(n);e.hmac.update(t);const i=e.aesCtrGladman.update(t);r=C.fromBits(i)}let s=!0;if(e.signed){const t=W(C.fromBits(e.hmac.digest()),0,z);for(let e=0;z>e;e++)t[e]!=i[e]&&(s=!1)}return{valid:s,data:r}}}class A{constructor(e,n){t.assign(this,{password:e,strength:n-1,pendingInput:new a(0)})}async append(t){const n=this;let i=new a(0);n.password&&(i=await(async(e,t)=>{const n=d.getRandomValues(new a(v[e.strength]));return await P(e,t,n),K(n,e.keys.passwordVerification)})(n,n.password),n.password=null,n.aesCtrGladman=new E(new B(n.keys.key),e.from(I)),n.hmac=new H(n.keys.authentication));const r=new a(i.length+t.length-t.length%x);return r.set(i,0),D(n,t,r,i.length,0)}flush(){const e=this;let t=new a(0);if(e.pendingInput.length){const n=e.aesCtrGladman.update(C.toBits(e.pendingInput));e.hmac.update(n),t=C.fromBits(n)}const n=W(C.fromBits(e.hmac.digest()),0,z);return{data:K(t,n),signature:n}}}function D(e,t,n,i,r,s){const l=t.length-r;let o;for(e.pendingInput.length&&(t=K(e.pendingInput,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new a(t)).set(n,0)}return e})(n,l-l%x)),o=0;l-x>=o;o+=x){const a=C.toBits(W(t,o,o+x));s&&e.hmac.update(a);const r=e.aesCtrGladman.update(a);s||e.hmac.update(r),n.set(C.fromBits(r),o+i)}return e.pendingInput=W(t,o),n}async function P(e,n,i){const r=(e=>{if(void 0===_){const t=new a((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new _).encode(e)})(n),s=await d.subtle.importKey("raw",r,y,!1,k),l=await d.subtle.deriveBits(t.assign({salt:i},m),s,8*(2*S[e.strength]+2)),o=new a(l);e.keys={key:C.toBits(W(o,0,S[e.strength])),authentication:C.toBits(W(o,S[e.strength],2*S[e.strength])),passwordVerification:W(o,2*S[e.strength])}}function K(e,t){let n=e;return e.length+t.length&&(n=new a(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function W(e,t,n){return e.subarray(t,n)}class T{constructor(e,n){t.assign(this,{password:e,passwordVerification:n}),R(this,e)}append(e){const t=this;if(t.password){const n=G(t,e.subarray(0,12));if(t.password=null,n[11]!=t.passwordVerification)throw new i(w);e=e.subarray(12)}return G(t,e)}flush(){return{valid:!0,data:new a(0)}}}class U{constructor(e,n){t.assign(this,{password:e,passwordVerification:n}),R(this,e)}append(e){const t=this;let n,i;if(t.password){t.password=null;const r=d.getRandomValues(new a(12));r[11]=t.passwordVerification,n=new a(e.length+r.length),n.set(L(t,r),0),i=12}else n=new a(e.length),i=0;return n.set(L(t,e),i),n}flush(){return{data:new a(0)}}}function G(e,t){const n=new a(t.length);for(let i=0;i<t.length;i++)n[i]=M(e)^t[i],q(e,n[i]);return n}function L(e,t){const n=new a(t.length);for(let i=0;i<t.length;i++)n[i]=M(e)^t[i],q(e,t[i]);return n}function R(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new u(e.keys[0]),e.crcKey2=new u(e.keys[2]);for(let n=0;n<t.length;n++)q(e,t.charCodeAt(n))}function q(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=F(e.keys[1]+j(e.keys[0])),e.keys[1]=F(n.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function M(e){const t=2|e.keys[2];return j(n.imul(t,1^t)>>>8)}function j(e){return 255&e}function F(e){return 4294967295&e}const O="deflate",J="inflate",N="Invalid signature";class Q{constructor(e,{signature:n,password:i,signed:a,compressed:r,zipCrypto:s,passwordVerification:l,encryptionStrength:o},{chunkSize:_}){const d=!!i;t.assign(this,{signature:n,encrypted:d,signed:a,compressed:r,inflate:r&&new e({chunkSize:_}),crc32:a&&new u,zipCrypto:s,decrypt:d&&s?new T(i,l):new V(i,a,o)})}async append(e){const t=this;return t.encrypted&&e.length&&(e=await t.decrypt.append(e)),t.compressed&&e.length&&(e=await t.inflate.append(e)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),e}async flush(){const e=this;let t,n=new a(0);if(e.encrypted){const t=e.decrypt.flush();if(!t.valid)throw new i(N);n=t.data}if((!e.encrypted||e.zipCrypto)&&e.signed){const n=new o(new a(4).buffer);if(t=e.crc32.get(),n.setUint32(0,t),e.signature!=n.getUint32(0,!1))throw new i(N)}return e.compressed&&(n=await e.inflate.append(n)||new a(0),await e.inflate.flush()),{data:n,signature:t}}}class X{constructor(e,{encrypted:n,signed:i,compressed:a,level:r,zipCrypto:s,password:l,passwordVerification:o,encryptionStrength:_},{chunkSize:d}){t.assign(this,{encrypted:n,signed:i,compressed:a,deflate:a&&new e({level:r||5,chunkSize:d}),crc32:i&&new u,zipCrypto:s,encrypt:n&&s?new U(l,o):new A(l,_)})}async append(e){const t=this;let n=e;return t.compressed&&e.length&&(n=await t.deflate.append(e)),t.encrypted&&n.length&&(n=await t.encrypt.append(n)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),n}async flush(){const e=this;let t,n=new a(0);if(e.compressed&&(n=await e.deflate.flush()||new a(0)),e.encrypted){n=await e.encrypt.append(n);const i=e.encrypt.flush();t=i.signature;const r=new a(n.length+i.data.length);r.set(n,0),r.set(i.data,n.length),n=r}return e.encrypted&&!e.zipCrypto||!e.signed||(t=e.crc32.get()),{data:n,signature:t}}}const Y={init(e){e.scripts&&e.scripts.length&&importScripts.apply(void 0,e.scripts);const t=e.options;let n;self.initCodec&&self.initCodec(),t.codecType.startsWith(O)?n=self.Deflate:t.codecType.startsWith(J)&&(n=self.Inflate),Z=((e,t,n)=>t.codecType.startsWith(O)?new X(e,t,n):t.codecType.startsWith(J)?new Q(e,t,n):void 0)(n,t,e.config)},append:async e=>({data:await Z.append(e.data)}),flush:()=>Z.flush()};let Z;addEventListener("message",(async e=>{const t=e.data,n=t.type,i=Y[n];if(i)try{t.data&&(t.data=new a(t.data));const e=await i(t)||{};if(e.type=n,e.data)try{e.data=e.data.buffer,c(e,[e.data])}catch(t){c(e)}else c(e)}catch(e){c({type:n,error:{message:e.message,stack:e.stack}})}}));const $=-2;function ee(t){return te(t.map((([t,n])=>new e(t).fill(n,0,t))))}function te(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?te(n):n)),[])}const ne=[0,1,2,3].concat(...ee([[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 ie(){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=i=>{const a=e.dyn_tree,r=e.stat_desc.static_tree,s=e.stat_desc.elems;let l,o,_,d=-1;for(i.heap_len=0,i.heap_max=573,l=0;s>l;l++)0!==a[2*l]?(i.heap[++i.heap_len]=d=l,i.depth[l]=0):a[2*l+1]=0;for(;2>i.heap_len;)_=i.heap[++i.heap_len]=2>d?++d:0,a[2*_]=1,i.depth[_]=0,i.opt_len--,r&&(i.static_len-=r[2*_+1]);for(e.max_code=d,l=n.floor(i.heap_len/2);l>=1;l--)i.pqdownheap(a,l);_=s;do{l=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(a,1),o=i.heap[1],i.heap[--i.heap_max]=l,i.heap[--i.heap_max]=o,a[2*_]=a[2*l]+a[2*o],i.depth[_]=n.max(i.depth[l],i.depth[o])+1,a[2*l+1]=a[2*o+1]=_,i.heap[1]=_++,i.pqdownheap(a,1)}while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],(t=>{const n=e.dyn_tree,i=e.stat_desc.static_tree,a=e.stat_desc.extra_bits,r=e.stat_desc.extra_base,s=e.stat_desc.max_length;let l,o,_,d,c,f,u=0;for(d=0;15>=d;d++)t.bl_count[d]=0;for(n[2*t.heap[t.heap_max]+1]=0,l=t.heap_max+1;573>l;l++)o=t.heap[l],d=n[2*n[2*o+1]+1]+1,d>s&&(d=s,u++),n[2*o+1]=d,o>e.max_code||(t.bl_count[d]++,c=0,r>o||(c=a[o-r]),f=n[2*o],t.opt_len+=f*(d+c),i&&(t.static_len+=f*(i[2*o+1]+c)));if(0!==u){do{for(d=s-1;0===t.bl_count[d];)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[s]--,u-=2}while(u>0);for(d=s;0!==d;d--)for(o=t.bl_count[d];0!==o;)_=t.heap[--l],_>e.max_code||(n[2*_+1]!=d&&(t.opt_len+=(d-n[2*_+1])*n[2*_],n[2*_+1]=d),o--)}})(i),((e,n,i)=>{const a=[];let r,s,l,o=0;for(r=1;15>=r;r++)a[r]=o=o+i[r-1]<<1;for(s=0;n>=s;s++)l=e[2*s+1],0!==l&&(e[2*s]=t(a[l]++,l))})(a,e.max_code,i.bl_count)}}function ae(e,t,n,i,a){const r=this;r.static_tree=e,r.extra_bits=t,r.extra_base=n,r.elems=i,r.max_length=a}ie._length_code=[0,1,2,3,4,5,6,7].concat(...ee([[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]])),ie.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],ie.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],ie.d_code=e=>256>e?ne[e]:ne[256+(e>>>7)],ie.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],ie.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],ie.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ie.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const re=ee([[144,8],[112,9],[24,7],[8,8]]);ae.static_ltree=te([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,re[t]])));const se=ee([[30,5]]);function le(e,t,n,i,a){const r=this;r.good_length=e,r.max_lazy=t,r.nice_length=n,r.max_chain=i,r.func=a}ae.static_dtree=te([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,se[t]]))),ae.static_l_desc=new ae(ae.static_ltree,ie.extra_lbits,257,286,15),ae.static_d_desc=new ae(ae.static_dtree,ie.extra_dbits,0,30,15),ae.static_bl_desc=new ae(null,ie.extra_blbits,0,19,7);const oe=[new le(0,0,0,0,0),new le(4,4,8,4,1),new le(4,5,16,8,1),new le(4,6,32,32,1),new le(4,4,16,16,2),new le(8,16,32,32,2),new le(8,16,128,128,2),new le(8,32,128,256,2),new le(32,128,258,1024,2),new le(32,258,258,4096,2)],_e=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],de=113,ce=666,fe=262;function ue(e,t,n,i){const a=e[2*t],r=e[2*n];return r>a||a==r&&i[t]<=i[n]}function he(){const e=this;let t,i,s,l,o,_,d,c,f,u,h,b,p,w,x,g,y,m,k,v,S,z,I,C,B,E,H,V,A,D,P,K,W;const T=new ie,U=new ie,G=new ie;let L,R,q,M,j,F;function O(){let t;for(t=0;286>t;t++)P[2*t]=0;for(t=0;30>t;t++)K[2*t]=0;for(t=0;19>t;t++)W[2*t]=0;P[512]=1,e.opt_len=e.static_len=0,R=q=0}function J(e,t){let n,i=-1,a=e[1],r=0,s=7,l=4;0===a&&(s=138,l=3),e[2*(t+1)+1]=65535;for(let o=0;t>=o;o++)n=a,a=e[2*(o+1)+1],++r<s&&n==a||(l>r?W[2*n]+=r:0!==n?(n!=i&&W[2*n]++,W[32]++):r>10?W[36]++:W[34]++,r=0,i=n,0===a?(s=138,l=3):n==a?(s=6,l=3):(s=7,l=4))}function N(t){e.pending_buf[e.pending++]=t}function Q(e){N(255&e),N(e>>>8&255)}function X(e,t){let n;const i=t;F>16-i?(n=e,j|=n<<F&65535,Q(j),j=n>>>16-F,F+=i-16):(j|=e<<F&65535,F+=i)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,i,a=-1,r=e[1],s=0,l=7,o=4;for(0===r&&(l=138,o=3),n=0;t>=n;n++)if(i=r,r=e[2*(n+1)+1],++s>=l||i!=r){if(o>s)do{Y(i,W)}while(0!=--s);else 0!==i?(i!=a&&(Y(i,W),s--),Y(16,W),X(s-3,2)):s>10?(Y(18,W),X(s-11,7)):(Y(17,W),X(s-3,3));s=0,a=i,0===r?(l=138,o=3):i==r?(l=6,o=3):(l=7,o=4)}}function ee(){16==F?(Q(j),j=0,F=0):8>F||(N(255&j),j>>>=8,F-=8)}function te(t,i){let a,r,s;if(e.dist_buf[R]=t,e.lc_buf[R]=255&i,R++,0===t?P[2*i]++:(q++,t--,P[2*(ie._length_code[i]+256+1)]++,K[2*ie.d_code(t)]++),0==(8191&R)&&H>2){for(a=8*R,r=S-y,s=0;30>s;s++)a+=K[2*s]*(5+ie.extra_dbits[s]);if(a>>>=3,q<n.floor(R/2)&&a<n.floor(r/2))return!0}return R==L-1}function ne(t,n){let i,a,r,s,l=0;if(0!==R)do{i=e.dist_buf[l],a=e.lc_buf[l],l++,0===i?Y(a,t):(r=ie._length_code[a],Y(r+256+1,t),s=ie.extra_lbits[r],0!==s&&(a-=ie.base_length[r],X(a,s)),i--,r=ie.d_code(i),Y(r,n),s=ie.extra_dbits[r],0!==s&&(i-=ie.base_dist[r],X(i,s)))}while(R>l);Y(256,t),M=t[513]}function re(){F>8?Q(j):F>0&&N(255&j),j=0,F=0}function se(t,n,i){X(0+(i?1:0),3),((t,n)=>{re(),M=8,Q(n),Q(~n),e.pending_buf.set(c.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function le(n){((t,n,i)=>{let a,r,s=0;H>0?(T.build_tree(e),U.build_tree(e),s=(()=>{let t;for(J(P,T.max_code),J(K,U.max_code),G.build_tree(e),t=18;t>=3&&0===W[2*ie.bl_order[t]+1];t--);return e.opt_len+=14+3*(t+1),t})(),a=e.opt_len+3+7>>>3,r=e.static_len+3+7>>>3,r>a||(a=r)):a=r=n+5,n+4>a||-1==t?r==a?(X(2+(i?1:0),3),ne(ae.static_ltree,ae.static_dtree)):(X(4+(i?1:0),3),((e,t,n)=>{let i;for(X(e-257,5),X(t-1,5),X(n-4,4),i=0;n>i;i++)X(W[2*ie.bl_order[i]+1],3);Z(P,e-1),Z(K,t-1)})(T.max_code+1,U.max_code+1,s+1),ne(P,K)):se(t,n,i),O(),i&&re()})(0>y?-1:y,S-y,n),y=S,t.flush_pending()}function he(){let e,n,i,a;do{if(a=f-I-S,0===a&&0===S&&0===I)a=o;else if(-1==a)a--;else if(S>=o+o-fe){c.set(c.subarray(o,o+o),0),z-=o,S-=o,y-=o,e=p,i=e;do{n=65535&h[--i],h[i]=o>n?0:n-o}while(0!=--e);e=o,i=e;do{n=65535&u[--i],u[i]=o>n?0:n-o}while(0!=--e);a+=o}if(0===t.avail_in)return;e=t.read_buf(c,S+I,a),I+=e,3>I||(b=255&c[S],b=(b<<g^255&c[S+1])&x)}while(fe>I&&0!==t.avail_in)}function be(e){let t,n,i=B,a=S,r=C;const s=S>o-fe?S-(o-fe):0;let l=D;const _=d,f=S+258;let h=c[a+r-1],b=c[a+r];A>C||(i>>=2),l>I&&(l=I);do{if(t=e,c[t+r]==b&&c[t+r-1]==h&&c[t]==c[a]&&c[++t]==c[a+1]){a+=2,t++;do{}while(c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&f>a);if(n=258-(f-a),a=f-258,n>r){if(z=e,r=n,n>=l)break;h=c[a+r-1],b=c[a+r]}}}while((e=65535&u[e&_])>s&&0!=--i);return r>I?I:r}e.depth=[],e.bl_count=[],e.heap=[],P=[],K=[],W=[],e.pqdownheap=(t,n)=>{const i=e.heap,a=i[n];let r=n<<1;for(;r<=e.heap_len&&(r<e.heap_len&&ue(t,i[r+1],i[r],e.depth)&&r++,!ue(t,a,i[r],e.depth));)i[n]=i[r],n=r,r<<=1;i[n]=a},e.deflateInit=(t,k,z,R,q,J)=>(R||(R=8),q||(q=8),J||(J=0),t.msg=null,-1==k&&(k=6),1>q||q>9||8!=R||9>z||z>15||0>k||k>9||0>J||J>2?$:(t.dstate=e,_=z,o=1<<_,d=o-1,w=q+7,p=1<<w,x=p-1,g=n.floor((w+3-1)/3),c=new a(2*o),u=[],h=[],L=1<<q+6,e.pending_buf=new a(4*L),s=4*L,e.dist_buf=new r(L),e.lc_buf=new a(L),H=k,V=J,(t=>(t.total_in=t.total_out=0,t.msg=null,e.pending=0,e.pending_out=0,i=de,l=0,T.dyn_tree=P,T.stat_desc=ae.static_l_desc,U.dyn_tree=K,U.stat_desc=ae.static_d_desc,G.dyn_tree=W,G.stat_desc=ae.static_bl_desc,j=0,F=0,M=8,O(),(()=>{f=2*o,h[p-1]=0;for(let e=0;p-1>e;e++)h[e]=0;E=oe[H].max_lazy,A=oe[H].good_length,D=oe[H].nice_length,B=oe[H].max_chain,S=0,y=0,I=0,m=C=2,v=0,b=0})(),0))(t))),e.deflateEnd=()=>42!=i&&i!=de&&i!=ce?$:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,h=null,u=null,c=null,e.dstate=null,i==de?-3:0),e.deflateParams=(e,t,n)=>{let i=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?$:(oe[H].func!=oe[t].func&&0!==e.total_in&&(i=e.deflate(1)),H!=t&&(H=t,E=oe[H].max_lazy,A=oe[H].good_length,D=oe[H].nice_length,B=oe[H].max_chain),V=n,i)},e.deflateSetDictionary=(e,t,n)=>{let a,r=n,s=0;if(!t||42!=i)return $;if(3>r)return 0;for(r>o-fe&&(r=o-fe,s=n-r),c.set(t.subarray(s,s+r),0),S=r,y=r,b=255&c[0],b=(b<<g^255&c[1])&x,a=0;r-3>=a;a++)b=(b<<g^255&c[a+2])&x,u[a&d]=h[b],h[b]=a;return 0},e.deflate=(n,a)=>{let r,f,w,B,A;if(a>4||0>a)return $;if(!n.next_out||!n.next_in&&0!==n.avail_in||i==ce&&4!=a)return n.msg=_e[4],$;if(0===n.avail_out)return n.msg=_e[7],-5;var D;if(t=n,B=l,l=a,42==i&&(f=8+(_-8<<4)<<8,w=(H-1&255)>>1,w>3&&(w=3),f|=w<<6,0!==S&&(f|=32),f+=31-f%31,i=de,N((D=f)>>8&255),N(255&D)),0!==e.pending){if(t.flush_pending(),0===t.avail_out)return l=-1,0}else if(0===t.avail_in&&B>=a&&4!=a)return t.msg=_e[7],-5;if(i==ce&&0!==t.avail_in)return n.msg=_e[7],-5;if(0!==t.avail_in||0!==I||0!=a&&i!=ce){switch(A=-1,oe[H].func){case 0:A=(e=>{let n,i=65535;for(i>s-5&&(i=s-5);;){if(1>=I){if(he(),0===I&&0==e)return 0;if(0===I)break}if(S+=I,I=0,n=y+i,(0===S||S>=n)&&(I=S-n,S=n,le(!1),0===t.avail_out))return 0;if(S-y>=o-fe&&(le(!1),0===t.avail_out))return 0}return le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(a);break;case 1:A=(e=>{let n,i=0;for(;;){if(fe>I){if(he(),fe>I&&0==e)return 0;if(0===I)break}if(3>I||(b=(b<<g^255&c[S+2])&x,i=65535&h[b],u[S&d]=h[b],h[b]=S),0===i||(S-i&65535)>o-fe||2!=V&&(m=be(i)),3>m)n=te(0,255&c[S]),I--,S++;else if(n=te(S-z,m-3),I-=m,m>E||3>I)S+=m,m=0,b=255&c[S],b=(b<<g^255&c[S+1])&x;else{m--;do{S++,b=(b<<g^255&c[S+2])&x,i=65535&h[b],u[S&d]=h[b],h[b]=S}while(0!=--m);S++}if(n&&(le(!1),0===t.avail_out))return 0}return le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(a);break;case 2:A=(e=>{let n,i,a=0;for(;;){if(fe>I){if(he(),fe>I&&0==e)return 0;if(0===I)break}if(3>I||(b=(b<<g^255&c[S+2])&x,a=65535&h[b],u[S&d]=h[b],h[b]=S),C=m,k=z,m=2,0!==a&&E>C&&o-fe>=(S-a&65535)&&(2!=V&&(m=be(a)),5>=m&&(1==V||3==m&&S-z>4096)&&(m=2)),3>C||m>C)if(0!==v){if(n=te(0,255&c[S-1]),n&&le(!1),S++,I--,0===t.avail_out)return 0}else v=1,S++,I--;else{i=S+I-3,n=te(S-1-k,C-3),I-=C-1,C-=2;do{++S>i||(b=(b<<g^255&c[S+2])&x,a=65535&h[b],u[S&d]=h[b],h[b]=S)}while(0!=--C);if(v=0,m=2,S++,n&&(le(!1),0===t.avail_out))return 0}}return 0!==v&&(n=te(0,255&c[S-1]),v=0),le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(a)}if(2!=A&&3!=A||(i=ce),0==A||2==A)return 0===t.avail_out&&(l=-1),0;if(1==A){if(1==a)X(2,3),Y(256,ae.static_ltree),ee(),9>1+M+10-F&&(X(2,3),Y(256,ae.static_ltree),ee()),M=7;else if(se(0,0,!1),3==a)for(r=0;p>r;r++)h[r]=0;if(t.flush_pending(),0===t.avail_out)return l=-1,0}}return 4!=a?0:1}}function be(){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}function pe(e){const t=new be,r=(s=e&&e.chunkSize?e.chunkSize:65536)+5*(n.floor(s/16383)+1);var s;const l=new a(r);let o=e?e.level:-1;void 0===o&&(o=-1),t.deflateInit(o),t.next_out=l,this.append=(e,n)=>{let s,o,_=0,d=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=r,s=t.deflate(0),0!=s)throw new i("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==r?f.push(new a(l)):f.push(l.slice(0,t.next_out_index))),c+=t.next_out_index,n&&t.next_in_index>0&&t.next_in_index!=_&&(n(t.next_in_index),_=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return f.length>1?(o=new a(c),f.forEach((e=>{o.set(e,d),d+=e.length}))):o=f[0]||new a(0),o}},this.flush=()=>{let e,n,s=0,o=0;const _=[];do{if(t.next_out_index=0,t.avail_out=r,e=t.deflate(4),1!=e&&0!=e)throw new i("deflating: "+t.msg);r-t.avail_out>0&&_.push(l.slice(0,t.next_out_index)),o+=t.next_out_index}while(t.avail_in>0||0===t.avail_out);return t.deflateEnd(),n=new a(o),_.forEach((e=>{n.set(e,s),s+=e.length})),n}}be.prototype={deflateInit:function(e,t){const n=this;return n.dstate=new he,t||(t=15),n.dstate.deflateInit(n,e,t)},deflate:function(e){const t=this;return t.dstate?t.dstate.deflate(t,e):$},deflateEnd:function(){const e=this;if(!e.dstate)return $;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams:function(e,t){const n=this;return n.dstate?n.dstate.deflateParams(n,e,t):$},deflateSetDictionary:function(e,t){const n=this;return n.dstate?n.dstate.deflateSetDictionary(n,e,t):$},read_buf:function(e,t,n){const i=this;let a=i.avail_in;return a>n&&(a=n),0===a?0:(i.avail_in-=a,e.set(i.next_in.subarray(i.next_in_index,i.next_in_index+a),t),i.next_in_index+=a,i.total_in+=a,a)},flush_pending:function(){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 we=-2,xe=-3,ge=-5,ye=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],me=[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],ke=[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],ve=[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],Se=[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],ze=[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],Ie=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function Ce(){let e,t,n,i,a,r;function s(e,t,s,l,o,_,d,c,f,u,h){let b,p,w,x,g,y,m,k,v,S,z,I,C,B,E;S=0,g=s;do{n[e[t+S]]++,S++,g--}while(0!==g);if(n[0]==s)return d[0]=-1,c[0]=0,0;for(k=c[0],y=1;15>=y&&0===n[y];y++);for(m=y,y>k&&(k=y),g=15;0!==g&&0===n[g];g--);for(w=g,k>g&&(k=g),c[0]=k,B=1<<y;g>y;y++,B<<=1)if(0>(B-=n[y]))return xe;if(0>(B-=n[g]))return xe;for(n[g]+=B,r[1]=y=0,S=1,C=2;0!=--g;)r[C]=y+=n[S],C++,S++;g=0,S=0;do{0!==(y=e[t+S])&&(h[r[y]++]=g),S++}while(++g<s);for(s=r[w],r[0]=g=0,S=0,x=-1,I=-k,a[0]=0,z=0,E=0;w>=m;m++)for(b=n[m];0!=b--;){for(;m>I+k;){if(x++,I+=k,E=w-I,E=E>k?k:E,(p=1<<(y=m-I))>b+1&&(p-=b+1,C=m,E>y))for(;++y<E&&(p<<=1)>n[++C];)p-=n[C];if(E=1<<y,u[0]+E>1440)return xe;a[x]=z=u[0],u[0]+=E,0!==x?(r[x]=g,i[0]=y,i[1]=k,y=g>>>I-k,i[2]=z-a[x-1]-y,f.set(i,3*(a[x-1]+y))):d[0]=z}for(i[1]=m-I,s>S?h[S]<l?(i[0]=256>h[S]?0:96,i[2]=h[S++]):(i[0]=_[h[S]-l]+16+64,i[2]=o[h[S++]-l]):i[0]=192,p=1<<m-I,y=g>>>I;E>y;y+=p)f.set(i,3*(z+y));for(y=1<<m-1;0!=(g&y);y>>>=1)g^=y;for(g^=y,v=(1<<I)-1;(g&v)!=r[x];)x--,I-=k,v=(1<<I)-1}return 0!==B&&1!=w?ge:0}function o(s){let o;for(e||(e=[],t=[],n=new l(16),i=[],a=new l(15),r=new l(16)),t.length<s&&(t=[]),o=0;s>o;o++)t[o]=0;for(o=0;16>o;o++)n[o]=0;for(o=0;3>o;o++)i[o]=0;a.set(n.subarray(0,15),0),r.set(n.subarray(0,16),0)}this.inflate_trees_bits=(n,i,a,r,l)=>{let _;return o(19),e[0]=0,_=s(n,0,19,19,null,null,a,i,r,e,t),_==xe?l.msg="oversubscribed dynamic bit lengths tree":_!=ge&&0!==i[0]||(l.msg="incomplete dynamic bit lengths tree",_=xe),_},this.inflate_trees_dynamic=(n,i,a,r,l,_,d,c,f)=>{let u;return o(288),e[0]=0,u=s(a,0,n,257,ve,Se,_,r,c,e,t),0!=u||0===r[0]?(u==xe?f.msg="oversubscribed literal/length tree":-4!=u&&(f.msg="incomplete literal/length tree",u=xe),u):(o(288),u=s(a,n,i,0,ze,Ie,d,l,c,e,t),0!=u||0===l[0]&&n>257?(u==xe?f.msg="oversubscribed distance tree":u==ge?(f.msg="incomplete distance tree",u=xe):-4!=u&&(f.msg="empty distance tree with lengths",u=xe),u):0)}}function Be(){const e=this;let t,n,i,a,r=0,s=0,l=0,o=0,_=0,d=0,c=0,f=0,u=0,h=0;function b(e,t,n,i,a,r,s,l){let o,_,d,c,f,u,h,b,p,w,x,g,y,m,k,v;h=l.next_in_index,b=l.avail_in,f=s.bitb,u=s.bitk,p=s.write,w=p<s.read?s.read-p-1:s.end-p,x=ye[e],g=ye[t];do{for(;20>u;)b--,f|=(255&l.read_byte(h++))<<u,u+=8;if(o=f&x,_=n,d=i,v=3*(d+o),0!==(c=_[v]))for(;;){if(f>>=_[v+1],u-=_[v+1],0!=(16&c)){for(c&=15,y=_[v+2]+(f&ye[c]),f>>=c,u-=c;15>u;)b--,f|=(255&l.read_byte(h++))<<u,u+=8;for(o=f&g,_=a,d=r,v=3*(d+o),c=_[v];;){if(f>>=_[v+1],u-=_[v+1],0!=(16&c)){for(c&=15;c>u;)b--,f|=(255&l.read_byte(h++))<<u,u+=8;if(m=_[v+2]+(f&ye[c]),f>>=c,u-=c,w-=y,m>p){k=p-m;do{k+=s.end}while(0>k);if(c=s.end-k,y>c){if(y-=c,p-k>0&&c>p-k)do{s.win[p++]=s.win[k++]}while(0!=--c);else s.win.set(s.win.subarray(k,k+c),p),p+=c,k+=c,c=0;k=0}}else k=p-m,p-k>0&&2>p-k?(s.win[p++]=s.win[k++],s.win[p++]=s.win[k++],y-=2):(s.win.set(s.win.subarray(k,k+2),p),p+=2,k+=2,y-=2);if(p-k>0&&y>p-k)do{s.win[p++]=s.win[k++]}while(0!=--y);else s.win.set(s.win.subarray(k,k+y),p),p+=y,k+=y,y=0;break}if(0!=(64&c))return l.msg="invalid distance code",y=l.avail_in-b,y=y>u>>3?u>>3:y,b+=y,h-=y,u-=y<<3,s.bitb=f,s.bitk=u,l.avail_in=b,l.total_in+=h-l.next_in_index,l.next_in_index=h,s.write=p,xe;o+=_[v+2],o+=f&ye[c],v=3*(d+o),c=_[v]}break}if(0!=(64&c))return 0!=(32&c)?(y=l.avail_in-b,y=y>u>>3?u>>3:y,b+=y,h-=y,u-=y<<3,s.bitb=f,s.bitk=u,l.avail_in=b,l.total_in+=h-l.next_in_index,l.next_in_index=h,s.write=p,1):(l.msg="invalid literal/length code",y=l.avail_in-b,y=y>u>>3?u>>3:y,b+=y,h-=y,u-=y<<3,s.bitb=f,s.bitk=u,l.avail_in=b,l.total_in+=h-l.next_in_index,l.next_in_index=h,s.write=p,xe);if(o+=_[v+2],o+=f&ye[c],v=3*(d+o),0===(c=_[v])){f>>=_[v+1],u-=_[v+1],s.win[p++]=_[v+2],w--;break}}else f>>=_[v+1],u-=_[v+1],s.win[p++]=_[v+2],w--}while(w>=258&&b>=10);return y=l.avail_in-b,y=y>u>>3?u>>3:y,b+=y,h-=y,u-=y<<3,s.bitb=f,s.bitk=u,l.avail_in=b,l.total_in+=h-l.next_in_index,l.next_in_index=h,s.write=p,0}e.init=(e,r,s,l,o,_)=>{t=0,c=e,f=r,i=s,u=l,a=o,h=_,n=null},e.proc=(e,p,w)=>{let x,g,y,m,k,v,S,z=0,I=0,C=0;for(C=p.next_in_index,m=p.avail_in,z=e.bitb,I=e.bitk,k=e.write,v=k<e.read?e.read-k-1:e.end-k;;)switch(t){case 0:if(v>=258&&m>=10&&(e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,w=b(c,f,i,u,a,h,e,p),C=p.next_in_index,m=p.avail_in,z=e.bitb,I=e.bitk,k=e.write,v=k<e.read?e.read-k-1:e.end-k,0!=w)){t=1==w?7:9;break}l=c,n=i,s=u,t=1;case 1:for(x=l;x>I;){if(0===m)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,m--,z|=(255&p.read_byte(C++))<<I,I+=8}if(g=3*(s+(z&ye[x])),z>>>=n[g+1],I-=n[g+1],y=n[g],0===y){o=n[g+2],t=6;break}if(0!=(16&y)){_=15&y,r=n[g+2],t=2;break}if(0==(64&y)){l=y,s=g/3+n[g+2];break}if(0!=(32&y)){t=7;break}return t=9,p.msg="invalid literal/length code",w=xe,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);case 2:for(x=_;x>I;){if(0===m)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,m--,z|=(255&p.read_byte(C++))<<I,I+=8}r+=z&ye[x],z>>=x,I-=x,l=f,n=a,s=h,t=3;case 3:for(x=l;x>I;){if(0===m)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,m--,z|=(255&p.read_byte(C++))<<I,I+=8}if(g=3*(s+(z&ye[x])),z>>=n[g+1],I-=n[g+1],y=n[g],0!=(16&y)){_=15&y,d=n[g+2],t=4;break}if(0==(64&y)){l=y,s=g/3+n[g+2];break}return t=9,p.msg="invalid distance code",w=xe,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);case 4:for(x=_;x>I;){if(0===m)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,m--,z|=(255&p.read_byte(C++))<<I,I+=8}d+=z&ye[x],z>>=x,I-=x,t=5;case 5:for(S=k-d;0>S;)S+=e.end;for(;0!==r;){if(0===v&&(k==e.end&&0!==e.read&&(k=0,v=k<e.read?e.read-k-1:e.end-k),0===v&&(e.write=k,w=e.inflate_flush(p,w),k=e.write,v=k<e.read?e.read-k-1:e.end-k,k==e.end&&0!==e.read&&(k=0,v=k<e.read?e.read-k-1:e.end-k),0===v)))return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);e.win[k++]=e.win[S++],v--,S==e.end&&(S=0),r--}t=0;break;case 6:if(0===v&&(k==e.end&&0!==e.read&&(k=0,v=k<e.read?e.read-k-1:e.end-k),0===v&&(e.write=k,w=e.inflate_flush(p,w),k=e.write,v=k<e.read?e.read-k-1:e.end-k,k==e.end&&0!==e.read&&(k=0,v=k<e.read?e.read-k-1:e.end-k),0===v)))return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,e.win[k++]=o,v--,t=0;break;case 7:if(I>7&&(I-=8,m++,C--),e.write=k,w=e.inflate_flush(p,w),k=e.write,v=k<e.read?e.read-k-1:e.end-k,e.read!=e.write)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);t=8;case 8:return w=1,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);case 9:return w=xe,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);default:return w=we,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w)}},e.free=()=>{}}Ce.inflate_trees_fixed=(e,t,n,i)=>(e[0]=9,t[0]=5,n[0]=me,i[0]=ke,0);const Ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function He(e,t){const n=this;let i,r=0,s=0,o=0,_=0;const d=[0],c=[0],f=new Be;let u=0,h=new l(4320);const b=new Ce;n.bitk=0,n.bitb=0,n.win=new a(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==r&&f.free(e),r=0,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=(e,t)=>{let i,a,r;return a=e.next_out_index,r=n.read,i=(r>n.write?n.end:n.write)-r,i>e.avail_out&&(i=e.avail_out),0!==i&&t==ge&&(t=0),e.avail_out-=i,e.total_out+=i,e.next_out.set(n.win.subarray(r,r+i),a),a+=i,r+=i,r==n.end&&(r=0,n.write==n.end&&(n.write=0),i=n.write-r,i>e.avail_out&&(i=e.avail_out),0!==i&&t==ge&&(t=0),e.avail_out-=i,e.total_out+=i,e.next_out.set(n.win.subarray(r,r+i),a),a+=i,r+=i),e.next_out_index=a,n.read=r,t},n.proc=(e,t)=>{let a,l,p,w,x,g,y,m;for(w=e.next_in_index,x=e.avail_in,l=n.bitb,p=n.bitk,g=n.write,y=g<n.read?n.read-g-1:n.end-g;;){let k,v,S,z,I,C,B,E;switch(r){case 0:for(;3>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}switch(a=7&l,u=1&a,a>>>1){case 0:l>>>=3,p-=3,a=7&p,l>>>=a,p-=a,r=1;break;case 1:k=[],v=[],S=[[]],z=[[]],Ce.inflate_trees_fixed(k,v,S,z),f.init(k[0],v[0],S[0],0,z[0],0),l>>>=3,p-=3,r=6;break;case 2:l>>>=3,p-=3,r=3;break;case 3:return l>>>=3,p-=3,r=9,e.msg="invalid block type",t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t)}break;case 1:for(;32>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}if((~l>>>16&65535)!=(65535&l))return r=9,e.msg="invalid stored block lengths",t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);s=65535&l,l=p=0,r=0!==s?2:0!==u?7:0;break;case 2:if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);if(0===y&&(g==n.end&&0!==n.read&&(g=0,y=g<n.read?n.read-g-1:n.end-g),0===y&&(n.write=g,t=n.inflate_flush(e,t),g=n.write,y=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,y=g<n.read?n.read-g-1:n.end-g),0===y)))return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);if(t=0,a=s,a>x&&(a=x),a>y&&(a=y),n.win.set(e.read_buf(w,a),g),w+=a,x-=a,g+=a,y-=a,0!=(s-=a))break;r=0!==u?7:0;break;case 3:for(;14>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}if(o=a=16383&l,(31&a)>29||(a>>5&31)>29)return r=9,e.msg="too many length or distance symbols",t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);if(a=258+(31&a)+(a>>5&31),!i||i.length<a)i=[];else for(m=0;a>m;m++)i[m]=0;l>>>=14,p-=14,_=0,r=4;case 4:for(;4+(o>>>10)>_;){for(;3>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}i[Ee[_++]]=7&l,l>>>=3,p-=3}for(;19>_;)i[Ee[_++]]=0;if(d[0]=7,a=b.inflate_trees_bits(i,d,c,h,e),0!=a)return(t=a)==xe&&(i=null,r=9),n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);_=0,r=5;case 5:for(;a=o,258+(31&a)+(a>>5&31)>_;){let s,f;for(a=d[0];a>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}if(a=h[3*(c[0]+(l&ye[a]))+1],f=h[3*(c[0]+(l&ye[a]))+2],16>f)l>>>=a,p-=a,i[_++]=f;else{for(m=18==f?7:f-14,s=18==f?11:3;a+m>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}if(l>>>=a,p-=a,s+=l&ye[m],l>>>=m,p-=m,m=_,a=o,m+s>258+(31&a)+(a>>5&31)||16==f&&1>m)return i=null,r=9,e.msg="invalid bit length repeat",t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);f=16==f?i[m-1]:0;do{i[m++]=f}while(0!=--s);_=m}}if(c[0]=-1,I=[],C=[],B=[],E=[],I[0]=9,C[0]=6,a=o,a=b.inflate_trees_dynamic(257+(31&a),1+(a>>5&31),i,I,C,B,E,h,e),0!=a)return a==xe&&(i=null,r=9),t=a,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);f.init(I[0],C[0],h,B[0],h,E[0]),r=6;case 6:if(n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,1!=(t=f.proc(n,e,t)))return n.inflate_flush(e,t);if(t=0,f.free(e),w=e.next_in_index,x=e.avail_in,l=n.bitb,p=n.bitk,g=n.write,y=g<n.read?n.read-g-1:n.end-g,0===u){r=0;break}r=7;case 7:if(n.write=g,t=n.inflate_flush(e,t),g=n.write,y=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);r=8;case 8:return t=1,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);case 9:return t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);default:return t=we,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t)}}},n.free=e=>{n.reset(e,null),n.win=null,h=null},n.set_dictionary=(e,t,i)=>{n.win.set(e.subarray(t,t+i),0),n.read=n.write=i},n.sync_point=()=>1==r?1:0}const Ve=13,Ae=[0,0,255,255];function De(){const e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):we}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=t=>(e.blocks&&e.blocks.free(t),e.blocks=null,0),e.inflateInit=(n,i)=>(n.msg=null,e.blocks=null,8>i||i>15?(e.inflateEnd(n),we):(e.wbits=i,n.istate.blocks=new He(n,1<<i),t(n),0)),e.inflate=(e,t)=>{let n,i;if(!e||!e.istate||!e.next_in)return we;const a=e.istate;for(t=4==t?ge:0,n=ge;;)switch(a.mode){case 0:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,8!=(15&(a.method=e.read_byte(e.next_in_index++)))){a.mode=Ve,e.msg="unknown compression method",a.marker=5;break}if(8+(a.method>>4)>a.wbits){a.mode=Ve,e.msg="invalid win size",a.marker=5;break}a.mode=1;case 1:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,i=255&e.read_byte(e.next_in_index++),((a.method<<8)+i)%31!=0){a.mode=Ve,e.msg="incorrect header check",a.marker=5;break}if(0==(32&i)){a.mode=7;break}a.mode=2;case 2:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,a.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,a.mode=3;case 3:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,a.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,a.mode=4;case 4:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,a.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,a.mode=5;case 5:return 0===e.avail_in?n:(n=t,e.avail_in--,e.total_in++,a.need+=255&e.read_byte(e.next_in_index++),a.mode=6,2);case 6:return a.mode=Ve,e.msg="need dictionary",a.marker=0,we;case 7:if(n=a.blocks.proc(e,n),n==xe){a.mode=Ve,a.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,a.blocks.reset(e,a.was),a.mode=12;case 12:return e.avail_in=0,1;case Ve:return xe;default:return we}},e.inflateSetDictionary=(e,t,n)=>{let i=0,a=n;if(!e||!e.istate||6!=e.istate.mode)return we;const r=e.istate;return a<1<<r.wbits||(a=(1<<r.wbits)-1,i=n-a),r.blocks.set_dictionary(t,i,a),r.mode=7,0},e.inflateSync=e=>{let n,i,a,r,s;if(!e||!e.istate)return we;const l=e.istate;if(l.mode!=Ve&&(l.mode=Ve,l.marker=0),0===(n=e.avail_in))return ge;for(i=e.next_in_index,a=l.marker;0!==n&&4>a;)e.read_byte(i)==Ae[a]?a++:a=0!==e.read_byte(i)?0:4-a,i++,n--;return e.total_in+=i-e.next_in_index,e.next_in_index=i,e.avail_in=n,l.marker=a,4!=a?xe:(r=e.total_in,s=e.total_out,t(e),e.total_in=r,e.total_out=s,l.mode=7,0)},e.inflateSyncPoint=e=>e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():we}function Pe(){}function Ke(e){const t=new Pe,r=e&&e.chunkSize?n.floor(2*e.chunkSize):131072,s=new a(r);let l=!1;t.inflateInit(),t.next_out=s,this.append=(e,n)=>{const o=[];let _,d,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=r,0!==t.avail_in||l||(t.next_in_index=0,l=!0),_=t.inflate(0),l&&_===ge){if(0!==t.avail_in)throw new i("inflating: bad input")}else if(0!==_&&1!==_)throw new i("inflating: "+t.msg);if((l||1===_)&&t.avail_in===e.length)throw new i("inflating: bad input");t.next_out_index&&(t.next_out_index===r?o.push(new a(s)):o.push(s.slice(0,t.next_out_index))),u+=t.next_out_index,n&&t.next_in_index>0&&t.next_in_index!=c&&(n(t.next_in_index),c=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return o.length>1?(d=new a(u),o.forEach((e=>{d.set(e,f),f+=e.length}))):d=o[0]||new a(0),d}},this.flush=()=>{t.inflateEnd()}}Pe.prototype={inflateInit:function(e){const t=this;return t.istate=new De,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(e){const t=this;return t.istate?t.istate.inflate(t,e):we},inflateEnd:function(){const e=this;if(!e.istate)return we;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync:function(){const e=this;return e.istate?e.istate.inflateSync(e):we},inflateSetDictionary:function(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):we},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=pe,self.Inflate=Ke}}();
!function(){"use strict";const{Array:e,Object:t,Math:n,Error:i,Uint8Array:a,Uint16Array:r,Uint32Array:s,Int32Array:l,DataView:o,TextEncoder:_,crypto:d,postMessage:c}=globalThis,f=[];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;f[e]=t}class u{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,i=0|e.length;i>n;n++)t=t>>>8^f[255&(t^e[n])];this.crc=t}get(){return~this.crc}}const h={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],i=h.getPartial(n);return 32===i?e.concat(t):h._shiftRight(t,i,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)+h.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const i=(e=e.slice(0,n.ceil(t/32))).length;return t&=31,i>0&&t&&(e[i-1]=h.partial(t,e[i-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>n.round(e/1099511627776)||32,_shiftRight(e,t,n,i){for(void 0===i&&(i=[]);t>=32;t-=32)i.push(n),n=0;if(0===t)return i.concat(e);for(let a=0;a<e.length;a++)i.push(n|e[a]>>>t),n=e[a]<<32-t;const a=e.length?e[e.length-1]:0,r=h.getPartial(a);return i.push(h.partial(t+r&31,t+r>32?n:i.pop(),1)),i}},b={bytes:{fromBits(e){const t=h.bitLength(e)/8,n=new a(t);let i;for(let a=0;t>a;a++)0==(3&a)&&(i=e[a/4]),n[a]=i>>>24,i<<=8;return n},toBits(e){const t=[];let n,i=0;for(n=0;n<e.length;n++)i=i<<8|e[n],3==(3&n)&&(t.push(i),i=0);return 3&n&&t.push(h.partial(8*(3&n),i)),t}}},p={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};p.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=b.utf8String.toBits(e));const n=t._buffer=h.concat(t._buffer,e),a=t._length,r=t._length=a+h.bitLength(e);if(r>9007199254740991)throw new i("Cannot hash more than 2^53 - 1 bits");const l=new s(n);let o=0;for(let e=t.blockSize+a-(t.blockSize+a&t.blockSize-1);r>=e;e+=t.blockSize)t._block(l.subarray(16*o,16*(o+1))),o+=1;return n.splice(0,16*o),t},finalize:function(){const e=this;let t=e._buffer;const i=e._h;t=h.concat(t,[h.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(n.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),i},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,i)=>e>19?e>39?e>59?e>79?void 0:t^n^i:t&n|t&i|n&i:t^n^i:t&n|~t&i,_S:(e,t)=>t<<e|t>>>32-e,_block:function(t){const i=this,a=i._h,r=e(80);for(let e=0;16>e;e++)r[e]=t[e];let s=a[0],l=a[1],o=a[2],_=a[3],d=a[4];for(let e=0;79>=e;e++){16>e||(r[e]=i._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const t=i._S(5,s)+i._f(e,l,o,_)+d+r[e]+i._key[n.floor(e/20)]|0;d=_,_=o,o=i._S(30,l),l=s,s=t}a[0]=a[0]+s|0,a[1]=a[1]+l|0,a[2]=a[2]+o|0,a[3]=a[3]+_|0,a[4]=a[4]+d|0}};const w="Invalid pasword",x=16,g={name:"PBKDF2"},y=t.assign({hash:{name:"HMAC"}},g),m=t.assign({iterations:1e3,hash:{name:"SHA-1"}},g),k=["deriveBits"],v=[8,12,16],S=[16,24,32],z=10,I=[0,0,0,0],C=b.bytes,B=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],a=t._tables[1],r=e.length;let s,l,o,_=1;if(4!==r&&6!==r&&8!==r)throw new i("invalid aes key size");for(t._key=[l=e.slice(0),o=[]],s=r;4*r+28>s;s++){let e=l[s-1];(s%r==0||8===r&&s%r==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],s%r==0&&(e=e<<8^e>>>24^_<<24,_=_<<1^283*(_>>7))),l[s]=l[s-r]^e}for(let e=0;s;e++,s--){const t=l[3&e?s:s-4];o[e]=4>=s||4>e?t:a[0][n[t>>>24]]^a[1][n[t>>16&255]]^a[2][n[t>>8&255]]^a[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],i=t[4],a=[],r=[];let s,l,o,_;for(let e=0;256>e;e++)r[(a[e]=e<<1^283*(e>>7))^e]=e;for(let d=s=0;!n[d];d^=l||1,s=r[s]||1){let r=s^s<<1^s<<2^s<<3^s<<4;r=r>>8^255&r^99,n[d]=r,i[r]=d,_=a[o=a[l=a[d]]];let c=16843009*_^65537*o^257*l^16843008*d,f=257*a[r]^16843008*r;for(let n=0;4>n;n++)e[n][d]=f=f<<24^f>>>8,t[n][r]=c=c<<24^c>>>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 i("invalid aes block size");const n=this._key[t],a=n.length/4-2,r=[0,0,0,0],s=this._tables[t],l=s[0],o=s[1],_=s[2],d=s[3],c=s[4];let f,u,h,b=e[0]^n[0],p=e[t?3:1]^n[1],w=e[2]^n[2],x=e[t?1:3]^n[3],g=4;for(let e=0;a>e;e++)f=l[b>>>24]^o[p>>16&255]^_[w>>8&255]^d[255&x]^n[g],u=l[p>>>24]^o[w>>16&255]^_[x>>8&255]^d[255&b]^n[g+1],h=l[w>>>24]^o[x>>16&255]^_[b>>8&255]^d[255&p]^n[g+2],x=l[x>>>24]^o[b>>16&255]^_[p>>8&255]^d[255&w]^n[g+3],g+=4,b=f,p=u,w=h;for(let e=0;4>e;e++)r[t?3&-e:e]=c[b>>>24]<<24^c[p>>16&255]<<16^c[w>>8&255]<<8^c[255&x]^n[g++],f=b,b=p,p=w,w=x,x=f;return r}},E=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let i;if(!(i=t.length))return[];const a=h.bitLength(t);for(let a=0;i>a;a+=4){this.incCounter(n);const i=e.encrypt(n);t[a]^=i[0],t[a+1]^=i[1],t[a+2]^=i[2],t[a+3]^=i[3]}return h.clamp(t,a)}},H=class{constructor(e){const t=this,n=t._hash=p.sha1,i=[[],[]],a=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>a&&(e=n.hash(e));for(let t=0;a>t;t++)i[0][t]=909522486^e[t],i[1][t]=1549556828^e[t];t._baseHash[0].update(i[0]),t._baseHash[1].update(i[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}};class V{constructor(e,n,i){t.assign(this,{password:e,signed:n,strength:i-1,pendingInput:new a(0)})}async append(t){const n=this;if(n.password){const a=W(t,0,v[n.strength]+2);await(async(e,t,n)=>{await P(e,n,W(t,0,v[e.strength]));const a=W(t,v[e.strength]),r=e.keys.passwordVerification;if(r[0]!=a[0]||r[1]!=a[1])throw new i(w)})(n,a,n.password),n.password=null,n.aesCtrGladman=new E(new B(n.keys.key),e.from(I)),n.hmac=new H(n.keys.authentication),t=W(t,v[n.strength]+2)}return D(n,t,new a(t.length-z-(t.length-z)%x),0,z,!0)}flush(){const e=this,t=e.pendingInput,n=W(t,0,t.length-z),i=W(t,t.length-z);let r=new a(0);if(n.length){const t=C.toBits(n);e.hmac.update(t);const i=e.aesCtrGladman.update(t);r=C.fromBits(i)}let s=!0;if(e.signed){const t=W(C.fromBits(e.hmac.digest()),0,z);for(let e=0;z>e;e++)t[e]!=i[e]&&(s=!1)}return{valid:s,data:r}}}class A{constructor(e,n){t.assign(this,{password:e,strength:n-1,pendingInput:new a(0)})}async append(t){const n=this;let i=new a(0);n.password&&(i=await(async(e,t)=>{const n=d.getRandomValues(new a(v[e.strength]));return await P(e,t,n),K(n,e.keys.passwordVerification)})(n,n.password),n.password=null,n.aesCtrGladman=new E(new B(n.keys.key),e.from(I)),n.hmac=new H(n.keys.authentication));const r=new a(i.length+t.length-t.length%x);return r.set(i,0),D(n,t,r,i.length,0)}flush(){const e=this;let t=new a(0);if(e.pendingInput.length){const n=e.aesCtrGladman.update(C.toBits(e.pendingInput));e.hmac.update(n),t=C.fromBits(n)}const n=W(C.fromBits(e.hmac.digest()),0,z);return{data:K(t,n),signature:n}}}function D(e,t,n,i,r,s){const l=t.length-r;let o;for(e.pendingInput.length&&(t=K(e.pendingInput,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new a(t)).set(n,0)}return e})(n,l-l%x)),o=0;l-x>=o;o+=x){const a=C.toBits(W(t,o,o+x));s&&e.hmac.update(a);const r=e.aesCtrGladman.update(a);s||e.hmac.update(r),n.set(C.fromBits(r),o+i)}return e.pendingInput=W(t,o),n}async function P(e,n,i){const r=(e=>{if(void 0===_){const t=new a((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new _).encode(e)})(n),s=await d.subtle.importKey("raw",r,y,!1,k),l=await d.subtle.deriveBits(t.assign({salt:i},m),s,8*(2*S[e.strength]+2)),o=new a(l);e.keys={key:C.toBits(W(o,0,S[e.strength])),authentication:C.toBits(W(o,S[e.strength],2*S[e.strength])),passwordVerification:W(o,2*S[e.strength])}}function K(e,t){let n=e;return e.length+t.length&&(n=new a(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function W(e,t,n){return e.subarray(t,n)}class T{constructor(e,n){t.assign(this,{password:e,passwordVerification:n}),R(this,e)}append(e){const t=this;if(t.password){const n=G(t,e.subarray(0,12));if(t.password=null,n[11]!=t.passwordVerification)throw new i(w);e=e.subarray(12)}return G(t,e)}flush(){return{valid:!0,data:new a(0)}}}class U{constructor(e,n){t.assign(this,{password:e,passwordVerification:n}),R(this,e)}append(e){const t=this;let n,i;if(t.password){t.password=null;const r=d.getRandomValues(new a(12));r[11]=t.passwordVerification,n=new a(e.length+r.length),n.set(L(t,r),0),i=12}else n=new a(e.length),i=0;return n.set(L(t,e),i),n}flush(){return{data:new a(0)}}}function G(e,t){const n=new a(t.length);for(let i=0;i<t.length;i++)n[i]=M(e)^t[i],q(e,n[i]);return n}function L(e,t){const n=new a(t.length);for(let i=0;i<t.length;i++)n[i]=M(e)^t[i],q(e,t[i]);return n}function R(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new u(e.keys[0]),e.crcKey2=new u(e.keys[2]);for(let n=0;n<t.length;n++)q(e,t.charCodeAt(n))}function q(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=F(e.keys[1]+j(e.keys[0])),e.keys[1]=F(n.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function M(e){const t=2|e.keys[2];return j(n.imul(t,1^t)>>>8)}function j(e){return 255&e}function F(e){return 4294967295&e}const O="deflate",J="inflate",N="Invalid signature";class Q{constructor(e,{signature:n,password:i,signed:a,compressed:r,zipCrypto:s,passwordVerification:l,encryptionStrength:o},{chunkSize:_}){const d=!!i;t.assign(this,{signature:n,encrypted:d,signed:a,compressed:r,inflate:r&&new e({chunkSize:_}),crc32:a&&new u,zipCrypto:s,decrypt:d&&s?new T(i,l):new V(i,a,o)})}async append(e){const t=this;return t.encrypted&&e.length&&(e=await t.decrypt.append(e)),t.compressed&&e.length&&(e=await t.inflate.append(e)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),e}async flush(){const e=this;let t,n=new a(0);if(e.encrypted){const t=e.decrypt.flush();if(!t.valid)throw new i(N);n=t.data}if((!e.encrypted||e.zipCrypto)&&e.signed){const n=new o(new a(4).buffer);if(t=e.crc32.get(),n.setUint32(0,t),e.signature!=n.getUint32(0,!1))throw new i(N)}return e.compressed&&(n=await e.inflate.append(n)||new a(0),await e.inflate.flush()),{data:n,signature:t}}}class X{constructor(e,{encrypted:n,signed:i,compressed:a,level:r,zipCrypto:s,password:l,passwordVerification:o,encryptionStrength:_},{chunkSize:d}){t.assign(this,{encrypted:n,signed:i,compressed:a,deflate:a&&new e({level:r||5,chunkSize:d}),crc32:i&&new u,zipCrypto:s,encrypt:n&&s?new U(l,o):new A(l,_)})}async append(e){const t=this;let n=e;return t.compressed&&e.length&&(n=await t.deflate.append(e)),t.encrypted&&n.length&&(n=await t.encrypt.append(n)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),n}async flush(){const e=this;let t,n=new a(0);if(e.compressed&&(n=await e.deflate.flush()||new a(0)),e.encrypted){n=await e.encrypt.append(n);const i=e.encrypt.flush();t=i.signature;const r=new a(n.length+i.data.length);r.set(n,0),r.set(i.data,n.length),n=r}return e.encrypted&&!e.zipCrypto||!e.signed||(t=e.crc32.get()),{data:n,signature:t}}}const Y={init(e){e.scripts&&e.scripts.length&&importScripts.apply(void 0,e.scripts);const t=e.options;let n;self.initCodec&&self.initCodec(),t.codecType.startsWith(O)?n=self.Deflate:t.codecType.startsWith(J)&&(n=self.Inflate),Z=((e,t,n)=>t.codecType.startsWith(O)?new X(e,t,n):t.codecType.startsWith(J)?new Q(e,t,n):void 0)(n,t,e.config)},append:async e=>({data:await Z.append(e.data)}),flush:()=>Z.flush()};let Z;addEventListener("message",(async e=>{const t=e.data,n=t.type,i=Y[n];if(i)try{t.data&&(t.data=new a(t.data));const e=await i(t)||{};if(e.type=n,e.data)try{e.data=e.data.buffer,c(e,[e.data])}catch(t){c(e)}else c(e)}catch(e){c({type:n,error:{message:e.message,stack:e.stack}})}}));const $=-2;function ee(t){return te(t.map((([t,n])=>new e(t).fill(n,0,t))))}function te(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?te(n):n)),[])}const ne=[0,1,2,3].concat(...ee([[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 ie(){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=i=>{const a=e.dyn_tree,r=e.stat_desc.static_tree,s=e.stat_desc.elems;let l,o,_,d=-1;for(i.heap_len=0,i.heap_max=573,l=0;s>l;l++)0!==a[2*l]?(i.heap[++i.heap_len]=d=l,i.depth[l]=0):a[2*l+1]=0;for(;2>i.heap_len;)_=i.heap[++i.heap_len]=2>d?++d:0,a[2*_]=1,i.depth[_]=0,i.opt_len--,r&&(i.static_len-=r[2*_+1]);for(e.max_code=d,l=n.floor(i.heap_len/2);l>=1;l--)i.pqdownheap(a,l);_=s;do{l=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(a,1),o=i.heap[1],i.heap[--i.heap_max]=l,i.heap[--i.heap_max]=o,a[2*_]=a[2*l]+a[2*o],i.depth[_]=n.max(i.depth[l],i.depth[o])+1,a[2*l+1]=a[2*o+1]=_,i.heap[1]=_++,i.pqdownheap(a,1)}while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],(t=>{const n=e.dyn_tree,i=e.stat_desc.static_tree,a=e.stat_desc.extra_bits,r=e.stat_desc.extra_base,s=e.stat_desc.max_length;let l,o,_,d,c,f,u=0;for(d=0;15>=d;d++)t.bl_count[d]=0;for(n[2*t.heap[t.heap_max]+1]=0,l=t.heap_max+1;573>l;l++)o=t.heap[l],d=n[2*n[2*o+1]+1]+1,d>s&&(d=s,u++),n[2*o+1]=d,o>e.max_code||(t.bl_count[d]++,c=0,r>o||(c=a[o-r]),f=n[2*o],t.opt_len+=f*(d+c),i&&(t.static_len+=f*(i[2*o+1]+c)));if(0!==u){do{for(d=s-1;0===t.bl_count[d];)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[s]--,u-=2}while(u>0);for(d=s;0!==d;d--)for(o=t.bl_count[d];0!==o;)_=t.heap[--l],_>e.max_code||(n[2*_+1]!=d&&(t.opt_len+=(d-n[2*_+1])*n[2*_],n[2*_+1]=d),o--)}})(i),((e,n,i)=>{const a=[];let r,s,l,o=0;for(r=1;15>=r;r++)a[r]=o=o+i[r-1]<<1;for(s=0;n>=s;s++)l=e[2*s+1],0!==l&&(e[2*s]=t(a[l]++,l))})(a,e.max_code,i.bl_count)}}function ae(e,t,n,i,a){const r=this;r.static_tree=e,r.extra_bits=t,r.extra_base=n,r.elems=i,r.max_length=a}ie._length_code=[0,1,2,3,4,5,6,7].concat(...ee([[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]])),ie.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],ie.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],ie.d_code=e=>256>e?ne[e]:ne[256+(e>>>7)],ie.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],ie.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],ie.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ie.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const re=ee([[144,8],[112,9],[24,7],[8,8]]);ae.static_ltree=te([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,re[t]])));const se=ee([[30,5]]);function le(e,t,n,i,a){const r=this;r.good_length=e,r.max_lazy=t,r.nice_length=n,r.max_chain=i,r.func=a}ae.static_dtree=te([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,se[t]]))),ae.static_l_desc=new ae(ae.static_ltree,ie.extra_lbits,257,286,15),ae.static_d_desc=new ae(ae.static_dtree,ie.extra_dbits,0,30,15),ae.static_bl_desc=new ae(null,ie.extra_blbits,0,19,7);const oe=[new le(0,0,0,0,0),new le(4,4,8,4,1),new le(4,5,16,8,1),new le(4,6,32,32,1),new le(4,4,16,16,2),new le(8,16,32,32,2),new le(8,16,128,128,2),new le(8,32,128,256,2),new le(32,128,258,1024,2),new le(32,258,258,4096,2)],_e=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],de=113,ce=666,fe=262;function ue(e,t,n,i){const a=e[2*t],r=e[2*n];return r>a||a==r&&i[t]<=i[n]}function he(){const e=this;let t,i,s,l,o,_,d,c,f,u,h,b,p,w,x,g,y,m,k,v,S,z,I,C,B,E,H,V,A,D,P,K,W;const T=new ie,U=new ie,G=new ie;let L,R,q,M,j,F;function O(){let t;for(t=0;286>t;t++)P[2*t]=0;for(t=0;30>t;t++)K[2*t]=0;for(t=0;19>t;t++)W[2*t]=0;P[512]=1,e.opt_len=e.static_len=0,R=q=0}function J(e,t){let n,i=-1,a=e[1],r=0,s=7,l=4;0===a&&(s=138,l=3),e[2*(t+1)+1]=65535;for(let o=0;t>=o;o++)n=a,a=e[2*(o+1)+1],++r<s&&n==a||(l>r?W[2*n]+=r:0!==n?(n!=i&&W[2*n]++,W[32]++):r>10?W[36]++:W[34]++,r=0,i=n,0===a?(s=138,l=3):n==a?(s=6,l=3):(s=7,l=4))}function N(t){e.pending_buf[e.pending++]=t}function Q(e){N(255&e),N(e>>>8&255)}function X(e,t){let n;const i=t;F>16-i?(n=e,j|=n<<F&65535,Q(j),j=n>>>16-F,F+=i-16):(j|=e<<F&65535,F+=i)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,i,a=-1,r=e[1],s=0,l=7,o=4;for(0===r&&(l=138,o=3),n=0;t>=n;n++)if(i=r,r=e[2*(n+1)+1],++s>=l||i!=r){if(o>s)do{Y(i,W)}while(0!=--s);else 0!==i?(i!=a&&(Y(i,W),s--),Y(16,W),X(s-3,2)):s>10?(Y(18,W),X(s-11,7)):(Y(17,W),X(s-3,3));s=0,a=i,0===r?(l=138,o=3):i==r?(l=6,o=3):(l=7,o=4)}}function ee(){16==F?(Q(j),j=0,F=0):8>F||(N(255&j),j>>>=8,F-=8)}function te(t,i){let a,r,s;if(e.dist_buf[R]=t,e.lc_buf[R]=255&i,R++,0===t?P[2*i]++:(q++,t--,P[2*(ie._length_code[i]+256+1)]++,K[2*ie.d_code(t)]++),0==(8191&R)&&H>2){for(a=8*R,r=S-y,s=0;30>s;s++)a+=K[2*s]*(5+ie.extra_dbits[s]);if(a>>>=3,q<n.floor(R/2)&&a<n.floor(r/2))return!0}return R==L-1}function ne(t,n){let i,a,r,s,l=0;if(0!==R)do{i=e.dist_buf[l],a=e.lc_buf[l],l++,0===i?Y(a,t):(r=ie._length_code[a],Y(r+256+1,t),s=ie.extra_lbits[r],0!==s&&(a-=ie.base_length[r],X(a,s)),i--,r=ie.d_code(i),Y(r,n),s=ie.extra_dbits[r],0!==s&&(i-=ie.base_dist[r],X(i,s)))}while(R>l);Y(256,t),M=t[513]}function re(){F>8?Q(j):F>0&&N(255&j),j=0,F=0}function se(t,n,i){X(0+(i?1:0),3),((t,n)=>{re(),M=8,Q(n),Q(~n),e.pending_buf.set(c.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function le(n){((t,n,i)=>{let a,r,s=0;H>0?(T.build_tree(e),U.build_tree(e),s=(()=>{let t;for(J(P,T.max_code),J(K,U.max_code),G.build_tree(e),t=18;t>=3&&0===W[2*ie.bl_order[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(),a=e.opt_len+3+7>>>3,r=e.static_len+3+7>>>3,r>a||(a=r)):a=r=n+5,n+4>a||-1==t?r==a?(X(2+(i?1:0),3),ne(ae.static_ltree,ae.static_dtree)):(X(4+(i?1:0),3),((e,t,n)=>{let i;for(X(e-257,5),X(t-1,5),X(n-4,4),i=0;n>i;i++)X(W[2*ie.bl_order[i]+1],3);Z(P,e-1),Z(K,t-1)})(T.max_code+1,U.max_code+1,s+1),ne(P,K)):se(t,n,i),O(),i&&re()})(0>y?-1:y,S-y,n),y=S,t.flush_pending()}function he(){let e,n,i,a;do{if(a=f-I-S,0===a&&0===S&&0===I)a=o;else if(-1==a)a--;else if(S>=o+o-fe){c.set(c.subarray(o,o+o),0),z-=o,S-=o,y-=o,e=p,i=e;do{n=65535&h[--i],h[i]=o>n?0:n-o}while(0!=--e);e=o,i=e;do{n=65535&u[--i],u[i]=o>n?0:n-o}while(0!=--e);a+=o}if(0===t.avail_in)return;e=t.read_buf(c,S+I,a),I+=e,3>I||(b=255&c[S],b=(b<<g^255&c[S+1])&x)}while(fe>I&&0!==t.avail_in)}function be(e){let t,n,i=B,a=S,r=C;const s=S>o-fe?S-(o-fe):0;let l=D;const _=d,f=S+258;let h=c[a+r-1],b=c[a+r];A>C||(i>>=2),l>I&&(l=I);do{if(t=e,c[t+r]==b&&c[t+r-1]==h&&c[t]==c[a]&&c[++t]==c[a+1]){a+=2,t++;do{}while(c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&c[++a]==c[++t]&&f>a);if(n=258-(f-a),a=f-258,n>r){if(z=e,r=n,n>=l)break;h=c[a+r-1],b=c[a+r]}}}while((e=65535&u[e&_])>s&&0!=--i);return r>I?I:r}e.depth=[],e.bl_count=[],e.heap=[],P=[],K=[],W=[],e.pqdownheap=(t,n)=>{const i=e.heap,a=i[n];let r=n<<1;for(;r<=e.heap_len&&(r<e.heap_len&&ue(t,i[r+1],i[r],e.depth)&&r++,!ue(t,a,i[r],e.depth));)i[n]=i[r],n=r,r<<=1;i[n]=a},e.deflateInit=(t,k,z,R,q,J)=>(R||(R=8),q||(q=8),J||(J=0),t.msg=null,-1==k&&(k=6),1>q||q>9||8!=R||9>z||z>15||0>k||k>9||0>J||J>2?$:(t.dstate=e,_=z,o=1<<_,d=o-1,w=q+7,p=1<<w,x=p-1,g=n.floor((w+3-1)/3),c=new a(2*o),u=[],h=[],L=1<<q+6,e.pending_buf=new a(4*L),s=4*L,e.dist_buf=new r(L),e.lc_buf=new a(L),H=k,V=J,(t=>(t.total_in=t.total_out=0,t.msg=null,e.pending=0,e.pending_out=0,i=de,l=0,T.dyn_tree=P,T.stat_desc=ae.static_l_desc,U.dyn_tree=K,U.stat_desc=ae.static_d_desc,G.dyn_tree=W,G.stat_desc=ae.static_bl_desc,j=0,F=0,M=8,O(),(()=>{f=2*o,h[p-1]=0;for(let e=0;p-1>e;e++)h[e]=0;E=oe[H].max_lazy,A=oe[H].good_length,D=oe[H].nice_length,B=oe[H].max_chain,S=0,y=0,I=0,m=C=2,v=0,b=0})(),0))(t))),e.deflateEnd=()=>42!=i&&i!=de&&i!=ce?$:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,h=null,u=null,c=null,e.dstate=null,i==de?-3:0),e.deflateParams=(e,t,n)=>{let i=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?$:(oe[H].func!=oe[t].func&&0!==e.total_in&&(i=e.deflate(1)),H!=t&&(H=t,E=oe[H].max_lazy,A=oe[H].good_length,D=oe[H].nice_length,B=oe[H].max_chain),V=n,i)},e.deflateSetDictionary=(e,t,n)=>{let a,r=n,s=0;if(!t||42!=i)return $;if(3>r)return 0;for(r>o-fe&&(r=o-fe,s=n-r),c.set(t.subarray(s,s+r),0),S=r,y=r,b=255&c[0],b=(b<<g^255&c[1])&x,a=0;r-3>=a;a++)b=(b<<g^255&c[a+2])&x,u[a&d]=h[b],h[b]=a;return 0},e.deflate=(n,a)=>{let r,f,w,B,A;if(a>4||0>a)return $;if(!n.next_out||!n.next_in&&0!==n.avail_in||i==ce&&4!=a)return n.msg=_e[4],$;if(0===n.avail_out)return n.msg=_e[7],-5;var D;if(t=n,B=l,l=a,42==i&&(f=8+(_-8<<4)<<8,w=(H-1&255)>>1,w>3&&(w=3),f|=w<<6,0!==S&&(f|=32),f+=31-f%31,i=de,N((D=f)>>8&255),N(255&D)),0!==e.pending){if(t.flush_pending(),0===t.avail_out)return l=-1,0}else if(0===t.avail_in&&B>=a&&4!=a)return t.msg=_e[7],-5;if(i==ce&&0!==t.avail_in)return n.msg=_e[7],-5;if(0!==t.avail_in||0!==I||0!=a&&i!=ce){switch(A=-1,oe[H].func){case 0:A=(e=>{let n,i=65535;for(i>s-5&&(i=s-5);;){if(1>=I){if(he(),0===I&&0==e)return 0;if(0===I)break}if(S+=I,I=0,n=y+i,(0===S||S>=n)&&(I=S-n,S=n,le(!1),0===t.avail_out))return 0;if(S-y>=o-fe&&(le(!1),0===t.avail_out))return 0}return le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(a);break;case 1:A=(e=>{let n,i=0;for(;;){if(fe>I){if(he(),fe>I&&0==e)return 0;if(0===I)break}if(3>I||(b=(b<<g^255&c[S+2])&x,i=65535&h[b],u[S&d]=h[b],h[b]=S),0===i||(S-i&65535)>o-fe||2!=V&&(m=be(i)),3>m)n=te(0,255&c[S]),I--,S++;else if(n=te(S-z,m-3),I-=m,m>E||3>I)S+=m,m=0,b=255&c[S],b=(b<<g^255&c[S+1])&x;else{m--;do{S++,b=(b<<g^255&c[S+2])&x,i=65535&h[b],u[S&d]=h[b],h[b]=S}while(0!=--m);S++}if(n&&(le(!1),0===t.avail_out))return 0}return le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(a);break;case 2:A=(e=>{let n,i,a=0;for(;;){if(fe>I){if(he(),fe>I&&0==e)return 0;if(0===I)break}if(3>I||(b=(b<<g^255&c[S+2])&x,a=65535&h[b],u[S&d]=h[b],h[b]=S),C=m,k=z,m=2,0!==a&&E>C&&o-fe>=(S-a&65535)&&(2!=V&&(m=be(a)),5>=m&&(1==V||3==m&&S-z>4096)&&(m=2)),3>C||m>C)if(0!==v){if(n=te(0,255&c[S-1]),n&&le(!1),S++,I--,0===t.avail_out)return 0}else v=1,S++,I--;else{i=S+I-3,n=te(S-1-k,C-3),I-=C-1,C-=2;do{++S>i||(b=(b<<g^255&c[S+2])&x,a=65535&h[b],u[S&d]=h[b],h[b]=S)}while(0!=--C);if(v=0,m=2,S++,n&&(le(!1),0===t.avail_out))return 0}}return 0!==v&&(n=te(0,255&c[S-1]),v=0),le(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(a)}if(2!=A&&3!=A||(i=ce),0==A||2==A)return 0===t.avail_out&&(l=-1),0;if(1==A){if(1==a)X(2,3),Y(256,ae.static_ltree),ee(),9>1+M+10-F&&(X(2,3),Y(256,ae.static_ltree),ee()),M=7;else if(se(0,0,!1),3==a)for(r=0;p>r;r++)h[r]=0;if(t.flush_pending(),0===t.avail_out)return l=-1,0}}return 4!=a?0:1}}function be(){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}function pe(e){const t=new be,r=(s=e&&e.chunkSize?e.chunkSize:65536)+5*(n.floor(s/16383)+1);var s;const l=new a(r);let o=e?e.level:-1;void 0===o&&(o=-1),t.deflateInit(o),t.next_out=l,this.append=(e,n)=>{let s,o,_=0,d=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=r,s=t.deflate(0),0!=s)throw new i("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==r?f.push(new a(l)):f.push(l.slice(0,t.next_out_index))),c+=t.next_out_index,n&&t.next_in_index>0&&t.next_in_index!=_&&(n(t.next_in_index),_=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return f.length>1?(o=new a(c),f.forEach((e=>{o.set(e,d),d+=e.length}))):o=f[0]||new a(0),o}},this.flush=()=>{let e,n,s=0,o=0;const _=[];do{if(t.next_out_index=0,t.avail_out=r,e=t.deflate(4),1!=e&&0!=e)throw new i("deflating: "+t.msg);r-t.avail_out>0&&_.push(l.slice(0,t.next_out_index)),o+=t.next_out_index}while(t.avail_in>0||0===t.avail_out);return t.deflateEnd(),n=new a(o),_.forEach((e=>{n.set(e,s),s+=e.length})),n}}be.prototype={deflateInit:function(e,t){const n=this;return n.dstate=new he,t||(t=15),n.dstate.deflateInit(n,e,t)},deflate:function(e){const t=this;return t.dstate?t.dstate.deflate(t,e):$},deflateEnd:function(){const e=this;if(!e.dstate)return $;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams:function(e,t){const n=this;return n.dstate?n.dstate.deflateParams(n,e,t):$},deflateSetDictionary:function(e,t){const n=this;return n.dstate?n.dstate.deflateSetDictionary(n,e,t):$},read_buf:function(e,t,n){const i=this;let a=i.avail_in;return a>n&&(a=n),0===a?0:(i.avail_in-=a,e.set(i.next_in.subarray(i.next_in_index,i.next_in_index+a),t),i.next_in_index+=a,i.total_in+=a,a)},flush_pending:function(){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 we=-2,xe=-3,ge=-5,ye=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],me=[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],ke=[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],ve=[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],Se=[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],ze=[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],Ie=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function Ce(){let e,t,n,i,a,r;function s(e,t,s,l,o,_,d,c,f,u,h){let b,p,w,x,g,y,m,k,v,S,z,I,C,B,E;S=0,g=s;do{n[e[t+S]]++,S++,g--}while(0!==g);if(n[0]==s)return d[0]=-1,c[0]=0,0;for(k=c[0],y=1;15>=y&&0===n[y];y++);for(m=y,y>k&&(k=y),g=15;0!==g&&0===n[g];g--);for(w=g,k>g&&(k=g),c[0]=k,B=1<<y;g>y;y++,B<<=1)if(0>(B-=n[y]))return xe;if(0>(B-=n[g]))return xe;for(n[g]+=B,r[1]=y=0,S=1,C=2;0!=--g;)r[C]=y+=n[S],C++,S++;g=0,S=0;do{0!==(y=e[t+S])&&(h[r[y]++]=g),S++}while(++g<s);for(s=r[w],r[0]=g=0,S=0,x=-1,I=-k,a[0]=0,z=0,E=0;w>=m;m++)for(b=n[m];0!=b--;){for(;m>I+k;){if(x++,I+=k,E=w-I,E=E>k?k:E,(p=1<<(y=m-I))>b+1&&(p-=b+1,C=m,E>y))for(;++y<E&&(p<<=1)>n[++C];)p-=n[C];if(E=1<<y,u[0]+E>1440)return xe;a[x]=z=u[0],u[0]+=E,0!==x?(r[x]=g,i[0]=y,i[1]=k,y=g>>>I-k,i[2]=z-a[x-1]-y,f.set(i,3*(a[x-1]+y))):d[0]=z}for(i[1]=m-I,s>S?h[S]<l?(i[0]=256>h[S]?0:96,i[2]=h[S++]):(i[0]=_[h[S]-l]+16+64,i[2]=o[h[S++]-l]):i[0]=192,p=1<<m-I,y=g>>>I;E>y;y+=p)f.set(i,3*(z+y));for(y=1<<m-1;0!=(g&y);y>>>=1)g^=y;for(g^=y,v=(1<<I)-1;(g&v)!=r[x];)x--,I-=k,v=(1<<I)-1}return 0!==B&&1!=w?ge:0}function o(s){let o;for(e||(e=[],t=[],n=new l(16),i=[],a=new l(15),r=new l(16)),t.length<s&&(t=[]),o=0;s>o;o++)t[o]=0;for(o=0;16>o;o++)n[o]=0;for(o=0;3>o;o++)i[o]=0;a.set(n.subarray(0,15),0),r.set(n.subarray(0,16),0)}this.inflate_trees_bits=(n,i,a,r,l)=>{let _;return o(19),e[0]=0,_=s(n,0,19,19,null,null,a,i,r,e,t),_==xe?l.msg="oversubscribed dynamic bit lengths tree":_!=ge&&0!==i[0]||(l.msg="incomplete dynamic bit lengths tree",_=xe),_},this.inflate_trees_dynamic=(n,i,a,r,l,_,d,c,f)=>{let u;return o(288),e[0]=0,u=s(a,0,n,257,ve,Se,_,r,c,e,t),0!=u||0===r[0]?(u==xe?f.msg="oversubscribed literal/length tree":-4!=u&&(f.msg="incomplete literal/length tree",u=xe),u):(o(288),u=s(a,n,i,0,ze,Ie,d,l,c,e,t),0!=u||0===l[0]&&n>257?(u==xe?f.msg="oversubscribed distance tree":u==ge?(f.msg="incomplete distance tree",u=xe):-4!=u&&(f.msg="empty distance tree with lengths",u=xe),u):0)}}function Be(){const e=this;let t,n,i,a,r=0,s=0,l=0,o=0,_=0,d=0,c=0,f=0,u=0,h=0;function b(e,t,n,i,a,r,s,l){let o,_,d,c,f,u,h,b,p,w,x,g,y,m,k,v;h=l.next_in_index,b=l.avail_in,f=s.bitb,u=s.bitk,p=s.write,w=p<s.read?s.read-p-1:s.end-p,x=ye[e],g=ye[t];do{for(;20>u;)b--,f|=(255&l.read_byte(h++))<<u,u+=8;if(o=f&x,_=n,d=i,v=3*(d+o),0!==(c=_[v]))for(;;){if(f>>=_[v+1],u-=_[v+1],0!=(16&c)){for(c&=15,y=_[v+2]+(f&ye[c]),f>>=c,u-=c;15>u;)b--,f|=(255&l.read_byte(h++))<<u,u+=8;for(o=f&g,_=a,d=r,v=3*(d+o),c=_[v];;){if(f>>=_[v+1],u-=_[v+1],0!=(16&c)){for(c&=15;c>u;)b--,f|=(255&l.read_byte(h++))<<u,u+=8;if(m=_[v+2]+(f&ye[c]),f>>=c,u-=c,w-=y,m>p){k=p-m;do{k+=s.end}while(0>k);if(c=s.end-k,y>c){if(y-=c,p-k>0&&c>p-k)do{s.win[p++]=s.win[k++]}while(0!=--c);else s.win.set(s.win.subarray(k,k+c),p),p+=c,k+=c,c=0;k=0}}else k=p-m,p-k>0&&2>p-k?(s.win[p++]=s.win[k++],s.win[p++]=s.win[k++],y-=2):(s.win.set(s.win.subarray(k,k+2),p),p+=2,k+=2,y-=2);if(p-k>0&&y>p-k)do{s.win[p++]=s.win[k++]}while(0!=--y);else s.win.set(s.win.subarray(k,k+y),p),p+=y,k+=y,y=0;break}if(0!=(64&c))return l.msg="invalid distance code",y=l.avail_in-b,y=y>u>>3?u>>3:y,b+=y,h-=y,u-=y<<3,s.bitb=f,s.bitk=u,l.avail_in=b,l.total_in+=h-l.next_in_index,l.next_in_index=h,s.write=p,xe;o+=_[v+2],o+=f&ye[c],v=3*(d+o),c=_[v]}break}if(0!=(64&c))return 0!=(32&c)?(y=l.avail_in-b,y=y>u>>3?u>>3:y,b+=y,h-=y,u-=y<<3,s.bitb=f,s.bitk=u,l.avail_in=b,l.total_in+=h-l.next_in_index,l.next_in_index=h,s.write=p,1):(l.msg="invalid literal/length code",y=l.avail_in-b,y=y>u>>3?u>>3:y,b+=y,h-=y,u-=y<<3,s.bitb=f,s.bitk=u,l.avail_in=b,l.total_in+=h-l.next_in_index,l.next_in_index=h,s.write=p,xe);if(o+=_[v+2],o+=f&ye[c],v=3*(d+o),0===(c=_[v])){f>>=_[v+1],u-=_[v+1],s.win[p++]=_[v+2],w--;break}}else f>>=_[v+1],u-=_[v+1],s.win[p++]=_[v+2],w--}while(w>=258&&b>=10);return y=l.avail_in-b,y=y>u>>3?u>>3:y,b+=y,h-=y,u-=y<<3,s.bitb=f,s.bitk=u,l.avail_in=b,l.total_in+=h-l.next_in_index,l.next_in_index=h,s.write=p,0}e.init=(e,r,s,l,o,_)=>{t=0,c=e,f=r,i=s,u=l,a=o,h=_,n=null},e.proc=(e,p,w)=>{let x,g,y,m,k,v,S,z=0,I=0,C=0;for(C=p.next_in_index,m=p.avail_in,z=e.bitb,I=e.bitk,k=e.write,v=k<e.read?e.read-k-1:e.end-k;;)switch(t){case 0:if(v>=258&&m>=10&&(e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,w=b(c,f,i,u,a,h,e,p),C=p.next_in_index,m=p.avail_in,z=e.bitb,I=e.bitk,k=e.write,v=k<e.read?e.read-k-1:e.end-k,0!=w)){t=1==w?7:9;break}l=c,n=i,s=u,t=1;case 1:for(x=l;x>I;){if(0===m)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,m--,z|=(255&p.read_byte(C++))<<I,I+=8}if(g=3*(s+(z&ye[x])),z>>>=n[g+1],I-=n[g+1],y=n[g],0===y){o=n[g+2],t=6;break}if(0!=(16&y)){_=15&y,r=n[g+2],t=2;break}if(0==(64&y)){l=y,s=g/3+n[g+2];break}if(0!=(32&y)){t=7;break}return t=9,p.msg="invalid literal/length code",w=xe,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);case 2:for(x=_;x>I;){if(0===m)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,m--,z|=(255&p.read_byte(C++))<<I,I+=8}r+=z&ye[x],z>>=x,I-=x,l=f,n=a,s=h,t=3;case 3:for(x=l;x>I;){if(0===m)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,m--,z|=(255&p.read_byte(C++))<<I,I+=8}if(g=3*(s+(z&ye[x])),z>>=n[g+1],I-=n[g+1],y=n[g],0!=(16&y)){_=15&y,d=n[g+2],t=4;break}if(0==(64&y)){l=y,s=g/3+n[g+2];break}return t=9,p.msg="invalid distance code",w=xe,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);case 4:for(x=_;x>I;){if(0===m)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,m--,z|=(255&p.read_byte(C++))<<I,I+=8}d+=z&ye[x],z>>=x,I-=x,t=5;case 5:for(S=k-d;0>S;)S+=e.end;for(;0!==r;){if(0===v&&(k==e.end&&0!==e.read&&(k=0,v=k<e.read?e.read-k-1:e.end-k),0===v&&(e.write=k,w=e.inflate_flush(p,w),k=e.write,v=k<e.read?e.read-k-1:e.end-k,k==e.end&&0!==e.read&&(k=0,v=k<e.read?e.read-k-1:e.end-k),0===v)))return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);e.win[k++]=e.win[S++],v--,S==e.end&&(S=0),r--}t=0;break;case 6:if(0===v&&(k==e.end&&0!==e.read&&(k=0,v=k<e.read?e.read-k-1:e.end-k),0===v&&(e.write=k,w=e.inflate_flush(p,w),k=e.write,v=k<e.read?e.read-k-1:e.end-k,k==e.end&&0!==e.read&&(k=0,v=k<e.read?e.read-k-1:e.end-k),0===v)))return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);w=0,e.win[k++]=o,v--,t=0;break;case 7:if(I>7&&(I-=8,m++,C--),e.write=k,w=e.inflate_flush(p,w),k=e.write,v=k<e.read?e.read-k-1:e.end-k,e.read!=e.write)return e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);t=8;case 8:return w=1,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);case 9:return w=xe,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w);default:return w=we,e.bitb=z,e.bitk=I,p.avail_in=m,p.total_in+=C-p.next_in_index,p.next_in_index=C,e.write=k,e.inflate_flush(p,w)}},e.free=()=>{}}Ce.inflate_trees_fixed=(e,t,n,i)=>(e[0]=9,t[0]=5,n[0]=me,i[0]=ke,0);const Ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function He(e,t){const n=this;let i,r=0,s=0,o=0,_=0;const d=[0],c=[0],f=new Be;let u=0,h=new l(4320);const b=new Ce;n.bitk=0,n.bitb=0,n.win=new a(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==r&&f.free(e),r=0,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=(e,t)=>{let i,a,r;return a=e.next_out_index,r=n.read,i=(r>n.write?n.end:n.write)-r,i>e.avail_out&&(i=e.avail_out),0!==i&&t==ge&&(t=0),e.avail_out-=i,e.total_out+=i,e.next_out.set(n.win.subarray(r,r+i),a),a+=i,r+=i,r==n.end&&(r=0,n.write==n.end&&(n.write=0),i=n.write-r,i>e.avail_out&&(i=e.avail_out),0!==i&&t==ge&&(t=0),e.avail_out-=i,e.total_out+=i,e.next_out.set(n.win.subarray(r,r+i),a),a+=i,r+=i),e.next_out_index=a,n.read=r,t},n.proc=(e,t)=>{let a,l,p,w,x,g,y,m;for(w=e.next_in_index,x=e.avail_in,l=n.bitb,p=n.bitk,g=n.write,y=g<n.read?n.read-g-1:n.end-g;;){let k,v,S,z,I,C,B,E;switch(r){case 0:for(;3>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}switch(a=7&l,u=1&a,a>>>1){case 0:l>>>=3,p-=3,a=7&p,l>>>=a,p-=a,r=1;break;case 1:k=[],v=[],S=[[]],z=[[]],Ce.inflate_trees_fixed(k,v,S,z),f.init(k[0],v[0],S[0],0,z[0],0),l>>>=3,p-=3,r=6;break;case 2:l>>>=3,p-=3,r=3;break;case 3:return l>>>=3,p-=3,r=9,e.msg="invalid block type",t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t)}break;case 1:for(;32>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}if((~l>>>16&65535)!=(65535&l))return r=9,e.msg="invalid stored block lengths",t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);s=65535&l,l=p=0,r=0!==s?2:0!==u?7:0;break;case 2:if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);if(0===y&&(g==n.end&&0!==n.read&&(g=0,y=g<n.read?n.read-g-1:n.end-g),0===y&&(n.write=g,t=n.inflate_flush(e,t),g=n.write,y=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,y=g<n.read?n.read-g-1:n.end-g),0===y)))return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);if(t=0,a=s,a>x&&(a=x),a>y&&(a=y),n.win.set(e.read_buf(w,a),g),w+=a,x-=a,g+=a,y-=a,0!=(s-=a))break;r=0!==u?7:0;break;case 3:for(;14>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}if(o=a=16383&l,(31&a)>29||(a>>5&31)>29)return r=9,e.msg="too many length or distance symbols",t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);if(a=258+(31&a)+(a>>5&31),!i||i.length<a)i=[];else for(m=0;a>m;m++)i[m]=0;l>>>=14,p-=14,_=0,r=4;case 4:for(;4+(o>>>10)>_;){for(;3>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}i[Ee[_++]]=7&l,l>>>=3,p-=3}for(;19>_;)i[Ee[_++]]=0;if(d[0]=7,a=b.inflate_trees_bits(i,d,c,h,e),0!=a)return(t=a)==xe&&(i=null,r=9),n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);_=0,r=5;case 5:for(;a=o,258+(31&a)+(a>>5&31)>_;){let s,f;for(a=d[0];a>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}if(a=h[3*(c[0]+(l&ye[a]))+1],f=h[3*(c[0]+(l&ye[a]))+2],16>f)l>>>=a,p-=a,i[_++]=f;else{for(m=18==f?7:f-14,s=18==f?11:3;a+m>p;){if(0===x)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);t=0,x--,l|=(255&e.read_byte(w++))<<p,p+=8}if(l>>>=a,p-=a,s+=l&ye[m],l>>>=m,p-=m,m=_,a=o,m+s>258+(31&a)+(a>>5&31)||16==f&&1>m)return i=null,r=9,e.msg="invalid bit length repeat",t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);f=16==f?i[m-1]:0;do{i[m++]=f}while(0!=--s);_=m}}if(c[0]=-1,I=[],C=[],B=[],E=[],I[0]=9,C[0]=6,a=o,a=b.inflate_trees_dynamic(257+(31&a),1+(a>>5&31),i,I,C,B,E,h,e),0!=a)return a==xe&&(i=null,r=9),t=a,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);f.init(I[0],C[0],h,B[0],h,E[0]),r=6;case 6:if(n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,1!=(t=f.proc(n,e,t)))return n.inflate_flush(e,t);if(t=0,f.free(e),w=e.next_in_index,x=e.avail_in,l=n.bitb,p=n.bitk,g=n.write,y=g<n.read?n.read-g-1:n.end-g,0===u){r=0;break}r=7;case 7:if(n.write=g,t=n.inflate_flush(e,t),g=n.write,y=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);r=8;case 8:return t=1,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);case 9:return t=xe,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t);default:return t=we,n.bitb=l,n.bitk=p,e.avail_in=x,e.total_in+=w-e.next_in_index,e.next_in_index=w,n.write=g,n.inflate_flush(e,t)}}},n.free=e=>{n.reset(e,null),n.win=null,h=null},n.set_dictionary=(e,t,i)=>{n.win.set(e.subarray(t,t+i),0),n.read=n.write=i},n.sync_point=()=>1==r?1:0}const Ve=13,Ae=[0,0,255,255];function De(){const e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):we}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=t=>(e.blocks&&e.blocks.free(t),e.blocks=null,0),e.inflateInit=(n,i)=>(n.msg=null,e.blocks=null,8>i||i>15?(e.inflateEnd(n),we):(e.wbits=i,n.istate.blocks=new He(n,1<<i),t(n),0)),e.inflate=(e,t)=>{let n,i;if(!e||!e.istate||!e.next_in)return we;const a=e.istate;for(t=4==t?ge:0,n=ge;;)switch(a.mode){case 0:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,8!=(15&(a.method=e.read_byte(e.next_in_index++)))){a.mode=Ve,e.msg="unknown compression method",a.marker=5;break}if(8+(a.method>>4)>a.wbits){a.mode=Ve,e.msg="invalid win size",a.marker=5;break}a.mode=1;case 1:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,i=255&e.read_byte(e.next_in_index++),((a.method<<8)+i)%31!=0){a.mode=Ve,e.msg="incorrect header check",a.marker=5;break}if(0==(32&i)){a.mode=7;break}a.mode=2;case 2:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,a.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,a.mode=3;case 3:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,a.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,a.mode=4;case 4:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,a.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,a.mode=5;case 5:return 0===e.avail_in?n:(n=t,e.avail_in--,e.total_in++,a.need+=255&e.read_byte(e.next_in_index++),a.mode=6,2);case 6:return a.mode=Ve,e.msg="need dictionary",a.marker=0,we;case 7:if(n=a.blocks.proc(e,n),n==xe){a.mode=Ve,a.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,a.blocks.reset(e,a.was),a.mode=12;case 12:return e.avail_in=0,1;case Ve:return xe;default:return we}},e.inflateSetDictionary=(e,t,n)=>{let i=0,a=n;if(!e||!e.istate||6!=e.istate.mode)return we;const r=e.istate;return a<1<<r.wbits||(a=(1<<r.wbits)-1,i=n-a),r.blocks.set_dictionary(t,i,a),r.mode=7,0},e.inflateSync=e=>{let n,i,a,r,s;if(!e||!e.istate)return we;const l=e.istate;if(l.mode!=Ve&&(l.mode=Ve,l.marker=0),0===(n=e.avail_in))return ge;for(i=e.next_in_index,a=l.marker;0!==n&&4>a;)e.read_byte(i)==Ae[a]?a++:a=0!==e.read_byte(i)?0:4-a,i++,n--;return e.total_in+=i-e.next_in_index,e.next_in_index=i,e.avail_in=n,l.marker=a,4!=a?xe:(r=e.total_in,s=e.total_out,t(e),e.total_in=r,e.total_out=s,l.mode=7,0)},e.inflateSyncPoint=e=>e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():we}function Pe(){}function Ke(e){const t=new Pe,r=e&&e.chunkSize?n.floor(2*e.chunkSize):131072,s=new a(r);let l=!1;t.inflateInit(),t.next_out=s,this.append=(e,n)=>{const o=[];let _,d,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=r,0!==t.avail_in||l||(t.next_in_index=0,l=!0),_=t.inflate(0),l&&_===ge){if(0!==t.avail_in)throw new i("inflating: bad input")}else if(0!==_&&1!==_)throw new i("inflating: "+t.msg);if((l||1===_)&&t.avail_in===e.length)throw new i("inflating: bad input");t.next_out_index&&(t.next_out_index===r?o.push(new a(s)):o.push(s.slice(0,t.next_out_index))),u+=t.next_out_index,n&&t.next_in_index>0&&t.next_in_index!=c&&(n(t.next_in_index),c=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return o.length>1?(d=new a(u),o.forEach((e=>{d.set(e,f),f+=e.length}))):d=o[0]||new a(0),d}},this.flush=()=>{t.inflateEnd()}}Pe.prototype={inflateInit:function(e){const t=this;return t.istate=new De,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(e){const t=this;return t.istate?t.istate.inflate(t,e):we},inflateEnd:function(){const e=this;if(!e.istate)return we;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync:function(){const e=this;return e.istate?e.istate.inflateSync(e):we},inflateSetDictionary:function(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):we},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=pe,self.Inflate=Ke}}();

@@ -1,1 +0,1 @@

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

@@ -1,1 +0,1 @@

((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})})(this,(function(e){"use strict";const{Array:t,Object:n,String:i,BigInt:r,Math:a,Date:s,Map:o,URL:l,Error:c,Uint8Array:d,Uint16Array:u,Uint32Array:f,DataView:h,Blob:_,Promise:w,TextEncoder:p,TextDecoder:b,FileReader:g,document:y,crypto:x,btoa:m}=globalThis,k=-2,v=-3,R=-5,S=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],A=[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],T=[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],U=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],E=[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],F=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function D(){let e,t,n,i,r,a;function s(e,t,s,o,l,c,d,u,f,h,_){let w,p,b,g,y,x,m,k,S,A,T,U,z,E,F;A=0,y=s;do{n[e[t+A]]++,A++,y--}while(0!==y);if(n[0]==s)return d[0]=-1,u[0]=0,0;for(k=u[0],x=1;15>=x&&0===n[x];x++);for(m=x,x>k&&(k=x),y=15;0!==y&&0===n[y];y--);for(b=y,k>y&&(k=y),u[0]=k,E=1<<x;y>x;x++,E<<=1)if(0>(E-=n[x]))return v;if(0>(E-=n[y]))return v;for(n[y]+=E,a[1]=x=0,A=1,z=2;0!=--y;)a[z]=x+=n[A],z++,A++;y=0,A=0;do{0!==(x=e[t+A])&&(_[a[x]++]=y),A++}while(++y<s);for(s=a[b],a[0]=y=0,A=0,g=-1,U=-k,r[0]=0,T=0,F=0;b>=m;m++)for(w=n[m];0!=w--;){for(;m>U+k;){if(g++,U+=k,F=b-U,F=F>k?k:F,(p=1<<(x=m-U))>w+1&&(p-=w+1,z=m,F>x))for(;++x<F&&(p<<=1)>n[++z];)p-=n[z];if(F=1<<x,h[0]+F>1440)return v;r[g]=T=h[0],h[0]+=F,0!==g?(a[g]=y,i[0]=x,i[1]=k,x=y>>>U-k,i[2]=T-r[g-1]-x,f.set(i,3*(r[g-1]+x))):d[0]=T}for(i[1]=m-U,s>A?_[A]<o?(i[0]=256>_[A]?0:96,i[2]=_[A++]):(i[0]=c[_[A]-o]+16+64,i[2]=l[_[A++]-o]):i[0]=192,p=1<<m-U,x=y>>>U;F>x;x+=p)f.set(i,3*(T+x));for(x=1<<m-1;0!=(y&x);x>>>=1)y^=x;for(y^=x,S=(1<<U)-1;(y&S)!=a[g];)g--,U-=k,S=(1<<U)-1}return 0!==E&&1!=b?R:0}function o(s){let o;for(e||(e=[],t=[],n=new Int32Array(16),i=[],r=new Int32Array(15),a=new Int32Array(16)),t.length<s&&(t=[]),o=0;s>o;o++)t[o]=0;for(o=0;16>o;o++)n[o]=0;for(o=0;3>o;o++)i[o]=0;r.set(n.subarray(0,15),0),a.set(n.subarray(0,16),0)}this.inflate_trees_bits=(n,i,r,a,l)=>{let c;return o(19),e[0]=0,c=s(n,0,19,19,null,null,r,i,a,e,t),c==v?l.msg="oversubscribed dynamic bit lengths tree":c!=R&&0!==i[0]||(l.msg="incomplete dynamic bit lengths tree",c=v),c},this.inflate_trees_dynamic=(n,i,r,a,l,c,d,u,f)=>{let h;return o(288),e[0]=0,h=s(r,0,n,257,U,z,c,a,u,e,t),0!=h||0===a[0]?(h==v?f.msg="oversubscribed literal/length tree":-4!=h&&(f.msg="incomplete literal/length tree",h=v),h):(o(288),h=s(r,n,i,0,E,F,d,l,u,e,t),0!=h||0===l[0]&&n>257?(h==v?f.msg="oversubscribed distance tree":h==R?(f.msg="incomplete distance tree",h=v):-4!=h&&(f.msg="empty distance tree with lengths",h=v),h):0)}}function C(){const e=this;let t,n,i,r,a=0,s=0,o=0,l=0,c=0,d=0,u=0,f=0,h=0,_=0;function w(e,t,n,i,r,a,s,o){let l,c,d,u,f,h,_,w,p,b,g,y,x,m,k,R;_=o.next_in_index,w=o.avail_in,f=s.bitb,h=s.bitk,p=s.write,b=p<s.read?s.read-p-1:s.end-p,g=S[e],y=S[t];do{for(;20>h;)w--,f|=(255&o.read_byte(_++))<<h,h+=8;if(l=f&g,c=n,d=i,R=3*(d+l),0!==(u=c[R]))for(;;){if(f>>=c[R+1],h-=c[R+1],0!=(16&u)){for(u&=15,x=c[R+2]+(f&S[u]),f>>=u,h-=u;15>h;)w--,f|=(255&o.read_byte(_++))<<h,h+=8;for(l=f&y,c=r,d=a,R=3*(d+l),u=c[R];;){if(f>>=c[R+1],h-=c[R+1],0!=(16&u)){for(u&=15;u>h;)w--,f|=(255&o.read_byte(_++))<<h,h+=8;if(m=c[R+2]+(f&S[u]),f>>=u,h-=u,b-=x,m>p){k=p-m;do{k+=s.end}while(0>k);if(u=s.end-k,x>u){if(x-=u,p-k>0&&u>p-k)do{s.win[p++]=s.win[k++]}while(0!=--u);else s.win.set(s.win.subarray(k,k+u),p),p+=u,k+=u,u=0;k=0}}else k=p-m,p-k>0&&2>p-k?(s.win[p++]=s.win[k++],s.win[p++]=s.win[k++],x-=2):(s.win.set(s.win.subarray(k,k+2),p),p+=2,k+=2,x-=2);if(p-k>0&&x>p-k)do{s.win[p++]=s.win[k++]}while(0!=--x);else s.win.set(s.win.subarray(k,k+x),p),p+=x,k+=x,x=0;break}if(0!=(64&u))return o.msg="invalid distance code",x=o.avail_in-w,x=x>h>>3?h>>3:x,w+=x,_-=x,h-=x<<3,s.bitb=f,s.bitk=h,o.avail_in=w,o.total_in+=_-o.next_in_index,o.next_in_index=_,s.write=p,v;l+=c[R+2],l+=f&S[u],R=3*(d+l),u=c[R]}break}if(0!=(64&u))return 0!=(32&u)?(x=o.avail_in-w,x=x>h>>3?h>>3:x,w+=x,_-=x,h-=x<<3,s.bitb=f,s.bitk=h,o.avail_in=w,o.total_in+=_-o.next_in_index,o.next_in_index=_,s.write=p,1):(o.msg="invalid literal/length code",x=o.avail_in-w,x=x>h>>3?h>>3:x,w+=x,_-=x,h-=x<<3,s.bitb=f,s.bitk=h,o.avail_in=w,o.total_in+=_-o.next_in_index,o.next_in_index=_,s.write=p,v);if(l+=c[R+2],l+=f&S[u],R=3*(d+l),0===(u=c[R])){f>>=c[R+1],h-=c[R+1],s.win[p++]=c[R+2],b--;break}}else f>>=c[R+1],h-=c[R+1],s.win[p++]=c[R+2],b--}while(b>=258&&w>=10);return x=o.avail_in-w,x=x>h>>3?h>>3:x,w+=x,_-=x,h-=x<<3,s.bitb=f,s.bitk=h,o.avail_in=w,o.total_in+=_-o.next_in_index,o.next_in_index=_,s.write=p,0}e.init=(e,a,s,o,l,c)=>{t=0,u=e,f=a,i=s,h=o,r=l,_=c,n=null},e.proc=(e,p,b)=>{let g,y,x,m,R,A,T,U=0,z=0,E=0;for(E=p.next_in_index,m=p.avail_in,U=e.bitb,z=e.bitk,R=e.write,A=R<e.read?e.read-R-1:e.end-R;;)switch(t){case 0:if(A>=258&&m>=10&&(e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,b=w(u,f,i,h,r,_,e,p),E=p.next_in_index,m=p.avail_in,U=e.bitb,z=e.bitk,R=e.write,A=R<e.read?e.read-R-1:e.end-R,0!=b)){t=1==b?7:9;break}o=u,n=i,s=h,t=1;case 1:for(g=o;g>z;){if(0===m)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,m--,U|=(255&p.read_byte(E++))<<z,z+=8}if(y=3*(s+(U&S[g])),U>>>=n[y+1],z-=n[y+1],x=n[y],0===x){l=n[y+2],t=6;break}if(0!=(16&x)){c=15&x,a=n[y+2],t=2;break}if(0==(64&x)){o=x,s=y/3+n[y+2];break}if(0!=(32&x)){t=7;break}return t=9,p.msg="invalid literal/length code",b=v,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);case 2:for(g=c;g>z;){if(0===m)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,m--,U|=(255&p.read_byte(E++))<<z,z+=8}a+=U&S[g],U>>=g,z-=g,o=f,n=r,s=_,t=3;case 3:for(g=o;g>z;){if(0===m)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,m--,U|=(255&p.read_byte(E++))<<z,z+=8}if(y=3*(s+(U&S[g])),U>>=n[y+1],z-=n[y+1],x=n[y],0!=(16&x)){c=15&x,d=n[y+2],t=4;break}if(0==(64&x)){o=x,s=y/3+n[y+2];break}return t=9,p.msg="invalid distance code",b=v,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);case 4:for(g=c;g>z;){if(0===m)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,m--,U|=(255&p.read_byte(E++))<<z,z+=8}d+=U&S[g],U>>=g,z-=g,t=5;case 5:for(T=R-d;0>T;)T+=e.end;for(;0!==a;){if(0===A&&(R==e.end&&0!==e.read&&(R=0,A=R<e.read?e.read-R-1:e.end-R),0===A&&(e.write=R,b=e.inflate_flush(p,b),R=e.write,A=R<e.read?e.read-R-1:e.end-R,R==e.end&&0!==e.read&&(R=0,A=R<e.read?e.read-R-1:e.end-R),0===A)))return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);e.win[R++]=e.win[T++],A--,T==e.end&&(T=0),a--}t=0;break;case 6:if(0===A&&(R==e.end&&0!==e.read&&(R=0,A=R<e.read?e.read-R-1:e.end-R),0===A&&(e.write=R,b=e.inflate_flush(p,b),R=e.write,A=R<e.read?e.read-R-1:e.end-R,R==e.end&&0!==e.read&&(R=0,A=R<e.read?e.read-R-1:e.end-R),0===A)))return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,e.win[R++]=l,A--,t=0;break;case 7:if(z>7&&(z-=8,m++,E--),e.write=R,b=e.inflate_flush(p,b),R=e.write,A=R<e.read?e.read-R-1:e.end-R,e.read!=e.write)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);t=8;case 8:return b=1,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);case 9:return b=v,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);default:return b=k,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b)}},e.free=()=>{}}D.inflate_trees_fixed=(e,t,n,i)=>(e[0]=9,t[0]=5,n[0]=A,i[0]=T,0);const W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function I(e,t){const n=this;let i,r=0,a=0,s=0,o=0;const l=[0],c=[0],u=new C;let f=0,h=new Int32Array(4320);const _=new D;n.bitk=0,n.bitb=0,n.win=new d(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==r&&u.free(e),r=0,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=(e,t)=>{let i,r,a;return r=e.next_out_index,a=n.read,i=(a>n.write?n.end:n.write)-a,i>e.avail_out&&(i=e.avail_out),0!==i&&t==R&&(t=0),e.avail_out-=i,e.total_out+=i,e.next_out.set(n.win.subarray(a,a+i),r),r+=i,a+=i,a==n.end&&(a=0,n.write==n.end&&(n.write=0),i=n.write-a,i>e.avail_out&&(i=e.avail_out),0!==i&&t==R&&(t=0),e.avail_out-=i,e.total_out+=i,e.next_out.set(n.win.subarray(a,a+i),r),r+=i,a+=i),e.next_out_index=r,n.read=a,t},n.proc=(e,t)=>{let d,w,p,b,g,y,x,m;for(b=e.next_in_index,g=e.avail_in,w=n.bitb,p=n.bitk,y=n.write,x=y<n.read?n.read-y-1:n.end-y;;){let R,A,T,U,z,E,F,C;switch(r){case 0:for(;3>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}switch(d=7&w,f=1&d,d>>>1){case 0:w>>>=3,p-=3,d=7&p,w>>>=d,p-=d,r=1;break;case 1:R=[],A=[],T=[[]],U=[[]],D.inflate_trees_fixed(R,A,T,U),u.init(R[0],A[0],T[0],0,U[0],0),w>>>=3,p-=3,r=6;break;case 2:w>>>=3,p-=3,r=3;break;case 3:return w>>>=3,p-=3,r=9,e.msg="invalid block type",t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t)}break;case 1:for(;32>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}if((~w>>>16&65535)!=(65535&w))return r=9,e.msg="invalid stored block lengths",t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);a=65535&w,w=p=0,r=0!==a?2:0!==f?7:0;break;case 2:if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);if(0===x&&(y==n.end&&0!==n.read&&(y=0,x=y<n.read?n.read-y-1:n.end-y),0===x&&(n.write=y,t=n.inflate_flush(e,t),y=n.write,x=y<n.read?n.read-y-1:n.end-y,y==n.end&&0!==n.read&&(y=0,x=y<n.read?n.read-y-1:n.end-y),0===x)))return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);if(t=0,d=a,d>g&&(d=g),d>x&&(d=x),n.win.set(e.read_buf(b,d),y),b+=d,g-=d,y+=d,x-=d,0!=(a-=d))break;r=0!==f?7:0;break;case 3:for(;14>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}if(s=d=16383&w,(31&d)>29||(d>>5&31)>29)return r=9,e.msg="too many length or distance symbols",t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);if(d=258+(31&d)+(d>>5&31),!i||i.length<d)i=[];else for(m=0;d>m;m++)i[m]=0;w>>>=14,p-=14,o=0,r=4;case 4:for(;4+(s>>>10)>o;){for(;3>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}i[W[o++]]=7&w,w>>>=3,p-=3}for(;19>o;)i[W[o++]]=0;if(l[0]=7,d=_.inflate_trees_bits(i,l,c,h,e),0!=d)return(t=d)==v&&(i=null,r=9),n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);o=0,r=5;case 5:for(;d=s,258+(31&d)+(d>>5&31)>o;){let a,u;for(d=l[0];d>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}if(d=h[3*(c[0]+(w&S[d]))+1],u=h[3*(c[0]+(w&S[d]))+2],16>u)w>>>=d,p-=d,i[o++]=u;else{for(m=18==u?7:u-14,a=18==u?11:3;d+m>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}if(w>>>=d,p-=d,a+=w&S[m],w>>>=m,p-=m,m=o,d=s,m+a>258+(31&d)+(d>>5&31)||16==u&&1>m)return i=null,r=9,e.msg="invalid bit length repeat",t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);u=16==u?i[m-1]:0;do{i[m++]=u}while(0!=--a);o=m}}if(c[0]=-1,z=[],E=[],F=[],C=[],z[0]=9,E[0]=6,d=s,d=_.inflate_trees_dynamic(257+(31&d),1+(d>>5&31),i,z,E,F,C,h,e),0!=d)return d==v&&(i=null,r=9),t=d,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);u.init(z[0],E[0],h,F[0],h,C[0]),r=6;case 6:if(n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,1!=(t=u.proc(n,e,t)))return n.inflate_flush(e,t);if(t=0,u.free(e),b=e.next_in_index,g=e.avail_in,w=n.bitb,p=n.bitk,y=n.write,x=y<n.read?n.read-y-1:n.end-y,0===f){r=0;break}r=7;case 7:if(n.write=y,t=n.inflate_flush(e,t),y=n.write,x=y<n.read?n.read-y-1:n.end-y,n.read!=n.write)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);r=8;case 8:return t=1,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);case 9:return t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);default:return t=k,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t)}}},n.free=e=>{n.reset(e,null),n.win=null,h=null},n.set_dictionary=(e,t,i)=>{n.win.set(e.subarray(t,t+i),0),n.read=n.write=i},n.sync_point=()=>1==r?1:0}const L=13,B=[0,0,255,255];function H(){const e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):k}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=t=>(e.blocks&&e.blocks.free(t),e.blocks=null,0),e.inflateInit=(n,i)=>(n.msg=null,e.blocks=null,8>i||i>15?(e.inflateEnd(n),k):(e.wbits=i,n.istate.blocks=new I(n,1<<i),t(n),0)),e.inflate=(e,t)=>{let n,i;if(!e||!e.istate||!e.next_in)return k;const r=e.istate;for(t=4==t?R:0,n=R;;)switch(r.mode){case 0:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,8!=(15&(r.method=e.read_byte(e.next_in_index++)))){r.mode=L,e.msg="unknown compression method",r.marker=5;break}if(8+(r.method>>4)>r.wbits){r.mode=L,e.msg="invalid win size",r.marker=5;break}r.mode=1;case 1:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,i=255&e.read_byte(e.next_in_index++),((r.method<<8)+i)%31!=0){r.mode=L,e.msg="incorrect header check",r.marker=5;break}if(0==(32&i)){r.mode=7;break}r.mode=2;case 2:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,r.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,r.mode=3;case 3:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,r.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,r.mode=4;case 4:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,r.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,r.mode=5;case 5:return 0===e.avail_in?n:(n=t,e.avail_in--,e.total_in++,r.need+=255&e.read_byte(e.next_in_index++),r.mode=6,2);case 6:return r.mode=L,e.msg="need dictionary",r.marker=0,k;case 7:if(n=r.blocks.proc(e,n),n==v){r.mode=L,r.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,r.blocks.reset(e,r.was),r.mode=12;case 12:return e.avail_in=0,1;case L:return v;default:return k}},e.inflateSetDictionary=(e,t,n)=>{let i=0,r=n;if(!e||!e.istate||6!=e.istate.mode)return k;const a=e.istate;return r<1<<a.wbits||(r=(1<<a.wbits)-1,i=n-r),a.blocks.set_dictionary(t,i,r),a.mode=7,0},e.inflateSync=e=>{let n,i,r,a,s;if(!e||!e.istate)return k;const o=e.istate;if(o.mode!=L&&(o.mode=L,o.marker=0),0===(n=e.avail_in))return R;for(i=e.next_in_index,r=o.marker;0!==n&&4>r;)e.read_byte(i)==B[r]?r++:r=0!==e.read_byte(i)?0:4-r,i++,n--;return e.total_in+=i-e.next_in_index,e.next_in_index=i,e.avail_in=n,o.marker=r,4!=r?v:(a=e.total_in,s=e.total_out,t(e),e.total_in=a,e.total_out=s,o.mode=7,0)},e.inflateSyncPoint=e=>e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():k}function M(){}M.prototype={inflateInit:function(e){const t=this;return t.istate=new H,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(e){const t=this;return t.istate?t.istate.inflate(t,e):k},inflateEnd:function(){const e=this;if(!e.istate)return k;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync:function(){const e=this;return e.istate?e.istate.inflateSync(e):k},inflateSetDictionary:function(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):k},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}};const O={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},N=n.assign({},O);function P(e){if(void 0!==e.baseURL&&(N.baseURL=e.baseURL),void 0!==e.chunkSize&&(N.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(N.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(N.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useWebWorkers&&(N.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(N.Deflate=e.Deflate),void 0!==e.Inflate&&(N.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!t.isArray(e.workerScripts.deflate))throw new c("workerScripts.deflate must be an array");N.workerScripts||(N.workerScripts={}),N.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!t.isArray(e.workerScripts.inflate))throw new c("workerScripts.inflate must be an array");N.workerScripts||(N.workerScripts={}),N.workerScripts.inflate=e.workerScripts.inflate}}}const q=[];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;q[e]=t}class V{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,i=0|e.length;i>n;n++)t=t>>>8^q[255&(t^e[n])];this.crc=t}get(){return~this.crc}}const Z={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],i=Z.getPartial(n);return 32===i?e.concat(t):Z._shiftRight(t,i,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)+Z.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]=Z.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,i){for(void 0===i&&(i=[]);t>=32;t-=32)i.push(n),n=0;if(0===t)return i.concat(e);for(let r=0;r<e.length;r++)i.push(n|e[r]>>>t),n=e[r]<<32-t;const r=e.length?e[e.length-1]:0,a=Z.getPartial(r);return i.push(Z.partial(t+a&31,t+a>32?n:i.pop(),1)),i}},G={bytes:{fromBits(e){const t=Z.bitLength(e)/8,n=new d(t);let i;for(let r=0;t>r;r++)0==(3&r)&&(i=e[r/4]),n[r]=i>>>24,i<<=8;return n},toBits(e){const t=[];let n,i=0;for(n=0;n<e.length;n++)i=i<<8|e[n],3==(3&n)&&(t.push(i),i=0);return 3&n&&t.push(Z.partial(8*(3&n),i)),t}}},K={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};K.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=G.utf8String.toBits(e));const n=t._buffer=Z.concat(t._buffer,e),i=t._length,r=t._length=i+Z.bitLength(e);if(r>9007199254740991)throw new c("Cannot hash more than 2^53 - 1 bits");const a=new f(n);let s=0;for(let e=t.blockSize+i-(t.blockSize+i&t.blockSize-1);r>=e;e+=t.blockSize)t._block(a.subarray(16*s,16*(s+1))),s+=1;return n.splice(0,16*s),t},finalize:function(){const e=this;let t=e._buffer;const n=e._h;t=Z.concat(t,[Z.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(a.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,i)=>e>19?e>39?e>59?e>79?void 0:t^n^i:t&n|t&i|n&i:t^n^i:t&n|~t&i,_S:(e,t)=>t<<e|t>>>32-e,_block:function(e){const n=this,i=n._h,r=t(80);for(let t=0;16>t;t++)r[t]=e[t];let s=i[0],o=i[1],l=i[2],c=i[3],d=i[4];for(let e=0;79>=e;e++){16>e||(r[e]=n._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const t=n._S(5,s)+n._f(e,o,l,c)+d+r[e]+n._key[a.floor(e/20)]|0;d=c,c=l,l=n._S(30,o),o=s,s=t}i[0]=i[0]+s|0,i[1]=i[1]+o|0,i[2]=i[2]+l|0,i[3]=i[3]+c|0,i[4]=i[4]+d|0}};const j="Invalid pasword",X=16,Y={name:"PBKDF2"},J=n.assign({hash:{name:"HMAC"}},Y),Q=n.assign({iterations:1e3,hash:{name:"SHA-1"}},Y),$=["deriveBits"],ee=[8,12,16],te=[16,24,32],ne=10,ie=[0,0,0,0],re=G.bytes,ae=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],i=t._tables[1],r=e.length;let a,s,o,l=1;if(4!==r&&6!==r&&8!==r)throw new c("invalid aes key size");for(t._key=[s=e.slice(0),o=[]],a=r;4*r+28>a;a++){let e=s[a-1];(a%r==0||8===r&&a%r==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],a%r==0&&(e=e<<8^e>>>24^l<<24,l=l<<1^283*(l>>7))),s[a]=s[a-r]^e}for(let e=0;a;e++,a--){const t=s[3&e?a:a-4];o[e]=4>=a||4>e?t:i[0][n[t>>>24]]^i[1][n[t>>16&255]]^i[2][n[t>>8&255]]^i[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],i=t[4],r=[],a=[];let s,o,l,c;for(let e=0;256>e;e++)a[(r[e]=e<<1^283*(e>>7))^e]=e;for(let d=s=0;!n[d];d^=o||1,s=a[s]||1){let a=s^s<<1^s<<2^s<<3^s<<4;a=a>>8^255&a^99,n[d]=a,i[a]=d,c=r[l=r[o=r[d]]];let u=16843009*c^65537*l^257*o^16843008*d,f=257*r[a]^16843008*a;for(let n=0;4>n;n++)e[n][d]=f=f<<24^f>>>8,t[n][a]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new c("invalid aes block size");const n=this._key[t],i=n.length/4-2,r=[0,0,0,0],a=this._tables[t],s=a[0],o=a[1],l=a[2],d=a[3],u=a[4];let f,h,_,w=e[0]^n[0],p=e[t?3:1]^n[1],b=e[2]^n[2],g=e[t?1:3]^n[3],y=4;for(let e=0;i>e;e++)f=s[w>>>24]^o[p>>16&255]^l[b>>8&255]^d[255&g]^n[y],h=s[p>>>24]^o[b>>16&255]^l[g>>8&255]^d[255&w]^n[y+1],_=s[b>>>24]^o[g>>16&255]^l[w>>8&255]^d[255&p]^n[y+2],g=s[g>>>24]^o[w>>16&255]^l[p>>8&255]^d[255&b]^n[y+3],y+=4,w=f,p=h,b=_;for(let e=0;4>e;e++)r[t?3&-e:e]=u[w>>>24]<<24^u[p>>16&255]<<16^u[b>>8&255]<<8^u[255&g]^n[y++],f=w,w=p,p=b,b=g,g=f;return r}},se=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let i;if(!(i=t.length))return[];const r=Z.bitLength(t);for(let r=0;i>r;r+=4){this.incCounter(n);const i=e.encrypt(n);t[r]^=i[0],t[r+1]^=i[1],t[r+2]^=i[2],t[r+3]^=i[3]}return Z.clamp(t,r)}},oe=class{constructor(e){const t=this,n=t._hash=K.sha1,i=[[],[]],r=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>r&&(e=n.hash(e));for(let t=0;r>t;t++)i[0][t]=909522486^e[t],i[1][t]=1549556828^e[t];t._baseHash[0].update(i[0]),t._baseHash[1].update(i[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}};class le{constructor(e,t,i){n.assign(this,{password:e,signed:t,strength:i-1,pendingInput:new d(0)})}async append(e){const n=this;if(n.password){const i=he(e,0,ee[n.strength]+2);await(async(e,t,n)=>{await ue(e,n,he(t,0,ee[e.strength]));const i=he(t,ee[e.strength]),r=e.keys.passwordVerification;if(r[0]!=i[0]||r[1]!=i[1])throw new c(j)})(n,i,n.password),n.password=null,n.aesCtrGladman=new se(new ae(n.keys.key),t.from(ie)),n.hmac=new oe(n.keys.authentication),e=he(e,ee[n.strength]+2)}return de(n,e,new d(e.length-ne-(e.length-ne)%X),0,ne,!0)}flush(){const e=this,t=e.pendingInput,n=he(t,0,t.length-ne),i=he(t,t.length-ne);let r=new d(0);if(n.length){const t=re.toBits(n);e.hmac.update(t);const i=e.aesCtrGladman.update(t);r=re.fromBits(i)}let a=!0;if(e.signed){const t=he(re.fromBits(e.hmac.digest()),0,ne);for(let e=0;ne>e;e++)t[e]!=i[e]&&(a=!1)}return{valid:a,data:r}}}class ce{constructor(e,t){n.assign(this,{password:e,strength:t-1,pendingInput:new d(0)})}async append(e){const n=this;let i=new d(0);n.password&&(i=await(async(e,t)=>{const n=x.getRandomValues(new d(ee[e.strength]));return await ue(e,t,n),fe(n,e.keys.passwordVerification)})(n,n.password),n.password=null,n.aesCtrGladman=new se(new ae(n.keys.key),t.from(ie)),n.hmac=new oe(n.keys.authentication));const r=new d(i.length+e.length-e.length%X);return r.set(i,0),de(n,e,r,i.length,0)}flush(){const e=this;let t=new d(0);if(e.pendingInput.length){const n=e.aesCtrGladman.update(re.toBits(e.pendingInput));e.hmac.update(n),t=re.fromBits(n)}const n=he(re.fromBits(e.hmac.digest()),0,ne);return{data:fe(t,n),signature:n}}}function de(e,t,n,i,r,a){const s=t.length-r;let o;for(e.pendingInput.length&&(t=fe(e.pendingInput,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new d(t)).set(n,0)}return e})(n,s-s%X)),o=0;s-X>=o;o+=X){const r=re.toBits(he(t,o,o+X));a&&e.hmac.update(r);const s=e.aesCtrGladman.update(r);a||e.hmac.update(s),n.set(re.fromBits(s),o+i)}return e.pendingInput=he(t,o),n}async function ue(e,t,i){const r=(e=>{if(void 0===p){const t=new d((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new p).encode(e)})(t),a=await x.subtle.importKey("raw",r,J,!1,$),s=await x.subtle.deriveBits(n.assign({salt:i},Q),a,8*(2*te[e.strength]+2)),o=new d(s);e.keys={key:re.toBits(he(o,0,te[e.strength])),authentication:re.toBits(he(o,te[e.strength],2*te[e.strength])),passwordVerification:he(o,2*te[e.strength])}}function fe(e,t){let n=e;return e.length+t.length&&(n=new d(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function he(e,t,n){return e.subarray(t,n)}class _e{constructor(e,t){n.assign(this,{password:e,passwordVerification:t}),ge(this,e)}append(e){const t=this;if(t.password){const n=pe(t,e.subarray(0,12));if(t.password=null,n[11]!=t.passwordVerification)throw new c(j);e=e.subarray(12)}return pe(t,e)}flush(){return{valid:!0,data:new d(0)}}}class we{constructor(e,t){n.assign(this,{password:e,passwordVerification:t}),ge(this,e)}append(e){const t=this;let n,i;if(t.password){t.password=null;const r=x.getRandomValues(new d(12));r[11]=t.passwordVerification,n=new d(e.length+r.length),n.set(be(t,r),0),i=12}else n=new d(e.length),i=0;return n.set(be(t,e),i),n}flush(){return{data:new d(0)}}}function pe(e,t){const n=new d(t.length);for(let i=0;i<t.length;i++)n[i]=xe(e)^t[i],ye(e,n[i]);return n}function be(e,t){const n=new d(t.length);for(let i=0;i<t.length;i++)n[i]=xe(e)^t[i],ye(e,t[i]);return n}function ge(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new V(e.keys[0]),e.crcKey2=new V(e.keys[2]);for(let n=0;n<t.length;n++)ye(e,t.charCodeAt(n))}function ye(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=ke(e.keys[1]+me(e.keys[0])),e.keys[1]=ke(a.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function xe(e){const t=2|e.keys[2];return me(a.imul(t,1^t)>>>8)}function me(e){return 255&e}function ke(e){return 4294967295&e}const ve="inflate",Re="Invalid signature";class Se{constructor(e,{signature:t,password:i,signed:r,compressed:a,zipCrypto:s,passwordVerification:o,encryptionStrength:l},{chunkSize:c}){const d=!!i;n.assign(this,{signature:t,encrypted:d,signed:r,compressed:a,inflate:a&&new e({chunkSize:c}),crc32:r&&new V,zipCrypto:s,decrypt:d&&s?new _e(i,o):new le(i,r,l)})}async append(e){const t=this;return t.encrypted&&e.length&&(e=await t.decrypt.append(e)),t.compressed&&e.length&&(e=await t.inflate.append(e)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),e}async flush(){const e=this;let t,n=new d(0);if(e.encrypted){const t=e.decrypt.flush();if(!t.valid)throw new c(Re);n=t.data}if((!e.encrypted||e.zipCrypto)&&e.signed){const n=new h(new d(4).buffer);if(t=e.crc32.get(),n.setUint32(0,t),e.signature!=n.getUint32(0,!1))throw new c(Re)}return e.compressed&&(n=await e.inflate.append(n)||new d(0),await e.inflate.flush()),{data:n,signature:t}}}class Ae{constructor(e,{encrypted:t,signed:i,compressed:r,level:a,zipCrypto:s,password:o,passwordVerification:l,encryptionStrength:c},{chunkSize:d}){n.assign(this,{encrypted:t,signed:i,compressed:r,deflate:r&&new e({level:a||5,chunkSize:d}),crc32:i&&new V,zipCrypto:s,encrypt:t&&s?new we(o,l):new ce(o,c)})}async append(e){const t=this;let n=e;return t.compressed&&e.length&&(n=await t.deflate.append(e)),t.encrypted&&n.length&&(n=await t.encrypt.append(n)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),n}async flush(){const e=this;let t,n=new d(0);if(e.compressed&&(n=await e.deflate.flush()||new d(0)),e.encrypted){n=await e.encrypt.append(n);const i=e.encrypt.flush();t=i.signature;const r=new d(n.length+i.data.length);r.set(n,0),r.set(i.data,n.length),n=r}return e.encrypted&&!e.zipCrypto||!e.signed||(t=e.crc32.get()),{data:n,signature:t}}}const Te="init",Ue="append",ze="flush";let Ee=!0;var Fe=(e,t,i,r,a,s,o)=>(n.assign(e,{busy:!0,codecConstructor:t,options:n.assign({},i),scripts:o,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,a(e)}}),s?((e,t)=>{let n;const i={type:"module"};if(!e.interface){if(Ee)try{e.worker=r({},t.baseURL)}catch(n){Ee=!1,e.worker=r(i,t.baseURL)}else e.worker=r(i,t.baseURL);e.worker.addEventListener("message",(t=>{const i=t.data;if(n){const t=i.error,r=i.type;if(t){const i=new c(t.message);i.stack=t.stack,n.reject(i),n=null,e.onTaskFinished()}else if(r==Te||r==ze||r==Ue){const t=i.data;r==ze?(n.resolve({data:new d(t),signature:i.signature}),n=null,e.onTaskFinished()):n.resolve(t&&new d(t))}}}),!1),e.interface={append:e=>a({type:Ue,data:e}),flush:()=>a({type:ze}),abort(){e.onTaskFinished()}}}return e.interface;function r(t,n){let i,r;i=e.scripts[0],"function"==typeof i&&(i=i());try{r=new l(i,n)}catch(e){r=i}return new Worker(r,t)}async function a(i){if(!n){const n=e.options,i=e.scripts.slice(1);await s({scripts:i,type:Te,options:n,config:{chunkSize:t.chunkSize}})}return s(i)}function s(t){const i=e.worker,r=new w(((e,t)=>n={resolve:e,reject:t}));try{if(t.data)try{t.data=t.data.buffer,i.postMessage(t,[t.data])}catch(e){i.postMessage(t)}else i.postMessage(t)}catch(t){n.reject(t),n=null,e.onTaskFinished()}return r}})(e,r):((e,t)=>{const n=((e,t,n)=>t.codecType.startsWith("deflate")?new Ae(e,t,n):t.codecType.startsWith(ve)?new Se(e,t,n):void 0)(e.codecConstructor,e.options,t);return{async append(t){try{return await n.append(t)}catch(t){throw e.onTaskFinished(),t}},async flush(){try{return await n.flush()}finally{e.onTaskFinished()}},abort(){e.onTaskFinished()}}})(e,r));let De=[],Ce=[];function We(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const Ie="Abort error";function Le(e,t){if(e&&e.aborted)throw t.abort(),new c(Ie)}async function Be(e,t){return t.length&&await e.writeUint8Array(t),t.length}const He="HTTP error ",Me="HTTP Range not supported",Oe="text/plain",Ne="GET";class Pe{constructor(){this.size=0}init(){this.initialized=!0}}class qe extends Pe{}class Ve extends Pe{writeUint8Array(e){this.size+=e.length}}class Ze extends qe{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){if(this.blob.arrayBuffer)return new d(await this.blob.slice(e,e+t).arrayBuffer());{const n=new g;return new w(((i,r)=>{n.onload=e=>i(new d(e.target.result)),n.onerror=()=>r(n.error),n.readAsArrayBuffer(this.blob.slice(e,e+t))}))}}}class Ge extends qe{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=n.assign({},t),delete this.options.preventHeadRequest,delete this.options.useRangeHeader,delete this.options.forceRangeRequests,delete this.options.useXHR}async init(){super.init(),await je(this,nt,Qe)}async readUint8Array(e,t){return Xe(this,e,t,nt,Qe)}}class Ke extends qe{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=t}async init(){super.init(),await je(this,it,$e)}async readUint8Array(e,t){return Xe(this,e,t,it,$e)}}async function je(e,t,n){if((e=>{if(void 0!==y){const t=y.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)})(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const i=await t(Ne,e,Ye(e));if(!e.forceRangeRequests&&"bytes"!=i.headers.get("Accept-Ranges"))throw new c(Me);{let r;const a=i.headers.get("Content-Range");if(a){const e=a.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(r=+t)}}void 0===r?await tt(e,t,n):e.size=r}}else await tt(e,t,n)}async function Xe(e,t,n,i,r){if(e.useRangeHeader||e.forceRangeRequests){const r=await i(Ne,e,Ye(e,t,n));if(206!=r.status)throw new c(Me);return new d(await r.arrayBuffer())}return e.data||await r(e,e.options),new d(e.data.subarray(t,t+n))}function Ye(e,t=0,i=1){return n.assign({},Je(e),{Range:"bytes="+t+"-"+(t+i-1)})}function Je(e){let t=e.options.headers;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function Qe(e){await et(e,nt)}async function $e(e){await et(e,it)}async function et(e,t){const n=await t(Ne,e,Je(e));e.data=new d(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function tt(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const i=(await t("HEAD",e,Je(e))).headers.get("Content-Length");i?e.size=+i:await n(e,e.options)}}async function nt(e,{options:t,url:i},r){const a=await fetch(i,n.assign({},t,{method:e,headers:r}));if(400>a.status)return a;throw new c(He+(a.statusText||a.status))}function it(e,{url:t},i){return new w(((r,a)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",(()=>{if(400>s.status){const e=[];s.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),r({status:s.status,arrayBuffer:()=>s.response,headers:new o(e)})}else a(new c(He+(s.statusText||s.status)))}),!1),s.addEventListener("error",(e=>a(e.detail.error)),!1),s.open(e,t),i)for(const e of n.entries(i))s.setRequestHeader(e[0],e[1]);s.responseType="arraybuffer",s.send()}))}class rt extends qe{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new Ke(e,t):this.reader=new Ge(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}async readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}const at=4294967295,st=33639248,ot=101075792,lt="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");async function ct(e,t){if(t&&"cp437"==t.trim().toLowerCase())return(e=>{let t="";for(let n=0;n<e.length;n++)t+=lt[e[n]];return t})(e);if(void 0===b){const t=new g;return new w(((n,i)=>{t.onload=e=>n(e.target.result),t.onerror=()=>i(t.error),t.readAsText(new _([e]))}))}return new b(t).decode(e)}const dt=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class ut{constructor(e){dt.forEach((t=>this[t]=e[t]))}}const ft="File format is not recognized",ht="End of central directory not found",_t="End of Zip64 central directory not found",wt="End of Zip64 central directory locator not found",pt="Central directory header not found",bt="Local file header not found",gt="Zip64 extra field not found",yt="File contains encrypted entry",xt="Encryption method not supported",mt="Compression method not supported",kt="utf-8",vt="cp437",Rt=["uncompressedSize","compressedSize","offset"];class St{constructor(e,t,i){n.assign(this,{reader:e,config:t,options:i})}async getData(e,t,n={}){const i=this,{reader:r,offset:s,extraFieldAES:o,compressionMethod:l,config:d,bitFlag:u,signature:f,rawLastModDate:h,compressedSize:_}=i,p=i.localDirectory={};r.initialized||await r.init();let b=await Bt(r,s,30);const g=Lt(b);let y=zt(i,n,"password");if(y=y&&y.length&&y,o&&99!=o.originalCompressionMethod)throw new c(mt);if(0!=l&&8!=l)throw new c(mt);if(67324752!=Wt(g,0))throw new c(bt);At(p,g,4),b=await Bt(r,s,30+p.filenameLength+p.extraFieldLength),p.rawExtraField=b.subarray(30+p.filenameLength),await Tt(i,p,g,4),t.lastAccessDate=p.lastAccessDate,t.creationDate=p.creationDate;const x=i.encrypted&&p.encrypted,m=x&&!o;if(x){if(!m&&void 0===o.strength)throw new c(xt);if(!y)throw new c(yt)}const k=await((e,t,n)=>{const i=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||void 0===t.useWebWorkers&&n.useWebWorkers),r=i&&n.workerScripts?n.workerScripts[t.codecType]:[];if(De.length<n.maxWorkers){const s={};return De.push(s),Fe(s,e,t,n,a,i,r)}{const s=De.find((e=>!e.busy));return s?(We(s),Fe(s,e,t,n,a,i,r)):new w((n=>Ce.push({resolve:n,codecConstructor:e,options:t,webWorker:i,scripts:r})))}function a(e){if(Ce.length){const[{resolve:t,codecConstructor:i,options:r,webWorker:s,scripts:o}]=Ce.splice(0,1);t(Fe(e,i,r,n,a,s,o))}else e.worker?(We(e),Number.isFinite(n.terminateWorkerTimeout)&&n.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{De=De.filter((t=>t!=e)),e.terminate()}),n.terminateWorkerTimeout))):De=De.filter((t=>t!=e))}})(d.Inflate,{codecType:ve,password:y,zipCrypto:m,encryptionStrength:o&&o.strength,signed:zt(i,n,"checkSignature"),passwordVerification:m&&(u.dataDescriptor?h>>>8&255:f>>>24&255),signature:f,compressed:0!=l,encrypted:x,useWebWorkers:zt(i,n,"useWebWorkers")},d);e.initialized||await e.init();const v=zt(i,n,"signal"),R=s+30+p.filenameLength+p.extraFieldLength;return await(async(e,t,n,i,r,s,o)=>{const l=a.max(s.chunkSize,64);return async function s(c=0,d=0){const u=o.signal;if(r>c){Le(u,e);const f=await t.readUint8Array(c+i,a.min(l,r-c)),h=f.length;Le(u,e);const _=await e.append(f);if(Le(u,e),d+=await Be(n,_),o.onprogress)try{o.onprogress(c+h,r)}catch(e){}return s(c+l,d)}{const t=await e.flush();return d+=await Be(n,t.data),{signature:t.signature,length:d}}}()})(k,r,e,R,_,d,{onprogress:n.onprogress,signal:v}),e.getData()}}function At(e,t,i){const r=e.rawBitFlag=Ct(t,i+2),a=1==(1&r),s=Wt(t,i+6);n.assign(e,{encrypted:a,version:Ct(t,i),bitFlag:{level:(6&r)>>1,dataDescriptor:8==(8&r),languageEncodingFlag:2048==(2048&r)},rawLastModDate:s,lastModDate:Et(s),filenameLength:Ct(t,i+22),extraFieldLength:Ct(t,i+24)})}async function Tt(e,t,i,r){const l=t.rawExtraField,u=t.extraField=new o,f=Lt(new d(l));let h=0;try{for(;h<l.length;){const e=Ct(f,h),t=Ct(f,h+2);u.set(e,{type:e,data:l.slice(h+4,h+4+t)}),h+=4+t}}catch(e){}const _=Ct(i,r+4);t.signature=Wt(i,r+10),t.uncompressedSize=Wt(i,r+18),t.compressedSize=Wt(i,r+14);const w=u.get(1);w&&(((e,t)=>{t.zip64=!0;const n=Lt(e.data);e.values=[];for(let t=0;t<a.floor(e.data.length/8);t++)e.values.push(It(n,0+8*t));const i=Rt.filter((e=>t[e]==at));for(let t=0;t<i.length;t++)e[i[t]]=e.values[t];Rt.forEach((n=>{if(t[n]==at){if(void 0===e[n])throw new c(gt);t[n]=e[n]}}))})(w,t),t.extraFieldZip64=w);const p=u.get(28789);p&&(await Ut(p,"filename","rawFilename",t,e),t.extraFieldUnicodePath=p);const b=u.get(25461);b&&(await Ut(b,"comment","rawComment",t,e),t.extraFieldUnicodeComment=b);const g=u.get(39169);g?(((e,t,n)=>{const i=Lt(e.data);e.vendorVersion=Dt(i,0),e.vendorId=Dt(i,2);const r=Dt(i,4);e.strength=r,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=Ct(i,5)})(g,t,_),t.extraFieldAES=g):t.compressionMethod=_;const y=u.get(10);y&&(((e,t)=>{const i=Lt(e.data);let r,a=4;try{for(;a<e.data.length&&!r;){const t=Ct(i,a),n=Ct(i,a+2);1==t&&(r=e.data.slice(a+4,a+4+n)),a+=4+n}}catch(e){}try{if(r&&24==r.length){const i=Lt(r),a=i.getBigUint64(0,!0),s=i.getBigUint64(8,!0),o=i.getBigUint64(16,!0);n.assign(e,{rawLastModDate:a,rawLastAccessDate:s,rawCreationDate:o});const l={lastModDate:Ft(a),lastAccessDate:Ft(s),creationDate:Ft(o)};n.assign(e,l),n.assign(t,l)}}catch(e){}})(y,t),t.extraFieldNTFS=y);const x=u.get(21589);x&&(((e,t)=>{const n=Lt(e.data),i=Dt(n,0),r=[],a=[];1==(1&i)&&(r.push("lastModDate"),a.push("rawLastModDate")),2==(2&i)&&(r.push("lastAccessDate"),a.push("rawLastAccessDate")),4==(4&i)&&(r.push("creationDate"),a.push("rawCreationDate"));let o=1;r.forEach(((i,r)=>{if(e.data.length>=o+4){const l=Wt(n,o);t[i]=e[i]=new s(1e3*l);const c=a[r];e[c]=l}o+=4}))})(x,t),t.extraFieldExtendedTimestamp=x)}async function Ut(e,t,n,i,r){const a=Lt(e.data);e.version=Dt(a,0),e.signature=Wt(a,1);const s=new V;s.append(r[n]);const o=Lt(new d(4));o.setUint32(0,s.get(),!0),e[t]=await ct(e.data.subarray(5)),e.valid=!r.bitFlag.languageEncodingFlag&&e.signature==Wt(o,0),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function zt(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function Et(e){const t=(4294901760&e)>>16,n=65535&e;try{return new s(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function Ft(e){return new s(+(e/r(1e4)-r(116444736e5)))}function Dt(e,t){return e.getUint8(t)}function Ct(e,t){return e.getUint16(t,!0)}function Wt(e,t){return e.getUint32(t,!0)}function It(e,t){return+e.getBigUint64(t,!0)}function Lt(e){return new h(e.buffer)}function Bt(e,t,n){return e.readUint8Array(t,n)}P({Inflate:function(e){const t=new M,n=e&&e.chunkSize?a.floor(2*e.chunkSize):131072,i=new d(n);let r=!1;t.inflateInit(),t.next_out=i,this.append=(e,a)=>{const s=[];let o,l,u=0,f=0,h=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||r||(t.next_in_index=0,r=!0),o=t.inflate(0),r&&o===R){if(0!==t.avail_in)throw new c("inflating: bad input")}else if(0!==o&&1!==o)throw new c("inflating: "+t.msg);if((r||1===o)&&t.avail_in===e.length)throw new c("inflating: bad input");t.next_out_index&&(t.next_out_index===n?s.push(new d(i)):s.push(i.slice(0,t.next_out_index))),h+=t.next_out_index,a&&t.next_in_index>0&&t.next_in_index!=u&&(a(t.next_in_index),u=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return s.length>1?(l=new d(h),s.forEach((e=>{l.set(e,f),f+=e.length}))):l=s[0]||new d(0),l}},this.flush=()=>{t.inflateEnd()}}}),e.BlobReader=Ze,e.BlobWriter=class extends Ve{constructor(e){super(),this.contentType=e,this.arrayBuffers=[]}async writeUint8Array(e){super.writeUint8Array(e),this.arrayBuffers.push(e.buffer)}getData(){return this.blob||(this.blob=new _(this.arrayBuffers,{type:this.contentType})),this.blob}},e.Data64URIReader=class extends qe{constructor(e){super(),this.dataURI=e;let t=e.length;for(;"="==e.charAt(t-1);)t--;this.dataStart=e.indexOf(",")+1,this.size=a.floor(.75*(t-this.dataStart))}async readUint8Array(e,t){const n=new d(t),i=4*a.floor(e/3),r=atob(this.dataURI.substring(i+this.dataStart,4*a.ceil((e+t)/3)+this.dataStart)),s=e-3*a.floor(i/4);for(let e=s;s+t>e;e++)n[e-s]=r.charCodeAt(e);return n}},e.Data64URIWriter=class extends Ve{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}async writeUint8Array(e){super.writeUint8Array(e);let t=0,n=this.pending;const r=this.pending.length;for(this.pending="",t=0;t<3*a.floor((r+e.length)/3)-r;t++)n+=i.fromCharCode(e[t]);for(;t<e.length;t++)this.pending+=i.fromCharCode(e[t]);n.length>2?this.data+=m(n):this.pending=n}getData(){return this.data+m(this.pending)}},e.ERR_ABORT=Ie,e.ERR_BAD_FORMAT=ft,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=pt,e.ERR_ENCRYPTED=yt,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=wt,e.ERR_EOCDR_NOT_FOUND=ht,e.ERR_EOCDR_ZIP64_NOT_FOUND=_t,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=gt,e.ERR_HTTP_RANGE=Me,e.ERR_INVALID_PASSWORD=j,e.ERR_INVALID_SIGNATURE=Re,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=bt,e.ERR_UNSUPPORTED_COMPRESSION=mt,e.ERR_UNSUPPORTED_ENCRYPTION=xt,e.HttpRangeReader=class extends rt{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=rt,e.Reader=qe,e.TextReader=class extends qe{constructor(e){super(),this.blobReader=new Ze(new _([e],{type:Oe}))}async init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}async readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},e.TextWriter=class extends Ve{constructor(e){super(),this.encoding=e,this.blob=new _([],{type:Oe})}async writeUint8Array(e){super.writeUint8Array(e),this.blob=new _([this.blob,e.buffer],{type:Oe})}getData(){if(this.blob.text)return this.blob.text();{const e=new g;return new w(((t,n)=>{e.onload=e=>t(e.target.result),e.onerror=()=>n(e.error),e.readAsText(this.blob,this.encoding)}))}}},e.Uint8ArrayReader=class extends qe{constructor(e){super(),this.array=e,this.size=e.length}async readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends Ve{constructor(){super(),this.array=new d(0)}async writeUint8Array(e){super.writeUint8Array(e);const t=this.array;this.array=new d(t.length+e.length),this.array.set(t),this.array.set(e,t.length)}getData(){return this.array}},e.WritableStreamWriter=class extends Ve{constructor(e){super(),this.writableStream=e,this.writer=e.getWriter()}async writeUint8Array(e){return await this.writer.ready,this.writer.write(e)}async getData(){return await this.writer.ready,await this.writer.close(),this.writableStream}},e.Writer=Ve,e.ZipReader=class{constructor(e,t={}){n.assign(this,{reader:e,options:t,config:N})}async getEntries(e={}){const t=this,i=t.reader;if(i.initialized||await i.init(),22>i.size)throw new c(ft);const r=await(async(e,t,n)=>{const i=new d(4);return Lt(i).setUint32(0,101010256,!0),await r(22)||await r(a.min(1048582,n));async function r(t){const r=n-t,a=await Bt(e,r,t);for(let e=a.length-22;e>=0;e--)if(a[e]==i[0]&&a[e+1]==i[1]&&a[e+2]==i[2]&&a[e+3]==i[3])return{offset:r+e,buffer:a.slice(e,e+22).buffer}}})(i,0,i.size);if(!r)throw new c(ht);const s=Lt(r);let o=Wt(s,12),l=Wt(s,16),u=Ct(s,8),f=0;if(l==at||o==at||65535==u){const e=Lt(await Bt(i,r.offset-20,20));if(117853008!=Wt(e,0))throw new c(_t);l=It(e,8);let t=await Bt(i,l,56),n=Lt(t);const a=r.offset-20-56;if(Wt(n,0)!=ot&&l!=a){const e=l;l=a,f=l-e,t=await Bt(i,l,56),n=Lt(t)}if(Wt(n,0)!=ot)throw new c(wt);u=It(n,32),o=It(n,40),l-=o}if(0>l||l>=i.size)throw new c(ft);let h=0,_=await Bt(i,l,o),p=Lt(_);if(o){const e=r.offset-o;if(Wt(p,h)!=st&&l!=e){const t=l;l=e,f=l-t,_=await Bt(i,l,o),p=Lt(_)}}if(0>l||l>=i.size)throw new c(ft);const b=[];for(let r=0;u>r;r++){const a=new St(i,t.config,t.options);if(Wt(p,h)!=st)throw new c(pt);At(a,p,h+6);const s=!!a.bitFlag.languageEncodingFlag,o=h+46,l=o+a.filenameLength,d=l+a.extraFieldLength,g=Ct(p,h+4),y=0==(0&g);n.assign(a,{versionMadeBy:g,msDosCompatible:y,compressedSize:0,uncompressedSize:0,commentLength:Ct(p,h+32),directory:y&&16==(16&Dt(p,h+38)),offset:Wt(p,h+42)+f,internalFileAttribute:Wt(p,h+34),externalFileAttribute:Wt(p,h+38),rawFilename:_.subarray(o,l),filenameUTF8:s,commentUTF8:s,rawExtraField:_.subarray(l,d)});const x=d+a.commentLength;a.rawComment=_.subarray(d,x);const m=zt(t,e,"filenameEncoding"),k=zt(t,e,"commentEncoding"),[v,R]=await w.all([ct(a.rawFilename,a.filenameUTF8?kt:m||vt),ct(a.rawComment,a.commentUTF8?kt:k||vt)]);a.filename=v,a.comment=R,!a.directory&&a.filename.endsWith("/")&&(a.directory=!0),await Tt(a,a,p,h+6);const S=new ut(a);if(S.getData=(e,t)=>a.getData(e,S,t),b.push(S),h=x,e.onprogress)try{e.onprogress(r+1,u,new ut(a))}catch(e){}}return b}async close(){}},e.configure=P,e.getMimeType=()=>"application/octet-stream",e.terminateWorkers=()=>{De.forEach((e=>{We(e),e.terminate()}))},n.defineProperty(e,"__esModule",{value:!0})}));
((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:i,BigInt:r,Math:a,Date:s,Map:o,URL:l,Error:c,Uint8Array:d,Uint16Array:u,Uint32Array:f,DataView:h,Blob:_,Promise:w,TextEncoder:p,TextDecoder:b,FileReader:g,document:y,crypto:x,btoa:m}=globalThis,k=-2,v=-3,R=-5,S=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],A=[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],T=[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],U=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],E=[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],F=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function D(){let e,t,n,i,r,a;function s(e,t,s,o,l,c,d,u,f,h,_){let w,p,b,g,y,x,m,k,S,A,T,U,z,E,F;A=0,y=s;do{n[e[t+A]]++,A++,y--}while(0!==y);if(n[0]==s)return d[0]=-1,u[0]=0,0;for(k=u[0],x=1;15>=x&&0===n[x];x++);for(m=x,x>k&&(k=x),y=15;0!==y&&0===n[y];y--);for(b=y,k>y&&(k=y),u[0]=k,E=1<<x;y>x;x++,E<<=1)if(0>(E-=n[x]))return v;if(0>(E-=n[y]))return v;for(n[y]+=E,a[1]=x=0,A=1,z=2;0!=--y;)a[z]=x+=n[A],z++,A++;y=0,A=0;do{0!==(x=e[t+A])&&(_[a[x]++]=y),A++}while(++y<s);for(s=a[b],a[0]=y=0,A=0,g=-1,U=-k,r[0]=0,T=0,F=0;b>=m;m++)for(w=n[m];0!=w--;){for(;m>U+k;){if(g++,U+=k,F=b-U,F=F>k?k:F,(p=1<<(x=m-U))>w+1&&(p-=w+1,z=m,F>x))for(;++x<F&&(p<<=1)>n[++z];)p-=n[z];if(F=1<<x,h[0]+F>1440)return v;r[g]=T=h[0],h[0]+=F,0!==g?(a[g]=y,i[0]=x,i[1]=k,x=y>>>U-k,i[2]=T-r[g-1]-x,f.set(i,3*(r[g-1]+x))):d[0]=T}for(i[1]=m-U,s>A?_[A]<o?(i[0]=256>_[A]?0:96,i[2]=_[A++]):(i[0]=c[_[A]-o]+16+64,i[2]=l[_[A++]-o]):i[0]=192,p=1<<m-U,x=y>>>U;F>x;x+=p)f.set(i,3*(T+x));for(x=1<<m-1;0!=(y&x);x>>>=1)y^=x;for(y^=x,S=(1<<U)-1;(y&S)!=a[g];)g--,U-=k,S=(1<<U)-1}return 0!==E&&1!=b?R:0}function o(s){let o;for(e||(e=[],t=[],n=new Int32Array(16),i=[],r=new Int32Array(15),a=new Int32Array(16)),t.length<s&&(t=[]),o=0;s>o;o++)t[o]=0;for(o=0;16>o;o++)n[o]=0;for(o=0;3>o;o++)i[o]=0;r.set(n.subarray(0,15),0),a.set(n.subarray(0,16),0)}this.inflate_trees_bits=(n,i,r,a,l)=>{let c;return o(19),e[0]=0,c=s(n,0,19,19,null,null,r,i,a,e,t),c==v?l.msg="oversubscribed dynamic bit lengths tree":c!=R&&0!==i[0]||(l.msg="incomplete dynamic bit lengths tree",c=v),c},this.inflate_trees_dynamic=(n,i,r,a,l,c,d,u,f)=>{let h;return o(288),e[0]=0,h=s(r,0,n,257,U,z,c,a,u,e,t),0!=h||0===a[0]?(h==v?f.msg="oversubscribed literal/length tree":-4!=h&&(f.msg="incomplete literal/length tree",h=v),h):(o(288),h=s(r,n,i,0,E,F,d,l,u,e,t),0!=h||0===l[0]&&n>257?(h==v?f.msg="oversubscribed distance tree":h==R?(f.msg="incomplete distance tree",h=v):-4!=h&&(f.msg="empty distance tree with lengths",h=v),h):0)}}function C(){const e=this;let t,n,i,r,a=0,s=0,o=0,l=0,c=0,d=0,u=0,f=0,h=0,_=0;function w(e,t,n,i,r,a,s,o){let l,c,d,u,f,h,_,w,p,b,g,y,x,m,k,R;_=o.next_in_index,w=o.avail_in,f=s.bitb,h=s.bitk,p=s.write,b=p<s.read?s.read-p-1:s.end-p,g=S[e],y=S[t];do{for(;20>h;)w--,f|=(255&o.read_byte(_++))<<h,h+=8;if(l=f&g,c=n,d=i,R=3*(d+l),0!==(u=c[R]))for(;;){if(f>>=c[R+1],h-=c[R+1],0!=(16&u)){for(u&=15,x=c[R+2]+(f&S[u]),f>>=u,h-=u;15>h;)w--,f|=(255&o.read_byte(_++))<<h,h+=8;for(l=f&y,c=r,d=a,R=3*(d+l),u=c[R];;){if(f>>=c[R+1],h-=c[R+1],0!=(16&u)){for(u&=15;u>h;)w--,f|=(255&o.read_byte(_++))<<h,h+=8;if(m=c[R+2]+(f&S[u]),f>>=u,h-=u,b-=x,m>p){k=p-m;do{k+=s.end}while(0>k);if(u=s.end-k,x>u){if(x-=u,p-k>0&&u>p-k)do{s.win[p++]=s.win[k++]}while(0!=--u);else s.win.set(s.win.subarray(k,k+u),p),p+=u,k+=u,u=0;k=0}}else k=p-m,p-k>0&&2>p-k?(s.win[p++]=s.win[k++],s.win[p++]=s.win[k++],x-=2):(s.win.set(s.win.subarray(k,k+2),p),p+=2,k+=2,x-=2);if(p-k>0&&x>p-k)do{s.win[p++]=s.win[k++]}while(0!=--x);else s.win.set(s.win.subarray(k,k+x),p),p+=x,k+=x,x=0;break}if(0!=(64&u))return o.msg="invalid distance code",x=o.avail_in-w,x=x>h>>3?h>>3:x,w+=x,_-=x,h-=x<<3,s.bitb=f,s.bitk=h,o.avail_in=w,o.total_in+=_-o.next_in_index,o.next_in_index=_,s.write=p,v;l+=c[R+2],l+=f&S[u],R=3*(d+l),u=c[R]}break}if(0!=(64&u))return 0!=(32&u)?(x=o.avail_in-w,x=x>h>>3?h>>3:x,w+=x,_-=x,h-=x<<3,s.bitb=f,s.bitk=h,o.avail_in=w,o.total_in+=_-o.next_in_index,o.next_in_index=_,s.write=p,1):(o.msg="invalid literal/length code",x=o.avail_in-w,x=x>h>>3?h>>3:x,w+=x,_-=x,h-=x<<3,s.bitb=f,s.bitk=h,o.avail_in=w,o.total_in+=_-o.next_in_index,o.next_in_index=_,s.write=p,v);if(l+=c[R+2],l+=f&S[u],R=3*(d+l),0===(u=c[R])){f>>=c[R+1],h-=c[R+1],s.win[p++]=c[R+2],b--;break}}else f>>=c[R+1],h-=c[R+1],s.win[p++]=c[R+2],b--}while(b>=258&&w>=10);return x=o.avail_in-w,x=x>h>>3?h>>3:x,w+=x,_-=x,h-=x<<3,s.bitb=f,s.bitk=h,o.avail_in=w,o.total_in+=_-o.next_in_index,o.next_in_index=_,s.write=p,0}e.init=(e,a,s,o,l,c)=>{t=0,u=e,f=a,i=s,h=o,r=l,_=c,n=null},e.proc=(e,p,b)=>{let g,y,x,m,R,A,T,U=0,z=0,E=0;for(E=p.next_in_index,m=p.avail_in,U=e.bitb,z=e.bitk,R=e.write,A=R<e.read?e.read-R-1:e.end-R;;)switch(t){case 0:if(A>=258&&m>=10&&(e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,b=w(u,f,i,h,r,_,e,p),E=p.next_in_index,m=p.avail_in,U=e.bitb,z=e.bitk,R=e.write,A=R<e.read?e.read-R-1:e.end-R,0!=b)){t=1==b?7:9;break}o=u,n=i,s=h,t=1;case 1:for(g=o;g>z;){if(0===m)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,m--,U|=(255&p.read_byte(E++))<<z,z+=8}if(y=3*(s+(U&S[g])),U>>>=n[y+1],z-=n[y+1],x=n[y],0===x){l=n[y+2],t=6;break}if(0!=(16&x)){c=15&x,a=n[y+2],t=2;break}if(0==(64&x)){o=x,s=y/3+n[y+2];break}if(0!=(32&x)){t=7;break}return t=9,p.msg="invalid literal/length code",b=v,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);case 2:for(g=c;g>z;){if(0===m)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,m--,U|=(255&p.read_byte(E++))<<z,z+=8}a+=U&S[g],U>>=g,z-=g,o=f,n=r,s=_,t=3;case 3:for(g=o;g>z;){if(0===m)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,m--,U|=(255&p.read_byte(E++))<<z,z+=8}if(y=3*(s+(U&S[g])),U>>=n[y+1],z-=n[y+1],x=n[y],0!=(16&x)){c=15&x,d=n[y+2],t=4;break}if(0==(64&x)){o=x,s=y/3+n[y+2];break}return t=9,p.msg="invalid distance code",b=v,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);case 4:for(g=c;g>z;){if(0===m)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,m--,U|=(255&p.read_byte(E++))<<z,z+=8}d+=U&S[g],U>>=g,z-=g,t=5;case 5:for(T=R-d;0>T;)T+=e.end;for(;0!==a;){if(0===A&&(R==e.end&&0!==e.read&&(R=0,A=R<e.read?e.read-R-1:e.end-R),0===A&&(e.write=R,b=e.inflate_flush(p,b),R=e.write,A=R<e.read?e.read-R-1:e.end-R,R==e.end&&0!==e.read&&(R=0,A=R<e.read?e.read-R-1:e.end-R),0===A)))return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);e.win[R++]=e.win[T++],A--,T==e.end&&(T=0),a--}t=0;break;case 6:if(0===A&&(R==e.end&&0!==e.read&&(R=0,A=R<e.read?e.read-R-1:e.end-R),0===A&&(e.write=R,b=e.inflate_flush(p,b),R=e.write,A=R<e.read?e.read-R-1:e.end-R,R==e.end&&0!==e.read&&(R=0,A=R<e.read?e.read-R-1:e.end-R),0===A)))return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);b=0,e.win[R++]=l,A--,t=0;break;case 7:if(z>7&&(z-=8,m++,E--),e.write=R,b=e.inflate_flush(p,b),R=e.write,A=R<e.read?e.read-R-1:e.end-R,e.read!=e.write)return e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);t=8;case 8:return b=1,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);case 9:return b=v,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b);default:return b=k,e.bitb=U,e.bitk=z,p.avail_in=m,p.total_in+=E-p.next_in_index,p.next_in_index=E,e.write=R,e.inflate_flush(p,b)}},e.free=()=>{}}D.inflate_trees_fixed=(e,t,n,i)=>(e[0]=9,t[0]=5,n[0]=A,i[0]=T,0);const W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function I(e,t){const n=this;let i,r=0,a=0,s=0,o=0;const l=[0],c=[0],u=new C;let f=0,h=new Int32Array(4320);const _=new D;n.bitk=0,n.bitb=0,n.win=new d(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==r&&u.free(e),r=0,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=(e,t)=>{let i,r,a;return r=e.next_out_index,a=n.read,i=(a>n.write?n.end:n.write)-a,i>e.avail_out&&(i=e.avail_out),0!==i&&t==R&&(t=0),e.avail_out-=i,e.total_out+=i,e.next_out.set(n.win.subarray(a,a+i),r),r+=i,a+=i,a==n.end&&(a=0,n.write==n.end&&(n.write=0),i=n.write-a,i>e.avail_out&&(i=e.avail_out),0!==i&&t==R&&(t=0),e.avail_out-=i,e.total_out+=i,e.next_out.set(n.win.subarray(a,a+i),r),r+=i,a+=i),e.next_out_index=r,n.read=a,t},n.proc=(e,t)=>{let d,w,p,b,g,y,x,m;for(b=e.next_in_index,g=e.avail_in,w=n.bitb,p=n.bitk,y=n.write,x=y<n.read?n.read-y-1:n.end-y;;){let R,A,T,U,z,E,F,C;switch(r){case 0:for(;3>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}switch(d=7&w,f=1&d,d>>>1){case 0:w>>>=3,p-=3,d=7&p,w>>>=d,p-=d,r=1;break;case 1:R=[],A=[],T=[[]],U=[[]],D.inflate_trees_fixed(R,A,T,U),u.init(R[0],A[0],T[0],0,U[0],0),w>>>=3,p-=3,r=6;break;case 2:w>>>=3,p-=3,r=3;break;case 3:return w>>>=3,p-=3,r=9,e.msg="invalid block type",t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t)}break;case 1:for(;32>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}if((~w>>>16&65535)!=(65535&w))return r=9,e.msg="invalid stored block lengths",t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);a=65535&w,w=p=0,r=0!==a?2:0!==f?7:0;break;case 2:if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);if(0===x&&(y==n.end&&0!==n.read&&(y=0,x=y<n.read?n.read-y-1:n.end-y),0===x&&(n.write=y,t=n.inflate_flush(e,t),y=n.write,x=y<n.read?n.read-y-1:n.end-y,y==n.end&&0!==n.read&&(y=0,x=y<n.read?n.read-y-1:n.end-y),0===x)))return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);if(t=0,d=a,d>g&&(d=g),d>x&&(d=x),n.win.set(e.read_buf(b,d),y),b+=d,g-=d,y+=d,x-=d,0!=(a-=d))break;r=0!==f?7:0;break;case 3:for(;14>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}if(s=d=16383&w,(31&d)>29||(d>>5&31)>29)return r=9,e.msg="too many length or distance symbols",t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);if(d=258+(31&d)+(d>>5&31),!i||i.length<d)i=[];else for(m=0;d>m;m++)i[m]=0;w>>>=14,p-=14,o=0,r=4;case 4:for(;4+(s>>>10)>o;){for(;3>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}i[W[o++]]=7&w,w>>>=3,p-=3}for(;19>o;)i[W[o++]]=0;if(l[0]=7,d=_.inflate_trees_bits(i,l,c,h,e),0!=d)return(t=d)==v&&(i=null,r=9),n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);o=0,r=5;case 5:for(;d=s,258+(31&d)+(d>>5&31)>o;){let a,u;for(d=l[0];d>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}if(d=h[3*(c[0]+(w&S[d]))+1],u=h[3*(c[0]+(w&S[d]))+2],16>u)w>>>=d,p-=d,i[o++]=u;else{for(m=18==u?7:u-14,a=18==u?11:3;d+m>p;){if(0===g)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);t=0,g--,w|=(255&e.read_byte(b++))<<p,p+=8}if(w>>>=d,p-=d,a+=w&S[m],w>>>=m,p-=m,m=o,d=s,m+a>258+(31&d)+(d>>5&31)||16==u&&1>m)return i=null,r=9,e.msg="invalid bit length repeat",t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);u=16==u?i[m-1]:0;do{i[m++]=u}while(0!=--a);o=m}}if(c[0]=-1,z=[],E=[],F=[],C=[],z[0]=9,E[0]=6,d=s,d=_.inflate_trees_dynamic(257+(31&d),1+(d>>5&31),i,z,E,F,C,h,e),0!=d)return d==v&&(i=null,r=9),t=d,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);u.init(z[0],E[0],h,F[0],h,C[0]),r=6;case 6:if(n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,1!=(t=u.proc(n,e,t)))return n.inflate_flush(e,t);if(t=0,u.free(e),b=e.next_in_index,g=e.avail_in,w=n.bitb,p=n.bitk,y=n.write,x=y<n.read?n.read-y-1:n.end-y,0===f){r=0;break}r=7;case 7:if(n.write=y,t=n.inflate_flush(e,t),y=n.write,x=y<n.read?n.read-y-1:n.end-y,n.read!=n.write)return n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);r=8;case 8:return t=1,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);case 9:return t=v,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t);default:return t=k,n.bitb=w,n.bitk=p,e.avail_in=g,e.total_in+=b-e.next_in_index,e.next_in_index=b,n.write=y,n.inflate_flush(e,t)}}},n.free=e=>{n.reset(e,null),n.win=null,h=null},n.set_dictionary=(e,t,i)=>{n.win.set(e.subarray(t,t+i),0),n.read=n.write=i},n.sync_point=()=>1==r?1:0}const L=13,B=[0,0,255,255];function H(){const e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):k}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=t=>(e.blocks&&e.blocks.free(t),e.blocks=null,0),e.inflateInit=(n,i)=>(n.msg=null,e.blocks=null,8>i||i>15?(e.inflateEnd(n),k):(e.wbits=i,n.istate.blocks=new I(n,1<<i),t(n),0)),e.inflate=(e,t)=>{let n,i;if(!e||!e.istate||!e.next_in)return k;const r=e.istate;for(t=4==t?R:0,n=R;;)switch(r.mode){case 0:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,8!=(15&(r.method=e.read_byte(e.next_in_index++)))){r.mode=L,e.msg="unknown compression method",r.marker=5;break}if(8+(r.method>>4)>r.wbits){r.mode=L,e.msg="invalid win size",r.marker=5;break}r.mode=1;case 1:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,i=255&e.read_byte(e.next_in_index++),((r.method<<8)+i)%31!=0){r.mode=L,e.msg="incorrect header check",r.marker=5;break}if(0==(32&i)){r.mode=7;break}r.mode=2;case 2:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,r.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,r.mode=3;case 3:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,r.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,r.mode=4;case 4:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,r.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,r.mode=5;case 5:return 0===e.avail_in?n:(n=t,e.avail_in--,e.total_in++,r.need+=255&e.read_byte(e.next_in_index++),r.mode=6,2);case 6:return r.mode=L,e.msg="need dictionary",r.marker=0,k;case 7:if(n=r.blocks.proc(e,n),n==v){r.mode=L,r.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,r.blocks.reset(e,r.was),r.mode=12;case 12:return e.avail_in=0,1;case L:return v;default:return k}},e.inflateSetDictionary=(e,t,n)=>{let i=0,r=n;if(!e||!e.istate||6!=e.istate.mode)return k;const a=e.istate;return r<1<<a.wbits||(r=(1<<a.wbits)-1,i=n-r),a.blocks.set_dictionary(t,i,r),a.mode=7,0},e.inflateSync=e=>{let n,i,r,a,s;if(!e||!e.istate)return k;const o=e.istate;if(o.mode!=L&&(o.mode=L,o.marker=0),0===(n=e.avail_in))return R;for(i=e.next_in_index,r=o.marker;0!==n&&4>r;)e.read_byte(i)==B[r]?r++:r=0!==e.read_byte(i)?0:4-r,i++,n--;return e.total_in+=i-e.next_in_index,e.next_in_index=i,e.avail_in=n,o.marker=r,4!=r?v:(a=e.total_in,s=e.total_out,t(e),e.total_in=a,e.total_out=s,o.mode=7,0)},e.inflateSyncPoint=e=>e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():k}function N(){}N.prototype={inflateInit:function(e){const t=this;return t.istate=new H,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(e){const t=this;return t.istate?t.istate.inflate(t,e):k},inflateEnd:function(){const e=this;if(!e.istate)return k;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync:function(){const e=this;return e.istate?e.istate.inflateSync(e):k},inflateSetDictionary:function(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):k},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}};const M={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},O=n.assign({},M);function P(e){if(void 0!==e.baseURL&&(O.baseURL=e.baseURL),void 0!==e.chunkSize&&(O.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(O.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(O.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useWebWorkers&&(O.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(O.Deflate=e.Deflate),void 0!==e.Inflate&&(O.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!t.isArray(e.workerScripts.deflate))throw new c("workerScripts.deflate must be an array");O.workerScripts||(O.workerScripts={}),O.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!t.isArray(e.workerScripts.inflate))throw new c("workerScripts.inflate must be an array");O.workerScripts||(O.workerScripts={}),O.workerScripts.inflate=e.workerScripts.inflate}}}const q=[];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;q[e]=t}class V{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,i=0|e.length;i>n;n++)t=t>>>8^q[255&(t^e[n])];this.crc=t}get(){return~this.crc}}const Z={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],i=Z.getPartial(n);return 32===i?e.concat(t):Z._shiftRight(t,i,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)+Z.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]=Z.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,i){for(void 0===i&&(i=[]);t>=32;t-=32)i.push(n),n=0;if(0===t)return i.concat(e);for(let r=0;r<e.length;r++)i.push(n|e[r]>>>t),n=e[r]<<32-t;const r=e.length?e[e.length-1]:0,a=Z.getPartial(r);return i.push(Z.partial(t+a&31,t+a>32?n:i.pop(),1)),i}},G={bytes:{fromBits(e){const t=Z.bitLength(e)/8,n=new d(t);let i;for(let r=0;t>r;r++)0==(3&r)&&(i=e[r/4]),n[r]=i>>>24,i<<=8;return n},toBits(e){const t=[];let n,i=0;for(n=0;n<e.length;n++)i=i<<8|e[n],3==(3&n)&&(t.push(i),i=0);return 3&n&&t.push(Z.partial(8*(3&n),i)),t}}},K={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};K.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=G.utf8String.toBits(e));const n=t._buffer=Z.concat(t._buffer,e),i=t._length,r=t._length=i+Z.bitLength(e);if(r>9007199254740991)throw new c("Cannot hash more than 2^53 - 1 bits");const a=new f(n);let s=0;for(let e=t.blockSize+i-(t.blockSize+i&t.blockSize-1);r>=e;e+=t.blockSize)t._block(a.subarray(16*s,16*(s+1))),s+=1;return n.splice(0,16*s),t},finalize:function(){const e=this;let t=e._buffer;const n=e._h;t=Z.concat(t,[Z.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(a.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,i)=>e>19?e>39?e>59?e>79?void 0:t^n^i:t&n|t&i|n&i:t^n^i:t&n|~t&i,_S:(e,t)=>t<<e|t>>>32-e,_block:function(e){const n=this,i=n._h,r=t(80);for(let t=0;16>t;t++)r[t]=e[t];let s=i[0],o=i[1],l=i[2],c=i[3],d=i[4];for(let e=0;79>=e;e++){16>e||(r[e]=n._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const t=n._S(5,s)+n._f(e,o,l,c)+d+r[e]+n._key[a.floor(e/20)]|0;d=c,c=l,l=n._S(30,o),o=s,s=t}i[0]=i[0]+s|0,i[1]=i[1]+o|0,i[2]=i[2]+l|0,i[3]=i[3]+c|0,i[4]=i[4]+d|0}};const j="Invalid pasword",X=16,Y={name:"PBKDF2"},J=n.assign({hash:{name:"HMAC"}},Y),Q=n.assign({iterations:1e3,hash:{name:"SHA-1"}},Y),$=["deriveBits"],ee=[8,12,16],te=[16,24,32],ne=10,ie=[0,0,0,0],re=G.bytes,ae=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],i=t._tables[1],r=e.length;let a,s,o,l=1;if(4!==r&&6!==r&&8!==r)throw new c("invalid aes key size");for(t._key=[s=e.slice(0),o=[]],a=r;4*r+28>a;a++){let e=s[a-1];(a%r==0||8===r&&a%r==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],a%r==0&&(e=e<<8^e>>>24^l<<24,l=l<<1^283*(l>>7))),s[a]=s[a-r]^e}for(let e=0;a;e++,a--){const t=s[3&e?a:a-4];o[e]=4>=a||4>e?t:i[0][n[t>>>24]]^i[1][n[t>>16&255]]^i[2][n[t>>8&255]]^i[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],i=t[4],r=[],a=[];let s,o,l,c;for(let e=0;256>e;e++)a[(r[e]=e<<1^283*(e>>7))^e]=e;for(let d=s=0;!n[d];d^=o||1,s=a[s]||1){let a=s^s<<1^s<<2^s<<3^s<<4;a=a>>8^255&a^99,n[d]=a,i[a]=d,c=r[l=r[o=r[d]]];let u=16843009*c^65537*l^257*o^16843008*d,f=257*r[a]^16843008*a;for(let n=0;4>n;n++)e[n][d]=f=f<<24^f>>>8,t[n][a]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new c("invalid aes block size");const n=this._key[t],i=n.length/4-2,r=[0,0,0,0],a=this._tables[t],s=a[0],o=a[1],l=a[2],d=a[3],u=a[4];let f,h,_,w=e[0]^n[0],p=e[t?3:1]^n[1],b=e[2]^n[2],g=e[t?1:3]^n[3],y=4;for(let e=0;i>e;e++)f=s[w>>>24]^o[p>>16&255]^l[b>>8&255]^d[255&g]^n[y],h=s[p>>>24]^o[b>>16&255]^l[g>>8&255]^d[255&w]^n[y+1],_=s[b>>>24]^o[g>>16&255]^l[w>>8&255]^d[255&p]^n[y+2],g=s[g>>>24]^o[w>>16&255]^l[p>>8&255]^d[255&b]^n[y+3],y+=4,w=f,p=h,b=_;for(let e=0;4>e;e++)r[t?3&-e:e]=u[w>>>24]<<24^u[p>>16&255]<<16^u[b>>8&255]<<8^u[255&g]^n[y++],f=w,w=p,p=b,b=g,g=f;return r}},se=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let i;if(!(i=t.length))return[];const r=Z.bitLength(t);for(let r=0;i>r;r+=4){this.incCounter(n);const i=e.encrypt(n);t[r]^=i[0],t[r+1]^=i[1],t[r+2]^=i[2],t[r+3]^=i[3]}return Z.clamp(t,r)}},oe=class{constructor(e){const t=this,n=t._hash=K.sha1,i=[[],[]],r=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>r&&(e=n.hash(e));for(let t=0;r>t;t++)i[0][t]=909522486^e[t],i[1][t]=1549556828^e[t];t._baseHash[0].update(i[0]),t._baseHash[1].update(i[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}};class le{constructor(e,t,i){n.assign(this,{password:e,signed:t,strength:i-1,pendingInput:new d(0)})}async append(e){const n=this;if(n.password){const i=he(e,0,ee[n.strength]+2);await(async(e,t,n)=>{await ue(e,n,he(t,0,ee[e.strength]));const i=he(t,ee[e.strength]),r=e.keys.passwordVerification;if(r[0]!=i[0]||r[1]!=i[1])throw new c(j)})(n,i,n.password),n.password=null,n.aesCtrGladman=new se(new ae(n.keys.key),t.from(ie)),n.hmac=new oe(n.keys.authentication),e=he(e,ee[n.strength]+2)}return de(n,e,new d(e.length-ne-(e.length-ne)%X),0,ne,!0)}flush(){const e=this,t=e.pendingInput,n=he(t,0,t.length-ne),i=he(t,t.length-ne);let r=new d(0);if(n.length){const t=re.toBits(n);e.hmac.update(t);const i=e.aesCtrGladman.update(t);r=re.fromBits(i)}let a=!0;if(e.signed){const t=he(re.fromBits(e.hmac.digest()),0,ne);for(let e=0;ne>e;e++)t[e]!=i[e]&&(a=!1)}return{valid:a,data:r}}}class ce{constructor(e,t){n.assign(this,{password:e,strength:t-1,pendingInput:new d(0)})}async append(e){const n=this;let i=new d(0);n.password&&(i=await(async(e,t)=>{const n=x.getRandomValues(new d(ee[e.strength]));return await ue(e,t,n),fe(n,e.keys.passwordVerification)})(n,n.password),n.password=null,n.aesCtrGladman=new se(new ae(n.keys.key),t.from(ie)),n.hmac=new oe(n.keys.authentication));const r=new d(i.length+e.length-e.length%X);return r.set(i,0),de(n,e,r,i.length,0)}flush(){const e=this;let t=new d(0);if(e.pendingInput.length){const n=e.aesCtrGladman.update(re.toBits(e.pendingInput));e.hmac.update(n),t=re.fromBits(n)}const n=he(re.fromBits(e.hmac.digest()),0,ne);return{data:fe(t,n),signature:n}}}function de(e,t,n,i,r,a){const s=t.length-r;let o;for(e.pendingInput.length&&(t=fe(e.pendingInput,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new d(t)).set(n,0)}return e})(n,s-s%X)),o=0;s-X>=o;o+=X){const r=re.toBits(he(t,o,o+X));a&&e.hmac.update(r);const s=e.aesCtrGladman.update(r);a||e.hmac.update(s),n.set(re.fromBits(s),o+i)}return e.pendingInput=he(t,o),n}async function ue(e,t,i){const r=(e=>{if(void 0===p){const t=new d((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new p).encode(e)})(t),a=await x.subtle.importKey("raw",r,J,!1,$),s=await x.subtle.deriveBits(n.assign({salt:i},Q),a,8*(2*te[e.strength]+2)),o=new d(s);e.keys={key:re.toBits(he(o,0,te[e.strength])),authentication:re.toBits(he(o,te[e.strength],2*te[e.strength])),passwordVerification:he(o,2*te[e.strength])}}function fe(e,t){let n=e;return e.length+t.length&&(n=new d(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function he(e,t,n){return e.subarray(t,n)}class _e{constructor(e,t){n.assign(this,{password:e,passwordVerification:t}),ge(this,e)}append(e){const t=this;if(t.password){const n=pe(t,e.subarray(0,12));if(t.password=null,n[11]!=t.passwordVerification)throw new c(j);e=e.subarray(12)}return pe(t,e)}flush(){return{valid:!0,data:new d(0)}}}class we{constructor(e,t){n.assign(this,{password:e,passwordVerification:t}),ge(this,e)}append(e){const t=this;let n,i;if(t.password){t.password=null;const r=x.getRandomValues(new d(12));r[11]=t.passwordVerification,n=new d(e.length+r.length),n.set(be(t,r),0),i=12}else n=new d(e.length),i=0;return n.set(be(t,e),i),n}flush(){return{data:new d(0)}}}function pe(e,t){const n=new d(t.length);for(let i=0;i<t.length;i++)n[i]=xe(e)^t[i],ye(e,n[i]);return n}function be(e,t){const n=new d(t.length);for(let i=0;i<t.length;i++)n[i]=xe(e)^t[i],ye(e,t[i]);return n}function ge(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new V(e.keys[0]),e.crcKey2=new V(e.keys[2]);for(let n=0;n<t.length;n++)ye(e,t.charCodeAt(n))}function ye(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=ke(e.keys[1]+me(e.keys[0])),e.keys[1]=ke(a.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function xe(e){const t=2|e.keys[2];return me(a.imul(t,1^t)>>>8)}function me(e){return 255&e}function ke(e){return 4294967295&e}const ve="inflate",Re="Invalid signature";class Se{constructor(e,{signature:t,password:i,signed:r,compressed:a,zipCrypto:s,passwordVerification:o,encryptionStrength:l},{chunkSize:c}){const d=!!i;n.assign(this,{signature:t,encrypted:d,signed:r,compressed:a,inflate:a&&new e({chunkSize:c}),crc32:r&&new V,zipCrypto:s,decrypt:d&&s?new _e(i,o):new le(i,r,l)})}async append(e){const t=this;return t.encrypted&&e.length&&(e=await t.decrypt.append(e)),t.compressed&&e.length&&(e=await t.inflate.append(e)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),e}async flush(){const e=this;let t,n=new d(0);if(e.encrypted){const t=e.decrypt.flush();if(!t.valid)throw new c(Re);n=t.data}if((!e.encrypted||e.zipCrypto)&&e.signed){const n=new h(new d(4).buffer);if(t=e.crc32.get(),n.setUint32(0,t),e.signature!=n.getUint32(0,!1))throw new c(Re)}return e.compressed&&(n=await e.inflate.append(n)||new d(0),await e.inflate.flush()),{data:n,signature:t}}}class Ae{constructor(e,{encrypted:t,signed:i,compressed:r,level:a,zipCrypto:s,password:o,passwordVerification:l,encryptionStrength:c},{chunkSize:d}){n.assign(this,{encrypted:t,signed:i,compressed:r,deflate:r&&new e({level:a||5,chunkSize:d}),crc32:i&&new V,zipCrypto:s,encrypt:t&&s?new we(o,l):new ce(o,c)})}async append(e){const t=this;let n=e;return t.compressed&&e.length&&(n=await t.deflate.append(e)),t.encrypted&&n.length&&(n=await t.encrypt.append(n)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),n}async flush(){const e=this;let t,n=new d(0);if(e.compressed&&(n=await e.deflate.flush()||new d(0)),e.encrypted){n=await e.encrypt.append(n);const i=e.encrypt.flush();t=i.signature;const r=new d(n.length+i.data.length);r.set(n,0),r.set(i.data,n.length),n=r}return e.encrypted&&!e.zipCrypto||!e.signed||(t=e.crc32.get()),{data:n,signature:t}}}const Te="init",Ue="append",ze="flush";let Ee=!0;var Fe=(e,t,i,r,a,s,o)=>(n.assign(e,{busy:!0,codecConstructor:t,options:n.assign({},i),scripts:o,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,a(e)}}),s?((e,t)=>{let n;const i={type:"module"};if(!e.interface){if(Ee)try{e.worker=r({},t.baseURL)}catch(n){Ee=!1,e.worker=r(i,t.baseURL)}else e.worker=r(i,t.baseURL);e.worker.addEventListener("message",(t=>{const i=t.data;if(n){const t=i.error,r=i.type;if(t){const i=new c(t.message);i.stack=t.stack,n.reject(i),n=null,e.onTaskFinished()}else if(r==Te||r==ze||r==Ue){const t=i.data;r==ze?(n.resolve({data:new d(t),signature:i.signature}),n=null,e.onTaskFinished()):n.resolve(t&&new d(t))}}}),!1),e.interface={append:e=>a({type:Ue,data:e}),flush:()=>a({type:ze}),abort(){e.onTaskFinished()}}}return e.interface;function r(t,n){let i,r;i=e.scripts[0],"function"==typeof i&&(i=i());try{r=new l(i,n)}catch(e){r=i}return new Worker(r,t)}async function a(i){if(!n){const n=e.options,i=e.scripts.slice(1);await s({scripts:i,type:Te,options:n,config:{chunkSize:t.chunkSize}})}return s(i)}function s(t){const i=e.worker,r=new w(((e,t)=>n={resolve:e,reject:t}));try{if(t.data)try{t.data=t.data.buffer,i.postMessage(t,[t.data])}catch(e){i.postMessage(t)}else i.postMessage(t)}catch(t){n.reject(t),n=null,e.onTaskFinished()}return r}})(e,r):((e,t)=>{const n=((e,t,n)=>t.codecType.startsWith("deflate")?new Ae(e,t,n):t.codecType.startsWith(ve)?new Se(e,t,n):void 0)(e.codecConstructor,e.options,t);return{async append(t){try{return await n.append(t)}catch(t){throw e.onTaskFinished(),t}},async flush(){try{return await n.flush()}finally{e.onTaskFinished()}},abort(){e.onTaskFinished()}}})(e,r));let De=[],Ce=[];function We(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const Ie="Abort error";function Le(e,t){if(e&&e.aborted)throw t.abort(),new c(Ie)}async function Be(e,t){return t.length&&await e.writeUint8Array(t),t.length}const He="HTTP error ",Ne="HTTP Range not supported",Me="text/plain",Oe="GET";class Pe{constructor(){this.size=0}init(){this.initialized=!0}}class qe extends Pe{}class Ve extends Pe{writeUint8Array(e){this.size+=e.length}}class Ze extends qe{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){if(this.blob.arrayBuffer)return new d(await this.blob.slice(e,e+t).arrayBuffer());{const n=new g;return new w(((i,r)=>{n.onload=e=>i(new d(e.target.result)),n.onerror=()=>r(n.error),n.readAsArrayBuffer(this.blob.slice(e,e+t))}))}}}class Ge extends qe{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=n.assign({},t),delete this.options.preventHeadRequest,delete this.options.useRangeHeader,delete this.options.forceRangeRequests,delete this.options.useXHR}async init(){super.init(),await je(this,nt,Qe)}async readUint8Array(e,t){return Xe(this,e,t,nt,Qe)}}class Ke extends qe{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=t}async init(){super.init(),await je(this,it,$e)}async readUint8Array(e,t){return Xe(this,e,t,it,$e)}}async function je(e,t,n){if((e=>{if(void 0!==y){const t=y.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)})(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const i=await t(Oe,e,Ye(e));if(!e.forceRangeRequests&&"bytes"!=i.headers.get("Accept-Ranges"))throw new c(Ne);{let r;const a=i.headers.get("Content-Range");if(a){const e=a.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(r=Number(t))}}void 0===r?await tt(e,t,n):e.size=r}}else await tt(e,t,n)}async function Xe(e,t,n,i,r){if(e.useRangeHeader||e.forceRangeRequests){const r=await i(Oe,e,Ye(e,t,n));if(206!=r.status)throw new c(Ne);return new d(await r.arrayBuffer())}return e.data||await r(e,e.options),new d(e.data.subarray(t,t+n))}function Ye(e,t=0,i=1){return n.assign({},Je(e),{Range:"bytes="+t+"-"+(t+i-1)})}function Je(e){let t=e.options.headers;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function Qe(e){await et(e,nt)}async function $e(e){await et(e,it)}async function et(e,t){const n=await t(Oe,e,Je(e));e.data=new d(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function tt(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const i=(await t("HEAD",e,Je(e))).headers.get("Content-Length");i?e.size=Number(i):await n(e,e.options)}}async function nt(e,{options:t,url:i},r){const a=await fetch(i,n.assign({},t,{method:e,headers:r}));if(400>a.status)return a;throw new c(He+(a.statusText||a.status))}function it(e,{url:t},i){return new w(((r,a)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",(()=>{if(400>s.status){const e=[];s.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),r({status:s.status,arrayBuffer:()=>s.response,headers:new o(e)})}else a(new c(He+(s.statusText||s.status)))}),!1),s.addEventListener("error",(e=>a(e.detail.error)),!1),s.open(e,t),i)for(const e of n.entries(i))s.setRequestHeader(e[0],e[1]);s.responseType="arraybuffer",s.send()}))}class rt extends qe{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new Ke(e,t):this.reader=new Ge(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}async readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}const at=4294967295,st=33639248,ot=101075792,lt="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");async function ct(e,t){if(t&&"cp437"==t.trim().toLowerCase())return(e=>{let t="";for(let n=0;n<e.length;n++)t+=lt[e[n]];return t})(e);if(void 0===b){const t=new g;return new w(((n,i)=>{t.onload=e=>n(e.target.result),t.onerror=()=>i(t.error),t.readAsText(new _([e]))}))}return new b(t).decode(e)}const dt=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class ut{constructor(e){dt.forEach((t=>this[t]=e[t]))}}const ft="File format is not recognized",ht="End of central directory not found",_t="End of Zip64 central directory not found",wt="End of Zip64 central directory locator not found",pt="Central directory header not found",bt="Local file header not found",gt="Zip64 extra field not found",yt="File contains encrypted entry",xt="Encryption method not supported",mt="Compression method not supported",kt="utf-8",vt="cp437",Rt=["uncompressedSize","compressedSize","offset"];class St{constructor(e,t,i){n.assign(this,{reader:e,config:t,options:i})}async getData(e,t,n={}){const i=this,{reader:r,offset:s,extraFieldAES:o,compressionMethod:l,config:d,bitFlag:u,signature:f,rawLastModDate:h,compressedSize:_}=i,p=i.localDirectory={};r.initialized||await r.init();let b=await Bt(r,s,30);const g=Lt(b);let y=zt(i,n,"password");if(y=y&&y.length&&y,o&&99!=o.originalCompressionMethod)throw new c(mt);if(0!=l&&8!=l)throw new c(mt);if(67324752!=Wt(g,0))throw new c(bt);At(p,g,4),b=await Bt(r,s,30+p.filenameLength+p.extraFieldLength),p.rawExtraField=b.subarray(30+p.filenameLength),await Tt(i,p,g,4),t.lastAccessDate=p.lastAccessDate,t.creationDate=p.creationDate;const x=i.encrypted&&p.encrypted,m=x&&!o;if(x){if(!m&&void 0===o.strength)throw new c(xt);if(!y)throw new c(yt)}const k=await((e,t,n)=>{const i=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||void 0===t.useWebWorkers&&n.useWebWorkers),r=i&&n.workerScripts?n.workerScripts[t.codecType]:[];if(De.length<n.maxWorkers){const s={};return De.push(s),Fe(s,e,t,n,a,i,r)}{const s=De.find((e=>!e.busy));return s?(We(s),Fe(s,e,t,n,a,i,r)):new w((n=>Ce.push({resolve:n,codecConstructor:e,options:t,webWorker:i,scripts:r})))}function a(e){if(Ce.length){const[{resolve:t,codecConstructor:i,options:r,webWorker:s,scripts:o}]=Ce.splice(0,1);t(Fe(e,i,r,n,a,s,o))}else e.worker?(We(e),Number.isFinite(n.terminateWorkerTimeout)&&n.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{De=De.filter((t=>t!=e)),e.terminate()}),n.terminateWorkerTimeout))):De=De.filter((t=>t!=e))}})(d.Inflate,{codecType:ve,password:y,zipCrypto:m,encryptionStrength:o&&o.strength,signed:zt(i,n,"checkSignature"),passwordVerification:m&&(u.dataDescriptor?h>>>8&255:f>>>24&255),signature:f,compressed:0!=l,encrypted:x,useWebWorkers:zt(i,n,"useWebWorkers")},d);e.initialized||await e.init();const v=zt(i,n,"signal"),R=s+30+p.filenameLength+p.extraFieldLength;return await(async(e,t,n,i,r,s,o)=>{const l=a.max(s.chunkSize,64);return async function s(c=0,d=0){const u=o.signal;if(r>c){Le(u,e);const f=await t.readUint8Array(c+i,a.min(l,r-c)),h=f.length;Le(u,e);const _=await e.append(f);if(Le(u,e),d+=await Be(n,_),o.onprogress)try{o.onprogress(c+h,r)}catch(e){}return s(c+l,d)}{const t=await e.flush();return d+=await Be(n,t.data),{signature:t.signature,length:d}}}()})(k,r,e,R,_,d,{onprogress:n.onprogress,signal:v}),e.getData()}}function At(e,t,i){const r=e.rawBitFlag=Ct(t,i+2),a=1==(1&r),s=Wt(t,i+6);n.assign(e,{encrypted:a,version:Ct(t,i),bitFlag:{level:(6&r)>>1,dataDescriptor:8==(8&r),languageEncodingFlag:2048==(2048&r)},rawLastModDate:s,lastModDate:Et(s),filenameLength:Ct(t,i+22),extraFieldLength:Ct(t,i+24)})}async function Tt(e,t,i,r){const l=t.rawExtraField,u=t.extraField=new o,f=Lt(new d(l));let h=0;try{for(;h<l.length;){const e=Ct(f,h),t=Ct(f,h+2);u.set(e,{type:e,data:l.slice(h+4,h+4+t)}),h+=4+t}}catch(e){}const _=Ct(i,r+4);t.signature=Wt(i,r+10),t.uncompressedSize=Wt(i,r+18),t.compressedSize=Wt(i,r+14);const w=u.get(1);w&&(((e,t)=>{t.zip64=!0;const n=Lt(e.data);e.values=[];for(let t=0;t<a.floor(e.data.length/8);t++)e.values.push(It(n,0+8*t));const i=Rt.filter((e=>t[e]==at));for(let t=0;t<i.length;t++)e[i[t]]=e.values[t];Rt.forEach((n=>{if(t[n]==at){if(void 0===e[n])throw new c(gt);t[n]=e[n]}}))})(w,t),t.extraFieldZip64=w);const p=u.get(28789);p&&(await Ut(p,"filename","rawFilename",t,e),t.extraFieldUnicodePath=p);const b=u.get(25461);b&&(await Ut(b,"comment","rawComment",t,e),t.extraFieldUnicodeComment=b);const g=u.get(39169);g?(((e,t,n)=>{const i=Lt(e.data);e.vendorVersion=Dt(i,0),e.vendorId=Dt(i,2);const r=Dt(i,4);e.strength=r,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=Ct(i,5)})(g,t,_),t.extraFieldAES=g):t.compressionMethod=_;const y=u.get(10);y&&(((e,t)=>{const i=Lt(e.data);let r,a=4;try{for(;a<e.data.length&&!r;){const t=Ct(i,a),n=Ct(i,a+2);1==t&&(r=e.data.slice(a+4,a+4+n)),a+=4+n}}catch(e){}try{if(r&&24==r.length){const i=Lt(r),a=i.getBigUint64(0,!0),s=i.getBigUint64(8,!0),o=i.getBigUint64(16,!0);n.assign(e,{rawLastModDate:a,rawLastAccessDate:s,rawCreationDate:o});const l={lastModDate:Ft(a),lastAccessDate:Ft(s),creationDate:Ft(o)};n.assign(e,l),n.assign(t,l)}}catch(e){}})(y,t),t.extraFieldNTFS=y);const x=u.get(21589);x&&(((e,t)=>{const n=Lt(e.data),i=Dt(n,0),r=[],a=[];1==(1&i)&&(r.push("lastModDate"),a.push("rawLastModDate")),2==(2&i)&&(r.push("lastAccessDate"),a.push("rawLastAccessDate")),4==(4&i)&&(r.push("creationDate"),a.push("rawCreationDate"));let o=1;r.forEach(((i,r)=>{if(e.data.length>=o+4){const l=Wt(n,o);t[i]=e[i]=new s(1e3*l);const c=a[r];e[c]=l}o+=4}))})(x,t),t.extraFieldExtendedTimestamp=x)}async function Ut(e,t,n,i,r){const a=Lt(e.data);e.version=Dt(a,0),e.signature=Wt(a,1);const s=new V;s.append(r[n]);const o=Lt(new d(4));o.setUint32(0,s.get(),!0),e[t]=await ct(e.data.subarray(5)),e.valid=!r.bitFlag.languageEncodingFlag&&e.signature==Wt(o,0),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function zt(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function Et(e){const t=(4294901760&e)>>16,n=65535&e;try{return new s(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function Ft(e){return new s(Number(e/r(1e4)-r(116444736e5)))}function Dt(e,t){return e.getUint8(t)}function Ct(e,t){return e.getUint16(t,!0)}function Wt(e,t){return e.getUint32(t,!0)}function It(e,t){return Number(e.getBigUint64(t,!0))}function Lt(e){return new h(e.buffer)}function Bt(e,t,n){return e.readUint8Array(t,n)}P({Inflate:function(e){const t=new N,n=e&&e.chunkSize?a.floor(2*e.chunkSize):131072,i=new d(n);let r=!1;t.inflateInit(),t.next_out=i,this.append=(e,a)=>{const s=[];let o,l,u=0,f=0,h=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||r||(t.next_in_index=0,r=!0),o=t.inflate(0),r&&o===R){if(0!==t.avail_in)throw new c("inflating: bad input")}else if(0!==o&&1!==o)throw new c("inflating: "+t.msg);if((r||1===o)&&t.avail_in===e.length)throw new c("inflating: bad input");t.next_out_index&&(t.next_out_index===n?s.push(new d(i)):s.push(i.slice(0,t.next_out_index))),h+=t.next_out_index,a&&t.next_in_index>0&&t.next_in_index!=u&&(a(t.next_in_index),u=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return s.length>1?(l=new d(h),s.forEach((e=>{l.set(e,f),f+=e.length}))):l=s[0]||new d(0),l}},this.flush=()=>{t.inflateEnd()}}}),e.BlobReader=Ze,e.BlobWriter=class extends Ve{constructor(e){super(),this.contentType=e,this.arrayBuffers=[]}async writeUint8Array(e){super.writeUint8Array(e),this.arrayBuffers.push(e.buffer)}getData(){return this.blob||(this.blob=new _(this.arrayBuffers,{type:this.contentType})),this.blob}},e.Data64URIReader=class extends qe{constructor(e){super(),this.dataURI=e;let t=e.length;for(;"="==e.charAt(t-1);)t--;this.dataStart=e.indexOf(",")+1,this.size=a.floor(.75*(t-this.dataStart))}async readUint8Array(e,t){const n=new d(t),i=4*a.floor(e/3),r=atob(this.dataURI.substring(i+this.dataStart,4*a.ceil((e+t)/3)+this.dataStart)),s=e-3*a.floor(i/4);for(let e=s;s+t>e;e++)n[e-s]=r.charCodeAt(e);return n}},e.Data64URIWriter=class extends Ve{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}async writeUint8Array(e){super.writeUint8Array(e);let t=0,n=this.pending;const r=this.pending.length;for(this.pending="",t=0;t<3*a.floor((r+e.length)/3)-r;t++)n+=i.fromCharCode(e[t]);for(;t<e.length;t++)this.pending+=i.fromCharCode(e[t]);n.length>2?this.data+=m(n):this.pending=n}getData(){return this.data+m(this.pending)}},e.ERR_ABORT=Ie,e.ERR_BAD_FORMAT=ft,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=pt,e.ERR_ENCRYPTED=yt,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=wt,e.ERR_EOCDR_NOT_FOUND=ht,e.ERR_EOCDR_ZIP64_NOT_FOUND=_t,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=gt,e.ERR_HTTP_RANGE=Ne,e.ERR_INVALID_PASSWORD=j,e.ERR_INVALID_SIGNATURE=Re,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=bt,e.ERR_UNSUPPORTED_COMPRESSION=mt,e.ERR_UNSUPPORTED_ENCRYPTION=xt,e.HttpRangeReader=class extends rt{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=rt,e.Reader=qe,e.TextReader=class extends qe{constructor(e){super(),this.blobReader=new Ze(new _([e],{type:Me}))}async init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}async readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},e.TextWriter=class extends Ve{constructor(e){super(),this.encoding=e,this.blob=new _([],{type:Me})}async writeUint8Array(e){super.writeUint8Array(e),this.blob=new _([this.blob,e.buffer],{type:Me})}getData(){if(this.blob.text)return this.blob.text();{const e=new g;return new w(((t,n)=>{e.onload=e=>t(e.target.result),e.onerror=()=>n(e.error),e.readAsText(this.blob,this.encoding)}))}}},e.Uint8ArrayReader=class extends qe{constructor(e){super(),this.array=e,this.size=e.length}async readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends Ve{constructor(){super(),this.array=new d(0)}async writeUint8Array(e){super.writeUint8Array(e);const t=this.array;this.array=new d(t.length+e.length),this.array.set(t),this.array.set(e,t.length)}getData(){return this.array}},e.WritableStreamWriter=class extends Ve{constructor(e){super(),this.writableStream=e,this.writer=e.getWriter()}async writeUint8Array(e){return await this.writer.ready,this.writer.write(e)}async getData(){return await this.writer.ready,await this.writer.close(),this.writableStream}},e.Writer=Ve,e.ZipReader=class{constructor(e,t={}){n.assign(this,{reader:e,options:t,config:O})}async getEntries(e={}){const t=this,i=t.reader;if(i.initialized||await i.init(),22>i.size)throw new c(ft);const r=await(async(e,t,n)=>{const i=new d(4);return Lt(i).setUint32(0,101010256,!0),await r(22)||await r(a.min(1048582,n));async function r(t){const r=n-t,a=await Bt(e,r,t);for(let e=a.length-22;e>=0;e--)if(a[e]==i[0]&&a[e+1]==i[1]&&a[e+2]==i[2]&&a[e+3]==i[3])return{offset:r+e,buffer:a.slice(e,e+22).buffer}}})(i,0,i.size);if(!r)throw new c(ht);const s=Lt(r);let o=Wt(s,12),l=Wt(s,16),u=Ct(s,8),f=0;if(l==at||o==at||65535==u){const e=Lt(await Bt(i,r.offset-20,20));if(117853008!=Wt(e,0))throw new c(_t);l=It(e,8);let t=await Bt(i,l,56),n=Lt(t);const a=r.offset-20-56;if(Wt(n,0)!=ot&&l!=a){const e=l;l=a,f=l-e,t=await Bt(i,l,56),n=Lt(t)}if(Wt(n,0)!=ot)throw new c(wt);u=It(n,32),o=It(n,40),l-=o}if(0>l||l>=i.size)throw new c(ft);let h=0,_=await Bt(i,l,o),p=Lt(_);if(o){const e=r.offset-o;if(Wt(p,h)!=st&&l!=e){const t=l;l=e,f=l-t,_=await Bt(i,l,o),p=Lt(_)}}if(0>l||l>=i.size)throw new c(ft);const b=[];for(let r=0;u>r;r++){const a=new St(i,t.config,t.options);if(Wt(p,h)!=st)throw new c(pt);At(a,p,h+6);const s=!!a.bitFlag.languageEncodingFlag,o=h+46,l=o+a.filenameLength,d=l+a.extraFieldLength,g=Ct(p,h+4),y=0==(0&g);n.assign(a,{versionMadeBy:g,msDosCompatible:y,compressedSize:0,uncompressedSize:0,commentLength:Ct(p,h+32),directory:y&&16==(16&Dt(p,h+38)),offset:Wt(p,h+42)+f,internalFileAttribute:Wt(p,h+34),externalFileAttribute:Wt(p,h+38),rawFilename:_.subarray(o,l),filenameUTF8:s,commentUTF8:s,rawExtraField:_.subarray(l,d)});const x=d+a.commentLength;a.rawComment=_.subarray(d,x);const m=zt(t,e,"filenameEncoding"),k=zt(t,e,"commentEncoding"),[v,R]=await w.all([ct(a.rawFilename,a.filenameUTF8?kt:m||vt),ct(a.rawComment,a.commentUTF8?kt:k||vt)]);a.filename=v,a.comment=R,!a.directory&&a.filename.endsWith("/")&&(a.directory=!0),await Tt(a,a,p,h+6);const S=new ut(a);if(S.getData=(e,t)=>a.getData(e,S,t),b.push(S),h=x,e.onprogress)try{e.onprogress(r+1,u,new ut(a))}catch(e){}}return b}async close(){}},e.configure=P,e.getMimeType=()=>"application/octet-stream",e.terminateWorkers=()=>{De.forEach((e=>{We(e),e.terminate()}))},n.defineProperty(e,"__esModule",{value:!0})}));

@@ -6,3 +6,3 @@ {

"license": "BSD-3-Clause",
"version": "2.4.6",
"version": "2.4.7",
"type": "module",

@@ -9,0 +9,0 @@ "keywords": [

@@ -12,3 +12,2 @@ import { babel } from "@rollup/plugin-babel";

unsafe_comps: true,
unsafe_math: true,
unsafe_symbols: true,

@@ -15,0 +14,0 @@ unsafe_proto: true,

@@ -14,3 +14,2 @@ import { nodeResolve } from "@rollup/plugin-node-resolve";

unsafe_comps: true,
unsafe_math: true,
unsafe_symbols: true,

@@ -17,0 +16,0 @@ unsafe_proto: true,

@@ -10,3 +10,2 @@ import replace from "@rollup/plugin-replace";

unsafe_comps: true,
unsafe_math: true,
unsafe_symbols: true,

@@ -13,0 +12,0 @@ unsafe_proto: true,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc