@agile-team/mach-report 2.3.2 → 2.4.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 (39) hide show
  1. package/README.md +40 -5
  2. package/dist/ReportPreview-CL9J9MEE.js +1907 -0
  3. package/dist/ReportPreview-DJvv3h8m.cjs +6 -0
  4. package/dist/grid-geometry-BNIvw52m.cjs +1 -0
  5. package/dist/{grid-geometry-Dw7BlENr.js → grid-geometry-C8hGoe9o.js} +10 -10
  6. package/dist/index.cjs +5 -5
  7. package/dist/index.d.cts +74 -0
  8. package/dist/index.d.ts +74 -0
  9. package/dist/index.js +946 -782
  10. package/dist/number-format-BA_KwrZe.js +55 -0
  11. package/dist/number-format-CZ2T_5kF.cjs +1 -0
  12. package/dist/pdf.cjs +1 -1
  13. package/dist/pdf.d.cts +6 -0
  14. package/dist/pdf.d.ts +6 -0
  15. package/dist/pdf.js +2 -2
  16. package/dist/{plugin-2lqgTX26.cjs → plugin-BkK2mm_p.cjs} +1 -1
  17. package/dist/{plugin-5R00MJQs.js → plugin-DRnvIbdP.js} +1 -1
  18. package/dist/render-plan-CCTL4F9v.cjs +1 -0
  19. package/dist/{render-plan-I9AHvQv7.js → render-plan-CXBWRog4.js} +12 -7
  20. package/dist/style.css +1 -1
  21. package/dist/vue/async.d.cts +598 -1
  22. package/dist/vue/async.d.ts +598 -1
  23. package/dist/vue/index.d.cts +820 -10
  24. package/dist/vue/index.d.ts +820 -10
  25. package/dist/vue-async.cjs +1 -1
  26. package/dist/vue-async.js +3 -3
  27. package/dist/vue.cjs +1 -1
  28. package/dist/vue.js +96 -73
  29. package/dist/xlsx.cjs +24 -24
  30. package/dist/xlsx.d.cts +209 -0
  31. package/dist/xlsx.d.ts +209 -0
  32. package/dist/xlsx.js +9805 -9284
  33. package/package.json +1 -1
  34. package/dist/ReportPreview-B-mwUSk9.cjs +0 -6
  35. package/dist/ReportPreview-DKjr4cwO.js +0 -1688
  36. package/dist/defaults-D4o0NCLo.js +0 -9
  37. package/dist/defaults-DOO1yHwx.cjs +0 -1
  38. package/dist/grid-geometry-bkciiZ4Q.cjs +0 -1
  39. package/dist/render-plan-CfJ3wf1l.cjs +0 -1
