Autarch/web/static/js/lib/fastboot-bundle.js
DigiJ ffe47c51b5 Initial public release — AUTARCH v1.0.0
Full security platform with web dashboard, 16 Flask blueprints, 26 modules,
autonomous AI agent, WebUSB hardware support, and Archon Android companion app.

Includes Hash Toolkit, debug console, anti-stalkerware shield, Metasploit/RouterSploit
integration, WireGuard VPN, OSINT reconnaissance, and multi-backend LLM support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:57:32 -08:00

4 lines
145 KiB
JavaScript

var Fastboot=(()=>{var Yn=Object.defineProperty;var yr=Object.getOwnPropertyDescriptor;var kr=Object.getOwnPropertyNames;var Er=Object.prototype.hasOwnProperty;var Ar=(n,t)=>{for(var e in t)Yn(n,e,{get:t[e],enumerable:!0})},Sr=(n,t,e,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of kr(t))!Er.call(n,s)&&s!==e&&Yn(n,s,{get:()=>t[s],enumerable:!(a=yr(t,s))||a.enumerable});return n};var Ir=n=>Sr(Yn({},"__esModule",{value:!0}),n);var vo={};Ar(vo,{FastbootDevice:()=>Hn,setDebugLevel:()=>Na});var go={},fi;(function(n){n[n.Silent=0]="Silent",n[n.Debug=1]="Debug",n[n.Verbose=2]="Verbose"})(fi||(fi={}));var Ti=fi.Silent;function Oe(...n){Ti>=1&&console.log(...n)}function Bt(...n){Ti>=2&&console.log(...n)}function Na(n){Ti=n}function Rt(n){return new Promise((t,e)=>{let a=new FileReader;a.onload=()=>{t(a.result)},a.onerror=()=>{e(a.error)},a.readAsArrayBuffer(n)})}function Tr(){return new Promise((n,t)=>{window.requestAnimationFrame(n)})}async function an(n,t,e,a,s){let c=new Date().getTime(),u=!1;n(t,e,0);let v=(async()=>{let b,U=c+a;do b=new Date().getTime(),n(t,e,(b-c)/a),await Tr();while(!u&&b<U)})();await Promise.race([v,s]),u=!0,await v,await s,n(t,e,1)}var ui=class extends Error{constructor(t){super(`Timeout of ${t} ms exceeded`),this.name="TimeoutError",this.timeout=t}};function Ur(n,t){return new Promise((e,a)=>{let s=!1,c=setTimeout(()=>{s=!0,a(new ui(t))},t);n.then(u=>{s||e(u)}).catch(u=>{s||a(u)}).finally(()=>{s||clearTimeout(c)})})}var $a=3978755898,Ha=1,Pa=0,Mt=28,_t=12,Rr=64*1024*1024,Zt=class extends Error{constructor(t){super(t),this.name="ImageError"}},Kt;(function(n){n[n.Raw=51905]="Raw",n[n.Fill=51906]="Fill",n[n.Skip=51907]="Skip",n[n.Crc32=51908]="Crc32"})(Kt||(Kt={}));function qa(n){let t=new DataView(n);if(t.getUint32(0,!0)!==$a)return null;let a=t.getUint16(4,!0),s=t.getUint16(6,!0);if(a!==Ha||s<Pa)throw new Zt(`Unsupported sparse image version ${a}.${s}`);let c=t.getUint16(8,!0),u=t.getUint16(10,!0);if(c!==Mt||u!==_t)throw new Zt(`Invalid file header size ${c}, chunk header size ${u}`);let v=t.getUint32(12,!0);if(v%4!==0)throw new Zt(`Block size ${v} is not a multiple of 4`);return{blockSize:v,blocks:t.getUint32(16,!0),chunks:t.getUint32(20,!0),crc32:t.getUint32(24,!0)}}function Dr(n){let t=new DataView(n);return{type:t.getUint16(0,!0),blocks:t.getUint32(4,!0),dataBytes:t.getUint32(8,!0)-_t,data:null}}function Hi(n){return n.map(t=>t.blocks).reduce((t,e)=>t+e,0)}function Or(n){return n.map(t=>t.data.byteLength).reduce((t,e)=>t+e,0)}function Va(n){return Mt+_t*n.length+Or(n)}function _i(n,t){let e=new ArrayBuffer(Va(t)),a=new DataView(e),s=new Uint8Array(e);a.setUint32(0,$a,!0),a.setUint16(4,Ha,!0),a.setUint16(6,Pa,!0),a.setUint16(8,Mt,!0),a.setUint16(10,_t,!0),a.setUint32(12,n.blockSize,!0),a.setUint32(16,n.blocks,!0),a.setUint32(20,t.length,!0),a.setUint32(24,0,!0);let c=Mt;for(let u of t){a.setUint16(c,u.type,!0),a.setUint16(c+2,0,!0),a.setUint32(c+4,u.blocks,!0),a.setUint32(c+8,_t+u.data.byteLength,!0),c+=_t;let v=new Uint8Array(u.data);s.set(v,c),c+=u.data.byteLength}return e}function Cr(n){let t={blockSize:4096,blocks:n.byteLength/4096,chunks:1,crc32:0},e=[];for(;n.byteLength>0;){let a=Math.min(n.byteLength,Rr);e.push({type:Kt.Raw,blocks:a/t.blockSize,data:n.slice(0,a)}),n=n.slice(a)}return _i(t,e)}async function*Fr(n,t){if(Oe(`Splitting ${n.size}-byte sparse image into ${t}-byte chunks`),n.size<=t){Oe("Blob fits in 1 payload, not splitting"),yield{data:await Rt(n),bytes:n.size};return}let e=await Rt(n.slice(0,Mt)),a=qa(e);if(a===null)throw new Zt("Blob is not a sparse image");a.crc32=0,n=n.slice(Mt);let s=[],c=0;for(let u=0;u<a.chunks;u++){let v=await Rt(n.slice(0,_t)),b=Dr(v);b.data=await Rt(n.slice(_t,_t+b.dataBytes)),n=n.slice(_t+b.dataBytes);let U=t-Va(s);if(Bt(` Chunk ${u}: type ${b.type}, ${b.dataBytes} bytes / ${b.blocks} blocks, ${U} bytes remaining`),U>=b.dataBytes)Bt(" Space is available, adding chunk"),s.push(b),c+=b.blocks*a.blockSize;else{let E=Hi(s);s.push({type:Kt.Skip,blocks:a.blocks-E,data:new ArrayBuffer(0),dataBytes:0}),Bt(`Partition is ${a.blocks} blocks, used ${E}, padded with ${a.blocks-E}, finishing split with ${Hi(s)} blocks`);let D=_i(a,s);Oe(`Finished ${D.byteLength}-byte split with ${s.length} chunks`),yield{data:D,bytes:c},Bt(`Starting new split: skipping first ${E} blocks and adding chunk`),s=[{type:Kt.Skip,blocks:E,data:new ArrayBuffer(0),dataBytes:0},b],c=0}}if(s.length>0&&(s.length>1||s[0].type!==Kt.Skip)){let u=_i(a,s);Oe(`Finishing final ${u.byteLength}-byte split with ${s.length} chunks`),yield{data:u,bytes:c}}}var _n=15,pi=30,xi=19,Lr=29,Ln=256,Ui=Ln+1+Lr,Pi=2*Ui+1,rn=256,Br=7,qi=16,Vi=17,Wi=18,Xn=8*2,Bn=-1,Mr=1,gn=2,jr=0,Vt=0,Gi=1,Nr=3,Ge=4,lt=0,Wa=1,vn=2,ct=-2,$r=-3,Pt=-5;function Ga(n){return n.map(([t,e])=>new Array(t).fill(e,0,t)).flat()}var Zi=[0,1,2,3].concat(...Ga([[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 Ce(){let n=this;function t(s){let c=n.dyn_tree,u=n.stat_desc.static_tree,v=n.stat_desc.extra_bits,b=n.stat_desc.extra_base,U=n.stat_desc.max_length,E,D,O,Y,ae,y,_=0;for(Y=0;Y<=_n;Y++)s.bl_count[Y]=0;for(c[s.heap[s.heap_max]*2+1]=0,E=s.heap_max+1;E<Pi;E++)D=s.heap[E],Y=c[c[D*2+1]*2+1]+1,Y>U&&(Y=U,_++),c[D*2+1]=Y,!(D>n.max_code)&&(s.bl_count[Y]++,ae=0,D>=b&&(ae=v[D-b]),y=c[D*2],s.opt_len+=y*(Y+ae),u&&(s.static_len+=y*(u[D*2+1]+ae)));if(_!==0){do{for(Y=U-1;s.bl_count[Y]===0;)Y--;s.bl_count[Y]--,s.bl_count[Y+1]+=2,s.bl_count[U]--,_-=2}while(_>0);for(Y=U;Y!==0;Y--)for(D=s.bl_count[Y];D!==0;)O=s.heap[--E],!(O>n.max_code)&&(c[O*2+1]!=Y&&(s.opt_len+=(Y-c[O*2+1])*c[O*2],c[O*2+1]=Y),D--)}}function e(s,c){let u=0;do u|=s&1,s>>>=1,u<<=1;while(--c>0);return u>>>1}function a(s,c,u){let v=[],b=0,U,E,D;for(U=1;U<=_n;U++)v[U]=b=b+u[U-1]<<1;for(E=0;E<=c;E++)D=s[E*2+1],D!==0&&(s[E*2]=e(v[D]++,D))}n.build_tree=function(s){let c=n.dyn_tree,u=n.stat_desc.static_tree,v=n.stat_desc.elems,b,U,E=-1,D;for(s.heap_len=0,s.heap_max=Pi,b=0;b<v;b++)c[b*2]!==0?(s.heap[++s.heap_len]=E=b,s.depth[b]=0):c[b*2+1]=0;for(;s.heap_len<2;)D=s.heap[++s.heap_len]=E<2?++E:0,c[D*2]=1,s.depth[D]=0,s.opt_len--,u&&(s.static_len-=u[D*2+1]);for(n.max_code=E,b=Math.floor(s.heap_len/2);b>=1;b--)s.pqdownheap(c,b);D=v;do b=s.heap[1],s.heap[1]=s.heap[s.heap_len--],s.pqdownheap(c,1),U=s.heap[1],s.heap[--s.heap_max]=b,s.heap[--s.heap_max]=U,c[D*2]=c[b*2]+c[U*2],s.depth[D]=Math.max(s.depth[b],s.depth[U])+1,c[b*2+1]=c[U*2+1]=D,s.heap[1]=D++,s.pqdownheap(c,1);while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1],t(s),a(c,n.max_code,s.bl_count)}}Ce._length_code=[0,1,2,3,4,5,6,7].concat(...Ga([[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]]));Ce.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];Ce.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];Ce.d_code=function(n){return n<256?Zi[n]:Zi[256+(n>>>7)]};Ce.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];Ce.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];Ce.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Ce.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Ne(n,t,e,a,s){let c=this;c.static_tree=n,c.extra_bits=t,c.extra_base=e,c.elems=a,c.max_length=s}Ne.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8];Ne.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5];Ne.static_l_desc=new Ne(Ne.static_ltree,Ce.extra_lbits,Ln+1,Ui,_n);Ne.static_d_desc=new Ne(Ne.static_dtree,Ce.extra_dbits,0,pi,_n);Ne.static_bl_desc=new Ne(null,Ce.extra_blbits,0,xi,Br);var Hr=9,Pr=8;function ft(n,t,e,a,s){let c=this;c.good_length=n,c.max_lazy=t,c.nice_length=e,c.max_chain=a,c.func=s}var Za=0,Dn=1,Ct=2,ot=[new ft(0,0,0,0,Za),new ft(4,4,8,4,Dn),new ft(4,5,16,8,Dn),new ft(4,6,32,32,Dn),new ft(4,4,16,16,Ct),new ft(8,16,32,32,Ct),new ft(8,16,128,128,Ct),new ft(8,32,128,256,Ct),new ft(32,128,258,1024,Ct),new ft(32,258,258,4096,Ct)],yn=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],nt=0,kn=1,sn=2,En=3,qr=32,Jn=42,An=113,on=666,Qn=8,Vr=0,zn=1,Wr=2,Le=3,On=258,Xe=On+Le+1;function Ki(n,t,e,a){let s=n[t*2],c=n[e*2];return s<c||s==c&&a[t]<=a[e]}function Gr(){let n=this,t,e,a,s,c,u,v,b,U,E,D,O,Y,ae,y,_,w,I,M,V,L,C,B,$,G,Z,H,me,re,Ee,de,le,ve,Ae=new Ce,at=new Ce,fe=new Ce;n.depth=[];let dt,Se,ke,ht,Nt,vt,we,Te;n.bl_count=[],n.heap=[],de=[],le=[],ve=[];function et(){U=2*c,D[Y-1]=0;for(let l=0;l<Y-1;l++)D[l]=0;Z=ot[H].max_lazy,re=ot[H].good_length,Ee=ot[H].nice_length,G=ot[H].max_chain,L=0,w=0,B=0,I=$=Le-1,V=0,O=0}function We(){let l;for(l=0;l<Ui;l++)de[l*2]=0;for(l=0;l<pi;l++)le[l*2]=0;for(l=0;l<xi;l++)ve[l*2]=0;de[rn*2]=1,n.opt_len=n.static_len=0,ke=Nt=0}function $t(){Ae.dyn_tree=de,Ae.stat_desc=Ne.static_l_desc,at.dyn_tree=le,at.stat_desc=Ne.static_d_desc,fe.dyn_tree=ve,fe.stat_desc=Ne.static_bl_desc,we=0,Te=0,vt=8,We()}n.pqdownheap=function(l,f){let m=n.heap,x=m[f],A=f<<1;for(;A<=n.heap_len&&(A<n.heap_len&&Ki(l,m[A+1],m[A],n.depth)&&A++,!Ki(l,x,m[A],n.depth));)m[f]=m[A],f=A,A<<=1;m[f]=x};function Xt(l,f){let m=-1,x,A=l[0*2+1],T=0,N=7,W=4;A===0&&(N=138,W=3),l[(f+1)*2+1]=65535;for(let oe=0;oe<=f;oe++)x=A,A=l[(oe+1)*2+1],!(++T<N&&x==A)&&(T<W?ve[x*2]+=T:x!==0?(x!=m&&ve[x*2]++,ve[qi*2]++):T<=10?ve[Vi*2]++:ve[Wi*2]++,T=0,m=x,A===0?(N=138,W=3):x==A?(N=6,W=3):(N=7,W=4))}function Pn(){let l;for(Xt(de,Ae.max_code),Xt(le,at.max_code),fe.build_tree(n),l=xi-1;l>=3&&ve[Ce.bl_order[l]*2+1]===0;l--);return n.opt_len+=3*(l+1)+5+5+4,l}function mt(l){n.pending_buf[n.pending++]=l}function Dt(l){mt(l&255),mt(l>>>8&255)}function He(l){mt(l>>8&255),mt(l&255&255)}function je(l,f){let m,x=f;Te>Xn-x?(m=l,we|=m<<Te&65535,Dt(we),we=m>>>Xn-Te,Te+=x-Xn):(we|=l<<Te&65535,Te+=x)}function Ye(l,f){let m=l*2;je(f[m]&65535,f[m+1]&65535)}function hn(l,f){let m,x=-1,A,T=l[0*2+1],N=0,W=7,oe=4;for(T===0&&(W=138,oe=3),m=0;m<=f;m++)if(A=T,T=l[(m+1)*2+1],!(++N<W&&A==T)){if(N<oe)do Ye(A,ve);while(--N!==0);else A!==0?(A!=x&&(Ye(A,ve),N--),Ye(qi,ve),je(N-3,2)):N<=10?(Ye(Vi,ve),je(N-3,3)):(Ye(Wi,ve),je(N-11,7));N=0,x=A,T===0?(W=138,oe=3):A==T?(W=6,oe=3):(W=7,oe=4)}}function qn(l,f,m){let x;for(je(l-257,5),je(f-1,5),je(m-4,4),x=0;x<m;x++)je(ve[Ce.bl_order[x]*2+1],3);hn(de,l-1),hn(le,f-1)}function mn(){Te==16?(Dt(we),we=0,Te=0):Te>=8&&(mt(we&255),we>>>=8,Te-=8)}function Vn(){je(zn<<1,3),Ye(rn,Ne.static_ltree),mn(),1+vt+10-Te<9&&(je(zn<<1,3),Ye(rn,Ne.static_ltree),mn()),vt=7}function bt(l,f){let m,x,A;if(n.pending_buf[ht+ke*2]=l>>>8&255,n.pending_buf[ht+ke*2+1]=l&255,n.pending_buf[dt+ke]=f&255,ke++,l===0?de[f*2]++:(Nt++,l--,de[(Ce._length_code[f]+Ln+1)*2]++,le[Ce.d_code(l)*2]++),!(ke&8191)&&H>2){for(m=ke*8,x=L-w,A=0;A<pi;A++)m+=le[A*2]*(5+Ce.extra_dbits[A]);if(m>>>=3,Nt<Math.floor(ke/2)&&m<Math.floor(x/2))return!0}return ke==Se-1}function bn(l,f){let m,x,A=0,T,N;if(ke!==0)do m=n.pending_buf[ht+A*2]<<8&65280|n.pending_buf[ht+A*2+1]&255,x=n.pending_buf[dt+A]&255,A++,m===0?Ye(x,l):(T=Ce._length_code[x],Ye(T+Ln+1,l),N=Ce.extra_lbits[T],N!==0&&(x-=Ce.base_length[T],je(x,N)),m--,T=Ce.d_code(m),Ye(T,f),N=Ce.extra_dbits[T],N!==0&&(m-=Ce.base_dist[T],je(m,N)));while(A<ke);Ye(rn,l),vt=l[rn*2+1]}function Jt(){Te>8?Dt(we):Te>0&&mt(we&255),we=0,Te=0}function Wn(l,f,m){Jt(),vt=8,m&&(Dt(f),Dt(~f)),n.pending_buf.set(b.subarray(l,l+f),n.pending),n.pending+=f}function wn(l,f,m){je((Vr<<1)+(m?1:0),3),Wn(l,f,!0)}function Gn(l,f,m){let x,A,T=0;H>0?(Ae.build_tree(n),at.build_tree(n),T=Pn(),x=n.opt_len+3+7>>>3,A=n.static_len+3+7>>>3,A<=x&&(x=A)):x=A=f+5,f+4<=x&&l!=-1?wn(l,f,m):A==x?(je((zn<<1)+(m?1:0),3),bn(Ne.static_ltree,Ne.static_dtree)):(je((Wr<<1)+(m?1:0),3),qn(Ae.max_code+1,at.max_code+1,T+1),bn(de,le)),We(),m&&Jt()}function rt(l){Gn(w>=0?w:-1,L-w,l),w=L,t.flush_pending()}function Qt(){let l,f,m,x;do{if(x=U-B-L,x===0&&L===0&&B===0)x=c;else if(x==-1)x--;else if(L>=c+c-Xe){b.set(b.subarray(c,c+c),0),C-=c,L-=c,w-=c,l=Y,m=l;do f=D[--m]&65535,D[m]=f>=c?f-c:0;while(--l!==0);l=c,m=l;do f=E[--m]&65535,E[m]=f>=c?f-c:0;while(--l!==0);x+=c}if(t.avail_in===0)return;l=t.read_buf(b,L+B,x),B+=l,B>=Le&&(O=b[L]&255,O=(O<<_^b[L+1]&255)&y)}while(B<Xe&&t.avail_in!==0)}function o(l){let f=65535,m;for(f>a-5&&(f=a-5);;){if(B<=1){if(Qt(),B===0&&l==Vt)return nt;if(B===0)break}if(L+=B,B=0,m=w+f,(L===0||L>=m)&&(B=L-m,L=m,rt(!1),t.avail_out===0)||L-w>=c-Xe&&(rt(!1),t.avail_out===0))return nt}return rt(l==Ge),t.avail_out===0?l==Ge?sn:nt:l==Ge?En:kn}function r(l){let f=G,m=L,x,A,T=$,N=L>c-Xe?L-(c-Xe):0,W=Ee,oe=v,k=L+On,P=b[m+T-1],p=b[m+T];$>=re&&(f>>=2),W>B&&(W=B);do if(x=l,!(b[x+T]!=p||b[x+T-1]!=P||b[x]!=b[m]||b[++x]!=b[m+1])){m+=2,x++;do;while(b[++m]==b[++x]&&b[++m]==b[++x]&&b[++m]==b[++x]&&b[++m]==b[++x]&&b[++m]==b[++x]&&b[++m]==b[++x]&&b[++m]==b[++x]&&b[++m]==b[++x]&&m<k);if(A=On-(k-m),m=k-On,A>T){if(C=l,T=A,A>=W)break;P=b[m+T-1],p=b[m+T]}}while((l=E[l&oe]&65535)>N&&--f!==0);return T<=B?T:B}function i(l){let f=0,m;for(;;){if(B<Xe){if(Qt(),B<Xe&&l==Vt)return nt;if(B===0)break}if(B>=Le&&(O=(O<<_^b[L+(Le-1)]&255)&y,f=D[O]&65535,E[L&v]=D[O],D[O]=L),f!==0&&(L-f&65535)<=c-Xe&&me!=gn&&(I=r(f)),I>=Le)if(m=bt(L-C,I-Le),B-=I,I<=Z&&B>=Le){I--;do L++,O=(O<<_^b[L+(Le-1)]&255)&y,f=D[O]&65535,E[L&v]=D[O],D[O]=L;while(--I!==0);L++}else L+=I,I=0,O=b[L]&255,O=(O<<_^b[L+1]&255)&y;else m=bt(0,b[L]&255),B--,L++;if(m&&(rt(!1),t.avail_out===0))return nt}return rt(l==Ge),t.avail_out===0?l==Ge?sn:nt:l==Ge?En:kn}function d(l){let f=0,m,x;for(;;){if(B<Xe){if(Qt(),B<Xe&&l==Vt)return nt;if(B===0)break}if(B>=Le&&(O=(O<<_^b[L+(Le-1)]&255)&y,f=D[O]&65535,E[L&v]=D[O],D[O]=L),$=I,M=C,I=Le-1,f!==0&&$<Z&&(L-f&65535)<=c-Xe&&(me!=gn&&(I=r(f)),I<=5&&(me==Mr||I==Le&&L-C>4096)&&(I=Le-1)),$>=Le&&I<=$){x=L+B-Le,m=bt(L-1-M,$-Le),B-=$-1,$-=2;do++L<=x&&(O=(O<<_^b[L+(Le-1)]&255)&y,f=D[O]&65535,E[L&v]=D[O],D[O]=L);while(--$!==0);if(V=0,I=Le-1,L++,m&&(rt(!1),t.avail_out===0))return nt}else if(V!==0){if(m=bt(0,b[L-1]&255),m&&rt(!1),L++,B--,t.avail_out===0)return nt}else V=1,L++,B--}return V!==0&&(m=bt(0,b[L-1]&255),V=0),rt(l==Ge),t.avail_out===0?l==Ge?sn:nt:l==Ge?En:kn}function h(l){return l.total_in=l.total_out=0,l.msg=null,n.pending=0,n.pending_out=0,e=An,s=Vt,$t(),et(),lt}n.deflateInit=function(l,f,m,x,A,T){return x||(x=Qn),A||(A=Pr),T||(T=jr),l.msg=null,f==Bn&&(f=6),A<1||A>Hr||x!=Qn||m<9||m>15||f<0||f>9||T<0||T>gn?ct:(l.dstate=n,u=m,c=1<<u,v=c-1,ae=A+7,Y=1<<ae,y=Y-1,_=Math.floor((ae+Le-1)/Le),b=new Uint8Array(c*2),E=[],D=[],Se=1<<A+6,n.pending_buf=new Uint8Array(Se*4),a=Se*4,ht=Math.floor(Se/2),dt=3*Se,H=f,me=T,h(l))},n.deflateEnd=function(){return e!=Jn&&e!=An&&e!=on?ct:(n.pending_buf=null,D=null,E=null,b=null,n.dstate=null,e==An?$r:lt)},n.deflateParams=function(l,f,m){let x=lt;return f==Bn&&(f=6),f<0||f>9||m<0||m>gn?ct:(ot[H].func!=ot[f].func&&l.total_in!==0&&(x=l.deflate(Gi)),H!=f&&(H=f,Z=ot[H].max_lazy,re=ot[H].good_length,Ee=ot[H].nice_length,G=ot[H].max_chain),me=m,x)},n.deflateSetDictionary=function(l,f,m){let x=m,A,T=0;if(!f||e!=Jn)return ct;if(x<Le)return lt;for(x>c-Xe&&(x=c-Xe,T=m-x),b.set(f.subarray(T,T+x),0),L=x,w=x,O=b[0]&255,O=(O<<_^b[1]&255)&y,A=0;A<=x-Le;A++)O=(O<<_^b[A+(Le-1)]&255)&y,E[A&v]=D[O],D[O]=A;return lt},n.deflate=function(l,f){let m,x,A,T,N;if(f>Ge||f<0)return ct;if(!l.next_out||!l.next_in&&l.avail_in!==0||e==on&&f!=Ge)return l.msg=yn[vn-ct],ct;if(l.avail_out===0)return l.msg=yn[vn-Pt],Pt;if(t=l,T=s,s=f,e==Jn&&(x=Qn+(u-8<<4)<<8,A=(H-1&255)>>1,A>3&&(A=3),x|=A<<6,L!==0&&(x|=qr),x+=31-x%31,e=An,He(x)),n.pending!==0){if(t.flush_pending(),t.avail_out===0)return s=-1,lt}else if(t.avail_in===0&&f<=T&&f!=Ge)return t.msg=yn[vn-Pt],Pt;if(e==on&&t.avail_in!==0)return l.msg=yn[vn-Pt],Pt;if(t.avail_in!==0||B!==0||f!=Vt&&e!=on){switch(N=-1,ot[H].func){case Za:N=o(f);break;case Dn:N=i(f);break;case Ct:N=d(f);break}if((N==sn||N==En)&&(e=on),N==nt||N==sn)return t.avail_out===0&&(s=-1),lt;if(N==kn){if(f==Gi)Vn();else if(wn(0,0,!1),f==Nr)for(m=0;m<Y;m++)D[m]=0;if(t.flush_pending(),t.avail_out===0)return s=-1,lt}}return f!=Ge?lt:Wa}}function Ka(){let n=this;n.next_in_index=0,n.next_out_index=0,n.avail_in=0,n.total_in=0,n.avail_out=0,n.total_out=0}Ka.prototype={deflateInit:function(n,t){let e=this;return e.dstate=new Gr,t||(t=_n),e.dstate.deflateInit(e,n,t)},deflate:function(n){let t=this;return t.dstate?t.dstate.deflate(t,n):ct},deflateEnd:function(){let n=this;if(!n.dstate)return ct;let t=n.dstate.deflateEnd();return n.dstate=null,t},deflateParams:function(n,t){let e=this;return e.dstate?e.dstate.deflateParams(e,n,t):ct},deflateSetDictionary:function(n,t){let e=this;return e.dstate?e.dstate.deflateSetDictionary(e,n,t):ct},read_buf:function(n,t,e){let a=this,s=a.avail_in;return s>e&&(s=e),s===0?0:(a.avail_in-=s,n.set(a.next_in.subarray(a.next_in_index,a.next_in_index+s),t),a.next_in_index+=s,a.total_in+=s,s)},flush_pending:function(){let n=this,t=n.dstate.pending;t>n.avail_out&&(t=n.avail_out),t!==0&&(n.next_out.set(n.dstate.pending_buf.subarray(n.dstate.pending_out,n.dstate.pending_out+t),n.next_out_index),n.next_out_index+=t,n.dstate.pending_out+=t,n.total_out+=t,n.avail_out-=t,n.dstate.pending-=t,n.dstate.pending===0&&(n.dstate.pending_out=0))}};function Zr(n){let t=this,e=new Ka,a=n&&n.chunkSize?Math.floor(n.chunkSize*1.05):64*1024,s=Vt,c=new Uint8Array(a),u=n?n.level:Bn;typeof u>"u"&&(u=Bn),e.deflateInit(u),e.next_out=c,t.append=function(v,b){let U,E,D=0,O=0,Y=0,ae=[];if(v.length){e.next_in_index=0,e.next_in=v,e.avail_in=v.length;do{if(e.next_out_index=0,e.avail_out=a,U=e.deflate(s),U!=lt)throw new Error("deflating: "+e.msg);e.next_out_index&&(e.next_out_index==a?ae.push(new Uint8Array(c)):ae.push(c.slice(0,e.next_out_index))),Y+=e.next_out_index,b&&e.next_in_index>0&&e.next_in_index!=D&&(b(e.next_in_index),D=e.next_in_index)}while(e.avail_in>0||e.avail_out===0);return ae.length>1?(E=new Uint8Array(Y),ae.forEach(function(y){E.set(y,O),O+=y.length})):E=ae[0]||new Uint8Array(0),E}},t.flush=function(){let v,b,U=0,E=0,D=[];do{if(e.next_out_index=0,e.avail_out=a,v=e.deflate(Ge),v!=Wa&&v!=lt)throw new Error("deflating: "+e.msg);a-e.avail_out>0&&D.push(c.slice(0,e.next_out_index)),E+=e.next_out_index}while(e.avail_in>0||e.avail_out===0);return e.deflateEnd(),b=new Uint8Array(E),D.forEach(function(O){b.set(O,U),U+=O.length}),b}}var Kr=15,Ue=0,wt=1,Yr=2,Ze=-2,Fe=-3,Yi=-4,gt=-5,Je=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Ya=1440,Xr=0,Jr=4,Qr=9,zr=5,es=[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],ts=[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],ns=[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],is=[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],as=[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],rs=[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],It=15;function hi(){let n=this,t,e,a,s,c,u;function v(U,E,D,O,Y,ae,y,_,w,I,M){let V,L,C,B,$,G,Z,H,me,re,Ee,de,le,ve,Ae;re=0,$=D;do a[U[E+re]]++,re++,$--;while($!==0);if(a[0]==D)return y[0]=-1,_[0]=0,Ue;for(H=_[0],G=1;G<=It&&a[G]===0;G++);for(Z=G,H<G&&(H=G),$=It;$!==0&&a[$]===0;$--);for(C=$,H>$&&(H=$),_[0]=H,ve=1<<G;G<$;G++,ve<<=1)if((ve-=a[G])<0)return Fe;if((ve-=a[$])<0)return Fe;for(a[$]+=ve,u[1]=G=0,re=1,le=2;--$!==0;)u[le]=G+=a[re],le++,re++;$=0,re=0;do(G=U[E+re])!==0&&(M[u[G]++]=$),re++;while(++$<D);for(D=u[C],u[0]=$=0,re=0,B=-1,de=-H,c[0]=0,Ee=0,Ae=0;Z<=C;Z++)for(V=a[Z];V--!==0;){for(;Z>de+H;){if(B++,de+=H,Ae=C-de,Ae=Ae>H?H:Ae,(L=1<<(G=Z-de))>V+1&&(L-=V+1,le=Z,G<Ae))for(;++G<Ae&&!((L<<=1)<=a[++le]);)L-=a[le];if(Ae=1<<G,I[0]+Ae>Ya)return Fe;c[B]=Ee=I[0],I[0]+=Ae,B!==0?(u[B]=$,s[0]=G,s[1]=H,G=$>>>de-H,s[2]=Ee-c[B-1]-G,w.set(s,(c[B-1]+G)*3)):y[0]=Ee}for(s[1]=Z-de,re>=D?s[0]=192:M[re]<O?(s[0]=M[re]<256?0:96,s[2]=M[re++]):(s[0]=ae[M[re]-O]+16+64,s[2]=Y[M[re++]-O]),L=1<<Z-de,G=$>>>de;G<Ae;G+=L)w.set(s,(Ee+G)*3);for(G=1<<Z-1;$&G;G>>>=1)$^=G;for($^=G,me=(1<<de)-1;($&me)!=u[B];)B--,de-=H,me=(1<<de)-1}return ve!==0&&C!=1?gt:Ue}function b(U){let E;for(t||(t=[],e=[],a=new Int32Array(It+1),s=[],c=new Int32Array(It),u=new Int32Array(It+1)),e.length<U&&(e=[]),E=0;E<U;E++)e[E]=0;for(E=0;E<It+1;E++)a[E]=0;for(E=0;E<3;E++)s[E]=0;c.set(a.subarray(0,It),0),u.set(a.subarray(0,It+1),0)}n.inflate_trees_bits=function(U,E,D,O,Y){let ae;return b(19),t[0]=0,ae=v(U,0,19,19,null,null,D,E,O,t,e),ae==Fe?Y.msg="oversubscribed dynamic bit lengths tree":(ae==gt||E[0]===0)&&(Y.msg="incomplete dynamic bit lengths tree",ae=Fe),ae},n.inflate_trees_dynamic=function(U,E,D,O,Y,ae,y,_,w){let I;return b(288),t[0]=0,I=v(D,0,U,257,ns,is,ae,O,_,t,e),I!=Ue||O[0]===0?(I==Fe?w.msg="oversubscribed literal/length tree":I!=Yi&&(w.msg="incomplete literal/length tree",I=Fe),I):(b(288),I=v(D,U,E,0,as,rs,y,Y,_,t,e),I!=Ue||Y[0]===0&&U>257?(I==Fe?w.msg="oversubscribed distance tree":I==gt?(w.msg="incomplete distance tree",I=Fe):I!=Yi&&(w.msg="empty distance tree with lengths",I=Fe),I):Ue)}}hi.inflate_trees_fixed=function(n,t,e,a){return n[0]=Qr,t[0]=zr,e[0]=es,a[0]=ts,Ue};var Sn=0,Xi=1,Ji=2,Qi=3,zi=4,ea=5,ta=6,ei=7,na=8,In=9;function ss(){let n=this,t,e=0,a,s=0,c=0,u=0,v=0,b=0,U=0,E=0,D,O=0,Y,ae=0;function y(_,w,I,M,V,L,C,B){let $,G,Z,H,me,re,Ee,de,le,ve,Ae,at,fe,dt,Se,ke;Ee=B.next_in_index,de=B.avail_in,me=C.bitb,re=C.bitk,le=C.write,ve=le<C.read?C.read-le-1:C.end-le,Ae=Je[_],at=Je[w];do{for(;re<20;)de--,me|=(B.read_byte(Ee++)&255)<<re,re+=8;if($=me&Ae,G=I,Z=M,ke=(Z+$)*3,(H=G[ke])===0){me>>=G[ke+1],re-=G[ke+1],C.window[le++]=G[ke+2],ve--;continue}do{if(me>>=G[ke+1],re-=G[ke+1],H&16){for(H&=15,fe=G[ke+2]+(me&Je[H]),me>>=H,re-=H;re<15;)de--,me|=(B.read_byte(Ee++)&255)<<re,re+=8;$=me&at,G=V,Z=L,ke=(Z+$)*3,H=G[ke];do if(me>>=G[ke+1],re-=G[ke+1],H&16){for(H&=15;re<H;)de--,me|=(B.read_byte(Ee++)&255)<<re,re+=8;if(dt=G[ke+2]+(me&Je[H]),me>>=H,re-=H,ve-=fe,le>=dt)Se=le-dt,le-Se>0&&2>le-Se?(C.window[le++]=C.window[Se++],C.window[le++]=C.window[Se++],fe-=2):(C.window.set(C.window.subarray(Se,Se+2),le),le+=2,Se+=2,fe-=2);else{Se=le-dt;do Se+=C.end;while(Se<0);if(H=C.end-Se,fe>H){if(fe-=H,le-Se>0&&H>le-Se)do C.window[le++]=C.window[Se++];while(--H!==0);else C.window.set(C.window.subarray(Se,Se+H),le),le+=H,Se+=H,H=0;Se=0}}if(le-Se>0&&fe>le-Se)do C.window[le++]=C.window[Se++];while(--fe!==0);else C.window.set(C.window.subarray(Se,Se+fe),le),le+=fe,Se+=fe,fe=0;break}else if(!(H&64))$+=G[ke+2],$+=me&Je[H],ke=(Z+$)*3,H=G[ke];else return B.msg="invalid distance code",fe=B.avail_in-de,fe=re>>3<fe?re>>3:fe,de+=fe,Ee-=fe,re-=fe<<3,C.bitb=me,C.bitk=re,B.avail_in=de,B.total_in+=Ee-B.next_in_index,B.next_in_index=Ee,C.write=le,Fe;while(!0);break}if(H&64)return H&32?(fe=B.avail_in-de,fe=re>>3<fe?re>>3:fe,de+=fe,Ee-=fe,re-=fe<<3,C.bitb=me,C.bitk=re,B.avail_in=de,B.total_in+=Ee-B.next_in_index,B.next_in_index=Ee,C.write=le,wt):(B.msg="invalid literal/length code",fe=B.avail_in-de,fe=re>>3<fe?re>>3:fe,de+=fe,Ee-=fe,re-=fe<<3,C.bitb=me,C.bitk=re,B.avail_in=de,B.total_in+=Ee-B.next_in_index,B.next_in_index=Ee,C.write=le,Fe);if($+=G[ke+2],$+=me&Je[H],ke=(Z+$)*3,(H=G[ke])===0){me>>=G[ke+1],re-=G[ke+1],C.window[le++]=G[ke+2],ve--;break}}while(!0)}while(ve>=258&&de>=10);return fe=B.avail_in-de,fe=re>>3<fe?re>>3:fe,de+=fe,Ee-=fe,re-=fe<<3,C.bitb=me,C.bitk=re,B.avail_in=de,B.total_in+=Ee-B.next_in_index,B.next_in_index=Ee,C.write=le,Ue}n.init=function(_,w,I,M,V,L){t=Sn,U=_,E=w,D=I,O=M,Y=V,ae=L,a=null},n.proc=function(_,w,I){let M,V,L,C=0,B=0,$=0,G,Z,H,me;for($=w.next_in_index,G=w.avail_in,C=_.bitb,B=_.bitk,Z=_.write,H=Z<_.read?_.read-Z-1:_.end-Z;;)switch(t){case Sn:if(H>=258&&G>=10&&(_.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,I=y(U,E,D,O,Y,ae,_,w),$=w.next_in_index,G=w.avail_in,C=_.bitb,B=_.bitk,Z=_.write,H=Z<_.read?_.read-Z-1:_.end-Z,I!=Ue)){t=I==wt?ei:In;break}c=U,a=D,s=O,t=Xi;case Xi:for(M=c;B<M;){if(G!==0)I=Ue;else return _.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);G--,C|=(w.read_byte($++)&255)<<B,B+=8}if(V=(s+(C&Je[M]))*3,C>>>=a[V+1],B-=a[V+1],L=a[V],L===0){u=a[V+2],t=ta;break}if(L&16){v=L&15,e=a[V+2],t=Ji;break}if(!(L&64)){c=L,s=V/3+a[V+2];break}if(L&32){t=ei;break}return t=In,w.msg="invalid literal/length code",I=Fe,_.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);case Ji:for(M=v;B<M;){if(G!==0)I=Ue;else return _.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);G--,C|=(w.read_byte($++)&255)<<B,B+=8}e+=C&Je[M],C>>=M,B-=M,c=E,a=Y,s=ae,t=Qi;case Qi:for(M=c;B<M;){if(G!==0)I=Ue;else return _.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);G--,C|=(w.read_byte($++)&255)<<B,B+=8}if(V=(s+(C&Je[M]))*3,C>>=a[V+1],B-=a[V+1],L=a[V],L&16){v=L&15,b=a[V+2],t=zi;break}if(!(L&64)){c=L,s=V/3+a[V+2];break}return t=In,w.msg="invalid distance code",I=Fe,_.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);case zi:for(M=v;B<M;){if(G!==0)I=Ue;else return _.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);G--,C|=(w.read_byte($++)&255)<<B,B+=8}b+=C&Je[M],C>>=M,B-=M,t=ea;case ea:for(me=Z-b;me<0;)me+=_.end;for(;e!==0;){if(H===0&&(Z==_.end&&_.read!==0&&(Z=0,H=Z<_.read?_.read-Z-1:_.end-Z),H===0&&(_.write=Z,I=_.inflate_flush(w,I),Z=_.write,H=Z<_.read?_.read-Z-1:_.end-Z,Z==_.end&&_.read!==0&&(Z=0,H=Z<_.read?_.read-Z-1:_.end-Z),H===0)))return _.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);_.window[Z++]=_.window[me++],H--,me==_.end&&(me=0),e--}t=Sn;break;case ta:if(H===0&&(Z==_.end&&_.read!==0&&(Z=0,H=Z<_.read?_.read-Z-1:_.end-Z),H===0&&(_.write=Z,I=_.inflate_flush(w,I),Z=_.write,H=Z<_.read?_.read-Z-1:_.end-Z,Z==_.end&&_.read!==0&&(Z=0,H=Z<_.read?_.read-Z-1:_.end-Z),H===0)))return _.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);I=Ue,_.window[Z++]=u,H--,t=Sn;break;case ei:if(B>7&&(B-=8,G++,$--),_.write=Z,I=_.inflate_flush(w,I),Z=_.write,H=Z<_.read?_.read-Z-1:_.end-Z,_.read!=_.write)return _.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);t=na;case na:return I=wt,_.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);case In:return I=Fe,_.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I);default:return I=Ze,_.bitb=C,_.bitk=B,w.avail_in=G,w.total_in+=$-w.next_in_index,w.next_in_index=$,_.write=Z,_.inflate_flush(w,I)}},n.free=function(){}}var ia=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],qt=0,ti=1,aa=2,ra=3,sa=4,oa=5,Tn=6,Un=7,la=8,Ot=9;function os(n,t){let e=this,a=qt,s=0,c=0,u=0,v,b=[0],U=[0],E=new ss,D=0,O=new Int32Array(Ya*3),Y=0,ae=new hi;e.bitk=0,e.bitb=0,e.window=new Uint8Array(t),e.end=t,e.read=0,e.write=0,e.reset=function(y,_){_&&(_[0]=Y),a==Tn&&E.free(y),a=qt,e.bitk=0,e.bitb=0,e.read=e.write=0},e.reset(n,null),e.inflate_flush=function(y,_){let w,I,M;return I=y.next_out_index,M=e.read,w=(M<=e.write?e.write:e.end)-M,w>y.avail_out&&(w=y.avail_out),w!==0&&_==gt&&(_=Ue),y.avail_out-=w,y.total_out+=w,y.next_out.set(e.window.subarray(M,M+w),I),I+=w,M+=w,M==e.end&&(M=0,e.write==e.end&&(e.write=0),w=e.write-M,w>y.avail_out&&(w=y.avail_out),w!==0&&_==gt&&(_=Ue),y.avail_out-=w,y.total_out+=w,y.next_out.set(e.window.subarray(M,M+w),I),I+=w,M+=w),y.next_out_index=I,e.read=M,_},e.proc=function(y,_){let w,I,M,V,L,C,B,$;for(V=y.next_in_index,L=y.avail_in,I=e.bitb,M=e.bitk,C=e.write,B=C<e.read?e.read-C-1:e.end-C;;){let G,Z,H,me,re,Ee,de,le;switch(a){case qt:for(;M<3;){if(L!==0)_=Ue;else return e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);L--,I|=(y.read_byte(V++)&255)<<M,M+=8}switch(w=I&7,D=w&1,w>>>1){case 0:I>>>=3,M-=3,w=M&7,I>>>=w,M-=w,a=ti;break;case 1:G=[],Z=[],H=[[]],me=[[]],hi.inflate_trees_fixed(G,Z,H,me),E.init(G[0],Z[0],H[0],0,me[0],0),I>>>=3,M-=3,a=Tn;break;case 2:I>>>=3,M-=3,a=ra;break;case 3:return I>>>=3,M-=3,a=Ot,y.msg="invalid block type",_=Fe,e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_)}break;case ti:for(;M<32;){if(L!==0)_=Ue;else return e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);L--,I|=(y.read_byte(V++)&255)<<M,M+=8}if((~I>>>16&65535)!=(I&65535))return a=Ot,y.msg="invalid stored block lengths",_=Fe,e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);s=I&65535,I=M=0,a=s!==0?aa:D!==0?Un:qt;break;case aa:if(L===0||B===0&&(C==e.end&&e.read!==0&&(C=0,B=C<e.read?e.read-C-1:e.end-C),B===0&&(e.write=C,_=e.inflate_flush(y,_),C=e.write,B=C<e.read?e.read-C-1:e.end-C,C==e.end&&e.read!==0&&(C=0,B=C<e.read?e.read-C-1:e.end-C),B===0)))return e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);if(_=Ue,w=s,w>L&&(w=L),w>B&&(w=B),e.window.set(y.read_buf(V,w),C),V+=w,L-=w,C+=w,B-=w,(s-=w)!==0)break;a=D!==0?Un:qt;break;case ra:for(;M<14;){if(L!==0)_=Ue;else return e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);L--,I|=(y.read_byte(V++)&255)<<M,M+=8}if(c=w=I&16383,(w&31)>29||(w>>5&31)>29)return a=Ot,y.msg="too many length or distance symbols",_=Fe,e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);if(w=258+(w&31)+(w>>5&31),!v||v.length<w)v=[];else for($=0;$<w;$++)v[$]=0;I>>>=14,M-=14,u=0,a=sa;case sa:for(;u<4+(c>>>10);){for(;M<3;){if(L!==0)_=Ue;else return e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);L--,I|=(y.read_byte(V++)&255)<<M,M+=8}v[ia[u++]]=I&7,I>>>=3,M-=3}for(;u<19;)v[ia[u++]]=0;if(b[0]=7,w=ae.inflate_trees_bits(v,b,U,O,y),w!=Ue)return _=w,_==Fe&&(v=null,a=Ot),e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);u=0,a=oa;case oa:for(;w=c,!(u>=258+(w&31)+(w>>5&31));){let ve,Ae;for(w=b[0];M<w;){if(L!==0)_=Ue;else return e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);L--,I|=(y.read_byte(V++)&255)<<M,M+=8}if(w=O[(U[0]+(I&Je[w]))*3+1],Ae=O[(U[0]+(I&Je[w]))*3+2],Ae<16)I>>>=w,M-=w,v[u++]=Ae;else{for($=Ae==18?7:Ae-14,ve=Ae==18?11:3;M<w+$;){if(L!==0)_=Ue;else return e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);L--,I|=(y.read_byte(V++)&255)<<M,M+=8}if(I>>>=w,M-=w,ve+=I&Je[$],I>>>=$,M-=$,$=u,w=c,$+ve>258+(w&31)+(w>>5&31)||Ae==16&&$<1)return v=null,a=Ot,y.msg="invalid bit length repeat",_=Fe,e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);Ae=Ae==16?v[$-1]:0;do v[$++]=Ae;while(--ve!==0);u=$}}if(U[0]=-1,re=[],Ee=[],de=[],le=[],re[0]=9,Ee[0]=6,w=c,w=ae.inflate_trees_dynamic(257+(w&31),1+(w>>5&31),v,re,Ee,de,le,O,y),w!=Ue)return w==Fe&&(v=null,a=Ot),_=w,e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);E.init(re[0],Ee[0],O,de[0],O,le[0]),a=Tn;case Tn:if(e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,(_=E.proc(e,y,_))!=wt)return e.inflate_flush(y,_);if(_=Ue,E.free(y),V=y.next_in_index,L=y.avail_in,I=e.bitb,M=e.bitk,C=e.write,B=C<e.read?e.read-C-1:e.end-C,D===0){a=qt;break}a=Un;case Un:if(e.write=C,_=e.inflate_flush(y,_),C=e.write,B=C<e.read?e.read-C-1:e.end-C,e.read!=e.write)return e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);a=la;case la:return _=wt,e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);case Ot:return _=Fe,e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_);default:return _=Ze,e.bitb=I,e.bitk=M,y.avail_in=L,y.total_in+=V-y.next_in_index,y.next_in_index=V,e.write=C,e.inflate_flush(y,_)}}},e.free=function(y){e.reset(y,null),e.window=null,O=null},e.set_dictionary=function(y,_,w){e.window.set(y.subarray(_,_+w),0),e.read=e.write=w},e.sync_point=function(){return a==ti?1:0}}var ls=32,cs=8,ds=0,ca=1,da=2,fa=3,ua=4,_a=5,ni=6,ln=7,pa=12,Tt=13,fs=[0,0,255,255];function us(){let n=this;n.mode=0,n.method=0,n.was=[0],n.need=0,n.marker=0,n.wbits=0;function t(e){return!e||!e.istate?Ze:(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=ln,e.istate.blocks.reset(e,null),Ue)}n.inflateEnd=function(e){return n.blocks&&n.blocks.free(e),n.blocks=null,Ue},n.inflateInit=function(e,a){return e.msg=null,n.blocks=null,a<8||a>15?(n.inflateEnd(e),Ze):(n.wbits=a,e.istate.blocks=new os(e,1<<a),t(e),Ue)},n.inflate=function(e,a){let s,c;if(!e||!e.istate||!e.next_in)return Ze;let u=e.istate;for(a=a==Jr?gt:Ue,s=gt;;)switch(u.mode){case ds:if(e.avail_in===0)return s;if(s=a,e.avail_in--,e.total_in++,((u.method=e.read_byte(e.next_in_index++))&15)!=cs){u.mode=Tt,e.msg="unknown compression method",u.marker=5;break}if((u.method>>4)+8>u.wbits){u.mode=Tt,e.msg="invalid window size",u.marker=5;break}u.mode=ca;case ca:if(e.avail_in===0)return s;if(s=a,e.avail_in--,e.total_in++,c=e.read_byte(e.next_in_index++)&255,((u.method<<8)+c)%31!==0){u.mode=Tt,e.msg="incorrect header check",u.marker=5;break}if(!(c&ls)){u.mode=ln;break}u.mode=da;case da:if(e.avail_in===0)return s;s=a,e.avail_in--,e.total_in++,u.need=(e.read_byte(e.next_in_index++)&255)<<24&4278190080,u.mode=fa;case fa:if(e.avail_in===0)return s;s=a,e.avail_in--,e.total_in++,u.need+=(e.read_byte(e.next_in_index++)&255)<<16&16711680,u.mode=ua;case ua:if(e.avail_in===0)return s;s=a,e.avail_in--,e.total_in++,u.need+=(e.read_byte(e.next_in_index++)&255)<<8&65280,u.mode=_a;case _a:return e.avail_in===0?s:(s=a,e.avail_in--,e.total_in++,u.need+=e.read_byte(e.next_in_index++)&255,u.mode=ni,Yr);case ni:return u.mode=Tt,e.msg="need dictionary",u.marker=0,Ze;case ln:if(s=u.blocks.proc(e,s),s==Fe){u.mode=Tt,u.marker=0;break}if(s==Ue&&(s=a),s!=wt)return s;s=a,u.blocks.reset(e,u.was),u.mode=pa;case pa:return wt;case Tt:return Fe;default:return Ze}},n.inflateSetDictionary=function(e,a,s){let c=0,u=s;if(!e||!e.istate||e.istate.mode!=ni)return Ze;let v=e.istate;return u>=1<<v.wbits&&(u=(1<<v.wbits)-1,c=s-u),v.blocks.set_dictionary(a,c,u),v.mode=ln,Ue},n.inflateSync=function(e){let a,s,c,u,v;if(!e||!e.istate)return Ze;let b=e.istate;if(b.mode!=Tt&&(b.mode=Tt,b.marker=0),(a=e.avail_in)===0)return gt;for(s=e.next_in_index,c=b.marker;a!==0&&c<4;)e.read_byte(s)==fs[c]?c++:e.read_byte(s)!==0?c=0:c=4-c,s++,a--;return e.total_in+=s-e.next_in_index,e.next_in_index=s,e.avail_in=a,b.marker=c,c!=4?Fe:(u=e.total_in,v=e.total_out,t(e),e.total_in=u,e.total_out=v,b.mode=ln,Ue)},n.inflateSyncPoint=function(e){return!e||!e.istate||!e.istate.blocks?Ze:e.istate.blocks.sync_point()}}function Xa(){}Xa.prototype={inflateInit:function(n){let t=this;return t.istate=new us,n||(n=Kr),t.istate.inflateInit(t,n)},inflate:function(n){let t=this;return t.istate?t.istate.inflate(t,n):Ze},inflateEnd:function(){let n=this;if(!n.istate)return Ze;let t=n.istate.inflateEnd(n);return n.istate=null,t},inflateSync:function(){let n=this;return n.istate?n.istate.inflateSync(n):Ze},inflateSetDictionary:function(n,t){let e=this;return e.istate?e.istate.inflateSetDictionary(e,n,t):Ze},read_byte:function(n){return this.next_in[n]},read_buf:function(n,t){return this.next_in.subarray(n,n+t)}};function _s(n){let t=this,e=new Xa,a=n&&n.chunkSize?Math.floor(n.chunkSize*2):128*1024,s=Xr,c=new Uint8Array(a),u=!1;e.inflateInit(),e.next_out=c,t.append=function(v,b){let U=[],E,D,O=0,Y=0,ae=0;if(v.length!==0){e.next_in_index=0,e.next_in=v,e.avail_in=v.length;do{if(e.next_out_index=0,e.avail_out=a,e.avail_in===0&&!u&&(e.next_in_index=0,u=!0),E=e.inflate(s),u&&E===gt){if(e.avail_in!==0)throw new Error("inflating: bad input")}else if(E!==Ue&&E!==wt)throw new Error("inflating: "+e.msg);if((u||E===wt)&&e.avail_in===v.length)throw new Error("inflating: bad input");e.next_out_index&&(e.next_out_index===a?U.push(new Uint8Array(c)):U.push(c.slice(0,e.next_out_index))),ae+=e.next_out_index,b&&e.next_in_index>0&&e.next_in_index!=O&&(b(e.next_in_index),O=e.next_in_index)}while(e.avail_in>0||e.avail_out===0);return U.length>1?(D=new Uint8Array(ae),U.forEach(function(y){D.set(y,Y),Y+=y.length})):D=U[0]||new Uint8Array(0),D}},t.flush=function(){e.inflateEnd()}}var ps={chunkSize:512*1024,maxWorkers:typeof navigator<"u"&&navigator.hardwareConcurrency||2,useWebWorkers:!0,workerScripts:void 0},it=Object.assign({},ps);function xs(){return it}function Ja(n){if(n.chunkSize!==void 0&&(it.chunkSize=n.chunkSize),n.maxWorkers!==void 0&&(it.maxWorkers=n.maxWorkers),n.useWebWorkers!==void 0&&(it.useWebWorkers=n.useWebWorkers),n.Deflate!==void 0&&(it.Deflate=n.Deflate),n.Inflate!==void 0&&(it.Inflate=n.Inflate),n.workerScripts!==void 0){if(n.workerScripts.deflate){if(!Array.isArray(n.workerScripts.deflate))throw new Error("workerScripts.deflate must be an array");it.workerScripts||(it.workerScripts={}),it.workerScripts.deflate=n.workerScripts.deflate}if(n.workerScripts.inflate){if(!Array.isArray(n.workerScripts.inflate))throw new Error("workerScripts.inflate must be an array");it.workerScripts||(it.workerScripts={}),it.workerScripts.inflate=n.workerScripts.inflate}}}var cn={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin",cap:["cap","pcap"],"cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",javascript:"js",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf",smil:["smi","smil"],"xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":"odm","vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-debian-package":["deb","udeb"],"x-director":["dcr","dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-koan":["skp","skd","skt","skm"],"x-kpresenter":["kpr","kpt"],"x-kword":["kwd","kwt"],"x-latex":"latex","x-lha":"lha","x-lyx":"lyx","x-lzh":"lzh","x-lzx":"lzx","x-maker":["frm","maker","frame","fm","fb","book","fbdoc"],"x-ms-wmd":"wmd","x-ms-wmz":"wmz","x-msdos-program":["com","exe","bat","dll"],"x-msi":"msi","x-netcdf":["nc","cdf"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":"rpm","x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tcl":"tcl","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-troff":["t","tr","roff"],"x-troff-man":"man","x-troff-me":"me","x-troff-ms":"ms","x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix",json:"json","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":"mathml",mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-otf":"otf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-font-woff":"woff","x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","x-msdownload":["exe","dll","com","bat","msi"],"x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tads":"gam","x-tex":"tex","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-compressed":"tgz","x-gzip":"gz","x-perfmon":["pma","pmc","pml","pmr","pmw"],"x-pkcs7-mime":["p7c","p7m"],"ynd.ms-pkipko":"pko"},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp2","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":["aif","aiff","aifc"],"x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2","x-wav":"wav",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-aac":"aac","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",mid:["mid","rmi"]},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":["mmd","mmod"],"x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":["sd","sdf"],"x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","mpc","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":["val","aso"],"x-pdb":["pdb","ent"],"x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-photoshop":"psd","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",pipeg:"jfif"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":["x3d","x3dz"],"x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",mathml:"mml",plain:["txt","text","brf","conf","def","list","log","in","bas"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:["tm","ts"],"tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":["diff","patch"],"x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas"],"x-pcs-gcd":"gcd","x-perl":["pl","pm"],"x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","cc","cxx","cpp","h","hh","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt"},video:{avif:".avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","vrml","wrl","flr","wrz","xaf","xof"]}};(()=>{let n={};for(let t in cn)if(cn.hasOwnProperty(t)){for(let e in cn[t])if(cn[t].hasOwnProperty(e)){let a=cn[t][e];if(typeof a=="string")n[a]=t+"/"+e;else for(let s=0;s<a.length;s++)n[a[s]]=t+"/"+e}}return n})();var hs=()=>{if(typeof URL.createObjectURL=="function"){let n=(()=>{let e=[];for(let o=0;o<256;o++){let r=o;for(let i=0;i<8;i++)1&r?r=r>>>1^3988292384:r>>>=1;e[o]=r}class a{constructor(r){this.crc=r||-1}append(r){let i=0|this.crc;for(let d=0,h=0|r.length;d<h;d++)i=i>>>8^e[255&(i^r[d])];this.crc=i}get(){return~this.crc}}let s={concat(o,r){if(o.length===0||r.length===0)return o.concat(r);let i=o[o.length-1],d=s.getPartial(i);return d===32?o.concat(r):s._shiftRight(r,d,0|i,o.slice(0,o.length-1))},bitLength(o){let r=o.length;if(r===0)return 0;let i=o[r-1];return 32*(r-1)+s.getPartial(i)},clamp(o,r){if(32*o.length<r)return o;let i=(o=o.slice(0,Math.ceil(r/32))).length;return r&=31,i>0&&r&&(o[i-1]=s.partial(r,o[i-1]&2147483648>>r-1,1)),o},partial:(o,r,i)=>o===32?r:(i?0|r:r<<32-o)+1099511627776*o,getPartial:o=>Math.round(o/1099511627776)||32,_shiftRight(o,r,i,d){for(d===void 0&&(d=[]);r>=32;r-=32)d.push(i),i=0;if(r===0)return d.concat(o);for(let f=0;f<o.length;f++)d.push(i|o[f]>>>r),i=o[f]<<32-r;let h=o.length?o[o.length-1]:0,l=s.getPartial(h);return d.push(s.partial(r+l&31,r+l>32?i:d.pop(),1)),d}},c={bytes:{fromBits(o){let r=s.bitLength(o)/8,i=new Uint8Array(r),d;for(let h=0;h<r;h++)!(3&h)&&(d=o[h/4]),i[h]=d>>>24,d<<=8;return i},toBits(o){let r=[],i,d=0;for(i=0;i<o.length;i++)d=d<<8|o[i],(3&i)==3&&(r.push(d),d=0);return 3&i&&r.push(s.partial(8*(3&i),d)),r}}},u={sha1:function(o){o?(this._h=o._h.slice(0),this._buffer=o._buffer.slice(0),this._length=o._length):this.reset()}};u.sha1.prototype={blockSize:512,reset:function(){let o=this;return o._h=this._init.slice(0),o._buffer=[],o._length=0,o},update:function(o){let r=this;typeof o=="string"&&(o=c.utf8String.toBits(o));let i=r._buffer=s.concat(r._buffer,o),d=r._length,h=r._length=d+s.bitLength(o);if(h>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");let l=new Uint32Array(i),f=0;for(let m=r.blockSize+d-(r.blockSize+d&r.blockSize-1);m<=h;m+=r.blockSize)r._block(l.subarray(16*f,16*(f+1))),f+=1;return i.splice(0,16*f),r},finalize:function(){let o=this,r=o._buffer,i=o._h;r=s.concat(r,[s.partial(1,1)]);for(let d=r.length+2;15&d;d++)r.push(0);for(r.push(Math.floor(o._length/4294967296)),r.push(0|o._length);r.length;)o._block(r.splice(0,16));return o.reset(),i},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:function(o,r,i,d){return o<=19?r&i|~r&d:o<=39?r^i^d:o<=59?r&i|r&d|i&d:o<=79?r^i^d:void 0},_S:function(o,r){return r<<o|r>>>32-o},_block:function(o){let r=this,i=r._h,d=Array(80);for(let A=0;A<16;A++)d[A]=o[A];let h=i[0],l=i[1],f=i[2],m=i[3],x=i[4];for(let A=0;A<=79;A++){A>=16&&(d[A]=r._S(1,d[A-3]^d[A-8]^d[A-14]^d[A-16]));let T=r._S(5,h)+r._f(A,l,f,m)+x+d[A]+r._key[Math.floor(A/20)]|0;x=m,m=f,f=r._S(30,l),l=h,h=T}i[0]=i[0]+h|0,i[1]=i[1]+l|0,i[2]=i[2]+f|0,i[3]=i[3]+m|0,i[4]=i[4]+x|0}};let v=class{constructor(o){let r=this;r._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],r._tables[0][0][0]||r._precompute();let i=r._tables[0][4],d=r._tables[1],h=o.length,l,f,m,x=1;if(h!==4&&h!==6&&h!==8)throw new Error("invalid aes key size");for(r._key=[f=o.slice(0),m=[]],l=h;l<4*h+28;l++){let A=f[l-1];(l%h==0||h===8&&l%h==4)&&(A=i[A>>>24]<<24^i[A>>16&255]<<16^i[A>>8&255]<<8^i[255&A],l%h==0&&(A=A<<8^A>>>24^x<<24,x=x<<1^283*(x>>7))),f[l]=f[l-h]^A}for(let A=0;l;A++,l--){let T=f[3&A?l:l-4];m[A]=l<=4||A<4?T:d[0][i[T>>>24]]^d[1][i[T>>16&255]]^d[2][i[T>>8&255]]^d[3][i[255&T]]}}encrypt(o){return this._crypt(o,0)}decrypt(o){return this._crypt(o,1)}_precompute(){let o=this._tables[0],r=this._tables[1],i=o[4],d=r[4],h=[],l=[],f,m,x,A;for(let T=0;T<256;T++)l[(h[T]=T<<1^283*(T>>7))^T]=T;for(let T=f=0;!i[T];T^=m||1,f=l[f]||1){let N=f^f<<1^f<<2^f<<3^f<<4;N=N>>8^255&N^99,i[T]=N,d[N]=T,A=h[x=h[m=h[T]]];let W=16843009*A^65537*x^257*m^16843008*T,oe=257*h[N]^16843008*N;for(let k=0;k<4;k++)o[k][T]=oe=oe<<24^oe>>>8,r[k][N]=W=W<<24^W>>>8}for(let T=0;T<5;T++)o[T]=o[T].slice(0),r[T]=r[T].slice(0)}_crypt(o,r){if(o.length!==4)throw new Error("invalid aes block size");let i=this._key[r],d=i.length/4-2,h=[0,0,0,0],l=this._tables[r],f=l[0],m=l[1],x=l[2],A=l[3],T=l[4],N,W,oe,k=o[0]^i[0],P=o[r?3:1]^i[1],p=o[2]^i[2],g=o[r?1:3]^i[3],R=4;for(let j=0;j<d;j++)N=f[k>>>24]^m[P>>16&255]^x[p>>8&255]^A[255&g]^i[R],W=f[P>>>24]^m[p>>16&255]^x[g>>8&255]^A[255&k]^i[R+1],oe=f[p>>>24]^m[g>>16&255]^x[k>>8&255]^A[255&P]^i[R+2],g=f[g>>>24]^m[k>>16&255]^x[P>>8&255]^A[255&p]^i[R+3],R+=4,k=N,P=W,p=oe;for(let j=0;j<4;j++)h[r?3&-j:j]=T[k>>>24]<<24^T[P>>16&255]<<16^T[p>>8&255]<<8^T[255&g]^i[R++],N=k,k=P,P=p,p=g,g=N;return h}},b=class{constructor(o,r){this._prf=o,this._initIv=r,this._iv=r}reset(){this._iv=this._initIv}update(o){return this.calculate(this._prf,o,this._iv)}incWord(o){if((o>>24&255)==255){let r=o>>16&255,i=o>>8&255,d=255&o;r===255?(r=0,i===255?(i=0,d===255?d=0:++d):++i):++r,o=0,o+=r<<16,o+=i<<8,o+=d}else o+=1<<24;return o}incCounter(o){(o[0]=this.incWord(o[0]))===0&&(o[1]=this.incWord(o[1]))}calculate(o,r,i){let d;if(!(d=r.length))return[];let h=s.bitLength(r);for(let l=0;l<d;l+=4){this.incCounter(i);let f=o.encrypt(i);r[l]^=f[0],r[l+1]^=f[1],r[l+2]^=f[2],r[l+3]^=f[3]}return s.clamp(r,h)}},U=class{constructor(o){let r=this,i=r._hash=u.sha1,d=[[],[]],h=i.prototype.blockSize/32;r._baseHash=[new i,new i],o.length>h&&(o=i.hash(o));for(let l=0;l<h;l++)d[0][l]=909522486^o[l],d[1][l]=1549556828^o[l];r._baseHash[0].update(d[0]),r._baseHash[1].update(d[1]),r._resultHash=new i(r._baseHash[0])}reset(){let o=this;o._resultHash=new o._hash(o._baseHash[0]),o._updated=!1}update(o){this._updated=!0,this._resultHash.update(o)}digest(){let o=this,r=o._resultHash.finalize(),i=new o._hash(o._baseHash[1]).update(r).finalize();return o.reset(),i}},E={name:"PBKDF2"},D=Object.assign({hash:{name:"HMAC"}},E),O=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},E),Y=["deriveBits"],ae=[8,12,16],y=[16,24,32],_=[0,0,0,0],w=crypto.subtle,I=c.bytes,M=v,V=b,L=U;class C{constructor(r,i,d){Object.assign(this,{password:r,signed:i,strength:d-1,pendingInput:new Uint8Array(0)})}async append(r){let i=this;if(i.password){let d=H(r,0,ae[i.strength]+2);await async function(h,l,f){await G(h,f,H(l,0,ae[h.strength]));let m=H(l,ae[h.strength]),x=h.keys.passwordVerification;if(x[0]!=m[0]||x[1]!=m[1])throw new Error("Invalid pasword")}(i,d,i.password),i.password=null,i.aesCtrGladman=new V(new M(i.keys.key),Array.from(_)),i.hmac=new L(i.keys.authentication),r=H(r,ae[i.strength]+2)}return $(i,r,new Uint8Array(r.length-10-(r.length-10)%16),0,10,!0)}async flush(){let r=this,i=r.pendingInput,d=H(i,0,i.length-10),h=H(i,i.length-10),l=new Uint8Array(0);if(d.length){let m=I.toBits(d);r.hmac.update(m);let x=r.aesCtrGladman.update(m);l=I.fromBits(x)}let f=!0;if(r.signed){let m=H(I.fromBits(r.hmac.digest()),0,10);for(let x=0;x<10;x++)m[x]!=h[x]&&(f=!1)}return{valid:f,data:l}}}class B{constructor(r,i){Object.assign(this,{password:r,strength:i-1,pendingInput:new Uint8Array(0)})}async append(r){let i=this,d=new Uint8Array(0);i.password&&(d=await async function(l,f){let m=crypto.getRandomValues(new Uint8Array(ae[l.strength]));return await G(l,f,m),Z(m,l.keys.passwordVerification)}(i,i.password),i.password=null,i.aesCtrGladman=new V(new M(i.keys.key),Array.from(_)),i.hmac=new L(i.keys.authentication));let h=new Uint8Array(d.length+r.length-r.length%16);return h.set(d,0),$(i,r,h,d.length,0)}async flush(){let r=this,i=new Uint8Array(0);if(r.pendingInput.length){let h=r.aesCtrGladman.update(I.toBits(r.pendingInput));r.hmac.update(h),i=I.fromBits(h)}let d=H(I.fromBits(r.hmac.digest()),0,10);return{data:Z(i,d),signature:d}}}function $(o,r,i,d,h,l){let f=r.length-h,m;for(o.pendingInput.length&&(r=Z(o.pendingInput,r),i=function(x,A){if(A&&A>x.length){let T=x;(x=new Uint8Array(A)).set(T,0)}return x}(i,f-f%16)),m=0;m<=f-16;m+=16){let x=I.toBits(H(r,m,m+16));l&&o.hmac.update(x);let A=o.aesCtrGladman.update(x);l||o.hmac.update(A),i.set(I.fromBits(A),m+d)}return o.pendingInput=H(r,m),i}async function G(o,r,i){let d=new TextEncoder().encode(r),h=await w.importKey("raw",d,D,!1,Y),l=await w.deriveBits(Object.assign({salt:i},O),h,8*(2*y[o.strength]+2)),f=new Uint8Array(l);o.keys={key:I.toBits(H(f,0,y[o.strength])),authentication:I.toBits(H(f,y[o.strength],2*y[o.strength])),passwordVerification:H(f,2*y[o.strength])}}function Z(o,r){let i=o;return o.length+r.length&&(i=new Uint8Array(o.length+r.length),i.set(o,0),i.set(r,o.length)),i}function H(o,r,i){return o.subarray(r,i)}class me{constructor(r,i){Object.assign(this,{password:r,passwordVerification:i}),le(this,r)}async append(r){let i=this;if(i.password){let d=Ee(i,r.subarray(0,12));if(i.password=null,d[11]!=i.passwordVerification)throw new Error("Invalid pasword");r=r.subarray(12)}return Ee(i,r)}async flush(){return{valid:!0,data:new Uint8Array(0)}}}class re{constructor(r,i){Object.assign(this,{password:r,passwordVerification:i}),le(this,r)}async append(r){let i=this,d,h;if(i.password){i.password=null;let l=crypto.getRandomValues(new Uint8Array(12));l[11]=i.passwordVerification,d=new Uint8Array(r.length+l.length),d.set(de(i,l),0),h=12}else d=new Uint8Array(r.length),h=0;return d.set(de(i,r),h),d}async flush(){return{data:new Uint8Array(0)}}}function Ee(o,r){let i=new Uint8Array(r.length);for(let d=0;d<r.length;d++)i[d]=Ae(o)^r[d],ve(o,i[d]);return i}function de(o,r){let i=new Uint8Array(r.length);for(let d=0;d<r.length;d++)i[d]=Ae(o)^r[d],ve(o,r[d]);return i}function le(o,r){o.keys=[305419896,591751049,878082192],o.crcKey0=new a(o.keys[0]),o.crcKey2=new a(o.keys[2]);for(let i=0;i<r.length;i++)ve(o,r.charCodeAt(i))}function ve(o,r){o.crcKey0.append([r]),o.keys[0]=~o.crcKey0.get(),o.keys[1]=fe(o.keys[1]+at(o.keys[0])),o.keys[1]=fe(Math.imul(o.keys[1],134775813)+1),o.crcKey2.append([o.keys[1]>>>24]),o.keys[2]=~o.crcKey2.get()}function Ae(o){let r=2|o.keys[2];return at(Math.imul(r,1^r)>>>8)}function at(o){return 255&o}function fe(o){return 4294967295&o}class dt{constructor(r,{signature:i,password:d,signed:h,compressed:l,zipCrypto:f,passwordVerification:m,encryptionStrength:x},{chunkSize:A}){let T=!!d;Object.assign(this,{signature:i,encrypted:T,signed:h,compressed:l,inflate:l&&new r({chunkSize:A}),crc32:h&&new a,zipCrypto:f,decrypt:T&&f?new me(d,m):new C(d,h,x)})}async append(r){let i=this;return i.encrypted&&r.length&&(r=await i.decrypt.append(r)),i.compressed&&r.length&&(r=await i.inflate.append(r)),(!i.encrypted||i.zipCrypto)&&i.signed&&r.length&&i.crc32.append(r),r}async flush(){let r=this,i,d=new Uint8Array(0);if(r.encrypted){let h=await r.decrypt.flush();if(!h.valid)throw new Error("Invalid signature");d=h.data}if((!r.encrypted||r.zipCrypto)&&r.signed){let h=new DataView(new Uint8Array(4).buffer);if(i=r.crc32.get(),h.setUint32(0,i),r.cipher!=h.getUint32(0,!1))throw new Error("Invalid signature")}return r.compressed&&(d=await r.inflate.append(d)||new Uint8Array(0),await r.inflate.flush()),{data:d,signature:i}}}class Se{constructor(r,{encrypted:i,signed:d,compressed:h,level:l,zipCrypto:f,password:m,passwordVerification:x,encryptionStrength:A},{chunkSize:T}){Object.assign(this,{encrypted:i,signed:d,compressed:h,deflate:h&&new r({level:l||5,chunkSize:T}),crc32:d&&new a,zipCrypto:f,encrypt:i&&f?new re(m,x):new B(m,A)})}async append(r){let i=this,d=r;return i.compressed&&r.length&&(d=await i.deflate.append(r)),i.encrypted&&d.length&&(d=await i.encrypt.append(d)),(!i.encrypted||i.zipCrypto)&&i.signed&&r.length&&i.crc32.append(r),d}async flush(){let r=this,i,d=new Uint8Array(0);if(r.compressed&&(d=await r.deflate.flush()||new Uint8Array(0)),r.encrypted){d=await r.encrypt.append(d);let h=await r.encrypt.flush();i=h.signature;let l=new Uint8Array(d.length+h.data.length);l.set(d,0),l.set(h.data,d.length),d=l}return r.encrypted&&!r.zipCrypto||!r.signed||(i=r.crc32.get()),{data:d,signature:i}}}let ke={init(o){o.scripts&&o.scripts.length&&importScripts.apply(void 0,o.scripts);let r=o.options,i;self.initCodec&&self.initCodec(),r.codecType.startsWith("deflate")?i=self.Deflate:r.codecType.startsWith("inflate")&&(i=self.Inflate),ht=function(d,h,l){return h.codecType.startsWith("deflate")?new Se(d,h,l):h.codecType.startsWith("inflate")?new dt(d,h,l):void 0}(i,r,o.config)},append:async o=>({data:await ht.append(o.data)}),flush:()=>ht.flush()},ht;function Nt(o){return o.map(([r,i])=>new Array(r).fill(i,0,r)).flat()}addEventListener("message",async o=>{let r=o.data,i=r.type,d=ke[i];if(d)try{r.data&&(r.data=new Uint8Array(r.data));let h=await d(r)||{};if(h.type=i,h.data)try{h.data=h.data.buffer,postMessage(h,[h.data])}catch{postMessage(h)}else postMessage(h)}catch(h){postMessage({type:i,error:{message:h.message,stack:h.stack}})}});let vt=[0,1,2,3].concat(...Nt([[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 we(){let o=this;function r(i,d){let h=0;do h|=1&i,i>>>=1,h<<=1;while(--d>0);return h>>>1}o.build_tree=function(i){let d=o.dyn_tree,h=o.stat_desc.static_tree,l=o.stat_desc.elems,f,m,x,A=-1;for(i.heap_len=0,i.heap_max=573,f=0;f<l;f++)d[2*f]!==0?(i.heap[++i.heap_len]=A=f,i.depth[f]=0):d[2*f+1]=0;for(;i.heap_len<2;)x=i.heap[++i.heap_len]=A<2?++A:0,d[2*x]=1,i.depth[x]=0,i.opt_len--,h&&(i.static_len-=h[2*x+1]);for(o.max_code=A,f=Math.floor(i.heap_len/2);f>=1;f--)i.pqdownheap(d,f);x=l;do f=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(d,1),m=i.heap[1],i.heap[--i.heap_max]=f,i.heap[--i.heap_max]=m,d[2*x]=d[2*f]+d[2*m],i.depth[x]=Math.max(i.depth[f],i.depth[m])+1,d[2*f+1]=d[2*m+1]=x,i.heap[1]=x++,i.pqdownheap(d,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],function(T){let N=o.dyn_tree,W=o.stat_desc.static_tree,oe=o.stat_desc.extra_bits,k=o.stat_desc.extra_base,P=o.stat_desc.max_length,p,g,R,j,te,F,q=0;for(j=0;j<=15;j++)T.bl_count[j]=0;for(N[2*T.heap[T.heap_max]+1]=0,p=T.heap_max+1;p<573;p++)g=T.heap[p],j=N[2*N[2*g+1]+1]+1,j>P&&(j=P,q++),N[2*g+1]=j,g>o.max_code||(T.bl_count[j]++,te=0,g>=k&&(te=oe[g-k]),F=N[2*g],T.opt_len+=F*(j+te),W&&(T.static_len+=F*(W[2*g+1]+te)));if(q!==0){do{for(j=P-1;T.bl_count[j]===0;)j--;T.bl_count[j]--,T.bl_count[j+1]+=2,T.bl_count[P]--,q-=2}while(q>0);for(j=P;j!==0;j--)for(g=T.bl_count[j];g!==0;)R=T.heap[--p],R>o.max_code||(N[2*R+1]!=j&&(T.opt_len+=(j-N[2*R+1])*N[2*R],N[2*R+1]=j),g--)}}(i),function(T,N,W){let oe=[],k,P,p,g=0;for(k=1;k<=15;k++)oe[k]=g=g+W[k-1]<<1;for(P=0;P<=N;P++)p=T[2*P+1],p!==0&&(T[2*P]=r(oe[p]++,p))}(d,o.max_code,i.bl_count)}}function Te(o,r,i,d,h){let l=this;l.static_tree=o,l.extra_bits=r,l.extra_base=i,l.elems=d,l.max_length=h}function et(o,r,i,d,h){let l=this;l.good_length=o,l.max_lazy=r,l.nice_length=i,l.max_chain=d,l.func=h}we._length_code=[0,1,2,3,4,5,6,7].concat(...Nt([[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]])),we.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],we.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],we.d_code=function(o){return o<256?vt[o]:vt[256+(o>>>7)]},we.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],we.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],we.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],we.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Te.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],Te.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],Te.static_l_desc=new Te(Te.static_ltree,we.extra_lbits,257,286,15),Te.static_d_desc=new Te(Te.static_dtree,we.extra_dbits,0,30,15),Te.static_bl_desc=new Te(null,we.extra_blbits,0,19,7);let We=[new et(0,0,0,0,0),new et(4,4,8,4,1),new et(4,5,16,8,1),new et(4,6,32,32,1),new et(4,4,16,16,2),new et(8,16,32,32,2),new et(8,16,128,128,2),new et(8,32,128,256,2),new et(32,128,258,1024,2),new et(32,258,258,4096,2)],$t=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function Xt(o,r,i,d){let h=o[2*r],l=o[2*i];return h<l||h==l&&d[r]<=d[i]}function Pn(){let o=this,r,i,d,h,l,f,m,x,A,T,N,W,oe,k,P,p,g,R,j,te,F,q,S,ee,pe,se,K,z,ue,ye,ge,ce,xe,yt=new we,kt=new we,he=new we,Et,Re,Ie,zt,Zn,en,tt,Pe;function Ci(){let X;for(X=0;X<286;X++)ge[2*X]=0;for(X=0;X<30;X++)ce[2*X]=0;for(X=0;X<19;X++)xe[2*X]=0;ge[512]=1,o.opt_len=o.static_len=0,Ie=Zn=0}function Fi(X,Q){let ne,ie=-1,J=X[1],_e=0,be=7,Me=4;J===0&&(be=138,Me=3),X[2*(Q+1)+1]=65535;for(let De=0;De<=Q;De++)ne=J,J=X[2*(De+1)+1],++_e<be&&ne==J||(_e<Me?xe[2*ne]+=_e:ne!==0?(ne!=ie&&xe[2*ne]++,xe[32]++):_e<=10?xe[34]++:xe[36]++,_e=0,ie=ne,J===0?(be=138,Me=3):ne==J?(be=6,Me=3):(be=7,Me=4))}function Ht(X){o.pending_buf[o.pending++]=X}function tn(X){Ht(255&X),Ht(X>>>8&255)}function qe(X,Q){let ne,ie=Q;Pe>16-ie?(ne=X,tt|=ne<<Pe&65535,tn(tt),tt=ne>>>16-Pe,Pe+=ie-16):(tt|=X<<Pe&65535,Pe+=ie)}function st(X,Q){let ne=2*X;qe(65535&Q[ne],65535&Q[ne+1])}function Li(X,Q){let ne,ie,J=-1,_e=X[1],be=0,Me=7,De=4;for(_e===0&&(Me=138,De=3),ne=0;ne<=Q;ne++)if(ie=_e,_e=X[2*(ne+1)+1],!(++be<Me&&ie==_e)){if(be<De)do st(ie,xe);while(--be!=0);else ie!==0?(ie!=J&&(st(ie,xe),be--),st(16,xe),qe(be-3,2)):be<=10?(st(17,xe),qe(be-3,3)):(st(18,xe),qe(be-11,7));be=0,J=ie,_e===0?(Me=138,De=3):ie==_e?(Me=6,De=3):(Me=7,De=4)}}function Bi(){Pe==16?(tn(tt),tt=0,Pe=0):Pe>=8&&(Ht(255&tt),tt>>>=8,Pe-=8)}function nn(X,Q){let ne,ie,J;if(o.pending_buf[zt+2*Ie]=X>>>8&255,o.pending_buf[zt+2*Ie+1]=255&X,o.pending_buf[Et+Ie]=255&Q,Ie++,X===0?ge[2*Q]++:(Zn++,X--,ge[2*(we._length_code[Q]+256+1)]++,ce[2*we.d_code(X)]++),(8191&Ie)==0&&K>2){for(ne=8*Ie,ie=F-g,J=0;J<30;J++)ne+=ce[2*J]*(5+we.extra_dbits[J]);if(ne>>>=3,Zn<Math.floor(Ie/2)&&ne<Math.floor(ie/2))return!0}return Ie==Re-1}function Mi(X,Q){let ne,ie,J,_e,be=0;if(Ie!==0)do ne=o.pending_buf[zt+2*be]<<8&65280|255&o.pending_buf[zt+2*be+1],ie=255&o.pending_buf[Et+be],be++,ne===0?st(ie,X):(J=we._length_code[ie],st(J+256+1,X),_e=we.extra_lbits[J],_e!==0&&(ie-=we.base_length[J],qe(ie,_e)),ne--,J=we.d_code(ne),st(J,Q),_e=we.extra_dbits[J],_e!==0&&(ne-=we.base_dist[J],qe(ne,_e)));while(be<Ie);st(256,X),en=X[513]}function ji(){Pe>8?tn(tt):Pe>0&&Ht(255&tt),tt=0,Pe=0}function Ni(X,Q,ne){qe(0+(ne?1:0),3),function(ie,J,_e){ji(),en=8,tn(J),tn(~J),o.pending_buf.set(x.subarray(ie,ie+J),o.pending),o.pending+=J}(X,Q)}function gr(X,Q,ne){let ie,J,_e=0;K>0?(yt.build_tree(o),kt.build_tree(o),_e=function(){let be;for(Fi(ge,yt.max_code),Fi(ce,kt.max_code),he.build_tree(o),be=18;be>=3&&xe[2*we.bl_order[be]+1]===0;be--);return o.opt_len+=3*(be+1)+5+5+4,be}(),ie=o.opt_len+3+7>>>3,J=o.static_len+3+7>>>3,J<=ie&&(ie=J)):ie=J=Q+5,Q+4<=ie&&X!=-1?Ni(X,Q,ne):J==ie?(qe(2+(ne?1:0),3),Mi(Te.static_ltree,Te.static_dtree)):(qe(4+(ne?1:0),3),function(be,Me,De){let Be;for(qe(be-257,5),qe(Me-1,5),qe(De-4,4),Be=0;Be<De;Be++)qe(xe[2*we.bl_order[Be]+1],3);Li(ge,be-1),Li(ce,Me-1)}(yt.max_code+1,kt.max_code+1,_e+1),Mi(ge,ce)),Ci(),ne&&ji()}function At(X){gr(g>=0?g:-1,F-g,X),g=F,r.flush_pending()}function Kn(){let X,Q,ne,ie;do{if(ie=A-S-F,ie===0&&F===0&&S===0)ie=l;else if(ie==-1)ie--;else if(F>=l+l-262){x.set(x.subarray(l,l+l),0),q-=l,F-=l,g-=l,X=oe,ne=X;do Q=65535&N[--ne],N[ne]=Q>=l?Q-l:0;while(--X!=0);X=l,ne=X;do Q=65535&T[--ne],T[ne]=Q>=l?Q-l:0;while(--X!=0);ie+=l}if(r.avail_in===0)return;X=r.read_buf(x,F+S,ie),S+=X,S>=3&&(W=255&x[F],W=(W<<p^255&x[F+1])&P)}while(S<262&&r.avail_in!==0)}function $i(X){let Q,ne,ie=pe,J=F,_e=ee,be=F>l-262?F-(l-262):0,Me=ye,De=m,Be=F+258,Ve=x[J+_e-1],St=x[J+_e];ee>=ue&&(ie>>=2),Me>S&&(Me=S);do if(Q=X,x[Q+_e]==St&&x[Q+_e-1]==Ve&&x[Q]==x[J]&&x[++Q]==x[J+1]){J+=2,Q++;do;while(x[++J]==x[++Q]&&x[++J]==x[++Q]&&x[++J]==x[++Q]&&x[++J]==x[++Q]&&x[++J]==x[++Q]&&x[++J]==x[++Q]&&x[++J]==x[++Q]&&x[++J]==x[++Q]&&J<Be);if(ne=258-(Be-J),J=Be-258,ne>_e){if(q=X,_e=ne,ne>=Me)break;Ve=x[J+_e-1],St=x[J+_e]}}while((X=65535&T[X&De])>be&&--ie!=0);return _e<=S?_e:S}function vr(X){return X.total_in=X.total_out=0,X.msg=null,o.pending=0,o.pending_out=0,i=113,h=0,yt.dyn_tree=ge,yt.stat_desc=Te.static_l_desc,kt.dyn_tree=ce,kt.stat_desc=Te.static_d_desc,he.dyn_tree=xe,he.stat_desc=Te.static_bl_desc,tt=0,Pe=0,en=8,Ci(),function(){A=2*l,N[oe-1]=0;for(let Q=0;Q<oe-1;Q++)N[Q]=0;se=We[K].max_lazy,ue=We[K].good_length,ye=We[K].nice_length,pe=We[K].max_chain,F=0,g=0,S=0,R=ee=2,te=0,W=0}(),0}o.depth=[],o.bl_count=[],o.heap=[],ge=[],ce=[],xe=[],o.pqdownheap=function(X,Q){let ne=o.heap,ie=ne[Q],J=Q<<1;for(;J<=o.heap_len&&(J<o.heap_len&&Xt(X,ne[J+1],ne[J],o.depth)&&J++,!Xt(X,ie,ne[J],o.depth));)ne[Q]=ne[J],Q=J,J<<=1;ne[Q]=ie},o.deflateInit=function(X,Q,ne,ie,J,_e){return ie||(ie=8),J||(J=8),_e||(_e=0),X.msg=null,Q==-1&&(Q=6),J<1||J>9||ie!=8||ne<9||ne>15||Q<0||Q>9||_e<0||_e>2?-2:(X.dstate=o,f=ne,l=1<<f,m=l-1,k=J+7,oe=1<<k,P=oe-1,p=Math.floor((k+3-1)/3),x=new Uint8Array(2*l),T=[],N=[],Re=1<<J+6,o.pending_buf=new Uint8Array(4*Re),d=4*Re,zt=Math.floor(Re/2),Et=3*Re,K=Q,z=_e,vr(X))},o.deflateEnd=function(){return i!=42&&i!=113&&i!=666?-2:(o.pending_buf=null,N=null,T=null,x=null,o.dstate=null,i==113?-3:0)},o.deflateParams=function(X,Q,ne){let ie=0;return Q==-1&&(Q=6),Q<0||Q>9||ne<0||ne>2?-2:(We[K].func!=We[Q].func&&X.total_in!==0&&(ie=X.deflate(1)),K!=Q&&(K=Q,se=We[K].max_lazy,ue=We[K].good_length,ye=We[K].nice_length,pe=We[K].max_chain),z=ne,ie)},o.deflateSetDictionary=function(X,Q,ne){let ie,J=ne,_e=0;if(!Q||i!=42)return-2;if(J<3)return 0;for(J>l-262&&(J=l-262,_e=ne-J),x.set(Q.subarray(_e,_e+J),0),F=J,g=J,W=255&x[0],W=(W<<p^255&x[1])&P,ie=0;ie<=J-3;ie++)W=(W<<p^255&x[ie+2])&P,T[ie&m]=N[W],N[W]=ie;return 0},o.deflate=function(X,Q){let ne,ie,J,_e,be;if(Q>4||Q<0)return-2;if(!X.next_out||!X.next_in&&X.avail_in!==0||i==666&&Q!=4)return X.msg=$t[4],-2;if(X.avail_out===0)return X.msg=$t[7],-5;var Me;if(r=X,_e=h,h=Q,i==42&&(ie=8+(f-8<<4)<<8,J=(K-1&255)>>1,J>3&&(J=3),ie|=J<<6,F!==0&&(ie|=32),ie+=31-ie%31,i=113,Ht((Me=ie)>>8&255),Ht(255&Me)),o.pending!==0){if(r.flush_pending(),r.avail_out===0)return h=-1,0}else if(r.avail_in===0&&Q<=_e&&Q!=4)return r.msg=$t[7],-5;if(i==666&&r.avail_in!==0)return X.msg=$t[7],-5;if(r.avail_in!==0||S!==0||Q!=0&&i!=666){switch(be=-1,We[K].func){case 0:be=function(De){let Be,Ve=65535;for(Ve>d-5&&(Ve=d-5);;){if(S<=1){if(Kn(),S===0&&De==0)return 0;if(S===0)break}if(F+=S,S=0,Be=g+Ve,(F===0||F>=Be)&&(S=F-Be,F=Be,At(!1),r.avail_out===0)||F-g>=l-262&&(At(!1),r.avail_out===0))return 0}return At(De==4),r.avail_out===0?De==4?2:0:De==4?3:1}(Q);break;case 1:be=function(De){let Be,Ve=0;for(;;){if(S<262){if(Kn(),S<262&&De==0)return 0;if(S===0)break}if(S>=3&&(W=(W<<p^255&x[F+2])&P,Ve=65535&N[W],T[F&m]=N[W],N[W]=F),Ve!==0&&(F-Ve&65535)<=l-262&&z!=2&&(R=$i(Ve)),R>=3)if(Be=nn(F-q,R-3),S-=R,R<=se&&S>=3){R--;do F++,W=(W<<p^255&x[F+2])&P,Ve=65535&N[W],T[F&m]=N[W],N[W]=F;while(--R!=0);F++}else F+=R,R=0,W=255&x[F],W=(W<<p^255&x[F+1])&P;else Be=nn(0,255&x[F]),S--,F++;if(Be&&(At(!1),r.avail_out===0))return 0}return At(De==4),r.avail_out===0?De==4?2:0:De==4?3:1}(Q);break;case 2:be=function(De){let Be,Ve,St=0;for(;;){if(S<262){if(Kn(),S<262&&De==0)return 0;if(S===0)break}if(S>=3&&(W=(W<<p^255&x[F+2])&P,St=65535&N[W],T[F&m]=N[W],N[W]=F),ee=R,j=q,R=2,St!==0&&ee<se&&(F-St&65535)<=l-262&&(z!=2&&(R=$i(St)),R<=5&&(z==1||R==3&&F-q>4096)&&(R=2)),ee>=3&&R<=ee){Ve=F+S-3,Be=nn(F-1-j,ee-3),S-=ee-1,ee-=2;do++F<=Ve&&(W=(W<<p^255&x[F+2])&P,St=65535&N[W],T[F&m]=N[W],N[W]=F);while(--ee!=0);if(te=0,R=2,F++,Be&&(At(!1),r.avail_out===0))return 0}else if(te!==0){if(Be=nn(0,255&x[F-1]),Be&&At(!1),F++,S--,r.avail_out===0)return 0}else te=1,F++,S--}return te!==0&&(Be=nn(0,255&x[F-1]),te=0),At(De==4),r.avail_out===0?De==4?2:0:De==4?3:1}(Q)}if(be!=2&&be!=3||(i=666),be==0||be==2)return r.avail_out===0&&(h=-1),0;if(be==1){if(Q==1)qe(2,3),st(256,Te.static_ltree),Bi(),1+en+10-Pe<9&&(qe(2,3),st(256,Te.static_ltree),Bi()),en=7;else if(Ni(0,0,!1),Q==3)for(ne=0;ne<oe;ne++)N[ne]=0;if(r.flush_pending(),r.avail_out===0)return h=-1,0}}return Q!=4?0:1}}function mt(){let o=this;o.next_in_index=0,o.next_out_index=0,o.avail_in=0,o.total_in=0,o.avail_out=0,o.total_out=0}function Dt(o){let r=new mt,i=o&&o.chunkSize?Math.floor(1.05*o.chunkSize):65536,d=new Uint8Array(i),h=o?o.level:-1;h===void 0&&(h=-1),r.deflateInit(h),r.next_out=d,this.append=function(l,f){let m,x,A=0,T=0,N=0,W=[];if(l.length){r.next_in_index=0,r.next_in=l,r.avail_in=l.length;do{if(r.next_out_index=0,r.avail_out=i,m=r.deflate(0),m!=0)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?W.push(new Uint8Array(d)):W.push(d.slice(0,r.next_out_index))),N+=r.next_out_index,f&&r.next_in_index>0&&r.next_in_index!=A&&(f(r.next_in_index),A=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return W.length>1?(x=new Uint8Array(N),W.forEach(function(oe){x.set(oe,T),T+=oe.length})):x=W[0]||new Uint8Array(0),x}},this.flush=function(){let l,f,m=0,x=0,A=[];do{if(r.next_out_index=0,r.avail_out=i,l=r.deflate(4),l!=1&&l!=0)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&A.push(d.slice(0,r.next_out_index)),x+=r.next_out_index}while(r.avail_in>0||r.avail_out===0);return r.deflateEnd(),f=new Uint8Array(x),A.forEach(function(T){f.set(T,m),m+=T.length}),f}}mt.prototype={deflateInit:function(o,r){let i=this;return i.dstate=new Pn,r||(r=15),i.dstate.deflateInit(i,o,r)},deflate:function(o){let r=this;return r.dstate?r.dstate.deflate(r,o):-2},deflateEnd:function(){let o=this;if(!o.dstate)return-2;let r=o.dstate.deflateEnd();return o.dstate=null,r},deflateParams:function(o,r){let i=this;return i.dstate?i.dstate.deflateParams(i,o,r):-2},deflateSetDictionary:function(o,r){let i=this;return i.dstate?i.dstate.deflateSetDictionary(i,o,r):-2},read_buf:function(o,r,i){let d=this,h=d.avail_in;return h>i&&(h=i),h===0?0:(d.avail_in-=h,o.set(d.next_in.subarray(d.next_in_index,d.next_in_index+h),r),d.next_in_index+=h,d.total_in+=h,h)},flush_pending:function(){let o=this,r=o.dstate.pending;r>o.avail_out&&(r=o.avail_out),r!==0&&(o.next_out.set(o.dstate.pending_buf.subarray(o.dstate.pending_out,o.dstate.pending_out+r),o.next_out_index),o.next_out_index+=r,o.dstate.pending_out+=r,o.total_out+=r,o.avail_out-=r,o.dstate.pending-=r,o.dstate.pending===0&&(o.dstate.pending_out=0))}};let He=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],je=[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],Ye=[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],hn=[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],qn=[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],mn=[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],Vn=[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 bt(){let o,r,i,d,h,l;function f(x,A,T,N,W,oe,k,P,p,g,R){let j,te,F,q,S,ee,pe,se,K,z,ue,ye,ge,ce,xe;z=0,S=T;do i[x[A+z]]++,z++,S--;while(S!==0);if(i[0]==T)return k[0]=-1,P[0]=0,0;for(se=P[0],ee=1;ee<=15&&i[ee]===0;ee++);for(pe=ee,se<ee&&(se=ee),S=15;S!==0&&i[S]===0;S--);for(F=S,se>S&&(se=S),P[0]=se,ce=1<<ee;ee<S;ee++,ce<<=1)if((ce-=i[ee])<0)return-3;if((ce-=i[S])<0)return-3;for(i[S]+=ce,l[1]=ee=0,z=1,ge=2;--S!=0;)l[ge]=ee+=i[z],ge++,z++;S=0,z=0;do(ee=x[A+z])!==0&&(R[l[ee]++]=S),z++;while(++S<T);for(T=l[F],l[0]=S=0,z=0,q=-1,ye=-se,h[0]=0,ue=0,xe=0;pe<=F;pe++)for(j=i[pe];j--!=0;){for(;pe>ye+se;){if(q++,ye+=se,xe=F-ye,xe=xe>se?se:xe,(te=1<<(ee=pe-ye))>j+1&&(te-=j+1,ge=pe,ee<xe))for(;++ee<xe&&!((te<<=1)<=i[++ge]);)te-=i[ge];if(xe=1<<ee,g[0]+xe>1440)return-3;h[q]=ue=g[0],g[0]+=xe,q!==0?(l[q]=S,d[0]=ee,d[1]=se,ee=S>>>ye-se,d[2]=ue-h[q-1]-ee,p.set(d,3*(h[q-1]+ee))):k[0]=ue}for(d[1]=pe-ye,z>=T?d[0]=192:R[z]<N?(d[0]=R[z]<256?0:96,d[2]=R[z++]):(d[0]=oe[R[z]-N]+16+64,d[2]=W[R[z++]-N]),te=1<<pe-ye,ee=S>>>ye;ee<xe;ee+=te)p.set(d,3*(ue+ee));for(ee=1<<pe-1;S&ee;ee>>>=1)S^=ee;for(S^=ee,K=(1<<ye)-1;(S&K)!=l[q];)q--,ye-=se,K=(1<<ye)-1}return ce!==0&&F!=1?-5:0}function m(x){let A;for(o||(o=[],r=[],i=new Int32Array(16),d=[],h=new Int32Array(15),l=new Int32Array(16)),r.length<x&&(r=[]),A=0;A<x;A++)r[A]=0;for(A=0;A<16;A++)i[A]=0;for(A=0;A<3;A++)d[A]=0;h.set(i.subarray(0,15),0),l.set(i.subarray(0,16),0)}this.inflate_trees_bits=function(x,A,T,N,W){let oe;return m(19),o[0]=0,oe=f(x,0,19,19,null,null,T,A,N,o,r),oe==-3?W.msg="oversubscribed dynamic bit lengths tree":oe!=-5&&A[0]!==0||(W.msg="incomplete dynamic bit lengths tree",oe=-3),oe},this.inflate_trees_dynamic=function(x,A,T,N,W,oe,k,P,p){let g;return m(288),o[0]=0,g=f(T,0,x,257,hn,qn,oe,N,P,o,r),g!=0||N[0]===0?(g==-3?p.msg="oversubscribed literal/length tree":g!=-4&&(p.msg="incomplete literal/length tree",g=-3),g):(m(288),g=f(T,x,A,0,mn,Vn,k,W,P,o,r),g!=0||W[0]===0&&x>257?(g==-3?p.msg="oversubscribed distance tree":g==-5?(p.msg="incomplete distance tree",g=-3):g!=-4&&(p.msg="empty distance tree with lengths",g=-3),g):0)}}function bn(){let o=this,r,i,d,h,l=0,f=0,m=0,x=0,A=0,T=0,N=0,W=0,oe=0,k=0;function P(p,g,R,j,te,F,q,S){let ee,pe,se,K,z,ue,ye,ge,ce,xe,yt,kt,he,Et,Re,Ie;ye=S.next_in_index,ge=S.avail_in,z=q.bitb,ue=q.bitk,ce=q.write,xe=ce<q.read?q.read-ce-1:q.end-ce,yt=He[p],kt=He[g];do{for(;ue<20;)ge--,z|=(255&S.read_byte(ye++))<<ue,ue+=8;if(ee=z&yt,pe=R,se=j,Ie=3*(se+ee),(K=pe[Ie])!==0)for(;;){if(z>>=pe[Ie+1],ue-=pe[Ie+1],(16&K)!=0){for(K&=15,he=pe[Ie+2]+(z&He[K]),z>>=K,ue-=K;ue<15;)ge--,z|=(255&S.read_byte(ye++))<<ue,ue+=8;for(ee=z&kt,pe=te,se=F,Ie=3*(se+ee),K=pe[Ie];;){if(z>>=pe[Ie+1],ue-=pe[Ie+1],(16&K)!=0){for(K&=15;ue<K;)ge--,z|=(255&S.read_byte(ye++))<<ue,ue+=8;if(Et=pe[Ie+2]+(z&He[K]),z>>=K,ue-=K,xe-=he,ce>=Et)Re=ce-Et,ce-Re>0&&2>ce-Re?(q.window[ce++]=q.window[Re++],q.window[ce++]=q.window[Re++],he-=2):(q.window.set(q.window.subarray(Re,Re+2),ce),ce+=2,Re+=2,he-=2);else{Re=ce-Et;do Re+=q.end;while(Re<0);if(K=q.end-Re,he>K){if(he-=K,ce-Re>0&&K>ce-Re)do q.window[ce++]=q.window[Re++];while(--K!=0);else q.window.set(q.window.subarray(Re,Re+K),ce),ce+=K,Re+=K,K=0;Re=0}}if(ce-Re>0&&he>ce-Re)do q.window[ce++]=q.window[Re++];while(--he!=0);else q.window.set(q.window.subarray(Re,Re+he),ce),ce+=he,Re+=he,he=0;break}if(64&K)return S.msg="invalid distance code",he=S.avail_in-ge,he=ue>>3<he?ue>>3:he,ge+=he,ye-=he,ue-=he<<3,q.bitb=z,q.bitk=ue,S.avail_in=ge,S.total_in+=ye-S.next_in_index,S.next_in_index=ye,q.write=ce,-3;ee+=pe[Ie+2],ee+=z&He[K],Ie=3*(se+ee),K=pe[Ie]}break}if(64&K)return 32&K?(he=S.avail_in-ge,he=ue>>3<he?ue>>3:he,ge+=he,ye-=he,ue-=he<<3,q.bitb=z,q.bitk=ue,S.avail_in=ge,S.total_in+=ye-S.next_in_index,S.next_in_index=ye,q.write=ce,1):(S.msg="invalid literal/length code",he=S.avail_in-ge,he=ue>>3<he?ue>>3:he,ge+=he,ye-=he,ue-=he<<3,q.bitb=z,q.bitk=ue,S.avail_in=ge,S.total_in+=ye-S.next_in_index,S.next_in_index=ye,q.write=ce,-3);if(ee+=pe[Ie+2],ee+=z&He[K],Ie=3*(se+ee),(K=pe[Ie])===0){z>>=pe[Ie+1],ue-=pe[Ie+1],q.window[ce++]=pe[Ie+2],xe--;break}}else z>>=pe[Ie+1],ue-=pe[Ie+1],q.window[ce++]=pe[Ie+2],xe--}while(xe>=258&&ge>=10);return he=S.avail_in-ge,he=ue>>3<he?ue>>3:he,ge+=he,ye-=he,ue-=he<<3,q.bitb=z,q.bitk=ue,S.avail_in=ge,S.total_in+=ye-S.next_in_index,S.next_in_index=ye,q.write=ce,0}o.init=function(p,g,R,j,te,F){r=0,N=p,W=g,d=R,oe=j,h=te,k=F,i=null},o.proc=function(p,g,R){let j,te,F,q,S,ee,pe,se=0,K=0,z=0;for(z=g.next_in_index,q=g.avail_in,se=p.bitb,K=p.bitk,S=p.write,ee=S<p.read?p.read-S-1:p.end-S;;)switch(r){case 0:if(ee>=258&&q>=10&&(p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,R=P(N,W,d,oe,h,k,p,g),z=g.next_in_index,q=g.avail_in,se=p.bitb,K=p.bitk,S=p.write,ee=S<p.read?p.read-S-1:p.end-S,R!=0)){r=R==1?7:9;break}m=N,i=d,f=oe,r=1;case 1:for(j=m;K<j;){if(q===0)return p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);R=0,q--,se|=(255&g.read_byte(z++))<<K,K+=8}if(te=3*(f+(se&He[j])),se>>>=i[te+1],K-=i[te+1],F=i[te],F===0){x=i[te+2],r=6;break}if(16&F){A=15&F,l=i[te+2],r=2;break}if(!(64&F)){m=F,f=te/3+i[te+2];break}if(32&F){r=7;break}return r=9,g.msg="invalid literal/length code",R=-3,p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);case 2:for(j=A;K<j;){if(q===0)return p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);R=0,q--,se|=(255&g.read_byte(z++))<<K,K+=8}l+=se&He[j],se>>=j,K-=j,m=W,i=h,f=k,r=3;case 3:for(j=m;K<j;){if(q===0)return p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);R=0,q--,se|=(255&g.read_byte(z++))<<K,K+=8}if(te=3*(f+(se&He[j])),se>>=i[te+1],K-=i[te+1],F=i[te],(16&F)!=0){A=15&F,T=i[te+2],r=4;break}if(!(64&F)){m=F,f=te/3+i[te+2];break}return r=9,g.msg="invalid distance code",R=-3,p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);case 4:for(j=A;K<j;){if(q===0)return p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);R=0,q--,se|=(255&g.read_byte(z++))<<K,K+=8}T+=se&He[j],se>>=j,K-=j,r=5;case 5:for(pe=S-T;pe<0;)pe+=p.end;for(;l!==0;){if(ee===0&&(S==p.end&&p.read!==0&&(S=0,ee=S<p.read?p.read-S-1:p.end-S),ee===0&&(p.write=S,R=p.inflate_flush(g,R),S=p.write,ee=S<p.read?p.read-S-1:p.end-S,S==p.end&&p.read!==0&&(S=0,ee=S<p.read?p.read-S-1:p.end-S),ee===0)))return p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);p.window[S++]=p.window[pe++],ee--,pe==p.end&&(pe=0),l--}r=0;break;case 6:if(ee===0&&(S==p.end&&p.read!==0&&(S=0,ee=S<p.read?p.read-S-1:p.end-S),ee===0&&(p.write=S,R=p.inflate_flush(g,R),S=p.write,ee=S<p.read?p.read-S-1:p.end-S,S==p.end&&p.read!==0&&(S=0,ee=S<p.read?p.read-S-1:p.end-S),ee===0)))return p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);R=0,p.window[S++]=x,ee--,r=0;break;case 7:if(K>7&&(K-=8,q++,z--),p.write=S,R=p.inflate_flush(g,R),S=p.write,ee=S<p.read?p.read-S-1:p.end-S,p.read!=p.write)return p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);r=8;case 8:return R=1,p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);case 9:return R=-3,p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R);default:return R=-2,p.bitb=se,p.bitk=K,g.avail_in=q,g.total_in+=z-g.next_in_index,g.next_in_index=z,p.write=S,p.inflate_flush(g,R)}},o.free=function(){}}bt.inflate_trees_fixed=function(o,r,i,d){return o[0]=9,r[0]=5,i[0]=je,d[0]=Ye,0};let Jt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Wn(o,r){let i=this,d,h=0,l=0,f=0,m=0,x=[0],A=[0],T=new bn,N=0,W=new Int32Array(4320),oe=new bt;i.bitk=0,i.bitb=0,i.window=new Uint8Array(r),i.end=r,i.read=0,i.write=0,i.reset=function(k,P){P&&(P[0]=0),h==6&&T.free(k),h=0,i.bitk=0,i.bitb=0,i.read=i.write=0},i.reset(o,null),i.inflate_flush=function(k,P){let p,g,R;return g=k.next_out_index,R=i.read,p=(R<=i.write?i.write:i.end)-R,p>k.avail_out&&(p=k.avail_out),p!==0&&P==-5&&(P=0),k.avail_out-=p,k.total_out+=p,k.next_out.set(i.window.subarray(R,R+p),g),g+=p,R+=p,R==i.end&&(R=0,i.write==i.end&&(i.write=0),p=i.write-R,p>k.avail_out&&(p=k.avail_out),p!==0&&P==-5&&(P=0),k.avail_out-=p,k.total_out+=p,k.next_out.set(i.window.subarray(R,R+p),g),g+=p,R+=p),k.next_out_index=g,i.read=R,P},i.proc=function(k,P){let p,g,R,j,te,F,q,S;for(j=k.next_in_index,te=k.avail_in,g=i.bitb,R=i.bitk,F=i.write,q=F<i.read?i.read-F-1:i.end-F;;){let ee,pe,se,K,z,ue,ye,ge;switch(h){case 0:for(;R<3;){if(te===0)return i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);P=0,te--,g|=(255&k.read_byte(j++))<<R,R+=8}switch(p=7&g,N=1&p,p>>>1){case 0:g>>>=3,R-=3,p=7&R,g>>>=p,R-=p,h=1;break;case 1:ee=[],pe=[],se=[[]],K=[[]],bt.inflate_trees_fixed(ee,pe,se,K),T.init(ee[0],pe[0],se[0],0,K[0],0),g>>>=3,R-=3,h=6;break;case 2:g>>>=3,R-=3,h=3;break;case 3:return g>>>=3,R-=3,h=9,k.msg="invalid block type",P=-3,i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P)}break;case 1:for(;R<32;){if(te===0)return i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);P=0,te--,g|=(255&k.read_byte(j++))<<R,R+=8}if((~g>>>16&65535)!=(65535&g))return h=9,k.msg="invalid stored block lengths",P=-3,i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);l=65535&g,g=R=0,h=l!==0?2:N!==0?7:0;break;case 2:if(te===0||q===0&&(F==i.end&&i.read!==0&&(F=0,q=F<i.read?i.read-F-1:i.end-F),q===0&&(i.write=F,P=i.inflate_flush(k,P),F=i.write,q=F<i.read?i.read-F-1:i.end-F,F==i.end&&i.read!==0&&(F=0,q=F<i.read?i.read-F-1:i.end-F),q===0)))return i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);if(P=0,p=l,p>te&&(p=te),p>q&&(p=q),i.window.set(k.read_buf(j,p),F),j+=p,te-=p,F+=p,q-=p,(l-=p)!=0)break;h=N!==0?7:0;break;case 3:for(;R<14;){if(te===0)return i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);P=0,te--,g|=(255&k.read_byte(j++))<<R,R+=8}if(f=p=16383&g,(31&p)>29||(p>>5&31)>29)return h=9,k.msg="too many length or distance symbols",P=-3,i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);if(p=258+(31&p)+(p>>5&31),!d||d.length<p)d=[];else for(S=0;S<p;S++)d[S]=0;g>>>=14,R-=14,m=0,h=4;case 4:for(;m<4+(f>>>10);){for(;R<3;){if(te===0)return i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);P=0,te--,g|=(255&k.read_byte(j++))<<R,R+=8}d[Jt[m++]]=7&g,g>>>=3,R-=3}for(;m<19;)d[Jt[m++]]=0;if(x[0]=7,p=oe.inflate_trees_bits(d,x,A,W,k),p!=0)return(P=p)==-3&&(d=null,h=9),i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);m=0,h=5;case 5:for(;p=f,!(m>=258+(31&p)+(p>>5&31));){let ce,xe;for(p=x[0];R<p;){if(te===0)return i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);P=0,te--,g|=(255&k.read_byte(j++))<<R,R+=8}if(p=W[3*(A[0]+(g&He[p]))+1],xe=W[3*(A[0]+(g&He[p]))+2],xe<16)g>>>=p,R-=p,d[m++]=xe;else{for(S=xe==18?7:xe-14,ce=xe==18?11:3;R<p+S;){if(te===0)return i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);P=0,te--,g|=(255&k.read_byte(j++))<<R,R+=8}if(g>>>=p,R-=p,ce+=g&He[S],g>>>=S,R-=S,S=m,p=f,S+ce>258+(31&p)+(p>>5&31)||xe==16&&S<1)return d=null,h=9,k.msg="invalid bit length repeat",P=-3,i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);xe=xe==16?d[S-1]:0;do d[S++]=xe;while(--ce!=0);m=S}}if(A[0]=-1,z=[],ue=[],ye=[],ge=[],z[0]=9,ue[0]=6,p=f,p=oe.inflate_trees_dynamic(257+(31&p),1+(p>>5&31),d,z,ue,ye,ge,W,k),p!=0)return p==-3&&(d=null,h=9),P=p,i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);T.init(z[0],ue[0],W,ye[0],W,ge[0]),h=6;case 6:if(i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,(P=T.proc(i,k,P))!=1)return i.inflate_flush(k,P);if(P=0,T.free(k),j=k.next_in_index,te=k.avail_in,g=i.bitb,R=i.bitk,F=i.write,q=F<i.read?i.read-F-1:i.end-F,N===0){h=0;break}h=7;case 7:if(i.write=F,P=i.inflate_flush(k,P),F=i.write,q=F<i.read?i.read-F-1:i.end-F,i.read!=i.write)return i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);h=8;case 8:return P=1,i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);case 9:return P=-3,i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P);default:return P=-2,i.bitb=g,i.bitk=R,k.avail_in=te,k.total_in+=j-k.next_in_index,k.next_in_index=j,i.write=F,i.inflate_flush(k,P)}}},i.free=function(k){i.reset(k,null),i.window=null,W=null},i.set_dictionary=function(k,P,p){i.window.set(k.subarray(P,P+p),0),i.read=i.write=p},i.sync_point=function(){return h==1?1:0}}let wn=[0,0,255,255];function Gn(){let o=this;function r(i){return i&&i.istate?(i.total_in=i.total_out=0,i.msg=null,i.istate.mode=7,i.istate.blocks.reset(i,null),0):-2}o.mode=0,o.method=0,o.was=[0],o.need=0,o.marker=0,o.wbits=0,o.inflateEnd=function(i){return o.blocks&&o.blocks.free(i),o.blocks=null,0},o.inflateInit=function(i,d){return i.msg=null,o.blocks=null,d<8||d>15?(o.inflateEnd(i),-2):(o.wbits=d,i.istate.blocks=new Wn(i,1<<d),r(i),0)},o.inflate=function(i,d){let h,l;if(!i||!i.istate||!i.next_in)return-2;let f=i.istate;for(d=d==4?-5:0,h=-5;;)switch(f.mode){case 0:if(i.avail_in===0)return h;if(h=d,i.avail_in--,i.total_in++,(15&(f.method=i.read_byte(i.next_in_index++)))!=8){f.mode=13,i.msg="unknown compression method",f.marker=5;break}if(8+(f.method>>4)>f.wbits){f.mode=13,i.msg="invalid window size",f.marker=5;break}f.mode=1;case 1:if(i.avail_in===0)return h;if(h=d,i.avail_in--,i.total_in++,l=255&i.read_byte(i.next_in_index++),((f.method<<8)+l)%31!=0){f.mode=13,i.msg="incorrect header check",f.marker=5;break}if(!(32&l)){f.mode=7;break}f.mode=2;case 2:if(i.avail_in===0)return h;h=d,i.avail_in--,i.total_in++,f.need=(255&i.read_byte(i.next_in_index++))<<24&4278190080,f.mode=3;case 3:if(i.avail_in===0)return h;h=d,i.avail_in--,i.total_in++,f.need+=(255&i.read_byte(i.next_in_index++))<<16&16711680,f.mode=4;case 4:if(i.avail_in===0)return h;h=d,i.avail_in--,i.total_in++,f.need+=(255&i.read_byte(i.next_in_index++))<<8&65280,f.mode=5;case 5:return i.avail_in===0?h:(h=d,i.avail_in--,i.total_in++,f.need+=255&i.read_byte(i.next_in_index++),f.mode=6,2);case 6:return f.mode=13,i.msg="need dictionary",f.marker=0,-2;case 7:if(h=f.blocks.proc(i,h),h==-3){f.mode=13,f.marker=0;break}if(h==0&&(h=d),h!=1)return h;h=d,f.blocks.reset(i,f.was),f.mode=12;case 12:return 1;case 13:return-3;default:return-2}},o.inflateSetDictionary=function(i,d,h){let l=0,f=h;if(!i||!i.istate||i.istate.mode!=6)return-2;let m=i.istate;return f>=1<<m.wbits&&(f=(1<<m.wbits)-1,l=h-f),m.blocks.set_dictionary(d,l,f),m.mode=7,0},o.inflateSync=function(i){let d,h,l,f,m;if(!i||!i.istate)return-2;let x=i.istate;if(x.mode!=13&&(x.mode=13,x.marker=0),(d=i.avail_in)===0)return-5;for(h=i.next_in_index,l=x.marker;d!==0&&l<4;)i.read_byte(h)==wn[l]?l++:l=i.read_byte(h)!==0?0:4-l,h++,d--;return i.total_in+=h-i.next_in_index,i.next_in_index=h,i.avail_in=d,x.marker=l,l!=4?-3:(f=i.total_in,m=i.total_out,r(i),i.total_in=f,i.total_out=m,x.mode=7,0)},o.inflateSyncPoint=function(i){return i&&i.istate&&i.istate.blocks?i.istate.blocks.sync_point():-2}}function rt(){}function Qt(o){let r=new rt,i=o&&o.chunkSize?Math.floor(2*o.chunkSize):131072,d=new Uint8Array(i),h=!1;r.inflateInit(),r.next_out=d,this.append=function(l,f){let m=[],x,A,T=0,N=0,W=0;if(l.length!==0){r.next_in_index=0,r.next_in=l,r.avail_in=l.length;do{if(r.next_out_index=0,r.avail_out=i,r.avail_in!==0||h||(r.next_in_index=0,h=!0),x=r.inflate(0),h&&x===-5){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(x!==0&&x!==1)throw new Error("inflating: "+r.msg);if((h||x===1)&&r.avail_in===l.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?m.push(new Uint8Array(d)):m.push(d.slice(0,r.next_out_index))),W+=r.next_out_index,f&&r.next_in_index>0&&r.next_in_index!=T&&(f(r.next_in_index),T=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return m.length>1?(A=new Uint8Array(W),m.forEach(function(oe){A.set(oe,N),N+=oe.length})):A=m[0]||new Uint8Array(0),A}},this.flush=function(){r.inflateEnd()}}rt.prototype={inflateInit:function(o){let r=this;return r.istate=new Gn,o||(o=15),r.istate.inflateInit(r,o)},inflate:function(o){let r=this;return r.istate?r.istate.inflate(r,o):-2},inflateEnd:function(){let o=this;if(!o.istate)return-2;let r=o.istate.inflateEnd(o);return o.istate=null,r},inflateSync:function(){let o=this;return o.istate?o.istate.inflateSync(o):-2},inflateSetDictionary:function(o,r){let i=this;return i.istate?i.istate.inflateSetDictionary(i,o,r):-2},read_byte:function(o){return this.next_in[o]},read_buf:function(o,r){return this.next_in.subarray(o,o+r)}},self.initCodec=()=>{self.Deflate=Dt,self.Inflate=Qt}}).toString(),t=URL.createObjectURL(new Blob(["("+n+")()"],{type:"text/javascript"}));Ja({workerScripts:{inflate:[t],deflate:[t]}})}},xa="text/plain",Mn=class{constructor(){this.size=0}init(){this.initialized=!0}},mi=class extends Mn{},jn=class extends Mn{writeUint8Array(t){this.size+=t.length}},bi=class extends jn{constructor(t){super(),this.encoding=t,this.blob=new Blob([],{type:xa})}async writeUint8Array(t){super.writeUint8Array(t),this.blob=new Blob([this.blob,t.buffer],{type:xa})}getData(){let t=new FileReader;return new Promise((e,a)=>{t.onload=s=>e(s.target.result),t.onerror=a,t.readAsText(this.blob,this.encoding)})}},Nn=class extends mi{constructor(t){super(),this.blob=t,this.size=t.size}async readUint8Array(t,e){let a=new FileReader;return new Promise((s,c)=>{a.onload=u=>s(new Uint8Array(u.target.result)),a.onerror=c,a.readAsArrayBuffer(this.blob.slice(t,t+e))})}},pn=class extends jn{constructor(t){super(),this.offset=0,this.contentType=t,this.blob=new Blob([],{type:t})}async writeUint8Array(t){super.writeUint8Array(t),this.blob=new Blob([this.blob,t.buffer],{type:this.contentType}),this.offset=this.blob.size}getData(){return this.blob}},wi=4294967295,ha=65535,ms=8,bs=0,ws=99,gs=67324752,ma=33639248,vs=101010256,ba=101075792,ys=117853008,wa=22,ii=20,ai=56,ks=1,Es=39169,As=28789,Ss=25461,ga=1,Is=6,va=8,ya=2048,ka=16,Ts="/",Us="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ".split(""),Rs=n=>{let t="";for(let e=0;e<n.length;e++)t+=Us[n[e]];return t},Qa=[];for(let n=0;n<256;n++){let t=n;for(let e=0;e<8;e++)t&1?t=t>>>1^3988292384:t=t>>>1;Qa[n]=t}var jt=class{constructor(t){this.crc=t||-1}append(t){let e=this.crc|0;for(let a=0,s=t.length|0;a<s;a++)e=e>>>8^Qa[(e^t[a])&255];this.crc=e}get(){return~this.crc}},Ke={concat(n,t){if(n.length===0||t.length===0)return n.concat(t);let e=n[n.length-1],a=Ke.getPartial(e);return a===32?n.concat(t):Ke._shiftRight(t,a,e|0,n.slice(0,n.length-1))},bitLength(n){let t=n.length;if(t===0)return 0;let e=n[t-1];return(t-1)*32+Ke.getPartial(e)},clamp(n,t){if(n.length*32<t)return n;n=n.slice(0,Math.ceil(t/32));let e=n.length;return t=t&31,e>0&&t&&(n[e-1]=Ke.partial(t,n[e-1]&2147483648>>t-1,1)),n},partial(n,t,e){return n===32?t:(e?t|0:t<<32-n)+n*1099511627776},getPartial(n){return Math.round(n/1099511627776)||32},_shiftRight(n,t,e,a){for(a===void 0&&(a=[]);t>=32;t-=32)a.push(e),e=0;if(t===0)return a.concat(n);for(let u=0;u<n.length;u++)a.push(e|n[u]>>>t),e=n[u]<<32-t;let s=n.length?n[n.length-1]:0,c=Ke.getPartial(s);return a.push(Ke.partial(t+c&31,t+c>32?e:a.pop(),1)),a}},za={bytes:{fromBits(n){let e=Ke.bitLength(n)/8,a=new Uint8Array(e),s;for(let c=0;c<e;c++)c&3||(s=n[c/4]),a[c]=s>>>24,s<<=8;return a},toBits(n){let t=[],e,a=0;for(e=0;e<n.length;e++)a=a<<8|n[e],(e&3)===3&&(t.push(a),a=0);return e&3&&t.push(Ke.partial(8*(e&3),a)),t}}},Ri={};Ri.sha1=function(n){n?(this._h=n._h.slice(0),this._buffer=n._buffer.slice(0),this._length=n._length):this.reset()};Ri.sha1.prototype={blockSize:512,reset:function(){let n=this;return n._h=this._init.slice(0),n._buffer=[],n._length=0,n},update:function(n){let t=this;typeof n=="string"&&(n=za.utf8String.toBits(n));let e=t._buffer=Ke.concat(t._buffer,n),a=t._length,s=t._length=a+Ke.bitLength(n);if(s>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");let c=new Uint32Array(e),u=0;for(let v=t.blockSize+a-(t.blockSize+a&t.blockSize-1);v<=s;v+=t.blockSize)t._block(c.subarray(16*u,16*(u+1))),u+=1;return e.splice(0,16*u),t},finalize:function(){let n=this,t=n._buffer,e=n._h;t=Ke.concat(t,[Ke.partial(1,1)]);for(let a=t.length+2;a&15;a++)t.push(0);for(t.push(Math.floor(n._length/4294967296)),t.push(n._length|0);t.length;)n._block(t.splice(0,16));return n.reset(),e},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:function(n,t,e,a){if(n<=19)return t&e|~t&a;if(n<=39)return t^e^a;if(n<=59)return t&e|t&a|e&a;if(n<=79)return t^e^a},_S:function(n,t){return t<<n|t>>>32-n},_block:function(n){let t=this,e=t._h,a=Array(80);for(let U=0;U<16;U++)a[U]=n[U];let s=e[0],c=e[1],u=e[2],v=e[3],b=e[4];for(let U=0;U<=79;U++){U>=16&&(a[U]=t._S(1,a[U-3]^a[U-8]^a[U-14]^a[U-16]));let E=t._S(5,s)+t._f(U,c,u,v)+b+a[U]+t._key[Math.floor(U/20)]|0;b=v,v=u,u=t._S(30,c),c=s,s=E}e[0]=e[0]+s|0,e[1]=e[1]+c|0,e[2]=e[2]+u|0,e[3]=e[3]+v|0,e[4]=e[4]+b|0}};var er={};er.aes=class{constructor(n){let t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();let e=t._tables[0][4],a=t._tables[1],s=n.length,c,u,v,b=1;if(s!==4&&s!==6&&s!==8)throw new Error("invalid aes key size");for(t._key=[u=n.slice(0),v=[]],c=s;c<4*s+28;c++){let U=u[c-1];(c%s===0||s===8&&c%s===4)&&(U=e[U>>>24]<<24^e[U>>16&255]<<16^e[U>>8&255]<<8^e[U&255],c%s===0&&(U=U<<8^U>>>24^b<<24,b=b<<1^(b>>7)*283)),u[c]=u[c-s]^U}for(let U=0;c;U++,c--){let E=u[U&3?c:c-4];c<=4||U<4?v[U]=E:v[U]=a[0][e[E>>>24]]^a[1][e[E>>16&255]]^a[2][e[E>>8&255]]^a[3][e[E&255]]}}encrypt(n){return this._crypt(n,0)}decrypt(n){return this._crypt(n,1)}_precompute(){let n=this._tables[0],t=this._tables[1],e=n[4],a=t[4],s=[],c=[],u,v,b,U;for(let E=0;E<256;E++)c[(s[E]=E<<1^(E>>7)*283)^E]=E;for(let E=u=0;!e[E];E^=v||1,u=c[u]||1){let D=u^u<<1^u<<2^u<<3^u<<4;D=D>>8^D&255^99,e[E]=D,a[D]=E,U=s[b=s[v=s[E]]];let O=U*16843009^b*65537^v*257^E*16843008,Y=s[D]*257^D*16843008;for(let ae=0;ae<4;ae++)n[ae][E]=Y=Y<<24^Y>>>8,t[ae][D]=O=O<<24^O>>>8}for(let E=0;E<5;E++)n[E]=n[E].slice(0),t[E]=t[E].slice(0)}_crypt(n,t){if(n.length!==4)throw new Error("invalid aes block size");let e=this._key[t],a=e.length/4-2,s=[0,0,0,0],c=this._tables[t],u=c[0],v=c[1],b=c[2],U=c[3],E=c[4],D=n[0]^e[0],O=n[t?3:1]^e[1],Y=n[2]^e[2],ae=n[t?1:3]^e[3],y=4,_,w,I;for(let M=0;M<a;M++)_=u[D>>>24]^v[O>>16&255]^b[Y>>8&255]^U[ae&255]^e[y],w=u[O>>>24]^v[Y>>16&255]^b[ae>>8&255]^U[D&255]^e[y+1],I=u[Y>>>24]^v[ae>>16&255]^b[D>>8&255]^U[O&255]^e[y+2],ae=u[ae>>>24]^v[D>>16&255]^b[O>>8&255]^U[Y&255]^e[y+3],y+=4,D=_,O=w,Y=I;for(let M=0;M<4;M++)s[t?3&-M:M]=E[D>>>24]<<24^E[O>>16&255]<<16^E[Y>>8&255]<<8^E[ae&255]^e[y++],_=D,D=O,O=Y,Y=ae,ae=_;return s}};var tr={};tr.ctrGladman=class{constructor(n,t){this._prf=n,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(n){return this.calculate(this._prf,n,this._iv)}incWord(n){if((n>>24&255)===255){let t=n>>16&255,e=n>>8&255,a=n&255;t===255?(t=0,e===255?(e=0,a===255?a=0:++a):++e):++t,n=0,n+=t<<16,n+=e<<8,n+=a}else n+=1<<24;return n}incCounter(n){(n[0]=this.incWord(n[0]))===0&&(n[1]=this.incWord(n[1]))}calculate(n,t,e){let a;if(!(a=t.length))return[];let s=Ke.bitLength(t);for(let c=0;c<a;c+=4){this.incCounter(e);let u=n.encrypt(e);t[c]^=u[0],t[c+1]^=u[1],t[c+2]^=u[2],t[c+3]^=u[3]}return Ke.clamp(t,s)}};var nr={};nr.hmacSha1=class{constructor(n){let t=this,e=t._hash=Ri.sha1,a=[[],[]],s=e.prototype.blockSize/32;t._baseHash=[new e,new e],n.length>s&&(n=e.hash(n));for(let c=0;c<s;c++)a[0][c]=n[c]^909522486,a[1][c]=n[c]^1549556828;t._baseHash[0].update(a[0]),t._baseHash[1].update(a[1]),t._resultHash=new e(t._baseHash[0])}reset(){let n=this;n._resultHash=new n._hash(n._baseHash[0]),n._updated=!1}update(n){let t=this;t._updated=!0,t._resultHash.update(n)}digest(){let n=this,t=n._resultHash.finalize(),e=new n._hash(n._baseHash[1]).update(t).finalize();return n.reset(),e}};var ir="Invalid pasword",Wt=16,Ds="raw",ar={name:"PBKDF2"},Os={name:"HMAC"},Cs="SHA-1",Fs=Object.assign({hash:Os},ar),Ls=Object.assign({iterations:1e3,hash:{name:Cs}},ar),Bs=["deriveBits"],xn=[8,12,16],dn=[16,24,32],Ut=10,rr=[0,0,0,0],Ea=crypto.subtle,xt=za.bytes,sr=er.aes,or=tr.ctrGladman,lr=nr.hmacSha1,gi=class{constructor(t,e,a){Object.assign(this,{password:t,signed:e,strength:a-1,pendingInput:new Uint8Array(0)})}async append(t){let e=this;if(e.password){let s=ze(t,0,xn[e.strength]+2);await Ms(e,s,e.password),e.password=null,e.aesCtrGladman=new or(new sr(e.keys.key),Array.from(rr)),e.hmac=new lr(e.keys.authentication),t=ze(t,xn[e.strength]+2)}let a=new Uint8Array(t.length-Ut-(t.length-Ut)%Wt);return cr(e,t,a,0,Ut,!0)}async flush(){let t=this,e=t.pendingInput,a=ze(e,0,e.length-Ut),s=ze(e,e.length-Ut),c=new Uint8Array(0);if(a.length){let v=xt.toBits(a);t.hmac.update(v);let b=t.aesCtrGladman.update(v);c=xt.fromBits(b)}let u=!0;if(t.signed){let v=ze(xt.fromBits(t.hmac.digest()),0,Ut);for(let b=0;b<Ut;b++)v[b]!=s[b]&&(u=!1)}return{valid:u,data:c}}},vi=class{constructor(t,e){Object.assign(this,{password:t,strength:e-1,pendingInput:new Uint8Array(0)})}async append(t){let e=this,a=new Uint8Array(0);e.password&&(a=await js(e,e.password),e.password=null,e.aesCtrGladman=new or(new sr(e.keys.key),Array.from(rr)),e.hmac=new lr(e.keys.authentication));let s=new Uint8Array(a.length+t.length-t.length%Wt);return s.set(a,0),cr(e,t,s,a.length,0)}async flush(){let t=this,e=new Uint8Array(0);if(t.pendingInput.length){let s=t.aesCtrGladman.update(xt.toBits(t.pendingInput));t.hmac.update(s),e=xt.fromBits(s)}let a=ze(xt.fromBits(t.hmac.digest()),0,Ut);return{data:Di(e,a),signature:a}}};function cr(n,t,e,a,s,c){let u=t.length-s;n.pendingInput.length&&(t=Di(n.pendingInput,t),e=Ns(e,u-u%Wt));let v;for(v=0;v<=u-Wt;v+=Wt){let b=xt.toBits(ze(t,v,v+Wt));c&&n.hmac.update(b);let U=n.aesCtrGladman.update(b);c||n.hmac.update(U),e.set(xt.fromBits(U),v+a)}return n.pendingInput=ze(t,v),e}async function Ms(n,t,e){await dr(n,e,ze(t,0,xn[n.strength]));let a=ze(t,xn[n.strength]),s=n.keys.passwordVerification;if(s[0]!=a[0]||s[1]!=a[1])throw new Error(ir)}async function js(n,t){let e=crypto.getRandomValues(new Uint8Array(xn[n.strength]));return await dr(n,t,e),Di(e,n.keys.passwordVerification)}async function dr(n,t,e){let a=new TextEncoder().encode(t),s=await Ea.importKey(Ds,a,Fs,!1,Bs),c=await Ea.deriveBits(Object.assign({salt:e},Ls),s,8*(dn[n.strength]*2+2)),u=new Uint8Array(c);n.keys={key:xt.toBits(ze(u,0,dn[n.strength])),authentication:xt.toBits(ze(u,dn[n.strength],dn[n.strength]*2)),passwordVerification:ze(u,dn[n.strength]*2)}}function Di(n,t){let e=n;return n.length+t.length&&(e=new Uint8Array(n.length+t.length),e.set(n,0),e.set(t,n.length)),e}function Ns(n,t){if(t&&t>n.length){let e=n;n=new Uint8Array(t),n.set(e,0)}return n}function ze(n,t,e){return n.subarray(t,e)}var Yt=12,yi=class{constructor(t,e){let a=this;Object.assign(a,{password:t,passwordVerification:e}),fr(a,t)}async append(t){let e=this;if(e.password){let a=Aa(e,t.subarray(0,Yt));if(e.password=null,a[Yt-1]!=e.passwordVerification)throw new Error(ir);t=t.subarray(Yt)}return Aa(e,t)}async flush(){return{valid:!0,data:new Uint8Array(0)}}},ki=class{constructor(t,e){let a=this;Object.assign(a,{password:t,passwordVerification:e}),fr(a,t)}async append(t){let e=this,a,s;if(e.password){e.password=null;let c=crypto.getRandomValues(new Uint8Array(Yt));c[Yt-1]=e.passwordVerification,a=new Uint8Array(t.length+c.length),a.set(Sa(e,c),0),s=Yt}else a=new Uint8Array(t.length),s=0;return a.set(Sa(e,t),s),a}async flush(){return{data:new Uint8Array(0)}}};function Aa(n,t){let e=new Uint8Array(t.length);for(let a=0;a<t.length;a++)e[a]=ur(n)^t[a],Oi(n,e[a]);return e}function Sa(n,t){let e=new Uint8Array(t.length);for(let a=0;a<t.length;a++)e[a]=ur(n)^t[a],Oi(n,t[a]);return e}function fr(n,t){n.keys=[305419896,591751049,878082192],n.crcKey0=new jt(n.keys[0]),n.crcKey2=new jt(n.keys[2]);for(let e=0;e<t.length;e++)Oi(n,t.charCodeAt(e))}function Oi(n,t){n.crcKey0.append([t]),n.keys[0]=~n.crcKey0.get(),n.keys[1]=Ia(n.keys[1]+_r(n.keys[0])),n.keys[1]=Ia(Math.imul(n.keys[1],134775813)+1),n.crcKey2.append([n.keys[1]>>>24]),n.keys[2]=~n.crcKey2.get()}function ur(n){let t=n.keys[2]|2;return _r(Math.imul(t,t^1)>>>8)}function _r(n){return n&255}function Ia(n){return n&4294967295}var $s="deflate",pr="inflate",Ta="Invalid signature",Ei=class{constructor(t,{signature:e,password:a,signed:s,compressed:c,zipCrypto:u,passwordVerification:v,encryptionStrength:b},{chunkSize:U}){let E=!!a;Object.assign(this,{signature:e,encrypted:E,signed:s,compressed:c,inflate:c&&new t({chunkSize:U}),crc32:s&&new jt,zipCrypto:u,decrypt:E&&u?new yi(a,v):new gi(a,s,b)})}async append(t){let e=this;return e.encrypted&&t.length&&(t=await e.decrypt.append(t)),e.compressed&&t.length&&(t=await e.inflate.append(t)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.crc32.append(t),t}async flush(){let t=this,e,a=new Uint8Array(0);if(t.encrypted){let s=await t.decrypt.flush();if(!s.valid)throw new Error(Ta);a=s.data}if((!t.encrypted||t.zipCrypto)&&t.signed){let s=new DataView(new Uint8Array(4).buffer);if(e=t.crc32.get(),s.setUint32(0,e),t.cipher!=s.getUint32(0,!1))throw new Error(Ta)}return t.compressed&&(a=await t.inflate.append(a)||new Uint8Array(0),await t.inflate.flush()),{data:a,signature:e}}},Ai=class{constructor(t,{encrypted:e,signed:a,compressed:s,level:c,zipCrypto:u,password:v,passwordVerification:b,encryptionStrength:U},{chunkSize:E}){Object.assign(this,{encrypted:e,signed:a,compressed:s,deflate:s&&new t({level:c||5,chunkSize:E}),crc32:a&&new jt,zipCrypto:u,encrypt:e&&u?new ki(v,b):new vi(v,U)})}async append(t){let e=this,a=t;return e.compressed&&t.length&&(a=await e.deflate.append(t)),e.encrypted&&a.length&&(a=await e.encrypt.append(a)),(!e.encrypted||e.zipCrypto)&&e.signed&&t.length&&e.crc32.append(t),a}async flush(){let t=this,e,a=new Uint8Array(0);if(t.compressed&&(a=await t.deflate.flush()||new Uint8Array(0)),t.encrypted){a=await t.encrypt.append(a);let s=await t.encrypt.flush();e=s.signature;let c=new Uint8Array(a.length+s.data.length);c.set(a,0),c.set(s.data,a.length),a=c}return(!t.encrypted||t.zipCrypto)&&t.signed&&(e=t.crc32.get()),{data:a,signature:e}}};function Hs(n,t,e){if(t.codecType.startsWith($s))return new Ai(n,t,e);if(t.codecType.startsWith(pr))return new Ei(n,t,e)}var Ua="init",Ra="append",ri="flush",Ps="message",si=(n,t,e,a,s,c,u)=>(Object.assign(n,{busy:!0,codecConstructor:t,options:Object.assign({},e),scripts:u,webWorker:c,onTaskFinished(){n.busy=!1,s(n)&&n.worker&&n.worker.terminate()}}),c?Vs(n,a):qs(n,a));function qs(n,t){let e=Hs(n.codecConstructor,n.options,t);return{async append(a){try{return await e.append(a)}catch(s){throw n.onTaskFinished(),s}},async flush(){try{return await e.flush()}finally{n.onTaskFinished()}}}}function Vs(n,t){let e;return n.interface||(n.worker=new Worker(new URL(n.scripts[0],go.url)),n.worker.addEventListener(Ps,c,!1),n.interface={append(u){return a({type:Ra,data:u})},flush(){return a({type:ri})}}),n.interface;async function a(u){if(!e){let v=n.options,b=n.scripts.slice(1);await s({scripts:b,type:Ua,options:v,config:{chunkSize:t.chunkSize}})}return s(u)}function s(u){let v=n.worker,b=new Promise((U,E)=>e={resolve:U,reject:E});try{if(u.data)try{u.data=u.data.buffer,v.postMessage(u,[u.data])}catch{v.postMessage(u)}else v.postMessage(u)}catch(U){e.reject(U),e=null,n.onTaskFinished()}return b}function c(u){let v=u.data;if(e){let b=v.error,U=v.type;if(b){let E=new Error(b.message);E.stack=b.stack,e.reject(E),e=null,n.onTaskFinished()}else if(U==Ua||U==ri||U==Ra){let E=v.data;U==ri?(e.resolve({data:new Uint8Array(E),signature:v.signature}),e=null,n.onTaskFinished()):e.resolve(E&&new Uint8Array(E))}}}}var fn=[],oi=[];function Ws(n,t,e){let s=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||t.useWebWorkers===void 0&&e.useWebWorkers),c=s&&e.workerScripts?e.workerScripts[t.codecType]:[];if(fn.length<e.maxWorkers){let v={};return fn.push(v),si(v,n,t,e,u,s,c)}else{let v=fn.find(b=>!b.busy);return v?si(v,n,t,e,u,s,c):new Promise(b=>oi.push({resolve:b,codecConstructor:n,options:t,webWorker:s,scripts:c}))}function u(v){let b=!oi.length;if(b)fn=fn.filter(U=>U!=v);else{let[{resolve:U,codecConstructor:E,options:D,webWorker:O,scripts:Y}]=oi.splice(0,1);U(si(v,E,D,e,u,O,Y))}return b}}var Gs=64,Zs="Abort error";async function Ks(n,t,e,a,s,c,u){let v=Math.max(c.chunkSize,Gs);return b();async function b(U=0,E=0){let D=u.signal;if(U<s){li(D);let O=await t.readUint8Array(U+a,Math.min(v,s-U)),Y=O.length;li(D);let ae=await n.append(O);if(li(D),E+=await Da(e,ae),u.onprogress)try{u.onprogress(U+Y,s)}catch{}return b(U+v,E)}else{let O=await n.flush();return E+=await Da(e,O.data),{signature:O.signature,length:E}}}}function li(n){if(n&&n.aborted)throw new Error(Zs)}async function Da(n,t){return t.length&&await n.writeUint8Array(t),t.length}var Ys=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod"],Si=class{constructor(t){Ys.forEach(e=>this[e]=t[e])}},ci="File format is not recognized",Xs="End of central directory not found",Js="End of Zip64 central directory not found",Qs="End of Zip64 central directory locator not found",zs="Central directory header not found",eo="Local file header not found",to="Zip64 extra field not found",no="File contains encrypted entry",io="Encryption method not supported",Oa="Compression method not supported",Ca="utf-8",Fa=["uncompressedSize","compressedSize","offset"],$n=class{constructor(t,e={}){Object.assign(this,{reader:t,options:e,config:xs()})}async getEntries(t={}){let e=this,a=e.reader;if(a.initialized||await a.init(),a.size<wa)throw new Error(ci);let s=await so(a,vs,a.size,wa,ha*16);if(!s)throw new Error(Xs);let c=Qe(s),u=$e(c,12),v=$e(c,16),b=pt(c,8),U=0;if(v==wi||b==ha){let y=await Ft(a,s.offset-ii,ii),_=Qe(y);if($e(_,0)!=ys)throw new Error(Js);v=Cn(_,8);let w=await Ft(a,v,ai),I=Qe(w),M=s.offset-ii-ai;if($e(I,0)!=ba&&v!=M){let V=v;v=M,U=v-V,w=await Ft(a,v,ai),I=Qe(w)}if($e(I,0)!=ba)throw new Error(Qs);b=Cn(I,24),u=$e(_,4),v-=Cn(I,40)}if(v<0||v>=a.size)throw new Error(ci);let E=0,D=await Ft(a,v,a.size-v),O=Qe(D),Y=s.offset-u;if($e(O,E)!=ma&&v!=Y){let y=v;v=Y,U=v-y,D=await Ft(a,v,a.size-v),O=Qe(D)}if(v<0||v>=a.size)throw new Error(ci);let ae=[];for(let y=0;y<b;y++){let _=new Ii(a,e.config,e.options);if($e(O,E)!=ma)throw new Error(zs);xr(_,O,E+6);let w=!!_.bitFlag.languageEncodingFlag,I=E+46,M=I+_.filenameLength,V=M+_.extraFieldLength;Object.assign(_,{compressedSize:0,uncompressedSize:0,commentLength:pt(O,E+32),directory:(un(O,E+38)&ka)==ka,offset:$e(O,E+42)+U,rawFilename:D.subarray(I,M),filenameUTF8:w,commentUTF8:w,rawExtraField:D.subarray(M,V)});let L=V+_.commentLength;_.rawComment=D.subarray(V,L),_.filename=Ba(_.rawFilename,_.filenameUTF8?Ca:Gt(e,t,"filenameEncoding")),_.comment=Ba(_.rawComment,_.commentUTF8?Ca:Gt(e,t,"commentEncoding")),!_.directory&&_.filename.endsWith(Ts)&&(_.directory=!0),hr(_,_,O,E+6);let C=new Si(_);C.getData=(B,$)=>_.getData(B,$),ae.push(C),E=L}return ae}async close(){}},Ii=class{constructor(t,e,a){Object.assign(this,{reader:t,config:e,options:a})}async getData(t,e={}){let a=this,{reader:s,offset:c,extraFieldAES:u,compressionMethod:v,config:b,bitFlag:U,signature:E,rawLastModDate:D,compressedSize:O}=a,Y=a.localDirectory={};s.initialized||await s.init();let ae=await Ft(s,c,30),y=Qe(ae),_=Gt(a,e,"password");if(_=_&&_.length&&_,u&&u.originalCompressionMethod!=ws)throw new Error(Oa);if(v!=bs&&v!=ms)throw new Error(Oa);if($e(y,0)!=gs)throw new Error(eo);xr(Y,y,4);let w=c+30+Y.filenameLength,I=w+Y.extraFieldLength;Y.rawExtraField=ae.subarray(w,I),hr(a,Y,y,4);let M=a.encrypted&&Y.encrypted,V=M&&!u;if(M){if(!V&&u.strength===void 0)throw new Error(io);if(!_)throw new Error(no)}let L=await Ws(b.Inflate,{codecType:pr,password:_,zipCrypto:V,encryptionStrength:u&&u.strength,signed:Gt(a,e,"checkSignature"),passwordVerification:V&&(U.dataDescriptor?D>>>8&255:E>>>24&255),signature:E,compressed:v!=0,encrypted:M,useWebWorkers:Gt(a,e,"useWebWorkers")},b);t.initialized||await t.init();let C=Gt(a,e,"signal");return await Ks(L,s,t,I,O,b,{onprogress:e.onprogress,signal:C}),t.getData()}};function xr(n,t,e){let a=n.rawBitFlag=pt(t,e+2),s=(a&ga)==ga;Object.assign(n,{encrypted:s,version:pt(t,e),bitFlag:{level:(a&Is)>>1,dataDescriptor:(a&va)==va,languageEncodingFlag:(a&ya)==ya},rawLastModDate:$e(t,e+6),lastModDate:oo(n.rawLastModDate),filenameLength:pt(t,e+22),extraFieldLength:pt(t,e+24)})}function hr(n,t,e,a){let s=t.rawExtraField,c=t.extraField=new Map,u=Qe(new Uint8Array(s)),v=0;try{for(;v<s.length;){let Y=pt(u,v),ae=pt(u,v+2);c.set(Y,{type:Y,data:s.slice(v+4,v+4+ae)}),v+=4+ae}}catch{}let b=pt(e,a+4);t.signature=$e(e,a+10),t.uncompressedSize=$e(e,a+18),t.compressedSize=$e(e,a+14);let U=t.extraFieldZip64=c.get(ks);U&&ao(U,t);let E=t.extraFieldUnicodePath=c.get(As);E&&La(E,"filename","rawFilename",t,n);let D=t.extraFieldUnicodeComment=c.get(Ss);D&&La(D,"comment","rawComment",t,n);let O=t.extraFieldAES=c.get(Es);O?ro(O,t,b):t.compressionMethod=b}function ao(n,t){t.zip64=!0;let e=Qe(n.data);n.values=[];for(let s=0;s<Math.floor(n.data.length/8);s++)n.values.push(Cn(e,0+s*8));let a=Fa.filter(s=>t[s]==wi);for(let s=0;s<a.length;s++)n[a[s]]=n.values[s];Fa.forEach(s=>{if(t[s]==wi)if(n&&n[s]!==void 0)t[s]=n[s];else throw new Error(to)})}function La(n,t,e,a,s){let c=Qe(n.data);n.version=un(c,0),n.signature=$e(c,1);let u=new jt;u.append(s[e]);let v=Qe(new Uint8Array(4));v.setUint32(0,u.get(),!0),n[t]=new TextDecoder().decode(n.data.subarray(5)),n.valid=!s.bitFlag.languageEncodingFlag&&n.signature==$e(v,0),n.valid&&(a[t]=n[t],a[t+"UTF8"]=!0)}function ro(n,t,e){if(n){let a=Qe(n.data);n.vendorVersion=un(a,0),n.vendorId=un(a,2);let s=un(a,4);n.strength=s,n.originalCompressionMethod=e,t.compressionMethod=n.compressionMethod=pt(a,5)}else t.compressionMethod=e}async function so(n,t,e,a,s){let c=new Uint8Array(4),u=Qe(c);lo(u,0,t);let v=a+s;return await b(a)||await b(Math.min(v,e));async function b(U){let E=e-U,D=await Ft(n,E,U);for(let O=D.length-a;O>=0;O--)if(D[O]==c[0]&&D[O+1]==c[1]&&D[O+2]==c[2]&&D[O+3]==c[3])return{offset:E+O,buffer:D.slice(O,O+a).buffer}}}function Gt(n,t,e){return t[e]===void 0?n.options[e]:t[e]}function Ba(n,t){return!t||t.trim().toLowerCase()=="cp437"?Rs(n):new TextDecoder(t).decode(n)}function oo(n){let t=(n&4294901760)>>16,e=n&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(e&63488)>>11,(e&2016)>>5,(e&31)*2,0)}catch{}}function un(n,t){return n.getUint8(t)}function pt(n,t){return n.getUint16(t,!0)}function $e(n,t){return n.getUint32(t,!0)}function Cn(n,t){return Number(n.getBigUint64(t,!0))}function lo(n,t,e){n.setUint32(t,e,!0)}function Qe(n){return new DataView(n.buffer)}function Ft(n,t,e){return n.readUint8Array(t,e)}hs();Ja({Deflate:Zr,Inflate:_s});var mr=["boot","dt","dtbo","init_boot","pvmfw","recovery","vbmeta_system","vbmeta_vendor","vbmeta","vendor_boot","vendor_kernel_boot"],br=["odm","odm_dlkm","product","system_ext","system","vendor_dlkm","vendor"];var di=4e3,co=16e3,fo=1e3;async function Fn(n,t,e){try{return await n.getData(t,e)}catch(a){throw a instanceof ProgressEvent&&a.type==="error"&&a.target!==null?a.target.error:a}}async function wr(n,t,e,a){Oe(`Unpacking ${a}`),e("unpack",a,0);let s=await Fn(t,new pn("application/octet-stream"),{onprogress:(c,u)=>{e("unpack",a,c/u)}});Oe(`Flashing ${a}`),e("flash",a,0),await n.flashBlob(a,s,c=>{e("flash",a,c)})}async function Rn(n,t,e,a){for(let s of a){let c=new RegExp(`${s}(?:-.+)?\\.img$`),u=t.find(v=>v.filename.match(c));u!==void 0&&await wr(n,u,e,s)}}async function uo(n,t){for(let e of t.replace("\r","").split(`
`)){let a=e.match(/^require\s+(.+?)=(.+)$/);if(!a)continue;let s=a[1];s==="board"&&(s="product");let c=a[2],u=c.split("|");if(s==="partition-exists"){let v=await n.getVariable(`has-slot:${c}`);if(v!=="yes"&&v!=="no")throw new ut("FAIL",`Requirement ${s}=${c} failed, device lacks partition`);if(!mr.includes(c)&&!br.includes(c))throw new ut("FAIL",`Requirement ${s}=${c} failed, unrecognized partition`)}else{let v=await n.getVariable(s);if(u.includes(v))Oe(`Requirement ${s}=${c} passed`);else{let b=`Requirement ${s}=${c} failed, value = ${v}`;throw Oe(b),new ut("FAIL",b)}}}}async function Ma(n,t,e){try{await n.reboot(t,!1)}catch{}await n.waitForConnect(e)}async function _o(n,t,e,a,s=(c,u,v)=>{}){s("load","package",0);let u=await new $n(new Nn(t)).getEntries();await n.getVariable("is-userspace")==="yes"&&await n.reboot("bootloader",!0,a),await Rn(n,u,s,["bootloader"]),await an(s,"reboot","device",di,Ma(n,"bootloader",a)),await Rn(n,u,s,["radio"]),await an(s,"reboot","device",di,Ma(n,"bootloader",a));let v=await n.getVariable("snapshot-update-status");v!==null&&v!=="none"&&await n.runCommand("snapshot-update:cancel"),Oe("Loading nested images from zip"),s("unpack","images",0);let b=u.find(O=>O.filename.match(/image-.+\.zip$/)),U=await Fn(b,new pn("application/zip"),{onprogress:(O,Y)=>{s("unpack","images",O/Y)}}),D=await new $n(new Nn(U)).getEntries();if(b=D.find(O=>O.filename==="android-info.txt"),b!==void 0){let O=await Fn(b,new bi);await uo(n,O)}if(await Rn(n,D,s,mr),b=D.find(O=>O.filename==="super_empty.img"),b!==void 0){await an(s,"reboot","device",co,n.reboot("fastboot",!0,a));let O=await n.getVariable("super-partition-name");O||(O="super");let Y=e?"wipe":"flash";s(Y,"super",0);let ae=await Fn(b,new pn("application/octet-stream"));await n.upload(O,await Rt(ae),y=>{s(Y,"super",y)}),await n.runCommand(`update-super:${O}${e?":wipe":""}`)}await Rn(n,D,s,br),await n.getVariable("is-userspace")==="yes"&&await an(s,"reboot","device",di,n.reboot("bootloader",!0,a)),b=u.find(O=>O.filename.endsWith("avb_pkmd.bin")),b!==void 0&&(await n.runCommand("erase:avb_custom_key"),await wr(n,b,s,"avb_custom_key")),e&&await an(s,"wipe","data",fo,n.runCommand("erase:userdata"))}var po=255,xo=66,ho=3,ja=16384,mo=512*1024*1024,bo=1024*1024*1024,wo=1e4,Lt=class extends Error{constructor(t){super(t),this.name="UsbError"}},ut=class extends Error{constructor(t,e){super(`Bootloader replied with ${t}: ${e}`),this.status=t,this.bootloaderMessage=e,this.name="FastbootError"}},Hn=class{constructor(){this.device=null,this.epIn=null,this.epOut=null,this._registeredUsbListeners=!1,this._connectResolve=null,this._connectReject=null,this._disconnectResolve=null}get isConnected(){return this.device!==null&&this.device.opened&&this.device.configurations[0].interfaces[0].claimed}async _validateAndConnectDevice(){if(this.device===null)throw new Lt("Attempted to connect to null device");let t=this.device.configurations[0].interfaces[0].alternates[0];if(t.endpoints.length!==2)throw new Lt("Interface has wrong number of endpoints");this.epIn=null,this.epOut=null;for(let e of t.endpoints){if(Bt("Checking endpoint:",e),e.type!=="bulk")throw new Lt("Interface endpoint is not bulk");if(e.direction==="in")if(this.epIn===null)this.epIn=e.endpointNumber;else throw new Lt("Interface has multiple IN endpoints");else if(e.direction==="out")if(this.epOut===null)this.epOut=e.endpointNumber;else throw new Lt("Interface has multiple OUT endpoints")}Bt("Endpoints: in =",this.epIn,", out =",this.epOut);try{await this.device.open();try{await this.device.reset()}catch{}await this.device.selectConfiguration(1),await this.device.claimInterface(0)}catch(e){throw this._connectReject!==null&&(this._connectReject(e),this._connectResolve=null,this._connectReject=null),e}this._connectResolve!==null&&(this._connectResolve(void 0),this._connectResolve=null,this._connectReject=null)}async waitForDisconnect(){if(this.device!==null)return await new Promise((t,e)=>{this._disconnectResolve=t})}async waitForConnect(t=()=>{}){return navigator.userAgent.includes("Android")&&(await this.waitForDisconnect(),t()),await new Promise((e,a)=>{this._connectResolve=e,this._connectReject=a})}async connect(){let t=await navigator.usb.getDevices();Oe("Found paired USB devices:",t),t.length===1?this.device=t[0]:(Oe("No or multiple paired devices are connected, requesting one"),this.device=await navigator.usb.requestDevice({filters:[{classCode:po,subclassCode:xo,protocolCode:ho}]})),Oe("Using USB device:",this.device),this._registeredUsbListeners||(navigator.usb.addEventListener("disconnect",e=>{e.device===this.device&&(Oe("USB device disconnected"),this._disconnectResolve!==null&&(this._disconnectResolve(void 0),this._disconnectResolve=null))}),navigator.usb.addEventListener("connect",async e=>{Oe("USB device connected"),this.device=e.device;let a=this._connectReject!==null;try{await this._validateAndConnectDevice()}catch(s){if(!a)throw s}}),this._registeredUsbListeners=!0),await this._validateAndConnectDevice()}async _readResponse(){let t={text:""},e;do{let a=await this.device.transferIn(this.epIn,64),s=new TextDecoder().decode(a.data);e=s.substring(0,4);let c=s.substring(4);if(Oe(`Response: ${e} ${c}`),e==="OKAY")t.text+=c;else if(e==="INFO")t.text+=c+`
`;else if(e==="DATA")t.dataSize=c;else throw new ut(e,c)}while(e==="INFO");return t}async runCommand(t){if(t.length>64)throw new RangeError;let e=new TextEncoder().encode(t);return await this.device.transferOut(this.epOut,e),Oe("Command:",t),this._readResponse()}async getVariable(t){let e;try{e=(await Ur(this.runCommand(`getvar:${t}`),wo)).text}catch(a){if(a instanceof ut&&a.status=="FAIL")e=null;else throw a}return e?e.trim():null}async _getDownloadSize(){try{let t=(await this.getVariable("max-download-size")).toLowerCase();if(t)return Math.min(parseInt(t,16),bo)}catch{}return mo}async _sendRawPayload(t,e){let a=0,s=t.byteLength;for(;s>0;){let c=t.slice(a*ja,(a+1)*ja);a%1e3===0&&Bt(` Sending ${c.byteLength} bytes to endpoint, ${s} remaining, i=${a}`),a%10===0&&e((t.byteLength-s)/t.byteLength),await this.device.transferOut(this.epOut,c),s-=c.byteLength,a+=1}e(1)}async upload(t,e,a=s=>{}){Oe(`Uploading single sparse to ${t}: ${e.byteLength} bytes`);let s=e.byteLength.toString(16).padStart(8,"0");if(s.length!==8)throw new ut("FAIL",`Transfer size overflow: ${s} is more than 8 digits`);let c=await this.runCommand(`download:${s}`);if(c.dataSize===void 0)throw new ut("FAIL",`Unexpected response to download command: ${c.text}`);if(parseInt(c.dataSize,16)!==e.byteLength)throw new ut("FAIL",`Bootloader wants ${e.byteLength} bytes, requested to send ${e.byteLength} bytes`);Oe(`Sending payload: ${e.byteLength} bytes`),await this._sendRawPayload(e,a),Oe("Payload sent, waiting for response..."),await this._readResponse()}async reboot(t="",e=!1,a=()=>{}){t.length>0?await this.runCommand(`reboot-${t}`):await this.runCommand("reboot"),e&&await this.waitForConnect(a)}async flashBlob(t,e,a=s=>{}){await this.getVariable(`has-slot:${t}`)==="yes"&&(t+="_"+await this.getVariable("current-slot"));let s=await this._getDownloadSize(),c=await Rt(e.slice(0,Mt)),u=e.size,v=!1;try{let E=qa(c);E!==null&&(u=E.blocks*E.blockSize,v=!0)}catch{}if(await this.getVariable(`is-logical:${t}`)==="yes"&&(await this.runCommand(`resize-logical-partition:${t}:0`),await this.runCommand(`resize-logical-partition:${t}:${u}`)),e.size>s&&!v){Oe(`${t} image is raw, converting to sparse`);let E=await Rt(e),D=Cr(E);e=new Blob([D])}Oe(`Flashing ${e.size} bytes to ${t}, ${s} bytes per split`);let b=0,U=0;for await(let E of Fr(e,s))await this.upload(t,E.data,D=>{a((U+D*E.bytes)/u)}),Oe("Flashing payload..."),await this.runCommand(`flash:${t}`),b+=1,U+=E.bytes;Oe(`Flashed ${t} with ${b} split(s)`)}async bootBlob(t,e=a=>{}){Oe(`Booting ${t.size} bytes image`);let a=await Rt(t);await this.upload("boot.img",a,e),Oe("Booting payload..."),await this.runCommand("boot"),Oe(`Booted ${t.size} bytes image`)}async flashFactoryZip(t,e,a,s=c=>{}){return await _o(this,t,e,a,s)}};return Ir(vo);})();