@zeniai/web-cockpit-ui 2.0.35-dev → 2.0.37-dev
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.
- package/dist/assets/{Preview-CAmOkbjw.js → Preview-BgIk7yLu.js} +1 -1
- package/dist/assets/{ScreenRoutes-yvbp_Lbz.js → ScreenRoutes-6yDZGf2h.js} +69 -70
- package/dist/assets/SignInScreen-D5TVEilp.js +1 -0
- package/dist/assets/{analytics-BfH6x-bh.js → analytics-cwjP4Bou.js} +1 -1
- package/dist/assets/{analyticsHelper-DpKWIfA_.js → analyticsHelper-jtw74pIY.js} +1 -1
- package/dist/assets/{core-BMXdW52V.js → core-DSRGnsuN.js} +1 -1
- package/dist/assets/{dash.all.min-BNMSYYE9.js → dash.all.min-C_-wAuJd.js} +1 -1
- package/dist/assets/{index-BcCMwDMT.js → empty-CXYoV6Bj.js} +1 -1
- package/dist/assets/{empty-CMgD5T-3.js → empty-HFaPDeHn.js} +1 -1
- package/dist/assets/{epic-0u3weRPq.js → epic-CTyB5Dj-.js} +2 -2
- package/dist/assets/index-7QOvkk33.js +1 -0
- package/dist/assets/index-BERBAf7V.js +1 -0
- package/dist/assets/{index-OG0h_gMR.js → index-CjA52rF1.js} +1 -1
- package/dist/assets/{index-CY8CEYeK.js → index-D5AujO_g.js} +1 -1
- package/dist/assets/{index-D9Zhqjkb.js → index-DKEW-Ru3.js} +2 -2
- package/dist/assets/index-DLITyZ-5.js +1 -0
- package/dist/assets/{index-BIPrynO9.js → index-DNVGRlbp.js} +8284 -8284
- package/dist/assets/{lexical-Cj6VOpGX.js → lexical-zDu6lgQZ.js} +1 -1
- package/dist/assets/{liveblocks-BQqAIDc5.js → liveblocks-CTqzt75Z.js} +1 -1
- package/dist/assets/{lottie-qwRZdbTy.js → lottie-BS5f0GhF.js} +1 -1
- package/dist/assets/{mui-BQBCqqWF.js → mui-D2XoZszz.js} +1 -1
- package/dist/assets/{react-DZq71Z0g.js → react-BJ5SS4L0.js} +1 -1
- package/dist/assets/{react-C83wXUqV.js → react-BUzbt_Qo.js} +2 -2
- package/dist/assets/{react-Cu6ubvAK.js → react-BlSMUZRS.js} +3 -3
- package/dist/assets/{react-BFtEL_0u.js → react-BnNmm0vD.js} +1 -1
- package/dist/assets/{react-C8sJgD0w.js → react-CRDQ8EK1.js} +1 -1
- package/dist/assets/{react-jnSxQgdS.js → react-CWF4iW13.js} +1 -1
- package/dist/assets/{react-hF-9mrjI.js → react-CWf0NBhH.js} +1 -1
- package/dist/assets/{react-BfNEEjJ_.js → react-i00eeHLI.js} +1 -1
- package/dist/assets/{recharts-BZRqFQc_.js → recharts-Dgdt7a-L.js} +1 -1
- package/dist/assets/{sentry-B9T9CHF5.js → sentry-C6CbnDK5.js} +1 -1
- package/dist/assets/{url-BMK-Vtzl.js → url-D3HF9rU-.js} +1 -1
- package/dist/assets/url-RNtw1rmI.js +1 -0
- package/dist/assets/{utils-Fih0Jz-h.js → utils-CxleEPDM.js} +1 -1
- package/dist/assets/{zeni-epic-state-DSTkpZye.js → zeni-epic-state-D_IWj6oD.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-CZ-C1wzQ.js +0 -4
- package/dist/assets/SignInScreen-DIqNMUI1.js +0 -1
- package/dist/assets/empty-CURC4K9t.js +0 -1
- package/dist/assets/index-DSJ2w1jZ.js +0 -1
- package/dist/assets/index-sjMkGJDk.js +0 -1
- package/dist/assets/url-BEGh4GqD.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-CZ-C1wzQ.js","assets/liveblocks-BQqAIDc5.js","assets/sentry-B9T9CHF5.js","assets/core-BMXdW52V.js","assets/recharts-BZRqFQc_.js","assets/zeni-epic-state-DSTkpZye.js","assets/index-BIPrynO9.js","assets/mui-BQBCqqWF.js","assets/analytics-BfH6x-bh.js","assets/lottie-qwRZdbTy.js","assets/lexical-Cj6VOpGX.js","assets/utils-Fih0Jz-h.js","assets/index-y98xvd7i.css","assets/analyticsHelper-DpKWIfA_.js","assets/empty-CMgD5T-3.js","assets/index-OG0h_gMR.js","assets/url-BMK-Vtzl.js","assets/index-DSJ2w1jZ.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{GX as jf,GY as Lf,jF as xt,et as gs,GZ as Lt,eC as rn,er as qf,G_ as Wt,ey as an,G$ as od,H0 as sd,H1 as sr,H2 as ud,ih as Df,jH as At,id as cd,il as Nf,H3 as vs,io as ld,ip as fd,H4 as br,H5 as ur,hL as hd,H6 as fn,H7 as Uo,d1 as dd,fL as Vo,fI as on,fQ as Dt,fO as pd,H8 as Mf,H9 as Ff,iD as md,iA as gd,Ha as vd,iO as yd,iJ as ys,iG as _d,iv as bd,Hb as wd,e9 as Ed,d8 as Sd,jT as Bf,Hc as Rd,be as nn,is as _s,ix as Od,r1 as Uf,jG as hn,Hd as pt,j1 as $o,He as Td,jZ as xd,H as et,bk as Go,Hf as Ad,hI as Id,Hg as Cd,Hh as Vf,Hi as Pd,pB as bs,p6 as kd,Hj as jd,pc as Tn,Hk as Ld,pe as qd,Hl as Rt,p3 as Dd,cR as Nd,jK as $f,jL as Gf,jJ as zo,jI as Ho,jM as Md,Hm as Fd,pE as Bd,Hn as Ud,pl as Vd,py as $d,Ho as Gd,pp as zd,Hp as Hd,Hq as Jt,Hr as Zo,Hs as Zd,Ht as Yd,o0 as Wd,o6 as zf,Hu as Hf,hd as Jd,FZ as Zf,Hv as Kd,FT as Xd,Hw as Qd,Hx as ep,o9 as tp,Hy as rp,G2 as np,FS as ip,sC as Yf,Hz as xn,HA as Wf,CN as Yo,Cz as ap,CQ as Jf,CC as op,HB as sp,CH as up,Ct as cp,Cw as lp,HC as fp,CU as hp,CK as dp,bn as pp,bd as mp,HD as gp,HE as $t,HF as vp,HG as yp,HH as _p,iS as No,iY as bp,ba as Kf}from"./zeni-epic-state-DSTkpZye.js";import{j as B}from"./liveblocks-BQqAIDc5.js";import{a as fe,p as ye,e as Xf,d as Qf,g as wp}from"./sentry-B9T9CHF5.js";import{Z as cr,m as Mt,J as Ep,Q as wt,a as eh,b as at,c as Ve,h as It,g as Ft,z as Je,H as Sp,u as Rp,U as Op,d as Tp,e as dn,K as xp,D as lr,B as pn,o as qt,n as Ap,E as Ip,y as Ot,S as mn,f as Nt,i as Cp,t as Pp,j as An,w as kp,_ as th,k as jp,l as rh,p as nh,q as Mo,r as Lp,L as qp,s as Dp,O as ih,X as Np,v as Mp,x as Fp,A as Bp,C as Up,F as Vp,Y as $p,G as Gp,I as zp,M as Hp,N as Zp,V as Yp,P as ah}from"./index-BIPrynO9.js";import{f as Wp}from"./analyticsHelper-DpKWIfA_.js";import{i as Fe,n as Ze,g as Se,o as ot,N as nr,k as gt,l as Te,p as oh,h as Ge,u as Wo,j as Fo}from"./core-BMXdW52V.js";import{D as fr,n as tt,S as zt}from"./mui-BQBCqqWF.js";import{a as He,b as Jp,c as Kp,d as Xp,e as Jo,f as Qp,g as em,h as tm,i as Ht,j as rm,k as ar,l as gn,m as nm,n as hr,o as im}from"./utils-Fih0Jz-h.js";import{r as Ko}from"./empty-CMgD5T-3.js";import{r as dr,a as am}from"./index-OG0h_gMR.js";import{r as om}from"./index-DSJ2w1jZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="adff39f1-a2c3-44a5-ab3f-739b047d498d",e._sentryDebugIdIdentifier="sentry-dbid-adff39f1-a2c3-44a5-ab3f-739b047d498d")}catch{}})();var In={},ws;function vn(){return ws||(ws=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)o(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,d,l){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+d),l);return}for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){var r,s,d,l,f,h;for(d=0,r=0,s=t.length;r<s;r++)d+=t[r].length;for(h=new Uint8Array(d),l=0,r=0,s=t.length;r<s;r++)f=t[r],h.set(f,l),l+=f.length;return h}},a={arraySet:function(t,r,s,d,l){for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(In)),In}var ut={},Ct={},Es;function sm(){if(Es)return Ct;Es=1;var e=vn(),n=4,o=0,i=1,a=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var r=0,s=1,d=2,l=3,f=258,h=29,c=256,b=c+1+h,m=30,y=19,g=2*b+1,u=15,_=16,w=7,v=256,E=16,x=17,O=18,C=[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],N=[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],V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((b+2)*2);t(R);var L=new Array(m*2);t(L);var q=new Array(S);t(q);var z=new Array(f-l+1);t(z);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(I,ne,se,le,Y){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=le,this.max_length=Y,this.has_stree=I&&I.length}var F,W,Z;function U(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function D(I){return I<256?q[I]:q[256+(I>>>7)]}function M(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function G(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,M(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function X(I,ne,se){G(I,se[ne*2],se[ne*2+1])}function K(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(M(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,le=ne.max_code,Y=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,H,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>le)&&(I.bl_count[A]++,H=0,te>=oe&&(H=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+H),ie&&(I.static_len+=ee*(Y[te*2+1]+H)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>le)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var le=new Array(u+1),Y=0,ie,T;for(ie=1;ie<=u;ie++)le[ie]=Y=Y+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=K(le[oe]++,oe))}}function me(){var I,ne,se,le,Y,ie=new Array(u+1);for(se=0,le=0;le<h-1;le++)for(P[le]=se,I=0;I<1<<C[le];I++)z[se++]=le;for(z[se-1]=le,Y=0,le=0;le<16;le++)for(j[le]=Y,I=0;I<1<<N[le];I++)q[Y++]=le;for(Y>>=7;le<m;le++)for(j[le]=Y<<7,I=0;I<1<<N[le]-7;I++)q[256+Y++]=le;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,b+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=K(I,5);F=new k(R,C,c+1,b,u),W=new k(L,N,0,m,u),Z=new k(new Array(0),V,0,y,w)}function we(I){var ne;for(ne=0;ne<b;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?M(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,le){Ce(I),M(I,se),M(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,le){var Y=ne*2,ie=se*2;return I[Y]<I[ie]||I[Y]===I[ie]&&le[ne]<=le[se]}function Ae(I,ne,se){for(var le=I.heap[se],Y=se<<1;Y<=I.heap_len&&(Y<I.heap_len&&je(ne,I.heap[Y+1],I.heap[Y],I.depth)&&Y++,!je(ne,le,I.heap[Y],I.depth));)I.heap[se]=I.heap[Y],se=Y,Y<<=1;I.heap[se]=le}function Ee(I,ne,se){var le,Y,ie=0,T,oe;if(I.last_lit!==0)do le=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Y=I.pending_buf[I.l_buf+ie],ie++,le===0?X(I,Y,ne):(T=z[Y],X(I,T+c+1,ne),oe=C[T],oe!==0&&(Y-=P[T],G(I,Y,oe)),le--,T=D(le),X(I,T,se),oe=N[T],oe!==0&&(le-=j[T],G(I,le,oe)));while(ie<I.last_lit);X(I,v,ne)}function $e(I,ne){var se=ne.dyn_tree,le=ne.stat_desc.static_tree,Y=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Y&&(I.static_len-=le[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var le,Y=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,le=0;le<=se;le++)ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Y&&I.bl_tree[ie*2]++,I.bl_tree[E*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Y=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var le,Y=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),le=0;le<=se;le++)if(ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Y&&(X(I,ie,I.bl_tree),oe--),X(I,E,I.bl_tree),G(I,oe-3,2)):oe<=10?(X(I,x,I.bl_tree),G(I,oe-3,3)):(X(I,O,I.bl_tree),G(I,oe-11,7));oe=0,Y=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function Ne(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),$e(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[$[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function Ye(I,ne,se,le){var Y;for(G(I,ne-257,5),G(I,se-1,5),G(I,le-4,4),Y=0;Y<le;Y++)G(I,I.bl_tree[$[Y]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(I){Q||(me(),Q=!0),I.l_desc=new U(I.dyn_ltree,F),I.d_desc=new U(I.dyn_dtree,W),I.bl_desc=new U(I.bl_tree,Z),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,le){G(I,(r<<1)+(le?1:0),3),ke(I,ne,se)}function he(I){G(I,s<<1,3),X(I,v,R),ae(I)}function Re(I,ne,se,le){var Y,ie,T=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=J(I)),$e(I,I.l_desc),$e(I,I.d_desc),T=Ne(I),Y=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Y&&(Y=ie)):Y=ie=se+5,se+4<=Y&&ne!==-1?ge(I,ne,se,le):I.strategy===n||ie===Y?(G(I,(s<<1)+(le?1:0),3),Ee(I,R,L)):(G(I,(d<<1)+(le?1:0),3),Ye(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),le&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(z[se]+c+1)*2]++,I.dyn_dtree[D(ne)*2]++),I.last_lit===I.lit_bufsize-1}return Ct._tr_init=ce,Ct._tr_stored_block=ge,Ct._tr_flush_block=Re,Ct._tr_tally=Oe,Ct._tr_align=he,Ct}var Cn,Ss;function sh(){if(Ss)return Cn;Ss=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return Cn=e,Cn}var Pn,Rs;function uh(){if(Rs)return Pn;Rs=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,d=r+t;i^=-1;for(var l=r;l<d;l++)i=i>>>8^s[(i^a[l])&255];return i^-1}return Pn=o,Pn}var kn,Os;function um(){return Os||(Os=1,kn={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"}),kn}var Ts;function cm(){if(Ts)return ut;Ts=1;var e=vn(),n=sm(),o=sh(),i=uh(),a=um(),t=0,r=1,s=3,d=4,l=5,f=0,h=1,c=-2,b=-3,m=-5,y=-1,g=1,u=2,_=3,w=4,v=0,E=2,x=8,O=9,C=15,N=8,V=29,$=256,S=$+1+V,R=30,L=19,q=2*S+1,z=15,P=3,j=258,k=j+P+1,F=32,W=42,Z=69,U=73,D=91,M=103,G=113,X=666,K=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function $e(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var H=p.avail_in;return H>A&&(H=A),H===0?0:(p.avail_in-=H,e.arraySet(te,p.input,p.next_in,H,re),p.state.wrap===1?p.adler=o(p.adler,te,H,re):p.state.wrap===2&&(p.adler=i(p.adler,te,H,re)),p.next_in+=H,p.total_in+=H,H)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,H,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Be=xe[A+_e-1],We=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if(H=te,!(xe[H+_e]!==We||xe[H+_e-1]!==Be||xe[H]!==xe[A]||xe[++H]!==xe[A+1])){A+=2,H++;do;while(xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Be=xe[A+_e-1],We=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function Ne(p){var te=p.w_size,re,A,H,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do H=p.head[--re],p.head[re]=H>=te?H-te:0;while(--A);A=te,re=A;do H=p.prev[--re],p.prev[re]=H>=te?H-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function Ye(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(Ne(p),p.lookahead===0&&te===t)return K;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),K)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(Ne(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=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 A=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function Q(p,te){for(var re,A,H;;){if(p.lookahead<k){if(Ne(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=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=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){H=p.strstart+p.lookahead-P,A=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=H&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=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=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return K}else if(p.match_available){if(A=n._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return K}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ce(p,te){for(var re,A,H,ee,_e=p.window;;){if(p.lookahead<=j){if(Ne(p),p.lookahead<=j&&te===t)return K;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&(H=p.strstart-1,A=_e[H],A===_e[++H]&&A===_e[++H]&&A===_e[++H])){ee=p.strstart+j;do;while(A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&H<ee);p.match_length=j-(ee-H),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(Ne(p),p.lookahead===0)){if(te===t)return K;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function he(p,te,re,A,H){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=H}var Re;Re=[new he(0,0,0,0,Ye),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){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=x,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 e.Buf16(q*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(z+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(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 ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=E,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?W:G,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),f)}function se(p){var te=ne(p);return te===f&&Oe(p.state),te}function le(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,f)}function Y(p,te,re,A,H,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),H<1||H>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>w)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=H+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<H+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Y(p,te,x,C,N,v)}function T(p,te){var re,A,H,ee;if(!p||!p.state||te>l||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===X&&te!==d)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===W)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=Z):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=G);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=F),_e+=31-_e%31,A.status=G,$e(A,_e),A.strstart!==0&&($e(A,p.adler>>>16),$e(A,p.adler&65535)),p.adler=1}if(A.status===Z)if(A.gzhead.extra){for(H=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),je(p),H=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=U)}else A.status=U;if(A.status===U)if(A.gzhead.name){H=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),je(p),H=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),ee===0&&(A.gzindex=0,A.status=D)}else A.status=D;if(A.status===D)if(A.gzhead.comment){H=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),je(p),H=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),ee===0&&(A.status=M)}else A.status=M;if(A.status===M&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=G)):A.status=G),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,f}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(A.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==X){var pe=A.strategy===u?ge(A,te):A.strategy===_?ce(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=X),pe===K||pe===ue)return p.avail_out===0&&(A.last_flush=-1),f;if(pe===ae&&(te===r?n._tr_align(A):te!==l&&(n._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,f}return te!==d?f:A.wrap<=0?h:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):($e(A,p.adler>>>16),$e(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?f:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==W&&te!==Z&&te!==U&&te!==D&&te!==M&&te!==G&&te!==X?we(p,c):(p.state=null,te===G?we(p,b):f))}function be(p,te){var re=te.length,A,H,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==W||A.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,Ne(A);A.lookahead>=P;){H=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[H+P-1])&A.hash_mask,A.prev[H&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=H,H++;while(--ee);A.strstart=H,A.lookahead=P-1,Ne(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,f}return ut.deflateInit=ie,ut.deflateInit2=Y,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=le,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var jn,xs;function lm(){if(xs)return jn;xs=1;function e(){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 jn=e,jn}var it={},Ln,As;function fm(){if(As)return Ln;As=1;var e=30,n=12;return Ln=function(i,a){var t,r,s,d,l,f,h,c,b,m,y,g,u,_,w,v,E,x,O,C,N,V,$,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),d=i.next_out,R=i.output,l=d-(a-i.avail_out),f=d+(i.avail_out-257),h=t.dmax,c=t.wsize,b=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,w=t.distcode,v=(1<<t.lenbits)-1,E=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=w[g&E];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(N=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),N+=g&(1<<O)-1,N>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-l,N>O){if(O=N-O,O>b&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(V=0,$=y,m===0){if(V+=c-O,O<C){C-=O;do R[d++]=y[V++];while(--O);V=d-N,$=R}}else if(m<O){if(V+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[V++];while(--O);if(V=0,m<C){O=m,C-=O;do R[d++]=y[V++];while(--O);V=d-N,$=R}}}else if(V+=m-O,O<C){C-=O;do R[d++]=y[V++];while(--O);V=d-N,$=R}for(;C>2;)R[d++]=$[V++],R[d++]=$[V++],R[d++]=$[V++],C-=3;C&&(R[d++]=$[V++],C>1&&(R[d++]=$[V++]))}else{V=d-N;do R[d++]=R[V++],R[d++]=R[V++],R[d++]=R[V++],C-=3;while(C>2);C&&(R[d++]=R[V++],C>1&&(R[d++]=R[V++]))}}else if((O&64)===0){x=w[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&d<f);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=d,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=d<f?257+(f-d):257-(d-f),t.hold=g,t.bits=u},Ln}var qn,Is;function hm(){if(Is)return qn;Is=1;var e=vn(),n=15,o=852,i=592,a=0,t=1,r=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],d=[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],l=[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],f=[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 qn=function(c,b,m,y,g,u,_,w){var v=w.bits,E=0,x=0,O=0,C=0,N=0,V=0,$=0,S=0,R=0,L=0,q,z,P,j,k,F=null,W=0,Z,U=new e.Buf16(n+1),D=new e.Buf16(n+1),M=null,G=0,X,K,ae;for(E=0;E<=n;E++)U[E]=0;for(x=0;x<y;x++)U[b[m+x]]++;for(N=v,C=n;C>=1&&U[C]===0;C--);if(N>C&&(N=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,w.bits=1,0;for(O=1;O<C&&U[O]===0;O++);for(N<O&&(N=O),S=1,E=1;E<=n;E++)if(S<<=1,S-=U[E],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(D[1]=0,E=1;E<n;E++)D[E+1]=D[E]+U[E];for(x=0;x<y;x++)b[m+x]!==0&&(_[D[b[m+x]]++]=x);if(c===a?(F=M=_,Z=19):c===t?(F=s,W-=257,M=d,G-=257,Z=256):(F=l,M=f,Z=-1),L=0,x=0,E=O,k=u,V=N,$=0,P=-1,R=1<<N,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=E-$,_[x]<Z?(K=0,ae=_[x]):_[x]>Z?(K=M[G+_[x]],ae=F[W+_[x]]):(K=96,ae=0),q=1<<E-$,z=1<<V,O=z;do z-=q,g[k+(L>>$)+z]=X<<24|K<<16|ae|0;while(z!==0);for(q=1<<E-1;L&q;)q>>=1;if(q!==0?(L&=q-1,L+=q):L=0,x++,--U[E]===0){if(E===C)break;E=b[m+_[x]]}if(E>N&&(L&j)!==P){for($===0&&($=N),k+=O,V=E-$,S=1<<V;V+$<C&&(S-=U[V+$],!(S<=0));)V++,S<<=1;if(R+=1<<V,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=N<<24|V<<16|k-u|0}}return L!==0&&(g[k+L]=E-$<<24|64<<16|0),w.bits=N,0},qn}var Cs;function dm(){if(Cs)return it;Cs=1;var e=vn(),n=sh(),o=uh(),i=fm(),a=hm(),t=0,r=1,s=2,d=4,l=5,f=6,h=0,c=1,b=2,m=-2,y=-3,g=-4,u=-5,_=8,w=1,v=2,E=3,x=4,O=5,C=6,N=7,V=8,$=9,S=10,R=11,L=12,q=13,z=14,P=15,j=16,k=17,F=18,W=19,Z=20,U=21,D=22,M=23,G=24,X=25,K=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function $e(Y){return(Y>>>24&255)+(Y>>>8&65280)+((Y&65280)<<8)+((Y&255)<<24)}function st(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Y){var ie;return!Y||!Y.state?m:(ie=Y.state,Y.total_in=Y.total_out=ie.total=0,Y.msg="",ie.wrap&&(Y.adler=ie.wrap&1),ie.mode=w,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function Ne(Y){var ie;return!Y||!Y.state?m:(ie=Y.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Y))}function Ye(Y,ie){var T,oe;return!Y||!Y.state||(oe=Y.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,Ne(Y))}function J(Y,ie){var T,oe;return Y?(oe=new st,Y.state=oe,oe.window=null,T=Ye(Y,ie),T!==h&&(Y.state=null),T):m}function Q(Y){return J(Y,Ee)}var ce=!0,ge,he;function Re(Y){if(ce){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Y.lens[ie++]=8;for(;ie<256;)Y.lens[ie++]=9;for(;ie<280;)Y.lens[ie++]=7;for(;ie<288;)Y.lens[ie++]=8;for(a(r,Y.lens,0,288,ge,0,Y.work,{bits:9}),ie=0;ie<32;)Y.lens[ie++]=5;a(s,Y.lens,0,32,he,0,Y.work,{bits:5}),ce=!1}Y.lencode=ge,Y.lenbits=9,Y.distcode=he,Y.distbits=5}function Oe(Y,ie,T,oe){var be,p=Y.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Y,ie){var T,oe,be,p,te,re,A,H,ee,_e,de,pe,xe,vt,Le=0,Ie,Be,We,Xe,yr,_r,Me,nt,ze=new e.Buf8(4),yt,ht,ms=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Y||!Y.state||!Y.output||!Y.input&&Y.avail_in!==0)return m;T=Y.state,T.mode===L&&(T.mode=q),te=Y.next_out,be=Y.output,A=Y.avail_out,p=Y.next_in,oe=Y.input,re=Y.avail_in,H=T.hold,ee=T.bits,_e=re,de=A,nt=h;e:for(;;)switch(T.mode){case w:if(T.wrap===0){T.mode=q;break}for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&H===35615){T.check=0,ze[0]=H&255,ze[1]=H>>>8&255,T.check=o(T.check,ze,2,0),H=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((H&255)<<8)+(H>>8))%31){Y.msg="incorrect header check",T.mode=me;break}if((H&15)!==_){Y.msg="unknown compression method",T.mode=me;break}if(H>>>=4,ee-=4,Me=(H&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Y.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Y.adler=T.check=1,T.mode=H&512?S:L,H=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(T.flags=H,(T.flags&255)!==_){Y.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Y.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=H>>8&1),T.flags&512&&(ze[0]=H&255,ze[1]=H>>>8&255,T.check=o(T.check,ze,2,0)),H=0,ee=0,T.mode=E;case E:for(;ee<32;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=H),T.flags&512&&(ze[0]=H&255,ze[1]=H>>>8&255,ze[2]=H>>>16&255,ze[3]=H>>>24&255,T.check=o(T.check,ze,4,0)),H=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=H&255,T.head.os=H>>8),T.flags&512&&(ze[0]=H&255,ze[1]=H>>>8&255,T.check=o(T.check,ze,2,0)),H=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.length=H,T.head&&(T.head.extra_len=H),T.flags&512&&(ze[0]=H&255,ze[1]=H>>>8&255,T.check=o(T.check,ze,2,0)),H=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=N;case N:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=V;case V:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=$;case $:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(H!==(T.check&65535)){Y.msg="header crc mismatch",T.mode=me;break}H=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Y.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}Y.adler=T.check=$e(H),H=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Y.next_out=te,Y.avail_out=A,Y.next_in=p,Y.avail_in=re,T.hold=H,T.bits=ee,b;Y.adler=T.check=1,T.mode=L;case L:if(ie===l||ie===f)break e;case q:if(T.last){H>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}switch(T.last=H&1,H>>>=1,ee-=1,H&3){case 0:T.mode=z;break;case 1:if(Re(T),T.mode=Z,ie===f){H>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Y.msg="invalid block type",T.mode=me}H>>>=2,ee-=2;break;case z:for(H>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if((H&65535)!==(H>>>16^65535)){Y.msg="invalid stored block lengths",T.mode=me;break}if(T.length=H&65535,H=0,ee=0,T.mode=P,ie===f)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(T.nlen=(H&31)+257,H>>>=5,ee-=5,T.ndist=(H&31)+1,H>>>=5,ee-=5,T.ncode=(H&15)+4,H>>>=4,ee-=4,T.nlen>286||T.ndist>30){Y.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=F;case F:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.lens[ms[T.have++]]=H&7,H>>>=3,ee-=3}for(;T.have<19;)T.lens[ms[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Y.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=W;case W:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[H&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(We<16)H>>>=Ie,ee-=Ie,T.lens[T.have++]=We;else{if(We===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(H>>>=Ie,ee-=Ie,T.have===0){Y.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+(H&3),H>>>=2,ee-=2}else if(We===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}H>>>=Ie,ee-=Ie,Me=0,pe=3+(H&7),H>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}H>>>=Ie,ee-=Ie,Me=0,pe=11+(H&127),H>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Y.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Y.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Y.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Y.msg="invalid distances set",T.mode=me;break}if(T.mode=Z,ie===f)break e;case Z:T.mode=U;case U:if(re>=6&&A>=258){Y.next_out=te,Y.avail_out=A,Y.next_in=p,Y.avail_in=re,T.hold=H,T.bits=ee,i(Y,de),te=Y.next_out,be=Y.output,A=Y.avail_out,p=Y.next_in,oe=Y.input,re=Y.avail_in,H=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[H&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(Be&&(Be&240)===0){for(Xe=Ie,yr=Be,_r=We;Le=T.lencode[_r+((H&(1<<Xe+yr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}H>>>=Xe,ee-=Xe,T.back+=Xe}if(H>>>=Ie,ee-=Ie,T.back+=Ie,T.length=We,Be===0){T.mode=K;break}if(Be&32){T.back=-1,T.mode=L;break}if(Be&64){Y.msg="invalid literal/length code",T.mode=me;break}T.extra=Be&15,T.mode=D;case D:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.length+=H&(1<<T.extra)-1,H>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=M;case M:for(;Le=T.distcode[H&(1<<T.distbits)-1],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if((Be&240)===0){for(Xe=Ie,yr=Be,_r=We;Le=T.distcode[_r+((H&(1<<Xe+yr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}H>>>=Xe,ee-=Xe,T.back+=Xe}if(H>>>=Ie,ee-=Ie,T.back+=Ie,Be&64){Y.msg="invalid distance code",T.mode=me;break}T.offset=We,T.extra=Be&15,T.mode=G;case G:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.offset+=H&(1<<T.extra)-1,H>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Y.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Y.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=U);break;case K:if(A===0)break e;be[te++]=T.length,A--,T.mode=U;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,H|=oe[p++]<<ee,ee+=8}if(de-=A,Y.total_out+=de,T.total+=de,de&&(Y.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=A,(T.flags?H:$e(H))!==T.check){Y.msg="incorrect data check",T.mode=me;break}H=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(H!==(T.total&4294967295)){Y.msg="incorrect length check",T.mode=me;break}H=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Y.next_out=te,Y.avail_out=A,Y.next_in=p,Y.avail_in=re,T.hold=H,T.bits=ee,(T.wsize||de!==Y.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Oe(Y,Y.output,Y.next_out,de-Y.avail_out),_e-=Y.avail_in,de-=Y.avail_out,Y.total_in+=_e,Y.total_out+=de,T.total+=de,T.wrap&&de&&(Y.adler=T.check=T.flags?o(T.check,be,de,Y.next_out-de):n(T.check,be,de,Y.next_out-de)),Y.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===Z||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Y){if(!Y||!Y.state)return m;var ie=Y.state;return ie.window&&(ie.window=null),Y.state=null,h}function se(Y,ie){var T;return!Y||!Y.state||(T=Y.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function le(Y,ie){var T=ie.length,oe,be,p;return!Y||!Y.state||(oe=Y.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Oe(Y,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=Ne,it.inflateReset2=Ye,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=le,it.inflateInfo="pako inflate (from Nodeca project)",it}var Dn,Ps;function pm(){return Ps||(Ps=1,Dn={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}),Dn}const mm={overlayWidth:new at(100,100,50)};function ks(){const e=Fe(),n=Ze(),o=cr(),i=Mt(),a=Se(V=>jf(V)),t=a.uiState.selectedCustomerTenantId,r=fe.useMemo(()=>t?a.customers.find(V=>V.tenantId===t):void 0,[a.customers,t]),s=Se(V=>t?Lf(V.aiAccountantCustomerState,V.userState,t):[]),d=a.customerViewStateByTenantId[t],l=d?.jobsFetchStatus??{fetchState:"Not-Started"},f=d?.jobsPageToken!=null;fe.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&n(gs())},[a.fetchState]);const h=V=>{const $=It(V),S=Ft(V);Ve.trackCockpitTabClicked(S),e(`../../${$}`,{replace:!0})},c=(V,$,S,R)=>{n(Lt([V.tenantId])),n(rn($,S,R))},b=(V,$,S)=>{n(rn(V,$,S))},m=(V,$)=>{n(Lt(a.unonboardedTenantIds)),n(rn("retrain",V,$))},y=V=>{const $=a.selectedTenantIds,S=$.includes(V)?$.filter(R=>R!==V):[...$,V];n(Lt(S))},g=V=>{if(V.length===0)return;const $=a.selectedTenantIds,S=new Set($);if(V.every(L=>S.has(L))){const L=new Set(V);n(Lt($.filter(q=>!L.has(q))))}else{const L=Array.from(new Set([...$,...V]));n(Lt(L))}},u=()=>{n(Lt([]))},_=V=>{n(qf(V.companyId,V.tenantId))},w=V=>{V==="aiAccountant"&&n(gs())},v=(V,$)=>{n(Wt({sortKey:V,sortOrder:$}))},E=V=>{n(Wt({selectedCustomerTenantId:V.tenantId})),n(an(V.tenantId))},x=()=>{n(Wt({selectedCustomerTenantId:""}))},O=V=>{n(Wt({filterText:V}))},C=(V,$)=>{n(Wt({filters:$}))},N=()=>{t&&n(an(t,!0))};return B.jsxs(B.Fragment,{children:[B.jsx(Ep,{headerData:{selectedTabOption:wt("aiAccountant")},headerActions:{onTabChange:h},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:c,onBulkAction:b,onCancelOnboarding:_,onClearSelection:u,onCockpitReloadData:w,onColumnSortConfigChanged:v,onCustomerSelected:E,onEvaluateAll:m,onFilterTextChanged:O,onFiltersChange:C,onToggleAllVisible:g,onToggleTenantSelection:y}}),B.jsx(fr,{anchor:"right",open:r!=null,PaperProps:{style:{width:mm.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:x,children:r!=null&&B.jsx(eh,{customer:r,hasMoreJobs:f,jobs:s,jobsFetchStatus:l,onAction:c,onCancelOnboarding:_,onClose:x,onLoadMoreJobs:N})})]})}function gm(){const{tenantId:e=""}=ot(),n=Fe(),o=Ze(),i=Se(c=>od(c.aiAccountantCustomerState,c.userState)),a=Se(c=>jf(c)),t=i.find(c=>c.tenantId===e),r=a.customerViewStateByTenantId[e],s=Se(c=>Lf(c.aiAccountantCustomerState,c.userState,e));if(fe.useEffect(()=>{o(an(e))},[e,o]),t==null)return null;const d=(c,b,m,y)=>{o(Lt([c.tenantId])),o(rn(b,m,y))},l=c=>{o(qf(c.companyId,c.tenantId))},f=()=>{n("../")},h=()=>{o(an(e,!0))};return B.jsx(eh,{customer:t,hasMoreJobs:r?.jobsPageToken!=null,jobs:s,jobsFetchStatus:r?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:d,onCancelOnboarding:l,onClose:f,onLoadMoreJobs:h})}const ch=(e,n)=>{const o=[...e??[]];return o.push(n),o},vm=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ym=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>Je.isSignedIn()===!0?B.jsx(B.Fragment,{children:n}):B.jsx(nr,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function _m(){return B.jsxs(gt,{children:[B.jsx(Te,{path:"/",element:B.jsx(Pe,{element:B.jsx(ks,{})})}),B.jsx(Te,{path:"/detail/:tenantId",element:B.jsx(Pe,{element:B.jsx(gm,{})})}),B.jsx(Te,{path:"/*",element:B.jsx(Pe,{element:B.jsx(ks,{})})})]})}const Bt=()=>{const[e,n]=oh(),[o,i]=fe.useState(),a=fe.useRef(!1);return fe.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=Sp(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},bm={overlayWidth:new at(100,100,50)},{common:{strings:js}}=lr.getLocalizedStrings();function wm(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Ft(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(br({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ve.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(js.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(js.comma)}}),e(br({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Nf(o))},onColumnSortConfigChanged:(o,i)=>{e(br({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(Df())},onFiltersChange:o=>{e(br({uiState:{filters:o}}))}}}}function Em(e,n){return{headerData:{selectedTabOption:wt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Sm=Ge(Em,wm)(xp);function Nn({isDrawerOpen:e}){const n=Fe(),o=Ze(),i=Mt(),a=cr(),{companyId:t}=ot(),[r,s]=oh(),[d,l]=fe.useState(!1),f=Bt(),h=Se(v=>sd(v)),c=Se(v=>sr(v)),{additionalChurnFactors:b}=Se(v=>ud(v)),{selectedCompanyDetail:m,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=h,u=Se(v=>v.companyViewState.zeniUsers.fetchState),_=Se(v=>v.companyHealthMetricConfigViewState);if(fe.useEffect(()=>{const v=E=>E==="Not-Started"||E==="Error";h.fetchState==="Completed"?o(xt(!1)):v(h.fetchState)&&(o(Df()),v(u)&&o(At()),v(_.fetchState)&&o(cd()))},[h.fetchState,_.fetchState]),fe.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Nf(t)),m!=null&&(Rp(),Ve.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),l(!0),r.delete("utm_source"),s(r)))},[h.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),Je.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return B.jsxs(B.Fragment,{children:[e===!0||y!=null&&m!=null?B.jsx(fr,{anchor:"right",open:y!=null,PaperProps:{style:{width:bm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(vs()),children:B.jsx(Op,{roomId:`cockpit_${y}`,autoConnect:!0,children:B.jsx(Tp,{onSaveClick:()=>{y!=null&&o(fd(y))},onSaveChangesToLocalStore:v=>{h.selectedCompanyId!=null&&o(ld({companyId:h.selectedCompanyId,updatedLocalData:v}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(vs()),analytics:Ve,urlSource:d,additionalChurnFactorsOptions:b})})}):null,B.jsx(Sm,{initialOpenThreadRequest:f??void 0,healthView:h,managementView:c,navigate:n,mixpanelHMUrl:dn.mixpanelHMUrl})]})}function Rm(){return B.jsxs(gt,{children:[B.jsx(Te,{path:"/companies/:companyId",element:B.jsx(Pe,{element:B.jsx(Nn,{isDrawerOpen:!0})})}),B.jsx(Te,{path:"/",element:B.jsx(Pe,{element:B.jsx(Nn,{})})}),B.jsx(Te,{path:"/*",element:B.jsx(Pe,{element:B.jsx(Nn,{})})})]})}const Om={drawerLeftMargin:new at(0,0,240)};function pr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=cr(),r=o?.valuePx(t)??Om.drawerLeftMargin.valuePx(t),s=Mt();return B.jsx(fr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Tm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?B.jsx(xm,{children:B.jsx(pn,{size:"ExtraLarge",start:!0})}):null,xm=tt.div`
|
|
1
|
+
import{GX as jf,GY as Lf,jE as xt,es as gs,GZ as Lt,eB as rn,eq as qf,G_ as Wt,ex as an,G$ as id,H0 as ad,H1 as sr,H2 as od,ig as Nf,jG as At,ic as sd,ik as Df,H3 as vs,im as ud,io as cd,H4 as br,H5 as ur,hK as ld,H6 as fn,H7 as Uo,d1 as fd,fK as Vo,fH as on,fP as Nt,fN as hd,H8 as Mf,H9 as Ff,iC as dd,iz as pd,Ha as md,iN as gd,iI as ys,iF as vd,iu as yd,Hb as _d,e8 as bd,d8 as wd,jS as Bf,Hc as Ed,be as nn,ir as _s,iw as Sd,r1 as Uf,jF as hn,Hd as pt,j0 as $o,He as Rd,jY as Od,H as et,bk as Go,Hf as Td,hH as xd,Hg as Ad,Hh as Vf,Hi as Id,pB as bs,p6 as Cd,Hj as Pd,pc as Tn,Hk as kd,pe as jd,Hl as Rt,p3 as Ld,cR as qd,jJ as $f,jK as Gf,jI as zo,jH as Ho,jL as Nd,Hm as Dd,pE as Md,Hn as Fd,pl as Bd,py as Ud,Ho as Vd,pp as $d,Hp as Gd,Hq as Jt,Hr as Zo,Hs as zd,Ht as Hd,o0 as Zd,o6 as zf,Hu as Hf,hc as Yd,FZ as Zf,Hv as Wd,FT as Jd,Hw as Kd,Hx as Xd,o9 as Qd,Hy as ep,G2 as tp,FS as rp,sC as Yf,Hz as xn,HA as Wf,CN as Yo,Cz as np,CQ as Jf,CC as ip,HB as ap,CH as op,Ct as sp,Cw as up,HC as cp,CU as lp,CK as fp,bn as hp,bd as dp,HD as pp,HE as $t,HF as mp,HG as gp,HH as vp,iR as Do,iX as yp,ba as _p}from"./zeni-epic-state-D_IWj6oD.js";import{j as U}from"./liveblocks-CTqzt75Z.js";import{a as fe,p as ye,e as Kf,d as Xf,g as bp}from"./sentry-C6CbnDK5.js";import{Z as cr,m as Mt,J as wp,Q as wt,a as Qf,b as at,c as Ve,h as It,g as Ft,z as Je,N as Ep,u as Sp,d as Rp,U as Op,e as dn,K as Tp,D as lr,B as pn,o as qt,n as xp,f as Ap,y as Ot,S as mn,i as Dt,j as Ip,t as Cp,k as An,l as Pp,_ as eh,V as kp,p as th,q as rh,r as Mo,s as jp,L as Lp,v as qp,w as nh,X as Np,x as Dp,A as Mp,C as Fp,E as Bp,F as Up,Y as Vp,G as $p,H as Gp,I as zp,M as Hp,O as Zp,P as Yp}from"./index-DNVGRlbp.js";import{f as Wp}from"./analyticsHelper-jtw74pIY.js";import{i as Fe,n as Ze,g as Se,o as ot,N as nr,k as gt,l as Te,p as ih,h as Ge,u as Wo,j as Fo}from"./core-DSRGnsuN.js";import{D as fr,n as tt,S as zt}from"./mui-D2XoZszz.js";import{a as He,b as Jp,c as Kp,d as Xp,e as Jo,f as Qp,g as em,h as tm,i as Ht,j as rm,k as ar,l as gn,m as nm,n as hr,o as im}from"./utils-CxleEPDM.js";import{r as Ko}from"./empty-HFaPDeHn.js";import{r as dr,a as am}from"./index-CjA52rF1.js";import{r as om}from"./index-DLITyZ-5.js";import"./recharts-Dgdt7a-L.js";import"./analytics-cwjP4Bou.js";import"./lottie-BS5f0GhF.js";import"./lexical-zDu6lgQZ.js";import"./url-D3HF9rU-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed3b17f3-b47b-42f3-bf11-1b639b96cf05",e._sentryDebugIdIdentifier="sentry-dbid-ed3b17f3-b47b-42f3-bf11-1b639b96cf05")}catch{}})();var In={},ws;function vn(){return ws||(ws=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)o(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,d,l){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+d),l);return}for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){var r,s,d,l,f,h;for(d=0,r=0,s=t.length;r<s;r++)d+=t[r].length;for(h=new Uint8Array(d),l=0,r=0,s=t.length;r<s;r++)f=t[r],h.set(f,l),l+=f.length;return h}},a={arraySet:function(t,r,s,d,l){for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(In)),In}var ut={},Ct={},Es;function sm(){if(Es)return Ct;Es=1;var e=vn(),n=4,o=0,i=1,a=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var r=0,s=1,d=2,l=3,f=258,h=29,c=256,b=c+1+h,m=30,y=19,g=2*b+1,u=15,_=16,w=7,v=256,E=16,x=17,O=18,C=[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],D=[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],V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((b+2)*2);t(R);var L=new Array(m*2);t(L);var q=new Array(S);t(q);var z=new Array(f-l+1);t(z);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(I,ne,se,le,Y){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=le,this.max_length=Y,this.has_stree=I&&I.length}var F,W,Z;function B(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function N(I){return I<256?q[I]:q[256+(I>>>7)]}function M(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function G(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,M(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function X(I,ne,se){G(I,se[ne*2],se[ne*2+1])}function K(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(M(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,le=ne.max_code,Y=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,H,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>le)&&(I.bl_count[A]++,H=0,te>=oe&&(H=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+H),ie&&(I.static_len+=ee*(Y[te*2+1]+H)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>le)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var le=new Array(u+1),Y=0,ie,T;for(ie=1;ie<=u;ie++)le[ie]=Y=Y+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=K(le[oe]++,oe))}}function me(){var I,ne,se,le,Y,ie=new Array(u+1);for(se=0,le=0;le<h-1;le++)for(P[le]=se,I=0;I<1<<C[le];I++)z[se++]=le;for(z[se-1]=le,Y=0,le=0;le<16;le++)for(j[le]=Y,I=0;I<1<<D[le];I++)q[Y++]=le;for(Y>>=7;le<m;le++)for(j[le]=Y<<7,I=0;I<1<<D[le]-7;I++)q[256+Y++]=le;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,b+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=K(I,5);F=new k(R,C,c+1,b,u),W=new k(L,D,0,m,u),Z=new k(new Array(0),V,0,y,w)}function we(I){var ne;for(ne=0;ne<b;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?M(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,le){Ce(I),M(I,se),M(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,le){var Y=ne*2,ie=se*2;return I[Y]<I[ie]||I[Y]===I[ie]&&le[ne]<=le[se]}function Ae(I,ne,se){for(var le=I.heap[se],Y=se<<1;Y<=I.heap_len&&(Y<I.heap_len&&je(ne,I.heap[Y+1],I.heap[Y],I.depth)&&Y++,!je(ne,le,I.heap[Y],I.depth));)I.heap[se]=I.heap[Y],se=Y,Y<<=1;I.heap[se]=le}function Ee(I,ne,se){var le,Y,ie=0,T,oe;if(I.last_lit!==0)do le=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Y=I.pending_buf[I.l_buf+ie],ie++,le===0?X(I,Y,ne):(T=z[Y],X(I,T+c+1,ne),oe=C[T],oe!==0&&(Y-=P[T],G(I,Y,oe)),le--,T=N(le),X(I,T,se),oe=D[T],oe!==0&&(le-=j[T],G(I,le,oe)));while(ie<I.last_lit);X(I,v,ne)}function $e(I,ne){var se=ne.dyn_tree,le=ne.stat_desc.static_tree,Y=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Y&&(I.static_len-=le[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var le,Y=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,le=0;le<=se;le++)ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Y&&I.bl_tree[ie*2]++,I.bl_tree[E*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Y=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var le,Y=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),le=0;le<=se;le++)if(ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Y&&(X(I,ie,I.bl_tree),oe--),X(I,E,I.bl_tree),G(I,oe-3,2)):oe<=10?(X(I,x,I.bl_tree),G(I,oe-3,3)):(X(I,O,I.bl_tree),G(I,oe-11,7));oe=0,Y=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function De(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),$e(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[$[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function Ye(I,ne,se,le){var Y;for(G(I,ne-257,5),G(I,se-1,5),G(I,le-4,4),Y=0;Y<le;Y++)G(I,I.bl_tree[$[Y]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(I){Q||(me(),Q=!0),I.l_desc=new B(I.dyn_ltree,F),I.d_desc=new B(I.dyn_dtree,W),I.bl_desc=new B(I.bl_tree,Z),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,le){G(I,(r<<1)+(le?1:0),3),ke(I,ne,se)}function he(I){G(I,s<<1,3),X(I,v,R),ae(I)}function Re(I,ne,se,le){var Y,ie,T=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=J(I)),$e(I,I.l_desc),$e(I,I.d_desc),T=De(I),Y=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Y&&(Y=ie)):Y=ie=se+5,se+4<=Y&&ne!==-1?ge(I,ne,se,le):I.strategy===n||ie===Y?(G(I,(s<<1)+(le?1:0),3),Ee(I,R,L)):(G(I,(d<<1)+(le?1:0),3),Ye(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),le&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(z[se]+c+1)*2]++,I.dyn_dtree[N(ne)*2]++),I.last_lit===I.lit_bufsize-1}return Ct._tr_init=ce,Ct._tr_stored_block=ge,Ct._tr_flush_block=Re,Ct._tr_tally=Oe,Ct._tr_align=he,Ct}var Cn,Ss;function ah(){if(Ss)return Cn;Ss=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return Cn=e,Cn}var Pn,Rs;function oh(){if(Rs)return Pn;Rs=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,d=r+t;i^=-1;for(var l=r;l<d;l++)i=i>>>8^s[(i^a[l])&255];return i^-1}return Pn=o,Pn}var kn,Os;function um(){return Os||(Os=1,kn={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"}),kn}var Ts;function cm(){if(Ts)return ut;Ts=1;var e=vn(),n=sm(),o=ah(),i=oh(),a=um(),t=0,r=1,s=3,d=4,l=5,f=0,h=1,c=-2,b=-3,m=-5,y=-1,g=1,u=2,_=3,w=4,v=0,E=2,x=8,O=9,C=15,D=8,V=29,$=256,S=$+1+V,R=30,L=19,q=2*S+1,z=15,P=3,j=258,k=j+P+1,F=32,W=42,Z=69,B=73,N=91,M=103,G=113,X=666,K=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function $e(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var H=p.avail_in;return H>A&&(H=A),H===0?0:(p.avail_in-=H,e.arraySet(te,p.input,p.next_in,H,re),p.state.wrap===1?p.adler=o(p.adler,te,H,re):p.state.wrap===2&&(p.adler=i(p.adler,te,H,re)),p.next_in+=H,p.total_in+=H,H)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,H,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Be=xe[A+_e-1],We=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if(H=te,!(xe[H+_e]!==We||xe[H+_e-1]!==Be||xe[H]!==xe[A]||xe[++H]!==xe[A+1])){A+=2,H++;do;while(xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&xe[++A]===xe[++H]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Be=xe[A+_e-1],We=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function De(p){var te=p.w_size,re,A,H,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do H=p.head[--re],p.head[re]=H>=te?H-te:0;while(--A);A=te,re=A;do H=p.prev[--re],p.prev[re]=H>=te?H-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function Ye(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(De(p),p.lookahead===0&&te===t)return K;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),K)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=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 A=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function Q(p,te){for(var re,A,H;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=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=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){H=p.strstart+p.lookahead-P,A=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=H&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=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=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return K}else if(p.match_available){if(A=n._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return K}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ce(p,te){for(var re,A,H,ee,_e=p.window;;){if(p.lookahead<=j){if(De(p),p.lookahead<=j&&te===t)return K;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&(H=p.strstart-1,A=_e[H],A===_e[++H]&&A===_e[++H]&&A===_e[++H])){ee=p.strstart+j;do;while(A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&A===_e[++H]&&H<ee);p.match_length=j-(ee-H),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(De(p),p.lookahead===0)){if(te===t)return K;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function he(p,te,re,A,H){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=H}var Re;Re=[new he(0,0,0,0,Ye),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){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=x,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 e.Buf16(q*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(z+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(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 ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=E,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?W:G,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),f)}function se(p){var te=ne(p);return te===f&&Oe(p.state),te}function le(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,f)}function Y(p,te,re,A,H,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),H<1||H>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>w)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=H+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<H+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Y(p,te,x,C,D,v)}function T(p,te){var re,A,H,ee;if(!p||!p.state||te>l||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===X&&te!==d)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===W)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=Z):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=G);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=F),_e+=31-_e%31,A.status=G,$e(A,_e),A.strstart!==0&&($e(A,p.adler>>>16),$e(A,p.adler&65535)),p.adler=1}if(A.status===Z)if(A.gzhead.extra){for(H=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),je(p),H=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=B)}else A.status=B;if(A.status===B)if(A.gzhead.name){H=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),je(p),H=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),ee===0&&(A.gzindex=0,A.status=N)}else A.status=N;if(A.status===N)if(A.gzhead.comment){H=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),je(p),H=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>H&&(p.adler=i(p.adler,A.pending_buf,A.pending-H,H)),ee===0&&(A.status=M)}else A.status=M;if(A.status===M&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=G)):A.status=G),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,f}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(A.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==X){var pe=A.strategy===u?ge(A,te):A.strategy===_?ce(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=X),pe===K||pe===ue)return p.avail_out===0&&(A.last_flush=-1),f;if(pe===ae&&(te===r?n._tr_align(A):te!==l&&(n._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,f}return te!==d?f:A.wrap<=0?h:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):($e(A,p.adler>>>16),$e(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?f:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==W&&te!==Z&&te!==B&&te!==N&&te!==M&&te!==G&&te!==X?we(p,c):(p.state=null,te===G?we(p,b):f))}function be(p,te){var re=te.length,A,H,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==W||A.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,De(A);A.lookahead>=P;){H=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[H+P-1])&A.hash_mask,A.prev[H&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=H,H++;while(--ee);A.strstart=H,A.lookahead=P-1,De(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,f}return ut.deflateInit=ie,ut.deflateInit2=Y,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=le,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var jn,xs;function lm(){if(xs)return jn;xs=1;function e(){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 jn=e,jn}var it={},Ln,As;function fm(){if(As)return Ln;As=1;var e=30,n=12;return Ln=function(i,a){var t,r,s,d,l,f,h,c,b,m,y,g,u,_,w,v,E,x,O,C,D,V,$,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),d=i.next_out,R=i.output,l=d-(a-i.avail_out),f=d+(i.avail_out-257),h=t.dmax,c=t.wsize,b=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,w=t.distcode,v=(1<<t.lenbits)-1,E=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=w[g&E];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(D=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),D+=g&(1<<O)-1,D>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-l,D>O){if(O=D-O,O>b&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(V=0,$=y,m===0){if(V+=c-O,O<C){C-=O;do R[d++]=y[V++];while(--O);V=d-D,$=R}}else if(m<O){if(V+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[V++];while(--O);if(V=0,m<C){O=m,C-=O;do R[d++]=y[V++];while(--O);V=d-D,$=R}}}else if(V+=m-O,O<C){C-=O;do R[d++]=y[V++];while(--O);V=d-D,$=R}for(;C>2;)R[d++]=$[V++],R[d++]=$[V++],R[d++]=$[V++],C-=3;C&&(R[d++]=$[V++],C>1&&(R[d++]=$[V++]))}else{V=d-D;do R[d++]=R[V++],R[d++]=R[V++],R[d++]=R[V++],C-=3;while(C>2);C&&(R[d++]=R[V++],C>1&&(R[d++]=R[V++]))}}else if((O&64)===0){x=w[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&d<f);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=d,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=d<f?257+(f-d):257-(d-f),t.hold=g,t.bits=u},Ln}var qn,Is;function hm(){if(Is)return qn;Is=1;var e=vn(),n=15,o=852,i=592,a=0,t=1,r=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],d=[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],l=[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],f=[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 qn=function(c,b,m,y,g,u,_,w){var v=w.bits,E=0,x=0,O=0,C=0,D=0,V=0,$=0,S=0,R=0,L=0,q,z,P,j,k,F=null,W=0,Z,B=new e.Buf16(n+1),N=new e.Buf16(n+1),M=null,G=0,X,K,ae;for(E=0;E<=n;E++)B[E]=0;for(x=0;x<y;x++)B[b[m+x]]++;for(D=v,C=n;C>=1&&B[C]===0;C--);if(D>C&&(D=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,w.bits=1,0;for(O=1;O<C&&B[O]===0;O++);for(D<O&&(D=O),S=1,E=1;E<=n;E++)if(S<<=1,S-=B[E],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(N[1]=0,E=1;E<n;E++)N[E+1]=N[E]+B[E];for(x=0;x<y;x++)b[m+x]!==0&&(_[N[b[m+x]]++]=x);if(c===a?(F=M=_,Z=19):c===t?(F=s,W-=257,M=d,G-=257,Z=256):(F=l,M=f,Z=-1),L=0,x=0,E=O,k=u,V=D,$=0,P=-1,R=1<<D,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=E-$,_[x]<Z?(K=0,ae=_[x]):_[x]>Z?(K=M[G+_[x]],ae=F[W+_[x]]):(K=96,ae=0),q=1<<E-$,z=1<<V,O=z;do z-=q,g[k+(L>>$)+z]=X<<24|K<<16|ae|0;while(z!==0);for(q=1<<E-1;L&q;)q>>=1;if(q!==0?(L&=q-1,L+=q):L=0,x++,--B[E]===0){if(E===C)break;E=b[m+_[x]]}if(E>D&&(L&j)!==P){for($===0&&($=D),k+=O,V=E-$,S=1<<V;V+$<C&&(S-=B[V+$],!(S<=0));)V++,S<<=1;if(R+=1<<V,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=D<<24|V<<16|k-u|0}}return L!==0&&(g[k+L]=E-$<<24|64<<16|0),w.bits=D,0},qn}var Cs;function dm(){if(Cs)return it;Cs=1;var e=vn(),n=ah(),o=oh(),i=fm(),a=hm(),t=0,r=1,s=2,d=4,l=5,f=6,h=0,c=1,b=2,m=-2,y=-3,g=-4,u=-5,_=8,w=1,v=2,E=3,x=4,O=5,C=6,D=7,V=8,$=9,S=10,R=11,L=12,q=13,z=14,P=15,j=16,k=17,F=18,W=19,Z=20,B=21,N=22,M=23,G=24,X=25,K=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function $e(Y){return(Y>>>24&255)+(Y>>>8&65280)+((Y&65280)<<8)+((Y&255)<<24)}function st(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Y){var ie;return!Y||!Y.state?m:(ie=Y.state,Y.total_in=Y.total_out=ie.total=0,Y.msg="",ie.wrap&&(Y.adler=ie.wrap&1),ie.mode=w,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function De(Y){var ie;return!Y||!Y.state?m:(ie=Y.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Y))}function Ye(Y,ie){var T,oe;return!Y||!Y.state||(oe=Y.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,De(Y))}function J(Y,ie){var T,oe;return Y?(oe=new st,Y.state=oe,oe.window=null,T=Ye(Y,ie),T!==h&&(Y.state=null),T):m}function Q(Y){return J(Y,Ee)}var ce=!0,ge,he;function Re(Y){if(ce){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Y.lens[ie++]=8;for(;ie<256;)Y.lens[ie++]=9;for(;ie<280;)Y.lens[ie++]=7;for(;ie<288;)Y.lens[ie++]=8;for(a(r,Y.lens,0,288,ge,0,Y.work,{bits:9}),ie=0;ie<32;)Y.lens[ie++]=5;a(s,Y.lens,0,32,he,0,Y.work,{bits:5}),ce=!1}Y.lencode=ge,Y.lenbits=9,Y.distcode=he,Y.distbits=5}function Oe(Y,ie,T,oe){var be,p=Y.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Y,ie){var T,oe,be,p,te,re,A,H,ee,_e,de,pe,xe,vt,Le=0,Ie,Be,We,Xe,yr,_r,Me,nt,ze=new e.Buf8(4),yt,ht,ms=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Y||!Y.state||!Y.output||!Y.input&&Y.avail_in!==0)return m;T=Y.state,T.mode===L&&(T.mode=q),te=Y.next_out,be=Y.output,A=Y.avail_out,p=Y.next_in,oe=Y.input,re=Y.avail_in,H=T.hold,ee=T.bits,_e=re,de=A,nt=h;e:for(;;)switch(T.mode){case w:if(T.wrap===0){T.mode=q;break}for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&H===35615){T.check=0,ze[0]=H&255,ze[1]=H>>>8&255,T.check=o(T.check,ze,2,0),H=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((H&255)<<8)+(H>>8))%31){Y.msg="incorrect header check",T.mode=me;break}if((H&15)!==_){Y.msg="unknown compression method",T.mode=me;break}if(H>>>=4,ee-=4,Me=(H&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Y.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Y.adler=T.check=1,T.mode=H&512?S:L,H=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(T.flags=H,(T.flags&255)!==_){Y.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Y.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=H>>8&1),T.flags&512&&(ze[0]=H&255,ze[1]=H>>>8&255,T.check=o(T.check,ze,2,0)),H=0,ee=0,T.mode=E;case E:for(;ee<32;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=H),T.flags&512&&(ze[0]=H&255,ze[1]=H>>>8&255,ze[2]=H>>>16&255,ze[3]=H>>>24&255,T.check=o(T.check,ze,4,0)),H=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=H&255,T.head.os=H>>8),T.flags&512&&(ze[0]=H&255,ze[1]=H>>>8&255,T.check=o(T.check,ze,2,0)),H=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.length=H,T.head&&(T.head.extra_len=H),T.flags&512&&(ze[0]=H&255,ze[1]=H>>>8&255,T.check=o(T.check,ze,2,0)),H=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=D;case D:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=V;case V:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=$;case $:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(H!==(T.check&65535)){Y.msg="header crc mismatch",T.mode=me;break}H=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Y.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}Y.adler=T.check=$e(H),H=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Y.next_out=te,Y.avail_out=A,Y.next_in=p,Y.avail_in=re,T.hold=H,T.bits=ee,b;Y.adler=T.check=1,T.mode=L;case L:if(ie===l||ie===f)break e;case q:if(T.last){H>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}switch(T.last=H&1,H>>>=1,ee-=1,H&3){case 0:T.mode=z;break;case 1:if(Re(T),T.mode=Z,ie===f){H>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Y.msg="invalid block type",T.mode=me}H>>>=2,ee-=2;break;case z:for(H>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if((H&65535)!==(H>>>16^65535)){Y.msg="invalid stored block lengths",T.mode=me;break}if(T.length=H&65535,H=0,ee=0,T.mode=P,ie===f)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(T.nlen=(H&31)+257,H>>>=5,ee-=5,T.ndist=(H&31)+1,H>>>=5,ee-=5,T.ncode=(H&15)+4,H>>>=4,ee-=4,T.nlen>286||T.ndist>30){Y.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=F;case F:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.lens[ms[T.have++]]=H&7,H>>>=3,ee-=3}for(;T.have<19;)T.lens[ms[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Y.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=W;case W:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[H&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(We<16)H>>>=Ie,ee-=Ie,T.lens[T.have++]=We;else{if(We===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(H>>>=Ie,ee-=Ie,T.have===0){Y.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+(H&3),H>>>=2,ee-=2}else if(We===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}H>>>=Ie,ee-=Ie,Me=0,pe=3+(H&7),H>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}H>>>=Ie,ee-=Ie,Me=0,pe=11+(H&127),H>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Y.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Y.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Y.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Y.msg="invalid distances set",T.mode=me;break}if(T.mode=Z,ie===f)break e;case Z:T.mode=B;case B:if(re>=6&&A>=258){Y.next_out=te,Y.avail_out=A,Y.next_in=p,Y.avail_in=re,T.hold=H,T.bits=ee,i(Y,de),te=Y.next_out,be=Y.output,A=Y.avail_out,p=Y.next_in,oe=Y.input,re=Y.avail_in,H=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[H&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(Be&&(Be&240)===0){for(Xe=Ie,yr=Be,_r=We;Le=T.lencode[_r+((H&(1<<Xe+yr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}H>>>=Xe,ee-=Xe,T.back+=Xe}if(H>>>=Ie,ee-=Ie,T.back+=Ie,T.length=We,Be===0){T.mode=K;break}if(Be&32){T.back=-1,T.mode=L;break}if(Be&64){Y.msg="invalid literal/length code",T.mode=me;break}T.extra=Be&15,T.mode=N;case N:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.length+=H&(1<<T.extra)-1,H>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=M;case M:for(;Le=T.distcode[H&(1<<T.distbits)-1],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if((Be&240)===0){for(Xe=Ie,yr=Be,_r=We;Le=T.distcode[_r+((H&(1<<Xe+yr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,We=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}H>>>=Xe,ee-=Xe,T.back+=Xe}if(H>>>=Ie,ee-=Ie,T.back+=Ie,Be&64){Y.msg="invalid distance code",T.mode=me;break}T.offset=We,T.extra=Be&15,T.mode=G;case G:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}T.offset+=H&(1<<T.extra)-1,H>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Y.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Y.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=B);break;case K:if(A===0)break e;be[te++]=T.length,A--,T.mode=B;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,H|=oe[p++]<<ee,ee+=8}if(de-=A,Y.total_out+=de,T.total+=de,de&&(Y.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=A,(T.flags?H:$e(H))!==T.check){Y.msg="incorrect data check",T.mode=me;break}H=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,H+=oe[p++]<<ee,ee+=8}if(H!==(T.total&4294967295)){Y.msg="incorrect length check",T.mode=me;break}H=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Y.next_out=te,Y.avail_out=A,Y.next_in=p,Y.avail_in=re,T.hold=H,T.bits=ee,(T.wsize||de!==Y.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Oe(Y,Y.output,Y.next_out,de-Y.avail_out),_e-=Y.avail_in,de-=Y.avail_out,Y.total_in+=_e,Y.total_out+=de,T.total+=de,T.wrap&&de&&(Y.adler=T.check=T.flags?o(T.check,be,de,Y.next_out-de):n(T.check,be,de,Y.next_out-de)),Y.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===Z||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Y){if(!Y||!Y.state)return m;var ie=Y.state;return ie.window&&(ie.window=null),Y.state=null,h}function se(Y,ie){var T;return!Y||!Y.state||(T=Y.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function le(Y,ie){var T=ie.length,oe,be,p;return!Y||!Y.state||(oe=Y.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Oe(Y,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=De,it.inflateReset2=Ye,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=le,it.inflateInfo="pako inflate (from Nodeca project)",it}var Nn,Ps;function pm(){return Ps||(Ps=1,Nn={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}),Nn}const mm={overlayWidth:new at(100,100,50)};function ks(){const e=Fe(),n=Ze(),o=cr(),i=Mt(),a=Se(V=>jf(V)),t=a.uiState.selectedCustomerTenantId,r=fe.useMemo(()=>t?a.customers.find(V=>V.tenantId===t):void 0,[a.customers,t]),s=Se(V=>t?Lf(V.aiAccountantCustomerState,V.userState,t):[]),d=a.customerViewStateByTenantId[t],l=d?.jobsFetchStatus??{fetchState:"Not-Started"},f=d?.jobsPageToken!=null;fe.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&n(gs())},[a.fetchState]);const h=V=>{const $=It(V),S=Ft(V);Ve.trackCockpitTabClicked(S),e(`../../${$}`,{replace:!0})},c=(V,$,S,R)=>{n(Lt([V.tenantId])),n(rn($,S,R))},b=(V,$,S)=>{n(rn(V,$,S))},m=(V,$)=>{n(Lt(a.unonboardedTenantIds)),n(rn("retrain",V,$))},y=V=>{const $=a.selectedTenantIds,S=$.includes(V)?$.filter(R=>R!==V):[...$,V];n(Lt(S))},g=V=>{if(V.length===0)return;const $=a.selectedTenantIds,S=new Set($);if(V.every(L=>S.has(L))){const L=new Set(V);n(Lt($.filter(q=>!L.has(q))))}else{const L=Array.from(new Set([...$,...V]));n(Lt(L))}},u=()=>{n(Lt([]))},_=V=>{n(qf(V.companyId,V.tenantId))},w=V=>{V==="aiAccountant"&&n(gs())},v=(V,$)=>{n(Wt({sortKey:V,sortOrder:$}))},E=V=>{n(Wt({selectedCustomerTenantId:V.tenantId})),n(an(V.tenantId))},x=()=>{n(Wt({selectedCustomerTenantId:""}))},O=V=>{n(Wt({filterText:V}))},C=(V,$)=>{n(Wt({filters:$}))},D=()=>{t&&n(an(t,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(wp,{headerData:{selectedTabOption:wt("aiAccountant")},headerActions:{onTabChange:h},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:c,onBulkAction:b,onCancelOnboarding:_,onClearSelection:u,onCockpitReloadData:w,onColumnSortConfigChanged:v,onCustomerSelected:E,onEvaluateAll:m,onFilterTextChanged:O,onFiltersChange:C,onToggleAllVisible:g,onToggleTenantSelection:y}}),U.jsx(fr,{anchor:"right",open:r!=null,PaperProps:{style:{width:mm.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:x,children:r!=null&&U.jsx(Qf,{customer:r,hasMoreJobs:f,jobs:s,jobsFetchStatus:l,onAction:c,onCancelOnboarding:_,onClose:x,onLoadMoreJobs:D})})]})}function gm(){const{tenantId:e=""}=ot(),n=Fe(),o=Ze(),i=Se(c=>id(c.aiAccountantCustomerState,c.userState)),a=Se(c=>jf(c)),t=i.find(c=>c.tenantId===e),r=a.customerViewStateByTenantId[e],s=Se(c=>Lf(c.aiAccountantCustomerState,c.userState,e));if(fe.useEffect(()=>{o(an(e))},[e,o]),t==null)return null;const d=(c,b,m,y)=>{o(Lt([c.tenantId])),o(rn(b,m,y))},l=c=>{o(qf(c.companyId,c.tenantId))},f=()=>{n("../")},h=()=>{o(an(e,!0))};return U.jsx(Qf,{customer:t,hasMoreJobs:r?.jobsPageToken!=null,jobs:s,jobsFetchStatus:r?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:d,onCancelOnboarding:l,onClose:f,onLoadMoreJobs:h})}const sh=(e,n)=>{const o=[...e??[]];return o.push(n),o},vm=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ym=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>Je.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(nr,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function _m(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(ks,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(Pe,{element:U.jsx(gm,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(ks,{})})})]})}const Bt=()=>{const[e,n]=ih(),[o,i]=fe.useState(),a=fe.useRef(!1);return fe.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=Ep(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},bm={overlayWidth:new at(100,100,50)},{common:{strings:js}}=lr.getLocalizedStrings();function wm(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Ft(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(br({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ve.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(js.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(js.comma)}}),e(br({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Df(o))},onColumnSortConfigChanged:(o,i)=>{e(br({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(Nf())},onFiltersChange:o=>{e(br({uiState:{filters:o}}))}}}}function Em(e,n){return{headerData:{selectedTabOption:wt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Sm=Ge(Em,wm)(Tp);function Dn({isDrawerOpen:e}){const n=Fe(),o=Ze(),i=Mt(),a=cr(),{companyId:t}=ot(),[r,s]=ih(),[d,l]=fe.useState(!1),f=Bt(),h=Se(v=>ad(v)),c=Se(v=>sr(v)),{additionalChurnFactors:b}=Se(v=>od(v)),{selectedCompanyDetail:m,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=h,u=Se(v=>v.companyViewState.zeniUsers.fetchState),_=Se(v=>v.companyHealthMetricConfigViewState);if(fe.useEffect(()=>{const v=E=>E==="Not-Started"||E==="Error";h.fetchState==="Completed"?o(xt(!1)):v(h.fetchState)&&(o(Nf()),v(u)&&o(At()),v(_.fetchState)&&o(sd()))},[h.fetchState,_.fetchState]),fe.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Df(t)),m!=null&&(Sp(),Ve.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),l(!0),r.delete("utm_source"),s(r)))},[h.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),Je.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||y!=null&&m!=null?U.jsx(fr,{anchor:"right",open:y!=null,PaperProps:{style:{width:bm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(vs()),children:U.jsx(Rp,{roomId:`cockpit_${y}`,autoConnect:!0,children:U.jsx(Op,{onSaveClick:()=>{y!=null&&o(cd(y))},onSaveChangesToLocalStore:v=>{h.selectedCompanyId!=null&&o(ud({companyId:h.selectedCompanyId,updatedLocalData:v}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(vs()),analytics:Ve,urlSource:d,additionalChurnFactorsOptions:b})})}):null,U.jsx(Sm,{initialOpenThreadRequest:f??void 0,healthView:h,managementView:c,navigate:n,mixpanelHMUrl:dn.mixpanelHMUrl})]})}function Rm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(Dn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Dn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Dn,{})})})]})}const Om={drawerLeftMargin:new at(0,0,240)};function pr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=cr(),r=o?.valuePx(t)??Om.drawerLeftMargin.valuePx(t),s=Mt();return U.jsx(fr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Tm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(xm,{children:U.jsx(pn,{size:"ExtraLarge",start:!0})}):null,xm=tt.div`
|
|
3
2
|
display: flex;
|
|
4
3
|
width: 100%;
|
|
5
4
|
height: 100%;
|
|
@@ -8,7 +7,7 @@ import{GX as jf,GY as Lf,jF as xt,et as gs,GZ as Lt,eC as rn,er as qf,G_ as Wt,e
|
|
|
8
7
|
align-items: center;
|
|
9
8
|
background-color: ${e=>e.theme.colors.grey4};
|
|
10
9
|
box-shadow: ${e=>`0px 2px ${qt.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function Am(e,n){const{loggedInUser:o,companyId:i,isMonthEnd:a,allUsers:t,isAuditScoreCompleted:r}=n,d=ur(e).companies.find(h=>h.companyId===i),l=fn(e),f=i!=null?Uo(i,e,o):null;return{allUsers:t,isAuditScoreCompleted:r,reviewCompanyView:d,loggedInUser:o,auditRuleGroups:l.auditRuleGroups??[],auditReportGroupView:{auditReportGroups:f?.auditReportGroups??[],isControllerOrReviewer:f?.isControllerOrReviewer??!1},isMonthEnd:a,analytics:Ve}}function Im(e,n){const{companyId:o,companyView:i,closeAuditScoreDrawer:a}=n;return{handleFetchAuditReportGroupView:t=>{o!=null&&e(on(o,"generate",t))},handleGenerateAuditReport:t=>{o!=null&&(e(Mf(o)),t.forEach(r=>{e(on(o,"generate",r))}))},handleRuleClick:(t,r)=>{switch(t){case"reports":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/reports`);break;case"transactions":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/transactions/${r}`);break;case"dashboard":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/dashboard/${r}`);break;default:console.error("Audit Page - Invalid entityType")}},handleCancelIconClick:()=>{e(
|
|
10
|
+
`;function Am(e,n){const{loggedInUser:o,companyId:i,isMonthEnd:a,allUsers:t,isAuditScoreCompleted:r}=n,d=ur(e).companies.find(h=>h.companyId===i),l=fn(e),f=i!=null?Uo(i,e,o):null;return{allUsers:t,isAuditScoreCompleted:r,reviewCompanyView:d,loggedInUser:o,auditRuleGroups:l.auditRuleGroups??[],auditReportGroupView:{auditReportGroups:f?.auditReportGroups??[],isControllerOrReviewer:f?.isControllerOrReviewer??!1},isMonthEnd:a,analytics:Ve}}function Im(e,n){const{companyId:o,companyView:i,closeAuditScoreDrawer:a}=n;return{handleFetchAuditReportGroupView:t=>{o!=null&&e(on(o,"generate",t))},handleGenerateAuditReport:t=>{o!=null&&(e(Mf(o)),t.forEach(r=>{e(on(o,"generate",r))}))},handleRuleClick:(t,r)=>{switch(t){case"reports":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/reports`);break;case"transactions":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/transactions/${r}`);break;case"dashboard":window.open(`/${i?.company.companyInfo.primaryEmailDomain}/dashboard/${r}`);break;default:console.error("Audit Page - Invalid entityType")}},handleCancelIconClick:()=>{e(Nt()),a?a():n.navigate("../")},handleReasonAuditRule:(t,r,s,d)=>{o!=null&&e(hd(o,r,t,s,d))}}}const Cm=Ge(Am,Im)(xp);function uh({closeAuditScoreDrawer:e}){const n=Fe(),o=Ze(),{companyId:i}=ot(),a=Je.getSignedInUser(),[t,r]=fe.useState(!1);if(a==null)throw Error("Can't access Audit Report page without signing in...");const s=Se(m=>ur(m)),d=Se(m=>sr(m).fetchState),l=Se(m=>ld(m.companyState,i??"")),f=Se(m=>fn(m)),h=Se(m=>Uo(i??"",m,a)),c=Se(m=>fd(m));fe.useEffect(()=>{s.fetchState==="Completed"&&f.fetchState==="Not-Started"&&o(Vo())},[s.fetchState,f.fetchState]),fe.useEffect(()=>{f.fetchState==="Completed"&&d==="Completed"&&f.auditRuleGroups.forEach(m=>{if(h.auditReportGroups.find(g=>g.auditReportGroupId===m.auditRuleGroupId)==null&&i!=null){const u=s.companies.find(_=>_.companyId===i)?.auditSummary?.auditReportLastGeneratedDate!=null?"view":"generate";o(on(i,u,m.auditRuleGroupId))}})},[f,s,h,d]),fe.useEffect(()=>{const m=h.auditReportGroups.filter(y=>y.fetchState==="Completed"||y.fetchState==="Error");t===!1&&m.length!==0&&m.length===f.auditRuleGroups.length&&(r(!0),o(Nt(!0)))},[JSON.stringify(h.auditReportGroups.filter(m=>m.fetchState==="Completed"||m.fetchState==="Error"))]),fe.useEffect(()=>{const m=h.auditReportGroups.filter(y=>y.fetchState==="In-Progress");t===!0&&m.length!==0&&m.length===f.auditRuleGroups.length&&r(!1)},[JSON.stringify(h.auditReportGroups.filter(m=>m.fetchState==="In-Progress"))]);const b=s.fetchState!=="Completed"||f.fetchState!=="Completed"||d!=="Completed"||f.auditRuleGroups.length===0;return b?U.jsx(Tm,{fetchState:b?"In-Progress":"Completed"}):U.jsx(U.Fragment,{children:U.jsx(Cm,{isAuditScoreCompleted:(s.fetchState==="Completed"||s.fetchState==="Error")&&t,allUsers:c,companyId:i,isMonthEnd:!!e,navigate:n,loggedInUser:a,companyView:l,closeAuditScoreDrawer:e})})}const Pm=tt.div`
|
|
12
11
|
display: flex;
|
|
13
12
|
width: 100%;
|
|
14
13
|
height: calc(100vh - 110px);
|
|
@@ -16,11 +15,11 @@ import{GX as jf,GY as Lf,jF as xt,et as gs,GZ as Lt,eC as rn,er as qf,G_ as Wt,e
|
|
|
16
15
|
justify-content: center;
|
|
17
16
|
align-items: center;
|
|
18
17
|
background-color: ${e=>e.theme.colors.grey4};
|
|
19
|
-
`;function km({closeCustomerRequestDrawer:e,addCustomerRequest:n,resetCustomerRequest:o}){const{companyId:i}=ot(),a=Je.getSignedInUser();if(a==null)throw Error("Can't access Customer Request page without signing in...");const t=Se(r=>Ff(r,i,a));return fe.useEffect(()=>{o()},[]),
|
|
18
|
+
`;function km({closeCustomerRequestDrawer:e,addCustomerRequest:n,resetCustomerRequest:o}){const{companyId:i}=ot(),a=Je.getSignedInUser();if(a==null)throw Error("Can't access Customer Request page without signing in...");const t=Se(r=>Ff(r,i,a));return fe.useEffect(()=>{o()},[]),U.jsx(U.Fragment,{children:t.fetchState==="In-Progress"||t.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?U.jsx(Pm,{children:U.jsx(pn,{size:"Large",start:!0})}):U.jsx(Ap,{onCloseClick:e,addCustomerRequest:n,snippets:t.companyMonthEndReportTemplatesData,bulletPoints:t.zeniRequestsData??[]})})}function jm({onClose:e}){const n=Ze(),{companyId:o}=ot(),[i,a]=fe.useState(!1),{useFeatureGate:t,useDynamicConfig:r}=Ot(),{isFeatureEnabled:s}=t(mn.enableZeniGPTFeatureForMonthEndEmail),{configValue:d}=r(Dt.monthEndPreviewEnablement);if(o==null)throw Error("Can't access Month End Email page without valid company details...");const[l,f]=fe.useState(!1),[h,c]=fe.useState(!1),[b,m]=fe.useState(!1),[y,g]=fe.useState([]),u=Je.getSignedInUser();if(u==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const _=Se(B=>sr(B)),w=Se(B=>ur(B)),v=Se(B=>fn(B)),E=Se(B=>Uo(o,B,u)),x=Se(B=>Ff(B,o,u)),O=fe.useCallback((B=!1,N=!1)=>{n(Mf(o)),f(!1),_.fetchState==="Completed"&&w.fetchState==="Completed"&&v.fetchState==="Completed"&&(v.auditRuleGroups.forEach(M=>{n(on(o,"generate",M.auditRuleGroupId))}),n(dd(B,o,void 0,void 0,N)),n(pd(o)))},[o,_.fetchState,w.fetchState,v.fetchState]);fe.useEffect(()=>{const B=E.auditReportGroups.filter(N=>N.fetchState==="Completed"||N.fetchState==="Error");l===!1&&B.length!==0&&B.length===v.auditRuleGroups.length&&(f(!0),n(Nt(!0,!0)))},[E.auditReportGroups]);const C=fe.useCallback(()=>{n(md({companyId:o})),f(!1),e()},[e]),D=fe.useCallback(()=>{O(!0,!0)},[O]),V=fe.useCallback(B=>{n(gd(o,B))},[]),$=fe.useCallback((B,N,M,G)=>{n(ys(B,o,N,!0,M,G))},[]),S=fe.useCallback((B,N,M,G)=>{n(ys(B,o,N,!1,M,G))},[]),R=fe.useCallback(()=>{a(!1)},[]),L=fe.useCallback(B=>{n(vd(B,o))},[]),q=fe.useCallback(B=>{n(yd({files:B}))},[]),z=fe.useCallback(B=>{n(_d(B))},[]),P=fe.useCallback(()=>{n(bd({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},[]),j=fe.useCallback(()=>{n(wd())},[]),k=fe.useCallback(()=>{c(!0)},[]),F=fe.useCallback(()=>{m(!0)},[]),W=fe.useCallback(B=>{g(B),m(!1)},[]),Z=fe.useCallback(()=>{g([])},[]);return fe.useEffect(()=>{x?.previewMonthEndReportStatus?.fetchState==="Completed"?a(!0):a(!1)},[x?.previewMonthEndReportStatus?.fetchState]),fe.useEffect(()=>{(x?.sendMonthEndReportStatus?.fetchState==="Completed"||x?.saveMonthEndReportStatus?.fetchState==="Completed")&&C()},[x?.sendMonthEndReportStatus?.fetchState,x?.saveMonthEndReportStatus?.fetchState,C]),fe.useEffect(()=>{n(Bf(!1)),n(At()),n(Vo())},[]),fe.useEffect(()=>{O()},[O]),U.jsxs(U.Fragment,{children:[U.jsx(pr,{isOpen:h||b,drawerLeftMargin:h?new at(0,0,0,0):b?new at(0,0,300,650):new at(0,0,300,650),onClose:()=>{h?(n(Nt(!0,!0)),c(!1)):b&&m(!1)},children:U.jsx(Lm,{onClick:B=>B.stopPropagation(),children:h?U.jsx(uh,{closeAuditScoreDrawer:()=>c(!1)}):b?U.jsx(km,{closeCustomerRequestDrawer:()=>m(!1),addCustomerRequest:W,resetCustomerRequest:Z}):null})}),U.jsx(Ip,{companyId:o,enableZeniGPTFeature:s,enableSendingMonthEndEmail:d.companiesByPassPreviewMonthEndReport!=null&&Array.isArray(d.companiesByPassPreviewMonthEndReport)?d.companiesByPassPreviewMonthEndReport.includes(o):!1,monthEndReportView:x,previewMode:i,customerRequestData:y,onNavigateBack:C,onRefresh:D,sendMonthEndReport:V,previewMonthEndReport:$,saveMonthEndReport:S,onEditClick:R,improveUsingZeniGPTClick:L,onRemoveFileAttachment:z,onUpdateFileAttachment:q,onOpenFileAttachmentSnackBar:P,onCloseFileAttachmentSnackBar:j,onClickAuditScore:k,onClickCustomerRequest:F,isAuditScoreLoadingCompleted:l&&(w.fetchState==="Completed"||w.fetchState==="Error")})]})}const Lm=tt(zt)`
|
|
20
19
|
display: flex;
|
|
21
20
|
min-height: 100%;
|
|
22
21
|
flex-direction: column;
|
|
23
|
-
`;function qm(){const e=Ze(),n=Fe(),{companyId:o,reportDate:i}=ot(),a=Se(d=>sr(d).fetchState);if(o==null||i==null)throw Error("Can't access historic Email without company id and reportDate...");const t=Se(d=>Rd(d,o,nn(i))),r=fe.useCallback(d=>{n(`../../management/month-end-report-history/company/${o}/${d.format(lr.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`),e(_s(o,d))},[o]),s=fe.useCallback(()=>{a==="Completed"&&t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&(e(Od(o)),e(_s(o,nn(i))))},[o,a,i,t.fetchState]);return fe.useEffect(()=>{e(Bf(!1))},[]),fe.useEffect(()=>{s()},[s]),B.jsx(Pp,{monthEndReportHistoricData:t,reportSentDate:nn(i),onDateChange:r,onNavigateBack:()=>n("../../"),onRefresh:s})}function Dm({isOpen:e,emailHistoryMode:n,onClose:o}){return n?B.jsx(pr,{drawerLeftMargin:new at(An[0],An[0],An[0]),isOpen:e,onClose:o,children:B.jsx(qm,{})}):B.jsx(kp,{isOpen:e,children:B.jsx(jm,{onClose:o})})}const{common:{strings:Mn},dateFormat:Nm}=lr.getLocalizedStrings();function Mm(e,n){const{loggedInUserRole:o,loggedInUser:i,navigate:a}=n;return{headerActions:{onTabChange:t=>{const r=It(t),s=Ft(t);Ve.trackCockpitTabClicked(s),a(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(t,r)=>{e(pt({filterText:r}))},onFiltersChange:(t,r)=>{e(pt({filters:r}))}}},managementPageActions:{onColumnSortConfigChanged:(t,r)=>{e(pt({sortKey:t,sortOrder:r}))},changeHandlers:(t,r)=>{const s=Um(r);Object.keys(s).length>0&&e($o(t,s))},onScroll:t=>{e(pt({scrollYOffset:t}))},onViewDetailsLinkClicked:t=>{a(`./parent/${t}`)},onCompanyNameClicked:t=>window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:t=>window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onMonthEndReportPageClick:t=>{a(`/management/month-end-report/company/${t.company.company.companyInfo.companyId}`)},onTaskIconClicked:t=>{const r=t.controllers.map(s=>s.user.email);t.company.company.companyInfo.tenantId!=null&&i.userEmail!=null&&Ve.trackCockpitTaskCardClicked({tenantName:t.company.company.companyInfo.name,tenantId:t.company.company.companyInfo.tenantId,user:{name:i.firstName!=null?i.firstName.concat(Mn.space,i.lastName??Mn.empty).trim():i.lastName??Mn.empty,email:i.userEmail,role:o?.userRoles??[]},controllerEmails:r}),window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/tasks`)},onFiltersChange:(t,r)=>{e(pt({filters:r}))},onCockpitReloadData:t=>{t==="management"&&e(hn())},showMonthEndReportHistoricData:(t,r)=>{a(`/management/month-end-report-history/company/${t}/${r.startOf("month").format(Nm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Fm(e,n){return{headerData:{selectedTabOption:wt("management")},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,managementView:n.managementView}}}const Bm=Ge(Fm,Mm)(th);function wr({isMonthEndEmailDrawerOpen:e=!1,emailHistoryMode:n=!1}){const o=Fe(),i=Ze(),a=Bt(),{useDynamicConfig:t}=Ot(),{configValue:r}=t(Nt.monthEndInsightsEnablement),{configValue:s}=t(Nt.expenseAutomationEnablement),d=Je.getSignedInUser();if(d==null)throw Error("Can't access Management page without signing in...");const l=Se(b=>sr(b)),f=Se(b=>Uf(b.userRoleState,d.userId)),h=Se(b=>b.companyViewState.zeniUsers.fetchState);fe.useEffect(()=>{l.fetchState==="Completed"?i(xt(!1)):(l.fetchState==="Not-Started"||l.fetchState==="Error")&&(i(hn()),(h==="Not-Started"||h==="Error")&&i(At()))},[l.fetchState]);const c=()=>{o(-1)};return B.jsxs(B.Fragment,{children:[e===!0?B.jsx(Dm,{isOpen:e===!0,emailHistoryMode:n===!0,onClose:c}):null,B.jsx(Bm,{initialOpenThreadRequest:a??void 0,loggedInUser:d,loggedInUserRole:f,managementView:l,navigate:o,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]})]})}const Um=e=>{const{status:n,group:o,taxStatus:i,reportSent:a,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:a?{lastReportSentDate:a?.date,lastReportSentBusinessDay:a?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function Vm(e,n){return{onGoBack:()=>{n.navigate(-1)},onGoHome:()=>{n.navigate("/")}}}const $m=Ge(null,Vm)(jp);function Xo(){const e=Fe();return B.jsx($m,{navigate:e})}const Gm=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"})),{dateFormat:zm}=lr.getLocalizedStrings();function Hm(e,n){const{navigate:o}=n;return{headerActions:{onNavigateBack:()=>{n.navigate("../")},filterActions:{onFilterTextChanged:(i,a)=>{i==="management"&&e(pt({filterText:a}))},onFiltersChange:(i,a)=>{i==="management"&&e(pt({filters:a}))}}},managementPageActions:{onColumnSortConfigChanged:(i,a)=>{e(pt({sortKey:i,sortOrder:a}))},changeHandlers:(i,a)=>{const t=Jm(a);Object.keys(t).length>0&&e($o(i,t))},onScroll:i=>{e(pt({scrollYOffset:i}))},onCompanyNameClicked:i=>window.open(`/${i.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:i=>window.open(`/${i.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(i,a)=>{i==="management"&&e(pt({filters:a}))},onMonthEndReportPageClick:i=>{o(`/management/month-end-report/company/${i.company.company.companyInfo.companyId}`)},onCockpitReloadData:i=>{i==="management"&&e(hn())},showMonthEndReportHistoricData:(i,a)=>{o(`/management/month-end-report-history/company/${i}/${a.startOf("month").format(zm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Zm(e,n){return{headerData:{selectedTabOption:wt("management"),showBackButton:!0},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,showDetailsPageLink:!1,managementView:{...n.managementView,uiState:{...n.managementView.uiState,scrollYOffset:0}}}}}const Ym=Ge(Zm,Hm)(th);function Wm(){const e=Fe(),[n,o]=fe.useState(!1),i=Ze(),{parentId:a}=ot(),{useDynamicConfig:t}=Ot(),{configValue:r}=t(Nt.monthEndInsightsEnablement),{configValue:s}=t(Nt.expenseAutomationEnablement),d=a!=null?Se(h=>Td(h,a)):void 0;fe.useEffect(()=>{n===!1&&a!=null&&(o(!0),i(xd(!1,a)))},[n]);const l=Je.getSignedInUser();if(l==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const f=Se(h=>Uf(h.userRoleState,l.userId));return a==null?B.jsx(Xo,{}):d!=null?B.jsx(Ym,{loggedInUser:l,loggedInUserRole:f,managementView:d,navigate:e,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]}):null}const Jm=e=>{const{status:n,group:o,taxStatus:i,reportSent:a,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:a?{lastReportSentDate:a?.date,lastReportSentBusinessDay:a?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function Km(){return B.jsxs(gt,{children:[B.jsx(Te,{path:"/",element:B.jsx(Pe,{element:B.jsx(wr,{})})}),B.jsx(Te,{path:"/parent/:parentId",element:B.jsx(Pe,{element:B.jsx(Wm,{})})}),B.jsx(Te,{path:"/month-end-report/company/:companyId",element:B.jsx(Pe,{element:B.jsx(wr,{isMonthEndEmailDrawerOpen:!0})})}),B.jsx(Te,{path:"/month-end-report-history/company/:companyId/:reportDate",element:B.jsx(Pe,{element:B.jsx(wr,{emailHistoryMode:!0,isMonthEndEmailDrawerOpen:!0})})}),B.jsx(Te,{path:"/*",element:B.jsx(Pe,{element:B.jsx(wr,{})})})]})}var Fn={exports:{}},Ls;function Xm(){return Ls||(Ls=1,function(e){(function(n){function o(a){return typeof a=="function"?a:typeof et=="function"?function(r){return new et(r,"base64").toString("binary")}:typeof n.base64js=="object"?function(r){var s=n.base64js.b64ToByteArray(r);return Array.prototype.map.call(s,function(d){return String.fromCharCode(d)}).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")}}var i=o(n.atob);n.atob=i,e&&e.exports&&(e.exports=i)})(window)}(Fn)),Fn.exports}var Er={exports:{}},Bn={exports:{}},Un={},qs;function fh(){if(qs)return Un;qs=1;function e(_){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},e(_)}function n(_,w,v){return Object.defineProperty(_,"prototype",{writable:!1}),_}function o(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function i(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),w&&a(_,w)}function a(_,w){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,x){return E.__proto__=x,E},a(_,w)}function t(_){var w=d();return function(){var E=l(_),x;if(w){var O=l(this).constructor;x=Reflect.construct(E,arguments,O)}else x=E.apply(this,arguments);return r(this,x)}}function r(_,w){if(w&&(e(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(_)}function s(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(_){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},l(_)}var f={},h,c;function b(_,w,v){v||(v=Error);function E(O,C,N){return typeof w=="string"?w:w(O,C,N)}var x=function(O){i(N,O);var C=t(N);function N(V,$,S){var R;return o(this,N),R=C.call(this,E(V,$,S)),R.code=_,R}return n(N)}(v);f[_]=x}function m(_,w){if(Array.isArray(_)){var v=_.length;return _=_.map(function(E){return String(E)}),v>2?"one of ".concat(w," ").concat(_.slice(0,v-1).join(", "),", or ")+_[v-1]:v===2?"one of ".concat(w," ").concat(_[0]," or ").concat(_[1]):"of ".concat(w," ").concat(_[0])}else return"of ".concat(w," ").concat(String(_))}function y(_,w,v){return _.substr(0,w.length)===w}function g(_,w,v){return(v===void 0||v>_.length)&&(v=_.length),_.substring(v-w.length,v)===w}function u(_,w,v){return typeof v!="number"&&(v=0),v+w.length>_.length?!1:_.indexOf(w,v)!==-1}return b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",function(_,w,v){h===void 0&&(h=or()),h(typeof _=="string","'name' must be a string");var E;typeof w=="string"&&y(w,"not ")?(E="must not be",w=w.replace(/^not /,"")):E="must be";var x;if(g(_," argument"))x="The ".concat(_," ").concat(E," ").concat(m(w,"type"));else{var O=u(_,".")?"property":"argument";x='The "'.concat(_,'" ').concat(O," ").concat(E," ").concat(m(w,"type"))}return x+=". Received type ".concat(e(v)),x},TypeError),b("ERR_INVALID_ARG_VALUE",function(_,w){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=He());var E=c.inspect(w);return E.length>128&&(E="".concat(E.slice(0,128),"...")),"The argument '".concat(_,"' ").concat(v,". Received ").concat(E)},TypeError),b("ERR_INVALID_RETURN_VALUE",function(_,w,v){var E;return v&&v.constructor&&v.constructor.name?E="instance of ".concat(v.constructor.name):E="type ".concat(e(v)),"Expected ".concat(_,' to be returned from the "').concat(w,'"')+" function but got ".concat(E,".")},TypeError),b("ERR_MISSING_ARGS",function(){for(var _=arguments.length,w=new Array(_),v=0;v<_;v++)w[v]=arguments[v];h===void 0&&(h=or()),h(w.length>0,"At least one arg needs to be specified");var E="The ",x=w.length;switch(w=w.map(function(O){return'"'.concat(O,'"')}),x){case 1:E+="".concat(w[0]," argument");break;case 2:E+="".concat(w[0]," and ").concat(w[1]," arguments");break;default:E+=w.slice(0,x-1).join(", "),E+=", and ".concat(w[x-1]," arguments");break}return"".concat(E," must be specified")},TypeError),Un.codes=f,Un}var Vn,Ds;function Qm(){if(Ds)return Vn;Ds=1;function e(k,F){var W=Object.keys(k);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(k);F&&(Z=Z.filter(function(U){return Object.getOwnPropertyDescriptor(k,U).enumerable})),W.push.apply(W,Z)}return W}function n(k){for(var F=1;F<arguments.length;F++){var W=arguments[F]!=null?arguments[F]:{};F%2?e(Object(W),!0).forEach(function(Z){o(k,Z,W[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(W)):e(Object(W)).forEach(function(Z){Object.defineProperty(k,Z,Object.getOwnPropertyDescriptor(W,Z))})}return k}function o(k,F,W){return F=r(F),F in k?Object.defineProperty(k,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):k[F]=W,k}function i(k,F){if(!(k instanceof F))throw new TypeError("Cannot call a class as a function")}function a(k,F){for(var W=0;W<F.length;W++){var Z=F[W];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(k,r(Z.key),Z)}}function t(k,F,W){return F&&a(k.prototype,F),Object.defineProperty(k,"prototype",{writable:!1}),k}function r(k){var F=s(k,"string");return _(F)==="symbol"?F:String(F)}function s(k,F){if(_(k)!=="object"||k===null)return k;var W=k[Symbol.toPrimitive];if(W!==void 0){var Z=W.call(k,F);if(_(Z)!=="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(k)}function d(k,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(F&&F.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),F&&g(k,F)}function l(k){var F=m();return function(){var Z=u(k),U;if(F){var D=u(this).constructor;U=Reflect.construct(Z,arguments,D)}else U=Z.apply(this,arguments);return f(this,U)}}function f(k,F){if(F&&(_(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(k)}function h(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function c(k){var F=typeof Map=="function"?new Map:void 0;return c=function(Z){if(Z===null||!y(Z))return Z;if(typeof Z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(Z))return F.get(Z);F.set(Z,U)}function U(){return b(Z,arguments,u(this).constructor)}return U.prototype=Object.create(Z.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),g(U,Z)},c(k)}function b(k,F,W){return m()?b=Reflect.construct.bind():b=function(U,D,M){var G=[null];G.push.apply(G,D);var X=Function.bind.apply(U,G),K=new X;return M&&g(K,M.prototype),K},b.apply(null,arguments)}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return Function.toString.call(k).indexOf("[native code]")!==-1}function g(k,F){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,U){return Z.__proto__=U,Z},g(k,F)}function u(k){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},u(k)}function _(k){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},_(k)}var w=He(),v=w.inspect,E=fh(),x=E.codes.ERR_INVALID_ARG_TYPE;function O(k,F,W){return(W===void 0||W>k.length)&&(W=k.length),k.substring(W-F.length,W)===F}function C(k,F){if(F=Math.floor(F),k.length==0||F==0)return"";var W=k.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)k+=k,F--;return k+=k.substring(0,W-k.length),k}var N="",V="",$="",S="",R={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},L=10;function q(k){var F=Object.keys(k),W=Object.create(Object.getPrototypeOf(k));return F.forEach(function(Z){W[Z]=k[Z]}),Object.defineProperty(W,"message",{value:k.message}),W}function z(k){return v(k,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function P(k,F,W){var Z="",U="",D=0,M="",G=!1,X=z(k),K=X.split(`
|
|
22
|
+
`;function qm(){const e=Ze(),n=Fe(),{companyId:o,reportDate:i}=ot(),a=Se(d=>sr(d).fetchState);if(o==null||i==null)throw Error("Can't access historic Email without company id and reportDate...");const t=Se(d=>Ed(d,o,nn(i))),r=fe.useCallback(d=>{n(`../../management/month-end-report-history/company/${o}/${d.format(lr.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`),e(_s(o,d))},[o]),s=fe.useCallback(()=>{a==="Completed"&&t.fetchState!=="In-Progress"&&t.fetchState!=="Completed"&&(e(Sd(o)),e(_s(o,nn(i))))},[o,a,i,t.fetchState]);return fe.useEffect(()=>{e(Bf(!1))},[]),fe.useEffect(()=>{s()},[s]),U.jsx(Cp,{monthEndReportHistoricData:t,reportSentDate:nn(i),onDateChange:r,onNavigateBack:()=>n("../../"),onRefresh:s})}function Nm({isOpen:e,emailHistoryMode:n,onClose:o}){return n?U.jsx(pr,{drawerLeftMargin:new at(An[0],An[0],An[0]),isOpen:e,onClose:o,children:U.jsx(qm,{})}):U.jsx(Pp,{isOpen:e,children:U.jsx(jm,{onClose:o})})}const{common:{strings:Mn},dateFormat:Dm}=lr.getLocalizedStrings();function Mm(e,n){const{loggedInUserRole:o,loggedInUser:i,navigate:a}=n;return{headerActions:{onTabChange:t=>{const r=It(t),s=Ft(t);Ve.trackCockpitTabClicked(s),a(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(t,r)=>{e(pt({filterText:r}))},onFiltersChange:(t,r)=>{e(pt({filters:r}))}}},managementPageActions:{onColumnSortConfigChanged:(t,r)=>{e(pt({sortKey:t,sortOrder:r}))},changeHandlers:(t,r)=>{const s=Um(r);Object.keys(s).length>0&&e($o(t,s))},onScroll:t=>{e(pt({scrollYOffset:t}))},onViewDetailsLinkClicked:t=>{a(`./parent/${t}`)},onCompanyNameClicked:t=>window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:t=>window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onMonthEndReportPageClick:t=>{a(`/management/month-end-report/company/${t.company.company.companyInfo.companyId}`)},onTaskIconClicked:t=>{const r=t.controllers.map(s=>s.user.email);t.company.company.companyInfo.tenantId!=null&&i.userEmail!=null&&Ve.trackCockpitTaskCardClicked({tenantName:t.company.company.companyInfo.name,tenantId:t.company.company.companyInfo.tenantId,user:{name:i.firstName!=null?i.firstName.concat(Mn.space,i.lastName??Mn.empty).trim():i.lastName??Mn.empty,email:i.userEmail,role:o?.userRoles??[]},controllerEmails:r}),window.open(`/${t.company.company.companyInfo.primaryEmailDomain}/tasks`)},onFiltersChange:(t,r)=>{e(pt({filters:r}))},onCockpitReloadData:t=>{t==="management"&&e(hn())},showMonthEndReportHistoricData:(t,r)=>{a(`/management/month-end-report-history/company/${t}/${r.startOf("month").format(Dm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Fm(e,n){return{headerData:{selectedTabOption:wt("management")},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,managementView:n.managementView}}}const Bm=Ge(Fm,Mm)(eh);function wr({isMonthEndEmailDrawerOpen:e=!1,emailHistoryMode:n=!1}){const o=Fe(),i=Ze(),a=Bt(),{useDynamicConfig:t}=Ot(),{configValue:r}=t(Dt.monthEndInsightsEnablement),{configValue:s}=t(Dt.expenseAutomationEnablement),d=Je.getSignedInUser();if(d==null)throw Error("Can't access Management page without signing in...");const l=Se(b=>sr(b)),f=Se(b=>Uf(b.userRoleState,d.userId)),h=Se(b=>b.companyViewState.zeniUsers.fetchState);fe.useEffect(()=>{l.fetchState==="Completed"?i(xt(!1)):(l.fetchState==="Not-Started"||l.fetchState==="Error")&&(i(hn()),(h==="Not-Started"||h==="Error")&&i(At()))},[l.fetchState]);const c=()=>{o(-1)};return U.jsxs(U.Fragment,{children:[e===!0?U.jsx(Nm,{isOpen:e===!0,emailHistoryMode:n===!0,onClose:c}):null,U.jsx(Bm,{initialOpenThreadRequest:a??void 0,loggedInUser:d,loggedInUserRole:f,managementView:l,navigate:o,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]})]})}const Um=e=>{const{status:n,group:o,taxStatus:i,reportSent:a,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:a?{lastReportSentDate:a?.date,lastReportSentBusinessDay:a?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function Vm(e,n){return{onGoBack:()=>{n.navigate(-1)},onGoHome:()=>{n.navigate("/")}}}const $m=Ge(null,Vm)(kp);function Xo(){const e=Fe();return U.jsx($m,{navigate:e})}const Gm=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"})),{dateFormat:zm}=lr.getLocalizedStrings();function Hm(e,n){const{navigate:o}=n;return{headerActions:{onNavigateBack:()=>{n.navigate("../")},filterActions:{onFilterTextChanged:(i,a)=>{i==="management"&&e(pt({filterText:a}))},onFiltersChange:(i,a)=>{i==="management"&&e(pt({filters:a}))}}},managementPageActions:{onColumnSortConfigChanged:(i,a)=>{e(pt({sortKey:i,sortOrder:a}))},changeHandlers:(i,a)=>{const t=Jm(a);Object.keys(t).length>0&&e($o(i,t))},onScroll:i=>{e(pt({scrollYOffset:i}))},onCompanyNameClicked:i=>window.open(`/${i.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:i=>window.open(`/${i.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(i,a)=>{i==="management"&&e(pt({filters:a}))},onMonthEndReportPageClick:i=>{o(`/management/month-end-report/company/${i.company.company.companyInfo.companyId}`)},onCockpitReloadData:i=>{i==="management"&&e(hn())},showMonthEndReportHistoricData:(i,a)=>{o(`/management/month-end-report-history/company/${i}/${a.startOf("month").format(zm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Zm(e,n){return{headerData:{selectedTabOption:wt("management"),showBackButton:!0},managementPageData:{loggedInUser:n.loggedInUser,loggedInUserRole:n.loggedInUserRole,showDetailsPageLink:!1,managementView:{...n.managementView,uiState:{...n.managementView.uiState,scrollYOffset:0}}}}}const Ym=Ge(Zm,Hm)(eh);function Wm(){const e=Fe(),[n,o]=fe.useState(!1),i=Ze(),{parentId:a}=ot(),{useDynamicConfig:t}=Ot(),{configValue:r}=t(Dt.monthEndInsightsEnablement),{configValue:s}=t(Dt.expenseAutomationEnablement),d=a!=null?Se(h=>Rd(h,a)):void 0;fe.useEffect(()=>{n===!1&&a!=null&&(o(!0),i(Od(!1,a)))},[n]);const l=Je.getSignedInUser();if(l==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const f=Se(h=>Uf(h.userRoleState,l.userId));return a==null?U.jsx(Xo,{}):d!=null?U.jsx(Ym,{loggedInUser:l,loggedInUserRole:f,managementView:d,navigate:e,companiesExcludedFromMonthEndReport:r.companiesExcludedFromMonthEndReport!=null?r.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:s.expenseAutomationEnabledCompanies!=null&&Array.isArray(s.expenseAutomationEnabledCompanies)?s.expenseAutomationEnabledCompanies:[]}):null}const Jm=e=>{const{status:n,group:o,taxStatus:i,reportSent:a,users:t,customerSatisfaction:r}=e;return n?{statusCode:n?.selectedValue?.code}:o?{companyGroupId:o?.selectedValue?.id}:i?{taxStatusCode:i?.selectedValue?.code}:a?{lastReportSentDate:a?.date,lastReportSentBusinessDay:a?.businessDay}:t?{users:t}:r?{customerSatisfaction:r}:{}};function Km(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(wr,{})})}),U.jsx(Te,{path:"/parent/:parentId",element:U.jsx(Pe,{element:U.jsx(Wm,{})})}),U.jsx(Te,{path:"/month-end-report/company/:companyId",element:U.jsx(Pe,{element:U.jsx(wr,{isMonthEndEmailDrawerOpen:!0})})}),U.jsx(Te,{path:"/month-end-report-history/company/:companyId/:reportDate",element:U.jsx(Pe,{element:U.jsx(wr,{emailHistoryMode:!0,isMonthEndEmailDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(wr,{})})})]})}var Fn={exports:{}},Ls;function Xm(){return Ls||(Ls=1,function(e){(function(n){function o(a){return typeof a=="function"?a:typeof et=="function"?function(r){return new et(r,"base64").toString("binary")}:typeof n.base64js=="object"?function(r){var s=n.base64js.b64ToByteArray(r);return Array.prototype.map.call(s,function(d){return String.fromCharCode(d)}).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")}}var i=o(n.atob);n.atob=i,e&&e.exports&&(e.exports=i)})(window)}(Fn)),Fn.exports}var Er={exports:{}},Bn={exports:{}},Un={},qs;function ch(){if(qs)return Un;qs=1;function e(_){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},e(_)}function n(_,w,v){return Object.defineProperty(_,"prototype",{writable:!1}),_}function o(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function i(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),w&&a(_,w)}function a(_,w){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,x){return E.__proto__=x,E},a(_,w)}function t(_){var w=d();return function(){var E=l(_),x;if(w){var O=l(this).constructor;x=Reflect.construct(E,arguments,O)}else x=E.apply(this,arguments);return r(this,x)}}function r(_,w){if(w&&(e(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(_)}function s(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(_){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(v){return v.__proto__||Object.getPrototypeOf(v)},l(_)}var f={},h,c;function b(_,w,v){v||(v=Error);function E(O,C,D){return typeof w=="string"?w:w(O,C,D)}var x=function(O){i(D,O);var C=t(D);function D(V,$,S){var R;return o(this,D),R=C.call(this,E(V,$,S)),R.code=_,R}return n(D)}(v);f[_]=x}function m(_,w){if(Array.isArray(_)){var v=_.length;return _=_.map(function(E){return String(E)}),v>2?"one of ".concat(w," ").concat(_.slice(0,v-1).join(", "),", or ")+_[v-1]:v===2?"one of ".concat(w," ").concat(_[0]," or ").concat(_[1]):"of ".concat(w," ").concat(_[0])}else return"of ".concat(w," ").concat(String(_))}function y(_,w,v){return _.substr(0,w.length)===w}function g(_,w,v){return(v===void 0||v>_.length)&&(v=_.length),_.substring(v-w.length,v)===w}function u(_,w,v){return typeof v!="number"&&(v=0),v+w.length>_.length?!1:_.indexOf(w,v)!==-1}return b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",function(_,w,v){h===void 0&&(h=or()),h(typeof _=="string","'name' must be a string");var E;typeof w=="string"&&y(w,"not ")?(E="must not be",w=w.replace(/^not /,"")):E="must be";var x;if(g(_," argument"))x="The ".concat(_," ").concat(E," ").concat(m(w,"type"));else{var O=u(_,".")?"property":"argument";x='The "'.concat(_,'" ').concat(O," ").concat(E," ").concat(m(w,"type"))}return x+=". Received type ".concat(e(v)),x},TypeError),b("ERR_INVALID_ARG_VALUE",function(_,w){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=He());var E=c.inspect(w);return E.length>128&&(E="".concat(E.slice(0,128),"...")),"The argument '".concat(_,"' ").concat(v,". Received ").concat(E)},TypeError),b("ERR_INVALID_RETURN_VALUE",function(_,w,v){var E;return v&&v.constructor&&v.constructor.name?E="instance of ".concat(v.constructor.name):E="type ".concat(e(v)),"Expected ".concat(_,' to be returned from the "').concat(w,'"')+" function but got ".concat(E,".")},TypeError),b("ERR_MISSING_ARGS",function(){for(var _=arguments.length,w=new Array(_),v=0;v<_;v++)w[v]=arguments[v];h===void 0&&(h=or()),h(w.length>0,"At least one arg needs to be specified");var E="The ",x=w.length;switch(w=w.map(function(O){return'"'.concat(O,'"')}),x){case 1:E+="".concat(w[0]," argument");break;case 2:E+="".concat(w[0]," and ").concat(w[1]," arguments");break;default:E+=w.slice(0,x-1).join(", "),E+=", and ".concat(w[x-1]," arguments");break}return"".concat(E," must be specified")},TypeError),Un.codes=f,Un}var Vn,Ns;function Qm(){if(Ns)return Vn;Ns=1;function e(k,F){var W=Object.keys(k);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(k);F&&(Z=Z.filter(function(B){return Object.getOwnPropertyDescriptor(k,B).enumerable})),W.push.apply(W,Z)}return W}function n(k){for(var F=1;F<arguments.length;F++){var W=arguments[F]!=null?arguments[F]:{};F%2?e(Object(W),!0).forEach(function(Z){o(k,Z,W[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(W)):e(Object(W)).forEach(function(Z){Object.defineProperty(k,Z,Object.getOwnPropertyDescriptor(W,Z))})}return k}function o(k,F,W){return F=r(F),F in k?Object.defineProperty(k,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):k[F]=W,k}function i(k,F){if(!(k instanceof F))throw new TypeError("Cannot call a class as a function")}function a(k,F){for(var W=0;W<F.length;W++){var Z=F[W];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(k,r(Z.key),Z)}}function t(k,F,W){return F&&a(k.prototype,F),Object.defineProperty(k,"prototype",{writable:!1}),k}function r(k){var F=s(k,"string");return _(F)==="symbol"?F:String(F)}function s(k,F){if(_(k)!=="object"||k===null)return k;var W=k[Symbol.toPrimitive];if(W!==void 0){var Z=W.call(k,F);if(_(Z)!=="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(k)}function d(k,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(F&&F.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),F&&g(k,F)}function l(k){var F=m();return function(){var Z=u(k),B;if(F){var N=u(this).constructor;B=Reflect.construct(Z,arguments,N)}else B=Z.apply(this,arguments);return f(this,B)}}function f(k,F){if(F&&(_(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(k)}function h(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function c(k){var F=typeof Map=="function"?new Map:void 0;return c=function(Z){if(Z===null||!y(Z))return Z;if(typeof Z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(Z))return F.get(Z);F.set(Z,B)}function B(){return b(Z,arguments,u(this).constructor)}return B.prototype=Object.create(Z.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),g(B,Z)},c(k)}function b(k,F,W){return m()?b=Reflect.construct.bind():b=function(B,N,M){var G=[null];G.push.apply(G,N);var X=Function.bind.apply(B,G),K=new X;return M&&g(K,M.prototype),K},b.apply(null,arguments)}function m(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(k){return Function.toString.call(k).indexOf("[native code]")!==-1}function g(k,F){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,B){return Z.__proto__=B,Z},g(k,F)}function u(k){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},u(k)}function _(k){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},_(k)}var w=He(),v=w.inspect,E=ch(),x=E.codes.ERR_INVALID_ARG_TYPE;function O(k,F,W){return(W===void 0||W>k.length)&&(W=k.length),k.substring(W-F.length,W)===F}function C(k,F){if(F=Math.floor(F),k.length==0||F==0)return"";var W=k.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)k+=k,F--;return k+=k.substring(0,W-k.length),k}var D="",V="",$="",S="",R={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},L=10;function q(k){var F=Object.keys(k),W=Object.create(Object.getPrototypeOf(k));return F.forEach(function(Z){W[Z]=k[Z]}),Object.defineProperty(W,"message",{value:k.message}),W}function z(k){return v(k,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function P(k,F,W){var Z="",B="",N=0,M="",G=!1,X=z(k),K=X.split(`
|
|
24
23
|
`),ae=z(F).split(`
|
|
25
24
|
`),ue=0,ve="";if(W==="strictEqual"&&_(k)==="object"&&_(F)==="object"&&k!==null&&F!==null&&(W="strictEqualObject"),K.length===1&&ae.length===1&&K[0]!==ae[0]){var me=K[0].length+ae[0].length;if(me<=L){if((_(k)!=="object"||k===null)&&(_(F)!=="object"||F===null)&&(k!==0||F!==0))return"".concat(R[W],`
|
|
26
25
|
|
|
@@ -28,33 +27,33 @@ import{GX as jf,GY as Lf,jF as xt,et as gs,GZ as Lt,eC as rn,er as qf,G_ as Wt,e
|
|
|
28
27
|
`)}else if(W!=="strictEqualObject"){var we=ye.stderr&&ye.stderr.isTTY?ye.stderr.columns:80;if(me<we){for(;K[0][ue]===ae[0][ue];)ue++;ue>2&&(ve=`
|
|
29
28
|
`.concat(C(" ",ue),"^"),ue=0)}}}for(var Ce=K[K.length-1],ke=ae[ae.length-1];Ce===ke&&(ue++<2?M=`
|
|
30
29
|
`.concat(Ce).concat(M):Z=Ce,K.pop(),ae.pop(),!(K.length===0||ae.length===0));)Ce=K[K.length-1],ke=ae[ae.length-1];var je=Math.max(K.length,ae.length);if(je===0){var Ae=X.split(`
|
|
31
|
-
`);if(Ae.length>30)for(Ae[26]="".concat(
|
|
30
|
+
`);if(Ae.length>30)for(Ae[26]="".concat(D,"...").concat(S);Ae.length>27;)Ae.pop();return"".concat(R.notIdentical,`
|
|
32
31
|
|
|
33
32
|
`).concat(Ae.join(`
|
|
34
33
|
`),`
|
|
35
34
|
`)}ue>3&&(M=`
|
|
36
|
-
`.concat(
|
|
35
|
+
`.concat(D,"...").concat(S).concat(M),G=!0),Z!==""&&(M=`
|
|
37
36
|
`.concat(Z).concat(M),Z="");var Ee=0,$e=R[W]+`
|
|
38
|
-
`.concat(V,"+ actual").concat(S," ").concat($,"- expected").concat(S),st=" ".concat(
|
|
39
|
-
`.concat(
|
|
40
|
-
`.concat(ae[ue-2]),Ee++),
|
|
41
|
-
`.concat(ae[ue-1]),Ee++),
|
|
42
|
-
`.concat($,"-").concat(S," ").concat(ae[ue]),Ee++;else if(ae.length<ue+1)qe>1&&ue>2&&(qe>4?(
|
|
43
|
-
`.concat(
|
|
44
|
-
`.concat(K[ue-2]),Ee++),
|
|
45
|
-
`.concat(K[ue-1]),Ee++),
|
|
46
|
-
`.concat(V,"+").concat(S," ").concat(K[ue]),Ee++;else{var
|
|
47
|
-
`.concat(
|
|
48
|
-
`.concat(K[ue-2]),Ee++),
|
|
49
|
-
`.concat(K[ue-1]),Ee++),
|
|
37
|
+
`.concat(V,"+ actual").concat(S," ").concat($,"- expected").concat(S),st=" ".concat(D,"...").concat(S," Lines skipped");for(ue=0;ue<je;ue++){var qe=ue-N;if(K.length<ue+1)qe>1&&ue>2&&(qe>4?(B+=`
|
|
38
|
+
`.concat(D,"...").concat(S),G=!0):qe>3&&(B+=`
|
|
39
|
+
`.concat(ae[ue-2]),Ee++),B+=`
|
|
40
|
+
`.concat(ae[ue-1]),Ee++),N=ue,Z+=`
|
|
41
|
+
`.concat($,"-").concat(S," ").concat(ae[ue]),Ee++;else if(ae.length<ue+1)qe>1&&ue>2&&(qe>4?(B+=`
|
|
42
|
+
`.concat(D,"...").concat(S),G=!0):qe>3&&(B+=`
|
|
43
|
+
`.concat(K[ue-2]),Ee++),B+=`
|
|
44
|
+
`.concat(K[ue-1]),Ee++),N=ue,B+=`
|
|
45
|
+
`.concat(V,"+").concat(S," ").concat(K[ue]),Ee++;else{var De=ae[ue],Ye=K[ue],J=Ye!==De&&(!O(Ye,",")||Ye.slice(0,-1)!==De);J&&O(De,",")&&De.slice(0,-1)===Ye&&(J=!1,Ye+=","),J?(qe>1&&ue>2&&(qe>4?(B+=`
|
|
46
|
+
`.concat(D,"...").concat(S),G=!0):qe>3&&(B+=`
|
|
47
|
+
`.concat(K[ue-2]),Ee++),B+=`
|
|
48
|
+
`.concat(K[ue-1]),Ee++),N=ue,B+=`
|
|
50
49
|
`.concat(V,"+").concat(S," ").concat(Ye),Z+=`
|
|
51
|
-
`.concat($,"-").concat(S," ").concat(
|
|
50
|
+
`.concat($,"-").concat(S," ").concat(De),Ee+=2):(B+=Z,Z="",(qe===1||ue===0)&&(B+=`
|
|
52
51
|
`.concat(Ye),Ee++))}if(Ee>20&&ue<je-2)return"".concat($e).concat(st,`
|
|
53
|
-
`).concat(
|
|
54
|
-
`).concat(
|
|
55
|
-
`)+"".concat(
|
|
56
|
-
`).concat(
|
|
57
|
-
`);if(G==="notStrictEqual"&&_(K)==="object"&&K!==null&&(ve=R.notStrictEqualObject),me.length>30)for(me[26]="".concat(
|
|
52
|
+
`).concat(B,`
|
|
53
|
+
`).concat(D,"...").concat(S).concat(Z,`
|
|
54
|
+
`)+"".concat(D,"...").concat(S)}return"".concat($e).concat(G?st:"",`
|
|
55
|
+
`).concat(B).concat(Z).concat(M).concat(ve)}var j=function(k,F){d(Z,k);var W=l(Z);function Z(B){var N;if(i(this,Z),_(B)!=="object"||B===null)throw new x("options","Object",B);var M=B.message,G=B.operator,X=B.stackStartFn,K=B.actual,ae=B.expected,ue=Error.stackTraceLimit;if(Error.stackTraceLimit=0,M!=null)N=W.call(this,String(M));else if(ye.stderr&&ye.stderr.isTTY&&(ye.stderr&&ye.stderr.getColorDepth&&ye.stderr.getColorDepth()!==1?(D="\x1B[34m",V="\x1B[32m",S="\x1B[39m",$="\x1B[31m"):(D="",V="",S="",$="")),_(K)==="object"&&K!==null&&_(ae)==="object"&&ae!==null&&"stack"in K&&K instanceof Error&&"stack"in ae&&ae instanceof Error&&(K=q(K),ae=q(ae)),G==="deepStrictEqual"||G==="strictEqual")N=W.call(this,P(K,ae,G));else if(G==="notDeepStrictEqual"||G==="notStrictEqual"){var ve=R[G],me=z(K).split(`
|
|
56
|
+
`);if(G==="notStrictEqual"&&_(K)==="object"&&K!==null&&(ve=R.notStrictEqualObject),me.length>30)for(me[26]="".concat(D,"...").concat(S);me.length>27;)me.pop();me.length===1?N=W.call(this,"".concat(ve," ").concat(me[0])):N=W.call(this,"".concat(ve,`
|
|
58
57
|
|
|
59
58
|
`).concat(me.join(`
|
|
60
59
|
`),`
|
|
@@ -66,61 +65,61 @@ import{GX as jf,GY as Lf,jF as xt,et as gs,GZ as Lt,eC as rn,er as qf,G_ as Wt,e
|
|
|
66
65
|
|
|
67
66
|
should equal
|
|
68
67
|
|
|
69
|
-
`):Ce=" ".concat(G," ").concat(Ce)),
|
|
70
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(J,Q){if(J){if(typeof J=="string")return i(J,Q);var ce=Object.prototype.toString.call(J).slice(8,-1);if(ce==="Object"&&J.constructor&&(ce=J.constructor.name),ce==="Map"||ce==="Set")return Array.from(J);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return i(J,Q)}}function i(J,Q){(Q==null||Q>J.length)&&(Q=J.length);for(var ce=0,ge=new Array(Q);ce<Q;ce++)ge[ce]=J[ce];return ge}function a(J,Q){var ce=J==null?null:typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(ce!=null){var ge,he,Re,Oe,I=[],ne=!0,se=!1;try{if(Re=(ce=ce.call(J)).next,Q!==0)for(;!(ne=(ge=Re.call(ce)).done)&&(I.push(ge.value),I.length!==Q);ne=!0);}catch(le){se=!0,he=le}finally{try{if(!ne&&ce.return!=null&&(Oe=ce.return(),Object(Oe)!==Oe))return}finally{if(se)throw he}}return I}}function t(J){if(Array.isArray(J))return J}function r(J){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},r(J)}var s=/a/g.flags!==void 0,d=function(Q){var ce=[];return Q.forEach(function(ge){return ce.push(ge)}),ce},l=function(Q){var ce=[];return Q.forEach(function(ge,he){return ce.push([he,ge])}),ce},f=Object.is?Object.is:ag(),h=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:sg();function b(J){return J.call.bind(J)}var m=b(Object.prototype.hasOwnProperty),y=b(Object.prototype.propertyIsEnumerable),g=b(Object.prototype.toString),u=He().types,_=u.isAnyArrayBuffer,w=u.isArrayBufferView,v=u.isDate,E=u.isMap,x=u.isRegExp,O=u.isSet,C=u.isNativeError,N=u.isBoxedPrimitive,V=u.isNumberObject,$=u.isStringObject,S=u.isBooleanObject,R=u.isBigIntObject,L=u.isSymbolObject,q=u.isFloat32Array,z=u.isFloat64Array;function P(J){if(J.length===0||J.length>10)return!0;for(var Q=0;Q<J.length;Q++){var ce=J.charCodeAt(Q);if(ce<48||ce>57)return!0}return J.length===10&&J>=Math.pow(2,32)}function j(J){return Object.keys(J).filter(P).concat(h(J).filter(Object.prototype.propertyIsEnumerable.bind(J)))}function k(J,Q){if(J===Q)return 0;for(var ce=J.length,ge=Q.length,he=0,Re=Math.min(ce,ge);he<Re;++he)if(J[he]!==Q[he]){ce=J[he],ge=Q[he];break}return ce<ge?-1:ge<ce?1:0}var F=!0,W=!1,Z=0,U=1,D=2,M=3;function G(J,Q){return s?J.source===Q.source&&J.flags===Q.flags:RegExp.prototype.toString.call(J)===RegExp.prototype.toString.call(Q)}function X(J,Q){if(J.byteLength!==Q.byteLength)return!1;for(var ce=0;ce<J.byteLength;ce++)if(J[ce]!==Q[ce])return!1;return!0}function K(J,Q){return J.byteLength!==Q.byteLength?!1:k(new Uint8Array(J.buffer,J.byteOffset,J.byteLength),new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength))===0}function ae(J,Q){return J.byteLength===Q.byteLength&&k(new Uint8Array(J),new Uint8Array(Q))===0}function ue(J,Q){return V(J)?V(Q)&&f(Number.prototype.valueOf.call(J),Number.prototype.valueOf.call(Q)):$(J)?$(Q)&&String.prototype.valueOf.call(J)===String.prototype.valueOf.call(Q):S(J)?S(Q)&&Boolean.prototype.valueOf.call(J)===Boolean.prototype.valueOf.call(Q):R(J)?R(Q)&&BigInt.prototype.valueOf.call(J)===BigInt.prototype.valueOf.call(Q):L(Q)&&Symbol.prototype.valueOf.call(J)===Symbol.prototype.valueOf.call(Q)}function ve(J,Q,ce,ge){if(J===Q)return J!==0?!0:ce?f(J,Q):!0;if(ce){if(r(J)!=="object")return typeof J=="number"&&c(J)&&c(Q);if(r(Q)!=="object"||J===null||Q===null||Object.getPrototypeOf(J)!==Object.getPrototypeOf(Q))return!1}else{if(J===null||r(J)!=="object")return Q===null||r(Q)!=="object"?J==Q:!1;if(Q===null||r(Q)!=="object")return!1}var he=g(J),Re=g(Q);if(he!==Re)return!1;if(Array.isArray(J)){if(J.length!==Q.length)return!1;var Oe=j(J),I=j(Q);return Oe.length!==I.length?!1:we(J,Q,ce,ge,U,Oe)}if(he==="[object Object]"&&(!E(J)&&E(Q)||!O(J)&&O(Q)))return!1;if(v(J)){if(!v(Q)||Date.prototype.getTime.call(J)!==Date.prototype.getTime.call(Q))return!1}else if(x(J)){if(!x(Q)||!G(J,Q))return!1}else if(C(J)||J instanceof Error){if(J.message!==Q.message||J.name!==Q.name)return!1}else if(w(J)){if(!ce&&(q(J)||z(J))){if(!X(J,Q))return!1}else if(!K(J,Q))return!1;var ne=j(J),se=j(Q);return ne.length!==se.length?!1:we(J,Q,ce,ge,Z,ne)}else{if(O(J))return!O(Q)||J.size!==Q.size?!1:we(J,Q,ce,ge,D);if(E(J))return!E(Q)||J.size!==Q.size?!1:we(J,Q,ce,ge,M);if(_(J)){if(!ae(J,Q))return!1}else if(N(J)&&!ue(J,Q))return!1}return we(J,Q,ce,ge,Z)}function me(J,Q){return Q.filter(function(ce){return y(J,ce)})}function we(J,Q,ce,ge,he,Re){if(arguments.length===5){Re=Object.keys(J);var Oe=Object.keys(Q);if(Re.length!==Oe.length)return!1}for(var I=0;I<Re.length;I++)if(!m(Q,Re[I]))return!1;if(ce&&arguments.length===5){var ne=h(J);if(ne.length!==0){var se=0;for(I=0;I<ne.length;I++){var le=ne[I];if(y(J,le)){if(!y(Q,le))return!1;Re.push(le),se++}else if(y(Q,le))return!1}var Y=h(Q);if(ne.length!==Y.length&&me(Q,Y).length!==se)return!1}else{var ie=h(Q);if(ie.length!==0&&me(Q,ie).length!==0)return!1}}if(Re.length===0&&(he===Z||he===U&&J.length===0||J.size===0))return!0;if(ge===void 0)ge={val1:new Map,val2:new Map,position:0};else{var T=ge.val1.get(J);if(T!==void 0){var oe=ge.val2.get(Q);if(oe!==void 0)return T===oe}ge.position++}ge.val1.set(J,ge.position),ge.val2.set(Q,ge.position);var be=qe(J,Q,ce,Re,ge,he);return ge.val1.delete(J),ge.val2.delete(Q),be}function Ce(J,Q,ce,ge){for(var he=d(J),Re=0;Re<he.length;Re++){var Oe=he[Re];if(ve(Q,Oe,ce,ge))return J.delete(Oe),!0}return!1}function ke(J){switch(r(J)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":J=+J;case"number":if(c(J))return!1}return!0}function je(J,Q,ce){var ge=ke(ce);return ge??(Q.has(ge)&&!J.has(ge))}function Ae(J,Q,ce,ge,he){var Re=ke(ce);if(Re!=null)return Re;var Oe=Q.get(Re);return Oe===void 0&&!Q.has(Re)||!ve(ge,Oe,!1,he)?!1:!J.has(Re)&&ve(ge,Oe,!1,he)}function Ee(J,Q,ce,ge){for(var he=null,Re=d(J),Oe=0;Oe<Re.length;Oe++){var I=Re[Oe];if(r(I)==="object"&&I!==null)he===null&&(he=new Set),he.add(I);else if(!Q.has(I)){if(ce||!je(J,Q,I))return!1;he===null&&(he=new Set),he.add(I)}}if(he!==null){for(var ne=d(Q),se=0;se<ne.length;se++){var le=ne[se];if(r(le)==="object"&&le!==null){if(!Ce(he,le,ce,ge))return!1}else if(!ce&&!J.has(le)&&!Ce(he,le,ce,ge))return!1}return he.size===0}return!0}function $e(J,Q,ce,ge,he,Re){for(var Oe=d(J),I=0;I<Oe.length;I++){var ne=Oe[I];if(ve(ce,ne,he,Re)&&ve(ge,Q.get(ne),he,Re))return J.delete(ne),!0}return!1}function st(J,Q,ce,ge){for(var he=null,Re=l(J),Oe=0;Oe<Re.length;Oe++){var I=e(Re[Oe],2),ne=I[0],se=I[1];if(r(ne)==="object"&&ne!==null)he===null&&(he=new Set),he.add(ne);else{var le=Q.get(ne);if(le===void 0&&!Q.has(ne)||!ve(se,le,ce,ge)){if(ce||!Ae(J,Q,ne,se,ge))return!1;he===null&&(he=new Set),he.add(ne)}}}if(he!==null){for(var Y=l(Q),ie=0;ie<Y.length;ie++){var T=e(Y[ie],2),oe=T[0],be=T[1];if(r(oe)==="object"&&oe!==null){if(!$e(he,J,oe,be,ce,ge))return!1}else if(!ce&&(!J.has(oe)||!ve(J.get(oe),be,!1,ge))&&!$e(he,J,oe,be,!1,ge))return!1}return he.size===0}return!0}function qe(J,Q,ce,ge,he,Re){var Oe=0;if(Re===D){if(!Ee(J,Q,ce,he))return!1}else if(Re===M){if(!st(J,Q,ce,he))return!1}else if(Re===U)for(;Oe<J.length;Oe++)if(m(J,Oe)){if(!m(Q,Oe)||!ve(J[Oe],Q[Oe],ce,he))return!1}else{if(m(Q,Oe))return!1;for(var I=Object.keys(J);Oe<I.length;Oe++){var ne=I[Oe];if(!m(Q,ne)||!ve(J[ne],Q[ne],ce,he))return!1}return I.length===Object.keys(Q).length}for(Oe=0;Oe<ge.length;Oe++){var se=ge[Oe];if(!ve(J[se],Q[se],ce,he))return!1}return!0}function Ne(J,Q){return ve(J,Q,W)}function Ye(J,Q){return ve(J,Q,F)}return ii={isDeepEqual:Ne,isDeepStrictEqual:Ye},ii}var Qs;function or(){if(Qs)return Bn.exports;Qs=1;function e(D){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},e(D)}function n(D,M,G){return Object.defineProperty(D,"prototype",{writable:!1}),D}function o(D,M){if(!(D instanceof M))throw new TypeError("Cannot call a class as a function")}var i=fh(),a=i.codes,t=a.ERR_AMBIGUOUS_ARGUMENT,r=a.ERR_INVALID_ARG_TYPE,s=a.ERR_INVALID_ARG_VALUE,d=a.ERR_INVALID_RETURN_VALUE,l=a.ERR_MISSING_ARGS,f=Qm(),h=He(),c=h.inspect,b=He().types,m=b.isPromise,y=b.isRegExp,g=rg()(),u=Qo()(),_=ng()("RegExp.prototype.test"),w,v;function E(){var D=ug();w=D.isDeepEqual,v=D.isDeepStrictEqual}var x=!1,O=Bn.exports=S,C={};function N(D){throw D.message instanceof Error?D.message:new f(D)}function V(D,M,G,X,K){var ae=arguments.length,ue;if(ae===0)ue="Failed";else if(ae===1)G=D,D=void 0;else{if(x===!1){x=!0;var ve=ye.emitWarning?ye.emitWarning:console.warn.bind(console);ve("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}ae===2&&(X="!=")}if(G instanceof Error)throw G;var me={actual:D,expected:M,operator:X===void 0?"fail":X,stackStartFn:K||V};G!==void 0&&(me.message=G);var we=new f(me);throw ue&&(we.message=ue,we.generatedMessage=!0),we}O.fail=V,O.AssertionError=f;function $(D,M,G,X){if(!G){var K=!1;if(M===0)K=!0,X="No value argument passed to `assert.ok()`";else if(X instanceof Error)throw X;var ae=new f({actual:G,expected:!0,message:X,operator:"==",stackStartFn:D});throw ae.generatedMessage=K,ae}}function S(){for(var D=arguments.length,M=new Array(D),G=0;G<D;G++)M[G]=arguments[G];$.apply(void 0,[S,M.length].concat(M))}O.ok=S,O.equal=function D(M,G,X){if(arguments.length<2)throw new l("actual","expected");M!=G&&N({actual:M,expected:G,message:X,operator:"==",stackStartFn:D})},O.notEqual=function D(M,G,X){if(arguments.length<2)throw new l("actual","expected");M==G&&N({actual:M,expected:G,message:X,operator:"!=",stackStartFn:D})},O.deepEqual=function D(M,G,X){if(arguments.length<2)throw new l("actual","expected");w===void 0&&E(),w(M,G)||N({actual:M,expected:G,message:X,operator:"deepEqual",stackStartFn:D})},O.notDeepEqual=function D(M,G,X){if(arguments.length<2)throw new l("actual","expected");w===void 0&&E(),w(M,G)&&N({actual:M,expected:G,message:X,operator:"notDeepEqual",stackStartFn:D})},O.deepStrictEqual=function D(M,G,X){if(arguments.length<2)throw new l("actual","expected");w===void 0&&E(),v(M,G)||N({actual:M,expected:G,message:X,operator:"deepStrictEqual",stackStartFn:D})},O.notDeepStrictEqual=R;function R(D,M,G){if(arguments.length<2)throw new l("actual","expected");w===void 0&&E(),v(D,M)&&N({actual:D,expected:M,message:G,operator:"notDeepStrictEqual",stackStartFn:R})}O.strictEqual=function D(M,G,X){if(arguments.length<2)throw new l("actual","expected");u(M,G)||N({actual:M,expected:G,message:X,operator:"strictEqual",stackStartFn:D})},O.notStrictEqual=function D(M,G,X){if(arguments.length<2)throw new l("actual","expected");u(M,G)&&N({actual:M,expected:G,message:X,operator:"notStrictEqual",stackStartFn:D})};var L=n(function D(M,G,X){var K=this;o(this,D),G.forEach(function(ae){ae in M&&(X!==void 0&&typeof X[ae]=="string"&&y(M[ae])&&_(M[ae],X[ae])?K[ae]=X[ae]:K[ae]=M[ae])})});function q(D,M,G,X,K,ae){if(!(G in D)||!v(D[G],M[G])){if(!X){var ue=new L(D,K),ve=new L(M,K,D),me=new f({actual:ue,expected:ve,operator:"deepStrictEqual",stackStartFn:ae});throw me.actual=D,me.expected=M,me.operator=ae.name,me}N({actual:D,expected:M,message:X,operator:ae.name,stackStartFn:ae})}}function z(D,M,G,X){if(typeof M!="function"){if(y(M))return _(M,D);if(arguments.length===2)throw new r("expected",["Function","RegExp"],M);if(e(D)!=="object"||D===null){var K=new f({actual:D,expected:M,message:G,operator:"deepStrictEqual",stackStartFn:X});throw K.operator=X.name,K}var ae=Object.keys(M);if(M instanceof Error)ae.push("name","message");else if(ae.length===0)throw new s("error",M,"may not be an empty object");return w===void 0&&E(),ae.forEach(function(ue){typeof D[ue]=="string"&&y(M[ue])&&_(M[ue],D[ue])||q(D,M,ue,G,ae,X)}),!0}return M.prototype!==void 0&&D instanceof M?!0:Error.isPrototypeOf(M)?!1:M.call({},D)===!0}function P(D){if(typeof D!="function")throw new r("fn","Function",D);try{D()}catch(M){return M}return C}function j(D){return m(D)||D!==null&&e(D)==="object"&&typeof D.then=="function"&&typeof D.catch=="function"}function k(D){return Promise.resolve().then(function(){var M;if(typeof D=="function"){if(M=D(),!j(M))throw new d("instance of Promise","promiseFn",M)}else if(j(D))M=D;else throw new r("promiseFn",["Function","Promise"],D);return Promise.resolve().then(function(){return M}).then(function(){return C}).catch(function(G){return G})})}function F(D,M,G,X){if(typeof G=="string"){if(arguments.length===4)throw new r("error",["Object","Error","Function","RegExp"],G);if(e(M)==="object"&&M!==null){if(M.message===G)throw new t("error/message",'The error message "'.concat(M.message,'" is identical to the message.'))}else if(M===G)throw new t("error/message",'The error "'.concat(M,'" is identical to the message.'));X=G,G=void 0}else if(G!=null&&e(G)!=="object"&&typeof G!="function")throw new r("error",["Object","Error","Function","RegExp"],G);if(M===C){var K="";G&&G.name&&(K+=" (".concat(G.name,")")),K+=X?": ".concat(X):".";var ae=D.name==="rejects"?"rejection":"exception";N({actual:void 0,expected:G,operator:D.name,message:"Missing expected ".concat(ae).concat(K),stackStartFn:D})}if(G&&!z(M,G,X,D))throw M}function W(D,M,G,X){if(M!==C){if(typeof G=="string"&&(X=G,G=void 0),!G||z(M,G)){var K=X?": ".concat(X):".",ae=D.name==="doesNotReject"?"rejection":"exception";N({actual:M,expected:G,operator:D.name,message:"Got unwanted ".concat(ae).concat(K,`
|
|
71
|
-
`)+'Actual message: "'.concat(M&&M.message,'"'),stackStartFn:
|
|
68
|
+
`):Ce=" ".concat(G," ").concat(Ce)),N=W.call(this,"".concat(we).concat(Ce))}return Error.stackTraceLimit=ue,N.generatedMessage=!M,Object.defineProperty(h(N),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),N.code="ERR_ASSERTION",N.actual=K,N.expected=ae,N.operator=G,Error.captureStackTrace&&Error.captureStackTrace(h(N),X),N.stack,N.name="AssertionError",f(N)}return t(Z,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:F,value:function(N,M){return v(this,n(n({},M),{},{customInspect:!1,depth:0}))}}]),Z}(c(Error),v.custom);return Vn=j,Vn}var $n,Ds;function lh(){if(Ds)return $n;Ds=1;var e=Object.prototype.toString;return $n=function(o){var i=e.call(o),a=i==="[object Arguments]";return a||(a=i!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&e.call(o.callee)==="[object Function]"),a},$n}var Gn,Ms;function eg(){if(Ms)return Gn;Ms=1;var e;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=lh(),a=Object.prototype.propertyIsEnumerable,t=!a.call({toString:null},"toString"),r=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(c){var b=c.constructor;return b&&b.prototype===c},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>"u")return!1;for(var c in window)try{if(!l["$"+c]&&n.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{d(window[c])}catch{return!0}}catch{return!0}return!1}(),h=function(c){if(typeof window>"u"||!f)return d(c);try{return d(c)}catch{return!1}};e=function(b){var m=b!==null&&typeof b=="object",y=o.call(b)==="[object Function]",g=i(b),u=m&&o.call(b)==="[object String]",_=[];if(!m&&!y&&!g)throw new TypeError("Object.keys called on a non-object");var w=r&&y;if(u&&b.length>0&&!n.call(b,0))for(var v=0;v<b.length;++v)_.push(String(v));if(g&&b.length>0)for(var E=0;E<b.length;++E)_.push(String(E));else for(var x in b)!(w&&x==="prototype")&&n.call(b,x)&&_.push(String(x));if(t)for(var O=h(b),C=0;C<s.length;++C)!(O&&s[C]==="constructor")&&n.call(b,s[C])&&_.push(s[C]);return _}}return Gn=e,Gn}var zn,Fs;function fh(){if(Fs)return zn;Fs=1;var e=Array.prototype.slice,n=lh(),o=Object.keys,i=o?function(r){return o(r)}:eg(),a=Object.keys;return i.shim=function(){if(Object.keys){var r=function(){var s=Object.keys(arguments);return s&&s.length===arguments.length}(1,2);r||(Object.keys=function(d){return n(d)?a(e.call(d)):a(d)})}else Object.keys=i;return Object.keys||i},zn=i,zn}var Hn,Bs;function tg(){if(Bs)return Hn;Bs=1;var e=fh(),n=Jp()(),o=Kp(),i=Xp(),a=o("Array.prototype.push"),t=o("Object.prototype.propertyIsEnumerable"),r=n?i.getOwnPropertySymbols:null;return Hn=function(d,l){if(d==null)throw new TypeError("target must be an object");var f=i(d);if(arguments.length===1)return f;for(var h=1;h<arguments.length;++h){var c=i(arguments[h]),b=e(c),m=n&&(i.getOwnPropertySymbols||r);if(m)for(var y=m(c),g=0;g<y.length;++g){var u=y[g];t(c,u)&&a(b,u)}for(var _=0;_<b.length;++_){var w=b[_];if(t(c,w)){var v=c[w];f[w]=v}}}return f},Hn}var Zn,Us;function rg(){if(Us)return Zn;Us=1;var e=tg(),n=function(){if(!Object.assign)return!1;for(var i="abcdefghijklmnopqrst",a=i.split(""),t={},r=0;r<a.length;++r)t[a[r]]=a[r];var s=Object.assign({},t),d="";for(var l in s)d+=l;return i!==d},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var i=Object.preventExtensions({1:2});try{Object.assign(i,"xy")}catch{return i[1]==="y"}return!1};return Zn=function(){return!Object.assign||n()||o()?e:Object.assign},Zn}var Yn,Vs;function hh(){if(Vs)return Yn;Vs=1;var e=function(n){return n!==n};return Yn=function(o,i){return o===0&&i===0?1/o===1/i:!!(o===i||e(o)&&e(i))},Yn}var Wn,$s;function Qo(){if($s)return Wn;$s=1;var e=hh();return Wn=function(){return typeof Object.is=="function"?Object.is:e},Wn}var Jn,Gs;function ng(){if(Gs)return Jn;Gs=1;var e=Qp(),n=Jo(),o=n(e("String.prototype.indexOf"));return Jn=function(a,t){var r=e(a,!!t);return typeof r=="function"&&o(a,".prototype.")>-1?n(r):r},Jn}var Kn,zs;function yn(){if(zs)return Kn;zs=1;var e=fh(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",o=Object.prototype.toString,i=Array.prototype.concat,a=tm(),t=function(l){return typeof l=="function"&&o.call(l)==="[object Function]"},r=em()(),s=function(l,f,h,c){if(f in l){if(c===!0){if(l[f]===h)return}else if(!t(c)||!c())return}r?a(l,f,h,!0):a(l,f,h)},d=function(l,f){var h=arguments.length>2?arguments[2]:{},c=e(f);n&&(c=i.call(c,Object.getOwnPropertySymbols(f)));for(var b=0;b<c.length;b+=1)s(l,c[b],f[c[b]],h[c[b]])};return d.supportsDescriptors=!!r,Kn=d,Kn}var Xn,Hs;function ig(){if(Hs)return Xn;Hs=1;var e=Qo(),n=yn();return Xn=function(){var i=e();return n(Object,{is:i},{is:function(){return Object.is!==i}}),i},Xn}var Qn,Zs;function ag(){if(Zs)return Qn;Zs=1;var e=yn(),n=Jo(),o=hh(),i=Qo(),a=ig(),t=n(i(),Object);return e(t,{getPolyfill:i,implementation:o,shim:a}),Qn=t,Qn}var ei,Ys;function dh(){return Ys||(Ys=1,ei=function(n){return n!==n}),ei}var ti,Ws;function ph(){if(Ws)return ti;Ws=1;var e=dh();return ti=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},ti}var ri,Js;function og(){if(Js)return ri;Js=1;var e=yn(),n=ph();return ri=function(){var i=n();return e(Number,{isNaN:i},{isNaN:function(){return Number.isNaN!==i}}),i},ri}var ni,Ks;function sg(){if(Ks)return ni;Ks=1;var e=Jo(),n=yn(),o=dh(),i=ph(),a=og(),t=e(i(),Number);return n(t,{getPolyfill:i,implementation:o,shim:a}),ni=t,ni}var ii,Xs;function ug(){if(Xs)return ii;Xs=1;function e(J,Q){return t(J)||a(J,Q)||o(J,Q)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(J,Q){if(J){if(typeof J=="string")return i(J,Q);var ce=Object.prototype.toString.call(J).slice(8,-1);if(ce==="Object"&&J.constructor&&(ce=J.constructor.name),ce==="Map"||ce==="Set")return Array.from(J);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return i(J,Q)}}function i(J,Q){(Q==null||Q>J.length)&&(Q=J.length);for(var ce=0,ge=new Array(Q);ce<Q;ce++)ge[ce]=J[ce];return ge}function a(J,Q){var ce=J==null?null:typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(ce!=null){var ge,he,Re,Oe,I=[],ne=!0,se=!1;try{if(Re=(ce=ce.call(J)).next,Q!==0)for(;!(ne=(ge=Re.call(ce)).done)&&(I.push(ge.value),I.length!==Q);ne=!0);}catch(le){se=!0,he=le}finally{try{if(!ne&&ce.return!=null&&(Oe=ce.return(),Object(Oe)!==Oe))return}finally{if(se)throw he}}return I}}function t(J){if(Array.isArray(J))return J}function r(J){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},r(J)}var s=/a/g.flags!==void 0,d=function(Q){var ce=[];return Q.forEach(function(ge){return ce.push(ge)}),ce},l=function(Q){var ce=[];return Q.forEach(function(ge,he){return ce.push([he,ge])}),ce},f=Object.is?Object.is:ag(),h=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:sg();function b(J){return J.call.bind(J)}var m=b(Object.prototype.hasOwnProperty),y=b(Object.prototype.propertyIsEnumerable),g=b(Object.prototype.toString),u=He().types,_=u.isAnyArrayBuffer,w=u.isArrayBufferView,v=u.isDate,E=u.isMap,x=u.isRegExp,O=u.isSet,C=u.isNativeError,D=u.isBoxedPrimitive,V=u.isNumberObject,$=u.isStringObject,S=u.isBooleanObject,R=u.isBigIntObject,L=u.isSymbolObject,q=u.isFloat32Array,z=u.isFloat64Array;function P(J){if(J.length===0||J.length>10)return!0;for(var Q=0;Q<J.length;Q++){var ce=J.charCodeAt(Q);if(ce<48||ce>57)return!0}return J.length===10&&J>=Math.pow(2,32)}function j(J){return Object.keys(J).filter(P).concat(h(J).filter(Object.prototype.propertyIsEnumerable.bind(J)))}function k(J,Q){if(J===Q)return 0;for(var ce=J.length,ge=Q.length,he=0,Re=Math.min(ce,ge);he<Re;++he)if(J[he]!==Q[he]){ce=J[he],ge=Q[he];break}return ce<ge?-1:ge<ce?1:0}var F=!0,W=!1,Z=0,B=1,N=2,M=3;function G(J,Q){return s?J.source===Q.source&&J.flags===Q.flags:RegExp.prototype.toString.call(J)===RegExp.prototype.toString.call(Q)}function X(J,Q){if(J.byteLength!==Q.byteLength)return!1;for(var ce=0;ce<J.byteLength;ce++)if(J[ce]!==Q[ce])return!1;return!0}function K(J,Q){return J.byteLength!==Q.byteLength?!1:k(new Uint8Array(J.buffer,J.byteOffset,J.byteLength),new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength))===0}function ae(J,Q){return J.byteLength===Q.byteLength&&k(new Uint8Array(J),new Uint8Array(Q))===0}function ue(J,Q){return V(J)?V(Q)&&f(Number.prototype.valueOf.call(J),Number.prototype.valueOf.call(Q)):$(J)?$(Q)&&String.prototype.valueOf.call(J)===String.prototype.valueOf.call(Q):S(J)?S(Q)&&Boolean.prototype.valueOf.call(J)===Boolean.prototype.valueOf.call(Q):R(J)?R(Q)&&BigInt.prototype.valueOf.call(J)===BigInt.prototype.valueOf.call(Q):L(Q)&&Symbol.prototype.valueOf.call(J)===Symbol.prototype.valueOf.call(Q)}function ve(J,Q,ce,ge){if(J===Q)return J!==0?!0:ce?f(J,Q):!0;if(ce){if(r(J)!=="object")return typeof J=="number"&&c(J)&&c(Q);if(r(Q)!=="object"||J===null||Q===null||Object.getPrototypeOf(J)!==Object.getPrototypeOf(Q))return!1}else{if(J===null||r(J)!=="object")return Q===null||r(Q)!=="object"?J==Q:!1;if(Q===null||r(Q)!=="object")return!1}var he=g(J),Re=g(Q);if(he!==Re)return!1;if(Array.isArray(J)){if(J.length!==Q.length)return!1;var Oe=j(J),I=j(Q);return Oe.length!==I.length?!1:we(J,Q,ce,ge,B,Oe)}if(he==="[object Object]"&&(!E(J)&&E(Q)||!O(J)&&O(Q)))return!1;if(v(J)){if(!v(Q)||Date.prototype.getTime.call(J)!==Date.prototype.getTime.call(Q))return!1}else if(x(J)){if(!x(Q)||!G(J,Q))return!1}else if(C(J)||J instanceof Error){if(J.message!==Q.message||J.name!==Q.name)return!1}else if(w(J)){if(!ce&&(q(J)||z(J))){if(!X(J,Q))return!1}else if(!K(J,Q))return!1;var ne=j(J),se=j(Q);return ne.length!==se.length?!1:we(J,Q,ce,ge,Z,ne)}else{if(O(J))return!O(Q)||J.size!==Q.size?!1:we(J,Q,ce,ge,N);if(E(J))return!E(Q)||J.size!==Q.size?!1:we(J,Q,ce,ge,M);if(_(J)){if(!ae(J,Q))return!1}else if(D(J)&&!ue(J,Q))return!1}return we(J,Q,ce,ge,Z)}function me(J,Q){return Q.filter(function(ce){return y(J,ce)})}function we(J,Q,ce,ge,he,Re){if(arguments.length===5){Re=Object.keys(J);var Oe=Object.keys(Q);if(Re.length!==Oe.length)return!1}for(var I=0;I<Re.length;I++)if(!m(Q,Re[I]))return!1;if(ce&&arguments.length===5){var ne=h(J);if(ne.length!==0){var se=0;for(I=0;I<ne.length;I++){var le=ne[I];if(y(J,le)){if(!y(Q,le))return!1;Re.push(le),se++}else if(y(Q,le))return!1}var Y=h(Q);if(ne.length!==Y.length&&me(Q,Y).length!==se)return!1}else{var ie=h(Q);if(ie.length!==0&&me(Q,ie).length!==0)return!1}}if(Re.length===0&&(he===Z||he===B&&J.length===0||J.size===0))return!0;if(ge===void 0)ge={val1:new Map,val2:new Map,position:0};else{var T=ge.val1.get(J);if(T!==void 0){var oe=ge.val2.get(Q);if(oe!==void 0)return T===oe}ge.position++}ge.val1.set(J,ge.position),ge.val2.set(Q,ge.position);var be=qe(J,Q,ce,Re,ge,he);return ge.val1.delete(J),ge.val2.delete(Q),be}function Ce(J,Q,ce,ge){for(var he=d(J),Re=0;Re<he.length;Re++){var Oe=he[Re];if(ve(Q,Oe,ce,ge))return J.delete(Oe),!0}return!1}function ke(J){switch(r(J)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":J=+J;case"number":if(c(J))return!1}return!0}function je(J,Q,ce){var ge=ke(ce);return ge??(Q.has(ge)&&!J.has(ge))}function Ae(J,Q,ce,ge,he){var Re=ke(ce);if(Re!=null)return Re;var Oe=Q.get(Re);return Oe===void 0&&!Q.has(Re)||!ve(ge,Oe,!1,he)?!1:!J.has(Re)&&ve(ge,Oe,!1,he)}function Ee(J,Q,ce,ge){for(var he=null,Re=d(J),Oe=0;Oe<Re.length;Oe++){var I=Re[Oe];if(r(I)==="object"&&I!==null)he===null&&(he=new Set),he.add(I);else if(!Q.has(I)){if(ce||!je(J,Q,I))return!1;he===null&&(he=new Set),he.add(I)}}if(he!==null){for(var ne=d(Q),se=0;se<ne.length;se++){var le=ne[se];if(r(le)==="object"&&le!==null){if(!Ce(he,le,ce,ge))return!1}else if(!ce&&!J.has(le)&&!Ce(he,le,ce,ge))return!1}return he.size===0}return!0}function $e(J,Q,ce,ge,he,Re){for(var Oe=d(J),I=0;I<Oe.length;I++){var ne=Oe[I];if(ve(ce,ne,he,Re)&&ve(ge,Q.get(ne),he,Re))return J.delete(ne),!0}return!1}function st(J,Q,ce,ge){for(var he=null,Re=l(J),Oe=0;Oe<Re.length;Oe++){var I=e(Re[Oe],2),ne=I[0],se=I[1];if(r(ne)==="object"&&ne!==null)he===null&&(he=new Set),he.add(ne);else{var le=Q.get(ne);if(le===void 0&&!Q.has(ne)||!ve(se,le,ce,ge)){if(ce||!Ae(J,Q,ne,se,ge))return!1;he===null&&(he=new Set),he.add(ne)}}}if(he!==null){for(var Y=l(Q),ie=0;ie<Y.length;ie++){var T=e(Y[ie],2),oe=T[0],be=T[1];if(r(oe)==="object"&&oe!==null){if(!$e(he,J,oe,be,ce,ge))return!1}else if(!ce&&(!J.has(oe)||!ve(J.get(oe),be,!1,ge))&&!$e(he,J,oe,be,!1,ge))return!1}return he.size===0}return!0}function qe(J,Q,ce,ge,he,Re){var Oe=0;if(Re===N){if(!Ee(J,Q,ce,he))return!1}else if(Re===M){if(!st(J,Q,ce,he))return!1}else if(Re===B)for(;Oe<J.length;Oe++)if(m(J,Oe)){if(!m(Q,Oe)||!ve(J[Oe],Q[Oe],ce,he))return!1}else{if(m(Q,Oe))return!1;for(var I=Object.keys(J);Oe<I.length;Oe++){var ne=I[Oe];if(!m(Q,ne)||!ve(J[ne],Q[ne],ce,he))return!1}return I.length===Object.keys(Q).length}for(Oe=0;Oe<ge.length;Oe++){var se=ge[Oe];if(!ve(J[se],Q[se],ce,he))return!1}return!0}function De(J,Q){return ve(J,Q,W)}function Ye(J,Q){return ve(J,Q,F)}return ii={isDeepEqual:De,isDeepStrictEqual:Ye},ii}var Qs;function or(){if(Qs)return Bn.exports;Qs=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},e(N)}function n(N,M,G){return Object.defineProperty(N,"prototype",{writable:!1}),N}function o(N,M){if(!(N instanceof M))throw new TypeError("Cannot call a class as a function")}var i=ch(),a=i.codes,t=a.ERR_AMBIGUOUS_ARGUMENT,r=a.ERR_INVALID_ARG_TYPE,s=a.ERR_INVALID_ARG_VALUE,d=a.ERR_INVALID_RETURN_VALUE,l=a.ERR_MISSING_ARGS,f=Qm(),h=He(),c=h.inspect,b=He().types,m=b.isPromise,y=b.isRegExp,g=rg()(),u=Qo()(),_=ng()("RegExp.prototype.test"),w,v;function E(){var N=ug();w=N.isDeepEqual,v=N.isDeepStrictEqual}var x=!1,O=Bn.exports=S,C={};function D(N){throw N.message instanceof Error?N.message:new f(N)}function V(N,M,G,X,K){var ae=arguments.length,ue;if(ae===0)ue="Failed";else if(ae===1)G=N,N=void 0;else{if(x===!1){x=!0;var ve=ye.emitWarning?ye.emitWarning:console.warn.bind(console);ve("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}ae===2&&(X="!=")}if(G instanceof Error)throw G;var me={actual:N,expected:M,operator:X===void 0?"fail":X,stackStartFn:K||V};G!==void 0&&(me.message=G);var we=new f(me);throw ue&&(we.message=ue,we.generatedMessage=!0),we}O.fail=V,O.AssertionError=f;function $(N,M,G,X){if(!G){var K=!1;if(M===0)K=!0,X="No value argument passed to `assert.ok()`";else if(X instanceof Error)throw X;var ae=new f({actual:G,expected:!0,message:X,operator:"==",stackStartFn:N});throw ae.generatedMessage=K,ae}}function S(){for(var N=arguments.length,M=new Array(N),G=0;G<N;G++)M[G]=arguments[G];$.apply(void 0,[S,M.length].concat(M))}O.ok=S,O.equal=function N(M,G,X){if(arguments.length<2)throw new l("actual","expected");M!=G&&D({actual:M,expected:G,message:X,operator:"==",stackStartFn:N})},O.notEqual=function N(M,G,X){if(arguments.length<2)throw new l("actual","expected");M==G&&D({actual:M,expected:G,message:X,operator:"!=",stackStartFn:N})},O.deepEqual=function N(M,G,X){if(arguments.length<2)throw new l("actual","expected");w===void 0&&E(),w(M,G)||D({actual:M,expected:G,message:X,operator:"deepEqual",stackStartFn:N})},O.notDeepEqual=function N(M,G,X){if(arguments.length<2)throw new l("actual","expected");w===void 0&&E(),w(M,G)&&D({actual:M,expected:G,message:X,operator:"notDeepEqual",stackStartFn:N})},O.deepStrictEqual=function N(M,G,X){if(arguments.length<2)throw new l("actual","expected");w===void 0&&E(),v(M,G)||D({actual:M,expected:G,message:X,operator:"deepStrictEqual",stackStartFn:N})},O.notDeepStrictEqual=R;function R(N,M,G){if(arguments.length<2)throw new l("actual","expected");w===void 0&&E(),v(N,M)&&D({actual:N,expected:M,message:G,operator:"notDeepStrictEqual",stackStartFn:R})}O.strictEqual=function N(M,G,X){if(arguments.length<2)throw new l("actual","expected");u(M,G)||D({actual:M,expected:G,message:X,operator:"strictEqual",stackStartFn:N})},O.notStrictEqual=function N(M,G,X){if(arguments.length<2)throw new l("actual","expected");u(M,G)&&D({actual:M,expected:G,message:X,operator:"notStrictEqual",stackStartFn:N})};var L=n(function N(M,G,X){var K=this;o(this,N),G.forEach(function(ae){ae in M&&(X!==void 0&&typeof X[ae]=="string"&&y(M[ae])&&_(M[ae],X[ae])?K[ae]=X[ae]:K[ae]=M[ae])})});function q(N,M,G,X,K,ae){if(!(G in N)||!v(N[G],M[G])){if(!X){var ue=new L(N,K),ve=new L(M,K,N),me=new f({actual:ue,expected:ve,operator:"deepStrictEqual",stackStartFn:ae});throw me.actual=N,me.expected=M,me.operator=ae.name,me}D({actual:N,expected:M,message:X,operator:ae.name,stackStartFn:ae})}}function z(N,M,G,X){if(typeof M!="function"){if(y(M))return _(M,N);if(arguments.length===2)throw new r("expected",["Function","RegExp"],M);if(e(N)!=="object"||N===null){var K=new f({actual:N,expected:M,message:G,operator:"deepStrictEqual",stackStartFn:X});throw K.operator=X.name,K}var ae=Object.keys(M);if(M instanceof Error)ae.push("name","message");else if(ae.length===0)throw new s("error",M,"may not be an empty object");return w===void 0&&E(),ae.forEach(function(ue){typeof N[ue]=="string"&&y(M[ue])&&_(M[ue],N[ue])||q(N,M,ue,G,ae,X)}),!0}return M.prototype!==void 0&&N instanceof M?!0:Error.isPrototypeOf(M)?!1:M.call({},N)===!0}function P(N){if(typeof N!="function")throw new r("fn","Function",N);try{N()}catch(M){return M}return C}function j(N){return m(N)||N!==null&&e(N)==="object"&&typeof N.then=="function"&&typeof N.catch=="function"}function k(N){return Promise.resolve().then(function(){var M;if(typeof N=="function"){if(M=N(),!j(M))throw new d("instance of Promise","promiseFn",M)}else if(j(N))M=N;else throw new r("promiseFn",["Function","Promise"],N);return Promise.resolve().then(function(){return M}).then(function(){return C}).catch(function(G){return G})})}function F(N,M,G,X){if(typeof G=="string"){if(arguments.length===4)throw new r("error",["Object","Error","Function","RegExp"],G);if(e(M)==="object"&&M!==null){if(M.message===G)throw new t("error/message",'The error message "'.concat(M.message,'" is identical to the message.'))}else if(M===G)throw new t("error/message",'The error "'.concat(M,'" is identical to the message.'));X=G,G=void 0}else if(G!=null&&e(G)!=="object"&&typeof G!="function")throw new r("error",["Object","Error","Function","RegExp"],G);if(M===C){var K="";G&&G.name&&(K+=" (".concat(G.name,")")),K+=X?": ".concat(X):".";var ae=N.name==="rejects"?"rejection":"exception";D({actual:void 0,expected:G,operator:N.name,message:"Missing expected ".concat(ae).concat(K),stackStartFn:N})}if(G&&!z(M,G,X,N))throw M}function W(N,M,G,X){if(M!==C){if(typeof G=="string"&&(X=G,G=void 0),!G||z(M,G)){var K=X?": ".concat(X):".",ae=N.name==="doesNotReject"?"rejection":"exception";D({actual:M,expected:G,operator:N.name,message:"Got unwanted ".concat(ae).concat(K,`
|
|
70
|
+
`)+'Actual message: "'.concat(M&&M.message,'"'),stackStartFn:N})}throw M}}O.throws=function N(M){for(var G=arguments.length,X=new Array(G>1?G-1:0),K=1;K<G;K++)X[K-1]=arguments[K];F.apply(void 0,[N,P(M)].concat(X))},O.rejects=function N(M){for(var G=arguments.length,X=new Array(G>1?G-1:0),K=1;K<G;K++)X[K-1]=arguments[K];return k(M).then(function(ae){return F.apply(void 0,[N,ae].concat(X))})},O.doesNotThrow=function N(M){for(var G=arguments.length,X=new Array(G>1?G-1:0),K=1;K<G;K++)X[K-1]=arguments[K];W.apply(void 0,[N,P(M)].concat(X))},O.doesNotReject=function N(M){for(var G=arguments.length,X=new Array(G>1?G-1:0),K=1;K<G;K++)X[K-1]=arguments[K];return k(M).then(function(ae){return W.apply(void 0,[N,ae].concat(X))})},O.ifError=function N(M){if(M!=null){var G="ifError got unwanted exception: ";e(M)==="object"&&typeof M.message=="string"?M.message.length===0&&M.constructor?G+=M.constructor.name:G+=M.message:G+=c(M);var X=new f({actual:M,expected:null,operator:"ifError",message:G,stackStartFn:N}),K=M.stack;if(typeof K=="string"){var ae=K.split(`
|
|
72
71
|
`);ae.shift();for(var ue=X.stack.split(`
|
|
73
72
|
`),ve=0;ve<ae.length;ve++){var me=ue.indexOf(ae[ve]);if(me!==-1){ue=ue.slice(0,me);break}}X.stack="".concat(ue.join(`
|
|
74
73
|
`),`
|
|
75
74
|
`).concat(ae.join(`
|
|
76
|
-
`))}throw X}};function Z(
|
|
75
|
+
`))}throw X}};function Z(N,M,G,X,K){if(!y(M))throw new r("regexp","RegExp",M);var ae=K==="match";if(typeof N!="string"||_(M,N)!==ae){if(G instanceof Error)throw G;var ue=!G;G=G||(typeof N!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(N)," (").concat(c(N),")"):(ae?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(c(M),`. Input:
|
|
77
76
|
|
|
78
|
-
`).concat(c(
|
|
79
|
-
`));var ve=new f({actual:D,expected:M,message:G,operator:K,stackStartFn:X});throw ve.generatedMessage=ue,ve}}O.match=function D(M,G,X){Z(M,G,X,D,"match")},O.doesNotMatch=function D(M,G,X){Z(M,G,X,D,"doesNotMatch")};function U(){for(var D=arguments.length,M=new Array(D),G=0;G<D;G++)M[G]=arguments[G];$.apply(void 0,[U,M.length].concat(M))}return O.strict=g(U,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict,Bn.exports}var eu;function cg(){return eu||(eu=1,function(e,n){var o=or(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a="abcdefghijklmnopqrstuvwxyz0123456789",t="0123456789";n=e.exports=r(i),n.base62=n,n.base36=r(a),n.base10=r(t),n.create=r;function r(s){o(typeof s=="string","the list of characters must be a string!");var d=et.byteLength(s);return function(f){f=f||10,o(typeof f=="number"&&f>=0,"the length of the random string must be a number!");for(var h="",c=0;c<f;c++)h+=s[Math.floor(d*Math.random())];return h}}}(Er,Er.exports)),Er.exports}var Sr={exports:{}},Rr={exports:{}};var tu;function lg(){if(tu)return Rr.exports;tu=1;var e=Ht(),n=e.randomBytes===e.pseudoRandomBytes?1:3;Rr.exports=o,Rr.exports.sync=i;function o(t,r){if(r!==void 0&&typeof r!="function")throw new TypeError("argument callback must be a function");if(!r&&!Xf.Promise)throw new TypeError("argument callback is required");return r?a(t,n,r):new Promise(function(d,l){a(t,n,function(h,c){if(h)return l(h);d(c)})})}function i(t){for(var r=null,s=0;s<n;s++)try{return e.randomBytes(t)}catch(d){r=d}throw r}function a(t,r,s){e.randomBytes(t,function(l,f){if(!l)return s(null,f);if(!--r)return s(l);setTimeout(a.bind(null,t,r,s),10)})}return Rr.exports}var ru;function fg(){if(ru)return Sr.exports;ru=1;var e=lg(),n=/=+$/,o=/\+/g,i=/\//g;Sr.exports=a,Sr.exports.sync=t;function a(d,l){if(l!==void 0&&typeof l!="function")throw new TypeError("argument callback must be a function");if(!l&&!Xf.Promise)throw new TypeError("argument callback is required");return l?r(d,l):new Promise(function(h,c){r(d,function(m,y){if(m)return c(m);h(y)})})}function t(d){return s(e.sync(d))}function r(d,l){e(d,function(f,h){if(f)return l(f);l(null,s(h))})}function s(d){return d.toString("base64").replace(n,"").replace(o,"-").replace(i,"_")}return Sr.exports}var ai,nu;function hg(){if(nu)return ai;nu=1;var e=Ht();function n(i,a){if(i.length!==a.length)return!1;if(e.timingSafeEqual)return e.timingSafeEqual(i,a);for(var t=0;t<i.length;t++)if(i[t]!==a[t])return!1;return!0}function o(i,a){var t=String(i),r=String(a),s=e.pseudoRandomBytes(32),d=e.createHmac("sha256",s).update(t).digest(),l=e.createHmac("sha256",s).update(r).digest();return n(d,l)&&i===a}return ai=o,ai}var oi,iu;function dg(){if(iu)return oi;iu=1;var e=cg(),n=fg(),o=hg(),i=Ht(),a=/=/g,t=/\+/g,r=/\//g;oi=s;function s(l){if(!(this instanceof s))return new s(l);var f=l||{},h=f.saltLength!==void 0?f.saltLength:8;if(typeof h!="number"||!isFinite(h)||h<1)throw new TypeError("option saltLength must be finite number > 1");var c=f.secretLength!==void 0?f.secretLength:18;if(typeof c!="number"||!isFinite(c)||c<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=h,this.secretLength=c}s.prototype.create=function(f){if(!f||typeof f!="string")throw new TypeError("argument secret is required");return this._tokenize(f,e(this.saltLength))},s.prototype.secret=function(f){return n(this.secretLength,f)},s.prototype.secretSync=function(){return n.sync(this.secretLength)},s.prototype._tokenize=function(f,h){return h+"-"+d(h+"-"+f)},s.prototype.verify=function(f,h){if(!f||typeof f!="string"||!h||typeof h!="string")return!1;var c=h.indexOf("-");if(c===-1)return!1;var b=h.substr(0,c),m=this._tokenize(f,b);return o(h,m)};function d(l){return i.createHash("sha1").update(l,"ascii").digest("base64").replace(t,"-").replace(r,"_").replace(a,"")}return oi}var si={},ui,au;function pg(){return au||(au=1,ui=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)),ui}var ci,ou;function mg(){if(ou)return ci;ou=1;var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function i(r,s){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;s=s||1;var d=r.slice(0,s),l=r.slice(s);return Array.prototype.concat.call([],i(d),i(l))}function a(r){try{return decodeURIComponent(r)}catch{for(var s=r.match(n)||[],d=1;d<s.length;d++)r=i(s,d).join(""),s=r.match(n)||[];return r}}function t(r){for(var s={"%FE%FF":"��","%FF%FE":"��"},d=o.exec(r);d;){try{s[d[0]]=decodeURIComponent(d[0])}catch{var l=a(d[0]);l!==d[0]&&(s[d[0]]=l)}d=o.exec(r)}s["%C2"]="�";for(var f=Object.keys(s),h=0;h<f.length;h++){var c=f[h];r=r.replace(new RegExp(c,"g"),s[c])}return r}return ci=function(r){if(typeof r!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch{return t(r)}},ci}var li,su;function gg(){return su||(su=1,li=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const o=e.indexOf(n);return o===-1?[e]:[e.slice(0,o),e.slice(o+n.length)]}),li}var fi,uu;function vg(){return uu||(uu=1,fi=function(e,n){for(var o={},i=Object.keys(e),a=Array.isArray(n),t=0;t<i.length;t++){var r=i[t],s=e[r];(a?n.indexOf(r)!==-1:n(r,s,e))&&(o[r]=s)}return o}),fi}var cu;function yg(){return cu||(cu=1,function(e){const n=pg(),o=mg(),i=gg(),a=vg(),t=u=>u==null;function r(u){switch(u.arrayFormat){case"index":return _=>(w,v)=>{const E=w.length;return v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,[l(_,u),"[",E,"]"].join("")]:[...w,[l(_,u),"[",l(E,u),"]=",l(v,u)].join("")]};case"bracket":return _=>(w,v)=>v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,[l(_,u),"[]"].join("")]:[...w,[l(_,u),"[]=",l(v,u)].join("")];case"comma":case"separator":return _=>(w,v)=>v==null||v.length===0?w:w.length===0?[[l(_,u),"=",l(v,u)].join("")]:[[w,l(v,u)].join(u.arrayFormatSeparator)];default:return _=>(w,v)=>v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,l(_,u)]:[...w,[l(_,u),"=",l(v,u)].join("")]}}function s(u){let _;switch(u.arrayFormat){case"index":return(w,v,E)=>{if(_=/\[(\d*)\]$/.exec(w),w=w.replace(/\[\d*\]$/,""),!_){E[w]=v;return}E[w]===void 0&&(E[w]={}),E[w][_[1]]=v};case"bracket":return(w,v,E)=>{if(_=/(\[\])$/.exec(w),w=w.replace(/\[\]$/,""),!_){E[w]=v;return}if(E[w]===void 0){E[w]=[v];return}E[w]=[].concat(E[w],v)};case"comma":case"separator":return(w,v,E)=>{const x=typeof v=="string"&&v.includes(u.arrayFormatSeparator),O=typeof v=="string"&&!x&&f(v,u).includes(u.arrayFormatSeparator);v=O?f(v,u):v;const C=x||O?v.split(u.arrayFormatSeparator).map(N=>f(N,u)):v===null?v:f(v,u);E[w]=C};default:return(w,v,E)=>{if(E[w]===void 0){E[w]=v;return}E[w]=[].concat(E[w],v)}}}function d(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(u,_){return _.encode?_.strict?n(u):encodeURIComponent(u):u}function f(u,_){return _.decode?o(u):u}function h(u){return Array.isArray(u)?u.sort():typeof u=="object"?h(Object.keys(u)).sort((_,w)=>Number(_)-Number(w)).map(_=>u[_]):u}function c(u){const _=u.indexOf("#");return _!==-1&&(u=u.slice(0,_)),u}function b(u){let _="";const w=u.indexOf("#");return w!==-1&&(_=u.slice(w)),_}function m(u){u=c(u);const _=u.indexOf("?");return _===-1?"":u.slice(_+1)}function y(u,_){return _.parseNumbers&&!Number.isNaN(Number(u))&&typeof u=="string"&&u.trim()!==""?u=Number(u):_.parseBooleans&&u!==null&&(u.toLowerCase()==="true"||u.toLowerCase()==="false")&&(u=u.toLowerCase()==="true"),u}function g(u,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),d(_.arrayFormatSeparator);const w=s(_),v=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return v;for(const E of u.split("&")){if(E==="")continue;let[x,O]=i(_.decode?E.replace(/\+/g," "):E,"=");O=O===void 0?null:["comma","separator"].includes(_.arrayFormat)?O:f(O,_),w(f(x,_),O,v)}for(const E of Object.keys(v)){const x=v[E];if(typeof x=="object"&&x!==null)for(const O of Object.keys(x))x[O]=y(x[O],_);else v[E]=y(x,_)}return _.sort===!1?v:(_.sort===!0?Object.keys(v).sort():Object.keys(v).sort(_.sort)).reduce((E,x)=>{const O=v[x];return O&&typeof O=="object"&&!Array.isArray(O)?E[x]=h(O):E[x]=O,E},Object.create(null))}e.extract=m,e.parse=g,e.stringify=(u,_)=>{if(!u)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),d(_.arrayFormatSeparator);const w=O=>_.skipNull&&t(u[O])||_.skipEmptyString&&u[O]==="",v=r(_),E={};for(const O of Object.keys(u))w(O)||(E[O]=u[O]);const x=Object.keys(E);return _.sort!==!1&&x.sort(_.sort),x.map(O=>{const C=u[O];return C===void 0?"":C===null?l(O,_):Array.isArray(C)?C.reduce(v(O),[]).join("&"):l(O,_)+"="+l(C,_)}).filter(O=>O.length>0).join("&")},e.parseUrl=(u,_)=>{_=Object.assign({decode:!0},_);const[w,v]=i(u,"#");return Object.assign({url:w.split("?")[0]||"",query:g(m(u),_)},_&&_.parseFragmentIdentifier&&v?{fragmentIdentifier:f(v,_)}:{})},e.stringifyUrl=(u,_)=>{_=Object.assign({encode:!0,strict:!0},_);const w=c(u.url).split("?")[0]||"",v=e.extract(u.url),E=e.parse(v,{sort:!1}),x=Object.assign(E,u.query);let O=e.stringify(x,_);O&&(O=`?${O}`);let C=b(u.url);return u.fragmentIdentifier&&(C=`#${l(u.fragmentIdentifier,_)}`),`${w}${O}${C}`},e.pick=(u,_,w)=>{w=Object.assign({parseFragmentIdentifier:!0},w);const{url:v,query:E,fragmentIdentifier:x}=e.parseUrl(u,w);return e.stringifyUrl({url:v,query:a(E,_),fragmentIdentifier:x},w)},e.exclude=(u,_,w)=>{const v=Array.isArray(_)?E=>!_.includes(E):(E,x)=>!_(E,x);return e.pick(u,v,w)}}(si)),si}var Pt={},kt={},hi={},Kt={},lu;function vh(){if(lu)return Kt;lu=1,Object.defineProperty(Kt,"__esModule",{value:!0});class e{constructor(){this._=[],this.$=Object.create(null)}on(i,a){(this.$[i]=this.$[i]||[]).push(a)}off(i,a){const t=this.$[i];t&&t.splice(t.indexOf(a)>>>0,1)}each(i){this._.push(i)}none(i){this._.splice(this._.indexOf(i)>>>0,1)}emit(i,...a){const t=this.$[i];t&&t.slice().forEach(r=>r(...a)),this._.slice().forEach(r=>r({type:i,args:a}))}}Kt.Emitter=e;function n(o,i,a){function t(...r){return o.off(i,t),a(...r)}return o.on(i,t),t}return Kt.once=n,Kt}var Or={},fu;function _g(){if(fu)return Or;fu=1,Object.defineProperty(Or,"__esModule",{value:!0});function e(n){if(!n)return 0;n=n.toString();for(var o=n.length,i=n.length;i--;){var a=n.charCodeAt(i);56320<=a&&a<=57343&&i--,127<a&&a<=2047?o++:2047<a&&a<=65535&&(o+=2)}return o}return Or.byteLength=e,Or}var jt={},hu;function bg(){if(hu)return jt;hu=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.expectNever=jt.expectType=void 0;const e=o=>{};jt.expectType=e;const n=o=>{throw new TypeError("Unexpected value: "+o)};return jt.expectNever=n,jt}var Tr={},du;function sn(){if(du)return Tr;du=1,Object.defineProperty(Tr,"__esModule",{value:!0});class e{constructor(o){this.object=Object.create(null),o&&this.extend(o)}set(o,i){this.object[o.toLowerCase()]=Array.isArray(i)?i.map(String):String(i)}append(o,i){const a=o.toLowerCase(),t=this.object[a];if(t===void 0)Array.isArray(i)?this.object[a]=i.map(String):this.object[a]=String(i);else if(Array.isArray(t))if(Array.isArray(i))for(const r of i)t.push(String(r));else t.push(String(i));else this.object[a]=Array.isArray(i)?[t,...i.map(String)]:[t,String(i)]}get(o){const i=this.object[o.toLowerCase()];return i===void 0?null:Array.isArray(i)?i[0]:i}getAll(o){const i=this.object[o.toLowerCase()];return i===void 0?[]:Array.isArray(i)?[...i]:[i]}has(o){return o.toLowerCase()in this.object}delete(o){delete this.object[o.toLowerCase()]}*entries(){yield*Object.entries(this.object)}*keys(){yield*Object.keys(this.object)}*values(){yield*Object.values(this.object)}clear(){this.object=Object.create(null)}asObject(){return Object.assign(Object.create(null),this.object)}extend(o){if(Symbol.iterator in o)for(const[i,a]of o)this.append(i,a);else if(o instanceof e)for(const[i,a]of o.entries())this.append(i,a);else for(const i of Object.keys(o)){const a=o[i];a!==void 0&&this.append(i,a)}}clone(){return new e(this.object)}}return Tr.Headers=e,Tr}var Xt={},pu;function un(){if(pu)return Xt;pu=1,Object.defineProperty(Xt,"__esModule",{value:!0});const e=vh();class n extends e.Emitter{constructor(){super(),this.aborted=!1,e.once(this,"abort",()=>this.aborted=!0)}}Xt.Signal=n;class o{constructor(){this.signal=new n}abort(){this.signal.emit("abort")}}return Xt.AbortController=o,Xt}var di={},mu;function yh(){return mu||(mu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.kBodyUsed=Symbol("bodyUsed"),e.kBodyDestroyed=Symbol("bodyDestroyed");function n(i){const a=o(i);return a===null?null:(i.$rawBody=e.kBodyUsed,a)}e.useRawBody=n;function o(i){const{$rawBody:a}=i;if(a===e.kBodyUsed)throw new TypeError("Body already used");if(a===e.kBodyDestroyed)throw new TypeError("Body is destroyed");return a}e.getRawBody=o}(di)),di}var gu;function _h(){return gu||(gu=1,function(e){function n(y){for(var g in y)e.hasOwnProperty(g)||(e[g]=y[g])}Object.defineProperty(e,"__esModule",{value:!0});const o=vh(),i=_g(),a=bg(),t=sn(),r=un(),s=yh();n(sn()),n(un());function d(y){const g=new DataView(y);return new TextDecoder("utf-8").decode(g)}function l(y){return new TextEncoder().encode(y)}function f(y){const g=y.getReader();function u(_){return g.read().then(w=>{if(w.done)return _;const v=w.value,E=new Uint8Array(_.byteLength+v.byteLength);return E.set(_,0),E.set(v,_.byteLength),u(E)})}return u(new Uint8Array(0))}class h{constructor(g){const u=g===void 0?null:g;this.$rawBody=u}get bodyUsed(){return this.$rawBody===s.kBodyUsed||this.$rawBody===s.kBodyDestroyed}json(){return this.text().then(g=>JSON.parse(g))}text(){const g=s.useRawBody(this);return g===null?Promise.resolve(""):typeof g=="string"?Promise.resolve(g):g instanceof ArrayBuffer?Promise.resolve(d(g)):f(g).then(d)}arrayBuffer(){const g=s.useRawBody(this);return g===null?Promise.resolve(new ArrayBuffer(0)):g instanceof ArrayBuffer?Promise.resolve(g):typeof g=="string"?Promise.resolve(l(g).buffer):f(g)}readableStream(){const g=s.useRawBody(this);return g===null?new ReadableStream({start(u){u.close()}}):typeof g=="string"?new ReadableStream({start(u){u.enqueue(l(g)),u.close()}}):g instanceof ArrayBuffer?new ReadableStream({start(u){u.enqueue(new Uint8Array(g)),u.close()}}):g}clone(){const g=s.getRawBody(this);if(g instanceof ReadableStream){const[u,_]=g.tee();return this.$rawBody=u,new h(_)}return new h(g)}destroy(){const g=s.getRawBody(this);return this.$rawBody=s.kBodyDestroyed,g instanceof ReadableStream?g.cancel():Promise.resolve()}}e.Body=h;class c extends h{constructor(g,u={}){const _=typeof g=="string"?void 0:g.clone(),w=u.body||(_?s.getRawBody(_):null),v=_&&!u.headers?_.headers:m(w,u.headers,u.omitDefaultHeaders===!0);super(w),this.url=typeof g=="string"?g:g.url,this.method=u.method||_&&_.method||"GET",this.signal=u.signal||_&&_.signal||new r.Signal,this.headers=v,this.trailer=_&&!u.trailer?_.trailer:Promise.resolve(u.trailer).then(E=>new t.Headers(E)),o.once(this.signal,"abort",()=>this.destroy())}clone(){const g=super.clone();return new c(this.url,{body:s.getRawBody(g),headers:this.headers.clone(),omitDefaultHeaders:!0,method:this.method,signal:this.signal,trailer:this.trailer.then(u=>u.clone())})}}e.Request=c;class b extends h{get ok(){return this.status>=200&&this.status<300}constructor(g,u={}){const _=m(g,u.headers,u.omitDefaultHeaders===!0);super(g),this.status=u.status||200,this.statusText=u.statusText||"",this.headers=_,this.trailer=Promise.resolve(u.trailer).then(w=>new t.Headers(w))}clone(){const g=super.clone();return new b(s.getRawBody(g),{status:this.status,statusText:this.statusText,headers:this.headers.clone(),omitDefaultHeaders:!0,trailer:this.trailer.then(u=>u.clone())})}}e.Response=b;function m(y,g,u){const _=new t.Headers(g);if(y==null)return _;if(typeof y=="string")return!u&&!_.has("Content-Type")&&_.set("Content-Type","text/plain"),!u&&!_.has("Content-Length")&&_.set("Content-Length",i.byteLength(y).toString()),_;if(!u&&!_.has("Content-Type")&&_.set("Content-Type","application/octet-stream"),y instanceof ArrayBuffer)return!u&&!_.has("Content-Length")&&_.set("Content-Length",String(y.byteLength)),_;if(y instanceof ReadableStream)return _;throw a.expectType(y),new TypeError("Unknown body type")}}(hi)),hi}var ct={},vu;function wg(){if(vu)return ct;vu=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=_h(),n=yh();class o extends e.Response{constructor(c,b){super(c,b),this.url=b.url}}ct.XhrResponse=o;class i extends Error{constructor(c,b){super(b),this.request=c,this.code="EBLOCKED"}}ct.BlockedRequestError=i;class a extends Error{constructor(c,b){super(b),this.request=c,this.code="EINVALID"}}ct.InvalidRequestError=a;class t extends Error{constructor(c,b){super(b),this.request=c,this.code="EUNAVAILABLE"}}ct.ConnectionError=t;class r extends Error{constructor(c,b){super(b),this.request=c,this.code="ECSP"}}ct.CSPError=r;class s extends Error{constructor(c,b){super(b),this.request=c,this.code="ETYPE"}}ct.TypeError=s;class d extends Error{constructor(c,b){super(b),this.request=c,this.code="EABORT"}}ct.AbortError=d;function l(h={}){return function(c){return new Promise(function(b,m){const y=h.type||"arraybuffer",g=c.method.toUpperCase();if(c.signal.aborted)return m(new d(c,"Request has been aborted"));if(window.location.protocol==="https:"&&c.url.startsWith("http:"))return m(new i(c,`The connection to "${c.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(c.url))return m(new a(c,`Refusing to connect to "${c.url}"`));const u=new XMLHttpRequest;let _=!1;function w(){const E=new o(y==="text"?u.responseText:u.response,{status:u.status===1223?204:u.status,statusText:u.statusText,headers:f(u.getAllResponseHeaders()),omitDefaultHeaders:!0,url:u.responseURL});return c.signal.emit("responseStarted"),c.signal.emit("responseEnded"),b(E)}function v(){return m(new t(c,`Unable to connect to "${c.url}"`))}u.onload=w,u.onabort=w,u.onerror=v,u.onprogress=E=>{c.signal.emit("requestBytes",E.loaded)},g!=="GET"&&g!=="HEAD"&&u.upload&&(_=!0,u.upload.onprogress=E=>{c.signal.emit("responseBytes",E.loaded)},u.upload.onloadend=()=>{c.signal.emit("requestEnded")});try{u.open(g,c.url)}catch{return m(new r(c,`Refused to connect to "${c.url}"`))}if(h.withCredentials&&(u.withCredentials=!0),h.overrideMimeType&&u.overrideMimeType(h.overrideMimeType),y!=="text")try{u.responseType=y}finally{if(u.responseType!==y)return m(new s(c,`Unsupported type: ${y}`))}for(const[E,x]of c.headers.entries())if(Array.isArray(x))for(const O of x)u.setRequestHeader(E,O);else u.setRequestHeader(E,x);c.signal.emit("requestStarted"),_||c.signal.emit("requestEnded"),c.signal.on("abort",()=>u.abort()),u.send(n.useRawBody(c))})}}ct.transport=l;function f(h){const c=[],b=h.split(/\r?\n/);for(const m of b)if(m){const y=m.indexOf(":"),g=m.substr(0,y).trim(),u=m.substr(y+1).trim();c.push([g,u])}return c}return ct}var Qt={},yu;function Bo(){if(yu)return Qt;yu=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.toFetch=void 0;function e(n,o){function i(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...t){const r=t.length===1&&t[0]instanceof o?t[0]:new o(...t);return n(r,i)}}return Qt.toFetch=e,Qt}var _u;function Eg(){return _u||(_u=1,function(e){var n=kt&&kt.__createBinding||(Object.create?function(r,s,d,l){l===void 0&&(l=d),Object.defineProperty(r,l,{enumerable:!0,get:function(){return s[d]}})}:function(r,s,d,l){l===void 0&&(l=d),r[l]=s[d]}),o=kt&&kt.__exportStar||function(r,s){for(var d in r)d!=="default"&&!Object.prototype.hasOwnProperty.call(s,d)&&n(s,r,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.middleware=e.XhrResponse=e.transport=e.Request=void 0;const i=_h();Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return i.Request}});const a=wg();Object.defineProperty(e,"transport",{enumerable:!0,get:function(){return a.transport}}),Object.defineProperty(e,"XhrResponse",{enumerable:!0,get:function(){return a.XhrResponse}});const t=Bo();o(Bo(),e),o(un(),e),o(sn(),e),e.middleware=a.transport(),e.fetch=t.toFetch(e.middleware,i.Request)}(kt)),kt}var bu;function Sg(){return bu||(bu=1,function(e){var n=Pt&&Pt.__createBinding||(Object.create?function(a,t,r,s){s===void 0&&(s=r),Object.defineProperty(a,s,{enumerable:!0,get:function(){return t[r]}})}:function(a,t,r,s){s===void 0&&(s=r),a[s]=t[r]}),o=Pt&&Pt.__exportStar||function(a,t){for(var r in a)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,a,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.middleware=e.fetch=void 0;const i=Eg();o(Bo(),e),o(un(),e),o(sn(),e),e.fetch=i.fetch,e.middleware=i.middleware}(Pt)),Pt}var Ue={},wu;function Ut(){return wu||(wu=1,Ue.endianness=function(){return"LE"},Ue.hostname=function(){return typeof location<"u"?location.hostname:""},Ue.loadavg=function(){return[]},Ue.uptime=function(){return 0},Ue.freemem=function(){return Number.MAX_VALUE},Ue.totalmem=function(){return Number.MAX_VALUE},Ue.cpus=function(){return[]},Ue.type=function(){return"Browser"},Ue.release=function(){return typeof navigator<"u"?navigator.appVersion:""},Ue.networkInterfaces=Ue.getNetworkInterfaces=function(){return{}},Ue.arch=function(){return"javascript"},Ue.platform=function(){return"browser"},Ue.tmpdir=Ue.tmpDir=function(){return"/tmp"},Ue.EOL=`
|
|
77
|
+
`).concat(c(N),`
|
|
78
|
+
`));var ve=new f({actual:N,expected:M,message:G,operator:K,stackStartFn:X});throw ve.generatedMessage=ue,ve}}O.match=function N(M,G,X){Z(M,G,X,N,"match")},O.doesNotMatch=function N(M,G,X){Z(M,G,X,N,"doesNotMatch")};function B(){for(var N=arguments.length,M=new Array(N),G=0;G<N;G++)M[G]=arguments[G];$.apply(void 0,[B,M.length].concat(M))}return O.strict=g(B,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict,Bn.exports}var eu;function cg(){return eu||(eu=1,function(e,n){var o=or(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a="abcdefghijklmnopqrstuvwxyz0123456789",t="0123456789";n=e.exports=r(i),n.base62=n,n.base36=r(a),n.base10=r(t),n.create=r;function r(s){o(typeof s=="string","the list of characters must be a string!");var d=et.byteLength(s);return function(f){f=f||10,o(typeof f=="number"&&f>=0,"the length of the random string must be a number!");for(var h="",c=0;c<f;c++)h+=s[Math.floor(d*Math.random())];return h}}}(Er,Er.exports)),Er.exports}var Sr={exports:{}},Rr={exports:{}};var tu;function lg(){if(tu)return Rr.exports;tu=1;var e=Ht(),n=e.randomBytes===e.pseudoRandomBytes?1:3;Rr.exports=o,Rr.exports.sync=i;function o(t,r){if(r!==void 0&&typeof r!="function")throw new TypeError("argument callback must be a function");if(!r&&!Kf.Promise)throw new TypeError("argument callback is required");return r?a(t,n,r):new Promise(function(d,l){a(t,n,function(h,c){if(h)return l(h);d(c)})})}function i(t){for(var r=null,s=0;s<n;s++)try{return e.randomBytes(t)}catch(d){r=d}throw r}function a(t,r,s){e.randomBytes(t,function(l,f){if(!l)return s(null,f);if(!--r)return s(l);setTimeout(a.bind(null,t,r,s),10)})}return Rr.exports}var ru;function fg(){if(ru)return Sr.exports;ru=1;var e=lg(),n=/=+$/,o=/\+/g,i=/\//g;Sr.exports=a,Sr.exports.sync=t;function a(d,l){if(l!==void 0&&typeof l!="function")throw new TypeError("argument callback must be a function");if(!l&&!Kf.Promise)throw new TypeError("argument callback is required");return l?r(d,l):new Promise(function(h,c){r(d,function(m,y){if(m)return c(m);h(y)})})}function t(d){return s(e.sync(d))}function r(d,l){e(d,function(f,h){if(f)return l(f);l(null,s(h))})}function s(d){return d.toString("base64").replace(n,"").replace(o,"-").replace(i,"_")}return Sr.exports}var ai,nu;function hg(){if(nu)return ai;nu=1;var e=Ht();function n(i,a){if(i.length!==a.length)return!1;if(e.timingSafeEqual)return e.timingSafeEqual(i,a);for(var t=0;t<i.length;t++)if(i[t]!==a[t])return!1;return!0}function o(i,a){var t=String(i),r=String(a),s=e.pseudoRandomBytes(32),d=e.createHmac("sha256",s).update(t).digest(),l=e.createHmac("sha256",s).update(r).digest();return n(d,l)&&i===a}return ai=o,ai}var oi,iu;function dg(){if(iu)return oi;iu=1;var e=cg(),n=fg(),o=hg(),i=Ht(),a=/=/g,t=/\+/g,r=/\//g;oi=s;function s(l){if(!(this instanceof s))return new s(l);var f=l||{},h=f.saltLength!==void 0?f.saltLength:8;if(typeof h!="number"||!isFinite(h)||h<1)throw new TypeError("option saltLength must be finite number > 1");var c=f.secretLength!==void 0?f.secretLength:18;if(typeof c!="number"||!isFinite(c)||c<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=h,this.secretLength=c}s.prototype.create=function(f){if(!f||typeof f!="string")throw new TypeError("argument secret is required");return this._tokenize(f,e(this.saltLength))},s.prototype.secret=function(f){return n(this.secretLength,f)},s.prototype.secretSync=function(){return n.sync(this.secretLength)},s.prototype._tokenize=function(f,h){return h+"-"+d(h+"-"+f)},s.prototype.verify=function(f,h){if(!f||typeof f!="string"||!h||typeof h!="string")return!1;var c=h.indexOf("-");if(c===-1)return!1;var b=h.substr(0,c),m=this._tokenize(f,b);return o(h,m)};function d(l){return i.createHash("sha1").update(l,"ascii").digest("base64").replace(t,"-").replace(r,"_").replace(a,"")}return oi}var si={},ui,au;function pg(){return au||(au=1,ui=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`)),ui}var ci,ou;function mg(){if(ou)return ci;ou=1;var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function i(r,s){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;s=s||1;var d=r.slice(0,s),l=r.slice(s);return Array.prototype.concat.call([],i(d),i(l))}function a(r){try{return decodeURIComponent(r)}catch{for(var s=r.match(n)||[],d=1;d<s.length;d++)r=i(s,d).join(""),s=r.match(n)||[];return r}}function t(r){for(var s={"%FE%FF":"��","%FF%FE":"��"},d=o.exec(r);d;){try{s[d[0]]=decodeURIComponent(d[0])}catch{var l=a(d[0]);l!==d[0]&&(s[d[0]]=l)}d=o.exec(r)}s["%C2"]="�";for(var f=Object.keys(s),h=0;h<f.length;h++){var c=f[h];r=r.replace(new RegExp(c,"g"),s[c])}return r}return ci=function(r){if(typeof r!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof r+"`");try{return r=r.replace(/\+/g," "),decodeURIComponent(r)}catch{return t(r)}},ci}var li,su;function gg(){return su||(su=1,li=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const o=e.indexOf(n);return o===-1?[e]:[e.slice(0,o),e.slice(o+n.length)]}),li}var fi,uu;function vg(){return uu||(uu=1,fi=function(e,n){for(var o={},i=Object.keys(e),a=Array.isArray(n),t=0;t<i.length;t++){var r=i[t],s=e[r];(a?n.indexOf(r)!==-1:n(r,s,e))&&(o[r]=s)}return o}),fi}var cu;function yg(){return cu||(cu=1,function(e){const n=pg(),o=mg(),i=gg(),a=vg(),t=u=>u==null;function r(u){switch(u.arrayFormat){case"index":return _=>(w,v)=>{const E=w.length;return v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,[l(_,u),"[",E,"]"].join("")]:[...w,[l(_,u),"[",l(E,u),"]=",l(v,u)].join("")]};case"bracket":return _=>(w,v)=>v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,[l(_,u),"[]"].join("")]:[...w,[l(_,u),"[]=",l(v,u)].join("")];case"comma":case"separator":return _=>(w,v)=>v==null||v.length===0?w:w.length===0?[[l(_,u),"=",l(v,u)].join("")]:[[w,l(v,u)].join(u.arrayFormatSeparator)];default:return _=>(w,v)=>v===void 0||u.skipNull&&v===null||u.skipEmptyString&&v===""?w:v===null?[...w,l(_,u)]:[...w,[l(_,u),"=",l(v,u)].join("")]}}function s(u){let _;switch(u.arrayFormat){case"index":return(w,v,E)=>{if(_=/\[(\d*)\]$/.exec(w),w=w.replace(/\[\d*\]$/,""),!_){E[w]=v;return}E[w]===void 0&&(E[w]={}),E[w][_[1]]=v};case"bracket":return(w,v,E)=>{if(_=/(\[\])$/.exec(w),w=w.replace(/\[\]$/,""),!_){E[w]=v;return}if(E[w]===void 0){E[w]=[v];return}E[w]=[].concat(E[w],v)};case"comma":case"separator":return(w,v,E)=>{const x=typeof v=="string"&&v.includes(u.arrayFormatSeparator),O=typeof v=="string"&&!x&&f(v,u).includes(u.arrayFormatSeparator);v=O?f(v,u):v;const C=x||O?v.split(u.arrayFormatSeparator).map(D=>f(D,u)):v===null?v:f(v,u);E[w]=C};default:return(w,v,E)=>{if(E[w]===void 0){E[w]=v;return}E[w]=[].concat(E[w],v)}}}function d(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(u,_){return _.encode?_.strict?n(u):encodeURIComponent(u):u}function f(u,_){return _.decode?o(u):u}function h(u){return Array.isArray(u)?u.sort():typeof u=="object"?h(Object.keys(u)).sort((_,w)=>Number(_)-Number(w)).map(_=>u[_]):u}function c(u){const _=u.indexOf("#");return _!==-1&&(u=u.slice(0,_)),u}function b(u){let _="";const w=u.indexOf("#");return w!==-1&&(_=u.slice(w)),_}function m(u){u=c(u);const _=u.indexOf("?");return _===-1?"":u.slice(_+1)}function y(u,_){return _.parseNumbers&&!Number.isNaN(Number(u))&&typeof u=="string"&&u.trim()!==""?u=Number(u):_.parseBooleans&&u!==null&&(u.toLowerCase()==="true"||u.toLowerCase()==="false")&&(u=u.toLowerCase()==="true"),u}function g(u,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),d(_.arrayFormatSeparator);const w=s(_),v=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return v;for(const E of u.split("&")){if(E==="")continue;let[x,O]=i(_.decode?E.replace(/\+/g," "):E,"=");O=O===void 0?null:["comma","separator"].includes(_.arrayFormat)?O:f(O,_),w(f(x,_),O,v)}for(const E of Object.keys(v)){const x=v[E];if(typeof x=="object"&&x!==null)for(const O of Object.keys(x))x[O]=y(x[O],_);else v[E]=y(x,_)}return _.sort===!1?v:(_.sort===!0?Object.keys(v).sort():Object.keys(v).sort(_.sort)).reduce((E,x)=>{const O=v[x];return O&&typeof O=="object"&&!Array.isArray(O)?E[x]=h(O):E[x]=O,E},Object.create(null))}e.extract=m,e.parse=g,e.stringify=(u,_)=>{if(!u)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),d(_.arrayFormatSeparator);const w=O=>_.skipNull&&t(u[O])||_.skipEmptyString&&u[O]==="",v=r(_),E={};for(const O of Object.keys(u))w(O)||(E[O]=u[O]);const x=Object.keys(E);return _.sort!==!1&&x.sort(_.sort),x.map(O=>{const C=u[O];return C===void 0?"":C===null?l(O,_):Array.isArray(C)?C.reduce(v(O),[]).join("&"):l(O,_)+"="+l(C,_)}).filter(O=>O.length>0).join("&")},e.parseUrl=(u,_)=>{_=Object.assign({decode:!0},_);const[w,v]=i(u,"#");return Object.assign({url:w.split("?")[0]||"",query:g(m(u),_)},_&&_.parseFragmentIdentifier&&v?{fragmentIdentifier:f(v,_)}:{})},e.stringifyUrl=(u,_)=>{_=Object.assign({encode:!0,strict:!0},_);const w=c(u.url).split("?")[0]||"",v=e.extract(u.url),E=e.parse(v,{sort:!1}),x=Object.assign(E,u.query);let O=e.stringify(x,_);O&&(O=`?${O}`);let C=b(u.url);return u.fragmentIdentifier&&(C=`#${l(u.fragmentIdentifier,_)}`),`${w}${O}${C}`},e.pick=(u,_,w)=>{w=Object.assign({parseFragmentIdentifier:!0},w);const{url:v,query:E,fragmentIdentifier:x}=e.parseUrl(u,w);return e.stringifyUrl({url:v,query:a(E,_),fragmentIdentifier:x},w)},e.exclude=(u,_,w)=>{const v=Array.isArray(_)?E=>!_.includes(E):(E,x)=>!_(E,x);return e.pick(u,v,w)}}(si)),si}var Pt={},kt={},hi={},Kt={},lu;function mh(){if(lu)return Kt;lu=1,Object.defineProperty(Kt,"__esModule",{value:!0});class e{constructor(){this._=[],this.$=Object.create(null)}on(i,a){(this.$[i]=this.$[i]||[]).push(a)}off(i,a){const t=this.$[i];t&&t.splice(t.indexOf(a)>>>0,1)}each(i){this._.push(i)}none(i){this._.splice(this._.indexOf(i)>>>0,1)}emit(i,...a){const t=this.$[i];t&&t.slice().forEach(r=>r(...a)),this._.slice().forEach(r=>r({type:i,args:a}))}}Kt.Emitter=e;function n(o,i,a){function t(...r){return o.off(i,t),a(...r)}return o.on(i,t),t}return Kt.once=n,Kt}var Or={},fu;function _g(){if(fu)return Or;fu=1,Object.defineProperty(Or,"__esModule",{value:!0});function e(n){if(!n)return 0;n=n.toString();for(var o=n.length,i=n.length;i--;){var a=n.charCodeAt(i);56320<=a&&a<=57343&&i--,127<a&&a<=2047?o++:2047<a&&a<=65535&&(o+=2)}return o}return Or.byteLength=e,Or}var jt={},hu;function bg(){if(hu)return jt;hu=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.expectNever=jt.expectType=void 0;const e=o=>{};jt.expectType=e;const n=o=>{throw new TypeError("Unexpected value: "+o)};return jt.expectNever=n,jt}var Tr={},du;function sn(){if(du)return Tr;du=1,Object.defineProperty(Tr,"__esModule",{value:!0});class e{constructor(o){this.object=Object.create(null),o&&this.extend(o)}set(o,i){this.object[o.toLowerCase()]=Array.isArray(i)?i.map(String):String(i)}append(o,i){const a=o.toLowerCase(),t=this.object[a];if(t===void 0)Array.isArray(i)?this.object[a]=i.map(String):this.object[a]=String(i);else if(Array.isArray(t))if(Array.isArray(i))for(const r of i)t.push(String(r));else t.push(String(i));else this.object[a]=Array.isArray(i)?[t,...i.map(String)]:[t,String(i)]}get(o){const i=this.object[o.toLowerCase()];return i===void 0?null:Array.isArray(i)?i[0]:i}getAll(o){const i=this.object[o.toLowerCase()];return i===void 0?[]:Array.isArray(i)?[...i]:[i]}has(o){return o.toLowerCase()in this.object}delete(o){delete this.object[o.toLowerCase()]}*entries(){yield*Object.entries(this.object)}*keys(){yield*Object.keys(this.object)}*values(){yield*Object.values(this.object)}clear(){this.object=Object.create(null)}asObject(){return Object.assign(Object.create(null),this.object)}extend(o){if(Symbol.iterator in o)for(const[i,a]of o)this.append(i,a);else if(o instanceof e)for(const[i,a]of o.entries())this.append(i,a);else for(const i of Object.keys(o)){const a=o[i];a!==void 0&&this.append(i,a)}}clone(){return new e(this.object)}}return Tr.Headers=e,Tr}var Xt={},pu;function un(){if(pu)return Xt;pu=1,Object.defineProperty(Xt,"__esModule",{value:!0});const e=mh();class n extends e.Emitter{constructor(){super(),this.aborted=!1,e.once(this,"abort",()=>this.aborted=!0)}}Xt.Signal=n;class o{constructor(){this.signal=new n}abort(){this.signal.emit("abort")}}return Xt.AbortController=o,Xt}var di={},mu;function gh(){return mu||(mu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.kBodyUsed=Symbol("bodyUsed"),e.kBodyDestroyed=Symbol("bodyDestroyed");function n(i){const a=o(i);return a===null?null:(i.$rawBody=e.kBodyUsed,a)}e.useRawBody=n;function o(i){const{$rawBody:a}=i;if(a===e.kBodyUsed)throw new TypeError("Body already used");if(a===e.kBodyDestroyed)throw new TypeError("Body is destroyed");return a}e.getRawBody=o}(di)),di}var gu;function vh(){return gu||(gu=1,function(e){function n(y){for(var g in y)e.hasOwnProperty(g)||(e[g]=y[g])}Object.defineProperty(e,"__esModule",{value:!0});const o=mh(),i=_g(),a=bg(),t=sn(),r=un(),s=gh();n(sn()),n(un());function d(y){const g=new DataView(y);return new TextDecoder("utf-8").decode(g)}function l(y){return new TextEncoder().encode(y)}function f(y){const g=y.getReader();function u(_){return g.read().then(w=>{if(w.done)return _;const v=w.value,E=new Uint8Array(_.byteLength+v.byteLength);return E.set(_,0),E.set(v,_.byteLength),u(E)})}return u(new Uint8Array(0))}class h{constructor(g){const u=g===void 0?null:g;this.$rawBody=u}get bodyUsed(){return this.$rawBody===s.kBodyUsed||this.$rawBody===s.kBodyDestroyed}json(){return this.text().then(g=>JSON.parse(g))}text(){const g=s.useRawBody(this);return g===null?Promise.resolve(""):typeof g=="string"?Promise.resolve(g):g instanceof ArrayBuffer?Promise.resolve(d(g)):f(g).then(d)}arrayBuffer(){const g=s.useRawBody(this);return g===null?Promise.resolve(new ArrayBuffer(0)):g instanceof ArrayBuffer?Promise.resolve(g):typeof g=="string"?Promise.resolve(l(g).buffer):f(g)}readableStream(){const g=s.useRawBody(this);return g===null?new ReadableStream({start(u){u.close()}}):typeof g=="string"?new ReadableStream({start(u){u.enqueue(l(g)),u.close()}}):g instanceof ArrayBuffer?new ReadableStream({start(u){u.enqueue(new Uint8Array(g)),u.close()}}):g}clone(){const g=s.getRawBody(this);if(g instanceof ReadableStream){const[u,_]=g.tee();return this.$rawBody=u,new h(_)}return new h(g)}destroy(){const g=s.getRawBody(this);return this.$rawBody=s.kBodyDestroyed,g instanceof ReadableStream?g.cancel():Promise.resolve()}}e.Body=h;class c extends h{constructor(g,u={}){const _=typeof g=="string"?void 0:g.clone(),w=u.body||(_?s.getRawBody(_):null),v=_&&!u.headers?_.headers:m(w,u.headers,u.omitDefaultHeaders===!0);super(w),this.url=typeof g=="string"?g:g.url,this.method=u.method||_&&_.method||"GET",this.signal=u.signal||_&&_.signal||new r.Signal,this.headers=v,this.trailer=_&&!u.trailer?_.trailer:Promise.resolve(u.trailer).then(E=>new t.Headers(E)),o.once(this.signal,"abort",()=>this.destroy())}clone(){const g=super.clone();return new c(this.url,{body:s.getRawBody(g),headers:this.headers.clone(),omitDefaultHeaders:!0,method:this.method,signal:this.signal,trailer:this.trailer.then(u=>u.clone())})}}e.Request=c;class b extends h{get ok(){return this.status>=200&&this.status<300}constructor(g,u={}){const _=m(g,u.headers,u.omitDefaultHeaders===!0);super(g),this.status=u.status||200,this.statusText=u.statusText||"",this.headers=_,this.trailer=Promise.resolve(u.trailer).then(w=>new t.Headers(w))}clone(){const g=super.clone();return new b(s.getRawBody(g),{status:this.status,statusText:this.statusText,headers:this.headers.clone(),omitDefaultHeaders:!0,trailer:this.trailer.then(u=>u.clone())})}}e.Response=b;function m(y,g,u){const _=new t.Headers(g);if(y==null)return _;if(typeof y=="string")return!u&&!_.has("Content-Type")&&_.set("Content-Type","text/plain"),!u&&!_.has("Content-Length")&&_.set("Content-Length",i.byteLength(y).toString()),_;if(!u&&!_.has("Content-Type")&&_.set("Content-Type","application/octet-stream"),y instanceof ArrayBuffer)return!u&&!_.has("Content-Length")&&_.set("Content-Length",String(y.byteLength)),_;if(y instanceof ReadableStream)return _;throw a.expectType(y),new TypeError("Unknown body type")}}(hi)),hi}var ct={},vu;function wg(){if(vu)return ct;vu=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=vh(),n=gh();class o extends e.Response{constructor(c,b){super(c,b),this.url=b.url}}ct.XhrResponse=o;class i extends Error{constructor(c,b){super(b),this.request=c,this.code="EBLOCKED"}}ct.BlockedRequestError=i;class a extends Error{constructor(c,b){super(b),this.request=c,this.code="EINVALID"}}ct.InvalidRequestError=a;class t extends Error{constructor(c,b){super(b),this.request=c,this.code="EUNAVAILABLE"}}ct.ConnectionError=t;class r extends Error{constructor(c,b){super(b),this.request=c,this.code="ECSP"}}ct.CSPError=r;class s extends Error{constructor(c,b){super(b),this.request=c,this.code="ETYPE"}}ct.TypeError=s;class d extends Error{constructor(c,b){super(b),this.request=c,this.code="EABORT"}}ct.AbortError=d;function l(h={}){return function(c){return new Promise(function(b,m){const y=h.type||"arraybuffer",g=c.method.toUpperCase();if(c.signal.aborted)return m(new d(c,"Request has been aborted"));if(window.location.protocol==="https:"&&c.url.startsWith("http:"))return m(new i(c,`The connection to "${c.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(c.url))return m(new a(c,`Refusing to connect to "${c.url}"`));const u=new XMLHttpRequest;let _=!1;function w(){const E=new o(y==="text"?u.responseText:u.response,{status:u.status===1223?204:u.status,statusText:u.statusText,headers:f(u.getAllResponseHeaders()),omitDefaultHeaders:!0,url:u.responseURL});return c.signal.emit("responseStarted"),c.signal.emit("responseEnded"),b(E)}function v(){return m(new t(c,`Unable to connect to "${c.url}"`))}u.onload=w,u.onabort=w,u.onerror=v,u.onprogress=E=>{c.signal.emit("requestBytes",E.loaded)},g!=="GET"&&g!=="HEAD"&&u.upload&&(_=!0,u.upload.onprogress=E=>{c.signal.emit("responseBytes",E.loaded)},u.upload.onloadend=()=>{c.signal.emit("requestEnded")});try{u.open(g,c.url)}catch{return m(new r(c,`Refused to connect to "${c.url}"`))}if(h.withCredentials&&(u.withCredentials=!0),h.overrideMimeType&&u.overrideMimeType(h.overrideMimeType),y!=="text")try{u.responseType=y}finally{if(u.responseType!==y)return m(new s(c,`Unsupported type: ${y}`))}for(const[E,x]of c.headers.entries())if(Array.isArray(x))for(const O of x)u.setRequestHeader(E,O);else u.setRequestHeader(E,x);c.signal.emit("requestStarted"),_||c.signal.emit("requestEnded"),c.signal.on("abort",()=>u.abort()),u.send(n.useRawBody(c))})}}ct.transport=l;function f(h){const c=[],b=h.split(/\r?\n/);for(const m of b)if(m){const y=m.indexOf(":"),g=m.substr(0,y).trim(),u=m.substr(y+1).trim();c.push([g,u])}return c}return ct}var Qt={},yu;function Bo(){if(yu)return Qt;yu=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.toFetch=void 0;function e(n,o){function i(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...t){const r=t.length===1&&t[0]instanceof o?t[0]:new o(...t);return n(r,i)}}return Qt.toFetch=e,Qt}var _u;function Eg(){return _u||(_u=1,function(e){var n=kt&&kt.__createBinding||(Object.create?function(r,s,d,l){l===void 0&&(l=d),Object.defineProperty(r,l,{enumerable:!0,get:function(){return s[d]}})}:function(r,s,d,l){l===void 0&&(l=d),r[l]=s[d]}),o=kt&&kt.__exportStar||function(r,s){for(var d in r)d!=="default"&&!Object.prototype.hasOwnProperty.call(s,d)&&n(s,r,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.middleware=e.XhrResponse=e.transport=e.Request=void 0;const i=vh();Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return i.Request}});const a=wg();Object.defineProperty(e,"transport",{enumerable:!0,get:function(){return a.transport}}),Object.defineProperty(e,"XhrResponse",{enumerable:!0,get:function(){return a.XhrResponse}});const t=Bo();o(Bo(),e),o(un(),e),o(sn(),e),e.middleware=a.transport(),e.fetch=t.toFetch(e.middleware,i.Request)}(kt)),kt}var bu;function Sg(){return bu||(bu=1,function(e){var n=Pt&&Pt.__createBinding||(Object.create?function(a,t,r,s){s===void 0&&(s=r),Object.defineProperty(a,s,{enumerable:!0,get:function(){return t[r]}})}:function(a,t,r,s){s===void 0&&(s=r),a[s]=t[r]}),o=Pt&&Pt.__exportStar||function(a,t){for(var r in a)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,a,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.middleware=e.fetch=void 0;const i=Eg();o(Bo(),e),o(un(),e),o(sn(),e),e.fetch=i.fetch,e.middleware=i.middleware}(Pt)),Pt}var Ue={},wu;function Ut(){return wu||(wu=1,Ue.endianness=function(){return"LE"},Ue.hostname=function(){return typeof location<"u"?location.hostname:""},Ue.loadavg=function(){return[]},Ue.uptime=function(){return 0},Ue.freemem=function(){return Number.MAX_VALUE},Ue.totalmem=function(){return Number.MAX_VALUE},Ue.cpus=function(){return[]},Ue.type=function(){return"Browser"},Ue.release=function(){return typeof navigator<"u"?navigator.appVersion:""},Ue.networkInterfaces=Ue.getNetworkInterfaces=function(){return{}},Ue.arch=function(){return"javascript"},Ue.platform=function(){return"browser"},Ue.tmpdir=Ue.tmpDir=function(){return"/tmp"},Ue.EOL=`
|
|
80
79
|
`,Ue.homedir=function(){return"/"}),Ue}var pi={},xr={},mi,Eu;function rt(){if(Eu)return mi;Eu=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(m)}function n(m,y,g){return Object.defineProperty(m,"prototype",{writable:!1}),m}function o(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function i(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),y&&h(m,y)}function a(m){var y=l();return function(){var u=c(m),_;if(y){var w=c(this).constructor;_=Reflect.construct(u,arguments,w)}else _=u.apply(this,arguments);return t(this,_)}}function t(m,y){if(y&&(e(y)==="object"||typeof y=="function"))return y;if(y!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(m)}function r(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function s(m){var y=typeof Map=="function"?new Map:void 0;return s=function(u){if(u===null||!f(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof y<"u"){if(y.has(u))return y.get(u);y.set(u,_)}function _(){return d(u,arguments,c(this).constructor)}return _.prototype=Object.create(u.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),h(_,u)},s(m)}function d(m,y,g){return l()?d=Reflect.construct.bind():d=function(_,w,v){var E=[null];E.push.apply(E,w);var x=Function.bind.apply(_,E),O=new x;return v&&h(O,v.prototype),O},d.apply(null,arguments)}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(m){return Function.toString.call(m).indexOf("[native code]")!==-1}function h(m,y){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,_){return u.__proto__=_,u},h(m,y)}function c(m){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},c(m)}var b=function(m){i(g,m);var y=a(g);function g(u){var _;return o(this,g),_=y.call(this,`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
81
80
|
Found: `.concat(u.toString().split(`
|
|
82
81
|
`)[0],`
|
|
83
82
|
`)),Error.captureStackTrace(r(_),g),_}return n(g)}(s(Error));return mi=function(m){if(m.length>2)throw new b(m);function y(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=u}y.prototype.transform=m;function g(u){return new y(u)}return g.Format=y,g},mi}var er={exports:{}},gi={exports:{}},vi={exports:{}},yi={exports:{}},Su;function Rg(){return Su||(Su=1,function(e){var n={};e.exports=n;var o={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(o).forEach(function(i){var a=o[i],t=n[i]=[];t.open="\x1B["+a[0]+"m",t.close="\x1B["+a[1]+"m"})}(yi)),yi.exports}var _i,Ru;function Og(){return Ru||(Ru=1,_i=function(e,n){n=n||ye.argv;var o=n.indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",a=n.indexOf(i+e);return a!==-1&&(o===-1?!0:a<o)}),_i}var bi,Ou;function Tg(){if(Ou)return bi;Ou=1;var e={},n=Ut(),o=Og(),i=e,a=void 0;o("no-color")||o("no-colors")||o("color=false")?a=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=!0),"FORCE_COLOR"in i&&(a=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function t(d){return d===0?!1:{level:d,hasBasic:!0,has256:d>=2,has16m:d>=3}}function r(d){if(a===!1)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(d&&!d.isTTY&&a!==!0)return 0;var l=a?1:0;if(ye.platform==="win32"){var f=n.release().split(".");return Number(ye.versions.node.split(".")[0])>=8&&Number(f[0])>=10&&Number(f[2])>=10586?Number(f[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(c){return c in i})||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in i){var h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM==="dumb",l)}function s(d){var l=r(d);return t(l)}return bi={supportsColor:s,stdout:s(ye.stdout),stderr:s(ye.stderr)},bi}var wi={exports:{}},Tu;function xg(){return Tu||(Tu=1,function(e){e.exports=function(o,i){var a="";o=o||"Run the trap, drop the bass",o=o.split("");var t={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return o.forEach(function(r){r=r.toLowerCase();var s=t[r]||[" "],d=Math.floor(Math.random()*s.length);typeof t[r]<"u"?a+=t[r][d]:a+=r}),a}}(wi)),wi.exports}var Ei={exports:{}},xu;function Ag(){return xu||(xu=1,function(e){e.exports=function(o,i){o=o||" he is here ";var a={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},t=[].concat(a.up,a.down,a.mid);function r(l){var f=Math.floor(Math.random()*l);return f}function s(l){var f=!1;return t.filter(function(h){f=h===l}),f}function d(l,f){var h="",c,b;f=f||{},f.up=typeof f.up<"u"?f.up:!0,f.mid=typeof f.mid<"u"?f.mid:!0,f.down=typeof f.down<"u"?f.down:!0,f.size=typeof f.size<"u"?f.size:"maxi",l=l.split("");for(b in l)if(!s(b)){switch(h=h+l[b],c={up:0,down:0,mid:0},f.size){case"mini":c.up=r(8),c.mid=r(2),c.down=r(8);break;case"maxi":c.up=r(16)+3,c.mid=r(4)+1,c.down=r(64)+3;break;default:c.up=r(8)+1,c.mid=r(6)/2,c.down=r(8)+1;break}var m=["up","mid","down"];for(var y in m)for(var g=m[y],u=0;u<=c[g];u++)f[g]&&(h=h+a[g][r(a[g].length)])}return h}return d(o,i)}}(Ei)),Ei.exports}var Si={exports:{}},Au;function Ig(){return Au||(Au=1,function(e){e.exports=function(n){return function(o,i,a){if(o===" ")return o;switch(i%3){case 0:return n.red(o);case 1:return n.white(o);case 2:return n.blue(o)}}}}(Si)),Si.exports}var Ri={exports:{}},Iu;function Cg(){return Iu||(Iu=1,function(e){e.exports=function(n){return function(o,i,a){return i%2===0?o:n.inverse(o)}}}(Ri)),Ri.exports}var Oi={exports:{}},Cu;function Pg(){return Cu||(Cu=1,function(e){e.exports=function(n){var o=["red","yellow","green","blue","magenta"];return function(i,a,t){return i===" "?i:n[o[a++%o.length]](i)}}}(Oi)),Oi.exports}var Ti={exports:{}},Pu;function kg(){return Pu||(Pu=1,function(e){e.exports=function(n){var o=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,a,t){return i===" "?i:n[o[Math.round(Math.random()*(o.length-2))]](i)}}}(Ti)),Ti.exports}var ku;function jg(){return ku||(ku=1,function(e){var n={};e.exports=n,n.themes={};var o=He(),i=n.styles=Rg(),a=Object.defineProperties,t=new RegExp(/[\r\n]+/g);n.supportsColor=Tg().supportsColor,typeof n.enabled>"u"&&(n.enabled=n.supportsColor()!==!1),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(y){return(""+y).replace(/\x1B\[\d+m/g,"")},n.stylize=function(g,u){if(!n.enabled)return g+"";var _=i[u];return!_&&u in n?n[u](g):_.open+g+_.close};var r=/[|\\{}()[\]^$+*?.]/g,s=function(y){if(typeof y!="string")throw new TypeError("Expected a string");return y.replace(r,"\\$&")};function d(y){var g=function u(){return h.apply(u,arguments)};return g._styles=y,g.__proto__=f,g}var l=function(){var y={};return i.grey=i.gray,Object.keys(i).forEach(function(g){i[g].closeRe=new RegExp(s(i[g].close),"g"),y[g]={get:function(){return d(this._styles.concat(g))}}}),y}(),f=a(function(){},l);function h(){var y=Array.prototype.slice.call(arguments),g=y.map(function(E){return E!=null&&E.constructor===String?E:o.inspect(E)}).join(" ");if(!n.enabled||!g)return g;for(var u=g.indexOf(`
|
|
84
|
-
`)!=-1,_=this._styles,w=_.length;w--;){var v=i[_[w]];g=v.open+g.replace(v.closeRe,v.open)+v.close,u&&(g=g.replace(t,function(E){return v.close+E+v.open}))}return g}n.setTheme=function(y){if(typeof y=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var g in y)(function(u){n[u]=function(_){if(typeof y[u]=="object"){var w=_;for(var v in y[u])w=n[y[u][v]](w);return w}return n[y[u]](_)}})(g)};function c(){var y={};return Object.keys(l).forEach(function(g){y[g]={get:function(){return d([g])}}}),y}var b=function(g,u){var _=u.split("");return _=_.map(g),_.join("")};n.trap=xg(),n.zalgo=Ag(),n.maps={},n.maps.america=Ig()(n),n.maps.zebra=Cg()(n),n.maps.rainbow=Pg()(n),n.maps.random=kg()(n);for(var m in n.maps)(function(y){n[y]=function(g){return b(n.maps[y],g)}})(m);a(n,c())}(vi)),vi.exports}var ju;function
|
|
85
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(m,y){if(m){if(typeof m=="string")return t(m,y);var g=Object.prototype.toString.call(m).slice(8,-1);if(g==="Object"&&m.constructor&&(g=m.constructor.name),g==="Map"||g==="Set")return Array.from(m);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return t(m,y)}}function i(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function a(m){if(Array.isArray(m))return t(m)}function t(m,y){(y==null||y>m.length)&&(y=m.length);for(var g=0,u=new Array(y);g<y;g++)u[g]=m[g];return u}function r(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function s(m,y){for(var g=0;g<y.length;g++){var u=y[g];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function d(m,y,g){return y&&s(m.prototype,y),g&&s(m,g),Object.defineProperty(m,"prototype",{writable:!1}),m}var l=
|
|
86
|
-
`));return!0}return kr.exports=function(){for(var i=arguments.length,a=new Array(i),t=0;t<i;t++)a[t]=arguments[t];var r=e(n(a)),s=r();return s.Format=r.Format,s},kr.exports.cascade=n,kr.exports}var Pi,zu;function Vg(){if(zu)return Pi;zu=1;function e(t,r,s){return r in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t}var n=rt(),o=
|
|
87
|
-
${W}`,
|
|
88
|
-
${W}`);const ve=Math.min(Z.length,V);let me=0;for(;me<ve-1;me++){const Ce=$(me,Z,j,k,F,W);
|
|
89
|
-
${M}`),j.pop(),`[${
|
|
90
|
-
${W}`,K=" ");let ue=Math.min(X,V);h(Z)&&(
|
|
91
|
-
${W}${
|
|
92
|
-
${M}`),j.pop(),`{${
|
|
93
|
-
${W}`,
|
|
94
|
-
${W}`);const X=Math.min(P.length,V);let K=0;for(;K<X-1;K++){const ue=S(K,P[K],j,k,F,W);
|
|
95
|
-
${Z}`),j.pop(),`[${
|
|
96
|
-
${W}`,M=" ");let G="";for(const X of k){const K=S(X,P[X],j,k,F,W);K!==void 0&&(
|
|
97
|
-
${W}${
|
|
98
|
-
${Z}`),j.pop(),`{${
|
|
83
|
+
`)!=-1,_=this._styles,w=_.length;w--;){var v=i[_[w]];g=v.open+g.replace(v.closeRe,v.open)+v.close,u&&(g=g.replace(t,function(E){return v.close+E+v.open}))}return g}n.setTheme=function(y){if(typeof y=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var g in y)(function(u){n[u]=function(_){if(typeof y[u]=="object"){var w=_;for(var v in y[u])w=n[y[u][v]](w);return w}return n[y[u]](_)}})(g)};function c(){var y={};return Object.keys(l).forEach(function(g){y[g]={get:function(){return d([g])}}}),y}var b=function(g,u){var _=u.split("");return _=_.map(g),_.join("")};n.trap=xg(),n.zalgo=Ag(),n.maps={},n.maps.america=Ig()(n),n.maps.zebra=Cg()(n),n.maps.rainbow=Pg()(n),n.maps.random=kg()(n);for(var m in n.maps)(function(y){n[y]=function(g){return b(n.maps[y],g)}})(m);a(n,c())}(vi)),vi.exports}var ju;function yh(){return ju||(ju=1,function(e){var n=jg();e.exports=n}(gi)),gi.exports}var xi={},Ai={},Ar={},Lu;function Lg(){return Lu||(Lu=1,Ar.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},Ar.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}),Ar}var Ir={},qu;function qg(){return qu||(qu=1,Ir.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},Ir.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}),Ir}var Cr={},Nu;function Ng(){return Nu||(Nu=1,Cr.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},Cr.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}),Cr}var Du;function Dg(){return Du||(Du=1,function(e){Object.defineProperty(e,"cli",{value:Lg()}),Object.defineProperty(e,"npm",{value:qg()}),Object.defineProperty(e,"syslog",{value:Ng()})}(Ai)),Ai}var Mu;function Ne(){return Mu||(Mu=1,function(e){Object.defineProperty(e,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(e,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(e,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(e,"configs",{value:Dg()})}(xi)),xi}var Fu;function es(){if(Fu)return er.exports;Fu=1;function e(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}function n(l,f){for(var h=0;h<f.length;h++){var c=f[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function o(l,f,h){return f&&n(l.prototype,f),h&&n(l,h),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=yh(),a=Ne(),t=a.LEVEL,r=a.MESSAGE;i.enabled=!0;var s=/\s+/,d=function(){function l(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,l),f.colors&&this.addColors(f.colors),this.options=f}return o(l,[{key:"addColors",value:function(h){return l.addColors(h)}},{key:"colorize",value:function(h,c,b){if(typeof b>"u"&&(b=c),!Array.isArray(l.allColors[h]))return i[l.allColors[h]](b);for(var m=0,y=l.allColors[h].length;m<y;m++)b=i[l.allColors[h][m]](b);return b}},{key:"transform",value:function(h,c){return c.all&&typeof h[r]=="string"&&(h[r]=this.colorize(h[t],h.level,h[r])),(c.level||c.all||!c.message)&&(h.level=this.colorize(h[t],h.level)),(c.all||c.message)&&(h.message=this.colorize(h[t],h.level,h.message)),h}}],[{key:"addColors",value:function(h){var c=Object.keys(h).reduce(function(b,m){return b[m]=s.test(h[m])?h[m].split(s):h[m],b},{});return l.allColors=Object.assign({},l.allColors||{},c),l.allColors}}]),l}();return er.exports=function(l){return new d(l)},er.exports.Colorizer=er.exports.Format=d,er.exports}var Ii,Bu;function Mg(){if(Bu)return Ii;Bu=1;var e=es(),n=e.Colorizer;return Ii=function(o){return n.addColors(o.colors||o),o},Ii}var Ci,Uu;function Fg(){if(Uu)return Ci;Uu=1;var e=rt();return Ci=e(function(n){return n.message=" ".concat(n.message),n}),Ci}var Pr={exports:{}},tr={exports:{}},Vu;function _h(){if(Vu)return tr.exports;Vu=1;function e(m){return a(m)||i(m)||o(m)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
84
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(m,y){if(m){if(typeof m=="string")return t(m,y);var g=Object.prototype.toString.call(m).slice(8,-1);if(g==="Object"&&m.constructor&&(g=m.constructor.name),g==="Map"||g==="Set")return Array.from(m);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return t(m,y)}}function i(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function a(m){if(Array.isArray(m))return t(m)}function t(m,y){(y==null||y>m.length)&&(y=m.length);for(var g=0,u=new Array(y);g<y;g++)u[g]=m[g];return u}function r(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function s(m,y){for(var g=0;g<y.length;g++){var u=y[g];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function d(m,y,g){return y&&s(m.prototype,y),g&&s(m,g),Object.defineProperty(m,"prototype",{writable:!1}),m}var l=Ne(),f=l.configs,h=l.LEVEL,c=l.MESSAGE,b=function(){function m(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:f.npm.levels};r(this,m),this.paddings=m.paddingForLevels(y.levels,y.filler),this.options=y}return d(m,[{key:"transform",value:function(g,u){return g.message="".concat(this.paddings[g[h]]).concat(g.message),g[c]&&(g[c]="".concat(this.paddings[g[h]]).concat(g[c])),g}}],[{key:"getLongestLevel",value:function(g){var u=Object.keys(g).map(function(_){return _.length});return Math.max.apply(Math,e(u))}},{key:"paddingForLevel",value:function(g,u,_){var w=_+1-g.length,v=Math.floor(w/u.length),E="".concat(u).concat(u.repeat(v));return E.slice(0,w)}},{key:"paddingForLevels",value:function(g){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",_=m.getLongestLevel(g);return Object.keys(g).reduce(function(w,v){return w[v]=m.paddingForLevel(v,u,_),w},{})}}]),m}();return tr.exports=function(m){return new b(m)},tr.exports.Padder=tr.exports.Format=b,tr.exports}var $u;function Bg(){if($u)return Pr.exports;$u=1;function e(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}function n(h,c){for(var b=0;b<c.length;b++){var m=c[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,m.key,m)}}function o(h,c,b){return c&&n(h.prototype,c),Object.defineProperty(h,"prototype",{writable:!1}),h}var i=es(),a=i.Colorizer,t=_h(),r=t.Padder,s=Ne(),d=s.configs,l=s.MESSAGE,f=function(){function h(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,h),c.levels||(c.levels=d.cli.levels),this.colorizer=new a(c),this.padder=new r(c),this.options=c}return o(h,[{key:"transform",value:function(b,m){return this.colorizer.transform(this.padder.transform(b,m),m),b[l]="".concat(b.level,":").concat(b.message),b}}]),h}();return Pr.exports=function(h){return new f(h)},Pr.exports.Format=f,Pr.exports}var kr={exports:{}},Gu;function Ug(){if(Gu)return kr.exports;Gu=1;var e=rt();function n(i){if(i.every(o))return function(a){for(var t=a,r=0;r<i.length;r++)if(t=i[r].transform(t,i[r].options),!t)return!1;return t}}function o(i){if(typeof i.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
|
85
|
+
`));return!0}return kr.exports=function(){for(var i=arguments.length,a=new Array(i),t=0;t<i;t++)a[t]=arguments[t];var r=e(n(a)),s=r();return s.Format=r.Format,s},kr.exports.cascade=n,kr.exports}var Pi,zu;function Vg(){if(zu)return Pi;zu=1;function e(t,r,s){return r in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t}var n=rt(),o=Ne(),i=o.LEVEL,a=o.MESSAGE;return Pi=n(function(t,r){var s=r.stack;if(t instanceof Error){var d,l=Object.assign({},t,(d={level:t.level},e(d,i,t[i]||t.level),e(d,"message",t.message),e(d,a,t[a]||t.message),d));return s&&(l.stack=t.stack),l}if(!(t.message instanceof Error))return t;var f=t.message;return Object.assign(t,f),t.message=f.message,t[a]=f.message,s&&(t.stack=f.stack),t}),Pi}var jr={exports:{}},Hu;function mr(){return Hu||(Hu=1,function(e,n){const{hasOwnProperty:o}=Object.prototype,i=w();i.configure=w,i.stringify=i,i.default=i,n.stringify=i,n.configure=w,e.exports=i;const a=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,t=new RegExp(a,"g"),r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function s(v){if(v.length===2){const x=v.charCodeAt(1);return`${v[0]}\\u${x.toString(16)}`}const E=v.charCodeAt(0);return r.length>E?r[E]:`\\u${E.toString(16)}`}function d(v){if(v.length<5e3&&!a.test(v))return v;if(v.length>100)return v.replace(t,s);let E="",x=0;for(let O=0;O<v.length;O++){const C=v.charCodeAt(O);if(C===34||C===92||C<32)E+=`${v.slice(x,O)}${r[C]}`,x=O+1;else if(C>=55296&&C<=57343){if(C<=56319&&O+1<v.length){const D=v.charCodeAt(O+1);if(D>=56320&&D<=57343){O++;continue}}E+=`${v.slice(x,O)}\\u${C.toString(16)}`,x=O+1}}return E+=v.slice(x),E}function l(v){if(v.length>200)return v.sort();for(let E=1;E<v.length;E++){const x=v[E];let O=E;for(;O!==0&&v[O-1]>x;)v[O]=v[O-1],O--;v[O]=x}return v}const f=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function h(v){return f.call(v)!==void 0&&v.length!==0}function c(v,E,x){v.length<x&&(x=v.length);const O=E===","?"":" ";let C=`"0":${O}${v[0]}`;for(let D=1;D<x;D++)C+=`${E}"${D}":${O}${v[D]}`;return C}function b(v){if(o.call(v,"circularValue")){const E=v.circularValue;if(typeof E=="string")return`"${E}"`;if(E==null)return E;if(E===Error||E===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function m(v,E){let x;if(o.call(v,E)&&(x=v[E],typeof x!="boolean"))throw new TypeError(`The "${E}" argument must be of type boolean`);return x===void 0?!0:x}function y(v,E){let x;if(o.call(v,E)){if(x=v[E],typeof x!="number")throw new TypeError(`The "${E}" argument must be of type number`);if(!Number.isInteger(x))throw new TypeError(`The "${E}" argument must be an integer`);if(x<1)throw new RangeError(`The "${E}" argument must be >= 1`)}return x===void 0?1/0:x}function g(v){return v===1?"1 item":`${v} items`}function u(v){const E=new Set;for(const x of v)(typeof x=="string"||typeof x=="number")&&E.add(String(x));return E}function _(v){if(o.call(v,"strict")){const E=v.strict;if(typeof E!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(E)return x=>{let O=`Object can not safely be stringified. Received type ${typeof x}`;throw typeof x!="function"&&(O+=` (${x.toString()})`),new Error(O)}}}function w(v){v={...v};const E=_(v);E&&(v.bigint===void 0&&(v.bigint=!1),"circularValue"in v||(v.circularValue=Error));const x=b(v),O=m(v,"bigint"),C=m(v,"deterministic"),D=y(v,"maximumDepth"),V=y(v,"maximumBreadth");function $(z,P,j,k,F,W){let Z=P[z];switch(typeof Z=="object"&&Z!==null&&typeof Z.toJSON=="function"&&(Z=Z.toJSON(z)),Z=k.call(P,z,Z),typeof Z){case"string":return`"${d(Z)}"`;case"object":{if(Z===null)return"null";if(j.indexOf(Z)!==-1)return x;let B="",N=",";const M=W;if(Array.isArray(Z)){if(Z.length===0)return"[]";if(D<j.length+1)return'"[Array]"';j.push(Z),F!==""&&(W+=F,B+=`
|
|
86
|
+
${W}`,N=`,
|
|
87
|
+
${W}`);const ve=Math.min(Z.length,V);let me=0;for(;me<ve-1;me++){const Ce=$(me,Z,j,k,F,W);B+=Ce!==void 0?Ce:"null",B+=N}const we=$(me,Z,j,k,F,W);if(B+=we!==void 0?we:"null",Z.length-1>V){const Ce=Z.length-V-1;B+=`${N}"... ${g(Ce)} not stringified"`}return F!==""&&(B+=`
|
|
88
|
+
${M}`),j.pop(),`[${B}]`}let G=Object.keys(Z);const X=G.length;if(X===0)return"{}";if(D<j.length+1)return'"[Object]"';let K="",ae="";F!==""&&(W+=F,N=`,
|
|
89
|
+
${W}`,K=" ");let ue=Math.min(X,V);h(Z)&&(B+=c(Z,N,V),G=G.slice(Z.length),ue-=Z.length,ae=N),C&&(G=l(G)),j.push(Z);for(let ve=0;ve<ue;ve++){const me=G[ve],we=$(me,Z,j,k,F,W);we!==void 0&&(B+=`${ae}"${d(me)}":${K}${we}`,ae=N)}if(X>V){const ve=X-V;B+=`${ae}"...":${K}"${g(ve)} not stringified"`,ae=N}return F!==""&&ae.length>1&&(B=`
|
|
90
|
+
${W}${B}
|
|
91
|
+
${M}`),j.pop(),`{${B}}`}case"number":return isFinite(Z)?String(Z):E?E(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(Z);default:return E?E(Z):void 0}}function S(z,P,j,k,F,W){switch(typeof P=="object"&&P!==null&&typeof P.toJSON=="function"&&(P=P.toJSON(z)),typeof P){case"string":return`"${d(P)}"`;case"object":{if(P===null)return"null";if(j.indexOf(P)!==-1)return x;const Z=W;let B="",N=",";if(Array.isArray(P)){if(P.length===0)return"[]";if(D<j.length+1)return'"[Array]"';j.push(P),F!==""&&(W+=F,B+=`
|
|
92
|
+
${W}`,N=`,
|
|
93
|
+
${W}`);const X=Math.min(P.length,V);let K=0;for(;K<X-1;K++){const ue=S(K,P[K],j,k,F,W);B+=ue!==void 0?ue:"null",B+=N}const ae=S(K,P[K],j,k,F,W);if(B+=ae!==void 0?ae:"null",P.length-1>V){const ue=P.length-V-1;B+=`${N}"... ${g(ue)} not stringified"`}return F!==""&&(B+=`
|
|
94
|
+
${Z}`),j.pop(),`[${B}]`}j.push(P);let M="";F!==""&&(W+=F,N=`,
|
|
95
|
+
${W}`,M=" ");let G="";for(const X of k){const K=S(X,P[X],j,k,F,W);K!==void 0&&(B+=`${G}"${d(X)}":${M}${K}`,G=N)}return F!==""&&G.length>1&&(B=`
|
|
96
|
+
${W}${B}
|
|
97
|
+
${Z}`),j.pop(),`{${B}}`}case"number":return isFinite(P)?String(P):E?E(P):"null";case"boolean":return P===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(P);default:return E?E(P):void 0}}function R(z,P,j,k,F){switch(typeof P){case"string":return`"${d(P)}"`;case"object":{if(P===null)return"null";if(typeof P.toJSON=="function"){if(P=P.toJSON(z),typeof P!="object")return R(z,P,j,k,F);if(P===null)return"null"}if(j.indexOf(P)!==-1)return x;const W=F;if(Array.isArray(P)){if(P.length===0)return"[]";if(D<j.length+1)return'"[Array]"';j.push(P),F+=k;let K=`
|
|
99
98
|
${F}`;const ae=`,
|
|
100
99
|
${F}`,ue=Math.min(P.length,V);let ve=0;for(;ve<ue-1;ve++){const we=R(ve,P[ve],j,k,F);K+=we!==void 0?we:"null",K+=ae}const me=R(ve,P[ve],j,k,F);if(K+=me!==void 0?me:"null",P.length-1>V){const we=P.length-V-1;K+=`${ae}"... ${g(we)} not stringified"`}return K+=`
|
|
101
|
-
${W}`,j.pop(),`[${K}]`}let Z=Object.keys(P);const
|
|
102
|
-
${F}`;let M="",G="",X=Math.min(
|
|
100
|
+
${W}`,j.pop(),`[${K}]`}let Z=Object.keys(P);const B=Z.length;if(B===0)return"{}";if(D<j.length+1)return'"[Object]"';F+=k;const N=`,
|
|
101
|
+
${F}`;let M="",G="",X=Math.min(B,V);h(P)&&(M+=c(P,N,V),Z=Z.slice(P.length),X-=P.length,G=N),C&&(Z=l(Z)),j.push(P);for(let K=0;K<X;K++){const ae=Z[K],ue=R(ae,P[ae],j,k,F);ue!==void 0&&(M+=`${G}"${d(ae)}": ${ue}`,G=N)}if(B>V){const K=B-V;M+=`${G}"...": "${g(K)} not stringified"`,G=N}return G!==""&&(M=`
|
|
103
102
|
${F}${M}
|
|
104
|
-
${W}`),j.pop(),`{${M}}`}case"number":return isFinite(P)?String(P):E?E(P):"null";case"boolean":return P===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(P);default:return E?E(P):void 0}}function L(z,P,j){switch(typeof P){case"string":return`"${d(P)}"`;case"object":{if(P===null)return"null";if(typeof P.toJSON=="function"){if(P=P.toJSON(z),typeof P!="object")return L(z,P,j);if(P===null)return"null"}if(j.indexOf(P)!==-1)return x;let k="";if(Array.isArray(P)){if(P.length===0)return"[]";if(
|
|
105
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(y,g){if(y){if(typeof y=="string")return t(y,g);var u=Object.prototype.toString.call(y).slice(8,-1);if(u==="Object"&&y.constructor&&(u=y.constructor.name),u==="Map"||u==="Set")return Array.from(y);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return t(y,g)}}function i(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function a(y){if(Array.isArray(y))return t(y)}function t(y,g){(g==null||g>y.length)&&(g=y.length);for(var u=0,_=new Array(g);u<g;u++)_[u]=y[u];return _}function r(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function s(y,g){for(var u=0;u<g.length;u++){var _=g[u];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}function d(y,g,u){return g&&s(y.prototype,g),Object.defineProperty(y,"prototype",{writable:!1}),y}var l=He(),f=
|
|
103
|
+
${W}`),j.pop(),`{${M}}`}case"number":return isFinite(P)?String(P):E?E(P):"null";case"boolean":return P===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(P);default:return E?E(P):void 0}}function L(z,P,j){switch(typeof P){case"string":return`"${d(P)}"`;case"object":{if(P===null)return"null";if(typeof P.toJSON=="function"){if(P=P.toJSON(z),typeof P!="object")return L(z,P,j);if(P===null)return"null"}if(j.indexOf(P)!==-1)return x;let k="";if(Array.isArray(P)){if(P.length===0)return"[]";if(D<j.length+1)return'"[Array]"';j.push(P);const N=Math.min(P.length,V);let M=0;for(;M<N-1;M++){const X=L(M,P[M],j);k+=X!==void 0?X:"null",k+=","}const G=L(M,P[M],j);if(k+=G!==void 0?G:"null",P.length-1>V){const X=P.length-V-1;k+=`,"... ${g(X)} not stringified"`}return j.pop(),`[${k}]`}let F=Object.keys(P);const W=F.length;if(W===0)return"{}";if(D<j.length+1)return'"[Object]"';let Z="",B=Math.min(W,V);h(P)&&(k+=c(P,",",V),F=F.slice(P.length),B-=P.length,Z=","),C&&(F=l(F)),j.push(P);for(let N=0;N<B;N++){const M=F[N],G=L(M,P[M],j);G!==void 0&&(k+=`${Z}"${d(M)}":${G}`,Z=",")}if(W>V){const N=W-V;k+=`${Z}"...":"${g(N)} not stringified"`}return j.pop(),`{${k}}`}case"number":return isFinite(P)?String(P):E?E(P):"null";case"boolean":return P===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(P);default:return E?E(P):void 0}}function q(z,P,j){if(arguments.length>1){let k="";if(typeof j=="number"?k=" ".repeat(Math.min(j,10)):typeof j=="string"&&(k=j.slice(0,10)),P!=null){if(typeof P=="function")return $("",{"":z},[],P,k,"");if(Array.isArray(P))return S("",z,[],u(P),k,"")}if(k.length!==0)return R("",z,[],k,"")}return L("",z,[])}return q}}(jr,jr.exports)),jr.exports}var ki,Zu;function $g(){if(Zu)return ki;Zu=1;var e=rt(),n=Ne(),o=n.MESSAGE,i=mr();function a(t,r){return typeof r=="bigint"?r.toString():r}return ki=e(function(t,r){var s=i.configure(r);return t[o]=s(t,r.replacer||a,r.space),t}),ki}var ji,Yu;function Gg(){if(Yu)return ji;Yu=1;var e=rt();return ji=e(function(n,o){return o.message?(n.message="[".concat(o.label,"] ").concat(n.message),n):(n.label=o.label,n)}),ji}var Li,Wu;function zg(){if(Wu)return Li;Wu=1;var e=rt(),n=Ne(),o=n.MESSAGE,i=mr();return Li=e(function(a){var t={};return a.message&&(t["@message"]=a.message,delete a.message),a.timestamp&&(t["@timestamp"]=a.timestamp,delete a.timestamp),t["@fields"]=a,a[o]=i(t),a}),Li}var qi,Ju;function Hg(){if(Ju)return qi;Ju=1;function e(a,t,r){return t in a?Object.defineProperty(a,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[t]=r,a}var n=rt();function o(a,t,r){var s=t.reduce(function(l,f){return l[f]=a[f],delete a[f],l},{}),d=Object.keys(a).reduce(function(l,f){return l[f]=a[f],delete a[f],l},{});return Object.assign(a,s,e({},r,d)),a}function i(a,t,r){return a[r]=t.reduce(function(s,d){return s[d]=a[d],delete a[d],s},{}),a}return qi=n(function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r="metadata";t.key&&(r=t.key);var s=[];return!t.fillExcept&&!t.fillWith&&(s.push("level"),s.push("message")),t.fillExcept&&(s=t.fillExcept),s.length>0?o(a,s,r):t.fillWith?i(a,t.fillWith,r):a}),qi}var Ni,Ku;function bh(){if(Ku)return Ni;Ku=1;var e=1e3,n=e*60,o=n*60,i=o*24,a=i*7,t=i*365.25;Ni=function(f,h){h=h||{};var c=typeof f;if(c==="string"&&f.length>0)return r(f);if(c==="number"&&isFinite(f))return h.long?d(f):s(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function r(f){if(f=String(f),!(f.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(h){var c=parseFloat(h[1]),b=(h[2]||"ms").toLowerCase();switch(b){case"years":case"year":case"yrs":case"yr":case"y":return c*t;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function s(f){var h=Math.abs(f);return h>=i?Math.round(f/i)+"d":h>=o?Math.round(f/o)+"h":h>=n?Math.round(f/n)+"m":h>=e?Math.round(f/e)+"s":f+"ms"}function d(f){var h=Math.abs(f);return h>=i?l(f,h,i,"day"):h>=o?l(f,h,o,"hour"):h>=n?l(f,h,n,"minute"):h>=e?l(f,h,e,"second"):f+" ms"}function l(f,h,c,b){var m=h>=c*1.5;return Math.round(f/c)+" "+b+(m?"s":"")}return Ni}var Di,Xu;function Zg(){if(Xu)return Di;Xu=1;var e=void 0,n=rt(),o=bh();return Di=n(function(i){var a=+new Date;return e.diff=a-(e.prevTime||a),e.prevTime=a,i.ms="+".concat(o(e.diff)),i}),Di}var Mi,Qu;function Yg(){if(Qu)return Mi;Qu=1;var e=He().inspect,n=rt(),o=Ne(),i=o.LEVEL,a=o.MESSAGE,t=o.SPLAT;return Mi=n(function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=Object.assign({},r);return delete d[i],delete d[a],delete d[t],r[a]=e(d,!1,s.depth||null,s.colorize),r}),Mi}var rr={exports:{}},ec;function Wg(){if(ec)return rr.exports;ec=1;function e(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function n(r,s){for(var d=0;d<s.length;d++){var l=s[d];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}function o(r,s,d){return s&&n(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r}var i=Ne(),a=i.MESSAGE,t=function(){function r(s){e(this,r),this.template=s}return o(r,[{key:"transform",value:function(d){return d[a]=this.template(d),d}}]),r}();return rr.exports=function(r){return new t(r)},rr.exports.Printf=rr.exports.Format=t,rr.exports}var Fi,tc;function Jg(){if(tc)return Fi;tc=1;var e=rt(),n=Ne(),o=n.MESSAGE,i=mr();return Fi=e(function(a){var t=i(Object.assign({},a,{level:void 0,message:void 0,splat:void 0})),r=a.padding&&a.padding[a.level]||"";return t!=="{}"?a[o]="".concat(a.level,":").concat(r," ").concat(a.message," ").concat(t):a[o]="".concat(a.level,":").concat(r," ").concat(a.message),a}),Fi}var Bi,rc;function Kg(){if(rc)return Bi;rc=1;function e(y){return a(y)||i(y)||o(y)||n()}function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
104
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(y,g){if(y){if(typeof y=="string")return t(y,g);var u=Object.prototype.toString.call(y).slice(8,-1);if(u==="Object"&&y.constructor&&(u=y.constructor.name),u==="Map"||u==="Set")return Array.from(y);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return t(y,g)}}function i(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function a(y){if(Array.isArray(y))return t(y)}function t(y,g){(g==null||g>y.length)&&(g=y.length);for(var u=0,_=new Array(g);u<g;u++)_[u]=y[u];return _}function r(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function s(y,g){for(var u=0;u<g.length;u++){var _=g[u];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}function d(y,g,u){return g&&s(y.prototype,g),Object.defineProperty(y,"prototype",{writable:!1}),y}var l=He(),f=Ne(),h=f.SPLAT,c=/%[scdjifoO%]/g,b=/%%/g,m=function(){function y(g){r(this,y),this.options=g}return d(y,[{key:"_splat",value:function(u,_){var w=u.message,v=u[h]||u.splat||[],E=w.match(b),x=E&&E.length||0,O=_.length-x,C=O-v.length,D=C<0?v.splice(C,-1*C):[],V=D.length;if(V)for(var $=0;$<V;$++)Object.assign(u,D[$]);return u.message=l.format.apply(l,[w].concat(e(v))),u}},{key:"transform",value:function(u){var _=u.message,w=u[h]||u.splat;if(!w||!w.length)return u;var v=_&&_.match&&_.match(c);if(!v&&(w||w.length)){var E=w.length>1?w.splice(0):w,x=E.length;if(x)for(var O=0;O<x;O++)Object.assign(u,E[O]);return u}return v?this._splat(u,v):u}}]),y}();return Bi=function(y){return new m(y)},Bi}var wh=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,St="\\d\\d?",Et="\\d\\d",Xg="\\d{3}",Qg="\\d{4}",ir="[^\\s]+",Eh=/\[([^]*?)\]/gm;function Sh(e,n){for(var o=[],i=0,a=e.length;i<a;i++)o.push(e[i].substr(0,n));return o}var nc=function(e){return function(n,o){var i=o[e].map(function(t){return t.toLowerCase()}),a=i.indexOf(n.toLowerCase());return a>-1?a:null}};function Tt(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];for(var i=0,a=n;i<a.length;i++){var t=a[i];for(var r in t)e[r]=t[r]}return e}var Rh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Oh=["January","February","March","April","May","June","July","August","September","October","November","December"],ev=Sh(Oh,3),tv=Sh(Rh,3),ts={dayNamesShort:tv,dayNames:Rh,monthNamesShort:ev,monthNames:Oh,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},cn=Tt({},ts),Th=function(e){return cn=Tt(cn,e)},ic=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Qe=function(e,n){for(n===void 0&&(n=2),e=String(e);e.length<n;)e="0"+e;return e},rv={D:function(e){return String(e.getDate())},DD:function(e){return Qe(e.getDate())},Do:function(e,n){return n.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return Qe(e.getDay())},ddd:function(e,n){return n.dayNamesShort[e.getDay()]},dddd:function(e,n){return n.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return Qe(e.getMonth()+1)},MMM:function(e,n){return n.monthNamesShort[e.getMonth()]},MMMM:function(e,n){return n.monthNames[e.getMonth()]},YY:function(e){return Qe(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return Qe(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return Qe(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return Qe(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return Qe(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return Qe(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return Qe(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return Qe(e.getMilliseconds(),3)},a:function(e,n){return e.getHours()<12?n.amPm[0]:n.amPm[1]},A:function(e,n){return e.getHours()<12?n.amPm[0].toUpperCase():n.amPm[1].toUpperCase()},ZZ:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+Qe(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4)},Z:function(e){var n=e.getTimezoneOffset();return(n>0?"-":"+")+Qe(Math.floor(Math.abs(n)/60),2)+":"+Qe(Math.abs(n)%60,2)}},ac=function(e){return+e-1},oc=[null,St],sc=[null,ir],uc=["isPm",ir,function(e,n){var o=e.toLowerCase();return o===n.amPm[0]?0:o===n.amPm[1]?1:null}],cc=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var n=(e+"").match(/([+-]|\d\d)/gi);if(n){var o=+n[1]*60+parseInt(n[2],10);return n[0]==="+"?o:-o}return 0}],nv={D:["day",St],DD:["day",Et],Do:["day",St+ir,function(e){return parseInt(e,10)}],M:["month",St,ac],MM:["month",Et,ac],YY:["year",Et,function(e){var n=new Date,o=+(""+n.getFullYear()).substr(0,2);return+(""+(+e>68?o-1:o)+e)}],h:["hour",St,void 0,"isPm"],hh:["hour",Et,void 0,"isPm"],H:["hour",St],HH:["hour",Et],m:["minute",St],mm:["minute",Et],s:["second",St],ss:["second",Et],YYYY:["year",Qg],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",Et,function(e){return+e*10}],SSS:["millisecond",Xg],d:oc,dd:oc,ddd:sc,dddd:sc,MMM:["month",ir,nc("monthNamesShort")],MMMM:["month",ir,nc("monthNames")],a:uc,A:uc,ZZ:cc,Z:cc},ln={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},xh=function(e){return Tt(ln,e)},Ah=function(e,n,o){if(n===void 0&&(n=ln.default),o===void 0&&(o={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");n=ln[n]||n;var i=[];n=n.replace(Eh,function(t,r){return i.push(r),"@@@"});var a=Tt(Tt({},cn),o);return n=n.replace(wh,function(t){return rv[t](e,a)}),n.replace(/@@@/g,function(){return i.shift()})};function Ih(e,n,o){if(o===void 0&&(o={}),typeof n!="string")throw new Error("Invalid format in fecha parse");if(n=ln[n]||n,e.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},t=[],r=[],s=n.replace(Eh,function(v,E){return r.push(ic(E)),"@@@"}),d={},l={};s=ic(s).replace(wh,function(v){var E=nv[v],x=E[0],O=E[1],C=E[3];if(d[x])throw new Error("Invalid format. "+x+" specified twice in format");return d[x]=!0,C&&(l[C]=!0),t.push(E),"("+O+")"}),Object.keys(l).forEach(function(v){if(!d[v])throw new Error("Invalid format. "+v+" is required in specified format")}),s=s.replace(/@@@/g,function(){return r.shift()});var f=e.match(new RegExp(s,"i"));if(!f)return null;for(var h=Tt(Tt({},cn),o),c=1;c<f.length;c++){var b=t[c-1],m=b[0],y=b[2],g=y?y(f[c],h):+f[c];if(g==null)return null;a[m]=g}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var u;if(a.timezoneOffset==null){u=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],c=0,w=_.length;c<w;c++)if(d[_[c][0]]&&a[_[c][0]]!==u[_[c][1]]())return null}else if(u=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return u}var iv={format:Ah,parse:Ih,defaultI18n:ts,setGlobalDateI18n:Th,setGlobalDateMasks:xh};const av=Object.freeze(Object.defineProperty({__proto__:null,assign:Tt,default:iv,defaultI18n:ts,format:Ah,parse:Ih,setGlobalDateI18n:Th,setGlobalDateMasks:xh},Symbol.toStringTag,{value:"Module"})),ov=Xf(av);var Ui,lc;function sv(){if(lc)return Ui;lc=1;var e=ov,n=rt();return Ui=n(function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.format&&(o.timestamp=typeof i.format=="function"?i.format():e.format(new Date,i.format)),o.timestamp||(o.timestamp=new Date().toISOString()),i.alias&&(o[i.alias]=o.timestamp),o}),Ui}var Vi,fc;function uv(){if(fc)return Vi;fc=1;var e=yh(),n=rt(),o=Ne(),i=o.MESSAGE;return Vi=n(function(a,t){return t.level!==!1&&(a.level=e.strip(a.level)),t.message!==!1&&(a.message=e.strip(String(a.message))),t.raw!==!1&&a[i]&&(a[i]=e.strip(String(a[i]))),a}),Vi}var hc;function Ch(){if(hc)return xr;hc=1;var e=xr.format=rt();return xr.levels=Mg(),Object.defineProperty(e,"align",{value:Fg()}),Object.defineProperty(e,"cli",{value:Bg()}),Object.defineProperty(e,"colorize",{value:es()}),Object.defineProperty(e,"combine",{value:Ug()}),Object.defineProperty(e,"errors",{value:Vg()}),Object.defineProperty(e,"json",{value:$g()}),Object.defineProperty(e,"label",{value:Gg()}),Object.defineProperty(e,"logstash",{value:zg()}),Object.defineProperty(e,"metadata",{value:Hg()}),Object.defineProperty(e,"ms",{value:Zg()}),Object.defineProperty(e,"padLevels",{value:_h()}),Object.defineProperty(e,"prettyPrint",{value:Yg()}),Object.defineProperty(e,"printf",{value:Wg()}),Object.defineProperty(e,"simple",{value:Jg()}),Object.defineProperty(e,"splat",{value:Kg()}),Object.defineProperty(e,"timestamp",{value:sv()}),Object.defineProperty(e,"uncolorize",{value:uv()}),xr}var $i={},dc;function Ph(){return dc||(dc=1,function(e){var n=He(),o=n.format;e.warn={deprecated:function(a){return function(){throw new Error(o("{ %s } was removed in winston@3.0.0.",a))}},useFormat:function(a){return function(){throw new Error([o("{ %s } was removed in winston@3.0.0.",a),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
106
105
|
`))}},forFunctions:function(a,t,r){r.forEach(function(s){a[s]=e.warn[t](s)})},moved:function(a,t,r){function s(){return function(){throw new Error([o("winston.%s was moved in winston@3.0.0.",r),o("Use a winston.%s instead.",t)].join(`
|
|
107
|
-
`))}}Object.defineProperty(a,r,{get:s,set:s})},forProperties:function(a,t,r){r.forEach(function(s){var d=e.warn[t](s);Object.defineProperty(a,s,{get:d,set:d})})}}}($i)),$i}const cv="3.8.2",lv={version:cv};var Gi={},Lr={exports:{}},zi={exports:{}},pc;function fv(){if(pc)return zi.exports;pc=1;var e=He(),n=
|
|
108
|
-
`))},a.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},zi.exports}var mc;function Vt(){if(mc)return Lr.exports;mc=1;var e=He(),n=rm(),o=De(),i=o.LEVEL,a=Lr.exports=function(){var r=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.call(this,{objectMode:!0,highWaterMark:s.highWaterMark}),this.format=s.format,this.level=s.level,this.handleExceptions=s.handleExceptions,this.handleRejections=s.handleRejections,this.silent=s.silent,s.log&&(this.log=s.log),s.logv&&(this.logv=s.logv),s.close&&(this.close=s.close),this.once("pipe",function(d){r.levels=d.levels,r.parent=d}),this.once("unpipe",function(d){d===r.parent&&(r.parent=null,r.close&&r.close())})};return e.inherits(a,n),a.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);var l=this.level||this.parent&&this.parent.level;if(!l||this.levels[l]>=this.levels[r[i]]){if(r&&!this.format)return this.log(r,d);var f=void 0,h=void 0;try{h=this.format.transform(Object.assign({},r),this.format.options)}catch(c){f=c}if(f||!h){if(d(),f)throw f;return}return this.log(h,d)}return this._writableState.sync=!1,d(null)},a.prototype._writev=function(r,s){if(this.logv){var d=r.filter(this._accept,this);return d.length?this.logv(d,s):s(null)}for(var l=0;l<r.length;l++)if(this._accept(r[l])){if(r[l].chunk&&!this.format){this.log(r[l].chunk,r[l].callback);continue}var f=void 0,h=void 0;try{h=this.format.transform(Object.assign({},r[l].chunk),this.format.options)}catch(c){f=c}if(f||!h){if(r[l].callback(),f)throw s(null),f}else this.log(h,r[l].callback)}return s(null)},a.prototype._accept=function(r){var s=r.chunk;if(this.silent)return!1;var d=this.level||this.parent&&this.parent.level;return!!((s.exception===!0||!d||this.levels[d]>=this.levels[s[i]])&&(this.handleExceptions||s.exception!==!0))},a.prototype._nop=function(){},Lr.exports.LegacyTransportStream=fv(),Lr.exports}var Hi,gc;function hv(){if(gc)return Hi;gc=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function o(g,u){for(var _=0;_<u.length;_++){var w=u[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function i(g,u,_){return u&&o(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&t(g,u)}function t(g,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},t(g,u)}function r(g){var u=l();return function(){var w=f(g),v;if(u){var E=f(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return s(this,v)}}function s(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(g){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},f(g)}var h=Ut(),c=De(),b=c.LEVEL,m=c.MESSAGE,y=Vt();return Hi=function(g){a(_,g);var u=r(_);function _(){var w,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(this,_),w=u.call(this,v),w.name=v.name||"console",w.stderrLevels=w._stringArrayToSet(v.stderrLevels),w.consoleWarnLevels=w._stringArrayToSet(v.consoleWarnLevels),w.eol=typeof v.eol=="string"?v.eol:h.EOL,w.setMaxListeners(30),w}return i(_,[{key:"log",value:function(v,E){var x=this;if(setImmediate(function(){return x.emit("logged",v)}),this.stderrLevels[v[b]]){console._stderr?console._stderr.write("".concat(v[m]).concat(this.eol)):console.error(v[m]),E&&E();return}else if(this.consoleWarnLevels[v[b]]){console._stderr?console._stderr.write("".concat(v[m]).concat(this.eol)):console.warn(v[m]),E&&E();return}console._stdout?console._stdout.write("".concat(v[m]).concat(this.eol)):console.log(v[m]),E&&E()}},{key:"_stringArrayToSet",value:function(v,E){if(!v)return{};if(E=E||"Cannot make set from type other than Array of string elements",!Array.isArray(v))throw new Error(E);return v.reduce(function(x,O){if(typeof O!="string")throw new Error(E);return x[O]=!0,x},{})}}]),_}(y),Hi}var Zi,vc;function Lh(){if(vc)return Zi;vc=1;function e(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,t){for(var r="",s=0,d=-1,l=0,f,h=0;h<=a.length;++h){if(h<a.length)f=a.charCodeAt(h);else{if(f===47)break;f=47}if(f===47){if(!(d===h-1||l===1))if(d!==h-1&&l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){c===-1?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf("/")),d=h,l=0;continue}}else if(r.length===2||r.length===1){r="",s=0,d=h,l=0;continue}}t&&(r.length>0?r+="/..":r="..",s=2)}else r.length>0?r+="/"+a.slice(d+1,h):r=a.slice(d+1,h),s=h-d-1;d=h,l=0}else f===46&&l!==-1?++l:l=-1}return r}function o(a,t){var r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+a+s:s}var i={resolve:function(){for(var t="",r=!1,s,d=arguments.length-1;d>=-1&&!r;d--){var l;d>=0?l=arguments[d]:(s===void 0&&(s=ye.cwd()),l=s),e(l),l.length!==0&&(t=l+"/"+t,r=l.charCodeAt(0)===47)}return t=n(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(e(t),t.length===0)return".";var r=t.charCodeAt(0)===47,s=t.charCodeAt(t.length-1)===47;return t=n(t,!r),t.length===0&&!r&&(t="."),t.length>0&&s&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,r=0;r<arguments.length;++r){var s=arguments[r];e(s),s.length>0&&(t===void 0?t=s:t+="/"+s)}return t===void 0?".":i.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r||(t=i.resolve(t),r=i.resolve(r),t===r))return"";for(var s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var d=t.length,l=d-s,f=1;f<r.length&&r.charCodeAt(f)===47;++f);for(var h=r.length,c=h-f,b=l<c?l:c,m=-1,y=0;y<=b;++y){if(y===b){if(c>b){if(r.charCodeAt(f+y)===47)return r.slice(f+y+1);if(y===0)return r.slice(f+y)}else l>b&&(t.charCodeAt(s+y)===47?m=y:y===0&&(m=0));break}var g=t.charCodeAt(s+y),u=r.charCodeAt(f+y);if(g!==u)break;g===47&&(m=y)}var _="";for(y=s+m+1;y<=d;++y)(y===d||t.charCodeAt(y)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+r.slice(f+m):(f+=m,r.charCodeAt(f)===47&&++f,r.slice(f))},_makeLong:function(t){return t},dirname:function(t){if(e(t),t.length===0)return".";for(var r=t.charCodeAt(0),s=r===47,d=-1,l=!0,f=t.length-1;f>=1;--f)if(r=t.charCodeAt(f),r===47){if(!l){d=f;break}}else l=!1;return d===-1?s?"/":".":s&&d===1?"//":t.slice(0,d)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(t);var s=0,d=-1,l=!0,f;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var h=r.length-1,c=-1;for(f=t.length-1;f>=0;--f){var b=t.charCodeAt(f);if(b===47){if(!l){s=f+1;break}}else c===-1&&(l=!1,c=f+1),h>=0&&(b===r.charCodeAt(h)?--h===-1&&(d=f):(h=-1,d=c))}return s===d?d=c:d===-1&&(d=t.length),t.slice(s,d)}else{for(f=t.length-1;f>=0;--f)if(t.charCodeAt(f)===47){if(!l){s=f+1;break}}else d===-1&&(l=!1,d=f+1);return d===-1?"":t.slice(s,d)}},extname:function(t){e(t);for(var r=-1,s=0,d=-1,l=!0,f=0,h=t.length-1;h>=0;--h){var c=t.charCodeAt(h);if(c===47){if(!l){s=h+1;break}continue}d===-1&&(l=!1,d=h+1),c===46?r===-1?r=h:f!==1&&(f=1):r!==-1&&(f=-1)}return r===-1||d===-1||f===0||f===1&&r===d-1&&r===s+1?"":t.slice(r,d)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return o("/",t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var s=t.charCodeAt(0),d=s===47,l;d?(r.root="/",l=1):l=0;for(var f=-1,h=0,c=-1,b=!0,m=t.length-1,y=0;m>=l;--m){if(s=t.charCodeAt(m),s===47){if(!b){h=m+1;break}continue}c===-1&&(b=!1,c=m+1),s===46?f===-1?f=m:y!==1&&(y=1):f!==-1&&(y=-1)}return f===-1||c===-1||y===0||y===1&&f===c-1&&f===h+1?c!==-1&&(h===0&&d?r.base=r.name=t.slice(1,c):r.base=r.name=t.slice(h,c)):(h===0&&d?(r.name=t.slice(1,f),r.base=t.slice(1,c)):(r.name=t.slice(h,f),r.base=t.slice(h,c)),r.ext=t.slice(f,c)),h>0?r.dir=t.slice(0,h-1):d&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,Zi=i,Zi}var qr={exports:{}},Dr={exports:{}},Nr={exports:{}},yc;function rs(){return yc||(yc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return i&&typeof i.length=="number"&&i.length>=0&&i.length%1===0}e.exports=n.default}(Nr,Nr.exports)),Nr.exports}var dt={},Mr={exports:{}},Fr={exports:{}},_c;function dv(){return _c||(_c=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return function(...i){var a=i.pop();return o.call(this,i,a)}},e.exports=n.default}(Fr,Fr.exports)),Fr.exports}var _t={},bc;function pv(){if(bc)return _t;bc=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.fallback=i,_t.wrap=a;var e=_t.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,n=_t.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,o=_t.hasNextTick=typeof ye=="object"&&typeof ye.nextTick=="function";function i(r){setTimeout(r,0)}function a(r){return(s,...d)=>r(()=>s(...d))}var t;return e?t=queueMicrotask:n?t=setImmediate:o?t=ye.nextTick:t=i,_t.default=a(t),_t}var wc;function mv(){return wc||(wc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var o=dv(),i=s(o),a=pv(),t=s(a),r=Zt();function s(h){return h&&h.__esModule?h:{default:h}}function d(h){return(0,r.isAsync)(h)?function(...c){const b=c.pop(),m=h.apply(this,c);return l(m,b)}:(0,i.default)(function(c,b){var m;try{m=h.apply(this,c)}catch(y){return b(y)}if(m&&typeof m.then=="function")return l(m,b);b(null,m)})}function l(h,c){return h.then(b=>{f(c,null,b)},b=>{f(c,b&&b.message?b:new Error(b))})}function f(h,c,b){try{h(c,b)}catch(m){(0,t.default)(y=>{throw y},m)}}e.exports=n.default}(Mr,Mr.exports)),Mr.exports}var Ec;function Zt(){if(Ec)return dt;Ec=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.isAsyncIterable=dt.isAsyncGenerator=dt.isAsync=void 0;var e=mv(),n=o(e);function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return s[Symbol.toStringTag]==="AsyncFunction"}function a(s){return s[Symbol.toStringTag]==="AsyncGenerator"}function t(s){return typeof s[Symbol.asyncIterator]=="function"}function r(s){if(typeof s!="function")throw new Error("expected a function");return i(s)?(0,n.default)(s):s}return dt.default=r,dt.isAsync=i,dt.isAsyncGenerator=a,dt.isAsyncIterable=t,dt}var Br={exports:{}},Sc;function gr(){return Sc||(Sc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i,a=i.length){if(!a)throw new Error("arity is undefined");function t(...r){return typeof r[a-1]=="function"?i.apply(this,r):new Promise((s,d)=>{r[a-1]=(l,...f)=>{if(l)return d(l);s(f.length>1?f:f[0])},i.apply(this,r)})}return t}e.exports=n.default}(Br,Br.exports)),Br.exports}var Rc;function gv(){return Rc||(Rc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=rs(),i=d(o),a=Zt(),t=d(a),r=gr(),s=d(r);function d(l){return l&&l.__esModule?l:{default:l}}n.default=(0,s.default)((l,f,h)=>{var c=(0,i.default)(f)?[]:{};l(f,(b,m,y)=>{(0,t.default)(b)((g,...u)=>{u.length<2&&([u]=u),c[m]=u,y(g)})},b=>h(b,c))},3),e.exports=n.default}(Dr,Dr.exports)),Dr.exports}var Ur={exports:{}},Vr={exports:{}},$r={exports:{}},Gr={exports:{}},Oc;function qh(){return Oc||(Oc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){function a(...t){if(i!==null){var r=i;i=null,r.apply(this,t)}}return Object.assign(a,i),a}e.exports=n.default}(Gr,Gr.exports)),Gr.exports}var zr={exports:{}},Hr={exports:{}},Tc;function vv(){return Tc||(Tc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return o[Symbol.iterator]&&o[Symbol.iterator]()},e.exports=n.default}(Hr,Hr.exports)),Hr.exports}var xc;function yv(){return xc||(xc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var o=rs(),i=r(o),a=vv(),t=r(a);function r(h){return h&&h.__esModule?h:{default:h}}function s(h){var c=-1,b=h.length;return function(){return++c<b?{value:h[c],key:c}:null}}function d(h){var c=-1;return function(){var m=h.next();return m.done?null:(c++,{value:m.value,key:c})}}function l(h){var c=h?Object.keys(h):[],b=-1,m=c.length;return function y(){var g=c[++b];return g==="__proto__"?y():b<m?{value:h[g],key:g}:null}}function f(h){if((0,i.default)(h))return s(h);var c=(0,t.default)(h);return c?d(c):l(h)}e.exports=n.default}(zr,zr.exports)),zr.exports}var Zr={exports:{}},Ac;function Dh(){return Ac||(Ac=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return function(...a){if(i===null)throw new Error("Callback was already called.");var t=i;i=null,t.apply(this,a)}}e.exports=n.default}(Zr,Zr.exports)),Zr.exports}var Yr={exports:{}},Wr={exports:{}},Ic;function ns(){return Ic||(Ic=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});const o={};n.default=o,e.exports=n.default}(Wr,Wr.exports)),Wr.exports}var Cc;function _v(){return Cc||(Cc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;var o=ns(),i=a(o);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,s,d,l){let f=!1,h=!1,c=!1,b=0,m=0;function y(){b>=s||c||f||(c=!0,r.next().then(({value:_,done:w})=>{if(!(h||f)){if(c=!1,w){f=!0,b<=0&&l(null);return}b++,d(_,m,g),m++,y()}}).catch(u))}function g(_,w){if(b-=1,!h){if(_)return u(_);if(_===!1){f=!0,h=!0;return}if(w===i.default||f&&b<=0)return f=!0,l(null);y()}}function u(_){h||(c=!1,f=!0,l(_))}y()}e.exports=n.default}(Yr,Yr.exports)),Yr.exports}var Pc;function bv(){return Pc||(Pc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=qh(),i=b(o),a=yv(),t=b(a),r=Dh(),s=b(r),d=Zt(),l=_v(),f=b(l),h=ns(),c=b(h);function b(m){return m&&m.__esModule?m:{default:m}}n.default=m=>(y,g,u)=>{if(u=(0,i.default)(u),m<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!y)return u(null);if((0,d.isAsyncGenerator)(y))return(0,f.default)(y,m,g,u);if((0,d.isAsyncIterable)(y))return(0,f.default)(y[Symbol.asyncIterator](),m,g,u);var _=(0,t.default)(y),w=!1,v=!1,E=0,x=!1;function O(N,V){if(!v)if(E-=1,N)w=!0,u(N);else if(N===!1)w=!0,v=!0;else{if(V===c.default||w&&E<=0)return w=!0,u(null);x||C()}}function C(){for(x=!0;E<m&&!w;){var N=_();if(N===null){w=!0,E<=0&&u(null);return}E+=1,g(N.value,N.key,(0,s.default)(O))}x=!1}C()},e.exports=n.default}($r,$r.exports)),$r.exports}var kc;function Nh(){return kc||(kc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=bv(),i=d(o),a=Zt(),t=d(a),r=gr(),s=d(r);function d(f){return f&&f.__esModule?f:{default:f}}function l(f,h,c,b){return(0,i.default)(h)(f,(0,t.default)(c),b)}n.default=(0,s.default)(l,4),e.exports=n.default}(Vr,Vr.exports)),Vr.exports}var jc;function wv(){return jc||(jc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=Nh(),i=r(o),a=gr(),t=r(a);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,l,f){return(0,i.default)(d,1,l,f)}n.default=(0,t.default)(s,3),e.exports=n.default}(Ur,Ur.exports)),Ur.exports}var Lc;function Ev(){return Lc||(Lc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var o=gv(),i=r(o),a=wv(),t=r(a);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,l){return(0,i.default)(t.default,d,l)}e.exports=n.default}(qr,qr.exports)),qr.exports}var Yi={},Wi={},qc;function Sv(){return qc||(qc=1,function(e){var n=or(),o=lm(),i=cm(),a=dm(),t=pm();for(var r in t)e[r]=t[r];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;var s=31,d=139;function l(f){if(typeof f!="number"||f<e.DEFLATE||f>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=f,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,n(this.init_done,"close before init"),n(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?i.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&a.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},l.prototype.write=function(f,h,c,b,m,y,g){return this._write(!0,f,h,c,b,m,y,g)},l.prototype.writeSync=function(f,h,c,b,m,y,g){return this._write(!1,f,h,c,b,m,y,g)},l.prototype._write=function(f,h,c,b,m,y,g,u){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==e.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,h===void 0,"must provide flush value"),this.write_in_progress=!0,h!==e.Z_NO_FLUSH&&h!==e.Z_PARTIAL_FLUSH&&h!==e.Z_SYNC_FLUSH&&h!==e.Z_FULL_FLUSH&&h!==e.Z_FINISH&&h!==e.Z_BLOCK)throw new Error("Invalid flush value");if(c==null&&(c=et.alloc(0),m=0,b=0),this.strm.avail_in=m,this.strm.input=c,this.strm.next_in=b,this.strm.avail_out=u,this.strm.output=y,this.strm.next_out=g,this.flush=h,!f)return this._process(),this._checkError()?this._afterSync():void 0;var _=this;return ye.nextTick(function(){_._process(),_._after()}),this},l.prototype._afterSync=function(){var f=this.strm.avail_out,h=this.strm.avail_in;return this.write_in_progress=!1,[h,f]},l.prototype._process=function(){var f=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(f=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(f===null)break;if(this.strm.input[f]===s){if(this.gzip_id_bytes_read=1,f++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(f===null)break;this.strm.input[f]===d?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var f=this.strm.avail_out,h=this.strm.avail_in;this.write_in_progress=!1,this.callback(h,f),this.pending_close&&this.close()}},l.prototype._error=function(f){this.strm.msg&&(f=this.strm.msg),this.onerror(f,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(f,h,c,b,m){n(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(f>=8&&f<=15,"invalid windowBits"),n(h>=-1&&h<=9,"invalid compression level"),n(c>=1&&c<=9,"invalid memlevel"),n(b===e.Z_FILTERED||b===e.Z_HUFFMAN_ONLY||b===e.Z_RLE||b===e.Z_FIXED||b===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(h,f,c,b,m),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(f,h,c,b,m){switch(this.level=f,this.windowBits=h,this.memLevel=c,this.strategy=b,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=m,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=i.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=i.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=l}(Wi)),Wi}var Dc;function Rv(){return Dc||(Dc=1,function(e){var n=ar().Buffer,o=gn().Transform,i=Sv(),a=He(),t=or().ok,r=ar().kMaxLength,s="Cannot create final Buffer. It would be larger than 0x"+r.toString(16)+" bytes";i.Z_MIN_WINDOWBITS=8,i.Z_MAX_WINDOWBITS=15,i.Z_DEFAULT_WINDOWBITS=15,i.Z_MIN_CHUNK=64,i.Z_MAX_CHUNK=1/0,i.Z_DEFAULT_CHUNK=16*1024,i.Z_MIN_MEMLEVEL=1,i.Z_MAX_MEMLEVEL=9,i.Z_DEFAULT_MEMLEVEL=8,i.Z_MIN_LEVEL=-1,i.Z_MAX_LEVEL=9,i.Z_DEFAULT_LEVEL=i.Z_DEFAULT_COMPRESSION;for(var d=Object.keys(i),l=0;l<d.length;l++){var f=d[l];f.match(/^Z/)&&Object.defineProperty(e,f,{enumerable:!0,value:i[f],writable:!1})}for(var h={Z_OK:i.Z_OK,Z_STREAM_END:i.Z_STREAM_END,Z_NEED_DICT:i.Z_NEED_DICT,Z_ERRNO:i.Z_ERRNO,Z_STREAM_ERROR:i.Z_STREAM_ERROR,Z_DATA_ERROR:i.Z_DATA_ERROR,Z_MEM_ERROR:i.Z_MEM_ERROR,Z_BUF_ERROR:i.Z_BUF_ERROR,Z_VERSION_ERROR:i.Z_VERSION_ERROR},c=Object.keys(h),b=0;b<c.length;b++){var m=c[b];h[h[m]]=m}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),e.Deflate=u,e.Inflate=_,e.Gzip=w,e.Gunzip=v,e.DeflateRaw=E,e.InflateRaw=x,e.Unzip=O,e.createDeflate=function(S){return new u(S)},e.createInflate=function(S){return new _(S)},e.createDeflateRaw=function(S){return new E(S)},e.createInflateRaw=function(S){return new x(S)},e.createGzip=function(S){return new w(S)},e.createGunzip=function(S){return new v(S)},e.createUnzip=function(S){return new O(S)},e.deflate=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new u(R),S,L)},e.deflateSync=function(S,R){return g(new u(R),S)},e.gzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new w(R),S,L)},e.gzipSync=function(S,R){return g(new w(R),S)},e.deflateRaw=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new E(R),S,L)},e.deflateRawSync=function(S,R){return g(new E(R),S)},e.unzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new O(R),S,L)},e.unzipSync=function(S,R){return g(new O(R),S)},e.inflate=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new _(R),S,L)},e.inflateSync=function(S,R){return g(new _(R),S)},e.gunzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new v(R),S,L)},e.gunzipSync=function(S,R){return g(new v(R),S)},e.inflateRaw=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new x(R),S,L)},e.inflateRawSync=function(S,R){return g(new x(R),S)};function y(S,R,L){var q=[],z=0;S.on("error",j),S.on("end",k),S.end(R),P();function P(){for(var F;(F=S.read())!==null;)q.push(F),z+=F.length;S.once("readable",P)}function j(F){S.removeListener("end",k),S.removeListener("readable",P),L(F)}function k(){var F,W=null;z>=r?W=new RangeError(s):F=n.concat(q,z),q=[],S.close(),L(W,F)}}function g(S,R){if(typeof R=="string"&&(R=n.from(R)),!n.isBuffer(R))throw new TypeError("Not a string or buffer");var L=S._finishFlushFlag;return S._processChunk(R,L)}function u(S){if(!(this instanceof u))return new u(S);N.call(this,S,i.DEFLATE)}function _(S){if(!(this instanceof _))return new _(S);N.call(this,S,i.INFLATE)}function w(S){if(!(this instanceof w))return new w(S);N.call(this,S,i.GZIP)}function v(S){if(!(this instanceof v))return new v(S);N.call(this,S,i.GUNZIP)}function E(S){if(!(this instanceof E))return new E(S);N.call(this,S,i.DEFLATERAW)}function x(S){if(!(this instanceof x))return new x(S);N.call(this,S,i.INFLATERAW)}function O(S){if(!(this instanceof O))return new O(S);N.call(this,S,i.UNZIP)}function C(S){return S===i.Z_NO_FLUSH||S===i.Z_PARTIAL_FLUSH||S===i.Z_SYNC_FLUSH||S===i.Z_FULL_FLUSH||S===i.Z_FINISH||S===i.Z_BLOCK}function N(S,R){var L=this;if(this._opts=S=S||{},this._chunkSize=S.chunkSize||e.Z_DEFAULT_CHUNK,o.call(this,S),S.flush&&!C(S.flush))throw new Error("Invalid flush flag: "+S.flush);if(S.finishFlush&&!C(S.finishFlush))throw new Error("Invalid flush flag: "+S.finishFlush);if(this._flushFlag=S.flush||i.Z_NO_FLUSH,this._finishFlushFlag=typeof S.finishFlush<"u"?S.finishFlush:i.Z_FINISH,S.chunkSize&&(S.chunkSize<e.Z_MIN_CHUNK||S.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+S.chunkSize);if(S.windowBits&&(S.windowBits<e.Z_MIN_WINDOWBITS||S.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+S.windowBits);if(S.level&&(S.level<e.Z_MIN_LEVEL||S.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+S.level);if(S.memLevel&&(S.memLevel<e.Z_MIN_MEMLEVEL||S.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+S.memLevel);if(S.strategy&&S.strategy!=e.Z_FILTERED&&S.strategy!=e.Z_HUFFMAN_ONLY&&S.strategy!=e.Z_RLE&&S.strategy!=e.Z_FIXED&&S.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+S.strategy);if(S.dictionary&&!n.isBuffer(S.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new i.Zlib(R);var q=this;this._hadError=!1,this._handle.onerror=function(j,k){V(q),q._hadError=!0;var F=new Error(j);F.errno=k,F.code=e.codes[k],q.emit("error",F)};var z=e.Z_DEFAULT_COMPRESSION;typeof S.level=="number"&&(z=S.level);var P=e.Z_DEFAULT_STRATEGY;typeof S.strategy=="number"&&(P=S.strategy),this._handle.init(S.windowBits||e.Z_DEFAULT_WINDOWBITS,z,S.memLevel||e.Z_DEFAULT_MEMLEVEL,P,S.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=z,this._strategy=P,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!L._handle},configurable:!0,enumerable:!0})}a.inherits(N,o),N.prototype.params=function(S,R,L){if(S<e.Z_MIN_LEVEL||S>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+S);if(R!=e.Z_FILTERED&&R!=e.Z_HUFFMAN_ONLY&&R!=e.Z_RLE&&R!=e.Z_FIXED&&R!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+R);if(this._level!==S||this._strategy!==R){var q=this;this.flush(i.Z_SYNC_FLUSH,function(){t(q._handle,"zlib binding closed"),q._handle.params(S,R),q._hadError||(q._level=S,q._strategy=R,L&&L())})}else ye.nextTick(L)},N.prototype.reset=function(){return t(this._handle,"zlib binding closed"),this._handle.reset()},N.prototype._flush=function(S){this._transform(n.alloc(0),"",S)},N.prototype.flush=function(S,R){var L=this,q=this._writableState;(typeof S=="function"||S===void 0&&!R)&&(R=S,S=i.Z_FULL_FLUSH),q.ended?R&&ye.nextTick(R):q.ending?R&&this.once("end",R):q.needDrain?R&&this.once("drain",function(){return L.flush(S,R)}):(this._flushFlag=S,this.write(n.alloc(0),"",R))},N.prototype.close=function(S){V(this,S),ye.nextTick($,this)};function V(S,R){R&&ye.nextTick(R),S._handle&&(S._handle.close(),S._handle=null)}function $(S){S.emit("close")}N.prototype._transform=function(S,R,L){var q,z=this._writableState,P=z.ending||z.ended,j=P&&(!S||z.length===S.length);if(S!==null&&!n.isBuffer(S))return L(new Error("invalid input"));if(!this._handle)return L(new Error("zlib binding closed"));j?q=this._finishFlushFlag:(q=this._flushFlag,S.length>=z.length&&(this._flushFlag=this._opts.flush||i.Z_NO_FLUSH)),this._processChunk(S,q,L)},N.prototype._processChunk=function(S,R,L){var q=S&&S.length,z=this._chunkSize-this._offset,P=0,j=this,k=typeof L=="function";if(!k){var F=[],W=0,Z;this.on("error",function(X){Z=X}),t(this._handle,"zlib binding closed");do var U=this._handle.writeSync(R,S,P,q,this._buffer,this._offset,z);while(!this._hadError&&G(U[0],U[1]));if(this._hadError)throw Z;if(W>=r)throw V(this),new RangeError(s);var D=n.concat(F,W);return V(this),D}t(this._handle,"zlib binding closed");var M=this._handle.write(R,S,P,q,this._buffer,this._offset,z);M.buffer=S,M.callback=G;function G(X,K){if(this&&(this.buffer=null,this.callback=null),!j._hadError){var ae=z-K;if(t(ae>=0,"have should not go down"),ae>0){var ue=j._buffer.slice(j._offset,j._offset+ae);j._offset+=ae,k?j.push(ue):(F.push(ue),W+=ue.length)}if((K===0||j._offset>=j._chunkSize)&&(z=j._chunkSize,j._offset=0,j._buffer=n.allocUnsafe(j._chunkSize)),K===0){if(P+=q-X,q=X,!k)return!0;var ve=j._handle.write(R,S,P,q,j._buffer,j._offset,j._chunkSize);ve.callback=G,ve.buffer=S;return}if(!k)return!1;L()}}},a.inherits(u,N),a.inherits(_,N),a.inherits(w,N),a.inherits(v,N),a.inherits(E,N),a.inherits(x,N),a.inherits(O,N)}(Yi)),Yi}var Ji={exports:{}},Ki,Nc;function Ov(){if(Nc)return Ki;Nc=1;var e=[],n=[],o=function(){};function i(c){return~e.indexOf(c)?!1:(e.push(c),!0)}function a(c){o=c}function t(c){for(var b=[],m=0;m<e.length;m++){if(e[m].async){b.push(e[m]);continue}if(e[m](c))return!0}return b.length?new Promise(function(g){Promise.all(b.map(function(_){return _(c)})).then(function(_){g(_.some(Boolean))})}):!1}function r(c){return~n.indexOf(c)?!1:(n.push(c),!0)}function s(){o.apply(o,arguments)}function d(c){for(var b=0;b<n.length;b++)c=n[b].apply(n[b],arguments);return c}function l(c,b){var m=Object.prototype.hasOwnProperty;for(var y in b)m.call(b,y)&&(c[y]=b[y]);return c}function f(c){return c.enabled=!1,c.modify=r,c.set=a,c.use=i,l(function(){return!1},c)}function h(c){function b(){var m=Array.prototype.slice.call(arguments,0);return s.call(s,c,d(m,c)),!0}return c.enabled=!0,c.modify=r,c.set=a,c.use=i,l(b,c)}return Ki=function(b){return b.introduce=l,b.enabled=t,b.process=d,b.modify=r,b.write=s,b.nope=f,b.yep=h,b.set=a,b.use=i,b},Ki}var Xi,Mc;function Tv(){if(Mc)return Xi;Mc=1;var e=Ov(),n=e(function o(i,a){return a=a||{},a.namespace=i,a.prod=!0,a.dev=!1,a.force||o.force?o.yep(a):o.nope(a)});return Xi=n,Xi}var Fc;function _n(){return Fc||(Fc=1,Ji.exports=Tv()),Ji.exports}var Qi,Bc;function xv(){if(Bc)return Qi;Bc=1;var e=Ko(),n=nm(),o=n.StringDecoder,i=dr(),a=i.Stream;function t(){}return Qi=function(r,s){var d=et.alloc(65536),l=new o("utf8"),f=new a,h="",c=0,b=0;return r.start===-1&&delete r.start,f.readable=!0,f.destroy=function(){f.destroyed=!0,f.emit("end"),f.emit("close")},e.open(r.file,"a+","0644",function(m,y){if(m){s?s(m):f.emit("error",m),f.destroy();return}(function g(){if(f.destroyed){e.close(y,t);return}return e.read(y,d,0,d.length,c,function(u,_){if(u){s?s(u):f.emit("error",u),f.destroy();return}if(!_)return h&&((r.start==null||b>r.start)&&(s?s(null,h):f.emit("line",h)),b++,h=""),setTimeout(g,1e3);var w=l.write(d.slice(0,_));s||f.emit("data",w),w=(h+w).split(/\n+/);for(var v=w.length-1,E=0;E<v;E++)(r.start==null||b>r.start)&&(s?s(null,w[E]):f.emit("line",w[E])),b++;return h=w[v],c+=_,g()})})()}),s?f.destroy:f},Qi}var ea,Uc;function Av(){if(Uc)return ea;Uc=1;function e(C){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},e(C)}function n(C,N){if(!(C instanceof N))throw new TypeError("Cannot call a class as a function")}function o(C,N){for(var V=0;V<N.length;V++){var $=N[V];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(C,$.key,$)}}function i(C,N,V){return N&&o(C.prototype,N),Object.defineProperty(C,"prototype",{writable:!1}),C}function a(C,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(N&&N.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),N&&t(C,N)}function t(C,N){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,S){return $.__proto__=S,$},t(C,N)}function r(C){var N=l();return function(){var $=f(C),S;if(N){var R=f(this).constructor;S=Reflect.construct($,arguments,R)}else S=$.apply(this,arguments);return s(this,S)}}function s(C,N){if(N&&(e(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(C)}function d(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(C){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},f(C)}var h=Ko(),c=Lh(),b=Ev(),m=Rv(),y=De(),g=y.MESSAGE,u=dr(),_=u.Stream,w=u.PassThrough,v=Vt(),E=_n()("winston:file"),x=Ut(),O=xv();return ea=function(C){a(V,C);var N=r(V);function V(){var $,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,V),$=N.call(this,S),$.name=S.name||"file";function R(L){for(var q=arguments.length,z=new Array(q>1?q-1:0),P=1;P<q;P++)z[P-1]=arguments[P];z.slice(1).forEach(function(j){if(S[j])throw new Error("Cannot set ".concat(j," and ").concat(L," together"))})}if($._stream=new w,$._stream.setMaxListeners(30),$._onError=$._onError.bind(d($)),S.filename||S.dirname)R("filename or dirname","stream"),$._basename=$.filename=S.filename?c.basename(S.filename):"winston.log",$.dirname=S.dirname||c.dirname(S.filename),$.options=S.options||{flags:"a"};else if(S.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),R("stream","filename","maxsize"),$._dest=$._stream.pipe($._setupStream(S.stream)),$.dirname=c.dirname($._dest.path);else throw new Error("Cannot log to file without filename or stream.");return $.maxsize=S.maxsize||null,$.rotationFormat=S.rotationFormat||!1,$.zippedArchive=S.zippedArchive||!1,$.maxFiles=S.maxFiles||null,$.eol=typeof S.eol=="string"?S.eol:x.EOL,$.tailable=S.tailable||!1,$._size=0,$._pendingSize=0,$._created=0,$._drain=!1,$._opening=!1,$._ending=!1,$.dirname&&$._createLogDirIfNotExist($.dirname),$.open(),$}return i(V,[{key:"finishIfEnding",value:function(){var S=this;this._ending&&(this._opening?this.once("open",function(){S._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})}):(this._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})))}},{key:"log",value:function(S){var R=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return L(),!0;if(this._drain){this._stream.once("drain",function(){R._drain=!1,R.log(S,L)});return}if(this._rotate){this._stream.once("rotate",function(){R._rotate=!1,R.log(S,L)});return}var q="".concat(S[g]).concat(this.eol),z=et.byteLength(q);function P(){var k=this;this._size+=z,this._pendingSize-=z,E("logged %s %s",this._size,q),this.emit("logged",S),!this._opening&&this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return k._rotateFile()}))}this._pendingSize+=z,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var j=this._stream.write(q,P.bind(this));return j?L():(this._drain=!0,this._stream.once("drain",function(){R._drain=!1,L()})),E("written",j,this._drain),this.finishIfEnding(),j}},{key:"query",value:function(S,R){typeof S=="function"&&(R=S,S={}),S=Z(S);var L=c.join(this.dirname,this.filename),q="",z=[],P=0,j=h.createReadStream(L,{encoding:"utf8"});j.on("error",function(U){if(j.readable&&j.destroy(),!!R)return U.code!=="ENOENT"?R(U):R(null,z)}),j.on("data",function(U){U=(q+U).split(/\n+/);for(var D=U.length-1,M=0;M<D;M++)(!S.start||P>=S.start)&&k(U[M]),P++;q=U[D]}),j.on("close",function(){q&&k(q,!0),S.order==="desc"&&(z=z.reverse()),R&&R(null,z)});function k(U,D){try{var M=JSON.parse(U);W(M)&&F(M)}catch(G){D||j.emit("error",G)}}function F(U){if(S.rows&&z.length>=S.rows&&S.order!=="desc"){j.readable&&j.destroy();return}S.fields&&(U=S.fields.reduce(function(D,M){return D[M]=U[M],D},{})),S.order==="desc"&&z.length>=S.rows&&z.shift(),z.push(U)}function W(U){if(U&&e(U)==="object"){var D=new Date(U.timestamp);if(!(S.from&&D<S.from||S.until&&D>S.until||S.level&&S.level!==U.level))return!0}}function Z(U){return U=U||{},U.rows=U.rows||U.limit||10,U.start=U.start||0,U.until=U.until||new Date,e(U.until)!=="object"&&(U.until=new Date(U.until)),U.from=U.from||U.until-24*60*60*1e3,e(U.from)!=="object"&&(U.from=new Date(U.from)),U.order=U.order||"desc",U}}},{key:"stream",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=c.join(this.dirname,this.filename),L=new _,q={file:R,start:S.start};return L.destroy=O(q,function(z,P){if(z)return L.emit("error",z);try{L.emit("data",P),P=JSON.parse(P),L.emit("log",P)}catch(j){L.emit("error",j)}}),L}},{key:"open",value:function(){var S=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(R,L){if(R)return S.emit("error",R);E("stat done: %s { size: %s }",S.filename,L),S._size=L,S._dest=S._createStream(S._stream),S._opening=!1,S.once("open",function(){S._stream.eventNames().includes("rotate")?S._stream.emit("rotate"):S._rotate=!1})})))}},{key:"stat",value:function(S){var R=this,L=this._getFile(),q=c.join(this.dirname,L);h.stat(q,function(z,P){if(z&&z.code==="ENOENT")return E("ENOENT ok",q),R.filename=L,S(null,0);if(z)return E("err ".concat(z.code," ").concat(q)),S(z);if(!P||R._needsNewFile(P.size))return R._incFile(function(){return R.stat(S)});R.filename=L,S(null,P.size)})}},{key:"close",value:function(S){var R=this;this._stream&&this._stream.end(function(){S&&S(),R.emit("flush"),R.emit("closed")})}},{key:"_needsNewFile",value:function(S){return S=S||this._size,this.maxsize&&S>=this.maxsize}},{key:"_onError",value:function(S){this.emit("error",S)}},{key:"_setupStream",value:function(S){return S.on("error",this._onError),S}},{key:"_cleanupStream",value:function(S){return S.removeListener("error",this._onError),S}},{key:"_rotateFile",value:function(){var S=this;this._incFile(function(){return S.open()})}},{key:"_endStream",value:function(){var S=this,R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){S._cleanupStream(S._dest),R()})):R()}},{key:"_createStream",value:function(S){var R=this,L=c.join(this.dirname,this.filename);E("create stream start",L,this.options);var q=h.createWriteStream(L,this.options).on("error",function(P){return E(P)}).on("close",function(){return E("close",q.path,q.bytesWritten)}).on("open",function(){E("file open ok",L),R.emit("open",L),S.pipe(q),R.rotatedWhileOpening&&(R._stream=new w,R._stream.setMaxListeners(30),R._rotateFile(),R.rotatedWhileOpening=!1,R._cleanupStream(q),S.end())});if(E("create stream ok",L),this.zippedArchive){var z=m.createGzip();return z.pipe(q),z}return q}},{key:"_incFile",value:function(S){E("_incFile",this.filename);var R=c.extname(this._basename),L=c.basename(this._basename,R);this.tailable?this._checkMaxFilesTailable(R,L,S):(this._created+=1,this._checkMaxFilesIncrementing(R,L,S))}},{key:"_getFile",value:function(){var S=c.extname(this._basename),R=c.basename(this._basename,S),L=this.rotationFormat?this.rotationFormat():this._created,q=!this.tailable&&this._created?"".concat(R).concat(L).concat(S):"".concat(R).concat(S);return this.zippedArchive&&!this.tailable?"".concat(q,".gz"):q}},{key:"_checkMaxFilesIncrementing",value:function(S,R,L){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(L);var q=this._created-this.maxFiles,z=q!==0?q:"",P=this.zippedArchive?".gz":"",j="".concat(R).concat(z).concat(S).concat(P),k=c.join(this.dirname,j);h.unlink(k,L)}},{key:"_checkMaxFilesTailable",value:function(S,R,L){var q=this,z=[];if(this.maxFiles){for(var P=this.zippedArchive?".gz":"",j=this.maxFiles-1;j>1;j--)z.push((function(k,F){var W=this,Z="".concat(R).concat(k-1).concat(S).concat(P),U=c.join(this.dirname,Z);h.exists(U,function(D){if(!D)return F(null);Z="".concat(R).concat(k).concat(S).concat(P),h.rename(U,c.join(W.dirname,Z),F)})}).bind(this,j));b(z,function(){h.rename(c.join(q.dirname,"".concat(R).concat(S)),c.join(q.dirname,"".concat(R,"1").concat(S).concat(P)),L)})}}},{key:"_createLogDirIfNotExist",value:function(S){h.existsSync(S)||h.mkdirSync(S,{recursive:!0})}}]),V}(v),ea}var ta,Vc;function Iv(){if(Vc)return ta;Vc=1;function e(v){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},e(v)}function n(v,E){var x=Object.keys(v);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(v);E&&(O=O.filter(function(C){return Object.getOwnPropertyDescriptor(v,C).enumerable})),x.push.apply(x,O)}return x}function o(v){for(var E=1;E<arguments.length;E++){var x=arguments[E]!=null?arguments[E]:{};E%2?n(Object(x),!0).forEach(function(O){i(v,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(O){Object.defineProperty(v,O,Object.getOwnPropertyDescriptor(x,O))})}return v}function i(v,E,x){return E in v?Object.defineProperty(v,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):v[E]=x,v}function a(v,E){if(!(v instanceof E))throw new TypeError("Cannot call a class as a function")}function t(v,E){for(var x=0;x<E.length;x++){var O=E[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(v,O.key,O)}}function r(v,E,x){return E&&t(v.prototype,E),Object.defineProperty(v,"prototype",{writable:!1}),v}function s(v,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(E&&E.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),E&&d(v,E)}function d(v,E){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,C){return O.__proto__=C,O},d(v,E)}function l(v){var E=c();return function(){var O=b(v),C;if(E){var N=b(this).constructor;C=Reflect.construct(O,arguments,N)}else C=O.apply(this,arguments);return f(this,C)}}function f(v,E){if(E&&(e(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(v)}function h(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(v){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},b(v)}var m=am(),y=om(),g=dr(),u=g.Stream,_=Vt(),w=mr();return ta=function(v){s(x,v);var E=l(x);function x(){var O,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a(this,x),O=E.call(this,C),O.options=C,O.name=C.name||"http",O.ssl=!!C.ssl,O.host=C.host||"localhost",O.port=C.port,O.auth=C.auth,O.path=C.path||"",O.agent=C.agent,O.headers=C.headers||{},O.headers["content-type"]="application/json",O.batch=C.batch||!1,O.batchInterval=C.batchInterval||5e3,O.batchCount=C.batchCount||10,O.batchOptions=[],O.batchTimeoutID=-1,O.batchCallback={},O.port||(O.port=O.ssl?443:80),O}return r(x,[{key:"log",value:function(C,N){var V=this;this._request(C,function($,S){S&&S.statusCode!==200&&($=new Error("Invalid HTTP Status Code: ".concat(S.statusCode))),$?V.emit("warn",$):V.emit("logged",C)}),N&&setImmediate(N)}},{key:"query",value:function(C,N){typeof C=="function"&&(N=C,C={}),C={method:"query",params:this.normalizeQuery(C)},C.params.path&&(C.path=C.params.path,delete C.params.path),C.params.auth&&(C.auth=C.params.auth,delete C.params.auth),this._request(C,function(V,$,S){if($&&$.statusCode!==200&&(V=new Error("Invalid HTTP Status Code: ".concat($.statusCode))),V)return N(V);if(typeof S=="string")try{S=JSON.parse(S)}catch(R){return N(R)}N(null,S)})}},{key:"stream",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=new u;C={method:"stream",params:C},C.params.path&&(C.path=C.params.path,delete C.params.path),C.params.auth&&(C.auth=C.params.auth,delete C.params.auth);var V="",$=this._request(C);return N.destroy=function(){return $.destroy()},$.on("data",function(S){S=(V+S).split(/\n+/);for(var R=S.length-1,L=0;L<R;L++)try{N.emit("log",JSON.parse(S[L]))}catch(q){N.emit("error",q)}V=S[R]}),$.on("error",function(S){return N.emit("error",S)}),N}},{key:"_request",value:function(C,N){C=C||{};var V=C.auth||this.auth,$=C.path||this.path||"";delete C.auth,delete C.path,this.batch?this._doBatch(C,N,V,$):this._doRequest(C,N,V,$)}},{key:"_doBatch",value:function(C,N,V,$){if(this.batchOptions.push(C),this.batchOptions.length===1){var S=this;this.batchCallback=N,this.batchTimeoutID=setTimeout(function(){S.batchTimeoutID=-1,S._doBatchRequest(S.batchCallback,V,$)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,V,$)}},{key:"_doBatchRequest",value:function(C,N,V){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var $=this.batchOptions.slice();this.batchOptions=[],this._doRequest($,C,N,V)}},{key:"_doRequest",value:function(C,N,V,$){var S=Object.assign({},this.headers);V&&V.bearer&&(S.Authorization="Bearer ".concat(V.bearer));var R=(this.ssl?y:m).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat($.replace(/^\//,"")),headers:S,auth:V&&V.username&&V.password?"".concat(V.username,":").concat(V.password):"",agent:this.agent}));R.on("error",N),R.on("response",function(L){return L.on("end",function(){return N(null,L)}).resume()}),R.end(et.from(w(C,this.options.replacer),"utf8"))}}]),x}(_),ta}var ra,$c;function Mh(){if($c)return ra;$c=1;const e=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";return e.writable=n=>e(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",e.readable=n=>e(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",e.duplex=n=>e.writable(n)&&e.readable(n),e.transform=n=>e.duplex(n)&&typeof n._transform=="function",ra=e,ra}var na,Gc;function Cv(){if(Gc)return na;Gc=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function o(g,u){for(var _=0;_<u.length;_++){var w=u[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function i(g,u,_){return u&&o(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&t(g,u)}function t(g,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},t(g,u)}function r(g){var u=l();return function(){var w=f(g),v;if(u){var E=f(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return s(this,v)}}function s(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(g){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},f(g)}var h=Mh(),c=De(),b=c.MESSAGE,m=Ut(),y=Vt();return na=function(g){a(_,g);var u=r(_);function _(){var w,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(n(this,_),w=u.call(this,v),!v.stream||!h(v.stream))throw new Error("options.stream is required.");return w._stream=v.stream,w._stream.setMaxListeners(1/0),w.isObjectMode=v.stream._writableState.objectMode,w.eol=typeof v.eol=="string"?v.eol:m.EOL,w}return i(_,[{key:"log",value:function(v,E){var x=this;if(setImmediate(function(){return x.emit("logged",v)}),this.isObjectMode){this._stream.write(v),E&&E();return}this._stream.write("".concat(v[b]).concat(this.eol)),E&&E()}}]),_}(y),na}var zc;function Pv(){return zc||(zc=1,function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return hv()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return Av()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return Iv()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return Cv()}})}(Gi)),Gi}var Gt={},Hc;function is(){if(Hc)return Gt;Hc=1;var e=kh(),n=De(),o=n.configs;return Gt.cli=e.levels(o.cli),Gt.npm=e.levels(o.npm),Gt.syslog=e.levels(o.syslog),Gt.addColors=e.levels,Gt}var Jr={exports:{}},Kr={exports:{}},Zc;function kv(){return Zc||(Zc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=rs(),i=g(o),a=ns(),t=g(a),r=Nh(),s=g(r),d=qh(),l=g(d),f=Dh(),h=g(f),c=Zt(),b=g(c),m=gr(),y=g(m);function g(v){return v&&v.__esModule?v:{default:v}}function u(v,E,x){x=(0,l.default)(x);var O=0,C=0,{length:N}=v,V=!1;N===0&&x(null);function $(S,R){S===!1&&(V=!0),V!==!0&&(S?x(S):(++C===N||R===t.default)&&x(null))}for(;O<N;O++)E(v[O],O,(0,h.default)($))}function _(v,E,x){return(0,s.default)(v,1/0,E,x)}function w(v,E,x){var O=(0,i.default)(v)?u:_;return O(v,(0,b.default)(E),x)}n.default=(0,y.default)(w,3),e.exports=n.default}(Kr,Kr.exports)),Kr.exports}var Xr={exports:{}},Yc;function jv(){return Yc||(Yc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return(a,t,r)=>i(a,r)}e.exports=n.default}(Xr,Xr.exports)),Xr.exports}var Wc;function as(){return Wc||(Wc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=kv(),i=f(o),a=jv(),t=f(a),r=Zt(),s=f(r),d=gr(),l=f(d);function f(c){return c&&c.__esModule?c:{default:c}}function h(c,b,m){return(0,i.default)(c,(0,t.default)((0,s.default)(b)),m)}n.default=(0,l.default)(h,3),e.exports=n.default}(Jr,Jr.exports)),Jr.exports}var ia,Jc;function Lv(){if(Jc)return ia;Jc=1;var e=Object.prototype.toString;return ia=function(o){if(typeof o.displayName=="string"&&o.constructor.name)return o.displayName;if(typeof o.name=="string"&&o.name)return o.name;if(typeof o=="object"&&o.constructor&&typeof o.constructor.name=="string")return o.constructor.name;var i=o.toString(),a=e.call(o).slice(8,-1);return a==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=a,i||"anonymous"},ia}var aa,Kc;function Fh(){if(Kc)return aa;Kc=1;var e=Lv();return aa=function(o){var i=0,a;function t(){return i||(i=1,a=o.apply(this,arguments),o=null),a}return t.displayName=e(o),t},aa}var oa={},Xc;function Bh(){return Xc||(Xc=1,function(e){e.get=function(a){var t=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},s=Error.prepareStackTrace;Error.prepareStackTrace=function(l,f){return f},Error.captureStackTrace(r,a||e.get);var d=r.stack;return Error.prepareStackTrace=s,Error.stackTraceLimit=t,d},e.parse=function(a){if(!a.stack)return[];var t=this,r=a.stack.split(`
|
|
109
|
-
`).slice(1);return r.map(function(s){if(s.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:s,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var d=s.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(d){var l=null,f=null,h=null,c=null,b=null,m=d[5]==="native";if(d[1]){h=d[1];var y=h.lastIndexOf(".");if(h[y-1]=="."&&y--,y>0){l=h.substr(0,y),f=h.substr(y+1);var g=l.indexOf(".Module");g>0&&(h=h.substr(g+1),l=l.substr(0,g))}c=null}f&&(c=l,b=f),f==="<anonymous>"&&(b=null,h=null);var u={fileName:d[2]||null,lineNumber:parseInt(d[3],10)||null,functionName:h,typeName:c,methodName:b,columnNumber:parseInt(d[4],10)||null,native:m};return t._createParsedCallSite(u)}}).filter(function(s){return!!s})};function n(a){for(var t in a)this[t]=a[t]}var o=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],i=["topLevel","eval","native","constructor"];o.forEach(function(a){n.prototype[a]=null,n.prototype["get"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),i.forEach(function(a){n.prototype[a]=!1,n.prototype["is"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),e._createParsedCallSite=function(a){return new n(a)}}(oa)),oa}var sa,Qc;function
|
|
110
|
-
`),stack:h.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(h)}}},{key:"getProcessInfo",value:function(){return{pid:ye.pid,uid:ye.getuid?ye.getuid():null,gid:ye.getgid?ye.getgid():null,cwd:ye.cwd(),execPath:ye.execPath,version:ye.version,argv:ye.argv,memoryUsage:ye.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(h){var c=h?s.parse(h):s.get();return c.map(function(b){return{column:b.getColumnNumber(),file:b.getFileName(),function:b.getFunctionName(),line:b.getLineNumber(),method:b.getMethodName(),native:b.isNative()}})}},{key:"_addHandler",value:function(h){if(!this.handlers.has(h)){h.handleExceptions=!0;var c=new d(h);this.handlers.set(h,c),this.logger.pipe(c)}}},{key:"_uncaughtException",value:function(h){var c=this.getAllInfo(h),b=this._getExceptionHandlers(),m=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(h):this.logger.exitOnError,y;!b.length&&m&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),m=!1);function g(){t("doExit",m),t("process._exiting",ye._exiting),m&&!ye._exiting&&(y&&clearTimeout(y),ye.exit(1))}if(!b||b.length===0)return ye.nextTick(g);a(b,function(u,_){var w=r(_),v=u.transport||u;function E(x){return function(){t(x),w()}}v._ending=!0,v.once("finish",E("finished")),v.once("error",E("error"))},function(){return m&&g()}),this.logger.log(c),m&&(y=setTimeout(g,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(h){var c=h.transport||h;return c.handleExceptions})}}]),l}(),ua}var ca,tl;function
|
|
111
|
-
`),stack:h&&h.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(h)}}},{key:"getProcessInfo",value:function(){return{pid:ye.pid,uid:ye.getuid?ye.getuid():null,gid:ye.getgid?ye.getgid():null,cwd:ye.cwd(),execPath:ye.execPath,version:ye.version,argv:ye.argv,memoryUsage:ye.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(h){var c=h?s.parse(h):s.get();return c.map(function(b){return{column:b.getColumnNumber(),file:b.getFileName(),function:b.getFunctionName(),line:b.getLineNumber(),method:b.getMethodName(),native:b.isNative()}})}},{key:"_addHandler",value:function(h){if(!this.handlers.has(h)){h.handleRejections=!0;var c=new d(h);this.handlers.set(h,c),this.logger.pipe(c)}}},{key:"_unhandledRejection",value:function(h){var c=this.getAllInfo(h),b=this._getRejectionHandlers(),m=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(h):this.logger.exitOnError,y;!b.length&&m&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),m=!1);function g(){t("doExit",m),t("process._exiting",ye._exiting),m&&!ye._exiting&&(y&&clearTimeout(y),ye.exit(1))}if(!b||b.length===0)return ye.nextTick(g);a(b,function(u,_){var w=r(_),v=u.transport||u;function E(x){return function(){t(x),w()}}v._ending=!0,v.once("finish",E("finished")),v.once("error",E("error"))},function(){return m&&g()}),this.logger.log(c),m&&(y=setTimeout(g,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(h){var c=h.transport||h;return c.handleRejections})}}]),l}(),ca}var la={exports:{}},rl;function qv(){if(rl)return la.exports;rl=1;const e=He(),{LEVEL:n}=
|
|
112
|
-
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},la.exports}var fa,nl;function
|
|
106
|
+
`))}}Object.defineProperty(a,r,{get:s,set:s})},forProperties:function(a,t,r){r.forEach(function(s){var d=e.warn[t](s);Object.defineProperty(a,s,{get:d,set:d})})}}}($i)),$i}const cv="3.8.2",lv={version:cv};var Gi={},Lr={exports:{}},zi={exports:{}},pc;function fv(){if(pc)return zi.exports;pc=1;var e=He(),n=Ne(),o=n.LEVEL,i=Vt(),a=zi.exports=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(i.call(this,r),!r.transport||typeof r.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=r.transport,this.level=this.level||r.transport.level,this.handleExceptions=this.handleExceptions||r.transport.handleExceptions,this._deprecated();function s(d){this.emit("error",d,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=s.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(a,i),a.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);(!this.level||this.levels[this.level]>=this.levels[r[o]])&&this.transport.log(r[o],r.message,r,this._nop),d(null)},a.prototype._writev=function(r,s){for(var d=0;d<r.length;d++)this._accept(r[d])&&(this.transport.log(r[d].chunk[o],r[d].chunk.message,r[d].chunk,this._nop),r[d].callback());return s(null)},a.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
107
|
+
`))},a.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},zi.exports}var mc;function Vt(){if(mc)return Lr.exports;mc=1;var e=He(),n=rm(),o=Ne(),i=o.LEVEL,a=Lr.exports=function(){var r=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.call(this,{objectMode:!0,highWaterMark:s.highWaterMark}),this.format=s.format,this.level=s.level,this.handleExceptions=s.handleExceptions,this.handleRejections=s.handleRejections,this.silent=s.silent,s.log&&(this.log=s.log),s.logv&&(this.logv=s.logv),s.close&&(this.close=s.close),this.once("pipe",function(d){r.levels=d.levels,r.parent=d}),this.once("unpipe",function(d){d===r.parent&&(r.parent=null,r.close&&r.close())})};return e.inherits(a,n),a.prototype._write=function(r,s,d){if(this.silent||r.exception===!0&&!this.handleExceptions)return d(null);var l=this.level||this.parent&&this.parent.level;if(!l||this.levels[l]>=this.levels[r[i]]){if(r&&!this.format)return this.log(r,d);var f=void 0,h=void 0;try{h=this.format.transform(Object.assign({},r),this.format.options)}catch(c){f=c}if(f||!h){if(d(),f)throw f;return}return this.log(h,d)}return this._writableState.sync=!1,d(null)},a.prototype._writev=function(r,s){if(this.logv){var d=r.filter(this._accept,this);return d.length?this.logv(d,s):s(null)}for(var l=0;l<r.length;l++)if(this._accept(r[l])){if(r[l].chunk&&!this.format){this.log(r[l].chunk,r[l].callback);continue}var f=void 0,h=void 0;try{h=this.format.transform(Object.assign({},r[l].chunk),this.format.options)}catch(c){f=c}if(f||!h){if(r[l].callback(),f)throw s(null),f}else this.log(h,r[l].callback)}return s(null)},a.prototype._accept=function(r){var s=r.chunk;if(this.silent)return!1;var d=this.level||this.parent&&this.parent.level;return!!((s.exception===!0||!d||this.levels[d]>=this.levels[s[i]])&&(this.handleExceptions||s.exception!==!0))},a.prototype._nop=function(){},Lr.exports.LegacyTransportStream=fv(),Lr.exports}var Hi,gc;function hv(){if(gc)return Hi;gc=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function o(g,u){for(var _=0;_<u.length;_++){var w=u[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function i(g,u,_){return u&&o(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&t(g,u)}function t(g,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},t(g,u)}function r(g){var u=l();return function(){var w=f(g),v;if(u){var E=f(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return s(this,v)}}function s(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(g){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},f(g)}var h=Ut(),c=Ne(),b=c.LEVEL,m=c.MESSAGE,y=Vt();return Hi=function(g){a(_,g);var u=r(_);function _(){var w,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(this,_),w=u.call(this,v),w.name=v.name||"console",w.stderrLevels=w._stringArrayToSet(v.stderrLevels),w.consoleWarnLevels=w._stringArrayToSet(v.consoleWarnLevels),w.eol=typeof v.eol=="string"?v.eol:h.EOL,w.setMaxListeners(30),w}return i(_,[{key:"log",value:function(v,E){var x=this;if(setImmediate(function(){return x.emit("logged",v)}),this.stderrLevels[v[b]]){console._stderr?console._stderr.write("".concat(v[m]).concat(this.eol)):console.error(v[m]),E&&E();return}else if(this.consoleWarnLevels[v[b]]){console._stderr?console._stderr.write("".concat(v[m]).concat(this.eol)):console.warn(v[m]),E&&E();return}console._stdout?console._stdout.write("".concat(v[m]).concat(this.eol)):console.log(v[m]),E&&E()}},{key:"_stringArrayToSet",value:function(v,E){if(!v)return{};if(E=E||"Cannot make set from type other than Array of string elements",!Array.isArray(v))throw new Error(E);return v.reduce(function(x,O){if(typeof O!="string")throw new Error(E);return x[O]=!0,x},{})}}]),_}(y),Hi}var Zi,vc;function kh(){if(vc)return Zi;vc=1;function e(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function n(a,t){for(var r="",s=0,d=-1,l=0,f,h=0;h<=a.length;++h){if(h<a.length)f=a.charCodeAt(h);else{if(f===47)break;f=47}if(f===47){if(!(d===h-1||l===1))if(d!==h-1&&l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){c===-1?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf("/")),d=h,l=0;continue}}else if(r.length===2||r.length===1){r="",s=0,d=h,l=0;continue}}t&&(r.length>0?r+="/..":r="..",s=2)}else r.length>0?r+="/"+a.slice(d+1,h):r=a.slice(d+1,h),s=h-d-1;d=h,l=0}else f===46&&l!==-1?++l:l=-1}return r}function o(a,t){var r=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+s:r+a+s:s}var i={resolve:function(){for(var t="",r=!1,s,d=arguments.length-1;d>=-1&&!r;d--){var l;d>=0?l=arguments[d]:(s===void 0&&(s=ye.cwd()),l=s),e(l),l.length!==0&&(t=l+"/"+t,r=l.charCodeAt(0)===47)}return t=n(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(e(t),t.length===0)return".";var r=t.charCodeAt(0)===47,s=t.charCodeAt(t.length-1)===47;return t=n(t,!r),t.length===0&&!r&&(t="."),t.length>0&&s&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,r=0;r<arguments.length;++r){var s=arguments[r];e(s),s.length>0&&(t===void 0?t=s:t+="/"+s)}return t===void 0?".":i.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r||(t=i.resolve(t),r=i.resolve(r),t===r))return"";for(var s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var d=t.length,l=d-s,f=1;f<r.length&&r.charCodeAt(f)===47;++f);for(var h=r.length,c=h-f,b=l<c?l:c,m=-1,y=0;y<=b;++y){if(y===b){if(c>b){if(r.charCodeAt(f+y)===47)return r.slice(f+y+1);if(y===0)return r.slice(f+y)}else l>b&&(t.charCodeAt(s+y)===47?m=y:y===0&&(m=0));break}var g=t.charCodeAt(s+y),u=r.charCodeAt(f+y);if(g!==u)break;g===47&&(m=y)}var _="";for(y=s+m+1;y<=d;++y)(y===d||t.charCodeAt(y)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+r.slice(f+m):(f+=m,r.charCodeAt(f)===47&&++f,r.slice(f))},_makeLong:function(t){return t},dirname:function(t){if(e(t),t.length===0)return".";for(var r=t.charCodeAt(0),s=r===47,d=-1,l=!0,f=t.length-1;f>=1;--f)if(r=t.charCodeAt(f),r===47){if(!l){d=f;break}}else l=!1;return d===-1?s?"/":".":s&&d===1?"//":t.slice(0,d)},basename:function(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(t);var s=0,d=-1,l=!0,f;if(r!==void 0&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var h=r.length-1,c=-1;for(f=t.length-1;f>=0;--f){var b=t.charCodeAt(f);if(b===47){if(!l){s=f+1;break}}else c===-1&&(l=!1,c=f+1),h>=0&&(b===r.charCodeAt(h)?--h===-1&&(d=f):(h=-1,d=c))}return s===d?d=c:d===-1&&(d=t.length),t.slice(s,d)}else{for(f=t.length-1;f>=0;--f)if(t.charCodeAt(f)===47){if(!l){s=f+1;break}}else d===-1&&(l=!1,d=f+1);return d===-1?"":t.slice(s,d)}},extname:function(t){e(t);for(var r=-1,s=0,d=-1,l=!0,f=0,h=t.length-1;h>=0;--h){var c=t.charCodeAt(h);if(c===47){if(!l){s=h+1;break}continue}d===-1&&(l=!1,d=h+1),c===46?r===-1?r=h:f!==1&&(f=1):r!==-1&&(f=-1)}return r===-1||d===-1||f===0||f===1&&r===d-1&&r===s+1?"":t.slice(r,d)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return o("/",t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var s=t.charCodeAt(0),d=s===47,l;d?(r.root="/",l=1):l=0;for(var f=-1,h=0,c=-1,b=!0,m=t.length-1,y=0;m>=l;--m){if(s=t.charCodeAt(m),s===47){if(!b){h=m+1;break}continue}c===-1&&(b=!1,c=m+1),s===46?f===-1?f=m:y!==1&&(y=1):f!==-1&&(y=-1)}return f===-1||c===-1||y===0||y===1&&f===c-1&&f===h+1?c!==-1&&(h===0&&d?r.base=r.name=t.slice(1,c):r.base=r.name=t.slice(h,c)):(h===0&&d?(r.name=t.slice(1,f),r.base=t.slice(1,c)):(r.name=t.slice(h,f),r.base=t.slice(h,c)),r.ext=t.slice(f,c)),h>0?r.dir=t.slice(0,h-1):d&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,Zi=i,Zi}var qr={exports:{}},Nr={exports:{}},Dr={exports:{}},yc;function rs(){return yc||(yc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return i&&typeof i.length=="number"&&i.length>=0&&i.length%1===0}e.exports=n.default}(Dr,Dr.exports)),Dr.exports}var dt={},Mr={exports:{}},Fr={exports:{}},_c;function dv(){return _c||(_c=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return function(...i){var a=i.pop();return o.call(this,i,a)}},e.exports=n.default}(Fr,Fr.exports)),Fr.exports}var _t={},bc;function pv(){if(bc)return _t;bc=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.fallback=i,_t.wrap=a;var e=_t.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,n=_t.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,o=_t.hasNextTick=typeof ye=="object"&&typeof ye.nextTick=="function";function i(r){setTimeout(r,0)}function a(r){return(s,...d)=>r(()=>s(...d))}var t;return e?t=queueMicrotask:n?t=setImmediate:o?t=ye.nextTick:t=i,_t.default=a(t),_t}var wc;function mv(){return wc||(wc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var o=dv(),i=s(o),a=pv(),t=s(a),r=Zt();function s(h){return h&&h.__esModule?h:{default:h}}function d(h){return(0,r.isAsync)(h)?function(...c){const b=c.pop(),m=h.apply(this,c);return l(m,b)}:(0,i.default)(function(c,b){var m;try{m=h.apply(this,c)}catch(y){return b(y)}if(m&&typeof m.then=="function")return l(m,b);b(null,m)})}function l(h,c){return h.then(b=>{f(c,null,b)},b=>{f(c,b&&b.message?b:new Error(b))})}function f(h,c,b){try{h(c,b)}catch(m){(0,t.default)(y=>{throw y},m)}}e.exports=n.default}(Mr,Mr.exports)),Mr.exports}var Ec;function Zt(){if(Ec)return dt;Ec=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.isAsyncIterable=dt.isAsyncGenerator=dt.isAsync=void 0;var e=mv(),n=o(e);function o(s){return s&&s.__esModule?s:{default:s}}function i(s){return s[Symbol.toStringTag]==="AsyncFunction"}function a(s){return s[Symbol.toStringTag]==="AsyncGenerator"}function t(s){return typeof s[Symbol.asyncIterator]=="function"}function r(s){if(typeof s!="function")throw new Error("expected a function");return i(s)?(0,n.default)(s):s}return dt.default=r,dt.isAsync=i,dt.isAsyncGenerator=a,dt.isAsyncIterable=t,dt}var Br={exports:{}},Sc;function gr(){return Sc||(Sc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i,a=i.length){if(!a)throw new Error("arity is undefined");function t(...r){return typeof r[a-1]=="function"?i.apply(this,r):new Promise((s,d)=>{r[a-1]=(l,...f)=>{if(l)return d(l);s(f.length>1?f:f[0])},i.apply(this,r)})}return t}e.exports=n.default}(Br,Br.exports)),Br.exports}var Rc;function gv(){return Rc||(Rc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=rs(),i=d(o),a=Zt(),t=d(a),r=gr(),s=d(r);function d(l){return l&&l.__esModule?l:{default:l}}n.default=(0,s.default)((l,f,h)=>{var c=(0,i.default)(f)?[]:{};l(f,(b,m,y)=>{(0,t.default)(b)((g,...u)=>{u.length<2&&([u]=u),c[m]=u,y(g)})},b=>h(b,c))},3),e.exports=n.default}(Nr,Nr.exports)),Nr.exports}var Ur={exports:{}},Vr={exports:{}},$r={exports:{}},Gr={exports:{}},Oc;function jh(){return Oc||(Oc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){function a(...t){if(i!==null){var r=i;i=null,r.apply(this,t)}}return Object.assign(a,i),a}e.exports=n.default}(Gr,Gr.exports)),Gr.exports}var zr={exports:{}},Hr={exports:{}},Tc;function vv(){return Tc||(Tc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return o[Symbol.iterator]&&o[Symbol.iterator]()},e.exports=n.default}(Hr,Hr.exports)),Hr.exports}var xc;function yv(){return xc||(xc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var o=rs(),i=r(o),a=vv(),t=r(a);function r(h){return h&&h.__esModule?h:{default:h}}function s(h){var c=-1,b=h.length;return function(){return++c<b?{value:h[c],key:c}:null}}function d(h){var c=-1;return function(){var m=h.next();return m.done?null:(c++,{value:m.value,key:c})}}function l(h){var c=h?Object.keys(h):[],b=-1,m=c.length;return function y(){var g=c[++b];return g==="__proto__"?y():b<m?{value:h[g],key:g}:null}}function f(h){if((0,i.default)(h))return s(h);var c=(0,t.default)(h);return c?d(c):l(h)}e.exports=n.default}(zr,zr.exports)),zr.exports}var Zr={exports:{}},Ac;function Lh(){return Ac||(Ac=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return function(...a){if(i===null)throw new Error("Callback was already called.");var t=i;i=null,t.apply(this,a)}}e.exports=n.default}(Zr,Zr.exports)),Zr.exports}var Yr={exports:{}},Wr={exports:{}},Ic;function ns(){return Ic||(Ic=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});const o={};n.default=o,e.exports=n.default}(Wr,Wr.exports)),Wr.exports}var Cc;function _v(){return Cc||(Cc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=t;var o=ns(),i=a(o);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,s,d,l){let f=!1,h=!1,c=!1,b=0,m=0;function y(){b>=s||c||f||(c=!0,r.next().then(({value:_,done:w})=>{if(!(h||f)){if(c=!1,w){f=!0,b<=0&&l(null);return}b++,d(_,m,g),m++,y()}}).catch(u))}function g(_,w){if(b-=1,!h){if(_)return u(_);if(_===!1){f=!0,h=!0;return}if(w===i.default||f&&b<=0)return f=!0,l(null);y()}}function u(_){h||(c=!1,f=!0,l(_))}y()}e.exports=n.default}(Yr,Yr.exports)),Yr.exports}var Pc;function bv(){return Pc||(Pc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=jh(),i=b(o),a=yv(),t=b(a),r=Lh(),s=b(r),d=Zt(),l=_v(),f=b(l),h=ns(),c=b(h);function b(m){return m&&m.__esModule?m:{default:m}}n.default=m=>(y,g,u)=>{if(u=(0,i.default)(u),m<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!y)return u(null);if((0,d.isAsyncGenerator)(y))return(0,f.default)(y,m,g,u);if((0,d.isAsyncIterable)(y))return(0,f.default)(y[Symbol.asyncIterator](),m,g,u);var _=(0,t.default)(y),w=!1,v=!1,E=0,x=!1;function O(D,V){if(!v)if(E-=1,D)w=!0,u(D);else if(D===!1)w=!0,v=!0;else{if(V===c.default||w&&E<=0)return w=!0,u(null);x||C()}}function C(){for(x=!0;E<m&&!w;){var D=_();if(D===null){w=!0,E<=0&&u(null);return}E+=1,g(D.value,D.key,(0,s.default)(O))}x=!1}C()},e.exports=n.default}($r,$r.exports)),$r.exports}var kc;function qh(){return kc||(kc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=bv(),i=d(o),a=Zt(),t=d(a),r=gr(),s=d(r);function d(f){return f&&f.__esModule?f:{default:f}}function l(f,h,c,b){return(0,i.default)(h)(f,(0,t.default)(c),b)}n.default=(0,s.default)(l,4),e.exports=n.default}(Vr,Vr.exports)),Vr.exports}var jc;function wv(){return jc||(jc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=qh(),i=r(o),a=gr(),t=r(a);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,l,f){return(0,i.default)(d,1,l,f)}n.default=(0,t.default)(s,3),e.exports=n.default}(Ur,Ur.exports)),Ur.exports}var Lc;function Ev(){return Lc||(Lc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var o=gv(),i=r(o),a=wv(),t=r(a);function r(d){return d&&d.__esModule?d:{default:d}}function s(d,l){return(0,i.default)(t.default,d,l)}e.exports=n.default}(qr,qr.exports)),qr.exports}var Yi={},Wi={},qc;function Sv(){return qc||(qc=1,function(e){var n=or(),o=lm(),i=cm(),a=dm(),t=pm();for(var r in t)e[r]=t[r];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;var s=31,d=139;function l(f){if(typeof f!="number"||f<e.DEFLATE||f>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=f,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,n(this.init_done,"close before init"),n(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?i.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&a.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},l.prototype.write=function(f,h,c,b,m,y,g){return this._write(!0,f,h,c,b,m,y,g)},l.prototype.writeSync=function(f,h,c,b,m,y,g){return this._write(!1,f,h,c,b,m,y,g)},l.prototype._write=function(f,h,c,b,m,y,g,u){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==e.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,h===void 0,"must provide flush value"),this.write_in_progress=!0,h!==e.Z_NO_FLUSH&&h!==e.Z_PARTIAL_FLUSH&&h!==e.Z_SYNC_FLUSH&&h!==e.Z_FULL_FLUSH&&h!==e.Z_FINISH&&h!==e.Z_BLOCK)throw new Error("Invalid flush value");if(c==null&&(c=et.alloc(0),m=0,b=0),this.strm.avail_in=m,this.strm.input=c,this.strm.next_in=b,this.strm.avail_out=u,this.strm.output=y,this.strm.next_out=g,this.flush=h,!f)return this._process(),this._checkError()?this._afterSync():void 0;var _=this;return ye.nextTick(function(){_._process(),_._after()}),this},l.prototype._afterSync=function(){var f=this.strm.avail_out,h=this.strm.avail_in;return this.write_in_progress=!1,[h,f]},l.prototype._process=function(){var f=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(f=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(f===null)break;if(this.strm.input[f]===s){if(this.gzip_id_bytes_read=1,f++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(f===null)break;this.strm.input[f]===d?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var f=this.strm.avail_out,h=this.strm.avail_in;this.write_in_progress=!1,this.callback(h,f),this.pending_close&&this.close()}},l.prototype._error=function(f){this.strm.msg&&(f=this.strm.msg),this.onerror(f,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(f,h,c,b,m){n(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(f>=8&&f<=15,"invalid windowBits"),n(h>=-1&&h<=9,"invalid compression level"),n(c>=1&&c<=9,"invalid memlevel"),n(b===e.Z_FILTERED||b===e.Z_HUFFMAN_ONLY||b===e.Z_RLE||b===e.Z_FIXED||b===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(h,f,c,b,m),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(f,h,c,b,m){switch(this.level=f,this.windowBits=h,this.memLevel=c,this.strategy=b,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,(this.mode===e.GZIP||this.mode===e.GUNZIP)&&(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),(this.mode===e.DEFLATERAW||this.mode===e.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=i.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=m,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=i.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=i.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=l}(Wi)),Wi}var Nc;function Rv(){return Nc||(Nc=1,function(e){var n=ar().Buffer,o=gn().Transform,i=Sv(),a=He(),t=or().ok,r=ar().kMaxLength,s="Cannot create final Buffer. It would be larger than 0x"+r.toString(16)+" bytes";i.Z_MIN_WINDOWBITS=8,i.Z_MAX_WINDOWBITS=15,i.Z_DEFAULT_WINDOWBITS=15,i.Z_MIN_CHUNK=64,i.Z_MAX_CHUNK=1/0,i.Z_DEFAULT_CHUNK=16*1024,i.Z_MIN_MEMLEVEL=1,i.Z_MAX_MEMLEVEL=9,i.Z_DEFAULT_MEMLEVEL=8,i.Z_MIN_LEVEL=-1,i.Z_MAX_LEVEL=9,i.Z_DEFAULT_LEVEL=i.Z_DEFAULT_COMPRESSION;for(var d=Object.keys(i),l=0;l<d.length;l++){var f=d[l];f.match(/^Z/)&&Object.defineProperty(e,f,{enumerable:!0,value:i[f],writable:!1})}for(var h={Z_OK:i.Z_OK,Z_STREAM_END:i.Z_STREAM_END,Z_NEED_DICT:i.Z_NEED_DICT,Z_ERRNO:i.Z_ERRNO,Z_STREAM_ERROR:i.Z_STREAM_ERROR,Z_DATA_ERROR:i.Z_DATA_ERROR,Z_MEM_ERROR:i.Z_MEM_ERROR,Z_BUF_ERROR:i.Z_BUF_ERROR,Z_VERSION_ERROR:i.Z_VERSION_ERROR},c=Object.keys(h),b=0;b<c.length;b++){var m=c[b];h[h[m]]=m}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(h),writable:!1}),e.Deflate=u,e.Inflate=_,e.Gzip=w,e.Gunzip=v,e.DeflateRaw=E,e.InflateRaw=x,e.Unzip=O,e.createDeflate=function(S){return new u(S)},e.createInflate=function(S){return new _(S)},e.createDeflateRaw=function(S){return new E(S)},e.createInflateRaw=function(S){return new x(S)},e.createGzip=function(S){return new w(S)},e.createGunzip=function(S){return new v(S)},e.createUnzip=function(S){return new O(S)},e.deflate=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new u(R),S,L)},e.deflateSync=function(S,R){return g(new u(R),S)},e.gzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new w(R),S,L)},e.gzipSync=function(S,R){return g(new w(R),S)},e.deflateRaw=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new E(R),S,L)},e.deflateRawSync=function(S,R){return g(new E(R),S)},e.unzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new O(R),S,L)},e.unzipSync=function(S,R){return g(new O(R),S)},e.inflate=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new _(R),S,L)},e.inflateSync=function(S,R){return g(new _(R),S)},e.gunzip=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new v(R),S,L)},e.gunzipSync=function(S,R){return g(new v(R),S)},e.inflateRaw=function(S,R,L){return typeof R=="function"&&(L=R,R={}),y(new x(R),S,L)},e.inflateRawSync=function(S,R){return g(new x(R),S)};function y(S,R,L){var q=[],z=0;S.on("error",j),S.on("end",k),S.end(R),P();function P(){for(var F;(F=S.read())!==null;)q.push(F),z+=F.length;S.once("readable",P)}function j(F){S.removeListener("end",k),S.removeListener("readable",P),L(F)}function k(){var F,W=null;z>=r?W=new RangeError(s):F=n.concat(q,z),q=[],S.close(),L(W,F)}}function g(S,R){if(typeof R=="string"&&(R=n.from(R)),!n.isBuffer(R))throw new TypeError("Not a string or buffer");var L=S._finishFlushFlag;return S._processChunk(R,L)}function u(S){if(!(this instanceof u))return new u(S);D.call(this,S,i.DEFLATE)}function _(S){if(!(this instanceof _))return new _(S);D.call(this,S,i.INFLATE)}function w(S){if(!(this instanceof w))return new w(S);D.call(this,S,i.GZIP)}function v(S){if(!(this instanceof v))return new v(S);D.call(this,S,i.GUNZIP)}function E(S){if(!(this instanceof E))return new E(S);D.call(this,S,i.DEFLATERAW)}function x(S){if(!(this instanceof x))return new x(S);D.call(this,S,i.INFLATERAW)}function O(S){if(!(this instanceof O))return new O(S);D.call(this,S,i.UNZIP)}function C(S){return S===i.Z_NO_FLUSH||S===i.Z_PARTIAL_FLUSH||S===i.Z_SYNC_FLUSH||S===i.Z_FULL_FLUSH||S===i.Z_FINISH||S===i.Z_BLOCK}function D(S,R){var L=this;if(this._opts=S=S||{},this._chunkSize=S.chunkSize||e.Z_DEFAULT_CHUNK,o.call(this,S),S.flush&&!C(S.flush))throw new Error("Invalid flush flag: "+S.flush);if(S.finishFlush&&!C(S.finishFlush))throw new Error("Invalid flush flag: "+S.finishFlush);if(this._flushFlag=S.flush||i.Z_NO_FLUSH,this._finishFlushFlag=typeof S.finishFlush<"u"?S.finishFlush:i.Z_FINISH,S.chunkSize&&(S.chunkSize<e.Z_MIN_CHUNK||S.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+S.chunkSize);if(S.windowBits&&(S.windowBits<e.Z_MIN_WINDOWBITS||S.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+S.windowBits);if(S.level&&(S.level<e.Z_MIN_LEVEL||S.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+S.level);if(S.memLevel&&(S.memLevel<e.Z_MIN_MEMLEVEL||S.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+S.memLevel);if(S.strategy&&S.strategy!=e.Z_FILTERED&&S.strategy!=e.Z_HUFFMAN_ONLY&&S.strategy!=e.Z_RLE&&S.strategy!=e.Z_FIXED&&S.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+S.strategy);if(S.dictionary&&!n.isBuffer(S.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new i.Zlib(R);var q=this;this._hadError=!1,this._handle.onerror=function(j,k){V(q),q._hadError=!0;var F=new Error(j);F.errno=k,F.code=e.codes[k],q.emit("error",F)};var z=e.Z_DEFAULT_COMPRESSION;typeof S.level=="number"&&(z=S.level);var P=e.Z_DEFAULT_STRATEGY;typeof S.strategy=="number"&&(P=S.strategy),this._handle.init(S.windowBits||e.Z_DEFAULT_WINDOWBITS,z,S.memLevel||e.Z_DEFAULT_MEMLEVEL,P,S.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=z,this._strategy=P,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!L._handle},configurable:!0,enumerable:!0})}a.inherits(D,o),D.prototype.params=function(S,R,L){if(S<e.Z_MIN_LEVEL||S>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+S);if(R!=e.Z_FILTERED&&R!=e.Z_HUFFMAN_ONLY&&R!=e.Z_RLE&&R!=e.Z_FIXED&&R!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+R);if(this._level!==S||this._strategy!==R){var q=this;this.flush(i.Z_SYNC_FLUSH,function(){t(q._handle,"zlib binding closed"),q._handle.params(S,R),q._hadError||(q._level=S,q._strategy=R,L&&L())})}else ye.nextTick(L)},D.prototype.reset=function(){return t(this._handle,"zlib binding closed"),this._handle.reset()},D.prototype._flush=function(S){this._transform(n.alloc(0),"",S)},D.prototype.flush=function(S,R){var L=this,q=this._writableState;(typeof S=="function"||S===void 0&&!R)&&(R=S,S=i.Z_FULL_FLUSH),q.ended?R&&ye.nextTick(R):q.ending?R&&this.once("end",R):q.needDrain?R&&this.once("drain",function(){return L.flush(S,R)}):(this._flushFlag=S,this.write(n.alloc(0),"",R))},D.prototype.close=function(S){V(this,S),ye.nextTick($,this)};function V(S,R){R&&ye.nextTick(R),S._handle&&(S._handle.close(),S._handle=null)}function $(S){S.emit("close")}D.prototype._transform=function(S,R,L){var q,z=this._writableState,P=z.ending||z.ended,j=P&&(!S||z.length===S.length);if(S!==null&&!n.isBuffer(S))return L(new Error("invalid input"));if(!this._handle)return L(new Error("zlib binding closed"));j?q=this._finishFlushFlag:(q=this._flushFlag,S.length>=z.length&&(this._flushFlag=this._opts.flush||i.Z_NO_FLUSH)),this._processChunk(S,q,L)},D.prototype._processChunk=function(S,R,L){var q=S&&S.length,z=this._chunkSize-this._offset,P=0,j=this,k=typeof L=="function";if(!k){var F=[],W=0,Z;this.on("error",function(X){Z=X}),t(this._handle,"zlib binding closed");do var B=this._handle.writeSync(R,S,P,q,this._buffer,this._offset,z);while(!this._hadError&&G(B[0],B[1]));if(this._hadError)throw Z;if(W>=r)throw V(this),new RangeError(s);var N=n.concat(F,W);return V(this),N}t(this._handle,"zlib binding closed");var M=this._handle.write(R,S,P,q,this._buffer,this._offset,z);M.buffer=S,M.callback=G;function G(X,K){if(this&&(this.buffer=null,this.callback=null),!j._hadError){var ae=z-K;if(t(ae>=0,"have should not go down"),ae>0){var ue=j._buffer.slice(j._offset,j._offset+ae);j._offset+=ae,k?j.push(ue):(F.push(ue),W+=ue.length)}if((K===0||j._offset>=j._chunkSize)&&(z=j._chunkSize,j._offset=0,j._buffer=n.allocUnsafe(j._chunkSize)),K===0){if(P+=q-X,q=X,!k)return!0;var ve=j._handle.write(R,S,P,q,j._buffer,j._offset,j._chunkSize);ve.callback=G,ve.buffer=S;return}if(!k)return!1;L()}}},a.inherits(u,D),a.inherits(_,D),a.inherits(w,D),a.inherits(v,D),a.inherits(E,D),a.inherits(x,D),a.inherits(O,D)}(Yi)),Yi}var Ji={exports:{}},Ki,Dc;function Ov(){if(Dc)return Ki;Dc=1;var e=[],n=[],o=function(){};function i(c){return~e.indexOf(c)?!1:(e.push(c),!0)}function a(c){o=c}function t(c){for(var b=[],m=0;m<e.length;m++){if(e[m].async){b.push(e[m]);continue}if(e[m](c))return!0}return b.length?new Promise(function(g){Promise.all(b.map(function(_){return _(c)})).then(function(_){g(_.some(Boolean))})}):!1}function r(c){return~n.indexOf(c)?!1:(n.push(c),!0)}function s(){o.apply(o,arguments)}function d(c){for(var b=0;b<n.length;b++)c=n[b].apply(n[b],arguments);return c}function l(c,b){var m=Object.prototype.hasOwnProperty;for(var y in b)m.call(b,y)&&(c[y]=b[y]);return c}function f(c){return c.enabled=!1,c.modify=r,c.set=a,c.use=i,l(function(){return!1},c)}function h(c){function b(){var m=Array.prototype.slice.call(arguments,0);return s.call(s,c,d(m,c)),!0}return c.enabled=!0,c.modify=r,c.set=a,c.use=i,l(b,c)}return Ki=function(b){return b.introduce=l,b.enabled=t,b.process=d,b.modify=r,b.write=s,b.nope=f,b.yep=h,b.set=a,b.use=i,b},Ki}var Xi,Mc;function Tv(){if(Mc)return Xi;Mc=1;var e=Ov(),n=e(function o(i,a){return a=a||{},a.namespace=i,a.prod=!0,a.dev=!1,a.force||o.force?o.yep(a):o.nope(a)});return Xi=n,Xi}var Fc;function _n(){return Fc||(Fc=1,Ji.exports=Tv()),Ji.exports}var Qi,Bc;function xv(){if(Bc)return Qi;Bc=1;var e=Ko(),n=nm(),o=n.StringDecoder,i=dr(),a=i.Stream;function t(){}return Qi=function(r,s){var d=et.alloc(65536),l=new o("utf8"),f=new a,h="",c=0,b=0;return r.start===-1&&delete r.start,f.readable=!0,f.destroy=function(){f.destroyed=!0,f.emit("end"),f.emit("close")},e.open(r.file,"a+","0644",function(m,y){if(m){s?s(m):f.emit("error",m),f.destroy();return}(function g(){if(f.destroyed){e.close(y,t);return}return e.read(y,d,0,d.length,c,function(u,_){if(u){s?s(u):f.emit("error",u),f.destroy();return}if(!_)return h&&((r.start==null||b>r.start)&&(s?s(null,h):f.emit("line",h)),b++,h=""),setTimeout(g,1e3);var w=l.write(d.slice(0,_));s||f.emit("data",w),w=(h+w).split(/\n+/);for(var v=w.length-1,E=0;E<v;E++)(r.start==null||b>r.start)&&(s?s(null,w[E]):f.emit("line",w[E])),b++;return h=w[v],c+=_,g()})})()}),s?f.destroy:f},Qi}var ea,Uc;function Av(){if(Uc)return ea;Uc=1;function e(C){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},e(C)}function n(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}function o(C,D){for(var V=0;V<D.length;V++){var $=D[V];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(C,$.key,$)}}function i(C,D,V){return D&&o(C.prototype,D),Object.defineProperty(C,"prototype",{writable:!1}),C}function a(C,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(D&&D.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),D&&t(C,D)}function t(C,D){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($,S){return $.__proto__=S,$},t(C,D)}function r(C){var D=l();return function(){var $=f(C),S;if(D){var R=f(this).constructor;S=Reflect.construct($,arguments,R)}else S=$.apply(this,arguments);return s(this,S)}}function s(C,D){if(D&&(e(D)==="object"||typeof D=="function"))return D;if(D!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(C)}function d(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(C){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(V){return V.__proto__||Object.getPrototypeOf(V)},f(C)}var h=Ko(),c=kh(),b=Ev(),m=Rv(),y=Ne(),g=y.MESSAGE,u=dr(),_=u.Stream,w=u.PassThrough,v=Vt(),E=_n()("winston:file"),x=Ut(),O=xv();return ea=function(C){a(V,C);var D=r(V);function V(){var $,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,V),$=D.call(this,S),$.name=S.name||"file";function R(L){for(var q=arguments.length,z=new Array(q>1?q-1:0),P=1;P<q;P++)z[P-1]=arguments[P];z.slice(1).forEach(function(j){if(S[j])throw new Error("Cannot set ".concat(j," and ").concat(L," together"))})}if($._stream=new w,$._stream.setMaxListeners(30),$._onError=$._onError.bind(d($)),S.filename||S.dirname)R("filename or dirname","stream"),$._basename=$.filename=S.filename?c.basename(S.filename):"winston.log",$.dirname=S.dirname||c.dirname(S.filename),$.options=S.options||{flags:"a"};else if(S.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),R("stream","filename","maxsize"),$._dest=$._stream.pipe($._setupStream(S.stream)),$.dirname=c.dirname($._dest.path);else throw new Error("Cannot log to file without filename or stream.");return $.maxsize=S.maxsize||null,$.rotationFormat=S.rotationFormat||!1,$.zippedArchive=S.zippedArchive||!1,$.maxFiles=S.maxFiles||null,$.eol=typeof S.eol=="string"?S.eol:x.EOL,$.tailable=S.tailable||!1,$._size=0,$._pendingSize=0,$._created=0,$._drain=!1,$._opening=!1,$._ending=!1,$.dirname&&$._createLogDirIfNotExist($.dirname),$.open(),$}return i(V,[{key:"finishIfEnding",value:function(){var S=this;this._ending&&(this._opening?this.once("open",function(){S._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})}):(this._stream.once("finish",function(){return S.emit("finish")}),setImmediate(function(){return S._stream.end()})))}},{key:"log",value:function(S){var R=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return L(),!0;if(this._drain){this._stream.once("drain",function(){R._drain=!1,R.log(S,L)});return}if(this._rotate){this._stream.once("rotate",function(){R._rotate=!1,R.log(S,L)});return}var q="".concat(S[g]).concat(this.eol),z=et.byteLength(q);function P(){var k=this;this._size+=z,this._pendingSize-=z,E("logged %s %s",this._size,q),this.emit("logged",S),!this._opening&&this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return k._rotateFile()}))}this._pendingSize+=z,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var j=this._stream.write(q,P.bind(this));return j?L():(this._drain=!0,this._stream.once("drain",function(){R._drain=!1,L()})),E("written",j,this._drain),this.finishIfEnding(),j}},{key:"query",value:function(S,R){typeof S=="function"&&(R=S,S={}),S=Z(S);var L=c.join(this.dirname,this.filename),q="",z=[],P=0,j=h.createReadStream(L,{encoding:"utf8"});j.on("error",function(B){if(j.readable&&j.destroy(),!!R)return B.code!=="ENOENT"?R(B):R(null,z)}),j.on("data",function(B){B=(q+B).split(/\n+/);for(var N=B.length-1,M=0;M<N;M++)(!S.start||P>=S.start)&&k(B[M]),P++;q=B[N]}),j.on("close",function(){q&&k(q,!0),S.order==="desc"&&(z=z.reverse()),R&&R(null,z)});function k(B,N){try{var M=JSON.parse(B);W(M)&&F(M)}catch(G){N||j.emit("error",G)}}function F(B){if(S.rows&&z.length>=S.rows&&S.order!=="desc"){j.readable&&j.destroy();return}S.fields&&(B=S.fields.reduce(function(N,M){return N[M]=B[M],N},{})),S.order==="desc"&&z.length>=S.rows&&z.shift(),z.push(B)}function W(B){if(B&&e(B)==="object"){var N=new Date(B.timestamp);if(!(S.from&&N<S.from||S.until&&N>S.until||S.level&&S.level!==B.level))return!0}}function Z(B){return B=B||{},B.rows=B.rows||B.limit||10,B.start=B.start||0,B.until=B.until||new Date,e(B.until)!=="object"&&(B.until=new Date(B.until)),B.from=B.from||B.until-24*60*60*1e3,e(B.from)!=="object"&&(B.from=new Date(B.from)),B.order=B.order||"desc",B}}},{key:"stream",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=c.join(this.dirname,this.filename),L=new _,q={file:R,start:S.start};return L.destroy=O(q,function(z,P){if(z)return L.emit("error",z);try{L.emit("data",P),P=JSON.parse(P),L.emit("log",P)}catch(j){L.emit("error",j)}}),L}},{key:"open",value:function(){var S=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(R,L){if(R)return S.emit("error",R);E("stat done: %s { size: %s }",S.filename,L),S._size=L,S._dest=S._createStream(S._stream),S._opening=!1,S.once("open",function(){S._stream.eventNames().includes("rotate")?S._stream.emit("rotate"):S._rotate=!1})})))}},{key:"stat",value:function(S){var R=this,L=this._getFile(),q=c.join(this.dirname,L);h.stat(q,function(z,P){if(z&&z.code==="ENOENT")return E("ENOENT ok",q),R.filename=L,S(null,0);if(z)return E("err ".concat(z.code," ").concat(q)),S(z);if(!P||R._needsNewFile(P.size))return R._incFile(function(){return R.stat(S)});R.filename=L,S(null,P.size)})}},{key:"close",value:function(S){var R=this;this._stream&&this._stream.end(function(){S&&S(),R.emit("flush"),R.emit("closed")})}},{key:"_needsNewFile",value:function(S){return S=S||this._size,this.maxsize&&S>=this.maxsize}},{key:"_onError",value:function(S){this.emit("error",S)}},{key:"_setupStream",value:function(S){return S.on("error",this._onError),S}},{key:"_cleanupStream",value:function(S){return S.removeListener("error",this._onError),S}},{key:"_rotateFile",value:function(){var S=this;this._incFile(function(){return S.open()})}},{key:"_endStream",value:function(){var S=this,R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){S._cleanupStream(S._dest),R()})):R()}},{key:"_createStream",value:function(S){var R=this,L=c.join(this.dirname,this.filename);E("create stream start",L,this.options);var q=h.createWriteStream(L,this.options).on("error",function(P){return E(P)}).on("close",function(){return E("close",q.path,q.bytesWritten)}).on("open",function(){E("file open ok",L),R.emit("open",L),S.pipe(q),R.rotatedWhileOpening&&(R._stream=new w,R._stream.setMaxListeners(30),R._rotateFile(),R.rotatedWhileOpening=!1,R._cleanupStream(q),S.end())});if(E("create stream ok",L),this.zippedArchive){var z=m.createGzip();return z.pipe(q),z}return q}},{key:"_incFile",value:function(S){E("_incFile",this.filename);var R=c.extname(this._basename),L=c.basename(this._basename,R);this.tailable?this._checkMaxFilesTailable(R,L,S):(this._created+=1,this._checkMaxFilesIncrementing(R,L,S))}},{key:"_getFile",value:function(){var S=c.extname(this._basename),R=c.basename(this._basename,S),L=this.rotationFormat?this.rotationFormat():this._created,q=!this.tailable&&this._created?"".concat(R).concat(L).concat(S):"".concat(R).concat(S);return this.zippedArchive&&!this.tailable?"".concat(q,".gz"):q}},{key:"_checkMaxFilesIncrementing",value:function(S,R,L){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(L);var q=this._created-this.maxFiles,z=q!==0?q:"",P=this.zippedArchive?".gz":"",j="".concat(R).concat(z).concat(S).concat(P),k=c.join(this.dirname,j);h.unlink(k,L)}},{key:"_checkMaxFilesTailable",value:function(S,R,L){var q=this,z=[];if(this.maxFiles){for(var P=this.zippedArchive?".gz":"",j=this.maxFiles-1;j>1;j--)z.push((function(k,F){var W=this,Z="".concat(R).concat(k-1).concat(S).concat(P),B=c.join(this.dirname,Z);h.exists(B,function(N){if(!N)return F(null);Z="".concat(R).concat(k).concat(S).concat(P),h.rename(B,c.join(W.dirname,Z),F)})}).bind(this,j));b(z,function(){h.rename(c.join(q.dirname,"".concat(R).concat(S)),c.join(q.dirname,"".concat(R,"1").concat(S).concat(P)),L)})}}},{key:"_createLogDirIfNotExist",value:function(S){h.existsSync(S)||h.mkdirSync(S,{recursive:!0})}}]),V}(v),ea}var ta,Vc;function Iv(){if(Vc)return ta;Vc=1;function e(v){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},e(v)}function n(v,E){var x=Object.keys(v);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(v);E&&(O=O.filter(function(C){return Object.getOwnPropertyDescriptor(v,C).enumerable})),x.push.apply(x,O)}return x}function o(v){for(var E=1;E<arguments.length;E++){var x=arguments[E]!=null?arguments[E]:{};E%2?n(Object(x),!0).forEach(function(O){i(v,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(O){Object.defineProperty(v,O,Object.getOwnPropertyDescriptor(x,O))})}return v}function i(v,E,x){return E in v?Object.defineProperty(v,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):v[E]=x,v}function a(v,E){if(!(v instanceof E))throw new TypeError("Cannot call a class as a function")}function t(v,E){for(var x=0;x<E.length;x++){var O=E[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(v,O.key,O)}}function r(v,E,x){return E&&t(v.prototype,E),Object.defineProperty(v,"prototype",{writable:!1}),v}function s(v,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(E&&E.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),E&&d(v,E)}function d(v,E){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,C){return O.__proto__=C,O},d(v,E)}function l(v){var E=c();return function(){var O=b(v),C;if(E){var D=b(this).constructor;C=Reflect.construct(O,arguments,D)}else C=O.apply(this,arguments);return f(this,C)}}function f(v,E){if(E&&(e(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(v)}function h(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function c(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(v){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},b(v)}var m=am(),y=om(),g=dr(),u=g.Stream,_=Vt(),w=mr();return ta=function(v){s(x,v);var E=l(x);function x(){var O,C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return a(this,x),O=E.call(this,C),O.options=C,O.name=C.name||"http",O.ssl=!!C.ssl,O.host=C.host||"localhost",O.port=C.port,O.auth=C.auth,O.path=C.path||"",O.agent=C.agent,O.headers=C.headers||{},O.headers["content-type"]="application/json",O.batch=C.batch||!1,O.batchInterval=C.batchInterval||5e3,O.batchCount=C.batchCount||10,O.batchOptions=[],O.batchTimeoutID=-1,O.batchCallback={},O.port||(O.port=O.ssl?443:80),O}return r(x,[{key:"log",value:function(C,D){var V=this;this._request(C,function($,S){S&&S.statusCode!==200&&($=new Error("Invalid HTTP Status Code: ".concat(S.statusCode))),$?V.emit("warn",$):V.emit("logged",C)}),D&&setImmediate(D)}},{key:"query",value:function(C,D){typeof C=="function"&&(D=C,C={}),C={method:"query",params:this.normalizeQuery(C)},C.params.path&&(C.path=C.params.path,delete C.params.path),C.params.auth&&(C.auth=C.params.auth,delete C.params.auth),this._request(C,function(V,$,S){if($&&$.statusCode!==200&&(V=new Error("Invalid HTTP Status Code: ".concat($.statusCode))),V)return D(V);if(typeof S=="string")try{S=JSON.parse(S)}catch(R){return D(R)}D(null,S)})}},{key:"stream",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=new u;C={method:"stream",params:C},C.params.path&&(C.path=C.params.path,delete C.params.path),C.params.auth&&(C.auth=C.params.auth,delete C.params.auth);var V="",$=this._request(C);return D.destroy=function(){return $.destroy()},$.on("data",function(S){S=(V+S).split(/\n+/);for(var R=S.length-1,L=0;L<R;L++)try{D.emit("log",JSON.parse(S[L]))}catch(q){D.emit("error",q)}V=S[R]}),$.on("error",function(S){return D.emit("error",S)}),D}},{key:"_request",value:function(C,D){C=C||{};var V=C.auth||this.auth,$=C.path||this.path||"";delete C.auth,delete C.path,this.batch?this._doBatch(C,D,V,$):this._doRequest(C,D,V,$)}},{key:"_doBatch",value:function(C,D,V,$){if(this.batchOptions.push(C),this.batchOptions.length===1){var S=this;this.batchCallback=D,this.batchTimeoutID=setTimeout(function(){S.batchTimeoutID=-1,S._doBatchRequest(S.batchCallback,V,$)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,V,$)}},{key:"_doBatchRequest",value:function(C,D,V){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var $=this.batchOptions.slice();this.batchOptions=[],this._doRequest($,C,D,V)}},{key:"_doRequest",value:function(C,D,V,$){var S=Object.assign({},this.headers);V&&V.bearer&&(S.Authorization="Bearer ".concat(V.bearer));var R=(this.ssl?y:m).request(o(o({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat($.replace(/^\//,"")),headers:S,auth:V&&V.username&&V.password?"".concat(V.username,":").concat(V.password):"",agent:this.agent}));R.on("error",D),R.on("response",function(L){return L.on("end",function(){return D(null,L)}).resume()}),R.end(et.from(w(C,this.options.replacer),"utf8"))}}]),x}(_),ta}var ra,$c;function Nh(){if($c)return ra;$c=1;const e=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";return e.writable=n=>e(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",e.readable=n=>e(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",e.duplex=n=>e.writable(n)&&e.readable(n),e.transform=n=>e.duplex(n)&&typeof n._transform=="function",ra=e,ra}var na,Gc;function Cv(){if(Gc)return na;Gc=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function o(g,u){for(var _=0;_<u.length;_++){var w=u[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function i(g,u,_){return u&&o(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&t(g,u)}function t(g,u){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},t(g,u)}function r(g){var u=l();return function(){var w=f(g),v;if(u){var E=f(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return s(this,v)}}function s(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(g){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},f(g)}var h=Nh(),c=Ne(),b=c.MESSAGE,m=Ut(),y=Vt();return na=function(g){a(_,g);var u=r(_);function _(){var w,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(n(this,_),w=u.call(this,v),!v.stream||!h(v.stream))throw new Error("options.stream is required.");return w._stream=v.stream,w._stream.setMaxListeners(1/0),w.isObjectMode=v.stream._writableState.objectMode,w.eol=typeof v.eol=="string"?v.eol:m.EOL,w}return i(_,[{key:"log",value:function(v,E){var x=this;if(setImmediate(function(){return x.emit("logged",v)}),this.isObjectMode){this._stream.write(v),E&&E();return}this._stream.write("".concat(v[b]).concat(this.eol)),E&&E()}}]),_}(y),na}var zc;function Pv(){return zc||(zc=1,function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return hv()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return Av()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return Iv()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return Cv()}})}(Gi)),Gi}var Gt={},Hc;function is(){if(Hc)return Gt;Hc=1;var e=Ch(),n=Ne(),o=n.configs;return Gt.cli=e.levels(o.cli),Gt.npm=e.levels(o.npm),Gt.syslog=e.levels(o.syslog),Gt.addColors=e.levels,Gt}var Jr={exports:{}},Kr={exports:{}},Zc;function kv(){return Zc||(Zc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=rs(),i=g(o),a=ns(),t=g(a),r=qh(),s=g(r),d=jh(),l=g(d),f=Lh(),h=g(f),c=Zt(),b=g(c),m=gr(),y=g(m);function g(v){return v&&v.__esModule?v:{default:v}}function u(v,E,x){x=(0,l.default)(x);var O=0,C=0,{length:D}=v,V=!1;D===0&&x(null);function $(S,R){S===!1&&(V=!0),V!==!0&&(S?x(S):(++C===D||R===t.default)&&x(null))}for(;O<D;O++)E(v[O],O,(0,h.default)($))}function _(v,E,x){return(0,s.default)(v,1/0,E,x)}function w(v,E,x){var O=(0,i.default)(v)?u:_;return O(v,(0,b.default)(E),x)}n.default=(0,y.default)(w,3),e.exports=n.default}(Kr,Kr.exports)),Kr.exports}var Xr={exports:{}},Yc;function jv(){return Yc||(Yc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;function o(i){return(a,t,r)=>i(a,r)}e.exports=n.default}(Xr,Xr.exports)),Xr.exports}var Wc;function as(){return Wc||(Wc=1,function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var o=kv(),i=f(o),a=jv(),t=f(a),r=Zt(),s=f(r),d=gr(),l=f(d);function f(c){return c&&c.__esModule?c:{default:c}}function h(c,b,m){return(0,i.default)(c,(0,t.default)((0,s.default)(b)),m)}n.default=(0,l.default)(h,3),e.exports=n.default}(Jr,Jr.exports)),Jr.exports}var ia,Jc;function Lv(){if(Jc)return ia;Jc=1;var e=Object.prototype.toString;return ia=function(o){if(typeof o.displayName=="string"&&o.constructor.name)return o.displayName;if(typeof o.name=="string"&&o.name)return o.name;if(typeof o=="object"&&o.constructor&&typeof o.constructor.name=="string")return o.constructor.name;var i=o.toString(),a=e.call(o).slice(8,-1);return a==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=a,i||"anonymous"},ia}var aa,Kc;function Dh(){if(Kc)return aa;Kc=1;var e=Lv();return aa=function(o){var i=0,a;function t(){return i||(i=1,a=o.apply(this,arguments),o=null),a}return t.displayName=e(o),t},aa}var oa={},Xc;function Mh(){return Xc||(Xc=1,function(e){e.get=function(a){var t=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var r={},s=Error.prepareStackTrace;Error.prepareStackTrace=function(l,f){return f},Error.captureStackTrace(r,a||e.get);var d=r.stack;return Error.prepareStackTrace=s,Error.stackTraceLimit=t,d},e.parse=function(a){if(!a.stack)return[];var t=this,r=a.stack.split(`
|
|
108
|
+
`).slice(1);return r.map(function(s){if(s.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:s,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var d=s.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(d){var l=null,f=null,h=null,c=null,b=null,m=d[5]==="native";if(d[1]){h=d[1];var y=h.lastIndexOf(".");if(h[y-1]=="."&&y--,y>0){l=h.substr(0,y),f=h.substr(y+1);var g=l.indexOf(".Module");g>0&&(h=h.substr(g+1),l=l.substr(0,g))}c=null}f&&(c=l,b=f),f==="<anonymous>"&&(b=null,h=null);var u={fileName:d[2]||null,lineNumber:parseInt(d[3],10)||null,functionName:h,typeName:c,methodName:b,columnNumber:parseInt(d[4],10)||null,native:m};return t._createParsedCallSite(u)}}).filter(function(s){return!!s})};function n(a){for(var t in a)this[t]=a[t]}var o=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],i=["topLevel","eval","native","constructor"];o.forEach(function(a){n.prototype[a]=null,n.prototype["get"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),i.forEach(function(a){n.prototype[a]=!1,n.prototype["is"+a[0].toUpperCase()+a.substr(1)]=function(){return this[a]}}),e._createParsedCallSite=function(a){return new n(a)}}(oa)),oa}var sa,Qc;function Fh(){if(Qc)return sa;Qc=1;function e(b){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},e(b)}function n(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function o(b,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}function i(b,m,y){return m&&o(b.prototype,m),Object.defineProperty(b,"prototype",{writable:!1}),b}function a(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),m&&t(b,m)}function t(b,m){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,u){return g.__proto__=u,g},t(b,m)}function r(b){var m=l();return function(){var g=f(b),u;if(m){var _=f(this).constructor;u=Reflect.construct(g,arguments,_)}else u=g.apply(this,arguments);return s(this,u)}}function s(b,m){if(m&&(e(m)==="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(b)}function d(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(b){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},f(b)}var h=dr(),c=h.Writable;return sa=function(b){a(y,b);var m=r(y);function y(g){var u;if(n(this,y),u=m.call(this,{objectMode:!0}),!g)throw new Error("ExceptionStream requires a TransportStream instance.");return u.handleExceptions=!0,u.transport=g,u}return i(y,[{key:"_write",value:function(u,_,w){return u.exception?this.transport.log(u,w):(w(),!0)}}]),y}(c),sa}var ua,el;function Bh(){if(el)return ua;el=1;function e(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}function n(l,f){for(var h=0;h<f.length;h++){var c=f[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function o(l,f,h){return f&&n(l.prototype,f),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=Ut(),a=as(),t=_n()("winston:exception"),r=Dh(),s=Mh(),d=Fh();return ua=function(){function l(f){if(e(this,l),!f)throw new Error("Logger is required to handle exceptions");this.logger=f,this.handlers=new Map}return o(l,[{key:"handle",value:function(){for(var h=this,c=arguments.length,b=new Array(c),m=0;m<c;m++)b[m]=arguments[m];b.forEach(function(y){if(Array.isArray(y))return y.forEach(function(g){return h._addHandler(g)});h._addHandler(y)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),ye.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var h=this;this.catcher&&(ye.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(c){return h.logger.unpipe(c)}))}},{key:"getAllInfo",value:function(h){var c=h.message;return!c&&typeof h=="string"&&(c=h),{error:h,level:"error",message:["uncaughtException: ".concat(c||"(no error message)"),h.stack||" No stack trace"].join(`
|
|
109
|
+
`),stack:h.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(h)}}},{key:"getProcessInfo",value:function(){return{pid:ye.pid,uid:ye.getuid?ye.getuid():null,gid:ye.getgid?ye.getgid():null,cwd:ye.cwd(),execPath:ye.execPath,version:ye.version,argv:ye.argv,memoryUsage:ye.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(h){var c=h?s.parse(h):s.get();return c.map(function(b){return{column:b.getColumnNumber(),file:b.getFileName(),function:b.getFunctionName(),line:b.getLineNumber(),method:b.getMethodName(),native:b.isNative()}})}},{key:"_addHandler",value:function(h){if(!this.handlers.has(h)){h.handleExceptions=!0;var c=new d(h);this.handlers.set(h,c),this.logger.pipe(c)}}},{key:"_uncaughtException",value:function(h){var c=this.getAllInfo(h),b=this._getExceptionHandlers(),m=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(h):this.logger.exitOnError,y;!b.length&&m&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),m=!1);function g(){t("doExit",m),t("process._exiting",ye._exiting),m&&!ye._exiting&&(y&&clearTimeout(y),ye.exit(1))}if(!b||b.length===0)return ye.nextTick(g);a(b,function(u,_){var w=r(_),v=u.transport||u;function E(x){return function(){t(x),w()}}v._ending=!0,v.once("finish",E("finished")),v.once("error",E("error"))},function(){return m&&g()}),this.logger.log(c),m&&(y=setTimeout(g,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(h){var c=h.transport||h;return c.handleExceptions})}}]),l}(),ua}var ca,tl;function Uh(){if(tl)return ca;tl=1;function e(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}function n(l,f){for(var h=0;h<f.length;h++){var c=f[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function o(l,f,h){return f&&n(l.prototype,f),Object.defineProperty(l,"prototype",{writable:!1}),l}var i=Ut(),a=as(),t=_n()("winston:rejection"),r=Dh(),s=Mh(),d=Fh();return ca=function(){function l(f){if(e(this,l),!f)throw new Error("Logger is required to handle rejections");this.logger=f,this.handlers=new Map}return o(l,[{key:"handle",value:function(){for(var h=this,c=arguments.length,b=new Array(c),m=0;m<c;m++)b[m]=arguments[m];b.forEach(function(y){if(Array.isArray(y))return y.forEach(function(g){return h._addHandler(g)});h._addHandler(y)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),ye.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var h=this;this.catcher&&(ye.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(c){return h.logger.unpipe(c)}))}},{key:"getAllInfo",value:function(h){var c=null;return h&&(c=typeof h=="string"?h:h.message),{error:h,level:"error",message:["unhandledRejection: ".concat(c||"(no error message)"),h&&h.stack||" No stack trace"].join(`
|
|
110
|
+
`),stack:h&&h.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(h)}}},{key:"getProcessInfo",value:function(){return{pid:ye.pid,uid:ye.getuid?ye.getuid():null,gid:ye.getgid?ye.getgid():null,cwd:ye.cwd(),execPath:ye.execPath,version:ye.version,argv:ye.argv,memoryUsage:ye.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:i.loadavg(),uptime:i.uptime()}}},{key:"getTrace",value:function(h){var c=h?s.parse(h):s.get();return c.map(function(b){return{column:b.getColumnNumber(),file:b.getFileName(),function:b.getFunctionName(),line:b.getLineNumber(),method:b.getMethodName(),native:b.isNative()}})}},{key:"_addHandler",value:function(h){if(!this.handlers.has(h)){h.handleRejections=!0;var c=new d(h);this.handlers.set(h,c),this.logger.pipe(c)}}},{key:"_unhandledRejection",value:function(h){var c=this.getAllInfo(h),b=this._getRejectionHandlers(),m=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(h):this.logger.exitOnError,y;!b.length&&m&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),m=!1);function g(){t("doExit",m),t("process._exiting",ye._exiting),m&&!ye._exiting&&(y&&clearTimeout(y),ye.exit(1))}if(!b||b.length===0)return ye.nextTick(g);a(b,function(u,_){var w=r(_),v=u.transport||u;function E(x){return function(){t(x),w()}}v._ending=!0,v.once("finish",E("finished")),v.once("error",E("error"))},function(){return m&&g()}),this.logger.log(c),m&&(y=setTimeout(g,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(h){var c=h.transport||h;return c.handleRejections})}}]),l}(),ca}var la={exports:{}},rl;function qv(){if(rl)return la.exports;rl=1;const e=He(),{LEVEL:n}=Ne(),o=Vt(),i=la.exports=function(t={}){if(o.call(this,t),!t.transport||typeof t.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=t.transport,this.level=this.level||t.transport.level,this.handleExceptions=this.handleExceptions||t.transport.handleExceptions,this._deprecated();function r(s){this.emit("error",s,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=r.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(i,o),i.prototype._write=function(t,r,s){if(this.silent||t.exception===!0&&!this.handleExceptions)return s(null);(!this.level||this.levels[this.level]>=this.levels[t[n]])&&this.transport.log(t[n],t.message,t,this._nop),s(null)},i.prototype._writev=function(t,r){for(let s=0;s<t.length;s++)this._accept(t[s])&&(this.transport.log(t[s].chunk[n],t[s].chunk.message,t[s].chunk,this._nop),t[s].callback());return r(null)},i.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
|
111
|
+
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},la.exports}var fa,nl;function Nv(){if(nl)return fa;nl=1;function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(a)}function n(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function o(a,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function i(a,t,r){return t&&o(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}return fa=function(){function a(t){if(n(this,a),!t)throw new Error("Logger is required for profiling.");this.logger=t,this.start=Date.now()}return i(a,[{key:"done",value:function(){for(var r=arguments.length,s=new Array(r),d=0;d<r;d++)s[d]=arguments[d];typeof s[s.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),s.pop());var l=e(s[s.length-1])==="object"?s.pop():{};return l.level=l.level||"info",l.durationMs=Date.now()-this.start,this.logger.write(l)}}]),a}(),fa}var ha,il;function Dv(){if(il)return ha;il=1;class e extends Error{constructor(o){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
113
112
|
Found: ${o.toString().split(`
|
|
114
113
|
`)[0]}
|
|
115
|
-
`),Error.captureStackTrace(this,e)}}return ha=n=>{if(n.length>2)throw new e(n);function o(a={}){this.options=a}o.prototype.transform=n;function i(a){return new o(a)}return i.Format=o,i},ha}var da,al;function Mv(){if(al)return da;al=1;const e=
|
|
116
|
-
`));ke&&this.exceptions.handle(ke),je&&this.rejections.handle(je)}},{key:"isLevelEnabled",value:function(j){var k=this,F=R(this.levels,j);if(F===null)return!1;var W=R(this.levels,this.level);if(W===null)return!1;if(!this.transports||this.transports.length===0)return W>=F;var Z=this.transports.findIndex(function(
|
|
117
|
-
`))}},{key:"_onEvent",value:function(j,k){function F(W){j==="error"&&!this.transports.includes(k)&&this.add(k),this.emit(j,W,k)}k["__winston"+j]||(k["__winston"+j]=F.bind(this),k.on(j,k["__winston"+j]))}},{key:"_addDefaultMeta",value:function(j){this.defaultMeta&&Object.assign(j,this.defaultMeta)}}]),z}(m);function R(L,q){var z=L[q];return!z&&z!==0?null:z}return Object.defineProperty(S.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var q=this._readableState.pipes;return Array.isArray(q)?q:[q].filter(Boolean)}}),pa=S,pa}var ma,sl;function Gh(){if(sl)return ma;sl=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u,_){return Object.defineProperty(g,"prototype",{writable:!1}),g}function o(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function i(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&a(g,u)}function a(g,u){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},a(g,u)}function t(g){var u=d();return function(){var w=l(g),v;if(u){var E=l(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return r(this,v)}}function r(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(g)}function s(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(g){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},l(g)}var f=De(),h=f.LEVEL,c=is(),b=Fv(),m=_n()("winston:create-logger");function y(g){return"is"+g.charAt(0).toUpperCase()+g.slice(1)+"Enabled"}return ma=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};g.levels=g.levels||c.npm.levels;var u=function(w){i(E,w);var v=t(E);function E(x){return o(this,E),v.call(this,x)}return n(E)}(b),_=new u(g);return Object.keys(g.levels).forEach(function(w){if(m('Define prototype method for "%s"',w),w==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}u.prototype[w]=function(){for(var v=this||_,E=arguments.length,x=new Array(E),O=0;O<E;O++)x[O]=arguments[O];if(x.length===1){var C=x[0],N=C&&C.message&&C||{message:C};return N.level=N[h]=w,v._addDefaultMeta(N),v.write(N),this||_}return x.length===0?(v.log(w,""),v):v.log.apply(v,[w].concat(x))},u.prototype[y(w)]=function(){return(this||_).isLevelEnabled(w)}}),_},ma}var ga,ul;function Bv(){if(ul)return ga;ul=1;function e(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function n(a,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function o(a,t,r){return t&&n(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}var i=Gh();return ga=function(){function a(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,a),this.loggers=new Map,this.options=t}return o(a,[{key:"add",value:function(r,s){var d=this;if(!this.loggers.has(r)){s=Object.assign({},s||this.options);var l=s.transports||this.options.transports;s.transports=l?l.slice():[];var f=i(s);f.on("close",function(){return d._delete(r)}),this.loggers.set(r,f)}return this.loggers.get(r)}},{key:"get",value:function(r,s){return this.add(r,s)}},{key:"has",value:function(r){return!!this.loggers.has(r)}},{key:"close",value:function(r){var s=this;if(r)return this._removeLogger(r);this.loggers.forEach(function(d,l){return s._removeLogger(l)})}},{key:"_removeLogger",value:function(r){if(this.loggers.has(r)){var s=this.loggers.get(r);s.close(),this._delete(r)}}},{key:"_delete",value:function(r){this.loggers.delete(r)}}]),a}(),ga}var cl;function Uv(){return cl||(cl=1,function(e){var n=kh(),o=jh(),i=o.warn;e.version=lv.version,e.transports=Pv(),e.config=is(),e.addColors=n.levels,e.format=n.format,e.createLogger=Gh(),e.ExceptionHandler=Vh(),e.RejectionHandler=$h(),e.Container=Bv(),e.Transport=Vt(),e.loggers=new e.Container;var a=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(t){return e[t]=function(){return a[t].apply(a,arguments)}}),Object.defineProperty(e,"level",{get:function(){return a.level},set:function(r){a.level=r}}),Object.defineProperty(e,"exceptions",{get:function(){return a.exceptions}}),["exitOnError"].forEach(function(t){Object.defineProperty(e,t,{get:function(){return a[t]},set:function(s){a[t]=s}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:a.exceptionHandlers,rejectionHandlers:a.rejectionHandlers,transports:a.transports}}}),i.deprecated(e,"setLevels"),i.forFunctions(e,"useFormat",["cli"]),i.forProperties(e,"useFormat",["padLevels","stripColors"]),i.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(e,"deprecated",["emitErrs","levelLength"]),i.moved(e,"createLogger","Logger")}(pi)),pi}var va={exports:{}},ya,ll;function bn(){if(ll)return ya;ll=1;var e=function(n,o){Error.call(this,n),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=n,o&&(this.inner=o)};return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,ya=e,ya}var _a,fl;function zh(){if(fl)return _a;fl=1;var e=bn(),n=function(o,i){e.call(this,o),this.name="NotBeforeError",this.date=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,_a=n,_a}var ba,hl;function Hh(){if(hl)return ba;hl=1;var e=bn(),n=function(o,i){e.call(this,o),this.name="TokenExpiredError",this.expiredAt=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ba=n,ba}var bt={},wa,dl;function Zh(){if(dl)return wa;dl=1;var e=hr().Buffer,n=gn(),o=He();function i(a){if(this.buffer=null,this.writable=!0,this.readable=!0,!a)return this.buffer=e.alloc(0),this;if(typeof a.pipe=="function")return this.buffer=e.alloc(0),a.pipe(this),this;if(a.length||typeof a=="object")return this.buffer=a,this.writable=!1,ye.nextTick((function(){this.emit("end",a),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof a+")")}return o.inherits(i,n),i.prototype.write=function(t){this.buffer=e.concat([this.buffer,e.from(t)]),this.emit("data",t)},i.prototype.end=function(t){t&&this.write(t),this.emit("end",t),this.emit("close"),this.writable=!1,this.readable=!1},wa=i,wa}var Ea,pl;function Vv(){if(pl)return Ea;pl=1;function e(i){var a=(i/8|0)+(i%8===0?0:1);return a}var n={ES256:e(256),ES384:e(384),ES512:e(521)};function o(i){var a=n[i];if(a)return a;throw new Error('Unknown algorithm "'+i+'"')}return Ea=o,Ea}var Sa,ml;function $v(){if(ml)return Sa;ml=1;var e=hr().Buffer,n=Vv(),o=128,i=0,a=32,t=16,r=2,s=t|a|i<<6,d=r|i<<6;function l(m){return m.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function f(m){if(e.isBuffer(m))return m;if(typeof m=="string")return e.from(m,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function h(m,y){m=f(m);var g=n(y),u=g+1,_=m.length,w=0;if(m[w++]!==s)throw new Error('Could not find expected "seq"');var v=m[w++];if(v===(o|1)&&(v=m[w++]),_-w<v)throw new Error('"seq" specified length of "'+v+'", only "'+(_-w)+'" remaining');if(m[w++]!==d)throw new Error('Could not find expected "int" for "r"');var E=m[w++];if(_-w-2<E)throw new Error('"r" specified length of "'+E+'", only "'+(_-w-2)+'" available');if(u<E)throw new Error('"r" specified length of "'+E+'", max of "'+u+'" is acceptable');var x=w;if(w+=E,m[w++]!==d)throw new Error('Could not find expected "int" for "s"');var O=m[w++];if(_-w!==O)throw new Error('"s" specified length of "'+O+'", expected "'+(_-w)+'"');if(u<O)throw new Error('"s" specified length of "'+O+'", max of "'+u+'" is acceptable');var C=w;if(w+=O,w!==_)throw new Error('Expected to consume entire buffer, but "'+(_-w)+'" bytes remain');var N=g-E,V=g-O,$=e.allocUnsafe(N+E+V+O);for(w=0;w<N;++w)$[w]=0;m.copy($,w,x+Math.max(-N,0),x+E),w=g;for(var S=w;w<S+V;++w)$[w]=0;return m.copy($,w,C+Math.max(-V,0),C+O),$=$.toString("base64"),$=l($),$}function c(m,y,g){for(var u=0;y+u<g&&m[y+u]===0;)++u;var _=m[y+u]>=o;return _&&--u,u}function b(m,y){m=f(m);var g=n(y),u=m.length;if(u!==g*2)throw new TypeError('"'+y+'" signatures must be "'+g*2+'" bytes, saw "'+u+'"');var _=c(m,0,g),w=c(m,g,m.length),v=g-_,E=g-w,x=2+v+1+1+E,O=x<o,C=e.allocUnsafe((O?2:3)+x),N=0;return C[N++]=s,O?C[N++]=x:(C[N++]=o|1,C[N++]=x&255),C[N++]=d,C[N++]=v,_<0?(C[N++]=0,N+=m.copy(C,N,0,g)):N+=m.copy(C,N,_,g),C[N++]=d,C[N++]=E,w<0?(C[N++]=0,m.copy(C,N,g)):m.copy(C,N,g+w),C}return Sa={derToJose:h,joseToDer:b},Sa}var Ra,gl;function Gv(){if(gl)return Ra;gl=1;var e=ar().Buffer,n=ar().SlowBuffer;Ra=o;function o(t,r){if(!e.isBuffer(t)||!e.isBuffer(r)||t.length!==r.length)return!1;for(var s=0,d=0;d<t.length;d++)s|=t[d]^r[d];return s===0}o.install=function(){e.prototype.equal=n.prototype.equal=function(r){return o(this,r)}};var i=e.prototype.equal,a=n.prototype.equal;return o.restore=function(){e.prototype.equal=i,n.prototype.equal=a},Ra}var Oa,vl;function Yh(){if(vl)return Oa;vl=1;var e=hr().Buffer,n=Ht(),o=$v(),i=He(),a=`"%s" is not a valid algorithm.
|
|
114
|
+
`),Error.captureStackTrace(this,e)}}return ha=n=>{if(n.length>2)throw new e(n);function o(a={}){this.options=a}o.prototype.transform=n;function i(a){return new o(a)}return i.Format=o,i},ha}var da,al;function Mv(){if(al)return da;al=1;const e=Dv(),{MESSAGE:n}=Ne(),o=mr();function i(a,t){return typeof t=="bigint"?t.toString():t}return da=e((a,t)=>{const r=o.configure(t);return a[n]=r(a,t.replacer||i,t.space),a}),da}var pa,ol;function Fv(){if(ol)return pa;ol=1;function e(L,q,z){return q in L?Object.defineProperty(L,q,{value:z,enumerable:!0,configurable:!0,writable:!0}):L[q]=z,L}function n(L){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},n(L)}function o(L,q){if(!(L instanceof q))throw new TypeError("Cannot call a class as a function")}function i(L,q){for(var z=0;z<q.length;z++){var P=q[z];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}function a(L,q,z){return q&&i(L.prototype,q),Object.defineProperty(L,"prototype",{writable:!1}),L}function t(L,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(q&&q.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),q&&r(L,q)}function r(L,q){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,j){return P.__proto__=j,P},r(L,q)}function s(L){var q=f();return function(){var P=h(L),j;if(q){var k=h(this).constructor;j=Reflect.construct(P,arguments,k)}else j=P.apply(this,arguments);return d(this,j)}}function d(L,q){if(q&&(n(q)==="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(L)}function l(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(L){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)},h(L)}var c=dr(),b=c.Stream,m=c.Transform,y=as(),g=Ne(),u=g.LEVEL,_=g.SPLAT,w=Nh(),v=Bh(),E=Uh(),x=qv(),O=Nv(),C=Ph(),D=C.warn,V=is(),$=/%[scdjifoO%]/g,S=function(L){t(z,L);var q=s(z);function z(P){var j;return o(this,z),j=q.call(this,{objectMode:!0}),j.configure(P),j}return a(z,[{key:"child",value:function(j){var k=this;return Object.create(k,{write:{value:function(W){var Z=Object.assign({},j,W);W instanceof Error&&(Z.stack=W.stack,Z.message=W.message),k.write(Z)}}})}},{key:"configure",value:function(){var j=this,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=k.silent,W=k.format,Z=k.defaultMeta,B=k.levels,N=k.level,M=N===void 0?"info":N,G=k.exitOnError,X=G===void 0?!0:G,K=k.transports,ae=k.colors,ue=k.emitErrs,ve=k.formatters,me=k.padLevels,we=k.rewriters,Ce=k.stripColors,ke=k.exceptionHandlers,je=k.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=F,this.format=W||this.format||Mv()(),this.defaultMeta=Z||null,this.levels=B||this.levels||V.npm.levels,this.level=M,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new v(this),this.rejections=new E(this),this.profilers={},this.exitOnError=X,K&&(K=Array.isArray(K)?K:[K],K.forEach(function(Ae){return j.add(Ae)})),ae||ue||ve||me||we||Ce)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
115
|
+
`));ke&&this.exceptions.handle(ke),je&&this.rejections.handle(je)}},{key:"isLevelEnabled",value:function(j){var k=this,F=R(this.levels,j);if(F===null)return!1;var W=R(this.levels,this.level);if(W===null)return!1;if(!this.transports||this.transports.length===0)return W>=F;var Z=this.transports.findIndex(function(B){var N=R(k.levels,B.level);return N===null&&(N=W),N>=F});return Z!==-1}},{key:"log",value:function(j,k){for(var F,W=arguments.length,Z=new Array(W>2?W-2:0),B=2;B<W;B++)Z[B-2]=arguments[B];if(arguments.length===1)return j[u]=j.level,this._addDefaultMeta(j),this.write(j),this;if(arguments.length===2){var N;return k&&n(k)==="object"?(k[u]=k.level=j,this._addDefaultMeta(k),this.write(k),this):(k=(N={},e(N,u,j),e(N,"level",j),e(N,"message",k),N),this._addDefaultMeta(k),this.write(k),this)}var M=Z[0];if(n(M)==="object"&&M!==null){var G=k&&k.match&&k.match($);if(!G){var X,K=Object.assign({},this.defaultMeta,M,(X={},e(X,u,j),e(X,_,Z),e(X,"level",j),e(X,"message",k),X));return M.message&&(K.message="".concat(K.message," ").concat(M.message)),M.stack&&(K.stack=M.stack),this.write(K),this}}return this.write(Object.assign({},this.defaultMeta,(F={},e(F,u,j),e(F,_,Z),e(F,"level",j),e(F,"message",k),F))),this}},{key:"_transform",value:function(j,k,F){if(this.silent)return F();j[u]||(j[u]=j.level),!this.levels[j[u]]&&this.levels[j[u]]!==0&&console.error("[winston] Unknown logger level: %s",j[u]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",j);try{this.push(this.format.transform(j,this.format.options))}finally{this._writableState.sync=!1,F()}}},{key:"_final",value:function(j){var k=this.transports.slice();y(k,function(F,W){if(!F||F.finished)return setImmediate(W);F.once("finish",W),F.end()},j)}},{key:"add",value:function(j){var k=!w(j)||j.log.length>2?new x({transport:j}):j;if(!k._writableState||!k._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",k),this._onEvent("warn",k),this.pipe(k),j.handleExceptions&&this.exceptions.handle(),j.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(j){if(!j)return this;var k=j;return(!w(j)||j.log.length>2)&&(k=this.transports.filter(function(F){return F.transport===j})[0]),k&&this.unpipe(k),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){D.deprecated("setLevels")}},{key:"query",value:function(j,k){typeof j=="function"&&(k=j,j={}),j=j||{};var F={},W=Object.assign({},j.query||{});function Z(N,M){j.query&&typeof N.formatQuery=="function"&&(j.query=N.formatQuery(W)),N.query(j,function(G,X){if(G)return M(G);typeof N.formatResults=="function"&&(X=N.formatResults(X,j.format)),M(null,X)})}function B(N,M){Z(N,function(G,X){M&&(X=G||X,X&&(F[N.name]=X),M()),M=null})}y(this.transports.filter(function(N){return!!N.query}),B,function(){return k(null,F)})}},{key:"stream",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=new b,F=[];return k._streams=F,k.destroy=function(){for(var W=F.length;W--;)F[W].destroy()},this.transports.filter(function(W){return!!W.stream}).forEach(function(W){var Z=W.stream(j);Z&&(F.push(Z),Z.on("log",function(B){B.transport=B.transport||[],B.transport.push(W.name),k.emit("log",B)}),Z.on("error",function(B){B.transport=B.transport||[],B.transport.push(W.name),k.emit("error",B)}))}),k}},{key:"startTimer",value:function(){return new O(this)}},{key:"profile",value:function(j){var k=Date.now();if(this.profilers[j]){var F=this.profilers[j];delete this.profilers[j];for(var W=arguments.length,Z=new Array(W>1?W-1:0),B=1;B<W;B++)Z[B-1]=arguments[B];typeof Z[Z.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),Z.pop());var N=n(Z[Z.length-1])==="object"?Z.pop():{};return N.level=N.level||"info",N.durationMs=k-F,N.message=N.message||j,this.write(N)}return this.profilers[j]=k,this}},{key:"handleExceptions",value:function(){var j;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(j=this.exceptions).handle.apply(j,arguments)}},{key:"unhandleExceptions",value:function(){var j;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(j=this.exceptions).unhandle.apply(j,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
|
116
|
+
`))}},{key:"_onEvent",value:function(j,k){function F(W){j==="error"&&!this.transports.includes(k)&&this.add(k),this.emit(j,W,k)}k["__winston"+j]||(k["__winston"+j]=F.bind(this),k.on(j,k["__winston"+j]))}},{key:"_addDefaultMeta",value:function(j){this.defaultMeta&&Object.assign(j,this.defaultMeta)}}]),z}(m);function R(L,q){var z=L[q];return!z&&z!==0?null:z}return Object.defineProperty(S.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var q=this._readableState.pipes;return Array.isArray(q)?q:[q].filter(Boolean)}}),pa=S,pa}var ma,sl;function Vh(){if(sl)return ma;sl=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(g)}function n(g,u,_){return Object.defineProperty(g,"prototype",{writable:!1}),g}function o(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function i(g,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(u&&u.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),u&&a(g,u)}function a(g,u){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,v){return w.__proto__=v,w},a(g,u)}function t(g){var u=d();return function(){var w=l(g),v;if(u){var E=l(this).constructor;v=Reflect.construct(w,arguments,E)}else v=w.apply(this,arguments);return r(this,v)}}function r(g,u){if(u&&(e(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(g)}function s(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function l(g){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},l(g)}var f=Ne(),h=f.LEVEL,c=is(),b=Fv(),m=_n()("winston:create-logger");function y(g){return"is"+g.charAt(0).toUpperCase()+g.slice(1)+"Enabled"}return ma=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};g.levels=g.levels||c.npm.levels;var u=function(w){i(E,w);var v=t(E);function E(x){return o(this,E),v.call(this,x)}return n(E)}(b),_=new u(g);return Object.keys(g.levels).forEach(function(w){if(m('Define prototype method for "%s"',w),w==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}u.prototype[w]=function(){for(var v=this||_,E=arguments.length,x=new Array(E),O=0;O<E;O++)x[O]=arguments[O];if(x.length===1){var C=x[0],D=C&&C.message&&C||{message:C};return D.level=D[h]=w,v._addDefaultMeta(D),v.write(D),this||_}return x.length===0?(v.log(w,""),v):v.log.apply(v,[w].concat(x))},u.prototype[y(w)]=function(){return(this||_).isLevelEnabled(w)}}),_},ma}var ga,ul;function Bv(){if(ul)return ga;ul=1;function e(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function n(a,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function o(a,t,r){return t&&n(a.prototype,t),Object.defineProperty(a,"prototype",{writable:!1}),a}var i=Vh();return ga=function(){function a(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,a),this.loggers=new Map,this.options=t}return o(a,[{key:"add",value:function(r,s){var d=this;if(!this.loggers.has(r)){s=Object.assign({},s||this.options);var l=s.transports||this.options.transports;s.transports=l?l.slice():[];var f=i(s);f.on("close",function(){return d._delete(r)}),this.loggers.set(r,f)}return this.loggers.get(r)}},{key:"get",value:function(r,s){return this.add(r,s)}},{key:"has",value:function(r){return!!this.loggers.has(r)}},{key:"close",value:function(r){var s=this;if(r)return this._removeLogger(r);this.loggers.forEach(function(d,l){return s._removeLogger(l)})}},{key:"_removeLogger",value:function(r){if(this.loggers.has(r)){var s=this.loggers.get(r);s.close(),this._delete(r)}}},{key:"_delete",value:function(r){this.loggers.delete(r)}}]),a}(),ga}var cl;function Uv(){return cl||(cl=1,function(e){var n=Ch(),o=Ph(),i=o.warn;e.version=lv.version,e.transports=Pv(),e.config=is(),e.addColors=n.levels,e.format=n.format,e.createLogger=Vh(),e.ExceptionHandler=Bh(),e.RejectionHandler=Uh(),e.Container=Bv(),e.Transport=Vt(),e.loggers=new e.Container;var a=e.createLogger();Object.keys(e.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(t){return e[t]=function(){return a[t].apply(a,arguments)}}),Object.defineProperty(e,"level",{get:function(){return a.level},set:function(r){a.level=r}}),Object.defineProperty(e,"exceptions",{get:function(){return a.exceptions}}),["exitOnError"].forEach(function(t){Object.defineProperty(e,t,{get:function(){return a[t]},set:function(s){a[t]=s}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:a.exceptionHandlers,rejectionHandlers:a.rejectionHandlers,transports:a.transports}}}),i.deprecated(e,"setLevels"),i.forFunctions(e,"useFormat",["cli"]),i.forProperties(e,"useFormat",["padLevels","stripColors"]),i.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(e,"deprecated",["emitErrs","levelLength"]),i.moved(e,"createLogger","Logger")}(pi)),pi}var va={exports:{}},ya,ll;function bn(){if(ll)return ya;ll=1;var e=function(n,o){Error.call(this,n),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=n,o&&(this.inner=o)};return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,ya=e,ya}var _a,fl;function $h(){if(fl)return _a;fl=1;var e=bn(),n=function(o,i){e.call(this,o),this.name="NotBeforeError",this.date=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,_a=n,_a}var ba,hl;function Gh(){if(hl)return ba;hl=1;var e=bn(),n=function(o,i){e.call(this,o),this.name="TokenExpiredError",this.expiredAt=i};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ba=n,ba}var bt={},wa,dl;function zh(){if(dl)return wa;dl=1;var e=hr().Buffer,n=gn(),o=He();function i(a){if(this.buffer=null,this.writable=!0,this.readable=!0,!a)return this.buffer=e.alloc(0),this;if(typeof a.pipe=="function")return this.buffer=e.alloc(0),a.pipe(this),this;if(a.length||typeof a=="object")return this.buffer=a,this.writable=!1,ye.nextTick((function(){this.emit("end",a),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof a+")")}return o.inherits(i,n),i.prototype.write=function(t){this.buffer=e.concat([this.buffer,e.from(t)]),this.emit("data",t)},i.prototype.end=function(t){t&&this.write(t),this.emit("end",t),this.emit("close"),this.writable=!1,this.readable=!1},wa=i,wa}var Ea,pl;function Vv(){if(pl)return Ea;pl=1;function e(i){var a=(i/8|0)+(i%8===0?0:1);return a}var n={ES256:e(256),ES384:e(384),ES512:e(521)};function o(i){var a=n[i];if(a)return a;throw new Error('Unknown algorithm "'+i+'"')}return Ea=o,Ea}var Sa,ml;function $v(){if(ml)return Sa;ml=1;var e=hr().Buffer,n=Vv(),o=128,i=0,a=32,t=16,r=2,s=t|a|i<<6,d=r|i<<6;function l(m){return m.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function f(m){if(e.isBuffer(m))return m;if(typeof m=="string")return e.from(m,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function h(m,y){m=f(m);var g=n(y),u=g+1,_=m.length,w=0;if(m[w++]!==s)throw new Error('Could not find expected "seq"');var v=m[w++];if(v===(o|1)&&(v=m[w++]),_-w<v)throw new Error('"seq" specified length of "'+v+'", only "'+(_-w)+'" remaining');if(m[w++]!==d)throw new Error('Could not find expected "int" for "r"');var E=m[w++];if(_-w-2<E)throw new Error('"r" specified length of "'+E+'", only "'+(_-w-2)+'" available');if(u<E)throw new Error('"r" specified length of "'+E+'", max of "'+u+'" is acceptable');var x=w;if(w+=E,m[w++]!==d)throw new Error('Could not find expected "int" for "s"');var O=m[w++];if(_-w!==O)throw new Error('"s" specified length of "'+O+'", expected "'+(_-w)+'"');if(u<O)throw new Error('"s" specified length of "'+O+'", max of "'+u+'" is acceptable');var C=w;if(w+=O,w!==_)throw new Error('Expected to consume entire buffer, but "'+(_-w)+'" bytes remain');var D=g-E,V=g-O,$=e.allocUnsafe(D+E+V+O);for(w=0;w<D;++w)$[w]=0;m.copy($,w,x+Math.max(-D,0),x+E),w=g;for(var S=w;w<S+V;++w)$[w]=0;return m.copy($,w,C+Math.max(-V,0),C+O),$=$.toString("base64"),$=l($),$}function c(m,y,g){for(var u=0;y+u<g&&m[y+u]===0;)++u;var _=m[y+u]>=o;return _&&--u,u}function b(m,y){m=f(m);var g=n(y),u=m.length;if(u!==g*2)throw new TypeError('"'+y+'" signatures must be "'+g*2+'" bytes, saw "'+u+'"');var _=c(m,0,g),w=c(m,g,m.length),v=g-_,E=g-w,x=2+v+1+1+E,O=x<o,C=e.allocUnsafe((O?2:3)+x),D=0;return C[D++]=s,O?C[D++]=x:(C[D++]=o|1,C[D++]=x&255),C[D++]=d,C[D++]=v,_<0?(C[D++]=0,D+=m.copy(C,D,0,g)):D+=m.copy(C,D,_,g),C[D++]=d,C[D++]=E,w<0?(C[D++]=0,m.copy(C,D,g)):m.copy(C,D,g+w),C}return Sa={derToJose:h,joseToDer:b},Sa}var Ra,gl;function Gv(){if(gl)return Ra;gl=1;var e=ar().Buffer,n=ar().SlowBuffer;Ra=o;function o(t,r){if(!e.isBuffer(t)||!e.isBuffer(r)||t.length!==r.length)return!1;for(var s=0,d=0;d<t.length;d++)s|=t[d]^r[d];return s===0}o.install=function(){e.prototype.equal=n.prototype.equal=function(r){return o(this,r)}};var i=e.prototype.equal,a=n.prototype.equal;return o.restore=function(){e.prototype.equal=i,n.prototype.equal=a},Ra}var Oa,vl;function Hh(){if(vl)return Oa;vl=1;var e=hr().Buffer,n=Ht(),o=$v(),i=He(),a=`"%s" is not a valid algorithm.
|
|
118
117
|
Supported algorithms are:
|
|
119
|
-
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,t="secret must be a string or buffer",r="key must be a string or a buffer",s="key must be a string, a buffer or an object",d=typeof n.createPublicKey=="function";d&&(r+=" or a KeyObject",t+="or a KeyObject");function l(R){if(!e.isBuffer(R)&&typeof R!="string"&&(!d||typeof R!="object"||typeof R.type!="string"||typeof R.asymmetricKeyType!="string"||typeof R.export!="function"))throw m(r)}function f(R){if(!e.isBuffer(R)&&typeof R!="string"&&typeof R!="object")throw m(s)}function h(R){if(!e.isBuffer(R)){if(typeof R=="string")return R;if(!d||typeof R!="object"||R.type!=="secret"||typeof R.export!="function")throw m(t)}}function c(R){return R.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function b(R){R=R.toString();var L=4-R.length%4;if(L!==4)for(var q=0;q<L;++q)R+="=";return R.replace(/\-/g,"+").replace(/_/g,"/")}function m(R){var L=[].slice.call(arguments,1),q=i.format.bind(i,R).apply(null,L);return new TypeError(q)}function y(R){return e.isBuffer(R)||typeof R=="string"}function g(R){return y(R)||(R=JSON.stringify(R)),R}function u(R){return function(q,z){h(z),q=g(q);var P=n.createHmac("sha"+R,z),j=(P.update(q),P.digest("base64"));return c(j)}}var _,w="timingSafeEqual"in n?function(L,q){return L.byteLength!==q.byteLength?!1:n.timingSafeEqual(L,q)}:function(L,q){return _||(_=Gv()),_(L,q)};function v(R){return function(q,z,P){var j=u(R)(q,P);return w(e.from(z),e.from(j))}}function E(R){return function(q,z){f(z),q=g(q);var P=n.createSign("RSA-SHA"+R),j=(P.update(q),P.sign(z,"base64"));return c(j)}}function x(R){return function(q,z,P){l(P),q=g(q),z=b(z);var j=n.createVerify("RSA-SHA"+R);return j.update(q),j.verify(P,z,"base64")}}function O(R){return function(q,z){f(z),q=g(q);var P=n.createSign("RSA-SHA"+R),j=(P.update(q),P.sign({key:z,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return c(j)}}function C(R){return function(q,z,P){l(P),q=g(q),z=b(z);var j=n.createVerify("RSA-SHA"+R);return j.update(q),j.verify({key:P,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},z,"base64")}}function N(R){var L=E(R);return function(){var z=L.apply(null,arguments);return z=o.derToJose(z,"ES"+R),z}}function V(R){var L=x(R);return function(z,P,j){P=o.joseToDer(P,"ES"+R).toString("base64");var k=L(z,P,j);return k}}function $(){return function(){return""}}function S(){return function(L,q){return q===""}}return Oa=function(L){var q={hs:u,rs:E,ps:O,es:N,none:$},z={hs:v,rs:x,ps:C,es:V,none:S},P=L.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!P)throw m(a,L);var j=(P[1]||P[3]).toLowerCase(),k=P[2];return{sign:q[j](k),verify:z[j](k)}},Oa}var Ta,yl;function Wh(){if(yl)return Ta;yl=1;var e=ar().Buffer;return Ta=function(o){return typeof o=="string"?o:typeof o=="number"||e.isBuffer(o)?o.toString():JSON.stringify(o)},Ta}var xa,_l;function zv(){if(_l)return xa;_l=1;var e=hr().Buffer,n=Zh(),o=Yh(),i=gn(),a=Wh(),t=He();function r(f,h){return e.from(f,h).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(f,h,c){c=c||"utf8";var b=r(a(f),"binary"),m=r(a(h),c);return t.format("%s.%s",b,m)}function d(f){var h=f.header,c=f.payload,b=f.secret||f.privateKey,m=f.encoding,y=o(h.alg),g=s(h,c,m),u=y.sign(g,b);return t.format("%s.%s",g,u)}function l(f){var h=f.secret;if(h=h??f.privateKey,h=h??f.key,/^hs/i.test(f.header.alg)===!0&&h==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var c=new n(h);this.readable=!0,this.header=f.header,this.encoding=f.encoding,this.secret=this.privateKey=this.key=c,this.payload=new n(f.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}return t.inherits(l,i),l.prototype.sign=function(){try{var h=d({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",h),this.emit("data",h),this.emit("end"),this.readable=!1,h}catch(c){this.readable=!1,this.emit("error",c),this.emit("close")}},l.sign=d,xa=l,xa}var Aa,bl;function Hv(){if(bl)return Aa;bl=1;var e=hr().Buffer,n=Zh(),o=Yh(),i=gn(),a=Wh(),t=He(),r=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function s(u){return Object.prototype.toString.call(u)==="[object Object]"}function d(u){if(s(u))return u;try{return JSON.parse(u)}catch{return}}function l(u){var _=u.split(".",1)[0];return d(e.from(_,"base64").toString("binary"))}function f(u){return u.split(".",2).join(".")}function h(u){return u.split(".")[2]}function c(u,_){_=_||"utf8";var w=u.split(".")[1];return e.from(w,"base64").toString(_)}function b(u){return r.test(u)&&!!l(u)}function m(u,_,w){if(!_){var v=new Error("Missing algorithm parameter for jws.verify");throw v.code="MISSING_ALGORITHM",v}u=a(u);var E=h(u),x=f(u),O=o(_);return O.verify(x,E,w)}function y(u,_){if(_=_||{},u=a(u),!b(u))return null;var w=l(u);if(!w)return null;var v=c(u);return(w.typ==="JWT"||_.json)&&(v=JSON.parse(v,_.encoding)),{header:w,payload:v,signature:h(u)}}function g(u){u=u||{};var _=u.secret;if(_=_??u.publicKey,_=_??u.key,/^hs/i.test(u.algorithm)===!0&&_==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var w=new n(_);this.readable=!0,this.algorithm=u.algorithm,this.encoding=u.encoding,this.secret=this.publicKey=this.key=w,this.signature=new n(u.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}return t.inherits(g,i),g.prototype.verify=function(){try{var _=m(this.signature.buffer,this.algorithm,this.key.buffer),w=y(this.signature.buffer,this.encoding);return this.emit("done",_,w),this.emit("data",_),this.emit("end"),this.readable=!1,_}catch(v){this.readable=!1,this.emit("error",v),this.emit("close")}},g.decode=y,g.isValid=b,g.verify=m,Aa=g,Aa}var wl;function os(){if(wl)return bt;wl=1;var e=zv(),n=Hv(),o=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];return bt.ALGORITHMS=o,bt.sign=e.sign,bt.verify=n.verify,bt.decode=n.decode,bt.isValid=n.isValid,bt.createSign=function(a){return new e(a)},bt.createVerify=function(a){return new n(a)},bt}var Ia,El;function Jh(){if(El)return Ia;El=1;var e=os();return Ia=function(n,o){o=o||{};var i=e.decode(n,o);if(!i)return null;var a=i.payload;if(typeof a=="string")try{var t=JSON.parse(a);t!==null&&typeof t=="object"&&(a=t)}catch{}return o.complete===!0?{header:i.header,payload:a,signature:i.signature}:a},Ia}var Ca,Sl;function Kh(){if(Sl)return Ca;Sl=1;var e=Eh();return Ca=function(n,o){var i=o||Math.floor(Date.now()/1e3);if(typeof n=="string"){var a=e(n);return typeof a>"u"?void 0:Math.floor(i+a/1e3)}else return typeof n=="number"?i+n:void 0},Ca}var Qr={exports:{}},Pa,Rl;function wn(){if(Rl)return Pa;Rl=1;const e="2.0.0",n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991;return Pa={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:o,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Pa}var ka,Ol;function En(){if(Ol)return ka;Ol=1;var e={};return ka=typeof ye=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...o)=>console.error("SEMVER",...o):()=>{},ka}var Tl;function vr(){return Tl||(Tl=1,function(e,n){const{MAX_SAFE_COMPONENT_LENGTH:o}=wn(),i=En();n=e.exports={};const a=n.re=[],t=n.safeRe=[],r=n.src=[],s=n.t={};let d=0;const l=(f,h,c)=>{const b=h.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),m=d++;i(f,m,h),s[f]=m,r[m]=h,a[m]=new RegExp(h,c?"g":void 0),t[m]=new RegExp(b,c?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${r[s.NUMERICIDENTIFIER]}|${r[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${r[s.NUMERICIDENTIFIERLOOSE]}|${r[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${r[s.PRERELEASEIDENTIFIER]}(?:\\.${r[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${r[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${r[s.BUILDIDENTIFIER]}(?:\\.${r[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${r[s.MAINVERSION]}${r[s.PRERELEASE]}?${r[s.BUILD]}?`),l("FULL",`^${r[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${r[s.MAINVERSIONLOOSE]}${r[s.PRERELEASELOOSE]}?${r[s.BUILD]}?`),l("LOOSE",`^${r[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${r[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${r[s.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:${r[s.PRERELEASE]})?${r[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:${r[s.PRERELEASELOOSE]})?${r[s.BUILD]}?)?)?`),l("XRANGE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?(?:$|[^\\d])`),l("COERCERTL",r[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${r[s.LONETILDE]}\\s+`,!0),n.tildeTrimReplace="$1~",l("TILDE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${r[s.LONECARET]}\\s+`,!0),n.caretTrimReplace="$1^",l("CARET",`^${r[s.LONECARET]}${r[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${r[s.LONECARET]}${r[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${r[s.GTLT]}\\s*(${r[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]}|${r[s.XRANGEPLAIN]})`,!0),n.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${r[s.XRANGEPLAIN]})\\s+-\\s+(${r[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${r[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Qr,Qr.exports)),Qr.exports}var ja,xl;function ss(){if(xl)return ja;xl=1;const e=Object.freeze({loose:!0}),n=Object.freeze({});return ja=i=>i?typeof i!="object"?e:i:n,ja}var La,Al;function Xh(){if(Al)return La;Al=1;const e=/^[0-9]+$/,n=(i,a)=>{const t=e.test(i),r=e.test(a);return t&&r&&(i=+i,a=+a),i===a?0:t&&!r?-1:r&&!t?1:i<a?-1:1};return La={compareIdentifiers:n,rcompareIdentifiers:(i,a)=>n(a,i)},La}var qa,Il;function Ke(){if(Il)return qa;Il=1;const e=En(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=wn(),{safeRe:i,t:a}=vr(),t=ss(),{compareIdentifiers:r}=Xh();class s{constructor(l,f){if(f=t(f),l instanceof s){if(l.loose===!!f.loose&&l.includePrerelease===!!f.includePrerelease)return l;l=l.version}else if(typeof l!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);if(l.length>n)throw new TypeError(`version is longer than ${n} characters`);e("SemVer",l,f),this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease;const h=l.trim().match(f.loose?i[a.LOOSE]:i[a.FULL]);if(!h)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){const b=+c;if(b>=0&&b<o)return b}return c}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(l){if(e("SemVer.compare",this.version,this.options,l),!(l instanceof s)){if(typeof l=="string"&&l===this.version)return 0;l=new s(l,this.options)}return l.version===this.version?0:this.compareMain(l)||this.comparePre(l)}compareMain(l){return l instanceof s||(l=new s(l,this.options)),r(this.major,l.major)||r(this.minor,l.minor)||r(this.patch,l.patch)}comparePre(l){if(l instanceof s||(l=new s(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let f=0;do{const h=this.prerelease[f],c=l.prerelease[f];if(e("prerelease compare",f,h,c),h===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(h===void 0)return-1;if(h===c)continue;return r(h,c)}while(++f)}compareBuild(l){l instanceof s||(l=new s(l,this.options));let f=0;do{const h=this.build[f],c=l.build[f];if(e("prerelease compare",f,h,c),h===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(h===void 0)return-1;if(h===c)continue;return r(h,c)}while(++f)}inc(l,f,h){switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",f,h);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",f,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",f,h),this.inc("pre",f,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",f,h),this.inc("pre",f,h);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const c=Number(h)?1:0;if(!f&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[c];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(f===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(f){let b=[f,c];h===!1&&(b=[f]),r(this.prerelease[0],f)===0?isNaN(this.prerelease[1])&&(this.prerelease=b):this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return qa=s,qa}var Da,Cl;function Yt(){if(Cl)return Da;Cl=1;const e=Ke();return Da=(o,i,a=!1)=>{if(o instanceof e)return o;try{return new e(o,i)}catch(t){if(!a)return null;throw t}},Da}var Na,Pl;function Zv(){if(Pl)return Na;Pl=1;const e=Yt();return Na=(o,i)=>{const a=e(o,i);return a?a.version:null},Na}var Ma,kl;function Yv(){if(kl)return Ma;kl=1;const e=Yt();return Ma=(o,i)=>{const a=e(o.trim().replace(/^[=v]+/,""),i);return a?a.version:null},Ma}var Fa,jl;function Wv(){if(jl)return Fa;jl=1;const e=Ke();return Fa=(o,i,a,t,r)=>{typeof a=="string"&&(r=t,t=a,a=void 0);try{return new e(o instanceof e?o.version:o,a).inc(i,t,r).version}catch{return null}},Fa}var Ba,Ll;function Jv(){if(Ll)return Ba;Ll=1;const e=Yt();return Ba=(o,i)=>{const a=e(o,null,!0),t=e(i,null,!0),r=a.compare(t);if(r===0)return null;const s=r>0,d=s?a:t,l=s?t:a,f=!!d.prerelease.length;if(!!l.prerelease.length&&!f)return!l.patch&&!l.minor?"major":d.patch?"patch":d.minor?"minor":"major";const c=f?"pre":"";return a.major!==t.major?c+"major":a.minor!==t.minor?c+"minor":a.patch!==t.patch?c+"patch":"prerelease"},Ba}var Ua,ql;function Kv(){if(ql)return Ua;ql=1;const e=Ke();return Ua=(o,i)=>new e(o,i).major,Ua}var Va,Dl;function Xv(){if(Dl)return Va;Dl=1;const e=Ke();return Va=(o,i)=>new e(o,i).minor,Va}var $a,Nl;function Qv(){if(Nl)return $a;Nl=1;const e=Ke();return $a=(o,i)=>new e(o,i).patch,$a}var Ga,Ml;function ey(){if(Ml)return Ga;Ml=1;const e=Yt();return Ga=(o,i)=>{const a=e(o,i);return a&&a.prerelease.length?a.prerelease:null},Ga}var za,Fl;function lt(){if(Fl)return za;Fl=1;const e=Ke();return za=(o,i,a)=>new e(o,a).compare(new e(i,a)),za}var Ha,Bl;function ty(){if(Bl)return Ha;Bl=1;const e=lt();return Ha=(o,i,a)=>e(i,o,a),Ha}var Za,Ul;function ry(){if(Ul)return Za;Ul=1;const e=lt();return Za=(o,i)=>e(o,i,!0),Za}var Ya,Vl;function us(){if(Vl)return Ya;Vl=1;const e=Ke();return Ya=(o,i,a)=>{const t=new e(o,a),r=new e(i,a);return t.compare(r)||t.compareBuild(r)},Ya}var Wa,$l;function ny(){if($l)return Wa;$l=1;const e=us();return Wa=(o,i)=>o.sort((a,t)=>e(a,t,i)),Wa}var Ja,Gl;function iy(){if(Gl)return Ja;Gl=1;const e=us();return Ja=(o,i)=>o.sort((a,t)=>e(t,a,i)),Ja}var Ka,zl;function Sn(){if(zl)return Ka;zl=1;const e=lt();return Ka=(o,i,a)=>e(o,i,a)>0,Ka}var Xa,Hl;function cs(){if(Hl)return Xa;Hl=1;const e=lt();return Xa=(o,i,a)=>e(o,i,a)<0,Xa}var Qa,Zl;function Qh(){if(Zl)return Qa;Zl=1;const e=lt();return Qa=(o,i,a)=>e(o,i,a)===0,Qa}var eo,Yl;function ed(){if(Yl)return eo;Yl=1;const e=lt();return eo=(o,i,a)=>e(o,i,a)!==0,eo}var to,Wl;function ls(){if(Wl)return to;Wl=1;const e=lt();return to=(o,i,a)=>e(o,i,a)>=0,to}var ro,Jl;function fs(){if(Jl)return ro;Jl=1;const e=lt();return ro=(o,i,a)=>e(o,i,a)<=0,ro}var no,Kl;function td(){if(Kl)return no;Kl=1;const e=Qh(),n=ed(),o=Sn(),i=ls(),a=cs(),t=fs();return no=(s,d,l,f)=>{switch(d){case"===":return typeof s=="object"&&(s=s.version),typeof l=="object"&&(l=l.version),s===l;case"!==":return typeof s=="object"&&(s=s.version),typeof l=="object"&&(l=l.version),s!==l;case"":case"=":case"==":return e(s,l,f);case"!=":return n(s,l,f);case">":return o(s,l,f);case">=":return i(s,l,f);case"<":return a(s,l,f);case"<=":return t(s,l,f);default:throw new TypeError(`Invalid operator: ${d}`)}},no}var io,Xl;function ay(){if(Xl)return io;Xl=1;const e=Ke(),n=Yt(),{safeRe:o,t:i}=vr();return io=(t,r)=>{if(t instanceof e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;r=r||{};let s=null;if(!r.rtl)s=t.match(o[i.COERCE]);else{let d;for(;(d=o[i.COERCERTL].exec(t))&&(!s||s.index+s[0].length!==t.length);)(!s||d.index+d[0].length!==s.index+s[0].length)&&(s=d),o[i.COERCERTL].lastIndex=d.index+d[1].length+d[2].length;o[i.COERCERTL].lastIndex=-1}return s===null?null:n(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)},io}var ao,Ql;function oy(){return Ql||(Ql=1,ao=function(e){e.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}),ao}var oo,ef;function sy(){if(ef)return oo;ef=1,oo=e,e.Node=a,e.create=e;function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&typeof t.forEach=="function")t.forEach(function(l){r.push(l)});else if(arguments.length>0)for(var s=0,d=arguments.length;s<d;s++)r.push(arguments[s]);return r}e.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var r=t.next,s=t.prev;return r&&(r.prev=s),s&&(s.next=r),t===this.head&&(this.head=r),t===this.tail&&(this.tail=s),t.list.length--,t.next=null,t.prev=null,t.list=null,r},e.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var r=this.head;t.list=this,t.next=r,r&&(r.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var r=this.tail;t.list=this,t.prev=r,r&&(r.next=t),this.tail=t,this.head||(this.head=t),this.length++}},e.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++)o(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++)i(this,arguments[t]);return this.length},e.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},e.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},e.prototype.forEach=function(t,r){r=r||this;for(var s=this.head,d=0;s!==null;d++)t.call(r,s.value,d,this),s=s.next},e.prototype.forEachReverse=function(t,r){r=r||this;for(var s=this.tail,d=this.length-1;s!==null;d--)t.call(r,s.value,d,this),s=s.prev},e.prototype.get=function(t){for(var r=0,s=this.head;s!==null&&r<t;r++)s=s.next;if(r===t&&s!==null)return s.value},e.prototype.getReverse=function(t){for(var r=0,s=this.tail;s!==null&&r<t;r++)s=s.prev;if(r===t&&s!==null)return s.value},e.prototype.map=function(t,r){r=r||this;for(var s=new e,d=this.head;d!==null;)s.push(t.call(r,d.value,this)),d=d.next;return s},e.prototype.mapReverse=function(t,r){r=r||this;for(var s=new e,d=this.tail;d!==null;)s.push(t.call(r,d.value,this)),d=d.prev;return s},e.prototype.reduce=function(t,r){var s,d=this.head;if(arguments.length>1)s=r;else if(this.head)d=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;d!==null;l++)s=t(s,d.value,l),d=d.next;return s},e.prototype.reduceReverse=function(t,r){var s,d=this.tail;if(arguments.length>1)s=r;else if(this.tail)d=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;d!==null;l--)s=t(s,d.value,l),d=d.prev;return s},e.prototype.toArray=function(){for(var t=new Array(this.length),r=0,s=this.head;s!==null;r++)t[r]=s.value,s=s.next;return t},e.prototype.toArrayReverse=function(){for(var t=new Array(this.length),r=0,s=this.tail;s!==null;r++)t[r]=s.value,s=s.prev;return t},e.prototype.slice=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=0,l=this.head;l!==null&&d<t;d++)l=l.next;for(;l!==null&&d<r;d++,l=l.next)s.push(l.value);return s},e.prototype.sliceReverse=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=this.length,l=this.tail;l!==null&&d>r;d--)l=l.prev;for(;l!==null&&d>t;d--,l=l.prev)s.push(l.value);return s},e.prototype.splice=function(t,r,...s){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var d=0,l=this.head;l!==null&&d<t;d++)l=l.next;for(var f=[],d=0;l&&d<r;d++)f.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var d=0;d<s.length;d++)l=n(this,l,s[d]);return f},e.prototype.reverse=function(){for(var t=this.head,r=this.tail,s=t;s!==null;s=s.prev){var d=s.prev;s.prev=s.next,s.next=d}return this.head=r,this.tail=t,this};function n(t,r,s){var d=r===t.head?new a(s,null,r,t):new a(s,r,r.next,t);return d.next===null&&(t.tail=d),d.prev===null&&(t.head=d),t.length++,d}function o(t,r){t.tail=new a(r,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function i(t,r){t.head=new a(r,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function a(t,r,s,d){if(!(this instanceof a))return new a(t,r,s,d);this.list=d,this.value=t,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{oy()(e)}catch{}return oo}var so,tf;function uy(){if(tf)return so;tf=1;const e=sy(),n=Symbol("max"),o=Symbol("length"),i=Symbol("lengthCalculator"),a=Symbol("allowStale"),t=Symbol("maxAge"),r=Symbol("dispose"),s=Symbol("noDisposeOnSet"),d=Symbol("lruList"),l=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1;class c{constructor(v){if(typeof v=="number"&&(v={max:v}),v||(v={}),v.max&&(typeof v.max!="number"||v.max<0))throw new TypeError("max must be a non-negative number");this[n]=v.max||1/0;const E=v.length||h;if(this[i]=typeof E!="function"?h:E,this[a]=v.stale||!1,v.maxAge&&typeof v.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=v.maxAge||0,this[r]=v.dispose,this[s]=v.noDisposeOnSet||!1,this[f]=v.updateAgeOnGet||!1,this.reset()}set max(v){if(typeof v!="number"||v<0)throw new TypeError("max must be a non-negative number");this[n]=v||1/0,y(this)}get max(){return this[n]}set allowStale(v){this[a]=!!v}get allowStale(){return this[a]}set maxAge(v){if(typeof v!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=v,y(this)}get maxAge(){return this[t]}set lengthCalculator(v){typeof v!="function"&&(v=h),v!==this[i]&&(this[i]=v,this[o]=0,this[d].forEach(E=>{E.length=this[i](E.value,E.key),this[o]+=E.length})),y(this)}get lengthCalculator(){return this[i]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(v,E){E=E||this;for(let x=this[d].tail;x!==null;){const O=x.prev;_(this,v,x,E),x=O}}forEach(v,E){E=E||this;for(let x=this[d].head;x!==null;){const O=x.next;_(this,v,x,E),x=O}}keys(){return this[d].toArray().map(v=>v.key)}values(){return this[d].toArray().map(v=>v.value)}reset(){this[r]&&this[d]&&this[d].length&&this[d].forEach(v=>this[r](v.key,v.value)),this[l]=new Map,this[d]=new e,this[o]=0}dump(){return this[d].map(v=>m(this,v)?!1:{k:v.key,v:v.value,e:v.now+(v.maxAge||0)}).toArray().filter(v=>v)}dumpLru(){return this[d]}set(v,E,x){if(x=x||this[t],x&&typeof x!="number")throw new TypeError("maxAge must be a number");const O=x?Date.now():0,C=this[i](E,v);if(this[l].has(v)){if(C>this[n])return g(this,this[l].get(v)),!1;const $=this[l].get(v).value;return this[r]&&(this[s]||this[r](v,$.value)),$.now=O,$.maxAge=x,$.value=E,this[o]+=C-$.length,$.length=C,this.get(v),y(this),!0}const N=new u(v,E,C,O,x);return N.length>this[n]?(this[r]&&this[r](v,E),!1):(this[o]+=N.length,this[d].unshift(N),this[l].set(v,this[d].head),y(this),!0)}has(v){if(!this[l].has(v))return!1;const E=this[l].get(v).value;return!m(this,E)}get(v){return b(this,v,!0)}peek(v){return b(this,v,!1)}pop(){const v=this[d].tail;return v?(g(this,v),v.value):null}del(v){g(this,this[l].get(v))}load(v){this.reset();const E=Date.now();for(let x=v.length-1;x>=0;x--){const O=v[x],C=O.e||0;if(C===0)this.set(O.k,O.v);else{const N=C-E;N>0&&this.set(O.k,O.v,N)}}}prune(){this[l].forEach((v,E)=>b(this,E,!1))}}const b=(w,v,E)=>{const x=w[l].get(v);if(x){const O=x.value;if(m(w,O)){if(g(w,x),!w[a])return}else E&&(w[f]&&(x.value.now=Date.now()),w[d].unshiftNode(x));return O.value}},m=(w,v)=>{if(!v||!v.maxAge&&!w[t])return!1;const E=Date.now()-v.now;return v.maxAge?E>v.maxAge:w[t]&&E>w[t]},y=w=>{if(w[o]>w[n])for(let v=w[d].tail;w[o]>w[n]&&v!==null;){const E=v.prev;g(w,v),v=E}},g=(w,v)=>{if(v){const E=v.value;w[r]&&w[r](E.key,E.value),w[o]-=E.length,w[l].delete(E.key),w[d].removeNode(v)}};class u{constructor(v,E,x,O,C){this.key=v,this.value=E,this.length=x,this.now=O,this.maxAge=C||0}}const _=(w,v,E,x)=>{let O=E.value;m(w,O)&&(g(w,E),w[a]||(O=void 0)),O&&v.call(x,O.value,O.key,w)};return so=c,so}var uo,rf;function ft(){if(rf)return uo;rf=1;class e{constructor(L,q){if(q=i(q),L instanceof e)return L.loose===!!q.loose&&L.includePrerelease===!!q.includePrerelease?L:new e(L.raw,q);if(L instanceof a)return this.raw=L.value,this.set=[[L]],this.format(),this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=L.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(z=>this.parseRange(z)).filter(z=>z.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const z=this.set[0];if(this.set=this.set.filter(P=>!m(P[0])),this.set.length===0)this.set=[z];else if(this.set.length>1){for(const P of this.set)if(P.length===1&&y(P[0])){this.set=[P];break}}}this.format()}format(){return this.range=this.set.map(L=>L.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(L){const z=((this.options.includePrerelease&&c)|(this.options.loose&&b))+":"+L,P=o.get(z);if(P)return P;const j=this.options.loose,k=j?s[d.HYPHENRANGELOOSE]:s[d.HYPHENRANGE];L=L.replace(k,$(this.options.includePrerelease)),t("hyphen replace",L),L=L.replace(s[d.COMPARATORTRIM],l),t("comparator trim",L),L=L.replace(s[d.TILDETRIM],f),L=L.replace(s[d.CARETTRIM],h);let F=L.split(" ").map(D=>u(D,this.options)).join(" ").split(/\s+/).map(D=>V(D,this.options));j&&(F=F.filter(D=>(t("loose invalid filter",D,this.options),!!D.match(s[d.COMPARATORLOOSE])))),t("range list",F);const W=new Map,Z=F.map(D=>new a(D,this.options));for(const D of Z){if(m(D))return[D];W.set(D.value,D)}W.size>1&&W.has("")&&W.delete("");const U=[...W.values()];return o.set(z,U),U}intersects(L,q){if(!(L instanceof e))throw new TypeError("a Range is required");return this.set.some(z=>g(z,q)&&L.set.some(P=>g(P,q)&&z.every(j=>P.every(k=>j.intersects(k,q)))))}test(L){if(!L)return!1;if(typeof L=="string")try{L=new r(L,this.options)}catch{return!1}for(let q=0;q<this.set.length;q++)if(S(this.set[q],L,this.options))return!0;return!1}}uo=e;const n=uy(),o=new n({max:1e3}),i=ss(),a=Rn(),t=En(),r=Ke(),{safeRe:s,t:d,comparatorTrimReplace:l,tildeTrimReplace:f,caretTrimReplace:h}=vr(),{FLAG_INCLUDE_PRERELEASE:c,FLAG_LOOSE:b}=wn(),m=R=>R.value==="<0.0.0-0",y=R=>R.value==="",g=(R,L)=>{let q=!0;const z=R.slice();let P=z.pop();for(;q&&z.length;)q=z.every(j=>P.intersects(j,L)),P=z.pop();return q},u=(R,L)=>(t("comp",R,L),R=E(R,L),t("caret",R),R=w(R,L),t("tildes",R),R=O(R,L),t("xrange",R),R=N(R,L),t("stars",R),R),_=R=>!R||R.toLowerCase()==="x"||R==="*",w=(R,L)=>R.trim().split(/\s+/).map(q=>v(q,L)).join(" "),v=(R,L)=>{const q=L.loose?s[d.TILDELOOSE]:s[d.TILDE];return R.replace(q,(z,P,j,k,F)=>{t("tilde",R,z,P,j,k,F);let W;return _(P)?W="":_(j)?W=`>=${P}.0.0 <${+P+1}.0.0-0`:_(k)?W=`>=${P}.${j}.0 <${P}.${+j+1}.0-0`:F?(t("replaceTilde pr",F),W=`>=${P}.${j}.${k}-${F} <${P}.${+j+1}.0-0`):W=`>=${P}.${j}.${k} <${P}.${+j+1}.0-0`,t("tilde return",W),W})},E=(R,L)=>R.trim().split(/\s+/).map(q=>x(q,L)).join(" "),x=(R,L)=>{t("caret",R,L);const q=L.loose?s[d.CARETLOOSE]:s[d.CARET],z=L.includePrerelease?"-0":"";return R.replace(q,(P,j,k,F,W)=>{t("caret",R,P,j,k,F,W);let Z;return _(j)?Z="":_(k)?Z=`>=${j}.0.0${z} <${+j+1}.0.0-0`:_(F)?j==="0"?Z=`>=${j}.${k}.0${z} <${j}.${+k+1}.0-0`:Z=`>=${j}.${k}.0${z} <${+j+1}.0.0-0`:W?(t("replaceCaret pr",W),j==="0"?k==="0"?Z=`>=${j}.${k}.${F}-${W} <${j}.${k}.${+F+1}-0`:Z=`>=${j}.${k}.${F}-${W} <${j}.${+k+1}.0-0`:Z=`>=${j}.${k}.${F}-${W} <${+j+1}.0.0-0`):(t("no pr"),j==="0"?k==="0"?Z=`>=${j}.${k}.${F}${z} <${j}.${k}.${+F+1}-0`:Z=`>=${j}.${k}.${F}${z} <${j}.${+k+1}.0-0`:Z=`>=${j}.${k}.${F} <${+j+1}.0.0-0`),t("caret return",Z),Z})},O=(R,L)=>(t("replaceXRanges",R,L),R.split(/\s+/).map(q=>C(q,L)).join(" ")),C=(R,L)=>{R=R.trim();const q=L.loose?s[d.XRANGELOOSE]:s[d.XRANGE];return R.replace(q,(z,P,j,k,F,W)=>{t("xRange",R,z,P,j,k,F,W);const Z=_(j),U=Z||_(k),D=U||_(F),M=D;return P==="="&&M&&(P=""),W=L.includePrerelease?"-0":"",Z?P===">"||P==="<"?z="<0.0.0-0":z="*":P&&M?(U&&(k=0),F=0,P===">"?(P=">=",U?(j=+j+1,k=0,F=0):(k=+k+1,F=0)):P==="<="&&(P="<",U?j=+j+1:k=+k+1),P==="<"&&(W="-0"),z=`${P+j}.${k}.${F}${W}`):U?z=`>=${j}.0.0${W} <${+j+1}.0.0-0`:D&&(z=`>=${j}.${k}.0${W} <${j}.${+k+1}.0-0`),t("xRange return",z),z})},N=(R,L)=>(t("replaceStars",R,L),R.trim().replace(s[d.STAR],"")),V=(R,L)=>(t("replaceGTE0",R,L),R.trim().replace(s[L.includePrerelease?d.GTE0PRE:d.GTE0],"")),$=R=>(L,q,z,P,j,k,F,W,Z,U,D,M,G)=>(_(z)?q="":_(P)?q=`>=${z}.0.0${R?"-0":""}`:_(j)?q=`>=${z}.${P}.0${R?"-0":""}`:k?q=`>=${q}`:q=`>=${q}${R?"-0":""}`,_(Z)?W="":_(U)?W=`<${+Z+1}.0.0-0`:_(D)?W=`<${Z}.${+U+1}.0-0`:M?W=`<=${Z}.${U}.${D}-${M}`:R?W=`<${Z}.${U}.${+D+1}-0`:W=`<=${W}`,`${q} ${W}`.trim()),S=(R,L,q)=>{for(let z=0;z<R.length;z++)if(!R[z].test(L))return!1;if(L.prerelease.length&&!q.includePrerelease){for(let z=0;z<R.length;z++)if(t(R[z].semver),R[z].semver!==a.ANY&&R[z].semver.prerelease.length>0){const P=R[z].semver;if(P.major===L.major&&P.minor===L.minor&&P.patch===L.patch)return!0}return!1}return!0};return uo}var co,nf;function Rn(){if(nf)return co;nf=1;const e=Symbol("SemVer ANY");class n{static get ANY(){return e}constructor(f,h){if(h=o(h),f instanceof n){if(f.loose===!!h.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),r("comparator",f,h),this.options=h,this.loose=!!h.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}parse(f){const h=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],c=f.match(h);if(!c)throw new TypeError(`Invalid comparator: ${f}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new s(c[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(r("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new s(f,this.options)}catch{return!1}return t(f,this.operator,this.semver,this.options)}intersects(f,h){if(!(f instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new d(f.value,h).test(this.value):f.operator===""?f.value===""?!0:new d(this.value,h).test(f.semver):(h=o(h),h.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||t(this.semver,"<",f.semver,h)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||t(this.semver,">",f.semver,h)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}co=n;const o=ss(),{safeRe:i,t:a}=vr(),t=td(),r=En(),s=Ke(),d=ft();return co}var lo,af;function On(){if(af)return lo;af=1;const e=ft();return lo=(o,i,a)=>{try{i=new e(i,a)}catch{return!1}return i.test(o)},lo}var fo,of;function cy(){if(of)return fo;of=1;const e=ft();return fo=(o,i)=>new e(o,i).set.map(a=>a.map(t=>t.value).join(" ").trim().split(" ")),fo}var ho,sf;function ly(){if(sf)return ho;sf=1;const e=Ke(),n=ft();return ho=(i,a,t)=>{let r=null,s=null,d=null;try{d=new n(a,t)}catch{return null}return i.forEach(l=>{d.test(l)&&(!r||s.compare(l)===-1)&&(r=l,s=new e(r,t))}),r},ho}var po,uf;function fy(){if(uf)return po;uf=1;const e=Ke(),n=ft();return po=(i,a,t)=>{let r=null,s=null,d=null;try{d=new n(a,t)}catch{return null}return i.forEach(l=>{d.test(l)&&(!r||s.compare(l)===1)&&(r=l,s=new e(r,t))}),r},po}var mo,cf;function hy(){if(cf)return mo;cf=1;const e=Ke(),n=ft(),o=Sn();return mo=(a,t)=>{a=new n(a,t);let r=new e("0.0.0");if(a.test(r)||(r=new e("0.0.0-0"),a.test(r)))return r;r=null;for(let s=0;s<a.set.length;++s){const d=a.set[s];let l=null;d.forEach(f=>{const h=new e(f.semver.version);switch(f.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!l||o(h,l))&&(l=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${f.operator}`)}}),l&&(!r||o(r,l))&&(r=l)}return r&&a.test(r)?r:null},mo}var go,lf;function dy(){if(lf)return go;lf=1;const e=ft();return go=(o,i)=>{try{return new e(o,i).range||"*"}catch{return null}},go}var vo,ff;function hs(){if(ff)return vo;ff=1;const e=Ke(),n=Rn(),{ANY:o}=n,i=ft(),a=On(),t=Sn(),r=cs(),s=fs(),d=ls();return vo=(f,h,c,b)=>{f=new e(f,b),h=new i(h,b);let m,y,g,u,_;switch(c){case">":m=t,y=s,g=r,u=">",_=">=";break;case"<":m=r,y=d,g=t,u="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(f,h,b))return!1;for(let w=0;w<h.set.length;++w){const v=h.set[w];let E=null,x=null;if(v.forEach(O=>{O.semver===o&&(O=new n(">=0.0.0")),E=E||O,x=x||O,m(O.semver,E.semver,b)?E=O:g(O.semver,x.semver,b)&&(x=O)}),E.operator===u||E.operator===_||(!x.operator||x.operator===u)&&y(f,x.semver))return!1;if(x.operator===_&&g(f,x.semver))return!1}return!0},vo}var yo,hf;function py(){if(hf)return yo;hf=1;const e=hs();return yo=(o,i,a)=>e(o,i,">",a),yo}var _o,df;function my(){if(df)return _o;df=1;const e=hs();return _o=(o,i,a)=>e(o,i,"<",a),_o}var bo,pf;function gy(){if(pf)return bo;pf=1;const e=ft();return bo=(o,i,a)=>(o=new e(o,a),i=new e(i,a),o.intersects(i,a)),bo}var wo,mf;function vy(){if(mf)return wo;mf=1;const e=On(),n=lt();return wo=(o,i,a)=>{const t=[];let r=null,s=null;const d=o.sort((c,b)=>n(c,b,a));for(const c of d)e(c,i,a)?(s=c,r||(r=c)):(s&&t.push([r,s]),s=null,r=null);r&&t.push([r,null]);const l=[];for(const[c,b]of t)c===b?l.push(c):!b&&c===d[0]?l.push("*"):b?c===d[0]?l.push(`<=${b}`):l.push(`${c} - ${b}`):l.push(`>=${c}`);const f=l.join(" || "),h=typeof i.raw=="string"?i.raw:String(i);return f.length<h.length?f:i},wo}var Eo,gf;function yy(){if(gf)return Eo;gf=1;const e=ft(),n=Rn(),{ANY:o}=n,i=On(),a=lt(),t=(h,c,b={})=>{if(h===c)return!0;h=new e(h,b),c=new e(c,b);let m=!1;e:for(const y of h.set){for(const g of c.set){const u=d(y,g,b);if(m=m||u!==null,u)continue e}if(m)return!1}return!0},r=[new n(">=0.0.0-0")],s=[new n(">=0.0.0")],d=(h,c,b)=>{if(h===c)return!0;if(h.length===1&&h[0].semver===o){if(c.length===1&&c[0].semver===o)return!0;b.includePrerelease?h=r:h=s}if(c.length===1&&c[0].semver===o){if(b.includePrerelease)return!0;c=s}const m=new Set;let y,g;for(const C of h)C.operator===">"||C.operator===">="?y=l(y,C,b):C.operator==="<"||C.operator==="<="?g=f(g,C,b):m.add(C.semver);if(m.size>1)return null;let u;if(y&&g){if(u=a(y.semver,g.semver,b),u>0)return null;if(u===0&&(y.operator!==">="||g.operator!=="<="))return null}for(const C of m){if(y&&!i(C,String(y),b)||g&&!i(C,String(g),b))return null;for(const N of c)if(!i(C,String(N),b))return!1;return!0}let _,w,v,E,x=g&&!b.includePrerelease&&g.semver.prerelease.length?g.semver:!1,O=y&&!b.includePrerelease&&y.semver.prerelease.length?y.semver:!1;x&&x.prerelease.length===1&&g.operator==="<"&&x.prerelease[0]===0&&(x=!1);for(const C of c){if(E=E||C.operator===">"||C.operator===">=",v=v||C.operator==="<"||C.operator==="<=",y){if(O&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===O.major&&C.semver.minor===O.minor&&C.semver.patch===O.patch&&(O=!1),C.operator===">"||C.operator===">="){if(_=l(y,C,b),_===C&&_!==y)return!1}else if(y.operator===">="&&!i(y.semver,String(C),b))return!1}if(g){if(x&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===x.major&&C.semver.minor===x.minor&&C.semver.patch===x.patch&&(x=!1),C.operator==="<"||C.operator==="<="){if(w=f(g,C,b),w===C&&w!==g)return!1}else if(g.operator==="<="&&!i(g.semver,String(C),b))return!1}if(!C.operator&&(g||y)&&u!==0)return!1}return!(y&&v&&!g&&u!==0||g&&E&&!y&&u!==0||O||x)},l=(h,c,b)=>{if(!h)return c;const m=a(h.semver,c.semver,b);return m>0?h:m<0||c.operator===">"&&h.operator===">="?c:h},f=(h,c,b)=>{if(!h)return c;const m=a(h.semver,c.semver,b);return m<0?h:m>0||c.operator==="<"&&h.operator==="<="?c:h};return Eo=t,Eo}var So,vf;function ds(){if(vf)return So;vf=1;const e=vr(),n=wn(),o=Ke(),i=Xh(),a=Yt(),t=Zv(),r=Yv(),s=Wv(),d=Jv(),l=Kv(),f=Xv(),h=Qv(),c=ey(),b=lt(),m=ty(),y=ry(),g=us(),u=ny(),_=iy(),w=Sn(),v=cs(),E=Qh(),x=ed(),O=ls(),C=fs(),N=td(),V=ay(),$=Rn(),S=ft(),R=On(),L=cy(),q=ly(),z=fy(),P=hy(),j=dy(),k=hs(),F=py(),W=my(),Z=gy(),U=vy(),D=yy();return So={parse:a,valid:t,clean:r,inc:s,diff:d,major:l,minor:f,patch:h,prerelease:c,compare:b,rcompare:m,compareLoose:y,compareBuild:g,sort:u,rsort:_,gt:w,lt:v,eq:E,neq:x,gte:O,lte:C,cmp:N,coerce:V,Comparator:$,Range:S,satisfies:R,toComparators:L,maxSatisfying:q,minSatisfying:z,minVersion:P,validRange:j,outside:k,gtr:F,ltr:W,intersects:Z,simplifyRange:U,subset:D,SemVer:o,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers},So}var Ro,yf;function _y(){return yf||(yf=1,Ro=ds().satisfies(ye.version,">=15.7.0")),Ro}var Oo,_f;function by(){return _f||(_f=1,Oo=ds().satisfies(ye.version,">=16.9.0")),Oo}var To,bf;function rd(){if(bf)return To;bf=1;const e=_y(),n=by(),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},i={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return To=function(a,t){if(!a||!t)return;const r=t.asymmetricKeyType;if(!r)return;const s=o[r];if(!s)throw new Error(`Unknown key type "${r}".`);if(!s.includes(a))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(e)switch(r){case"ec":const d=t.asymmetricKeyDetails.namedCurve,l=i[a];if(d!==l)throw new Error(`"alg" parameter "${a}" requires curve "${l}".`);break;case"rsa-pss":if(n){const f=parseInt(a.slice(-3),10),{hashAlgorithm:h,mgf1HashAlgorithm:c,saltLength:b}=t.asymmetricKeyDetails;if(h!==`sha${f}`||c!==h)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${a}.`);if(b!==void 0&&b>f>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${a}.`)}break}},To}var xo,wf;function nd(){if(wf)return xo;wf=1;var e=ds();return xo=e.satisfies(ye.version,"^6.12.0 || >=8.0.0"),xo}var Ao,Ef;function wy(){if(Ef)return Ao;Ef=1;const e=bn(),n=zh(),o=Hh(),i=Jh(),a=Kh(),t=rd(),r=nd(),s=os(),{KeyObject:d,createSecretKey:l,createPublicKey:f}=Ht(),h=["RS256","RS384","RS512"],c=["ES256","ES384","ES512"],b=["RS256","RS384","RS512"],m=["HS256","HS384","HS512"];return r&&(h.splice(h.length,0,"PS256","PS384","PS512"),b.splice(b.length,0,"PS256","PS384","PS512")),Ao=function(y,g,u,_){typeof u=="function"&&!_&&(_=u,u={}),u||(u={}),u=Object.assign({},u);let w;if(_?w=_:w=function(N,V){if(N)throw N;return V},u.clockTimestamp&&typeof u.clockTimestamp!="number")return w(new e("clockTimestamp must be a number"));if(u.nonce!==void 0&&(typeof u.nonce!="string"||u.nonce.trim()===""))return w(new e("nonce must be a non-empty string"));if(u.allowInvalidAsymmetricKeyTypes!==void 0&&typeof u.allowInvalidAsymmetricKeyTypes!="boolean")return w(new e("allowInvalidAsymmetricKeyTypes must be a boolean"));const v=u.clockTimestamp||Math.floor(Date.now()/1e3);if(!y)return w(new e("jwt must be provided"));if(typeof y!="string")return w(new e("jwt must be a string"));const E=y.split(".");if(E.length!==3)return w(new e("jwt malformed"));let x;try{x=i(y,{complete:!0})}catch(N){return w(N)}if(!x)return w(new e("invalid token"));const O=x.header;let C;if(typeof g=="function"){if(!_)return w(new e("verify must be called asynchronous if secret or public key is provided as a callback"));C=g}else C=function(N,V){return V(null,g)};return C(O,function(N,V){if(N)return w(new e("error in secret or public key callback: "+N.message));const $=E[2].trim()!=="";if(!$&&V)return w(new e("jwt signature is required"));if($&&!V)return w(new e("secret or public key must be provided"));if(!$&&!u.algorithms)return w(new e('please specify "none" in "algorithms" to verify unsigned tokens'));if(V!=null&&!(V instanceof d))try{V=f(V)}catch{try{V=l(typeof V=="string"?et.from(V):V)}catch{return w(new e("secretOrPublicKey is not valid key material"))}}if(u.algorithms||(V.type==="secret"?u.algorithms=m:["rsa","rsa-pss"].includes(V.asymmetricKeyType)?u.algorithms=b:V.asymmetricKeyType==="ec"?u.algorithms=c:u.algorithms=h),u.algorithms.indexOf(x.header.alg)===-1)return w(new e("invalid algorithm"));if(O.alg.startsWith("HS")&&V.type!=="secret")return w(new e(`secretOrPublicKey must be a symmetric key when using ${O.alg}`));if(/^(?:RS|PS|ES)/.test(O.alg)&&V.type!=="public")return w(new e(`secretOrPublicKey must be an asymmetric key when using ${O.alg}`));if(!u.allowInvalidAsymmetricKeyTypes)try{t(O.alg,V)}catch(L){return w(L)}let S;try{S=s.verify(y,x.header.alg,V)}catch(L){return w(L)}if(!S)return w(new e("invalid signature"));const R=x.payload;if(typeof R.nbf<"u"&&!u.ignoreNotBefore){if(typeof R.nbf!="number")return w(new e("invalid nbf value"));if(R.nbf>v+(u.clockTolerance||0))return w(new n("jwt not active",new Date(R.nbf*1e3)))}if(typeof R.exp<"u"&&!u.ignoreExpiration){if(typeof R.exp!="number")return w(new e("invalid exp value"));if(v>=R.exp+(u.clockTolerance||0))return w(new o("jwt expired",new Date(R.exp*1e3)))}if(u.audience){const L=Array.isArray(u.audience)?u.audience:[u.audience];if(!(Array.isArray(R.aud)?R.aud:[R.aud]).some(function(P){return L.some(function(j){return j instanceof RegExp?j.test(P):j===P})}))return w(new e("jwt audience invalid. expected: "+L.join(" or ")))}if(u.issuer&&(typeof u.issuer=="string"&&R.iss!==u.issuer||Array.isArray(u.issuer)&&u.issuer.indexOf(R.iss)===-1))return w(new e("jwt issuer invalid. expected: "+u.issuer));if(u.subject&&R.sub!==u.subject)return w(new e("jwt subject invalid. expected: "+u.subject));if(u.jwtid&&R.jti!==u.jwtid)return w(new e("jwt jwtid invalid. expected: "+u.jwtid));if(u.nonce&&R.nonce!==u.nonce)return w(new e("jwt nonce invalid. expected: "+u.nonce));if(u.maxAge){if(typeof R.iat!="number")return w(new e("iat required when maxAge is specified"));const L=a(u.maxAge,R.iat);if(typeof L>"u")return w(new e('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(v>=L+(u.clockTolerance||0))return w(new o("maxAge exceeded",new Date(L*1e3)))}if(u.complete===!0){const L=x.signature;return w(null,{header:O,payload:R,signature:L})}return w(null,R)})},Ao}const Ey=Qf(im);var Io,Sf;function Sy(){if(Sf)return Io;Sf=1;const e=Kh(),n=nd(),o=rd(),i=os(),{includes:a,isBoolean:t,isInteger:r,isNumber:s,isPlainObject:d,isString:l,once:f}=Ey,{KeyObject:h,createSecretKey:c,createPrivateKey:b}=Ht(),m=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];n&&m.splice(3,0,"PS256","PS384","PS512");const y={expiresIn:{isValid:function(x){return r(x)||l(x)&&x},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(x){return r(x)||l(x)&&x},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(x){return l(x)||Array.isArray(x)},message:'"audience" must be a string or array'},algorithm:{isValid:a.bind(null,m),message:'"algorithm" must be a valid string enum value'},header:{isValid:d,message:'"header" must be an object'},encoding:{isValid:l,message:'"encoding" must be a string'},issuer:{isValid:l,message:'"issuer" must be a string'},subject:{isValid:l,message:'"subject" must be a string'},jwtid:{isValid:l,message:'"jwtid" must be a string'},noTimestamp:{isValid:t,message:'"noTimestamp" must be a boolean'},keyid:{isValid:l,message:'"keyid" must be a string'},mutatePayload:{isValid:t,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:t,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:t,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},g={iat:{isValid:s,message:'"iat" should be a number of seconds'},exp:{isValid:s,message:'"exp" should be a number of seconds'},nbf:{isValid:s,message:'"nbf" should be a number of seconds'}};function u(x,O,C,N){if(!d(C))throw new Error('Expected "'+N+'" to be a plain object.');Object.keys(C).forEach(function(V){const $=x[V];if(!$){if(!O)throw new Error('"'+V+'" is not allowed in "'+N+'"');return}if(!$.isValid(C[V]))throw new Error($.message)})}function _(x){return u(y,!1,x,"options")}function w(x){return u(g,!0,x,"payload")}const v={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},E=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return Io=function(x,O,C,N){typeof C=="function"?(N=C,C={}):C=C||{};const V=typeof x=="object"&&!et.isBuffer(x),$=Object.assign({alg:C.algorithm||"HS256",typ:V?"JWT":void 0,kid:C.keyid},C.header);function S(q){if(N)return N(q);throw q}if(!O&&C.algorithm!=="none")return S(new Error("secretOrPrivateKey must have a value"));if(O!=null&&!(O instanceof h))try{O=b(O)}catch{try{O=c(typeof O=="string"?et.from(O):O)}catch{return S(new Error("secretOrPrivateKey is not valid key material"))}}if($.alg.startsWith("HS")&&O.type!=="secret")return S(new Error(`secretOrPrivateKey must be a symmetric key when using ${$.alg}`));if(/^(?:RS|PS|ES)/.test($.alg)){if(O.type!=="private")return S(new Error(`secretOrPrivateKey must be an asymmetric key when using ${$.alg}`));if(!C.allowInsecureKeySizes&&!$.alg.startsWith("ES")&&O.asymmetricKeyDetails!==void 0&&O.asymmetricKeyDetails.modulusLength<2048)return S(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${$.alg}`))}if(typeof x>"u")return S(new Error("payload is required"));if(V){try{w(x)}catch(q){return S(q)}C.mutatePayload||(x=Object.assign({},x))}else{const q=E.filter(function(z){return typeof C[z]<"u"});if(q.length>0)return S(new Error("invalid "+q.join(",")+" option for "+typeof x+" payload"))}if(typeof x.exp<"u"&&typeof C.expiresIn<"u")return S(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof x.nbf<"u"&&typeof C.notBefore<"u")return S(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{_(C)}catch(q){return S(q)}if(!C.allowInvalidAsymmetricKeyTypes)try{o($.alg,O)}catch(q){return S(q)}const R=x.iat||Math.floor(Date.now()/1e3);if(C.noTimestamp?delete x.iat:V&&(x.iat=R),typeof C.notBefore<"u"){try{x.nbf=e(C.notBefore,R)}catch(q){return S(q)}if(typeof x.nbf>"u")return S(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof C.expiresIn<"u"&&typeof x=="object"){try{x.exp=e(C.expiresIn,R)}catch(q){return S(q)}if(typeof x.exp>"u")return S(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(v).forEach(function(q){const z=v[q];if(typeof C[q]<"u"){if(typeof x[z]<"u")return S(new Error('Bad "options.'+q+'" option. The payload already has an "'+z+'" property.'));x[z]=C[q]}});const L=C.encoding||"utf8";if(typeof N=="function")N=N&&f(N),i.createSign({header:$,privateKey:O,payload:x,encoding:L}).once("error",N).once("done",function(q){if(!C.allowInsecureKeySizes&&/^(?:RS|PS)/.test($.alg)&&q.length<256)return N(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${$.alg}`));N(null,q)});else{let q=i.sign({header:$,payload:x,secret:O,encoding:L});if(!C.allowInsecureKeySizes&&/^(?:RS|PS)/.test($.alg)&&q.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${$.alg}`);return q}},Io}var Rf;function Ry(){return Rf||(Rf=1,function(e){e.exports={verify:wy(),sign:Sy(),JsonWebTokenError:bn(),NotBeforeError:zh(),TokenExpiredError:Hh()},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:Jh()})}(va)),va.exports}var Co,Of;function Oy(){if(Of)return Co;Of=1;function e(n){this.token=n.token||"",this.response=n.response||"",this.body=n.responseText||"",this.json=null,this.intuit_tid=n.intuit_tid||""}return e.prototype.processResponse=function(o){this.response=o||"",this.body=o&&o.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=o&&o.headers&&o.headers.intuit_tid||""},e.prototype.getToken=function(){return this.token.getToken()},e.prototype.text=function(){return this.body},e.prototype.status=function(){return this.response.status},e.prototype.headers=function(){return this.response.headers},e.prototype.valid=function(){return this.response&&Number(this.response.status)>=200&&Number(this.response.status)<300},e.prototype.getJson=function(){if(!this.isJson())throw new Error("AuthResponse is not JSON");return this.json||(this.json=this.body?JSON.parse(this.body):null),this.json},e.prototype.get_intuit_tid=function(){return this.intuit_tid},e.prototype.isContentType=function(o){return this.getContentType().indexOf(o)>-1},e.prototype.getContentType=function(){return this.response.get(e._contentType)||""},e.prototype.isJson=function(){return this.isContentType("application/json")},e._contentType="Content-Type",e._jsonContentType="application/json",e._urlencodedContentType="application/x-www-form-urlencoded",Co=e,Co}const Ty="0.0.4",xy={version:Ty};var Po,Tf;function Ay(){if(Tf)return Po;Tf=1;function e(n){n=n||{},this.realmId=n.realmId||"",this.token_type=n.token_type||"",this.access_token=n.access_token||"",this.refresh_token=n.refresh_token||"",this.expires_in=n.expires_in||0,this.x_refresh_token_expires_in=n.x_refresh_token_expires_in||0,this.id_token=n.id_token||"",this.latency=n.latency||60*1e3,this.createdAt=n.createdAt||Date.now()}return e.prototype.accessToken=function(){return this.getToken().access_token},e.prototype.refreshToken=function(){return this.getToken().refresh_token},e.prototype.tokenType=function(){return this.getToken().token_type},e.prototype.getToken=function(){return{token_type:this.token_type,access_token:this.access_token,expires_in:this.expires_in,refresh_token:this.refresh_token,x_refresh_token_expires_in:this.x_refresh_token_expires_in,realmId:this.realmId,id_token:this.id_token,createdAt:this.createdAt}},e.prototype.setToken=function(o){return this.access_token=o.access_token,this.refresh_token=o.refresh_token,this.token_type=o.token_type,this.expires_in=o.expires_in,this.x_refresh_token_expires_in=o.x_refresh_token_expires_in,this.id_token=o.id_token||"",this.createdAt=o.createdAt||Date.now(),this},e.prototype.clearToken=function(){return this.access_token="",this.refresh_token="",this.token_type="",this.expires_in=0,this.x_refresh_token_expires_in=0,this.id_token="",this.createdAt=0,this},e.prototype._checkExpiry=function(o){return this.createdAt+o*1e3-this.latency>Date.now()},e.prototype.isAccessTokenValid=function(){return this._checkExpiry(this.expires_in)},e.prototype.isRefreshTokenValid=function(){return this._checkExpiry(this.x_refresh_token_expires_in)},Po=e,Po}var ko,xf;function Iy(){if(xf)return ko;xf=1,ko=e;function e(a,t){var r=et.from(a,"base64"),s=et.from(t,"base64"),d=r.toString("hex"),l=s.toString("hex");d=n(d),l=n(l);var f=d.length/2,h=l.length/2,c=i(f),b=i(h),m="30"+i(f+h+c.length/2+b.length/2+2)+"02"+c+d+"02"+b+l,y=et.from(m,"hex").toString("base64"),g=`-----BEGIN RSA PUBLIC KEY-----
|
|
118
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,t="secret must be a string or buffer",r="key must be a string or a buffer",s="key must be a string, a buffer or an object",d=typeof n.createPublicKey=="function";d&&(r+=" or a KeyObject",t+="or a KeyObject");function l(R){if(!e.isBuffer(R)&&typeof R!="string"&&(!d||typeof R!="object"||typeof R.type!="string"||typeof R.asymmetricKeyType!="string"||typeof R.export!="function"))throw m(r)}function f(R){if(!e.isBuffer(R)&&typeof R!="string"&&typeof R!="object")throw m(s)}function h(R){if(!e.isBuffer(R)){if(typeof R=="string")return R;if(!d||typeof R!="object"||R.type!=="secret"||typeof R.export!="function")throw m(t)}}function c(R){return R.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function b(R){R=R.toString();var L=4-R.length%4;if(L!==4)for(var q=0;q<L;++q)R+="=";return R.replace(/\-/g,"+").replace(/_/g,"/")}function m(R){var L=[].slice.call(arguments,1),q=i.format.bind(i,R).apply(null,L);return new TypeError(q)}function y(R){return e.isBuffer(R)||typeof R=="string"}function g(R){return y(R)||(R=JSON.stringify(R)),R}function u(R){return function(q,z){h(z),q=g(q);var P=n.createHmac("sha"+R,z),j=(P.update(q),P.digest("base64"));return c(j)}}var _,w="timingSafeEqual"in n?function(L,q){return L.byteLength!==q.byteLength?!1:n.timingSafeEqual(L,q)}:function(L,q){return _||(_=Gv()),_(L,q)};function v(R){return function(q,z,P){var j=u(R)(q,P);return w(e.from(z),e.from(j))}}function E(R){return function(q,z){f(z),q=g(q);var P=n.createSign("RSA-SHA"+R),j=(P.update(q),P.sign(z,"base64"));return c(j)}}function x(R){return function(q,z,P){l(P),q=g(q),z=b(z);var j=n.createVerify("RSA-SHA"+R);return j.update(q),j.verify(P,z,"base64")}}function O(R){return function(q,z){f(z),q=g(q);var P=n.createSign("RSA-SHA"+R),j=(P.update(q),P.sign({key:z,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return c(j)}}function C(R){return function(q,z,P){l(P),q=g(q),z=b(z);var j=n.createVerify("RSA-SHA"+R);return j.update(q),j.verify({key:P,padding:n.constants.RSA_PKCS1_PSS_PADDING,saltLength:n.constants.RSA_PSS_SALTLEN_DIGEST},z,"base64")}}function D(R){var L=E(R);return function(){var z=L.apply(null,arguments);return z=o.derToJose(z,"ES"+R),z}}function V(R){var L=x(R);return function(z,P,j){P=o.joseToDer(P,"ES"+R).toString("base64");var k=L(z,P,j);return k}}function $(){return function(){return""}}function S(){return function(L,q){return q===""}}return Oa=function(L){var q={hs:u,rs:E,ps:O,es:D,none:$},z={hs:v,rs:x,ps:C,es:V,none:S},P=L.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!P)throw m(a,L);var j=(P[1]||P[3]).toLowerCase(),k=P[2];return{sign:q[j](k),verify:z[j](k)}},Oa}var Ta,yl;function Zh(){if(yl)return Ta;yl=1;var e=ar().Buffer;return Ta=function(o){return typeof o=="string"?o:typeof o=="number"||e.isBuffer(o)?o.toString():JSON.stringify(o)},Ta}var xa,_l;function zv(){if(_l)return xa;_l=1;var e=hr().Buffer,n=zh(),o=Hh(),i=gn(),a=Zh(),t=He();function r(f,h){return e.from(f,h).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(f,h,c){c=c||"utf8";var b=r(a(f),"binary"),m=r(a(h),c);return t.format("%s.%s",b,m)}function d(f){var h=f.header,c=f.payload,b=f.secret||f.privateKey,m=f.encoding,y=o(h.alg),g=s(h,c,m),u=y.sign(g,b);return t.format("%s.%s",g,u)}function l(f){var h=f.secret;if(h=h??f.privateKey,h=h??f.key,/^hs/i.test(f.header.alg)===!0&&h==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var c=new n(h);this.readable=!0,this.header=f.header,this.encoding=f.encoding,this.secret=this.privateKey=this.key=c,this.payload=new n(f.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}return t.inherits(l,i),l.prototype.sign=function(){try{var h=d({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",h),this.emit("data",h),this.emit("end"),this.readable=!1,h}catch(c){this.readable=!1,this.emit("error",c),this.emit("close")}},l.sign=d,xa=l,xa}var Aa,bl;function Hv(){if(bl)return Aa;bl=1;var e=hr().Buffer,n=zh(),o=Hh(),i=gn(),a=Zh(),t=He(),r=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function s(u){return Object.prototype.toString.call(u)==="[object Object]"}function d(u){if(s(u))return u;try{return JSON.parse(u)}catch{return}}function l(u){var _=u.split(".",1)[0];return d(e.from(_,"base64").toString("binary"))}function f(u){return u.split(".",2).join(".")}function h(u){return u.split(".")[2]}function c(u,_){_=_||"utf8";var w=u.split(".")[1];return e.from(w,"base64").toString(_)}function b(u){return r.test(u)&&!!l(u)}function m(u,_,w){if(!_){var v=new Error("Missing algorithm parameter for jws.verify");throw v.code="MISSING_ALGORITHM",v}u=a(u);var E=h(u),x=f(u),O=o(_);return O.verify(x,E,w)}function y(u,_){if(_=_||{},u=a(u),!b(u))return null;var w=l(u);if(!w)return null;var v=c(u);return(w.typ==="JWT"||_.json)&&(v=JSON.parse(v,_.encoding)),{header:w,payload:v,signature:h(u)}}function g(u){u=u||{};var _=u.secret;if(_=_??u.publicKey,_=_??u.key,/^hs/i.test(u.algorithm)===!0&&_==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var w=new n(_);this.readable=!0,this.algorithm=u.algorithm,this.encoding=u.encoding,this.secret=this.publicKey=this.key=w,this.signature=new n(u.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}return t.inherits(g,i),g.prototype.verify=function(){try{var _=m(this.signature.buffer,this.algorithm,this.key.buffer),w=y(this.signature.buffer,this.encoding);return this.emit("done",_,w),this.emit("data",_),this.emit("end"),this.readable=!1,_}catch(v){this.readable=!1,this.emit("error",v),this.emit("close")}},g.decode=y,g.isValid=b,g.verify=m,Aa=g,Aa}var wl;function os(){if(wl)return bt;wl=1;var e=zv(),n=Hv(),o=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];return bt.ALGORITHMS=o,bt.sign=e.sign,bt.verify=n.verify,bt.decode=n.decode,bt.isValid=n.isValid,bt.createSign=function(a){return new e(a)},bt.createVerify=function(a){return new n(a)},bt}var Ia,El;function Yh(){if(El)return Ia;El=1;var e=os();return Ia=function(n,o){o=o||{};var i=e.decode(n,o);if(!i)return null;var a=i.payload;if(typeof a=="string")try{var t=JSON.parse(a);t!==null&&typeof t=="object"&&(a=t)}catch{}return o.complete===!0?{header:i.header,payload:a,signature:i.signature}:a},Ia}var Ca,Sl;function Wh(){if(Sl)return Ca;Sl=1;var e=bh();return Ca=function(n,o){var i=o||Math.floor(Date.now()/1e3);if(typeof n=="string"){var a=e(n);return typeof a>"u"?void 0:Math.floor(i+a/1e3)}else return typeof n=="number"?i+n:void 0},Ca}var Qr={exports:{}},Pa,Rl;function wn(){if(Rl)return Pa;Rl=1;const e="2.0.0",n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991;return Pa={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:o,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Pa}var ka,Ol;function En(){if(Ol)return ka;Ol=1;var e={};return ka=typeof ye=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...o)=>console.error("SEMVER",...o):()=>{},ka}var Tl;function vr(){return Tl||(Tl=1,function(e,n){const{MAX_SAFE_COMPONENT_LENGTH:o}=wn(),i=En();n=e.exports={};const a=n.re=[],t=n.safeRe=[],r=n.src=[],s=n.t={};let d=0;const l=(f,h,c)=>{const b=h.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),m=d++;i(f,m,h),s[f]=m,r[m]=h,a[m]=new RegExp(h,c?"g":void 0),t[m]=new RegExp(b,c?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})\\.(${r[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})\\.(${r[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${r[s.NUMERICIDENTIFIER]}|${r[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${r[s.NUMERICIDENTIFIERLOOSE]}|${r[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${r[s.PRERELEASEIDENTIFIER]}(?:\\.${r[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${r[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${r[s.BUILDIDENTIFIER]}(?:\\.${r[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${r[s.MAINVERSION]}${r[s.PRERELEASE]}?${r[s.BUILD]}?`),l("FULL",`^${r[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${r[s.MAINVERSIONLOOSE]}${r[s.PRERELEASELOOSE]}?${r[s.BUILD]}?`),l("LOOSE",`^${r[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${r[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${r[s.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:\\.(${r[s.XRANGEIDENTIFIER]})(?:${r[s.PRERELEASE]})?${r[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[s.XRANGEIDENTIFIERLOOSE]})(?:${r[s.PRERELEASELOOSE]})?${r[s.BUILD]}?)?)?`),l("XRANGE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${r[s.GTLT]}\\s*${r[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?(?:$|[^\\d])`),l("COERCERTL",r[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${r[s.LONETILDE]}\\s+`,!0),n.tildeTrimReplace="$1~",l("TILDE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${r[s.LONETILDE]}${r[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${r[s.LONECARET]}\\s+`,!0),n.caretTrimReplace="$1^",l("CARET",`^${r[s.LONECARET]}${r[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${r[s.LONECARET]}${r[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${r[s.GTLT]}\\s*(${r[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${r[s.GTLT]}\\s*(${r[s.LOOSEPLAIN]}|${r[s.XRANGEPLAIN]})`,!0),n.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${r[s.XRANGEPLAIN]})\\s+-\\s+(${r[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${r[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Qr,Qr.exports)),Qr.exports}var ja,xl;function ss(){if(xl)return ja;xl=1;const e=Object.freeze({loose:!0}),n=Object.freeze({});return ja=i=>i?typeof i!="object"?e:i:n,ja}var La,Al;function Jh(){if(Al)return La;Al=1;const e=/^[0-9]+$/,n=(i,a)=>{const t=e.test(i),r=e.test(a);return t&&r&&(i=+i,a=+a),i===a?0:t&&!r?-1:r&&!t?1:i<a?-1:1};return La={compareIdentifiers:n,rcompareIdentifiers:(i,a)=>n(a,i)},La}var qa,Il;function Ke(){if(Il)return qa;Il=1;const e=En(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=wn(),{safeRe:i,t:a}=vr(),t=ss(),{compareIdentifiers:r}=Jh();class s{constructor(l,f){if(f=t(f),l instanceof s){if(l.loose===!!f.loose&&l.includePrerelease===!!f.includePrerelease)return l;l=l.version}else if(typeof l!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);if(l.length>n)throw new TypeError(`version is longer than ${n} characters`);e("SemVer",l,f),this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease;const h=l.trim().match(f.loose?i[a.LOOSE]:i[a.FULL]);if(!h)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+h[1],this.minor=+h[2],this.patch=+h[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");h[4]?this.prerelease=h[4].split(".").map(c=>{if(/^[0-9]+$/.test(c)){const b=+c;if(b>=0&&b<o)return b}return c}):this.prerelease=[],this.build=h[5]?h[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(l){if(e("SemVer.compare",this.version,this.options,l),!(l instanceof s)){if(typeof l=="string"&&l===this.version)return 0;l=new s(l,this.options)}return l.version===this.version?0:this.compareMain(l)||this.comparePre(l)}compareMain(l){return l instanceof s||(l=new s(l,this.options)),r(this.major,l.major)||r(this.minor,l.minor)||r(this.patch,l.patch)}comparePre(l){if(l instanceof s||(l=new s(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let f=0;do{const h=this.prerelease[f],c=l.prerelease[f];if(e("prerelease compare",f,h,c),h===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(h===void 0)return-1;if(h===c)continue;return r(h,c)}while(++f)}compareBuild(l){l instanceof s||(l=new s(l,this.options));let f=0;do{const h=this.build[f],c=l.build[f];if(e("prerelease compare",f,h,c),h===void 0&&c===void 0)return 0;if(c===void 0)return 1;if(h===void 0)return-1;if(h===c)continue;return r(h,c)}while(++f)}inc(l,f,h){switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",f,h);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",f,h);break;case"prepatch":this.prerelease.length=0,this.inc("patch",f,h),this.inc("pre",f,h);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",f,h),this.inc("pre",f,h);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const c=Number(h)?1:0;if(!f&&h===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[c];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(f===this.prerelease.join(".")&&h===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(c)}}if(f){let b=[f,c];h===!1&&(b=[f]),r(this.prerelease[0],f)===0?isNaN(this.prerelease[1])&&(this.prerelease=b):this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return qa=s,qa}var Na,Cl;function Yt(){if(Cl)return Na;Cl=1;const e=Ke();return Na=(o,i,a=!1)=>{if(o instanceof e)return o;try{return new e(o,i)}catch(t){if(!a)return null;throw t}},Na}var Da,Pl;function Zv(){if(Pl)return Da;Pl=1;const e=Yt();return Da=(o,i)=>{const a=e(o,i);return a?a.version:null},Da}var Ma,kl;function Yv(){if(kl)return Ma;kl=1;const e=Yt();return Ma=(o,i)=>{const a=e(o.trim().replace(/^[=v]+/,""),i);return a?a.version:null},Ma}var Fa,jl;function Wv(){if(jl)return Fa;jl=1;const e=Ke();return Fa=(o,i,a,t,r)=>{typeof a=="string"&&(r=t,t=a,a=void 0);try{return new e(o instanceof e?o.version:o,a).inc(i,t,r).version}catch{return null}},Fa}var Ba,Ll;function Jv(){if(Ll)return Ba;Ll=1;const e=Yt();return Ba=(o,i)=>{const a=e(o,null,!0),t=e(i,null,!0),r=a.compare(t);if(r===0)return null;const s=r>0,d=s?a:t,l=s?t:a,f=!!d.prerelease.length;if(!!l.prerelease.length&&!f)return!l.patch&&!l.minor?"major":d.patch?"patch":d.minor?"minor":"major";const c=f?"pre":"";return a.major!==t.major?c+"major":a.minor!==t.minor?c+"minor":a.patch!==t.patch?c+"patch":"prerelease"},Ba}var Ua,ql;function Kv(){if(ql)return Ua;ql=1;const e=Ke();return Ua=(o,i)=>new e(o,i).major,Ua}var Va,Nl;function Xv(){if(Nl)return Va;Nl=1;const e=Ke();return Va=(o,i)=>new e(o,i).minor,Va}var $a,Dl;function Qv(){if(Dl)return $a;Dl=1;const e=Ke();return $a=(o,i)=>new e(o,i).patch,$a}var Ga,Ml;function ey(){if(Ml)return Ga;Ml=1;const e=Yt();return Ga=(o,i)=>{const a=e(o,i);return a&&a.prerelease.length?a.prerelease:null},Ga}var za,Fl;function lt(){if(Fl)return za;Fl=1;const e=Ke();return za=(o,i,a)=>new e(o,a).compare(new e(i,a)),za}var Ha,Bl;function ty(){if(Bl)return Ha;Bl=1;const e=lt();return Ha=(o,i,a)=>e(i,o,a),Ha}var Za,Ul;function ry(){if(Ul)return Za;Ul=1;const e=lt();return Za=(o,i)=>e(o,i,!0),Za}var Ya,Vl;function us(){if(Vl)return Ya;Vl=1;const e=Ke();return Ya=(o,i,a)=>{const t=new e(o,a),r=new e(i,a);return t.compare(r)||t.compareBuild(r)},Ya}var Wa,$l;function ny(){if($l)return Wa;$l=1;const e=us();return Wa=(o,i)=>o.sort((a,t)=>e(a,t,i)),Wa}var Ja,Gl;function iy(){if(Gl)return Ja;Gl=1;const e=us();return Ja=(o,i)=>o.sort((a,t)=>e(t,a,i)),Ja}var Ka,zl;function Sn(){if(zl)return Ka;zl=1;const e=lt();return Ka=(o,i,a)=>e(o,i,a)>0,Ka}var Xa,Hl;function cs(){if(Hl)return Xa;Hl=1;const e=lt();return Xa=(o,i,a)=>e(o,i,a)<0,Xa}var Qa,Zl;function Kh(){if(Zl)return Qa;Zl=1;const e=lt();return Qa=(o,i,a)=>e(o,i,a)===0,Qa}var eo,Yl;function Xh(){if(Yl)return eo;Yl=1;const e=lt();return eo=(o,i,a)=>e(o,i,a)!==0,eo}var to,Wl;function ls(){if(Wl)return to;Wl=1;const e=lt();return to=(o,i,a)=>e(o,i,a)>=0,to}var ro,Jl;function fs(){if(Jl)return ro;Jl=1;const e=lt();return ro=(o,i,a)=>e(o,i,a)<=0,ro}var no,Kl;function Qh(){if(Kl)return no;Kl=1;const e=Kh(),n=Xh(),o=Sn(),i=ls(),a=cs(),t=fs();return no=(s,d,l,f)=>{switch(d){case"===":return typeof s=="object"&&(s=s.version),typeof l=="object"&&(l=l.version),s===l;case"!==":return typeof s=="object"&&(s=s.version),typeof l=="object"&&(l=l.version),s!==l;case"":case"=":case"==":return e(s,l,f);case"!=":return n(s,l,f);case">":return o(s,l,f);case">=":return i(s,l,f);case"<":return a(s,l,f);case"<=":return t(s,l,f);default:throw new TypeError(`Invalid operator: ${d}`)}},no}var io,Xl;function ay(){if(Xl)return io;Xl=1;const e=Ke(),n=Yt(),{safeRe:o,t:i}=vr();return io=(t,r)=>{if(t instanceof e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;r=r||{};let s=null;if(!r.rtl)s=t.match(o[i.COERCE]);else{let d;for(;(d=o[i.COERCERTL].exec(t))&&(!s||s.index+s[0].length!==t.length);)(!s||d.index+d[0].length!==s.index+s[0].length)&&(s=d),o[i.COERCERTL].lastIndex=d.index+d[1].length+d[2].length;o[i.COERCERTL].lastIndex=-1}return s===null?null:n(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)},io}var ao,Ql;function oy(){return Ql||(Ql=1,ao=function(e){e.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}),ao}var oo,ef;function sy(){if(ef)return oo;ef=1,oo=e,e.Node=a,e.create=e;function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&typeof t.forEach=="function")t.forEach(function(l){r.push(l)});else if(arguments.length>0)for(var s=0,d=arguments.length;s<d;s++)r.push(arguments[s]);return r}e.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var r=t.next,s=t.prev;return r&&(r.prev=s),s&&(s.next=r),t===this.head&&(this.head=r),t===this.tail&&(this.tail=s),t.list.length--,t.next=null,t.prev=null,t.list=null,r},e.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var r=this.head;t.list=this,t.next=r,r&&(r.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var r=this.tail;t.list=this,t.prev=r,r&&(r.next=t),this.tail=t,this.head||(this.head=t),this.length++}},e.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++)o(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++)i(this,arguments[t]);return this.length},e.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},e.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},e.prototype.forEach=function(t,r){r=r||this;for(var s=this.head,d=0;s!==null;d++)t.call(r,s.value,d,this),s=s.next},e.prototype.forEachReverse=function(t,r){r=r||this;for(var s=this.tail,d=this.length-1;s!==null;d--)t.call(r,s.value,d,this),s=s.prev},e.prototype.get=function(t){for(var r=0,s=this.head;s!==null&&r<t;r++)s=s.next;if(r===t&&s!==null)return s.value},e.prototype.getReverse=function(t){for(var r=0,s=this.tail;s!==null&&r<t;r++)s=s.prev;if(r===t&&s!==null)return s.value},e.prototype.map=function(t,r){r=r||this;for(var s=new e,d=this.head;d!==null;)s.push(t.call(r,d.value,this)),d=d.next;return s},e.prototype.mapReverse=function(t,r){r=r||this;for(var s=new e,d=this.tail;d!==null;)s.push(t.call(r,d.value,this)),d=d.prev;return s},e.prototype.reduce=function(t,r){var s,d=this.head;if(arguments.length>1)s=r;else if(this.head)d=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;d!==null;l++)s=t(s,d.value,l),d=d.next;return s},e.prototype.reduceReverse=function(t,r){var s,d=this.tail;if(arguments.length>1)s=r;else if(this.tail)d=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;d!==null;l--)s=t(s,d.value,l),d=d.prev;return s},e.prototype.toArray=function(){for(var t=new Array(this.length),r=0,s=this.head;s!==null;r++)t[r]=s.value,s=s.next;return t},e.prototype.toArrayReverse=function(){for(var t=new Array(this.length),r=0,s=this.tail;s!==null;r++)t[r]=s.value,s=s.prev;return t},e.prototype.slice=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=0,l=this.head;l!==null&&d<t;d++)l=l.next;for(;l!==null&&d<r;d++,l=l.next)s.push(l.value);return s},e.prototype.sliceReverse=function(t,r){r=r||this.length,r<0&&(r+=this.length),t=t||0,t<0&&(t+=this.length);var s=new e;if(r<t||r<0)return s;t<0&&(t=0),r>this.length&&(r=this.length);for(var d=this.length,l=this.tail;l!==null&&d>r;d--)l=l.prev;for(;l!==null&&d>t;d--,l=l.prev)s.push(l.value);return s},e.prototype.splice=function(t,r,...s){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var d=0,l=this.head;l!==null&&d<t;d++)l=l.next;for(var f=[],d=0;l&&d<r;d++)f.push(l.value),l=this.removeNode(l);l===null&&(l=this.tail),l!==this.head&&l!==this.tail&&(l=l.prev);for(var d=0;d<s.length;d++)l=n(this,l,s[d]);return f},e.prototype.reverse=function(){for(var t=this.head,r=this.tail,s=t;s!==null;s=s.prev){var d=s.prev;s.prev=s.next,s.next=d}return this.head=r,this.tail=t,this};function n(t,r,s){var d=r===t.head?new a(s,null,r,t):new a(s,r,r.next,t);return d.next===null&&(t.tail=d),d.prev===null&&(t.head=d),t.length++,d}function o(t,r){t.tail=new a(r,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function i(t,r){t.head=new a(r,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function a(t,r,s,d){if(!(this instanceof a))return new a(t,r,s,d);this.list=d,this.value=t,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{oy()(e)}catch{}return oo}var so,tf;function uy(){if(tf)return so;tf=1;const e=sy(),n=Symbol("max"),o=Symbol("length"),i=Symbol("lengthCalculator"),a=Symbol("allowStale"),t=Symbol("maxAge"),r=Symbol("dispose"),s=Symbol("noDisposeOnSet"),d=Symbol("lruList"),l=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1;class c{constructor(v){if(typeof v=="number"&&(v={max:v}),v||(v={}),v.max&&(typeof v.max!="number"||v.max<0))throw new TypeError("max must be a non-negative number");this[n]=v.max||1/0;const E=v.length||h;if(this[i]=typeof E!="function"?h:E,this[a]=v.stale||!1,v.maxAge&&typeof v.maxAge!="number")throw new TypeError("maxAge must be a number");this[t]=v.maxAge||0,this[r]=v.dispose,this[s]=v.noDisposeOnSet||!1,this[f]=v.updateAgeOnGet||!1,this.reset()}set max(v){if(typeof v!="number"||v<0)throw new TypeError("max must be a non-negative number");this[n]=v||1/0,y(this)}get max(){return this[n]}set allowStale(v){this[a]=!!v}get allowStale(){return this[a]}set maxAge(v){if(typeof v!="number")throw new TypeError("maxAge must be a non-negative number");this[t]=v,y(this)}get maxAge(){return this[t]}set lengthCalculator(v){typeof v!="function"&&(v=h),v!==this[i]&&(this[i]=v,this[o]=0,this[d].forEach(E=>{E.length=this[i](E.value,E.key),this[o]+=E.length})),y(this)}get lengthCalculator(){return this[i]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(v,E){E=E||this;for(let x=this[d].tail;x!==null;){const O=x.prev;_(this,v,x,E),x=O}}forEach(v,E){E=E||this;for(let x=this[d].head;x!==null;){const O=x.next;_(this,v,x,E),x=O}}keys(){return this[d].toArray().map(v=>v.key)}values(){return this[d].toArray().map(v=>v.value)}reset(){this[r]&&this[d]&&this[d].length&&this[d].forEach(v=>this[r](v.key,v.value)),this[l]=new Map,this[d]=new e,this[o]=0}dump(){return this[d].map(v=>m(this,v)?!1:{k:v.key,v:v.value,e:v.now+(v.maxAge||0)}).toArray().filter(v=>v)}dumpLru(){return this[d]}set(v,E,x){if(x=x||this[t],x&&typeof x!="number")throw new TypeError("maxAge must be a number");const O=x?Date.now():0,C=this[i](E,v);if(this[l].has(v)){if(C>this[n])return g(this,this[l].get(v)),!1;const $=this[l].get(v).value;return this[r]&&(this[s]||this[r](v,$.value)),$.now=O,$.maxAge=x,$.value=E,this[o]+=C-$.length,$.length=C,this.get(v),y(this),!0}const D=new u(v,E,C,O,x);return D.length>this[n]?(this[r]&&this[r](v,E),!1):(this[o]+=D.length,this[d].unshift(D),this[l].set(v,this[d].head),y(this),!0)}has(v){if(!this[l].has(v))return!1;const E=this[l].get(v).value;return!m(this,E)}get(v){return b(this,v,!0)}peek(v){return b(this,v,!1)}pop(){const v=this[d].tail;return v?(g(this,v),v.value):null}del(v){g(this,this[l].get(v))}load(v){this.reset();const E=Date.now();for(let x=v.length-1;x>=0;x--){const O=v[x],C=O.e||0;if(C===0)this.set(O.k,O.v);else{const D=C-E;D>0&&this.set(O.k,O.v,D)}}}prune(){this[l].forEach((v,E)=>b(this,E,!1))}}const b=(w,v,E)=>{const x=w[l].get(v);if(x){const O=x.value;if(m(w,O)){if(g(w,x),!w[a])return}else E&&(w[f]&&(x.value.now=Date.now()),w[d].unshiftNode(x));return O.value}},m=(w,v)=>{if(!v||!v.maxAge&&!w[t])return!1;const E=Date.now()-v.now;return v.maxAge?E>v.maxAge:w[t]&&E>w[t]},y=w=>{if(w[o]>w[n])for(let v=w[d].tail;w[o]>w[n]&&v!==null;){const E=v.prev;g(w,v),v=E}},g=(w,v)=>{if(v){const E=v.value;w[r]&&w[r](E.key,E.value),w[o]-=E.length,w[l].delete(E.key),w[d].removeNode(v)}};class u{constructor(v,E,x,O,C){this.key=v,this.value=E,this.length=x,this.now=O,this.maxAge=C||0}}const _=(w,v,E,x)=>{let O=E.value;m(w,O)&&(g(w,E),w[a]||(O=void 0)),O&&v.call(x,O.value,O.key,w)};return so=c,so}var uo,rf;function ft(){if(rf)return uo;rf=1;class e{constructor(L,q){if(q=i(q),L instanceof e)return L.loose===!!q.loose&&L.includePrerelease===!!q.includePrerelease?L:new e(L.raw,q);if(L instanceof a)return this.raw=L.value,this.set=[[L]],this.format(),this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=L.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(z=>this.parseRange(z)).filter(z=>z.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const z=this.set[0];if(this.set=this.set.filter(P=>!m(P[0])),this.set.length===0)this.set=[z];else if(this.set.length>1){for(const P of this.set)if(P.length===1&&y(P[0])){this.set=[P];break}}}this.format()}format(){return this.range=this.set.map(L=>L.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(L){const z=((this.options.includePrerelease&&c)|(this.options.loose&&b))+":"+L,P=o.get(z);if(P)return P;const j=this.options.loose,k=j?s[d.HYPHENRANGELOOSE]:s[d.HYPHENRANGE];L=L.replace(k,$(this.options.includePrerelease)),t("hyphen replace",L),L=L.replace(s[d.COMPARATORTRIM],l),t("comparator trim",L),L=L.replace(s[d.TILDETRIM],f),L=L.replace(s[d.CARETTRIM],h);let F=L.split(" ").map(N=>u(N,this.options)).join(" ").split(/\s+/).map(N=>V(N,this.options));j&&(F=F.filter(N=>(t("loose invalid filter",N,this.options),!!N.match(s[d.COMPARATORLOOSE])))),t("range list",F);const W=new Map,Z=F.map(N=>new a(N,this.options));for(const N of Z){if(m(N))return[N];W.set(N.value,N)}W.size>1&&W.has("")&&W.delete("");const B=[...W.values()];return o.set(z,B),B}intersects(L,q){if(!(L instanceof e))throw new TypeError("a Range is required");return this.set.some(z=>g(z,q)&&L.set.some(P=>g(P,q)&&z.every(j=>P.every(k=>j.intersects(k,q)))))}test(L){if(!L)return!1;if(typeof L=="string")try{L=new r(L,this.options)}catch{return!1}for(let q=0;q<this.set.length;q++)if(S(this.set[q],L,this.options))return!0;return!1}}uo=e;const n=uy(),o=new n({max:1e3}),i=ss(),a=Rn(),t=En(),r=Ke(),{safeRe:s,t:d,comparatorTrimReplace:l,tildeTrimReplace:f,caretTrimReplace:h}=vr(),{FLAG_INCLUDE_PRERELEASE:c,FLAG_LOOSE:b}=wn(),m=R=>R.value==="<0.0.0-0",y=R=>R.value==="",g=(R,L)=>{let q=!0;const z=R.slice();let P=z.pop();for(;q&&z.length;)q=z.every(j=>P.intersects(j,L)),P=z.pop();return q},u=(R,L)=>(t("comp",R,L),R=E(R,L),t("caret",R),R=w(R,L),t("tildes",R),R=O(R,L),t("xrange",R),R=D(R,L),t("stars",R),R),_=R=>!R||R.toLowerCase()==="x"||R==="*",w=(R,L)=>R.trim().split(/\s+/).map(q=>v(q,L)).join(" "),v=(R,L)=>{const q=L.loose?s[d.TILDELOOSE]:s[d.TILDE];return R.replace(q,(z,P,j,k,F)=>{t("tilde",R,z,P,j,k,F);let W;return _(P)?W="":_(j)?W=`>=${P}.0.0 <${+P+1}.0.0-0`:_(k)?W=`>=${P}.${j}.0 <${P}.${+j+1}.0-0`:F?(t("replaceTilde pr",F),W=`>=${P}.${j}.${k}-${F} <${P}.${+j+1}.0-0`):W=`>=${P}.${j}.${k} <${P}.${+j+1}.0-0`,t("tilde return",W),W})},E=(R,L)=>R.trim().split(/\s+/).map(q=>x(q,L)).join(" "),x=(R,L)=>{t("caret",R,L);const q=L.loose?s[d.CARETLOOSE]:s[d.CARET],z=L.includePrerelease?"-0":"";return R.replace(q,(P,j,k,F,W)=>{t("caret",R,P,j,k,F,W);let Z;return _(j)?Z="":_(k)?Z=`>=${j}.0.0${z} <${+j+1}.0.0-0`:_(F)?j==="0"?Z=`>=${j}.${k}.0${z} <${j}.${+k+1}.0-0`:Z=`>=${j}.${k}.0${z} <${+j+1}.0.0-0`:W?(t("replaceCaret pr",W),j==="0"?k==="0"?Z=`>=${j}.${k}.${F}-${W} <${j}.${k}.${+F+1}-0`:Z=`>=${j}.${k}.${F}-${W} <${j}.${+k+1}.0-0`:Z=`>=${j}.${k}.${F}-${W} <${+j+1}.0.0-0`):(t("no pr"),j==="0"?k==="0"?Z=`>=${j}.${k}.${F}${z} <${j}.${k}.${+F+1}-0`:Z=`>=${j}.${k}.${F}${z} <${j}.${+k+1}.0-0`:Z=`>=${j}.${k}.${F} <${+j+1}.0.0-0`),t("caret return",Z),Z})},O=(R,L)=>(t("replaceXRanges",R,L),R.split(/\s+/).map(q=>C(q,L)).join(" ")),C=(R,L)=>{R=R.trim();const q=L.loose?s[d.XRANGELOOSE]:s[d.XRANGE];return R.replace(q,(z,P,j,k,F,W)=>{t("xRange",R,z,P,j,k,F,W);const Z=_(j),B=Z||_(k),N=B||_(F),M=N;return P==="="&&M&&(P=""),W=L.includePrerelease?"-0":"",Z?P===">"||P==="<"?z="<0.0.0-0":z="*":P&&M?(B&&(k=0),F=0,P===">"?(P=">=",B?(j=+j+1,k=0,F=0):(k=+k+1,F=0)):P==="<="&&(P="<",B?j=+j+1:k=+k+1),P==="<"&&(W="-0"),z=`${P+j}.${k}.${F}${W}`):B?z=`>=${j}.0.0${W} <${+j+1}.0.0-0`:N&&(z=`>=${j}.${k}.0${W} <${j}.${+k+1}.0-0`),t("xRange return",z),z})},D=(R,L)=>(t("replaceStars",R,L),R.trim().replace(s[d.STAR],"")),V=(R,L)=>(t("replaceGTE0",R,L),R.trim().replace(s[L.includePrerelease?d.GTE0PRE:d.GTE0],"")),$=R=>(L,q,z,P,j,k,F,W,Z,B,N,M,G)=>(_(z)?q="":_(P)?q=`>=${z}.0.0${R?"-0":""}`:_(j)?q=`>=${z}.${P}.0${R?"-0":""}`:k?q=`>=${q}`:q=`>=${q}${R?"-0":""}`,_(Z)?W="":_(B)?W=`<${+Z+1}.0.0-0`:_(N)?W=`<${Z}.${+B+1}.0-0`:M?W=`<=${Z}.${B}.${N}-${M}`:R?W=`<${Z}.${B}.${+N+1}-0`:W=`<=${W}`,`${q} ${W}`.trim()),S=(R,L,q)=>{for(let z=0;z<R.length;z++)if(!R[z].test(L))return!1;if(L.prerelease.length&&!q.includePrerelease){for(let z=0;z<R.length;z++)if(t(R[z].semver),R[z].semver!==a.ANY&&R[z].semver.prerelease.length>0){const P=R[z].semver;if(P.major===L.major&&P.minor===L.minor&&P.patch===L.patch)return!0}return!1}return!0};return uo}var co,nf;function Rn(){if(nf)return co;nf=1;const e=Symbol("SemVer ANY");class n{static get ANY(){return e}constructor(f,h){if(h=o(h),f instanceof n){if(f.loose===!!h.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),r("comparator",f,h),this.options=h,this.loose=!!h.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}parse(f){const h=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],c=f.match(h);if(!c)throw new TypeError(`Invalid comparator: ${f}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new s(c[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(r("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new s(f,this.options)}catch{return!1}return t(f,this.operator,this.semver,this.options)}intersects(f,h){if(!(f instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new d(f.value,h).test(this.value):f.operator===""?f.value===""?!0:new d(this.value,h).test(f.semver):(h=o(h),h.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||t(this.semver,"<",f.semver,h)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||t(this.semver,">",f.semver,h)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}co=n;const o=ss(),{safeRe:i,t:a}=vr(),t=Qh(),r=En(),s=Ke(),d=ft();return co}var lo,af;function On(){if(af)return lo;af=1;const e=ft();return lo=(o,i,a)=>{try{i=new e(i,a)}catch{return!1}return i.test(o)},lo}var fo,of;function cy(){if(of)return fo;of=1;const e=ft();return fo=(o,i)=>new e(o,i).set.map(a=>a.map(t=>t.value).join(" ").trim().split(" ")),fo}var ho,sf;function ly(){if(sf)return ho;sf=1;const e=Ke(),n=ft();return ho=(i,a,t)=>{let r=null,s=null,d=null;try{d=new n(a,t)}catch{return null}return i.forEach(l=>{d.test(l)&&(!r||s.compare(l)===-1)&&(r=l,s=new e(r,t))}),r},ho}var po,uf;function fy(){if(uf)return po;uf=1;const e=Ke(),n=ft();return po=(i,a,t)=>{let r=null,s=null,d=null;try{d=new n(a,t)}catch{return null}return i.forEach(l=>{d.test(l)&&(!r||s.compare(l)===1)&&(r=l,s=new e(r,t))}),r},po}var mo,cf;function hy(){if(cf)return mo;cf=1;const e=Ke(),n=ft(),o=Sn();return mo=(a,t)=>{a=new n(a,t);let r=new e("0.0.0");if(a.test(r)||(r=new e("0.0.0-0"),a.test(r)))return r;r=null;for(let s=0;s<a.set.length;++s){const d=a.set[s];let l=null;d.forEach(f=>{const h=new e(f.semver.version);switch(f.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!l||o(h,l))&&(l=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${f.operator}`)}}),l&&(!r||o(r,l))&&(r=l)}return r&&a.test(r)?r:null},mo}var go,lf;function dy(){if(lf)return go;lf=1;const e=ft();return go=(o,i)=>{try{return new e(o,i).range||"*"}catch{return null}},go}var vo,ff;function hs(){if(ff)return vo;ff=1;const e=Ke(),n=Rn(),{ANY:o}=n,i=ft(),a=On(),t=Sn(),r=cs(),s=fs(),d=ls();return vo=(f,h,c,b)=>{f=new e(f,b),h=new i(h,b);let m,y,g,u,_;switch(c){case">":m=t,y=s,g=r,u=">",_=">=";break;case"<":m=r,y=d,g=t,u="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(f,h,b))return!1;for(let w=0;w<h.set.length;++w){const v=h.set[w];let E=null,x=null;if(v.forEach(O=>{O.semver===o&&(O=new n(">=0.0.0")),E=E||O,x=x||O,m(O.semver,E.semver,b)?E=O:g(O.semver,x.semver,b)&&(x=O)}),E.operator===u||E.operator===_||(!x.operator||x.operator===u)&&y(f,x.semver))return!1;if(x.operator===_&&g(f,x.semver))return!1}return!0},vo}var yo,hf;function py(){if(hf)return yo;hf=1;const e=hs();return yo=(o,i,a)=>e(o,i,">",a),yo}var _o,df;function my(){if(df)return _o;df=1;const e=hs();return _o=(o,i,a)=>e(o,i,"<",a),_o}var bo,pf;function gy(){if(pf)return bo;pf=1;const e=ft();return bo=(o,i,a)=>(o=new e(o,a),i=new e(i,a),o.intersects(i,a)),bo}var wo,mf;function vy(){if(mf)return wo;mf=1;const e=On(),n=lt();return wo=(o,i,a)=>{const t=[];let r=null,s=null;const d=o.sort((c,b)=>n(c,b,a));for(const c of d)e(c,i,a)?(s=c,r||(r=c)):(s&&t.push([r,s]),s=null,r=null);r&&t.push([r,null]);const l=[];for(const[c,b]of t)c===b?l.push(c):!b&&c===d[0]?l.push("*"):b?c===d[0]?l.push(`<=${b}`):l.push(`${c} - ${b}`):l.push(`>=${c}`);const f=l.join(" || "),h=typeof i.raw=="string"?i.raw:String(i);return f.length<h.length?f:i},wo}var Eo,gf;function yy(){if(gf)return Eo;gf=1;const e=ft(),n=Rn(),{ANY:o}=n,i=On(),a=lt(),t=(h,c,b={})=>{if(h===c)return!0;h=new e(h,b),c=new e(c,b);let m=!1;e:for(const y of h.set){for(const g of c.set){const u=d(y,g,b);if(m=m||u!==null,u)continue e}if(m)return!1}return!0},r=[new n(">=0.0.0-0")],s=[new n(">=0.0.0")],d=(h,c,b)=>{if(h===c)return!0;if(h.length===1&&h[0].semver===o){if(c.length===1&&c[0].semver===o)return!0;b.includePrerelease?h=r:h=s}if(c.length===1&&c[0].semver===o){if(b.includePrerelease)return!0;c=s}const m=new Set;let y,g;for(const C of h)C.operator===">"||C.operator===">="?y=l(y,C,b):C.operator==="<"||C.operator==="<="?g=f(g,C,b):m.add(C.semver);if(m.size>1)return null;let u;if(y&&g){if(u=a(y.semver,g.semver,b),u>0)return null;if(u===0&&(y.operator!==">="||g.operator!=="<="))return null}for(const C of m){if(y&&!i(C,String(y),b)||g&&!i(C,String(g),b))return null;for(const D of c)if(!i(C,String(D),b))return!1;return!0}let _,w,v,E,x=g&&!b.includePrerelease&&g.semver.prerelease.length?g.semver:!1,O=y&&!b.includePrerelease&&y.semver.prerelease.length?y.semver:!1;x&&x.prerelease.length===1&&g.operator==="<"&&x.prerelease[0]===0&&(x=!1);for(const C of c){if(E=E||C.operator===">"||C.operator===">=",v=v||C.operator==="<"||C.operator==="<=",y){if(O&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===O.major&&C.semver.minor===O.minor&&C.semver.patch===O.patch&&(O=!1),C.operator===">"||C.operator===">="){if(_=l(y,C,b),_===C&&_!==y)return!1}else if(y.operator===">="&&!i(y.semver,String(C),b))return!1}if(g){if(x&&C.semver.prerelease&&C.semver.prerelease.length&&C.semver.major===x.major&&C.semver.minor===x.minor&&C.semver.patch===x.patch&&(x=!1),C.operator==="<"||C.operator==="<="){if(w=f(g,C,b),w===C&&w!==g)return!1}else if(g.operator==="<="&&!i(g.semver,String(C),b))return!1}if(!C.operator&&(g||y)&&u!==0)return!1}return!(y&&v&&!g&&u!==0||g&&E&&!y&&u!==0||O||x)},l=(h,c,b)=>{if(!h)return c;const m=a(h.semver,c.semver,b);return m>0?h:m<0||c.operator===">"&&h.operator===">="?c:h},f=(h,c,b)=>{if(!h)return c;const m=a(h.semver,c.semver,b);return m<0?h:m>0||c.operator==="<"&&h.operator==="<="?c:h};return Eo=t,Eo}var So,vf;function ds(){if(vf)return So;vf=1;const e=vr(),n=wn(),o=Ke(),i=Jh(),a=Yt(),t=Zv(),r=Yv(),s=Wv(),d=Jv(),l=Kv(),f=Xv(),h=Qv(),c=ey(),b=lt(),m=ty(),y=ry(),g=us(),u=ny(),_=iy(),w=Sn(),v=cs(),E=Kh(),x=Xh(),O=ls(),C=fs(),D=Qh(),V=ay(),$=Rn(),S=ft(),R=On(),L=cy(),q=ly(),z=fy(),P=hy(),j=dy(),k=hs(),F=py(),W=my(),Z=gy(),B=vy(),N=yy();return So={parse:a,valid:t,clean:r,inc:s,diff:d,major:l,minor:f,patch:h,prerelease:c,compare:b,rcompare:m,compareLoose:y,compareBuild:g,sort:u,rsort:_,gt:w,lt:v,eq:E,neq:x,gte:O,lte:C,cmp:D,coerce:V,Comparator:$,Range:S,satisfies:R,toComparators:L,maxSatisfying:q,minSatisfying:z,minVersion:P,validRange:j,outside:k,gtr:F,ltr:W,intersects:Z,simplifyRange:B,subset:N,SemVer:o,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers},So}var Ro,yf;function _y(){return yf||(yf=1,Ro=ds().satisfies(ye.version,">=15.7.0")),Ro}var Oo,_f;function by(){return _f||(_f=1,Oo=ds().satisfies(ye.version,">=16.9.0")),Oo}var To,bf;function ed(){if(bf)return To;bf=1;const e=_y(),n=by(),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},i={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return To=function(a,t){if(!a||!t)return;const r=t.asymmetricKeyType;if(!r)return;const s=o[r];if(!s)throw new Error(`Unknown key type "${r}".`);if(!s.includes(a))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(e)switch(r){case"ec":const d=t.asymmetricKeyDetails.namedCurve,l=i[a];if(d!==l)throw new Error(`"alg" parameter "${a}" requires curve "${l}".`);break;case"rsa-pss":if(n){const f=parseInt(a.slice(-3),10),{hashAlgorithm:h,mgf1HashAlgorithm:c,saltLength:b}=t.asymmetricKeyDetails;if(h!==`sha${f}`||c!==h)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${a}.`);if(b!==void 0&&b>f>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${a}.`)}break}},To}var xo,wf;function td(){if(wf)return xo;wf=1;var e=ds();return xo=e.satisfies(ye.version,"^6.12.0 || >=8.0.0"),xo}var Ao,Ef;function wy(){if(Ef)return Ao;Ef=1;const e=bn(),n=$h(),o=Gh(),i=Yh(),a=Wh(),t=ed(),r=td(),s=os(),{KeyObject:d,createSecretKey:l,createPublicKey:f}=Ht(),h=["RS256","RS384","RS512"],c=["ES256","ES384","ES512"],b=["RS256","RS384","RS512"],m=["HS256","HS384","HS512"];return r&&(h.splice(h.length,0,"PS256","PS384","PS512"),b.splice(b.length,0,"PS256","PS384","PS512")),Ao=function(y,g,u,_){typeof u=="function"&&!_&&(_=u,u={}),u||(u={}),u=Object.assign({},u);let w;if(_?w=_:w=function(D,V){if(D)throw D;return V},u.clockTimestamp&&typeof u.clockTimestamp!="number")return w(new e("clockTimestamp must be a number"));if(u.nonce!==void 0&&(typeof u.nonce!="string"||u.nonce.trim()===""))return w(new e("nonce must be a non-empty string"));if(u.allowInvalidAsymmetricKeyTypes!==void 0&&typeof u.allowInvalidAsymmetricKeyTypes!="boolean")return w(new e("allowInvalidAsymmetricKeyTypes must be a boolean"));const v=u.clockTimestamp||Math.floor(Date.now()/1e3);if(!y)return w(new e("jwt must be provided"));if(typeof y!="string")return w(new e("jwt must be a string"));const E=y.split(".");if(E.length!==3)return w(new e("jwt malformed"));let x;try{x=i(y,{complete:!0})}catch(D){return w(D)}if(!x)return w(new e("invalid token"));const O=x.header;let C;if(typeof g=="function"){if(!_)return w(new e("verify must be called asynchronous if secret or public key is provided as a callback"));C=g}else C=function(D,V){return V(null,g)};return C(O,function(D,V){if(D)return w(new e("error in secret or public key callback: "+D.message));const $=E[2].trim()!=="";if(!$&&V)return w(new e("jwt signature is required"));if($&&!V)return w(new e("secret or public key must be provided"));if(!$&&!u.algorithms)return w(new e('please specify "none" in "algorithms" to verify unsigned tokens'));if(V!=null&&!(V instanceof d))try{V=f(V)}catch{try{V=l(typeof V=="string"?et.from(V):V)}catch{return w(new e("secretOrPublicKey is not valid key material"))}}if(u.algorithms||(V.type==="secret"?u.algorithms=m:["rsa","rsa-pss"].includes(V.asymmetricKeyType)?u.algorithms=b:V.asymmetricKeyType==="ec"?u.algorithms=c:u.algorithms=h),u.algorithms.indexOf(x.header.alg)===-1)return w(new e("invalid algorithm"));if(O.alg.startsWith("HS")&&V.type!=="secret")return w(new e(`secretOrPublicKey must be a symmetric key when using ${O.alg}`));if(/^(?:RS|PS|ES)/.test(O.alg)&&V.type!=="public")return w(new e(`secretOrPublicKey must be an asymmetric key when using ${O.alg}`));if(!u.allowInvalidAsymmetricKeyTypes)try{t(O.alg,V)}catch(L){return w(L)}let S;try{S=s.verify(y,x.header.alg,V)}catch(L){return w(L)}if(!S)return w(new e("invalid signature"));const R=x.payload;if(typeof R.nbf<"u"&&!u.ignoreNotBefore){if(typeof R.nbf!="number")return w(new e("invalid nbf value"));if(R.nbf>v+(u.clockTolerance||0))return w(new n("jwt not active",new Date(R.nbf*1e3)))}if(typeof R.exp<"u"&&!u.ignoreExpiration){if(typeof R.exp!="number")return w(new e("invalid exp value"));if(v>=R.exp+(u.clockTolerance||0))return w(new o("jwt expired",new Date(R.exp*1e3)))}if(u.audience){const L=Array.isArray(u.audience)?u.audience:[u.audience];if(!(Array.isArray(R.aud)?R.aud:[R.aud]).some(function(P){return L.some(function(j){return j instanceof RegExp?j.test(P):j===P})}))return w(new e("jwt audience invalid. expected: "+L.join(" or ")))}if(u.issuer&&(typeof u.issuer=="string"&&R.iss!==u.issuer||Array.isArray(u.issuer)&&u.issuer.indexOf(R.iss)===-1))return w(new e("jwt issuer invalid. expected: "+u.issuer));if(u.subject&&R.sub!==u.subject)return w(new e("jwt subject invalid. expected: "+u.subject));if(u.jwtid&&R.jti!==u.jwtid)return w(new e("jwt jwtid invalid. expected: "+u.jwtid));if(u.nonce&&R.nonce!==u.nonce)return w(new e("jwt nonce invalid. expected: "+u.nonce));if(u.maxAge){if(typeof R.iat!="number")return w(new e("iat required when maxAge is specified"));const L=a(u.maxAge,R.iat);if(typeof L>"u")return w(new e('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(v>=L+(u.clockTolerance||0))return w(new o("maxAge exceeded",new Date(L*1e3)))}if(u.complete===!0){const L=x.signature;return w(null,{header:O,payload:R,signature:L})}return w(null,R)})},Ao}const Ey=Xf(im);var Io,Sf;function Sy(){if(Sf)return Io;Sf=1;const e=Wh(),n=td(),o=ed(),i=os(),{includes:a,isBoolean:t,isInteger:r,isNumber:s,isPlainObject:d,isString:l,once:f}=Ey,{KeyObject:h,createSecretKey:c,createPrivateKey:b}=Ht(),m=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];n&&m.splice(3,0,"PS256","PS384","PS512");const y={expiresIn:{isValid:function(x){return r(x)||l(x)&&x},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(x){return r(x)||l(x)&&x},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(x){return l(x)||Array.isArray(x)},message:'"audience" must be a string or array'},algorithm:{isValid:a.bind(null,m),message:'"algorithm" must be a valid string enum value'},header:{isValid:d,message:'"header" must be an object'},encoding:{isValid:l,message:'"encoding" must be a string'},issuer:{isValid:l,message:'"issuer" must be a string'},subject:{isValid:l,message:'"subject" must be a string'},jwtid:{isValid:l,message:'"jwtid" must be a string'},noTimestamp:{isValid:t,message:'"noTimestamp" must be a boolean'},keyid:{isValid:l,message:'"keyid" must be a string'},mutatePayload:{isValid:t,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:t,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:t,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},g={iat:{isValid:s,message:'"iat" should be a number of seconds'},exp:{isValid:s,message:'"exp" should be a number of seconds'},nbf:{isValid:s,message:'"nbf" should be a number of seconds'}};function u(x,O,C,D){if(!d(C))throw new Error('Expected "'+D+'" to be a plain object.');Object.keys(C).forEach(function(V){const $=x[V];if(!$){if(!O)throw new Error('"'+V+'" is not allowed in "'+D+'"');return}if(!$.isValid(C[V]))throw new Error($.message)})}function _(x){return u(y,!1,x,"options")}function w(x){return u(g,!0,x,"payload")}const v={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},E=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return Io=function(x,O,C,D){typeof C=="function"?(D=C,C={}):C=C||{};const V=typeof x=="object"&&!et.isBuffer(x),$=Object.assign({alg:C.algorithm||"HS256",typ:V?"JWT":void 0,kid:C.keyid},C.header);function S(q){if(D)return D(q);throw q}if(!O&&C.algorithm!=="none")return S(new Error("secretOrPrivateKey must have a value"));if(O!=null&&!(O instanceof h))try{O=b(O)}catch{try{O=c(typeof O=="string"?et.from(O):O)}catch{return S(new Error("secretOrPrivateKey is not valid key material"))}}if($.alg.startsWith("HS")&&O.type!=="secret")return S(new Error(`secretOrPrivateKey must be a symmetric key when using ${$.alg}`));if(/^(?:RS|PS|ES)/.test($.alg)){if(O.type!=="private")return S(new Error(`secretOrPrivateKey must be an asymmetric key when using ${$.alg}`));if(!C.allowInsecureKeySizes&&!$.alg.startsWith("ES")&&O.asymmetricKeyDetails!==void 0&&O.asymmetricKeyDetails.modulusLength<2048)return S(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${$.alg}`))}if(typeof x>"u")return S(new Error("payload is required"));if(V){try{w(x)}catch(q){return S(q)}C.mutatePayload||(x=Object.assign({},x))}else{const q=E.filter(function(z){return typeof C[z]<"u"});if(q.length>0)return S(new Error("invalid "+q.join(",")+" option for "+typeof x+" payload"))}if(typeof x.exp<"u"&&typeof C.expiresIn<"u")return S(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof x.nbf<"u"&&typeof C.notBefore<"u")return S(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{_(C)}catch(q){return S(q)}if(!C.allowInvalidAsymmetricKeyTypes)try{o($.alg,O)}catch(q){return S(q)}const R=x.iat||Math.floor(Date.now()/1e3);if(C.noTimestamp?delete x.iat:V&&(x.iat=R),typeof C.notBefore<"u"){try{x.nbf=e(C.notBefore,R)}catch(q){return S(q)}if(typeof x.nbf>"u")return S(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof C.expiresIn<"u"&&typeof x=="object"){try{x.exp=e(C.expiresIn,R)}catch(q){return S(q)}if(typeof x.exp>"u")return S(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(v).forEach(function(q){const z=v[q];if(typeof C[q]<"u"){if(typeof x[z]<"u")return S(new Error('Bad "options.'+q+'" option. The payload already has an "'+z+'" property.'));x[z]=C[q]}});const L=C.encoding||"utf8";if(typeof D=="function")D=D&&f(D),i.createSign({header:$,privateKey:O,payload:x,encoding:L}).once("error",D).once("done",function(q){if(!C.allowInsecureKeySizes&&/^(?:RS|PS)/.test($.alg)&&q.length<256)return D(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${$.alg}`));D(null,q)});else{let q=i.sign({header:$,payload:x,secret:O,encoding:L});if(!C.allowInsecureKeySizes&&/^(?:RS|PS)/.test($.alg)&&q.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${$.alg}`);return q}},Io}var Rf;function Ry(){return Rf||(Rf=1,function(e){e.exports={verify:wy(),sign:Sy(),JsonWebTokenError:bn(),NotBeforeError:$h(),TokenExpiredError:Gh()},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:Yh()})}(va)),va.exports}var Co,Of;function Oy(){if(Of)return Co;Of=1;function e(n){this.token=n.token||"",this.response=n.response||"",this.body=n.responseText||"",this.json=null,this.intuit_tid=n.intuit_tid||""}return e.prototype.processResponse=function(o){this.response=o||"",this.body=o&&o.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=o&&o.headers&&o.headers.intuit_tid||""},e.prototype.getToken=function(){return this.token.getToken()},e.prototype.text=function(){return this.body},e.prototype.status=function(){return this.response.status},e.prototype.headers=function(){return this.response.headers},e.prototype.valid=function(){return this.response&&Number(this.response.status)>=200&&Number(this.response.status)<300},e.prototype.getJson=function(){if(!this.isJson())throw new Error("AuthResponse is not JSON");return this.json||(this.json=this.body?JSON.parse(this.body):null),this.json},e.prototype.get_intuit_tid=function(){return this.intuit_tid},e.prototype.isContentType=function(o){return this.getContentType().indexOf(o)>-1},e.prototype.getContentType=function(){return this.response.get(e._contentType)||""},e.prototype.isJson=function(){return this.isContentType("application/json")},e._contentType="Content-Type",e._jsonContentType="application/json",e._urlencodedContentType="application/x-www-form-urlencoded",Co=e,Co}const Ty="0.0.4",xy={version:Ty};var Po,Tf;function Ay(){if(Tf)return Po;Tf=1;function e(n){n=n||{},this.realmId=n.realmId||"",this.token_type=n.token_type||"",this.access_token=n.access_token||"",this.refresh_token=n.refresh_token||"",this.expires_in=n.expires_in||0,this.x_refresh_token_expires_in=n.x_refresh_token_expires_in||0,this.id_token=n.id_token||"",this.latency=n.latency||60*1e3,this.createdAt=n.createdAt||Date.now()}return e.prototype.accessToken=function(){return this.getToken().access_token},e.prototype.refreshToken=function(){return this.getToken().refresh_token},e.prototype.tokenType=function(){return this.getToken().token_type},e.prototype.getToken=function(){return{token_type:this.token_type,access_token:this.access_token,expires_in:this.expires_in,refresh_token:this.refresh_token,x_refresh_token_expires_in:this.x_refresh_token_expires_in,realmId:this.realmId,id_token:this.id_token,createdAt:this.createdAt}},e.prototype.setToken=function(o){return this.access_token=o.access_token,this.refresh_token=o.refresh_token,this.token_type=o.token_type,this.expires_in=o.expires_in,this.x_refresh_token_expires_in=o.x_refresh_token_expires_in,this.id_token=o.id_token||"",this.createdAt=o.createdAt||Date.now(),this},e.prototype.clearToken=function(){return this.access_token="",this.refresh_token="",this.token_type="",this.expires_in=0,this.x_refresh_token_expires_in=0,this.id_token="",this.createdAt=0,this},e.prototype._checkExpiry=function(o){return this.createdAt+o*1e3-this.latency>Date.now()},e.prototype.isAccessTokenValid=function(){return this._checkExpiry(this.expires_in)},e.prototype.isRefreshTokenValid=function(){return this._checkExpiry(this.x_refresh_token_expires_in)},Po=e,Po}var ko,xf;function Iy(){if(xf)return ko;xf=1,ko=e;function e(a,t){var r=et.from(a,"base64"),s=et.from(t,"base64"),d=r.toString("hex"),l=s.toString("hex");d=n(d),l=n(l);var f=d.length/2,h=l.length/2,c=i(f),b=i(h),m="30"+i(f+h+c.length/2+b.length/2+2)+"02"+c+d+"02"+b+l,y=et.from(m,"hex").toString("base64"),g=`-----BEGIN RSA PUBLIC KEY-----
|
|
120
119
|
`+y.match(/.{1,64}/g).join(`
|
|
121
120
|
`)+`
|
|
122
121
|
-----END RSA PUBLIC KEY-----
|
|
123
|
-
`;return g}function n(a){var t=a[0];return t<"0"||t>"7"?"00"+a:a}function o(a){var t=a.toString(16);return t.length%2?"0"+t:t}function i(a){if(a<=127)return o(a);var t=o(a),r=128+t.length/2;return o(r)+t}return ko}var jo,Af;function Cy(){if(Af)return jo;Af=1;const e=Xm(),n=dg(),o=yg(),i=Sg(),a=Ut(),t=Uv(),r=Lh(),s=Ko(),d=Ry(),l=Oy(),f=xy,h=Ay();function c(b){if(this.environment=b.environment,this.clientId=b.clientId,this.clientSecret=b.clientSecret,this.redirectUri=b.redirectUri,this.token=new h(b.token),this.logging=!!(Object.prototype.hasOwnProperty.call(b,"logging")&&b.logging===!0),this.logger=null,this.state=new n,this.logging){const m="./logs";s.existsSync(m)||s.mkdirSync(m),this.logger=t.createLogger({level:"info",format:t.format.combine(t.format.timestamp(),t.format.printf(y=>`${y.timestamp} ${y.level}: ${y.message}`)),transports:[new t.transports.File({filename:r.join(m,"oAuthClient-log.log")})]})}}return c.cacheId="cacheID",c.authorizeEndpoint="https://appcenter.intuit.com/connect/oauth2",c.tokenEndpoint="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer",c.revokeEndpoint="https://developer.api.intuit.com/v2/oauth2/tokens/revoke",c.userinfo_endpoint_production="https://accounts.platform.intuit.com/v1/openid_connect/userinfo",c.userinfo_endpoint_sandbox="https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo",c.migrate_sandbox="https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate",c.migrate_production="https://developer.api.intuit.com/v2/oauth2/tokens/migrate",c.environment={sandbox:"https://sandbox-quickbooks.api.intuit.com/",production:"https://quickbooks.api.intuit.com/"},c.jwks_uri="https://oauth.platform.intuit.com/op/v1/jwks",c.scopes={Accounting:"com.intuit.quickbooks.accounting",Payment:"com.intuit.quickbooks.payment",Payroll:"com.intuit.quickbooks.payroll",TimeTracking:"com.intuit.quickbooks.payroll.timetracking",Benefits:"com.intuit.quickbooks.payroll.benefits",Profile:"profile",Email:"email",Phone:"phone",Address:"address",OpenId:"openid",Intuit_name:"intuit_name"},c.user_agent=`Intuit-OAuthClient-JS_${f.version}_${a.type()}_${a.release()}_${a.platform()}`,c.prototype.setAuthorizeURLs=function(m){if(!m)throw new Error("Provide the custom authorize URL's");return c.authorizeEndpoint=m.authorizeEndpoint,c.tokenEndpoint=m.tokenEndpoint,c.revokeEndpoint=m.revokeEndpoint,this.environment==="sandbox"?c.userinfo_endpoint_sandbox=m.userInfoEndpoint:c.userinfo_endpoint_production=m.userInfoEndpoint,this},c.prototype.authorizeUri=function(m){if(m=m||{},!m.scope)throw new Error("Provide the scopes");const y=`${c.authorizeEndpoint}?${o.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(m.scope)?m.scope.join(" "):m.scope,state:m.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",y),y},c.prototype.createToken=function(m){return new Promise(y=>{if(!m)throw new Error("Provide the Uri");const g=o.parse(m.split("?").reverse()[0]);this.getToken().realmId=g.realmId?g.realmId:"","state"in g&&(this.getToken().state=g.state);const u={};g.code&&(u.grant_type="authorization_code",u.code=g.code,u.redirect_uri=g.redirectUri||this.redirectUri);const _={url:c.tokenEndpoint,body:u,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(_))}).then(y=>{const g=y.json?y:null,u=g&&g.getJson()||y;return this.token.setToken(u),this.log("info","Create Token response is : ",JSON.stringify(g,null,2)),g}).catch(y=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.refresh=function(){return new Promise(m=>{this.validateToken();const y={};y.grant_type="refresh_token",y.refresh_token=this.getToken().refresh_token;const g={url:c.tokenEndpoint,body:y,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(g))}).then(m=>{const y=m.json?m:null,g=y&&y.getJson()||m;return this.token.setToken(g),this.log("info","Refresh Token () response is : ",JSON.stringify(y,null,2)),y}).catch(m=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.refreshUsingToken=function(m){return new Promise(y=>{if(!m)throw new Error("The Refresh token is missing");const g={};g.grant_type="refresh_token",g.refresh_token=m;const u={url:c.tokenEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(u))}).then(y=>{const g=y.json?y:null,u=g&&g.getJson()||y;return this.token.setToken(u),this.log("info","Refresh usingToken () response is : ",JSON.stringify(g,null,2)),g}).catch(y=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.revoke=function(m){return new Promise(y=>{m=m||{};const g={};g.token=m.access_token||m.refresh_token||(this.getToken().isAccessTokenValid()?this.getToken().access_token:this.getToken().refresh_token);const u={url:c.revokeEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,Accept:l._jsonContentType,"Content-Type":l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(u))}).then(y=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getUserInfo=function(){return new Promise(m=>{const y={url:this.environment==="sandbox"?c.userinfo_endpoint_sandbox:c.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(y))}).then(m=>{const y=m.json?m:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(y,null,2)),y}).catch(m=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.makeApiCall=function(m){return new Promise(y=>{m=m||{};const g=m.transport?m.transport:i.createTransport({type:"text"}),u=m.headers&&typeof m.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent},m.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent}),_={url:m.url,method:m.method||"GET",headers:u,transport:g};m.body&&(_.body=m.body),y(this.getTokenRequest(_))}).then(y=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.validateIdToken=function(m={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||m.id_token,u=g.split("."),_=JSON.parse(e(u[0])),w=JSON.parse(e(u[1]));if(w.iss!=="https://oauth.platform.intuit.com/op/v1"||!w.aud.find(E=>E===this.clientId)||w.exp<Date.now()/1e3)return!1;const v={url:c.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":c.user_agent}};return y(this.getKeyFromJWKsURI(g,_.kid,v))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),!!y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getValidatedIdToken=function(m={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||m.id_token,u=g.split("."),_=JSON.parse(e(u[0])),w=JSON.parse(e(u[1]));if(w.iss!=="https://oauth.platform.intuit.com/op/v1"||!w.aud.find(E=>E===this.clientId)||w.exp<Date.now()/1e3)return!1;const v={url:c.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":c.user_agent}};return y(this.getKeyFromJWKsURI(g,_.kid,v))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getIdTokenComponents=async function(b={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const y=(this.getToken().id_token||b.id_token).split("."),g=JSON.parse(e(y[0])),u=JSON.parse(e(y[1]));if(u.iss!=="https://oauth.platform.intuit.com/op/v1")throw new Error('The issuer is not as mentioned in "issuer"');if(!u.aud.find(_=>_===this.clientId))throw new Error("The aud field in idToken does not contain application's clientId");if(u.exp<Date.now()/1e3)throw new Error("The timestamp has elapsed");return{id_token_header:g,id_token_payload:u}},c.prototype.getKeyFromJWKsURI=function(m,y,g){return new Promise(u=>{u(this.loadResponse(g))}).then(u=>{if(Number(u.status)!==200)throw new Error("Could not reach JWK endpoint");const w=JSON.parse(u.body).keys.find(E=>E.kid===y),v=this.getPublicKey(w.n,w.e);return d.verify(m,v)}).catch(u=>{throw u=this.createError(u),this.log("error","The getKeyFromJWKsURI () threw an exception : ",JSON.stringify(u,null,2)),u})},c.prototype.getPublicKey=function(m,y){return Iy()(m,y)},c.prototype.getTokenRequest=function(m){const y=new l({token:this.token});return new Promise(g=>{g(this.loadResponse(m))}).then(g=>{if(y.processResponse(g),!y.valid())throw new Error("Response has an Error");return y}).catch(g=>{throw g.authResponse||(g=this.createError(g,y)),g})},c.prototype.validateToken=function(){if(!this.token.refreshToken())throw new Error("The Refresh token is missing");if(!this.token.isRefreshTokenValid())throw new Error("The Refresh token is invalid, please Authorize again.")},c.prototype.loadResponse=function(m){return i.get(m).then(y=>y)},c.prototype.loadResponseFromJWKsURI=function(m){return i.get(m).then(y=>y)},c.prototype.createError=function(m,y){return!y||y.body===""?(m.error=y&&y.response.statusText||m.message||"",m.authResponse=y||"",m.intuit_tid=y&&y.headers()&&y.headers().intuit_tid||"",m.originalMessage=m.message||"",m.error_description=y&&y.response.statusText||"",m):(m.authResponse=y,m.originalMessage=m.message,m.error="","error"in y.getJson()?m.error=y.getJson().error:y.response.statusText?m.error=y.response.statusText:m.message&&(m.error=m.message),m.error_description="","error_description"in y.getJson()?m.error_description=y.getJson().error_description:y.response.statusText&&(m.error_description=y.response.statusText),m.intuit_tid=y.headers().intuit_tid,m)},c.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},c.prototype.getToken=function(){return this.token},c.prototype.setToken=function(m){return this.token=new h(m),this.token},c.prototype.authHeader=function(){const m=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(m):et.from(m).toString("base64")},c.prototype.log=function(m,y,g){this.logging&&this.logger.log(m,y+g)},jo=c,jo}var Py=Cy();const mt=wp(Py),id="project-management.project",en=(()=>{let e,n,o="";return{initiatedCompanyID:o,init:(t,r)=>{n=new mt({clientId:dn.quickbooksKey,clientSecret:"",environment:rh,redirectUri:window.location.origin+t}),e=n.authorizeUri({state:r,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile,id]}),o=r},handleClick:()=>{window.open(e,"_self","noopener")}}})();function ps(e){const o=Go(e,!0).query,i=o.code,a=o.realmId,t=o.state,r=i!=null?decodeURIComponent(i):"",s=a!=null?decodeURIComponent(a):"",d=t!=null?decodeURIComponent(t):"";return{code:r,realmId:s,state:d}}const ky=(e,n,o,i,a)=>e!==""&&n!==""&&o!==""&&i!==null&&i!==""&&a!==null&&a!=="",jy=({code:e,realmId:n,state:o,connectionId:i,signedInuserId:a,tenantId:t,companyId:r,onboardingViewFetchState:s,saveConnectionFetchState:d})=>ky(e,n,o,i,a)===!0&&d!=="In-Progress"&&s==="Completed"&&t!=null&&r!=null,Ly=()=>{const e=Wo(),{code:n,realmId:o,state:i}=ps(e.search),a=Je.getSignedInUser()?.userId??"",t=i==="create-qbo-subscription";if(qy(n,o,i,a))if(t){const r=`/onboarding/${i}?code=${n}&realmId=${o}&state=${i}`;return B.jsx(nr,{to:r})}else{const r=`/onboarding/edit/${i}?code=${n}&realmId=${o}&state=auth_flow`;return B.jsx(nr,{to:r})}return B.jsx(nr,{to:"../../"})},qy=(e,n,o,i)=>e!==""&&n!==""&&o!==""&&i!==null&&i!=="",Dy=tt.div`
|
|
122
|
+
`;return g}function n(a){var t=a[0];return t<"0"||t>"7"?"00"+a:a}function o(a){var t=a.toString(16);return t.length%2?"0"+t:t}function i(a){if(a<=127)return o(a);var t=o(a),r=128+t.length/2;return o(r)+t}return ko}var jo,Af;function Cy(){if(Af)return jo;Af=1;const e=Xm(),n=dg(),o=yg(),i=Sg(),a=Ut(),t=Uv(),r=kh(),s=Ko(),d=Ry(),l=Oy(),f=xy,h=Ay();function c(b){if(this.environment=b.environment,this.clientId=b.clientId,this.clientSecret=b.clientSecret,this.redirectUri=b.redirectUri,this.token=new h(b.token),this.logging=!!(Object.prototype.hasOwnProperty.call(b,"logging")&&b.logging===!0),this.logger=null,this.state=new n,this.logging){const m="./logs";s.existsSync(m)||s.mkdirSync(m),this.logger=t.createLogger({level:"info",format:t.format.combine(t.format.timestamp(),t.format.printf(y=>`${y.timestamp} ${y.level}: ${y.message}`)),transports:[new t.transports.File({filename:r.join(m,"oAuthClient-log.log")})]})}}return c.cacheId="cacheID",c.authorizeEndpoint="https://appcenter.intuit.com/connect/oauth2",c.tokenEndpoint="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer",c.revokeEndpoint="https://developer.api.intuit.com/v2/oauth2/tokens/revoke",c.userinfo_endpoint_production="https://accounts.platform.intuit.com/v1/openid_connect/userinfo",c.userinfo_endpoint_sandbox="https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo",c.migrate_sandbox="https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate",c.migrate_production="https://developer.api.intuit.com/v2/oauth2/tokens/migrate",c.environment={sandbox:"https://sandbox-quickbooks.api.intuit.com/",production:"https://quickbooks.api.intuit.com/"},c.jwks_uri="https://oauth.platform.intuit.com/op/v1/jwks",c.scopes={Accounting:"com.intuit.quickbooks.accounting",Payment:"com.intuit.quickbooks.payment",Payroll:"com.intuit.quickbooks.payroll",TimeTracking:"com.intuit.quickbooks.payroll.timetracking",Benefits:"com.intuit.quickbooks.payroll.benefits",Profile:"profile",Email:"email",Phone:"phone",Address:"address",OpenId:"openid",Intuit_name:"intuit_name"},c.user_agent=`Intuit-OAuthClient-JS_${f.version}_${a.type()}_${a.release()}_${a.platform()}`,c.prototype.setAuthorizeURLs=function(m){if(!m)throw new Error("Provide the custom authorize URL's");return c.authorizeEndpoint=m.authorizeEndpoint,c.tokenEndpoint=m.tokenEndpoint,c.revokeEndpoint=m.revokeEndpoint,this.environment==="sandbox"?c.userinfo_endpoint_sandbox=m.userInfoEndpoint:c.userinfo_endpoint_production=m.userInfoEndpoint,this},c.prototype.authorizeUri=function(m){if(m=m||{},!m.scope)throw new Error("Provide the scopes");const y=`${c.authorizeEndpoint}?${o.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(m.scope)?m.scope.join(" "):m.scope,state:m.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",y),y},c.prototype.createToken=function(m){return new Promise(y=>{if(!m)throw new Error("Provide the Uri");const g=o.parse(m.split("?").reverse()[0]);this.getToken().realmId=g.realmId?g.realmId:"","state"in g&&(this.getToken().state=g.state);const u={};g.code&&(u.grant_type="authorization_code",u.code=g.code,u.redirect_uri=g.redirectUri||this.redirectUri);const _={url:c.tokenEndpoint,body:u,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(_))}).then(y=>{const g=y.json?y:null,u=g&&g.getJson()||y;return this.token.setToken(u),this.log("info","Create Token response is : ",JSON.stringify(g,null,2)),g}).catch(y=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.refresh=function(){return new Promise(m=>{this.validateToken();const y={};y.grant_type="refresh_token",y.refresh_token=this.getToken().refresh_token;const g={url:c.tokenEndpoint,body:y,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(g))}).then(m=>{const y=m.json?m:null,g=y&&y.getJson()||m;return this.token.setToken(g),this.log("info","Refresh Token () response is : ",JSON.stringify(y,null,2)),y}).catch(m=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.refreshUsingToken=function(m){return new Promise(y=>{if(!m)throw new Error("The Refresh token is missing");const g={};g.grant_type="refresh_token",g.refresh_token=m;const u={url:c.tokenEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":l._urlencodedContentType,Accept:l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(u))}).then(y=>{const g=y.json?y:null,u=g&&g.getJson()||y;return this.token.setToken(u),this.log("info","Refresh usingToken () response is : ",JSON.stringify(g,null,2)),g}).catch(y=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.revoke=function(m){return new Promise(y=>{m=m||{};const g={};g.token=m.access_token||m.refresh_token||(this.getToken().isAccessTokenValid()?this.getToken().access_token:this.getToken().refresh_token);const u={url:c.revokeEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,Accept:l._jsonContentType,"Content-Type":l._jsonContentType,"User-Agent":c.user_agent}};y(this.getTokenRequest(u))}).then(y=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getUserInfo=function(){return new Promise(m=>{const y={url:this.environment==="sandbox"?c.userinfo_endpoint_sandbox:c.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(y))}).then(m=>{const y=m.json?m:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(y,null,2)),y}).catch(m=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.makeApiCall=function(m){return new Promise(y=>{m=m||{};const g=m.transport?m.transport:i.createTransport({type:"text"}),u=m.headers&&typeof m.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent},m.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:l._jsonContentType,"User-Agent":c.user_agent}),_={url:m.url,method:m.method||"GET",headers:u,transport:g};m.body&&(_.body=m.body),y(this.getTokenRequest(_))}).then(y=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.validateIdToken=function(m={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||m.id_token,u=g.split("."),_=JSON.parse(e(u[0])),w=JSON.parse(e(u[1]));if(w.iss!=="https://oauth.platform.intuit.com/op/v1"||!w.aud.find(E=>E===this.clientId)||w.exp<Date.now()/1e3)return!1;const v={url:c.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":c.user_agent}};return y(this.getKeyFromJWKsURI(g,_.kid,v))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),!!y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getValidatedIdToken=function(m={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||m.id_token,u=g.split("."),_=JSON.parse(e(u[0])),w=JSON.parse(e(u[1]));if(w.iss!=="https://oauth.platform.intuit.com/op/v1"||!w.aud.find(E=>E===this.clientId)||w.exp<Date.now()/1e3)return!1;const v={url:c.jwks_uri,method:"GET",headers:{Accept:l._jsonContentType,"User-Agent":c.user_agent}};return y(this.getKeyFromJWKsURI(g,_.kid,v))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},c.prototype.getIdTokenComponents=async function(b={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const y=(this.getToken().id_token||b.id_token).split("."),g=JSON.parse(e(y[0])),u=JSON.parse(e(y[1]));if(u.iss!=="https://oauth.platform.intuit.com/op/v1")throw new Error('The issuer is not as mentioned in "issuer"');if(!u.aud.find(_=>_===this.clientId))throw new Error("The aud field in idToken does not contain application's clientId");if(u.exp<Date.now()/1e3)throw new Error("The timestamp has elapsed");return{id_token_header:g,id_token_payload:u}},c.prototype.getKeyFromJWKsURI=function(m,y,g){return new Promise(u=>{u(this.loadResponse(g))}).then(u=>{if(Number(u.status)!==200)throw new Error("Could not reach JWK endpoint");const w=JSON.parse(u.body).keys.find(E=>E.kid===y),v=this.getPublicKey(w.n,w.e);return d.verify(m,v)}).catch(u=>{throw u=this.createError(u),this.log("error","The getKeyFromJWKsURI () threw an exception : ",JSON.stringify(u,null,2)),u})},c.prototype.getPublicKey=function(m,y){return Iy()(m,y)},c.prototype.getTokenRequest=function(m){const y=new l({token:this.token});return new Promise(g=>{g(this.loadResponse(m))}).then(g=>{if(y.processResponse(g),!y.valid())throw new Error("Response has an Error");return y}).catch(g=>{throw g.authResponse||(g=this.createError(g,y)),g})},c.prototype.validateToken=function(){if(!this.token.refreshToken())throw new Error("The Refresh token is missing");if(!this.token.isRefreshTokenValid())throw new Error("The Refresh token is invalid, please Authorize again.")},c.prototype.loadResponse=function(m){return i.get(m).then(y=>y)},c.prototype.loadResponseFromJWKsURI=function(m){return i.get(m).then(y=>y)},c.prototype.createError=function(m,y){return!y||y.body===""?(m.error=y&&y.response.statusText||m.message||"",m.authResponse=y||"",m.intuit_tid=y&&y.headers()&&y.headers().intuit_tid||"",m.originalMessage=m.message||"",m.error_description=y&&y.response.statusText||"",m):(m.authResponse=y,m.originalMessage=m.message,m.error="","error"in y.getJson()?m.error=y.getJson().error:y.response.statusText?m.error=y.response.statusText:m.message&&(m.error=m.message),m.error_description="","error_description"in y.getJson()?m.error_description=y.getJson().error_description:y.response.statusText&&(m.error_description=y.response.statusText),m.intuit_tid=y.headers().intuit_tid,m)},c.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},c.prototype.getToken=function(){return this.token},c.prototype.setToken=function(m){return this.token=new h(m),this.token},c.prototype.authHeader=function(){const m=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(m):et.from(m).toString("base64")},c.prototype.log=function(m,y,g){this.logging&&this.logger.log(m,y+g)},jo=c,jo}var Py=Cy();const mt=bp(Py),rd="project-management.project",en=(()=>{let e,n,o="";return{initiatedCompanyID:o,init:(t,r)=>{n=new mt({clientId:dn.quickbooksKey,clientSecret:"",environment:th,redirectUri:window.location.origin+t}),e=n.authorizeUri({state:r,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile,rd]}),o=r},handleClick:()=>{window.open(e,"_self","noopener")}}})();function ps(e){const o=Go(e,!0).query,i=o.code,a=o.realmId,t=o.state,r=i!=null?decodeURIComponent(i):"",s=a!=null?decodeURIComponent(a):"",d=t!=null?decodeURIComponent(t):"";return{code:r,realmId:s,state:d}}const ky=(e,n,o,i,a)=>e!==""&&n!==""&&o!==""&&i!==null&&i!==""&&a!==null&&a!=="",jy=({code:e,realmId:n,state:o,connectionId:i,signedInuserId:a,tenantId:t,companyId:r,onboardingViewFetchState:s,saveConnectionFetchState:d})=>ky(e,n,o,i,a)===!0&&d!=="In-Progress"&&s==="Completed"&&t!=null&&r!=null,Ly=()=>{const e=Wo(),{code:n,realmId:o,state:i}=ps(e.search),a=Je.getSignedInUser()?.userId??"",t=i==="create-qbo-subscription";if(qy(n,o,i,a))if(t){const r=`/onboarding/${i}?code=${n}&realmId=${o}&state=${i}`;return U.jsx(nr,{to:r})}else{const r=`/onboarding/edit/${i}?code=${n}&realmId=${o}&state=auth_flow`;return U.jsx(nr,{to:r})}return U.jsx(nr,{to:"../../"})},qy=(e,n,o,i)=>e!==""&&n!==""&&o!==""&&i!==null&&i!=="",Ny=tt.div`
|
|
124
123
|
display: flex;
|
|
125
124
|
height: 100vh;
|
|
126
125
|
width: 100%;
|
|
@@ -129,7 +128,7 @@ Found: ${o.toString().split(`
|
|
|
129
128
|
align-items: center;
|
|
130
129
|
background-color: ${e=>e.theme.colors.grey5};
|
|
131
130
|
box-shadow: ${e=>`0px 2px 4px ${e.theme.colors.dropShadowNormal}`};
|
|
132
|
-
`;function
|
|
131
|
+
`;function Dy(e,n){const{address:o,showNavbarWithClose:i,sectionStyles:a,navbarStyles:t}=n;return{showNavbarWithClose:i,addressToEdit:o?.addressToCreate,loadingState:o?.status.fetchState,googleAPIKey:dn.googleMapsAPIKey,sectionStyles:a,navbarStyles:t}}function My(e,n){return{onSubmitHandler:o=>{const i=Uy(o);e(xd({addressType:"company_address",addressToCreate:i})),n.closeDrawerHandler?.()},onCancel:()=>{n.closeDrawerHandler?.()}}}const Fy=Ge(Dy,My)(jp);function By({closeDrawerHandler:e}){const n=Mt(),o=Fe(),i=Wo(),{addressType:a}=ot(),t=cr(),r=Je.getSignedInUser(),s=Se(l=>Td("company_address",l));if(r==null)throw Error("Can't access address page without signing in...");const d=l=>l.trackPageLoaded(s?.newAddressId!=null?Mo.Event.editAddress:Mo.Event.addAddress);return a!=null&&!a.match(/(company_address)$/g)?U.jsx(Xo,{}):U.jsxs(U.Fragment,{children:[U.jsx(rh,{analytics:Ve,onLoad:d}),U.jsx(Ny,{windowSize:t,children:U.jsx(Fy,{location:i,navigate:o,address:s,closeDrawerHandler:e,showNavbarWithClose:!0,navbarStyles:{backgroundColor:n.colors.grey5},sectionStyles:{backgroundColor:n.colors.grey5}})})]})}const Uy=e=>({street:[e.street.addressString,e.suite,e.secondaryInfo],city:e.city,state:e.state,country:e.country.selectedOption??"",countryCode:e.countryCode,postalCode:e.postalCode,latitude:e.street.addressValue?.locationLat,longitude:e.street.addressValue?.locationLng}),Vy={drawerLeftMargin:new at(0,0,240)},$y=({isAddressDrawerOpen:e,closeDrawerHandler:n})=>{const o=Mt(),i=cr(),a=Vy.drawerLeftMargin.valuePx(i),t=()=>{n?.()};return U.jsx(fr,{anchor:"right",open:e,PaperProps:{style:{width:`calc(100% - ${a})`}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.8,cursor:"pointer"}}},onClick:()=>t(),children:U.jsx(Gy,{onClick:r=>r.stopPropagation(),children:U.jsx(By,{closeDrawerHandler:n})})})},Gy=tt(zt)`
|
|
133
132
|
display: flex;
|
|
134
133
|
min-height: 100%;
|
|
135
134
|
flex-direction: column;
|
|
@@ -141,28 +140,28 @@ Found: ${o.toString().split(`
|
|
|
141
140
|
justify-content: center;
|
|
142
141
|
align-items: center;
|
|
143
142
|
background-color: ${e=>e.theme.colors.grey4};
|
|
144
|
-
`,Hy=({companyId:e,isOnboardingCustomerDrawerOpen:n,closeDrawerHandler:o})=>{const i=Fe(),a=Mt(),t=Ze(),{useFeatureGate:r}=Ot(),[s,d]=fe.useState(!1),[l,f]=fe.useState(!1),[h,c]=fe.useState(!1),[b,m]=fe.useState(!1),{isFeatureEnabled:y}=r(mn.isDebitCardFeatureEnabled),g=lr.getLocalizedStrings(),{code:u,realmId:_,state:w}=ps(location.search),v={onOkClick:()=>{d(!1),W()},onCancelClick:()=>{d(!1)}},E=Se(X=>
|
|
143
|
+
`,Hy=({companyId:e,isOnboardingCustomerDrawerOpen:n,closeDrawerHandler:o})=>{const i=Fe(),a=Mt(),t=Ze(),{useFeatureGate:r}=Ot(),[s,d]=fe.useState(!1),[l,f]=fe.useState(!1),[h,c]=fe.useState(!1),[b,m]=fe.useState(!1),{isFeatureEnabled:y}=r(mn.isDebitCardFeatureEnabled),g=lr.getLocalizedStrings(),{code:u,realmId:_,state:w}=ps(location.search),v={onOkClick:()=>{d(!1),W()},onCancelClick:()=>{d(!1)}},E=Se(X=>Ad(X)),{newOnboardedCustomerId:x}=E,O=E.companyView?.company.companyInfo.tenantId,C=E.newOnboardingCustomerLocalData.selectedProducts??[],D=C.includes("zeni_checking")&&!C.includes("bookkeeping"),V=Se(X=>Vf(X)),$=Se(X=>Id(X)),S=Se(X=>X.userState),R=E.companyView?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed===!0,L=E.externalConnections?.accounting[0],q=L?.connectionType,z=L?.connectionName,P=L?.connectionId??"",j=E.customerLocalStoreInitState!=="Completed"||E.onboardingCompletedCompanies.fetchState!=="Completed"||$.fetchState==="In-Progress",k=Je.getSignedInUser();if(k==null)throw Error("Can't access onboarding customer page without signing in...");const F=fe.useCallback(()=>{m(!0),t(bs(!1,!0))},[]),W=()=>{t(Rt({selectedStep:""})),t(Tn()),o()},Z=X=>{t(bs(X)),t(Rt({selectedStep:""}))},B=X=>{X!=null&&i(X==="management"?"../../management":"../")},N=X=>{t(Ld(X))},M=X=>{const K=Zy(X,E);t(jd(K)),f(!0)},G=()=>{document.cookie="pre_board_questionnaire_id= ;path=/;",window.open("/pre-onboard")};return fe.useEffect(()=>{V.fetchState==="Completed"&&t(Cd(y,e))},[e,V.fetchState,S.userByUserId]),fe.useEffect(()=>{O!=null&&R!==!0&&!D&&t(Pd(k.userId,O))},[O,R]),fe.useEffect(()=>{e!=null&&en.initiatedCompanyID!==e&&R!==!0&&en.init("/cockpit/onboarding/auth",e)},[e]),fe.useEffect(()=>{E.sendInviteFetchState.fetchState==="Completed"&&(t(Tn()),o())},[E.sendInviteFetchState.fetchState]),fe.useEffect(()=>{E.customerLocalStoreInitState==="Error"&&i("../../onboarding")},[E.customerLocalStoreInitState]),fe.useEffect(()=>{jy({code:u,realmId:_,state:w,connectionId:P,signedInuserId:k.userId,tenantId:O,companyId:e,onboardingViewFetchState:V.fetchState,saveConnectionFetchState:E.externalConnections?.saveConnectionState})&&O!=null&&(t(kd(O,{connection_type:q??"accounting",connection_name:z??"quickbooks_online",authorization_code:u,realm_id:_,connection_id:P,user_id:k.userId},Go(window.location.origin+"/cockpit/onboarding/auth"),e,k.userId)),i(`/onboarding/edit/${e}`))},[q,z,u,_,w,P,k.userId,E.externalConnections?.saveConnectionState,location.pathname,V.fetchState,O,e]),fe.useEffect(()=>{E.fetchState==="Completed"&&(b===!0?e==null&&x!=null?i(`../../onboarding/edit/${x}`):e!=null&&x==null&&en.handleClick():(t(Tn()),o()))},[E.fetchState,e,b]),fe.useEffect(()=>{E.externalConnections?.fetchState==="Completed"&&b===!0&&x!=null&&en.handleClick()},[E.externalConnections?.fetchState,b,x]),U.jsx(fr,{anchor:"right",open:n,PaperProps:{style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.8,cursor:"pointer"}}},onClose:()=>{l===!0?d(!0):W()},children:U.jsxs(Yy,{children:[s===!0?U.jsx(Lp,{titleComponent:U.jsx(Wy,{children:g.cockpit.onboarding.discardTitle}),descriptionComponent:U.jsx(Jy,{children:g.cockpit.onboarding.discardDescription}),primaryButtonText:g.cockpit.onboarding.delete,secondaryButtonText:g.cockpit.onboarding.cancel,action:v}):null,j?U.jsx(zy,{children:U.jsx(pn,{size:"Large",start:!0})}):U.jsxs(U.Fragment,{children:[U.jsx(qp,{localData:E,analytics:Ve,onCloseClick:W,onCompanyDomainBlurred:N,onSaveClick:Z,onViewClick:B,onOnboardingCustomerDataUpdated:M,onNavigateToPreOnboarding:G,screenType:e!=null?"edit":"create",onQBOConnectClick:F,qboConnectClicked:b}),h===!0?U.jsx($y,{isAddressDrawerOpen:h,closeDrawerHandler:()=>{c(!1)}}):null]})]})})},Zy=(e,n)=>{const o={},{companySection:i,customerSection:a,groupSection:t,qboConnectionSection:r}=e,{newOnboardingCustomerLocalData:s}=n;return s.companyId==null&&(o.companyEmailDomain=i.companyDomain),s.isEmailGroupCreated!==!0&&(o.groupId=t.groupEmail,o.groupName=t.groupName,o.groupDescription=t.groupDescription),o.email=a.email,o.customerName={firstName:a.customerName.firstName,lastName:a.customerName.lastName},o.name=a.name,o.chargebeeId=a.chargebeeId,o.qboRealmId=a.realmId,o.hubSpotId=a.hubSpotId,o.selectedProducts=a.products.selectedOptions.map(d=>qd(d)).filter(d=>d!=null),a.entityType.selectedOption!=null?a.entityType.selectedOption?.value==="Subsidiary"?(o.isSubsidiary=!0,a.company.selectedOption!=null&&(o.parentCompanyId=a.company.selectedOption.value)):o.isSubsidiary=!1:o.isSubsidiary=void 0,r.accountingConnectionCreationMode!=null&&(o.accountingConnectionCreationMode=r.accountingConnectionCreationMode),o},Yy=tt(zt)`
|
|
145
144
|
display: flex;
|
|
146
145
|
min-height: 100%;
|
|
147
146
|
flex-direction: column;
|
|
148
|
-
`,Wy=tt(
|
|
147
|
+
`,Wy=tt(nh.H6Regular)`
|
|
149
148
|
margin-top: ${qt.sp7};
|
|
150
149
|
padding-left: ${qt.sp8};
|
|
151
150
|
padding-right: ${qt.sp8};
|
|
152
151
|
color: ${e=>e.theme.colors.primary};
|
|
153
152
|
word-break: break-word;
|
|
154
|
-
`,Jy=tt(
|
|
153
|
+
`,Jy=tt(nh.LargeRegularSp)`
|
|
155
154
|
color: ${e=>e.theme.colors.hero};
|
|
156
155
|
padding-left: ${qt.sp8};
|
|
157
156
|
padding-right: ${qt.sp8};
|
|
158
157
|
margin-bottom: 30px;
|
|
159
158
|
margin-top: ${qt.sp4};
|
|
160
159
|
white-space: pre-line;
|
|
161
|
-
`,If=(()=>{let e="",n;return{init:(a,t="create-qbo-subscription")=>{n=new mt({clientId:dn.quickbooksKey,clientSecret:"",environment:
|
|
160
|
+
`,If=(()=>{let e="",n;return{init:(a,t="create-qbo-subscription")=>{n=new mt({clientId:dn.quickbooksKey,clientSecret:"",environment:th,redirectUri:`${window.location.origin}${a}`}),e=n.authorizeUri({state:t,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile,rd]})},handleClick:()=>{window.open(e,"_self","noopener")}}})(),Ky=(e,n,o,i)=>e!==""&&n!==""&&o!==""&&i!=null&&i!=="",Xy=({code:e,realmId:n,state:o,signedInuserId:i})=>Ky(e,n,o,i)===!0;function Qy(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Ft(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(Rt({filterText:i}))}}},onboardingPageActions:{onOnboardingStepClicked:(o,i)=>{e(Rt({selectedStep:i})),n.navigate(`../edit/${o}`)},onCancelClicked:()=>{e(Rt({showGoLivePopUp:!1}))},onGoLiveClicked:o=>{e($d(o.companyId,o))},onUpdateCustomerCreationStatus:()=>{e(Vd())},onSendInviteClick:o=>{e(Ud(o))},onColumnSortConfigChanged:(o,i)=>{e(Rt({sortKey:o,sortOrder:i}))},redirectToDashboardOnboarding:o=>{window.open(`/${o}/onboarding`)},onRetryBankAccountConnection:o=>{e(Bd({companyId:o}))},onFilterTextChanged:(o,i)=>{e(Rt({filterText:i}))},onCockpitReloadData:o=>{o==="onboarding"&&(e($f()),e(Gf()))},onQBOConnectClick:()=>{If.init("/cockpit/onboarding/auth","create-qbo-subscription"),If.handleClick()},onScroll:o=>{}}}}function e_(e,n){return{headerData:{selectedTabOption:wt("onboarding")},onboardingPageData:{onboardingView:n.onboardingView,loggedInUser:n.signedInUser,qboConnectionPoolFlag:n.qboConnectionPoolFlag}}}const t_=Ge(e_,Qy)(Np);function tn({isOnboardingCustomerDrawerOpen:e}){const n=Fe(),o=Ze(),i=Bt(),{onboardingCustomerCompanyId:a}=ot(),[t,r]=fe.useState(!1),{useDynamicConfig:s}=Ot(),{configValue:d}=s(Dt.qboConnectionPoolEnablement),{code:l,realmId:f,state:h}=ps(location.search),c=Se(g=>Vf(g)),b=Je.getSignedInUser();if(b==null)throw Error("Can't access onboarding customer page without signing in...");fe.useEffect(()=>{e!=null&&e===!0?r(!0):r(!1)},[e]);const m=Se(g=>g.companyViewState.zeniUsers.fetchState);fe.useEffect(()=>{c.fetchState==="Completed"?o(xt(!1)):(c.fetchState==="Not-Started"||c.fetchState==="Error")&&(o($f()),(m==="Not-Started"||m==="Error")&&o(At()),c.qboConnectionPool.fetchState==="Not-Started"&&o(Gf()))},[c.fetchState]),fe.useEffect(()=>{c.updateStatus.fetchState==="Completed"&&(o(hn(!0)),o(zo(!0)),o(Ho(!0)),o(Nd()),c.uiState.showGoLivePopUp&&o(Rt({showGoLivePopUp:!1})),setTimeout(()=>{o(Dd())},5e3))},[c.updateStatus.fetchState]),fe.useEffect(()=>{Xy({code:l,realmId:f,state:h,signedInuserId:b.userId})&&h==="create-qbo-subscription"&&(o(Md({connection_type:"accounting",connection_name:"quickbooks_online",connection_id:"",authorization_code:l,realm_id:f,user_id:b.userId},Go(window.location.origin+"/cockpit/onboarding/auth"),b.userId)),n("/onboarding"))},[l,f,h,b.userId,location.pathname]);const y=()=>{r(!1),o(Fd()),n("../")};return U.jsxs(U.Fragment,{children:[t===!0?U.jsx(Hy,{isOnboardingCustomerDrawerOpen:t,closeDrawerHandler:y,companyId:a}):null,U.jsx(t_,{initialOpenThreadRequest:i??void 0,onboardingView:c,qboConnectionPoolFlag:Array.isArray(d.userEmailAccessForQBOConnectionPool)&&d.userEmailAccessForQBOConnectionPool.includes(b.userEmail),navigate:n,signedInUser:b})]})}function r_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(tn,{})})}),U.jsx(Te,{path:"/new",element:U.jsx(Pe,{element:U.jsx(tn,{isOnboardingCustomerDrawerOpen:!0})})}),U.jsx(Te,{path:"/edit/:onboardingCustomerCompanyId",element:U.jsx(Pe,{element:U.jsx(tn,{isOnboardingCustomerDrawerOpen:!0})})}),U.jsx(Te,{path:"/auth",element:U.jsx(Pe,{element:U.jsx(Ly,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(tn,{})})})]})}function n_(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Ft(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(Jt({filterText:i}))},onFiltersChange:(o,i)=>{e(Jt({filters:i}))}}},portfolioPageActions:{onColumnSortConfigChanged:(o,i)=>{e(Jt({sortKey:o,sortOrder:i}))},onScroll:o=>{e(Jt({scrollYOffset:o}))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(o,i)=>{e(Jt({filters:i}))},onCockpitReloadData:o=>{o==="portfolio"&&e(zo())}}}}function i_(e,n){return{headerData:{selectedTabOption:wt("portfolio")},portfolioPageData:{portfolioView:n.portfolioView}}}const a_=Ge(i_,n_)(Dp);function Cf(){const e=Fe(),n=Ze(),o=Bt(),i=Se(t=>Gd(t)),a=Se(t=>t.companyViewState.zeniUsers.fetchState);return fe.useEffect(()=>{i.fetchState==="Completed"?n(xt(!1)):(i.fetchState==="Not-Started"||i.fetchState==="Error")&&(n(zo()),(a==="Not-Started"||a==="Error")&&n(At()))},[i.fetchState]),U.jsx(a_,{initialOpenThreadRequest:o??void 0,portfolioView:i,navigate:e})}function o_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Cf,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Cf,{})})})]})}function s_(e,n){const{merchantId:o}=n,i=Zo(e);return{tenantMerchant:o!=null?Hd(e,o):void 0,globalMerchantView:i,analytics:Ve}}function u_(e,n){const{merchantId:o,navigate:i}=n;return{updateCreateGlobalMerchantLocalData:(a,t,r)=>{e(Hf(a,t,r!=null?Yd(r):void 0))},fetchRecommendation:()=>{e(zf("global"))},onSaveClick:()=>{e(Zd(o,"vendor_global_review"))},onBackClick:()=>{i("../vendors")}}}const c_=Ge(s_,u_)(Mp);function l_(){const e=Fe(),n=Ze(),{merchantId:o}=ot(),i=Se(a=>Zo(a).newGlobalMerchantData?.status.fetchState);return fe.useEffect(()=>{i==="Completed"&&(n(zd()),e("../vendors"))},[i]),U.jsx(c_,{merchantId:o,navigate:e})}function f_(e){const n=Wd(e);return{vendorGlobalReviewView:Jd(e),globalMerchantAutoCompleteView:n,analytics:Ve}}function h_(e,n){const{navigate:o}=n;return{onApproveGlobalReview:i=>{e(rp(i))},onRejectGlobalReview:i=>{e(tp(i))},onCreateGlobalMerchant:(i,a,t)=>{a!=null&&(e(Hf(a,null,t)),e(zf("global"))),i!=null?o(`./create/${i}`):o("./create")},onFetchGlobalReviewList:(i,a,t)=>{e(Zf(i,a,t))},onUpdateGlobalReviewUIState:i=>{e(ep(i))},onFetchGlobalMerchantAutoCompleteResults:i=>{e(Qd({searchString:i,globalMerchantType:"vendor"}))},onUpdateSelectedGlobalMerchant:(i,a,t)=>{const r=p_(a);e(Xd({merchantId:i,currentSelection:r,customMerchantId:t}))},onClearGlobalMerchantAutoCompleteResults:()=>{e(Kd())},onBackClick:()=>{o("../../management")}}}const d_=Ge(f_,h_)(Fp);function Lo(){const e=Fe(),n=Ze(),o=Fo("/reconciliation/vendors/create/*")!=null,i=Se(t=>Zo(t));fe.useEffect(()=>{o&&i.fetchState==="Not-Started"&&e("../vendors"),n(Zf(void 0,!1))},[]);const a=t=>t.trackPageLoaded(Mo.Event.vendorGlobalReviewListPage);return U.jsxs(U.Fragment,{children:[U.jsx(rh,{analytics:Ve,onLoad:a}),U.jsx(pr,{isOpen:o,drawerLeftMargin:new at(0,0,300,450),onClose:()=>{i.newGlobalMerchantData!=null&&Ve.trackVendorReviewNewVendorCanceled({reviewSource:"global_review",newRequestedVendorName:i.newGlobalMerchantData.globalMerchantName,tenantName:null,recommendedVendorName:i.recommendedGlobalMerchants[0]?.globalMerchantName??null,recommendedVendorReason:i.recommendedGlobalMerchants[0]?.reason??null}),e("../vendors")},children:U.jsx(m_,{onClick:t=>t.stopPropagation(),children:U.jsx(l_,{})})}),U.jsx(d_,{navigate:e})]})}const p_=e=>e.originalVendor===!0?"originalVendor":e.recommendedFirst===!0?"recommendedFirst":e.recommendedSecond===!0?"recommendedSecond":e.requested===!0?"requested":null,m_=tt(zt)`
|
|
162
161
|
display: flex;
|
|
163
162
|
min-height: 100%;
|
|
164
163
|
flex-direction: column;
|
|
165
|
-
`;function g_(){return
|
|
164
|
+
`;function g_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/vendors",element:U.jsx(Pe,{element:U.jsx(Lo,{})})}),U.jsx(Te,{path:"/vendors/create",element:U.jsx(Pe,{element:U.jsx(Lo,{})})}),U.jsx(Te,{path:"/vendors/create/:merchantId",element:U.jsx(Pe,{element:U.jsx(Lo,{})})})]})}const v_=tt.div`
|
|
166
165
|
display: flex;
|
|
167
166
|
width: 100%;
|
|
168
167
|
height: calc(100vh - 110px);
|
|
@@ -170,11 +169,11 @@ Found: ${o.toString().split(`
|
|
|
170
169
|
justify-content: center;
|
|
171
170
|
align-items: center;
|
|
172
171
|
background-color: ${e=>e.theme.colors.grey4};
|
|
173
|
-
`;function y_(e,n){const{companyId:o,reviewView:i}=n;return{allUsers:i.zeniUsers,companyView:i.companies.find(a=>a.companyId===o)}}function __(e,n){const{companyId:o}=n;return{onRetryBankAccountConnection:()=>{o!=null&&e(Yf({companyId:o}))},onCloseClick:()=>{n.navigate("../")}}}const b_=Ge(y_,__)(
|
|
172
|
+
`;function y_(e,n){const{companyId:o,reviewView:i}=n;return{allUsers:i.zeniUsers,companyView:i.companies.find(a=>a.companyId===o)}}function __(e,n){const{companyId:o}=n;return{onRetryBankAccountConnection:()=>{o!=null&&e(Yf({companyId:o}))},onCloseClick:()=>{n.navigate("../")}}}const b_=Ge(y_,__)(Bp);function w_(){const e=Fe(),{companyId:n}=ot(),o=Se(i=>ur(i));return U.jsx(U.Fragment,{children:o.fetchState==="In-Progress"?U.jsx(v_,{children:U.jsx(pn,{size:"Large",start:!0})}):U.jsx(b_,{companyId:n,reviewView:o,navigate:e})})}function E_(e,n){const{expenseAutomationEnabledCompanies:o,navigate:i}=n;return{headerActions:{onTabChange:a=>{const t=It(a),r=Ft(a);Ve.trackCockpitTabClicked(r),i(`../../${t}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,t)=>{e(xn({filterText:t}))}}},reviewPageActions:{onColumnSortConfigChanged:(a,t)=>{e(xn({sortKey:a,sortOrder:t}))},onTransactionTagClicked:(a,t,r)=>{const s=o.includes(a.companyId);t==="expense"&&s?window.open(`/${a.primaryEmailDomain}/month_end_close_checks/review`):window.open(`/${a.primaryEmailDomain}/transactions/${r}-${t}`)},onReviewVendorTagClicked:a=>window.open(`/${a.primaryEmailDomain}/vendors/review`),onCompanyNameClicked:a=>window.open(`/${a.primaryEmailDomain}/dashboard`),onRetryBankAccountConnection:a=>{e(Yf({companyId:a}))},onUncategorizedAccountsErrorClick:a=>{window.open(`/${a}/accounts/mapping`)},onClickAuditScore:a=>{if(a!=null){const t=`./report/${encodeURIComponent(a)}`;i(t)}},onClickWarningsCount:a=>{if(a!=null){const t=`./warnings/${encodeURIComponent(a)}`;i(t)}},onFilterTextChanged:(a,t)=>{e(xn({filterText:t}))},onCockpitReloadData:a=>{a==="audit"&&e(Nt())},onScroll:a=>{}}}}function S_(e,n){return{headerData:{selectedTabOption:wt("audit")},reviewPageData:{reviewView:n.reviewView,zeniUserFetchState:n.zeniUserFetchState,allUsers:n.reviewView.zeniUsers,isReviewVendorColumnVisible:n.isReviewVendorColumnVisible},analytics:Ve}}const R_=Ge(S_,E_)(Up);function qo(){const e=Fe(),n=Ze(),o=Bt(),i=Fo("/audit/report/*")!=null,a=Fo("/audit/warnings/*")!=null,{useFeatureGate:t}=Ot(),{isFeatureEnabled:r}=t(mn.isReviewTabVendorColumnEnabled),{useDynamicConfig:s}=Ot(),{configValue:d}=s(Dt.expenseAutomationEnablement),l=Se(c=>ur(c)),f=Se(c=>fn(c)),h=Se(c=>c.companyViewState.zeniUsers.fetchState);return fe.useEffect(()=>{l.fetchState==="Completed"?n(xt(!1)):(l.fetchState==="Not-Started"||l.fetchState==="Error")&&(n(Nt()),(h==="Not-Started"||h==="Error")&&n(At()))},[l.fetchState]),fe.useEffect(()=>{l.fetchState==="Completed"&&f.fetchState==="Not-Started"&&n(Vo())},[l.fetchState]),U.jsxs(U.Fragment,{children:[U.jsx(pr,{isOpen:i||a,drawerLeftMargin:i?new at(0,0,0,0):a?new at(0,0,300,650):new at(0,0,300,650),onClose:()=>{i&&n(Nt()),e("../")},children:U.jsx(O_,{onClick:c=>c.stopPropagation(),children:i?U.jsx(uh,{}):a?U.jsx(w_,{}):null})}),U.jsx(R_,{initialOpenThreadRequest:o??void 0,reviewView:l,navigate:e,isReviewVendorColumnVisible:r,zeniUserFetchState:h,expenseAutomationEnabledCompanies:d.expenseAutomationEnabledCompanies!=null&&Array.isArray(d.expenseAutomationEnabledCompanies)?d.expenseAutomationEnabledCompanies:[]})]})}const O_=tt(zt)`
|
|
174
173
|
display: flex;
|
|
175
174
|
min-height: 100%;
|
|
176
175
|
flex-direction: column;
|
|
177
|
-
`;function T_(){return
|
|
176
|
+
`;function T_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/report/:companyId",element:U.jsx(Pe,{element:U.jsx(qo,{})})}),U.jsx(Te,{path:"/warnings/:companyId",element:U.jsx(Pe,{element:U.jsx(qo,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(qo,{})})})]})}function x_(e,n){const o=Wf(e,n.tenantId),i=o.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:i}}function A_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{addPlan:s,invoiceOption:d}=r,{subscriptionPlan:l,recurringAddOns:f,coupon:h}=s,c={subscriptionPlanId:l.selectedOption??"",subscriptionAddOnIds:f.filter(b=>b.selectedOption!=null).map(b=>b.selectedOption),subscriptionCouponIds:h.selectedOption!=null?[h.selectedOption]:[],invoiceImmediately:d.invoicingOption!=null};s.planStartDate!=null&&(c.startDate=nn(s.planStartDate.toString())),e(Jf({tenantId:o,subscriptionData:c}))},onEstimateSuccess:()=>{const r=sh(a.state?.pathnameStackToGoBack,a.pathname);t(`../tenants/${o}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(np(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${i}`)},onResetClick:()=>{e(Yo(o))}}}const I_=Ge(x_,A_)(Vp),C_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return U.jsx(I_,{tenantId:n,companyId:o,location:i,navigate:a})};function P_(e,n){const{companyId:o,tenantId:i}=n,a=ap(e,o,i),t=a.fetchState!=="In-Progress";return{subscriptionDetailView:a,canUpdate:t}}function k_(e,n){const{tenantId:o,location:i,navigate:a}=n;return{onUpdateOrAddPlanClick:t=>{e(Yo(o,t)),e(op()),e(sp()),e(up()),t!=null?a(`${i.pathname}/update`):a(`${i.pathname}/add`)},onCloseClick:()=>{a("../")}}}const j_=Ge(P_,k_)($p),L_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e,t=Ze(),[r,s]=fe.useState(!1),d=Se(l=>l.subscriptionViewState.subscriptionDetailsByCompanyId[o]?.fetchStatus);return fe.useEffect(()=>{!r&&(d==null||d?.fetchState==="Not-Started")&&(s(!0),t(ip(o)))},[r,d,o,t]),fe.useEffect(()=>{r&&d!=null&&d?.fetchState==="Error"&&a("../subscription")},[r,d]),U.jsx(j_,{tenantId:n,companyId:o,location:i,navigate:a})};function q_(e,n){return{subscriptionEstimateData:cp(e,n.tenantId)}}function N_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n,r=()=>{const s=vm(a.state?.pathnameStackToGoBack),d=s.poppedPathname??ym(1);t(d,{state:{pathnameStackToGoBack:s.newStack}})};return{onBackClick:()=>{r()},onCancelClick:()=>{r()},onConfirmClick:()=>{e(lp(o))},onConfirmSuccess:()=>{t(`../tenants/${o}/companies/${i}`)}}}const D_=Ge(q_,N_)(Gp),M_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return U.jsx(D_,{companyId:o,tenantId:n,location:i,navigate:a})};function F_(e,n){const o=Wf(e,n.tenantId),i=o.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:i}}function B_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{updatePlan:s,applyChanges:d}=r,{subscriptionPlan:l,recurringAddOns:f,coupon:h}=s,c={subscriptionPlanId:l.selectedOption??"",subscriptionAddOnIds:f.filter(b=>b.selectedOption!=null).map(b=>b.selectedOption),subscriptionCouponIds:h.selectedOption!=null?[h.selectedOption]:[],invoiceImmediately:!0,applyEndOfTerm:d.changeType==="applyEndOfTerm",shouldProrate:d.shouldProrate};e(Jf({tenantId:o,subscriptionData:c}))},onEstimateSuccess:()=>{const r=sh(a.state?.pathnameStackToGoBack,a.pathname);t(`../tenants/${o}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(fp(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${i}`)},onResetClick:r=>{e(Yo(o,r.subscription.subscription.subscriptionId))}}}const U_=Ge(F_,B_)(zp),V_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return U.jsx(U_,{tenantId:n,companyId:o,location:i,navigate:a})},nd=["add","update","summary"],$_=e=>dp(e,nd),G_=e=>hp(e,nd),z_=()=>{const[e,n]=fe.useState(!0),{tenantId:o,companyId:i,updatePageType:a}=ot(),t=Fe(),r=Se(d=>o!=null?d.subscriptionViewState.subscriptionUpdateViewDataByTenantId[o]:null);if(Je.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return fe.useEffect(()=>{(r==null&&a!=null||G_(a??"")==null)&&t(`../tenants/${o}/companies/${i}`)},[r]),U.jsx(pr,{isOpen:e,onClose:()=>{n(!1),t("../subscription")},children:U.jsx(Z_,{children:U.jsx(H_,{tenantId:o,companyId:i,updatePageType:a!=null?$_(a):void 0})})})},H_=({tenantId:e,companyId:n,updatePageType:o})=>{const i=Fe(),a=Wo(),t={tenantId:e,companyId:n,navigate:i,location:a};if(o==null)return U.jsx(L_,{...t});switch(o){case"update":return U.jsx(V_,{...t});case"add":return U.jsx(C_,{...t});case"summary":return U.jsx(M_,{...t});default:return console.error("Subscription Update Page - Invalid Url"),U.jsx(nr,{to:"/",replace:!0})}},Z_=tt(zt)`
|
|
178
177
|
display: flex;
|
|
179
178
|
min-height: 100%;
|
|
180
|
-
`;function Y_(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Ft(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e($t({filterText:i}))},onFiltersChange:(o,i)=>{e($t({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(o,i)=>{e($t({sortKey:o,sortOrder:i}))},onCollapseToggled:(o,i)=>{e($t({isRowCollapseToggled:{companyId:o,isCollapsed:i}}))},onScroll:o=>{e($t({scrollYOffset:o}))},changeHandlers:(o,i)=>{const a=K_(i);Object.keys(a).length>0&&e($o(o,a))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(o,i)=>{e(
|
|
179
|
+
`;function Y_(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Ft(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e($t({filterText:i}))},onFiltersChange:(o,i)=>{e($t({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(o,i)=>{e($t({sortKey:o,sortOrder:i}))},onCollapseToggled:(o,i)=>{e($t({isRowCollapseToggled:{companyId:o,isCollapsed:i}}))},onScroll:o=>{e($t({scrollYOffset:o}))},changeHandlers:(o,i)=>{const a=K_(i);Object.keys(a).length>0&&e($o(o,a))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(o,i)=>{e(mp({tenantId:i})),n.navigate(`../tenants/${i}/companies/${o}`)},onFiltersChange:(o,i)=>{e($t({filters:i}))},onCockpitReloadData:o=>{o==="subscription"&&e(Ho())}}}}function W_(e,n){return{headerData:{selectedTabOption:wt("subscription")},subscriptionPageData:{loggedInUser:n.signedInUser,subscriptionView:n.subscriptionView}}}const J_=Ge(W_,Y_)(Hp);function No({isDrawerOpen:e}){const n=Fe(),o=Ze(),i=Bt(),a=Se(s=>pp(s)),t=Se(s=>s.companyViewState.zeniUsers.fetchState);fe.useEffect(()=>{a.fetchState==="Completed"?o(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&(o(Ho()),(t==="Not-Started"||t==="Error")&&o(At()))},[a.fetchState]);const r=Je.getSignedInUser();return U.jsxs(U.Fragment,{children:[e===!0?U.jsx(z_,{}):null,U.jsx(J_,{initialOpenThreadRequest:i??void 0,signedInUser:r,subscriptionView:a,navigate:n})]})}const K_=e=>{const{users:n}=e;return n?{users:n}:{}};function X_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(No,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:U.jsx(Pe,{element:U.jsx(No,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(No,{})})})]})}function Q_(e,n){const{navigate:o}=n;return{headerActions:{onTabChange:i=>{const a=It(i);o(`../../${a}`,{replace:!0})}},taskManagerPageActions:{onRowClick:(i,a)=>{window.open(`/${i}/tasks/${a}`)},onCockpitReloadData:i=>{i==="taskManager"&&e(Do(null,"dueDate","descending",!1))},onFetchTaskManagerView:(i,a,t,r,s)=>{e(Do(i,a,t,r,s))}}}}function eb(e,n){return{headerData:{selectedTabOption:wt("taskManager")},isBirdsEyeViewEnabled:n.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:n.companyTaskManagerView}}}const tb=Ge(eb,Q_)(Zp);function Pf(){const e=Fe(),n=Ze(),o=Bt(),{useFeatureGate:i}=Ot(),{isFeatureEnabled:a}=i(mn.isBirdsEyeViewEnabled),t=Se(l=>gp(l)),r=Se(l=>vp(l)),s=Se(l=>l.companyViewState.zeniUsers.fetchState);if(fe.useEffect(()=>{t.fetchState==="Completed"?n(xt(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&(n(Do(null,"dueDate","descending",!1)),(s==="Not-Started"||s==="Error")&&n(At()))},[t.fetchState]),fe.useEffect(()=>{a&&(t.metricsFetchState==="Not-Started"||t.metricsFetchState==="Error")&&n(yp())},[a,t.metricsFetchState]),Je.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");return U.jsx(tb,{companyTaskManagerView:t,isBirdsEyeViewEnabled:a,initialOpenThreadRequest:o,navigate:e,reviewCount:r})}function rb(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Pf,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Pf,{})})})]})}let kf=!1;const nb=Yp(()=>_p(()=>Promise.resolve().then(()=>Gm),void 0));function bb(){const e=Je.getSignedInUser(),n=Mt().mode;return fe.useEffect(()=>{Je.isSignedIn()&&!kf&&e!=null&&(Wp(e,n),kf=!0)},[e]),U.jsxs(gt,{children:[U.jsx(Te,{path:"/ai-accountant/*",element:U.jsx(_m,{})}),U.jsx(Te,{path:"/management/*",element:U.jsx(Km,{})}),U.jsx(Te,{path:"/subscription/*",element:U.jsx(X_,{})}),U.jsx(Te,{path:"/onboarding/*",element:U.jsx(r_,{})}),U.jsx(Te,{path:"/portfolio/*",element:U.jsx(o_,{})}),U.jsx(Te,{path:"/audit/*",element:U.jsx(T_,{})}),U.jsx(Te,{path:"/reconciliation/*",element:U.jsx(g_,{})}),U.jsx(Te,{path:"/health-monitor/*",element:U.jsx(Rm,{})}),U.jsx(Te,{path:"/task-manager/*",element:U.jsx(rb,{})}),U.jsx(Te,{path:"/*",element:U.jsx(nb,{})})]})}export{bb as default};
|