UNPKG

@loaders.gl/compression

Version:

Decompression and compression plugins for loaders.gl

1 lines 232 kB
"use strict";(()=>{var zn=Object.create;var it=Object.defineProperty;var Bn=Object.getOwnPropertyDescriptor;var yn=Object.getOwnPropertyNames;var _n=Object.getPrototypeOf,Tn=Object.prototype.hasOwnProperty;var Q=(f,e)=>()=>(e||f((e={exports:{}}).exports,e),e.exports);var In=(f,e,l,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of yn(e))!Tn.call(f,o)&&o!==l&&it(f,o,{get:()=>e[o],enumerable:!(t=Bn(e,o))||t.enumerable});return f};var Se=(f,e,l)=>(l=f!=null?zn(_n(f)):{},In(e||!f||!f.__esModule?it(l,"default",{value:f,enumerable:!0}):l,f));var mw=Q(()=>{});var Ef=Q(ef=>{"use strict";var Xn=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function Gn(f,e){return Object.prototype.hasOwnProperty.call(f,e)}ef.assign=function(f){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var l=e.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var t in l)Gn(l,t)&&(f[t]=l[t])}}return f};ef.shrinkBuf=function(f,e){return f.length===e?f:f.subarray?f.subarray(0,e):(f.length=e,f)};var $n={arraySet:function(f,e,l,t,o){if(e.subarray&&f.subarray){f.set(e.subarray(l,l+t),o);return}for(var b=0;b<t;b++)f[o+b]=e[l+b]},flattenChunks:function(f){var e,l,t,o,b,n;for(t=0,e=0,l=f.length;e<l;e++)t+=f[e].length;for(n=new Uint8Array(t),o=0,e=0,l=f.length;e<l;e++)b=f[e],n.set(b,o),o+=b.length;return n}},fm={arraySet:function(f,e,l,t,o){for(var b=0;b<t;b++)f[o+b]=e[l+b]},flattenChunks:function(f){return[].concat.apply([],f)}};ef.setTyped=function(f){f?(ef.Buf8=Uint8Array,ef.Buf16=Uint16Array,ef.Buf32=Int32Array,ef.assign(ef,$n)):(ef.Buf8=Array,ef.Buf16=Array,ef.Buf32=Array,ef.assign(ef,fm))};ef.setTyped(Xn)});var eo=Q(ve=>{"use strict";var em=Ef(),lm=4,St=0,Et=1,wm=2;function ue(f){for(var e=f.length;--e>=0;)f[e]=0}var tm=0,Wt=1,om=2,bm=3,nm=258,iw=29,Le=256,Oe=Le+1+iw,de=30,gw=19,Ut=2*Oe+1,ee=15,pw=16,mm=7,kw=256,Lt=16,Pt=17,Mt=18,qw=[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],il=[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],pm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Vt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],jm=512,Kf=new Array((Oe+2)*2);ue(Kf);var Fe=new Array(de*2);ue(Fe);var Ce=new Array(jm);ue(Ce);var We=new Array(nm-bm+1);ue(We);var dw=new Array(iw);ue(dw);var gl=new Array(de);ue(gl);function jw(f,e,l,t,o){this.static_tree=f,this.extra_bits=e,this.extra_base=l,this.elems=t,this.max_length=o,this.has_stree=f&&f.length}var Yt,Nt,Qt;function rw(f,e){this.dyn_tree=f,this.max_code=0,this.stat_desc=e}function Zt(f){return f<256?Ce[f]:Ce[256+(f>>>7)]}function Ue(f,e){f.pending_buf[f.pending++]=e&255,f.pending_buf[f.pending++]=e>>>8&255}function bf(f,e,l){f.bi_valid>pw-l?(f.bi_buf|=e<<f.bi_valid&65535,Ue(f,f.bi_buf),f.bi_buf=e>>pw-f.bi_valid,f.bi_valid+=l-pw):(f.bi_buf|=e<<f.bi_valid&65535,f.bi_valid+=l)}function xf(f,e,l){bf(f,l[e*2],l[e*2+1])}function Jt(f,e){var l=0;do l|=f&1,f>>>=1,l<<=1;while(--e>0);return l>>>1}function rm(f){f.bi_valid===16?(Ue(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):f.bi_valid>=8&&(f.pending_buf[f.pending++]=f.bi_buf&255,f.bi_buf>>=8,f.bi_valid-=8)}function am(f,e){var l=e.dyn_tree,t=e.max_code,o=e.stat_desc.static_tree,b=e.stat_desc.has_stree,n=e.stat_desc.extra_bits,m=e.stat_desc.extra_base,i=e.stat_desc.max_length,j,a,H,d,u,c,z=0;for(d=0;d<=ee;d++)f.bl_count[d]=0;for(l[f.heap[f.heap_max]*2+1]=0,j=f.heap_max+1;j<Ut;j++)a=f.heap[j],d=l[l[a*2+1]*2+1]+1,d>i&&(d=i,z++),l[a*2+1]=d,!(a>t)&&(f.bl_count[d]++,u=0,a>=m&&(u=n[a-m]),c=l[a*2],f.opt_len+=c*(d+u),b&&(f.static_len+=c*(o[a*2+1]+u)));if(z!==0){do{for(d=i-1;f.bl_count[d]===0;)d--;f.bl_count[d]--,f.bl_count[d+1]+=2,f.bl_count[i]--,z-=2}while(z>0);for(d=i;d!==0;d--)for(a=f.bl_count[d];a!==0;)H=f.heap[--j],!(H>t)&&(l[H*2+1]!==d&&(f.opt_len+=(d-l[H*2+1])*l[H*2],l[H*2+1]=d),a--)}}function Xt(f,e,l){var t=new Array(ee+1),o=0,b,n;for(b=1;b<=ee;b++)t[b]=o=o+l[b-1]<<1;for(n=0;n<=e;n++){var m=f[n*2+1];m!==0&&(f[n*2]=Jt(t[m]++,m))}}function qm(){var f,e,l,t,o,b=new Array(ee+1);for(l=0,t=0;t<iw-1;t++)for(dw[t]=l,f=0;f<1<<qw[t];f++)We[l++]=t;for(We[l-1]=t,o=0,t=0;t<16;t++)for(gl[t]=o,f=0;f<1<<il[t];f++)Ce[o++]=t;for(o>>=7;t<de;t++)for(gl[t]=o<<7,f=0;f<1<<il[t]-7;f++)Ce[256+o++]=t;for(e=0;e<=ee;e++)b[e]=0;for(f=0;f<=143;)Kf[f*2+1]=8,f++,b[8]++;for(;f<=255;)Kf[f*2+1]=9,f++,b[9]++;for(;f<=279;)Kf[f*2+1]=7,f++,b[7]++;for(;f<=287;)Kf[f*2+1]=8,f++,b[8]++;for(Xt(Kf,Oe+1,b),f=0;f<de;f++)Fe[f*2+1]=5,Fe[f*2]=Jt(f,5);Yt=new jw(Kf,qw,Le+1,Oe,ee),Nt=new jw(Fe,il,0,de,ee),Qt=new jw(new Array(0),pm,0,gw,mm)}function Gt(f){var e;for(e=0;e<Oe;e++)f.dyn_ltree[e*2]=0;for(e=0;e<de;e++)f.dyn_dtree[e*2]=0;for(e=0;e<gw;e++)f.bl_tree[e*2]=0;f.dyn_ltree[kw*2]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function $t(f){f.bi_valid>8?Ue(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function sm(f,e,l,t){$t(f),t&&(Ue(f,l),Ue(f,~l)),em.arraySet(f.pending_buf,f.window,e,l,f.pending),f.pending+=l}function Kt(f,e,l,t){var o=e*2,b=l*2;return f[o]<f[b]||f[o]===f[b]&&t[e]<=t[l]}function aw(f,e,l){for(var t=f.heap[l],o=l<<1;o<=f.heap_len&&(o<f.heap_len&&Kt(e,f.heap[o+1],f.heap[o],f.depth)&&o++,!Kt(e,t,f.heap[o],f.depth));)f.heap[l]=f.heap[o],l=o,o<<=1;f.heap[l]=t}function Dt(f,e,l){var t,o,b=0,n,m;if(f.last_lit!==0)do t=f.pending_buf[f.d_buf+b*2]<<8|f.pending_buf[f.d_buf+b*2+1],o=f.pending_buf[f.l_buf+b],b++,t===0?xf(f,o,e):(n=We[o],xf(f,n+Le+1,e),m=qw[n],m!==0&&(o-=dw[n],bf(f,o,m)),t--,n=Zt(t),xf(f,n,l),m=il[n],m!==0&&(t-=gl[n],bf(f,t,m)));while(b<f.last_lit);xf(f,kw,e)}function sw(f,e){var l=e.dyn_tree,t=e.stat_desc.static_tree,o=e.stat_desc.has_stree,b=e.stat_desc.elems,n,m,i=-1,j;for(f.heap_len=0,f.heap_max=Ut,n=0;n<b;n++)l[n*2]!==0?(f.heap[++f.heap_len]=i=n,f.depth[n]=0):l[n*2+1]=0;for(;f.heap_len<2;)j=f.heap[++f.heap_len]=i<2?++i:0,l[j*2]=1,f.depth[j]=0,f.opt_len--,o&&(f.static_len-=t[j*2+1]);for(e.max_code=i,n=f.heap_len>>1;n>=1;n--)aw(f,l,n);j=b;do n=f.heap[1],f.heap[1]=f.heap[f.heap_len--],aw(f,l,1),m=f.heap[1],f.heap[--f.heap_max]=n,f.heap[--f.heap_max]=m,l[j*2]=l[n*2]+l[m*2],f.depth[j]=(f.depth[n]>=f.depth[m]?f.depth[n]:f.depth[m])+1,l[n*2+1]=l[m*2+1]=j,f.heap[1]=j++,aw(f,l,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1],am(f,e),Xt(l,i,f.bl_count)}function Ft(f,e,l){var t,o=-1,b,n=e[0*2+1],m=0,i=7,j=4;for(n===0&&(i=138,j=3),e[(l+1)*2+1]=65535,t=0;t<=l;t++)b=n,n=e[(t+1)*2+1],!(++m<i&&b===n)&&(m<j?f.bl_tree[b*2]+=m:b!==0?(b!==o&&f.bl_tree[b*2]++,f.bl_tree[Lt*2]++):m<=10?f.bl_tree[Pt*2]++:f.bl_tree[Mt*2]++,m=0,o=b,n===0?(i=138,j=3):b===n?(i=6,j=3):(i=7,j=4))}function Ot(f,e,l){var t,o=-1,b,n=e[0*2+1],m=0,i=7,j=4;for(n===0&&(i=138,j=3),t=0;t<=l;t++)if(b=n,n=e[(t+1)*2+1],!(++m<i&&b===n)){if(m<j)do xf(f,b,f.bl_tree);while(--m!==0);else b!==0?(b!==o&&(xf(f,b,f.bl_tree),m--),xf(f,Lt,f.bl_tree),bf(f,m-3,2)):m<=10?(xf(f,Pt,f.bl_tree),bf(f,m-3,3)):(xf(f,Mt,f.bl_tree),bf(f,m-11,7));m=0,o=b,n===0?(i=138,j=3):b===n?(i=6,j=3):(i=7,j=4)}}function im(f){var e;for(Ft(f,f.dyn_ltree,f.l_desc.max_code),Ft(f,f.dyn_dtree,f.d_desc.max_code),sw(f,f.bl_desc),e=gw-1;e>=3&&f.bl_tree[Vt[e]*2+1]===0;e--);return f.opt_len+=3*(e+1)+5+5+4,e}function gm(f,e,l,t){var o;for(bf(f,e-257,5),bf(f,l-1,5),bf(f,t-4,4),o=0;o<t;o++)bf(f,f.bl_tree[Vt[o]*2+1],3);Ot(f,f.dyn_ltree,e-1),Ot(f,f.dyn_dtree,l-1)}function km(f){var e=4093624447,l;for(l=0;l<=31;l++,e>>>=1)if(e&1&&f.dyn_ltree[l*2]!==0)return St;if(f.dyn_ltree[9*2]!==0||f.dyn_ltree[10*2]!==0||f.dyn_ltree[13*2]!==0)return Et;for(l=32;l<Le;l++)if(f.dyn_ltree[l*2]!==0)return Et;return St}var Ct=!1;function dm(f){Ct||(qm(),Ct=!0),f.l_desc=new rw(f.dyn_ltree,Yt),f.d_desc=new rw(f.dyn_dtree,Nt),f.bl_desc=new rw(f.bl_tree,Qt),f.bi_buf=0,f.bi_valid=0,Gt(f)}function fo(f,e,l,t){bf(f,(tm<<1)+(t?1:0),3),sm(f,e,l,!0)}function um(f){bf(f,Wt<<1,3),xf(f,kw,Kf),rm(f)}function vm(f,e,l,t){var o,b,n=0;f.level>0?(f.strm.data_type===wm&&(f.strm.data_type=km(f)),sw(f,f.l_desc),sw(f,f.d_desc),n=im(f),o=f.opt_len+3+7>>>3,b=f.static_len+3+7>>>3,b<=o&&(o=b)):o=b=l+5,l+4<=o&&e!==-1?fo(f,e,l,t):f.strategy===lm||b===o?(bf(f,(Wt<<1)+(t?1:0),3),Dt(f,Kf,Fe)):(bf(f,(om<<1)+(t?1:0),3),gm(f,f.l_desc.max_code+1,f.d_desc.max_code+1,n+1),Dt(f,f.dyn_ltree,f.dyn_dtree)),Gt(f),t&&$t(f)}function hm(f,e,l){return f.pending_buf[f.d_buf+f.last_lit*2]=e>>>8&255,f.pending_buf[f.d_buf+f.last_lit*2+1]=e&255,f.pending_buf[f.l_buf+f.last_lit]=l&255,f.last_lit++,e===0?f.dyn_ltree[l*2]++:(f.matches++,e--,f.dyn_ltree[(We[l]+Le+1)*2]++,f.dyn_dtree[Zt(e)*2]++),f.last_lit===f.lit_bufsize-1}ve._tr_init=dm;ve._tr_stored_block=fo;ve._tr_flush_block=vm;ve._tr_tally=hm;ve._tr_align=um});var uw=Q((Jr,lo)=>{"use strict";function cm(f,e,l,t){for(var o=f&65535|0,b=f>>>16&65535|0,n=0;l!==0;){n=l>2e3?2e3:l,l-=n;do o=o+e[t++]|0,b=b+o|0;while(--n);o%=65521,b%=65521}return o|b<<16|0}lo.exports=cm});var vw=Q((Xr,wo)=>{"use strict";function xm(){for(var f,e=[],l=0;l<256;l++){f=l;for(var t=0;t<8;t++)f=f&1?3988292384^f>>>1:f>>>1;e[l]=f}return e}var Hm=xm();function zm(f,e,l,t){var o=Hm,b=t+l;f^=-1;for(var n=t;n<b;n++)f=f>>>8^o[(f^e[n])&255];return f^-1}wo.exports=zm});var kl=Q((Gr,to)=>{"use strict";to.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var qo=Q(Bf=>{"use strict";var lf=Ef(),sf=eo(),mo=uw(),Pf=vw(),Bm=kl(),oe=0,ym=1,_m=3,Qf=4,oo=5,zf=0,bo=1,gf=-2,Tm=-3,hw=-5,Im=-1,Am=1,dl=2,Rm=3,Sm=4,Em=0,Km=2,cl=8,Dm=9,Fm=15,Om=8,Cm=29,Wm=256,xw=Wm+1+Cm,Um=30,Lm=19,Pm=2*xw+1,Mm=15,L=3,Yf=258,vf=Yf+L+1,Vm=32,xl=42,Hw=69,ul=73,vl=91,hl=103,le=113,Me=666,X=1,Ve=2,we=3,xe=4,Ym=3;function Nf(f,e){return f.msg=Bm[e],e}function no(f){return(f<<1)-(f>4?9:0)}function Vf(f){for(var e=f.length;--e>=0;)f[e]=0}function Mf(f){var e=f.state,l=e.pending;l>f.avail_out&&(l=f.avail_out),l!==0&&(lf.arraySet(f.output,e.pending_buf,e.pending_out,l,f.next_out),f.next_out+=l,e.pending_out+=l,f.total_out+=l,f.avail_out-=l,e.pending-=l,e.pending===0&&(e.pending_out=0))}function ff(f,e){sf._tr_flush_block(f,f.block_start>=0?f.block_start:-1,f.strstart-f.block_start,e),f.block_start=f.strstart,Mf(f.strm)}function P(f,e){f.pending_buf[f.pending++]=e}function Pe(f,e){f.pending_buf[f.pending++]=e>>>8&255,f.pending_buf[f.pending++]=e&255}function Nm(f,e,l,t){var o=f.avail_in;return o>t&&(o=t),o===0?0:(f.avail_in-=o,lf.arraySet(e,f.input,f.next_in,o,l),f.state.wrap===1?f.adler=mo(f.adler,e,o,l):f.state.wrap===2&&(f.adler=Pf(f.adler,e,o,l)),f.next_in+=o,f.total_in+=o,o)}function po(f,e){var l=f.max_chain_length,t=f.strstart,o,b,n=f.prev_length,m=f.nice_match,i=f.strstart>f.w_size-vf?f.strstart-(f.w_size-vf):0,j=f.window,a=f.w_mask,H=f.prev,d=f.strstart+Yf,u=j[t+n-1],c=j[t+n];f.prev_length>=f.good_match&&(l>>=2),m>f.lookahead&&(m=f.lookahead);do if(o=e,!(j[o+n]!==c||j[o+n-1]!==u||j[o]!==j[t]||j[++o]!==j[t+1])){t+=2,o++;do;while(j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&t<d);if(b=Yf-(d-t),t=d-Yf,b>n){if(f.match_start=e,n=b,b>=m)break;u=j[t+n-1],c=j[t+n]}}while((e=H[e&a])>i&&--l!==0);return n<=f.lookahead?n:f.lookahead}function te(f){var e=f.w_size,l,t,o,b,n;do{if(b=f.window_size-f.lookahead-f.strstart,f.strstart>=e+(e-vf)){lf.arraySet(f.window,f.window,e,e,0),f.match_start-=e,f.strstart-=e,f.block_start-=e,t=f.hash_size,l=t;do o=f.head[--l],f.head[l]=o>=e?o-e:0;while(--t);t=e,l=t;do o=f.prev[--l],f.prev[l]=o>=e?o-e:0;while(--t);b+=e}if(f.strm.avail_in===0)break;if(t=Nm(f.strm,f.window,f.strstart+f.lookahead,b),f.lookahead+=t,f.lookahead+f.insert>=L)for(n=f.strstart-f.insert,f.ins_h=f.window[n],f.ins_h=(f.ins_h<<f.hash_shift^f.window[n+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[n+L-1])&f.hash_mask,f.prev[n&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=n,n++,f.insert--,!(f.lookahead+f.insert<L)););}while(f.lookahead<vf&&f.strm.avail_in!==0)}function Qm(f,e){var l=65535;for(l>f.pending_buf_size-5&&(l=f.pending_buf_size-5);;){if(f.lookahead<=1){if(te(f),f.lookahead===0&&e===oe)return X;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var t=f.block_start+l;if((f.strstart===0||f.strstart>=t)&&(f.lookahead=f.strstart-t,f.strstart=t,ff(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-vf&&(ff(f,!1),f.strm.avail_out===0))return X}return f.insert=0,e===Qf?(ff(f,!0),f.strm.avail_out===0?we:xe):(f.strstart>f.block_start&&(ff(f,!1),f.strm.avail_out===0),X)}function cw(f,e){for(var l,t;;){if(f.lookahead<vf){if(te(f),f.lookahead<vf&&e===oe)return X;if(f.lookahead===0)break}if(l=0,f.lookahead>=L&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+L-1])&f.hash_mask,l=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),l!==0&&f.strstart-l<=f.w_size-vf&&(f.match_length=po(f,l)),f.match_length>=L)if(t=sf._tr_tally(f,f.strstart-f.match_start,f.match_length-L),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=L){f.match_length--;do f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+L-1])&f.hash_mask,l=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart;while(--f.match_length!==0);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else t=sf._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(t&&(ff(f,!1),f.strm.avail_out===0))return X}return f.insert=f.strstart<L-1?f.strstart:L-1,e===Qf?(ff(f,!0),f.strm.avail_out===0?we:xe):f.last_lit&&(ff(f,!1),f.strm.avail_out===0)?X:Ve}function he(f,e){for(var l,t,o;;){if(f.lookahead<vf){if(te(f),f.lookahead<vf&&e===oe)return X;if(f.lookahead===0)break}if(l=0,f.lookahead>=L&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+L-1])&f.hash_mask,l=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=L-1,l!==0&&f.prev_length<f.max_lazy_match&&f.strstart-l<=f.w_size-vf&&(f.match_length=po(f,l),f.match_length<=5&&(f.strategy===Am||f.match_length===L&&f.strstart-f.match_start>4096)&&(f.match_length=L-1)),f.prev_length>=L&&f.match_length<=f.prev_length){o=f.strstart+f.lookahead-L,t=sf._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-L),f.lookahead-=f.prev_length-1,f.prev_length-=2;do++f.strstart<=o&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+L-1])&f.hash_mask,l=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);while(--f.prev_length!==0);if(f.match_available=0,f.match_length=L-1,f.strstart++,t&&(ff(f,!1),f.strm.avail_out===0))return X}else if(f.match_available){if(t=sf._tr_tally(f,0,f.window[f.strstart-1]),t&&ff(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return X}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(t=sf._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<L-1?f.strstart:L-1,e===Qf?(ff(f,!0),f.strm.avail_out===0?we:xe):f.last_lit&&(ff(f,!1),f.strm.avail_out===0)?X:Ve}function Zm(f,e){for(var l,t,o,b,n=f.window;;){if(f.lookahead<=Yf){if(te(f),f.lookahead<=Yf&&e===oe)return X;if(f.lookahead===0)break}if(f.match_length=0,f.lookahead>=L&&f.strstart>0&&(o=f.strstart-1,t=n[o],t===n[++o]&&t===n[++o]&&t===n[++o])){b=f.strstart+Yf;do;while(t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&o<b);f.match_length=Yf-(b-o),f.match_length>f.lookahead&&(f.match_length=f.lookahead)}if(f.match_length>=L?(l=sf._tr_tally(f,1,f.match_length-L),f.lookahead-=f.match_length,f.strstart+=f.match_length,f.match_length=0):(l=sf._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++),l&&(ff(f,!1),f.strm.avail_out===0))return X}return f.insert=0,e===Qf?(ff(f,!0),f.strm.avail_out===0?we:xe):f.last_lit&&(ff(f,!1),f.strm.avail_out===0)?X:Ve}function Jm(f,e){for(var l;;){if(f.lookahead===0&&(te(f),f.lookahead===0)){if(e===oe)return X;break}if(f.match_length=0,l=sf._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++,l&&(ff(f,!1),f.strm.avail_out===0))return X}return f.insert=0,e===Qf?(ff(f,!0),f.strm.avail_out===0?we:xe):f.last_lit&&(ff(f,!1),f.strm.avail_out===0)?X:Ve}function Hf(f,e,l,t,o){this.good_length=f,this.max_lazy=e,this.nice_length=l,this.max_chain=t,this.func=o}var ce;ce=[new Hf(0,0,0,0,Qm),new Hf(4,4,8,4,cw),new Hf(4,5,16,8,cw),new Hf(4,6,32,32,cw),new Hf(4,4,16,16,he),new Hf(8,16,32,32,he),new Hf(8,16,128,128,he),new Hf(8,32,128,256,he),new Hf(32,128,258,1024,he),new Hf(32,258,258,4096,he)];function Xm(f){f.window_size=2*f.w_size,Vf(f.head),f.max_lazy_match=ce[f.level].max_lazy,f.good_match=ce[f.level].good_length,f.nice_match=ce[f.level].nice_length,f.max_chain_length=ce[f.level].max_chain,f.strstart=0,f.block_start=0,f.lookahead=0,f.insert=0,f.match_length=f.prev_length=L-1,f.match_available=0,f.ins_h=0}function Gm(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=cl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new lf.Buf16(Pm*2),this.dyn_dtree=new lf.Buf16((2*Um+1)*2),this.bl_tree=new lf.Buf16((2*Lm+1)*2),Vf(this.dyn_ltree),Vf(this.dyn_dtree),Vf(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new lf.Buf16(Mm+1),this.heap=new lf.Buf16(2*xw+1),Vf(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new lf.Buf16(2*xw+1),Vf(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function jo(f){var e;return!f||!f.state?Nf(f,gf):(f.total_in=f.total_out=0,f.data_type=Km,e=f.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?xl:le,f.adler=e.wrap===2?0:1,e.last_flush=oe,sf._tr_init(e),zf)}function ro(f){var e=jo(f);return e===zf&&Xm(f.state),e}function $m(f,e){return!f||!f.state||f.state.wrap!==2?gf:(f.state.gzhead=e,zf)}function ao(f,e,l,t,o,b){if(!f)return gf;var n=1;if(e===Im&&(e=6),t<0?(n=0,t=-t):t>15&&(n=2,t-=16),o<1||o>Dm||l!==cl||t<8||t>15||e<0||e>9||b<0||b>Sm)return Nf(f,gf);t===8&&(t=9);var m=new Gm;return f.state=m,m.strm=f,m.wrap=n,m.gzhead=null,m.w_bits=t,m.w_size=1<<m.w_bits,m.w_mask=m.w_size-1,m.hash_bits=o+7,m.hash_size=1<<m.hash_bits,m.hash_mask=m.hash_size-1,m.hash_shift=~~((m.hash_bits+L-1)/L),m.window=new lf.Buf8(m.w_size*2),m.head=new lf.Buf16(m.hash_size),m.prev=new lf.Buf16(m.w_size),m.lit_bufsize=1<<o+6,m.pending_buf_size=m.lit_bufsize*4,m.pending_buf=new lf.Buf8(m.pending_buf_size),m.d_buf=1*m.lit_bufsize,m.l_buf=(1+2)*m.lit_bufsize,m.level=e,m.strategy=b,m.method=l,ro(f)}function fp(f,e){return ao(f,e,cl,Fm,Om,Em)}function ep(f,e){var l,t,o,b;if(!f||!f.state||e>oo||e<0)return f?Nf(f,gf):gf;if(t=f.state,!f.output||!f.input&&f.avail_in!==0||t.status===Me&&e!==Qf)return Nf(f,f.avail_out===0?hw:gf);if(t.strm=f,l=t.last_flush,t.last_flush=e,t.status===xl)if(t.wrap===2)f.adler=0,P(t,31),P(t,139),P(t,8),t.gzhead?(P(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),P(t,t.gzhead.time&255),P(t,t.gzhead.time>>8&255),P(t,t.gzhead.time>>16&255),P(t,t.gzhead.time>>24&255),P(t,t.level===9?2:t.strategy>=dl||t.level<2?4:0),P(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(P(t,t.gzhead.extra.length&255),P(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(f.adler=Pf(f.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Hw):(P(t,0),P(t,0),P(t,0),P(t,0),P(t,0),P(t,t.level===9?2:t.strategy>=dl||t.level<2?4:0),P(t,Ym),t.status=le);else{var n=cl+(t.w_bits-8<<4)<<8,m=-1;t.strategy>=dl||t.level<2?m=0:t.level<6?m=1:t.level===6?m=2:m=3,n|=m<<6,t.strstart!==0&&(n|=Vm),n+=31-n%31,t.status=le,Pe(t,n),t.strstart!==0&&(Pe(t,f.adler>>>16),Pe(t,f.adler&65535)),f.adler=1}if(t.status===Hw)if(t.gzhead.extra){for(o=t.pending;t.gzindex<(t.gzhead.extra.length&65535)&&!(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>o&&(f.adler=Pf(f.adler,t.pending_buf,t.pending-o,o)),Mf(f),o=t.pending,t.pending===t.pending_buf_size));)P(t,t.gzhead.extra[t.gzindex]&255),t.gzindex++;t.gzhead.hcrc&&t.pending>o&&(f.adler=Pf(f.adler,t.pending_buf,t.pending-o,o)),t.gzindex===t.gzhead.extra.length&&(t.gzindex=0,t.status=ul)}else t.status=ul;if(t.status===ul)if(t.gzhead.name){o=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>o&&(f.adler=Pf(f.adler,t.pending_buf,t.pending-o,o)),Mf(f),o=t.pending,t.pending===t.pending_buf_size)){b=1;break}t.gzindex<t.gzhead.name.length?b=t.gzhead.name.charCodeAt(t.gzindex++)&255:b=0,P(t,b)}while(b!==0);t.gzhead.hcrc&&t.pending>o&&(f.adler=Pf(f.adler,t.pending_buf,t.pending-o,o)),b===0&&(t.gzindex=0,t.status=vl)}else t.status=vl;if(t.status===vl)if(t.gzhead.comment){o=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>o&&(f.adler=Pf(f.adler,t.pending_buf,t.pending-o,o)),Mf(f),o=t.pending,t.pending===t.pending_buf_size)){b=1;break}t.gzindex<t.gzhead.comment.length?b=t.gzhead.comment.charCodeAt(t.gzindex++)&255:b=0,P(t,b)}while(b!==0);t.gzhead.hcrc&&t.pending>o&&(f.adler=Pf(f.adler,t.pending_buf,t.pending-o,o)),b===0&&(t.status=hl)}else t.status=hl;if(t.status===hl&&(t.gzhead.hcrc?(t.pending+2>t.pending_buf_size&&Mf(f),t.pending+2<=t.pending_buf_size&&(P(t,f.adler&255),P(t,f.adler>>8&255),f.adler=0,t.status=le)):t.status=le),t.pending!==0){if(Mf(f),f.avail_out===0)return t.last_flush=-1,zf}else if(f.avail_in===0&&no(e)<=no(l)&&e!==Qf)return Nf(f,hw);if(t.status===Me&&f.avail_in!==0)return Nf(f,hw);if(f.avail_in!==0||t.lookahead!==0||e!==oe&&t.status!==Me){var i=t.strategy===dl?Jm(t,e):t.strategy===Rm?Zm(t,e):ce[t.level].func(t,e);if((i===we||i===xe)&&(t.status=Me),i===X||i===we)return f.avail_out===0&&(t.last_flush=-1),zf;if(i===Ve&&(e===ym?sf._tr_align(t):e!==oo&&(sf._tr_stored_block(t,0,0,!1),e===_m&&(Vf(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Mf(f),f.avail_out===0))return t.last_flush=-1,zf}return e!==Qf?zf:t.wrap<=0?bo:(t.wrap===2?(P(t,f.adler&255),P(t,f.adler>>8&255),P(t,f.adler>>16&255),P(t,f.adler>>24&255),P(t,f.total_in&255),P(t,f.total_in>>8&255),P(t,f.total_in>>16&255),P(t,f.total_in>>24&255)):(Pe(t,f.adler>>>16),Pe(t,f.adler&65535)),Mf(f),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?zf:bo)}function lp(f){var e;return!f||!f.state?gf:(e=f.state.status,e!==xl&&e!==Hw&&e!==ul&&e!==vl&&e!==hl&&e!==le&&e!==Me?Nf(f,gf):(f.state=null,e===le?Nf(f,Tm):zf))}function wp(f,e){var l=e.length,t,o,b,n,m,i,j,a;if(!f||!f.state||(t=f.state,n=t.wrap,n===2||n===1&&t.status!==xl||t.lookahead))return gf;for(n===1&&(f.adler=mo(f.adler,e,l,0)),t.wrap=0,l>=t.w_size&&(n===0&&(Vf(t.head),t.strstart=0,t.block_start=0,t.insert=0),a=new lf.Buf8(t.w_size),lf.arraySet(a,e,l-t.w_size,t.w_size,0),e=a,l=t.w_size),m=f.avail_in,i=f.next_in,j=f.input,f.avail_in=l,f.next_in=0,f.input=e,te(t);t.lookahead>=L;){o=t.strstart,b=t.lookahead-(L-1);do t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+L-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++;while(--b);t.strstart=o,t.lookahead=L-1,te(t)}return t.strstart+=t.lookahead,t.block_start=t.strstart,t.insert=t.lookahead,t.lookahead=0,t.match_length=t.prev_length=L-1,t.match_available=0,f.next_in=i,f.input=j,f.avail_in=m,t.wrap=n,zf}Bf.deflateInit=fp;Bf.deflateInit2=ao;Bf.deflateReset=ro;Bf.deflateResetKeep=jo;Bf.deflateSetHeader=$m;Bf.deflate=ep;Bf.deflateEnd=lp;Bf.deflateSetDictionary=wp;Bf.deflateInfo="pako deflate (from Nodeca project)"});var zw=Q(He=>{"use strict";var Hl=Ef(),so=!0,io=!0;try{String.fromCharCode.apply(null,[0])}catch{so=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{io=!1}var Ye=new Hl.Buf8(256);for(Df=0;Df<256;Df++)Ye[Df]=Df>=252?6:Df>=248?5:Df>=240?4:Df>=224?3:Df>=192?2:1;var Df;Ye[254]=Ye[254]=1;He.string2buf=function(f){var e,l,t,o,b,n=f.length,m=0;for(o=0;o<n;o++)l=f.charCodeAt(o),(l&64512)===55296&&o+1<n&&(t=f.charCodeAt(o+1),(t&64512)===56320&&(l=65536+(l-55296<<10)+(t-56320),o++)),m+=l<128?1:l<2048?2:l<65536?3:4;for(e=new Hl.Buf8(m),b=0,o=0;b<m;o++)l=f.charCodeAt(o),(l&64512)===55296&&o+1<n&&(t=f.charCodeAt(o+1),(t&64512)===56320&&(l=65536+(l-55296<<10)+(t-56320),o++)),l<128?e[b++]=l:l<2048?(e[b++]=192|l>>>6,e[b++]=128|l&63):l<65536?(e[b++]=224|l>>>12,e[b++]=128|l>>>6&63,e[b++]=128|l&63):(e[b++]=240|l>>>18,e[b++]=128|l>>>12&63,e[b++]=128|l>>>6&63,e[b++]=128|l&63);return e};function go(f,e){if(e<65534&&(f.subarray&&io||!f.subarray&&so))return String.fromCharCode.apply(null,Hl.shrinkBuf(f,e));for(var l="",t=0;t<e;t++)l+=String.fromCharCode(f[t]);return l}He.buf2binstring=function(f){return go(f,f.length)};He.binstring2buf=function(f){for(var e=new Hl.Buf8(f.length),l=0,t=e.length;l<t;l++)e[l]=f.charCodeAt(l);return e};He.buf2string=function(f,e){var l,t,o,b,n=e||f.length,m=new Array(n*2);for(t=0,l=0;l<n;){if(o=f[l++],o<128){m[t++]=o;continue}if(b=Ye[o],b>4){m[t++]=65533,l+=b-1;continue}for(o&=b===2?31:b===3?15:7;b>1&&l<n;)o=o<<6|f[l++]&63,b--;if(b>1){m[t++]=65533;continue}o<65536?m[t++]=o:(o-=65536,m[t++]=55296|o>>10&1023,m[t++]=56320|o&1023)}return go(m,t)};He.utf8border=function(f,e){var l;for(e=e||f.length,e>f.length&&(e=f.length),l=e-1;l>=0&&(f[l]&192)===128;)l--;return l<0||l===0?e:l+Ye[f[l]]>e?l:e}});var Bw=Q((ea,ko)=>{"use strict";function tp(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}ko.exports=tp});var co=Q(Ze=>{"use strict";var Ne=qo(),Qe=Ef(),_w=zw(),Tw=kl(),op=Bw(),ho=Object.prototype.toString,bp=0,yw=4,ze=0,uo=1,vo=2,np=-1,mp=0,pp=8;function be(f){if(!(this instanceof be))return new be(f);this.options=Qe.assign({level:np,method:pp,chunkSize:16384,windowBits:15,memLevel:8,strategy:mp,to:""},f||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new op,this.strm.avail_out=0;var l=Ne.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(l!==ze)throw new Error(Tw[l]);if(e.header&&Ne.deflateSetHeader(this.strm,e.header),e.dictionary){var t;if(typeof e.dictionary=="string"?t=_w.string2buf(e.dictionary):ho.call(e.dictionary)==="[object ArrayBuffer]"?t=new Uint8Array(e.dictionary):t=e.dictionary,l=Ne.deflateSetDictionary(this.strm,t),l!==ze)throw new Error(Tw[l]);this._dict_set=!0}}be.prototype.push=function(f,e){var l=this.strm,t=this.options.chunkSize,o,b;if(this.ended)return!1;b=e===~~e?e:e===!0?yw:bp,typeof f=="string"?l.input=_w.string2buf(f):ho.call(f)==="[object ArrayBuffer]"?l.input=new Uint8Array(f):l.input=f,l.next_in=0,l.avail_in=l.input.length;do{if(l.avail_out===0&&(l.output=new Qe.Buf8(t),l.next_out=0,l.avail_out=t),o=Ne.deflate(l,b),o!==uo&&o!==ze)return this.onEnd(o),this.ended=!0,!1;(l.avail_out===0||l.avail_in===0&&(b===yw||b===vo))&&(this.options.to==="string"?this.onData(_w.buf2binstring(Qe.shrinkBuf(l.output,l.next_out))):this.onData(Qe.shrinkBuf(l.output,l.next_out)))}while((l.avail_in>0||l.avail_out===0)&&o!==uo);return b===yw?(o=Ne.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===ze):(b===vo&&(this.onEnd(ze),l.avail_out=0),!0)};be.prototype.onData=function(f){this.chunks.push(f)};be.prototype.onEnd=function(f){f===ze&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Qe.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function Iw(f,e){var l=new be(e);if(l.push(f,!0),l.err)throw l.msg||Tw[l.err];return l.result}function jp(f,e){return e=e||{},e.raw=!0,Iw(f,e)}function rp(f,e){return e=e||{},e.gzip=!0,Iw(f,e)}Ze.Deflate=be;Ze.deflate=Iw;Ze.deflateRaw=jp;Ze.gzip=rp});var Ho=Q((wa,xo)=>{"use strict";var zl=30,ap=12;xo.exports=function(e,l){var t,o,b,n,m,i,j,a,H,d,u,c,z,A,y,U,C,I,h,W,R,T,D,N,S;t=e.state,o=e.next_in,N=e.input,b=o+(e.avail_in-5),n=e.next_out,S=e.output,m=n-(l-e.avail_out),i=n+(e.avail_out-257),j=t.dmax,a=t.wsize,H=t.whave,d=t.wnext,u=t.window,c=t.hold,z=t.bits,A=t.lencode,y=t.distcode,U=(1<<t.lenbits)-1,C=(1<<t.distbits)-1;f:do{z<15&&(c+=N[o++]<<z,z+=8,c+=N[o++]<<z,z+=8),I=A[c&U];e:for(;;){if(h=I>>>24,c>>>=h,z-=h,h=I>>>16&255,h===0)S[n++]=I&65535;else if(h&16){W=I&65535,h&=15,h&&(z<h&&(c+=N[o++]<<z,z+=8),W+=c&(1<<h)-1,c>>>=h,z-=h),z<15&&(c+=N[o++]<<z,z+=8,c+=N[o++]<<z,z+=8),I=y[c&C];l:for(;;){if(h=I>>>24,c>>>=h,z-=h,h=I>>>16&255,h&16){if(R=I&65535,h&=15,z<h&&(c+=N[o++]<<z,z+=8,z<h&&(c+=N[o++]<<z,z+=8)),R+=c&(1<<h)-1,R>j){e.msg="invalid distance too far back",t.mode=zl;break f}if(c>>>=h,z-=h,h=n-m,R>h){if(h=R-h,h>H&&t.sane){e.msg="invalid distance too far back",t.mode=zl;break f}if(T=0,D=u,d===0){if(T+=a-h,h<W){W-=h;do S[n++]=u[T++];while(--h);T=n-R,D=S}}else if(d<h){if(T+=a+d-h,h-=d,h<W){W-=h;do S[n++]=u[T++];while(--h);if(T=0,d<W){h=d,W-=h;do S[n++]=u[T++];while(--h);T=n-R,D=S}}}else if(T+=d-h,h<W){W-=h;do S[n++]=u[T++];while(--h);T=n-R,D=S}for(;W>2;)S[n++]=D[T++],S[n++]=D[T++],S[n++]=D[T++],W-=3;W&&(S[n++]=D[T++],W>1&&(S[n++]=D[T++]))}else{T=n-R;do S[n++]=S[T++],S[n++]=S[T++],S[n++]=S[T++],W-=3;while(W>2);W&&(S[n++]=S[T++],W>1&&(S[n++]=S[T++]))}}else if(h&64){e.msg="invalid distance code",t.mode=zl;break f}else{I=y[(I&65535)+(c&(1<<h)-1)];continue l}break}}else if(h&64)if(h&32){t.mode=ap;break f}else{e.msg="invalid literal/length code",t.mode=zl;break f}else{I=A[(I&65535)+(c&(1<<h)-1)];continue e}break}}while(o<b&&n<i);W=z>>3,o-=W,z-=W<<3,c&=(1<<z)-1,e.next_in=o,e.next_out=n,e.avail_in=o<b?5+(b-o):5-(o-b),e.avail_out=n<i?257+(i-n):257-(n-i),t.hold=c,t.bits=z}});var Ao=Q((ta,Io)=>{"use strict";var zo=Ef(),Be=15,Bo=852,yo=592,_o=0,Aw=1,To=2,qp=[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],sp=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],ip=[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,0,0],gp=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Io.exports=function(e,l,t,o,b,n,m,i){var j=i.bits,a=0,H=0,d=0,u=0,c=0,z=0,A=0,y=0,U=0,C=0,I,h,W,R,T,D=null,N=0,S,nf=new zo.Buf16(Be+1),qe=new zo.Buf16(Be+1),se=null,Zf=0,Ae,Cf,Jf;for(a=0;a<=Be;a++)nf[a]=0;for(H=0;H<o;H++)nf[l[t+H]]++;for(c=j,u=Be;u>=1&&nf[u]===0;u--);if(c>u&&(c=u),u===0)return b[n++]=1<<24|64<<16|0,b[n++]=1<<24|64<<16|0,i.bits=1,0;for(d=1;d<u&&nf[d]===0;d++);for(c<d&&(c=d),y=1,a=1;a<=Be;a++)if(y<<=1,y-=nf[a],y<0)return-1;if(y>0&&(e===_o||u!==1))return-1;for(qe[1]=0,a=1;a<Be;a++)qe[a+1]=qe[a]+nf[a];for(H=0;H<o;H++)l[t+H]!==0&&(m[qe[l[t+H]]++]=H);if(e===_o?(D=se=m,S=19):e===Aw?(D=qp,N-=257,se=sp,Zf-=257,S=256):(D=ip,se=gp,S=-1),C=0,H=0,a=d,T=n,z=c,A=0,W=-1,U=1<<c,R=U-1,e===Aw&&U>Bo||e===To&&U>yo)return 1;for(;;){Ae=a-A,m[H]<S?(Cf=0,Jf=m[H]):m[H]>S?(Cf=se[Zf+m[H]],Jf=D[N+m[H]]):(Cf=32+64,Jf=0),I=1<<a-A,h=1<<z,d=h;do h-=I,b[T+(C>>A)+h]=Ae<<24|Cf<<16|Jf|0;while(h!==0);for(I=1<<a-1;C&I;)I>>=1;if(I!==0?(C&=I-1,C+=I):C=0,H++,--nf[a]===0){if(a===u)break;a=l[t+m[H]]}if(a>c&&(C&R)!==W){for(A===0&&(A=c),T+=d,z=a-A,y=1<<z;z+A<u&&(y-=nf[z+A],!(y<=0));)z++,y<<=1;if(U+=1<<z,e===Aw&&U>Bo||e===To&&U>yo)return 1;W=C&R,b[W]=c<<24|z<<16|T-n|0}}return C!==0&&(b[T+C]=a-A<<24|64<<16|0),i.bits=c,0}});var ab=Q(hf=>{"use strict";var rf=Ef(),Fw=uw(),yf=vw(),kp=Ho(),Je=Ao(),dp=0,wb=1,tb=2,Ro=4,up=5,Bl=6,ne=0,vp=1,hp=2,kf=-2,ob=-3,Ow=-4,cp=-5,So=8,bb=1,Eo=2,Ko=3,Do=4,Fo=5,Oo=6,Co=7,Wo=8,Uo=9,Lo=10,Tl=11,Ff=12,Rw=13,Po=14,Sw=15,Mo=16,Vo=17,Yo=18,No=19,yl=20,_l=21,Qo=22,Zo=23,Jo=24,Xo=25,Go=26,Ew=27,$o=28,fb=29,Y=30,Cw=31,xp=32,Hp=852,zp=592,Bp=15,yp=Bp;function eb(f){return(f>>>24&255)+(f>>>8&65280)+((f&65280)<<8)+((f&255)<<24)}function _p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new rf.Buf16(320),this.work=new rf.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function nb(f){var e;return!f||!f.state?kf:(e=f.state,f.total_in=f.total_out=e.total=0,f.msg="",e.wrap&&(f.adler=e.wrap&1),e.mode=bb,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new rf.Buf32(Hp),e.distcode=e.distdyn=new rf.Buf32(zp),e.sane=1,e.back=-1,ne)}function mb(f){var e;return!f||!f.state?kf:(e=f.state,e.wsize=0,e.whave=0,e.wnext=0,nb(f))}function pb(f,e){var l,t;return!f||!f.state||(t=f.state,e<0?(l=0,e=-e):(l=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?kf:(t.window!==null&&t.wbits!==e&&(t.window=null),t.wrap=l,t.wbits=e,mb(f))}function jb(f,e){var l,t;return f?(t=new _p,f.state=t,t.window=null,l=pb(f,e),l!==ne&&(f.state=null),l):kf}function Tp(f){return jb(f,yp)}var lb=!0,Kw,Dw;function Ip(f){if(lb){var e;for(Kw=new rf.Buf32(512),Dw=new rf.Buf32(32),e=0;e<144;)f.lens[e++]=8;for(;e<256;)f.lens[e++]=9;for(;e<280;)f.lens[e++]=7;for(;e<288;)f.lens[e++]=8;for(Je(wb,f.lens,0,288,Kw,0,f.work,{bits:9}),e=0;e<32;)f.lens[e++]=5;Je(tb,f.lens,0,32,Dw,0,f.work,{bits:5}),lb=!1}f.lencode=Kw,f.lenbits=9,f.distcode=Dw,f.distbits=5}function rb(f,e,l,t){var o,b=f.state;return b.window===null&&(b.wsize=1<<b.wbits,b.wnext=0,b.whave=0,b.window=new rf.Buf8(b.wsize)),t>=b.wsize?(rf.arraySet(b.window,e,l-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(o=b.wsize-b.wnext,o>t&&(o=t),rf.arraySet(b.window,e,l-t,o,b.wnext),t-=o,t?(rf.arraySet(b.window,e,l-t,t,0),b.wnext=t,b.whave=b.wsize):(b.wnext+=o,b.wnext===b.wsize&&(b.wnext=0),b.whave<b.wsize&&(b.whave+=o))),0}function Ap(f,e){var l,t,o,b,n,m,i,j,a,H,d,u,c,z,A=0,y,U,C,I,h,W,R,T,D=new rf.Buf8(4),N,S,nf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!f||!f.state||!f.output||!f.input&&f.avail_in!==0)return kf;l=f.state,l.mode===Ff&&(l.mode=Rw),n=f.next_out,o=f.output,i=f.avail_out,b=f.next_in,t=f.input,m=f.avail_in,j=l.hold,a=l.bits,H=m,d=i,T=ne;f:for(;;)switch(l.mode){case bb:if(l.wrap===0){l.mode=Rw;break}for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(l.wrap&2&&j===35615){l.check=0,D[0]=j&255,D[1]=j>>>8&255,l.check=yf(l.check,D,2,0),j=0,a=0,l.mode=Eo;break}if(l.flags=0,l.head&&(l.head.done=!1),!(l.wrap&1)||(((j&255)<<8)+(j>>8))%31){f.msg="incorrect header check",l.mode=Y;break}if((j&15)!==So){f.msg="unknown compression method",l.mode=Y;break}if(j>>>=4,a-=4,R=(j&15)+8,l.wbits===0)l.wbits=R;else if(R>l.wbits){f.msg="invalid window size",l.mode=Y;break}l.dmax=1<<R,f.adler=l.check=1,l.mode=j&512?Lo:Ff,j=0,a=0;break;case Eo:for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(l.flags=j,(l.flags&255)!==So){f.msg="unknown compression method",l.mode=Y;break}if(l.flags&57344){f.msg="unknown header flags set",l.mode=Y;break}l.head&&(l.head.text=j>>8&1),l.flags&512&&(D[0]=j&255,D[1]=j>>>8&255,l.check=yf(l.check,D,2,0)),j=0,a=0,l.mode=Ko;case Ko:for(;a<32;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}l.head&&(l.head.time=j),l.flags&512&&(D[0]=j&255,D[1]=j>>>8&255,D[2]=j>>>16&255,D[3]=j>>>24&255,l.check=yf(l.check,D,4,0)),j=0,a=0,l.mode=Do;case Do:for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}l.head&&(l.head.xflags=j&255,l.head.os=j>>8),l.flags&512&&(D[0]=j&255,D[1]=j>>>8&255,l.check=yf(l.check,D,2,0)),j=0,a=0,l.mode=Fo;case Fo:if(l.flags&1024){for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}l.length=j,l.head&&(l.head.extra_len=j),l.flags&512&&(D[0]=j&255,D[1]=j>>>8&255,l.check=yf(l.check,D,2,0)),j=0,a=0}else l.head&&(l.head.extra=null);l.mode=Oo;case Oo:if(l.flags&1024&&(u=l.length,u>m&&(u=m),u&&(l.head&&(R=l.head.extra_len-l.length,l.head.extra||(l.head.extra=new Array(l.head.extra_len)),rf.arraySet(l.head.extra,t,b,u,R)),l.flags&512&&(l.check=yf(l.check,t,u,b)),m-=u,b+=u,l.length-=u),l.length))break f;l.length=0,l.mode=Co;case Co:if(l.flags&2048){if(m===0)break f;u=0;do R=t[b+u++],l.head&&R&&l.length<65536&&(l.head.name+=String.fromCharCode(R));while(R&&u<m);if(l.flags&512&&(l.check=yf(l.check,t,u,b)),m-=u,b+=u,R)break f}else l.head&&(l.head.name=null);l.length=0,l.mode=Wo;case Wo:if(l.flags&4096){if(m===0)break f;u=0;do R=t[b+u++],l.head&&R&&l.length<65536&&(l.head.comment+=String.fromCharCode(R));while(R&&u<m);if(l.flags&512&&(l.check=yf(l.check,t,u,b)),m-=u,b+=u,R)break f}else l.head&&(l.head.comment=null);l.mode=Uo;case Uo:if(l.flags&512){for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(j!==(l.check&65535)){f.msg="header crc mismatch",l.mode=Y;break}j=0,a=0}l.head&&(l.head.hcrc=l.flags>>9&1,l.head.done=!0),f.adler=l.check=0,l.mode=Ff;break;case Lo:for(;a<32;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}f.adler=l.check=eb(j),j=0,a=0,l.mode=Tl;case Tl:if(l.havedict===0)return f.next_out=n,f.avail_out=i,f.next_in=b,f.avail_in=m,l.hold=j,l.bits=a,hp;f.adler=l.check=1,l.mode=Ff;case Ff:if(e===up||e===Bl)break f;case Rw:if(l.last){j>>>=a&7,a-=a&7,l.mode=Ew;break}for(;a<3;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}switch(l.last=j&1,j>>>=1,a-=1,j&3){case 0:l.mode=Po;break;case 1:if(Ip(l),l.mode=yl,e===Bl){j>>>=2,a-=2;break f}break;case 2:l.mode=Vo;break;case 3:f.msg="invalid block type",l.mode=Y}j>>>=2,a-=2;break;case Po:for(j>>>=a&7,a-=a&7;a<32;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if((j&65535)!==(j>>>16^65535)){f.msg="invalid stored block lengths",l.mode=Y;break}if(l.length=j&65535,j=0,a=0,l.mode=Sw,e===Bl)break f;case Sw:l.mode=Mo;case Mo:if(u=l.length,u){if(u>m&&(u=m),u>i&&(u=i),u===0)break f;rf.arraySet(o,t,b,u,n),m-=u,b+=u,i-=u,n+=u,l.length-=u;break}l.mode=Ff;break;case Vo:for(;a<14;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(l.nlen=(j&31)+257,j>>>=5,a-=5,l.ndist=(j&31)+1,j>>>=5,a-=5,l.ncode=(j&15)+4,j>>>=4,a-=4,l.nlen>286||l.ndist>30){f.msg="too many length or distance symbols",l.mode=Y;break}l.have=0,l.mode=Yo;case Yo:for(;l.have<l.ncode;){for(;a<3;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}l.lens[nf[l.have++]]=j&7,j>>>=3,a-=3}for(;l.have<19;)l.lens[nf[l.have++]]=0;if(l.lencode=l.lendyn,l.lenbits=7,N={bits:l.lenbits},T=Je(dp,l.lens,0,19,l.lencode,0,l.work,N),l.lenbits=N.bits,T){f.msg="invalid code lengths set",l.mode=Y;break}l.have=0,l.mode=No;case No:for(;l.have<l.nlen+l.ndist;){for(;A=l.lencode[j&(1<<l.lenbits)-1],y=A>>>24,U=A>>>16&255,C=A&65535,!(y<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(C<16)j>>>=y,a-=y,l.lens[l.have++]=C;else{if(C===16){for(S=y+2;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(j>>>=y,a-=y,l.have===0){f.msg="invalid bit length repeat",l.mode=Y;break}R=l.lens[l.have-1],u=3+(j&3),j>>>=2,a-=2}else if(C===17){for(S=y+3;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}j>>>=y,a-=y,R=0,u=3+(j&7),j>>>=3,a-=3}else{for(S=y+7;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}j>>>=y,a-=y,R=0,u=11+(j&127),j>>>=7,a-=7}if(l.have+u>l.nlen+l.ndist){f.msg="invalid bit length repeat",l.mode=Y;break}for(;u--;)l.lens[l.have++]=R}}if(l.mode===Y)break;if(l.lens[256]===0){f.msg="invalid code -- missing end-of-block",l.mode=Y;break}if(l.lenbits=9,N={bits:l.lenbits},T=Je(wb,l.lens,0,l.nlen,l.lencode,0,l.work,N),l.lenbits=N.bits,T){f.msg="invalid literal/lengths set",l.mode=Y;break}if(l.distbits=6,l.distcode=l.distdyn,N={bits:l.distbits},T=Je(tb,l.lens,l.nlen,l.ndist,l.distcode,0,l.work,N),l.distbits=N.bits,T){f.msg="invalid distances set",l.mode=Y;break}if(l.mode=yl,e===Bl)break f;case yl:l.mode=_l;case _l:if(m>=6&&i>=258){f.next_out=n,f.avail_out=i,f.next_in=b,f.avail_in=m,l.hold=j,l.bits=a,kp(f,d),n=f.next_out,o=f.output,i=f.avail_out,b=f.next_in,t=f.input,m=f.avail_in,j=l.hold,a=l.bits,l.mode===Ff&&(l.back=-1);break}for(l.back=0;A=l.lencode[j&(1<<l.lenbits)-1],y=A>>>24,U=A>>>16&255,C=A&65535,!(y<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(U&&!(U&240)){for(I=y,h=U,W=C;A=l.lencode[W+((j&(1<<I+h)-1)>>I)],y=A>>>24,U=A>>>16&255,C=A&65535,!(I+y<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}j>>>=I,a-=I,l.back+=I}if(j>>>=y,a-=y,l.back+=y,l.length=C,U===0){l.mode=Go;break}if(U&32){l.back=-1,l.mode=Ff;break}if(U&64){f.msg="invalid literal/length code",l.mode=Y;break}l.extra=U&15,l.mode=Qo;case Qo:if(l.extra){for(S=l.extra;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}l.length+=j&(1<<l.extra)-1,j>>>=l.extra,a-=l.extra,l.back+=l.extra}l.was=l.length,l.mode=Zo;case Zo:for(;A=l.distcode[j&(1<<l.distbits)-1],y=A>>>24,U=A>>>16&255,C=A&65535,!(y<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(!(U&240)){for(I=y,h=U,W=C;A=l.distcode[W+((j&(1<<I+h)-1)>>I)],y=A>>>24,U=A>>>16&255,C=A&65535,!(I+y<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}j>>>=I,a-=I,l.back+=I}if(j>>>=y,a-=y,l.back+=y,U&64){f.msg="invalid distance code",l.mode=Y;break}l.offset=C,l.extra=U&15,l.mode=Jo;case Jo:if(l.extra){for(S=l.extra;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}l.offset+=j&(1<<l.extra)-1,j>>>=l.extra,a-=l.extra,l.back+=l.extra}if(l.offset>l.dmax){f.msg="invalid distance too far back",l.mode=Y;break}l.mode=Xo;case Xo:if(i===0)break f;if(u=d-i,l.offset>u){if(u=l.offset-u,u>l.whave&&l.sane){f.msg="invalid distance too far back",l.mode=Y;break}u>l.wnext?(u-=l.wnext,c=l.wsize-u):c=l.wnext-u,u>l.length&&(u=l.length),z=l.window}else z=o,c=n-l.offset,u=l.length;u>i&&(u=i),i-=u,l.length-=u;do o[n++]=z[c++];while(--u);l.length===0&&(l.mode=_l);break;case Go:if(i===0)break f;o[n++]=l.length,i--,l.mode=_l;break;case Ew:if(l.wrap){for(;a<32;){if(m===0)break f;m--,j|=t[b++]<<a,a+=8}if(d-=i,f.total_out+=d,l.total+=d,d&&(f.adler=l.check=l.flags?yf(l.check,o,d,n-d):Fw(l.check,o,d,n-d)),d=i,(l.flags?j:eb(j))!==l.check){f.msg="incorrect data check",l.mode=Y;break}j=0,a=0}l.mode=$o;case $o:if(l.wrap&&l.flags){for(;a<32;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(j!==(l.total&4294967295)){f.msg="incorrect length check",l.mode=Y;break}j=0,a=0}l.mode=fb;case fb:T=vp;break f;case Y:T=ob;break f;case Cw:return Ow;case xp:default:return kf}return f.next_out=n,f.avail_out=i,f.next_in=b,f.avail_in=m,l.hold=j,l.bits=a,(l.wsize||d!==f.avail_out&&l.mode<Y&&(l.mode<Ew||e!==Ro))&&rb(f,f.output,f.next_out,d-f.avail_out)?(l.mode=Cw,Ow):(H-=f.avail_in,d-=f.avail_out,f.total_in+=H,f.total_out+=d,l.total+=d,l.wrap&&d&&(f.adler=l.check=l.flags?yf(l.check,o,d,f.next_out-d):Fw(l.check,o,d,f.next_out-d)),f.data_type=l.bits+(l.last?64:0)+(l.mode===Ff?128:0)+(l.mode===yl||l.mode===Sw?256:0),(H===0&&d===0||e===Ro)&&T===ne&&(T=cp),T)}function Rp(f){if(!f||!f.state)return kf;var e=f.state;return e.window&&(e.window=null),f.state=null,ne}function Sp(f,e){var l;return!f||!f.state||(l=f.state,!(l.wrap&2))?kf:(l.head=e,e.done=!1,ne)}function Ep(f,e){var l=e.length,t,o,b;return!f||!f.state||(t=f.state,t.wrap!==0&&t.mode!==Tl)?kf:t.mode===Tl&&(o=1,o=Fw(o,e,l,0),o!==t.check)?ob:(b=rb(f,e,l,l),b?(t.mode=Cw,Ow):(t.havedict=1,ne))}hf.inflateReset=mb;hf.inflateReset2=pb;hf.inflateResetKeep=nb;hf.inflateInit=Tp;hf.inflateInit2=jb;hf.inflate=Ap;hf.inflateEnd=Rp;hf.inflateGetHeader=Sp;hf.inflateSetDictionary=Ep;hf.inflateInfo="pako inflate (from Nodeca project)"});var Ww=Q((ba,qb)=>{"use strict";qb.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var ib=Q((na,sb)=>{"use strict";function Kp(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}sb.exports=Kp});var kb=Q(Ge=>{"use strict";var ye=ab(),Xe=Ef(),Il=zw(),Z=Ww(),Uw=kl(),Dp=Bw(),Fp=ib(),gb=Object.prototype.toString;function me(f){if(!(this instanceof me))return new me(f);this.options=Xe.assign({chunkSize:16384,windowBits:0,to:""},f||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(f&&f.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Dp,this.strm.avail_out=0;var l=ye.inflateInit2(this.strm,e.windowBits);if(l!==Z.Z_OK)throw new Error(Uw[l]);if(this.header=new Fp,ye.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Il.string2buf(e.dictionary):gb.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(l=ye.inflateSetDictionary(this.strm,e.dictionary),l!==Z.Z_OK)))throw new Error(Uw[l])}me.prototype.push=function(f,e){var l=this.strm,t=this.options.chunkSize,o=this.options.dictionary,b,n,m,i,j,a=!1;if(this.ended)return!1;n=e===~~e?e:e===!0?Z.Z_FINISH:Z.Z_NO_FLUSH,typeof f=="string"?l.input=Il.binstring2buf(f):gb.call(f)==="[object ArrayBuffer]"?l.input=new Uint8Array(f):l.input=f,l.next_in=0,l.avail_in=l.input.length;do{if(l.avail_out===0&&(l.output=new Xe.Buf8(t),l.next_out=0,l.avail_out=t),b=ye.inflate(l,Z.Z_NO_FLUSH),b===Z.Z_NEED_DICT&&o&&(b=ye.inflateSetDictionary(this.strm,o)),b===Z.Z_BUF_ERROR&&a===!0&&(b=Z.Z_OK,a=!1),b!==Z.Z_STREAM_END&&b!==Z.Z_OK)return this.onEnd(b),this.ended=!0,!1;l.next_out&&(l.avail_out===0||b===Z.Z_STREAM_END||l.avail_in===0&&(n===Z.Z_FINISH||n===Z.Z_SYNC_FLUSH))&&(this.options.to==="string"?(m=Il.utf8border(l.output,l.next_out),i=l.next_out-m,j=Il.buf2string(l.output,m),l.next_out=i,l.avail_out=t-i,i&&Xe.arraySet(l.output,l.output,m,i,0),this.onData(j)):this.onData(Xe.shrinkBuf(l.output,l.next_out))),l.avail_in===0&&l.avail_out===0&&(a=!0)}while((l.avail_in>0||l.avail_out===0)&&b!==Z.Z_STREAM_END);return b===Z.Z_STREAM_END&&(n=Z.Z_FINISH),n===Z.Z_FINISH?(b=ye.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===Z.Z_OK):(n===Z.Z_SYNC_FLUSH&&(this.onEnd(Z.Z_OK),l.avail_out=0),!0)};me.prototype.onData=function(f){this.chunks.push(f)};me.prototype.onEnd=function(f){f===Z.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Xe.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function Lw(f,e){var l=new me(e);if(l.push(f,!0),l.err)throw l.msg||Uw[l.err];return l.result}function Op(f,e){return e=e||{},e.raw=!0,Lw(f,e)}Ge.Inflate=me;Ge.inflate=Lw;Ge.inflateRaw=Op;Ge.ungzip=Lw});var vb=Q((pa,ub)=>{"use strict";var Cp=Ef().assign,Wp=co(),Up=kb(),Lp=Ww(),db={};Cp(db,Wp,Up,Lp);ub.exports=db});var cb=Q(hb=>{"use strict";var Mp=[0,255,65535,16777215,4294967295];function Vp(f,e,l,t,o){var b;for(b=0;b<o;b++)l[t+b]=f[e+b]}function Yp(f,e,l,t){var o;for(o=0;o<t;o++)f[e+o]=f[e-l+o]}function Pw(f){this.array=f,this.pos=0}Pw.prototype.readUncompressedLength=function(){for(var f=0,e=0,l,t;e<32&&this.pos<this.array.length;){if(l=this.array[this.pos],this.pos+=1,t=l&127,t<<e>>>e!==t)return-1;if(f|=t<<e,l<128)return f;e+=7}return-1};Pw.prototype.uncompressToBuffer=function(f){for(var e=this.array,l=e.length,t=this.pos,o=0,b,n,m,i;t<e.length;)if(b=e[t],t+=1,b&3){switch(b&3){case 1:n=(b>>>2&7)+4,i=e[t]+(b>>>5<<8),t+=1;break;case 2:if(t+1>=l)return!1;n=(b>>>2)+1,i=e[t]+(e[t+1]<<8),t+=2;break;case 3:if(t+3>=l)return!1;n=(b>>>2)+1,i=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24),t+=4;break;default:break}if(i===0||i>o)return!1;Yp(f,o,i,n),o+=n}else{if(n=(b>>>2)+1,n>60){if(t+3>=l)return!1;m=n-60,n=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24),n=(n&Mp[m])+1,t+=m}if(t+n>l)return!1;Vp(e,t,f,o,n),t+=n,o+=n}return!0};hb.SnappyDecompressor=Pw});var yb=Q(Bb=>{"use strict";var Np=16,Qp=1<<Np,zb=14,Mw=new Array(zb+1);function $e(f,e){return f*506832829>>>e}function fl(f,e){return f[e]+(f[e+1]<<8)+(f[e+2]<<16)+(f[e+3]<<24)}function xb(f,e,l){return f[e]===f[l]&&f[e+1]===f[l+1]&&f[e+2]===f[l+2]&&f[e+3]===f[l+3]}function Zp(f,e,l,t,o){var b;for(b=0;b<o;b++)l[t+b]=f[e+b]}function Hb(f,e,l,t,o){return l<=60?(t[o]=l-1<<2,o+=1):l<256?(t[o]=60<<2,t[o+1]=l-1,o+=2):(t[o]=61<<2,t[o+1]=l-1&255,t[o+2]=l-1>>>8,o+=3),Zp(f,e,t,o,l),o+l}function Vw(f,e,l,t){return t<12&&l<2048?(f[e]=1+(t-4<<2)+(l>>>8<<5),f[e+1]=l&255,e+2):(f[e]=2+(t-1<<2),f[e+1]=l&255,f[e+2]=l>>>8,e+3)}function Jp(f,e,l,t){for(;t>=68;)e=Vw(f,e,l,64),t-=64;return t>64&&(e=Vw(f,e,l,60),t-=60),Vw(f,e,l,t)}function Xp(f,e,l,t,o){for(var b=1;1<<b<=l&&b<=zb;)b+=1;b-=1;var n=32-b;typeof Mw[b]>"u"&&(Mw[b]=new Uint16Array(1<<b));var m=Mw[b],i;for(i=0;i<m.length;i++)m[i]=0;var j=e+l,a,H=e,d=e,u,c,z,A,y,U,C,I,h,W,R,T=!0,D=15;if(l>=D)for(a=j-D,e+=1,c=$e(fl(f,e),n);T;){y=32,z=e;do{if(e=z,u=c,U=y>>>5,y+=1,z=e+U,e>a){T=!1;break}c=$e(fl(f,z),n),A=H+m[u],m[u]=e-H}while(!xb(f,e,A));if(!T)break;o=Hb(f,d,e-d,t,o);do{for(C=e,I=4;e+I<j&&f[e+I]===f[A+I];)I+=1;if(e+=I,h=C-A,o=Jp(t,o,h,I),d=e,e>=a){T=!1;break}W=$e(fl(f,e-1),n),m[W]=e-1-H,R=$e(fl(f,e),n),A=H+m[R],m[R]=e-H}while(xb(f,e,A));if(!T)break;e+=1,c=$e(fl(f,e),n)}return d<j&&(o=Hb(f,d,j-d,t,o)),o}function Gp(f,e,l){do e[l]=f&127,f=f>>>7,f>0&&(e[l]+=128),l+=1;while(f>0);return l}function Yw(f){this.array=f}Yw.prototype.maxCompressedLength=function(){var f=this.array.length;return 32+f+Math.floor(f/6)};Yw.prototype.compressToBuffer=function(f){var e=this.array,l=e.length,t=0,o=0,b;for(o=Gp(l,f,o);t<l;)b=Math.min(l-t,Qp),o=Xp(e,t,b,f,o),t+=b;return o};Bb.SnappyCompressor=Yw});var Ab=Q(Nw=>{"use strict";function _b(){return typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node<"u"}function Sl(f){return f instanceof Uint8Array&&(!_b()||!Buffer.isBuffer(f))}function El(f){return f instanceof ArrayBuffer}function Tb(f){return _b()?Buffer.isBuffer(f):!1}var $p=cb().SnappyDecompressor,fj=yb().SnappyCompressor,Ib="Argument compressed must be type of ArrayBuffer, Buffer, or Uint8Array";function ej(f){if(!Sl(f)&&!El(f)&&!Tb(f))throw new T