@@ -0,0 +1,55 @@
1
+ function p(n) {
2
+ const t = [""];
3
+ let e = !1, i = !1;
4
+ for (const r of n)
5
+ r === ";" && !e && !i ? t.push("") : t[t.length - 1] += r, r === '"' && !i && (e = !e), i = r === "\\" && !i;
6
+ return t;
7
+ }
8
+ function x(n, t) {
9
+ const e = p(t), i = n === 0 && e.length > 2 ? 2 : n < 0 && e.length > 1 ? 1 : 0;
10
+ return { pattern: e[i], magnitude: Math.abs(n), negative: n < 0 && i === 0 };
11
+ }
12
+ function $(n) {
13
+ const t = [];
14
+ return { text: n.replace(/"([^"]*)"|\\(.)/g, (i, r, c) => (t.push(r ?? c ?? ""), String.fromCharCode(57344 + t.length - 1))).replace(/\[(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color\d+)\]/gi, ""), literals: t };
15
+ }
16
+ function s(n, t) {
17
+ return /[0#?@_*%[\]"\\.,/]/.test(n) ? null : n.replace(/[\uE000-\uF8FF]/g, (e) => t.literals[e.charCodeAt(0) - 57344] ?? "");
18
+ }
19
+ function S(n, t) {
20
+ const e = /^(.*?)(0)(?:\.([0#]+))?E([+-])(0+)(.*?)$/i.exec(t.text);
21
+ if (!e) return null;
22
+ const i = s(e[1], t), r = s(e[6], t), c = e[3] ?? "";
23
+ if (i === null || r === null || c.length > 100) return null;
24
+ const [l, o] = n.magnitude.toExponential(c.length).split("e"), u = c.replace(/#/g, "").length, [f, m = ""] = l.split("."), a = m.replace(/0+$/, "").padEnd(u, "0"), g = Number(o), d = g < 0 ? "-" : e[4] === "+" ? "+" : "", h = String(Math.abs(g)).padStart(e[5].length, "0");
25
+ return `${n.negative ? "-" : ""}${i}${f}${a ? `.${a}` : ""}E${d}${h}${r}`;
26
+ }
27
+ function b(n, t) {
28
+ const e = /^(.*?)([#,]*0[0#]*)(?:\.([0#]+))?(%)?(.*?)$/.exec(t.text);
29
+ if (!e) return s(t.text, t);
30
+ const i = s(e[1], t), r = s(e[5], t), c = e[2], l = e[3] ?? "";
31
+ if (i === null || r === null || l.length > 100 || !/^(?:0+|#+0+|#,##0+)$/.test(c)) return null;
32
+ const o = n.magnitude * (e[4] ? 100 : 1);
33
+ if (!Number.isFinite(o)) return null;
34
+ const u = o.toLocaleString("en-US", {
35
+ useGrouping: c.includes(","),
36
+ minimumIntegerDigits: Math.min(21, c.replace(/[^0]/g, "").length),
37
+ minimumFractionDigits: l.replace(/#/g, "").length,
38
+ maximumFractionDigits: l.length
39
+ });
40
+ return `${n.negative ? "-" : ""}${i}${u}${e[4] ?? ""}${r}`;
41
+ }
42
+ function E(n, t, e) {
43
+ if (!t || /^(General|@)$/i.test(t)) return String(n);
44
+ const i = x(n, t);
45
+ if (i.pattern === "") return "";
46
+ const r = $(i.pattern), c = S(i, r) ?? b(i, r);
47
+ return c !== null ? c : (e?.(), String(n));
48
+ }
49
+ function F(n) {
50
+ return n !== void 0 && n.replace(/"[^"]*"|\\./g, "").includes("%");
51
+ }
52
+ export {
53
+ E as f,
54
+ F as i
55
+ };
@@ -0,0 +1 @@
1
+ "use strict";function x(n){const t=[""];let e=!1,i=!1;for(const r of n)r===";"&&!e&&!i?t.push(""):t[t.length-1]+=r,r==='"'&&!i&&(e=!e),i=r==="\\"&&!i;return t}function p(n,t){const e=x(t),i=n===0&&e.length>2?2:n<0&&e.length>1?1:0;return{pattern:e[i],magnitude:Math.abs(n),negative:n<0&&i===0}}function $(n){const t=[];return{text:n.replace(/"([^"]*)"|\\(.)/g,(i,r,c)=>(t.push(r??c??""),String.fromCharCode(57344+t.length-1))).replace(/\[(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color\d+)\]/gi,""),literals:t}}function s(n,t){return/[0#?@_*%[\]"\\.,/]/.test(n)?null:n.replace(/[\uE000-\uF8FF]/g,e=>t.literals[e.charCodeAt(0)-57344]??"")}function E(n,t){const e=/^(.*?)(0)(?:\.([0#]+))?E([+-])(0+)(.*?)$/i.exec(t.text);if(!e)return null;const i=s(e[1],t),r=s(e[6],t),c=e[3]??"";if(i===null||r===null||c.length>100)return null;const[l,o]=n.magnitude.toExponential(c.length).split("e"),u=c.replace(/#/g,"").length,[f,m=""]=l.split("."),a=m.replace(/0+$/,"").padEnd(u,"0"),g=Number(o),d=g<0?"-":e[4]==="+"?"+":"",h=String(Math.abs(g)).padStart(e[5].length,"0");return`${n.negative?"-":""}${i}${f}${a?`.${a}`:""}E${d}${h}${r}`}function b(n,t){const e=/^(.*?)([#,]*0[0#]*)(?:\.([0#]+))?(%)?(.*?)$/.exec(t.text);if(!e)return s(t.text,t);const i=s(e[1],t),r=s(e[5],t),c=e[2],l=e[3]??"";if(i===null||r===null||l.length>100||!/^(?:0+|#+0+|#,##0+)$/.test(c))return null;const o=n.magnitude*(e[4]?100:1);if(!Number.isFinite(o))return null;const u=o.toLocaleString("en-US",{useGrouping:c.includes(","),minimumIntegerDigits:Math.min(21,c.replace(/[^0]/g,"").length),minimumFractionDigits:l.replace(/#/g,"").length,maximumFractionDigits:l.length});return`${n.negative?"-":""}${i}${u}${e[4]??""}${r}`}function F(n,t,e){if(!t||/^(General|@)$/i.test(t))return String(n);const i=p(n,t);if(i.pattern==="")return"";const r=$(i.pattern),c=E(i,r)??b(i,r);return c!==null?c:(e?.(),String(n))}function S(n){return n!==void 0&&n.replace(/"[^"]*"|\\./g,"").includes("%")}exports.formatExcelNumber=F;exports.isExcelPercentageFormat=S;
package/dist/pdf.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _1=require("./_commonjsHelpers-DKOUU3wS.cjs"),Bd=require("./render-plan-CfJ3wf1l.cjs"),Rd=require("./textwrap-oD-t4b4B.cjs"),ur=require("./grid-geometry-bkciiZ4Q.cjs");var bu={},bl;function Yn(){return bl||(bl=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)})(bu)),bu}var Pi={},Rr={},ri={},wl;function $1(){if(wl)return ri;wl=1;var t=Yn(),e=4,r=0,n=1,i=2;function a(C){for(var te=C.length;--te>=0;)C[te]=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,P=16,A=7,M=256,B=16,k=17,I=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],H=[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],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],q=[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 re=new Array(g*2);a(re);var _=new Array(Z);a(_);var $=new Array(l-f+1);a($);var Q=new Array(h);a(Q);var de=new Array(g);a(de);function pe(C,te,ae,fe,L){this.static_tree=C,this.extra_bits=te,this.extra_base=ae,this.elems=fe,this.max_length=L,this.has_stree=C&&C.length}var we,me,De;function Le(C,te){this.dyn_tree=C,this.max_code=0,this.stat_desc=te}function Ge(C){return C<256?_[C]:_[256+(C>>>7)]}function Xe(C,te){C.pending_buf[C.pending++]=te&255,C.pending_buf[C.pending++]=te>>>8&255}function Fe(C,te,ae){C.bi_valid>P-ae?(C.bi_buf|=te<<C.bi_valid&65535,Xe(C,C.bi_buf),C.bi_buf=te>>P-C.bi_valid,C.bi_valid+=ae-P):(C.bi_buf|=te<<C.bi_valid&65535,C.bi_valid+=ae)}function Ne(C,te,ae){Fe(C,ae[te*2],ae[te*2+1])}function ce(C,te){var ae=0;do ae|=C&1,C>>>=1,ae<<=1;while(--te>0);return ae>>>1}function Te(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,te){var ae=te.dyn_tree,fe=te.max_code,L=te.stat_desc.static_tree,X=te.stat_desc.has_stree,F=te.stat_desc.extra_bits,ne=te.stat_desc.extra_base,Pe=te.stat_desc.max_length,p,G,K,S,R,V,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++)G=C.heap[p],S=ae[ae[G*2+1]*2+1]+1,S>Pe&&(S=Pe,Ae++),ae[G*2+1]=S,!(G>fe)&&(C.bl_count[S]++,R=0,G>=ne&&(R=F[G-ne]),V=ae[G*2],C.opt_len+=V*(S+R),X&&(C.static_len+=V*(L[G*2+1]+R)));if(Ae!==0){do{for(S=Pe-1;C.bl_count[S]===0;)S--;C.bl_count[S]--,C.bl_count[S+1]+=2,C.bl_count[Pe]--,Ae-=2}while(Ae>0);for(S=Pe;S!==0;S--)for(G=C.bl_count[S];G!==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),G--)}}function Re(C,te,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<=te;F++){var ne=C[F*2+1];ne!==0&&(C[F*2]=ce(fe[ne]++,ne))}}function he(){var C,te,ae,fe,L,X=new Array(x+1);for(ae=0,fe=0;fe<h-1;fe++)for(Q[fe]=ae,C=0;C<1<<j[fe];C++)$[ae++]=fe;for($[ae-1]=fe,L=0,fe=0;fe<16;fe++)for(de[fe]=L,C=0;C<1<<H[fe];C++)_[L++]=fe;for(L>>=7;fe<g;fe++)for(de[fe]=L<<7,C=0;C<1<<H[fe]-7;C++)_[256+L++]=fe;for(te=0;te<=x;te++)X[te]=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++)re[C*2+1]=5,re[C*2]=ce(C,5);we=new pe(U,j,d+1,v,x),me=new pe(re,H,0,g,x),De=new pe(new Array(0),W,0,b,A)}function Oe(C){var te;for(te=0;te<v;te++)C.dyn_ltree[te*2]=0;for(te=0;te<g;te++)C.dyn_dtree[te*2]=0;for(te=0;te<b;te++)C.bl_tree[te*2]=0;C.dyn_ltree[M*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,te,ae,fe){gt(C),Xe(C,ae),Xe(C,~ae),t.arraySet(C.pending_buf,C.window,te,ae,C.pending),C.pending+=ae}function y(C,te,ae,fe){var L=te*2,X=ae*2;return C[L]<C[X]||C[L]===C[X]&&fe[te]<=fe[ae]}function m(C,te,ae){for(var fe=C.heap[ae],L=ae<<1;L<=C.heap_len&&(L<C.heap_len&&y(te,C.heap[L+1],C.heap[L],C.depth)&&L++,!y(te,fe,C.heap[L],C.depth));)C.heap[ae]=C.heap[L],ae=L,L<<=1;C.heap[ae]=fe}function D(C,te,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,te):(F=$[L],Ne(C,F+d+1,te),ne=j[F],ne!==0&&(L-=Q[F],Fe(C,L,ne)),fe--,F=Ge(fe),Ne(C,F,ae),ne=H[F],ne!==0&&(fe-=de[F],Fe(C,fe,ne)));while(X<C.last_lit);Ne(C,M,te)}function N(C,te){var ae=te.dyn_tree,fe=te.stat_desc.static_tree,L=te.stat_desc.has_stree,X=te.stat_desc.elems,F,ne,Pe=-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]=Pe=F,C.depth[F]=0):ae[F*2+1]=0;for(;C.heap_len<2;)p=C.heap[++C.heap_len]=Pe<2?++Pe:0,ae[p*2]=1,C.depth[p]=0,C.opt_len--,L&&(C.static_len-=fe[p*2+1]);for(te.max_code=Pe,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,te),Re(ae,Pe,C.bl_count)}function ee(C,te,ae){var fe,L=-1,X,F=te[1],ne=0,Pe=7,p=4;for(F===0&&(Pe=138,p=3),te[(ae+1)*2+1]=65535,fe=0;fe<=ae;fe++)X=F,F=te[(fe+1)*2+1],!(++ne<Pe&&X===F)&&(ne<p?C.bl_tree[X*2]+=ne:X!==0?(X!==L&&C.bl_tree[X*2]++,C.bl_tree[B*2]++):ne<=10?C.bl_tree[k*2]++:C.bl_tree[I*2]++,ne=0,L=X,F===0?(Pe=138,p=3):X===F?(Pe=6,p=3):(Pe=7,p=4))}function Y(C,te,ae){var fe,L=-1,X,F=te[1],ne=0,Pe=7,p=4;for(F===0&&(Pe=138,p=3),fe=0;fe<=ae;fe++)if(X=F,F=te[(fe+1)*2+1],!(++ne<Pe&&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,B,C.bl_tree),Fe(C,ne-3,2)):ne<=10?(Ne(C,k,C.bl_tree),Fe(C,ne-3,3)):(Ne(C,I,C.bl_tree),Fe(C,ne-11,7));ne=0,L=X,F===0?(Pe=138,p=3):X===F?(Pe=6,p=3):(Pe=7,p=4)}}function ye(C){var te;for(ee(C,C.dyn_ltree,C.l_desc.max_code),ee(C,C.dyn_dtree,C.d_desc.max_code),N(C,C.bl_desc),te=b-1;te>=3&&C.bl_tree[q[te]*2+1]===0;te--);return C.opt_len+=3*(te+1)+5+5+4,te}function Ue(C,te,ae,fe){var L;for(Fe(C,te-257,5),Fe(C,ae-1,5),Fe(C,fe-4,4),L=0;L<fe;L++)Fe(C,C.bl_tree[q[L]*2+1],3);Y(C,C.dyn_ltree,te-1),Y(C,C.dyn_dtree,ae-1)}function He(C){var te=4093624447,ae;for(ae=0;ae<=31;ae++,te>>>=1)if(te&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||(he(),_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,De),C.bi_buf=0,C.bi_valid=0,Oe(C)}function Ct(C,te,ae,fe){Fe(C,(o<<1)+(fe?1:0),3),E(C,te,ae)}function wt(C){Fe(C,s<<1,3),Ne(C,M,U),Te(C)}function St(C,te,ae,fe){var L,X,F=0;C.level>0?(C.strm.data_type===i&&(C.strm.data_type=He(C)),N(C,C.l_desc),N(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&&te!==-1?Ct(C,te,ae,fe):C.strategy===e||X===L?(Fe(C,(s<<1)+(fe?1:0),3),D(C,U,re)):(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 er(C,te,ae){return C.pending_buf[C.d_buf+C.last_lit*2]=te>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=te&255,C.pending_buf[C.l_buf+C.last_lit]=ae&255,C.last_lit++,te===0?C.dyn_ltree[ae*2]++:(C.matches++,te--,C.dyn_ltree[($[ae]+d+1)*2]++,C.dyn_dtree[Ge(te)*2]++),C.last_lit===C.lit_bufsize-1}return ri._tr_init=Qe,ri._tr_stored_block=Ct,ri._tr_flush_block=St,ri._tr_tally=er,ri._tr_align=wt,ri}var wu,xl;function Md(){if(xl)return wu;xl=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 wu=t,wu}var xu,Fl;function Ld(){if(Fl)return xu;Fl=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 xu=r,xu}var Fu,Sl;function rc(){return Sl||(Sl=1,Fu={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"}),Fu}var Al;function eg(){if(Al)return Rr;Al=1;var t=Yn(),e=$1(),r=Md(),n=Ld(),i=rc(),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,P=3,A=4,M=0,B=2,k=8,I=9,j=15,H=8,W=29,q=256,Z=q+1+W,U=30,re=19,_=2*Z+1,$=15,Q=3,de=258,pe=de+Q+1,we=32,me=42,De=69,Le=73,Ge=91,Xe=103,Fe=113,Ne=666,ce=1,Te=2,xe=3,Re=4,he=3;function Oe(p,G){return p.msg=i[G],G}function gt(p){return(p<<1)-(p>4?9:0)}function E(p){for(var G=p.length;--G>=0;)p[G]=0}function y(p){var G=p.state,K=G.pending;K>p.avail_out&&(K=p.avail_out),K!==0&&(t.arraySet(p.output,G.pending_buf,G.pending_out,K,p.next_out),p.next_out+=K,G.pending_out+=K,p.total_out+=K,p.avail_out-=K,G.pending-=K,G.pending===0&&(G.pending_out=0))}function m(p,G){e._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,G),p.block_start=p.strstart,y(p.strm)}function D(p,G){p.pending_buf[p.pending++]=G}function N(p,G){p.pending_buf[p.pending++]=G>>>8&255,p.pending_buf[p.pending++]=G&255}function ee(p,G,K,S){var R=p.avail_in;return R>S&&(R=S),R===0?0:(p.avail_in-=R,t.arraySet(G,p.input,p.next_in,R,K),p.state.wrap===1?p.adler=r(p.adler,G,R,K):p.state.wrap===2&&(p.adler=n(p.adler,G,R,K)),p.next_in+=R,p.total_in+=R,R)}function Y(p,G){var K=p.max_chain_length,S=p.strstart,R,V,Ae=p.prev_length,ve=p.nice_match,ge=p.strstart>p.w_size-pe?p.strstart-(p.w_size-pe):0,ut=p.window,rn=p.w_mask,Dt=p.prev,lt=p.strstart+de,Ut=ut[S+Ae-1],Qt=ut[S+Ae];p.prev_length>=p.good_match&&(K>>=2),ve>p.lookahead&&(ve=p.lookahead);do if(R=G,!(ut[R+Ae]!==Qt||ut[R+Ae-1]!==Ut||ut[R]!==ut[S]||ut[++R]!==ut[S+1])){S+=2,R++;do;while(ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&S<lt);if(V=de-(lt-S),S=lt-de,V>Ae){if(p.match_start=G,Ae=V,V>=ve)break;Ut=ut[S+Ae-1],Qt=ut[S+Ae]}}while((G=Dt[G&rn])>ge&&--K!==0);return Ae<=p.lookahead?Ae:p.lookahead}function ye(p){var G=p.w_size,K,S,R,V,Ae;do{if(V=p.window_size-p.lookahead-p.strstart,p.strstart>=G+(G-pe)){t.arraySet(p.window,p.window,G,G,0),p.match_start-=G,p.strstart-=G,p.block_start-=G,S=p.hash_size,K=S;do R=p.head[--K],p.head[K]=R>=G?R-G:0;while(--S);S=G,K=S;do R=p.prev[--K],p.prev[K]=R>=G?R-G:0;while(--S);V+=G}if(p.strm.avail_in===0)break;if(S=ee(p.strm,p.window,p.strstart+p.lookahead,V),p.lookahead+=S,p.lookahead+p.insert>=Q)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+Q-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<Q)););}while(p.lookahead<pe&&p.strm.avail_in!==0)}function Ue(p,G){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&&G===a)return ce;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-pe&&(m(p,!1),p.strm.avail_out===0))return ce}return p.insert=0,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):(p.strstart>p.block_start&&(m(p,!1),p.strm.avail_out===0),ce)}function He(p,G){for(var K,S;;){if(p.lookahead<pe){if(ye(p),p.lookahead<pe&&G===a)return ce;if(p.lookahead===0)break}if(K=0,p.lookahead>=Q&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+Q-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-pe&&(p.match_length=Y(p,K)),p.match_length>=Q)if(S=e._tr_tally(p,p.strstart-p.match_start,p.match_length-Q),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=Q){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+Q-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 ce}return p.insert=p.strstart<Q-1?p.strstart:Q-1,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?ce:Te}function _e(p,G){for(var K,S,R;;){if(p.lookahead<pe){if(ye(p),p.lookahead<pe&&G===a)return ce;if(p.lookahead===0)break}if(K=0,p.lookahead>=Q&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+Q-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=Q-1,K!==0&&p.prev_length<p.max_lazy_match&&p.strstart-K<=p.w_size-pe&&(p.match_length=Y(p,K),p.match_length<=5&&(p.strategy===w||p.match_length===Q&&p.strstart-p.match_start>4096)&&(p.match_length=Q-1)),p.prev_length>=Q&&p.match_length<=p.prev_length){R=p.strstart+p.lookahead-Q,S=e._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-Q),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=R&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+Q-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=Q-1,p.strstart++,S&&(m(p,!1),p.strm.avail_out===0))return ce}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 ce}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<Q-1?p.strstart:Q-1,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?ce:Te}function Qe(p,G){for(var K,S,R,V,Ae=p.window;;){if(p.lookahead<=de){if(ye(p),p.lookahead<=de&&G===a)return ce;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=Q&&p.strstart>0&&(R=p.strstart-1,S=Ae[R],S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R])){V=p.strstart+de;do;while(S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&R<V);p.match_length=de-(V-R),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=Q?(K=e._tr_tally(p,1,p.match_length-Q),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 ce}return p.insert=0,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?ce:Te}function Ct(p,G){for(var K;;){if(p.lookahead===0&&(ye(p),p.lookahead===0)){if(G===a)return ce;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 ce}return p.insert=0,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?ce:Te}function wt(p,G,K,S,R){this.good_length=p,this.max_lazy=G,this.nice_length=K,this.max_chain=S,this.func=R}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 er(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=Q-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=k,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(_*2),this.dyn_dtree=new t.Buf16((2*U+1)*2),this.bl_tree=new t.Buf16((2*re+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 te(p){var G;return!p||!p.state?Oe(p,d):(p.total_in=p.total_out=0,p.data_type=B,G=p.state,G.pending=0,G.pending_out=0,G.wrap<0&&(G.wrap=-G.wrap),G.status=G.wrap?me:Fe,p.adler=G.wrap===2?0:1,G.last_flush=a,e._tr_init(G),l)}function ae(p){var G=te(p);return G===l&&er(p.state),G}function fe(p,G){return!p||!p.state||p.state.wrap!==2?d:(p.state.gzhead=G,l)}function L(p,G,K,S,R,V){if(!p)return d;var Ae=1;if(G===b&&(G=6),S<0?(Ae=0,S=-S):S>15&&(Ae=2,S-=16),R<1||R>I||K!==k||S<8||S>15||G<0||G>9||V<0||V>A)return Oe(p,d);S===8&&(S=9);var ve=new C;return p.state=ve,ve.strm=p,ve.wrap=Ae,ve.gzhead=null,ve.w_bits=S,ve.w_size=1<<ve.w_bits,ve.w_mask=ve.w_size-1,ve.hash_bits=R+7,ve.hash_size=1<<ve.hash_bits,ve.hash_mask=ve.hash_size-1,ve.hash_shift=~~((ve.hash_bits+Q-1)/Q),ve.window=new t.Buf8(ve.w_size*2),ve.head=new t.Buf16(ve.hash_size),ve.prev=new t.Buf16(ve.w_size),ve.lit_bufsize=1<<R+6,ve.pending_buf_size=ve.lit_bufsize*4,ve.pending_buf=new t.Buf8(ve.pending_buf_size),ve.d_buf=1*ve.lit_bufsize,ve.l_buf=3*ve.lit_bufsize,ve.level=G,ve.strategy=V,ve.method=K,ae(p)}function X(p,G){return L(p,G,k,j,H,M)}function F(p,G){var K,S,R,V;if(!p||!p.state||G>f||G<0)return p?Oe(p,d):d;if(S=p.state,!p.output||!p.input&&p.avail_in!==0||S.status===Ne&&G!==u)return Oe(p,p.avail_out===0?g:d);if(S.strm=p,K=S.last_flush,S.last_flush=G,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=De):(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,he),S.status=Fe);else{var Ae=k+(S.w_bits-8<<4)<<8,ve=-1;S.strategy>=x||S.level<2?ve=0:S.level<6?ve=1:S.level===6?ve=2:ve=3,Ae|=ve<<6,S.strstart!==0&&(Ae|=we),Ae+=31-Ae%31,S.status=Fe,N(S,Ae),S.strstart!==0&&(N(S,p.adler>>>16),N(S,p.adler&65535)),p.adler=1}if(S.status===De)if(S.gzhead.extra){for(R=S.pending;S.gzindex<(S.gzhead.extra.length&65535)&&!(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),y(p),R=S.pending,S.pending===S.pending_buf_size));)D(S,S.gzhead.extra[S.gzindex]&255),S.gzindex++;S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),S.gzindex===S.gzhead.extra.length&&(S.gzindex=0,S.status=Le)}else S.status=Le;if(S.status===Le)if(S.gzhead.name){R=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),y(p),R=S.pending,S.pending===S.pending_buf_size)){V=1;break}S.gzindex<S.gzhead.name.length?V=S.gzhead.name.charCodeAt(S.gzindex++)&255:V=0,D(S,V)}while(V!==0);S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),V===0&&(S.gzindex=0,S.status=Ge)}else S.status=Ge;if(S.status===Ge)if(S.gzhead.comment){R=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),y(p),R=S.pending,S.pending===S.pending_buf_size)){V=1;break}S.gzindex<S.gzhead.comment.length?V=S.gzhead.comment.charCodeAt(S.gzindex++)&255:V=0,D(S,V)}while(V!==0);S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),V===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(G)<=gt(K)&&G!==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||G!==a&&S.status!==Ne){var ge=S.strategy===x?Ct(S,G):S.strategy===P?Qe(S,G):St[S.level].func(S,G);if((ge===xe||ge===Re)&&(S.status=Ne),ge===ce||ge===xe)return p.avail_out===0&&(S.last_flush=-1),l;if(ge===Te&&(G===o?e._tr_align(S):G!==f&&(e._tr_stored_block(S,0,0,!1),G===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 G!==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)):(N(S,p.adler>>>16),N(S,p.adler&65535)),y(p),S.wrap>0&&(S.wrap=-S.wrap),S.pending!==0?l:h)}function ne(p){var G;return!p||!p.state?d:(G=p.state.status,G!==me&&G!==De&&G!==Le&&G!==Ge&&G!==Xe&&G!==Fe&&G!==Ne?Oe(p,d):(p.state=null,G===Fe?Oe(p,v):l))}function Pe(p,G){var K=G.length,S,R,V,Ae,ve,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,G,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,G,K-S.w_size,S.w_size,0),G=rn,K=S.w_size),ve=p.avail_in,ge=p.next_in,ut=p.input,p.avail_in=K,p.next_in=0,p.input=G,ye(S);S.lookahead>=Q;){R=S.strstart,V=S.lookahead-(Q-1);do S.ins_h=(S.ins_h<<S.hash_shift^S.window[R+Q-1])&S.hash_mask,S.prev[R&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=R,R++;while(--V);S.strstart=R,S.lookahead=Q-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=Q-1,S.match_available=0,p.next_in=ge,p.input=ut,p.avail_in=ve,S.wrap=Ae,l}return Rr.deflateInit=X,Rr.deflateInit2=L,Rr.deflateReset=ae,Rr.deflateResetKeep=te,Rr.deflateSetHeader=fe,Rr.deflate=F,Rr.deflateEnd=ne,Rr.deflateSetDictionary=Pe,Rr.deflateInfo="pako deflate (from Nodeca project)",Rr}var ni={},Cl;function Nd(){if(Cl)return ni;Cl=1;var t=Yn(),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,ni.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 ni.buf2binstring=function(o){return a(o,o.length)},ni.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},ni.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)},ni.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},ni}var Su,El;function Ud(){if(El)return Su;El=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 Su=t,Su}var Tl;function tg(){if(Tl)return Pi;Tl=1;var t=eg(),e=Yn(),r=Nd(),n=rc(),i=Ud(),a=Object.prototype.toString,o=0,s=4,u=0,f=1,l=2,h=-1,d=0,v=8;function g(P){if(!(this instanceof g))return new g(P);this.options=e.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},P||{});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 M=t.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(M!==u)throw new Error(n[M]);if(A.header&&t.deflateSetHeader(this.strm,A.header),A.dictionary){var B;if(typeof A.dictionary=="string"?B=r.string2buf(A.dictionary):a.call(A.dictionary)==="[object ArrayBuffer]"?B=new Uint8Array(A.dictionary):B=A.dictionary,M=t.deflateSetDictionary(this.strm,B),M!==u)throw new Error(n[M]);this._dict_set=!0}}g.prototype.push=function(P,A){var M=this.strm,B=this.options.chunkSize,k,I;if(this.ended)return!1;I=A===~~A?A:A===!0?s:o,typeof P=="string"?M.input=r.string2buf(P):a.call(P)==="[object ArrayBuffer]"?M.input=new Uint8Array(P):M.input=P,M.next_in=0,M.avail_in=M.input.length;do{if(M.avail_out===0&&(M.output=new e.Buf8(B),M.next_out=0,M.avail_out=B),k=t.deflate(M,I),k!==f&&k!==u)return this.onEnd(k),this.ended=!0,!1;(M.avail_out===0||M.avail_in===0&&(I===s||I===l))&&(this.options.to==="string"?this.onData(r.buf2binstring(e.shrinkBuf(M.output,M.next_out))):this.onData(e.shrinkBuf(M.output,M.next_out)))}while((M.avail_in>0||M.avail_out===0)&&k!==f);return I===s?(k=t.deflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===u):(I===l&&(this.onEnd(u),M.avail_out=0),!0)},g.prototype.onData=function(P){this.chunks.push(P)},g.prototype.onEnd=function(P){P===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};function b(P,A){var M=new g(A);if(M.push(P,!0),M.err)throw M.msg||n[M.err];return M.result}function w(P,A){return A=A||{},A.raw=!0,b(P,A)}function x(P,A){return A=A||{},A.gzip=!0,b(P,A)}return Pi.Deflate=g,Pi.deflate=b,Pi.deflateRaw=w,Pi.gzip=x,Pi}var ki={},mr={},Au,Dl;function rg(){if(Dl)return Au;Dl=1;var t=30,e=12;return Au=function(n,i){var a,o,s,u,f,l,h,d,v,g,b,w,x,P,A,M,B,k,I,j,H,W,q,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,P=a.lencode,A=a.distcode,M=(1<<a.lenbits)-1,B=(1<<a.distbits)-1;e:do{x<15&&(w+=Z[o++]<<x,x+=8,w+=Z[o++]<<x,x+=8),k=P[w&M];t:for(;;){if(I=k>>>24,w>>>=I,x-=I,I=k>>>16&255,I===0)U[u++]=k&65535;else if(I&16){j=k&65535,I&=15,I&&(x<I&&(w+=Z[o++]<<x,x+=8),j+=w&(1<<I)-1,w>>>=I,x-=I),x<15&&(w+=Z[o++]<<x,x+=8,w+=Z[o++]<<x,x+=8),k=A[w&B];r:for(;;){if(I=k>>>24,w>>>=I,x-=I,I=k>>>16&255,I&16){if(H=k&65535,I&=15,x<I&&(w+=Z[o++]<<x,x+=8,x<I&&(w+=Z[o++]<<x,x+=8)),H+=w&(1<<I)-1,H>h){n.msg="invalid distance too far back",a.mode=t;break e}if(w>>>=I,x-=I,I=u-f,H>I){if(I=H-I,I>v&&a.sane){n.msg="invalid distance too far back",a.mode=t;break e}if(W=0,q=b,g===0){if(W+=d-I,I<j){j-=I;do U[u++]=b[W++];while(--I);W=u-H,q=U}}else if(g<I){if(W+=d+g-I,I-=g,I<j){j-=I;do U[u++]=b[W++];while(--I);if(W=0,g<j){I=g,j-=I;do U[u++]=b[W++];while(--I);W=u-H,q=U}}}else if(W+=g-I,I<j){j-=I;do U[u++]=b[W++];while(--I);W=u-H,q=U}for(;j>2;)U[u++]=q[W++],U[u++]=q[W++],U[u++]=q[W++],j-=3;j&&(U[u++]=q[W++],j>1&&(U[u++]=q[W++]))}else{W=u-H;do U[u++]=U[W++],U[u++]=U[W++],U[u++]=U[W++],j-=3;while(j>2);j&&(U[u++]=U[W++],j>1&&(U[u++]=U[W++]))}}else if((I&64)===0){k=A[(k&65535)+(w&(1<<I)-1)];continue r}else{n.msg="invalid distance code",a.mode=t;break e}break}}else if((I&64)===0){k=P[(k&65535)+(w&(1<<I)-1)];continue t}else if(I&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},Au}var Cu,Ol;function ng(){if(Ol)return Cu;Ol=1;var t=Yn(),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 Cu=function(d,v,g,b,w,x,P,A){var M=A.bits,B=0,k=0,I=0,j=0,H=0,W=0,q=0,Z=0,U=0,re=0,_,$,Q,de,pe,we=null,me=0,De,Le=new t.Buf16(e+1),Ge=new t.Buf16(e+1),Xe=null,Fe=0,Ne,ce,Te;for(B=0;B<=e;B++)Le[B]=0;for(k=0;k<b;k++)Le[v[g+k]]++;for(H=M,j=e;j>=1&&Le[j]===0;j--);if(H>j&&(H=j),j===0)return w[x++]=1<<24|64<<16|0,w[x++]=1<<24|64<<16|0,A.bits=1,0;for(I=1;I<j&&Le[I]===0;I++);for(H<I&&(H=I),Z=1,B=1;B<=e;B++)if(Z<<=1,Z-=Le[B],Z<0)return-1;if(Z>0&&(d===i||j!==1))return-1;for(Ge[1]=0,B=1;B<e;B++)Ge[B+1]=Ge[B]+Le[B];for(k=0;k<b;k++)v[g+k]!==0&&(P[Ge[v[g+k]]++]=k);if(d===i?(we=Xe=P,De=19):d===a?(we=s,me-=257,Xe=u,Fe-=257,De=256):(we=f,Xe=l,De=-1),re=0,k=0,B=I,pe=x,W=H,q=0,Q=-1,U=1<<H,de=U-1,d===a&&U>r||d===o&&U>n)return 1;for(;;){Ne=B-q,P[k]<De?(ce=0,Te=P[k]):P[k]>De?(ce=Xe[Fe+P[k]],Te=we[me+P[k]]):(ce=96,Te=0),_=1<<B-q,$=1<<W,I=$;do $-=_,w[pe+(re>>q)+$]=Ne<<24|ce<<16|Te|0;while($!==0);for(_=1<<B-1;re&_;)_>>=1;if(_!==0?(re&=_-1,re+=_):re=0,k++,--Le[B]===0){if(B===j)break;B=v[g+P[k]]}if(B>H&&(re&de)!==Q){for(q===0&&(q=H),pe+=I,W=B-q,Z=1<<W;W+q<j&&(Z-=Le[W+q],!(Z<=0));)W++,Z<<=1;if(U+=1<<W,d===a&&U>r||d===o&&U>n)return 1;Q=re&de,w[Q]=H<<24|W<<16|pe-x|0}}return re!==0&&(w[pe+re]=B-q<<24|64<<16|0),A.bits=H,0},Cu}var Pl;function ig(){if(Pl)return mr;Pl=1;var t=Yn(),e=Md(),r=Ld(),n=rg(),i=ng(),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,P=8,A=1,M=2,B=3,k=4,I=5,j=6,H=7,W=8,q=9,Z=10,U=11,re=12,_=13,$=14,Q=15,de=16,pe=17,we=18,me=19,De=20,Le=21,Ge=22,Xe=23,Fe=24,Ne=25,ce=26,Te=27,xe=28,Re=29,he=30,Oe=31,gt=32,E=852,y=592,m=15,D=m;function N(L){return(L>>>24&255)+(L>>>8&65280)+((L&65280)<<8)+((L&255)<<24)}function ee(){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 Y(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,Y(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 ee,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,Ct,wt;function St(L){if(Qe){var X;for(Ct=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,Ct,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=Ct,L.lenbits=9,L.distcode=wt,L.distbits=5}function er(L,X,F,ne){var Pe,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):(Pe=p.wsize-p.wnext,Pe>ne&&(Pe=ne),t.arraySet(p.window,X,F-ne,Pe,p.wnext),ne-=Pe,ne?(t.arraySet(p.window,X,F-ne,ne,0),p.wnext=ne,p.whave=p.wsize):(p.wnext+=Pe,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=Pe))),0}function C(L,X){var F,ne,Pe,p,G,K,S,R,V,Ae,ve,ge,ut,rn,Dt=0,lt,Ut,Qt,ir,Ao,Co,It,yr,Kt=new t.Buf8(4),nn,zr,ml=[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===re&&(F.mode=_),G=L.next_out,Pe=L.output,S=L.avail_out,p=L.next_in,ne=L.input,K=L.avail_in,R=F.hold,V=F.bits,Ae=K,ve=S,yr=h;e:for(;;)switch(F.mode){case A:if(F.wrap===0){F.mode=_;break}for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(F.wrap&2&&R===35615){F.check=0,Kt[0]=R&255,Kt[1]=R>>>8&255,F.check=r(F.check,Kt,2,0),R=0,V=0,F.mode=M;break}if(F.flags=0,F.head&&(F.head.done=!1),!(F.wrap&1)||(((R&255)<<8)+(R>>8))%31){L.msg="incorrect header check",F.mode=he;break}if((R&15)!==P){L.msg="unknown compression method",F.mode=he;break}if(R>>>=4,V-=4,It=(R&15)+8,F.wbits===0)F.wbits=It;else if(It>F.wbits){L.msg="invalid window size",F.mode=he;break}F.dmax=1<<It,L.adler=F.check=1,F.mode=R&512?Z:re,R=0,V=0;break;case M:for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(F.flags=R,(F.flags&255)!==P){L.msg="unknown compression method",F.mode=he;break}if(F.flags&57344){L.msg="unknown header flags set",F.mode=he;break}F.head&&(F.head.text=R>>8&1),F.flags&512&&(Kt[0]=R&255,Kt[1]=R>>>8&255,F.check=r(F.check,Kt,2,0)),R=0,V=0,F.mode=B;case B:for(;V<32;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.head&&(F.head.time=R),F.flags&512&&(Kt[0]=R&255,Kt[1]=R>>>8&255,Kt[2]=R>>>16&255,Kt[3]=R>>>24&255,F.check=r(F.check,Kt,4,0)),R=0,V=0,F.mode=k;case k:for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.head&&(F.head.xflags=R&255,F.head.os=R>>8),F.flags&512&&(Kt[0]=R&255,Kt[1]=R>>>8&255,F.check=r(F.check,Kt,2,0)),R=0,V=0,F.mode=I;case I:if(F.flags&1024){for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.length=R,F.head&&(F.head.extra_len=R),F.flags&512&&(Kt[0]=R&255,Kt[1]=R>>>8&255,F.check=r(F.check,Kt,2,0)),R=0,V=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&&(It=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,It)),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=H;case H:if(F.flags&2048){if(K===0)break e;ge=0;do It=ne[p+ge++],F.head&&It&&F.length<65536&&(F.head.name+=String.fromCharCode(It));while(It&&ge<K);if(F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,It)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=W;case W:if(F.flags&4096){if(K===0)break e;ge=0;do It=ne[p+ge++],F.head&&It&&F.length<65536&&(F.head.comment+=String.fromCharCode(It));while(It&&ge<K);if(F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,It)break e}else F.head&&(F.head.comment=null);F.mode=q;case q:if(F.flags&512){for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(R!==(F.check&65535)){L.msg="header crc mismatch",F.mode=he;break}R=0,V=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),L.adler=F.check=0,F.mode=re;break;case Z:for(;V<32;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}L.adler=F.check=N(R),R=0,V=0,F.mode=U;case U:if(F.havedict===0)return L.next_out=G,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=R,F.bits=V,v;L.adler=F.check=1,F.mode=re;case re:if(X===f||X===l)break e;case _:if(F.last){R>>>=V&7,V-=V&7,F.mode=Te;break}for(;V<3;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}switch(F.last=R&1,R>>>=1,V-=1,R&3){case 0:F.mode=$;break;case 1:if(St(F),F.mode=De,X===l){R>>>=2,V-=2;break e}break;case 2:F.mode=pe;break;case 3:L.msg="invalid block type",F.mode=he}R>>>=2,V-=2;break;case $:for(R>>>=V&7,V-=V&7;V<32;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if((R&65535)!==(R>>>16^65535)){L.msg="invalid stored block lengths",F.mode=he;break}if(F.length=R&65535,R=0,V=0,F.mode=Q,X===l)break e;case Q:F.mode=de;case de:if(ge=F.length,ge){if(ge>K&&(ge=K),ge>S&&(ge=S),ge===0)break e;t.arraySet(Pe,ne,p,ge,G),K-=ge,p+=ge,S-=ge,G+=ge,F.length-=ge;break}F.mode=re;break;case pe:for(;V<14;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(F.nlen=(R&31)+257,R>>>=5,V-=5,F.ndist=(R&31)+1,R>>>=5,V-=5,F.ncode=(R&15)+4,R>>>=4,V-=4,F.nlen>286||F.ndist>30){L.msg="too many length or distance symbols",F.mode=he;break}F.have=0,F.mode=we;case we:for(;F.have<F.ncode;){for(;V<3;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.lens[ml[F.have++]]=R&7,R>>>=3,V-=3}for(;F.have<19;)F.lens[ml[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=he;break}F.have=0,F.mode=me;case me:for(;F.have<F.nlen+F.ndist;){for(;Dt=F.lencode[R&(1<<F.lenbits)-1],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(Qt<16)R>>>=lt,V-=lt,F.lens[F.have++]=Qt;else{if(Qt===16){for(zr=lt+2;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(R>>>=lt,V-=lt,F.have===0){L.msg="invalid bit length repeat",F.mode=he;break}It=F.lens[F.have-1],ge=3+(R&3),R>>>=2,V-=2}else if(Qt===17){for(zr=lt+3;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}R>>>=lt,V-=lt,It=0,ge=3+(R&7),R>>>=3,V-=3}else{for(zr=lt+7;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}R>>>=lt,V-=lt,It=0,ge=11+(R&127),R>>>=7,V-=7}if(F.have+ge>F.nlen+F.ndist){L.msg="invalid bit length repeat",F.mode=he;break}for(;ge--;)F.lens[F.have++]=It}}if(F.mode===he)break;if(F.lens[256]===0){L.msg="invalid code -- missing end-of-block",F.mode=he;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=he;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=he;break}if(F.mode=De,X===l)break e;case De:F.mode=Le;case Le:if(K>=6&&S>=258){L.next_out=G,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=R,F.bits=V,n(L,ve),G=L.next_out,Pe=L.output,S=L.avail_out,p=L.next_in,ne=L.input,K=L.avail_in,R=F.hold,V=F.bits,F.mode===re&&(F.back=-1);break}for(F.back=0;Dt=F.lencode[R&(1<<F.lenbits)-1],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(Ut&&(Ut&240)===0){for(ir=lt,Ao=Ut,Co=Qt;Dt=F.lencode[Co+((R&(1<<ir+Ao)-1)>>ir)],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(ir+lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}R>>>=ir,V-=ir,F.back+=ir}if(R>>>=lt,V-=lt,F.back+=lt,F.length=Qt,Ut===0){F.mode=ce;break}if(Ut&32){F.back=-1,F.mode=re;break}if(Ut&64){L.msg="invalid literal/length code",F.mode=he;break}F.extra=Ut&15,F.mode=Ge;case Ge:if(F.extra){for(zr=F.extra;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.length+=R&(1<<F.extra)-1,R>>>=F.extra,V-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=Xe;case Xe:for(;Dt=F.distcode[R&(1<<F.distbits)-1],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if((Ut&240)===0){for(ir=lt,Ao=Ut,Co=Qt;Dt=F.distcode[Co+((R&(1<<ir+Ao)-1)>>ir)],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(ir+lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}R>>>=ir,V-=ir,F.back+=ir}if(R>>>=lt,V-=lt,F.back+=lt,Ut&64){L.msg="invalid distance code",F.mode=he;break}F.offset=Qt,F.extra=Ut&15,F.mode=Fe;case Fe:if(F.extra){for(zr=F.extra;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.offset+=R&(1<<F.extra)-1,R>>>=F.extra,V-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){L.msg="invalid distance too far back",F.mode=he;break}F.mode=Ne;case Ne:if(S===0)break e;if(ge=ve-S,F.offset>ge){if(ge=F.offset-ge,ge>F.whave&&F.sane){L.msg="invalid distance too far back",F.mode=he;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=Pe,ut=G-F.offset,ge=F.length;ge>S&&(ge=S),S-=ge,F.length-=ge;do Pe[G++]=rn[ut++];while(--ge);F.length===0&&(F.mode=Le);break;case ce:if(S===0)break e;Pe[G++]=F.length,S--,F.mode=Le;break;case Te:if(F.wrap){for(;V<32;){if(K===0)break e;K--,R|=ne[p++]<<V,V+=8}if(ve-=S,L.total_out+=ve,F.total+=ve,ve&&(L.adler=F.check=F.flags?r(F.check,Pe,ve,G-ve):e(F.check,Pe,ve,G-ve)),ve=S,(F.flags?R:N(R))!==F.check){L.msg="incorrect data check",F.mode=he;break}R=0,V=0}F.mode=xe;case xe:if(F.wrap&&F.flags){for(;V<32;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(R!==(F.total&4294967295)){L.msg="incorrect length check",F.mode=he;break}R=0,V=0}F.mode=Re;case Re:yr=d;break e;case he:yr=b;break e;case Oe:return w;case gt:default:return g}return L.next_out=G,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=R,F.bits=V,(F.wsize||ve!==L.avail_out&&F.mode<he&&(F.mode<Te||X!==u))&&er(L,L.output,L.next_out,ve-L.avail_out),Ae-=L.avail_in,ve-=L.avail_out,L.total_in+=Ae,L.total_out+=ve,F.total+=ve,F.wrap&&ve&&(L.adler=F.check=F.flags?r(F.check,Pe,ve,L.next_out-ve):e(F.check,Pe,ve,L.next_out-ve)),L.data_type=F.bits+(F.last?64:0)+(F.mode===re?128:0)+(F.mode===De||F.mode===Q?256:0),(Ae===0&&ve===0||X===u)&&yr===h&&(yr=x),yr}function te(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,Pe,p;return!L||!L.state||(ne=L.state,ne.wrap!==0&&ne.mode!==U)?g:ne.mode===U&&(Pe=1,Pe=e(Pe,X,F,0),Pe!==ne.check)?b:(p=er(L,X,F,F),p?(ne.mode=Oe,w):(ne.havedict=1,h))}return mr.inflateReset=ye,mr.inflateReset2=Ue,mr.inflateResetKeep=Y,mr.inflateInit=_e,mr.inflateInit2=He,mr.inflate=C,mr.inflateEnd=te,mr.inflateGetHeader=ae,mr.inflateSetDictionary=fe,mr.inflateInfo="pako inflate (from Nodeca project)",mr}var Eu,kl;function zd(){return kl||(kl=1,Eu={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}),Eu}var Tu,Il;function ag(){if(Il)return Tu;Il=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 Tu=t,Tu}var Bl;function og(){if(Bl)return ki;Bl=1;var t=ig(),e=Yn(),r=Nd(),n=zd(),i=rc(),a=Ud(),o=ag(),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,P,A,M,B=!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&&B===!0&&(w=n.Z_OK,B=!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"?(P=r.utf8border(v.output,v.next_out),A=v.next_out-P,M=r.buf2string(v.output,P),v.next_out=A,v.avail_out=g-A,A&&e.arraySet(v.output,v.output,P,A,0),this.onData(M)):this.onData(e.shrinkBuf(v.output,v.next_out))),v.avail_in===0&&v.avail_out===0&&(B=!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 ki.Inflate=u,ki.inflate=f,ki.inflateRaw=l,ki.ungzip=f,ki}var Du,Rl;function sg(){if(Rl)return Du;Rl=1;var t=Yn().assign,e=tg(),r=og(),n=zd(),i={};return t(i,e,r,n),Du=i,Du}var ug=sg();const Ir=_1.getDefaultExportFromCjs(ug);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function At(t,e){return e={exports:{}},t(e,e.exports),e.exports}function Jn(t){return t&&t.default||t}var fg=vg,cg=gg,lg=bg,Xr=[],wr=[],hg=typeof Uint8Array<"u"?Uint8Array:Array,Ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ii=0,dg=Ou.length;Ii<dg;++Ii)Xr[Ii]=Ou[Ii],wr[Ou.charCodeAt(Ii)]=Ii;wr[45]=62;wr[95]=63;function jd(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 vg(t){var e=jd(t),r=e[0],n=e[1];return(r+n)*3/4-n}function pg(t,e,r){return(e+r)*3/4-r}function gg(t){var e,r=jd(t),n=r[0],i=r[1],a=new hg(pg(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 yg(t){return Xr[t>>18&63]+Xr[t>>12&63]+Xr[t>>6&63]+Xr[t&63]}function mg(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(yg(n));return i.join("")}function bg(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,s=r-n;o<s;o+=a)i.push(mg(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 Pu={byteLength:fg,toByteArray:cg,fromByteArray:lg},wg=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)},xg=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},Bi={read:wg,write:xg},dr=At(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(he(E,ArrayBuffer)||E&&he(E.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(E,SharedArrayBuffer)||E&&he(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 N=g(E);if(N)return N;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),N=D.write(E,y);return N!==m&&(D=D.slice(0,N)),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(he(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),he(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,N=m.length,ee=0,Y=Math.min(D,N);ee<Y;++ee)if(y[ee]!==m[ee]){D=y[ee],N=m[ee];break}return D<N?-1:N<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 N=o.allocUnsafe(m),ee=0;for(D=0;D<y.length;++D){var Y=y[D];if(he(Y,Uint8Array)&&(Y=o.from(Y)),!o.isBuffer(Y))throw new TypeError('"list" argument must be an Array of Buffers');Y.copy(N,ee),ee+=Y.length}return N};function x(E,y){if(o.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||he(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 N=!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(N)return D?-1:Ne(E).length;y=(""+y).toLowerCase(),N=!0}}o.byteLength=x;function P(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 de(this,y,m);case"utf8":case"utf-8":return U(this,y,m);case"ascii":return $(this,y,m);case"latin1":case"binary":return Q(this,y,m);case"base64":return Z(this,y,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(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):P.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,N,ee){if(he(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),N===void 0&&(N=0),ee===void 0&&(ee=this.length),m<0||D>y.length||N<0||ee>this.length)throw new RangeError("out of range index");if(N>=ee&&m>=D)return 0;if(N>=ee)return-1;if(m>=D)return 1;if(m>>>=0,D>>>=0,N>>>=0,ee>>>=0,this===y)return 0;for(var Y=ee-N,ye=D-m,Ue=Math.min(Y,ye),He=this.slice(N,ee),_e=y.slice(m,D),Qe=0;Qe<Ue;++Qe)if(He[Qe]!==_e[Qe]){Y=He[Qe],ye=_e[Qe];break}return Y<ye?-1:ye<Y?1:0};function M(E,y,m,D,N){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=N?0:E.length-1),m<0&&(m=E.length+m),m>=E.length){if(N)return-1;m=E.length-1}else if(m<0)if(N)m=0;else return-1;if(typeof y=="string"&&(y=o.from(y,D)),o.isBuffer(y))return y.length===0?-1:B(E,y,m,D,N);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(E,y,m):Uint8Array.prototype.lastIndexOf.call(E,y,m):B(E,[y],m,D,N);throw new TypeError("val must be string, number or Buffer")}function B(E,y,m,D,N){var ee=1,Y=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;ee=2,Y/=2,ye/=2,m/=2}function Ue(wt,St){return ee===1?wt[St]:wt.readUInt16BE(St*ee)}var He;if(N){var _e=-1;for(He=m;He<Y;He++)if(Ue(E,He)===Ue(y,_e===-1?0:He-_e)){if(_e===-1&&(_e=He),He-_e+1===ye)return _e*ee}else _e!==-1&&(He-=He-_e),_e=-1}else for(m+ye>Y&&(m=Y-ye),He=m;He>=0;He--){for(var Qe=!0,Ct=0;Ct<ye;Ct++)if(Ue(E,He+Ct)!==Ue(y,Ct)){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 M(this,y,m,D,!0)},o.prototype.lastIndexOf=function(y,m,D){return M(this,y,m,D,!1)};function k(E,y,m,D){m=Number(m)||0;var N=E.length-m;D?(D=Number(D),D>N&&(D=N)):D=N;var ee=y.length;D>ee/2&&(D=ee/2);for(var Y=0;Y<D;++Y){var ye=parseInt(y.substr(Y*2,2),16);if(Oe(ye))return Y;E[m+Y]=ye}return Y}function I(E,y,m,D){return Re(Ne(y,E.length-m),E,m,D)}function j(E,y,m,D){return Re(ce(y),E,m,D)}function H(E,y,m,D){return j(E,y,m,D)}function W(E,y,m,D){return Re(xe(y),E,m,D)}function q(E,y,m,D){return Re(Te(y,E.length-m),E,m,D)}o.prototype.write=function(y,m,D,N){if(m===void 0)N="utf8",D=this.length,m=0;else if(D===void 0&&typeof m=="string")N=m,D=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(D)?(D=D>>>0,N===void 0&&(N="utf8")):(N=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ee=this.length-m;if((D===void 0||D>ee)&&(D=ee),y.length>0&&(D<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");for(var Y=!1;;)switch(N){case"hex":return k(this,y,m,D);case"utf8":case"utf-8":return I(this,y,m,D);case"ascii":return j(this,y,m,D);case"latin1":case"binary":return H(this,y,m,D);case"base64":return W(this,y,m,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,y,m,D);default:if(Y)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),Y=!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?Pu.fromByteArray(E):Pu.fromByteArray(E.slice(y,m))}function U(E,y,m){m=Math.min(E.length,m);for(var D=[],N=y;N<m;){var ee=E[N],Y=null,ye=ee>239?4:ee>223?3:ee>191?2:1;if(N+ye<=m){var Ue,He,_e,Qe;switch(ye){case 1:ee<128&&(Y=ee);break;case 2:Ue=E[N+1],(Ue&192)===128&&(Qe=(ee&31)<<6|Ue&63,Qe>127&&(Y=Qe));break;case 3:Ue=E[N+1],He=E[N+2],(Ue&192)===128&&(He&192)===128&&(Qe=(ee&15)<<12|(Ue&63)<<6|He&63,Qe>2047&&(Qe<55296||Qe>57343)&&(Y=Qe));break;case 4:Ue=E[N+1],He=E[N+2],_e=E[N+3],(Ue&192)===128&&(He&192)===128&&(_e&192)===128&&(Qe=(ee&15)<<18|(Ue&63)<<12|(He&63)<<6|_e&63,Qe>65535&&Qe<1114112&&(Y=Qe))}}Y===null?(Y=65533,ye=1):Y>65535&&(Y-=65536,D.push(Y>>>10&1023|55296),Y=56320|Y&1023),D.push(Y),N+=ye}return _(D)}var re=4096;function _(E){var y=E.length;if(y<=re)return String.fromCharCode.apply(String,E);for(var m="",D=0;D<y;)m+=String.fromCharCode.apply(String,E.slice(D,D+=re));return m}function $(E,y,m){var D="";m=Math.min(E.length,m);for(var N=y;N<m;++N)D+=String.fromCharCode(E[N]&127);return D}function Q(E,y,m){var D="";m=Math.min(E.length,m);for(var N=y;N<m;++N)D+=String.fromCharCode(E[N]);return D}function de(E,y,m){var D=E.length;(!y||y<0)&&(y=0),(!m||m<0||m>D)&&(m=D);for(var N="",ee=y;ee<m;++ee)N+=gt[E[ee]];return N}function pe(E,y,m){for(var D=E.slice(y,m),N="",ee=0;ee<D.length;ee+=2)N+=String.fromCharCode(D[ee]+D[ee+1]*256);return N}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 N=this.subarray(y,m);return Object.setPrototypeOf(N,o.prototype),N};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 N=this[y],ee=1,Y=0;++Y<m&&(ee*=256);)N+=this[y+Y]*ee;return N},o.prototype.readUIntBE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var N=this[y+--m],ee=1;m>0&&(ee*=256);)N+=this[y+--m]*ee;return N},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 N=this[y],ee=1,Y=0;++Y<m&&(ee*=256);)N+=this[y+Y]*ee;return ee*=128,N>=ee&&(N-=Math.pow(2,8*m)),N},o.prototype.readIntBE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var N=m,ee=1,Y=this[y+--N];N>0&&(ee*=256);)Y+=this[y+--N]*ee;return ee*=128,Y>=ee&&(Y-=Math.pow(2,8*m)),Y},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),Bi.read(this,y,!0,23,4)},o.prototype.readFloatBE=function(y,m){return y=y>>>0,m||we(y,4,this.length),Bi.read(this,y,!1,23,4)},o.prototype.readDoubleLE=function(y,m){return y=y>>>0,m||we(y,8,this.length),Bi.read(this,y,!0,52,8)},o.prototype.readDoubleBE=function(y,m){return y=y>>>0,m||we(y,8,this.length),Bi.read(this,y,!1,52,8)};function me(E,y,m,D,N,ee){if(!o.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>N||y<ee)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,N){if(y=+y,m=m>>>0,D=D>>>0,!N){var ee=Math.pow(2,8*D)-1;me(this,y,m,D,ee,0)}var Y=1,ye=0;for(this[m]=y&255;++ye<D&&(Y*=256);)this[m+ye]=y/Y&255;return m+D},o.prototype.writeUIntBE=function(y,m,D,N){if(y=+y,m=m>>>0,D=D>>>0,!N){var ee=Math.pow(2,8*D)-1;me(this,y,m,D,ee,0)}var Y=D-1,ye=1;for(this[m+Y]=y&255;--Y>=0&&(ye*=256);)this[m+Y]=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,N){if(y=+y,m=m>>>0,!N){var ee=Math.pow(2,8*D-1);me(this,y,m,D,ee-1,-ee)}var Y=0,ye=1,Ue=0;for(this[m]=y&255;++Y<D&&(ye*=256);)y<0&&Ue===0&&this[m+Y-1]!==0&&(Ue=1),this[m+Y]=(y/ye>>0)-Ue&255;return m+D},o.prototype.writeIntBE=function(y,m,D,N){if(y=+y,m=m>>>0,!N){var ee=Math.pow(2,8*D-1);me(this,y,m,D,ee-1,-ee)}var Y=D-1,ye=1,Ue=0;for(this[m+Y]=y&255;--Y>=0&&(ye*=256);)y<0&&Ue===0&&this[m+Y+1]!==0&&(Ue=1),this[m+Y]=(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 De(E,y,m,D,N,ee){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,N){return y=+y,m=m>>>0,N||De(E,y,m,4),Bi.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,N){return y=+y,m=m>>>0,N||De(E,y,m,8),Bi.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,N){if(!o.isBuffer(y))throw new TypeError("argument should be a Buffer");if(D||(D=0),!N&&N!==0&&(N=this.length),m>=y.length&&(m=y.length),m||(m=0),N>0&&N<D&&(N=D),N===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(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),y.length-m<N-D&&(N=y.length-m+D);var ee=N-D;if(this===y&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(m,D,N);else if(this===y&&D<m&&m<N)for(var Y=ee-1;Y>=0;--Y)y[Y+m]=this[Y+D];else Uint8Array.prototype.set.call(y,this.subarray(D,N),m);return ee},o.prototype.fill=function(y,m,D,N){if(typeof y=="string"){if(typeof m=="string"?(N=m,m=0,D=this.length):typeof D=="string"&&(N=D,D=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!o.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(y.length===1){var ee=y.charCodeAt(0);(N==="utf8"&&ee<128||N==="latin1")&&(y=ee)}}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 Y;if(typeof y=="number")for(Y=m;Y<D;++Y)this[Y]=y;else{var ye=o.isBuffer(y)?y:o.from(y,N),Ue=ye.length;if(Ue===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(Y=0;Y<D-m;++Y)this[Y+m]=ye[Y%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,N=null,ee=[],Y=0;Y<D;++Y){if(m=E.charCodeAt(Y),m>55295&&m<57344){if(!N){if(m>56319){(y-=3)>-1&&ee.push(239,191,189);continue}else if(Y+1===D){(y-=3)>-1&&ee.push(239,191,189);continue}N=m;continue}if(m<56320){(y-=3)>-1&&ee.push(239,191,189),N=m;continue}m=(N-55296<<10|m-56320)+65536}else N&&(y-=3)>-1&&ee.push(239,191,189);if(N=null,m<128){if((y-=1)<0)break;ee.push(m)}else if(m<2048){if((y-=2)<0)break;ee.push(m>>6|192,m&63|128)}else if(m<65536){if((y-=3)<0)break;ee.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((y-=4)<0)break;ee.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return ee}function ce(E){for(var y=[],m=0;m<E.length;++m)y.push(E.charCodeAt(m)&255);return y}function Te(E,y){for(var m,D,N,ee=[],Y=0;Y<E.length&&!((y-=2)<0);++Y)m=E.charCodeAt(Y),D=m>>8,N=m%256,ee.push(N),ee.push(D);return ee}function xe(E){return Pu.toByteArray(Fe(E))}function Re(E,y,m,D){for(var N=0;N<D&&!(N+m>=y.length||N>=E.length);++N)y[N+m]=E[N];return N}function he(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,N=0;N<16;++N)y[D+N]=E[m]+E[N];return y})()}),mt=dr.Buffer;dr.SlowBuffer;dr.INSPECT_MAX_BYTES;dr.kMaxLength;var Fg;function Ln(){}Ln.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&&Fg.active,(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new Ln,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 Vd(t){return t._maxListeners===void 0?ct.defaultMaxListeners:t._maxListeners}ct.prototype.getMaxListeners=function(){return Vd(this)};function Sg(t,e,r){if(e)t.call(r);else for(var n=t.length,i=fo(t,n),a=0;a<n;++a)i[a].call(r)}function Ag(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=fo(t,i),o=0;o<i;++o)a[o].call(r,n)}function Cg(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=fo(t,a),s=0;s<a;++s)o[s].call(r,n,i)}function Eg(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=fo(t,o),u=0;u<o;++u)s[u].call(r,n,i,a)}function Tg(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=fo(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:Sg(n,h,this);break;case 2:Ag(n,h,this,arguments[1]);break;case 3:Cg(n,h,this,arguments[1],arguments[2]);break;case 4:Eg(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];Tg(n,h,this,a)}return!0};function qd(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 Ln,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=Vd(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,Dg(s)}return t}function Dg(t){typeof console.warn=="function"?console.warn(t):console.log(t)}ct.prototype.addListener=function(e,r){return qd(this,e,r,!1)};ct.prototype.on=ct.prototype.addListener;ct.prototype.prependListener=function(e,r){return qd(this,e,r,!0)};function Wd(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,Wd(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,Wd(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 Ln:(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 Ln,this;delete i[e]}else Og(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 Ln,this._eventsCount=0):n[e]&&(--this._eventsCount===0?this._events=new Ln: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 Ln,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=Pg(r):n=[]):n=[],n};ct.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Gd.call(t,e)};ct.prototype.listenerCount=Gd;function Gd(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 Og(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 fo(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function Pg(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}var Ls=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function Hd(){throw new Error("setTimeout has not been defined")}function Kd(){throw new Error("clearTimeout has not been defined")}var En=Hd,Tn=Kd;typeof Ls.setTimeout=="function"&&(En=setTimeout);typeof Ls.clearTimeout=="function"&&(Tn=clearTimeout);function Xd(t){if(En===setTimeout)return setTimeout(t,0);if((En===Hd||!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 kg(t){if(Tn===clearTimeout)return clearTimeout(t);if((Tn===Kd||!Tn)&&clearTimeout)return Tn=clearTimeout,clearTimeout(t);try{return Tn(t)}catch{try{return Tn.call(null,t)}catch{return Tn.call(this,t)}}}var cn=[],Qi=!1,di,Jo=-1;function Ig(){!Qi||!di||(Qi=!1,di.length?cn=di.concat(cn):Jo=-1,cn.length&&Zd())}function Zd(){if(!Qi){var t=Xd(Ig);Qi=!0;for(var e=cn.length;e;){for(di=cn,cn=[];++Jo<e;)di&&di[Jo].run();Jo=-1,e=cn.length}di=null,Qi=!1,kg(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 Yd(t,e)),cn.length===1&&!Qi&&Xd(Zd)}function Yd(t,e){this.fun=t,this.array=e}Yd.prototype.run=function(){this.fun.apply(null,this.array)};var Bg="browser",Rg="browser",Mg=!0,Lg={},Ng=[],Ug="",zg={},jg={},Vg={};function Si(){}var qg=Si,Wg=Si,Gg=Si,Hg=Si,Kg=Si,Xg=Si,Zg=Si;function Yg(t){throw new Error("process.binding is not supported")}function Jg(){return"/"}function Qg(t){throw new Error("process.chdir is not supported")}function _g(){return 0}var Gi=Ls.performance||{},$g=Gi.now||Gi.mozNow||Gi.msNow||Gi.oNow||Gi.webkitNow||function(){return new Date().getTime()};function ey(t){var e=$g.call(Gi)*.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 ty=new Date;function ry(){var t=new Date,e=t-ty;return e/1e3}var Nn={nextTick:fr,title:Bg,browser:Mg,env:Lg,argv:Ng,version:Ug,versions:zg,on:qg,addListener:Wg,once:Gg,off:Hg,removeListener:Kg,removeAllListeners:Xg,emit:Zg,binding:Yg,cwd:Jg,chdir:Qg,umask:_g,hrtime:ey,platform:Rg,release:jg,config:Vg,uptime:ry},Sf;typeof Object.create=="function"?Sf=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Sf=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e};var da=Sf,ny=/%[sdj%]/g;function iy(t){if(!ic(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(ny,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])nc(o)||!co(o)?a+=" "+o:a+=" "+ln(o);return a}function Jd(t,e){if(In(Ls.process))return function(){return Jd(t,e).apply(this,arguments)};if(Nn.noDeprecation===!0)return t;var r=!1;function n(){if(!r){if(Nn.throwDeprecation)throw new Error(e);Nn.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return n}var Eo={},ku;function ay(t){if(In(ku)&&(ku=Nn.env.NODE_DEBUG||""),t=t.toUpperCase(),!Eo[t])if(new RegExp("\\b"+t+"\\b","i").test(ku)){var e=0;Eo[t]=function(){var r=iy.apply(null,arguments);console.error("%s %d: %s",t,e,r)}}else Eo[t]=function(){};return Eo[t]}function ln(t,e){var r={seen:[],stylize:sy};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Qd(e)?r.showHidden=e:e&&vy(r,e),In(r.showHidden)&&(r.showHidden=!1),In(r.depth)&&(r.depth=2),In(r.colors)&&(r.colors=!1),In(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=oy),fs(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 oy(t,e){var r=ln.styles[e];return r?"\x1B["+ln.colors[r][0]+"m"+t+"\x1B["+ln.colors[r][1]+"m":t}function sy(t,e){return t}function uy(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function fs(t,e,r){if(t.customInspect&&e&&Mu(e.inspect)&&e.inspect!==ln&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return ic(n)||(n=fs(t,n,r)),n}var i=fy(t,e);if(i)return i;var a=Object.keys(e),o=uy(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),Ru(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Iu(e);if(a.length===0){if(Mu(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(Bu(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Ml(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Ru(e))return Iu(e)}var u="",f=!1,l=["{","}"];if(hy(e)&&(f=!0,l=["[","]"]),Mu(e)){var h=e.name?": "+e.name:"";u=" [Function"+h+"]"}if(Bu(e)&&(u=" "+RegExp.prototype.toString.call(e)),Ml(e)&&(u=" "+Date.prototype.toUTCString.call(e)),Ru(e)&&(u=" "+Iu(e)),a.length===0&&(!f||e.length==0))return l[0]+u+l[1];if(r<0)return Bu(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var d;return f?d=cy(t,e,r,o,a):d=a.map(function(v){return Af(t,e,r,o,v,f)}),t.seen.pop(),ly(d,u,l)}function fy(t,e){if(In(e))return t.stylize("undefined","undefined");if(ic(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(dy(e))return t.stylize(""+e,"number");if(Qd(e))return t.stylize(""+e,"boolean");if(nc(e))return t.stylize("null","null")}function Iu(t){return"["+Error.prototype.toString.call(t)+"]"}function cy(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)_d(e,String(o))?a.push(Af(t,e,r,n,String(o),!0)):a.push("");return i.forEach(function(u){u.match(/^\d+$/)||a.push(Af(t,e,r,n,u,!0))}),a}function Af(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")),_d(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(nc(r)?s=fs(t,u.value,null):s=fs(t,u.value,r-1),s.indexOf(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _1=require("./_commonjsHelpers-DKOUU3wS.cjs"),Bd=require("./render-plan-CCTL4F9v.cjs"),Rd=require("./textwrap-oD-t4b4B.cjs"),ur=require("./grid-geometry-BNIvw52m.cjs");var bu={},bl;function Yn(){return bl||(bl=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)})(bu)),bu}var Pi={},Rr={},ri={},wl;function $1(){if(wl)return ri;wl=1;var t=Yn(),e=4,r=0,n=1,i=2;function a(C){for(var te=C.length;--te>=0;)C[te]=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,P=16,A=7,M=256,B=16,k=17,I=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],H=[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],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],q=[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 re=new Array(g*2);a(re);var _=new Array(Z);a(_);var $=new Array(l-f+1);a($);var Q=new Array(h);a(Q);var de=new Array(g);a(de);function pe(C,te,ae,fe,L){this.static_tree=C,this.extra_bits=te,this.extra_base=ae,this.elems=fe,this.max_length=L,this.has_stree=C&&C.length}var we,me,De;function Le(C,te){this.dyn_tree=C,this.max_code=0,this.stat_desc=te}function Ge(C){return C<256?_[C]:_[256+(C>>>7)]}function Xe(C,te){C.pending_buf[C.pending++]=te&255,C.pending_buf[C.pending++]=te>>>8&255}function Fe(C,te,ae){C.bi_valid>P-ae?(C.bi_buf|=te<<C.bi_valid&65535,Xe(C,C.bi_buf),C.bi_buf=te>>P-C.bi_valid,C.bi_valid+=ae-P):(C.bi_buf|=te<<C.bi_valid&65535,C.bi_valid+=ae)}function Ne(C,te,ae){Fe(C,ae[te*2],ae[te*2+1])}function ce(C,te){var ae=0;do ae|=C&1,C>>>=1,ae<<=1;while(--te>0);return ae>>>1}function Te(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,te){var ae=te.dyn_tree,fe=te.max_code,L=te.stat_desc.static_tree,X=te.stat_desc.has_stree,F=te.stat_desc.extra_bits,ne=te.stat_desc.extra_base,Pe=te.stat_desc.max_length,p,G,K,S,R,V,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++)G=C.heap[p],S=ae[ae[G*2+1]*2+1]+1,S>Pe&&(S=Pe,Ae++),ae[G*2+1]=S,!(G>fe)&&(C.bl_count[S]++,R=0,G>=ne&&(R=F[G-ne]),V=ae[G*2],C.opt_len+=V*(S+R),X&&(C.static_len+=V*(L[G*2+1]+R)));if(Ae!==0){do{for(S=Pe-1;C.bl_count[S]===0;)S--;C.bl_count[S]--,C.bl_count[S+1]+=2,C.bl_count[Pe]--,Ae-=2}while(Ae>0);for(S=Pe;S!==0;S--)for(G=C.bl_count[S];G!==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),G--)}}function Re(C,te,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<=te;F++){var ne=C[F*2+1];ne!==0&&(C[F*2]=ce(fe[ne]++,ne))}}function he(){var C,te,ae,fe,L,X=new Array(x+1);for(ae=0,fe=0;fe<h-1;fe++)for(Q[fe]=ae,C=0;C<1<<j[fe];C++)$[ae++]=fe;for($[ae-1]=fe,L=0,fe=0;fe<16;fe++)for(de[fe]=L,C=0;C<1<<H[fe];C++)_[L++]=fe;for(L>>=7;fe<g;fe++)for(de[fe]=L<<7,C=0;C<1<<H[fe]-7;C++)_[256+L++]=fe;for(te=0;te<=x;te++)X[te]=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++)re[C*2+1]=5,re[C*2]=ce(C,5);we=new pe(U,j,d+1,v,x),me=new pe(re,H,0,g,x),De=new pe(new Array(0),W,0,b,A)}function Oe(C){var te;for(te=0;te<v;te++)C.dyn_ltree[te*2]=0;for(te=0;te<g;te++)C.dyn_dtree[te*2]=0;for(te=0;te<b;te++)C.bl_tree[te*2]=0;C.dyn_ltree[M*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,te,ae,fe){gt(C),Xe(C,ae),Xe(C,~ae),t.arraySet(C.pending_buf,C.window,te,ae,C.pending),C.pending+=ae}function y(C,te,ae,fe){var L=te*2,X=ae*2;return C[L]<C[X]||C[L]===C[X]&&fe[te]<=fe[ae]}function m(C,te,ae){for(var fe=C.heap[ae],L=ae<<1;L<=C.heap_len&&(L<C.heap_len&&y(te,C.heap[L+1],C.heap[L],C.depth)&&L++,!y(te,fe,C.heap[L],C.depth));)C.heap[ae]=C.heap[L],ae=L,L<<=1;C.heap[ae]=fe}function D(C,te,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,te):(F=$[L],Ne(C,F+d+1,te),ne=j[F],ne!==0&&(L-=Q[F],Fe(C,L,ne)),fe--,F=Ge(fe),Ne(C,F,ae),ne=H[F],ne!==0&&(fe-=de[F],Fe(C,fe,ne)));while(X<C.last_lit);Ne(C,M,te)}function N(C,te){var ae=te.dyn_tree,fe=te.stat_desc.static_tree,L=te.stat_desc.has_stree,X=te.stat_desc.elems,F,ne,Pe=-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]=Pe=F,C.depth[F]=0):ae[F*2+1]=0;for(;C.heap_len<2;)p=C.heap[++C.heap_len]=Pe<2?++Pe:0,ae[p*2]=1,C.depth[p]=0,C.opt_len--,L&&(C.static_len-=fe[p*2+1]);for(te.max_code=Pe,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,te),Re(ae,Pe,C.bl_count)}function ee(C,te,ae){var fe,L=-1,X,F=te[1],ne=0,Pe=7,p=4;for(F===0&&(Pe=138,p=3),te[(ae+1)*2+1]=65535,fe=0;fe<=ae;fe++)X=F,F=te[(fe+1)*2+1],!(++ne<Pe&&X===F)&&(ne<p?C.bl_tree[X*2]+=ne:X!==0?(X!==L&&C.bl_tree[X*2]++,C.bl_tree[B*2]++):ne<=10?C.bl_tree[k*2]++:C.bl_tree[I*2]++,ne=0,L=X,F===0?(Pe=138,p=3):X===F?(Pe=6,p=3):(Pe=7,p=4))}function Y(C,te,ae){var fe,L=-1,X,F=te[1],ne=0,Pe=7,p=4;for(F===0&&(Pe=138,p=3),fe=0;fe<=ae;fe++)if(X=F,F=te[(fe+1)*2+1],!(++ne<Pe&&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,B,C.bl_tree),Fe(C,ne-3,2)):ne<=10?(Ne(C,k,C.bl_tree),Fe(C,ne-3,3)):(Ne(C,I,C.bl_tree),Fe(C,ne-11,7));ne=0,L=X,F===0?(Pe=138,p=3):X===F?(Pe=6,p=3):(Pe=7,p=4)}}function ye(C){var te;for(ee(C,C.dyn_ltree,C.l_desc.max_code),ee(C,C.dyn_dtree,C.d_desc.max_code),N(C,C.bl_desc),te=b-1;te>=3&&C.bl_tree[q[te]*2+1]===0;te--);return C.opt_len+=3*(te+1)+5+5+4,te}function Ue(C,te,ae,fe){var L;for(Fe(C,te-257,5),Fe(C,ae-1,5),Fe(C,fe-4,4),L=0;L<fe;L++)Fe(C,C.bl_tree[q[L]*2+1],3);Y(C,C.dyn_ltree,te-1),Y(C,C.dyn_dtree,ae-1)}function He(C){var te=4093624447,ae;for(ae=0;ae<=31;ae++,te>>>=1)if(te&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||(he(),_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,De),C.bi_buf=0,C.bi_valid=0,Oe(C)}function Ct(C,te,ae,fe){Fe(C,(o<<1)+(fe?1:0),3),E(C,te,ae)}function wt(C){Fe(C,s<<1,3),Ne(C,M,U),Te(C)}function St(C,te,ae,fe){var L,X,F=0;C.level>0?(C.strm.data_type===i&&(C.strm.data_type=He(C)),N(C,C.l_desc),N(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&&te!==-1?Ct(C,te,ae,fe):C.strategy===e||X===L?(Fe(C,(s<<1)+(fe?1:0),3),D(C,U,re)):(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 er(C,te,ae){return C.pending_buf[C.d_buf+C.last_lit*2]=te>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=te&255,C.pending_buf[C.l_buf+C.last_lit]=ae&255,C.last_lit++,te===0?C.dyn_ltree[ae*2]++:(C.matches++,te--,C.dyn_ltree[($[ae]+d+1)*2]++,C.dyn_dtree[Ge(te)*2]++),C.last_lit===C.lit_bufsize-1}return ri._tr_init=Qe,ri._tr_stored_block=Ct,ri._tr_flush_block=St,ri._tr_tally=er,ri._tr_align=wt,ri}var wu,xl;function Md(){if(xl)return wu;xl=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 wu=t,wu}var xu,Fl;function Ld(){if(Fl)return xu;Fl=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 xu=r,xu}var Fu,Sl;function rc(){return Sl||(Sl=1,Fu={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"}),Fu}var Al;function eg(){if(Al)return Rr;Al=1;var t=Yn(),e=$1(),r=Md(),n=Ld(),i=rc(),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,P=3,A=4,M=0,B=2,k=8,I=9,j=15,H=8,W=29,q=256,Z=q+1+W,U=30,re=19,_=2*Z+1,$=15,Q=3,de=258,pe=de+Q+1,we=32,me=42,De=69,Le=73,Ge=91,Xe=103,Fe=113,Ne=666,ce=1,Te=2,xe=3,Re=4,he=3;function Oe(p,G){return p.msg=i[G],G}function gt(p){return(p<<1)-(p>4?9:0)}function E(p){for(var G=p.length;--G>=0;)p[G]=0}function y(p){var G=p.state,K=G.pending;K>p.avail_out&&(K=p.avail_out),K!==0&&(t.arraySet(p.output,G.pending_buf,G.pending_out,K,p.next_out),p.next_out+=K,G.pending_out+=K,p.total_out+=K,p.avail_out-=K,G.pending-=K,G.pending===0&&(G.pending_out=0))}function m(p,G){e._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,G),p.block_start=p.strstart,y(p.strm)}function D(p,G){p.pending_buf[p.pending++]=G}function N(p,G){p.pending_buf[p.pending++]=G>>>8&255,p.pending_buf[p.pending++]=G&255}function ee(p,G,K,S){var R=p.avail_in;return R>S&&(R=S),R===0?0:(p.avail_in-=R,t.arraySet(G,p.input,p.next_in,R,K),p.state.wrap===1?p.adler=r(p.adler,G,R,K):p.state.wrap===2&&(p.adler=n(p.adler,G,R,K)),p.next_in+=R,p.total_in+=R,R)}function Y(p,G){var K=p.max_chain_length,S=p.strstart,R,V,Ae=p.prev_length,ve=p.nice_match,ge=p.strstart>p.w_size-pe?p.strstart-(p.w_size-pe):0,ut=p.window,rn=p.w_mask,Dt=p.prev,lt=p.strstart+de,Ut=ut[S+Ae-1],Qt=ut[S+Ae];p.prev_length>=p.good_match&&(K>>=2),ve>p.lookahead&&(ve=p.lookahead);do if(R=G,!(ut[R+Ae]!==Qt||ut[R+Ae-1]!==Ut||ut[R]!==ut[S]||ut[++R]!==ut[S+1])){S+=2,R++;do;while(ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&ut[++S]===ut[++R]&&S<lt);if(V=de-(lt-S),S=lt-de,V>Ae){if(p.match_start=G,Ae=V,V>=ve)break;Ut=ut[S+Ae-1],Qt=ut[S+Ae]}}while((G=Dt[G&rn])>ge&&--K!==0);return Ae<=p.lookahead?Ae:p.lookahead}function ye(p){var G=p.w_size,K,S,R,V,Ae;do{if(V=p.window_size-p.lookahead-p.strstart,p.strstart>=G+(G-pe)){t.arraySet(p.window,p.window,G,G,0),p.match_start-=G,p.strstart-=G,p.block_start-=G,S=p.hash_size,K=S;do R=p.head[--K],p.head[K]=R>=G?R-G:0;while(--S);S=G,K=S;do R=p.prev[--K],p.prev[K]=R>=G?R-G:0;while(--S);V+=G}if(p.strm.avail_in===0)break;if(S=ee(p.strm,p.window,p.strstart+p.lookahead,V),p.lookahead+=S,p.lookahead+p.insert>=Q)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+Q-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<Q)););}while(p.lookahead<pe&&p.strm.avail_in!==0)}function Ue(p,G){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&&G===a)return ce;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-pe&&(m(p,!1),p.strm.avail_out===0))return ce}return p.insert=0,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):(p.strstart>p.block_start&&(m(p,!1),p.strm.avail_out===0),ce)}function He(p,G){for(var K,S;;){if(p.lookahead<pe){if(ye(p),p.lookahead<pe&&G===a)return ce;if(p.lookahead===0)break}if(K=0,p.lookahead>=Q&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+Q-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-pe&&(p.match_length=Y(p,K)),p.match_length>=Q)if(S=e._tr_tally(p,p.strstart-p.match_start,p.match_length-Q),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=Q){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+Q-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 ce}return p.insert=p.strstart<Q-1?p.strstart:Q-1,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?ce:Te}function _e(p,G){for(var K,S,R;;){if(p.lookahead<pe){if(ye(p),p.lookahead<pe&&G===a)return ce;if(p.lookahead===0)break}if(K=0,p.lookahead>=Q&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+Q-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=Q-1,K!==0&&p.prev_length<p.max_lazy_match&&p.strstart-K<=p.w_size-pe&&(p.match_length=Y(p,K),p.match_length<=5&&(p.strategy===w||p.match_length===Q&&p.strstart-p.match_start>4096)&&(p.match_length=Q-1)),p.prev_length>=Q&&p.match_length<=p.prev_length){R=p.strstart+p.lookahead-Q,S=e._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-Q),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=R&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+Q-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=Q-1,p.strstart++,S&&(m(p,!1),p.strm.avail_out===0))return ce}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 ce}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<Q-1?p.strstart:Q-1,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?ce:Te}function Qe(p,G){for(var K,S,R,V,Ae=p.window;;){if(p.lookahead<=de){if(ye(p),p.lookahead<=de&&G===a)return ce;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=Q&&p.strstart>0&&(R=p.strstart-1,S=Ae[R],S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R])){V=p.strstart+de;do;while(S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&S===Ae[++R]&&R<V);p.match_length=de-(V-R),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=Q?(K=e._tr_tally(p,1,p.match_length-Q),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 ce}return p.insert=0,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?ce:Te}function Ct(p,G){for(var K;;){if(p.lookahead===0&&(ye(p),p.lookahead===0)){if(G===a)return ce;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 ce}return p.insert=0,G===u?(m(p,!0),p.strm.avail_out===0?xe:Re):p.last_lit&&(m(p,!1),p.strm.avail_out===0)?ce:Te}function wt(p,G,K,S,R){this.good_length=p,this.max_lazy=G,this.nice_length=K,this.max_chain=S,this.func=R}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 er(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=Q-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=k,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(_*2),this.dyn_dtree=new t.Buf16((2*U+1)*2),this.bl_tree=new t.Buf16((2*re+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 te(p){var G;return!p||!p.state?Oe(p,d):(p.total_in=p.total_out=0,p.data_type=B,G=p.state,G.pending=0,G.pending_out=0,G.wrap<0&&(G.wrap=-G.wrap),G.status=G.wrap?me:Fe,p.adler=G.wrap===2?0:1,G.last_flush=a,e._tr_init(G),l)}function ae(p){var G=te(p);return G===l&&er(p.state),G}function fe(p,G){return!p||!p.state||p.state.wrap!==2?d:(p.state.gzhead=G,l)}function L(p,G,K,S,R,V){if(!p)return d;var Ae=1;if(G===b&&(G=6),S<0?(Ae=0,S=-S):S>15&&(Ae=2,S-=16),R<1||R>I||K!==k||S<8||S>15||G<0||G>9||V<0||V>A)return Oe(p,d);S===8&&(S=9);var ve=new C;return p.state=ve,ve.strm=p,ve.wrap=Ae,ve.gzhead=null,ve.w_bits=S,ve.w_size=1<<ve.w_bits,ve.w_mask=ve.w_size-1,ve.hash_bits=R+7,ve.hash_size=1<<ve.hash_bits,ve.hash_mask=ve.hash_size-1,ve.hash_shift=~~((ve.hash_bits+Q-1)/Q),ve.window=new t.Buf8(ve.w_size*2),ve.head=new t.Buf16(ve.hash_size),ve.prev=new t.Buf16(ve.w_size),ve.lit_bufsize=1<<R+6,ve.pending_buf_size=ve.lit_bufsize*4,ve.pending_buf=new t.Buf8(ve.pending_buf_size),ve.d_buf=1*ve.lit_bufsize,ve.l_buf=3*ve.lit_bufsize,ve.level=G,ve.strategy=V,ve.method=K,ae(p)}function X(p,G){return L(p,G,k,j,H,M)}function F(p,G){var K,S,R,V;if(!p||!p.state||G>f||G<0)return p?Oe(p,d):d;if(S=p.state,!p.output||!p.input&&p.avail_in!==0||S.status===Ne&&G!==u)return Oe(p,p.avail_out===0?g:d);if(S.strm=p,K=S.last_flush,S.last_flush=G,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=De):(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,he),S.status=Fe);else{var Ae=k+(S.w_bits-8<<4)<<8,ve=-1;S.strategy>=x||S.level<2?ve=0:S.level<6?ve=1:S.level===6?ve=2:ve=3,Ae|=ve<<6,S.strstart!==0&&(Ae|=we),Ae+=31-Ae%31,S.status=Fe,N(S,Ae),S.strstart!==0&&(N(S,p.adler>>>16),N(S,p.adler&65535)),p.adler=1}if(S.status===De)if(S.gzhead.extra){for(R=S.pending;S.gzindex<(S.gzhead.extra.length&65535)&&!(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),y(p),R=S.pending,S.pending===S.pending_buf_size));)D(S,S.gzhead.extra[S.gzindex]&255),S.gzindex++;S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),S.gzindex===S.gzhead.extra.length&&(S.gzindex=0,S.status=Le)}else S.status=Le;if(S.status===Le)if(S.gzhead.name){R=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),y(p),R=S.pending,S.pending===S.pending_buf_size)){V=1;break}S.gzindex<S.gzhead.name.length?V=S.gzhead.name.charCodeAt(S.gzindex++)&255:V=0,D(S,V)}while(V!==0);S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),V===0&&(S.gzindex=0,S.status=Ge)}else S.status=Ge;if(S.status===Ge)if(S.gzhead.comment){R=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),y(p),R=S.pending,S.pending===S.pending_buf_size)){V=1;break}S.gzindex<S.gzhead.comment.length?V=S.gzhead.comment.charCodeAt(S.gzindex++)&255:V=0,D(S,V)}while(V!==0);S.gzhead.hcrc&&S.pending>R&&(p.adler=n(p.adler,S.pending_buf,S.pending-R,R)),V===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(G)<=gt(K)&&G!==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||G!==a&&S.status!==Ne){var ge=S.strategy===x?Ct(S,G):S.strategy===P?Qe(S,G):St[S.level].func(S,G);if((ge===xe||ge===Re)&&(S.status=Ne),ge===ce||ge===xe)return p.avail_out===0&&(S.last_flush=-1),l;if(ge===Te&&(G===o?e._tr_align(S):G!==f&&(e._tr_stored_block(S,0,0,!1),G===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 G!==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)):(N(S,p.adler>>>16),N(S,p.adler&65535)),y(p),S.wrap>0&&(S.wrap=-S.wrap),S.pending!==0?l:h)}function ne(p){var G;return!p||!p.state?d:(G=p.state.status,G!==me&&G!==De&&G!==Le&&G!==Ge&&G!==Xe&&G!==Fe&&G!==Ne?Oe(p,d):(p.state=null,G===Fe?Oe(p,v):l))}function Pe(p,G){var K=G.length,S,R,V,Ae,ve,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,G,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,G,K-S.w_size,S.w_size,0),G=rn,K=S.w_size),ve=p.avail_in,ge=p.next_in,ut=p.input,p.avail_in=K,p.next_in=0,p.input=G,ye(S);S.lookahead>=Q;){R=S.strstart,V=S.lookahead-(Q-1);do S.ins_h=(S.ins_h<<S.hash_shift^S.window[R+Q-1])&S.hash_mask,S.prev[R&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=R,R++;while(--V);S.strstart=R,S.lookahead=Q-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=Q-1,S.match_available=0,p.next_in=ge,p.input=ut,p.avail_in=ve,S.wrap=Ae,l}return Rr.deflateInit=X,Rr.deflateInit2=L,Rr.deflateReset=ae,Rr.deflateResetKeep=te,Rr.deflateSetHeader=fe,Rr.deflate=F,Rr.deflateEnd=ne,Rr.deflateSetDictionary=Pe,Rr.deflateInfo="pako deflate (from Nodeca project)",Rr}var ni={},Cl;function Nd(){if(Cl)return ni;Cl=1;var t=Yn(),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,ni.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 ni.buf2binstring=function(o){return a(o,o.length)},ni.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},ni.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)},ni.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},ni}var Su,El;function Ud(){if(El)return Su;El=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 Su=t,Su}var Tl;function tg(){if(Tl)return Pi;Tl=1;var t=eg(),e=Yn(),r=Nd(),n=rc(),i=Ud(),a=Object.prototype.toString,o=0,s=4,u=0,f=1,l=2,h=-1,d=0,v=8;function g(P){if(!(this instanceof g))return new g(P);this.options=e.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},P||{});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 M=t.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(M!==u)throw new Error(n[M]);if(A.header&&t.deflateSetHeader(this.strm,A.header),A.dictionary){var B;if(typeof A.dictionary=="string"?B=r.string2buf(A.dictionary):a.call(A.dictionary)==="[object ArrayBuffer]"?B=new Uint8Array(A.dictionary):B=A.dictionary,M=t.deflateSetDictionary(this.strm,B),M!==u)throw new Error(n[M]);this._dict_set=!0}}g.prototype.push=function(P,A){var M=this.strm,B=this.options.chunkSize,k,I;if(this.ended)return!1;I=A===~~A?A:A===!0?s:o,typeof P=="string"?M.input=r.string2buf(P):a.call(P)==="[object ArrayBuffer]"?M.input=new Uint8Array(P):M.input=P,M.next_in=0,M.avail_in=M.input.length;do{if(M.avail_out===0&&(M.output=new e.Buf8(B),M.next_out=0,M.avail_out=B),k=t.deflate(M,I),k!==f&&k!==u)return this.onEnd(k),this.ended=!0,!1;(M.avail_out===0||M.avail_in===0&&(I===s||I===l))&&(this.options.to==="string"?this.onData(r.buf2binstring(e.shrinkBuf(M.output,M.next_out))):this.onData(e.shrinkBuf(M.output,M.next_out)))}while((M.avail_in>0||M.avail_out===0)&&k!==f);return I===s?(k=t.deflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===u):(I===l&&(this.onEnd(u),M.avail_out=0),!0)},g.prototype.onData=function(P){this.chunks.push(P)},g.prototype.onEnd=function(P){P===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};function b(P,A){var M=new g(A);if(M.push(P,!0),M.err)throw M.msg||n[M.err];return M.result}function w(P,A){return A=A||{},A.raw=!0,b(P,A)}function x(P,A){return A=A||{},A.gzip=!0,b(P,A)}return Pi.Deflate=g,Pi.deflate=b,Pi.deflateRaw=w,Pi.gzip=x,Pi}var ki={},mr={},Au,Dl;function rg(){if(Dl)return Au;Dl=1;var t=30,e=12;return Au=function(n,i){var a,o,s,u,f,l,h,d,v,g,b,w,x,P,A,M,B,k,I,j,H,W,q,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,P=a.lencode,A=a.distcode,M=(1<<a.lenbits)-1,B=(1<<a.distbits)-1;e:do{x<15&&(w+=Z[o++]<<x,x+=8,w+=Z[o++]<<x,x+=8),k=P[w&M];t:for(;;){if(I=k>>>24,w>>>=I,x-=I,I=k>>>16&255,I===0)U[u++]=k&65535;else if(I&16){j=k&65535,I&=15,I&&(x<I&&(w+=Z[o++]<<x,x+=8),j+=w&(1<<I)-1,w>>>=I,x-=I),x<15&&(w+=Z[o++]<<x,x+=8,w+=Z[o++]<<x,x+=8),k=A[w&B];r:for(;;){if(I=k>>>24,w>>>=I,x-=I,I=k>>>16&255,I&16){if(H=k&65535,I&=15,x<I&&(w+=Z[o++]<<x,x+=8,x<I&&(w+=Z[o++]<<x,x+=8)),H+=w&(1<<I)-1,H>h){n.msg="invalid distance too far back",a.mode=t;break e}if(w>>>=I,x-=I,I=u-f,H>I){if(I=H-I,I>v&&a.sane){n.msg="invalid distance too far back",a.mode=t;break e}if(W=0,q=b,g===0){if(W+=d-I,I<j){j-=I;do U[u++]=b[W++];while(--I);W=u-H,q=U}}else if(g<I){if(W+=d+g-I,I-=g,I<j){j-=I;do U[u++]=b[W++];while(--I);if(W=0,g<j){I=g,j-=I;do U[u++]=b[W++];while(--I);W=u-H,q=U}}}else if(W+=g-I,I<j){j-=I;do U[u++]=b[W++];while(--I);W=u-H,q=U}for(;j>2;)U[u++]=q[W++],U[u++]=q[W++],U[u++]=q[W++],j-=3;j&&(U[u++]=q[W++],j>1&&(U[u++]=q[W++]))}else{W=u-H;do U[u++]=U[W++],U[u++]=U[W++],U[u++]=U[W++],j-=3;while(j>2);j&&(U[u++]=U[W++],j>1&&(U[u++]=U[W++]))}}else if((I&64)===0){k=A[(k&65535)+(w&(1<<I)-1)];continue r}else{n.msg="invalid distance code",a.mode=t;break e}break}}else if((I&64)===0){k=P[(k&65535)+(w&(1<<I)-1)];continue t}else if(I&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},Au}var Cu,Ol;function ng(){if(Ol)return Cu;Ol=1;var t=Yn(),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 Cu=function(d,v,g,b,w,x,P,A){var M=A.bits,B=0,k=0,I=0,j=0,H=0,W=0,q=0,Z=0,U=0,re=0,_,$,Q,de,pe,we=null,me=0,De,Le=new t.Buf16(e+1),Ge=new t.Buf16(e+1),Xe=null,Fe=0,Ne,ce,Te;for(B=0;B<=e;B++)Le[B]=0;for(k=0;k<b;k++)Le[v[g+k]]++;for(H=M,j=e;j>=1&&Le[j]===0;j--);if(H>j&&(H=j),j===0)return w[x++]=1<<24|64<<16|0,w[x++]=1<<24|64<<16|0,A.bits=1,0;for(I=1;I<j&&Le[I]===0;I++);for(H<I&&(H=I),Z=1,B=1;B<=e;B++)if(Z<<=1,Z-=Le[B],Z<0)return-1;if(Z>0&&(d===i||j!==1))return-1;for(Ge[1]=0,B=1;B<e;B++)Ge[B+1]=Ge[B]+Le[B];for(k=0;k<b;k++)v[g+k]!==0&&(P[Ge[v[g+k]]++]=k);if(d===i?(we=Xe=P,De=19):d===a?(we=s,me-=257,Xe=u,Fe-=257,De=256):(we=f,Xe=l,De=-1),re=0,k=0,B=I,pe=x,W=H,q=0,Q=-1,U=1<<H,de=U-1,d===a&&U>r||d===o&&U>n)return 1;for(;;){Ne=B-q,P[k]<De?(ce=0,Te=P[k]):P[k]>De?(ce=Xe[Fe+P[k]],Te=we[me+P[k]]):(ce=96,Te=0),_=1<<B-q,$=1<<W,I=$;do $-=_,w[pe+(re>>q)+$]=Ne<<24|ce<<16|Te|0;while($!==0);for(_=1<<B-1;re&_;)_>>=1;if(_!==0?(re&=_-1,re+=_):re=0,k++,--Le[B]===0){if(B===j)break;B=v[g+P[k]]}if(B>H&&(re&de)!==Q){for(q===0&&(q=H),pe+=I,W=B-q,Z=1<<W;W+q<j&&(Z-=Le[W+q],!(Z<=0));)W++,Z<<=1;if(U+=1<<W,d===a&&U>r||d===o&&U>n)return 1;Q=re&de,w[Q]=H<<24|W<<16|pe-x|0}}return re!==0&&(w[pe+re]=B-q<<24|64<<16|0),A.bits=H,0},Cu}var Pl;function ig(){if(Pl)return mr;Pl=1;var t=Yn(),e=Md(),r=Ld(),n=rg(),i=ng(),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,P=8,A=1,M=2,B=3,k=4,I=5,j=6,H=7,W=8,q=9,Z=10,U=11,re=12,_=13,$=14,Q=15,de=16,pe=17,we=18,me=19,De=20,Le=21,Ge=22,Xe=23,Fe=24,Ne=25,ce=26,Te=27,xe=28,Re=29,he=30,Oe=31,gt=32,E=852,y=592,m=15,D=m;function N(L){return(L>>>24&255)+(L>>>8&65280)+((L&65280)<<8)+((L&255)<<24)}function ee(){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 Y(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,Y(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 ee,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,Ct,wt;function St(L){if(Qe){var X;for(Ct=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,Ct,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=Ct,L.lenbits=9,L.distcode=wt,L.distbits=5}function er(L,X,F,ne){var Pe,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):(Pe=p.wsize-p.wnext,Pe>ne&&(Pe=ne),t.arraySet(p.window,X,F-ne,Pe,p.wnext),ne-=Pe,ne?(t.arraySet(p.window,X,F-ne,ne,0),p.wnext=ne,p.whave=p.wsize):(p.wnext+=Pe,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=Pe))),0}function C(L,X){var F,ne,Pe,p,G,K,S,R,V,Ae,ve,ge,ut,rn,Dt=0,lt,Ut,Qt,ir,Ao,Co,It,yr,Kt=new t.Buf8(4),nn,zr,ml=[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===re&&(F.mode=_),G=L.next_out,Pe=L.output,S=L.avail_out,p=L.next_in,ne=L.input,K=L.avail_in,R=F.hold,V=F.bits,Ae=K,ve=S,yr=h;e:for(;;)switch(F.mode){case A:if(F.wrap===0){F.mode=_;break}for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(F.wrap&2&&R===35615){F.check=0,Kt[0]=R&255,Kt[1]=R>>>8&255,F.check=r(F.check,Kt,2,0),R=0,V=0,F.mode=M;break}if(F.flags=0,F.head&&(F.head.done=!1),!(F.wrap&1)||(((R&255)<<8)+(R>>8))%31){L.msg="incorrect header check",F.mode=he;break}if((R&15)!==P){L.msg="unknown compression method",F.mode=he;break}if(R>>>=4,V-=4,It=(R&15)+8,F.wbits===0)F.wbits=It;else if(It>F.wbits){L.msg="invalid window size",F.mode=he;break}F.dmax=1<<It,L.adler=F.check=1,F.mode=R&512?Z:re,R=0,V=0;break;case M:for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(F.flags=R,(F.flags&255)!==P){L.msg="unknown compression method",F.mode=he;break}if(F.flags&57344){L.msg="unknown header flags set",F.mode=he;break}F.head&&(F.head.text=R>>8&1),F.flags&512&&(Kt[0]=R&255,Kt[1]=R>>>8&255,F.check=r(F.check,Kt,2,0)),R=0,V=0,F.mode=B;case B:for(;V<32;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.head&&(F.head.time=R),F.flags&512&&(Kt[0]=R&255,Kt[1]=R>>>8&255,Kt[2]=R>>>16&255,Kt[3]=R>>>24&255,F.check=r(F.check,Kt,4,0)),R=0,V=0,F.mode=k;case k:for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.head&&(F.head.xflags=R&255,F.head.os=R>>8),F.flags&512&&(Kt[0]=R&255,Kt[1]=R>>>8&255,F.check=r(F.check,Kt,2,0)),R=0,V=0,F.mode=I;case I:if(F.flags&1024){for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.length=R,F.head&&(F.head.extra_len=R),F.flags&512&&(Kt[0]=R&255,Kt[1]=R>>>8&255,F.check=r(F.check,Kt,2,0)),R=0,V=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&&(It=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,It)),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=H;case H:if(F.flags&2048){if(K===0)break e;ge=0;do It=ne[p+ge++],F.head&&It&&F.length<65536&&(F.head.name+=String.fromCharCode(It));while(It&&ge<K);if(F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,It)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=W;case W:if(F.flags&4096){if(K===0)break e;ge=0;do It=ne[p+ge++],F.head&&It&&F.length<65536&&(F.head.comment+=String.fromCharCode(It));while(It&&ge<K);if(F.flags&512&&(F.check=r(F.check,ne,ge,p)),K-=ge,p+=ge,It)break e}else F.head&&(F.head.comment=null);F.mode=q;case q:if(F.flags&512){for(;V<16;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(R!==(F.check&65535)){L.msg="header crc mismatch",F.mode=he;break}R=0,V=0}F.head&&(F.head.hcrc=F.flags>>9&1,F.head.done=!0),L.adler=F.check=0,F.mode=re;break;case Z:for(;V<32;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}L.adler=F.check=N(R),R=0,V=0,F.mode=U;case U:if(F.havedict===0)return L.next_out=G,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=R,F.bits=V,v;L.adler=F.check=1,F.mode=re;case re:if(X===f||X===l)break e;case _:if(F.last){R>>>=V&7,V-=V&7,F.mode=Te;break}for(;V<3;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}switch(F.last=R&1,R>>>=1,V-=1,R&3){case 0:F.mode=$;break;case 1:if(St(F),F.mode=De,X===l){R>>>=2,V-=2;break e}break;case 2:F.mode=pe;break;case 3:L.msg="invalid block type",F.mode=he}R>>>=2,V-=2;break;case $:for(R>>>=V&7,V-=V&7;V<32;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if((R&65535)!==(R>>>16^65535)){L.msg="invalid stored block lengths",F.mode=he;break}if(F.length=R&65535,R=0,V=0,F.mode=Q,X===l)break e;case Q:F.mode=de;case de:if(ge=F.length,ge){if(ge>K&&(ge=K),ge>S&&(ge=S),ge===0)break e;t.arraySet(Pe,ne,p,ge,G),K-=ge,p+=ge,S-=ge,G+=ge,F.length-=ge;break}F.mode=re;break;case pe:for(;V<14;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(F.nlen=(R&31)+257,R>>>=5,V-=5,F.ndist=(R&31)+1,R>>>=5,V-=5,F.ncode=(R&15)+4,R>>>=4,V-=4,F.nlen>286||F.ndist>30){L.msg="too many length or distance symbols",F.mode=he;break}F.have=0,F.mode=we;case we:for(;F.have<F.ncode;){for(;V<3;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.lens[ml[F.have++]]=R&7,R>>>=3,V-=3}for(;F.have<19;)F.lens[ml[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=he;break}F.have=0,F.mode=me;case me:for(;F.have<F.nlen+F.ndist;){for(;Dt=F.lencode[R&(1<<F.lenbits)-1],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(Qt<16)R>>>=lt,V-=lt,F.lens[F.have++]=Qt;else{if(Qt===16){for(zr=lt+2;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(R>>>=lt,V-=lt,F.have===0){L.msg="invalid bit length repeat",F.mode=he;break}It=F.lens[F.have-1],ge=3+(R&3),R>>>=2,V-=2}else if(Qt===17){for(zr=lt+3;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}R>>>=lt,V-=lt,It=0,ge=3+(R&7),R>>>=3,V-=3}else{for(zr=lt+7;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}R>>>=lt,V-=lt,It=0,ge=11+(R&127),R>>>=7,V-=7}if(F.have+ge>F.nlen+F.ndist){L.msg="invalid bit length repeat",F.mode=he;break}for(;ge--;)F.lens[F.have++]=It}}if(F.mode===he)break;if(F.lens[256]===0){L.msg="invalid code -- missing end-of-block",F.mode=he;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=he;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=he;break}if(F.mode=De,X===l)break e;case De:F.mode=Le;case Le:if(K>=6&&S>=258){L.next_out=G,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=R,F.bits=V,n(L,ve),G=L.next_out,Pe=L.output,S=L.avail_out,p=L.next_in,ne=L.input,K=L.avail_in,R=F.hold,V=F.bits,F.mode===re&&(F.back=-1);break}for(F.back=0;Dt=F.lencode[R&(1<<F.lenbits)-1],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(Ut&&(Ut&240)===0){for(ir=lt,Ao=Ut,Co=Qt;Dt=F.lencode[Co+((R&(1<<ir+Ao)-1)>>ir)],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(ir+lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}R>>>=ir,V-=ir,F.back+=ir}if(R>>>=lt,V-=lt,F.back+=lt,F.length=Qt,Ut===0){F.mode=ce;break}if(Ut&32){F.back=-1,F.mode=re;break}if(Ut&64){L.msg="invalid literal/length code",F.mode=he;break}F.extra=Ut&15,F.mode=Ge;case Ge:if(F.extra){for(zr=F.extra;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.length+=R&(1<<F.extra)-1,R>>>=F.extra,V-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=Xe;case Xe:for(;Dt=F.distcode[R&(1<<F.distbits)-1],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if((Ut&240)===0){for(ir=lt,Ao=Ut,Co=Qt;Dt=F.distcode[Co+((R&(1<<ir+Ao)-1)>>ir)],lt=Dt>>>24,Ut=Dt>>>16&255,Qt=Dt&65535,!(ir+lt<=V);){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}R>>>=ir,V-=ir,F.back+=ir}if(R>>>=lt,V-=lt,F.back+=lt,Ut&64){L.msg="invalid distance code",F.mode=he;break}F.offset=Qt,F.extra=Ut&15,F.mode=Fe;case Fe:if(F.extra){for(zr=F.extra;V<zr;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}F.offset+=R&(1<<F.extra)-1,R>>>=F.extra,V-=F.extra,F.back+=F.extra}if(F.offset>F.dmax){L.msg="invalid distance too far back",F.mode=he;break}F.mode=Ne;case Ne:if(S===0)break e;if(ge=ve-S,F.offset>ge){if(ge=F.offset-ge,ge>F.whave&&F.sane){L.msg="invalid distance too far back",F.mode=he;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=Pe,ut=G-F.offset,ge=F.length;ge>S&&(ge=S),S-=ge,F.length-=ge;do Pe[G++]=rn[ut++];while(--ge);F.length===0&&(F.mode=Le);break;case ce:if(S===0)break e;Pe[G++]=F.length,S--,F.mode=Le;break;case Te:if(F.wrap){for(;V<32;){if(K===0)break e;K--,R|=ne[p++]<<V,V+=8}if(ve-=S,L.total_out+=ve,F.total+=ve,ve&&(L.adler=F.check=F.flags?r(F.check,Pe,ve,G-ve):e(F.check,Pe,ve,G-ve)),ve=S,(F.flags?R:N(R))!==F.check){L.msg="incorrect data check",F.mode=he;break}R=0,V=0}F.mode=xe;case xe:if(F.wrap&&F.flags){for(;V<32;){if(K===0)break e;K--,R+=ne[p++]<<V,V+=8}if(R!==(F.total&4294967295)){L.msg="incorrect length check",F.mode=he;break}R=0,V=0}F.mode=Re;case Re:yr=d;break e;case he:yr=b;break e;case Oe:return w;case gt:default:return g}return L.next_out=G,L.avail_out=S,L.next_in=p,L.avail_in=K,F.hold=R,F.bits=V,(F.wsize||ve!==L.avail_out&&F.mode<he&&(F.mode<Te||X!==u))&&er(L,L.output,L.next_out,ve-L.avail_out),Ae-=L.avail_in,ve-=L.avail_out,L.total_in+=Ae,L.total_out+=ve,F.total+=ve,F.wrap&&ve&&(L.adler=F.check=F.flags?r(F.check,Pe,ve,L.next_out-ve):e(F.check,Pe,ve,L.next_out-ve)),L.data_type=F.bits+(F.last?64:0)+(F.mode===re?128:0)+(F.mode===De||F.mode===Q?256:0),(Ae===0&&ve===0||X===u)&&yr===h&&(yr=x),yr}function te(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,Pe,p;return!L||!L.state||(ne=L.state,ne.wrap!==0&&ne.mode!==U)?g:ne.mode===U&&(Pe=1,Pe=e(Pe,X,F,0),Pe!==ne.check)?b:(p=er(L,X,F,F),p?(ne.mode=Oe,w):(ne.havedict=1,h))}return mr.inflateReset=ye,mr.inflateReset2=Ue,mr.inflateResetKeep=Y,mr.inflateInit=_e,mr.inflateInit2=He,mr.inflate=C,mr.inflateEnd=te,mr.inflateGetHeader=ae,mr.inflateSetDictionary=fe,mr.inflateInfo="pako inflate (from Nodeca project)",mr}var Eu,kl;function zd(){return kl||(kl=1,Eu={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}),Eu}var Tu,Il;function ag(){if(Il)return Tu;Il=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 Tu=t,Tu}var Bl;function og(){if(Bl)return ki;Bl=1;var t=ig(),e=Yn(),r=Nd(),n=zd(),i=rc(),a=Ud(),o=ag(),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,P,A,M,B=!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&&B===!0&&(w=n.Z_OK,B=!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"?(P=r.utf8border(v.output,v.next_out),A=v.next_out-P,M=r.buf2string(v.output,P),v.next_out=A,v.avail_out=g-A,A&&e.arraySet(v.output,v.output,P,A,0),this.onData(M)):this.onData(e.shrinkBuf(v.output,v.next_out))),v.avail_in===0&&v.avail_out===0&&(B=!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 ki.Inflate=u,ki.inflate=f,ki.inflateRaw=l,ki.ungzip=f,ki}var Du,Rl;function sg(){if(Rl)return Du;Rl=1;var t=Yn().assign,e=tg(),r=og(),n=zd(),i={};return t(i,e,r,n),Du=i,Du}var ug=sg();const Ir=_1.getDefaultExportFromCjs(ug);var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function At(t,e){return e={exports:{}},t(e,e.exports),e.exports}function Jn(t){return t&&t.default||t}var fg=vg,cg=gg,lg=bg,Xr=[],wr=[],hg=typeof Uint8Array<"u"?Uint8Array:Array,Ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ii=0,dg=Ou.length;Ii<dg;++Ii)Xr[Ii]=Ou[Ii],wr[Ou.charCodeAt(Ii)]=Ii;wr[45]=62;wr[95]=63;function jd(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 vg(t){var e=jd(t),r=e[0],n=e[1];return(r+n)*3/4-n}function pg(t,e,r){return(e+r)*3/4-r}function gg(t){var e,r=jd(t),n=r[0],i=r[1],a=new hg(pg(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 yg(t){return Xr[t>>18&63]+Xr[t>>12&63]+Xr[t>>6&63]+Xr[t&63]}function mg(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(yg(n));return i.join("")}function bg(t){for(var e,r=t.length,n=r%3,i=[],a=16383,o=0,s=r-n;o<s;o+=a)i.push(mg(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 Pu={byteLength:fg,toByteArray:cg,fromByteArray:lg},wg=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)},xg=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},Bi={read:wg,write:xg},dr=At(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(he(E,ArrayBuffer)||E&&he(E.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(E,SharedArrayBuffer)||E&&he(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 N=g(E);if(N)return N;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),N=D.write(E,y);return N!==m&&(D=D.slice(0,N)),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(he(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),he(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,N=m.length,ee=0,Y=Math.min(D,N);ee<Y;++ee)if(y[ee]!==m[ee]){D=y[ee],N=m[ee];break}return D<N?-1:N<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 N=o.allocUnsafe(m),ee=0;for(D=0;D<y.length;++D){var Y=y[D];if(he(Y,Uint8Array)&&(Y=o.from(Y)),!o.isBuffer(Y))throw new TypeError('"list" argument must be an Array of Buffers');Y.copy(N,ee),ee+=Y.length}return N};function x(E,y){if(o.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||he(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 N=!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(N)return D?-1:Ne(E).length;y=(""+y).toLowerCase(),N=!0}}o.byteLength=x;function P(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 de(this,y,m);case"utf8":case"utf-8":return U(this,y,m);case"ascii":return $(this,y,m);case"latin1":case"binary":return Q(this,y,m);case"base64":return Z(this,y,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(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):P.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,N,ee){if(he(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),N===void 0&&(N=0),ee===void 0&&(ee=this.length),m<0||D>y.length||N<0||ee>this.length)throw new RangeError("out of range index");if(N>=ee&&m>=D)return 0;if(N>=ee)return-1;if(m>=D)return 1;if(m>>>=0,D>>>=0,N>>>=0,ee>>>=0,this===y)return 0;for(var Y=ee-N,ye=D-m,Ue=Math.min(Y,ye),He=this.slice(N,ee),_e=y.slice(m,D),Qe=0;Qe<Ue;++Qe)if(He[Qe]!==_e[Qe]){Y=He[Qe],ye=_e[Qe];break}return Y<ye?-1:ye<Y?1:0};function M(E,y,m,D,N){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=N?0:E.length-1),m<0&&(m=E.length+m),m>=E.length){if(N)return-1;m=E.length-1}else if(m<0)if(N)m=0;else return-1;if(typeof y=="string"&&(y=o.from(y,D)),o.isBuffer(y))return y.length===0?-1:B(E,y,m,D,N);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(E,y,m):Uint8Array.prototype.lastIndexOf.call(E,y,m):B(E,[y],m,D,N);throw new TypeError("val must be string, number or Buffer")}function B(E,y,m,D,N){var ee=1,Y=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;ee=2,Y/=2,ye/=2,m/=2}function Ue(wt,St){return ee===1?wt[St]:wt.readUInt16BE(St*ee)}var He;if(N){var _e=-1;for(He=m;He<Y;He++)if(Ue(E,He)===Ue(y,_e===-1?0:He-_e)){if(_e===-1&&(_e=He),He-_e+1===ye)return _e*ee}else _e!==-1&&(He-=He-_e),_e=-1}else for(m+ye>Y&&(m=Y-ye),He=m;He>=0;He--){for(var Qe=!0,Ct=0;Ct<ye;Ct++)if(Ue(E,He+Ct)!==Ue(y,Ct)){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 M(this,y,m,D,!0)},o.prototype.lastIndexOf=function(y,m,D){return M(this,y,m,D,!1)};function k(E,y,m,D){m=Number(m)||0;var N=E.length-m;D?(D=Number(D),D>N&&(D=N)):D=N;var ee=y.length;D>ee/2&&(D=ee/2);for(var Y=0;Y<D;++Y){var ye=parseInt(y.substr(Y*2,2),16);if(Oe(ye))return Y;E[m+Y]=ye}return Y}function I(E,y,m,D){return Re(Ne(y,E.length-m),E,m,D)}function j(E,y,m,D){return Re(ce(y),E,m,D)}function H(E,y,m,D){return j(E,y,m,D)}function W(E,y,m,D){return Re(xe(y),E,m,D)}function q(E,y,m,D){return Re(Te(y,E.length-m),E,m,D)}o.prototype.write=function(y,m,D,N){if(m===void 0)N="utf8",D=this.length,m=0;else if(D===void 0&&typeof m=="string")N=m,D=this.length,m=0;else if(isFinite(m))m=m>>>0,isFinite(D)?(D=D>>>0,N===void 0&&(N="utf8")):(N=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ee=this.length-m;if((D===void 0||D>ee)&&(D=ee),y.length>0&&(D<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");for(var Y=!1;;)switch(N){case"hex":return k(this,y,m,D);case"utf8":case"utf-8":return I(this,y,m,D);case"ascii":return j(this,y,m,D);case"latin1":case"binary":return H(this,y,m,D);case"base64":return W(this,y,m,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,y,m,D);default:if(Y)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),Y=!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?Pu.fromByteArray(E):Pu.fromByteArray(E.slice(y,m))}function U(E,y,m){m=Math.min(E.length,m);for(var D=[],N=y;N<m;){var ee=E[N],Y=null,ye=ee>239?4:ee>223?3:ee>191?2:1;if(N+ye<=m){var Ue,He,_e,Qe;switch(ye){case 1:ee<128&&(Y=ee);break;case 2:Ue=E[N+1],(Ue&192)===128&&(Qe=(ee&31)<<6|Ue&63,Qe>127&&(Y=Qe));break;case 3:Ue=E[N+1],He=E[N+2],(Ue&192)===128&&(He&192)===128&&(Qe=(ee&15)<<12|(Ue&63)<<6|He&63,Qe>2047&&(Qe<55296||Qe>57343)&&(Y=Qe));break;case 4:Ue=E[N+1],He=E[N+2],_e=E[N+3],(Ue&192)===128&&(He&192)===128&&(_e&192)===128&&(Qe=(ee&15)<<18|(Ue&63)<<12|(He&63)<<6|_e&63,Qe>65535&&Qe<1114112&&(Y=Qe))}}Y===null?(Y=65533,ye=1):Y>65535&&(Y-=65536,D.push(Y>>>10&1023|55296),Y=56320|Y&1023),D.push(Y),N+=ye}return _(D)}var re=4096;function _(E){var y=E.length;if(y<=re)return String.fromCharCode.apply(String,E);for(var m="",D=0;D<y;)m+=String.fromCharCode.apply(String,E.slice(D,D+=re));return m}function $(E,y,m){var D="";m=Math.min(E.length,m);for(var N=y;N<m;++N)D+=String.fromCharCode(E[N]&127);return D}function Q(E,y,m){var D="";m=Math.min(E.length,m);for(var N=y;N<m;++N)D+=String.fromCharCode(E[N]);return D}function de(E,y,m){var D=E.length;(!y||y<0)&&(y=0),(!m||m<0||m>D)&&(m=D);for(var N="",ee=y;ee<m;++ee)N+=gt[E[ee]];return N}function pe(E,y,m){for(var D=E.slice(y,m),N="",ee=0;ee<D.length;ee+=2)N+=String.fromCharCode(D[ee]+D[ee+1]*256);return N}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 N=this.subarray(y,m);return Object.setPrototypeOf(N,o.prototype),N};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 N=this[y],ee=1,Y=0;++Y<m&&(ee*=256);)N+=this[y+Y]*ee;return N},o.prototype.readUIntBE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var N=this[y+--m],ee=1;m>0&&(ee*=256);)N+=this[y+--m]*ee;return N},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 N=this[y],ee=1,Y=0;++Y<m&&(ee*=256);)N+=this[y+Y]*ee;return ee*=128,N>=ee&&(N-=Math.pow(2,8*m)),N},o.prototype.readIntBE=function(y,m,D){y=y>>>0,m=m>>>0,D||we(y,m,this.length);for(var N=m,ee=1,Y=this[y+--N];N>0&&(ee*=256);)Y+=this[y+--N]*ee;return ee*=128,Y>=ee&&(Y-=Math.pow(2,8*m)),Y},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),Bi.read(this,y,!0,23,4)},o.prototype.readFloatBE=function(y,m){return y=y>>>0,m||we(y,4,this.length),Bi.read(this,y,!1,23,4)},o.prototype.readDoubleLE=function(y,m){return y=y>>>0,m||we(y,8,this.length),Bi.read(this,y,!0,52,8)},o.prototype.readDoubleBE=function(y,m){return y=y>>>0,m||we(y,8,this.length),Bi.read(this,y,!1,52,8)};function me(E,y,m,D,N,ee){if(!o.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>N||y<ee)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,N){if(y=+y,m=m>>>0,D=D>>>0,!N){var ee=Math.pow(2,8*D)-1;me(this,y,m,D,ee,0)}var Y=1,ye=0;for(this[m]=y&255;++ye<D&&(Y*=256);)this[m+ye]=y/Y&255;return m+D},o.prototype.writeUIntBE=function(y,m,D,N){if(y=+y,m=m>>>0,D=D>>>0,!N){var ee=Math.pow(2,8*D)-1;me(this,y,m,D,ee,0)}var Y=D-1,ye=1;for(this[m+Y]=y&255;--Y>=0&&(ye*=256);)this[m+Y]=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,N){if(y=+y,m=m>>>0,!N){var ee=Math.pow(2,8*D-1);me(this,y,m,D,ee-1,-ee)}var Y=0,ye=1,Ue=0;for(this[m]=y&255;++Y<D&&(ye*=256);)y<0&&Ue===0&&this[m+Y-1]!==0&&(Ue=1),this[m+Y]=(y/ye>>0)-Ue&255;return m+D},o.prototype.writeIntBE=function(y,m,D,N){if(y=+y,m=m>>>0,!N){var ee=Math.pow(2,8*D-1);me(this,y,m,D,ee-1,-ee)}var Y=D-1,ye=1,Ue=0;for(this[m+Y]=y&255;--Y>=0&&(ye*=256);)y<0&&Ue===0&&this[m+Y+1]!==0&&(Ue=1),this[m+Y]=(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 De(E,y,m,D,N,ee){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,N){return y=+y,m=m>>>0,N||De(E,y,m,4),Bi.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,N){return y=+y,m=m>>>0,N||De(E,y,m,8),Bi.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,N){if(!o.isBuffer(y))throw new TypeError("argument should be a Buffer");if(D||(D=0),!N&&N!==0&&(N=this.length),m>=y.length&&(m=y.length),m||(m=0),N>0&&N<D&&(N=D),N===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(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),y.length-m<N-D&&(N=y.length-m+D);var ee=N-D;if(this===y&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(m,D,N);else if(this===y&&D<m&&m<N)for(var Y=ee-1;Y>=0;--Y)y[Y+m]=this[Y+D];else Uint8Array.prototype.set.call(y,this.subarray(D,N),m);return ee},o.prototype.fill=function(y,m,D,N){if(typeof y=="string"){if(typeof m=="string"?(N=m,m=0,D=this.length):typeof D=="string"&&(N=D,D=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!o.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(y.length===1){var ee=y.charCodeAt(0);(N==="utf8"&&ee<128||N==="latin1")&&(y=ee)}}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 Y;if(typeof y=="number")for(Y=m;Y<D;++Y)this[Y]=y;else{var ye=o.isBuffer(y)?y:o.from(y,N),Ue=ye.length;if(Ue===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(Y=0;Y<D-m;++Y)this[Y+m]=ye[Y%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,N=null,ee=[],Y=0;Y<D;++Y){if(m=E.charCodeAt(Y),m>55295&&m<57344){if(!N){if(m>56319){(y-=3)>-1&&ee.push(239,191,189);continue}else if(Y+1===D){(y-=3)>-1&&ee.push(239,191,189);continue}N=m;continue}if(m<56320){(y-=3)>-1&&ee.push(239,191,189),N=m;continue}m=(N-55296<<10|m-56320)+65536}else N&&(y-=3)>-1&&ee.push(239,191,189);if(N=null,m<128){if((y-=1)<0)break;ee.push(m)}else if(m<2048){if((y-=2)<0)break;ee.push(m>>6|192,m&63|128)}else if(m<65536){if((y-=3)<0)break;ee.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((y-=4)<0)break;ee.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return ee}function ce(E){for(var y=[],m=0;m<E.length;++m)y.push(E.charCodeAt(m)&255);return y}function Te(E,y){for(var m,D,N,ee=[],Y=0;Y<E.length&&!((y-=2)<0);++Y)m=E.charCodeAt(Y),D=m>>8,N=m%256,ee.push(N),ee.push(D);return ee}function xe(E){return Pu.toByteArray(Fe(E))}function Re(E,y,m,D){for(var N=0;N<D&&!(N+m>=y.length||N>=E.length);++N)y[N+m]=E[N];return N}function he(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,N=0;N<16;++N)y[D+N]=E[m]+E[N];return y})()}),mt=dr.Buffer;dr.SlowBuffer;dr.INSPECT_MAX_BYTES;dr.kMaxLength;var Fg;function Ln(){}Ln.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&&Fg.active,(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new Ln,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 Vd(t){return t._maxListeners===void 0?ct.defaultMaxListeners:t._maxListeners}ct.prototype.getMaxListeners=function(){return Vd(this)};function Sg(t,e,r){if(e)t.call(r);else for(var n=t.length,i=fo(t,n),a=0;a<n;++a)i[a].call(r)}function Ag(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,a=fo(t,i),o=0;o<i;++o)a[o].call(r,n)}function Cg(t,e,r,n,i){if(e)t.call(r,n,i);else for(var a=t.length,o=fo(t,a),s=0;s<a;++s)o[s].call(r,n,i)}function Eg(t,e,r,n,i,a){if(e)t.call(r,n,i,a);else for(var o=t.length,s=fo(t,o),u=0;u<o;++u)s[u].call(r,n,i,a)}function Tg(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,a=fo(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:Sg(n,h,this);break;case 2:Ag(n,h,this,arguments[1]);break;case 3:Cg(n,h,this,arguments[1],arguments[2]);break;case 4:Eg(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];Tg(n,h,this,a)}return!0};function qd(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 Ln,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=Vd(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,Dg(s)}return t}function Dg(t){typeof console.warn=="function"?console.warn(t):console.log(t)}ct.prototype.addListener=function(e,r){return qd(this,e,r,!1)};ct.prototype.on=ct.prototype.addListener;ct.prototype.prependListener=function(e,r){return qd(this,e,r,!0)};function Wd(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,Wd(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,Wd(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 Ln:(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 Ln,this;delete i[e]}else Og(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 Ln,this._eventsCount=0):n[e]&&(--this._eventsCount===0?this._events=new Ln: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 Ln,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=Pg(r):n=[]):n=[],n};ct.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Gd.call(t,e)};ct.prototype.listenerCount=Gd;function Gd(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 Og(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 fo(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}function Pg(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}var Ls=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function Hd(){throw new Error("setTimeout has not been defined")}function Kd(){throw new Error("clearTimeout has not been defined")}var En=Hd,Tn=Kd;typeof Ls.setTimeout=="function"&&(En=setTimeout);typeof Ls.clearTimeout=="function"&&(Tn=clearTimeout);function Xd(t){if(En===setTimeout)return setTimeout(t,0);if((En===Hd||!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 kg(t){if(Tn===clearTimeout)return clearTimeout(t);if((Tn===Kd||!Tn)&&clearTimeout)return Tn=clearTimeout,clearTimeout(t);try{return Tn(t)}catch{try{return Tn.call(null,t)}catch{return Tn.call(this,t)}}}var cn=[],Qi=!1,di,Jo=-1;function Ig(){!Qi||!di||(Qi=!1,di.length?cn=di.concat(cn):Jo=-1,cn.length&&Zd())}function Zd(){if(!Qi){var t=Xd(Ig);Qi=!0;for(var e=cn.length;e;){for(di=cn,cn=[];++Jo<e;)di&&di[Jo].run();Jo=-1,e=cn.length}di=null,Qi=!1,kg(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 Yd(t,e)),cn.length===1&&!Qi&&Xd(Zd)}function Yd(t,e){this.fun=t,this.array=e}Yd.prototype.run=function(){this.fun.apply(null,this.array)};var Bg="browser",Rg="browser",Mg=!0,Lg={},Ng=[],Ug="",zg={},jg={},Vg={};function Si(){}var qg=Si,Wg=Si,Gg=Si,Hg=Si,Kg=Si,Xg=Si,Zg=Si;function Yg(t){throw new Error("process.binding is not supported")}function Jg(){return"/"}function Qg(t){throw new Error("process.chdir is not supported")}function _g(){return 0}var Gi=Ls.performance||{},$g=Gi.now||Gi.mozNow||Gi.msNow||Gi.oNow||Gi.webkitNow||function(){return new Date().getTime()};function ey(t){var e=$g.call(Gi)*.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 ty=new Date;function ry(){var t=new Date,e=t-ty;return e/1e3}var Nn={nextTick:fr,title:Bg,browser:Mg,env:Lg,argv:Ng,version:Ug,versions:zg,on:qg,addListener:Wg,once:Gg,off:Hg,removeListener:Kg,removeAllListeners:Xg,emit:Zg,binding:Yg,cwd:Jg,chdir:Qg,umask:_g,hrtime:ey,platform:Rg,release:jg,config:Vg,uptime:ry},Sf;typeof Object.create=="function"?Sf=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Sf=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e};var da=Sf,ny=/%[sdj%]/g;function iy(t){if(!ic(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(ny,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])nc(o)||!co(o)?a+=" "+o:a+=" "+ln(o);return a}function Jd(t,e){if(In(Ls.process))return function(){return Jd(t,e).apply(this,arguments)};if(Nn.noDeprecation===!0)return t;var r=!1;function n(){if(!r){if(Nn.throwDeprecation)throw new Error(e);Nn.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}return n}var Eo={},ku;function ay(t){if(In(ku)&&(ku=Nn.env.NODE_DEBUG||""),t=t.toUpperCase(),!Eo[t])if(new RegExp("\\b"+t+"\\b","i").test(ku)){var e=0;Eo[t]=function(){var r=iy.apply(null,arguments);console.error("%s %d: %s",t,e,r)}}else Eo[t]=function(){};return Eo[t]}function ln(t,e){var r={seen:[],stylize:sy};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Qd(e)?r.showHidden=e:e&&vy(r,e),In(r.showHidden)&&(r.showHidden=!1),In(r.depth)&&(r.depth=2),In(r.colors)&&(r.colors=!1),In(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=oy),fs(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 oy(t,e){var r=ln.styles[e];return r?"\x1B["+ln.colors[r][0]+"m"+t+"\x1B["+ln.colors[r][1]+"m":t}function sy(t,e){return t}function uy(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function fs(t,e,r){if(t.customInspect&&e&&Mu(e.inspect)&&e.inspect!==ln&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return ic(n)||(n=fs(t,n,r)),n}var i=fy(t,e);if(i)return i;var a=Object.keys(e),o=uy(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),Ru(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Iu(e);if(a.length===0){if(Mu(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(Bu(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Ml(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Ru(e))return Iu(e)}var u="",f=!1,l=["{","}"];if(hy(e)&&(f=!0,l=["[","]"]),Mu(e)){var h=e.name?": "+e.name:"";u=" [Function"+h+"]"}if(Bu(e)&&(u=" "+RegExp.prototype.toString.call(e)),Ml(e)&&(u=" "+Date.prototype.toUTCString.call(e)),Ru(e)&&(u=" "+Iu(e)),a.length===0&&(!f||e.length==0))return l[0]+u+l[1];if(r<0)return Bu(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var d;return f?d=cy(t,e,r,o,a):d=a.map(function(v){return Af(t,e,r,o,v,f)}),t.seen.pop(),ly(d,u,l)}function fy(t,e){if(In(e))return t.stylize("undefined","undefined");if(ic(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(dy(e))return t.stylize(""+e,"number");if(Qd(e))return t.stylize(""+e,"boolean");if(nc(e))return t.stylize("null","null")}function Iu(t){return"["+Error.prototype.toString.call(t)+"]"}function cy(t,e,r,n,i){for(var a=[],o=0,s=e.length;o<s;++o)_d(e,String(o))?a.push(Af(t,e,r,n,String(o),!0)):a.push("");return i.forEach(function(u){u.match(/^\d+$/)||a.push(Af(t,e,r,n,u,!0))}),a}function Af(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")),_d(n,i)||(o="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(nc(r)?s=fs(t,u.value,null):s=fs(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.d.cts CHANGED
@@ -36,6 +36,12 @@ declare interface GridCell {
36
36
  value?: string | number | boolean | null;
37
37
  /** Excel 数字格式(例如 #,##0.00 / 0.00%),不改变 text。 */
38
38
  numberFormat?: string;
39
+ /** 编辑输入类型;省略时只按原始值推断,数字字符串不会被转换为数值。 */
40
+ valueType?: "text" | "number" | "boolean";
41
+ /** 单元格级编辑控制;预览仍需显式开启 editing。 */
42
+ editable?: boolean;
43
+ /** Excel 公式保留元数据;当前引擎不计算公式,公式格始终只读。 */
44
+ formula?: string;
39
45
  children?: PlanComponent[];
40
46
  colSpan?: number;
41
47
  rowSpan?: number;
package/dist/pdf.d.ts CHANGED
@@ -36,6 +36,12 @@ declare interface GridCell {
36
36
  value?: string | number | boolean | null;
37
37
  /** Excel 数字格式(例如 #,##0.00 / 0.00%),不改变 text。 */
38
38
  numberFormat?: string;
39
+ /** 编辑输入类型;省略时只按原始值推断,数字字符串不会被转换为数值。 */
40
+ valueType?: "text" | "number" | "boolean";
41
+ /** 单元格级编辑控制;预览仍需显式开启 editing。 */
42
+ editable?: boolean;
43
+ /** Excel 公式保留元数据;当前引擎不计算公式,公式格始终只读。 */
44
+ formula?: string;
39
45
  children?: PlanComponent[];
40
46
  colSpan?: number;
41
47
  rowSpan?: number;
package/dist/pdf.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { g as Q1 } from "./_commonjsHelpers-DaMA6jEr.js";
2
- import { i as _1, a as $1 } from "./render-plan-I9AHvQv7.js";
2
+ import { i as _1, b as $1 } from "./render-plan-CXBWRog4.js";
3
3
  import { h as eg, w as tg } from "./textwrap-nH0UYU6D.js";
4
- import { e as rg, r as uo, b as rc, c as Rd, m as ng, d as Md } from "./grid-geometry-Dw7BlENr.js";
4
+ import { e as rg, r as uo, b as rc, c as Rd, m as ng, d as Md } from "./grid-geometry-C8hGoe9o.js";
5
5
  var bu = {}, wl;
6
6
  function Zn() {
7
7
  return wl || (wl = 1, (function(t) {
@@ -1 +1 @@
1
- "use strict";var l=Object.create;var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var m=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of p(e))!h.call(r,c)&&c!==t&&n(r,c,{get:()=>e[c],enumerable:!(o=s(e,c))||o.enumerable});return r};var C=(r,e,t)=>(t=r!=null?l(d(r)):{},m(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r));const E=require("vue"),O=require("./report-params-D1gZ1DME.cjs"),_="mach-report/fetcher",f="mach-report/pdf-exporter",P="mach-report/config",u="mach-report/controller",a=E.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ReportPreview-B-mwUSk9.cjs")).then(r=>r.ReportPreview$1)),T={install(r,e={}){let t=e.fetcher;if(!t&&e.reports){const o=e.reports;let c;t=async R=>(c??=import("@agile-team/mach-report").then(({createReportSource:i})=>i(o)),(await c)(R)),t.getParamDefs=R=>O.getReportParamDefs(o,R)}t&&r.provide(_,t),e.pdfExporter&&r.provide(f,e.pdfExporter),r.provide(P,E.computed(()=>{if(e.pdfFontUrl===void 0)return e.config??null;const o=e.config??{defaults:{},presets:{}};return{...o,defaults:{...o.defaults,pdfFontUrl:e.pdfFontUrl}}})),e.globalComponent!==!1&&!r.component("MachReportPreview")&&r.component("MachReportPreview",a)}};exports.MACH_REPORT_CONFIG_KEY=P;exports.MACH_REPORT_CONTROLLER_KEY=u;exports.MACH_REPORT_FETCHER_KEY=_;exports.MACH_REPORT_PDF_EXPORTER_KEY=f;exports.MachReportPreview=a;exports.machReportPlugin=T;
1
+ "use strict";var l=Object.create;var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var m=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of p(e))!h.call(r,c)&&c!==t&&n(r,c,{get:()=>e[c],enumerable:!(o=s(e,c))||o.enumerable});return r};var C=(r,e,t)=>(t=r!=null?l(d(r)):{},m(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r));const E=require("vue"),O=require("./report-params-D1gZ1DME.cjs"),_="mach-report/fetcher",f="mach-report/pdf-exporter",P="mach-report/config",u="mach-report/controller",a=E.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ReportPreview-DJvv3h8m.cjs")).then(r=>r.ReportPreview$1)),T={install(r,e={}){let t=e.fetcher;if(!t&&e.reports){const o=e.reports;let c;t=async R=>(c??=import("@agile-team/mach-report").then(({createReportSource:i})=>i(o)),(await c)(R)),t.getParamDefs=R=>O.getReportParamDefs(o,R)}t&&r.provide(_,t),e.pdfExporter&&r.provide(f,e.pdfExporter),r.provide(P,E.computed(()=>{if(e.pdfFontUrl===void 0)return e.config??null;const o=e.config??{defaults:{},presets:{}};return{...o,defaults:{...o.defaults,pdfFontUrl:e.pdfFontUrl}}})),e.globalComponent!==!1&&!r.component("MachReportPreview")&&r.component("MachReportPreview",a)}};exports.MACH_REPORT_CONFIG_KEY=P;exports.MACH_REPORT_CONTROLLER_KEY=u;exports.MACH_REPORT_FETCHER_KEY=_;exports.MACH_REPORT_PDF_EXPORTER_KEY=f;exports.MachReportPreview=a;exports.machReportPlugin=T;
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as a, computed as s } from "vue";
2
2
  import { g as m } from "./report-params-B3Fia6JO.js";
3
- const p = "mach-report/fetcher", l = "mach-report/pdf-exporter", R = "mach-report/config", h = "mach-report/controller", d = a(() => import("./ReportPreview-DKjr4cwO.js").then((r) => r.s)), _ = {
3
+ const p = "mach-report/fetcher", l = "mach-report/pdf-exporter", R = "mach-report/config", h = "mach-report/controller", d = a(() => import("./ReportPreview-CL9J9MEE.js").then((r) => r.s)), _ = {
4
4
  install(r, e = {}) {
5
5
  let t = e.fetcher;
6
6
  if (!t && e.reports) {
@@ -0,0 +1 @@
1
+ "use strict";const T="#333333",n="#000000",_="1.0.0-mach",t=_;function R(E){return(E.kind==="image"||E.kind==="barcode"||E.kind==="qrcode"||E.kind==="chart")&&!!E.imageData}function A(E){return E.kind==="text"&&Array.isArray(E.richParagraphs)&&E.richParagraphs.length>0}exports.DEFAULT_BORDER_PT=.75;exports.DEFAULT_FONT_PT=10.5;exports.DEFAULT_STROKE_COLOR=T;exports.DEFAULT_TEXT_COLOR=n;exports.LINE_HEIGHT=1.35;exports.RENDER_PLAN_SCHEMA_VERSION=t;exports.SCHEMA_VERSION_MACH=_;exports.isImageBackedComponent=R;exports.isRichText=A;
@@ -1,13 +1,18 @@
1
- import { S as r } from "./defaults-D4o0NCLo.js";
2
- const n = r;
3
- function t(a) {
1
+ const s = 1.35, t = 10.5, r = 0.75, i = "#333333", E = "#000000", n = "1.0.0-mach", _ = n;
2
+ function e(a) {
4
3
  return (a.kind === "image" || a.kind === "barcode" || a.kind === "qrcode" || a.kind === "chart") && !!a.imageData;
5
4
  }
6
- function e(a) {
5
+ function c(a) {
7
6
  return a.kind === "text" && Array.isArray(a.richParagraphs) && a.richParagraphs.length > 0;
8
7
  }
9
8
  export {
10
- n as R,
11
- e as a,
12
- t as i
9
+ t as D,
10
+ s as L,
11
+ _ as R,
12
+ n as S,
13
+ E as a,
14
+ c as b,
15
+ r as c,
16
+ i as d,
17
+ e as i
13
18
  };