@agile-team/mach-report 1.2.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +62 -70
  2. package/dist/ReportPreview-Cr0IH1Rz.cjs +6 -0
  3. package/dist/ReportPreview-DwknBgsJ.js +1266 -0
  4. package/dist/defaults.d.ts +3 -7
  5. package/dist/format.d.ts +1 -1
  6. package/dist/index.cjs +5 -5
  7. package/dist/index.d.cts +0 -1
  8. package/dist/index.d.ts +0 -1
  9. package/dist/index.js +621 -758
  10. package/dist/layout/textwrap.d.ts +1 -1
  11. package/dist/pdf.cjs +1 -1
  12. package/dist/pdf.js +1 -1
  13. package/dist/plugin-Cj3c2wJc.cjs +1 -0
  14. package/dist/plugin-DJf_6_fl.js +18 -0
  15. package/dist/schema/render-plan.d.ts +1 -9
  16. package/dist/sql/expr.d.ts +3 -3
  17. package/dist/sql.d.cts +1 -1
  18. package/dist/sql.d.ts +1 -1
  19. package/dist/style-CFZ-HE2s.cjs +3 -0
  20. package/dist/{style-6ihHKVCM.js → style-DnmtG7Gl.js} +69 -81
  21. package/dist/style.css +1 -1
  22. package/dist/vue/ReportPreview.d.ts +3 -12
  23. package/dist/vue/adapters.d.ts +6 -12
  24. package/dist/vue/async.d.cts +7 -22
  25. package/dist/vue/async.d.ts +7 -22
  26. package/dist/vue/local-adapter.d.ts +1 -2
  27. package/dist/vue/plugin.d.ts +12 -34
  28. package/dist/vue-async.cjs +1 -1
  29. package/dist/vue-async.js +6 -6
  30. package/dist/vue.cjs +1 -1
  31. package/dist/vue.js +48 -48
  32. package/package.json +2 -12
  33. package/dist/ReportPreview-CJLvkTVn.cjs +0 -6
  34. package/dist/ReportPreview-mZiGtf0L.js +0 -1231
  35. package/dist/compat/jh4j-template.d.ts +0 -12
  36. package/dist/manager/api.d.ts +0 -45
  37. package/dist/manager/index.d.ts +0 -2
  38. package/dist/manager/types.d.ts +0 -50
  39. package/dist/manager.cjs +0 -1
  40. package/dist/manager.d.cts +0 -5
  41. package/dist/manager.d.ts +0 -5
  42. package/dist/manager.js +0 -104
  43. package/dist/plugin-C4qpbdMJ.cjs +0 -1
  44. package/dist/plugin-DcmAPK_K.js +0 -85
  45. package/dist/style-Xq08-IsV.cjs +0 -3
@@ -15,7 +15,7 @@ export interface TextMeasurer {
15
15
  measureMm(text: string, options: TextMeasureOptions): number;
16
16
  }
17
17
  export declare function charWidthEm(ch: string): number;
18
- /** 启发式测量器:宽度模型与 jh4j 近似口径一致(默认实现) */
18
+ /** 启发式测量器:无 Canvas 时的默认宽度估算 */
19
19
  export declare const heuristicMeasurer: TextMeasurer;
20
20
  /** 兼容旧 API:默认启发式测量 */
21
21
  export declare function createHeuristicMeasurer(): TextMeasurer;
package/dist/pdf.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B1=require("./_commonjsHelpers-DKOUU3wS.cjs"),_t=require("./style-Xq08-IsV.cjs"),R1=require("./grid-geometry-BXpOxznT.cjs");var vu={},ll;function Kn(){return ll||(ll=1,(function(t){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(a,o){return Object.prototype.hasOwnProperty.call(a,o)}t.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var u in s)r(s,u)&&(a[u]=s[u])}}return a},t.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var n={arraySet:function(a,o,s,u,f){if(o.subarray&&a.subarray){a.set(o.subarray(s,s+u),f);return}for(var l=0;l<u;l++)a[f+l]=o[s+l]},flattenChunks:function(a){var o,s,u,f,l,h;for(u=0,o=0,s=a.length;o<s;o++)u+=a[o].length;for(h=new Uint8Array(u),f=0,o=0,s=a.length;o<s;o++)l=a[o],h.set(l,f),f+=l.length;return h}},i={arraySet:function(a,o,s,u,f){for(var l=0;l<u;l++)a[f+l]=o[s+l]},flattenChunks:function(a){return[].concat.apply([],a)}};t.setTyped=function(a){a?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)})(vu)),vu}var Di={},Rr={},_n={},hl;function M1(){if(hl)return _n;hl=1;var t=Kn(),e=4,r=0,n=1,i=2;function a(C){for(var re=C.length;--re>=0;)C[re]=0}var o=0,s=1,u=2,f=3,l=258,h=29,d=256,v=d+1+h,g=30,b=19,w=2*v+1,x=15,T=16,A=7,R=256,P=16,I=17,B=18,j=[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],W=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Z=512,U=new Array((v+2)*2);a(U);var ee=new Array(g*2);a(ee);var Y=new Array(Z);a(Y);var $=new Array(l-f+1);a($);var J=new Array(h);a(J);var ce=new Array(g);a(ce);function de(C,re,ae,fe,L){this.static_tree=C,this.extra_bits=re,this.extra_base=ae,this.elems=fe,this.max_length=L,this.has_stree=C&&C.length}var we,me,Te;function Le(C,re){this.dyn_tree=C,this.max_code=0,this.stat_desc=re}function Ge(C){return C<256?Y[C]:Y[256+(C>>>7)]}function Xe(C,re){C.pending_buf[C.pending++]=re&255,C.pending_buf[C.pending++]=re>>>8&255}function Fe(C,re,ae){C.bi_valid>T-ae?(C.bi_buf|=re<<C.bi_valid&65535,Xe(C,C.bi_buf),C.bi_buf=re>>T-C.bi_valid,C.bi_valid+=ae-T):(C.bi_buf|=re<<C.bi_valid&65535,C.bi_valid+=ae)}function Ne(C,re,ae){Fe(C,ae[re*2],ae[re*2+1])}function le(C,re){var ae=0;do ae|=C&1,C>>>=1,ae<<=1;while(--re>0);return ae>>>1}function De(C){C.bi_valid===16?(Xe(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)}function xe(C,re){var ae=re.dyn_tree,fe=re.max_code,L=re.stat_desc.static_tree,X=re.stat_desc.has_stree,F=re.stat_desc.extra_bits,ne=re.stat_desc.extra_base,ke=re.stat_desc.max_length,p,H,K,S,M,G,Ae=0;for(S=0;S<=x;S++)C.bl_count[S]=0;for(ae[C.heap[C.heap_max]*2+1]=0,p=C.heap_max+1;p<w;p++)H=C.heap[p],S=ae[ae[H*2+1]*2+1]+1,S>ke&&(S=ke,Ae++),ae[H*2+1]=S,!(H>fe)&&(C.bl_count[S]++,M=0,H>=ne&&(M=F[H-ne]),G=ae[H*2],C.opt_len+=G*(S+M),X&&(C.static_len+=G*(L[H*2+1]+M)));if(Ae!==0){do{for(S=ke-1;C.bl_count[S]===0;)S--;C.bl_count[S]--,C.bl_count[S+1]+=2,C.bl_count[ke]--,Ae-=2}while(Ae>0);for(S=ke;S!==0;S--)for(H=C.bl_count[S];H!==0;)K=C.heap[--p],!(K>fe)&&(ae[K*2+1]!==S&&(C.opt_len+=(S-ae[K*2+1])*ae[K*2],ae[K*2+1]=S),H--)}}function Re(C,re,ae){var fe=new Array(x+1),L=0,X,F;for(X=1;X<=x;X++)fe[X]=L=L+ae[X-1]<<1;for(F=0;F<=re;F++){var ne=C[F*2+1];ne!==0&&(C[F*2]=le(fe[ne]++,ne))}}function ve(){var C,re,ae,fe,L,X=new Array(x+1);for(ae=0,fe=0;fe<h-1;fe++)for(J[fe]=ae,C=0;C<1<<j[fe];C++)$[ae++]=fe;for($[ae-1]=fe,L=0,fe=0;fe<16;fe++)for(ce[fe]=L,C=0;C<1<<W[fe];C++)Y[L++]=fe;for(L>>=7;fe<g;fe++)for(ce[fe]=L<<7,C=0;C<1<<W[fe]-7;C++)Y[256+L++]=fe;for(re=0;re<=x;re++)X[re]=0;for(C=0;C<=143;)U[C*2+1]=8,C++,X[8]++;for(;C<=255;)U[C*2+1]=9,C++,X[9]++;for(;C<=279;)U[C*2+1]=7,C++,X[7]++;for(;C<=287;)U[C*2+1]=8,C++,X[8]++;for(Re(U,v+1,X),C=0;C<g;C++)ee[C*2+1]=5,ee[C*2]=le(C,5);we=new de(U,j,d+1,v,x),me=new de(ee,W,0,g,x),Te=new de(new Array(0),N,0,b,A)}function Oe(C){var re;for(re=0;re<v;re++)C.dyn_ltree[re*2]=0;for(re=0;re<g;re++)C.dyn_dtree[re*2]=0;for(re=0;re<b;re++)C.bl_tree[re*2]=0;C.dyn_ltree[R*2]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function gt(C){C.bi_valid>8?Xe(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function E(C,re,ae,fe){gt(C),Xe(C,ae),Xe(C,~ae),t.arraySet(C.pending_buf,C.window,re,ae,C.pending),C.pending+=ae}function y(C,re,ae,fe){var L=re*2,X=ae*2;return C[L]<C[X]||C[L]===C[X]&&fe[re]<=fe[ae]}function m(C,re,ae){for(var fe=C.heap[ae],L=ae<<1;L<=C.heap_len&&(L<C.heap_len&&y(re,C.heap[L+1],C.heap[L],C.depth)&&L++,!y(re,fe,C.heap[L],C.depth));)C.heap[ae]=C.heap[L],ae=L,L<<=1;C.heap[ae]=fe}function D(C,re,ae){var fe,L,X=0,F,ne;if(C.last_lit!==0)do fe=C.pending_buf[C.d_buf+X*2]<<8|C.pending_buf[C.d_buf+X*2+1],L=C.pending_buf[C.l_buf+X],X++,fe===0?Ne(C,L,re):(F=$[L],Ne(C,F+d+1,re),ne=j[F],ne!==0&&(L-=J[F],Fe(C,L,ne)),fe--,F=Ge(fe),Ne(C,F,ae),ne=W[F],ne!==0&&(fe-=ce[F],Fe(C,fe,ne)));while(X<C.last_lit);Ne(C,R,re)}function z(C,re){var ae=re.dyn_tree,fe=re.stat_desc.static_tree,L=re.stat_desc.has_stree,X=re.stat_desc.elems,F,ne,ke=-1,p;for(C.heap_len=0,C.heap_max=w,F=0;F<X;F++)ae[F*2]!==0?(C.heap[++C.heap_len]=ke=F,C.depth[F]=0):ae[F*2+1]=0;for(;C.heap_len<2;)p=C.heap[++C.heap_len]=ke<2?++ke:0,ae[p*2]=1,C.depth[p]=0,C.opt_len--,L&&(C.static_len-=fe[p*2+1]);for(re.max_code=ke,F=C.heap_len>>1;F>=1;F--)m(C,ae,F);p=X;do F=C.heap[1],C.heap[1]=C.heap[C.heap_len--],m(C,ae,1),ne=C.heap[1],C.heap[--C.heap_max]=F,C.heap[--C.heap_max]=ne,ae[p*2]=ae[F*2]+ae[ne*2],C.depth[p]=(C.depth[F]>=C.depth[ne]?C.depth[F]:C.depth[ne])+1,ae[F*2+1]=ae[ne*2+1]=p,C.heap[1]=p++,m(C,ae,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1],xe(C,re),Re(ae,ke,C.bl_count)}function te(C,re,ae){var fe,L=-1,X,F=re[1],ne=0,ke=7,p=4;for(F===0&&(ke=138,p=3),re[(ae+1)*2+1]=65535,fe=0;fe<=ae;fe++)X=F,F=re[(fe+1)*2+1],!(++ne<ke&&X===F)&&(ne<p?C.bl_tree[X*2]+=ne:X!==0?(X!==L&&C.bl_tree[X*2]++,C.bl_tree[P*2]++):ne<=10?C.bl_tree[I*2]++:C.bl_tree[B*2]++,ne=0,L=X,F===0?(ke=138,p=3):X===F?(ke=6,p=3):(ke=7,p=4))}function Q(C,re,ae){var fe,L=-1,X,F=re[1],ne=0,ke=7,p=4;for(F===0&&(ke=138,p=3),fe=0;fe<=ae;fe++)if(X=F,F=re[(fe+1)*2+1],!(++ne<ke&&X===F)){if(ne<p)do Ne(C,X,C.bl_tree);while(--ne!==0);else X!==0?(X!==L&&(Ne(C,X,C.bl_tree),ne--),Ne(C,P,C.bl_tree),Fe(C,ne-3,2)):ne<=10?(Ne(C,I,C.bl_tree),Fe(C,ne-3,3)):(Ne(C,B,C.bl_tree),Fe(C,ne-11,7));ne=0,L=X,F===0?(ke=138,p=3):X===F?(ke=6,p=3):(ke=7,p=4)}}function ye(C){var re;for(te(C,C.dyn_ltree,C.l_desc.max_code),te(C,C.dyn_dtree,C.d_desc.max_code),z(C,C.bl_desc),re=b-1;re>=3&&C.bl_tree[V[re]*2+1]===0;re--);return C.opt_len+=3*(re+1)+5+5+4,re}function Ue(C,re,ae,fe){var L;for(Fe(C,re-257,5),Fe(C,ae-1,5),Fe(C,fe-4,4),L=0;L<fe;L++)Fe(C,C.bl_tree[V[L]*2+1],3);Q(C,C.dyn_ltree,re-1),Q(C,C.dyn_dtree,ae-1)}function He(C){var re=4093624447,ae;for(ae=0;ae<=31;ae++,re>>>=1)if(re&1&&C.dyn_ltree[ae*2]!==0)return r;if(C.dyn_ltree[18]!==0||C.dyn_ltree[20]!==0||C.dyn_ltree[26]!==0)return n;for(ae=32;ae<d;ae++)if(C.dyn_ltree[ae*2]!==0)return n;return r}var _e=!1;function Qe(C){_e||(ve(),_e=!0),C.l_desc=new Le(C.dyn_ltree,we),C.d_desc=new Le(C.dyn_dtree,me),C.bl_desc=new Le(C.bl_tree,Te),C.bi_buf=0,C.bi_valid=0,Oe(C)}function Et(C,re,ae,fe){Fe(C,(o<<1)+(fe?1:0),3),E(C,re,ae)}function wt(C){Fe(C,s<<1,3),Ne(C,R,U),De(C)}function St(C,re,ae,fe){var L,X,F=0;C.level>0?(C.strm.data_type===i&&(C.strm.data_type=He(C)),z(C,C.l_desc),z(C,C.d_desc),F=ye(C),L=C.opt_len+3+7>>>3,X=C.static_len+3+7>>>3,X<=L&&(L=X)):L=X=ae+5,ae+4<=L&&re!==-1?Et(C,re,ae,fe):C.strategy===e||X===L?(Fe(C,(s<<1)+(fe?1:0),3),D(C,U,ee)):(Fe(C,(u<<1)+(fe?1:0),3),Ue(C,C.l_desc.max_code+1,C.d_desc.max_code+1,F+1),D(C,C.dyn_ltree,C.dyn_dtree)),Oe(C),fe&&gt(C)}function tr(C,re,ae){return C.pending_buf[C.d_buf+C.last_lit*2]=re>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=re&255,C.pending_buf[C.l_buf+C.last_lit]=ae&255,C.last_lit++,re===0?C.dyn_ltree[ae*2]++:(C.matches++,re--,C.dyn_ltree[($[ae]+d+1)*2]++,C.dyn_dtree[Ge(re)*2]++),C.last_lit===C.lit_bufsize-1}return _n._tr_init=Qe,_n._tr_stored_block=Et,_n._tr_flush_block=St,_n._tr_tally=tr,_n._tr_align=wt,_n}var pu,dl;function Sd(){if(dl)return pu;dl=1;function t(e,r,n,i){for(var a=e&65535|0,o=e>>>16&65535|0,s=0;n!==0;){s=n>2e3?2e3:n,n-=s;do a=a+r[i++]|0,o=o+a|0;while(--s);a%=65521,o%=65521}return a|o<<16|0}return pu=t,pu}var gu,vl;function Ad(){if(vl)return gu;vl=1;function t(){for(var n,i=[],a=0;a<256;a++){n=a;for(var o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;i[a]=n}return i}var e=t();function r(n,i,a,o){var s=e,u=o+a;n^=-1;for(var f=o;f<u;f++)n=n>>>8^s[(n^i[f])&255];return n^-1}return gu=r,gu}var yu,pl;function _f(){return pl||(pl=1,yu={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"}),yu}var gl;function L1(){if(gl)return Rr;gl=1;var t=Kn(),e=M1(),r=Sd(),n=Ad(),i=_f(),a=0,o=1,s=3,u=4,f=5,l=0,h=1,d=-2,v=-3,g=-5,b=-1,w=1,x=2,T=3,A=4,R=0,P=2,I=8,B=9,j=15,W=8,N=29,V=256,Z=V+1+N,U=30,ee=19,Y=2*Z+1,$=15,J=3,ce=258,de=ce+J+1,we=32,me=42,Te=69,Le=73,Ge=91,Xe=103,Fe=113,Ne=666,le=1,De=2,xe=3,Re=4,ve=3;function Oe(p,H){return p.msg=i[H],H}function gt(p){return(p<<1)-(p>4?9:0)}function E(p){for(var H=p.length;--H>=0;)p[H]=0}function y(p){var H=p.state,K=H.pending;K>p.avail_out&&(K=p.avail_out),K!==0&&(t.arraySet(p.output,H.pending_buf,H.pending_out,K,p.next_out),p.next_out+=K,H.pending_out+=K,p.total_out+=K,p.avail_out-=K,H.pending-=K,H.pending===0&&(H.pending_out=0))}function m(p,H){e._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,H),p.block_start=p.strstart,y(p.strm)}function D(p,H){p.pending_buf[p.pending++]=H}function z(p,H){p.pending_buf[p.pending++]=H>>>8&255,p.pending_buf[p.pending++]=H&255}function te(p,H,K,S){var M=p.avail_in;return M>S&&(M=S),M===0?0:(p.avail_in-=M,t.arraySet(H,p.input,p.next_in,M,K),p.state.wrap===1?p.adler=r(p.adler,H,M,K):p.state.wrap===2&&(p.adler=n(p.adler,H,M,K)),p.next_in+=M,p.total_in+=M,M)}function Q(p,H){var K=p.max_chain_length,S=p.strstart,M,G,Ae=p.prev_length,pe=p.nice_match,ge=p.strstart>p.w_size-de?p.strstart-(p.w_size-de):0,ut=p.window,rn=p.w_mask,Ot=p.prev,lt=p.strstart+ce,zt=ut[S+Ae-1],Qt=ut[S+Ae];p.prev_length>=p.good_match&&(K>>=2),pe>p.lookahead&&(pe=p.lookahead);do if(M=H,!(ut[M+Ae]!==Qt||ut[M+Ae-1]!==zt||ut[M]!==ut[S]||ut[++M]!==ut[S+1])){S+=2,M++;do;while(ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&S<lt);if(G=ce-(lt-S),S=lt-ce,G>Ae){if(p.match_start=H,Ae=G,G>=pe)break;zt=ut[S+Ae-1],Qt=ut[S+Ae]}}while((H=Ot[H&rn])>ge&&--K!==0);return Ae<=p.lookahead?Ae:p.lookahead}function ye(p){var H=p.w_size,K,S,M,G,Ae;do{if(G=p.window_size-p.lookahead-p.strstart,p.strstart>=H+(H-de)){t.arraySet(p.window,p.window,H,H,0),p.match_start-=H,p.strstart-=H,p.block_start-=H,S=p.hash_size,K=S;do M=p.head[--K],p.head[K]=M>=H?M-H:0;while(--S);S=H,K=S;do M=p.prev[--K],p.prev[K]=M>=H?M-H:0;while(--S);G+=H}if(p.strm.avail_in===0)break;if(S=te(p.strm,p.window,p.strstart+p.lookahead,G),p.lookahead+=S,p.lookahead+p.insert>=J)for(Ae=p.strstart-p.insert,p.ins_h=p.window[Ae],p.ins_h=(p.ins_h<<p.hash_shift^p.window[Ae+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[Ae+J-1])&p.hash_mask,p.prev[Ae&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=Ae,Ae++,p.insert--,!(p.lookahead+p.insert<J)););}while(p.lookahead<de&&p.strm.avail_in!==0)}function Ue(p,H){var K=65535;for(K>p.pending_buf_size-5&&(K=p.pending_buf_size-5);;){if(p.lookahead<=1){if(ye(p),p.lookahead===0&&H===a)return le;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var S=p.block_start+K;if((p.strstart===0||p.strstart>=S)&&(p.lookahead=p.strstart-S,p.strstart=S,m(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-de&&(m(p,!1),p.strm.avail_out===0))return le}return p.insert=0,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):(p.strstart>p.block_start&&(m(p,!1),p.strm.avail_out===0),le)}function He(p,H){for(var K,S;;){if(p.lookahead<de){if(ye(p),p.lookahead<de&&H===a)return le;if(p.lookahead===0)break}if(K=0,p.lookahead>=J&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+J-1])&p.hash_mask,K=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),K!==0&&p.strstart-K<=p.w_size-de&&(p.match_length=Q(p,K)),p.match_length>=J)if(S=e._tr_tally(p,p.strstart-p.match_start,p.match_length-J),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=J){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+J-1])&p.hash_mask,K=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else S=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(S&&(m(p,!1),p.strm.avail_out===0))return le}return p.insert=p.strstart<J-1?p.strstart:J-1,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?le:De}function _e(p,H){for(var K,S,M;;){if(p.lookahead<de){if(ye(p),p.lookahead<de&&H===a)return le;if(p.lookahead===0)break}if(K=0,p.lookahead>=J&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+J-1])&p.hash_mask,K=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=J-1,K!==0&&p.prev_length<p.max_lazy_match&&p.strstart-K<=p.w_size-de&&(p.match_length=Q(p,K),p.match_length<=5&&(p.strategy===w||p.match_length===J&&p.strstart-p.match_start>4096)&&(p.match_length=J-1)),p.prev_length>=J&&p.match_length<=p.prev_length){M=p.strstart+p.lookahead-J,S=e._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-J),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=M&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+J-1])&p.hash_mask,K=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=J-1,p.strstart++,S&&(m(p,!1),p.strm.avail_out===0))return le}else if(p.match_available){if(S=e._tr_tally(p,0,p.window[p.strstart-1]),S&&m(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return le}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(S=e._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<J-1?p.strstart:J-1,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?le:De}function Qe(p,H){for(var K,S,M,G,Ae=p.window;;){if(p.lookahead<=ce){if(ye(p),p.lookahead<=ce&&H===a)return le;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=J&&p.strstart>0&&(M=p.strstart-1,S=Ae[M],S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M])){G=p.strstart+ce;do;while(S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&M<G);p.match_length=ce-(G-M),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=J?(K=e._tr_tally(p,1,p.match_length-J),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(K=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),K&&(m(p,!1),p.strm.avail_out===0))return le}return p.insert=0,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?le:De}function Et(p,H){for(var K;;){if(p.lookahead===0&&(ye(p),p.lookahead===0)){if(H===a)return le;break}if(p.match_length=0,K=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,K&&(m(p,!1),p.strm.avail_out===0))return le}return p.insert=0,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?le:De}function wt(p,H,K,S,M){this.good_length=p,this.max_lazy=H,this.nice_length=K,this.max_chain=S,this.func=M}var St;St=[new wt(0,0,0,0,Ue),new wt(4,4,8,4,He),new wt(4,5,16,8,He),new wt(4,6,32,32,He),new wt(4,4,16,16,_e),new wt(8,16,32,32,_e),new wt(8,16,128,128,_e),new wt(8,32,128,256,_e),new wt(32,128,258,1024,_e),new wt(32,258,258,4096,_e)];function tr(p){p.window_size=2*p.w_size,E(p.head),p.max_lazy_match=St[p.level].max_lazy,p.good_match=St[p.level].good_length,p.nice_match=St[p.level].nice_length,p.max_chain_length=St[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=J-1,p.match_available=0,p.ins_h=0}function C(){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=I,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 t.Buf16(Y*2),this.dyn_dtree=new t.Buf16((2*U+1)*2),this.bl_tree=new t.Buf16((2*ee+1)*2),E(this.dyn_ltree),E(this.dyn_dtree),E(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16($+1),this.heap=new t.Buf16(2*Z+1),E(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*Z+1),E(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 re(p){var H;return!p||!p.state?Oe(p,d):(p.total_in=p.total_out=0,p.data_type=P,H=p.state,H.pending=0,H.pending_out=0,H.wrap<0&&(H.wrap=-H.wrap),H.status=H.wrap?me:Fe,p.adler=H.wrap===2?0:1,H.last_flush=a,e._tr_init(H),l)}function ae(p){var H=re(p);return H===l&&tr(p.state),H}function fe(p,H){return!p||!p.state||p.state.wrap!==2?d:(p.state.gzhead=H,l)}function L(p,H,K,S,M,G){if(!p)return d;var Ae=1;if(H===b&&(H=6),S<0?(Ae=0,S=-S):S>15&&(Ae=2,S-=16),M<1||M>B||K!==I||S<8||S>15||H<0||H>9||G<0||G>A)return Oe(p,d);S===8&&(S=9);var pe=new C;return p.state=pe,pe.strm=p,pe.wrap=Ae,pe.gzhead=null,pe.w_bits=S,pe.w_size=1<<pe.w_bits,pe.w_mask=pe.w_size-1,pe.hash_bits=M+7,pe.hash_size=1<<pe.hash_bits,pe.hash_mask=pe.hash_size-1,pe.hash_shift=~~((pe.hash_bits+J-1)/J),pe.window=new t.Buf8(pe.w_size*2),pe.head=new t.Buf16(pe.hash_size),pe.prev=new t.Buf16(pe.w_size),pe.lit_bufsize=1<<M+6,pe.pending_buf_size=pe.lit_bufsize*4,pe.pending_buf=new t.Buf8(pe.pending_buf_size),pe.d_buf=1*pe.lit_bufsize,pe.l_buf=3*pe.lit_bufsize,pe.level=H,pe.strategy=G,pe.method=K,ae(p)}function X(p,H){return L(p,H,I,j,W,R)}function F(p,H){var K,S,M,G;if(!p||!p.state||H>f||H<0)return p?Oe(p,d):d;if(S=p.state,!p.output||!p.input&&p.avail_in!==0||S.status===Ne&&H!==u)return Oe(p,p.avail_out===0?g:d);if(S.strm=p,K=S.last_flush,S.last_flush=H,S.status===me)if(S.wrap===2)p.adler=0,D(S,31),D(S,139),D(S,8),S.gzhead?(D(S,(S.gzhead.text?1:0)+(S.gzhead.hcrc?2:0)+(S.gzhead.extra?4:0)+(S.gzhead.name?8:0)+(S.gzhead.comment?16:0)),D(S,S.gzhead.time&255),D(S,S.gzhead.time>>8&255),D(S,S.gzhead.time>>16&255),D(S,S.gzhead.time>>24&255),D(S,S.level===9?2:S.strategy>=x||S.level<2?4:0),D(S,S.gzhead.os&255),S.gzhead.extra&&S.gzhead.extra.length&&(D(S,S.gzhead.extra.length&255),D(S,S.gzhead.extra.length>>8&255)),S.gzhead.hcrc&&(p.adler=n(p.adler,S.pending_buf,S.pending,0)),S.gzindex=0,S.status=Te):(D(S,0),D(S,0),D(S,0),D(S,0),D(S,0),D(S,S.level===9?2:S.strategy>=x||S.level<2?4:0),D(S,ve),S.status=Fe);else{var Ae=I+(S.w_bits-8<<4)<<8,pe=-1;S.strategy>=x||S.level<2?pe=0:S.level<6?pe=1:S.level===6?pe=2:pe=3,Ae|=pe<<6,S.strstart!==0&&(Ae|=we),Ae+=31-Ae%31,S.status=Fe,z(S,Ae),S.strstart!==0&&(z(S,p.adler>>>16),z(S,p.adler&65535)),p.adler=1}if(S.status===Te)if(S.gzhead.extra){for(M=S.pending;S.gzindex<(S.gzhead.extra.length&65535)&&!(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),y(p),M=S.pending,S.pending===S.pending_buf_size));)D(S,S.gzhead.extra[S.gzindex]&255),S.gzindex++;S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),S.gzindex===S.gzhead.extra.length&&(S.gzindex=0,S.status=Le)}else S.status=Le;if(S.status===Le)if(S.gzhead.name){M=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),y(p),M=S.pending,S.pending===S.pending_buf_size)){G=1;break}S.gzindex<S.gzhead.name.length?G=S.gzhead.name.charCodeAt(S.gzindex++)&255:G=0,D(S,G)}while(G!==0);S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),G===0&&(S.gzindex=0,S.status=Ge)}else S.status=Ge;if(S.status===Ge)if(S.gzhead.comment){M=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),y(p),M=S.pending,S.pending===S.pending_buf_size)){G=1;break}S.gzindex<S.gzhead.comment.length?G=S.gzhead.comment.charCodeAt(S.gzindex++)&255:G=0,D(S,G)}while(G!==0);S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),G===0&&(S.status=Xe)}else S.status=Xe;if(S.status===Xe&&(S.gzhead.hcrc?(S.pending+2>S.pending_buf_size&&y(p),S.pending+2<=S.pending_buf_size&&(D(S,p.adler&255),D(S,p.adler>>8&255),p.adler=0,S.status=Fe)):S.status=Fe),S.pending!==0){if(y(p),p.avail_out===0)return S.last_flush=-1,l}else if(p.avail_in===0&&gt(H)<=gt(K)&&H!==u)return Oe(p,g);if(S.status===Ne&&p.avail_in!==0)return Oe(p,g);if(p.avail_in!==0||S.lookahead!==0||H!==a&&S.status!==Ne){var ge=S.strategy===x?Et(S,H):S.strategy===T?Qe(S,H):St[S.level].func(S,H);if((ge===xe||ge===Re)&&(S.status=Ne),ge===le||ge===xe)return p.avail_out===0&&(S.last_flush=-1),l;if(ge===De&&(H===o?e._tr_align(S):H!==f&&(e._tr_stored_block(S,0,0,!1),H===s&&(E(S.head),S.lookahead===0&&(S.strstart=0,S.block_start=0,S.insert=0))),y(p),p.avail_out===0))return S.last_flush=-1,l}return H!==u?l:S.wrap<=0?h:(S.wrap===2?(D(S,p.adler&255),D(S,p.adler>>8&255),D(S,p.adler>>16&255),D(S,p.adler>>24&255),D(S,p.total_in&255),D(S,p.total_in>>8&255),D(S,p.total_in>>16&255),D(S,p.total_in>>24&255)):(z(S,p.adler>>>16),z(S,p.adler&65535)),y(p),S.wrap>0&&(S.wrap=-S.wrap),S.pending!==0?l:h)}function ne(p){var H;return!p||!p.state?d:(H=p.state.status,H!==me&&H!==Te&&H!==Le&&H!==Ge&&H!==Xe&&H!==Fe&&H!==Ne?Oe(p,d):(p.state=null,H===Fe?Oe(p,v):l))}function ke(p,H){var K=H.length,S,M,G,Ae,pe,ge,ut,rn;if(!p||!p.state||(S=p.state,Ae=S.wrap,Ae===2||Ae===1&&S.status!==me||S.lookahead))return d;for(Ae===1&&(p.adler=r(p.adler,H,K,0)),S.wrap=0,K>=S.w_size&&(Ae===0&&(E(S.head),S.strstart=0,S.block_start=0,S.insert=0),rn=new t.Buf8(S.w_size),t.arraySet(rn,H,K-S.w_size,S.w_size,0),H=rn,K=S.w_size),pe=p.avail_in,ge=p.next_in,ut=p.input,p.avail_in=K,p.next_in=0,p.input=H,ye(S);S.lookahead>=J;){M=S.strstart,G=S.lookahead-(J-1);do S.ins_h=(S.ins_h<<S.hash_shift^S.window[M+J-1])&S.hash_mask,S.prev[M&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=M,M++;while(--G);S.strstart=M,S.lookahead=J-1,ye(S)}return S.strstart+=S.lookahead,S.block_start=S.strstart,S.insert=S.lookahead,S.lookahead=0,S.match_length=S.prev_length=J-1,S.match_available=0,p.next_in=ge,p.input=ut,p.avail_in=pe,S.wrap=Ae,l}return Rr.deflateInit=X,Rr.deflateInit2=L,Rr.deflateReset=ae,Rr.deflateResetKeep=re,Rr.deflateSetHeader=fe,Rr.deflate=F,Rr.deflateEnd=ne,Rr.deflateSetDictionary=ke,Rr.deflateInfo="pako deflate (from Nodeca project)",Rr}var $n={},yl;function Cd(){if(yl)return $n;yl=1;var t=Kn(),e=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var n=new t.Buf8(256),i=0;i<256;i++)n[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;n[254]=n[254]=1,$n.string2buf=function(o){var s,u,f,l,h,d=o.length,v=0;for(l=0;l<d;l++)u=o.charCodeAt(l),(u&64512)===55296&&l+1<d&&(f=o.charCodeAt(l+1),(f&64512)===56320&&(u=65536+(u-55296<<10)+(f-56320),l++)),v+=u<128?1:u<2048?2:u<65536?3:4;for(s=new t.Buf8(v),h=0,l=0;h<v;l++)u=o.charCodeAt(l),(u&64512)===55296&&l+1<d&&(f=o.charCodeAt(l+1),(f&64512)===56320&&(u=65536+(u-55296<<10)+(f-56320),l++)),u<128?s[h++]=u:u<2048?(s[h++]=192|u>>>6,s[h++]=128|u&63):u<65536?(s[h++]=224|u>>>12,s[h++]=128|u>>>6&63,s[h++]=128|u&63):(s[h++]=240|u>>>18,s[h++]=128|u>>>12&63,s[h++]=128|u>>>6&63,s[h++]=128|u&63);return s};function a(o,s){if(s<65534&&(o.subarray&&r||!o.subarray&&e))return String.fromCharCode.apply(null,t.shrinkBuf(o,s));for(var u="",f=0;f<s;f++)u+=String.fromCharCode(o[f]);return u}return $n.buf2binstring=function(o){return a(o,o.length)},$n.binstring2buf=function(o){for(var s=new t.Buf8(o.length),u=0,f=s.length;u<f;u++)s[u]=o.charCodeAt(u);return s},$n.buf2string=function(o,s){var u,f,l,h,d=s||o.length,v=new Array(d*2);for(f=0,u=0;u<d;){if(l=o[u++],l<128){v[f++]=l;continue}if(h=n[l],h>4){v[f++]=65533,u+=h-1;continue}for(l&=h===2?31:h===3?15:7;h>1&&u<d;)l=l<<6|o[u++]&63,h--;if(h>1){v[f++]=65533;continue}l<65536?v[f++]=l:(l-=65536,v[f++]=55296|l>>10&1023,v[f++]=56320|l&1023)}return a(v,f)},$n.utf8border=function(o,s){var u;for(s=s||o.length,s>o.length&&(s=o.length),u=s-1;u>=0&&(o[u]&192)===128;)u--;return u<0||u===0?s:u+n[o[u]]>s?u:s},$n}var mu,ml;function Ed(){if(ml)return mu;ml=1;function t(){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}return mu=t,mu}var bl;function N1(){if(bl)return Di;bl=1;var t=L1(),e=Kn(),r=Cd(),n=_f(),i=Ed(),a=Object.prototype.toString,o=0,s=4,u=0,f=1,l=2,h=-1,d=0,v=8;function g(T){if(!(this instanceof g))return new g(T);this.options=e.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},T||{});var A=this.options;A.raw&&A.windowBits>0?A.windowBits=-A.windowBits:A.gzip&&A.windowBits>0&&A.windowBits<16&&(A.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var R=t.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(R!==u)throw new Error(n[R]);if(A.header&&t.deflateSetHeader(this.strm,A.header),A.dictionary){var P;if(typeof A.dictionary=="string"?P=r.string2buf(A.dictionary):a.call(A.dictionary)==="[object ArrayBuffer]"?P=new Uint8Array(A.dictionary):P=A.dictionary,R=t.deflateSetDictionary(this.strm,P),R!==u)throw new Error(n[R]);this._dict_set=!0}}g.prototype.push=function(T,A){var R=this.strm,P=this.options.chunkSize,I,B;if(this.ended)return!1;B=A===~~A?A:A===!0?s:o,typeof T=="string"?R.input=r.string2buf(T):a.call(T)==="[object ArrayBuffer]"?R.input=new Uint8Array(T):R.input=T,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new e.Buf8(P),R.next_out=0,R.avail_out=P),I=t.deflate(R,B),I!==f&&I!==u)return this.onEnd(I),this.ended=!0,!1;(R.avail_out===0||R.avail_in===0&&(B===s||B===l))&&(this.options.to==="string"?this.onData(r.buf2binstring(e.shrinkBuf(R.output,R.next_out))):this.onData(e.shrinkBuf(R.output,R.next_out)))}while((R.avail_in>0||R.avail_out===0)&&I!==f);return B===s?(I=t.deflateEnd(this.strm),this.onEnd(I),this.ended=!0,I===u):(B===l&&(this.onEnd(u),R.avail_out=0),!0)},g.prototype.onData=function(T){this.chunks.push(T)},g.prototype.onEnd=function(T){T===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg};function b(T,A){var R=new g(A);if(R.push(T,!0),R.err)throw R.msg||n[R.err];return R.result}function w(T,A){return A=A||{},A.raw=!0,b(T,A)}function x(T,A){return A=A||{},A.gzip=!0,b(T,A)}return Di.Deflate=g,Di.deflate=b,Di.deflateRaw=w,Di.gzip=x,Di}var Ti={},mr={},bu,wl;function U1(){if(wl)return bu;wl=1;var t=30,e=12;return bu=function(n,i){var a,o,s,u,f,l,h,d,v,g,b,w,x,T,A,R,P,I,B,j,W,N,V,Z,U;a=n.state,o=n.next_in,Z=n.input,s=o+(n.avail_in-5),u=n.next_out,U=n.output,f=u-(i-n.avail_out),l=u+(n.avail_out-257),h=a.dmax,d=a.wsize,v=a.whave,g=a.wnext,b=a.window,w=a.hold,x=a.bits,T=a.lencode,A=a.distcode,R=(1<<a.lenbits)-1,P=(1<<a.distbits)-1;e:do{x<15&&(w+=Z[o++]<<x,x+=8,w+=Z[o++]<<x,x+=8),I=T[w&R];t:for(;;){if(B=I>>>24,w>>>=B,x-=B,B=I>>>16&255,B===0)U[u++]=I&65535;else if(B&16){j=I&65535,B&=15,B&&(x<B&&(w+=Z[o++]<<x,x+=8),j+=w&(1<<B)-1,w>>>=B,x-=B),x<15&&(w+=Z[o++]<<x,x+=8,w+=Z[o++]<<x,x+=8),I=A[w&P];r:for(;;){if(B=I>>>24,w>>>=B,x-=B,B=I>>>16&255,B&16){if(W=I&65535,B&=15,x<B&&(w+=Z[o++]<<x,x+=8,x<B&&(w+=Z[o++]<<x,x+=8)),W+=w&(1<<B)-1,W>h){n.msg="invalid distance too far back",a.mode=t;break e}if(w>>>=B,x-=B,B=u-f,W>B){if(B=W-B,B>v&&a.sane){n.msg="invalid distance too far back",a.mode=t;break e}if(N=0,V=b,g===0){if(N+=d-B,B<j){j-=B;do U[u++]=b[N++];while(--B);N=u-W,V=U}}else if(g<B){if(N+=d+g-B,B-=g,B<j){j-=B;do U[u++]=b[N++];while(--B);if(N=0,g<j){B=g,j-=B;do U[u++]=b[N++];while(--B);N=u-W,V=U}}}else if(N+=g-B,B<j){j-=B;do U[u++]=b[N++];while(--B);N=u-W,V=U}for(;j>2;)U[u++]=V[N++],U[u++]=V[N++],U[u++]=V[N++],j-=3;j&&(U[u++]=V[N++],j>1&&(U[u++]=V[N++]))}else{N=u-W;do U[u++]=U[N++],U[u++]=U[N++],U[u++]=U[N++],j-=3;while(j>2);j&&(U[u++]=U[N++],j>1&&(U[u++]=U[N++]))}}else if((B&64)===0){I=A[(I&65535)+(w&(1<<B)-1)];continue r}else{n.msg="invalid distance code",a.mode=t;break e}break}}else if((B&64)===0){I=T[(I&65535)+(w&(1<<B)-1)];continue t}else if(B&32){a.mode=e;break e}else{n.msg="invalid literal/length code",a.mode=t;break e}break}}while(o<s&&u<l);j=x>>3,o-=j,x-=j<<3,w&=(1<<x)-1,n.next_in=o,n.next_out=u,n.avail_in=o<s?5+(s-o):5-(o-s),n.avail_out=u<l?257+(l-u):257-(u-l),a.hold=w,a.bits=x},bu}var wu,xl;function z1(){if(xl)return wu;xl=1;var t=Kn(),e=15,r=852,n=592,i=0,a=1,o=2,s=[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],u=[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],f=[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],l=[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];return wu=function(d,v,g,b,w,x,T,A){var R=A.bits,P=0,I=0,B=0,j=0,W=0,N=0,V=0,Z=0,U=0,ee=0,Y,$,J,ce,de,we=null,me=0,Te,Le=new t.Buf16(e+1),Ge=new t.Buf16(e+1),Xe=null,Fe=0,Ne,le,De;for(P=0;P<=e;P++)Le[P]=0;for(I=0;I<b;I++)Le[v[g+I]]++;for(W=R,j=e;j>=1&&Le[j]===0;j--);if(W>j&&(W=j),j===0)return w[x++]=1<<24|64<<16|0,w[x++]=1<<24|64<<16|0,A.bits=1,0;for(B=1;B<j&&Le[B]===0;B++);for(W<B&&(W=B),Z=1,P=1;P<=e;P++)if(Z<<=1,Z-=Le[P],Z<0)return-1;if(Z>0&&(d===i||j!==1))return-1;for(Ge[1]=0,P=1;P<e;P++)Ge[P+1]=Ge[P]+Le[P];for(I=0;I<b;I++)v[g+I]!==0&&(T[Ge[v[g+I]]++]=I);if(d===i?(we=Xe=T,Te=19):d===a?(we=s,me-=257,Xe=u,Fe-=257,Te=256):(we=f,Xe=l,Te=-1),ee=0,I=0,P=B,de=x,N=W,V=0,J=-1,U=1<<W,ce=U-1,d===a&&U>r||d===o&&U>n)return 1;for(;;){Ne=P-V,T[I]<Te?(le=0,De=T[I]):T[I]>Te?(le=Xe[Fe+T[I]],De=we[me+T[I]]):(le=96,De=0),Y=1<<P-V,$=1<<N,B=$;do $-=Y,w[de+(ee>>V)+$]=Ne<<24|le<<16|De|0;while($!==0);for(Y=1<<P-1;ee&Y;)Y>>=1;if(Y!==0?(ee&=Y-1,ee+=Y):ee=0,I++,--Le[P]===0){if(P===j)break;P=v[g+T[I]]}if(P>W&&(ee&ce)!==J){for(V===0&&(V=W),de+=B,N=P-V,Z=1<<N;N+V<j&&(Z-=Le[N+V],!(Z<=0));)N++,Z<<=1;if(U+=1<<N,d===a&&U>r||d===o&&U>n)return 1;J=ee&ce,w[J]=W<<24|N<<16|de-x|0}}return ee!==0&&(w[de+ee]=P-V<<24|64<<16|0),A.bits=W,0},wu}var Fl;function j1(){if(Fl)return mr;Fl=1;var t=Kn(),e=Sd(),r=Ad(),n=U1(),i=z1(),a=0,o=1,s=2,u=4,f=5,l=6,h=0,d=1,v=2,g=-2,b=-3,w=-4,x=-5,T=8,A=1,R=2,P=3,I=4,B=5,j=6,W=7,N=8,V=9,Z=10,U=11,ee=12,Y=13,$=14,J=15,ce=16,de=17,we=18,me=19,Te=20,Le=21,Ge=22,Xe=23,Fe=24,Ne=25,le=26,De=27,xe=28,Re=29,ve=30,Oe=31,gt=32,E=852,y=592,m=15,D=m;function z(L){return(L>>>24&255)+(L>>>8&65280)+((L&65280)<<8)+((L&255)<<24)}function te(){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 t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Q(L){var X;return!L||!L.state?g:(X=L.state,L.total_in=L.total_out=X.total=0,L.msg="",X.wrap&&(L.adler=X.wrap&1),X.mode=A,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new t.Buf32(E),X.distcode=X.distdyn=new t.Buf32(y),X.sane=1,X.back=-1,h)}function ye(L){var X;return!L||!L.state?g:(X=L.state,X.wsize=0,X.whave=0,X.wnext=0,Q(L))}function Ue(L,X){var F,ne;return!L||!L.state||(ne=L.state,X<0?(F=0,X=-X):(F=(X>>4)+1,X<48&&(X&=15)),X&&(X<8||X>15))?g:(ne.window!==null&&ne.wbits!==X&&(ne.window=null),ne.wrap=F,ne.wbits=X,ye(L))}function He(L,X){var F,ne;return L?(ne=new te,L.state=ne,ne.window=null,F=Ue(L,X),F!==h&&(L.state=null),F):g}function _e(L){return He(L,D)}var Qe=!0,Et,wt;function St(L){if(Qe){var X;for(Et=new t.Buf32(512),wt=new t.Buf32(32),X=0;X<144;)L.lens[X++]=8;for(;X<256;)L.lens[X++]=9;for(;X<280;)L.lens[X++]=7;for(;X<288;)L.lens[X++]=8;for(i(o,L.lens,0,288,Et,0,L.work,{bits:9}),X=0;X<32;)L.lens[X++]=5;i(s,L.lens,0,32,wt,0,L.work,{bits:5}),Qe=!1}L.lencode=Et,L.lenbits=9,L.distcode=wt,L.distbits=5}function tr(L,X,F,ne){var ke,p=L.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new t.Buf8(p.wsize)),ne>=p.wsize?(t.arraySet(p.window,X,F-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(ke=p.wsize-p.wnext,ke>ne&&(ke=ne),t.arraySet(p.window,X,F-ne,ke,p.wnext),ne-=ke,ne?(t.arraySet(p.window,X,F-ne,ne,0),p.wnext=ne,p.whave=p.wsize):(p.wnext+=ke,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=ke))),0}function C(L,X){var F,ne,ke,p,H,K,S,M,G,Ae,pe,ge,ut,rn,Ot=0,lt,zt,Qt,ar,wo,xo,Bt,yr,Kt=new t.Buf8(4),nn,zr,cl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return g;F=L.state,F.mode===ee&&(F.mode=Y),H=L.next_out,ke=L.output,S=L.avail_out,p=L.next_in,ne=L.input,K=L.avail_in,M=F.hold,G=F.bits,Ae=K,pe=S,yr=h;e:for(;;)switch(F.mode){case A:if(F.wrap===0){F.mode=Y;break}for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(F.wrap&2&&M===35615){F.check=0,Kt[0]=M&255,Kt[1]=M>>>8&255,F.check=r(F.check,Kt,2,0),M=0,G=0,F.mode=R;break}if(F.flags=0,F.head&&(F.head.done=!1),!(F.wrap&1)||(((M&255)<<8)+(M>>8))%31){L.msg="incorrect header check",F.mode=ve;break}if((M&15)!==T){L.msg="unknown compression method",F.mode=ve;break}if(M>>>=4,G-=4,Bt=(M&15)+8,F.wbits===0)F.wbits=Bt;else if(Bt>F.wbits){L.msg="invalid window size",F.mode=ve;break}F.dmax=1<<Bt,L.adler=F.check=1,F.mode=M&512?Z:ee,M=0,G=0;break;case R:for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(F.flags=M,(F.flags&255)!==T){L.msg="unknown compression method",F.mode=ve;break}if(F.flags&57344){L.msg="unknown header flags set",F.mode=ve;break}F.head&&(F.head.text=M>>8&1),F.flags&512&&(Kt[0]=M&255,Kt[1]=M>>>8&255,F.check=r(F.check,Kt,2,0)),M=0,G=0,F.mode=P;case P:for(;G<32;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.head&&(F.head.time=M),F.flags&512&&(Kt[0]=M&255,Kt[1]=M>>>8&255,Kt[2]=M>>>16&255,Kt[3]=M>>>24&255,F.check=r(F.check,Kt,4,0)),M=0,G=0,F.mode=I;case I:for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.head&&(F.head.xflags=M&255,F.head.os=M>>8),F.flags&512&&(Kt[0]=M&255,Kt[1]=M>>>8&255,F.check=r(F.check,Kt,2,0)),M=0,G=0,F.mode=B;case B:if(F.flags&1024){for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.length=M,F.head&&(F.head.extra_len=M),F.flags&512&&(Kt[0]=M&255,Kt[1]=M>>>8&255,F.check=r(F.check,Kt,2,0)),M=0,G=0}else F.head&&(F.head.extra=null);F.mode=j;case j:if(F.flags&1024&&(ge=F.length,ge>K&&(ge=K),ge&&(F.head&&(Bt=F.head.extra_len-F.length,F.head.extra||(F.head.extra=new Array(F.head.extra_len)),t.arraySet(F.head.extra,ne,p,ge,Bt)),F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,F.length-=ge),F.length))break e;F.length=0,F.mode=W;case W:if(F.flags&2048){if(K===0)break e;ge=0;do Bt=ne[p+ge++],F.head&&Bt&&F.length<65536&&(F.head.name+=String.fromCharCode(Bt));while(Bt&&ge<K);if(F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,Bt)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=N;case N:if(F.flags&4096){if(K===0)break e;ge=0;do Bt=ne[p+ge++],F.head&&Bt&&F.length<65536&&(F.head.comment+=String.fromCharCode(Bt));while(Bt&&ge<K);if(F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,Bt)break e}else F.head&&(F.head.comment=null);F.mode=V;case V:if(F.flags&512){for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(M!==(F.check&65535)){L.msg="header crc mismatch",F.mode=ve;break}M=0,G=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),L.adler=F.check=0,F.mode=ee;break;case Z:for(;G<32;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}L.adler=F.check=z(M),M=0,G=0,F.mode=U;case U:if(F.havedict===0)return L.next_out=H,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=M,F.bits=G,v;L.adler=F.check=1,F.mode=ee;case ee:if(X===f||X===l)break e;case Y:if(F.last){M>>>=G&7,G-=G&7,F.mode=De;break}for(;G<3;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}switch(F.last=M&1,M>>>=1,G-=1,M&3){case 0:F.mode=$;break;case 1:if(St(F),F.mode=Te,X===l){M>>>=2,G-=2;break e}break;case 2:F.mode=de;break;case 3:L.msg="invalid block type",F.mode=ve}M>>>=2,G-=2;break;case $:for(M>>>=G&7,G-=G&7;G<32;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if((M&65535)!==(M>>>16^65535)){L.msg="invalid stored block lengths",F.mode=ve;break}if(F.length=M&65535,M=0,G=0,F.mode=J,X===l)break e;case J:F.mode=ce;case ce:if(ge=F.length,ge){if(ge>K&&(ge=K),ge>S&&(ge=S),ge===0)break e;t.arraySet(ke,ne,p,ge,H),K-=ge,p+=ge,S-=ge,H+=ge,F.length-=ge;break}F.mode=ee;break;case de:for(;G<14;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(F.nlen=(M&31)+257,M>>>=5,G-=5,F.ndist=(M&31)+1,M>>>=5,G-=5,F.ncode=(M&15)+4,M>>>=4,G-=4,F.nlen>286||F.ndist>30){L.msg="too many length or distance symbols",F.mode=ve;break}F.have=0,F.mode=we;case we:for(;F.have<F.ncode;){for(;G<3;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.lens[cl[F.have++]]=M&7,M>>>=3,G-=3}for(;F.have<19;)F.lens[cl[F.have++]]=0;if(F.lencode=F.lendyn,F.lenbits=7,nn={bits:F.lenbits},yr=i(a,F.lens,0,19,F.lencode,0,F.work,nn),F.lenbits=nn.bits,yr){L.msg="invalid code lengths set",F.mode=ve;break}F.have=0,F.mode=me;case me:for(;F.have<F.nlen+F.ndist;){for(;Ot=F.lencode[M&(1<<F.lenbits)-1],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(Qt<16)M>>>=lt,G-=lt,F.lens[F.have++]=Qt;else{if(Qt===16){for(zr=lt+2;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(M>>>=lt,G-=lt,F.have===0){L.msg="invalid bit length repeat",F.mode=ve;break}Bt=F.lens[F.have-1],ge=3+(M&3),M>>>=2,G-=2}else if(Qt===17){for(zr=lt+3;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}M>>>=lt,G-=lt,Bt=0,ge=3+(M&7),M>>>=3,G-=3}else{for(zr=lt+7;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}M>>>=lt,G-=lt,Bt=0,ge=11+(M&127),M>>>=7,G-=7}if(F.have+ge>F.nlen+F.ndist){L.msg="invalid bit length repeat",F.mode=ve;break}for(;ge--;)F.lens[F.have++]=Bt}}if(F.mode===ve)break;if(F.lens[256]===0){L.msg="invalid code -- missing end-of-block",F.mode=ve;break}if(F.lenbits=9,nn={bits:F.lenbits},yr=i(o,F.lens,0,F.nlen,F.lencode,0,F.work,nn),F.lenbits=nn.bits,yr){L.msg="invalid literal/lengths set",F.mode=ve;break}if(F.distbits=6,F.distcode=F.distdyn,nn={bits:F.distbits},yr=i(s,F.lens,F.nlen,F.ndist,F.distcode,0,F.work,nn),F.distbits=nn.bits,yr){L.msg="invalid distances set",F.mode=ve;break}if(F.mode=Te,X===l)break e;case Te:F.mode=Le;case Le:if(K>=6&&S>=258){L.next_out=H,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=M,F.bits=G,n(L,pe),H=L.next_out,ke=L.output,S=L.avail_out,p=L.next_in,ne=L.input,K=L.avail_in,M=F.hold,G=F.bits,F.mode===ee&&(F.back=-1);break}for(F.back=0;Ot=F.lencode[M&(1<<F.lenbits)-1],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(zt&&(zt&240)===0){for(ar=lt,wo=zt,xo=Qt;Ot=F.lencode[xo+((M&(1<<ar+wo)-1)>>ar)],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(ar+lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}M>>>=ar,G-=ar,F.back+=ar}if(M>>>=lt,G-=lt,F.back+=lt,F.length=Qt,zt===0){F.mode=le;break}if(zt&32){F.back=-1,F.mode=ee;break}if(zt&64){L.msg="invalid literal/length code",F.mode=ve;break}F.extra=zt&15,F.mode=Ge;case Ge:if(F.extra){for(zr=F.extra;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.length+=M&(1<<F.extra)-1,M>>>=F.extra,G-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=Xe;case Xe:for(;Ot=F.distcode[M&(1<<F.distbits)-1],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if((zt&240)===0){for(ar=lt,wo=zt,xo=Qt;Ot=F.distcode[xo+((M&(1<<ar+wo)-1)>>ar)],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(ar+lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}M>>>=ar,G-=ar,F.back+=ar}if(M>>>=lt,G-=lt,F.back+=lt,zt&64){L.msg="invalid distance code",F.mode=ve;break}F.offset=Qt,F.extra=zt&15,F.mode=Fe;case Fe:if(F.extra){for(zr=F.extra;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.offset+=M&(1<<F.extra)-1,M>>>=F.extra,G-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){L.msg="invalid distance too far back",F.mode=ve;break}F.mode=Ne;case Ne:if(S===0)break e;if(ge=pe-S,F.offset>ge){if(ge=F.offset-ge,ge>F.whave&&F.sane){L.msg="invalid distance too far back",F.mode=ve;break}ge>F.wnext?(ge-=F.wnext,ut=F.wsize-ge):ut=F.wnext-ge,ge>F.length&&(ge=F.length),rn=F.window}else rn=ke,ut=H-F.offset,ge=F.length;ge>S&&(ge=S),S-=ge,F.length-=ge;do ke[H++]=rn[ut++];while(--ge);F.length===0&&(F.mode=Le);break;case le:if(S===0)break e;ke[H++]=F.length,S--,F.mode=Le;break;case De:if(F.wrap){for(;G<32;){if(K===0)break e;K--,M|=ne[p++]<<G,G+=8}if(pe-=S,L.total_out+=pe,F.total+=pe,pe&&(L.adler=F.check=F.flags?r(F.check,ke,pe,H-pe):e(F.check,ke,pe,H-pe)),pe=S,(F.flags?M:z(M))!==F.check){L.msg="incorrect data check",F.mode=ve;break}M=0,G=0}F.mode=xe;case xe:if(F.wrap&&F.flags){for(;G<32;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(M!==(F.total&4294967295)){L.msg="incorrect length check",F.mode=ve;break}M=0,G=0}F.mode=Re;case Re:yr=d;break e;case ve:yr=b;break e;case Oe:return w;case gt:default:return g}return L.next_out=H,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=M,F.bits=G,(F.wsize||pe!==L.avail_out&&F.mode<ve&&(F.mode<De||X!==u))&&tr(L,L.output,L.next_out,pe-L.avail_out),Ae-=L.avail_in,pe-=L.avail_out,L.total_in+=Ae,L.total_out+=pe,F.total+=pe,F.wrap&&pe&&(L.adler=F.check=F.flags?r(F.check,ke,pe,L.next_out-pe):e(F.check,ke,pe,L.next_out-pe)),L.data_type=F.bits+(F.last?64:0)+(F.mode===ee?128:0)+(F.mode===Te||F.mode===J?256:0),(Ae===0&&pe===0||X===u)&&yr===h&&(yr=x),yr}function re(L){if(!L||!L.state)return g;var X=L.state;return X.window&&(X.window=null),L.state=null,h}function ae(L,X){var F;return!L||!L.state||(F=L.state,(F.wrap&2)===0)?g:(F.head=X,X.done=!1,h)}function fe(L,X){var F=X.length,ne,ke,p;return!L||!L.state||(ne=L.state,ne.wrap!==0&&ne.mode!==U)?g:ne.mode===U&&(ke=1,ke=e(ke,X,F,0),ke!==ne.check)?b:(p=tr(L,X,F,F),p?(ne.mode=Oe,w):(ne.havedict=1,h))}return mr.inflateReset=ye,mr.inflateReset2=Ue,mr.inflateResetKeep=Q,mr.inflateInit=_e,mr.inflateInit2=He,mr.inflate=C,mr.inflateEnd=re,mr.inflateGetHeader=ae,mr.inflateSetDictionary=fe,mr.inflateInfo="pako inflate (from Nodeca project)",mr}var xu,Sl;function Dd(){return Sl||(Sl=1,xu={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}),xu}var Fu,Al;function V1(){if(Al)return Fu;Al=1;function t(){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}return Fu=t,Fu}var Cl;function q1(){if(Cl)return Ti;Cl=1;var t=j1(),e=Kn(),r=Cd(),n=Dd(),i=_f(),a=Ed(),o=V1(),s=Object.prototype.toString;function u(h){if(!(this instanceof u))return new u(h);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},h||{});var d=this.options;d.raw&&d.windowBits>=0&&d.windowBits<16&&(d.windowBits=-d.windowBits,d.windowBits===0&&(d.windowBits=-15)),d.windowBits>=0&&d.windowBits<16&&!(h&&h.windowBits)&&(d.windowBits+=32),d.windowBits>15&&d.windowBits<48&&(d.windowBits&15)===0&&(d.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var v=t.inflateInit2(this.strm,d.windowBits);if(v!==n.Z_OK)throw new Error(i[v]);if(this.header=new o,t.inflateGetHeader(this.strm,this.header),d.dictionary&&(typeof d.dictionary=="string"?d.dictionary=r.string2buf(d.dictionary):s.call(d.dictionary)==="[object ArrayBuffer]"&&(d.dictionary=new Uint8Array(d.dictionary)),d.raw&&(v=t.inflateSetDictionary(this.strm,d.dictionary),v!==n.Z_OK)))throw new Error(i[v])}u.prototype.push=function(h,d){var v=this.strm,g=this.options.chunkSize,b=this.options.dictionary,w,x,T,A,R,P=!1;if(this.ended)return!1;x=d===~~d?d:d===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof h=="string"?v.input=r.binstring2buf(h):s.call(h)==="[object ArrayBuffer]"?v.input=new Uint8Array(h):v.input=h,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new e.Buf8(g),v.next_out=0,v.avail_out=g),w=t.inflate(v,n.Z_NO_FLUSH),w===n.Z_NEED_DICT&&b&&(w=t.inflateSetDictionary(this.strm,b)),w===n.Z_BUF_ERROR&&P===!0&&(w=n.Z_OK,P=!1),w!==n.Z_STREAM_END&&w!==n.Z_OK)return this.onEnd(w),this.ended=!0,!1;v.next_out&&(v.avail_out===0||w===n.Z_STREAM_END||v.avail_in===0&&(x===n.Z_FINISH||x===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(T=r.utf8border(v.output,v.next_out),A=v.next_out-T,R=r.buf2string(v.output,T),v.next_out=A,v.avail_out=g-A,A&&e.arraySet(v.output,v.output,T,A,0),this.onData(R)):this.onData(e.shrinkBuf(v.output,v.next_out))),v.avail_in===0&&v.avail_out===0&&(P=!0)}while((v.avail_in>0||v.avail_out===0)&&w!==n.Z_STREAM_END);return w===n.Z_STREAM_END&&(x=n.Z_FINISH),x===n.Z_FINISH?(w=t.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===n.Z_OK):(x===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),v.avail_out=0),!0)},u.prototype.onData=function(h){this.chunks.push(h)},u.prototype.onEnd=function(h){h===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg};function f(h,d){var v=new u(d);if(v.push(h,!0),v.err)throw v.msg||i[v.err];return v.result}function l(h,d){return d=d||{},d.raw=!0,f(h,d)}return Ti.Inflate=u,Ti.inflate=f,Ti.inflateRaw=l,Ti.ungzip=f,Ti}var Su,El;function W1(){if(El)return Su;El=1;var t=Kn().assign,e=N1(),r=q1(),n=Dd(),i={};return t(i,e,r,n),Su=i,Su}var G1=W1();const Ir=B1.getDefaultExportFromCjs(G1);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ct(t,e){return e={exports:{}},t(e,e.exports),e.exports}function Xn(t){return t&&t.default||t}var H1=J1,K1=_1,X1=tg,Xr=[],wr=[],Z1=typeof Uint8Array<"u"?Uint8Array:Array,Au="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Oi=0,Y1=Au.length;Oi<Y1;++Oi)Xr[Oi]=Au[Oi],wr[Au.charCodeAt(Oi)]=Oi;wr[45]=62;wr[95]=63;function Td(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function J1(t){var e=Td(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Q1(t,e,r){return(e+r)*3/4-r}function _1(t){var e,r=Td(t),n=r[0],i=r[1],a=new Z1(Q1(t,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u<s;u+=4)e=wr[t.charCodeAt(u)]<<18|wr[t.charCodeAt(u+1)]<<12|wr[t.charCodeAt(u+2)]<<6|wr[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=wr[t.charCodeAt(u)]<<2|wr[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=wr[t.charCodeAt(u)]<<10|wr[t.charCodeAt(u+1)]<<4|wr[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function $1(t){return Xr[t>>18&63]+Xr[t>>12&63]+Xr[t>>6&63]+Xr[t&63]}function eg(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push($1(n));return i.join("")}function tg(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,s=r-n;o<s;o+=a)i.push(eg(t,o,o+a>s?s:o+a));return n===1?(e=t[r-1],i.push(Xr[e>>2]+Xr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Xr[e>>10]+Xr[e>>4&63]+Xr[e<<2&63]+"=")),i.join("")}var Cu={byteLength:H1,toByteArray:K1,fromByteArray:X1},rg=function(e,r,n,i,a){var o,s,u=a*8-i-1,f=(1<<u)-1,l=f>>1,h=-7,d=n?a-1:0,v=n?-1:1,g=e[r+d];for(d+=v,o=g&(1<<-h)-1,g>>=-h,h+=u;h>0;o=o*256+e[r+d],d+=v,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=i;h>0;s=s*256+e[r+d],d+=v,h-=8);if(o===0)o=1-l;else{if(o===f)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-l}return(g?-1:1)*s*Math.pow(2,o-i)},ng=function(e,r,n,i,a,o){var s,u,f,l=o*8-a-1,h=(1<<l)-1,d=h>>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:o-1,b=i?1:-1,w=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,s=h):(s=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+d>=1?r+=v/f:r+=v*Math.pow(2,1-d),r*f>=2&&(s++,f/=2),s+d>=h?(u=0,s=h):s+d>=1?(u=(r*f-1)*Math.pow(2,a),s=s+d):(u=r*Math.pow(2,d-1)*Math.pow(2,a),s=0));a>=8;e[n+g]=u&255,g+=b,u/=256,a-=8);for(s=s<<a|u,l+=a;l>0;e[n+g]=s&255,g+=b,s/=256,l-=8);e[n+g-b]|=w*128},ki={read:rg,write:ng},dr=Ct(function(t,e){var r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var E=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(E,y),E.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(E){if(E>n)throw new RangeError('The value "'+E+'" is invalid for option "size"');var y=new Uint8Array(E);return Object.setPrototypeOf(y,o.prototype),y}function o(E,y,m){if(typeof E=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(E)}return s(E,y,m)}o.poolSize=8192;function s(E,y,m){if(typeof E=="string")return h(E,y);if(ArrayBuffer.isView(E))return d(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(ve(E,ArrayBuffer)||E&&ve(E.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ve(E,SharedArrayBuffer)||E&&ve(E.buffer,SharedArrayBuffer)))return v(E,y,m);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var D=E.valueOf&&E.valueOf();if(D!=null&&D!==E)return o.from(D,y,m);var z=g(E);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return o.from(E[Symbol.toPrimitive]("string"),y,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}o.from=function(E,y,m){return s(E,y,m)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function u(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function f(E,y,m){return u(E),E<=0?a(E):y!==void 0?typeof m=="string"?a(E).fill(y,m):a(E).fill(y):a(E)}o.alloc=function(E,y,m){return f(E,y,m)};function l(E){return u(E),a(E<0?0:b(E)|0)}o.allocUnsafe=function(E){return l(E)},o.allocUnsafeSlow=function(E){return l(E)};function h(E,y){if((typeof y!="string"||y==="")&&(y="utf8"),!o.isEncoding(y))throw new TypeError("Unknown encoding: "+y);var m=x(E,y)|0,D=a(m),z=D.write(E,y);return z!==m&&(D=D.slice(0,z)),D}function d(E){for(var y=E.length<0?0:b(E.length)|0,m=a(y),D=0;D<y;D+=1)m[D]=E[D]&255;return m}function v(E,y,m){if(y<0||E.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<y+(m||0))throw new RangeError('"length" is outside of buffer bounds');var D;return y===void 0&&m===void 0?D=new Uint8Array(E):m===void 0?D=new Uint8Array(E,y):D=new Uint8Array(E,y,m),Object.setPrototypeOf(D,o.prototype),D}function g(E){if(o.isBuffer(E)){var y=b(E.length)|0,m=a(y);return m.length===0||E.copy(m,0,0,y),m}if(E.length!==void 0)return typeof E.length!="number"||Oe(E.length)?a(0):d(E);if(E.type==="Buffer"&&Array.isArray(E.data))return d(E.data)}function b(E){if(E>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return E|0}function w(E){return+E!=E&&(E=0),o.alloc(+E)}o.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==o.prototype},o.compare=function(y,m){if(ve(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),ve(m,Uint8Array)&&(m=o.from(m,m.offset,m.byteLength)),!o.isBuffer(y)||!o.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===m)return 0;for(var D=y.length,z=m.length,te=0,Q=Math.min(D,z);te<Q;++te)if(y[te]!==m[te]){D=y[te],z=m[te];break}return D<z?-1:z<D?1:0},o.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(y,m){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return o.alloc(0);var D;if(m===void 0)for(m=0,D=0;D<y.length;++D)m+=y[D].length;var z=o.allocUnsafe(m),te=0;for(D=0;D<y.length;++D){var Q=y[D];if(ve(Q,Uint8Array)&&(Q=o.from(Q)),!o.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(z,te),te+=Q.length}return z};function x(E,y){if(o.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||ve(E,ArrayBuffer))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);var m=E.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&m===0)return 0;for(var z=!1;;)switch(y){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return Ne(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return xe(E).length;default:if(z)return D?-1:Ne(E).length;y=(""+y).toLowerCase(),z=!0}}o.byteLength=x;function T(E,y,m){var D=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,y>>>=0,m<=y))return"";for(E||(E="utf8");;)switch(E){case"hex":return ce(this,y,m);case"utf8":case"utf-8":return U(this,y,m);case"ascii":return $(this,y,m);case"latin1":case"binary":return J(this,y,m);case"base64":return Z(this,y,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,y,m);default:if(D)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),D=!0}}o.prototype._isBuffer=!0;function A(E,y,m){var D=E[y];E[y]=E[m],E[m]=D}o.prototype.swap16=function(){var y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var m=0;m<y;m+=2)A(this,m,m+1);return this},o.prototype.swap32=function(){var y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var m=0;m<y;m+=4)A(this,m,m+3),A(this,m+1,m+2);return this},o.prototype.swap64=function(){var y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var m=0;m<y;m+=8)A(this,m,m+7),A(this,m+1,m+6),A(this,m+2,m+5),A(this,m+3,m+4);return this},o.prototype.toString=function(){var y=this.length;return y===0?"":arguments.length===0?U(this,0,y):T.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(y){if(!o.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:o.compare(this,y)===0},o.prototype.inspect=function(){var y="",m=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(y+=" ... "),"<Buffer "+y+">"},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(y,m,D,z,te){if(ve(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),!o.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(m===void 0&&(m=0),D===void 0&&(D=y?y.length:0),z===void 0&&(z=0),te===void 0&&(te=this.length),m<0||D>y.length||z<0||te>this.length)throw new RangeError("out of range index");if(z>=te&&m>=D)return 0;if(z>=te)return-1;if(m>=D)return 1;if(m>>>=0,D>>>=0,z>>>=0,te>>>=0,this===y)return 0;for(var Q=te-z,ye=D-m,Ue=Math.min(Q,ye),He=this.slice(z,te),_e=y.slice(m,D),Qe=0;Qe<Ue;++Qe)if(He[Qe]!==_e[Qe]){Q=He[Qe],ye=_e[Qe];break}return Q<ye?-1:ye<Q?1:0};function R(E,y,m,D,z){if(E.length===0)return-1;if(typeof m=="string"?(D=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,Oe(m)&&(m=z?0:E.length-1),m<0&&(m=E.length+m),m>=E.length){if(z)return-1;m=E.length-1}else if(m<0)if(z)m=0;else return-1;if(typeof y=="string"&&(y=o.from(y,D)),o.isBuffer(y))return y.length===0?-1:P(E,y,m,D,z);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(E,y,m):Uint8Array.prototype.lastIndexOf.call(E,y,m):P(E,[y],m,D,z);throw new TypeError("val must be string, number or Buffer")}function P(E,y,m,D,z){var te=1,Q=E.length,ye=y.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(E.length<2||y.length<2)return-1;te=2,Q/=2,ye/=2,m/=2}function Ue(wt,St){return te===1?wt[St]:wt.readUInt16BE(St*te)}var He;if(z){var _e=-1;for(He=m;He<Q;He++)if(Ue(E,He)===Ue(y,_e===-1?0:He-_e)){if(_e===-1&&(_e=He),He-_e+1===ye)return _e*te}else _e!==-1&&(He-=He-_e),_e=-1}else for(m+ye>Q&&(m=Q-ye),He=m;He>=0;He--){for(var Qe=!0,Et=0;Et<ye;Et++)if(Ue(E,He+Et)!==Ue(y,Et)){Qe=!1;break}if(Qe)return He}return-1}o.prototype.includes=function(y,m,D){return this.indexOf(y,m,D)!==-1},o.prototype.indexOf=function(y,m,D){return R(this,y,m,D,!0)},o.prototype.lastIndexOf=function(y,m,D){return R(this,y,m,D,!1)};function I(E,y,m,D){m=Number(m)||0;var z=E.length-m;D?(D=Number(D),D>z&&(D=z)):D=z;var te=y.length;D>te/2&&(D=te/2);for(var Q=0;Q<D;++Q){var ye=parseInt(y.substr(Q*2,2),16);if(Oe(ye))return Q;E[m+Q]=ye}return Q}function B(E,y,m,D){return Re(Ne(y,E.length-m),E,m,D)}function j(E,y,m,D){return Re(le(y),E,m,D)}function W(E,y,m,D){return j(E,y,m,D)}function N(E,y,m,D){return Re(xe(y),E,m,D)}function V(E,y,m,D){return Re(De(y,E.length-m),E,m,D)}o.prototype.write=function(y,m,D,z){if(m===void 0)z="utf8",D=this.length,m=0;else if(D===void 0&&typeof m=="string")z=m,D=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(D)?(D=D>>>0,z===void 0&&(z="utf8")):(z=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var te=this.length-m;if((D===void 0||D>te)&&(D=te),y.length>0&&(D<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");for(var Q=!1;;)switch(z){case"hex":return I(this,y,m,D);case"utf8":case"utf-8":return B(this,y,m,D);case"ascii":return j(this,y,m,D);case"latin1":case"binary":return W(this,y,m,D);case"base64":return N(this,y,m,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,y,m,D);default:if(Q)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),Q=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(E,y,m){return y===0&&m===E.length?Cu.fromByteArray(E):Cu.fromByteArray(E.slice(y,m))}function U(E,y,m){m=Math.min(E.length,m);for(var D=[],z=y;z<m;){var te=E[z],Q=null,ye=te>239?4:te>223?3:te>191?2:1;if(z+ye<=m){var Ue,He,_e,Qe;switch(ye){case 1:te<128&&(Q=te);break;case 2:Ue=E[z+1],(Ue&192)===128&&(Qe=(te&31)<<6|Ue&63,Qe>127&&(Q=Qe));break;case 3:Ue=E[z+1],He=E[z+2],(Ue&192)===128&&(He&192)===128&&(Qe=(te&15)<<12|(Ue&63)<<6|He&63,Qe>2047&&(Qe<55296||Qe>57343)&&(Q=Qe));break;case 4:Ue=E[z+1],He=E[z+2],_e=E[z+3],(Ue&192)===128&&(He&192)===128&&(_e&192)===128&&(Qe=(te&15)<<18|(Ue&63)<<12|(He&63)<<6|_e&63,Qe>65535&&Qe<1114112&&(Q=Qe))}}Q===null?(Q=65533,ye=1):Q>65535&&(Q-=65536,D.push(Q>>>10&1023|55296),Q=56320|Q&1023),D.push(Q),z+=ye}return Y(D)}var ee=4096;function Y(E){var y=E.length;if(y<=ee)return String.fromCharCode.apply(String,E);for(var m="",D=0;D<y;)m+=String.fromCharCode.apply(String,E.slice(D,D+=ee));return m}function $(E,y,m){var D="";m=Math.min(E.length,m);for(var z=y;z<m;++z)D+=String.fromCharCode(E[z]&127);return D}function J(E,y,m){var D="";m=Math.min(E.length,m);for(var z=y;z<m;++z)D+=String.fromCharCode(E[z]);return D}function ce(E,y,m){var D=E.length;(!y||y<0)&&(y=0),(!m||m<0||m>D)&&(m=D);for(var z="",te=y;te<m;++te)z+=gt[E[te]];return z}function de(E,y,m){for(var D=E.slice(y,m),z="",te=0;te<D.length;te+=2)z+=String.fromCharCode(D[te]+D[te+1]*256);return z}o.prototype.slice=function(y,m){var D=this.length;y=~~y,m=m===void 0?D:~~m,y<0?(y+=D,y<0&&(y=0)):y>D&&(y=D),m<0?(m+=D,m<0&&(m=0)):m>D&&(m=D),m<y&&(m=y);var z=this.subarray(y,m);return Object.setPrototypeOf(z,o.prototype),z};function we(E,y,m){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+y>m)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var z=this[y],te=1,Q=0;++Q<m&&(te*=256);)z+=this[y+Q]*te;return z},o.prototype.readUIntBE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var z=this[y+--m],te=1;m>0&&(te*=256);)z+=this[y+--m]*te;return z},o.prototype.readUInt8=function(y,m){return y=y>>>0,m||we(y,1,this.length),this[y]},o.prototype.readUInt16LE=function(y,m){return y=y>>>0,m||we(y,2,this.length),this[y]|this[y+1]<<8},o.prototype.readUInt16BE=function(y,m){return y=y>>>0,m||we(y,2,this.length),this[y]<<8|this[y+1]},o.prototype.readUInt32LE=function(y,m){return y=y>>>0,m||we(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},o.prototype.readUInt32BE=function(y,m){return y=y>>>0,m||we(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},o.prototype.readIntLE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var z=this[y],te=1,Q=0;++Q<m&&(te*=256);)z+=this[y+Q]*te;return te*=128,z>=te&&(z-=Math.pow(2,8*m)),z},o.prototype.readIntBE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var z=m,te=1,Q=this[y+--z];z>0&&(te*=256);)Q+=this[y+--z]*te;return te*=128,Q>=te&&(Q-=Math.pow(2,8*m)),Q},o.prototype.readInt8=function(y,m){return y=y>>>0,m||we(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},o.prototype.readInt16LE=function(y,m){y=y>>>0,m||we(y,2,this.length);var D=this[y]|this[y+1]<<8;return D&32768?D|4294901760:D},o.prototype.readInt16BE=function(y,m){y=y>>>0,m||we(y,2,this.length);var D=this[y+1]|this[y]<<8;return D&32768?D|4294901760:D},o.prototype.readInt32LE=function(y,m){return y=y>>>0,m||we(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},o.prototype.readInt32BE=function(y,m){return y=y>>>0,m||we(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},o.prototype.readFloatLE=function(y,m){return y=y>>>0,m||we(y,4,this.length),ki.read(this,y,!0,23,4)},o.prototype.readFloatBE=function(y,m){return y=y>>>0,m||we(y,4,this.length),ki.read(this,y,!1,23,4)},o.prototype.readDoubleLE=function(y,m){return y=y>>>0,m||we(y,8,this.length),ki.read(this,y,!0,52,8)},o.prototype.readDoubleBE=function(y,m){return y=y>>>0,m||we(y,8,this.length),ki.read(this,y,!1,52,8)};function me(E,y,m,D,z,te){if(!o.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>z||y<te)throw new RangeError('"value" argument is out of bounds');if(m+D>E.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(y,m,D,z){if(y=+y,m=m>>>0,D=D>>>0,!z){var te=Math.pow(2,8*D)-1;me(this,y,m,D,te,0)}var Q=1,ye=0;for(this[m]=y&255;++ye<D&&(Q*=256);)this[m+ye]=y/Q&255;return m+D},o.prototype.writeUIntBE=function(y,m,D,z){if(y=+y,m=m>>>0,D=D>>>0,!z){var te=Math.pow(2,8*D)-1;me(this,y,m,D,te,0)}var Q=D-1,ye=1;for(this[m+Q]=y&255;--Q>=0&&(ye*=256);)this[m+Q]=y/ye&255;return m+D},o.prototype.writeUInt8=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,1,255,0),this[m]=y&255,m+1},o.prototype.writeUInt16LE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,2,65535,0),this[m]=y&255,this[m+1]=y>>>8,m+2},o.prototype.writeUInt16BE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,2,65535,0),this[m]=y>>>8,this[m+1]=y&255,m+2},o.prototype.writeUInt32LE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,4,4294967295,0),this[m+3]=y>>>24,this[m+2]=y>>>16,this[m+1]=y>>>8,this[m]=y&255,m+4},o.prototype.writeUInt32BE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,4,4294967295,0),this[m]=y>>>24,this[m+1]=y>>>16,this[m+2]=y>>>8,this[m+3]=y&255,m+4},o.prototype.writeIntLE=function(y,m,D,z){if(y=+y,m=m>>>0,!z){var te=Math.pow(2,8*D-1);me(this,y,m,D,te-1,-te)}var Q=0,ye=1,Ue=0;for(this[m]=y&255;++Q<D&&(ye*=256);)y<0&&Ue===0&&this[m+Q-1]!==0&&(Ue=1),this[m+Q]=(y/ye>>0)-Ue&255;return m+D},o.prototype.writeIntBE=function(y,m,D,z){if(y=+y,m=m>>>0,!z){var te=Math.pow(2,8*D-1);me(this,y,m,D,te-1,-te)}var Q=D-1,ye=1,Ue=0;for(this[m+Q]=y&255;--Q>=0&&(ye*=256);)y<0&&Ue===0&&this[m+Q+1]!==0&&(Ue=1),this[m+Q]=(y/ye>>0)-Ue&255;return m+D},o.prototype.writeInt8=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,1,127,-128),y<0&&(y=255+y+1),this[m]=y&255,m+1},o.prototype.writeInt16LE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,2,32767,-32768),this[m]=y&255,this[m+1]=y>>>8,m+2},o.prototype.writeInt16BE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,2,32767,-32768),this[m]=y>>>8,this[m+1]=y&255,m+2},o.prototype.writeInt32LE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,4,2147483647,-2147483648),this[m]=y&255,this[m+1]=y>>>8,this[m+2]=y>>>16,this[m+3]=y>>>24,m+4},o.prototype.writeInt32BE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[m]=y>>>24,this[m+1]=y>>>16,this[m+2]=y>>>8,this[m+3]=y&255,m+4};function Te(E,y,m,D,z,te){if(m+D>E.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function Le(E,y,m,D,z){return y=+y,m=m>>>0,z||Te(E,y,m,4),ki.write(E,y,m,D,23,4),m+4}o.prototype.writeFloatLE=function(y,m,D){return Le(this,y,m,!0,D)},o.prototype.writeFloatBE=function(y,m,D){return Le(this,y,m,!1,D)};function Ge(E,y,m,D,z){return y=+y,m=m>>>0,z||Te(E,y,m,8),ki.write(E,y,m,D,52,8),m+8}o.prototype.writeDoubleLE=function(y,m,D){return Ge(this,y,m,!0,D)},o.prototype.writeDoubleBE=function(y,m,D){return Ge(this,y,m,!1,D)},o.prototype.copy=function(y,m,D,z){if(!o.isBuffer(y))throw new TypeError("argument should be a Buffer");if(D||(D=0),!z&&z!==0&&(z=this.length),m>=y.length&&(m=y.length),m||(m=0),z>0&&z<D&&(z=D),z===D||y.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),y.length-m<z-D&&(z=y.length-m+D);var te=z-D;if(this===y&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(m,D,z);else if(this===y&&D<m&&m<z)for(var Q=te-1;Q>=0;--Q)y[Q+m]=this[Q+D];else Uint8Array.prototype.set.call(y,this.subarray(D,z),m);return te},o.prototype.fill=function(y,m,D,z){if(typeof y=="string"){if(typeof m=="string"?(z=m,m=0,D=this.length):typeof D=="string"&&(z=D,D=this.length),z!==void 0&&typeof z!="string")throw new TypeError("encoding must be a string");if(typeof z=="string"&&!o.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(y.length===1){var te=y.charCodeAt(0);(z==="utf8"&&te<128||z==="latin1")&&(y=te)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(m<0||this.length<m||this.length<D)throw new RangeError("Out of range index");if(D<=m)return this;m=m>>>0,D=D===void 0?this.length:D>>>0,y||(y=0);var Q;if(typeof y=="number")for(Q=m;Q<D;++Q)this[Q]=y;else{var ye=o.isBuffer(y)?y:o.from(y,z),Ue=ye.length;if(Ue===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(Q=0;Q<D-m;++Q)this[Q+m]=ye[Q%Ue]}return this};var Xe=/[^+/0-9A-Za-z-_]/g;function Fe(E){if(E=E.split("=")[0],E=E.trim().replace(Xe,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function Ne(E,y){y=y||1/0;for(var m,D=E.length,z=null,te=[],Q=0;Q<D;++Q){if(m=E.charCodeAt(Q),m>55295&&m<57344){if(!z){if(m>56319){(y-=3)>-1&&te.push(239,191,189);continue}else if(Q+1===D){(y-=3)>-1&&te.push(239,191,189);continue}z=m;continue}if(m<56320){(y-=3)>-1&&te.push(239,191,189),z=m;continue}m=(z-55296<<10|m-56320)+65536}else z&&(y-=3)>-1&&te.push(239,191,189);if(z=null,m<128){if((y-=1)<0)break;te.push(m)}else if(m<2048){if((y-=2)<0)break;te.push(m>>6|192,m&63|128)}else if(m<65536){if((y-=3)<0)break;te.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((y-=4)<0)break;te.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return te}function le(E){for(var y=[],m=0;m<E.length;++m)y.push(E.charCodeAt(m)&255);return y}function De(E,y){for(var m,D,z,te=[],Q=0;Q<E.length&&!((y-=2)<0);++Q)m=E.charCodeAt(Q),D=m>>8,z=m%256,te.push(z),te.push(D);return te}function xe(E){return Cu.toByteArray(Fe(E))}function Re(E,y,m,D){for(var z=0;z<D&&!(z+m>=y.length||z>=E.length);++z)y[z+m]=E[z];return z}function ve(E,y){return E instanceof y||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===y.name}function Oe(E){return E!==E}var gt=(function(){for(var E="0123456789abcdef",y=new Array(256),m=0;m<16;++m)for(var D=m*16,z=0;z<16;++z)y[D+z]=E[m]+E[z];return y})()}),mt=dr.Buffer;dr.SlowBuffer;dr.INSPECT_MAX_BYTES;dr.kMaxLength;var ig;function Rn(){}Rn.prototype=Object.create(null);function ct(){ct.init.call(this)}ct.EventEmitter=ct;ct.usingDomains=!1;ct.prototype.domain=void 0;ct.prototype._events=void 0;ct.prototype._maxListeners=void 0;ct.defaultMaxListeners=10;ct.init=function(){this.domain=null,ct.usingDomains&&ig.active,(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new Rn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ct.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this};function Od(t){return t._maxListeners===void 0?ct.defaultMaxListeners:t._maxListeners}ct.prototype.getMaxListeners=function(){return Od(this)};function ag(t,e,r){if(e)t.call(r);else for(var n=t.length,i=ao(t,n),a=0;a<n;++a)i[a].call(r)}function og(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=ao(t,i),o=0;o<i;++o)a[o].call(r,n)}function sg(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=ao(t,a),s=0;s<a;++s)o[s].call(r,n,i)}function ug(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=ao(t,o),u=0;u<o;++u)s[u].call(r,n,i,a)}function fg(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=ao(t,i),o=0;o<i;++o)a[o].apply(r,n)}ct.prototype.emit=function(e){var r,n,i,a,o,s,u,f=e==="error";if(s=this._events,s)f=f&&s.error==null;else if(!f)return!1;if(u=this.domain,f){if(r=arguments[1],u)r||(r=new Error('Uncaught, unspecified "error" event')),r.domainEmitter=this,r.domain=u,r.domainThrown=!1,u.emit("error",r);else{if(r instanceof Error)throw r;var l=new Error('Uncaught, unspecified "error" event. ('+r+")");throw l.context=r,l}return!1}if(n=s[e],!n)return!1;var h=typeof n=="function";switch(i=arguments.length,i){case 1:ag(n,h,this);break;case 2:og(n,h,this,arguments[1]);break;case 3:sg(n,h,this,arguments[1],arguments[2]);break;case 4:ug(n,h,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(i-1),o=1;o<i;o++)a[o-1]=arguments[o];fg(n,h,this,a)}return!0};function kd(t,e,r,n){var i,a,o;if(typeof r!="function")throw new TypeError('"listener" argument must be a function');if(a=t._events,a?(a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]):(a=t._events=new Rn,t._eventsCount=0),!o)o=a[e]=r,++t._eventsCount;else if(typeof o=="function"?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(i=Od(t),i&&i>0&&o.length>i)){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=o.length,cg(s)}return t}function cg(t){typeof console.warn=="function"?console.warn(t):console.log(t)}ct.prototype.addListener=function(e,r){return kd(this,e,r,!1)};ct.prototype.on=ct.prototype.addListener;ct.prototype.prependListener=function(e,r){return kd(this,e,r,!0)};function Pd(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}ct.prototype.once=function(e,r){if(typeof r!="function")throw new TypeError('"listener" argument must be a function');return this.on(e,Pd(this,e,r)),this};ct.prototype.prependOnceListener=function(e,r){if(typeof r!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Pd(this,e,r)),this};ct.prototype.removeListener=function(e,r){var n,i,a,o,s;if(typeof r!="function")throw new TypeError('"listener" argument must be a function');if(i=this._events,!i)return this;if(n=i[e],!n)return this;if(n===r||n.listener&&n.listener===r)--this._eventsCount===0?this._events=new Rn:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length;o-- >0;)if(n[o]===r||n[o].listener&&n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount===0)return this._events=new Rn,this;delete i[e]}else lg(n,a);i.removeListener&&this.emit("removeListener",e,s||r)}return this};ct.prototype.removeAllListeners=function(e){var r,n;if(n=this._events,!n)return this;if(!n.removeListener)return arguments.length===0?(this._events=new Rn,this._eventsCount=0):n[e]&&(--this._eventsCount===0?this._events=new Rn:delete n[e]),this;if(arguments.length===0){for(var i=Object.keys(n),a=0,o;a<i.length;++a)o=i[a],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new Rn,this._eventsCount=0,this}if(r=n[e],typeof r=="function")this.removeListener(e,r);else if(r)do this.removeListener(e,r[r.length-1]);while(r[0]);return this};ct.prototype.listeners=function(e){var r,n,i=this._events;return i?(r=i[e],r?typeof r=="function"?n=[r.listener||r]:n=hg(r):n=[]):n=[],n};ct.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Id.call(t,e)};ct.prototype.listenerCount=Id;function Id(t){var e=this._events;if(e){var r=e[t];if(typeof r=="function")return 1;if(r)return r.length}return 0}ct.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function lg(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}function ao(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function hg(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}var Ps=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function Bd(){throw new Error("setTimeout has not been defined")}function Rd(){throw new Error("clearTimeout has not been defined")}var En=Bd,Dn=Rd;typeof Ps.setTimeout=="function"&&(En=setTimeout);typeof Ps.clearTimeout=="function"&&(Dn=clearTimeout);function Md(t){if(En===setTimeout)return setTimeout(t,0);if((En===Bd||!En)&&setTimeout)return En=setTimeout,setTimeout(t,0);try{return En(t,0)}catch{try{return En.call(null,t,0)}catch{return En.call(this,t,0)}}}function dg(t){if(Dn===clearTimeout)return clearTimeout(t);if((Dn===Rd||!Dn)&&clearTimeout)return Dn=clearTimeout,clearTimeout(t);try{return Dn(t)}catch{try{return Dn.call(null,t)}catch{return Dn.call(this,t)}}}var cn=[],Xi=!1,ci,Ko=-1;function vg(){!Xi||!ci||(Xi=!1,ci.length?cn=ci.concat(cn):Ko=-1,cn.length&&Ld())}function Ld(){if(!Xi){var t=Md(vg);Xi=!0;for(var e=cn.length;e;){for(ci=cn,cn=[];++Ko<e;)ci&&ci[Ko].run();Ko=-1,e=cn.length}ci=null,Xi=!1,dg(t)}}function fr(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];cn.push(new Nd(t,e)),cn.length===1&&!Xi&&Md(Ld)}function Nd(t,e){this.fun=t,this.array=e}Nd.prototype.run=function(){this.fun.apply(null,this.array)};var pg="browser",gg="browser",yg=!0,mg={},bg=[],wg="",xg={},Fg={},Sg={};function bi(){}var Ag=bi,Cg=bi,Eg=bi,Dg=bi,Tg=bi,Og=bi,kg=bi;function Pg(t){throw new Error("process.binding is not supported")}function Ig(){return"/"}function Bg(t){throw new Error("process.chdir is not supported")}function Rg(){return 0}var ji=Ps.performance||{},Mg=ji.now||ji.mozNow||ji.msNow||ji.oNow||ji.webkitNow||function(){return new Date().getTime()};function Lg(t){var e=Mg.call(ji)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}var Ng=new Date;function Ug(){var t=new Date,e=t-Ng;return e/1e3}var Mn={nextTick:fr,title:pg,browser:yg,env:mg,argv:bg,version:wg,versions:xg,on:Ag,addListener:Cg,once:Eg,off:Dg,removeListener:Tg,removeAllListeners:Og,emit:kg,binding:Pg,cwd:Ig,chdir:Bg,umask:Rg,hrtime:Lg,platform:gg,release:Fg,config:Sg,uptime:Ug},wf;typeof Object.create=="function"?wf=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:wf=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e};var fa=wf,zg=/%[sdj%]/g;function jg(t){if(!ec(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ln(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(t).replace(zg,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return s}}),o=n[r];r<i;o=n[++r])$f(o)||!oo(o)?a+=" "+o:a+=" "+ln(o);return a}function Ud(t,e){if(Pn(Ps.process))return function(){return Ud(t,e).apply(this,arguments)};if(Mn.noDeprecation===!0)return t;var r=!1;function n(){if(!r){if(Mn.throwDeprecation)throw new Error(e);Mn.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return n}var Fo={},Eu;function Vg(t){if(Pn(Eu)&&(Eu=Mn.env.NODE_DEBUG||""),t=t.toUpperCase(),!Fo[t])if(new RegExp("\\b"+t+"\\b","i").test(Eu)){var e=0;Fo[t]=function(){var r=jg.apply(null,arguments);console.error("%s %d: %s",t,e,r)}}else Fo[t]=function(){};return Fo[t]}function ln(t,e){var r={seen:[],stylize:Wg};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),zd(e)?r.showHidden=e:e&&Jg(r,e),Pn(r.showHidden)&&(r.showHidden=!1),Pn(r.depth)&&(r.depth=2),Pn(r.colors)&&(r.colors=!1),Pn(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=qg),is(r,t,r.depth)}ln.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ln.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function qg(t,e){var r=ln.styles[e];return r?"\x1B["+ln.colors[r][0]+"m"+t+"\x1B["+ln.colors[r][1]+"m":t}function Wg(t,e){return t}function Gg(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function is(t,e,r){if(t.customInspect&&e&&ku(e.inspect)&&e.inspect!==ln&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return ec(n)||(n=is(t,n,r)),n}var i=Hg(t,e);if(i)return i;var a=Object.keys(e),o=Gg(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),Ou(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Du(e);if(a.length===0){if(ku(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(Tu(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Dl(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Ou(e))return Du(e)}var u="",f=!1,l=["{","}"];if(Zg(e)&&(f=!0,l=["[","]"]),ku(e)){var h=e.name?": "+e.name:"";u=" [Function"+h+"]"}if(Tu(e)&&(u=" "+RegExp.prototype.toString.call(e)),Dl(e)&&(u=" "+Date.prototype.toUTCString.call(e)),Ou(e)&&(u=" "+Du(e)),a.length===0&&(!f||e.length==0))return l[0]+u+l[1];if(r<0)return Tu(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var d;return f?d=Kg(t,e,r,o,a):d=a.map(function(v){return xf(t,e,r,o,v,f)}),t.seen.pop(),Xg(d,u,l)}function Hg(t,e){if(Pn(e))return t.stylize("undefined","undefined");if(ec(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Yg(e))return t.stylize(""+e,"number");if(zd(e))return t.stylize(""+e,"boolean");if($f(e))return t.stylize("null","null")}function Du(t){return"["+Error.prototype.toString.call(t)+"]"}function Kg(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)jd(e,String(o))?a.push(xf(t,e,r,n,String(o),!0)):a.push("");return i.forEach(function(u){u.match(/^\d+$/)||a.push(xf(t,e,r,n,u,!0))}),a}function xf(t,e,r,n,i,a){var o,s,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?u.set?s=t.stylize("[Getter/Setter]","special"):s=t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),jd(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?($f(r)?s=is(t,u.value,null):s=is(t,u.value,r-1),s.indexOf(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B1=require("./_commonjsHelpers-DKOUU3wS.cjs"),_t=require("./style-CFZ-HE2s.cjs"),R1=require("./grid-geometry-BXpOxznT.cjs");var vu={},ll;function Kn(){return ll||(ll=1,(function(t){var e=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(a,o){return Object.prototype.hasOwnProperty.call(a,o)}t.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var u in s)r(s,u)&&(a[u]=s[u])}}return a},t.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var n={arraySet:function(a,o,s,u,f){if(o.subarray&&a.subarray){a.set(o.subarray(s,s+u),f);return}for(var l=0;l<u;l++)a[f+l]=o[s+l]},flattenChunks:function(a){var o,s,u,f,l,h;for(u=0,o=0,s=a.length;o<s;o++)u+=a[o].length;for(h=new Uint8Array(u),f=0,o=0,s=a.length;o<s;o++)l=a[o],h.set(l,f),f+=l.length;return h}},i={arraySet:function(a,o,s,u,f){for(var l=0;l<u;l++)a[f+l]=o[s+l]},flattenChunks:function(a){return[].concat.apply([],a)}};t.setTyped=function(a){a?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)})(vu)),vu}var Di={},Rr={},_n={},hl;function M1(){if(hl)return _n;hl=1;var t=Kn(),e=4,r=0,n=1,i=2;function a(C){for(var re=C.length;--re>=0;)C[re]=0}var o=0,s=1,u=2,f=3,l=258,h=29,d=256,v=d+1+h,g=30,b=19,w=2*v+1,x=15,T=16,A=7,R=256,P=16,I=17,B=18,j=[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],W=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Z=512,U=new Array((v+2)*2);a(U);var ee=new Array(g*2);a(ee);var Y=new Array(Z);a(Y);var $=new Array(l-f+1);a($);var J=new Array(h);a(J);var ce=new Array(g);a(ce);function de(C,re,ae,fe,L){this.static_tree=C,this.extra_bits=re,this.extra_base=ae,this.elems=fe,this.max_length=L,this.has_stree=C&&C.length}var we,me,Te;function Le(C,re){this.dyn_tree=C,this.max_code=0,this.stat_desc=re}function Ge(C){return C<256?Y[C]:Y[256+(C>>>7)]}function Xe(C,re){C.pending_buf[C.pending++]=re&255,C.pending_buf[C.pending++]=re>>>8&255}function Fe(C,re,ae){C.bi_valid>T-ae?(C.bi_buf|=re<<C.bi_valid&65535,Xe(C,C.bi_buf),C.bi_buf=re>>T-C.bi_valid,C.bi_valid+=ae-T):(C.bi_buf|=re<<C.bi_valid&65535,C.bi_valid+=ae)}function Ne(C,re,ae){Fe(C,ae[re*2],ae[re*2+1])}function le(C,re){var ae=0;do ae|=C&1,C>>>=1,ae<<=1;while(--re>0);return ae>>>1}function De(C){C.bi_valid===16?(Xe(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)}function xe(C,re){var ae=re.dyn_tree,fe=re.max_code,L=re.stat_desc.static_tree,X=re.stat_desc.has_stree,F=re.stat_desc.extra_bits,ne=re.stat_desc.extra_base,ke=re.stat_desc.max_length,p,H,K,S,M,G,Ae=0;for(S=0;S<=x;S++)C.bl_count[S]=0;for(ae[C.heap[C.heap_max]*2+1]=0,p=C.heap_max+1;p<w;p++)H=C.heap[p],S=ae[ae[H*2+1]*2+1]+1,S>ke&&(S=ke,Ae++),ae[H*2+1]=S,!(H>fe)&&(C.bl_count[S]++,M=0,H>=ne&&(M=F[H-ne]),G=ae[H*2],C.opt_len+=G*(S+M),X&&(C.static_len+=G*(L[H*2+1]+M)));if(Ae!==0){do{for(S=ke-1;C.bl_count[S]===0;)S--;C.bl_count[S]--,C.bl_count[S+1]+=2,C.bl_count[ke]--,Ae-=2}while(Ae>0);for(S=ke;S!==0;S--)for(H=C.bl_count[S];H!==0;)K=C.heap[--p],!(K>fe)&&(ae[K*2+1]!==S&&(C.opt_len+=(S-ae[K*2+1])*ae[K*2],ae[K*2+1]=S),H--)}}function Re(C,re,ae){var fe=new Array(x+1),L=0,X,F;for(X=1;X<=x;X++)fe[X]=L=L+ae[X-1]<<1;for(F=0;F<=re;F++){var ne=C[F*2+1];ne!==0&&(C[F*2]=le(fe[ne]++,ne))}}function ve(){var C,re,ae,fe,L,X=new Array(x+1);for(ae=0,fe=0;fe<h-1;fe++)for(J[fe]=ae,C=0;C<1<<j[fe];C++)$[ae++]=fe;for($[ae-1]=fe,L=0,fe=0;fe<16;fe++)for(ce[fe]=L,C=0;C<1<<W[fe];C++)Y[L++]=fe;for(L>>=7;fe<g;fe++)for(ce[fe]=L<<7,C=0;C<1<<W[fe]-7;C++)Y[256+L++]=fe;for(re=0;re<=x;re++)X[re]=0;for(C=0;C<=143;)U[C*2+1]=8,C++,X[8]++;for(;C<=255;)U[C*2+1]=9,C++,X[9]++;for(;C<=279;)U[C*2+1]=7,C++,X[7]++;for(;C<=287;)U[C*2+1]=8,C++,X[8]++;for(Re(U,v+1,X),C=0;C<g;C++)ee[C*2+1]=5,ee[C*2]=le(C,5);we=new de(U,j,d+1,v,x),me=new de(ee,W,0,g,x),Te=new de(new Array(0),N,0,b,A)}function Oe(C){var re;for(re=0;re<v;re++)C.dyn_ltree[re*2]=0;for(re=0;re<g;re++)C.dyn_dtree[re*2]=0;for(re=0;re<b;re++)C.bl_tree[re*2]=0;C.dyn_ltree[R*2]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function gt(C){C.bi_valid>8?Xe(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function E(C,re,ae,fe){gt(C),Xe(C,ae),Xe(C,~ae),t.arraySet(C.pending_buf,C.window,re,ae,C.pending),C.pending+=ae}function y(C,re,ae,fe){var L=re*2,X=ae*2;return C[L]<C[X]||C[L]===C[X]&&fe[re]<=fe[ae]}function m(C,re,ae){for(var fe=C.heap[ae],L=ae<<1;L<=C.heap_len&&(L<C.heap_len&&y(re,C.heap[L+1],C.heap[L],C.depth)&&L++,!y(re,fe,C.heap[L],C.depth));)C.heap[ae]=C.heap[L],ae=L,L<<=1;C.heap[ae]=fe}function D(C,re,ae){var fe,L,X=0,F,ne;if(C.last_lit!==0)do fe=C.pending_buf[C.d_buf+X*2]<<8|C.pending_buf[C.d_buf+X*2+1],L=C.pending_buf[C.l_buf+X],X++,fe===0?Ne(C,L,re):(F=$[L],Ne(C,F+d+1,re),ne=j[F],ne!==0&&(L-=J[F],Fe(C,L,ne)),fe--,F=Ge(fe),Ne(C,F,ae),ne=W[F],ne!==0&&(fe-=ce[F],Fe(C,fe,ne)));while(X<C.last_lit);Ne(C,R,re)}function z(C,re){var ae=re.dyn_tree,fe=re.stat_desc.static_tree,L=re.stat_desc.has_stree,X=re.stat_desc.elems,F,ne,ke=-1,p;for(C.heap_len=0,C.heap_max=w,F=0;F<X;F++)ae[F*2]!==0?(C.heap[++C.heap_len]=ke=F,C.depth[F]=0):ae[F*2+1]=0;for(;C.heap_len<2;)p=C.heap[++C.heap_len]=ke<2?++ke:0,ae[p*2]=1,C.depth[p]=0,C.opt_len--,L&&(C.static_len-=fe[p*2+1]);for(re.max_code=ke,F=C.heap_len>>1;F>=1;F--)m(C,ae,F);p=X;do F=C.heap[1],C.heap[1]=C.heap[C.heap_len--],m(C,ae,1),ne=C.heap[1],C.heap[--C.heap_max]=F,C.heap[--C.heap_max]=ne,ae[p*2]=ae[F*2]+ae[ne*2],C.depth[p]=(C.depth[F]>=C.depth[ne]?C.depth[F]:C.depth[ne])+1,ae[F*2+1]=ae[ne*2+1]=p,C.heap[1]=p++,m(C,ae,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1],xe(C,re),Re(ae,ke,C.bl_count)}function te(C,re,ae){var fe,L=-1,X,F=re[1],ne=0,ke=7,p=4;for(F===0&&(ke=138,p=3),re[(ae+1)*2+1]=65535,fe=0;fe<=ae;fe++)X=F,F=re[(fe+1)*2+1],!(++ne<ke&&X===F)&&(ne<p?C.bl_tree[X*2]+=ne:X!==0?(X!==L&&C.bl_tree[X*2]++,C.bl_tree[P*2]++):ne<=10?C.bl_tree[I*2]++:C.bl_tree[B*2]++,ne=0,L=X,F===0?(ke=138,p=3):X===F?(ke=6,p=3):(ke=7,p=4))}function Q(C,re,ae){var fe,L=-1,X,F=re[1],ne=0,ke=7,p=4;for(F===0&&(ke=138,p=3),fe=0;fe<=ae;fe++)if(X=F,F=re[(fe+1)*2+1],!(++ne<ke&&X===F)){if(ne<p)do Ne(C,X,C.bl_tree);while(--ne!==0);else X!==0?(X!==L&&(Ne(C,X,C.bl_tree),ne--),Ne(C,P,C.bl_tree),Fe(C,ne-3,2)):ne<=10?(Ne(C,I,C.bl_tree),Fe(C,ne-3,3)):(Ne(C,B,C.bl_tree),Fe(C,ne-11,7));ne=0,L=X,F===0?(ke=138,p=3):X===F?(ke=6,p=3):(ke=7,p=4)}}function ye(C){var re;for(te(C,C.dyn_ltree,C.l_desc.max_code),te(C,C.dyn_dtree,C.d_desc.max_code),z(C,C.bl_desc),re=b-1;re>=3&&C.bl_tree[V[re]*2+1]===0;re--);return C.opt_len+=3*(re+1)+5+5+4,re}function Ue(C,re,ae,fe){var L;for(Fe(C,re-257,5),Fe(C,ae-1,5),Fe(C,fe-4,4),L=0;L<fe;L++)Fe(C,C.bl_tree[V[L]*2+1],3);Q(C,C.dyn_ltree,re-1),Q(C,C.dyn_dtree,ae-1)}function He(C){var re=4093624447,ae;for(ae=0;ae<=31;ae++,re>>>=1)if(re&1&&C.dyn_ltree[ae*2]!==0)return r;if(C.dyn_ltree[18]!==0||C.dyn_ltree[20]!==0||C.dyn_ltree[26]!==0)return n;for(ae=32;ae<d;ae++)if(C.dyn_ltree[ae*2]!==0)return n;return r}var _e=!1;function Qe(C){_e||(ve(),_e=!0),C.l_desc=new Le(C.dyn_ltree,we),C.d_desc=new Le(C.dyn_dtree,me),C.bl_desc=new Le(C.bl_tree,Te),C.bi_buf=0,C.bi_valid=0,Oe(C)}function Et(C,re,ae,fe){Fe(C,(o<<1)+(fe?1:0),3),E(C,re,ae)}function wt(C){Fe(C,s<<1,3),Ne(C,R,U),De(C)}function St(C,re,ae,fe){var L,X,F=0;C.level>0?(C.strm.data_type===i&&(C.strm.data_type=He(C)),z(C,C.l_desc),z(C,C.d_desc),F=ye(C),L=C.opt_len+3+7>>>3,X=C.static_len+3+7>>>3,X<=L&&(L=X)):L=X=ae+5,ae+4<=L&&re!==-1?Et(C,re,ae,fe):C.strategy===e||X===L?(Fe(C,(s<<1)+(fe?1:0),3),D(C,U,ee)):(Fe(C,(u<<1)+(fe?1:0),3),Ue(C,C.l_desc.max_code+1,C.d_desc.max_code+1,F+1),D(C,C.dyn_ltree,C.dyn_dtree)),Oe(C),fe&&gt(C)}function tr(C,re,ae){return C.pending_buf[C.d_buf+C.last_lit*2]=re>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=re&255,C.pending_buf[C.l_buf+C.last_lit]=ae&255,C.last_lit++,re===0?C.dyn_ltree[ae*2]++:(C.matches++,re--,C.dyn_ltree[($[ae]+d+1)*2]++,C.dyn_dtree[Ge(re)*2]++),C.last_lit===C.lit_bufsize-1}return _n._tr_init=Qe,_n._tr_stored_block=Et,_n._tr_flush_block=St,_n._tr_tally=tr,_n._tr_align=wt,_n}var pu,dl;function Sd(){if(dl)return pu;dl=1;function t(e,r,n,i){for(var a=e&65535|0,o=e>>>16&65535|0,s=0;n!==0;){s=n>2e3?2e3:n,n-=s;do a=a+r[i++]|0,o=o+a|0;while(--s);a%=65521,o%=65521}return a|o<<16|0}return pu=t,pu}var gu,vl;function Ad(){if(vl)return gu;vl=1;function t(){for(var n,i=[],a=0;a<256;a++){n=a;for(var o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;i[a]=n}return i}var e=t();function r(n,i,a,o){var s=e,u=o+a;n^=-1;for(var f=o;f<u;f++)n=n>>>8^s[(n^i[f])&255];return n^-1}return gu=r,gu}var yu,pl;function _f(){return pl||(pl=1,yu={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"}),yu}var gl;function L1(){if(gl)return Rr;gl=1;var t=Kn(),e=M1(),r=Sd(),n=Ad(),i=_f(),a=0,o=1,s=3,u=4,f=5,l=0,h=1,d=-2,v=-3,g=-5,b=-1,w=1,x=2,T=3,A=4,R=0,P=2,I=8,B=9,j=15,W=8,N=29,V=256,Z=V+1+N,U=30,ee=19,Y=2*Z+1,$=15,J=3,ce=258,de=ce+J+1,we=32,me=42,Te=69,Le=73,Ge=91,Xe=103,Fe=113,Ne=666,le=1,De=2,xe=3,Re=4,ve=3;function Oe(p,H){return p.msg=i[H],H}function gt(p){return(p<<1)-(p>4?9:0)}function E(p){for(var H=p.length;--H>=0;)p[H]=0}function y(p){var H=p.state,K=H.pending;K>p.avail_out&&(K=p.avail_out),K!==0&&(t.arraySet(p.output,H.pending_buf,H.pending_out,K,p.next_out),p.next_out+=K,H.pending_out+=K,p.total_out+=K,p.avail_out-=K,H.pending-=K,H.pending===0&&(H.pending_out=0))}function m(p,H){e._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,H),p.block_start=p.strstart,y(p.strm)}function D(p,H){p.pending_buf[p.pending++]=H}function z(p,H){p.pending_buf[p.pending++]=H>>>8&255,p.pending_buf[p.pending++]=H&255}function te(p,H,K,S){var M=p.avail_in;return M>S&&(M=S),M===0?0:(p.avail_in-=M,t.arraySet(H,p.input,p.next_in,M,K),p.state.wrap===1?p.adler=r(p.adler,H,M,K):p.state.wrap===2&&(p.adler=n(p.adler,H,M,K)),p.next_in+=M,p.total_in+=M,M)}function Q(p,H){var K=p.max_chain_length,S=p.strstart,M,G,Ae=p.prev_length,pe=p.nice_match,ge=p.strstart>p.w_size-de?p.strstart-(p.w_size-de):0,ut=p.window,rn=p.w_mask,Ot=p.prev,lt=p.strstart+ce,zt=ut[S+Ae-1],Qt=ut[S+Ae];p.prev_length>=p.good_match&&(K>>=2),pe>p.lookahead&&(pe=p.lookahead);do if(M=H,!(ut[M+Ae]!==Qt||ut[M+Ae-1]!==zt||ut[M]!==ut[S]||ut[++M]!==ut[S+1])){S+=2,M++;do;while(ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&ut[++S]===ut[++M]&&S<lt);if(G=ce-(lt-S),S=lt-ce,G>Ae){if(p.match_start=H,Ae=G,G>=pe)break;zt=ut[S+Ae-1],Qt=ut[S+Ae]}}while((H=Ot[H&rn])>ge&&--K!==0);return Ae<=p.lookahead?Ae:p.lookahead}function ye(p){var H=p.w_size,K,S,M,G,Ae;do{if(G=p.window_size-p.lookahead-p.strstart,p.strstart>=H+(H-de)){t.arraySet(p.window,p.window,H,H,0),p.match_start-=H,p.strstart-=H,p.block_start-=H,S=p.hash_size,K=S;do M=p.head[--K],p.head[K]=M>=H?M-H:0;while(--S);S=H,K=S;do M=p.prev[--K],p.prev[K]=M>=H?M-H:0;while(--S);G+=H}if(p.strm.avail_in===0)break;if(S=te(p.strm,p.window,p.strstart+p.lookahead,G),p.lookahead+=S,p.lookahead+p.insert>=J)for(Ae=p.strstart-p.insert,p.ins_h=p.window[Ae],p.ins_h=(p.ins_h<<p.hash_shift^p.window[Ae+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[Ae+J-1])&p.hash_mask,p.prev[Ae&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=Ae,Ae++,p.insert--,!(p.lookahead+p.insert<J)););}while(p.lookahead<de&&p.strm.avail_in!==0)}function Ue(p,H){var K=65535;for(K>p.pending_buf_size-5&&(K=p.pending_buf_size-5);;){if(p.lookahead<=1){if(ye(p),p.lookahead===0&&H===a)return le;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var S=p.block_start+K;if((p.strstart===0||p.strstart>=S)&&(p.lookahead=p.strstart-S,p.strstart=S,m(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-de&&(m(p,!1),p.strm.avail_out===0))return le}return p.insert=0,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):(p.strstart>p.block_start&&(m(p,!1),p.strm.avail_out===0),le)}function He(p,H){for(var K,S;;){if(p.lookahead<de){if(ye(p),p.lookahead<de&&H===a)return le;if(p.lookahead===0)break}if(K=0,p.lookahead>=J&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+J-1])&p.hash_mask,K=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),K!==0&&p.strstart-K<=p.w_size-de&&(p.match_length=Q(p,K)),p.match_length>=J)if(S=e._tr_tally(p,p.strstart-p.match_start,p.match_length-J),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=J){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+J-1])&p.hash_mask,K=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else S=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(S&&(m(p,!1),p.strm.avail_out===0))return le}return p.insert=p.strstart<J-1?p.strstart:J-1,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?le:De}function _e(p,H){for(var K,S,M;;){if(p.lookahead<de){if(ye(p),p.lookahead<de&&H===a)return le;if(p.lookahead===0)break}if(K=0,p.lookahead>=J&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+J-1])&p.hash_mask,K=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=J-1,K!==0&&p.prev_length<p.max_lazy_match&&p.strstart-K<=p.w_size-de&&(p.match_length=Q(p,K),p.match_length<=5&&(p.strategy===w||p.match_length===J&&p.strstart-p.match_start>4096)&&(p.match_length=J-1)),p.prev_length>=J&&p.match_length<=p.prev_length){M=p.strstart+p.lookahead-J,S=e._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-J),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=M&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+J-1])&p.hash_mask,K=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=J-1,p.strstart++,S&&(m(p,!1),p.strm.avail_out===0))return le}else if(p.match_available){if(S=e._tr_tally(p,0,p.window[p.strstart-1]),S&&m(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return le}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(S=e._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<J-1?p.strstart:J-1,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?le:De}function Qe(p,H){for(var K,S,M,G,Ae=p.window;;){if(p.lookahead<=ce){if(ye(p),p.lookahead<=ce&&H===a)return le;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=J&&p.strstart>0&&(M=p.strstart-1,S=Ae[M],S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M])){G=p.strstart+ce;do;while(S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&S===Ae[++M]&&M<G);p.match_length=ce-(G-M),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=J?(K=e._tr_tally(p,1,p.match_length-J),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(K=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),K&&(m(p,!1),p.strm.avail_out===0))return le}return p.insert=0,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?le:De}function Et(p,H){for(var K;;){if(p.lookahead===0&&(ye(p),p.lookahead===0)){if(H===a)return le;break}if(p.match_length=0,K=e._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,K&&(m(p,!1),p.strm.avail_out===0))return le}return p.insert=0,H===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?le:De}function wt(p,H,K,S,M){this.good_length=p,this.max_lazy=H,this.nice_length=K,this.max_chain=S,this.func=M}var St;St=[new wt(0,0,0,0,Ue),new wt(4,4,8,4,He),new wt(4,5,16,8,He),new wt(4,6,32,32,He),new wt(4,4,16,16,_e),new wt(8,16,32,32,_e),new wt(8,16,128,128,_e),new wt(8,32,128,256,_e),new wt(32,128,258,1024,_e),new wt(32,258,258,4096,_e)];function tr(p){p.window_size=2*p.w_size,E(p.head),p.max_lazy_match=St[p.level].max_lazy,p.good_match=St[p.level].good_length,p.nice_match=St[p.level].nice_length,p.max_chain_length=St[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=J-1,p.match_available=0,p.ins_h=0}function C(){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=I,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 t.Buf16(Y*2),this.dyn_dtree=new t.Buf16((2*U+1)*2),this.bl_tree=new t.Buf16((2*ee+1)*2),E(this.dyn_ltree),E(this.dyn_dtree),E(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16($+1),this.heap=new t.Buf16(2*Z+1),E(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*Z+1),E(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 re(p){var H;return!p||!p.state?Oe(p,d):(p.total_in=p.total_out=0,p.data_type=P,H=p.state,H.pending=0,H.pending_out=0,H.wrap<0&&(H.wrap=-H.wrap),H.status=H.wrap?me:Fe,p.adler=H.wrap===2?0:1,H.last_flush=a,e._tr_init(H),l)}function ae(p){var H=re(p);return H===l&&tr(p.state),H}function fe(p,H){return!p||!p.state||p.state.wrap!==2?d:(p.state.gzhead=H,l)}function L(p,H,K,S,M,G){if(!p)return d;var Ae=1;if(H===b&&(H=6),S<0?(Ae=0,S=-S):S>15&&(Ae=2,S-=16),M<1||M>B||K!==I||S<8||S>15||H<0||H>9||G<0||G>A)return Oe(p,d);S===8&&(S=9);var pe=new C;return p.state=pe,pe.strm=p,pe.wrap=Ae,pe.gzhead=null,pe.w_bits=S,pe.w_size=1<<pe.w_bits,pe.w_mask=pe.w_size-1,pe.hash_bits=M+7,pe.hash_size=1<<pe.hash_bits,pe.hash_mask=pe.hash_size-1,pe.hash_shift=~~((pe.hash_bits+J-1)/J),pe.window=new t.Buf8(pe.w_size*2),pe.head=new t.Buf16(pe.hash_size),pe.prev=new t.Buf16(pe.w_size),pe.lit_bufsize=1<<M+6,pe.pending_buf_size=pe.lit_bufsize*4,pe.pending_buf=new t.Buf8(pe.pending_buf_size),pe.d_buf=1*pe.lit_bufsize,pe.l_buf=3*pe.lit_bufsize,pe.level=H,pe.strategy=G,pe.method=K,ae(p)}function X(p,H){return L(p,H,I,j,W,R)}function F(p,H){var K,S,M,G;if(!p||!p.state||H>f||H<0)return p?Oe(p,d):d;if(S=p.state,!p.output||!p.input&&p.avail_in!==0||S.status===Ne&&H!==u)return Oe(p,p.avail_out===0?g:d);if(S.strm=p,K=S.last_flush,S.last_flush=H,S.status===me)if(S.wrap===2)p.adler=0,D(S,31),D(S,139),D(S,8),S.gzhead?(D(S,(S.gzhead.text?1:0)+(S.gzhead.hcrc?2:0)+(S.gzhead.extra?4:0)+(S.gzhead.name?8:0)+(S.gzhead.comment?16:0)),D(S,S.gzhead.time&255),D(S,S.gzhead.time>>8&255),D(S,S.gzhead.time>>16&255),D(S,S.gzhead.time>>24&255),D(S,S.level===9?2:S.strategy>=x||S.level<2?4:0),D(S,S.gzhead.os&255),S.gzhead.extra&&S.gzhead.extra.length&&(D(S,S.gzhead.extra.length&255),D(S,S.gzhead.extra.length>>8&255)),S.gzhead.hcrc&&(p.adler=n(p.adler,S.pending_buf,S.pending,0)),S.gzindex=0,S.status=Te):(D(S,0),D(S,0),D(S,0),D(S,0),D(S,0),D(S,S.level===9?2:S.strategy>=x||S.level<2?4:0),D(S,ve),S.status=Fe);else{var Ae=I+(S.w_bits-8<<4)<<8,pe=-1;S.strategy>=x||S.level<2?pe=0:S.level<6?pe=1:S.level===6?pe=2:pe=3,Ae|=pe<<6,S.strstart!==0&&(Ae|=we),Ae+=31-Ae%31,S.status=Fe,z(S,Ae),S.strstart!==0&&(z(S,p.adler>>>16),z(S,p.adler&65535)),p.adler=1}if(S.status===Te)if(S.gzhead.extra){for(M=S.pending;S.gzindex<(S.gzhead.extra.length&65535)&&!(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),y(p),M=S.pending,S.pending===S.pending_buf_size));)D(S,S.gzhead.extra[S.gzindex]&255),S.gzindex++;S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),S.gzindex===S.gzhead.extra.length&&(S.gzindex=0,S.status=Le)}else S.status=Le;if(S.status===Le)if(S.gzhead.name){M=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),y(p),M=S.pending,S.pending===S.pending_buf_size)){G=1;break}S.gzindex<S.gzhead.name.length?G=S.gzhead.name.charCodeAt(S.gzindex++)&255:G=0,D(S,G)}while(G!==0);S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),G===0&&(S.gzindex=0,S.status=Ge)}else S.status=Ge;if(S.status===Ge)if(S.gzhead.comment){M=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),y(p),M=S.pending,S.pending===S.pending_buf_size)){G=1;break}S.gzindex<S.gzhead.comment.length?G=S.gzhead.comment.charCodeAt(S.gzindex++)&255:G=0,D(S,G)}while(G!==0);S.gzhead.hcrc&&S.pending>M&&(p.adler=n(p.adler,S.pending_buf,S.pending-M,M)),G===0&&(S.status=Xe)}else S.status=Xe;if(S.status===Xe&&(S.gzhead.hcrc?(S.pending+2>S.pending_buf_size&&y(p),S.pending+2<=S.pending_buf_size&&(D(S,p.adler&255),D(S,p.adler>>8&255),p.adler=0,S.status=Fe)):S.status=Fe),S.pending!==0){if(y(p),p.avail_out===0)return S.last_flush=-1,l}else if(p.avail_in===0&&gt(H)<=gt(K)&&H!==u)return Oe(p,g);if(S.status===Ne&&p.avail_in!==0)return Oe(p,g);if(p.avail_in!==0||S.lookahead!==0||H!==a&&S.status!==Ne){var ge=S.strategy===x?Et(S,H):S.strategy===T?Qe(S,H):St[S.level].func(S,H);if((ge===xe||ge===Re)&&(S.status=Ne),ge===le||ge===xe)return p.avail_out===0&&(S.last_flush=-1),l;if(ge===De&&(H===o?e._tr_align(S):H!==f&&(e._tr_stored_block(S,0,0,!1),H===s&&(E(S.head),S.lookahead===0&&(S.strstart=0,S.block_start=0,S.insert=0))),y(p),p.avail_out===0))return S.last_flush=-1,l}return H!==u?l:S.wrap<=0?h:(S.wrap===2?(D(S,p.adler&255),D(S,p.adler>>8&255),D(S,p.adler>>16&255),D(S,p.adler>>24&255),D(S,p.total_in&255),D(S,p.total_in>>8&255),D(S,p.total_in>>16&255),D(S,p.total_in>>24&255)):(z(S,p.adler>>>16),z(S,p.adler&65535)),y(p),S.wrap>0&&(S.wrap=-S.wrap),S.pending!==0?l:h)}function ne(p){var H;return!p||!p.state?d:(H=p.state.status,H!==me&&H!==Te&&H!==Le&&H!==Ge&&H!==Xe&&H!==Fe&&H!==Ne?Oe(p,d):(p.state=null,H===Fe?Oe(p,v):l))}function ke(p,H){var K=H.length,S,M,G,Ae,pe,ge,ut,rn;if(!p||!p.state||(S=p.state,Ae=S.wrap,Ae===2||Ae===1&&S.status!==me||S.lookahead))return d;for(Ae===1&&(p.adler=r(p.adler,H,K,0)),S.wrap=0,K>=S.w_size&&(Ae===0&&(E(S.head),S.strstart=0,S.block_start=0,S.insert=0),rn=new t.Buf8(S.w_size),t.arraySet(rn,H,K-S.w_size,S.w_size,0),H=rn,K=S.w_size),pe=p.avail_in,ge=p.next_in,ut=p.input,p.avail_in=K,p.next_in=0,p.input=H,ye(S);S.lookahead>=J;){M=S.strstart,G=S.lookahead-(J-1);do S.ins_h=(S.ins_h<<S.hash_shift^S.window[M+J-1])&S.hash_mask,S.prev[M&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=M,M++;while(--G);S.strstart=M,S.lookahead=J-1,ye(S)}return S.strstart+=S.lookahead,S.block_start=S.strstart,S.insert=S.lookahead,S.lookahead=0,S.match_length=S.prev_length=J-1,S.match_available=0,p.next_in=ge,p.input=ut,p.avail_in=pe,S.wrap=Ae,l}return Rr.deflateInit=X,Rr.deflateInit2=L,Rr.deflateReset=ae,Rr.deflateResetKeep=re,Rr.deflateSetHeader=fe,Rr.deflate=F,Rr.deflateEnd=ne,Rr.deflateSetDictionary=ke,Rr.deflateInfo="pako deflate (from Nodeca project)",Rr}var $n={},yl;function Cd(){if(yl)return $n;yl=1;var t=Kn(),e=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var n=new t.Buf8(256),i=0;i<256;i++)n[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;n[254]=n[254]=1,$n.string2buf=function(o){var s,u,f,l,h,d=o.length,v=0;for(l=0;l<d;l++)u=o.charCodeAt(l),(u&64512)===55296&&l+1<d&&(f=o.charCodeAt(l+1),(f&64512)===56320&&(u=65536+(u-55296<<10)+(f-56320),l++)),v+=u<128?1:u<2048?2:u<65536?3:4;for(s=new t.Buf8(v),h=0,l=0;h<v;l++)u=o.charCodeAt(l),(u&64512)===55296&&l+1<d&&(f=o.charCodeAt(l+1),(f&64512)===56320&&(u=65536+(u-55296<<10)+(f-56320),l++)),u<128?s[h++]=u:u<2048?(s[h++]=192|u>>>6,s[h++]=128|u&63):u<65536?(s[h++]=224|u>>>12,s[h++]=128|u>>>6&63,s[h++]=128|u&63):(s[h++]=240|u>>>18,s[h++]=128|u>>>12&63,s[h++]=128|u>>>6&63,s[h++]=128|u&63);return s};function a(o,s){if(s<65534&&(o.subarray&&r||!o.subarray&&e))return String.fromCharCode.apply(null,t.shrinkBuf(o,s));for(var u="",f=0;f<s;f++)u+=String.fromCharCode(o[f]);return u}return $n.buf2binstring=function(o){return a(o,o.length)},$n.binstring2buf=function(o){for(var s=new t.Buf8(o.length),u=0,f=s.length;u<f;u++)s[u]=o.charCodeAt(u);return s},$n.buf2string=function(o,s){var u,f,l,h,d=s||o.length,v=new Array(d*2);for(f=0,u=0;u<d;){if(l=o[u++],l<128){v[f++]=l;continue}if(h=n[l],h>4){v[f++]=65533,u+=h-1;continue}for(l&=h===2?31:h===3?15:7;h>1&&u<d;)l=l<<6|o[u++]&63,h--;if(h>1){v[f++]=65533;continue}l<65536?v[f++]=l:(l-=65536,v[f++]=55296|l>>10&1023,v[f++]=56320|l&1023)}return a(v,f)},$n.utf8border=function(o,s){var u;for(s=s||o.length,s>o.length&&(s=o.length),u=s-1;u>=0&&(o[u]&192)===128;)u--;return u<0||u===0?s:u+n[o[u]]>s?u:s},$n}var mu,ml;function Ed(){if(ml)return mu;ml=1;function t(){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}return mu=t,mu}var bl;function N1(){if(bl)return Di;bl=1;var t=L1(),e=Kn(),r=Cd(),n=_f(),i=Ed(),a=Object.prototype.toString,o=0,s=4,u=0,f=1,l=2,h=-1,d=0,v=8;function g(T){if(!(this instanceof g))return new g(T);this.options=e.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},T||{});var A=this.options;A.raw&&A.windowBits>0?A.windowBits=-A.windowBits:A.gzip&&A.windowBits>0&&A.windowBits<16&&(A.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var R=t.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(R!==u)throw new Error(n[R]);if(A.header&&t.deflateSetHeader(this.strm,A.header),A.dictionary){var P;if(typeof A.dictionary=="string"?P=r.string2buf(A.dictionary):a.call(A.dictionary)==="[object ArrayBuffer]"?P=new Uint8Array(A.dictionary):P=A.dictionary,R=t.deflateSetDictionary(this.strm,P),R!==u)throw new Error(n[R]);this._dict_set=!0}}g.prototype.push=function(T,A){var R=this.strm,P=this.options.chunkSize,I,B;if(this.ended)return!1;B=A===~~A?A:A===!0?s:o,typeof T=="string"?R.input=r.string2buf(T):a.call(T)==="[object ArrayBuffer]"?R.input=new Uint8Array(T):R.input=T,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new e.Buf8(P),R.next_out=0,R.avail_out=P),I=t.deflate(R,B),I!==f&&I!==u)return this.onEnd(I),this.ended=!0,!1;(R.avail_out===0||R.avail_in===0&&(B===s||B===l))&&(this.options.to==="string"?this.onData(r.buf2binstring(e.shrinkBuf(R.output,R.next_out))):this.onData(e.shrinkBuf(R.output,R.next_out)))}while((R.avail_in>0||R.avail_out===0)&&I!==f);return B===s?(I=t.deflateEnd(this.strm),this.onEnd(I),this.ended=!0,I===u):(B===l&&(this.onEnd(u),R.avail_out=0),!0)},g.prototype.onData=function(T){this.chunks.push(T)},g.prototype.onEnd=function(T){T===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg};function b(T,A){var R=new g(A);if(R.push(T,!0),R.err)throw R.msg||n[R.err];return R.result}function w(T,A){return A=A||{},A.raw=!0,b(T,A)}function x(T,A){return A=A||{},A.gzip=!0,b(T,A)}return Di.Deflate=g,Di.deflate=b,Di.deflateRaw=w,Di.gzip=x,Di}var Ti={},mr={},bu,wl;function U1(){if(wl)return bu;wl=1;var t=30,e=12;return bu=function(n,i){var a,o,s,u,f,l,h,d,v,g,b,w,x,T,A,R,P,I,B,j,W,N,V,Z,U;a=n.state,o=n.next_in,Z=n.input,s=o+(n.avail_in-5),u=n.next_out,U=n.output,f=u-(i-n.avail_out),l=u+(n.avail_out-257),h=a.dmax,d=a.wsize,v=a.whave,g=a.wnext,b=a.window,w=a.hold,x=a.bits,T=a.lencode,A=a.distcode,R=(1<<a.lenbits)-1,P=(1<<a.distbits)-1;e:do{x<15&&(w+=Z[o++]<<x,x+=8,w+=Z[o++]<<x,x+=8),I=T[w&R];t:for(;;){if(B=I>>>24,w>>>=B,x-=B,B=I>>>16&255,B===0)U[u++]=I&65535;else if(B&16){j=I&65535,B&=15,B&&(x<B&&(w+=Z[o++]<<x,x+=8),j+=w&(1<<B)-1,w>>>=B,x-=B),x<15&&(w+=Z[o++]<<x,x+=8,w+=Z[o++]<<x,x+=8),I=A[w&P];r:for(;;){if(B=I>>>24,w>>>=B,x-=B,B=I>>>16&255,B&16){if(W=I&65535,B&=15,x<B&&(w+=Z[o++]<<x,x+=8,x<B&&(w+=Z[o++]<<x,x+=8)),W+=w&(1<<B)-1,W>h){n.msg="invalid distance too far back",a.mode=t;break e}if(w>>>=B,x-=B,B=u-f,W>B){if(B=W-B,B>v&&a.sane){n.msg="invalid distance too far back",a.mode=t;break e}if(N=0,V=b,g===0){if(N+=d-B,B<j){j-=B;do U[u++]=b[N++];while(--B);N=u-W,V=U}}else if(g<B){if(N+=d+g-B,B-=g,B<j){j-=B;do U[u++]=b[N++];while(--B);if(N=0,g<j){B=g,j-=B;do U[u++]=b[N++];while(--B);N=u-W,V=U}}}else if(N+=g-B,B<j){j-=B;do U[u++]=b[N++];while(--B);N=u-W,V=U}for(;j>2;)U[u++]=V[N++],U[u++]=V[N++],U[u++]=V[N++],j-=3;j&&(U[u++]=V[N++],j>1&&(U[u++]=V[N++]))}else{N=u-W;do U[u++]=U[N++],U[u++]=U[N++],U[u++]=U[N++],j-=3;while(j>2);j&&(U[u++]=U[N++],j>1&&(U[u++]=U[N++]))}}else if((B&64)===0){I=A[(I&65535)+(w&(1<<B)-1)];continue r}else{n.msg="invalid distance code",a.mode=t;break e}break}}else if((B&64)===0){I=T[(I&65535)+(w&(1<<B)-1)];continue t}else if(B&32){a.mode=e;break e}else{n.msg="invalid literal/length code",a.mode=t;break e}break}}while(o<s&&u<l);j=x>>3,o-=j,x-=j<<3,w&=(1<<x)-1,n.next_in=o,n.next_out=u,n.avail_in=o<s?5+(s-o):5-(o-s),n.avail_out=u<l?257+(l-u):257-(u-l),a.hold=w,a.bits=x},bu}var wu,xl;function z1(){if(xl)return wu;xl=1;var t=Kn(),e=15,r=852,n=592,i=0,a=1,o=2,s=[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],u=[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],f=[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],l=[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];return wu=function(d,v,g,b,w,x,T,A){var R=A.bits,P=0,I=0,B=0,j=0,W=0,N=0,V=0,Z=0,U=0,ee=0,Y,$,J,ce,de,we=null,me=0,Te,Le=new t.Buf16(e+1),Ge=new t.Buf16(e+1),Xe=null,Fe=0,Ne,le,De;for(P=0;P<=e;P++)Le[P]=0;for(I=0;I<b;I++)Le[v[g+I]]++;for(W=R,j=e;j>=1&&Le[j]===0;j--);if(W>j&&(W=j),j===0)return w[x++]=1<<24|64<<16|0,w[x++]=1<<24|64<<16|0,A.bits=1,0;for(B=1;B<j&&Le[B]===0;B++);for(W<B&&(W=B),Z=1,P=1;P<=e;P++)if(Z<<=1,Z-=Le[P],Z<0)return-1;if(Z>0&&(d===i||j!==1))return-1;for(Ge[1]=0,P=1;P<e;P++)Ge[P+1]=Ge[P]+Le[P];for(I=0;I<b;I++)v[g+I]!==0&&(T[Ge[v[g+I]]++]=I);if(d===i?(we=Xe=T,Te=19):d===a?(we=s,me-=257,Xe=u,Fe-=257,Te=256):(we=f,Xe=l,Te=-1),ee=0,I=0,P=B,de=x,N=W,V=0,J=-1,U=1<<W,ce=U-1,d===a&&U>r||d===o&&U>n)return 1;for(;;){Ne=P-V,T[I]<Te?(le=0,De=T[I]):T[I]>Te?(le=Xe[Fe+T[I]],De=we[me+T[I]]):(le=96,De=0),Y=1<<P-V,$=1<<N,B=$;do $-=Y,w[de+(ee>>V)+$]=Ne<<24|le<<16|De|0;while($!==0);for(Y=1<<P-1;ee&Y;)Y>>=1;if(Y!==0?(ee&=Y-1,ee+=Y):ee=0,I++,--Le[P]===0){if(P===j)break;P=v[g+T[I]]}if(P>W&&(ee&ce)!==J){for(V===0&&(V=W),de+=B,N=P-V,Z=1<<N;N+V<j&&(Z-=Le[N+V],!(Z<=0));)N++,Z<<=1;if(U+=1<<N,d===a&&U>r||d===o&&U>n)return 1;J=ee&ce,w[J]=W<<24|N<<16|de-x|0}}return ee!==0&&(w[de+ee]=P-V<<24|64<<16|0),A.bits=W,0},wu}var Fl;function j1(){if(Fl)return mr;Fl=1;var t=Kn(),e=Sd(),r=Ad(),n=U1(),i=z1(),a=0,o=1,s=2,u=4,f=5,l=6,h=0,d=1,v=2,g=-2,b=-3,w=-4,x=-5,T=8,A=1,R=2,P=3,I=4,B=5,j=6,W=7,N=8,V=9,Z=10,U=11,ee=12,Y=13,$=14,J=15,ce=16,de=17,we=18,me=19,Te=20,Le=21,Ge=22,Xe=23,Fe=24,Ne=25,le=26,De=27,xe=28,Re=29,ve=30,Oe=31,gt=32,E=852,y=592,m=15,D=m;function z(L){return(L>>>24&255)+(L>>>8&65280)+((L&65280)<<8)+((L&255)<<24)}function te(){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 t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Q(L){var X;return!L||!L.state?g:(X=L.state,L.total_in=L.total_out=X.total=0,L.msg="",X.wrap&&(L.adler=X.wrap&1),X.mode=A,X.last=0,X.havedict=0,X.dmax=32768,X.head=null,X.hold=0,X.bits=0,X.lencode=X.lendyn=new t.Buf32(E),X.distcode=X.distdyn=new t.Buf32(y),X.sane=1,X.back=-1,h)}function ye(L){var X;return!L||!L.state?g:(X=L.state,X.wsize=0,X.whave=0,X.wnext=0,Q(L))}function Ue(L,X){var F,ne;return!L||!L.state||(ne=L.state,X<0?(F=0,X=-X):(F=(X>>4)+1,X<48&&(X&=15)),X&&(X<8||X>15))?g:(ne.window!==null&&ne.wbits!==X&&(ne.window=null),ne.wrap=F,ne.wbits=X,ye(L))}function He(L,X){var F,ne;return L?(ne=new te,L.state=ne,ne.window=null,F=Ue(L,X),F!==h&&(L.state=null),F):g}function _e(L){return He(L,D)}var Qe=!0,Et,wt;function St(L){if(Qe){var X;for(Et=new t.Buf32(512),wt=new t.Buf32(32),X=0;X<144;)L.lens[X++]=8;for(;X<256;)L.lens[X++]=9;for(;X<280;)L.lens[X++]=7;for(;X<288;)L.lens[X++]=8;for(i(o,L.lens,0,288,Et,0,L.work,{bits:9}),X=0;X<32;)L.lens[X++]=5;i(s,L.lens,0,32,wt,0,L.work,{bits:5}),Qe=!1}L.lencode=Et,L.lenbits=9,L.distcode=wt,L.distbits=5}function tr(L,X,F,ne){var ke,p=L.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new t.Buf8(p.wsize)),ne>=p.wsize?(t.arraySet(p.window,X,F-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(ke=p.wsize-p.wnext,ke>ne&&(ke=ne),t.arraySet(p.window,X,F-ne,ke,p.wnext),ne-=ke,ne?(t.arraySet(p.window,X,F-ne,ne,0),p.wnext=ne,p.whave=p.wsize):(p.wnext+=ke,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=ke))),0}function C(L,X){var F,ne,ke,p,H,K,S,M,G,Ae,pe,ge,ut,rn,Ot=0,lt,zt,Qt,ar,wo,xo,Bt,yr,Kt=new t.Buf8(4),nn,zr,cl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return g;F=L.state,F.mode===ee&&(F.mode=Y),H=L.next_out,ke=L.output,S=L.avail_out,p=L.next_in,ne=L.input,K=L.avail_in,M=F.hold,G=F.bits,Ae=K,pe=S,yr=h;e:for(;;)switch(F.mode){case A:if(F.wrap===0){F.mode=Y;break}for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(F.wrap&2&&M===35615){F.check=0,Kt[0]=M&255,Kt[1]=M>>>8&255,F.check=r(F.check,Kt,2,0),M=0,G=0,F.mode=R;break}if(F.flags=0,F.head&&(F.head.done=!1),!(F.wrap&1)||(((M&255)<<8)+(M>>8))%31){L.msg="incorrect header check",F.mode=ve;break}if((M&15)!==T){L.msg="unknown compression method",F.mode=ve;break}if(M>>>=4,G-=4,Bt=(M&15)+8,F.wbits===0)F.wbits=Bt;else if(Bt>F.wbits){L.msg="invalid window size",F.mode=ve;break}F.dmax=1<<Bt,L.adler=F.check=1,F.mode=M&512?Z:ee,M=0,G=0;break;case R:for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(F.flags=M,(F.flags&255)!==T){L.msg="unknown compression method",F.mode=ve;break}if(F.flags&57344){L.msg="unknown header flags set",F.mode=ve;break}F.head&&(F.head.text=M>>8&1),F.flags&512&&(Kt[0]=M&255,Kt[1]=M>>>8&255,F.check=r(F.check,Kt,2,0)),M=0,G=0,F.mode=P;case P:for(;G<32;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.head&&(F.head.time=M),F.flags&512&&(Kt[0]=M&255,Kt[1]=M>>>8&255,Kt[2]=M>>>16&255,Kt[3]=M>>>24&255,F.check=r(F.check,Kt,4,0)),M=0,G=0,F.mode=I;case I:for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.head&&(F.head.xflags=M&255,F.head.os=M>>8),F.flags&512&&(Kt[0]=M&255,Kt[1]=M>>>8&255,F.check=r(F.check,Kt,2,0)),M=0,G=0,F.mode=B;case B:if(F.flags&1024){for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.length=M,F.head&&(F.head.extra_len=M),F.flags&512&&(Kt[0]=M&255,Kt[1]=M>>>8&255,F.check=r(F.check,Kt,2,0)),M=0,G=0}else F.head&&(F.head.extra=null);F.mode=j;case j:if(F.flags&1024&&(ge=F.length,ge>K&&(ge=K),ge&&(F.head&&(Bt=F.head.extra_len-F.length,F.head.extra||(F.head.extra=new Array(F.head.extra_len)),t.arraySet(F.head.extra,ne,p,ge,Bt)),F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,F.length-=ge),F.length))break e;F.length=0,F.mode=W;case W:if(F.flags&2048){if(K===0)break e;ge=0;do Bt=ne[p+ge++],F.head&&Bt&&F.length<65536&&(F.head.name+=String.fromCharCode(Bt));while(Bt&&ge<K);if(F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,Bt)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=N;case N:if(F.flags&4096){if(K===0)break e;ge=0;do Bt=ne[p+ge++],F.head&&Bt&&F.length<65536&&(F.head.comment+=String.fromCharCode(Bt));while(Bt&&ge<K);if(F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,Bt)break e}else F.head&&(F.head.comment=null);F.mode=V;case V:if(F.flags&512){for(;G<16;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(M!==(F.check&65535)){L.msg="header crc mismatch",F.mode=ve;break}M=0,G=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),L.adler=F.check=0,F.mode=ee;break;case Z:for(;G<32;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}L.adler=F.check=z(M),M=0,G=0,F.mode=U;case U:if(F.havedict===0)return L.next_out=H,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=M,F.bits=G,v;L.adler=F.check=1,F.mode=ee;case ee:if(X===f||X===l)break e;case Y:if(F.last){M>>>=G&7,G-=G&7,F.mode=De;break}for(;G<3;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}switch(F.last=M&1,M>>>=1,G-=1,M&3){case 0:F.mode=$;break;case 1:if(St(F),F.mode=Te,X===l){M>>>=2,G-=2;break e}break;case 2:F.mode=de;break;case 3:L.msg="invalid block type",F.mode=ve}M>>>=2,G-=2;break;case $:for(M>>>=G&7,G-=G&7;G<32;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if((M&65535)!==(M>>>16^65535)){L.msg="invalid stored block lengths",F.mode=ve;break}if(F.length=M&65535,M=0,G=0,F.mode=J,X===l)break e;case J:F.mode=ce;case ce:if(ge=F.length,ge){if(ge>K&&(ge=K),ge>S&&(ge=S),ge===0)break e;t.arraySet(ke,ne,p,ge,H),K-=ge,p+=ge,S-=ge,H+=ge,F.length-=ge;break}F.mode=ee;break;case de:for(;G<14;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(F.nlen=(M&31)+257,M>>>=5,G-=5,F.ndist=(M&31)+1,M>>>=5,G-=5,F.ncode=(M&15)+4,M>>>=4,G-=4,F.nlen>286||F.ndist>30){L.msg="too many length or distance symbols",F.mode=ve;break}F.have=0,F.mode=we;case we:for(;F.have<F.ncode;){for(;G<3;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.lens[cl[F.have++]]=M&7,M>>>=3,G-=3}for(;F.have<19;)F.lens[cl[F.have++]]=0;if(F.lencode=F.lendyn,F.lenbits=7,nn={bits:F.lenbits},yr=i(a,F.lens,0,19,F.lencode,0,F.work,nn),F.lenbits=nn.bits,yr){L.msg="invalid code lengths set",F.mode=ve;break}F.have=0,F.mode=me;case me:for(;F.have<F.nlen+F.ndist;){for(;Ot=F.lencode[M&(1<<F.lenbits)-1],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(Qt<16)M>>>=lt,G-=lt,F.lens[F.have++]=Qt;else{if(Qt===16){for(zr=lt+2;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(M>>>=lt,G-=lt,F.have===0){L.msg="invalid bit length repeat",F.mode=ve;break}Bt=F.lens[F.have-1],ge=3+(M&3),M>>>=2,G-=2}else if(Qt===17){for(zr=lt+3;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}M>>>=lt,G-=lt,Bt=0,ge=3+(M&7),M>>>=3,G-=3}else{for(zr=lt+7;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}M>>>=lt,G-=lt,Bt=0,ge=11+(M&127),M>>>=7,G-=7}if(F.have+ge>F.nlen+F.ndist){L.msg="invalid bit length repeat",F.mode=ve;break}for(;ge--;)F.lens[F.have++]=Bt}}if(F.mode===ve)break;if(F.lens[256]===0){L.msg="invalid code -- missing end-of-block",F.mode=ve;break}if(F.lenbits=9,nn={bits:F.lenbits},yr=i(o,F.lens,0,F.nlen,F.lencode,0,F.work,nn),F.lenbits=nn.bits,yr){L.msg="invalid literal/lengths set",F.mode=ve;break}if(F.distbits=6,F.distcode=F.distdyn,nn={bits:F.distbits},yr=i(s,F.lens,F.nlen,F.ndist,F.distcode,0,F.work,nn),F.distbits=nn.bits,yr){L.msg="invalid distances set",F.mode=ve;break}if(F.mode=Te,X===l)break e;case Te:F.mode=Le;case Le:if(K>=6&&S>=258){L.next_out=H,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=M,F.bits=G,n(L,pe),H=L.next_out,ke=L.output,S=L.avail_out,p=L.next_in,ne=L.input,K=L.avail_in,M=F.hold,G=F.bits,F.mode===ee&&(F.back=-1);break}for(F.back=0;Ot=F.lencode[M&(1<<F.lenbits)-1],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(zt&&(zt&240)===0){for(ar=lt,wo=zt,xo=Qt;Ot=F.lencode[xo+((M&(1<<ar+wo)-1)>>ar)],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(ar+lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}M>>>=ar,G-=ar,F.back+=ar}if(M>>>=lt,G-=lt,F.back+=lt,F.length=Qt,zt===0){F.mode=le;break}if(zt&32){F.back=-1,F.mode=ee;break}if(zt&64){L.msg="invalid literal/length code",F.mode=ve;break}F.extra=zt&15,F.mode=Ge;case Ge:if(F.extra){for(zr=F.extra;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.length+=M&(1<<F.extra)-1,M>>>=F.extra,G-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=Xe;case Xe:for(;Ot=F.distcode[M&(1<<F.distbits)-1],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if((zt&240)===0){for(ar=lt,wo=zt,xo=Qt;Ot=F.distcode[xo+((M&(1<<ar+wo)-1)>>ar)],lt=Ot>>>24,zt=Ot>>>16&255,Qt=Ot&65535,!(ar+lt<=G);){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}M>>>=ar,G-=ar,F.back+=ar}if(M>>>=lt,G-=lt,F.back+=lt,zt&64){L.msg="invalid distance code",F.mode=ve;break}F.offset=Qt,F.extra=zt&15,F.mode=Fe;case Fe:if(F.extra){for(zr=F.extra;G<zr;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}F.offset+=M&(1<<F.extra)-1,M>>>=F.extra,G-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){L.msg="invalid distance too far back",F.mode=ve;break}F.mode=Ne;case Ne:if(S===0)break e;if(ge=pe-S,F.offset>ge){if(ge=F.offset-ge,ge>F.whave&&F.sane){L.msg="invalid distance too far back",F.mode=ve;break}ge>F.wnext?(ge-=F.wnext,ut=F.wsize-ge):ut=F.wnext-ge,ge>F.length&&(ge=F.length),rn=F.window}else rn=ke,ut=H-F.offset,ge=F.length;ge>S&&(ge=S),S-=ge,F.length-=ge;do ke[H++]=rn[ut++];while(--ge);F.length===0&&(F.mode=Le);break;case le:if(S===0)break e;ke[H++]=F.length,S--,F.mode=Le;break;case De:if(F.wrap){for(;G<32;){if(K===0)break e;K--,M|=ne[p++]<<G,G+=8}if(pe-=S,L.total_out+=pe,F.total+=pe,pe&&(L.adler=F.check=F.flags?r(F.check,ke,pe,H-pe):e(F.check,ke,pe,H-pe)),pe=S,(F.flags?M:z(M))!==F.check){L.msg="incorrect data check",F.mode=ve;break}M=0,G=0}F.mode=xe;case xe:if(F.wrap&&F.flags){for(;G<32;){if(K===0)break e;K--,M+=ne[p++]<<G,G+=8}if(M!==(F.total&4294967295)){L.msg="incorrect length check",F.mode=ve;break}M=0,G=0}F.mode=Re;case Re:yr=d;break e;case ve:yr=b;break e;case Oe:return w;case gt:default:return g}return L.next_out=H,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=M,F.bits=G,(F.wsize||pe!==L.avail_out&&F.mode<ve&&(F.mode<De||X!==u))&&tr(L,L.output,L.next_out,pe-L.avail_out),Ae-=L.avail_in,pe-=L.avail_out,L.total_in+=Ae,L.total_out+=pe,F.total+=pe,F.wrap&&pe&&(L.adler=F.check=F.flags?r(F.check,ke,pe,L.next_out-pe):e(F.check,ke,pe,L.next_out-pe)),L.data_type=F.bits+(F.last?64:0)+(F.mode===ee?128:0)+(F.mode===Te||F.mode===J?256:0),(Ae===0&&pe===0||X===u)&&yr===h&&(yr=x),yr}function re(L){if(!L||!L.state)return g;var X=L.state;return X.window&&(X.window=null),L.state=null,h}function ae(L,X){var F;return!L||!L.state||(F=L.state,(F.wrap&2)===0)?g:(F.head=X,X.done=!1,h)}function fe(L,X){var F=X.length,ne,ke,p;return!L||!L.state||(ne=L.state,ne.wrap!==0&&ne.mode!==U)?g:ne.mode===U&&(ke=1,ke=e(ke,X,F,0),ke!==ne.check)?b:(p=tr(L,X,F,F),p?(ne.mode=Oe,w):(ne.havedict=1,h))}return mr.inflateReset=ye,mr.inflateReset2=Ue,mr.inflateResetKeep=Q,mr.inflateInit=_e,mr.inflateInit2=He,mr.inflate=C,mr.inflateEnd=re,mr.inflateGetHeader=ae,mr.inflateSetDictionary=fe,mr.inflateInfo="pako inflate (from Nodeca project)",mr}var xu,Sl;function Dd(){return Sl||(Sl=1,xu={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}),xu}var Fu,Al;function V1(){if(Al)return Fu;Al=1;function t(){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}return Fu=t,Fu}var Cl;function q1(){if(Cl)return Ti;Cl=1;var t=j1(),e=Kn(),r=Cd(),n=Dd(),i=_f(),a=Ed(),o=V1(),s=Object.prototype.toString;function u(h){if(!(this instanceof u))return new u(h);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},h||{});var d=this.options;d.raw&&d.windowBits>=0&&d.windowBits<16&&(d.windowBits=-d.windowBits,d.windowBits===0&&(d.windowBits=-15)),d.windowBits>=0&&d.windowBits<16&&!(h&&h.windowBits)&&(d.windowBits+=32),d.windowBits>15&&d.windowBits<48&&(d.windowBits&15)===0&&(d.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var v=t.inflateInit2(this.strm,d.windowBits);if(v!==n.Z_OK)throw new Error(i[v]);if(this.header=new o,t.inflateGetHeader(this.strm,this.header),d.dictionary&&(typeof d.dictionary=="string"?d.dictionary=r.string2buf(d.dictionary):s.call(d.dictionary)==="[object ArrayBuffer]"&&(d.dictionary=new Uint8Array(d.dictionary)),d.raw&&(v=t.inflateSetDictionary(this.strm,d.dictionary),v!==n.Z_OK)))throw new Error(i[v])}u.prototype.push=function(h,d){var v=this.strm,g=this.options.chunkSize,b=this.options.dictionary,w,x,T,A,R,P=!1;if(this.ended)return!1;x=d===~~d?d:d===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof h=="string"?v.input=r.binstring2buf(h):s.call(h)==="[object ArrayBuffer]"?v.input=new Uint8Array(h):v.input=h,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new e.Buf8(g),v.next_out=0,v.avail_out=g),w=t.inflate(v,n.Z_NO_FLUSH),w===n.Z_NEED_DICT&&b&&(w=t.inflateSetDictionary(this.strm,b)),w===n.Z_BUF_ERROR&&P===!0&&(w=n.Z_OK,P=!1),w!==n.Z_STREAM_END&&w!==n.Z_OK)return this.onEnd(w),this.ended=!0,!1;v.next_out&&(v.avail_out===0||w===n.Z_STREAM_END||v.avail_in===0&&(x===n.Z_FINISH||x===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(T=r.utf8border(v.output,v.next_out),A=v.next_out-T,R=r.buf2string(v.output,T),v.next_out=A,v.avail_out=g-A,A&&e.arraySet(v.output,v.output,T,A,0),this.onData(R)):this.onData(e.shrinkBuf(v.output,v.next_out))),v.avail_in===0&&v.avail_out===0&&(P=!0)}while((v.avail_in>0||v.avail_out===0)&&w!==n.Z_STREAM_END);return w===n.Z_STREAM_END&&(x=n.Z_FINISH),x===n.Z_FINISH?(w=t.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===n.Z_OK):(x===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),v.avail_out=0),!0)},u.prototype.onData=function(h){this.chunks.push(h)},u.prototype.onEnd=function(h){h===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg};function f(h,d){var v=new u(d);if(v.push(h,!0),v.err)throw v.msg||i[v.err];return v.result}function l(h,d){return d=d||{},d.raw=!0,f(h,d)}return Ti.Inflate=u,Ti.inflate=f,Ti.inflateRaw=l,Ti.ungzip=f,Ti}var Su,El;function W1(){if(El)return Su;El=1;var t=Kn().assign,e=N1(),r=q1(),n=Dd(),i={};return t(i,e,r,n),Su=i,Su}var G1=W1();const Ir=B1.getDefaultExportFromCjs(G1);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ct(t,e){return e={exports:{}},t(e,e.exports),e.exports}function Xn(t){return t&&t.default||t}var H1=J1,K1=_1,X1=tg,Xr=[],wr=[],Z1=typeof Uint8Array<"u"?Uint8Array:Array,Au="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Oi=0,Y1=Au.length;Oi<Y1;++Oi)Xr[Oi]=Au[Oi],wr[Au.charCodeAt(Oi)]=Oi;wr[45]=62;wr[95]=63;function Td(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function J1(t){var e=Td(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Q1(t,e,r){return(e+r)*3/4-r}function _1(t){var e,r=Td(t),n=r[0],i=r[1],a=new Z1(Q1(t,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u<s;u+=4)e=wr[t.charCodeAt(u)]<<18|wr[t.charCodeAt(u+1)]<<12|wr[t.charCodeAt(u+2)]<<6|wr[t.charCodeAt(u+3)],a[o++]=e>>16&255,a[o++]=e>>8&255,a[o++]=e&255;return i===2&&(e=wr[t.charCodeAt(u)]<<2|wr[t.charCodeAt(u+1)]>>4,a[o++]=e&255),i===1&&(e=wr[t.charCodeAt(u)]<<10|wr[t.charCodeAt(u+1)]<<4|wr[t.charCodeAt(u+2)]>>2,a[o++]=e>>8&255,a[o++]=e&255),a}function $1(t){return Xr[t>>18&63]+Xr[t>>12&63]+Xr[t>>6&63]+Xr[t&63]}function eg(t,e,r){for(var n,i=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(t[a+2]&255),i.push($1(n));return i.join("")}function tg(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,s=r-n;o<s;o+=a)i.push(eg(t,o,o+a>s?s:o+a));return n===1?(e=t[r-1],i.push(Xr[e>>2]+Xr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Xr[e>>10]+Xr[e>>4&63]+Xr[e<<2&63]+"=")),i.join("")}var Cu={byteLength:H1,toByteArray:K1,fromByteArray:X1},rg=function(e,r,n,i,a){var o,s,u=a*8-i-1,f=(1<<u)-1,l=f>>1,h=-7,d=n?a-1:0,v=n?-1:1,g=e[r+d];for(d+=v,o=g&(1<<-h)-1,g>>=-h,h+=u;h>0;o=o*256+e[r+d],d+=v,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=i;h>0;s=s*256+e[r+d],d+=v,h-=8);if(o===0)o=1-l;else{if(o===f)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-l}return(g?-1:1)*s*Math.pow(2,o-i)},ng=function(e,r,n,i,a,o){var s,u,f,l=o*8-a-1,h=(1<<l)-1,d=h>>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:o-1,b=i?1:-1,w=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,s=h):(s=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+d>=1?r+=v/f:r+=v*Math.pow(2,1-d),r*f>=2&&(s++,f/=2),s+d>=h?(u=0,s=h):s+d>=1?(u=(r*f-1)*Math.pow(2,a),s=s+d):(u=r*Math.pow(2,d-1)*Math.pow(2,a),s=0));a>=8;e[n+g]=u&255,g+=b,u/=256,a-=8);for(s=s<<a|u,l+=a;l>0;e[n+g]=s&255,g+=b,s/=256,l-=8);e[n+g-b]|=w*128},ki={read:rg,write:ng},dr=Ct(function(t,e){var r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var E=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(E,y),E.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(E){if(E>n)throw new RangeError('The value "'+E+'" is invalid for option "size"');var y=new Uint8Array(E);return Object.setPrototypeOf(y,o.prototype),y}function o(E,y,m){if(typeof E=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(E)}return s(E,y,m)}o.poolSize=8192;function s(E,y,m){if(typeof E=="string")return h(E,y);if(ArrayBuffer.isView(E))return d(E);if(E==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(ve(E,ArrayBuffer)||E&&ve(E.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ve(E,SharedArrayBuffer)||E&&ve(E.buffer,SharedArrayBuffer)))return v(E,y,m);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var D=E.valueOf&&E.valueOf();if(D!=null&&D!==E)return o.from(D,y,m);var z=g(E);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return o.from(E[Symbol.toPrimitive]("string"),y,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}o.from=function(E,y,m){return s(E,y,m)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function u(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function f(E,y,m){return u(E),E<=0?a(E):y!==void 0?typeof m=="string"?a(E).fill(y,m):a(E).fill(y):a(E)}o.alloc=function(E,y,m){return f(E,y,m)};function l(E){return u(E),a(E<0?0:b(E)|0)}o.allocUnsafe=function(E){return l(E)},o.allocUnsafeSlow=function(E){return l(E)};function h(E,y){if((typeof y!="string"||y==="")&&(y="utf8"),!o.isEncoding(y))throw new TypeError("Unknown encoding: "+y);var m=x(E,y)|0,D=a(m),z=D.write(E,y);return z!==m&&(D=D.slice(0,z)),D}function d(E){for(var y=E.length<0?0:b(E.length)|0,m=a(y),D=0;D<y;D+=1)m[D]=E[D]&255;return m}function v(E,y,m){if(y<0||E.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(E.byteLength<y+(m||0))throw new RangeError('"length" is outside of buffer bounds');var D;return y===void 0&&m===void 0?D=new Uint8Array(E):m===void 0?D=new Uint8Array(E,y):D=new Uint8Array(E,y,m),Object.setPrototypeOf(D,o.prototype),D}function g(E){if(o.isBuffer(E)){var y=b(E.length)|0,m=a(y);return m.length===0||E.copy(m,0,0,y),m}if(E.length!==void 0)return typeof E.length!="number"||Oe(E.length)?a(0):d(E);if(E.type==="Buffer"&&Array.isArray(E.data))return d(E.data)}function b(E){if(E>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return E|0}function w(E){return+E!=E&&(E=0),o.alloc(+E)}o.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==o.prototype},o.compare=function(y,m){if(ve(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),ve(m,Uint8Array)&&(m=o.from(m,m.offset,m.byteLength)),!o.isBuffer(y)||!o.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===m)return 0;for(var D=y.length,z=m.length,te=0,Q=Math.min(D,z);te<Q;++te)if(y[te]!==m[te]){D=y[te],z=m[te];break}return D<z?-1:z<D?1:0},o.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(y,m){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return o.alloc(0);var D;if(m===void 0)for(m=0,D=0;D<y.length;++D)m+=y[D].length;var z=o.allocUnsafe(m),te=0;for(D=0;D<y.length;++D){var Q=y[D];if(ve(Q,Uint8Array)&&(Q=o.from(Q)),!o.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy(z,te),te+=Q.length}return z};function x(E,y){if(o.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||ve(E,ArrayBuffer))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);var m=E.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&m===0)return 0;for(var z=!1;;)switch(y){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return Ne(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return xe(E).length;default:if(z)return D?-1:Ne(E).length;y=(""+y).toLowerCase(),z=!0}}o.byteLength=x;function T(E,y,m){var D=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,y>>>=0,m<=y))return"";for(E||(E="utf8");;)switch(E){case"hex":return ce(this,y,m);case"utf8":case"utf-8":return U(this,y,m);case"ascii":return $(this,y,m);case"latin1":case"binary":return J(this,y,m);case"base64":return Z(this,y,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,y,m);default:if(D)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),D=!0}}o.prototype._isBuffer=!0;function A(E,y,m){var D=E[y];E[y]=E[m],E[m]=D}o.prototype.swap16=function(){var y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var m=0;m<y;m+=2)A(this,m,m+1);return this},o.prototype.swap32=function(){var y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var m=0;m<y;m+=4)A(this,m,m+3),A(this,m+1,m+2);return this},o.prototype.swap64=function(){var y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var m=0;m<y;m+=8)A(this,m,m+7),A(this,m+1,m+6),A(this,m+2,m+5),A(this,m+3,m+4);return this},o.prototype.toString=function(){var y=this.length;return y===0?"":arguments.length===0?U(this,0,y):T.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(y){if(!o.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:o.compare(this,y)===0},o.prototype.inspect=function(){var y="",m=e.INSPECT_MAX_BYTES;return y=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(y+=" ... "),"<Buffer "+y+">"},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(y,m,D,z,te){if(ve(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),!o.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(m===void 0&&(m=0),D===void 0&&(D=y?y.length:0),z===void 0&&(z=0),te===void 0&&(te=this.length),m<0||D>y.length||z<0||te>this.length)throw new RangeError("out of range index");if(z>=te&&m>=D)return 0;if(z>=te)return-1;if(m>=D)return 1;if(m>>>=0,D>>>=0,z>>>=0,te>>>=0,this===y)return 0;for(var Q=te-z,ye=D-m,Ue=Math.min(Q,ye),He=this.slice(z,te),_e=y.slice(m,D),Qe=0;Qe<Ue;++Qe)if(He[Qe]!==_e[Qe]){Q=He[Qe],ye=_e[Qe];break}return Q<ye?-1:ye<Q?1:0};function R(E,y,m,D,z){if(E.length===0)return-1;if(typeof m=="string"?(D=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,Oe(m)&&(m=z?0:E.length-1),m<0&&(m=E.length+m),m>=E.length){if(z)return-1;m=E.length-1}else if(m<0)if(z)m=0;else return-1;if(typeof y=="string"&&(y=o.from(y,D)),o.isBuffer(y))return y.length===0?-1:P(E,y,m,D,z);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(E,y,m):Uint8Array.prototype.lastIndexOf.call(E,y,m):P(E,[y],m,D,z);throw new TypeError("val must be string, number or Buffer")}function P(E,y,m,D,z){var te=1,Q=E.length,ye=y.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(E.length<2||y.length<2)return-1;te=2,Q/=2,ye/=2,m/=2}function Ue(wt,St){return te===1?wt[St]:wt.readUInt16BE(St*te)}var He;if(z){var _e=-1;for(He=m;He<Q;He++)if(Ue(E,He)===Ue(y,_e===-1?0:He-_e)){if(_e===-1&&(_e=He),He-_e+1===ye)return _e*te}else _e!==-1&&(He-=He-_e),_e=-1}else for(m+ye>Q&&(m=Q-ye),He=m;He>=0;He--){for(var Qe=!0,Et=0;Et<ye;Et++)if(Ue(E,He+Et)!==Ue(y,Et)){Qe=!1;break}if(Qe)return He}return-1}o.prototype.includes=function(y,m,D){return this.indexOf(y,m,D)!==-1},o.prototype.indexOf=function(y,m,D){return R(this,y,m,D,!0)},o.prototype.lastIndexOf=function(y,m,D){return R(this,y,m,D,!1)};function I(E,y,m,D){m=Number(m)||0;var z=E.length-m;D?(D=Number(D),D>z&&(D=z)):D=z;var te=y.length;D>te/2&&(D=te/2);for(var Q=0;Q<D;++Q){var ye=parseInt(y.substr(Q*2,2),16);if(Oe(ye))return Q;E[m+Q]=ye}return Q}function B(E,y,m,D){return Re(Ne(y,E.length-m),E,m,D)}function j(E,y,m,D){return Re(le(y),E,m,D)}function W(E,y,m,D){return j(E,y,m,D)}function N(E,y,m,D){return Re(xe(y),E,m,D)}function V(E,y,m,D){return Re(De(y,E.length-m),E,m,D)}o.prototype.write=function(y,m,D,z){if(m===void 0)z="utf8",D=this.length,m=0;else if(D===void 0&&typeof m=="string")z=m,D=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(D)?(D=D>>>0,z===void 0&&(z="utf8")):(z=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var te=this.length-m;if((D===void 0||D>te)&&(D=te),y.length>0&&(D<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");for(var Q=!1;;)switch(z){case"hex":return I(this,y,m,D);case"utf8":case"utf-8":return B(this,y,m,D);case"ascii":return j(this,y,m,D);case"latin1":case"binary":return W(this,y,m,D);case"base64":return N(this,y,m,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,y,m,D);default:if(Q)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),Q=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(E,y,m){return y===0&&m===E.length?Cu.fromByteArray(E):Cu.fromByteArray(E.slice(y,m))}function U(E,y,m){m=Math.min(E.length,m);for(var D=[],z=y;z<m;){var te=E[z],Q=null,ye=te>239?4:te>223?3:te>191?2:1;if(z+ye<=m){var Ue,He,_e,Qe;switch(ye){case 1:te<128&&(Q=te);break;case 2:Ue=E[z+1],(Ue&192)===128&&(Qe=(te&31)<<6|Ue&63,Qe>127&&(Q=Qe));break;case 3:Ue=E[z+1],He=E[z+2],(Ue&192)===128&&(He&192)===128&&(Qe=(te&15)<<12|(Ue&63)<<6|He&63,Qe>2047&&(Qe<55296||Qe>57343)&&(Q=Qe));break;case 4:Ue=E[z+1],He=E[z+2],_e=E[z+3],(Ue&192)===128&&(He&192)===128&&(_e&192)===128&&(Qe=(te&15)<<18|(Ue&63)<<12|(He&63)<<6|_e&63,Qe>65535&&Qe<1114112&&(Q=Qe))}}Q===null?(Q=65533,ye=1):Q>65535&&(Q-=65536,D.push(Q>>>10&1023|55296),Q=56320|Q&1023),D.push(Q),z+=ye}return Y(D)}var ee=4096;function Y(E){var y=E.length;if(y<=ee)return String.fromCharCode.apply(String,E);for(var m="",D=0;D<y;)m+=String.fromCharCode.apply(String,E.slice(D,D+=ee));return m}function $(E,y,m){var D="";m=Math.min(E.length,m);for(var z=y;z<m;++z)D+=String.fromCharCode(E[z]&127);return D}function J(E,y,m){var D="";m=Math.min(E.length,m);for(var z=y;z<m;++z)D+=String.fromCharCode(E[z]);return D}function ce(E,y,m){var D=E.length;(!y||y<0)&&(y=0),(!m||m<0||m>D)&&(m=D);for(var z="",te=y;te<m;++te)z+=gt[E[te]];return z}function de(E,y,m){for(var D=E.slice(y,m),z="",te=0;te<D.length;te+=2)z+=String.fromCharCode(D[te]+D[te+1]*256);return z}o.prototype.slice=function(y,m){var D=this.length;y=~~y,m=m===void 0?D:~~m,y<0?(y+=D,y<0&&(y=0)):y>D&&(y=D),m<0?(m+=D,m<0&&(m=0)):m>D&&(m=D),m<y&&(m=y);var z=this.subarray(y,m);return Object.setPrototypeOf(z,o.prototype),z};function we(E,y,m){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+y>m)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var z=this[y],te=1,Q=0;++Q<m&&(te*=256);)z+=this[y+Q]*te;return z},o.prototype.readUIntBE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var z=this[y+--m],te=1;m>0&&(te*=256);)z+=this[y+--m]*te;return z},o.prototype.readUInt8=function(y,m){return y=y>>>0,m||we(y,1,this.length),this[y]},o.prototype.readUInt16LE=function(y,m){return y=y>>>0,m||we(y,2,this.length),this[y]|this[y+1]<<8},o.prototype.readUInt16BE=function(y,m){return y=y>>>0,m||we(y,2,this.length),this[y]<<8|this[y+1]},o.prototype.readUInt32LE=function(y,m){return y=y>>>0,m||we(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},o.prototype.readUInt32BE=function(y,m){return y=y>>>0,m||we(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},o.prototype.readIntLE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var z=this[y],te=1,Q=0;++Q<m&&(te*=256);)z+=this[y+Q]*te;return te*=128,z>=te&&(z-=Math.pow(2,8*m)),z},o.prototype.readIntBE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var z=m,te=1,Q=this[y+--z];z>0&&(te*=256);)Q+=this[y+--z]*te;return te*=128,Q>=te&&(Q-=Math.pow(2,8*m)),Q},o.prototype.readInt8=function(y,m){return y=y>>>0,m||we(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},o.prototype.readInt16LE=function(y,m){y=y>>>0,m||we(y,2,this.length);var D=this[y]|this[y+1]<<8;return D&32768?D|4294901760:D},o.prototype.readInt16BE=function(y,m){y=y>>>0,m||we(y,2,this.length);var D=this[y+1]|this[y]<<8;return D&32768?D|4294901760:D},o.prototype.readInt32LE=function(y,m){return y=y>>>0,m||we(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},o.prototype.readInt32BE=function(y,m){return y=y>>>0,m||we(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},o.prototype.readFloatLE=function(y,m){return y=y>>>0,m||we(y,4,this.length),ki.read(this,y,!0,23,4)},o.prototype.readFloatBE=function(y,m){return y=y>>>0,m||we(y,4,this.length),ki.read(this,y,!1,23,4)},o.prototype.readDoubleLE=function(y,m){return y=y>>>0,m||we(y,8,this.length),ki.read(this,y,!0,52,8)},o.prototype.readDoubleBE=function(y,m){return y=y>>>0,m||we(y,8,this.length),ki.read(this,y,!1,52,8)};function me(E,y,m,D,z,te){if(!o.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>z||y<te)throw new RangeError('"value" argument is out of bounds');if(m+D>E.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(y,m,D,z){if(y=+y,m=m>>>0,D=D>>>0,!z){var te=Math.pow(2,8*D)-1;me(this,y,m,D,te,0)}var Q=1,ye=0;for(this[m]=y&255;++ye<D&&(Q*=256);)this[m+ye]=y/Q&255;return m+D},o.prototype.writeUIntBE=function(y,m,D,z){if(y=+y,m=m>>>0,D=D>>>0,!z){var te=Math.pow(2,8*D)-1;me(this,y,m,D,te,0)}var Q=D-1,ye=1;for(this[m+Q]=y&255;--Q>=0&&(ye*=256);)this[m+Q]=y/ye&255;return m+D},o.prototype.writeUInt8=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,1,255,0),this[m]=y&255,m+1},o.prototype.writeUInt16LE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,2,65535,0),this[m]=y&255,this[m+1]=y>>>8,m+2},o.prototype.writeUInt16BE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,2,65535,0),this[m]=y>>>8,this[m+1]=y&255,m+2},o.prototype.writeUInt32LE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,4,4294967295,0),this[m+3]=y>>>24,this[m+2]=y>>>16,this[m+1]=y>>>8,this[m]=y&255,m+4},o.prototype.writeUInt32BE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,4,4294967295,0),this[m]=y>>>24,this[m+1]=y>>>16,this[m+2]=y>>>8,this[m+3]=y&255,m+4},o.prototype.writeIntLE=function(y,m,D,z){if(y=+y,m=m>>>0,!z){var te=Math.pow(2,8*D-1);me(this,y,m,D,te-1,-te)}var Q=0,ye=1,Ue=0;for(this[m]=y&255;++Q<D&&(ye*=256);)y<0&&Ue===0&&this[m+Q-1]!==0&&(Ue=1),this[m+Q]=(y/ye>>0)-Ue&255;return m+D},o.prototype.writeIntBE=function(y,m,D,z){if(y=+y,m=m>>>0,!z){var te=Math.pow(2,8*D-1);me(this,y,m,D,te-1,-te)}var Q=D-1,ye=1,Ue=0;for(this[m+Q]=y&255;--Q>=0&&(ye*=256);)y<0&&Ue===0&&this[m+Q+1]!==0&&(Ue=1),this[m+Q]=(y/ye>>0)-Ue&255;return m+D},o.prototype.writeInt8=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,1,127,-128),y<0&&(y=255+y+1),this[m]=y&255,m+1},o.prototype.writeInt16LE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,2,32767,-32768),this[m]=y&255,this[m+1]=y>>>8,m+2},o.prototype.writeInt16BE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,2,32767,-32768),this[m]=y>>>8,this[m+1]=y&255,m+2},o.prototype.writeInt32LE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,4,2147483647,-2147483648),this[m]=y&255,this[m+1]=y>>>8,this[m+2]=y>>>16,this[m+3]=y>>>24,m+4},o.prototype.writeInt32BE=function(y,m,D){return y=+y,m=m>>>0,D||me(this,y,m,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[m]=y>>>24,this[m+1]=y>>>16,this[m+2]=y>>>8,this[m+3]=y&255,m+4};function Te(E,y,m,D,z,te){if(m+D>E.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function Le(E,y,m,D,z){return y=+y,m=m>>>0,z||Te(E,y,m,4),ki.write(E,y,m,D,23,4),m+4}o.prototype.writeFloatLE=function(y,m,D){return Le(this,y,m,!0,D)},o.prototype.writeFloatBE=function(y,m,D){return Le(this,y,m,!1,D)};function Ge(E,y,m,D,z){return y=+y,m=m>>>0,z||Te(E,y,m,8),ki.write(E,y,m,D,52,8),m+8}o.prototype.writeDoubleLE=function(y,m,D){return Ge(this,y,m,!0,D)},o.prototype.writeDoubleBE=function(y,m,D){return Ge(this,y,m,!1,D)},o.prototype.copy=function(y,m,D,z){if(!o.isBuffer(y))throw new TypeError("argument should be a Buffer");if(D||(D=0),!z&&z!==0&&(z=this.length),m>=y.length&&(m=y.length),m||(m=0),z>0&&z<D&&(z=D),z===D||y.length===0||this.length===0)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),y.length-m<z-D&&(z=y.length-m+D);var te=z-D;if(this===y&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(m,D,z);else if(this===y&&D<m&&m<z)for(var Q=te-1;Q>=0;--Q)y[Q+m]=this[Q+D];else Uint8Array.prototype.set.call(y,this.subarray(D,z),m);return te},o.prototype.fill=function(y,m,D,z){if(typeof y=="string"){if(typeof m=="string"?(z=m,m=0,D=this.length):typeof D=="string"&&(z=D,D=this.length),z!==void 0&&typeof z!="string")throw new TypeError("encoding must be a string");if(typeof z=="string"&&!o.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(y.length===1){var te=y.charCodeAt(0);(z==="utf8"&&te<128||z==="latin1")&&(y=te)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(m<0||this.length<m||this.length<D)throw new RangeError("Out of range index");if(D<=m)return this;m=m>>>0,D=D===void 0?this.length:D>>>0,y||(y=0);var Q;if(typeof y=="number")for(Q=m;Q<D;++Q)this[Q]=y;else{var ye=o.isBuffer(y)?y:o.from(y,z),Ue=ye.length;if(Ue===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(Q=0;Q<D-m;++Q)this[Q+m]=ye[Q%Ue]}return this};var Xe=/[^+/0-9A-Za-z-_]/g;function Fe(E){if(E=E.split("=")[0],E=E.trim().replace(Xe,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function Ne(E,y){y=y||1/0;for(var m,D=E.length,z=null,te=[],Q=0;Q<D;++Q){if(m=E.charCodeAt(Q),m>55295&&m<57344){if(!z){if(m>56319){(y-=3)>-1&&te.push(239,191,189);continue}else if(Q+1===D){(y-=3)>-1&&te.push(239,191,189);continue}z=m;continue}if(m<56320){(y-=3)>-1&&te.push(239,191,189),z=m;continue}m=(z-55296<<10|m-56320)+65536}else z&&(y-=3)>-1&&te.push(239,191,189);if(z=null,m<128){if((y-=1)<0)break;te.push(m)}else if(m<2048){if((y-=2)<0)break;te.push(m>>6|192,m&63|128)}else if(m<65536){if((y-=3)<0)break;te.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((y-=4)<0)break;te.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return te}function le(E){for(var y=[],m=0;m<E.length;++m)y.push(E.charCodeAt(m)&255);return y}function De(E,y){for(var m,D,z,te=[],Q=0;Q<E.length&&!((y-=2)<0);++Q)m=E.charCodeAt(Q),D=m>>8,z=m%256,te.push(z),te.push(D);return te}function xe(E){return Cu.toByteArray(Fe(E))}function Re(E,y,m,D){for(var z=0;z<D&&!(z+m>=y.length||z>=E.length);++z)y[z+m]=E[z];return z}function ve(E,y){return E instanceof y||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===y.name}function Oe(E){return E!==E}var gt=(function(){for(var E="0123456789abcdef",y=new Array(256),m=0;m<16;++m)for(var D=m*16,z=0;z<16;++z)y[D+z]=E[m]+E[z];return y})()}),mt=dr.Buffer;dr.SlowBuffer;dr.INSPECT_MAX_BYTES;dr.kMaxLength;var ig;function Rn(){}Rn.prototype=Object.create(null);function ct(){ct.init.call(this)}ct.EventEmitter=ct;ct.usingDomains=!1;ct.prototype.domain=void 0;ct.prototype._events=void 0;ct.prototype._maxListeners=void 0;ct.defaultMaxListeners=10;ct.init=function(){this.domain=null,ct.usingDomains&&ig.active,(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new Rn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ct.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this};function Od(t){return t._maxListeners===void 0?ct.defaultMaxListeners:t._maxListeners}ct.prototype.getMaxListeners=function(){return Od(this)};function ag(t,e,r){if(e)t.call(r);else for(var n=t.length,i=ao(t,n),a=0;a<n;++a)i[a].call(r)}function og(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=ao(t,i),o=0;o<i;++o)a[o].call(r,n)}function sg(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=ao(t,a),s=0;s<a;++s)o[s].call(r,n,i)}function ug(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=ao(t,o),u=0;u<o;++u)s[u].call(r,n,i,a)}function fg(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=ao(t,i),o=0;o<i;++o)a[o].apply(r,n)}ct.prototype.emit=function(e){var r,n,i,a,o,s,u,f=e==="error";if(s=this._events,s)f=f&&s.error==null;else if(!f)return!1;if(u=this.domain,f){if(r=arguments[1],u)r||(r=new Error('Uncaught, unspecified "error" event')),r.domainEmitter=this,r.domain=u,r.domainThrown=!1,u.emit("error",r);else{if(r instanceof Error)throw r;var l=new Error('Uncaught, unspecified "error" event. ('+r+")");throw l.context=r,l}return!1}if(n=s[e],!n)return!1;var h=typeof n=="function";switch(i=arguments.length,i){case 1:ag(n,h,this);break;case 2:og(n,h,this,arguments[1]);break;case 3:sg(n,h,this,arguments[1],arguments[2]);break;case 4:ug(n,h,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(i-1),o=1;o<i;o++)a[o-1]=arguments[o];fg(n,h,this,a)}return!0};function kd(t,e,r,n){var i,a,o;if(typeof r!="function")throw new TypeError('"listener" argument must be a function');if(a=t._events,a?(a.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),a=t._events),o=a[e]):(a=t._events=new Rn,t._eventsCount=0),!o)o=a[e]=r,++t._eventsCount;else if(typeof o=="function"?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),!o.warned&&(i=Od(t),i&&i>0&&o.length>i)){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=o.length,cg(s)}return t}function cg(t){typeof console.warn=="function"?console.warn(t):console.log(t)}ct.prototype.addListener=function(e,r){return kd(this,e,r,!1)};ct.prototype.on=ct.prototype.addListener;ct.prototype.prependListener=function(e,r){return kd(this,e,r,!0)};function Pd(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}ct.prototype.once=function(e,r){if(typeof r!="function")throw new TypeError('"listener" argument must be a function');return this.on(e,Pd(this,e,r)),this};ct.prototype.prependOnceListener=function(e,r){if(typeof r!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Pd(this,e,r)),this};ct.prototype.removeListener=function(e,r){var n,i,a,o,s;if(typeof r!="function")throw new TypeError('"listener" argument must be a function');if(i=this._events,!i)return this;if(n=i[e],!n)return this;if(n===r||n.listener&&n.listener===r)--this._eventsCount===0?this._events=new Rn:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length;o-- >0;)if(n[o]===r||n[o].listener&&n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount===0)return this._events=new Rn,this;delete i[e]}else lg(n,a);i.removeListener&&this.emit("removeListener",e,s||r)}return this};ct.prototype.removeAllListeners=function(e){var r,n;if(n=this._events,!n)return this;if(!n.removeListener)return arguments.length===0?(this._events=new Rn,this._eventsCount=0):n[e]&&(--this._eventsCount===0?this._events=new Rn:delete n[e]),this;if(arguments.length===0){for(var i=Object.keys(n),a=0,o;a<i.length;++a)o=i[a],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new Rn,this._eventsCount=0,this}if(r=n[e],typeof r=="function")this.removeListener(e,r);else if(r)do this.removeListener(e,r[r.length-1]);while(r[0]);return this};ct.prototype.listeners=function(e){var r,n,i=this._events;return i?(r=i[e],r?typeof r=="function"?n=[r.listener||r]:n=hg(r):n=[]):n=[],n};ct.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Id.call(t,e)};ct.prototype.listenerCount=Id;function Id(t){var e=this._events;if(e){var r=e[t];if(typeof r=="function")return 1;if(r)return r.length}return 0}ct.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function lg(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}function ao(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function hg(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}var Ps=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function Bd(){throw new Error("setTimeout has not been defined")}function Rd(){throw new Error("clearTimeout has not been defined")}var En=Bd,Dn=Rd;typeof Ps.setTimeout=="function"&&(En=setTimeout);typeof Ps.clearTimeout=="function"&&(Dn=clearTimeout);function Md(t){if(En===setTimeout)return setTimeout(t,0);if((En===Bd||!En)&&setTimeout)return En=setTimeout,setTimeout(t,0);try{return En(t,0)}catch{try{return En.call(null,t,0)}catch{return En.call(this,t,0)}}}function dg(t){if(Dn===clearTimeout)return clearTimeout(t);if((Dn===Rd||!Dn)&&clearTimeout)return Dn=clearTimeout,clearTimeout(t);try{return Dn(t)}catch{try{return Dn.call(null,t)}catch{return Dn.call(this,t)}}}var cn=[],Xi=!1,ci,Ko=-1;function vg(){!Xi||!ci||(Xi=!1,ci.length?cn=ci.concat(cn):Ko=-1,cn.length&&Ld())}function Ld(){if(!Xi){var t=Md(vg);Xi=!0;for(var e=cn.length;e;){for(ci=cn,cn=[];++Ko<e;)ci&&ci[Ko].run();Ko=-1,e=cn.length}ci=null,Xi=!1,dg(t)}}function fr(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];cn.push(new Nd(t,e)),cn.length===1&&!Xi&&Md(Ld)}function Nd(t,e){this.fun=t,this.array=e}Nd.prototype.run=function(){this.fun.apply(null,this.array)};var pg="browser",gg="browser",yg=!0,mg={},bg=[],wg="",xg={},Fg={},Sg={};function bi(){}var Ag=bi,Cg=bi,Eg=bi,Dg=bi,Tg=bi,Og=bi,kg=bi;function Pg(t){throw new Error("process.binding is not supported")}function Ig(){return"/"}function Bg(t){throw new Error("process.chdir is not supported")}function Rg(){return 0}var ji=Ps.performance||{},Mg=ji.now||ji.mozNow||ji.msNow||ji.oNow||ji.webkitNow||function(){return new Date().getTime()};function Lg(t){var e=Mg.call(ji)*.001,r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r=r-t[0],n=n-t[1],n<0&&(r--,n+=1e9)),[r,n]}var Ng=new Date;function Ug(){var t=new Date,e=t-Ng;return e/1e3}var Mn={nextTick:fr,title:pg,browser:yg,env:mg,argv:bg,version:wg,versions:xg,on:Ag,addListener:Cg,once:Eg,off:Dg,removeListener:Tg,removeAllListeners:Og,emit:kg,binding:Pg,cwd:Ig,chdir:Bg,umask:Rg,hrtime:Lg,platform:gg,release:Fg,config:Sg,uptime:Ug},wf;typeof Object.create=="function"?wf=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:wf=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e};var fa=wf,zg=/%[sdj%]/g;function jg(t){if(!ec(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(ln(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(t).replace(zg,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return s}}),o=n[r];r<i;o=n[++r])$f(o)||!oo(o)?a+=" "+o:a+=" "+ln(o);return a}function Ud(t,e){if(Pn(Ps.process))return function(){return Ud(t,e).apply(this,arguments)};if(Mn.noDeprecation===!0)return t;var r=!1;function n(){if(!r){if(Mn.throwDeprecation)throw new Error(e);Mn.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return n}var Fo={},Eu;function Vg(t){if(Pn(Eu)&&(Eu=Mn.env.NODE_DEBUG||""),t=t.toUpperCase(),!Fo[t])if(new RegExp("\\b"+t+"\\b","i").test(Eu)){var e=0;Fo[t]=function(){var r=jg.apply(null,arguments);console.error("%s %d: %s",t,e,r)}}else Fo[t]=function(){};return Fo[t]}function ln(t,e){var r={seen:[],stylize:Wg};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),zd(e)?r.showHidden=e:e&&Jg(r,e),Pn(r.showHidden)&&(r.showHidden=!1),Pn(r.depth)&&(r.depth=2),Pn(r.colors)&&(r.colors=!1),Pn(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=qg),is(r,t,r.depth)}ln.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ln.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function qg(t,e){var r=ln.styles[e];return r?"\x1B["+ln.colors[r][0]+"m"+t+"\x1B["+ln.colors[r][1]+"m":t}function Wg(t,e){return t}function Gg(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function is(t,e,r){if(t.customInspect&&e&&ku(e.inspect)&&e.inspect!==ln&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return ec(n)||(n=is(t,n,r)),n}var i=Hg(t,e);if(i)return i;var a=Object.keys(e),o=Gg(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),Ou(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Du(e);if(a.length===0){if(ku(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(Tu(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Dl(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Ou(e))return Du(e)}var u="",f=!1,l=["{","}"];if(Zg(e)&&(f=!0,l=["[","]"]),ku(e)){var h=e.name?": "+e.name:"";u=" [Function"+h+"]"}if(Tu(e)&&(u=" "+RegExp.prototype.toString.call(e)),Dl(e)&&(u=" "+Date.prototype.toUTCString.call(e)),Ou(e)&&(u=" "+Du(e)),a.length===0&&(!f||e.length==0))return l[0]+u+l[1];if(r<0)return Tu(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var d;return f?d=Kg(t,e,r,o,a):d=a.map(function(v){return xf(t,e,r,o,v,f)}),t.seen.pop(),Xg(d,u,l)}function Hg(t,e){if(Pn(e))return t.stylize("undefined","undefined");if(ec(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Yg(e))return t.stylize(""+e,"number");if(zd(e))return t.stylize(""+e,"boolean");if($f(e))return t.stylize("null","null")}function Du(t){return"["+Error.prototype.toString.call(t)+"]"}function Kg(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)jd(e,String(o))?a.push(xf(t,e,r,n,String(o),!0)):a.push("");return i.forEach(function(u){u.match(/^\d+$/)||a.push(xf(t,e,r,n,u,!0))}),a}function xf(t,e,r,n,i,a){var o,s,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?u.set?s=t.stylize("[Getter/Setter]","special"):s=t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),jd(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?($f(r)?s=is(t,u.value,null):s=is(t,u.value,r-1),s.indexOf(`
2
2
  `)>-1&&(a?s=s.split(`
3
3
  `).map(function(f){return" "+f}).join(`
4
4
  `).substr(2):s=`
package/dist/pdf.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { g as N1 } from "./_commonjsHelpers-DaMA6jEr.js";
2
- import { h as U1, i as z1, c as xo, d as hl, b as dl, L as vu, a as Ed, w as j1 } from "./style-6ihHKVCM.js";
2
+ import { h as U1, i as z1, c as xo, d as hl, b as dl, L as vu, a as Ed, w as j1 } from "./style-DnmtG7Gl.js";
3
3
  import { r as V1 } from "./grid-geometry-Bs8QXz1X.js";
4
4
  var pu = {}, vl;
5
5
  function Hn() {
@@ -0,0 +1 @@
1
+ "use strict";const R=require("vue"),c="mach-report/fetcher",o="mach-report/pdf-exporter",E="mach-report/config",n="mach-report/controller",_=R.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ReportPreview-Cr0IH1Rz.cjs")).then(r=>r.ReportPreview$1)),f={install(r,e={}){e.fetcher&&r.provide(c,e.fetcher),e.pdfExporter&&r.provide(o,e.pdfExporter),r.provide(E,R.computed(()=>{if(e.pdfFontUrl===void 0)return e.config??null;const t=e.config??{defaults:{},presets:{}};return{...t,defaults:{...t.defaults,pdfFontUrl:e.pdfFontUrl}}})),e.globalComponent!==!1&&r.component("MachReportPreview",_)}};exports.MACH_REPORT_CONFIG_KEY=E;exports.MACH_REPORT_CONTROLLER_KEY=n;exports.MACH_REPORT_FETCHER_KEY=c;exports.MACH_REPORT_PDF_EXPORTER_KEY=o;exports.MachReportPreview=_;exports.machReportPlugin=f;
@@ -0,0 +1,18 @@
1
+ import { defineAsyncComponent as c, computed as o } from "vue";
2
+ const f = "mach-report/fetcher", n = "mach-report/pdf-exporter", a = "mach-report/config", R = "mach-report/controller", d = c(() => import("./ReportPreview-DwknBgsJ.js").then((r) => r.s)), E = {
3
+ install(r, e = {}) {
4
+ e.fetcher && r.provide(f, e.fetcher), e.pdfExporter && r.provide(n, e.pdfExporter), r.provide(a, o(() => {
5
+ if (e.pdfFontUrl === void 0) return e.config ?? null;
6
+ const t = e.config ?? { defaults: {}, presets: {} };
7
+ return { ...t, defaults: { ...t.defaults, pdfFontUrl: e.pdfFontUrl } };
8
+ })), e.globalComponent !== !1 && r.component("MachReportPreview", d);
9
+ }
10
+ };
11
+ export {
12
+ R as M,
13
+ a,
14
+ f as b,
15
+ n as c,
16
+ d,
17
+ E as m
18
+ };
@@ -45,7 +45,7 @@ export interface GridCell {
45
45
  style?: ComponentStyle;
46
46
  }
47
47
  export interface PlanGrid {
48
- /** 行内允许 null 空位(jh4j 契约数据存在稀疏行;渲染器按空单元格处理) */
48
+ /** 行内允许 null 空位;渲染器按空单元格处理 */
49
49
  cells: (GridCell | null)[][];
50
50
  colWidthsMm?: number[];
51
51
  rowHeightsMm?: number[];
@@ -79,18 +79,10 @@ export interface PlanPage {
79
79
  marginRightMm?: number;
80
80
  components: PlanComponent[];
81
81
  }
82
- export interface GridPlanResponse {
83
- code?: number;
84
- message?: string;
85
- data?: {
86
- pages?: PlanPage[];
87
- } | null;
88
- }
89
82
  export interface RenderPlan {
90
83
  schemaVersion: string;
91
84
  pages: PlanPage[];
92
85
  }
93
86
  export declare const RENDER_PLAN_SCHEMA_VERSION = "1.0.0-mach";
94
- export declare function toRenderPlan(response: GridPlanResponse): RenderPlan;
95
87
  export declare function isImageBackedComponent(comp: PlanComponent): boolean;
96
88
  export declare function isRichText(comp: PlanComponent): boolean;
@@ -5,15 +5,15 @@ export declare class ExprError extends Error {
5
5
  constructor(message: string);
6
6
  }
7
7
  /**
8
- * 求值 jh4j 公式表达式(用于 {if(cond, a, b)} 的 cond 与操作数):
8
+ * 求值动态 SQL 条件表达式(用于 {if(cond, a, b)} 的 cond 与操作数):
9
9
  * - #param 引用(渲染时被替换为参数值;此实现按值求值)
10
- * - "..." 字符串字面量(仅双引号,与 jh4j 一致)
10
+ * - "..." 字符串字面量(仅双引号)
11
11
  * - isEmpty(x)、isNotEmpty(x)
12
12
  * - == / != 比较
13
13
  * - + 拼接
14
14
  */
15
15
  export declare function evalExpr(input: string, ctx: ExprContext): unknown;
16
- /** {if(cond, whenTrue, whenFalse)} 的参数拆分(2 或 3 段,兼容 jh4j 三段式) */
16
+ /** {if(cond, whenTrue, whenFalse)} 的参数拆分(2 或 3 段) */
17
17
  export declare function parseIfArgs(inner: string): {
18
18
  cond: string;
19
19
  whenTrue: string;
package/dist/sql.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * 动态 SQL 子路径入口(@agile-team/mach-report/sql):
3
- * jh4j 三语法编译 + 参数化渲染 + AST/词法双层单 SELECT 校验。
3
+ * 动态 SQL 编译、参数化渲染与 AST/词法双层单 SELECT 校验。
4
4
  */
5
5
  export * from './sql/index';
package/dist/sql.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * 动态 SQL 子路径入口(@agile-team/mach-report/sql):
3
- * jh4j 三语法编译 + 参数化渲染 + AST/词法双层单 SELECT 校验。
3
+ * 动态 SQL 编译、参数化渲染与 AST/词法双层单 SELECT 校验。
4
4
  */
5
5
  export * from './sql/index';
@@ -0,0 +1,3 @@
1
+ "use strict";const m="#333333",M="#000000",E="1.0.0-mach";function h(t=96){return t/25.4}function l(t,e=96){return(t||0)*h(e)}function C(t,e=96){return t/h(e)}function d(t,e=96){return t*e/72}function A(t,e){const r=10**e;return Math.round(t*r)/r}const R={a3:{widthMm:297,heightMm:420},a4:{widthMm:210,heightMm:297},a5:{widthMm:148,heightMm:210},b4:{widthMm:250,heightMm:353},b5:{widthMm:176,heightMm:250}},x=E;function I(t){return(t.kind==="image"||t.kind==="barcode"||t.kind==="qrcode"||t.kind==="chart")&&!!t.imageData}function L(t){return t.kind==="text"&&Array.isArray(t.richParagraphs)&&t.richParagraphs.length>0}const P=/[\u3000-\u9fff\uff00-\uffef]/,f=new Uint8Array(128);{for(const t of"iljtf.,:;'`|!()[]")f[t.charCodeAt(0)]=1;for(const t of"mwMW@")f[t.charCodeAt(0)]=2;for(let t=48;t<=57;t++)f[t]=3;for(let t=65;t<=90;t++)f[t]=4;f[32]=5}const D=[.54,.26,.95,.59,.67,.3];function S(t){const e=t.charCodeAt(0);return e<128?D[f[e]]:P.test(t)?1:/[A-Z]/.test(t)?.67:.54}const a={measureMm(t,e){const{fontSizePt:r,bold:n=!1,letterSpacingPt:u=0}=e,c=25.4/72;let i=0;for(const o of t)i+=S(o);return n&&(i*=1.04),(i*r+u*t.length)*c}};function H(){return a}function g(t,e){return a.measureMm(t,e)}function w(t){let e;return{measureMm(r,n){if(e===void 0&&(e=t()),!e)return a.measureMm(r,n);const u=n.fontSizePt*96/72;return e.font=`${n.bold?"bold ":""}${u}px sans-serif`,e.measureText(r).width*25.4/96}}}function N(t,e,r){const n=[];let u="",c=0;const i=()=>{u&&(n.push({text:u,widthMm:c,cjk:!1}),u="",c=0)};for(const o of t){if(o===`
2
+ `){i(),n.push({text:`
3
+ `,widthMm:0,cjk:!1,br:!0});continue}if(o===" "){i(),n.push({text:o,widthMm:r.measureMm(o,e),cjk:!1,space:!0});continue}if(P.test(o)){i(),n.push({text:o,widthMm:r.measureMm(o,e),cjk:!0});continue}u+=o,c+=r.measureMm(o,e)}return i(),n}function O(t,e,r,n=a){if(!t)return[""];const u=[];let c="",i=0;const o=()=>{u.push(c),c="",i=0};for(const s of N(t,r,n)){if(s.br){o();continue}if(i+s.widthMm<=e){c+=s.text,i+=s.widthMm;continue}if(s.space){o();continue}if(s.cjk){c.length>0&&o(),c=s.text,i=s.widthMm;continue}if(c.length>0&&o(),s.widthMm<=e){c=s.text,i=s.widthMm;continue}for(const _ of s.text){const T=n.measureMm(_,r);i+T>e&&c.length>0&&o(),c+=_,i+=T}}return o(),u}function F(t,e=96,r=10.5){if(t?.fontSizePx!=null)return{fontSizePt:t.fontSizePx*72/e,fontSizePx:t.fontSizePx};const n=t?.fontSize??r;return{fontSizePt:n,fontSizePx:d(n,e)}}function k(t,e=m){return{color:t?.borderColor??t?.lineColor??e,widthPt:t?.lineWidthPt??.75}}function b(t,e=M){return t?.color??e}function p(t){return t?.lineHeight??1.35}function v(t){const e=t?.borderTop!==!1,r=t?.borderRight!==!1,n=t?.borderBottom!==!1,u=t?.borderLeft!==!1;return{top:e,right:r,bottom:n,left:u,inner:e||r||n||u}}exports.CSS_DPI=96;exports.DEFAULT_BORDER_PT=.75;exports.DEFAULT_FONT_PT=10.5;exports.DEFAULT_STROKE_COLOR=m;exports.DEFAULT_TEXT_COLOR=M;exports.LINE_HEIGHT=1.35;exports.MM_PER_INCH=25.4;exports.PAPER_SIZES=R;exports.RENDER_PLAN_SCHEMA_VERSION=x;exports.SCHEMA_VERSION_MACH=E;exports.charWidthEm=S;exports.createCanvasMeasurer=w;exports.createHeuristicMeasurer=H;exports.heuristicMeasurer=a;exports.isImageBackedComponent=I;exports.isRichText=L;exports.measureTextMm=g;exports.mmToPx=l;exports.mmToPxFactor=h;exports.ptToPx=d;exports.pxToMm=C;exports.resolveBoxBorders=v;exports.resolveFontSize=F;exports.resolveLineHeight=p;exports.resolveStroke=k;exports.resolveTextColor=b;exports.round=A;exports.wrapText=O;