@zeniai/web-cockpit-ui 2.3.18-dev → 2.3.19-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/CreditAgentRoutes-B41gvJ7R.js +4 -0
- package/dist/assets/{Preview-CoW7GSOg.js → Preview-BYgnFtOG.js} +1 -1
- package/dist/assets/{ScreenRoutes-DXQoXLo1.js → ScreenRoutes-BDg2PkDs.js} +55 -55
- package/dist/assets/SignInScreen-CpDAruWS.js +1 -0
- package/dist/assets/{analytics-Cw0dK3zI.js → analytics-C329OWg6.js} +1 -1
- package/dist/assets/{analyticsHelper-DQRIK-oC.js → analyticsHelper-Krs7_qiW.js} +1 -1
- package/dist/assets/{core-BsEgaDVD.js → core-BJCHlT_e.js} +1 -1
- package/dist/assets/{dash.all.min-BRBayjT-.js → dash.all.min-tWIGL5oa.js} +1 -1
- package/dist/assets/{empty-ChLThpDa.js → empty-Cz1XjTbW.js} +1 -1
- package/dist/assets/{empty-C4uKyIq6.js → empty-XCVhBDh2.js} +1 -1
- package/dist/assets/epic-Cyx_0WHZ.js +2 -0
- package/dist/assets/{index-D_VLuzyN.js → index-1v46rAxP.js} +13094 -13308
- package/dist/assets/{index-Dy8ZFlnS.js → index-BeGtWJPn.js} +2 -2
- package/dist/assets/{index-BntsH07t.js → index-CvFORm7J.js} +1 -1
- package/dist/assets/{index-CgghPTKE.js → index-CyC5wU4J.js} +1 -1
- package/dist/assets/{index-Cmwf703u.js → index-D2LYjiyr.js} +1 -1
- package/dist/assets/{index-CzuoICee.js → index-D5llvIT2.js} +1 -1
- package/dist/assets/{index-D0HAl4oQ.js → index-DprRR6xH.js} +1 -1
- package/dist/assets/{lexical-CEqKBNR_.js → lexical-D9wRanJ0.js} +1 -1
- package/dist/assets/{liveblocks-8rYPz9ge.js → liveblocks-DJX-gTdI.js} +1 -1
- package/dist/assets/{lottie-Dz620gTO.js → lottie-DEax3p6V.js} +1 -1
- package/dist/assets/{mui-Bpj9XAFx.js → mui-BXCO2Vj7.js} +1 -1
- package/dist/assets/{react-BiTsrlIR.js → react-C6gx40zi.js} +1 -1
- package/dist/assets/{react-8FAmRsRR.js → react-CbrNn0Uz.js} +1 -1
- package/dist/assets/{react-Dv3CG2e6.js → react-CeyMqm1b.js} +1 -1
- package/dist/assets/{react-C5XJEBAC.js → react-Du6fNSll.js} +1 -1
- package/dist/assets/{react-Rg3b9iKI.js → react-LBi7u4OX.js} +1 -1
- package/dist/assets/{react-CmstI4_T.js → react-UPx4eSLU.js} +1 -1
- package/dist/assets/{react-Crmcqkgg.js → react-tLlYAUbL.js} +2 -2
- package/dist/assets/{react-f3wbvllE.js → react-vL3116WA.js} +1 -1
- package/dist/assets/{recharts-BuNtaqrn.js → recharts-COkLw4xt.js} +1 -1
- package/dist/assets/{sentry-DSO0L9Pb.js → sentry-CMJ-fUIl.js} +1 -1
- package/dist/assets/{url-DxzJT44U.js → url-BB2Im5wN.js} +1 -1
- package/dist/assets/{url-Y7wnCMiG.js → url-cqTeLu5L.js} +1 -1
- package/dist/assets/{utils-CoW6t36z.js → utils-CGQAdtn_.js} +1 -1
- package/dist/assets/zeni-epic-state-DTaajImI.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-CC9KfTC8.js +0 -4
- package/dist/assets/SignInScreen-O6MEDdrb.js +0 -1
- package/dist/assets/epic-DZZzokxj.js +0 -2
- package/dist/assets/zeni-epic-state-oZ7_vXkz.js +0 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-
|
|
2
|
-
import{Sn as qf,So as Df,lQ as xt,f5 as vs,Sp as Dt,fe as an,f3 as Nf,Sq as Jt,fa as sn,Sr as ch,Ss as lh,St as ur,Su as fh,k3 as Mf,lS as Ct,k0 as dh,k7 as Ff,Sv as ys,k9 as hh,ka as ph,Sw as Er,Sx as cr,jy as mh,Sy as pn,Sz as Uo,dj as gh,h6 as Vo,h3 as un,hb as Mt,h9 as vh,SA as Bf,SB as Uf,ko as yh,kl as _h,SC as bh,kz as wh,ku as _s,kr as Eh,kg as Sh,SD as Rh,eN as Oh,dt as Th,m2 as Vf,SE as Ah,be as on,kd as bs,ki as Ih,AI as $f,lR as mn,SF as zf,SG as pt,md as cn,m8 as Gf,kT as $o,SH as xh,mg as Ch,H as et,bm as zo,SI as kh,jv as Ph,SJ as jh,SK as Hf,SL as Lh,z0 as ws,yy as qh,SM as Dh,yE as In,SN as Nh,yG as Mh,SO as Tt,yv as Fh,d7 as Bh,lV as Zf,lW as Wf,lU as Go,lT as Ho,lX as Uh,SP as Vh,z3 as $h,SQ as zh,yM as Gh,yZ as Hh,SR as Zh,yQ as Wh,SS as Yh,ST as Kt,SU as Zo,SV as Jh,SW as Kh,su as Xh,sA as Yf,SX as Jf,j0 as Qh,Rs as Kf,SY as ep,Rm as tp,SZ as rp,S_ as np,sD as ip,S$ as ap,Rx as op,Rl as sp,CF as Xf,T0 as xn,T1 as Qf,NW as Wo,NI as up,NZ as ed,NL as cp,T2 as lp,NQ as fp,NC as dp,NF as hp,T3 as pp,O1 as mp,NT as gp,bp as vp,bd as yp,T4 as _p,T5 as Gt,T6 as bp,T7 as wp,T8 as Ep,kH as No,kD as Sp,kN as Rp,kQ as Es,ba as td}from"./zeni-epic-state-oZ7_vXkz.js";import{j as U}from"./liveblocks-8rYPz9ge.js";import{a as ce,p as ye,d as rd,c as Yo,g as Op}from"./sentry-DSO0L9Pb.js";import{m as wt,j as At,z as He,S as Tp,p as Ap,i as lr,N as Ip,C as Et,R as nd,v as at,a as Fe,h as kt,g as Ft,e as xp,u as Cp,T as kp,I as Pp,b as gn,L as jp,G as fr,c as vn,n as Nt,_ as Lp,x as qp,H as yn,d as Dp,B as Np,f as Cn,P as Mp,k as id,A as Fp,l as ad,o as od,q as Mo,r as Bp,W as Up,F as Vp,s as sd,M as $p,E as zp,t as Gp,w as Hp,V as Zp,y as Wp,D as Yp,J as Jp,K as Kp,O as Xp,Q as Qp,U as em,X as ud}from"./index-D_VLuzyN.js";import{f as tm}from"./analyticsHelper-DQRIK-oC.js";import{i as Be,n as We,g as Se,o as ot,N as ir,k as gt,l as Te,p as cd,h as ze,u as Jo,j as Fo}from"./core-BsEgaDVD.js";import{u as Bt,D as dr,n as tt,S as Zt}from"./mui-Bpj9XAFx.js";import{a as Ze,b as rm,c as nm,d as im,e as Ko,f as am,g as om,h as sm,i as Wt,j as um,k as or,l as _n,m as cm,n as hr,o as lm}from"./utils-CoW6t36z.js";import{r as Xo}from"./empty-C4uKyIq6.js";import{r as pr,a as fm}from"./index-CgghPTKE.js";import{r as dm}from"./index-Cmwf703u.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="47652c81-563c-4a3a-9651-d192a37ca2aa",e._sentryDebugIdIdentifier="sentry-dbid-47652c81-563c-4a3a-9651-d192a37ca2aa")}catch{}})();var kn={},Ss;function bn(){return Ss||(Ss=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var d=o.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var f in d)n(d,f)&&(a[f]=d[f])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var r={arraySet:function(a,o,d,f,v){if(o.subarray&&a.subarray){a.set(o.subarray(d,d+f),v);return}for(var s=0;s<f;s++)a[v+s]=o[d+s]},flattenChunks:function(a){var o,d,f,v,s,l;for(f=0,o=0,d=a.length;o<d;o++)f+=a[o].length;for(l=new Uint8Array(f),v=0,o=0,d=a.length;o<d;o++)s=a[o],l.set(s,v),v+=s.length;return l}},i={arraySet:function(a,o,d,f,v){for(var s=0;s<f;s++)a[v+s]=o[d+s]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(kn)),kn}var ut={},Pt={},Rs;function hm(){if(Rs)return Pt;Rs=1;var e=bn(),t=4,n=0,r=1,i=2;function a(C){for(var ne=C.length;--ne>=0;)C[ne]=0}var o=0,d=1,f=2,v=3,s=258,l=29,c=256,y=c+1+l,h=30,m=19,g=2*y+1,u=15,_=16,E=7,w=256,b=16,x=17,O=18,P=[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],M=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,I=new Array((y+2)*2);a(I);var $=new Array(h*2);a($);var z=new Array(S);a(z);var X=new Array(s-v+1);a(X);var A=new Array(l);a(A);var k=new Array(h);a(k);function j(C,ne,se,fe,Z){this.static_tree=C,this.extra_bits=ne,this.extra_base=se,this.elems=fe,this.max_length=Z,this.has_stree=C&&C.length}var N,H,B;function q(C,ne){this.dyn_tree=C,this.max_code=0,this.stat_desc=ne}function L(C){return C<256?z[C]:z[256+(C>>>7)]}function D(C,ne){C.pending_buf[C.pending++]=ne&255,C.pending_buf[C.pending++]=ne>>>8&255}function F(C,ne,se){C.bi_valid>_-se?(C.bi_buf|=ne<<C.bi_valid&65535,D(C,C.bi_buf),C.bi_buf=ne>>_-C.bi_valid,C.bi_valid+=se-_):(C.bi_buf|=ne<<C.bi_valid&65535,C.bi_valid+=se)}function K(C,ne,se){F(C,se[ne*2],se[ne*2+1])}function J(C,ne){var se=0;do se|=C&1,C>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(C){C.bi_valid===16?(D(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)}function ue(C,ne){var se=ne.dyn_tree,fe=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,R=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,T,G,ee,_e=0;for(T=0;T<=u;T++)C.bl_count[T]=0;for(se[C.heap[C.heap_max]*2+1]=0,p=C.heap_max+1;p<g;p++)te=C.heap[p],T=se[se[te*2+1]*2+1]+1,T>be&&(T=be,_e++),se[te*2+1]=T,!(te>fe)&&(C.bl_count[T]++,G=0,te>=oe&&(G=R[te-oe]),ee=se[te*2],C.opt_len+=ee*(T+G),ie&&(C.static_len+=ee*(Z[te*2+1]+G)));if(_e!==0){do{for(T=be-1;C.bl_count[T]===0;)T--;C.bl_count[T]--,C.bl_count[T+1]+=2,C.bl_count[be]--,_e-=2}while(_e>0);for(T=be;T!==0;T--)for(te=C.bl_count[T];te!==0;)re=C.heap[--p],!(re>fe)&&(se[re*2+1]!==T&&(C.opt_len+=(T-se[re*2+1])*se[re*2],se[re*2+1]=T),te--)}}function ve(C,ne,se){var fe=new Array(u+1),Z=0,ie,R;for(ie=1;ie<=u;ie++)fe[ie]=Z=Z+se[ie-1]<<1;for(R=0;R<=ne;R++){var oe=C[R*2+1];oe!==0&&(C[R*2]=J(fe[oe]++,oe))}}function me(){var C,ne,se,fe,Z,ie=new Array(u+1);for(se=0,fe=0;fe<l-1;fe++)for(A[fe]=se,C=0;C<1<<P[fe];C++)X[se++]=fe;for(X[se-1]=fe,Z=0,fe=0;fe<16;fe++)for(k[fe]=Z,C=0;C<1<<M[fe];C++)z[Z++]=fe;for(Z>>=7;fe<h;fe++)for(k[fe]=Z<<7,C=0;C<1<<M[fe]-7;C++)z[256+Z++]=fe;for(ne=0;ne<=u;ne++)ie[ne]=0;for(C=0;C<=143;)I[C*2+1]=8,C++,ie[8]++;for(;C<=255;)I[C*2+1]=9,C++,ie[9]++;for(;C<=279;)I[C*2+1]=7,C++,ie[7]++;for(;C<=287;)I[C*2+1]=8,C++,ie[8]++;for(ve(I,y+1,ie),C=0;C<h;C++)$[C*2+1]=5,$[C*2]=J(C,5);N=new j(I,P,c+1,y,u),H=new j($,M,0,h,u),B=new j(new Array(0),W,0,m,E)}function we(C){var ne;for(ne=0;ne<y;ne++)C.dyn_ltree[ne*2]=0;for(ne=0;ne<h;ne++)C.dyn_dtree[ne*2]=0;for(ne=0;ne<m;ne++)C.bl_tree[ne*2]=0;C.dyn_ltree[w*2]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function Ce(C){C.bi_valid>8?D(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function Pe(C,ne,se,fe){Ce(C),D(C,se),D(C,~se),e.arraySet(C.pending_buf,C.window,ne,se,C.pending),C.pending+=se}function je(C,ne,se,fe){var Z=ne*2,ie=se*2;return C[Z]<C[ie]||C[Z]===C[ie]&&fe[ne]<=fe[se]}function Ie(C,ne,se){for(var fe=C.heap[se],Z=se<<1;Z<=C.heap_len&&(Z<C.heap_len&&je(ne,C.heap[Z+1],C.heap[Z],C.depth)&&Z++,!je(ne,fe,C.heap[Z],C.depth));)C.heap[se]=C.heap[Z],se=Z,Z<<=1;C.heap[se]=fe}function Ee(C,ne,se){var fe,Z,ie=0,R,oe;if(C.last_lit!==0)do fe=C.pending_buf[C.d_buf+ie*2]<<8|C.pending_buf[C.d_buf+ie*2+1],Z=C.pending_buf[C.l_buf+ie],ie++,fe===0?K(C,Z,ne):(R=X[Z],K(C,R+c+1,ne),oe=P[R],oe!==0&&(Z-=A[R],F(C,Z,oe)),fe--,R=L(fe),K(C,R,se),oe=M[R],oe!==0&&(fe-=k[R],F(C,fe,oe)));while(ie<C.last_lit);K(C,w,ne)}function $e(C,ne){var se=ne.dyn_tree,fe=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,R,oe,be=-1,p;for(C.heap_len=0,C.heap_max=g,R=0;R<ie;R++)se[R*2]!==0?(C.heap[++C.heap_len]=be=R,C.depth[R]=0):se[R*2+1]=0;for(;C.heap_len<2;)p=C.heap[++C.heap_len]=be<2?++be:0,se[p*2]=1,C.depth[p]=0,C.opt_len--,Z&&(C.static_len-=fe[p*2+1]);for(ne.max_code=be,R=C.heap_len>>1;R>=1;R--)Ie(C,se,R);p=ie;do R=C.heap[1],C.heap[1]=C.heap[C.heap_len--],Ie(C,se,1),oe=C.heap[1],C.heap[--C.heap_max]=R,C.heap[--C.heap_max]=oe,se[p*2]=se[R*2]+se[oe*2],C.depth[p]=(C.depth[R]>=C.depth[oe]?C.depth[R]:C.depth[oe])+1,se[R*2+1]=se[oe*2+1]=p,C.heap[1]=p++,Ie(C,se,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1],ue(C,ne),ve(se,be,C.bl_count)}function st(C,ne,se){var fe,Z=-1,ie,R=ne[1],oe=0,be=7,p=4;for(R===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,fe=0;fe<=se;fe++)ie=R,R=ne[(fe+1)*2+1],!(++oe<be&&ie===R)&&(oe<p?C.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&C.bl_tree[ie*2]++,C.bl_tree[b*2]++):oe<=10?C.bl_tree[x*2]++:C.bl_tree[O*2]++,oe=0,Z=ie,R===0?(be=138,p=3):ie===R?(be=6,p=3):(be=7,p=4))}function qe(C,ne,se){var fe,Z=-1,ie,R=ne[1],oe=0,be=7,p=4;for(R===0&&(be=138,p=3),fe=0;fe<=se;fe++)if(ie=R,R=ne[(fe+1)*2+1],!(++oe<be&&ie===R)){if(oe<p)do K(C,ie,C.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(K(C,ie,C.bl_tree),oe--),K(C,b,C.bl_tree),F(C,oe-3,2)):oe<=10?(K(C,x,C.bl_tree),F(C,oe-3,3)):(K(C,O,C.bl_tree),F(C,oe-11,7));oe=0,Z=ie,R===0?(be=138,p=3):ie===R?(be=6,p=3):(be=7,p=4)}}function Ne(C){var ne;for(st(C,C.dyn_ltree,C.l_desc.max_code),st(C,C.dyn_dtree,C.d_desc.max_code),$e(C,C.bl_desc),ne=m-1;ne>=3&&C.bl_tree[V[ne]*2+1]===0;ne--);return C.opt_len+=3*(ne+1)+5+5+4,ne}function Ye(C,ne,se,fe){var Z;for(F(C,ne-257,5),F(C,se-1,5),F(C,fe-4,4),Z=0;Z<fe;Z++)F(C,C.bl_tree[V[Z]*2+1],3);qe(C,C.dyn_ltree,ne-1),qe(C,C.dyn_dtree,se-1)}function Y(C){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&C.dyn_ltree[se*2]!==0)return n;if(C.dyn_ltree[18]!==0||C.dyn_ltree[20]!==0||C.dyn_ltree[26]!==0)return r;for(se=32;se<c;se++)if(C.dyn_ltree[se*2]!==0)return r;return n}var Q=!1;function le(C){Q||(me(),Q=!0),C.l_desc=new q(C.dyn_ltree,N),C.d_desc=new q(C.dyn_dtree,H),C.bl_desc=new q(C.bl_tree,B),C.bi_buf=0,C.bi_valid=0,we(C)}function ge(C,ne,se,fe){F(C,(o<<1)+(fe?1:0),3),Pe(C,ne,se)}function de(C){F(C,d<<1,3),K(C,w,I),ae(C)}function Re(C,ne,se,fe){var Z,ie,R=0;C.level>0?(C.strm.data_type===i&&(C.strm.data_type=Y(C)),$e(C,C.l_desc),$e(C,C.d_desc),R=Ne(C),Z=C.opt_len+3+7>>>3,ie=C.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(C,ne,se,fe):C.strategy===t||ie===Z?(F(C,(d<<1)+(fe?1:0),3),Ee(C,I,$)):(F(C,(f<<1)+(fe?1:0),3),Ye(C,C.l_desc.max_code+1,C.d_desc.max_code+1,R+1),Ee(C,C.dyn_ltree,C.dyn_dtree)),we(C),fe&&Ce(C)}function Oe(C,ne,se){return C.pending_buf[C.d_buf+C.last_lit*2]=ne>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=ne&255,C.pending_buf[C.l_buf+C.last_lit]=se&255,C.last_lit++,ne===0?C.dyn_ltree[se*2]++:(C.matches++,ne--,C.dyn_ltree[(X[se]+c+1)*2]++,C.dyn_dtree[L(ne)*2]++),C.last_lit===C.lit_bufsize-1}return Pt._tr_init=le,Pt._tr_stored_block=ge,Pt._tr_flush_block=Re,Pt._tr_tally=Oe,Pt._tr_align=de,Pt}var Pn,Os;function ld(){if(Os)return Pn;Os=1;function e(t,n,r,i){for(var a=t&65535|0,o=t>>>16&65535|0,d=0;r!==0;){d=r>2e3?2e3:r,r-=d;do a=a+n[i++]|0,o=o+a|0;while(--d);a%=65521,o%=65521}return a|o<<16|0}return Pn=e,Pn}var jn,Ts;function fd(){if(Ts)return jn;Ts=1;function e(){for(var r,i=[],a=0;a<256;a++){r=a;for(var o=0;o<8;o++)r=r&1?3988292384^r>>>1:r>>>1;i[a]=r}return i}var t=e();function n(r,i,a,o){var d=t,f=o+a;r^=-1;for(var v=o;v<f;v++)r=r>>>8^d[(r^i[v])&255];return r^-1}return jn=n,jn}var Ln,As;function pm(){return As||(As=1,Ln={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"}),Ln}var Is;function mm(){if(Is)return ut;Is=1;var e=bn(),t=hm(),n=ld(),r=fd(),i=pm(),a=0,o=1,d=3,f=4,v=5,s=0,l=1,c=-2,y=-3,h=-5,m=-1,g=1,u=2,_=3,E=4,w=0,b=2,x=8,O=9,P=15,M=8,W=29,V=256,S=V+1+W,I=30,$=19,z=2*S+1,X=15,A=3,k=258,j=k+A+1,N=32,H=42,B=69,q=73,L=91,D=103,F=113,K=666,J=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=i[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function Pe(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 Ie(p,te){t._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,T){var G=p.avail_in;return G>T&&(G=T),G===0?0:(p.avail_in-=G,e.arraySet(te,p.input,p.next_in,G,re),p.state.wrap===1?p.adler=n(p.adler,te,G,re):p.state.wrap===2&&(p.adler=r(p.adler,te,G,re)),p.next_in+=G,p.total_in+=G,G)}function qe(p,te){var re=p.max_chain_length,T=p.strstart,G,ee,_e=p.prev_length,he=p.nice_match,pe=p.strstart>p.w_size-j?p.strstart-(p.w_size-j):0,Ae=p.window,vt=p.w_mask,Le=p.prev,xe=p.strstart+k,Ue=Ae[T+_e-1],Je=Ae[T+_e];p.prev_length>=p.good_match&&(re>>=2),he>p.lookahead&&(he=p.lookahead);do if(G=te,!(Ae[G+_e]!==Je||Ae[G+_e-1]!==Ue||Ae[G]!==Ae[T]||Ae[++G]!==Ae[T+1])){T+=2,G++;do;while(Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&T<xe);if(ee=k-(xe-T),T=xe-k,ee>_e){if(p.match_start=te,_e=ee,ee>=he)break;Ue=Ae[T+_e-1],Je=Ae[T+_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,T,G,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-j)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,T=p.hash_size,re=T;do G=p.head[--re],p.head[re]=G>=te?G-te:0;while(--T);T=te,re=T;do G=p.prev[--re],p.prev[re]=G>=te?G-te:0;while(--T);ee+=te}if(p.strm.avail_in===0)break;if(T=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=T,p.lookahead+p.insert>=A)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+A-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<A)););}while(p.lookahead<j&&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===a)return J;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var T=p.block_start+re;if((p.strstart===0||p.strstart>=T)&&(p.lookahead=p.strstart-T,p.strstart=T,Ie(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-j&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ie(p,!1),p.strm.avail_out===0),J)}function Y(p,te){for(var re,T;;){if(p.lookahead<j){if(Ne(p),p.lookahead<j&&te===a)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=A&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-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-j&&(p.match_length=qe(p,re)),p.match_length>=A)if(T=t._tr_tally(p,p.strstart-p.match_start,p.match_length-A),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=A){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-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 T=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(T&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=p.strstart<A-1?p.strstart:A-1,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function Q(p,te){for(var re,T,G;;){if(p.lookahead<j){if(Ne(p),p.lookahead<j&&te===a)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=A&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-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=A-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-j&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===A&&p.strstart-p.match_start>4096)&&(p.match_length=A-1)),p.prev_length>=A&&p.match_length<=p.prev_length){G=p.strstart+p.lookahead-A,T=t._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-A),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=G&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-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=A-1,p.strstart++,T&&(Ie(p,!1),p.strm.avail_out===0))return J}else if(p.match_available){if(T=t._tr_tally(p,0,p.window[p.strstart-1]),T&&Ie(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return J}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(T=t._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<A-1?p.strstart:A-1,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function le(p,te){for(var re,T,G,ee,_e=p.window;;){if(p.lookahead<=k){if(Ne(p),p.lookahead<=k&&te===a)return J;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=A&&p.strstart>0&&(G=p.strstart-1,T=_e[G],T===_e[++G]&&T===_e[++G]&&T===_e[++G])){ee=p.strstart+k;do;while(T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&G<ee);p.match_length=k-(ee-G),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=A?(re=t._tr_tally(p,1,p.match_length-A),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(Ne(p),p.lookahead===0)){if(te===a)return J;break}if(p.match_length=0,re=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function de(p,te,re,T,G){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=T,this.func=G}var Re;Re=[new de(0,0,0,0,Ye),new de(4,4,8,4,Y),new de(4,5,16,8,Y),new de(4,6,32,32,Y),new de(4,4,16,16,Q),new de(8,16,32,32,Q),new de(8,16,128,128,Q),new de(8,32,128,256,Q),new de(32,128,258,1024,Q),new de(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,Pe(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=A-1,p.match_available=0,p.ins_h=0}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=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(z*2),this.dyn_dtree=new e.Buf16((2*I+1)*2),this.bl_tree=new e.Buf16((2*$+1)*2),Pe(this.dyn_ltree),Pe(this.dyn_dtree),Pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(X+1),this.heap=new e.Buf16(2*S+1),Pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),Pe(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=b,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?H:F,p.adler=te.wrap===2?0:1,te.last_flush=a,t._tr_init(te),s)}function se(p){var te=ne(p);return te===s&&Oe(p.state),te}function fe(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,s)}function Z(p,te,re,T,G,ee){if(!p)return c;var _e=1;if(te===m&&(te=6),T<0?(_e=0,T=-T):T>15&&(_e=2,T-=16),G<1||G>O||re!==x||T<8||T>15||te<0||te>9||ee<0||ee>E)return we(p,c);T===8&&(T=9);var he=new C;return p.state=he,he.strm=p,he.wrap=_e,he.gzhead=null,he.w_bits=T,he.w_size=1<<he.w_bits,he.w_mask=he.w_size-1,he.hash_bits=G+7,he.hash_size=1<<he.hash_bits,he.hash_mask=he.hash_size-1,he.hash_shift=~~((he.hash_bits+A-1)/A),he.window=new e.Buf8(he.w_size*2),he.head=new e.Buf16(he.hash_size),he.prev=new e.Buf16(he.w_size),he.lit_bufsize=1<<G+6,he.pending_buf_size=he.lit_bufsize*4,he.pending_buf=new e.Buf8(he.pending_buf_size),he.d_buf=1*he.lit_bufsize,he.l_buf=3*he.lit_bufsize,he.level=te,he.strategy=ee,he.method=re,se(p)}function ie(p,te){return Z(p,te,x,P,M,w)}function R(p,te){var re,T,G,ee;if(!p||!p.state||te>v||te<0)return p?we(p,c):c;if(T=p.state,!p.output||!p.input&&p.avail_in!==0||T.status===K&&te!==f)return we(p,p.avail_out===0?h:c);if(T.strm=p,re=T.last_flush,T.last_flush=te,T.status===H)if(T.wrap===2)p.adler=0,Ee(T,31),Ee(T,139),Ee(T,8),T.gzhead?(Ee(T,(T.gzhead.text?1:0)+(T.gzhead.hcrc?2:0)+(T.gzhead.extra?4:0)+(T.gzhead.name?8:0)+(T.gzhead.comment?16:0)),Ee(T,T.gzhead.time&255),Ee(T,T.gzhead.time>>8&255),Ee(T,T.gzhead.time>>16&255),Ee(T,T.gzhead.time>>24&255),Ee(T,T.level===9?2:T.strategy>=u||T.level<2?4:0),Ee(T,T.gzhead.os&255),T.gzhead.extra&&T.gzhead.extra.length&&(Ee(T,T.gzhead.extra.length&255),Ee(T,T.gzhead.extra.length>>8&255)),T.gzhead.hcrc&&(p.adler=r(p.adler,T.pending_buf,T.pending,0)),T.gzindex=0,T.status=B):(Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,T.level===9?2:T.strategy>=u||T.level<2?4:0),Ee(T,me),T.status=F);else{var _e=x+(T.w_bits-8<<4)<<8,he=-1;T.strategy>=u||T.level<2?he=0:T.level<6?he=1:T.level===6?he=2:he=3,_e|=he<<6,T.strstart!==0&&(_e|=N),_e+=31-_e%31,T.status=F,$e(T,_e),T.strstart!==0&&($e(T,p.adler>>>16),$e(T,p.adler&65535)),p.adler=1}if(T.status===B)if(T.gzhead.extra){for(G=T.pending;T.gzindex<(T.gzhead.extra.length&65535)&&!(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size));)Ee(T,T.gzhead.extra[T.gzindex]&255),T.gzindex++;T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),T.gzindex===T.gzhead.extra.length&&(T.gzindex=0,T.status=q)}else T.status=q;if(T.status===q)if(T.gzhead.name){G=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size)){ee=1;break}T.gzindex<T.gzhead.name.length?ee=T.gzhead.name.charCodeAt(T.gzindex++)&255:ee=0,Ee(T,ee)}while(ee!==0);T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),ee===0&&(T.gzindex=0,T.status=L)}else T.status=L;if(T.status===L)if(T.gzhead.comment){G=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size)){ee=1;break}T.gzindex<T.gzhead.comment.length?ee=T.gzhead.comment.charCodeAt(T.gzindex++)&255:ee=0,Ee(T,ee)}while(ee!==0);T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),ee===0&&(T.status=D)}else T.status=D;if(T.status===D&&(T.gzhead.hcrc?(T.pending+2>T.pending_buf_size&&je(p),T.pending+2<=T.pending_buf_size&&(Ee(T,p.adler&255),Ee(T,p.adler>>8&255),p.adler=0,T.status=F)):T.status=F),T.pending!==0){if(je(p),p.avail_out===0)return T.last_flush=-1,s}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==f)return we(p,h);if(T.status===K&&p.avail_in!==0)return we(p,h);if(p.avail_in!==0||T.lookahead!==0||te!==a&&T.status!==K){var pe=T.strategy===u?ge(T,te):T.strategy===_?le(T,te):Re[T.level].func(T,te);if((pe===ue||pe===ve)&&(T.status=K),pe===J||pe===ue)return p.avail_out===0&&(T.last_flush=-1),s;if(pe===ae&&(te===o?t._tr_align(T):te!==v&&(t._tr_stored_block(T,0,0,!1),te===d&&(Pe(T.head),T.lookahead===0&&(T.strstart=0,T.block_start=0,T.insert=0))),je(p),p.avail_out===0))return T.last_flush=-1,s}return te!==f?s:T.wrap<=0?l:(T.wrap===2?(Ee(T,p.adler&255),Ee(T,p.adler>>8&255),Ee(T,p.adler>>16&255),Ee(T,p.adler>>24&255),Ee(T,p.total_in&255),Ee(T,p.total_in>>8&255),Ee(T,p.total_in>>16&255),Ee(T,p.total_in>>24&255)):($e(T,p.adler>>>16),$e(T,p.adler&65535)),je(p),T.wrap>0&&(T.wrap=-T.wrap),T.pending!==0?s:l)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==H&&te!==B&&te!==q&&te!==L&&te!==D&&te!==F&&te!==K?we(p,c):(p.state=null,te===F?we(p,y):s))}function be(p,te){var re=te.length,T,G,ee,_e,he,pe,Ae,vt;if(!p||!p.state||(T=p.state,_e=T.wrap,_e===2||_e===1&&T.status!==H||T.lookahead))return c;for(_e===1&&(p.adler=n(p.adler,te,re,0)),T.wrap=0,re>=T.w_size&&(_e===0&&(Pe(T.head),T.strstart=0,T.block_start=0,T.insert=0),vt=new e.Buf8(T.w_size),e.arraySet(vt,te,re-T.w_size,T.w_size,0),te=vt,re=T.w_size),he=p.avail_in,pe=p.next_in,Ae=p.input,p.avail_in=re,p.next_in=0,p.input=te,Ne(T);T.lookahead>=A;){G=T.strstart,ee=T.lookahead-(A-1);do T.ins_h=(T.ins_h<<T.hash_shift^T.window[G+A-1])&T.hash_mask,T.prev[G&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=G,G++;while(--ee);T.strstart=G,T.lookahead=A-1,Ne(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=A-1,T.match_available=0,p.next_in=pe,p.input=Ae,p.avail_in=he,T.wrap=_e,s}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=fe,ut.deflate=R,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var qn,xs;function gm(){if(xs)return qn;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 qn=e,qn}var it={},Dn,Cs;function vm(){if(Cs)return Dn;Cs=1;var e=30,t=12;return Dn=function(r,i){var a,o,d,f,v,s,l,c,y,h,m,g,u,_,E,w,b,x,O,P,M,W,V,S,I;a=r.state,o=r.next_in,S=r.input,d=o+(r.avail_in-5),f=r.next_out,I=r.output,v=f-(i-r.avail_out),s=f+(r.avail_out-257),l=a.dmax,c=a.wsize,y=a.whave,h=a.wnext,m=a.window,g=a.hold,u=a.bits,_=a.lencode,E=a.distcode,w=(1<<a.lenbits)-1,b=(1<<a.distbits)-1;e:do{u<15&&(g+=S[o++]<<u,u+=8,g+=S[o++]<<u,u+=8),x=_[g&w];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)I[f++]=x&65535;else if(O&16){P=x&65535,O&=15,O&&(u<O&&(g+=S[o++]<<u,u+=8),P+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[o++]<<u,u+=8,g+=S[o++]<<u,u+=8),x=E[g&b];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(M=x&65535,O&=15,u<O&&(g+=S[o++]<<u,u+=8,u<O&&(g+=S[o++]<<u,u+=8)),M+=g&(1<<O)-1,M>l){r.msg="invalid distance too far back",a.mode=e;break e}if(g>>>=O,u-=O,O=f-v,M>O){if(O=M-O,O>y&&a.sane){r.msg="invalid distance too far back",a.mode=e;break e}if(W=0,V=m,h===0){if(W+=c-O,O<P){P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}}else if(h<O){if(W+=c+h-O,O-=h,O<P){P-=O;do I[f++]=m[W++];while(--O);if(W=0,h<P){O=h,P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}}}else if(W+=h-O,O<P){P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}for(;P>2;)I[f++]=V[W++],I[f++]=V[W++],I[f++]=V[W++],P-=3;P&&(I[f++]=V[W++],P>1&&(I[f++]=V[W++]))}else{W=f-M;do I[f++]=I[W++],I[f++]=I[W++],I[f++]=I[W++],P-=3;while(P>2);P&&(I[f++]=I[W++],P>1&&(I[f++]=I[W++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{r.msg="invalid distance code",a.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){a.mode=t;break e}else{r.msg="invalid literal/length code",a.mode=e;break e}break}}while(o<d&&f<s);P=u>>3,o-=P,u-=P<<3,g&=(1<<u)-1,r.next_in=o,r.next_out=f,r.avail_in=o<d?5+(d-o):5-(o-d),r.avail_out=f<s?257+(s-f):257-(f-s),a.hold=g,a.bits=u},Dn}var Nn,ks;function ym(){if(ks)return Nn;ks=1;var e=bn(),t=15,n=852,r=592,i=0,a=1,o=2,d=[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],f=[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],v=[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],s=[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 Nn=function(c,y,h,m,g,u,_,E){var w=E.bits,b=0,x=0,O=0,P=0,M=0,W=0,V=0,S=0,I=0,$=0,z,X,A,k,j,N=null,H=0,B,q=new e.Buf16(t+1),L=new e.Buf16(t+1),D=null,F=0,K,J,ae;for(b=0;b<=t;b++)q[b]=0;for(x=0;x<m;x++)q[y[h+x]]++;for(M=w,P=t;P>=1&&q[P]===0;P--);if(M>P&&(M=P),P===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<P&&q[O]===0;O++);for(M<O&&(M=O),S=1,b=1;b<=t;b++)if(S<<=1,S-=q[b],S<0)return-1;if(S>0&&(c===i||P!==1))return-1;for(L[1]=0,b=1;b<t;b++)L[b+1]=L[b]+q[b];for(x=0;x<m;x++)y[h+x]!==0&&(_[L[y[h+x]]++]=x);if(c===i?(N=D=_,B=19):c===a?(N=d,H-=257,D=f,F-=257,B=256):(N=v,D=s,B=-1),$=0,x=0,b=O,j=u,W=M,V=0,A=-1,I=1<<M,k=I-1,c===a&&I>n||c===o&&I>r)return 1;for(;;){K=b-V,_[x]<B?(J=0,ae=_[x]):_[x]>B?(J=D[F+_[x]],ae=N[H+_[x]]):(J=96,ae=0),z=1<<b-V,X=1<<W,O=X;do X-=z,g[j+($>>V)+X]=K<<24|J<<16|ae|0;while(X!==0);for(z=1<<b-1;$&z;)z>>=1;if(z!==0?($&=z-1,$+=z):$=0,x++,--q[b]===0){if(b===P)break;b=y[h+_[x]]}if(b>M&&($&k)!==A){for(V===0&&(V=M),j+=O,W=b-V,S=1<<W;W+V<P&&(S-=q[W+V],!(S<=0));)W++,S<<=1;if(I+=1<<W,c===a&&I>n||c===o&&I>r)return 1;A=$&k,g[A]=M<<24|W<<16|j-u|0}}return $!==0&&(g[j+$]=b-V<<24|64<<16|0),E.bits=M,0},Nn}var Ps;function _m(){if(Ps)return it;Ps=1;var e=bn(),t=ld(),n=fd(),r=vm(),i=ym(),a=0,o=1,d=2,f=4,v=5,s=6,l=0,c=1,y=2,h=-2,m=-3,g=-4,u=-5,_=8,E=1,w=2,b=3,x=4,O=5,P=6,M=7,W=8,V=9,S=10,I=11,$=12,z=13,X=14,A=15,k=16,j=17,N=18,H=19,B=20,q=21,L=22,D=23,F=24,K=25,J=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,Pe=852,je=592,Ie=15,Ee=Ie;function $e(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&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(Z){var ie;return!Z||!Z.state?h:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,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(Pe),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,l)}function Ne(Z){var ie;return!Z||!Z.state?h:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function Ye(Z,ie){var R,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(R=0,ie=-ie):(R=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?h:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=R,oe.wbits=ie,Ne(Z))}function Y(Z,ie){var R,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,R=Ye(Z,ie),R!==l&&(Z.state=null),R):h}function Q(Z){return Y(Z,Ee)}var le=!0,ge,de;function Re(Z){if(le){var ie;for(ge=new e.Buf32(512),de=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(i(o,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;i(d,Z.lens,0,32,de,0,Z.work,{bits:5}),le=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=de,Z.distbits=5}function Oe(Z,ie,R,oe){var be,p=Z.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,R-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,R-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,R-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 C(Z,ie){var R,oe,be,p,te,re,T,G,ee,_e,he,pe,Ae,vt,Le=0,xe,Ue,Je,Xe,br,wr,Me,nt,Ge=new e.Buf8(4),yt,dt,gs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return h;R=Z.state,R.mode===$&&(R.mode=z),te=Z.next_out,be=Z.output,T=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=R.hold,ee=R.bits,_e=re,he=T,nt=l;e:for(;;)switch(R.mode){case E:if(R.wrap===0){R.mode=z;break}for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.wrap&2&&G===35615){R.check=0,Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0),G=0,ee=0,R.mode=w;break}if(R.flags=0,R.head&&(R.head.done=!1),!(R.wrap&1)||(((G&255)<<8)+(G>>8))%31){Z.msg="incorrect header check",R.mode=me;break}if((G&15)!==_){Z.msg="unknown compression method",R.mode=me;break}if(G>>>=4,ee-=4,Me=(G&15)+8,R.wbits===0)R.wbits=Me;else if(Me>R.wbits){Z.msg="invalid window size",R.mode=me;break}R.dmax=1<<Me,Z.adler=R.check=1,R.mode=G&512?S:$,G=0,ee=0;break;case w:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.flags=G,(R.flags&255)!==_){Z.msg="unknown compression method",R.mode=me;break}if(R.flags&57344){Z.msg="unknown header flags set",R.mode=me;break}R.head&&(R.head.text=G>>8&1),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0,R.mode=b;case b:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.head&&(R.head.time=G),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,Ge[2]=G>>>16&255,Ge[3]=G>>>24&255,R.check=n(R.check,Ge,4,0)),G=0,ee=0,R.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.head&&(R.head.xflags=G&255,R.head.os=G>>8),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0,R.mode=O;case O:if(R.flags&1024){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.length=G,R.head&&(R.head.extra_len=G),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0}else R.head&&(R.head.extra=null);R.mode=P;case P:if(R.flags&1024&&(pe=R.length,pe>re&&(pe=re),pe&&(R.head&&(Me=R.head.extra_len-R.length,R.head.extra||(R.head.extra=new Array(R.head.extra_len)),e.arraySet(R.head.extra,oe,p,pe,Me)),R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,R.length-=pe),R.length))break e;R.length=0,R.mode=M;case M:if(R.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],R.head&&Me&&R.length<65536&&(R.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else R.head&&(R.head.name=null);R.length=0,R.mode=W;case W:if(R.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],R.head&&Me&&R.length<65536&&(R.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else R.head&&(R.head.comment=null);R.mode=V;case V:if(R.flags&512){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(R.check&65535)){Z.msg="header crc mismatch",R.mode=me;break}G=0,ee=0}R.head&&(R.head.hcrc=R.flags>>9&1,R.head.done=!0),Z.adler=R.check=0,R.mode=$;break;case S:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}Z.adler=R.check=$e(G),G=0,ee=0,R.mode=I;case I:if(R.havedict===0)return Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,y;Z.adler=R.check=1,R.mode=$;case $:if(ie===v||ie===s)break e;case z:if(R.last){G>>>=ee&7,ee-=ee&7,R.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}switch(R.last=G&1,G>>>=1,ee-=1,G&3){case 0:R.mode=X;break;case 1:if(Re(R),R.mode=B,ie===s){G>>>=2,ee-=2;break e}break;case 2:R.mode=j;break;case 3:Z.msg="invalid block type",R.mode=me}G>>>=2,ee-=2;break;case X:for(G>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((G&65535)!==(G>>>16^65535)){Z.msg="invalid stored block lengths",R.mode=me;break}if(R.length=G&65535,G=0,ee=0,R.mode=A,ie===s)break e;case A:R.mode=k;case k:if(pe=R.length,pe){if(pe>re&&(pe=re),pe>T&&(pe=T),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,T-=pe,te+=pe,R.length-=pe;break}R.mode=$;break;case j:for(;ee<14;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.nlen=(G&31)+257,G>>>=5,ee-=5,R.ndist=(G&31)+1,G>>>=5,ee-=5,R.ncode=(G&15)+4,G>>>=4,ee-=4,R.nlen>286||R.ndist>30){Z.msg="too many length or distance symbols",R.mode=me;break}R.have=0,R.mode=N;case N:for(;R.have<R.ncode;){for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.lens[gs[R.have++]]=G&7,G>>>=3,ee-=3}for(;R.have<19;)R.lens[gs[R.have++]]=0;if(R.lencode=R.lendyn,R.lenbits=7,yt={bits:R.lenbits},nt=i(a,R.lens,0,19,R.lencode,0,R.work,yt),R.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",R.mode=me;break}R.have=0,R.mode=H;case H:for(;R.have<R.nlen+R.ndist;){for(;Le=R.lencode[G&(1<<R.lenbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Je<16)G>>>=xe,ee-=xe,R.lens[R.have++]=Je;else{if(Je===16){for(dt=xe+2;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G>>>=xe,ee-=xe,R.have===0){Z.msg="invalid bit length repeat",R.mode=me;break}Me=R.lens[R.have-1],pe=3+(G&3),G>>>=2,ee-=2}else if(Je===17){for(dt=xe+3;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=xe,ee-=xe,Me=0,pe=3+(G&7),G>>>=3,ee-=3}else{for(dt=xe+7;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=xe,ee-=xe,Me=0,pe=11+(G&127),G>>>=7,ee-=7}if(R.have+pe>R.nlen+R.ndist){Z.msg="invalid bit length repeat",R.mode=me;break}for(;pe--;)R.lens[R.have++]=Me}}if(R.mode===me)break;if(R.lens[256]===0){Z.msg="invalid code -- missing end-of-block",R.mode=me;break}if(R.lenbits=9,yt={bits:R.lenbits},nt=i(o,R.lens,0,R.nlen,R.lencode,0,R.work,yt),R.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",R.mode=me;break}if(R.distbits=6,R.distcode=R.distdyn,yt={bits:R.distbits},nt=i(d,R.lens,R.nlen,R.ndist,R.distcode,0,R.work,yt),R.distbits=yt.bits,nt){Z.msg="invalid distances set",R.mode=me;break}if(R.mode=B,ie===s)break e;case B:R.mode=q;case q:if(re>=6&&T>=258){Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,r(Z,he),te=Z.next_out,be=Z.output,T=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=R.hold,ee=R.bits,R.mode===$&&(R.back=-1);break}for(R.back=0;Le=R.lencode[G&(1<<R.lenbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Ue&&(Ue&240)===0){for(Xe=xe,br=Ue,wr=Je;Le=R.lencode[wr+((G&(1<<Xe+br)-1)>>Xe)],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,R.back+=Xe}if(G>>>=xe,ee-=xe,R.back+=xe,R.length=Je,Ue===0){R.mode=J;break}if(Ue&32){R.back=-1,R.mode=$;break}if(Ue&64){Z.msg="invalid literal/length code",R.mode=me;break}R.extra=Ue&15,R.mode=L;case L:if(R.extra){for(dt=R.extra;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.length+=G&(1<<R.extra)-1,G>>>=R.extra,ee-=R.extra,R.back+=R.extra}R.was=R.length,R.mode=D;case D:for(;Le=R.distcode[G&(1<<R.distbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((Ue&240)===0){for(Xe=xe,br=Ue,wr=Je;Le=R.distcode[wr+((G&(1<<Xe+br)-1)>>Xe)],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,R.back+=Xe}if(G>>>=xe,ee-=xe,R.back+=xe,Ue&64){Z.msg="invalid distance code",R.mode=me;break}R.offset=Je,R.extra=Ue&15,R.mode=F;case F:if(R.extra){for(dt=R.extra;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.offset+=G&(1<<R.extra)-1,G>>>=R.extra,ee-=R.extra,R.back+=R.extra}if(R.offset>R.dmax){Z.msg="invalid distance too far back",R.mode=me;break}R.mode=K;case K:if(T===0)break e;if(pe=he-T,R.offset>pe){if(pe=R.offset-pe,pe>R.whave&&R.sane){Z.msg="invalid distance too far back",R.mode=me;break}pe>R.wnext?(pe-=R.wnext,Ae=R.wsize-pe):Ae=R.wnext-pe,pe>R.length&&(pe=R.length),vt=R.window}else vt=be,Ae=te-R.offset,pe=R.length;pe>T&&(pe=T),T-=pe,R.length-=pe;do be[te++]=vt[Ae++];while(--pe);R.length===0&&(R.mode=q);break;case J:if(T===0)break e;be[te++]=R.length,T--,R.mode=q;break;case ae:if(R.wrap){for(;ee<32;){if(re===0)break e;re--,G|=oe[p++]<<ee,ee+=8}if(he-=T,Z.total_out+=he,R.total+=he,he&&(Z.adler=R.check=R.flags?n(R.check,be,he,te-he):t(R.check,be,he,te-he)),he=T,(R.flags?G:$e(G))!==R.check){Z.msg="incorrect data check",R.mode=me;break}G=0,ee=0}R.mode=ue;case ue:if(R.wrap&&R.flags){for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(R.total&4294967295)){Z.msg="incorrect length check",R.mode=me;break}G=0,ee=0}R.mode=ve;case ve:nt=c;break e;case me:nt=m;break e;case we:return g;case Ce:default:return h}return Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,(R.wsize||he!==Z.avail_out&&R.mode<me&&(R.mode<ae||ie!==f))&&Oe(Z,Z.output,Z.next_out,he-Z.avail_out),_e-=Z.avail_in,he-=Z.avail_out,Z.total_in+=_e,Z.total_out+=he,R.total+=he,R.wrap&&he&&(Z.adler=R.check=R.flags?n(R.check,be,he,Z.next_out-he):t(R.check,be,he,Z.next_out-he)),Z.data_type=R.bits+(R.last?64:0)+(R.mode===$?128:0)+(R.mode===B||R.mode===A?256:0),(_e===0&&he===0||ie===f)&&nt===l&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return h;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,l}function se(Z,ie){var R;return!Z||!Z.state||(R=Z.state,(R.wrap&2)===0)?h:(R.head=ie,ie.done=!1,l)}function fe(Z,ie){var R=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==I)?h:oe.mode===I&&(be=1,be=t(be,ie,R,0),be!==oe.check)?m:(p=Oe(Z,ie,R,R),p?(oe.mode=we,g):(oe.havedict=1,l))}return it.inflateReset=Ne,it.inflateReset2=Ye,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=Y,it.inflate=C,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=fe,it.inflateInfo="pako inflate (from Nodeca project)",it}var Mn,js;function bm(){return js||(js=1,Mn={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}),Mn}function wm(){const{useDynamicConfig:e}=wt(),{configValue:t,isDynamicConfigLoading:n}=e(At.creditAgentEnablement),r=He.getSignedInUser()?.userEmail;return{isAllowed:ce.useMemo(()=>{const a=Array.isArray(t?.allowedUserEmails)?t.allowedUserEmails:[];return r!=null&&a.includes(r)},[t,r]),isLoading:n}}function St(){const{isAllowed:e}=wm();return e?Tp:Ap}const Em={overlayWidth:new at(100,100,50)};function Ls(){const e=Be(),t=We(),n=lr(),r=Bt(),i=St(),a=Se(V=>qf(V)),o=a.uiState.selectedCustomerTenantId,d=ce.useMemo(()=>o?a.customers.find(V=>V.tenantId===o):void 0,[a.customers,o]),f=Se(V=>o?Df(V.aiAccountantCustomerState,V.userState,o):[]),v=a.customerViewStateByTenantId[o],s=v?.jobsFetchStatus??{fetchState:"Not-Started"},l=v?.jobsPageToken!=null;ce.useEffect(()=>{a.fetchState==="Completed"?t(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&t(vs())},[a.fetchState]);const c=V=>{const S=kt(V),I=Ft(V);Fe.trackCockpitTabClicked(I),e(`../../${S}`,{replace:!0})},y=(V,S,I,$)=>{t(Dt([V.tenantId])),t(an(S,I,$))},h=(V,S,I)=>{t(an(V,S,I))},m=(V,S)=>{t(Dt(a.unonboardedTenantIds)),t(an("retrain",V,S))},g=V=>{const S=a.selectedTenantIds,I=S.includes(V)?S.filter($=>$!==V):[...S,V];t(Dt(I))},u=V=>{if(V.length===0)return;const S=a.selectedTenantIds,I=new Set(S);if(V.every(z=>I.has(z))){const z=new Set(V);t(Dt(S.filter(X=>!z.has(X))))}else{const z=Array.from(new Set([...S,...V]));t(Dt(z))}},_=()=>{t(Dt([]))},E=V=>{t(Nf(V.companyId,V.tenantId))},w=V=>{V==="aiAccountant"&&t(vs())},b=(V,S)=>{t(Jt({sortKey:V,sortOrder:S}))},x=V=>{t(Jt({selectedCustomerTenantId:V.tenantId})),t(sn(V.tenantId))},O=()=>{t(Jt({selectedCustomerTenantId:""}))},P=V=>{t(Jt({filterText:V}))},M=(V,S)=>{t(Jt({filters:S}))},W=()=>{o&&t(sn(o,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(Ip,{headerData:{allTabOptions:i,selectedTabOption:Et("aiAccountant")},headerActions:{onTabChange:c},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:y,onBulkAction:h,onCancelOnboarding:E,onClearSelection:_,onCockpitReloadData:w,onColumnSortConfigChanged:b,onCustomerSelected:x,onEvaluateAll:m,onFilterTextChanged:P,onFiltersChange:M,onToggleAllVisible:u,onToggleTenantSelection:g}}),U.jsx(dr,{anchor:"right",open:d!=null,PaperProps:{style:{width:Em.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:O,children:d!=null&&U.jsx(nd,{customer:d,hasMoreJobs:l,jobs:f,jobsFetchStatus:s,onAction:y,onCancelOnboarding:E,onClose:O,onLoadMoreJobs:W})})]})}function Sm(){const{tenantId:e=""}=ot(),t=Be(),n=We(),r=Se(c=>ch(c.aiAccountantCustomerState,c.userState)),i=Se(c=>qf(c)),a=r.find(c=>c.tenantId===e),o=i.customerViewStateByTenantId[e],d=Se(c=>Df(c.aiAccountantCustomerState,c.userState,e));if(ce.useEffect(()=>{n(sn(e))},[e,n]),a==null)return null;const f=(c,y,h,m)=>{n(Dt([c.tenantId])),n(an(y,h,m))},v=c=>{n(Nf(c.companyId,c.tenantId))},s=()=>{t("../")},l=()=>{n(sn(e,!0))};return U.jsx(nd,{customer:a,hasMoreJobs:o?.jobsPageToken!=null,jobs:d,jobsFetchStatus:o?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:f,onCancelOnboarding:v,onClose:s,onLoadMoreJobs:l})}const dd=(e,t)=>{const n=[...e??[]];return n.push(t),n},Rm=e=>{const t=[...e??[]];return{poppedPathname:t.pop(),newStack:t}},Om=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},ke=({state:e,element:t})=>He.isSignedIn()===!0?U.jsx(U.Fragment,{children:t}):U.jsx(ir,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Tm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Ls,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(ke,{element:U.jsx(Sm,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Ls,{})})})]})}const Ut=()=>{const[e,t]=cd(),[n,r]=ce.useState(),i=ce.useRef(!1);return ce.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const o=xp(e);o!=null&&r(o);const d=new URLSearchParams(e);d.delete("thread_id"),d.delete("entity_type"),d.delete("company_id"),t(d,{replace:!0}),i.current=!0},[e,t]),n},Am={overlayWidth:new at(100,100,50)},{common:{strings:qs}}=fr.getLocalizedStrings();function Im(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Er({uiState:{filterText:r}}))},onFiltersChange:(n,r)=>{r.categories!=null&&r.categoryCombinationOperator!=null&&Fe.trackHealthMonitorFiltersApplied({filterSelection:{condition:r.categories.map(i=>i.matchingOperator).join(qs.comma),logic:r.categoryCombinationOperator,parameter:r.categories.map(i=>i.field).join(qs.comma)}}),e(Er({uiState:{filters:r}}))}}},healthPageActions:{onRowClick:n=>{e(Ff(n))},onColumnSortConfigChanged:(n,r)=>{e(Er({uiState:{sortKey:n,sortOrder:r}}))},onCockpitReloadData:n=>{n==="healthMonitor"&&e(Mf())},onFiltersChange:n=>{e(Er({uiState:{filters:n}}))}}}}function xm(e,t){return{healthPageData:{healthView:t.healthView,managementView:t.managementView,mixpanelUrl:t.mixpanelHMUrl}}}const Cm=ze(xm,Im)(jp);function Fn({isDrawerOpen:e}){const t=Be(),n=We(),r=Bt(),i=lr(),{companyId:a}=ot(),[o,d]=cd(),[f,v]=ce.useState(!1),s=Ut(),l=St(),c=Se(b=>lh(b)),y=Se(b=>ur(b)),{additionalChurnFactors:h}=Se(b=>fh(b)),{selectedCompanyDetail:m,selectedCompanyId:g,localFormDataAndStatusByCompanyId:u}=c,_=Se(b=>b.companyViewState.zeniUsers.fetchState),E=Se(b=>b.companyHealthMetricConfigViewState);if(ce.useEffect(()=>{const b=x=>x==="Not-Started"||x==="Error";c.fetchState==="Completed"?n(xt(!1)):b(c.fetchState)&&(n(Mf()),b(_)&&n(Ct()),b(E.fetchState)&&n(dh()))},[c.fetchState,E.fetchState]),ce.useEffect(()=>{a!=null&&c.fetchState==="Completed"&&o.has("utm_source")===!0&&(n(Ff(a)),m!=null&&(Cp(),Fe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),v(!0),o.delete("utm_source"),d(o)))},[c.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),He.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||g!=null&&m!=null?U.jsx(dr,{anchor:"right",open:g!=null,PaperProps:{style:{width:Am.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>n(ys()),children:U.jsx(kp,{roomId:`cockpit_${g}`,autoConnect:!0,children:U.jsx(Pp,{onSaveClick:()=>{g!=null&&n(ph(g))},onSaveChangesToLocalStore:b=>{c.selectedCompanyId!=null&&n(hh({companyId:c.selectedCompanyId,updatedLocalData:b}))},localData:u?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>n(ys()),analytics:Fe,urlSource:f,additionalChurnFactorsOptions:h})})}):null,U.jsx(Cm,{headerData:{allTabOptions:l,selectedTabOption:Et("healthMonitor")},initialOpenThreadRequest:s??void 0,healthView:c,managementView:y,navigate:t,mixpanelHMUrl:gn.mixpanelHMUrl})]})}function km(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(ke,{element:U.jsx(Fn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Fn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Fn,{})})})]})}const Pm={drawerLeftMargin:new at(0,0,240)};function mr(e){const{isOpen:t,drawerLeftMargin:n,children:r,onClose:i}=e,a=lr(),o=n?.valuePx(a)??Pm.drawerLeftMargin.valuePx(a),d=Bt();return U.jsx(dr,{anchor:"right",open:t,PaperProps:{style:{width:`calc(100% - ${o})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:r})}const jm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(Lm,{children:U.jsx(vn,{size:"ExtraLarge",start:!0})}):null,Lm=tt.div`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-B41gvJ7R.js","assets/liveblocks-DJX-gTdI.js","assets/sentry-CMJ-fUIl.js","assets/core-BJCHlT_e.js","assets/recharts-COkLw4xt.js","assets/zeni-epic-state-DTaajImI.js","assets/index-1v46rAxP.js","assets/mui-BXCO2Vj7.js","assets/analytics-C329OWg6.js","assets/lottie-DEax3p6V.js","assets/lexical-D9wRanJ0.js","assets/utils-CGQAdtn_.js","assets/index-Bd7ri422.css","assets/analyticsHelper-Krs7_qiW.js","assets/empty-XCVhBDh2.js","assets/index-CyC5wU4J.js","assets/url-cqTeLu5L.js","assets/index-D2LYjiyr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{S9 as qf,Sa as Df,lG as xt,f3 as vs,Sb as Dt,fc as an,f1 as Nf,Sc as Jt,f8 as sn,Sd as ch,Se as lh,Sf as ur,Sg as fh,jZ as Mf,lI as Ct,jW as dh,k1 as Ff,Sh as ys,k3 as hh,k4 as ph,Si as Sr,Sj as cr,js as mh,Sk as pn,Sl as Uo,dj as gh,h0 as Vo,gZ as un,h5 as Mt,h3 as vh,Sm as Bf,Sn as Uf,ki as yh,kf as _h,So as bh,kt as wh,ko as _s,kl as Sh,ka as Eh,Sp as Rh,eL as Oh,dr as Th,lU as Vf,Sq as Ah,be as on,k7 as bs,kc as Ih,Ax as $f,lH as mn,Sr as zf,Ss as pt,m3 as cn,l_ as Gf,kN as $o,St as xh,m6 as Ch,H as et,bm as zo,Su as kh,jp as Ph,Sv as jh,Sw as Hf,Sx as Lh,yR as ws,yn as qh,Sy as Dh,yt as In,Sz as Nh,yv as Mh,SA as Tt,yk as Fh,d7 as Bh,lL as Zf,lM as Wf,lK as Go,lJ as Ho,lN as Uh,SB as Vh,yU as $h,SC as zh,yB as Gh,yO as Hh,SD as Zh,yF as Wh,SE as Yh,SF as Kt,SG as Zo,SH as Jh,SI as Kh,sj as Xh,sp as Yf,SJ as Jf,iW as Qh,Re as Kf,SK as ep,R8 as tp,SL as rp,SM as np,ss as ip,SN as ap,Rj as op,R7 as sp,Cu as Xf,SO as xn,SP as Qf,NJ as Wo,Nv as up,NM as ed,Ny as cp,SQ as lp,ND as fp,Np as dp,Ns as hp,SR as pp,NQ as mp,NG as gp,bp as vp,bd as yp,SS as _p,ST as Gt,SU as bp,SV as wp,SW as Sp,kB as No,kx as Ep,kH as Rp,kK as Ss,ba as td}from"./zeni-epic-state-DTaajImI.js";import{j as U}from"./liveblocks-DJX-gTdI.js";import{a as ce,p as ye,d as rd,c as Yo,g as Op}from"./sentry-CMJ-fUIl.js";import{m as wt,j as At,z as He,B as Tp,a as Ap,o as lr,X as Ip,$ as St,J as nd,v as at,b as Fe,h as kt,g as Ft,f as xp,u as Cp,U as kp,K as Pp,c as gn,H as jp,G as fr,d as vn,n as Nt,r as Lp,D as qp,_ as yn,t as Dp,e as Np,i as Cn,Z as Mp,V as id,O as Fp,k as ad,l as od,p as Mo,q as Bp,s as Up,w as Vp,R as sd,x as $p,Q as zp,y as Gp,A as Hp,C as Zp,E as Wp,F as Yp,N as Jp,I as Kp,Y as Xp,L as Qp,M as em,P as ud}from"./index-1v46rAxP.js";import{f as tm}from"./analyticsHelper-Krs7_qiW.js";import{i as Be,n as We,g as Ee,o as ot,N as ir,k as gt,l as Te,p as cd,h as ze,u as Jo,j as Fo}from"./core-BJCHlT_e.js";import{u as Bt,D as dr,n as tt,S as Zt}from"./mui-BXCO2Vj7.js";import{a as Ze,b as rm,c as nm,d as im,e as Ko,f as am,g as om,h as sm,i as Wt,j as um,k as or,l as _n,m as cm,n as hr,o as lm}from"./utils-CGQAdtn_.js";import{r as Xo}from"./empty-XCVhBDh2.js";import{r as pr,a as fm}from"./index-CyC5wU4J.js";import{r as dm}from"./index-D2LYjiyr.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a8b97f4c-ad82-4fba-8f84-e00fc39d78da",e._sentryDebugIdIdentifier="sentry-dbid-a8b97f4c-ad82-4fba-8f84-e00fc39d78da")}catch{}})();var kn={},Es;function bn(){return Es||(Es=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var d=o.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var f in d)n(d,f)&&(a[f]=d[f])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var r={arraySet:function(a,o,d,f,v){if(o.subarray&&a.subarray){a.set(o.subarray(d,d+f),v);return}for(var s=0;s<f;s++)a[v+s]=o[d+s]},flattenChunks:function(a){var o,d,f,v,s,l;for(f=0,o=0,d=a.length;o<d;o++)f+=a[o].length;for(l=new Uint8Array(f),v=0,o=0,d=a.length;o<d;o++)s=a[o],l.set(s,v),v+=s.length;return l}},i={arraySet:function(a,o,d,f,v){for(var s=0;s<f;s++)a[v+s]=o[d+s]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(kn)),kn}var ut={},Pt={},Rs;function hm(){if(Rs)return Pt;Rs=1;var e=bn(),t=4,n=0,r=1,i=2;function a(C){for(var ne=C.length;--ne>=0;)C[ne]=0}var o=0,d=1,f=2,v=3,s=258,l=29,c=256,y=c+1+l,h=30,m=19,g=2*y+1,u=15,_=16,S=7,w=256,b=16,x=17,O=18,P=[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],M=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=512,I=new Array((y+2)*2);a(I);var $=new Array(h*2);a($);var z=new Array(E);a(z);var X=new Array(s-v+1);a(X);var A=new Array(l);a(A);var k=new Array(h);a(k);function j(C,ne,se,fe,Z){this.static_tree=C,this.extra_bits=ne,this.extra_base=se,this.elems=fe,this.max_length=Z,this.has_stree=C&&C.length}var N,H,B;function q(C,ne){this.dyn_tree=C,this.max_code=0,this.stat_desc=ne}function L(C){return C<256?z[C]:z[256+(C>>>7)]}function D(C,ne){C.pending_buf[C.pending++]=ne&255,C.pending_buf[C.pending++]=ne>>>8&255}function F(C,ne,se){C.bi_valid>_-se?(C.bi_buf|=ne<<C.bi_valid&65535,D(C,C.bi_buf),C.bi_buf=ne>>_-C.bi_valid,C.bi_valid+=se-_):(C.bi_buf|=ne<<C.bi_valid&65535,C.bi_valid+=se)}function K(C,ne,se){F(C,se[ne*2],se[ne*2+1])}function J(C,ne){var se=0;do se|=C&1,C>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(C){C.bi_valid===16?(D(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)}function ue(C,ne){var se=ne.dyn_tree,fe=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,R=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,T,G,ee,_e=0;for(T=0;T<=u;T++)C.bl_count[T]=0;for(se[C.heap[C.heap_max]*2+1]=0,p=C.heap_max+1;p<g;p++)te=C.heap[p],T=se[se[te*2+1]*2+1]+1,T>be&&(T=be,_e++),se[te*2+1]=T,!(te>fe)&&(C.bl_count[T]++,G=0,te>=oe&&(G=R[te-oe]),ee=se[te*2],C.opt_len+=ee*(T+G),ie&&(C.static_len+=ee*(Z[te*2+1]+G)));if(_e!==0){do{for(T=be-1;C.bl_count[T]===0;)T--;C.bl_count[T]--,C.bl_count[T+1]+=2,C.bl_count[be]--,_e-=2}while(_e>0);for(T=be;T!==0;T--)for(te=C.bl_count[T];te!==0;)re=C.heap[--p],!(re>fe)&&(se[re*2+1]!==T&&(C.opt_len+=(T-se[re*2+1])*se[re*2],se[re*2+1]=T),te--)}}function ve(C,ne,se){var fe=new Array(u+1),Z=0,ie,R;for(ie=1;ie<=u;ie++)fe[ie]=Z=Z+se[ie-1]<<1;for(R=0;R<=ne;R++){var oe=C[R*2+1];oe!==0&&(C[R*2]=J(fe[oe]++,oe))}}function me(){var C,ne,se,fe,Z,ie=new Array(u+1);for(se=0,fe=0;fe<l-1;fe++)for(A[fe]=se,C=0;C<1<<P[fe];C++)X[se++]=fe;for(X[se-1]=fe,Z=0,fe=0;fe<16;fe++)for(k[fe]=Z,C=0;C<1<<M[fe];C++)z[Z++]=fe;for(Z>>=7;fe<h;fe++)for(k[fe]=Z<<7,C=0;C<1<<M[fe]-7;C++)z[256+Z++]=fe;for(ne=0;ne<=u;ne++)ie[ne]=0;for(C=0;C<=143;)I[C*2+1]=8,C++,ie[8]++;for(;C<=255;)I[C*2+1]=9,C++,ie[9]++;for(;C<=279;)I[C*2+1]=7,C++,ie[7]++;for(;C<=287;)I[C*2+1]=8,C++,ie[8]++;for(ve(I,y+1,ie),C=0;C<h;C++)$[C*2+1]=5,$[C*2]=J(C,5);N=new j(I,P,c+1,y,u),H=new j($,M,0,h,u),B=new j(new Array(0),W,0,m,S)}function we(C){var ne;for(ne=0;ne<y;ne++)C.dyn_ltree[ne*2]=0;for(ne=0;ne<h;ne++)C.dyn_dtree[ne*2]=0;for(ne=0;ne<m;ne++)C.bl_tree[ne*2]=0;C.dyn_ltree[w*2]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function Ce(C){C.bi_valid>8?D(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function Pe(C,ne,se,fe){Ce(C),D(C,se),D(C,~se),e.arraySet(C.pending_buf,C.window,ne,se,C.pending),C.pending+=se}function je(C,ne,se,fe){var Z=ne*2,ie=se*2;return C[Z]<C[ie]||C[Z]===C[ie]&&fe[ne]<=fe[se]}function Ie(C,ne,se){for(var fe=C.heap[se],Z=se<<1;Z<=C.heap_len&&(Z<C.heap_len&&je(ne,C.heap[Z+1],C.heap[Z],C.depth)&&Z++,!je(ne,fe,C.heap[Z],C.depth));)C.heap[se]=C.heap[Z],se=Z,Z<<=1;C.heap[se]=fe}function Se(C,ne,se){var fe,Z,ie=0,R,oe;if(C.last_lit!==0)do fe=C.pending_buf[C.d_buf+ie*2]<<8|C.pending_buf[C.d_buf+ie*2+1],Z=C.pending_buf[C.l_buf+ie],ie++,fe===0?K(C,Z,ne):(R=X[Z],K(C,R+c+1,ne),oe=P[R],oe!==0&&(Z-=A[R],F(C,Z,oe)),fe--,R=L(fe),K(C,R,se),oe=M[R],oe!==0&&(fe-=k[R],F(C,fe,oe)));while(ie<C.last_lit);K(C,w,ne)}function $e(C,ne){var se=ne.dyn_tree,fe=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,R,oe,be=-1,p;for(C.heap_len=0,C.heap_max=g,R=0;R<ie;R++)se[R*2]!==0?(C.heap[++C.heap_len]=be=R,C.depth[R]=0):se[R*2+1]=0;for(;C.heap_len<2;)p=C.heap[++C.heap_len]=be<2?++be:0,se[p*2]=1,C.depth[p]=0,C.opt_len--,Z&&(C.static_len-=fe[p*2+1]);for(ne.max_code=be,R=C.heap_len>>1;R>=1;R--)Ie(C,se,R);p=ie;do R=C.heap[1],C.heap[1]=C.heap[C.heap_len--],Ie(C,se,1),oe=C.heap[1],C.heap[--C.heap_max]=R,C.heap[--C.heap_max]=oe,se[p*2]=se[R*2]+se[oe*2],C.depth[p]=(C.depth[R]>=C.depth[oe]?C.depth[R]:C.depth[oe])+1,se[R*2+1]=se[oe*2+1]=p,C.heap[1]=p++,Ie(C,se,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1],ue(C,ne),ve(se,be,C.bl_count)}function st(C,ne,se){var fe,Z=-1,ie,R=ne[1],oe=0,be=7,p=4;for(R===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,fe=0;fe<=se;fe++)ie=R,R=ne[(fe+1)*2+1],!(++oe<be&&ie===R)&&(oe<p?C.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&C.bl_tree[ie*2]++,C.bl_tree[b*2]++):oe<=10?C.bl_tree[x*2]++:C.bl_tree[O*2]++,oe=0,Z=ie,R===0?(be=138,p=3):ie===R?(be=6,p=3):(be=7,p=4))}function qe(C,ne,se){var fe,Z=-1,ie,R=ne[1],oe=0,be=7,p=4;for(R===0&&(be=138,p=3),fe=0;fe<=se;fe++)if(ie=R,R=ne[(fe+1)*2+1],!(++oe<be&&ie===R)){if(oe<p)do K(C,ie,C.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(K(C,ie,C.bl_tree),oe--),K(C,b,C.bl_tree),F(C,oe-3,2)):oe<=10?(K(C,x,C.bl_tree),F(C,oe-3,3)):(K(C,O,C.bl_tree),F(C,oe-11,7));oe=0,Z=ie,R===0?(be=138,p=3):ie===R?(be=6,p=3):(be=7,p=4)}}function Ne(C){var ne;for(st(C,C.dyn_ltree,C.l_desc.max_code),st(C,C.dyn_dtree,C.d_desc.max_code),$e(C,C.bl_desc),ne=m-1;ne>=3&&C.bl_tree[V[ne]*2+1]===0;ne--);return C.opt_len+=3*(ne+1)+5+5+4,ne}function Ye(C,ne,se,fe){var Z;for(F(C,ne-257,5),F(C,se-1,5),F(C,fe-4,4),Z=0;Z<fe;Z++)F(C,C.bl_tree[V[Z]*2+1],3);qe(C,C.dyn_ltree,ne-1),qe(C,C.dyn_dtree,se-1)}function Y(C){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&C.dyn_ltree[se*2]!==0)return n;if(C.dyn_ltree[18]!==0||C.dyn_ltree[20]!==0||C.dyn_ltree[26]!==0)return r;for(se=32;se<c;se++)if(C.dyn_ltree[se*2]!==0)return r;return n}var Q=!1;function le(C){Q||(me(),Q=!0),C.l_desc=new q(C.dyn_ltree,N),C.d_desc=new q(C.dyn_dtree,H),C.bl_desc=new q(C.bl_tree,B),C.bi_buf=0,C.bi_valid=0,we(C)}function ge(C,ne,se,fe){F(C,(o<<1)+(fe?1:0),3),Pe(C,ne,se)}function de(C){F(C,d<<1,3),K(C,w,I),ae(C)}function Re(C,ne,se,fe){var Z,ie,R=0;C.level>0?(C.strm.data_type===i&&(C.strm.data_type=Y(C)),$e(C,C.l_desc),$e(C,C.d_desc),R=Ne(C),Z=C.opt_len+3+7>>>3,ie=C.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(C,ne,se,fe):C.strategy===t||ie===Z?(F(C,(d<<1)+(fe?1:0),3),Se(C,I,$)):(F(C,(f<<1)+(fe?1:0),3),Ye(C,C.l_desc.max_code+1,C.d_desc.max_code+1,R+1),Se(C,C.dyn_ltree,C.dyn_dtree)),we(C),fe&&Ce(C)}function Oe(C,ne,se){return C.pending_buf[C.d_buf+C.last_lit*2]=ne>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=ne&255,C.pending_buf[C.l_buf+C.last_lit]=se&255,C.last_lit++,ne===0?C.dyn_ltree[se*2]++:(C.matches++,ne--,C.dyn_ltree[(X[se]+c+1)*2]++,C.dyn_dtree[L(ne)*2]++),C.last_lit===C.lit_bufsize-1}return Pt._tr_init=le,Pt._tr_stored_block=ge,Pt._tr_flush_block=Re,Pt._tr_tally=Oe,Pt._tr_align=de,Pt}var Pn,Os;function ld(){if(Os)return Pn;Os=1;function e(t,n,r,i){for(var a=t&65535|0,o=t>>>16&65535|0,d=0;r!==0;){d=r>2e3?2e3:r,r-=d;do a=a+n[i++]|0,o=o+a|0;while(--d);a%=65521,o%=65521}return a|o<<16|0}return Pn=e,Pn}var jn,Ts;function fd(){if(Ts)return jn;Ts=1;function e(){for(var r,i=[],a=0;a<256;a++){r=a;for(var o=0;o<8;o++)r=r&1?3988292384^r>>>1:r>>>1;i[a]=r}return i}var t=e();function n(r,i,a,o){var d=t,f=o+a;r^=-1;for(var v=o;v<f;v++)r=r>>>8^d[(r^i[v])&255];return r^-1}return jn=n,jn}var Ln,As;function pm(){return As||(As=1,Ln={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"}),Ln}var Is;function mm(){if(Is)return ut;Is=1;var e=bn(),t=hm(),n=ld(),r=fd(),i=pm(),a=0,o=1,d=3,f=4,v=5,s=0,l=1,c=-2,y=-3,h=-5,m=-1,g=1,u=2,_=3,S=4,w=0,b=2,x=8,O=9,P=15,M=8,W=29,V=256,E=V+1+W,I=30,$=19,z=2*E+1,X=15,A=3,k=258,j=k+A+1,N=32,H=42,B=69,q=73,L=91,D=103,F=113,K=666,J=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=i[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function Pe(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 Ie(p,te){t._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 Se(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,T){var G=p.avail_in;return G>T&&(G=T),G===0?0:(p.avail_in-=G,e.arraySet(te,p.input,p.next_in,G,re),p.state.wrap===1?p.adler=n(p.adler,te,G,re):p.state.wrap===2&&(p.adler=r(p.adler,te,G,re)),p.next_in+=G,p.total_in+=G,G)}function qe(p,te){var re=p.max_chain_length,T=p.strstart,G,ee,_e=p.prev_length,he=p.nice_match,pe=p.strstart>p.w_size-j?p.strstart-(p.w_size-j):0,Ae=p.window,vt=p.w_mask,Le=p.prev,xe=p.strstart+k,Ue=Ae[T+_e-1],Je=Ae[T+_e];p.prev_length>=p.good_match&&(re>>=2),he>p.lookahead&&(he=p.lookahead);do if(G=te,!(Ae[G+_e]!==Je||Ae[G+_e-1]!==Ue||Ae[G]!==Ae[T]||Ae[++G]!==Ae[T+1])){T+=2,G++;do;while(Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&T<xe);if(ee=k-(xe-T),T=xe-k,ee>_e){if(p.match_start=te,_e=ee,ee>=he)break;Ue=Ae[T+_e-1],Je=Ae[T+_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,T,G,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-j)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,T=p.hash_size,re=T;do G=p.head[--re],p.head[re]=G>=te?G-te:0;while(--T);T=te,re=T;do G=p.prev[--re],p.prev[re]=G>=te?G-te:0;while(--T);ee+=te}if(p.strm.avail_in===0)break;if(T=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=T,p.lookahead+p.insert>=A)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+A-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<A)););}while(p.lookahead<j&&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===a)return J;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var T=p.block_start+re;if((p.strstart===0||p.strstart>=T)&&(p.lookahead=p.strstart-T,p.strstart=T,Ie(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-j&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ie(p,!1),p.strm.avail_out===0),J)}function Y(p,te){for(var re,T;;){if(p.lookahead<j){if(Ne(p),p.lookahead<j&&te===a)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=A&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-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-j&&(p.match_length=qe(p,re)),p.match_length>=A)if(T=t._tr_tally(p,p.strstart-p.match_start,p.match_length-A),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=A){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-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 T=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(T&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=p.strstart<A-1?p.strstart:A-1,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function Q(p,te){for(var re,T,G;;){if(p.lookahead<j){if(Ne(p),p.lookahead<j&&te===a)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=A&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-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=A-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-j&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===A&&p.strstart-p.match_start>4096)&&(p.match_length=A-1)),p.prev_length>=A&&p.match_length<=p.prev_length){G=p.strstart+p.lookahead-A,T=t._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-A),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=G&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-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=A-1,p.strstart++,T&&(Ie(p,!1),p.strm.avail_out===0))return J}else if(p.match_available){if(T=t._tr_tally(p,0,p.window[p.strstart-1]),T&&Ie(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return J}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(T=t._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<A-1?p.strstart:A-1,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function le(p,te){for(var re,T,G,ee,_e=p.window;;){if(p.lookahead<=k){if(Ne(p),p.lookahead<=k&&te===a)return J;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=A&&p.strstart>0&&(G=p.strstart-1,T=_e[G],T===_e[++G]&&T===_e[++G]&&T===_e[++G])){ee=p.strstart+k;do;while(T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&G<ee);p.match_length=k-(ee-G),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=A?(re=t._tr_tally(p,1,p.match_length-A),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(Ne(p),p.lookahead===0)){if(te===a)return J;break}if(p.match_length=0,re=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function de(p,te,re,T,G){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=T,this.func=G}var Re;Re=[new de(0,0,0,0,Ye),new de(4,4,8,4,Y),new de(4,5,16,8,Y),new de(4,6,32,32,Y),new de(4,4,16,16,Q),new de(8,16,32,32,Q),new de(8,16,128,128,Q),new de(8,32,128,256,Q),new de(32,128,258,1024,Q),new de(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,Pe(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=A-1,p.match_available=0,p.ins_h=0}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=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(z*2),this.dyn_dtree=new e.Buf16((2*I+1)*2),this.bl_tree=new e.Buf16((2*$+1)*2),Pe(this.dyn_ltree),Pe(this.dyn_dtree),Pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(X+1),this.heap=new e.Buf16(2*E+1),Pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*E+1),Pe(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=b,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?H:F,p.adler=te.wrap===2?0:1,te.last_flush=a,t._tr_init(te),s)}function se(p){var te=ne(p);return te===s&&Oe(p.state),te}function fe(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,s)}function Z(p,te,re,T,G,ee){if(!p)return c;var _e=1;if(te===m&&(te=6),T<0?(_e=0,T=-T):T>15&&(_e=2,T-=16),G<1||G>O||re!==x||T<8||T>15||te<0||te>9||ee<0||ee>S)return we(p,c);T===8&&(T=9);var he=new C;return p.state=he,he.strm=p,he.wrap=_e,he.gzhead=null,he.w_bits=T,he.w_size=1<<he.w_bits,he.w_mask=he.w_size-1,he.hash_bits=G+7,he.hash_size=1<<he.hash_bits,he.hash_mask=he.hash_size-1,he.hash_shift=~~((he.hash_bits+A-1)/A),he.window=new e.Buf8(he.w_size*2),he.head=new e.Buf16(he.hash_size),he.prev=new e.Buf16(he.w_size),he.lit_bufsize=1<<G+6,he.pending_buf_size=he.lit_bufsize*4,he.pending_buf=new e.Buf8(he.pending_buf_size),he.d_buf=1*he.lit_bufsize,he.l_buf=3*he.lit_bufsize,he.level=te,he.strategy=ee,he.method=re,se(p)}function ie(p,te){return Z(p,te,x,P,M,w)}function R(p,te){var re,T,G,ee;if(!p||!p.state||te>v||te<0)return p?we(p,c):c;if(T=p.state,!p.output||!p.input&&p.avail_in!==0||T.status===K&&te!==f)return we(p,p.avail_out===0?h:c);if(T.strm=p,re=T.last_flush,T.last_flush=te,T.status===H)if(T.wrap===2)p.adler=0,Se(T,31),Se(T,139),Se(T,8),T.gzhead?(Se(T,(T.gzhead.text?1:0)+(T.gzhead.hcrc?2:0)+(T.gzhead.extra?4:0)+(T.gzhead.name?8:0)+(T.gzhead.comment?16:0)),Se(T,T.gzhead.time&255),Se(T,T.gzhead.time>>8&255),Se(T,T.gzhead.time>>16&255),Se(T,T.gzhead.time>>24&255),Se(T,T.level===9?2:T.strategy>=u||T.level<2?4:0),Se(T,T.gzhead.os&255),T.gzhead.extra&&T.gzhead.extra.length&&(Se(T,T.gzhead.extra.length&255),Se(T,T.gzhead.extra.length>>8&255)),T.gzhead.hcrc&&(p.adler=r(p.adler,T.pending_buf,T.pending,0)),T.gzindex=0,T.status=B):(Se(T,0),Se(T,0),Se(T,0),Se(T,0),Se(T,0),Se(T,T.level===9?2:T.strategy>=u||T.level<2?4:0),Se(T,me),T.status=F);else{var _e=x+(T.w_bits-8<<4)<<8,he=-1;T.strategy>=u||T.level<2?he=0:T.level<6?he=1:T.level===6?he=2:he=3,_e|=he<<6,T.strstart!==0&&(_e|=N),_e+=31-_e%31,T.status=F,$e(T,_e),T.strstart!==0&&($e(T,p.adler>>>16),$e(T,p.adler&65535)),p.adler=1}if(T.status===B)if(T.gzhead.extra){for(G=T.pending;T.gzindex<(T.gzhead.extra.length&65535)&&!(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size));)Se(T,T.gzhead.extra[T.gzindex]&255),T.gzindex++;T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),T.gzindex===T.gzhead.extra.length&&(T.gzindex=0,T.status=q)}else T.status=q;if(T.status===q)if(T.gzhead.name){G=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size)){ee=1;break}T.gzindex<T.gzhead.name.length?ee=T.gzhead.name.charCodeAt(T.gzindex++)&255:ee=0,Se(T,ee)}while(ee!==0);T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),ee===0&&(T.gzindex=0,T.status=L)}else T.status=L;if(T.status===L)if(T.gzhead.comment){G=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size)){ee=1;break}T.gzindex<T.gzhead.comment.length?ee=T.gzhead.comment.charCodeAt(T.gzindex++)&255:ee=0,Se(T,ee)}while(ee!==0);T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),ee===0&&(T.status=D)}else T.status=D;if(T.status===D&&(T.gzhead.hcrc?(T.pending+2>T.pending_buf_size&&je(p),T.pending+2<=T.pending_buf_size&&(Se(T,p.adler&255),Se(T,p.adler>>8&255),p.adler=0,T.status=F)):T.status=F),T.pending!==0){if(je(p),p.avail_out===0)return T.last_flush=-1,s}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==f)return we(p,h);if(T.status===K&&p.avail_in!==0)return we(p,h);if(p.avail_in!==0||T.lookahead!==0||te!==a&&T.status!==K){var pe=T.strategy===u?ge(T,te):T.strategy===_?le(T,te):Re[T.level].func(T,te);if((pe===ue||pe===ve)&&(T.status=K),pe===J||pe===ue)return p.avail_out===0&&(T.last_flush=-1),s;if(pe===ae&&(te===o?t._tr_align(T):te!==v&&(t._tr_stored_block(T,0,0,!1),te===d&&(Pe(T.head),T.lookahead===0&&(T.strstart=0,T.block_start=0,T.insert=0))),je(p),p.avail_out===0))return T.last_flush=-1,s}return te!==f?s:T.wrap<=0?l:(T.wrap===2?(Se(T,p.adler&255),Se(T,p.adler>>8&255),Se(T,p.adler>>16&255),Se(T,p.adler>>24&255),Se(T,p.total_in&255),Se(T,p.total_in>>8&255),Se(T,p.total_in>>16&255),Se(T,p.total_in>>24&255)):($e(T,p.adler>>>16),$e(T,p.adler&65535)),je(p),T.wrap>0&&(T.wrap=-T.wrap),T.pending!==0?s:l)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==H&&te!==B&&te!==q&&te!==L&&te!==D&&te!==F&&te!==K?we(p,c):(p.state=null,te===F?we(p,y):s))}function be(p,te){var re=te.length,T,G,ee,_e,he,pe,Ae,vt;if(!p||!p.state||(T=p.state,_e=T.wrap,_e===2||_e===1&&T.status!==H||T.lookahead))return c;for(_e===1&&(p.adler=n(p.adler,te,re,0)),T.wrap=0,re>=T.w_size&&(_e===0&&(Pe(T.head),T.strstart=0,T.block_start=0,T.insert=0),vt=new e.Buf8(T.w_size),e.arraySet(vt,te,re-T.w_size,T.w_size,0),te=vt,re=T.w_size),he=p.avail_in,pe=p.next_in,Ae=p.input,p.avail_in=re,p.next_in=0,p.input=te,Ne(T);T.lookahead>=A;){G=T.strstart,ee=T.lookahead-(A-1);do T.ins_h=(T.ins_h<<T.hash_shift^T.window[G+A-1])&T.hash_mask,T.prev[G&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=G,G++;while(--ee);T.strstart=G,T.lookahead=A-1,Ne(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=A-1,T.match_available=0,p.next_in=pe,p.input=Ae,p.avail_in=he,T.wrap=_e,s}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=fe,ut.deflate=R,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var qn,xs;function gm(){if(xs)return qn;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 qn=e,qn}var it={},Dn,Cs;function vm(){if(Cs)return Dn;Cs=1;var e=30,t=12;return Dn=function(r,i){var a,o,d,f,v,s,l,c,y,h,m,g,u,_,S,w,b,x,O,P,M,W,V,E,I;a=r.state,o=r.next_in,E=r.input,d=o+(r.avail_in-5),f=r.next_out,I=r.output,v=f-(i-r.avail_out),s=f+(r.avail_out-257),l=a.dmax,c=a.wsize,y=a.whave,h=a.wnext,m=a.window,g=a.hold,u=a.bits,_=a.lencode,S=a.distcode,w=(1<<a.lenbits)-1,b=(1<<a.distbits)-1;e:do{u<15&&(g+=E[o++]<<u,u+=8,g+=E[o++]<<u,u+=8),x=_[g&w];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)I[f++]=x&65535;else if(O&16){P=x&65535,O&=15,O&&(u<O&&(g+=E[o++]<<u,u+=8),P+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=E[o++]<<u,u+=8,g+=E[o++]<<u,u+=8),x=S[g&b];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(M=x&65535,O&=15,u<O&&(g+=E[o++]<<u,u+=8,u<O&&(g+=E[o++]<<u,u+=8)),M+=g&(1<<O)-1,M>l){r.msg="invalid distance too far back",a.mode=e;break e}if(g>>>=O,u-=O,O=f-v,M>O){if(O=M-O,O>y&&a.sane){r.msg="invalid distance too far back",a.mode=e;break e}if(W=0,V=m,h===0){if(W+=c-O,O<P){P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}}else if(h<O){if(W+=c+h-O,O-=h,O<P){P-=O;do I[f++]=m[W++];while(--O);if(W=0,h<P){O=h,P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}}}else if(W+=h-O,O<P){P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}for(;P>2;)I[f++]=V[W++],I[f++]=V[W++],I[f++]=V[W++],P-=3;P&&(I[f++]=V[W++],P>1&&(I[f++]=V[W++]))}else{W=f-M;do I[f++]=I[W++],I[f++]=I[W++],I[f++]=I[W++],P-=3;while(P>2);P&&(I[f++]=I[W++],P>1&&(I[f++]=I[W++]))}}else if((O&64)===0){x=S[(x&65535)+(g&(1<<O)-1)];continue r}else{r.msg="invalid distance code",a.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){a.mode=t;break e}else{r.msg="invalid literal/length code",a.mode=e;break e}break}}while(o<d&&f<s);P=u>>3,o-=P,u-=P<<3,g&=(1<<u)-1,r.next_in=o,r.next_out=f,r.avail_in=o<d?5+(d-o):5-(o-d),r.avail_out=f<s?257+(s-f):257-(f-s),a.hold=g,a.bits=u},Dn}var Nn,ks;function ym(){if(ks)return Nn;ks=1;var e=bn(),t=15,n=852,r=592,i=0,a=1,o=2,d=[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],f=[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],v=[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],s=[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 Nn=function(c,y,h,m,g,u,_,S){var w=S.bits,b=0,x=0,O=0,P=0,M=0,W=0,V=0,E=0,I=0,$=0,z,X,A,k,j,N=null,H=0,B,q=new e.Buf16(t+1),L=new e.Buf16(t+1),D=null,F=0,K,J,ae;for(b=0;b<=t;b++)q[b]=0;for(x=0;x<m;x++)q[y[h+x]]++;for(M=w,P=t;P>=1&&q[P]===0;P--);if(M>P&&(M=P),P===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,S.bits=1,0;for(O=1;O<P&&q[O]===0;O++);for(M<O&&(M=O),E=1,b=1;b<=t;b++)if(E<<=1,E-=q[b],E<0)return-1;if(E>0&&(c===i||P!==1))return-1;for(L[1]=0,b=1;b<t;b++)L[b+1]=L[b]+q[b];for(x=0;x<m;x++)y[h+x]!==0&&(_[L[y[h+x]]++]=x);if(c===i?(N=D=_,B=19):c===a?(N=d,H-=257,D=f,F-=257,B=256):(N=v,D=s,B=-1),$=0,x=0,b=O,j=u,W=M,V=0,A=-1,I=1<<M,k=I-1,c===a&&I>n||c===o&&I>r)return 1;for(;;){K=b-V,_[x]<B?(J=0,ae=_[x]):_[x]>B?(J=D[F+_[x]],ae=N[H+_[x]]):(J=96,ae=0),z=1<<b-V,X=1<<W,O=X;do X-=z,g[j+($>>V)+X]=K<<24|J<<16|ae|0;while(X!==0);for(z=1<<b-1;$&z;)z>>=1;if(z!==0?($&=z-1,$+=z):$=0,x++,--q[b]===0){if(b===P)break;b=y[h+_[x]]}if(b>M&&($&k)!==A){for(V===0&&(V=M),j+=O,W=b-V,E=1<<W;W+V<P&&(E-=q[W+V],!(E<=0));)W++,E<<=1;if(I+=1<<W,c===a&&I>n||c===o&&I>r)return 1;A=$&k,g[A]=M<<24|W<<16|j-u|0}}return $!==0&&(g[j+$]=b-V<<24|64<<16|0),S.bits=M,0},Nn}var Ps;function _m(){if(Ps)return it;Ps=1;var e=bn(),t=ld(),n=fd(),r=vm(),i=ym(),a=0,o=1,d=2,f=4,v=5,s=6,l=0,c=1,y=2,h=-2,m=-3,g=-4,u=-5,_=8,S=1,w=2,b=3,x=4,O=5,P=6,M=7,W=8,V=9,E=10,I=11,$=12,z=13,X=14,A=15,k=16,j=17,N=18,H=19,B=20,q=21,L=22,D=23,F=24,K=25,J=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,Pe=852,je=592,Ie=15,Se=Ie;function $e(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&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(Z){var ie;return!Z||!Z.state?h:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=S,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(Pe),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,l)}function Ne(Z){var ie;return!Z||!Z.state?h:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function Ye(Z,ie){var R,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(R=0,ie=-ie):(R=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?h:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=R,oe.wbits=ie,Ne(Z))}function Y(Z,ie){var R,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,R=Ye(Z,ie),R!==l&&(Z.state=null),R):h}function Q(Z){return Y(Z,Se)}var le=!0,ge,de;function Re(Z){if(le){var ie;for(ge=new e.Buf32(512),de=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(i(o,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;i(d,Z.lens,0,32,de,0,Z.work,{bits:5}),le=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=de,Z.distbits=5}function Oe(Z,ie,R,oe){var be,p=Z.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,R-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,R-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,R-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 C(Z,ie){var R,oe,be,p,te,re,T,G,ee,_e,he,pe,Ae,vt,Le=0,xe,Ue,Je,Xe,br,wr,Me,nt,Ge=new e.Buf8(4),yt,dt,gs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return h;R=Z.state,R.mode===$&&(R.mode=z),te=Z.next_out,be=Z.output,T=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=R.hold,ee=R.bits,_e=re,he=T,nt=l;e:for(;;)switch(R.mode){case S:if(R.wrap===0){R.mode=z;break}for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.wrap&2&&G===35615){R.check=0,Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0),G=0,ee=0,R.mode=w;break}if(R.flags=0,R.head&&(R.head.done=!1),!(R.wrap&1)||(((G&255)<<8)+(G>>8))%31){Z.msg="incorrect header check",R.mode=me;break}if((G&15)!==_){Z.msg="unknown compression method",R.mode=me;break}if(G>>>=4,ee-=4,Me=(G&15)+8,R.wbits===0)R.wbits=Me;else if(Me>R.wbits){Z.msg="invalid window size",R.mode=me;break}R.dmax=1<<Me,Z.adler=R.check=1,R.mode=G&512?E:$,G=0,ee=0;break;case w:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.flags=G,(R.flags&255)!==_){Z.msg="unknown compression method",R.mode=me;break}if(R.flags&57344){Z.msg="unknown header flags set",R.mode=me;break}R.head&&(R.head.text=G>>8&1),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0,R.mode=b;case b:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.head&&(R.head.time=G),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,Ge[2]=G>>>16&255,Ge[3]=G>>>24&255,R.check=n(R.check,Ge,4,0)),G=0,ee=0,R.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.head&&(R.head.xflags=G&255,R.head.os=G>>8),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0,R.mode=O;case O:if(R.flags&1024){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.length=G,R.head&&(R.head.extra_len=G),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0}else R.head&&(R.head.extra=null);R.mode=P;case P:if(R.flags&1024&&(pe=R.length,pe>re&&(pe=re),pe&&(R.head&&(Me=R.head.extra_len-R.length,R.head.extra||(R.head.extra=new Array(R.head.extra_len)),e.arraySet(R.head.extra,oe,p,pe,Me)),R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,R.length-=pe),R.length))break e;R.length=0,R.mode=M;case M:if(R.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],R.head&&Me&&R.length<65536&&(R.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else R.head&&(R.head.name=null);R.length=0,R.mode=W;case W:if(R.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],R.head&&Me&&R.length<65536&&(R.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else R.head&&(R.head.comment=null);R.mode=V;case V:if(R.flags&512){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(R.check&65535)){Z.msg="header crc mismatch",R.mode=me;break}G=0,ee=0}R.head&&(R.head.hcrc=R.flags>>9&1,R.head.done=!0),Z.adler=R.check=0,R.mode=$;break;case E:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}Z.adler=R.check=$e(G),G=0,ee=0,R.mode=I;case I:if(R.havedict===0)return Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,y;Z.adler=R.check=1,R.mode=$;case $:if(ie===v||ie===s)break e;case z:if(R.last){G>>>=ee&7,ee-=ee&7,R.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}switch(R.last=G&1,G>>>=1,ee-=1,G&3){case 0:R.mode=X;break;case 1:if(Re(R),R.mode=B,ie===s){G>>>=2,ee-=2;break e}break;case 2:R.mode=j;break;case 3:Z.msg="invalid block type",R.mode=me}G>>>=2,ee-=2;break;case X:for(G>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((G&65535)!==(G>>>16^65535)){Z.msg="invalid stored block lengths",R.mode=me;break}if(R.length=G&65535,G=0,ee=0,R.mode=A,ie===s)break e;case A:R.mode=k;case k:if(pe=R.length,pe){if(pe>re&&(pe=re),pe>T&&(pe=T),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,T-=pe,te+=pe,R.length-=pe;break}R.mode=$;break;case j:for(;ee<14;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.nlen=(G&31)+257,G>>>=5,ee-=5,R.ndist=(G&31)+1,G>>>=5,ee-=5,R.ncode=(G&15)+4,G>>>=4,ee-=4,R.nlen>286||R.ndist>30){Z.msg="too many length or distance symbols",R.mode=me;break}R.have=0,R.mode=N;case N:for(;R.have<R.ncode;){for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.lens[gs[R.have++]]=G&7,G>>>=3,ee-=3}for(;R.have<19;)R.lens[gs[R.have++]]=0;if(R.lencode=R.lendyn,R.lenbits=7,yt={bits:R.lenbits},nt=i(a,R.lens,0,19,R.lencode,0,R.work,yt),R.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",R.mode=me;break}R.have=0,R.mode=H;case H:for(;R.have<R.nlen+R.ndist;){for(;Le=R.lencode[G&(1<<R.lenbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Je<16)G>>>=xe,ee-=xe,R.lens[R.have++]=Je;else{if(Je===16){for(dt=xe+2;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G>>>=xe,ee-=xe,R.have===0){Z.msg="invalid bit length repeat",R.mode=me;break}Me=R.lens[R.have-1],pe=3+(G&3),G>>>=2,ee-=2}else if(Je===17){for(dt=xe+3;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=xe,ee-=xe,Me=0,pe=3+(G&7),G>>>=3,ee-=3}else{for(dt=xe+7;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=xe,ee-=xe,Me=0,pe=11+(G&127),G>>>=7,ee-=7}if(R.have+pe>R.nlen+R.ndist){Z.msg="invalid bit length repeat",R.mode=me;break}for(;pe--;)R.lens[R.have++]=Me}}if(R.mode===me)break;if(R.lens[256]===0){Z.msg="invalid code -- missing end-of-block",R.mode=me;break}if(R.lenbits=9,yt={bits:R.lenbits},nt=i(o,R.lens,0,R.nlen,R.lencode,0,R.work,yt),R.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",R.mode=me;break}if(R.distbits=6,R.distcode=R.distdyn,yt={bits:R.distbits},nt=i(d,R.lens,R.nlen,R.ndist,R.distcode,0,R.work,yt),R.distbits=yt.bits,nt){Z.msg="invalid distances set",R.mode=me;break}if(R.mode=B,ie===s)break e;case B:R.mode=q;case q:if(re>=6&&T>=258){Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,r(Z,he),te=Z.next_out,be=Z.output,T=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=R.hold,ee=R.bits,R.mode===$&&(R.back=-1);break}for(R.back=0;Le=R.lencode[G&(1<<R.lenbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Ue&&(Ue&240)===0){for(Xe=xe,br=Ue,wr=Je;Le=R.lencode[wr+((G&(1<<Xe+br)-1)>>Xe)],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,R.back+=Xe}if(G>>>=xe,ee-=xe,R.back+=xe,R.length=Je,Ue===0){R.mode=J;break}if(Ue&32){R.back=-1,R.mode=$;break}if(Ue&64){Z.msg="invalid literal/length code",R.mode=me;break}R.extra=Ue&15,R.mode=L;case L:if(R.extra){for(dt=R.extra;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.length+=G&(1<<R.extra)-1,G>>>=R.extra,ee-=R.extra,R.back+=R.extra}R.was=R.length,R.mode=D;case D:for(;Le=R.distcode[G&(1<<R.distbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((Ue&240)===0){for(Xe=xe,br=Ue,wr=Je;Le=R.distcode[wr+((G&(1<<Xe+br)-1)>>Xe)],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,R.back+=Xe}if(G>>>=xe,ee-=xe,R.back+=xe,Ue&64){Z.msg="invalid distance code",R.mode=me;break}R.offset=Je,R.extra=Ue&15,R.mode=F;case F:if(R.extra){for(dt=R.extra;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.offset+=G&(1<<R.extra)-1,G>>>=R.extra,ee-=R.extra,R.back+=R.extra}if(R.offset>R.dmax){Z.msg="invalid distance too far back",R.mode=me;break}R.mode=K;case K:if(T===0)break e;if(pe=he-T,R.offset>pe){if(pe=R.offset-pe,pe>R.whave&&R.sane){Z.msg="invalid distance too far back",R.mode=me;break}pe>R.wnext?(pe-=R.wnext,Ae=R.wsize-pe):Ae=R.wnext-pe,pe>R.length&&(pe=R.length),vt=R.window}else vt=be,Ae=te-R.offset,pe=R.length;pe>T&&(pe=T),T-=pe,R.length-=pe;do be[te++]=vt[Ae++];while(--pe);R.length===0&&(R.mode=q);break;case J:if(T===0)break e;be[te++]=R.length,T--,R.mode=q;break;case ae:if(R.wrap){for(;ee<32;){if(re===0)break e;re--,G|=oe[p++]<<ee,ee+=8}if(he-=T,Z.total_out+=he,R.total+=he,he&&(Z.adler=R.check=R.flags?n(R.check,be,he,te-he):t(R.check,be,he,te-he)),he=T,(R.flags?G:$e(G))!==R.check){Z.msg="incorrect data check",R.mode=me;break}G=0,ee=0}R.mode=ue;case ue:if(R.wrap&&R.flags){for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(R.total&4294967295)){Z.msg="incorrect length check",R.mode=me;break}G=0,ee=0}R.mode=ve;case ve:nt=c;break e;case me:nt=m;break e;case we:return g;case Ce:default:return h}return Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,(R.wsize||he!==Z.avail_out&&R.mode<me&&(R.mode<ae||ie!==f))&&Oe(Z,Z.output,Z.next_out,he-Z.avail_out),_e-=Z.avail_in,he-=Z.avail_out,Z.total_in+=_e,Z.total_out+=he,R.total+=he,R.wrap&&he&&(Z.adler=R.check=R.flags?n(R.check,be,he,Z.next_out-he):t(R.check,be,he,Z.next_out-he)),Z.data_type=R.bits+(R.last?64:0)+(R.mode===$?128:0)+(R.mode===B||R.mode===A?256:0),(_e===0&&he===0||ie===f)&&nt===l&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return h;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,l}function se(Z,ie){var R;return!Z||!Z.state||(R=Z.state,(R.wrap&2)===0)?h:(R.head=ie,ie.done=!1,l)}function fe(Z,ie){var R=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==I)?h:oe.mode===I&&(be=1,be=t(be,ie,R,0),be!==oe.check)?m:(p=Oe(Z,ie,R,R),p?(oe.mode=we,g):(oe.havedict=1,l))}return it.inflateReset=Ne,it.inflateReset2=Ye,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=Y,it.inflate=C,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=fe,it.inflateInfo="pako inflate (from Nodeca project)",it}var Mn,js;function bm(){return js||(js=1,Mn={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}),Mn}function wm(){const{useDynamicConfig:e}=wt(),{configValue:t,isDynamicConfigLoading:n}=e(At.creditAgentEnablement),r=He.getSignedInUser()?.userEmail;return{isAllowed:ce.useMemo(()=>{const a=Array.isArray(t?.allowedUserEmails)?t.allowedUserEmails:[];return r!=null&&a.includes(r)},[t,r]),isLoading:n}}function Et(){const{isAllowed:e}=wm();return e?Tp:Ap}const Sm={overlayWidth:new at(100,100,50)};function Ls(){const e=Be(),t=We(),n=lr(),r=Bt(),i=Et(),a=Ee(V=>qf(V)),o=a.uiState.selectedCustomerTenantId,d=ce.useMemo(()=>o?a.customers.find(V=>V.tenantId===o):void 0,[a.customers,o]),f=Ee(V=>o?Df(V.aiAccountantCustomerState,V.userState,o):[]),v=a.customerViewStateByTenantId[o],s=v?.jobsFetchStatus??{fetchState:"Not-Started"},l=v?.jobsPageToken!=null;ce.useEffect(()=>{a.fetchState==="Completed"?t(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&t(vs())},[a.fetchState]);const c=V=>{const E=kt(V),I=Ft(V);Fe.trackCockpitTabClicked(I),e(`../../${E}`,{replace:!0})},y=(V,E,I,$)=>{t(Dt([V.tenantId])),t(an(E,I,$))},h=(V,E,I)=>{t(an(V,E,I))},m=(V,E)=>{t(Dt(a.unonboardedTenantIds)),t(an("retrain",V,E))},g=V=>{const E=a.selectedTenantIds,I=E.includes(V)?E.filter($=>$!==V):[...E,V];t(Dt(I))},u=V=>{if(V.length===0)return;const E=a.selectedTenantIds,I=new Set(E);if(V.every(z=>I.has(z))){const z=new Set(V);t(Dt(E.filter(X=>!z.has(X))))}else{const z=Array.from(new Set([...E,...V]));t(Dt(z))}},_=()=>{t(Dt([]))},S=V=>{t(Nf(V.companyId,V.tenantId))},w=V=>{V==="aiAccountant"&&t(vs())},b=(V,E)=>{t(Jt({sortKey:V,sortOrder:E}))},x=V=>{t(Jt({selectedCustomerTenantId:V.tenantId})),t(sn(V.tenantId))},O=()=>{t(Jt({selectedCustomerTenantId:""}))},P=V=>{t(Jt({filterText:V}))},M=(V,E)=>{t(Jt({filters:E}))},W=()=>{o&&t(sn(o,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(Ip,{headerData:{allTabOptions:i,selectedTabOption:St("aiAccountant")},headerActions:{onTabChange:c},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:y,onBulkAction:h,onCancelOnboarding:S,onClearSelection:_,onCockpitReloadData:w,onColumnSortConfigChanged:b,onCustomerSelected:x,onEvaluateAll:m,onFilterTextChanged:P,onFiltersChange:M,onToggleAllVisible:u,onToggleTenantSelection:g}}),U.jsx(dr,{anchor:"right",open:d!=null,PaperProps:{style:{width:Sm.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:O,children:d!=null&&U.jsx(nd,{customer:d,hasMoreJobs:l,jobs:f,jobsFetchStatus:s,onAction:y,onCancelOnboarding:S,onClose:O,onLoadMoreJobs:W})})]})}function Em(){const{tenantId:e=""}=ot(),t=Be(),n=We(),r=Ee(c=>ch(c.aiAccountantCustomerState,c.userState)),i=Ee(c=>qf(c)),a=r.find(c=>c.tenantId===e),o=i.customerViewStateByTenantId[e],d=Ee(c=>Df(c.aiAccountantCustomerState,c.userState,e));if(ce.useEffect(()=>{n(sn(e))},[e,n]),a==null)return null;const f=(c,y,h,m)=>{n(Dt([c.tenantId])),n(an(y,h,m))},v=c=>{n(Nf(c.companyId,c.tenantId))},s=()=>{t("../")},l=()=>{n(sn(e,!0))};return U.jsx(nd,{customer:a,hasMoreJobs:o?.jobsPageToken!=null,jobs:d,jobsFetchStatus:o?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:f,onCancelOnboarding:v,onClose:s,onLoadMoreJobs:l})}const dd=(e,t)=>{const n=[...e??[]];return n.push(t),n},Rm=e=>{const t=[...e??[]];return{poppedPathname:t.pop(),newStack:t}},Om=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},ke=({state:e,element:t})=>He.isSignedIn()===!0?U.jsx(U.Fragment,{children:t}):U.jsx(ir,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Tm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Ls,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(ke,{element:U.jsx(Em,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Ls,{})})})]})}const Ut=()=>{const[e,t]=cd(),[n,r]=ce.useState(),i=ce.useRef(!1);return ce.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const o=xp(e);o!=null&&r(o);const d=new URLSearchParams(e);d.delete("thread_id"),d.delete("entity_type"),d.delete("company_id"),t(d,{replace:!0}),i.current=!0},[e,t]),n},Am={overlayWidth:new at(100,100,50)},{common:{strings:qs}}=fr.getLocalizedStrings();function Im(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Sr({uiState:{filterText:r}}))},onFiltersChange:(n,r)=>{r.categories!=null&&r.categoryCombinationOperator!=null&&Fe.trackHealthMonitorFiltersApplied({filterSelection:{condition:r.categories.map(i=>i.matchingOperator).join(qs.comma),logic:r.categoryCombinationOperator,parameter:r.categories.map(i=>i.field).join(qs.comma)}}),e(Sr({uiState:{filters:r}}))}}},healthPageActions:{onRowClick:n=>{e(Ff(n))},onColumnSortConfigChanged:(n,r)=>{e(Sr({uiState:{sortKey:n,sortOrder:r}}))},onCockpitReloadData:n=>{n==="healthMonitor"&&e(Mf())},onFiltersChange:n=>{e(Sr({uiState:{filters:n}}))}}}}function xm(e,t){return{healthPageData:{healthView:t.healthView,managementView:t.managementView,mixpanelUrl:t.mixpanelHMUrl}}}const Cm=ze(xm,Im)(jp);function Fn({isDrawerOpen:e}){const t=Be(),n=We(),r=Bt(),i=lr(),{companyId:a}=ot(),[o,d]=cd(),[f,v]=ce.useState(!1),s=Ut(),l=Et(),c=Ee(b=>lh(b)),y=Ee(b=>ur(b)),{additionalChurnFactors:h}=Ee(b=>fh(b)),{selectedCompanyDetail:m,selectedCompanyId:g,localFormDataAndStatusByCompanyId:u}=c,_=Ee(b=>b.companyViewState.zeniUsers.fetchState),S=Ee(b=>b.companyHealthMetricConfigViewState);if(ce.useEffect(()=>{const b=x=>x==="Not-Started"||x==="Error";c.fetchState==="Completed"?n(xt(!1)):b(c.fetchState)&&(n(Mf()),b(_)&&n(Ct()),b(S.fetchState)&&n(dh()))},[c.fetchState,S.fetchState]),ce.useEffect(()=>{a!=null&&c.fetchState==="Completed"&&o.has("utm_source")===!0&&(n(Ff(a)),m!=null&&(Cp(),Fe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),v(!0),o.delete("utm_source"),d(o)))},[c.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),He.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||g!=null&&m!=null?U.jsx(dr,{anchor:"right",open:g!=null,PaperProps:{style:{width:Am.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>n(ys()),children:U.jsx(kp,{roomId:`cockpit_${g}`,autoConnect:!0,children:U.jsx(Pp,{onSaveClick:()=>{g!=null&&n(ph(g))},onSaveChangesToLocalStore:b=>{c.selectedCompanyId!=null&&n(hh({companyId:c.selectedCompanyId,updatedLocalData:b}))},localData:u?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>n(ys()),analytics:Fe,urlSource:f,additionalChurnFactorsOptions:h})})}):null,U.jsx(Cm,{headerData:{allTabOptions:l,selectedTabOption:St("healthMonitor")},initialOpenThreadRequest:s??void 0,healthView:c,managementView:y,navigate:t,mixpanelHMUrl:gn.mixpanelHMUrl})]})}function km(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(ke,{element:U.jsx(Fn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Fn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Fn,{})})})]})}const Pm={drawerLeftMargin:new at(0,0,240)};function mr(e){const{isOpen:t,drawerLeftMargin:n,children:r,onClose:i}=e,a=lr(),o=n?.valuePx(a)??Pm.drawerLeftMargin.valuePx(a),d=Bt();return U.jsx(dr,{anchor:"right",open:t,PaperProps:{style:{width:`calc(100% - ${o})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:r})}const jm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(Lm,{children:U.jsx(vn,{size:"ExtraLarge",start:!0})}):null,Lm=tt.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
width: 100%;
|
|
5
5
|
height: 100%;
|
|
@@ -8,7 +8,7 @@ import{Sn as qf,So as Df,lQ as xt,f5 as vs,Sp as Dt,fe as an,f3 as Nf,Sq as Jt,f
|
|
|
8
8
|
align-items: center;
|
|
9
9
|
background-color: ${e=>e.theme.colors.grey4};
|
|
10
10
|
box-shadow: ${e=>`0px 2px ${Nt.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
11
|
-
`;function qm(e,t){const{loggedInUser:n,companyId:r,isMonthEnd:i,allUsers:a,isAuditScoreCompleted:o}=t,f=cr(e).companies.find(l=>l.companyId===r),v=pn(e),s=r!=null?Uo(r,e,n):null;return{allUsers:a,isAuditScoreCompleted:o,reviewCompanyView:f,loggedInUser:n,auditRuleGroups:v.auditRuleGroups??[],auditReportGroupView:{auditReportGroups:s?.auditReportGroups??[],isControllerOrReviewer:s?.isControllerOrReviewer??!1},isMonthEnd:i,analytics:Fe}}function Dm(e,t){const{companyId:n,companyView:r,closeAuditScoreDrawer:i}=t;return{handleFetchAuditReportGroupView:a=>{n!=null&&e(un(n,"generate",a))},handleGenerateAuditReport:a=>{n!=null&&(e(Bf(n)),a.forEach(o=>{e(un(n,"generate",o))}))},handleRuleClick:(a,o)=>{switch(a){case"reports":window.open(`/${r?.company.companyInfo.primaryEmailDomain}/reports`);break;case"transactions":window.open(`/${r?.company.companyInfo.primaryEmailDomain}/transactions/${o}`);break;case"dashboard":window.open(`/${r?.company.companyInfo.primaryEmailDomain}/dashboard/${o}`);break;default:console.error("Audit Page - Invalid entityType")}},handleCancelIconClick:()=>{e(Mt()),i?i():t.navigate("../")},handleReasonAuditRule:(a,o,d,f)=>{n!=null&&e(vh(n,o,a,d,f))}}}const Nm=ze(qm,Dm)(Lp);function hd({closeAuditScoreDrawer:e}){const t=Be(),n=We(),{companyId:r}=ot(),i=He.getSignedInUser(),[a,o]=ce.useState(!1);if(i==null)throw Error("Can't access Audit Report page without signing in...");const d=
|
|
11
|
+
`;function qm(e,t){const{loggedInUser:n,companyId:r,isMonthEnd:i,allUsers:a,isAuditScoreCompleted:o}=t,f=cr(e).companies.find(l=>l.companyId===r),v=pn(e),s=r!=null?Uo(r,e,n):null;return{allUsers:a,isAuditScoreCompleted:o,reviewCompanyView:f,loggedInUser:n,auditRuleGroups:v.auditRuleGroups??[],auditReportGroupView:{auditReportGroups:s?.auditReportGroups??[],isControllerOrReviewer:s?.isControllerOrReviewer??!1},isMonthEnd:i,analytics:Fe}}function Dm(e,t){const{companyId:n,companyView:r,closeAuditScoreDrawer:i}=t;return{handleFetchAuditReportGroupView:a=>{n!=null&&e(un(n,"generate",a))},handleGenerateAuditReport:a=>{n!=null&&(e(Bf(n)),a.forEach(o=>{e(un(n,"generate",o))}))},handleRuleClick:(a,o)=>{switch(a){case"reports":window.open(`/${r?.company.companyInfo.primaryEmailDomain}/reports`);break;case"transactions":window.open(`/${r?.company.companyInfo.primaryEmailDomain}/transactions/${o}`);break;case"dashboard":window.open(`/${r?.company.companyInfo.primaryEmailDomain}/dashboard/${o}`);break;default:console.error("Audit Page - Invalid entityType")}},handleCancelIconClick:()=>{e(Mt()),i?i():t.navigate("../")},handleReasonAuditRule:(a,o,d,f)=>{n!=null&&e(vh(n,o,a,d,f))}}}const Nm=ze(qm,Dm)(Lp);function hd({closeAuditScoreDrawer:e}){const t=Be(),n=We(),{companyId:r}=ot(),i=He.getSignedInUser(),[a,o]=ce.useState(!1);if(i==null)throw Error("Can't access Audit Report page without signing in...");const d=Ee(h=>cr(h)),f=Ee(h=>ur(h).fetchState),v=Ee(h=>mh(h.companyState,r??"")),s=Ee(h=>pn(h)),l=Ee(h=>Uo(r??"",h,i)),c=Ee(h=>gh(h));ce.useEffect(()=>{d.fetchState==="Completed"&&s.fetchState==="Not-Started"&&n(Vo())},[d.fetchState,s.fetchState]),ce.useEffect(()=>{s.fetchState==="Completed"&&f==="Completed"&&s.auditRuleGroups.forEach(h=>{if(l.auditReportGroups.find(g=>g.auditReportGroupId===h.auditRuleGroupId)==null&&r!=null){const u=d.companies.find(_=>_.companyId===r)?.auditSummary?.auditReportLastGeneratedDate!=null?"view":"generate";n(un(r,u,h.auditRuleGroupId))}})},[s,d,l,f]),ce.useEffect(()=>{const h=l.auditReportGroups.filter(m=>m.fetchState==="Completed"||m.fetchState==="Error");a===!1&&h.length!==0&&h.length===s.auditRuleGroups.length&&(o(!0),n(Mt(!0)))},[JSON.stringify(l.auditReportGroups.filter(h=>h.fetchState==="Completed"||h.fetchState==="Error"))]),ce.useEffect(()=>{const h=l.auditReportGroups.filter(m=>m.fetchState==="In-Progress");a===!0&&h.length!==0&&h.length===s.auditRuleGroups.length&&o(!1)},[JSON.stringify(l.auditReportGroups.filter(h=>h.fetchState==="In-Progress"))]);const y=d.fetchState!=="Completed"||s.fetchState!=="Completed"||f!=="Completed"||s.auditRuleGroups.length===0;return y?U.jsx(jm,{fetchState:y?"In-Progress":"Completed"}):U.jsx(U.Fragment,{children:U.jsx(Nm,{isAuditScoreCompleted:(d.fetchState==="Completed"||d.fetchState==="Error")&&a,allUsers:c,companyId:r,isMonthEnd:!!e,navigate:t,loggedInUser:i,companyView:v,closeAuditScoreDrawer:e})})}const Mm=tt.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
width: 100%;
|
|
14
14
|
height: calc(100vh - 110px);
|
|
@@ -16,11 +16,11 @@ import{Sn as qf,So as Df,lQ as xt,f5 as vs,Sp as Dt,fe as an,f3 as Nf,Sq as Jt,f
|
|
|
16
16
|
justify-content: center;
|
|
17
17
|
align-items: center;
|
|
18
18
|
background-color: ${e=>e.theme.colors.grey4};
|
|
19
|
-
`;function Fm({closeCustomerRequestDrawer:e,addCustomerRequest:t,resetCustomerRequest:n}){const{companyId:r}=ot(),i=He.getSignedInUser();if(i==null)throw Error("Can't access Customer Request page without signing in...");const a=
|
|
19
|
+
`;function Fm({closeCustomerRequestDrawer:e,addCustomerRequest:t,resetCustomerRequest:n}){const{companyId:r}=ot(),i=He.getSignedInUser();if(i==null)throw Error("Can't access Customer Request page without signing in...");const a=Ee(o=>Uf(o,r,i));return ce.useEffect(()=>{n()},[]),U.jsx(U.Fragment,{children:a.fetchState==="In-Progress"||a.companyMonthEndReportTemplatesData.fetchState==="In-Progress"?U.jsx(Mm,{children:U.jsx(vn,{size:"Large",start:!0})}):U.jsx(qp,{onCloseClick:e,addCustomerRequest:t,snippets:a.companyMonthEndReportTemplatesData,bulletPoints:a.zeniRequestsData??[]})})}function Bm({onClose:e}){const t=We(),{companyId:n}=ot(),[r,i]=ce.useState(!1),{useFeatureGate:a,useDynamicConfig:o}=wt(),{isFeatureEnabled:d}=a(yn.enableZeniGPTFeatureForMonthEndEmail),{configValue:f}=o(At.monthEndPreviewEnablement);if(n==null)throw Error("Can't access Month End Email page without valid company details...");const[v,s]=ce.useState(!1),[l,c]=ce.useState(!1),[y,h]=ce.useState(!1),[m,g]=ce.useState([]),u=He.getSignedInUser();if(u==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const _=Ee(q=>ur(q)),S=Ee(q=>cr(q)),w=Ee(q=>pn(q)),b=Ee(q=>Uo(n,q,u)),x=Ee(q=>Uf(q,n,u)),O=ce.useCallback((q=!1,L=!1)=>{t(Bf(n)),s(!1),_.fetchState==="Completed"&&S.fetchState==="Completed"&&w.fetchState==="Completed"&&(w.auditRuleGroups.forEach(D=>{t(un(n,"generate",D.auditRuleGroupId))}),t(yh(q,n,void 0,void 0,L)),t(_h(n)))},[n,_.fetchState,S.fetchState,w.fetchState]);ce.useEffect(()=>{const q=b.auditReportGroups.filter(L=>L.fetchState==="Completed"||L.fetchState==="Error");v===!1&&q.length!==0&&q.length===w.auditRuleGroups.length&&(s(!0),t(Mt(!0,!0)))},[b.auditReportGroups]);const P=ce.useCallback(()=>{t(bh({companyId:n})),s(!1),e()},[e]),M=ce.useCallback(()=>{O(!0,!0)},[O]),W=ce.useCallback(q=>{t(wh(n,q))},[]),V=ce.useCallback((q,L,D,F,K)=>{t(_s(q,n,L,!0,D,F,{agentInsightEdits:K}))},[n]),E=ce.useCallback((q,L,D,F,K)=>{t(_s(q,n,L,!1,D,F,{agentInsightEdits:K}))},[n]),I=ce.useCallback(()=>{i(!1)},[]),$=ce.useCallback(q=>{t(Sh(q,n))},[]),z=ce.useCallback(q=>{t(Eh({files:q}))},[]),X=ce.useCallback(q=>{t(Rh(q))},[]),A=ce.useCallback(()=>{t(Oh({messageSection:"cockpit_month_end_email_attachment_upload",messageText:"failed",type:"error",showStatusIcon:!0}))},[]),k=ce.useCallback(()=>{t(Th())},[]),j=ce.useCallback(()=>{c(!0)},[]),N=ce.useCallback(()=>{h(!0)},[]),H=ce.useCallback(q=>{g(q),h(!1)},[]),B=ce.useCallback(()=>{g([])},[]);return ce.useEffect(()=>{x?.previewMonthEndReportStatus?.fetchState==="Completed"?i(!0):i(!1)},[x?.previewMonthEndReportStatus?.fetchState]),ce.useEffect(()=>{(x?.sendMonthEndReportStatus?.fetchState==="Completed"||x?.saveMonthEndReportStatus?.fetchState==="Completed")&&P()},[x?.sendMonthEndReportStatus?.fetchState,x?.saveMonthEndReportStatus?.fetchState,P]),ce.useEffect(()=>{if(x?.sendMonthEndReportStatus?.fetchState==="Completed"){const q=new Date;q.setDate(1),q.setMonth(q.getMonth()-1),Fe.trackMonthEndEmailSentFromCockpit(q.getMonth()+1,q.getFullYear(),x?.recipientEmailList?.length??0)}},[x?.sendMonthEndReportStatus?.fetchState]),ce.useEffect(()=>{t(Vf(!1)),t(Ct()),t(Vo())},[]),ce.useEffect(()=>{O()},[O]),U.jsxs(U.Fragment,{children:[U.jsx(mr,{isOpen:l||y,drawerLeftMargin:l?new at(0,0,0,0):y?new at(0,0,300,650):new at(0,0,300,650),onClose:()=>{l?(t(Mt(!0,!0)),c(!1)):y&&h(!1)},children:U.jsx(Um,{onClick:q=>q.stopPropagation(),children:l?U.jsx(hd,{closeAuditScoreDrawer:()=>c(!1)}):y?U.jsx(Fm,{closeCustomerRequestDrawer:()=>h(!1),addCustomerRequest:H,resetCustomerRequest:B}):null})}),U.jsx(Dp,{companyId:n,enableZeniGPTFeature:d,enableSendingMonthEndEmail:f.companiesByPassPreviewMonthEndReport!=null&&Array.isArray(f.companiesByPassPreviewMonthEndReport)?f.companiesByPassPreviewMonthEndReport.includes(n):!1,monthEndReportView:x,previewMode:r,customerRequestData:m,onNavigateBack:P,onRefresh:M,sendMonthEndReport:W,previewMonthEndReport:V,saveMonthEndReport:E,onEditClick:I,improveUsingZeniGPTClick:$,onRemoveFileAttachment:X,onUpdateFileAttachment:z,onOpenFileAttachmentSnackBar:A,onCloseFileAttachmentSnackBar:k,onClickAuditScore:j,onClickCustomerRequest:N,isAuditScoreLoadingCompleted:v&&(S.fetchState==="Completed"||S.fetchState==="Error")})]})}const Um=tt(Zt)`
|
|
20
20
|
display: flex;
|
|
21
21
|
min-height: 100%;
|
|
22
22
|
flex-direction: column;
|
|
23
|
-
`;function Vm(){const e=We(),t=Be(),{companyId:n,reportDate:r}=ot(),i=Se(f=>ur(f).fetchState);if(n==null||r==null)throw Error("Can't access historic Email without company id and reportDate...");const a=Se(f=>Ah(f,n,on(r))),o=ce.useCallback(f=>{t(`../../management/month-end-report-history/company/${n}/${f.format(fr.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`),e(bs(n,f))},[n]),d=ce.useCallback(()=>{i==="Completed"&&a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&(e(Ih(n)),e(bs(n,on(r))))},[n,i,r,a.fetchState]);return ce.useEffect(()=>{e(Vf(!1))},[]),ce.useEffect(()=>{d()},[d]),U.jsx(Np,{monthEndReportHistoricData:a,reportSentDate:on(r),onDateChange:o,onNavigateBack:()=>t("../../"),onRefresh:d})}function $m({isOpen:e,emailHistoryMode:t,onClose:n}){return t?U.jsx(mr,{drawerLeftMargin:new at(Cn[0],Cn[0],Cn[0]),isOpen:e,onClose:n,children:U.jsx(Vm,{})}):U.jsx(Mp,{isOpen:e,children:U.jsx(Bm,{onClose:n})})}const{common:{strings:Bn},dateFormat:zm}=fr.getLocalizedStrings();function Gm(e,t){const{loggedInUserRole:n,loggedInUser:r,navigate:i}=t;return{headerActions:{onTabChange:a=>{const o=kt(a),d=Ft(a);Fe.trackCockpitTabClicked(d),i(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(pt({filterText:o}))},onFiltersChange:(a,o)=>{e(pt({filters:o}))}}},managementPageActions:{onColumnSortConfigChanged:(a,o)=>{e(pt({sortKey:a,sortOrder:o}))},changeHandlers:(a,o)=>{const d=Wm(o);Object.keys(d).length>0&&e($o(a,d))},onProductVerticalsChanged:(a,o)=>{e(Gf(a,o))},onRealmIdReset:a=>{e(cn(a))},onRealmIdUpdate:(a,o)=>{e(cn(a,o))},onScroll:a=>{e(pt({scrollYOffset:a}))},onViewDetailsLinkClicked:a=>{a!=null?i(`/management/parent/${encodeURIComponent(a)}`):console.warn("Parent company ID is missing.")},onCompanyNameClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onMonthEndReportPageClick:a=>{i(`/management/month-end-report/company/${a.company.company.companyInfo.companyId}`)},onTaskIconClicked:a=>{const o=a.controllers.map(d=>d.user.email);a.company.company.companyInfo.tenantId!=null&&r.userEmail!=null&&Fe.trackCockpitTaskCardClicked({tenantName:a.company.company.companyInfo.name,tenantId:a.company.company.companyInfo.tenantId,user:{name:r.firstName!=null?r.firstName.concat(Bn.space,r.lastName??Bn.empty).trim():r.lastName??Bn.empty,email:r.userEmail,role:n?.userRoles??[]},controllerEmails:o}),window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/tasks`)},onFiltersChange:(a,o)=>{e(pt({filters:o}))},onCockpitReloadData:a=>{a==="management"&&e(mn())},showMonthEndReportHistoricData:(a,o)=>{i(`/management/month-end-report-history/company/${a}/${o.startOf("month").format(zm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Hm(e,t){const n={};for(const r of t.managementView.companies){const{companyId:i}=r.company.company.companyInfo;n[i]=zf(e,i).fetchState}return{managementPageData:{loggedInUser:t.loggedInUser,loggedInUserRole:t.loggedInUserRole,managementView:t.managementView,realmIdUpdateStatusByCompanyId:n}}}const Zm=ze(Hm,Gm)(id);function Sr({isMonthEndEmailDrawerOpen:e=!1,emailHistoryMode:t=!1}){const n=Be(),r=We(),i=Ut(),{useDynamicConfig:a}=wt(),{configValue:o}=a(At.monthEndInsightsEnablement),{configValue:d}=a(At.expenseAutomationEnablement),f=St(),v=ce.useMemo(()=>({allTabOptions:f,selectedTabOption:Et("management")}),[f]),s=He.getSignedInUser();if(s==null)throw Error("Can't access Management page without signing in...");const l=Se(m=>ur(m)),c=Se(m=>$f(m.userRoleState,s.userId)),y=Se(m=>m.companyViewState.zeniUsers.fetchState);ce.useEffect(()=>{l.fetchState==="Completed"?r(xt(!1)):(l.fetchState==="Not-Started"||l.fetchState==="Error")&&(r(mn()),(y==="Not-Started"||y==="Error")&&r(Ct()))},[l.fetchState]);const h=()=>{n(-1)};return U.jsxs(U.Fragment,{children:[e===!0?U.jsx($m,{isOpen:e===!0,emailHistoryMode:t===!0,onClose:h}):null,U.jsx(Zm,{headerData:v,initialOpenThreadRequest:i??void 0,loggedInUser:s,loggedInUserRole:c,managementView:l,navigate:n,companiesExcludedFromMonthEndReport:o.companiesExcludedFromMonthEndReport!=null?o.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:d.expenseAutomationEnabledCompanies!=null&&Array.isArray(d.expenseAutomationEnabledCompanies)?d.expenseAutomationEnabledCompanies:[]})]})}const Wm=e=>{const{status:t,group:n,taxStatus:r,reportSent:i,users:a,customerSatisfaction:o}=e;return t?{statusCode:t?.selectedValue?.code}:n?{companyGroupId:n?.selectedValue?.id}:r?{taxStatusCode:r?.selectedValue?.code}:i?{lastReportSentDate:i?.date,lastReportSentBusinessDay:i?.businessDay}:a?{users:a}:o?{customerSatisfaction:o}:{}};function Ym(e,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}const Jm=ze(null,Ym)(Fp);function Qo(){const e=Be();return U.jsx(Jm,{navigate:e})}const Km=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),{dateFormat:Xm}=fr.getLocalizedStrings();function Qm(e,t){const{navigate:n}=t;return{headerActions:{onNavigateBack:()=>{t.navigate("../")},filterActions:{onFilterTextChanged:(r,i)=>{r==="management"&&e(pt({filterText:i}))},onFiltersChange:(r,i)=>{r==="management"&&e(pt({filters:i}))}}},managementPageActions:{onColumnSortConfigChanged:(r,i)=>{e(pt({sortKey:r,sortOrder:i}))},changeHandlers:(r,i)=>{const a=ng(i);Object.keys(a).length>0&&e($o(r,a))},onProductVerticalsChanged:(r,i)=>{e(Gf(r,i))},onRealmIdReset:r=>{e(cn(r))},onRealmIdUpdate:(r,i)=>{e(cn(r,i))},onScroll:r=>{e(pt({scrollYOffset:r}))},onCompanyNameClicked:r=>window.open(`/${r.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:r=>window.open(`/${r.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(r,i)=>{r==="management"&&e(pt({filters:i}))},onMonthEndReportPageClick:r=>{n(`/management/month-end-report/company/${r.company.company.companyInfo.companyId}`)},onCockpitReloadData:r=>{r==="management"&&e(mn())},showMonthEndReportHistoricData:(r,i)=>{n(`/management/month-end-report-history/company/${r}/${i.startOf("month").format(Xm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function eg(e,t){const n={};for(const r of t.managementView.companies){const{companyId:i}=r.company.company.companyInfo;n[i]=zf(e,i).fetchState}return{managementPageData:{loggedInUser:t.loggedInUser,loggedInUserRole:t.loggedInUserRole,showDetailsPageLink:!1,realmIdUpdateStatusByCompanyId:n,managementView:{...t.managementView,uiState:{...t.managementView.uiState,scrollYOffset:0}}}}}const tg=ze(eg,Qm)(id);function rg(){const e=Be(),[t,n]=ce.useState(!1),r=We(),{parentId:i}=ot(),{useDynamicConfig:a}=wt(),{configValue:o}=a(At.monthEndInsightsEnablement),{configValue:d}=a(At.expenseAutomationEnablement),f=St(),v=i!=null?Se(y=>xh(y,i)):void 0;ce.useEffect(()=>{t===!1&&i!=null&&(n(!0),r(Ch(!1,i)))},[t]);const s=He.getSignedInUser();if(s==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const l=Se(y=>$f(y.userRoleState,s.userId)),c=ce.useMemo(()=>({allTabOptions:f,selectedTabOption:Et("management"),showBackButton:!0}),[f]);return i==null?U.jsx(Qo,{}):v!=null?U.jsx(tg,{headerData:c,loggedInUser:s,loggedInUserRole:l,managementView:v,navigate:e,companiesExcludedFromMonthEndReport:o.companiesExcludedFromMonthEndReport!=null?o.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:d.expenseAutomationEnabledCompanies!=null&&Array.isArray(d.expenseAutomationEnabledCompanies)?d.expenseAutomationEnabledCompanies:[]}):null}const ng=e=>{const{status:t,group:n,taxStatus:r,reportSent:i,users:a,customerSatisfaction:o}=e;return t?{statusCode:t?.selectedValue?.code}:n?{companyGroupId:n?.selectedValue?.id}:r?{taxStatusCode:r?.selectedValue?.code}:i?{lastReportSentDate:i?.date,lastReportSentBusinessDay:i?.businessDay}:a?{users:a}:o?{customerSatisfaction:o}:{}};function ig(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Sr,{})})}),U.jsx(Te,{path:"/parent/:parentId",element:U.jsx(ke,{element:U.jsx(rg,{})})}),U.jsx(Te,{path:"/month-end-report/company/:companyId",element:U.jsx(ke,{element:U.jsx(Sr,{isMonthEndEmailDrawerOpen:!0})})}),U.jsx(Te,{path:"/month-end-report-history/company/:companyId/:reportDate",element:U.jsx(ke,{element:U.jsx(Sr,{emailHistoryMode:!0,isMonthEndEmailDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Sr,{})})})]})}var Un={exports:{}},Ds;function ag(){return Ds||(Ds=1,(function(e){(function(t){function n(i){return typeof i=="function"?i:typeof et=="function"?function(o){return new et(o,"base64").toString("binary")}:typeof t.base64js=="object"?function(o){var d=t.base64js.b64ToByteArray(o);return Array.prototype.map.call(d,function(f){return String.fromCharCode(f)}).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 r=n(t.atob);t.atob=r,e&&e.exports&&(e.exports=r)})(window)})(Un)),Un.exports}var Rr={exports:{}},Vn={exports:{}},$n={},Ns;function pd(){if(Ns)return $n;Ns=1;function e(_){"@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(_)}function t(_,E,w){return Object.defineProperty(_,"prototype",{writable:!1}),_}function n(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function r(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),E&&i(_,E)}function i(_,E){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,x){return b.__proto__=x,b},i(_,E)}function a(_){var E=f();return function(){var b=v(_),x;if(E){var O=v(this).constructor;x=Reflect.construct(b,arguments,O)}else x=b.apply(this,arguments);return o(this,x)}}function o(_,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 d(_)}function d(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}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 v(_){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},v(_)}var s={},l,c;function y(_,E,w){w||(w=Error);function b(O,P,M){return typeof E=="string"?E:E(O,P,M)}var x=(function(O){r(M,O);var P=a(M);function M(W,V,S){var I;return n(this,M),I=P.call(this,b(W,V,S)),I.code=_,I}return t(M)})(w);s[_]=x}function h(_,E){if(Array.isArray(_)){var w=_.length;return _=_.map(function(b){return String(b)}),w>2?"one of ".concat(E," ").concat(_.slice(0,w-1).join(", "),", or ")+_[w-1]:w===2?"one of ".concat(E," ").concat(_[0]," or ").concat(_[1]):"of ".concat(E," ").concat(_[0])}else return"of ".concat(E," ").concat(String(_))}function m(_,E,w){return _.substr(0,E.length)===E}function g(_,E,w){return(w===void 0||w>_.length)&&(w=_.length),_.substring(w-E.length,w)===E}function u(_,E,w){return typeof w!="number"&&(w=0),w+E.length>_.length?!1:_.indexOf(E,w)!==-1}return y("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),y("ERR_INVALID_ARG_TYPE",function(_,E,w){l===void 0&&(l=sr()),l(typeof _=="string","'name' must be a string");var b;typeof E=="string"&&m(E,"not ")?(b="must not be",E=E.replace(/^not /,"")):b="must be";var x;if(g(_," argument"))x="The ".concat(_," ").concat(b," ").concat(h(E,"type"));else{var O=u(_,".")?"property":"argument";x='The "'.concat(_,'" ').concat(O," ").concat(b," ").concat(h(E,"type"))}return x+=". Received type ".concat(e(w)),x},TypeError),y("ERR_INVALID_ARG_VALUE",function(_,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=Ze());var b=c.inspect(E);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(_,"' ").concat(w,". Received ").concat(b)},TypeError),y("ERR_INVALID_RETURN_VALUE",function(_,E,w){var b;return w&&w.constructor&&w.constructor.name?b="instance of ".concat(w.constructor.name):b="type ".concat(e(w)),"Expected ".concat(_,' to be returned from the "').concat(E,'"')+" function but got ".concat(b,".")},TypeError),y("ERR_MISSING_ARGS",function(){for(var _=arguments.length,E=new Array(_),w=0;w<_;w++)E[w]=arguments[w];l===void 0&&(l=sr()),l(E.length>0,"At least one arg needs to be specified");var b="The ",x=E.length;switch(E=E.map(function(O){return'"'.concat(O,'"')}),x){case 1:b+="".concat(E[0]," argument");break;case 2:b+="".concat(E[0]," and ").concat(E[1]," arguments");break;default:b+=E.slice(0,x-1).join(", "),b+=", and ".concat(E[x-1]," arguments");break}return"".concat(b," must be specified")},TypeError),$n.codes=s,$n}var zn,Ms;function og(){if(Ms)return zn;Ms=1;function e(j,N){var H=Object.keys(j);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(j);N&&(B=B.filter(function(q){return Object.getOwnPropertyDescriptor(j,q).enumerable})),H.push.apply(H,B)}return H}function t(j){for(var N=1;N<arguments.length;N++){var H=arguments[N]!=null?arguments[N]:{};N%2?e(Object(H),!0).forEach(function(B){n(j,B,H[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(B){Object.defineProperty(j,B,Object.getOwnPropertyDescriptor(H,B))})}return j}function n(j,N,H){return N=o(N),N in j?Object.defineProperty(j,N,{value:H,enumerable:!0,configurable:!0,writable:!0}):j[N]=H,j}function r(j,N){if(!(j instanceof N))throw new TypeError("Cannot call a class as a function")}function i(j,N){for(var H=0;H<N.length;H++){var B=N[H];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(j,o(B.key),B)}}function a(j,N,H){return N&&i(j.prototype,N),Object.defineProperty(j,"prototype",{writable:!1}),j}function o(j){var N=d(j,"string");return _(N)==="symbol"?N:String(N)}function d(j,N){if(_(j)!=="object"||j===null)return j;var H=j[Symbol.toPrimitive];if(H!==void 0){var B=H.call(j,N);if(_(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}function f(j,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(N&&N.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),N&&g(j,N)}function v(j){var N=h();return function(){var B=u(j),q;if(N){var L=u(this).constructor;q=Reflect.construct(B,arguments,L)}else q=B.apply(this,arguments);return s(this,q)}}function s(j,N){if(N&&(_(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(j)}function l(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function c(j){var N=typeof Map=="function"?new Map:void 0;return c=function(B){if(B===null||!m(B))return B;if(typeof B!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(B))return N.get(B);N.set(B,q)}function q(){return y(B,arguments,u(this).constructor)}return q.prototype=Object.create(B.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),g(q,B)},c(j)}function y(j,N,H){return h()?y=Reflect.construct.bind():y=function(q,L,D){var F=[null];F.push.apply(F,L);var K=Function.bind.apply(q,F),J=new K;return D&&g(J,D.prototype),J},y.apply(null,arguments)}function h(){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 m(j){return Function.toString.call(j).indexOf("[native code]")!==-1}function g(j,N){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,q){return B.__proto__=q,B},g(j,N)}function u(j){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},u(j)}function _(j){"@babel/helpers - typeof";return _=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},_(j)}var E=Ze(),w=E.inspect,b=pd(),x=b.codes.ERR_INVALID_ARG_TYPE;function O(j,N,H){return(H===void 0||H>j.length)&&(H=j.length),j.substring(H-N.length,H)===N}function P(j,N){if(N=Math.floor(N),j.length==0||N==0)return"";var H=j.length*N;for(N=Math.floor(Math.log(N)/Math.log(2));N;)j+=j,N--;return j+=j.substring(0,H-j.length),j}var M="",W="",V="",S="",I={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:"},$=10;function z(j){var N=Object.keys(j),H=Object.create(Object.getPrototypeOf(j));return N.forEach(function(B){H[B]=j[B]}),Object.defineProperty(H,"message",{value:j.message}),H}function X(j){return w(j,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(j,N,H){var B="",q="",L=0,D="",F=!1,K=X(j),J=K.split(`
|
|
23
|
+
`;function Vm(){const e=We(),t=Be(),{companyId:n,reportDate:r}=ot(),i=Ee(f=>ur(f).fetchState);if(n==null||r==null)throw Error("Can't access historic Email without company id and reportDate...");const a=Ee(f=>Ah(f,n,on(r))),o=ce.useCallback(f=>{t(`../../management/month-end-report-history/company/${n}/${f.format(fr.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat)}`),e(bs(n,f))},[n]),d=ce.useCallback(()=>{i==="Completed"&&a.fetchState!=="In-Progress"&&a.fetchState!=="Completed"&&(e(Ih(n)),e(bs(n,on(r))))},[n,i,r,a.fetchState]);return ce.useEffect(()=>{e(Vf(!1))},[]),ce.useEffect(()=>{d()},[d]),U.jsx(Np,{monthEndReportHistoricData:a,reportSentDate:on(r),onDateChange:o,onNavigateBack:()=>t("../../"),onRefresh:d})}function $m({isOpen:e,emailHistoryMode:t,onClose:n}){return t?U.jsx(mr,{drawerLeftMargin:new at(Cn[0],Cn[0],Cn[0]),isOpen:e,onClose:n,children:U.jsx(Vm,{})}):U.jsx(Mp,{isOpen:e,children:U.jsx(Bm,{onClose:n})})}const{common:{strings:Bn},dateFormat:zm}=fr.getLocalizedStrings();function Gm(e,t){const{loggedInUserRole:n,loggedInUser:r,navigate:i}=t;return{headerActions:{onTabChange:a=>{const o=kt(a),d=Ft(a);Fe.trackCockpitTabClicked(d),i(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(pt({filterText:o}))},onFiltersChange:(a,o)=>{e(pt({filters:o}))}}},managementPageActions:{onColumnSortConfigChanged:(a,o)=>{e(pt({sortKey:a,sortOrder:o}))},changeHandlers:(a,o)=>{const d=Wm(o);Object.keys(d).length>0&&e($o(a,d))},onProductVerticalsChanged:(a,o)=>{e(Gf(a,o))},onRealmIdReset:a=>{e(cn(a))},onRealmIdUpdate:(a,o)=>{e(cn(a,o))},onScroll:a=>{e(pt({scrollYOffset:a}))},onViewDetailsLinkClicked:a=>{a!=null?i(`/management/parent/${encodeURIComponent(a)}`):console.warn("Parent company ID is missing.")},onCompanyNameClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:a=>window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onMonthEndReportPageClick:a=>{i(`/management/month-end-report/company/${a.company.company.companyInfo.companyId}`)},onTaskIconClicked:a=>{const o=a.controllers.map(d=>d.user.email);a.company.company.companyInfo.tenantId!=null&&r.userEmail!=null&&Fe.trackCockpitTaskCardClicked({tenantName:a.company.company.companyInfo.name,tenantId:a.company.company.companyInfo.tenantId,user:{name:r.firstName!=null?r.firstName.concat(Bn.space,r.lastName??Bn.empty).trim():r.lastName??Bn.empty,email:r.userEmail,role:n?.userRoles??[]},controllerEmails:o}),window.open(`/${a.company.company.companyInfo.primaryEmailDomain}/tasks`)},onFiltersChange:(a,o)=>{e(pt({filters:o}))},onCockpitReloadData:a=>{a==="management"&&e(mn())},showMonthEndReportHistoricData:(a,o)=>{i(`/management/month-end-report-history/company/${a}/${o.startOf("month").format(zm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function Hm(e,t){const n={};for(const r of t.managementView.companies){const{companyId:i}=r.company.company.companyInfo;n[i]=zf(e,i).fetchState}return{managementPageData:{loggedInUser:t.loggedInUser,loggedInUserRole:t.loggedInUserRole,managementView:t.managementView,realmIdUpdateStatusByCompanyId:n}}}const Zm=ze(Hm,Gm)(id);function Er({isMonthEndEmailDrawerOpen:e=!1,emailHistoryMode:t=!1}){const n=Be(),r=We(),i=Ut(),{useDynamicConfig:a}=wt(),{configValue:o}=a(At.monthEndInsightsEnablement),{configValue:d}=a(At.expenseAutomationEnablement),f=Et(),v=ce.useMemo(()=>({allTabOptions:f,selectedTabOption:St("management")}),[f]),s=He.getSignedInUser();if(s==null)throw Error("Can't access Management page without signing in...");const l=Ee(m=>ur(m)),c=Ee(m=>$f(m.userRoleState,s.userId)),y=Ee(m=>m.companyViewState.zeniUsers.fetchState);ce.useEffect(()=>{l.fetchState==="Completed"?r(xt(!1)):(l.fetchState==="Not-Started"||l.fetchState==="Error")&&(r(mn()),(y==="Not-Started"||y==="Error")&&r(Ct()))},[l.fetchState]);const h=()=>{n(-1)};return U.jsxs(U.Fragment,{children:[e===!0?U.jsx($m,{isOpen:e===!0,emailHistoryMode:t===!0,onClose:h}):null,U.jsx(Zm,{headerData:v,initialOpenThreadRequest:i??void 0,loggedInUser:s,loggedInUserRole:c,managementView:l,navigate:n,companiesExcludedFromMonthEndReport:o.companiesExcludedFromMonthEndReport!=null?o.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:d.expenseAutomationEnabledCompanies!=null&&Array.isArray(d.expenseAutomationEnabledCompanies)?d.expenseAutomationEnabledCompanies:[]})]})}const Wm=e=>{const{status:t,group:n,taxStatus:r,reportSent:i,users:a,customerSatisfaction:o}=e;return t?{statusCode:t?.selectedValue?.code}:n?{companyGroupId:n?.selectedValue?.id}:r?{taxStatusCode:r?.selectedValue?.code}:i?{lastReportSentDate:i?.date,lastReportSentBusinessDay:i?.businessDay}:a?{users:a}:o?{customerSatisfaction:o}:{}};function Ym(e,t){return{onGoBack:()=>{t.navigate(-1)},onGoHome:()=>{t.navigate("/")}}}const Jm=ze(null,Ym)(Fp);function Qo(){const e=Be();return U.jsx(Jm,{navigate:e})}const Km=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),{dateFormat:Xm}=fr.getLocalizedStrings();function Qm(e,t){const{navigate:n}=t;return{headerActions:{onNavigateBack:()=>{t.navigate("../")},filterActions:{onFilterTextChanged:(r,i)=>{r==="management"&&e(pt({filterText:i}))},onFiltersChange:(r,i)=>{r==="management"&&e(pt({filters:i}))}}},managementPageActions:{onColumnSortConfigChanged:(r,i)=>{e(pt({sortKey:r,sortOrder:i}))},changeHandlers:(r,i)=>{const a=ng(i);Object.keys(a).length>0&&e($o(r,a))},onProductVerticalsChanged:(r,i)=>{e(Gf(r,i))},onRealmIdReset:r=>{e(cn(r))},onRealmIdUpdate:(r,i)=>{e(cn(r,i))},onScroll:r=>{e(pt({scrollYOffset:r}))},onCompanyNameClicked:r=>window.open(`/${r.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:r=>window.open(`/${r.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(r,i)=>{r==="management"&&e(pt({filters:i}))},onMonthEndReportPageClick:r=>{n(`/management/month-end-report/company/${r.company.company.companyInfo.companyId}`)},onCockpitReloadData:r=>{r==="management"&&e(mn())},showMonthEndReportHistoricData:(r,i)=>{n(`/management/month-end-report-history/company/${r}/${i.startOf("month").format(Xm.analytics.YYYYDashMMDashDDFormat)}`)}}}}function eg(e,t){const n={};for(const r of t.managementView.companies){const{companyId:i}=r.company.company.companyInfo;n[i]=zf(e,i).fetchState}return{managementPageData:{loggedInUser:t.loggedInUser,loggedInUserRole:t.loggedInUserRole,showDetailsPageLink:!1,realmIdUpdateStatusByCompanyId:n,managementView:{...t.managementView,uiState:{...t.managementView.uiState,scrollYOffset:0}}}}}const tg=ze(eg,Qm)(id);function rg(){const e=Be(),[t,n]=ce.useState(!1),r=We(),{parentId:i}=ot(),{useDynamicConfig:a}=wt(),{configValue:o}=a(At.monthEndInsightsEnablement),{configValue:d}=a(At.expenseAutomationEnablement),f=Et(),v=i!=null?Ee(y=>xh(y,i)):void 0;ce.useEffect(()=>{t===!1&&i!=null&&(n(!0),r(Ch(!1,i)))},[t]);const s=He.getSignedInUser();if(s==null)throw Error("Can't access Management Parent Subsidiary page without signing in...");const l=Ee(y=>$f(y.userRoleState,s.userId)),c=ce.useMemo(()=>({allTabOptions:f,selectedTabOption:St("management"),showBackButton:!0}),[f]);return i==null?U.jsx(Qo,{}):v!=null?U.jsx(tg,{headerData:c,loggedInUser:s,loggedInUserRole:l,managementView:v,navigate:e,companiesExcludedFromMonthEndReport:o.companiesExcludedFromMonthEndReport!=null?o.companiesExcludedFromMonthEndReport:[],expenseAutomationEnabledCompanies:d.expenseAutomationEnabledCompanies!=null&&Array.isArray(d.expenseAutomationEnabledCompanies)?d.expenseAutomationEnabledCompanies:[]}):null}const ng=e=>{const{status:t,group:n,taxStatus:r,reportSent:i,users:a,customerSatisfaction:o}=e;return t?{statusCode:t?.selectedValue?.code}:n?{companyGroupId:n?.selectedValue?.id}:r?{taxStatusCode:r?.selectedValue?.code}:i?{lastReportSentDate:i?.date,lastReportSentBusinessDay:i?.businessDay}:a?{users:a}:o?{customerSatisfaction:o}:{}};function ig(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Er,{})})}),U.jsx(Te,{path:"/parent/:parentId",element:U.jsx(ke,{element:U.jsx(rg,{})})}),U.jsx(Te,{path:"/month-end-report/company/:companyId",element:U.jsx(ke,{element:U.jsx(Er,{isMonthEndEmailDrawerOpen:!0})})}),U.jsx(Te,{path:"/month-end-report-history/company/:companyId/:reportDate",element:U.jsx(ke,{element:U.jsx(Er,{emailHistoryMode:!0,isMonthEndEmailDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Er,{})})})]})}var Un={exports:{}},Ds;function ag(){return Ds||(Ds=1,(function(e){(function(t){function n(i){return typeof i=="function"?i:typeof et=="function"?function(o){return new et(o,"base64").toString("binary")}:typeof t.base64js=="object"?function(o){var d=t.base64js.b64ToByteArray(o);return Array.prototype.map.call(d,function(f){return String.fromCharCode(f)}).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 r=n(t.atob);t.atob=r,e&&e.exports&&(e.exports=r)})(window)})(Un)),Un.exports}var Rr={exports:{}},Vn={exports:{}},$n={},Ns;function pd(){if(Ns)return $n;Ns=1;function e(_){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},e(_)}function t(_,S,w){return Object.defineProperty(_,"prototype",{writable:!1}),_}function n(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")}function r(_,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(S&&S.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),S&&i(_,S)}function i(_,S){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,x){return b.__proto__=x,b},i(_,S)}function a(_){var S=f();return function(){var b=v(_),x;if(S){var O=v(this).constructor;x=Reflect.construct(b,arguments,O)}else x=b.apply(this,arguments);return o(this,x)}}function o(_,S){if(S&&(e(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(_)}function d(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}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 v(_){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},v(_)}var s={},l,c;function y(_,S,w){w||(w=Error);function b(O,P,M){return typeof S=="string"?S:S(O,P,M)}var x=(function(O){r(M,O);var P=a(M);function M(W,V,E){var I;return n(this,M),I=P.call(this,b(W,V,E)),I.code=_,I}return t(M)})(w);s[_]=x}function h(_,S){if(Array.isArray(_)){var w=_.length;return _=_.map(function(b){return String(b)}),w>2?"one of ".concat(S," ").concat(_.slice(0,w-1).join(", "),", or ")+_[w-1]:w===2?"one of ".concat(S," ").concat(_[0]," or ").concat(_[1]):"of ".concat(S," ").concat(_[0])}else return"of ".concat(S," ").concat(String(_))}function m(_,S,w){return _.substr(0,S.length)===S}function g(_,S,w){return(w===void 0||w>_.length)&&(w=_.length),_.substring(w-S.length,w)===S}function u(_,S,w){return typeof w!="number"&&(w=0),w+S.length>_.length?!1:_.indexOf(S,w)!==-1}return y("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),y("ERR_INVALID_ARG_TYPE",function(_,S,w){l===void 0&&(l=sr()),l(typeof _=="string","'name' must be a string");var b;typeof S=="string"&&m(S,"not ")?(b="must not be",S=S.replace(/^not /,"")):b="must be";var x;if(g(_," argument"))x="The ".concat(_," ").concat(b," ").concat(h(S,"type"));else{var O=u(_,".")?"property":"argument";x='The "'.concat(_,'" ').concat(O," ").concat(b," ").concat(h(S,"type"))}return x+=". Received type ".concat(e(w)),x},TypeError),y("ERR_INVALID_ARG_VALUE",function(_,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=Ze());var b=c.inspect(S);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(_,"' ").concat(w,". Received ").concat(b)},TypeError),y("ERR_INVALID_RETURN_VALUE",function(_,S,w){var b;return w&&w.constructor&&w.constructor.name?b="instance of ".concat(w.constructor.name):b="type ".concat(e(w)),"Expected ".concat(_,' to be returned from the "').concat(S,'"')+" function but got ".concat(b,".")},TypeError),y("ERR_MISSING_ARGS",function(){for(var _=arguments.length,S=new Array(_),w=0;w<_;w++)S[w]=arguments[w];l===void 0&&(l=sr()),l(S.length>0,"At least one arg needs to be specified");var b="The ",x=S.length;switch(S=S.map(function(O){return'"'.concat(O,'"')}),x){case 1:b+="".concat(S[0]," argument");break;case 2:b+="".concat(S[0]," and ").concat(S[1]," arguments");break;default:b+=S.slice(0,x-1).join(", "),b+=", and ".concat(S[x-1]," arguments");break}return"".concat(b," must be specified")},TypeError),$n.codes=s,$n}var zn,Ms;function og(){if(Ms)return zn;Ms=1;function e(j,N){var H=Object.keys(j);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(j);N&&(B=B.filter(function(q){return Object.getOwnPropertyDescriptor(j,q).enumerable})),H.push.apply(H,B)}return H}function t(j){for(var N=1;N<arguments.length;N++){var H=arguments[N]!=null?arguments[N]:{};N%2?e(Object(H),!0).forEach(function(B){n(j,B,H[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(B){Object.defineProperty(j,B,Object.getOwnPropertyDescriptor(H,B))})}return j}function n(j,N,H){return N=o(N),N in j?Object.defineProperty(j,N,{value:H,enumerable:!0,configurable:!0,writable:!0}):j[N]=H,j}function r(j,N){if(!(j instanceof N))throw new TypeError("Cannot call a class as a function")}function i(j,N){for(var H=0;H<N.length;H++){var B=N[H];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(j,o(B.key),B)}}function a(j,N,H){return N&&i(j.prototype,N),Object.defineProperty(j,"prototype",{writable:!1}),j}function o(j){var N=d(j,"string");return _(N)==="symbol"?N:String(N)}function d(j,N){if(_(j)!=="object"||j===null)return j;var H=j[Symbol.toPrimitive];if(H!==void 0){var B=H.call(j,N);if(_(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}function f(j,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(N&&N.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),N&&g(j,N)}function v(j){var N=h();return function(){var B=u(j),q;if(N){var L=u(this).constructor;q=Reflect.construct(B,arguments,L)}else q=B.apply(this,arguments);return s(this,q)}}function s(j,N){if(N&&(_(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(j)}function l(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function c(j){var N=typeof Map=="function"?new Map:void 0;return c=function(B){if(B===null||!m(B))return B;if(typeof B!="function")throw new TypeError("Super expression must either be null or a function");if(typeof N<"u"){if(N.has(B))return N.get(B);N.set(B,q)}function q(){return y(B,arguments,u(this).constructor)}return q.prototype=Object.create(B.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),g(q,B)},c(j)}function y(j,N,H){return h()?y=Reflect.construct.bind():y=function(q,L,D){var F=[null];F.push.apply(F,L);var K=Function.bind.apply(q,F),J=new K;return D&&g(J,D.prototype),J},y.apply(null,arguments)}function h(){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 m(j){return Function.toString.call(j).indexOf("[native code]")!==-1}function g(j,N){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,q){return B.__proto__=q,B},g(j,N)}function u(j){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},u(j)}function _(j){"@babel/helpers - typeof";return _=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},_(j)}var S=Ze(),w=S.inspect,b=pd(),x=b.codes.ERR_INVALID_ARG_TYPE;function O(j,N,H){return(H===void 0||H>j.length)&&(H=j.length),j.substring(H-N.length,H)===N}function P(j,N){if(N=Math.floor(N),j.length==0||N==0)return"";var H=j.length*N;for(N=Math.floor(Math.log(N)/Math.log(2));N;)j+=j,N--;return j+=j.substring(0,H-j.length),j}var M="",W="",V="",E="",I={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:"},$=10;function z(j){var N=Object.keys(j),H=Object.create(Object.getPrototypeOf(j));return N.forEach(function(B){H[B]=j[B]}),Object.defineProperty(H,"message",{value:j.message}),H}function X(j){return w(j,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(j,N,H){var B="",q="",L=0,D="",F=!1,K=X(j),J=K.split(`
|
|
24
24
|
`),ae=X(N).split(`
|
|
25
25
|
`),ue=0,ve="";if(H==="strictEqual"&&_(j)==="object"&&_(N)==="object"&&j!==null&&N!==null&&(H="strictEqualObject"),J.length===1&&ae.length===1&&J[0]!==ae[0]){var me=J[0].length+ae[0].length;if(me<=$){if((_(j)!=="object"||j===null)&&(_(N)!=="object"||N===null)&&(j!==0||N!==0))return"".concat(I[H],`
|
|
26
26
|
|
|
@@ -28,33 +28,33 @@ import{Sn as qf,So as Df,lQ as xt,f5 as vs,Sp as Dt,fe as an,f3 as Nf,Sq as Jt,f
|
|
|
28
28
|
`)}else if(H!=="strictEqualObject"){var we=ye.stderr&&ye.stderr.isTTY?ye.stderr.columns:80;if(me<we){for(;J[0][ue]===ae[0][ue];)ue++;ue>2&&(ve=`
|
|
29
29
|
`.concat(P(" ",ue),"^"),ue=0)}}}for(var Ce=J[J.length-1],Pe=ae[ae.length-1];Ce===Pe&&(ue++<2?D=`
|
|
30
30
|
`.concat(Ce).concat(D):B=Ce,J.pop(),ae.pop(),!(J.length===0||ae.length===0));)Ce=J[J.length-1],Pe=ae[ae.length-1];var je=Math.max(J.length,ae.length);if(je===0){var Ie=K.split(`
|
|
31
|
-
`);if(Ie.length>30)for(Ie[26]="".concat(M,"...").concat(
|
|
31
|
+
`);if(Ie.length>30)for(Ie[26]="".concat(M,"...").concat(E);Ie.length>27;)Ie.pop();return"".concat(I.notIdentical,`
|
|
32
32
|
|
|
33
33
|
`).concat(Ie.join(`
|
|
34
34
|
`),`
|
|
35
35
|
`)}ue>3&&(D=`
|
|
36
|
-
`.concat(M,"...").concat(
|
|
37
|
-
`.concat(B).concat(D),B="");var
|
|
38
|
-
`.concat(W,"+ actual").concat(
|
|
39
|
-
`.concat(M,"...").concat(
|
|
40
|
-
`.concat(ae[ue-2]),
|
|
41
|
-
`.concat(ae[ue-1]),
|
|
42
|
-
`.concat(V,"-").concat(
|
|
43
|
-
`.concat(M,"...").concat(
|
|
44
|
-
`.concat(J[ue-2]),
|
|
45
|
-
`.concat(J[ue-1]),
|
|
46
|
-
`.concat(W,"+").concat(
|
|
47
|
-
`.concat(M,"...").concat(
|
|
48
|
-
`.concat(J[ue-2]),
|
|
49
|
-
`.concat(J[ue-1]),
|
|
50
|
-
`.concat(W,"+").concat(
|
|
51
|
-
`.concat(V,"-").concat(
|
|
52
|
-
`.concat(Ye),
|
|
36
|
+
`.concat(M,"...").concat(E).concat(D),F=!0),B!==""&&(D=`
|
|
37
|
+
`.concat(B).concat(D),B="");var Se=0,$e=I[H]+`
|
|
38
|
+
`.concat(W,"+ actual").concat(E," ").concat(V,"- expected").concat(E),st=" ".concat(M,"...").concat(E," Lines skipped");for(ue=0;ue<je;ue++){var qe=ue-L;if(J.length<ue+1)qe>1&&ue>2&&(qe>4?(q+=`
|
|
39
|
+
`.concat(M,"...").concat(E),F=!0):qe>3&&(q+=`
|
|
40
|
+
`.concat(ae[ue-2]),Se++),q+=`
|
|
41
|
+
`.concat(ae[ue-1]),Se++),L=ue,B+=`
|
|
42
|
+
`.concat(V,"-").concat(E," ").concat(ae[ue]),Se++;else if(ae.length<ue+1)qe>1&&ue>2&&(qe>4?(q+=`
|
|
43
|
+
`.concat(M,"...").concat(E),F=!0):qe>3&&(q+=`
|
|
44
|
+
`.concat(J[ue-2]),Se++),q+=`
|
|
45
|
+
`.concat(J[ue-1]),Se++),L=ue,q+=`
|
|
46
|
+
`.concat(W,"+").concat(E," ").concat(J[ue]),Se++;else{var Ne=ae[ue],Ye=J[ue],Y=Ye!==Ne&&(!O(Ye,",")||Ye.slice(0,-1)!==Ne);Y&&O(Ne,",")&&Ne.slice(0,-1)===Ye&&(Y=!1,Ye+=","),Y?(qe>1&&ue>2&&(qe>4?(q+=`
|
|
47
|
+
`.concat(M,"...").concat(E),F=!0):qe>3&&(q+=`
|
|
48
|
+
`.concat(J[ue-2]),Se++),q+=`
|
|
49
|
+
`.concat(J[ue-1]),Se++),L=ue,q+=`
|
|
50
|
+
`.concat(W,"+").concat(E," ").concat(Ye),B+=`
|
|
51
|
+
`.concat(V,"-").concat(E," ").concat(Ne),Se+=2):(q+=B,B="",(qe===1||ue===0)&&(q+=`
|
|
52
|
+
`.concat(Ye),Se++))}if(Se>20&&ue<je-2)return"".concat($e).concat(st,`
|
|
53
53
|
`).concat(q,`
|
|
54
|
-
`).concat(M,"...").concat(
|
|
55
|
-
`)+"".concat(M,"...").concat(
|
|
56
|
-
`).concat(q).concat(B).concat(D).concat(ve)}var k=(function(j,N){f(B,j);var H=v(B);function B(q){var L;if(r(this,B),_(q)!=="object"||q===null)throw new x("options","Object",q);var D=q.message,F=q.operator,K=q.stackStartFn,J=q.actual,ae=q.expected,ue=Error.stackTraceLimit;if(Error.stackTraceLimit=0,D!=null)L=H.call(this,String(D));else if(ye.stderr&&ye.stderr.isTTY&&(ye.stderr&&ye.stderr.getColorDepth&&ye.stderr.getColorDepth()!==1?(M="\x1B[34m",W="\x1B[32m",
|
|
57
|
-
`);if(F==="notStrictEqual"&&_(J)==="object"&&J!==null&&(ve=I.notStrictEqualObject),me.length>30)for(me[26]="".concat(M,"...").concat(
|
|
54
|
+
`).concat(M,"...").concat(E).concat(B,`
|
|
55
|
+
`)+"".concat(M,"...").concat(E)}return"".concat($e).concat(F?st:"",`
|
|
56
|
+
`).concat(q).concat(B).concat(D).concat(ve)}var k=(function(j,N){f(B,j);var H=v(B);function B(q){var L;if(r(this,B),_(q)!=="object"||q===null)throw new x("options","Object",q);var D=q.message,F=q.operator,K=q.stackStartFn,J=q.actual,ae=q.expected,ue=Error.stackTraceLimit;if(Error.stackTraceLimit=0,D!=null)L=H.call(this,String(D));else if(ye.stderr&&ye.stderr.isTTY&&(ye.stderr&&ye.stderr.getColorDepth&&ye.stderr.getColorDepth()!==1?(M="\x1B[34m",W="\x1B[32m",E="\x1B[39m",V="\x1B[31m"):(M="",W="",E="",V="")),_(J)==="object"&&J!==null&&_(ae)==="object"&&ae!==null&&"stack"in J&&J instanceof Error&&"stack"in ae&&ae instanceof Error&&(J=z(J),ae=z(ae)),F==="deepStrictEqual"||F==="strictEqual")L=H.call(this,A(J,ae,F));else if(F==="notDeepStrictEqual"||F==="notStrictEqual"){var ve=I[F],me=X(J).split(`
|
|
57
|
+
`);if(F==="notStrictEqual"&&_(J)==="object"&&J!==null&&(ve=I.notStrictEqualObject),me.length>30)for(me[26]="".concat(M,"...").concat(E);me.length>27;)me.pop();me.length===1?L=H.call(this,"".concat(ve," ").concat(me[0])):L=H.call(this,"".concat(ve,`
|
|
58
58
|
|
|
59
59
|
`).concat(me.join(`
|
|
60
60
|
`),`
|
|
@@ -66,8 +66,8 @@ import{Sn as qf,So as Df,lQ as xt,f5 as vs,Sp as Dt,fe as an,f3 as Nf,Sq as Jt,f
|
|
|
66
66
|
|
|
67
67
|
should equal
|
|
68
68
|
|
|
69
|
-
`):Ce=" ".concat(F," ").concat(Ce)),L=H.call(this,"".concat(we).concat(Ce))}return Error.stackTraceLimit=ue,L.generatedMessage=!D,Object.defineProperty(l(L),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),L.code="ERR_ASSERTION",L.actual=J,L.expected=ae,L.operator=F,Error.captureStackTrace&&Error.captureStackTrace(l(L),K),L.stack,L.name="AssertionError",s(L)}return a(B,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:N,value:function(L,D){return w(this,t(t({},D),{},{customInspect:!1,depth:0}))}}]),B})(c(Error),w.custom);return zn=k,zn}var Gn,Fs;function md(){if(Fs)return Gn;Fs=1;var e=Object.prototype.toString;return Gn=function(n){var r=e.call(n),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&e.call(n.callee)==="[object Function]"),i},Gn}var Hn,Bs;function sg(){if(Bs)return Hn;Bs=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=md(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(c){var y=c.constructor;return y&&y.prototype===c},v={$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},s=(function(){if(typeof window>"u")return!1;for(var c in window)try{if(!v["$"+c]&&t.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{f(window[c])}catch{return!0}}catch{return!0}return!1})(),l=function(c){if(typeof window>"u"||!s)return f(c);try{return f(c)}catch{return!1}};e=function(y){var h=y!==null&&typeof y=="object",m=n.call(y)==="[object Function]",g=r(y),u=h&&n.call(y)==="[object String]",_=[];if(!h&&!m&&!g)throw new TypeError("Object.keys called on a non-object");var
|
|
70
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(Y,Q){if(Y){if(typeof Y=="string")return r(Y,Q);var le=Object.prototype.toString.call(Y).slice(8,-1);if(le==="Object"&&Y.constructor&&(le=Y.constructor.name),le==="Map"||le==="Set")return Array.from(Y);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return r(Y,Q)}}function r(Y,Q){(Q==null||Q>Y.length)&&(Q=Y.length);for(var le=0,ge=new Array(Q);le<Q;le++)ge[le]=Y[le];return ge}function i(Y,Q){var le=Y==null?null:typeof Symbol<"u"&&Y[Symbol.iterator]||Y["@@iterator"];if(le!=null){var ge,de,Re,Oe,C=[],ne=!0,se=!1;try{if(Re=(le=le.call(Y)).next,Q!==0)for(;!(ne=(ge=Re.call(le)).done)&&(C.push(ge.value),C.length!==Q);ne=!0);}catch(fe){se=!0,de=fe}finally{try{if(!ne&&le.return!=null&&(Oe=le.return(),Object(Oe)!==Oe))return}finally{if(se)throw de}}return C}}function a(Y){if(Array.isArray(Y))return Y}function o(Y){"@babel/helpers - typeof";return o=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},o(Y)}var d=/a/g.flags!==void 0,f=function(Q){var le=[];return Q.forEach(function(ge){return le.push(ge)}),le},v=function(Q){var le=[];return Q.forEach(function(ge,de){return le.push([de,ge])}),le},s=Object.is?Object.is:dg(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:pg();function y(Y){return Y.call.bind(Y)}var h=y(Object.prototype.hasOwnProperty),m=y(Object.prototype.propertyIsEnumerable),g=y(Object.prototype.toString),u=Ze().types,_=u.isAnyArrayBuffer,E=u.isArrayBufferView,w=u.isDate,b=u.isMap,x=u.isRegExp,O=u.isSet,P=u.isNativeError,M=u.isBoxedPrimitive,W=u.isNumberObject,V=u.isStringObject,S=u.isBooleanObject,I=u.isBigIntObject,$=u.isSymbolObject,z=u.isFloat32Array,X=u.isFloat64Array;function A(Y){if(Y.length===0||Y.length>10)return!0;for(var Q=0;Q<Y.length;Q++){var le=Y.charCodeAt(Q);if(le<48||le>57)return!0}return Y.length===10&&Y>=Math.pow(2,32)}function k(Y){return Object.keys(Y).filter(A).concat(l(Y).filter(Object.prototype.propertyIsEnumerable.bind(Y)))}function j(Y,Q){if(Y===Q)return 0;for(var le=Y.length,ge=Q.length,de=0,Re=Math.min(le,ge);de<Re;++de)if(Y[de]!==Q[de]){le=Y[de],ge=Q[de];break}return le<ge?-1:ge<le?1:0}var N=!0,H=!1,B=0,q=1,L=2,D=3;function F(Y,Q){return d?Y.source===Q.source&&Y.flags===Q.flags:RegExp.prototype.toString.call(Y)===RegExp.prototype.toString.call(Q)}function K(Y,Q){if(Y.byteLength!==Q.byteLength)return!1;for(var le=0;le<Y.byteLength;le++)if(Y[le]!==Q[le])return!1;return!0}function J(Y,Q){return Y.byteLength!==Q.byteLength?!1:j(new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength),new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength))===0}function ae(Y,Q){return Y.byteLength===Q.byteLength&&j(new Uint8Array(Y),new Uint8Array(Q))===0}function ue(Y,Q){return W(Y)?W(Q)&&s(Number.prototype.valueOf.call(Y),Number.prototype.valueOf.call(Q)):V(Y)?V(Q)&&String.prototype.valueOf.call(Y)===String.prototype.valueOf.call(Q):S(Y)?S(Q)&&Boolean.prototype.valueOf.call(Y)===Boolean.prototype.valueOf.call(Q):I(Y)?I(Q)&&BigInt.prototype.valueOf.call(Y)===BigInt.prototype.valueOf.call(Q):$(Q)&&Symbol.prototype.valueOf.call(Y)===Symbol.prototype.valueOf.call(Q)}function ve(Y,Q,le,ge){if(Y===Q)return Y!==0?!0:le?s(Y,Q):!0;if(le){if(o(Y)!=="object")return typeof Y=="number"&&c(Y)&&c(Q);if(o(Q)!=="object"||Y===null||Q===null||Object.getPrototypeOf(Y)!==Object.getPrototypeOf(Q))return!1}else{if(Y===null||o(Y)!=="object")return Q===null||o(Q)!=="object"?Y==Q:!1;if(Q===null||o(Q)!=="object")return!1}var de=g(Y),Re=g(Q);if(de!==Re)return!1;if(Array.isArray(Y)){if(Y.length!==Q.length)return!1;var Oe=k(Y),C=k(Q);return Oe.length!==C.length?!1:we(Y,Q,le,ge,q,Oe)}if(de==="[object Object]"&&(!b(Y)&&b(Q)||!O(Y)&&O(Q)))return!1;if(w(Y)){if(!w(Q)||Date.prototype.getTime.call(Y)!==Date.prototype.getTime.call(Q))return!1}else if(x(Y)){if(!x(Q)||!F(Y,Q))return!1}else if(P(Y)||Y instanceof Error){if(Y.message!==Q.message||Y.name!==Q.name)return!1}else if(E(Y)){if(!le&&(z(Y)||X(Y))){if(!K(Y,Q))return!1}else if(!J(Y,Q))return!1;var ne=k(Y),se=k(Q);return ne.length!==se.length?!1:we(Y,Q,le,ge,B,ne)}else{if(O(Y))return!O(Q)||Y.size!==Q.size?!1:we(Y,Q,le,ge,L);if(b(Y))return!b(Q)||Y.size!==Q.size?!1:we(Y,Q,le,ge,D);if(_(Y)){if(!ae(Y,Q))return!1}else if(M(Y)&&!ue(Y,Q))return!1}return we(Y,Q,le,ge,B)}function me(Y,Q){return Q.filter(function(le){return m(Y,le)})}function we(Y,Q,le,ge,de,Re){if(arguments.length===5){Re=Object.keys(Y);var Oe=Object.keys(Q);if(Re.length!==Oe.length)return!1}for(var C=0;C<Re.length;C++)if(!h(Q,Re[C]))return!1;if(le&&arguments.length===5){var ne=l(Y);if(ne.length!==0){var se=0;for(C=0;C<ne.length;C++){var fe=ne[C];if(m(Y,fe)){if(!m(Q,fe))return!1;Re.push(fe),se++}else if(m(Q,fe))return!1}var Z=l(Q);if(ne.length!==Z.length&&me(Q,Z).length!==se)return!1}else{var ie=l(Q);if(ie.length!==0&&me(Q,ie).length!==0)return!1}}if(Re.length===0&&(de===B||de===q&&Y.length===0||Y.size===0))return!0;if(ge===void 0)ge={val1:new Map,val2:new Map,position:0};else{var R=ge.val1.get(Y);if(R!==void 0){var oe=ge.val2.get(Q);if(oe!==void 0)return R===oe}ge.position++}ge.val1.set(Y,ge.position),ge.val2.set(Q,ge.position);var be=qe(Y,Q,le,Re,ge,de);return ge.val1.delete(Y),ge.val2.delete(Q),be}function Ce(Y,Q,le,ge){for(var de=f(Y),Re=0;Re<de.length;Re++){var Oe=de[Re];if(ve(Q,Oe,le,ge))return Y.delete(Oe),!0}return!1}function Pe(Y){switch(o(Y)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":Y=+Y;case"number":if(c(Y))return!1}return!0}function je(Y,Q,le){var ge=Pe(le);return ge??(Q.has(ge)&&!Y.has(ge))}function Ie(Y,Q,le,ge,de){var Re=Pe(le);if(Re!=null)return Re;var Oe=Q.get(Re);return Oe===void 0&&!Q.has(Re)||!ve(ge,Oe,!1,de)?!1:!Y.has(Re)&&ve(ge,Oe,!1,de)}function Ee(Y,Q,le,ge){for(var de=null,Re=f(Y),Oe=0;Oe<Re.length;Oe++){var C=Re[Oe];if(o(C)==="object"&&C!==null)de===null&&(de=new Set),de.add(C);else if(!Q.has(C)){if(le||!je(Y,Q,C))return!1;de===null&&(de=new Set),de.add(C)}}if(de!==null){for(var ne=f(Q),se=0;se<ne.length;se++){var fe=ne[se];if(o(fe)==="object"&&fe!==null){if(!Ce(de,fe,le,ge))return!1}else if(!le&&!Y.has(fe)&&!Ce(de,fe,le,ge))return!1}return de.size===0}return!0}function $e(Y,Q,le,ge,de,Re){for(var Oe=f(Y),C=0;C<Oe.length;C++){var ne=Oe[C];if(ve(le,ne,de,Re)&&ve(ge,Q.get(ne),de,Re))return Y.delete(ne),!0}return!1}function st(Y,Q,le,ge){for(var de=null,Re=v(Y),Oe=0;Oe<Re.length;Oe++){var C=e(Re[Oe],2),ne=C[0],se=C[1];if(o(ne)==="object"&&ne!==null)de===null&&(de=new Set),de.add(ne);else{var fe=Q.get(ne);if(fe===void 0&&!Q.has(ne)||!ve(se,fe,le,ge)){if(le||!Ie(Y,Q,ne,se,ge))return!1;de===null&&(de=new Set),de.add(ne)}}}if(de!==null){for(var Z=v(Q),ie=0;ie<Z.length;ie++){var R=e(Z[ie],2),oe=R[0],be=R[1];if(o(oe)==="object"&&oe!==null){if(!$e(de,Y,oe,be,le,ge))return!1}else if(!le&&(!Y.has(oe)||!ve(Y.get(oe),be,!1,ge))&&!$e(de,Y,oe,be,!1,ge))return!1}return de.size===0}return!0}function qe(Y,Q,le,ge,de,Re){var Oe=0;if(Re===L){if(!Ee(Y,Q,le,de))return!1}else if(Re===D){if(!st(Y,Q,le,de))return!1}else if(Re===q)for(;Oe<Y.length;Oe++)if(h(Y,Oe)){if(!h(Q,Oe)||!ve(Y[Oe],Q[Oe],le,de))return!1}else{if(h(Q,Oe))return!1;for(var C=Object.keys(Y);Oe<C.length;Oe++){var ne=C[Oe];if(!h(Q,ne)||!ve(Y[ne],Q[ne],le,de))return!1}return C.length===Object.keys(Q).length}for(Oe=0;Oe<ge.length;Oe++){var se=ge[Oe];if(!ve(Y[se],Q[se],le,de))return!1}return!0}function Ne(Y,Q){return ve(Y,Q,H)}function Ye(Y,Q){return ve(Y,Q,N)}return oi={isDeepEqual:Ne,isDeepStrictEqual:Ye},oi}var tu;function sr(){if(tu)return Vn.exports;tu=1;function e(L){"@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(L)}function t(L,D,F){return Object.defineProperty(L,"prototype",{writable:!1}),L}function n(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}var r=pd(),i=r.codes,a=i.ERR_AMBIGUOUS_ARGUMENT,o=i.ERR_INVALID_ARG_TYPE,d=i.ERR_INVALID_ARG_VALUE,f=i.ERR_INVALID_RETURN_VALUE,v=i.ERR_MISSING_ARGS,s=og(),l=Ze(),c=l.inspect,y=Ze().types,h=y.isPromise,m=y.isRegExp,g=cg()(),u=es()(),_=lg()("RegExp.prototype.test"),E,w;function b(){var L=mg();E=L.isDeepEqual,w=L.isDeepStrictEqual}var x=!1,O=Vn.exports=S,P={};function M(L){throw L.message instanceof Error?L.message:new s(L)}function W(L,D,F,K,J){var ae=arguments.length,ue;if(ae===0)ue="Failed";else if(ae===1)F=L,L=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&&(K="!=")}if(F instanceof Error)throw F;var me={actual:L,expected:D,operator:K===void 0?"fail":K,stackStartFn:J||W};F!==void 0&&(me.message=F);var we=new s(me);throw ue&&(we.message=ue,we.generatedMessage=!0),we}O.fail=W,O.AssertionError=s;function V(L,D,F,K){if(!F){var J=!1;if(D===0)J=!0,K="No value argument passed to `assert.ok()`";else if(K instanceof Error)throw K;var ae=new s({actual:F,expected:!0,message:K,operator:"==",stackStartFn:L});throw ae.generatedMessage=J,ae}}function S(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];V.apply(void 0,[S,D.length].concat(D))}O.ok=S,O.equal=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");D!=F&&M({actual:D,expected:F,message:K,operator:"==",stackStartFn:L})},O.notEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");D==F&&M({actual:D,expected:F,message:K,operator:"!=",stackStartFn:L})},O.deepEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");E===void 0&&b(),E(D,F)||M({actual:D,expected:F,message:K,operator:"deepEqual",stackStartFn:L})},O.notDeepEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");E===void 0&&b(),E(D,F)&&M({actual:D,expected:F,message:K,operator:"notDeepEqual",stackStartFn:L})},O.deepStrictEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");E===void 0&&b(),w(D,F)||M({actual:D,expected:F,message:K,operator:"deepStrictEqual",stackStartFn:L})},O.notDeepStrictEqual=I;function I(L,D,F){if(arguments.length<2)throw new v("actual","expected");E===void 0&&b(),w(L,D)&&M({actual:L,expected:D,message:F,operator:"notDeepStrictEqual",stackStartFn:I})}O.strictEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");u(D,F)||M({actual:D,expected:F,message:K,operator:"strictEqual",stackStartFn:L})},O.notStrictEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");u(D,F)&&M({actual:D,expected:F,message:K,operator:"notStrictEqual",stackStartFn:L})};var $=t(function L(D,F,K){var J=this;n(this,L),F.forEach(function(ae){ae in D&&(K!==void 0&&typeof K[ae]=="string"&&m(D[ae])&&_(D[ae],K[ae])?J[ae]=K[ae]:J[ae]=D[ae])})});function z(L,D,F,K,J,ae){if(!(F in L)||!w(L[F],D[F])){if(!K){var ue=new $(L,J),ve=new $(D,J,L),me=new s({actual:ue,expected:ve,operator:"deepStrictEqual",stackStartFn:ae});throw me.actual=L,me.expected=D,me.operator=ae.name,me}M({actual:L,expected:D,message:K,operator:ae.name,stackStartFn:ae})}}function X(L,D,F,K){if(typeof D!="function"){if(m(D))return _(D,L);if(arguments.length===2)throw new o("expected",["Function","RegExp"],D);if(e(L)!=="object"||L===null){var J=new s({actual:L,expected:D,message:F,operator:"deepStrictEqual",stackStartFn:K});throw J.operator=K.name,J}var ae=Object.keys(D);if(D instanceof Error)ae.push("name","message");else if(ae.length===0)throw new d("error",D,"may not be an empty object");return E===void 0&&b(),ae.forEach(function(ue){typeof L[ue]=="string"&&m(D[ue])&&_(D[ue],L[ue])||z(L,D,ue,F,ae,K)}),!0}return D.prototype!==void 0&&L instanceof D?!0:Error.isPrototypeOf(D)?!1:D.call({},L)===!0}function A(L){if(typeof L!="function")throw new o("fn","Function",L);try{L()}catch(D){return D}return P}function k(L){return h(L)||L!==null&&e(L)==="object"&&typeof L.then=="function"&&typeof L.catch=="function"}function j(L){return Promise.resolve().then(function(){var D;if(typeof L=="function"){if(D=L(),!k(D))throw new f("instance of Promise","promiseFn",D)}else if(k(L))D=L;else throw new o("promiseFn",["Function","Promise"],L);return Promise.resolve().then(function(){return D}).then(function(){return P}).catch(function(F){return F})})}function N(L,D,F,K){if(typeof F=="string"){if(arguments.length===4)throw new o("error",["Object","Error","Function","RegExp"],F);if(e(D)==="object"&&D!==null){if(D.message===F)throw new a("error/message",'The error message "'.concat(D.message,'" is identical to the message.'))}else if(D===F)throw new a("error/message",'The error "'.concat(D,'" is identical to the message.'));K=F,F=void 0}else if(F!=null&&e(F)!=="object"&&typeof F!="function")throw new o("error",["Object","Error","Function","RegExp"],F);if(D===P){var J="";F&&F.name&&(J+=" (".concat(F.name,")")),J+=K?": ".concat(K):".";var ae=L.name==="rejects"?"rejection":"exception";M({actual:void 0,expected:F,operator:L.name,message:"Missing expected ".concat(ae).concat(J),stackStartFn:L})}if(F&&!X(D,F,K,L))throw D}function H(L,D,F,K){if(D!==P){if(typeof F=="string"&&(K=F,F=void 0),!F||X(D,F)){var J=K?": ".concat(K):".",ae=L.name==="doesNotReject"?"rejection":"exception";M({actual:D,expected:F,operator:L.name,message:"Got unwanted ".concat(ae).concat(J,`
|
|
69
|
+
`):Ce=" ".concat(F," ").concat(Ce)),L=H.call(this,"".concat(we).concat(Ce))}return Error.stackTraceLimit=ue,L.generatedMessage=!D,Object.defineProperty(l(L),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),L.code="ERR_ASSERTION",L.actual=J,L.expected=ae,L.operator=F,Error.captureStackTrace&&Error.captureStackTrace(l(L),K),L.stack,L.name="AssertionError",s(L)}return a(B,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:N,value:function(L,D){return w(this,t(t({},D),{},{customInspect:!1,depth:0}))}}]),B})(c(Error),w.custom);return zn=k,zn}var Gn,Fs;function md(){if(Fs)return Gn;Fs=1;var e=Object.prototype.toString;return Gn=function(n){var r=e.call(n),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&e.call(n.callee)==="[object Function]"),i},Gn}var Hn,Bs;function sg(){if(Bs)return Hn;Bs=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=md(),i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(c){var y=c.constructor;return y&&y.prototype===c},v={$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},s=(function(){if(typeof window>"u")return!1;for(var c in window)try{if(!v["$"+c]&&t.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{f(window[c])}catch{return!0}}catch{return!0}return!1})(),l=function(c){if(typeof window>"u"||!s)return f(c);try{return f(c)}catch{return!1}};e=function(y){var h=y!==null&&typeof y=="object",m=n.call(y)==="[object Function]",g=r(y),u=h&&n.call(y)==="[object String]",_=[];if(!h&&!m&&!g)throw new TypeError("Object.keys called on a non-object");var S=o&&m;if(u&&y.length>0&&!t.call(y,0))for(var w=0;w<y.length;++w)_.push(String(w));if(g&&y.length>0)for(var b=0;b<y.length;++b)_.push(String(b));else for(var x in y)!(S&&x==="prototype")&&t.call(y,x)&&_.push(String(x));if(a)for(var O=l(y),P=0;P<d.length;++P)!(O&&d[P]==="constructor")&&t.call(y,d[P])&&_.push(d[P]);return _}}return Hn=e,Hn}var Zn,Us;function gd(){if(Us)return Zn;Us=1;var e=Array.prototype.slice,t=md(),n=Object.keys,r=n?function(o){return n(o)}:sg(),i=Object.keys;return r.shim=function(){if(Object.keys){var o=(function(){var d=Object.keys(arguments);return d&&d.length===arguments.length})(1,2);o||(Object.keys=function(f){return t(f)?i(e.call(f)):i(f)})}else Object.keys=r;return Object.keys||r},Zn=r,Zn}var Wn,Vs;function ug(){if(Vs)return Wn;Vs=1;var e=gd(),t=rm()(),n=nm(),r=im(),i=n("Array.prototype.push"),a=n("Object.prototype.propertyIsEnumerable"),o=t?r.getOwnPropertySymbols:null;return Wn=function(f,v){if(f==null)throw new TypeError("target must be an object");var s=r(f);if(arguments.length===1)return s;for(var l=1;l<arguments.length;++l){var c=r(arguments[l]),y=e(c),h=t&&(r.getOwnPropertySymbols||o);if(h)for(var m=h(c),g=0;g<m.length;++g){var u=m[g];a(c,u)&&i(y,u)}for(var _=0;_<y.length;++_){var S=y[_];if(a(c,S)){var w=c[S];s[S]=w}}}return s},Wn}var Yn,$s;function cg(){if($s)return Yn;$s=1;var e=ug(),t=function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",i=r.split(""),a={},o=0;o<i.length;++o)a[i[o]]=i[o];var d=Object.assign({},a),f="";for(var v in d)f+=v;return r!==f},n=function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch{return r[1]==="y"}return!1};return Yn=function(){return!Object.assign||t()||n()?e:Object.assign},Yn}var Jn,zs;function vd(){if(zs)return Jn;zs=1;var e=function(t){return t!==t};return Jn=function(n,r){return n===0&&r===0?1/n===1/r:!!(n===r||e(n)&&e(r))},Jn}var Kn,Gs;function es(){if(Gs)return Kn;Gs=1;var e=vd();return Kn=function(){return typeof Object.is=="function"?Object.is:e},Kn}var Xn,Hs;function lg(){if(Hs)return Xn;Hs=1;var e=am(),t=Ko(),n=t(e("String.prototype.indexOf"));return Xn=function(i,a){var o=e(i,!!a);return typeof o=="function"&&n(i,".prototype.")>-1?t(o):o},Xn}var Qn,Zs;function wn(){if(Zs)return Qn;Zs=1;var e=gd(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n=Object.prototype.toString,r=Array.prototype.concat,i=sm(),a=function(v){return typeof v=="function"&&n.call(v)==="[object Function]"},o=om()(),d=function(v,s,l,c){if(s in v){if(c===!0){if(v[s]===l)return}else if(!a(c)||!c())return}o?i(v,s,l,!0):i(v,s,l)},f=function(v,s){var l=arguments.length>2?arguments[2]:{},c=e(s);t&&(c=r.call(c,Object.getOwnPropertySymbols(s)));for(var y=0;y<c.length;y+=1)d(v,c[y],s[c[y]],l[c[y]])};return f.supportsDescriptors=!!o,Qn=f,Qn}var ei,Ws;function fg(){if(Ws)return ei;Ws=1;var e=es(),t=wn();return ei=function(){var r=e();return t(Object,{is:r},{is:function(){return Object.is!==r}}),r},ei}var ti,Ys;function dg(){if(Ys)return ti;Ys=1;var e=wn(),t=Ko(),n=vd(),r=es(),i=fg(),a=t(r(),Object);return e(a,{getPolyfill:r,implementation:n,shim:i}),ti=a,ti}var ri,Js;function yd(){return Js||(Js=1,ri=function(t){return t!==t}),ri}var ni,Ks;function _d(){if(Ks)return ni;Ks=1;var e=yd();return ni=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:e},ni}var ii,Xs;function hg(){if(Xs)return ii;Xs=1;var e=wn(),t=_d();return ii=function(){var r=t();return e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r},ii}var ai,Qs;function pg(){if(Qs)return ai;Qs=1;var e=Ko(),t=wn(),n=yd(),r=_d(),i=hg(),a=e(r(),Number);return t(a,{getPolyfill:r,implementation:n,shim:i}),ai=a,ai}var oi,eu;function mg(){if(eu)return oi;eu=1;function e(Y,Q){return a(Y)||i(Y,Q)||n(Y,Q)||t()}function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
70
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(Y,Q){if(Y){if(typeof Y=="string")return r(Y,Q);var le=Object.prototype.toString.call(Y).slice(8,-1);if(le==="Object"&&Y.constructor&&(le=Y.constructor.name),le==="Map"||le==="Set")return Array.from(Y);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return r(Y,Q)}}function r(Y,Q){(Q==null||Q>Y.length)&&(Q=Y.length);for(var le=0,ge=new Array(Q);le<Q;le++)ge[le]=Y[le];return ge}function i(Y,Q){var le=Y==null?null:typeof Symbol<"u"&&Y[Symbol.iterator]||Y["@@iterator"];if(le!=null){var ge,de,Re,Oe,C=[],ne=!0,se=!1;try{if(Re=(le=le.call(Y)).next,Q!==0)for(;!(ne=(ge=Re.call(le)).done)&&(C.push(ge.value),C.length!==Q);ne=!0);}catch(fe){se=!0,de=fe}finally{try{if(!ne&&le.return!=null&&(Oe=le.return(),Object(Oe)!==Oe))return}finally{if(se)throw de}}return C}}function a(Y){if(Array.isArray(Y))return Y}function o(Y){"@babel/helpers - typeof";return o=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},o(Y)}var d=/a/g.flags!==void 0,f=function(Q){var le=[];return Q.forEach(function(ge){return le.push(ge)}),le},v=function(Q){var le=[];return Q.forEach(function(ge,de){return le.push([de,ge])}),le},s=Object.is?Object.is:dg(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:pg();function y(Y){return Y.call.bind(Y)}var h=y(Object.prototype.hasOwnProperty),m=y(Object.prototype.propertyIsEnumerable),g=y(Object.prototype.toString),u=Ze().types,_=u.isAnyArrayBuffer,S=u.isArrayBufferView,w=u.isDate,b=u.isMap,x=u.isRegExp,O=u.isSet,P=u.isNativeError,M=u.isBoxedPrimitive,W=u.isNumberObject,V=u.isStringObject,E=u.isBooleanObject,I=u.isBigIntObject,$=u.isSymbolObject,z=u.isFloat32Array,X=u.isFloat64Array;function A(Y){if(Y.length===0||Y.length>10)return!0;for(var Q=0;Q<Y.length;Q++){var le=Y.charCodeAt(Q);if(le<48||le>57)return!0}return Y.length===10&&Y>=Math.pow(2,32)}function k(Y){return Object.keys(Y).filter(A).concat(l(Y).filter(Object.prototype.propertyIsEnumerable.bind(Y)))}function j(Y,Q){if(Y===Q)return 0;for(var le=Y.length,ge=Q.length,de=0,Re=Math.min(le,ge);de<Re;++de)if(Y[de]!==Q[de]){le=Y[de],ge=Q[de];break}return le<ge?-1:ge<le?1:0}var N=!0,H=!1,B=0,q=1,L=2,D=3;function F(Y,Q){return d?Y.source===Q.source&&Y.flags===Q.flags:RegExp.prototype.toString.call(Y)===RegExp.prototype.toString.call(Q)}function K(Y,Q){if(Y.byteLength!==Q.byteLength)return!1;for(var le=0;le<Y.byteLength;le++)if(Y[le]!==Q[le])return!1;return!0}function J(Y,Q){return Y.byteLength!==Q.byteLength?!1:j(new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength),new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength))===0}function ae(Y,Q){return Y.byteLength===Q.byteLength&&j(new Uint8Array(Y),new Uint8Array(Q))===0}function ue(Y,Q){return W(Y)?W(Q)&&s(Number.prototype.valueOf.call(Y),Number.prototype.valueOf.call(Q)):V(Y)?V(Q)&&String.prototype.valueOf.call(Y)===String.prototype.valueOf.call(Q):E(Y)?E(Q)&&Boolean.prototype.valueOf.call(Y)===Boolean.prototype.valueOf.call(Q):I(Y)?I(Q)&&BigInt.prototype.valueOf.call(Y)===BigInt.prototype.valueOf.call(Q):$(Q)&&Symbol.prototype.valueOf.call(Y)===Symbol.prototype.valueOf.call(Q)}function ve(Y,Q,le,ge){if(Y===Q)return Y!==0?!0:le?s(Y,Q):!0;if(le){if(o(Y)!=="object")return typeof Y=="number"&&c(Y)&&c(Q);if(o(Q)!=="object"||Y===null||Q===null||Object.getPrototypeOf(Y)!==Object.getPrototypeOf(Q))return!1}else{if(Y===null||o(Y)!=="object")return Q===null||o(Q)!=="object"?Y==Q:!1;if(Q===null||o(Q)!=="object")return!1}var de=g(Y),Re=g(Q);if(de!==Re)return!1;if(Array.isArray(Y)){if(Y.length!==Q.length)return!1;var Oe=k(Y),C=k(Q);return Oe.length!==C.length?!1:we(Y,Q,le,ge,q,Oe)}if(de==="[object Object]"&&(!b(Y)&&b(Q)||!O(Y)&&O(Q)))return!1;if(w(Y)){if(!w(Q)||Date.prototype.getTime.call(Y)!==Date.prototype.getTime.call(Q))return!1}else if(x(Y)){if(!x(Q)||!F(Y,Q))return!1}else if(P(Y)||Y instanceof Error){if(Y.message!==Q.message||Y.name!==Q.name)return!1}else if(S(Y)){if(!le&&(z(Y)||X(Y))){if(!K(Y,Q))return!1}else if(!J(Y,Q))return!1;var ne=k(Y),se=k(Q);return ne.length!==se.length?!1:we(Y,Q,le,ge,B,ne)}else{if(O(Y))return!O(Q)||Y.size!==Q.size?!1:we(Y,Q,le,ge,L);if(b(Y))return!b(Q)||Y.size!==Q.size?!1:we(Y,Q,le,ge,D);if(_(Y)){if(!ae(Y,Q))return!1}else if(M(Y)&&!ue(Y,Q))return!1}return we(Y,Q,le,ge,B)}function me(Y,Q){return Q.filter(function(le){return m(Y,le)})}function we(Y,Q,le,ge,de,Re){if(arguments.length===5){Re=Object.keys(Y);var Oe=Object.keys(Q);if(Re.length!==Oe.length)return!1}for(var C=0;C<Re.length;C++)if(!h(Q,Re[C]))return!1;if(le&&arguments.length===5){var ne=l(Y);if(ne.length!==0){var se=0;for(C=0;C<ne.length;C++){var fe=ne[C];if(m(Y,fe)){if(!m(Q,fe))return!1;Re.push(fe),se++}else if(m(Q,fe))return!1}var Z=l(Q);if(ne.length!==Z.length&&me(Q,Z).length!==se)return!1}else{var ie=l(Q);if(ie.length!==0&&me(Q,ie).length!==0)return!1}}if(Re.length===0&&(de===B||de===q&&Y.length===0||Y.size===0))return!0;if(ge===void 0)ge={val1:new Map,val2:new Map,position:0};else{var R=ge.val1.get(Y);if(R!==void 0){var oe=ge.val2.get(Q);if(oe!==void 0)return R===oe}ge.position++}ge.val1.set(Y,ge.position),ge.val2.set(Q,ge.position);var be=qe(Y,Q,le,Re,ge,de);return ge.val1.delete(Y),ge.val2.delete(Q),be}function Ce(Y,Q,le,ge){for(var de=f(Y),Re=0;Re<de.length;Re++){var Oe=de[Re];if(ve(Q,Oe,le,ge))return Y.delete(Oe),!0}return!1}function Pe(Y){switch(o(Y)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":Y=+Y;case"number":if(c(Y))return!1}return!0}function je(Y,Q,le){var ge=Pe(le);return ge??(Q.has(ge)&&!Y.has(ge))}function Ie(Y,Q,le,ge,de){var Re=Pe(le);if(Re!=null)return Re;var Oe=Q.get(Re);return Oe===void 0&&!Q.has(Re)||!ve(ge,Oe,!1,de)?!1:!Y.has(Re)&&ve(ge,Oe,!1,de)}function Se(Y,Q,le,ge){for(var de=null,Re=f(Y),Oe=0;Oe<Re.length;Oe++){var C=Re[Oe];if(o(C)==="object"&&C!==null)de===null&&(de=new Set),de.add(C);else if(!Q.has(C)){if(le||!je(Y,Q,C))return!1;de===null&&(de=new Set),de.add(C)}}if(de!==null){for(var ne=f(Q),se=0;se<ne.length;se++){var fe=ne[se];if(o(fe)==="object"&&fe!==null){if(!Ce(de,fe,le,ge))return!1}else if(!le&&!Y.has(fe)&&!Ce(de,fe,le,ge))return!1}return de.size===0}return!0}function $e(Y,Q,le,ge,de,Re){for(var Oe=f(Y),C=0;C<Oe.length;C++){var ne=Oe[C];if(ve(le,ne,de,Re)&&ve(ge,Q.get(ne),de,Re))return Y.delete(ne),!0}return!1}function st(Y,Q,le,ge){for(var de=null,Re=v(Y),Oe=0;Oe<Re.length;Oe++){var C=e(Re[Oe],2),ne=C[0],se=C[1];if(o(ne)==="object"&&ne!==null)de===null&&(de=new Set),de.add(ne);else{var fe=Q.get(ne);if(fe===void 0&&!Q.has(ne)||!ve(se,fe,le,ge)){if(le||!Ie(Y,Q,ne,se,ge))return!1;de===null&&(de=new Set),de.add(ne)}}}if(de!==null){for(var Z=v(Q),ie=0;ie<Z.length;ie++){var R=e(Z[ie],2),oe=R[0],be=R[1];if(o(oe)==="object"&&oe!==null){if(!$e(de,Y,oe,be,le,ge))return!1}else if(!le&&(!Y.has(oe)||!ve(Y.get(oe),be,!1,ge))&&!$e(de,Y,oe,be,!1,ge))return!1}return de.size===0}return!0}function qe(Y,Q,le,ge,de,Re){var Oe=0;if(Re===L){if(!Se(Y,Q,le,de))return!1}else if(Re===D){if(!st(Y,Q,le,de))return!1}else if(Re===q)for(;Oe<Y.length;Oe++)if(h(Y,Oe)){if(!h(Q,Oe)||!ve(Y[Oe],Q[Oe],le,de))return!1}else{if(h(Q,Oe))return!1;for(var C=Object.keys(Y);Oe<C.length;Oe++){var ne=C[Oe];if(!h(Q,ne)||!ve(Y[ne],Q[ne],le,de))return!1}return C.length===Object.keys(Q).length}for(Oe=0;Oe<ge.length;Oe++){var se=ge[Oe];if(!ve(Y[se],Q[se],le,de))return!1}return!0}function Ne(Y,Q){return ve(Y,Q,H)}function Ye(Y,Q){return ve(Y,Q,N)}return oi={isDeepEqual:Ne,isDeepStrictEqual:Ye},oi}var tu;function sr(){if(tu)return Vn.exports;tu=1;function e(L){"@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(L)}function t(L,D,F){return Object.defineProperty(L,"prototype",{writable:!1}),L}function n(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}var r=pd(),i=r.codes,a=i.ERR_AMBIGUOUS_ARGUMENT,o=i.ERR_INVALID_ARG_TYPE,d=i.ERR_INVALID_ARG_VALUE,f=i.ERR_INVALID_RETURN_VALUE,v=i.ERR_MISSING_ARGS,s=og(),l=Ze(),c=l.inspect,y=Ze().types,h=y.isPromise,m=y.isRegExp,g=cg()(),u=es()(),_=lg()("RegExp.prototype.test"),S,w;function b(){var L=mg();S=L.isDeepEqual,w=L.isDeepStrictEqual}var x=!1,O=Vn.exports=E,P={};function M(L){throw L.message instanceof Error?L.message:new s(L)}function W(L,D,F,K,J){var ae=arguments.length,ue;if(ae===0)ue="Failed";else if(ae===1)F=L,L=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&&(K="!=")}if(F instanceof Error)throw F;var me={actual:L,expected:D,operator:K===void 0?"fail":K,stackStartFn:J||W};F!==void 0&&(me.message=F);var we=new s(me);throw ue&&(we.message=ue,we.generatedMessage=!0),we}O.fail=W,O.AssertionError=s;function V(L,D,F,K){if(!F){var J=!1;if(D===0)J=!0,K="No value argument passed to `assert.ok()`";else if(K instanceof Error)throw K;var ae=new s({actual:F,expected:!0,message:K,operator:"==",stackStartFn:L});throw ae.generatedMessage=J,ae}}function E(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];V.apply(void 0,[E,D.length].concat(D))}O.ok=E,O.equal=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");D!=F&&M({actual:D,expected:F,message:K,operator:"==",stackStartFn:L})},O.notEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");D==F&&M({actual:D,expected:F,message:K,operator:"!=",stackStartFn:L})},O.deepEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");S===void 0&&b(),S(D,F)||M({actual:D,expected:F,message:K,operator:"deepEqual",stackStartFn:L})},O.notDeepEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");S===void 0&&b(),S(D,F)&&M({actual:D,expected:F,message:K,operator:"notDeepEqual",stackStartFn:L})},O.deepStrictEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");S===void 0&&b(),w(D,F)||M({actual:D,expected:F,message:K,operator:"deepStrictEqual",stackStartFn:L})},O.notDeepStrictEqual=I;function I(L,D,F){if(arguments.length<2)throw new v("actual","expected");S===void 0&&b(),w(L,D)&&M({actual:L,expected:D,message:F,operator:"notDeepStrictEqual",stackStartFn:I})}O.strictEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");u(D,F)||M({actual:D,expected:F,message:K,operator:"strictEqual",stackStartFn:L})},O.notStrictEqual=function L(D,F,K){if(arguments.length<2)throw new v("actual","expected");u(D,F)&&M({actual:D,expected:F,message:K,operator:"notStrictEqual",stackStartFn:L})};var $=t(function L(D,F,K){var J=this;n(this,L),F.forEach(function(ae){ae in D&&(K!==void 0&&typeof K[ae]=="string"&&m(D[ae])&&_(D[ae],K[ae])?J[ae]=K[ae]:J[ae]=D[ae])})});function z(L,D,F,K,J,ae){if(!(F in L)||!w(L[F],D[F])){if(!K){var ue=new $(L,J),ve=new $(D,J,L),me=new s({actual:ue,expected:ve,operator:"deepStrictEqual",stackStartFn:ae});throw me.actual=L,me.expected=D,me.operator=ae.name,me}M({actual:L,expected:D,message:K,operator:ae.name,stackStartFn:ae})}}function X(L,D,F,K){if(typeof D!="function"){if(m(D))return _(D,L);if(arguments.length===2)throw new o("expected",["Function","RegExp"],D);if(e(L)!=="object"||L===null){var J=new s({actual:L,expected:D,message:F,operator:"deepStrictEqual",stackStartFn:K});throw J.operator=K.name,J}var ae=Object.keys(D);if(D instanceof Error)ae.push("name","message");else if(ae.length===0)throw new d("error",D,"may not be an empty object");return S===void 0&&b(),ae.forEach(function(ue){typeof L[ue]=="string"&&m(D[ue])&&_(D[ue],L[ue])||z(L,D,ue,F,ae,K)}),!0}return D.prototype!==void 0&&L instanceof D?!0:Error.isPrototypeOf(D)?!1:D.call({},L)===!0}function A(L){if(typeof L!="function")throw new o("fn","Function",L);try{L()}catch(D){return D}return P}function k(L){return h(L)||L!==null&&e(L)==="object"&&typeof L.then=="function"&&typeof L.catch=="function"}function j(L){return Promise.resolve().then(function(){var D;if(typeof L=="function"){if(D=L(),!k(D))throw new f("instance of Promise","promiseFn",D)}else if(k(L))D=L;else throw new o("promiseFn",["Function","Promise"],L);return Promise.resolve().then(function(){return D}).then(function(){return P}).catch(function(F){return F})})}function N(L,D,F,K){if(typeof F=="string"){if(arguments.length===4)throw new o("error",["Object","Error","Function","RegExp"],F);if(e(D)==="object"&&D!==null){if(D.message===F)throw new a("error/message",'The error message "'.concat(D.message,'" is identical to the message.'))}else if(D===F)throw new a("error/message",'The error "'.concat(D,'" is identical to the message.'));K=F,F=void 0}else if(F!=null&&e(F)!=="object"&&typeof F!="function")throw new o("error",["Object","Error","Function","RegExp"],F);if(D===P){var J="";F&&F.name&&(J+=" (".concat(F.name,")")),J+=K?": ".concat(K):".";var ae=L.name==="rejects"?"rejection":"exception";M({actual:void 0,expected:F,operator:L.name,message:"Missing expected ".concat(ae).concat(J),stackStartFn:L})}if(F&&!X(D,F,K,L))throw D}function H(L,D,F,K){if(D!==P){if(typeof F=="string"&&(K=F,F=void 0),!F||X(D,F)){var J=K?": ".concat(K):".",ae=L.name==="doesNotReject"?"rejection":"exception";M({actual:D,expected:F,operator:L.name,message:"Got unwanted ".concat(ae).concat(J,`
|
|
71
71
|
`)+'Actual message: "'.concat(D&&D.message,'"'),stackStartFn:L})}throw D}}O.throws=function L(D){for(var F=arguments.length,K=new Array(F>1?F-1:0),J=1;J<F;J++)K[J-1]=arguments[J];N.apply(void 0,[L,A(D)].concat(K))},O.rejects=function L(D){for(var F=arguments.length,K=new Array(F>1?F-1:0),J=1;J<F;J++)K[J-1]=arguments[J];return j(D).then(function(ae){return N.apply(void 0,[L,ae].concat(K))})},O.doesNotThrow=function L(D){for(var F=arguments.length,K=new Array(F>1?F-1:0),J=1;J<F;J++)K[J-1]=arguments[J];H.apply(void 0,[L,A(D)].concat(K))},O.doesNotReject=function L(D){for(var F=arguments.length,K=new Array(F>1?F-1:0),J=1;J<F;J++)K[J-1]=arguments[J];return j(D).then(function(ae){return H.apply(void 0,[L,ae].concat(K))})},O.ifError=function L(D){if(D!=null){var F="ifError got unwanted exception: ";e(D)==="object"&&typeof D.message=="string"?D.message.length===0&&D.constructor?F+=D.constructor.name:F+=D.message:F+=c(D);var K=new s({actual:D,expected:null,operator:"ifError",message:F,stackStartFn:L}),J=D.stack;if(typeof J=="string"){var ae=J.split(`
|
|
72
72
|
`);ae.shift();for(var ue=K.stack.split(`
|
|
73
73
|
`),ve=0;ve<ae.length;ve++){var me=ue.indexOf(ae[ve]);if(me!==-1){ue=ue.slice(0,me);break}}K.stack="".concat(ue.join(`
|
|
@@ -76,24 +76,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
76
76
|
`))}throw K}};function B(L,D,F,K,J){if(!m(D))throw new o("regexp","RegExp",D);var ae=J==="match";if(typeof L!="string"||_(D,L)!==ae){if(F instanceof Error)throw F;var ue=!F;F=F||(typeof L!="string"?'The "string" argument must be of type string. Received type '+"".concat(e(L)," (").concat(c(L),")"):(ae?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(c(D),`. Input:
|
|
77
77
|
|
|
78
78
|
`).concat(c(L),`
|
|
79
|
-
`));var ve=new s({actual:L,expected:D,message:F,operator:J,stackStartFn:K});throw ve.generatedMessage=ue,ve}}O.match=function L(D,F,K){B(D,F,K,L,"match")},O.doesNotMatch=function L(D,F,K){B(D,F,K,L,"doesNotMatch")};function q(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];V.apply(void 0,[q,D.length].concat(D))}return O.strict=g(q,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict,Vn.exports}var ru;function gg(){return ru||(ru=1,(function(e,t){var n=sr(),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i="abcdefghijklmnopqrstuvwxyz0123456789",a="0123456789";t=e.exports=o(r),t.base62=t,t.base36=o(i),t.base10=o(a),t.create=o;function o(d){n(typeof d=="string","the list of characters must be a string!");var f=et.byteLength(d);return function(s){s=s||10,n(typeof s=="number"&&s>=0,"the length of the random string must be a number!");for(var l="",c=0;c<s;c++)l+=d[Math.floor(f*Math.random())];return l}}})(Rr,Rr.exports)),Rr.exports}var Or={exports:{}},Tr={exports:{}};var nu;function vg(){if(nu)return Tr.exports;nu=1;var e=Wt(),t=e.randomBytes===e.pseudoRandomBytes?1:3;Tr.exports=n,Tr.exports.sync=r;function n(a,o){if(o!==void 0&&typeof o!="function")throw new TypeError("argument callback must be a function");if(!o&&!rd.Promise)throw new TypeError("argument callback is required");return o?i(a,t,o):new Promise(function(f,v){i(a,t,function(l,c){if(l)return v(l);f(c)})})}function r(a){for(var o=null,d=0;d<t;d++)try{return e.randomBytes(a)}catch(f){o=f}throw o}function i(a,o,d){e.randomBytes(a,function(v,s){if(!v)return d(null,s);if(!--o)return d(v);setTimeout(i.bind(null,a,o,d),10)})}return Tr.exports}var iu;function yg(){if(iu)return Or.exports;iu=1;var e=vg(),t=/=+$/,n=/\+/g,r=/\//g;Or.exports=i,Or.exports.sync=a;function i(f,v){if(v!==void 0&&typeof v!="function")throw new TypeError("argument callback must be a function");if(!v&&!rd.Promise)throw new TypeError("argument callback is required");return v?o(f,v):new Promise(function(l,c){o(f,function(h,m){if(h)return c(h);l(m)})})}function a(f){return d(e.sync(f))}function o(f,v){e(f,function(s,l){if(s)return v(s);v(null,d(l))})}function d(f){return f.toString("base64").replace(t,"").replace(n,"-").replace(r,"_")}return Or.exports}var si,au;function _g(){if(au)return si;au=1;var e=Wt();function t(r,i){if(r.length!==i.length)return!1;if(e.timingSafeEqual)return e.timingSafeEqual(r,i);for(var a=0;a<r.length;a++)if(r[a]!==i[a])return!1;return!0}function n(r,i){var a=String(r),o=String(i),d=e.pseudoRandomBytes(32),f=e.createHmac("sha256",d).update(a).digest(),v=e.createHmac("sha256",d).update(o).digest();return t(f,v)&&r===i}return si=n,si}var ui,ou;function bg(){if(ou)return ui;ou=1;var e=gg(),t=yg(),n=_g(),r=Wt(),i=/=/g,a=/\+/g,o=/\//g;ui=d;function d(v){if(!(this instanceof d))return new d(v);var s=v||{},l=s.saltLength!==void 0?s.saltLength:8;if(typeof l!="number"||!isFinite(l)||l<1)throw new TypeError("option saltLength must be finite number > 1");var c=s.secretLength!==void 0?s.secretLength:18;if(typeof c!="number"||!isFinite(c)||c<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=l,this.secretLength=c}d.prototype.create=function(s){if(!s||typeof s!="string")throw new TypeError("argument secret is required");return this._tokenize(s,e(this.saltLength))},d.prototype.secret=function(s){return t(this.secretLength,s)},d.prototype.secretSync=function(){return t.sync(this.secretLength)},d.prototype._tokenize=function(s,l){return l+"-"+f(l+"-"+s)},d.prototype.verify=function(s,l){if(!s||typeof s!="string"||!l||typeof l!="string")return!1;var c=l.indexOf("-");if(c===-1)return!1;var y=l.substr(0,c),h=this._tokenize(s,y);return n(l,h)};function f(v){return r.createHash("sha1").update(v,"ascii").digest("base64").replace(a,"-").replace(o,"_").replace(i,"")}return ui}var ci={},li,su;function wg(){return su||(su=1,li=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),li}const Eg="%[a-f0-9]{2}",uu=new RegExp(`(${Eg})+`,"gi"),Sg=/^[a-f\d]{2}$/i;function cu(e,t){if(e.codePointAt(t)!==37||t+3>e.length)return;const n=e.slice(t+1,t+3);if(Sg.test(n))return{byte:Number.parseInt(n,16),next:t+3}}function Rg(e){return e<=127?1:e>=194&&e<=223?2:e>=224&&e<=239?3:e>=240&&e<=244?4:0}function Og(e){return e>=128&&e<=191}function Tg(e){try{return decodeURIComponent(e)}catch{let t="",n=0;for(;n<e.length;){if(e.codePointAt(n)!==37){t+=e.charAt(n),n++;continue}const r=cu(e,n);if(!r){t+=e.charAt(n),n++;continue}const i=Rg(r.byte);if(i===0){t+=e.slice(n,n+3),n+=3;continue}let a=r.next,o=!0;for(let d=1;d<i;d++){const f=cu(e,a);if(!f||!Og(f.byte)){o=!1;break}a=f.next}if(o){const d=e.slice(n,a);try{t+=decodeURIComponent(d),n=a;continue}catch{}}t+=e.slice(n,n+3),n+=3}return t}}function Ag(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=uu.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=Tg(n[0]);i!==n[0]&&(t[n[0]]=i)}n=uu.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function Ig(e){if(typeof e!="string")throw new TypeError(`Expected \`encodedURI\` to be of type \`string\`, got \`${typeof e}\``);try{return decodeURIComponent(e)}catch{return Ag(e)}}const xg=Object.freeze(Object.defineProperty({__proto__:null,default:Ig},Symbol.toStringTag,{value:"Module"})),Cg=Yo(xg);var fi,lu;function kg(){return lu||(lu=1,fi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]}),fi}var di,fu;function Pg(){return fu||(fu=1,di=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;a<r.length;a++){var o=r[a],d=e[o];(i?t.indexOf(o)!==-1:t(o,d,e))&&(n[o]=d)}return n}),di}var du;function jg(){return du||(du=1,(function(e){const t=wg(),n=Cg,r=kg(),i=Pg(),a=u=>u==null;function o(u){switch(u.arrayFormat){case"index":return _=>(E,w)=>{const b=E.length;return w===void 0||u.skipNull&&w===null||u.skipEmptyString&&w===""?E:w===null?[...E,[v(_,u),"[",b,"]"].join("")]:[...E,[v(_,u),"[",v(b,u),"]=",v(w,u)].join("")]};case"bracket":return _=>(E,w)=>w===void 0||u.skipNull&&w===null||u.skipEmptyString&&w===""?E:w===null?[...E,[v(_,u),"[]"].join("")]:[...E,[v(_,u),"[]=",v(w,u)].join("")];case"comma":case"separator":return _=>(E,w)=>w==null||w.length===0?E:E.length===0?[[v(_,u),"=",v(w,u)].join("")]:[[E,v(w,u)].join(u.arrayFormatSeparator)];default:return _=>(E,w)=>w===void 0||u.skipNull&&w===null||u.skipEmptyString&&w===""?E:w===null?[...E,v(_,u)]:[...E,[v(_,u),"=",v(w,u)].join("")]}}function d(u){let _;switch(u.arrayFormat){case"index":return(E,w,b)=>{if(_=/\[(\d*)\]$/.exec(E),E=E.replace(/\[\d*\]$/,""),!_){b[E]=w;return}b[E]===void 0&&(b[E]={}),b[E][_[1]]=w};case"bracket":return(E,w,b)=>{if(_=/(\[\])$/.exec(E),E=E.replace(/\[\]$/,""),!_){b[E]=w;return}if(b[E]===void 0){b[E]=[w];return}b[E]=[].concat(b[E],w)};case"comma":case"separator":return(E,w,b)=>{const x=typeof w=="string"&&w.includes(u.arrayFormatSeparator),O=typeof w=="string"&&!x&&s(w,u).includes(u.arrayFormatSeparator);w=O?s(w,u):w;const P=x||O?w.split(u.arrayFormatSeparator).map(M=>s(M,u)):w===null?w:s(w,u);b[E]=P};default:return(E,w,b)=>{if(b[E]===void 0){b[E]=w;return}b[E]=[].concat(b[E],w)}}}function f(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function v(u,_){return _.encode?_.strict?t(u):encodeURIComponent(u):u}function s(u,_){return _.decode?n(u):u}function l(u){return Array.isArray(u)?u.sort():typeof u=="object"?l(Object.keys(u)).sort((_,E)=>Number(_)-Number(E)).map(_=>u[_]):u}function c(u){const _=u.indexOf("#");return _!==-1&&(u=u.slice(0,_)),u}function y(u){let _="";const E=u.indexOf("#");return E!==-1&&(_=u.slice(E)),_}function h(u){u=c(u);const _=u.indexOf("?");return _===-1?"":u.slice(_+1)}function m(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},_),f(_.arrayFormatSeparator);const E=d(_),w=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return w;for(const b of u.split("&")){if(b==="")continue;let[x,O]=r(_.decode?b.replace(/\+/g," "):b,"=");O=O===void 0?null:["comma","separator"].includes(_.arrayFormat)?O:s(O,_),E(s(x,_),O,w)}for(const b of Object.keys(w)){const x=w[b];if(typeof x=="object"&&x!==null)for(const O of Object.keys(x))x[O]=m(x[O],_);else w[b]=m(x,_)}return _.sort===!1?w:(_.sort===!0?Object.keys(w).sort():Object.keys(w).sort(_.sort)).reduce((b,x)=>{const O=w[x];return O&&typeof O=="object"&&!Array.isArray(O)?b[x]=l(O):b[x]=O,b},Object.create(null))}e.extract=h,e.parse=g,e.stringify=(u,_)=>{if(!u)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),f(_.arrayFormatSeparator);const E=O=>_.skipNull&&a(u[O])||_.skipEmptyString&&u[O]==="",w=o(_),b={};for(const O of Object.keys(u))E(O)||(b[O]=u[O]);const x=Object.keys(b);return _.sort!==!1&&x.sort(_.sort),x.map(O=>{const P=u[O];return P===void 0?"":P===null?v(O,_):Array.isArray(P)?P.reduce(w(O),[]).join("&"):v(O,_)+"="+v(P,_)}).filter(O=>O.length>0).join("&")},e.parseUrl=(u,_)=>{_=Object.assign({decode:!0},_);const[E,w]=r(u,"#");return Object.assign({url:E.split("?")[0]||"",query:g(h(u),_)},_&&_.parseFragmentIdentifier&&w?{fragmentIdentifier:s(w,_)}:{})},e.stringifyUrl=(u,_)=>{_=Object.assign({encode:!0,strict:!0},_);const E=c(u.url).split("?")[0]||"",w=e.extract(u.url),b=e.parse(w,{sort:!1}),x=Object.assign(b,u.query);let O=e.stringify(x,_);O&&(O=`?${O}`);let P=y(u.url);return u.fragmentIdentifier&&(P=`#${v(u.fragmentIdentifier,_)}`),`${E}${O}${P}`},e.pick=(u,_,E)=>{E=Object.assign({parseFragmentIdentifier:!0},E);const{url:w,query:b,fragmentIdentifier:x}=e.parseUrl(u,E);return e.stringifyUrl({url:w,query:i(b,_),fragmentIdentifier:x},E)},e.exclude=(u,_,E)=>{const w=Array.isArray(_)?b=>!_.includes(b):(b,x)=>!_(b,x);return e.pick(u,w,E)}})(ci)),ci}var jt={},Lt={},hi={},Xt={},hu;function bd(){if(hu)return Xt;hu=1,Object.defineProperty(Xt,"__esModule",{value:!0});class e{constructor(){this._=[],this.$=Object.create(null)}on(r,i){(this.$[r]=this.$[r]||[]).push(i)}off(r,i){const a=this.$[r];a&&a.splice(a.indexOf(i)>>>0,1)}each(r){this._.push(r)}none(r){this._.splice(this._.indexOf(r)>>>0,1)}emit(r,...i){const a=this.$[r];a&&a.slice().forEach(o=>o(...i)),this._.slice().forEach(o=>o({type:r,args:i}))}}Xt.Emitter=e;function t(n,r,i){function a(...o){return n.off(r,a),i(...o)}return n.on(r,a),a}return Xt.once=t,Xt}var Ar={},pu;function Lg(){if(pu)return Ar;pu=1,Object.defineProperty(Ar,"__esModule",{value:!0});function e(t){if(!t)return 0;t=t.toString();for(var n=t.length,r=t.length;r--;){var i=t.charCodeAt(r);56320<=i&&i<=57343&&r--,127<i&&i<=2047?n++:2047<i&&i<=65535&&(n+=2)}return n}return Ar.byteLength=e,Ar}var qt={},mu;function qg(){if(mu)return qt;mu=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.expectNever=qt.expectType=void 0;const e=n=>{};qt.expectType=e;const t=n=>{throw new TypeError("Unexpected value: "+n)};return qt.expectNever=t,qt}var Ir={},gu;function ln(){if(gu)return Ir;gu=1,Object.defineProperty(Ir,"__esModule",{value:!0});class e{constructor(n){this.object=Object.create(null),n&&this.extend(n)}set(n,r){this.object[n.toLowerCase()]=Array.isArray(r)?r.map(String):String(r)}append(n,r){const i=n.toLowerCase(),a=this.object[i];if(a===void 0)Array.isArray(r)?this.object[i]=r.map(String):this.object[i]=String(r);else if(Array.isArray(a))if(Array.isArray(r))for(const o of r)a.push(String(o));else a.push(String(r));else this.object[i]=Array.isArray(r)?[a,...r.map(String)]:[a,String(r)]}get(n){const r=this.object[n.toLowerCase()];return r===void 0?null:Array.isArray(r)?r[0]:r}getAll(n){const r=this.object[n.toLowerCase()];return r===void 0?[]:Array.isArray(r)?[...r]:[r]}has(n){return n.toLowerCase()in this.object}delete(n){delete this.object[n.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(n){if(Symbol.iterator in n)for(const[r,i]of n)this.append(r,i);else if(n instanceof e)for(const[r,i]of n.entries())this.append(r,i);else for(const r of Object.keys(n)){const i=n[r];i!==void 0&&this.append(r,i)}}clone(){return new e(this.object)}}return Ir.Headers=e,Ir}var Qt={},vu;function fn(){if(vu)return Qt;vu=1,Object.defineProperty(Qt,"__esModule",{value:!0});const e=bd();class t extends e.Emitter{constructor(){super(),this.aborted=!1,e.once(this,"abort",()=>this.aborted=!0)}}Qt.Signal=t;class n{constructor(){this.signal=new t}abort(){this.signal.emit("abort")}}return Qt.AbortController=n,Qt}var pi={},yu;function wd(){return yu||(yu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.kBodyUsed=Symbol("bodyUsed"),e.kBodyDestroyed=Symbol("bodyDestroyed");function t(r){const i=n(r);return i===null?null:(r.$rawBody=e.kBodyUsed,i)}e.useRawBody=t;function n(r){const{$rawBody:i}=r;if(i===e.kBodyUsed)throw new TypeError("Body already used");if(i===e.kBodyDestroyed)throw new TypeError("Body is destroyed");return i}e.getRawBody=n})(pi)),pi}var _u;function Ed(){return _u||(_u=1,(function(e){function t(m){for(var g in m)e.hasOwnProperty(g)||(e[g]=m[g])}Object.defineProperty(e,"__esModule",{value:!0});const n=bd(),r=Lg(),i=qg(),a=ln(),o=fn(),d=wd();t(ln()),t(fn());function f(m){const g=new DataView(m);return new TextDecoder("utf-8").decode(g)}function v(m){return new TextEncoder().encode(m)}function s(m){const g=m.getReader();function u(_){return g.read().then(E=>{if(E.done)return _;const w=E.value,b=new Uint8Array(_.byteLength+w.byteLength);return b.set(_,0),b.set(w,_.byteLength),u(b)})}return u(new Uint8Array(0))}class l{constructor(g){const u=g===void 0?null:g;this.$rawBody=u}get bodyUsed(){return this.$rawBody===d.kBodyUsed||this.$rawBody===d.kBodyDestroyed}json(){return this.text().then(g=>JSON.parse(g))}text(){const g=d.useRawBody(this);return g===null?Promise.resolve(""):typeof g=="string"?Promise.resolve(g):g instanceof ArrayBuffer?Promise.resolve(f(g)):s(g).then(f)}arrayBuffer(){const g=d.useRawBody(this);return g===null?Promise.resolve(new ArrayBuffer(0)):g instanceof ArrayBuffer?Promise.resolve(g):typeof g=="string"?Promise.resolve(v(g).buffer):s(g)}readableStream(){const g=d.useRawBody(this);return g===null?new ReadableStream({start(u){u.close()}}):typeof g=="string"?new ReadableStream({start(u){u.enqueue(v(g)),u.close()}}):g instanceof ArrayBuffer?new ReadableStream({start(u){u.enqueue(new Uint8Array(g)),u.close()}}):g}clone(){const g=d.getRawBody(this);if(g instanceof ReadableStream){const[u,_]=g.tee();return this.$rawBody=u,new l(_)}return new l(g)}destroy(){const g=d.getRawBody(this);return this.$rawBody=d.kBodyDestroyed,g instanceof ReadableStream?g.cancel():Promise.resolve()}}e.Body=l;class c extends l{constructor(g,u={}){const _=typeof g=="string"?void 0:g.clone(),E=u.body||(_?d.getRawBody(_):null),w=_&&!u.headers?_.headers:h(E,u.headers,u.omitDefaultHeaders===!0);super(E),this.url=typeof g=="string"?g:g.url,this.method=u.method||_&&_.method||"GET",this.signal=u.signal||_&&_.signal||new o.Signal,this.headers=w,this.trailer=_&&!u.trailer?_.trailer:Promise.resolve(u.trailer).then(b=>new a.Headers(b)),n.once(this.signal,"abort",()=>this.destroy())}clone(){const g=super.clone();return new c(this.url,{body:d.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 y extends l{get ok(){return this.status>=200&&this.status<300}constructor(g,u={}){const _=h(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(E=>new a.Headers(E))}clone(){const g=super.clone();return new y(d.getRawBody(g),{status:this.status,statusText:this.statusText,headers:this.headers.clone(),omitDefaultHeaders:!0,trailer:this.trailer.then(u=>u.clone())})}}e.Response=y;function h(m,g,u){const _=new a.Headers(g);if(m==null)return _;if(typeof m=="string")return!u&&!_.has("Content-Type")&&_.set("Content-Type","text/plain"),!u&&!_.has("Content-Length")&&_.set("Content-Length",r.byteLength(m).toString()),_;if(!u&&!_.has("Content-Type")&&_.set("Content-Type","application/octet-stream"),m instanceof ArrayBuffer)return!u&&!_.has("Content-Length")&&_.set("Content-Length",String(m.byteLength)),_;if(m instanceof ReadableStream)return _;throw i.expectType(m),new TypeError("Unknown body type")}})(hi)),hi}var ct={},bu;function Dg(){if(bu)return ct;bu=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=Ed(),t=wd();class n extends e.Response{constructor(c,y){super(c,y),this.url=y.url}}ct.XhrResponse=n;class r extends Error{constructor(c,y){super(y),this.request=c,this.code="EBLOCKED"}}ct.BlockedRequestError=r;class i extends Error{constructor(c,y){super(y),this.request=c,this.code="EINVALID"}}ct.InvalidRequestError=i;class a extends Error{constructor(c,y){super(y),this.request=c,this.code="EUNAVAILABLE"}}ct.ConnectionError=a;class o extends Error{constructor(c,y){super(y),this.request=c,this.code="ECSP"}}ct.CSPError=o;class d extends Error{constructor(c,y){super(y),this.request=c,this.code="ETYPE"}}ct.TypeError=d;class f extends Error{constructor(c,y){super(y),this.request=c,this.code="EABORT"}}ct.AbortError=f;function v(l={}){return function(c){return new Promise(function(y,h){const m=l.type||"arraybuffer",g=c.method.toUpperCase();if(c.signal.aborted)return h(new f(c,"Request has been aborted"));if(window.location.protocol==="https:"&&c.url.startsWith("http:"))return h(new r(c,`The connection to "${c.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(c.url))return h(new i(c,`Refusing to connect to "${c.url}"`));const u=new XMLHttpRequest;let _=!1;function E(){const b=new n(m==="text"?u.responseText:u.response,{status:u.status===1223?204:u.status,statusText:u.statusText,headers:s(u.getAllResponseHeaders()),omitDefaultHeaders:!0,url:u.responseURL});return c.signal.emit("responseStarted"),c.signal.emit("responseEnded"),y(b)}function w(){return h(new a(c,`Unable to connect to "${c.url}"`))}u.onload=E,u.onabort=E,u.onerror=w,u.onprogress=b=>{c.signal.emit("requestBytes",b.loaded)},g!=="GET"&&g!=="HEAD"&&u.upload&&(_=!0,u.upload.onprogress=b=>{c.signal.emit("responseBytes",b.loaded)},u.upload.onloadend=()=>{c.signal.emit("requestEnded")});try{u.open(g,c.url)}catch{return h(new o(c,`Refused to connect to "${c.url}"`))}if(l.withCredentials&&(u.withCredentials=!0),l.overrideMimeType&&u.overrideMimeType(l.overrideMimeType),m!=="text")try{u.responseType=m}finally{if(u.responseType!==m)return h(new d(c,`Unsupported type: ${m}`))}for(const[b,x]of c.headers.entries())if(Array.isArray(x))for(const O of x)u.setRequestHeader(b,O);else u.setRequestHeader(b,x);c.signal.emit("requestStarted"),_||c.signal.emit("requestEnded"),c.signal.on("abort",()=>u.abort()),u.send(t.useRawBody(c))})}}ct.transport=v;function s(l){const c=[],y=l.split(/\r?\n/);for(const h of y)if(h){const m=h.indexOf(":"),g=h.substr(0,m).trim(),u=h.substr(m+1).trim();c.push([g,u])}return c}return ct}var er={},wu;function Bo(){if(wu)return er;wu=1,Object.defineProperty(er,"__esModule",{value:!0}),er.toFetch=void 0;function e(t,n){function r(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...a){const o=a.length===1&&a[0]instanceof n?a[0]:new n(...a);return t(o,r)}}return er.toFetch=e,er}var Eu;function Ng(){return Eu||(Eu=1,(function(e){var t=Lt&&Lt.__createBinding||(Object.create?(function(o,d,f,v){v===void 0&&(v=f);var s=Object.getOwnPropertyDescriptor(d,f);(!s||("get"in s?!d.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(o,v,s)}):(function(o,d,f,v){v===void 0&&(v=f),o[v]=d[f]})),n=Lt&&Lt.__exportStar||function(o,d){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&t(d,o,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.middleware=e.XhrResponse=e.transport=e.Request=void 0;const r=Ed();Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return r.Request}});const i=Dg();Object.defineProperty(e,"transport",{enumerable:!0,get:function(){return i.transport}}),Object.defineProperty(e,"XhrResponse",{enumerable:!0,get:function(){return i.XhrResponse}});const a=Bo();n(Bo(),e),n(fn(),e),n(ln(),e),e.middleware=(0,i.transport)(),e.fetch=(0,a.toFetch)(e.middleware,r.Request)})(Lt)),Lt}var Su;function Mg(){return Su||(Su=1,(function(e){var t=jt&&jt.__createBinding||(Object.create?(function(i,a,o,d){d===void 0&&(d=o);var f=Object.getOwnPropertyDescriptor(a,o);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(i,d,f)}):(function(i,a,o,d){d===void 0&&(d=o),i[d]=a[o]})),n=jt&&jt.__exportStar||function(i,a){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&t(a,i,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.middleware=e.fetch=void 0;const r=Ng();n(Bo(),e),n(fn(),e),n(ln(),e),e.fetch=r.fetch,e.middleware=r.middleware})(jt)),jt}var Ve={},Ru;function Vt(){return Ru||(Ru=1,Ve.endianness=function(){return"LE"},Ve.hostname=function(){return typeof location<"u"?location.hostname:""},Ve.loadavg=function(){return[]},Ve.uptime=function(){return 0},Ve.freemem=function(){return Number.MAX_VALUE},Ve.totalmem=function(){return Number.MAX_VALUE},Ve.cpus=function(){return[]},Ve.type=function(){return"Browser"},Ve.release=function(){return typeof navigator<"u"?navigator.appVersion:""},Ve.networkInterfaces=Ve.getNetworkInterfaces=function(){return{}},Ve.arch=function(){return"javascript"},Ve.platform=function(){return"browser"},Ve.tmpdir=Ve.tmpDir=function(){return"/tmp"},Ve.EOL=`
|
|
80
|
-
`,Ve.homedir=function(){return"/"}),Ve}var mi={},xr={},gi,Ou;function rt(){if(Ou)return gi;Ou=1;function e(h){"@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(h)}function t(h,m,g){return Object.defineProperty(h,"prototype",{writable:!1}),h}function n(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function r(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),m&&l(h,m)}function i(h){var m=v();return function(){var u=c(h),_;if(m){var
|
|
79
|
+
`));var ve=new s({actual:L,expected:D,message:F,operator:J,stackStartFn:K});throw ve.generatedMessage=ue,ve}}O.match=function L(D,F,K){B(D,F,K,L,"match")},O.doesNotMatch=function L(D,F,K){B(D,F,K,L,"doesNotMatch")};function q(){for(var L=arguments.length,D=new Array(L),F=0;F<L;F++)D[F]=arguments[F];V.apply(void 0,[q,D.length].concat(D))}return O.strict=g(q,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict,Vn.exports}var ru;function gg(){return ru||(ru=1,(function(e,t){var n=sr(),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i="abcdefghijklmnopqrstuvwxyz0123456789",a="0123456789";t=e.exports=o(r),t.base62=t,t.base36=o(i),t.base10=o(a),t.create=o;function o(d){n(typeof d=="string","the list of characters must be a string!");var f=et.byteLength(d);return function(s){s=s||10,n(typeof s=="number"&&s>=0,"the length of the random string must be a number!");for(var l="",c=0;c<s;c++)l+=d[Math.floor(f*Math.random())];return l}}})(Rr,Rr.exports)),Rr.exports}var Or={exports:{}},Tr={exports:{}};var nu;function vg(){if(nu)return Tr.exports;nu=1;var e=Wt(),t=e.randomBytes===e.pseudoRandomBytes?1:3;Tr.exports=n,Tr.exports.sync=r;function n(a,o){if(o!==void 0&&typeof o!="function")throw new TypeError("argument callback must be a function");if(!o&&!rd.Promise)throw new TypeError("argument callback is required");return o?i(a,t,o):new Promise(function(f,v){i(a,t,function(l,c){if(l)return v(l);f(c)})})}function r(a){for(var o=null,d=0;d<t;d++)try{return e.randomBytes(a)}catch(f){o=f}throw o}function i(a,o,d){e.randomBytes(a,function(v,s){if(!v)return d(null,s);if(!--o)return d(v);setTimeout(i.bind(null,a,o,d),10)})}return Tr.exports}var iu;function yg(){if(iu)return Or.exports;iu=1;var e=vg(),t=/=+$/,n=/\+/g,r=/\//g;Or.exports=i,Or.exports.sync=a;function i(f,v){if(v!==void 0&&typeof v!="function")throw new TypeError("argument callback must be a function");if(!v&&!rd.Promise)throw new TypeError("argument callback is required");return v?o(f,v):new Promise(function(l,c){o(f,function(h,m){if(h)return c(h);l(m)})})}function a(f){return d(e.sync(f))}function o(f,v){e(f,function(s,l){if(s)return v(s);v(null,d(l))})}function d(f){return f.toString("base64").replace(t,"").replace(n,"-").replace(r,"_")}return Or.exports}var si,au;function _g(){if(au)return si;au=1;var e=Wt();function t(r,i){if(r.length!==i.length)return!1;if(e.timingSafeEqual)return e.timingSafeEqual(r,i);for(var a=0;a<r.length;a++)if(r[a]!==i[a])return!1;return!0}function n(r,i){var a=String(r),o=String(i),d=e.pseudoRandomBytes(32),f=e.createHmac("sha256",d).update(a).digest(),v=e.createHmac("sha256",d).update(o).digest();return t(f,v)&&r===i}return si=n,si}var ui,ou;function bg(){if(ou)return ui;ou=1;var e=gg(),t=yg(),n=_g(),r=Wt(),i=/=/g,a=/\+/g,o=/\//g;ui=d;function d(v){if(!(this instanceof d))return new d(v);var s=v||{},l=s.saltLength!==void 0?s.saltLength:8;if(typeof l!="number"||!isFinite(l)||l<1)throw new TypeError("option saltLength must be finite number > 1");var c=s.secretLength!==void 0?s.secretLength:18;if(typeof c!="number"||!isFinite(c)||c<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=l,this.secretLength=c}d.prototype.create=function(s){if(!s||typeof s!="string")throw new TypeError("argument secret is required");return this._tokenize(s,e(this.saltLength))},d.prototype.secret=function(s){return t(this.secretLength,s)},d.prototype.secretSync=function(){return t.sync(this.secretLength)},d.prototype._tokenize=function(s,l){return l+"-"+f(l+"-"+s)},d.prototype.verify=function(s,l){if(!s||typeof s!="string"||!l||typeof l!="string")return!1;var c=l.indexOf("-");if(c===-1)return!1;var y=l.substr(0,c),h=this._tokenize(s,y);return n(l,h)};function f(v){return r.createHash("sha1").update(v,"ascii").digest("base64").replace(a,"-").replace(o,"_").replace(i,"")}return ui}var ci={},li,su;function wg(){return su||(su=1,li=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),li}const Sg="%[a-f0-9]{2}",uu=new RegExp(`(${Sg})+`,"gi"),Eg=/^[a-f\d]{2}$/i;function cu(e,t){if(e.codePointAt(t)!==37||t+3>e.length)return;const n=e.slice(t+1,t+3);if(Eg.test(n))return{byte:Number.parseInt(n,16),next:t+3}}function Rg(e){return e<=127?1:e>=194&&e<=223?2:e>=224&&e<=239?3:e>=240&&e<=244?4:0}function Og(e){return e>=128&&e<=191}function Tg(e){try{return decodeURIComponent(e)}catch{let t="",n=0;for(;n<e.length;){if(e.codePointAt(n)!==37){t+=e.charAt(n),n++;continue}const r=cu(e,n);if(!r){t+=e.charAt(n),n++;continue}const i=Rg(r.byte);if(i===0){t+=e.slice(n,n+3),n+=3;continue}let a=r.next,o=!0;for(let d=1;d<i;d++){const f=cu(e,a);if(!f||!Og(f.byte)){o=!1;break}a=f.next}if(o){const d=e.slice(n,a);try{t+=decodeURIComponent(d),n=a;continue}catch{}}t+=e.slice(n,n+3),n+=3}return t}}function Ag(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=uu.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=Tg(n[0]);i!==n[0]&&(t[n[0]]=i)}n=uu.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function Ig(e){if(typeof e!="string")throw new TypeError(`Expected \`encodedURI\` to be of type \`string\`, got \`${typeof e}\``);try{return decodeURIComponent(e)}catch{return Ag(e)}}const xg=Object.freeze(Object.defineProperty({__proto__:null,default:Ig},Symbol.toStringTag,{value:"Module"})),Cg=Yo(xg);var fi,lu;function kg(){return lu||(lu=1,fi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]}),fi}var di,fu;function Pg(){return fu||(fu=1,di=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;a<r.length;a++){var o=r[a],d=e[o];(i?t.indexOf(o)!==-1:t(o,d,e))&&(n[o]=d)}return n}),di}var du;function jg(){return du||(du=1,(function(e){const t=wg(),n=Cg,r=kg(),i=Pg(),a=u=>u==null;function o(u){switch(u.arrayFormat){case"index":return _=>(S,w)=>{const b=S.length;return w===void 0||u.skipNull&&w===null||u.skipEmptyString&&w===""?S:w===null?[...S,[v(_,u),"[",b,"]"].join("")]:[...S,[v(_,u),"[",v(b,u),"]=",v(w,u)].join("")]};case"bracket":return _=>(S,w)=>w===void 0||u.skipNull&&w===null||u.skipEmptyString&&w===""?S:w===null?[...S,[v(_,u),"[]"].join("")]:[...S,[v(_,u),"[]=",v(w,u)].join("")];case"comma":case"separator":return _=>(S,w)=>w==null||w.length===0?S:S.length===0?[[v(_,u),"=",v(w,u)].join("")]:[[S,v(w,u)].join(u.arrayFormatSeparator)];default:return _=>(S,w)=>w===void 0||u.skipNull&&w===null||u.skipEmptyString&&w===""?S:w===null?[...S,v(_,u)]:[...S,[v(_,u),"=",v(w,u)].join("")]}}function d(u){let _;switch(u.arrayFormat){case"index":return(S,w,b)=>{if(_=/\[(\d*)\]$/.exec(S),S=S.replace(/\[\d*\]$/,""),!_){b[S]=w;return}b[S]===void 0&&(b[S]={}),b[S][_[1]]=w};case"bracket":return(S,w,b)=>{if(_=/(\[\])$/.exec(S),S=S.replace(/\[\]$/,""),!_){b[S]=w;return}if(b[S]===void 0){b[S]=[w];return}b[S]=[].concat(b[S],w)};case"comma":case"separator":return(S,w,b)=>{const x=typeof w=="string"&&w.includes(u.arrayFormatSeparator),O=typeof w=="string"&&!x&&s(w,u).includes(u.arrayFormatSeparator);w=O?s(w,u):w;const P=x||O?w.split(u.arrayFormatSeparator).map(M=>s(M,u)):w===null?w:s(w,u);b[S]=P};default:return(S,w,b)=>{if(b[S]===void 0){b[S]=w;return}b[S]=[].concat(b[S],w)}}}function f(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function v(u,_){return _.encode?_.strict?t(u):encodeURIComponent(u):u}function s(u,_){return _.decode?n(u):u}function l(u){return Array.isArray(u)?u.sort():typeof u=="object"?l(Object.keys(u)).sort((_,S)=>Number(_)-Number(S)).map(_=>u[_]):u}function c(u){const _=u.indexOf("#");return _!==-1&&(u=u.slice(0,_)),u}function y(u){let _="";const S=u.indexOf("#");return S!==-1&&(_=u.slice(S)),_}function h(u){u=c(u);const _=u.indexOf("?");return _===-1?"":u.slice(_+1)}function m(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},_),f(_.arrayFormatSeparator);const S=d(_),w=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return w;for(const b of u.split("&")){if(b==="")continue;let[x,O]=r(_.decode?b.replace(/\+/g," "):b,"=");O=O===void 0?null:["comma","separator"].includes(_.arrayFormat)?O:s(O,_),S(s(x,_),O,w)}for(const b of Object.keys(w)){const x=w[b];if(typeof x=="object"&&x!==null)for(const O of Object.keys(x))x[O]=m(x[O],_);else w[b]=m(x,_)}return _.sort===!1?w:(_.sort===!0?Object.keys(w).sort():Object.keys(w).sort(_.sort)).reduce((b,x)=>{const O=w[x];return O&&typeof O=="object"&&!Array.isArray(O)?b[x]=l(O):b[x]=O,b},Object.create(null))}e.extract=h,e.parse=g,e.stringify=(u,_)=>{if(!u)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),f(_.arrayFormatSeparator);const S=O=>_.skipNull&&a(u[O])||_.skipEmptyString&&u[O]==="",w=o(_),b={};for(const O of Object.keys(u))S(O)||(b[O]=u[O]);const x=Object.keys(b);return _.sort!==!1&&x.sort(_.sort),x.map(O=>{const P=u[O];return P===void 0?"":P===null?v(O,_):Array.isArray(P)?P.reduce(w(O),[]).join("&"):v(O,_)+"="+v(P,_)}).filter(O=>O.length>0).join("&")},e.parseUrl=(u,_)=>{_=Object.assign({decode:!0},_);const[S,w]=r(u,"#");return Object.assign({url:S.split("?")[0]||"",query:g(h(u),_)},_&&_.parseFragmentIdentifier&&w?{fragmentIdentifier:s(w,_)}:{})},e.stringifyUrl=(u,_)=>{_=Object.assign({encode:!0,strict:!0},_);const S=c(u.url).split("?")[0]||"",w=e.extract(u.url),b=e.parse(w,{sort:!1}),x=Object.assign(b,u.query);let O=e.stringify(x,_);O&&(O=`?${O}`);let P=y(u.url);return u.fragmentIdentifier&&(P=`#${v(u.fragmentIdentifier,_)}`),`${S}${O}${P}`},e.pick=(u,_,S)=>{S=Object.assign({parseFragmentIdentifier:!0},S);const{url:w,query:b,fragmentIdentifier:x}=e.parseUrl(u,S);return e.stringifyUrl({url:w,query:i(b,_),fragmentIdentifier:x},S)},e.exclude=(u,_,S)=>{const w=Array.isArray(_)?b=>!_.includes(b):(b,x)=>!_(b,x);return e.pick(u,w,S)}})(ci)),ci}var jt={},Lt={},hi={},Xt={},hu;function bd(){if(hu)return Xt;hu=1,Object.defineProperty(Xt,"__esModule",{value:!0});class e{constructor(){this._=[],this.$=Object.create(null)}on(r,i){(this.$[r]=this.$[r]||[]).push(i)}off(r,i){const a=this.$[r];a&&a.splice(a.indexOf(i)>>>0,1)}each(r){this._.push(r)}none(r){this._.splice(this._.indexOf(r)>>>0,1)}emit(r,...i){const a=this.$[r];a&&a.slice().forEach(o=>o(...i)),this._.slice().forEach(o=>o({type:r,args:i}))}}Xt.Emitter=e;function t(n,r,i){function a(...o){return n.off(r,a),i(...o)}return n.on(r,a),a}return Xt.once=t,Xt}var Ar={},pu;function Lg(){if(pu)return Ar;pu=1,Object.defineProperty(Ar,"__esModule",{value:!0});function e(t){if(!t)return 0;t=t.toString();for(var n=t.length,r=t.length;r--;){var i=t.charCodeAt(r);56320<=i&&i<=57343&&r--,127<i&&i<=2047?n++:2047<i&&i<=65535&&(n+=2)}return n}return Ar.byteLength=e,Ar}var qt={},mu;function qg(){if(mu)return qt;mu=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.expectNever=qt.expectType=void 0;const e=n=>{};qt.expectType=e;const t=n=>{throw new TypeError("Unexpected value: "+n)};return qt.expectNever=t,qt}var Ir={},gu;function ln(){if(gu)return Ir;gu=1,Object.defineProperty(Ir,"__esModule",{value:!0});class e{constructor(n){this.object=Object.create(null),n&&this.extend(n)}set(n,r){this.object[n.toLowerCase()]=Array.isArray(r)?r.map(String):String(r)}append(n,r){const i=n.toLowerCase(),a=this.object[i];if(a===void 0)Array.isArray(r)?this.object[i]=r.map(String):this.object[i]=String(r);else if(Array.isArray(a))if(Array.isArray(r))for(const o of r)a.push(String(o));else a.push(String(r));else this.object[i]=Array.isArray(r)?[a,...r.map(String)]:[a,String(r)]}get(n){const r=this.object[n.toLowerCase()];return r===void 0?null:Array.isArray(r)?r[0]:r}getAll(n){const r=this.object[n.toLowerCase()];return r===void 0?[]:Array.isArray(r)?[...r]:[r]}has(n){return n.toLowerCase()in this.object}delete(n){delete this.object[n.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(n){if(Symbol.iterator in n)for(const[r,i]of n)this.append(r,i);else if(n instanceof e)for(const[r,i]of n.entries())this.append(r,i);else for(const r of Object.keys(n)){const i=n[r];i!==void 0&&this.append(r,i)}}clone(){return new e(this.object)}}return Ir.Headers=e,Ir}var Qt={},vu;function fn(){if(vu)return Qt;vu=1,Object.defineProperty(Qt,"__esModule",{value:!0});const e=bd();class t extends e.Emitter{constructor(){super(),this.aborted=!1,e.once(this,"abort",()=>this.aborted=!0)}}Qt.Signal=t;class n{constructor(){this.signal=new t}abort(){this.signal.emit("abort")}}return Qt.AbortController=n,Qt}var pi={},yu;function wd(){return yu||(yu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.kBodyUsed=Symbol("bodyUsed"),e.kBodyDestroyed=Symbol("bodyDestroyed");function t(r){const i=n(r);return i===null?null:(r.$rawBody=e.kBodyUsed,i)}e.useRawBody=t;function n(r){const{$rawBody:i}=r;if(i===e.kBodyUsed)throw new TypeError("Body already used");if(i===e.kBodyDestroyed)throw new TypeError("Body is destroyed");return i}e.getRawBody=n})(pi)),pi}var _u;function Sd(){return _u||(_u=1,(function(e){function t(m){for(var g in m)e.hasOwnProperty(g)||(e[g]=m[g])}Object.defineProperty(e,"__esModule",{value:!0});const n=bd(),r=Lg(),i=qg(),a=ln(),o=fn(),d=wd();t(ln()),t(fn());function f(m){const g=new DataView(m);return new TextDecoder("utf-8").decode(g)}function v(m){return new TextEncoder().encode(m)}function s(m){const g=m.getReader();function u(_){return g.read().then(S=>{if(S.done)return _;const w=S.value,b=new Uint8Array(_.byteLength+w.byteLength);return b.set(_,0),b.set(w,_.byteLength),u(b)})}return u(new Uint8Array(0))}class l{constructor(g){const u=g===void 0?null:g;this.$rawBody=u}get bodyUsed(){return this.$rawBody===d.kBodyUsed||this.$rawBody===d.kBodyDestroyed}json(){return this.text().then(g=>JSON.parse(g))}text(){const g=d.useRawBody(this);return g===null?Promise.resolve(""):typeof g=="string"?Promise.resolve(g):g instanceof ArrayBuffer?Promise.resolve(f(g)):s(g).then(f)}arrayBuffer(){const g=d.useRawBody(this);return g===null?Promise.resolve(new ArrayBuffer(0)):g instanceof ArrayBuffer?Promise.resolve(g):typeof g=="string"?Promise.resolve(v(g).buffer):s(g)}readableStream(){const g=d.useRawBody(this);return g===null?new ReadableStream({start(u){u.close()}}):typeof g=="string"?new ReadableStream({start(u){u.enqueue(v(g)),u.close()}}):g instanceof ArrayBuffer?new ReadableStream({start(u){u.enqueue(new Uint8Array(g)),u.close()}}):g}clone(){const g=d.getRawBody(this);if(g instanceof ReadableStream){const[u,_]=g.tee();return this.$rawBody=u,new l(_)}return new l(g)}destroy(){const g=d.getRawBody(this);return this.$rawBody=d.kBodyDestroyed,g instanceof ReadableStream?g.cancel():Promise.resolve()}}e.Body=l;class c extends l{constructor(g,u={}){const _=typeof g=="string"?void 0:g.clone(),S=u.body||(_?d.getRawBody(_):null),w=_&&!u.headers?_.headers:h(S,u.headers,u.omitDefaultHeaders===!0);super(S),this.url=typeof g=="string"?g:g.url,this.method=u.method||_&&_.method||"GET",this.signal=u.signal||_&&_.signal||new o.Signal,this.headers=w,this.trailer=_&&!u.trailer?_.trailer:Promise.resolve(u.trailer).then(b=>new a.Headers(b)),n.once(this.signal,"abort",()=>this.destroy())}clone(){const g=super.clone();return new c(this.url,{body:d.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 y extends l{get ok(){return this.status>=200&&this.status<300}constructor(g,u={}){const _=h(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(S=>new a.Headers(S))}clone(){const g=super.clone();return new y(d.getRawBody(g),{status:this.status,statusText:this.statusText,headers:this.headers.clone(),omitDefaultHeaders:!0,trailer:this.trailer.then(u=>u.clone())})}}e.Response=y;function h(m,g,u){const _=new a.Headers(g);if(m==null)return _;if(typeof m=="string")return!u&&!_.has("Content-Type")&&_.set("Content-Type","text/plain"),!u&&!_.has("Content-Length")&&_.set("Content-Length",r.byteLength(m).toString()),_;if(!u&&!_.has("Content-Type")&&_.set("Content-Type","application/octet-stream"),m instanceof ArrayBuffer)return!u&&!_.has("Content-Length")&&_.set("Content-Length",String(m.byteLength)),_;if(m instanceof ReadableStream)return _;throw i.expectType(m),new TypeError("Unknown body type")}})(hi)),hi}var ct={},bu;function Dg(){if(bu)return ct;bu=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=Sd(),t=wd();class n extends e.Response{constructor(c,y){super(c,y),this.url=y.url}}ct.XhrResponse=n;class r extends Error{constructor(c,y){super(y),this.request=c,this.code="EBLOCKED"}}ct.BlockedRequestError=r;class i extends Error{constructor(c,y){super(y),this.request=c,this.code="EINVALID"}}ct.InvalidRequestError=i;class a extends Error{constructor(c,y){super(y),this.request=c,this.code="EUNAVAILABLE"}}ct.ConnectionError=a;class o extends Error{constructor(c,y){super(y),this.request=c,this.code="ECSP"}}ct.CSPError=o;class d extends Error{constructor(c,y){super(y),this.request=c,this.code="ETYPE"}}ct.TypeError=d;class f extends Error{constructor(c,y){super(y),this.request=c,this.code="EABORT"}}ct.AbortError=f;function v(l={}){return function(c){return new Promise(function(y,h){const m=l.type||"arraybuffer",g=c.method.toUpperCase();if(c.signal.aborted)return h(new f(c,"Request has been aborted"));if(window.location.protocol==="https:"&&c.url.startsWith("http:"))return h(new r(c,`The connection to "${c.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(c.url))return h(new i(c,`Refusing to connect to "${c.url}"`));const u=new XMLHttpRequest;let _=!1;function S(){const b=new n(m==="text"?u.responseText:u.response,{status:u.status===1223?204:u.status,statusText:u.statusText,headers:s(u.getAllResponseHeaders()),omitDefaultHeaders:!0,url:u.responseURL});return c.signal.emit("responseStarted"),c.signal.emit("responseEnded"),y(b)}function w(){return h(new a(c,`Unable to connect to "${c.url}"`))}u.onload=S,u.onabort=S,u.onerror=w,u.onprogress=b=>{c.signal.emit("requestBytes",b.loaded)},g!=="GET"&&g!=="HEAD"&&u.upload&&(_=!0,u.upload.onprogress=b=>{c.signal.emit("responseBytes",b.loaded)},u.upload.onloadend=()=>{c.signal.emit("requestEnded")});try{u.open(g,c.url)}catch{return h(new o(c,`Refused to connect to "${c.url}"`))}if(l.withCredentials&&(u.withCredentials=!0),l.overrideMimeType&&u.overrideMimeType(l.overrideMimeType),m!=="text")try{u.responseType=m}finally{if(u.responseType!==m)return h(new d(c,`Unsupported type: ${m}`))}for(const[b,x]of c.headers.entries())if(Array.isArray(x))for(const O of x)u.setRequestHeader(b,O);else u.setRequestHeader(b,x);c.signal.emit("requestStarted"),_||c.signal.emit("requestEnded"),c.signal.on("abort",()=>u.abort()),u.send(t.useRawBody(c))})}}ct.transport=v;function s(l){const c=[],y=l.split(/\r?\n/);for(const h of y)if(h){const m=h.indexOf(":"),g=h.substr(0,m).trim(),u=h.substr(m+1).trim();c.push([g,u])}return c}return ct}var er={},wu;function Bo(){if(wu)return er;wu=1,Object.defineProperty(er,"__esModule",{value:!0}),er.toFetch=void 0;function e(t,n){function r(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...a){const o=a.length===1&&a[0]instanceof n?a[0]:new n(...a);return t(o,r)}}return er.toFetch=e,er}var Su;function Ng(){return Su||(Su=1,(function(e){var t=Lt&&Lt.__createBinding||(Object.create?(function(o,d,f,v){v===void 0&&(v=f);var s=Object.getOwnPropertyDescriptor(d,f);(!s||("get"in s?!d.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(o,v,s)}):(function(o,d,f,v){v===void 0&&(v=f),o[v]=d[f]})),n=Lt&&Lt.__exportStar||function(o,d){for(var f in o)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&t(d,o,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.middleware=e.XhrResponse=e.transport=e.Request=void 0;const r=Sd();Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return r.Request}});const i=Dg();Object.defineProperty(e,"transport",{enumerable:!0,get:function(){return i.transport}}),Object.defineProperty(e,"XhrResponse",{enumerable:!0,get:function(){return i.XhrResponse}});const a=Bo();n(Bo(),e),n(fn(),e),n(ln(),e),e.middleware=(0,i.transport)(),e.fetch=(0,a.toFetch)(e.middleware,r.Request)})(Lt)),Lt}var Eu;function Mg(){return Eu||(Eu=1,(function(e){var t=jt&&jt.__createBinding||(Object.create?(function(i,a,o,d){d===void 0&&(d=o);var f=Object.getOwnPropertyDescriptor(a,o);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(i,d,f)}):(function(i,a,o,d){d===void 0&&(d=o),i[d]=a[o]})),n=jt&&jt.__exportStar||function(i,a){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&t(a,i,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.middleware=e.fetch=void 0;const r=Ng();n(Bo(),e),n(fn(),e),n(ln(),e),e.fetch=r.fetch,e.middleware=r.middleware})(jt)),jt}var Ve={},Ru;function Vt(){return Ru||(Ru=1,Ve.endianness=function(){return"LE"},Ve.hostname=function(){return typeof location<"u"?location.hostname:""},Ve.loadavg=function(){return[]},Ve.uptime=function(){return 0},Ve.freemem=function(){return Number.MAX_VALUE},Ve.totalmem=function(){return Number.MAX_VALUE},Ve.cpus=function(){return[]},Ve.type=function(){return"Browser"},Ve.release=function(){return typeof navigator<"u"?navigator.appVersion:""},Ve.networkInterfaces=Ve.getNetworkInterfaces=function(){return{}},Ve.arch=function(){return"javascript"},Ve.platform=function(){return"browser"},Ve.tmpdir=Ve.tmpDir=function(){return"/tmp"},Ve.EOL=`
|
|
80
|
+
`,Ve.homedir=function(){return"/"}),Ve}var mi={},xr={},gi,Ou;function rt(){if(Ou)return gi;Ou=1;function e(h){"@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(h)}function t(h,m,g){return Object.defineProperty(h,"prototype",{writable:!1}),h}function n(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function r(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),m&&l(h,m)}function i(h){var m=v();return function(){var u=c(h),_;if(m){var S=c(this).constructor;_=Reflect.construct(u,arguments,S)}else _=u.apply(this,arguments);return a(this,_)}}function a(h,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 o(h)}function o(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function d(h){var m=typeof Map=="function"?new Map:void 0;return d=function(u){if(u===null||!s(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof m<"u"){if(m.has(u))return m.get(u);m.set(u,_)}function _(){return f(u,arguments,c(this).constructor)}return _.prototype=Object.create(u.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),l(_,u)},d(h)}function f(h,m,g){return v()?f=Reflect.construct.bind():f=function(_,S,w){var b=[null];b.push.apply(b,S);var x=Function.bind.apply(_,b),O=new x;return w&&l(O,w.prototype),O},f.apply(null,arguments)}function v(){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 s(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function l(h,m){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,_){return u.__proto__=_,u},l(h,m)}function c(h){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},c(h)}var y=(function(h){r(g,h);var m=i(g);function g(u){var _;return n(this,g),_=m.call(this,`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
81
81
|
Found: `.concat(u.toString().split(`
|
|
82
82
|
`)[0],`
|
|
83
|
-
`)),Error.captureStackTrace(o(_),g),_}return t(g)})(d(Error));return gi=function(h){if(h.length>2)throw new y(h);function m(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=u}m.prototype.transform=h;function g(u){return new m(u)}return g.Format=m,g},gi}var tr={exports:{}},vi={exports:{}},yi={exports:{}},_i={exports:{}},Tu;function Fg(){return Tu||(Tu=1,(function(e){var t={};e.exports=t;var n={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(n).forEach(function(r){var i=n[r],a=t[r]=[];a.open="\x1B["+i[0]+"m",a.close="\x1B["+i[1]+"m"})})(_i)),_i.exports}var bi,Au;function Bg(){return Au||(Au=1,bi=function(e,t){t=t||ye.argv;var n=t.indexOf("--"),r=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(r+e);return i!==-1&&(n===-1?!0:i<n)}),bi}var wi,Iu;function Ug(){if(Iu)return wi;Iu=1;var e={},t=Vt(),n=Bg(),r=e,i=void 0;n("no-color")||n("no-colors")||n("color=false")?i=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(i=!0),"FORCE_COLOR"in r&&(i=r.FORCE_COLOR.length===0||parseInt(r.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function o(f){if(i===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&i!==!0)return 0;var v=i?1:0;if(ye.platform==="win32"){var s=t.release().split(".");return Number(ye.versions.node.split(".")[0])>=8&&Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(c){return c in r})||r.CI_NAME==="codeship"?1:v;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in r){var l=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return l>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM==="dumb",v)}function d(f){var v=o(f);return a(v)}return wi={supportsColor:d,stdout:d(ye.stdout),stderr:d(ye.stderr)},wi}var
|
|
84
|
-
`)!=-1,_=this._styles,
|
|
85
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(h,m){if(h){if(typeof h=="string")return a(h,m);var g=Object.prototype.toString.call(h).slice(8,-1);if(g==="Object"&&h.constructor&&(g=h.constructor.name),g==="Map"||g==="Set")return Array.from(h);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(h,m)}}function r(h){if(typeof Symbol<"u"&&h[Symbol.iterator]!=null||h["@@iterator"]!=null)return Array.from(h)}function i(h){if(Array.isArray(h))return a(h)}function a(h,m){(m==null||m>h.length)&&(m=h.length);for(var g=0,u=new Array(m);g<m;g++)u[g]=h[g];return u}function o(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function d(h,m){for(var g=0;g<m.length;g++){var u=m[g];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}function f(h,m,g){return m&&d(h.prototype,m),g&&d(h,g),Object.defineProperty(h,"prototype",{writable:!1}),h}var v=De(),s=v.configs,l=v.LEVEL,c=v.MESSAGE,y=(function(){function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:s.npm.levels};o(this,h),this.paddings=h.paddingForLevels(m.levels,m.filler),this.options=m}return f(h,[{key:"transform",value:function(g,u){return g.message="".concat(this.paddings[g[l]]).concat(g.message),g[c]&&(g[c]="".concat(this.paddings[g[l]]).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
|
|
86
|
-
`));return!0}return Lr.exports=function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e(t(i)),d=o();return d.Format=o.Format,d},Lr.exports.cascade=t,Lr.exports}var Pi,Wu;function nv(){if(Wu)return Pi;Wu=1;function e(a,o,d){return o in a?Object.defineProperty(a,o,{value:d,enumerable:!0,configurable:!0,writable:!0}):a[o]=d,a}var t=rt(),n=De(),r=n.LEVEL,i=n.MESSAGE;return Pi=t(function(a,o){var d=o.stack;if(a instanceof Error){var f,v=Object.assign({},a,(f={level:a.level},e(f,r,a[r]||a.level),e(f,"message",a.message),e(f,i,a[i]||a.message),f));return d&&(v.stack=a.stack),v}if(!(a.message instanceof Error))return a;var s=a.message;return Object.assign(a,s),a.message=s.message,a[i]=s.message,d&&(a.stack=s.stack),a}),Pi}var qr={exports:{}},Yu;function gr(){return Yu||(Yu=1,(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=
|
|
83
|
+
`)),Error.captureStackTrace(o(_),g),_}return t(g)})(d(Error));return gi=function(h){if(h.length>2)throw new y(h);function m(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=u}m.prototype.transform=h;function g(u){return new m(u)}return g.Format=m,g},gi}var tr={exports:{}},vi={exports:{}},yi={exports:{}},_i={exports:{}},Tu;function Fg(){return Tu||(Tu=1,(function(e){var t={};e.exports=t;var n={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(n).forEach(function(r){var i=n[r],a=t[r]=[];a.open="\x1B["+i[0]+"m",a.close="\x1B["+i[1]+"m"})})(_i)),_i.exports}var bi,Au;function Bg(){return Au||(Au=1,bi=function(e,t){t=t||ye.argv;var n=t.indexOf("--"),r=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(r+e);return i!==-1&&(n===-1?!0:i<n)}),bi}var wi,Iu;function Ug(){if(Iu)return wi;Iu=1;var e={},t=Vt(),n=Bg(),r=e,i=void 0;n("no-color")||n("no-colors")||n("color=false")?i=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(i=!0),"FORCE_COLOR"in r&&(i=r.FORCE_COLOR.length===0||parseInt(r.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function o(f){if(i===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&i!==!0)return 0;var v=i?1:0;if(ye.platform==="win32"){var s=t.release().split(".");return Number(ye.versions.node.split(".")[0])>=8&&Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(c){return c in r})||r.CI_NAME==="codeship"?1:v;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in r){var l=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return l>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM==="dumb",v)}function d(f){var v=o(f);return a(v)}return wi={supportsColor:d,stdout:d(ye.stdout),stderr:d(ye.stderr)},wi}var Si={exports:{}},xu;function Vg(){return xu||(xu=1,(function(e){e.exports=function(n,r){var i="";n=n||"Run the trap, drop the bass",n=n.split("");var a={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 n.forEach(function(o){o=o.toLowerCase();var d=a[o]||[" "],f=Math.floor(Math.random()*d.length);typeof a[o]<"u"?i+=a[o][f]:i+=o}),i}})(Si)),Si.exports}var Ei={exports:{}},Cu;function $g(){return Cu||(Cu=1,(function(e){e.exports=function(n,r){n=n||" he is here ";var i={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},a=[].concat(i.up,i.down,i.mid);function o(v){var s=Math.floor(Math.random()*v);return s}function d(v){var s=!1;return a.filter(function(l){s=l===v}),s}function f(v,s){var l="",c,y;s=s||{},s.up=typeof s.up<"u"?s.up:!0,s.mid=typeof s.mid<"u"?s.mid:!0,s.down=typeof s.down<"u"?s.down:!0,s.size=typeof s.size<"u"?s.size:"maxi",v=v.split("");for(y in v)if(!d(y)){switch(l=l+v[y],c={up:0,down:0,mid:0},s.size){case"mini":c.up=o(8),c.mid=o(2),c.down=o(8);break;case"maxi":c.up=o(16)+3,c.mid=o(4)+1,c.down=o(64)+3;break;default:c.up=o(8)+1,c.mid=o(6)/2,c.down=o(8)+1;break}var h=["up","mid","down"];for(var m in h)for(var g=h[m],u=0;u<=c[g];u++)s[g]&&(l=l+i[g][o(i[g].length)])}return l}return f(n,r)}})(Ei)),Ei.exports}var Ri={exports:{}},ku;function zg(){return ku||(ku=1,(function(e){e.exports=function(t){return function(n,r,i){if(n===" ")return n;switch(r%3){case 0:return t.red(n);case 1:return t.white(n);case 2:return t.blue(n)}}}})(Ri)),Ri.exports}var Oi={exports:{}},Pu;function Gg(){return Pu||(Pu=1,(function(e){e.exports=function(t){return function(n,r,i){return r%2===0?n:t.inverse(n)}}})(Oi)),Oi.exports}var Ti={exports:{}},ju;function Hg(){return ju||(ju=1,(function(e){e.exports=function(t){var n=["red","yellow","green","blue","magenta"];return function(r,i,a){return r===" "?r:t[n[i++%n.length]](r)}}})(Ti)),Ti.exports}var Ai={exports:{}},Lu;function Zg(){return Lu||(Lu=1,(function(e){e.exports=function(t){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,i,a){return r===" "?r:t[n[Math.round(Math.random()*(n.length-2))]](r)}}})(Ai)),Ai.exports}var qu;function Wg(){return qu||(qu=1,(function(e){var t={};e.exports=t,t.themes={};var n=Ze(),r=t.styles=Fg(),i=Object.defineProperties,a=new RegExp(/[\r\n]+/g);t.supportsColor=Ug().supportsColor,typeof t.enabled>"u"&&(t.enabled=t.supportsColor()!==!1),t.enable=function(){t.enabled=!0},t.disable=function(){t.enabled=!1},t.stripColors=t.strip=function(m){return(""+m).replace(/\x1B\[\d+m/g,"")},t.stylize=function(g,u){if(!t.enabled)return g+"";var _=r[u];return!_&&u in t?t[u](g):_.open+g+_.close};var o=/[|\\{}()[\]^$+*?.]/g,d=function(m){if(typeof m!="string")throw new TypeError("Expected a string");return m.replace(o,"\\$&")};function f(m){var g=function u(){return l.apply(u,arguments)};return g._styles=m,g.__proto__=s,g}var v=(function(){var m={};return r.grey=r.gray,Object.keys(r).forEach(function(g){r[g].closeRe=new RegExp(d(r[g].close),"g"),m[g]={get:function(){return f(this._styles.concat(g))}}}),m})(),s=i(function(){},v);function l(){var m=Array.prototype.slice.call(arguments),g=m.map(function(b){return b!=null&&b.constructor===String?b:n.inspect(b)}).join(" ");if(!t.enabled||!g)return g;for(var u=g.indexOf(`
|
|
84
|
+
`)!=-1,_=this._styles,S=_.length;S--;){var w=r[_[S]];g=w.open+g.replace(w.closeRe,w.open)+w.close,u&&(g=g.replace(a,function(b){return w.close+b+w.open}))}return g}t.setTheme=function(m){if(typeof m=="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 m)(function(u){t[u]=function(_){if(typeof m[u]=="object"){var S=_;for(var w in m[u])S=t[m[u][w]](S);return S}return t[m[u]](_)}})(g)};function c(){var m={};return Object.keys(v).forEach(function(g){m[g]={get:function(){return f([g])}}}),m}var y=function(g,u){var _=u.split("");return _=_.map(g),_.join("")};t.trap=Vg(),t.zalgo=$g(),t.maps={},t.maps.america=zg()(t),t.maps.zebra=Gg()(t),t.maps.rainbow=Hg()(t),t.maps.random=Zg()(t);for(var h in t.maps)(function(m){t[m]=function(g){return y(t.maps[m],g)}})(h);i(t,c())})(yi)),yi.exports}var Du;function Ed(){return Du||(Du=1,(function(e){var t=Wg();e.exports=t})(vi)),vi.exports}var Ii={},xi={},Cr={},Nu;function Yg(){return Nu||(Nu=1,Cr.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},Cr.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}),Cr}var kr={},Mu;function Jg(){return Mu||(Mu=1,kr.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},kr.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}),kr}var Pr={},Fu;function Kg(){return Fu||(Fu=1,Pr.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},Pr.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}),Pr}var Bu;function Xg(){return Bu||(Bu=1,(function(e){Object.defineProperty(e,"cli",{value:Yg()}),Object.defineProperty(e,"npm",{value:Jg()}),Object.defineProperty(e,"syslog",{value:Kg()})})(xi)),xi}var Uu;function De(){return Uu||(Uu=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:Xg()})})(Ii)),Ii}var Vu;function ts(){if(Vu)return tr.exports;Vu=1;function e(v,s){if(!(v instanceof s))throw new TypeError("Cannot call a class as a function")}function t(v,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(v,c.key,c)}}function n(v,s,l){return s&&t(v.prototype,s),l&&t(v,l),Object.defineProperty(v,"prototype",{writable:!1}),v}var r=Ed(),i=De(),a=i.LEVEL,o=i.MESSAGE;r.enabled=!0;var d=/\s+/,f=(function(){function v(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,v),s.colors&&this.addColors(s.colors),this.options=s}return n(v,[{key:"addColors",value:function(l){return v.addColors(l)}},{key:"colorize",value:function(l,c,y){if(typeof y>"u"&&(y=c),!Array.isArray(v.allColors[l]))return r[v.allColors[l]](y);for(var h=0,m=v.allColors[l].length;h<m;h++)y=r[v.allColors[l][h]](y);return y}},{key:"transform",value:function(l,c){return c.all&&typeof l[o]=="string"&&(l[o]=this.colorize(l[a],l.level,l[o])),(c.level||c.all||!c.message)&&(l.level=this.colorize(l[a],l.level)),(c.all||c.message)&&(l.message=this.colorize(l[a],l.level,l.message)),l}}],[{key:"addColors",value:function(l){var c=Object.keys(l).reduce(function(y,h){return y[h]=d.test(l[h])?l[h].split(d):l[h],y},{});return v.allColors=Object.assign({},v.allColors||{},c),v.allColors}}]),v})();return tr.exports=function(v){return new f(v)},tr.exports.Colorizer=tr.exports.Format=f,tr.exports}var Ci,$u;function Qg(){if($u)return Ci;$u=1;var e=ts(),t=e.Colorizer;return Ci=function(n){return t.addColors(n.colors||n),n},Ci}var ki,zu;function ev(){if(zu)return ki;zu=1;var e=rt();return ki=e(function(t){return t.message=" ".concat(t.message),t}),ki}var jr={exports:{}},rr={exports:{}},Gu;function Rd(){if(Gu)return rr.exports;Gu=1;function e(h){return i(h)||r(h)||n(h)||t()}function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
85
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(h,m){if(h){if(typeof h=="string")return a(h,m);var g=Object.prototype.toString.call(h).slice(8,-1);if(g==="Object"&&h.constructor&&(g=h.constructor.name),g==="Map"||g==="Set")return Array.from(h);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(h,m)}}function r(h){if(typeof Symbol<"u"&&h[Symbol.iterator]!=null||h["@@iterator"]!=null)return Array.from(h)}function i(h){if(Array.isArray(h))return a(h)}function a(h,m){(m==null||m>h.length)&&(m=h.length);for(var g=0,u=new Array(m);g<m;g++)u[g]=h[g];return u}function o(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function d(h,m){for(var g=0;g<m.length;g++){var u=m[g];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}function f(h,m,g){return m&&d(h.prototype,m),g&&d(h,g),Object.defineProperty(h,"prototype",{writable:!1}),h}var v=De(),s=v.configs,l=v.LEVEL,c=v.MESSAGE,y=(function(){function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:s.npm.levels};o(this,h),this.paddings=h.paddingForLevels(m.levels,m.filler),this.options=m}return f(h,[{key:"transform",value:function(g,u){return g.message="".concat(this.paddings[g[l]]).concat(g.message),g[c]&&(g[c]="".concat(this.paddings[g[l]]).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 S=_+1-g.length,w=Math.floor(S/u.length),b="".concat(u).concat(u.repeat(w));return b.slice(0,S)}},{key:"paddingForLevels",value:function(g){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",_=h.getLongestLevel(g);return Object.keys(g).reduce(function(S,w){return S[w]=h.paddingForLevel(w,u,_),S},{})}}]),h})();return rr.exports=function(h){return new y(h)},rr.exports.Padder=rr.exports.Format=y,rr.exports}var Hu;function tv(){if(Hu)return jr.exports;Hu=1;function e(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function t(l,c){for(var y=0;y<c.length;y++){var h=c[y];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(l,h.key,h)}}function n(l,c,y){return c&&t(l.prototype,c),Object.defineProperty(l,"prototype",{writable:!1}),l}var r=ts(),i=r.Colorizer,a=Rd(),o=a.Padder,d=De(),f=d.configs,v=d.MESSAGE,s=(function(){function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,l),c.levels||(c.levels=f.cli.levels),this.colorizer=new i(c),this.padder=new o(c),this.options=c}return n(l,[{key:"transform",value:function(y,h){return this.colorizer.transform(this.padder.transform(y,h),h),y[v]="".concat(y.level,":").concat(y.message),y}}]),l})();return jr.exports=function(l){return new s(l)},jr.exports.Format=s,jr.exports}var Lr={exports:{}},Zu;function rv(){if(Zu)return Lr.exports;Zu=1;var e=rt();function t(r){if(r.every(n))return function(i){for(var a=i,o=0;o<r.length;o++)if(a=r[o].transform(a,r[o].options),!a)return!1;return a}}function n(r){if(typeof r.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(`
|
|
86
|
+
`));return!0}return Lr.exports=function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e(t(i)),d=o();return d.Format=o.Format,d},Lr.exports.cascade=t,Lr.exports}var Pi,Wu;function nv(){if(Wu)return Pi;Wu=1;function e(a,o,d){return o in a?Object.defineProperty(a,o,{value:d,enumerable:!0,configurable:!0,writable:!0}):a[o]=d,a}var t=rt(),n=De(),r=n.LEVEL,i=n.MESSAGE;return Pi=t(function(a,o){var d=o.stack;if(a instanceof Error){var f,v=Object.assign({},a,(f={level:a.level},e(f,r,a[r]||a.level),e(f,"message",a.message),e(f,i,a[i]||a.message),f));return d&&(v.stack=a.stack),v}if(!(a.message instanceof Error))return a;var s=a.message;return Object.assign(a,s),a.message=s.message,a[i]=s.message,d&&(a.stack=s.stack),a}),Pi}var qr={exports:{}},Yu;function gr(){return Yu||(Yu=1,(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=S();r.configure=S,r.stringify=r,r.default=r,t.stringify=r,t.configure=S,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,a=new RegExp(i,"g"),o=["\\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 d(w){if(w.length===2){const x=w.charCodeAt(1);return`${w[0]}\\u${x.toString(16)}`}const b=w.charCodeAt(0);return o.length>b?o[b]:`\\u${b.toString(16)}`}function f(w){if(w.length<5e3&&!i.test(w))return w;if(w.length>100)return w.replace(a,d);let b="",x=0;for(let O=0;O<w.length;O++){const P=w.charCodeAt(O);if(P===34||P===92||P<32)b+=`${w.slice(x,O)}${o[P]}`,x=O+1;else if(P>=55296&&P<=57343){if(P<=56319&&O+1<w.length){const M=w.charCodeAt(O+1);if(M>=56320&&M<=57343){O++;continue}}b+=`${w.slice(x,O)}\\u${P.toString(16)}`,x=O+1}}return b+=w.slice(x),b}function v(w){if(w.length>200)return w.sort();for(let b=1;b<w.length;b++){const x=w[b];let O=b;for(;O!==0&&w[O-1]>x;)w[O]=w[O-1],O--;w[O]=x}return w}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(w){return s.call(w)!==void 0&&w.length!==0}function c(w,b,x){w.length<x&&(x=w.length);const O=b===","?"":" ";let P=`"0":${O}${w[0]}`;for(let M=1;M<x;M++)P+=`${b}"${M}":${O}${w[M]}`;return P}function y(w){if(n.call(w,"circularValue")){const b=w.circularValue;if(typeof b=="string")return`"${b}"`;if(b==null)return b;if(b===Error||b===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 h(w,b){let x;if(n.call(w,b)&&(x=w[b],typeof x!="boolean"))throw new TypeError(`The "${b}" argument must be of type boolean`);return x===void 0?!0:x}function m(w,b){let x;if(n.call(w,b)){if(x=w[b],typeof x!="number")throw new TypeError(`The "${b}" argument must be of type number`);if(!Number.isInteger(x))throw new TypeError(`The "${b}" argument must be an integer`);if(x<1)throw new RangeError(`The "${b}" argument must be >= 1`)}return x===void 0?1/0:x}function g(w){return w===1?"1 item":`${w} items`}function u(w){const b=new Set;for(const x of w)(typeof x=="string"||typeof x=="number")&&b.add(String(x));return b}function _(w){if(n.call(w,"strict")){const b=w.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)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 S(w){w={...w};const b=_(w);b&&(w.bigint===void 0&&(w.bigint=!1),"circularValue"in w||(w.circularValue=Error));const x=y(w),O=h(w,"bigint"),P=h(w,"deterministic"),M=m(w,"maximumDepth"),W=m(w,"maximumBreadth");function V(X,A,k,j,N,H){let B=A[X];switch(typeof B=="object"&&B!==null&&typeof B.toJSON=="function"&&(B=B.toJSON(X)),B=j.call(A,X,B),typeof B){case"string":return`"${f(B)}"`;case"object":{if(B===null)return"null";if(k.indexOf(B)!==-1)return x;let q="",L=",";const D=H;if(Array.isArray(B)){if(B.length===0)return"[]";if(M<k.length+1)return'"[Array]"';k.push(B),N!==""&&(H+=N,q+=`
|
|
87
87
|
${H}`,L=`,
|
|
88
88
|
${H}`);const ve=Math.min(B.length,W);let me=0;for(;me<ve-1;me++){const Ce=V(me,B,k,j,N,H);q+=Ce!==void 0?Ce:"null",q+=L}const we=V(me,B,k,j,N,H);if(q+=we!==void 0?we:"null",B.length-1>W){const Ce=B.length-W-1;q+=`${L}"... ${g(Ce)} not stringified"`}return N!==""&&(q+=`
|
|
89
89
|
${D}`),k.pop(),`[${q}]`}let F=Object.keys(B);const K=F.length;if(K===0)return"{}";if(M<k.length+1)return'"[Object]"';let J="",ae="";N!==""&&(H+=N,L=`,
|
|
90
90
|
${H}`,J=" ");let ue=Math.min(K,W);l(B)&&(q+=c(B,L,W),F=F.slice(B.length),ue-=B.length,ae=L),P&&(F=v(F)),k.push(B);for(let ve=0;ve<ue;ve++){const me=F[ve],we=V(me,B,k,j,N,H);we!==void 0&&(q+=`${ae}"${f(me)}":${J}${we}`,ae=L)}if(K>W){const ve=K-W;q+=`${ae}"...":${J}"${g(ve)} not stringified"`,ae=L}return N!==""&&ae.length>1&&(q=`
|
|
91
91
|
${H}${q}
|
|
92
|
-
${D}`),k.pop(),`{${q}}`}case"number":return isFinite(B)?String(B):b?b(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(B);default:return b?b(B):void 0}}function
|
|
92
|
+
${D}`),k.pop(),`{${q}}`}case"number":return isFinite(B)?String(B):b?b(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(B);default:return b?b(B):void 0}}function E(X,A,k,j,N,H){switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(X)),typeof A){case"string":return`"${f(A)}"`;case"object":{if(A===null)return"null";if(k.indexOf(A)!==-1)return x;const B=H;let q="",L=",";if(Array.isArray(A)){if(A.length===0)return"[]";if(M<k.length+1)return'"[Array]"';k.push(A),N!==""&&(H+=N,q+=`
|
|
93
93
|
${H}`,L=`,
|
|
94
|
-
${H}`);const K=Math.min(A.length,W);let J=0;for(;J<K-1;J++){const ue=
|
|
94
|
+
${H}`);const K=Math.min(A.length,W);let J=0;for(;J<K-1;J++){const ue=E(J,A[J],k,j,N,H);q+=ue!==void 0?ue:"null",q+=L}const ae=E(J,A[J],k,j,N,H);if(q+=ae!==void 0?ae:"null",A.length-1>W){const ue=A.length-W-1;q+=`${L}"... ${g(ue)} not stringified"`}return N!==""&&(q+=`
|
|
95
95
|
${B}`),k.pop(),`[${q}]`}k.push(A);let D="";N!==""&&(H+=N,L=`,
|
|
96
|
-
${H}`,D=" ");let F="";for(const K of j){const J=
|
|
96
|
+
${H}`,D=" ");let F="";for(const K of j){const J=E(K,A[K],k,j,N,H);J!==void 0&&(q+=`${F}"${f(K)}":${D}${J}`,F=L)}return N!==""&&F.length>1&&(q=`
|
|
97
97
|
${H}${q}
|
|
98
98
|
${B}`),k.pop(),`{${q}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(A);default:return b?b(A):void 0}}function I(X,A,k,j,N){switch(typeof A){case"string":return`"${f(A)}"`;case"object":{if(A===null)return"null";if(typeof A.toJSON=="function"){if(A=A.toJSON(X),typeof A!="object")return I(X,A,k,j,N);if(A===null)return"null"}if(k.indexOf(A)!==-1)return x;const H=N;if(Array.isArray(A)){if(A.length===0)return"[]";if(M<k.length+1)return'"[Array]"';k.push(A),N+=j;let J=`
|
|
99
99
|
${N}`;const ae=`,
|
|
@@ -101,26 +101,26 @@ ${N}`,ue=Math.min(A.length,W);let ve=0;for(;ve<ue-1;ve++){const we=I(ve,A[ve],k,
|
|
|
101
101
|
${H}`,k.pop(),`[${J}]`}let B=Object.keys(A);const q=B.length;if(q===0)return"{}";if(M<k.length+1)return'"[Object]"';N+=j;const L=`,
|
|
102
102
|
${N}`;let D="",F="",K=Math.min(q,W);l(A)&&(D+=c(A,L,W),B=B.slice(A.length),K-=A.length,F=L),P&&(B=v(B)),k.push(A);for(let J=0;J<K;J++){const ae=B[J],ue=I(ae,A[ae],k,j,N);ue!==void 0&&(D+=`${F}"${f(ae)}": ${ue}`,F=L)}if(q>W){const J=q-W;D+=`${F}"...": "${g(J)} not stringified"`,F=L}return F!==""&&(D=`
|
|
103
103
|
${N}${D}
|
|
104
|
-
${H}`),k.pop(),`{${D}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(A);default:return b?b(A):void 0}}function $(X,A,k){switch(typeof A){case"string":return`"${f(A)}"`;case"object":{if(A===null)return"null";if(typeof A.toJSON=="function"){if(A=A.toJSON(X),typeof A!="object")return $(X,A,k);if(A===null)return"null"}if(k.indexOf(A)!==-1)return x;let j="";if(Array.isArray(A)){if(A.length===0)return"[]";if(M<k.length+1)return'"[Array]"';k.push(A);const L=Math.min(A.length,W);let D=0;for(;D<L-1;D++){const K=$(D,A[D],k);j+=K!==void 0?K:"null",j+=","}const F=$(D,A[D],k);if(j+=F!==void 0?F:"null",A.length-1>W){const K=A.length-W-1;j+=`,"... ${g(K)} not stringified"`}return k.pop(),`[${j}]`}let N=Object.keys(A);const H=N.length;if(H===0)return"{}";if(M<k.length+1)return'"[Object]"';let B="",q=Math.min(H,W);l(A)&&(j+=c(A,",",W),N=N.slice(A.length),q-=A.length,B=","),P&&(N=v(N)),k.push(A);for(let L=0;L<q;L++){const D=N[L],F=$(D,A[D],k);F!==void 0&&(j+=`${B}"${f(D)}":${F}`,B=",")}if(H>W){const L=H-W;j+=`${B}"...":"${g(L)} not stringified"`}return k.pop(),`{${j}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(A);default:return b?b(A):void 0}}function z(X,A,k){if(arguments.length>1){let j="";if(typeof k=="number"?j=" ".repeat(Math.min(k,10)):typeof k=="string"&&(j=k.slice(0,10)),A!=null){if(typeof A=="function")return V("",{"":X},[],A,j,"");if(Array.isArray(A))return
|
|
105
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(m,g){if(m){if(typeof m=="string")return a(m,g);var u=Object.prototype.toString.call(m).slice(8,-1);if(u==="Object"&&m.constructor&&(u=m.constructor.name),u==="Map"||u==="Set")return Array.from(m);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return a(m,g)}}function r(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function i(m){if(Array.isArray(m))return a(m)}function a(m,g){(g==null||g>m.length)&&(g=m.length);for(var u=0,_=new Array(g);u<g;u++)_[u]=m[u];return _}function o(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){for(var u=0;u<g.length;u++){var _=g[u];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function f(m,g,u){return g&&d(m.prototype,g),Object.defineProperty(m,"prototype",{writable:!1}),m}var v=Ze(),s=De(),l=s.SPLAT,c=/%[scdjifoO%]/g,y=/%%/g,h=(function(){function m(g){o(this,m),this.options=g}return f(m,[{key:"_splat",value:function(u,_){var
|
|
104
|
+
${H}`),k.pop(),`{${D}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(A);default:return b?b(A):void 0}}function $(X,A,k){switch(typeof A){case"string":return`"${f(A)}"`;case"object":{if(A===null)return"null";if(typeof A.toJSON=="function"){if(A=A.toJSON(X),typeof A!="object")return $(X,A,k);if(A===null)return"null"}if(k.indexOf(A)!==-1)return x;let j="";if(Array.isArray(A)){if(A.length===0)return"[]";if(M<k.length+1)return'"[Array]"';k.push(A);const L=Math.min(A.length,W);let D=0;for(;D<L-1;D++){const K=$(D,A[D],k);j+=K!==void 0?K:"null",j+=","}const F=$(D,A[D],k);if(j+=F!==void 0?F:"null",A.length-1>W){const K=A.length-W-1;j+=`,"... ${g(K)} not stringified"`}return k.pop(),`[${j}]`}let N=Object.keys(A);const H=N.length;if(H===0)return"{}";if(M<k.length+1)return'"[Object]"';let B="",q=Math.min(H,W);l(A)&&(j+=c(A,",",W),N=N.slice(A.length),q-=A.length,B=","),P&&(N=v(N)),k.push(A);for(let L=0;L<q;L++){const D=N[L],F=$(D,A[D],k);F!==void 0&&(j+=`${B}"${f(D)}":${F}`,B=",")}if(H>W){const L=H-W;j+=`${B}"...":"${g(L)} not stringified"`}return k.pop(),`{${j}}`}case"number":return isFinite(A)?String(A):b?b(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(O)return String(A);default:return b?b(A):void 0}}function z(X,A,k){if(arguments.length>1){let j="";if(typeof k=="number"?j=" ".repeat(Math.min(k,10)):typeof k=="string"&&(j=k.slice(0,10)),A!=null){if(typeof A=="function")return V("",{"":X},[],A,j,"");if(Array.isArray(A))return E("",X,[],u(A),j,"")}if(j.length!==0)return I("",X,[],j,"")}return $("",X,[])}return z}})(qr,qr.exports)),qr.exports}var ji,Ju;function iv(){if(Ju)return ji;Ju=1;var e=rt(),t=De(),n=t.MESSAGE,r=gr();function i(a,o){return typeof o=="bigint"?o.toString():o}return ji=e(function(a,o){var d=r.configure(o);return a[n]=d(a,o.replacer||i,o.space),a}),ji}var Li,Ku;function av(){if(Ku)return Li;Ku=1;var e=rt();return Li=e(function(t,n){return n.message?(t.message="[".concat(n.label,"] ").concat(t.message),t):(t.label=n.label,t)}),Li}var qi,Xu;function ov(){if(Xu)return qi;Xu=1;var e=rt(),t=De(),n=t.MESSAGE,r=gr();return qi=e(function(i){var a={};return i.message&&(a["@message"]=i.message,delete i.message),i.timestamp&&(a["@timestamp"]=i.timestamp,delete i.timestamp),a["@fields"]=i,i[n]=r(a),i}),qi}var Di,Qu;function sv(){if(Qu)return Di;Qu=1;function e(i,a,o){return a in i?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o,i}var t=rt();function n(i,a,o){var d=a.reduce(function(v,s){return v[s]=i[s],delete i[s],v},{}),f=Object.keys(i).reduce(function(v,s){return v[s]=i[s],delete i[s],v},{});return Object.assign(i,d,e({},o,f)),i}function r(i,a,o){return i[o]=a.reduce(function(d,f){return d[f]=i[f],delete i[f],d},{}),i}return Di=t(function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="metadata";a.key&&(o=a.key);var d=[];return!a.fillExcept&&!a.fillWith&&(d.push("level"),d.push("message")),a.fillExcept&&(d=a.fillExcept),d.length>0?n(i,d,o):a.fillWith?r(i,a.fillWith,o):i}),Di}var Ni,ec;function Od(){if(ec)return Ni;ec=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;Ni=function(s,l){l=l||{};var c=typeof s;if(c==="string"&&s.length>0)return o(s);if(c==="number"&&isFinite(s))return l.long?f(s):d(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function o(s){if(s=String(s),!(s.length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(l){var c=parseFloat(l[1]),y=(l[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;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 d(s){var l=Math.abs(s);return l>=r?Math.round(s/r)+"d":l>=n?Math.round(s/n)+"h":l>=t?Math.round(s/t)+"m":l>=e?Math.round(s/e)+"s":s+"ms"}function f(s){var l=Math.abs(s);return l>=r?v(s,l,r,"day"):l>=n?v(s,l,n,"hour"):l>=t?v(s,l,t,"minute"):l>=e?v(s,l,e,"second"):s+" ms"}function v(s,l,c,y){var h=l>=c*1.5;return Math.round(s/c)+" "+y+(h?"s":"")}return Ni}var Mi,tc;function uv(){if(tc)return Mi;tc=1;var e=void 0,t=rt(),n=Od();return Mi=t(function(r){var i=+new Date;return e.diff=i-(e.prevTime||i),e.prevTime=i,r.ms="+".concat(n(e.diff)),r}),Mi}var Fi,rc;function cv(){if(rc)return Fi;rc=1;var e=Ze().inspect,t=rt(),n=De(),r=n.LEVEL,i=n.MESSAGE,a=n.SPLAT;return Fi=t(function(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=Object.assign({},o);return delete f[r],delete f[i],delete f[a],o[i]=e(f,!1,d.depth||null,d.colorize),o}),Fi}var nr={exports:{}},nc;function lv(){if(nc)return nr.exports;nc=1;function e(o,d){if(!(o instanceof d))throw new TypeError("Cannot call a class as a function")}function t(o,d){for(var f=0;f<d.length;f++){var v=d[f];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(o,v.key,v)}}function n(o,d,f){return d&&t(o.prototype,d),Object.defineProperty(o,"prototype",{writable:!1}),o}var r=De(),i=r.MESSAGE,a=(function(){function o(d){e(this,o),this.template=d}return n(o,[{key:"transform",value:function(f){return f[i]=this.template(f),f}}]),o})();return nr.exports=function(o){return new a(o)},nr.exports.Printf=nr.exports.Format=a,nr.exports}var Bi,ic;function fv(){if(ic)return Bi;ic=1;var e=rt(),t=De(),n=t.MESSAGE,r=gr();return Bi=e(function(i){var a=r(Object.assign({},i,{level:void 0,message:void 0,splat:void 0})),o=i.padding&&i.padding[i.level]||"";return a!=="{}"?i[n]="".concat(i.level,":").concat(o," ").concat(i.message," ").concat(a):i[n]="".concat(i.level,":").concat(o," ").concat(i.message),i}),Bi}var Ui,ac;function dv(){if(ac)return Ui;ac=1;function e(m){return i(m)||r(m)||n(m)||t()}function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
105
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(m,g){if(m){if(typeof m=="string")return a(m,g);var u=Object.prototype.toString.call(m).slice(8,-1);if(u==="Object"&&m.constructor&&(u=m.constructor.name),u==="Map"||u==="Set")return Array.from(m);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return a(m,g)}}function r(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function i(m){if(Array.isArray(m))return a(m)}function a(m,g){(g==null||g>m.length)&&(g=m.length);for(var u=0,_=new Array(g);u<g;u++)_[u]=m[u];return _}function o(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){for(var u=0;u<g.length;u++){var _=g[u];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function f(m,g,u){return g&&d(m.prototype,g),Object.defineProperty(m,"prototype",{writable:!1}),m}var v=Ze(),s=De(),l=s.SPLAT,c=/%[scdjifoO%]/g,y=/%%/g,h=(function(){function m(g){o(this,m),this.options=g}return f(m,[{key:"_splat",value:function(u,_){var S=u.message,w=u[l]||u.splat||[],b=S.match(y),x=b&&b.length||0,O=_.length-x,P=O-w.length,M=P<0?w.splice(P,-1*P):[],W=M.length;if(W)for(var V=0;V<W;V++)Object.assign(u,M[V]);return u.message=v.format.apply(v,[S].concat(e(w))),u}},{key:"transform",value:function(u){var _=u.message,S=u[l]||u.splat;if(!S||!S.length)return u;var w=_&&_.match&&_.match(c);if(!w&&(S||S.length)){var b=S.length>1?S.splice(0):S,x=b.length;if(x)for(var O=0;O<x;O++)Object.assign(u,b[O]);return u}return w?this._splat(u,w):u}}]),m})();return Ui=function(m){return new h(m)},Ui}var Td=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Ot="\\d\\d?",Rt="\\d\\d",hv="\\d{3}",pv="\\d{4}",ar="[^\\s]+",Ad=/\[([^]*?)\]/gm;function Id(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}var oc=function(e){return function(t,n){var r=n[e].map(function(a){return a.toLowerCase()}),i=r.indexOf(t.toLowerCase());return i>-1?i:null}};function It(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var a=i[r];for(var o in a)e[o]=a[o]}return e}var xd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Cd=["January","February","March","April","May","June","July","August","September","October","November","December"],mv=Id(Cd,3),gv=Id(xd,3),rs={dayNamesShort:gv,dayNames:xd,monthNamesShort:mv,monthNames:Cd,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},dn=It({},rs),kd=function(e){return dn=It(dn,e)},sc=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Qe=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},vv={D:function(e){return String(e.getDate())},DD:function(e){return Qe(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return Qe(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return Qe(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.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,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Qe(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Qe(Math.floor(Math.abs(t)/60),2)+":"+Qe(Math.abs(t)%60,2)}},uc=function(e){return+e-1},cc=[null,Ot],lc=[null,ar],fc=["isPm",ar,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],dc=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=+t[1]*60+parseInt(t[2],10);return t[0]==="+"?n:-n}return 0}],yv={D:["day",Ot],DD:["day",Rt],Do:["day",Ot+ar,function(e){return parseInt(e,10)}],M:["month",Ot,uc],MM:["month",Rt,uc],YY:["year",Rt,function(e){var t=new Date,n=+(""+t.getFullYear()).substr(0,2);return+(""+(+e>68?n-1:n)+e)}],h:["hour",Ot,void 0,"isPm"],hh:["hour",Rt,void 0,"isPm"],H:["hour",Ot],HH:["hour",Rt],m:["minute",Ot],mm:["minute",Rt],s:["second",Ot],ss:["second",Rt],YYYY:["year",pv],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",Rt,function(e){return+e*10}],SSS:["millisecond",hv],d:cc,dd:cc,ddd:lc,dddd:lc,MMM:["month",ar,oc("monthNamesShort")],MMMM:["month",ar,oc("monthNames")],a:fc,A:fc,ZZ:dc,Z:dc},hn={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"},Pd=function(e){return It(hn,e)},jd=function(e,t,n){if(t===void 0&&(t=hn.default),n===void 0&&(n={}),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");t=hn[t]||t;var r=[];t=t.replace(Ad,function(a,o){return r.push(o),"@@@"});var i=It(It({},dn),n);return t=t.replace(Td,function(a){return vv[a](e,i)}),t.replace(/@@@/g,function(){return r.shift()})};function Ld(e,t,n){if(n===void 0&&(n={}),typeof t!="string")throw new Error("Invalid format in fecha parse");if(t=hn[t]||t,e.length>1e3)return null;var r=new Date,i={year:r.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],d=t.replace(Ad,function(w,b){return o.push(sc(b)),"@@@"}),f={},v={};d=sc(d).replace(Td,function(w){var b=yv[w],x=b[0],O=b[1],P=b[3];if(f[x])throw new Error("Invalid format. "+x+" specified twice in format");return f[x]=!0,P&&(v[P]=!0),a.push(b),"("+O+")"}),Object.keys(v).forEach(function(w){if(!f[w])throw new Error("Invalid format. "+w+" is required in specified format")}),d=d.replace(/@@@/g,function(){return o.shift()});var s=e.match(new RegExp(d,"i"));if(!s)return null;for(var l=It(It({},dn),n),c=1;c<s.length;c++){var y=a[c-1],h=y[0],m=y[2],g=m?m(s[c],l):+s[c];if(g==null)return null;i[h]=g}i.isPm===1&&i.hour!=null&&+i.hour!=12?i.hour=+i.hour+12:i.isPm===0&&+i.hour==12&&(i.hour=0);var u;if(i.timezoneOffset==null){u=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var _=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],c=0,S=_.length;c<S;c++)if(f[_[c][0]]&&i[_[c][0]]!==u[_[c][1]]())return null}else if(u=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return u}var _v={format:jd,parse:Ld,defaultI18n:rs,setGlobalDateI18n:kd,setGlobalDateMasks:Pd};const bv=Object.freeze(Object.defineProperty({__proto__:null,assign:It,default:_v,defaultI18n:rs,format:jd,parse:Ld,setGlobalDateI18n:kd,setGlobalDateMasks:Pd},Symbol.toStringTag,{value:"Module"})),wv=Yo(bv);var Vi,hc;function Sv(){if(hc)return Vi;hc=1;var e=wv,t=rt();return Vi=t(function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.format&&(n.timestamp=typeof r.format=="function"?r.format():e.format(new Date,r.format)),n.timestamp||(n.timestamp=new Date().toISOString()),r.alias&&(n[r.alias]=n.timestamp),n}),Vi}var $i,pc;function Ev(){if(pc)return $i;pc=1;var e=Ed(),t=rt(),n=De(),r=n.MESSAGE;return $i=t(function(i,a){return a.level!==!1&&(i.level=e.strip(i.level)),a.message!==!1&&(i.message=e.strip(String(i.message))),a.raw!==!1&&i[r]&&(i[r]=e.strip(String(i[r]))),i}),$i}var mc;function qd(){if(mc)return xr;mc=1;var e=xr.format=rt();return xr.levels=Qg(),Object.defineProperty(e,"align",{value:ev()}),Object.defineProperty(e,"cli",{value:tv()}),Object.defineProperty(e,"colorize",{value:ts()}),Object.defineProperty(e,"combine",{value:rv()}),Object.defineProperty(e,"errors",{value:nv()}),Object.defineProperty(e,"json",{value:iv()}),Object.defineProperty(e,"label",{value:av()}),Object.defineProperty(e,"logstash",{value:ov()}),Object.defineProperty(e,"metadata",{value:sv()}),Object.defineProperty(e,"ms",{value:uv()}),Object.defineProperty(e,"padLevels",{value:Rd()}),Object.defineProperty(e,"prettyPrint",{value:cv()}),Object.defineProperty(e,"printf",{value:lv()}),Object.defineProperty(e,"simple",{value:fv()}),Object.defineProperty(e,"splat",{value:dv()}),Object.defineProperty(e,"timestamp",{value:Sv()}),Object.defineProperty(e,"uncolorize",{value:Ev()}),xr}var zi={},gc;function Dd(){return gc||(gc=1,(function(e){var t=Ze(),n=t.format;e.warn={deprecated:function(i){return function(){throw new Error(n("{ %s } was removed in winston@3.0.0.",i))}},useFormat:function(i){return function(){throw new Error([n("{ %s } was removed in winston@3.0.0.",i),"Use a custom winston.format = winston.format(function) instead."].join(`
|
|
106
106
|
`))}},forFunctions:function(i,a,o){o.forEach(function(d){i[d]=e.warn[a](d)})},moved:function(i,a,o){function d(){return function(){throw new Error([n("winston.%s was moved in winston@3.0.0.",o),n("Use a winston.%s instead.",a)].join(`
|
|
107
107
|
`))}}Object.defineProperty(i,o,{get:d,set:d})},forProperties:function(i,a,o){o.forEach(function(d){var f=e.warn[a](d);Object.defineProperty(i,d,{get:f,set:f})})}}})(zi)),zi}const Rv="3.8.2",Ov={version:Rv};var Gi={},Dr={exports:{}},Hi={exports:{}},vc;function Tv(){if(vc)return Hi.exports;vc=1;var e=Ze(),t=De(),n=t.LEVEL,r=$t(),i=Hi.exports=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.call(this,o),!o.transport||typeof o.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=o.transport,this.level=this.level||o.transport.level,this.handleExceptions=this.handleExceptions||o.transport.handleExceptions,this._deprecated();function d(f){this.emit("error",f,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=d.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(i,r),i.prototype._write=function(o,d,f){if(this.silent||o.exception===!0&&!this.handleExceptions)return f(null);(!this.level||this.levels[this.level]>=this.levels[o[n]])&&this.transport.log(o[n],o.message,o,this._nop),f(null)},i.prototype._writev=function(o,d){for(var f=0;f<o.length;f++)this._accept(o[f])&&(this.transport.log(o[f].chunk[n],o[f].chunk.message,o[f].chunk,this._nop),o[f].callback());return d(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(`
|
|
108
|
-
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},Hi.exports}var yc;function $t(){if(yc)return Dr.exports;yc=1;var e=Ze(),t=um(),n=De(),r=n.LEVEL,i=Dr.exports=function(){var o=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.call(this,{objectMode:!0,highWaterMark:d.highWaterMark}),this.format=d.format,this.level=d.level,this.handleExceptions=d.handleExceptions,this.handleRejections=d.handleRejections,this.silent=d.silent,d.log&&(this.log=d.log),d.logv&&(this.logv=d.logv),d.close&&(this.close=d.close),this.once("pipe",function(f){o.levels=f.levels,o.parent=f}),this.once("unpipe",function(f){f===o.parent&&(o.parent=null,o.close&&o.close())})};return e.inherits(i,t),i.prototype._write=function(o,d,f){if(this.silent||o.exception===!0&&!this.handleExceptions)return f(null);var v=this.level||this.parent&&this.parent.level;if(!v||this.levels[v]>=this.levels[o[r]]){if(o&&!this.format)return this.log(o,f);var s=void 0,l=void 0;try{l=this.format.transform(Object.assign({},o),this.format.options)}catch(c){s=c}if(s||!l){if(f(),s)throw s;return}return this.log(l,f)}return this._writableState.sync=!1,f(null)},i.prototype._writev=function(o,d){if(this.logv){var f=o.filter(this._accept,this);return f.length?this.logv(f,d):d(null)}for(var v=0;v<o.length;v++)if(this._accept(o[v])){if(o[v].chunk&&!this.format){this.log(o[v].chunk,o[v].callback);continue}var s=void 0,l=void 0;try{l=this.format.transform(Object.assign({},o[v].chunk),this.format.options)}catch(c){s=c}if(s||!l){if(o[v].callback(),s)throw d(null),s}else this.log(l,o[v].callback)}return d(null)},i.prototype._accept=function(o){var d=o.chunk;if(this.silent)return!1;var f=this.level||this.parent&&this.parent.level;return!!((d.exception===!0||!f||this.levels[f]>=this.levels[d[r]])&&(this.handleExceptions||d.exception!==!0))},i.prototype._nop=function(){},Dr.exports.LegacyTransportStream=Tv(),Dr.exports}var Zi,_c;function Av(){if(_c)return Zi;_c=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 t(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function n(g,u){for(var _=0;_<u.length;_++){var E=u[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,E.key,E)}}function r(g,u,_){return u&&n(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}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(E,w){return E.__proto__=w,E},a(g,u)}function o(g){var u=v();return function(){var E=s(g),w;if(u){var b=s(this).constructor;w=Reflect.construct(E,arguments,b)}else w=E.apply(this,arguments);return d(this,w)}}function d(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 f(g)}function f(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function v(){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 s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},s(g)}var l=Vt(),c=De(),y=c.LEVEL,h=c.MESSAGE,m=$t();return Zi=(function(g){i(_,g);var u=o(_);function _(){var E,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t(this,_),E=u.call(this,w),E.name=w.name||"console",E.stderrLevels=E._stringArrayToSet(w.stderrLevels),E.consoleWarnLevels=E._stringArrayToSet(w.consoleWarnLevels),E.eol=typeof w.eol=="string"?w.eol:l.EOL,E.setMaxListeners(30),E}return r(_,[{key:"log",value:function(w,b){var x=this;if(setImmediate(function(){return x.emit("logged",w)}),this.stderrLevels[w[y]]){console._stderr?console._stderr.write("".concat(w[h]).concat(this.eol)):console.error(w[h]),b&&b();return}else if(this.consoleWarnLevels[w[y]]){console._stderr?console._stderr.write("".concat(w[h]).concat(this.eol)):console.warn(w[h]),b&&b();return}console._stdout?console._stdout.write("".concat(w[h]).concat(this.eol)):console.log(w[h]),b&&b()}},{key:"_stringArrayToSet",value:function(w,b){if(!w)return{};if(b=b||"Cannot make set from type other than Array of string elements",!Array.isArray(w))throw new Error(b);return w.reduce(function(x,O){if(typeof O!="string")throw new Error(b);return x[O]=!0,x},{})}}]),_})(m),Zi}var Wi,bc;function Nd(){if(bc)return Wi;bc=1;function e(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function t(i,a){for(var o="",d=0,f=-1,v=0,s,l=0;l<=i.length;++l){if(l<i.length)s=i.charCodeAt(l);else{if(s===47)break;s=47}if(s===47){if(!(f===l-1||v===1))if(f!==l-1&&v===2){if(o.length<2||d!==2||o.charCodeAt(o.length-1)!==46||o.charCodeAt(o.length-2)!==46){if(o.length>2){var c=o.lastIndexOf("/");if(c!==o.length-1){c===-1?(o="",d=0):(o=o.slice(0,c),d=o.length-1-o.lastIndexOf("/")),f=l,v=0;continue}}else if(o.length===2||o.length===1){o="",d=0,f=l,v=0;continue}}a&&(o.length>0?o+="/..":o="..",d=2)}else o.length>0?o+="/"+i.slice(f+1,l):o=i.slice(f+1,l),d=l-f-1;f=l,v=0}else s===46&&v!==-1?++v:v=-1}return o}function n(i,a){var o=a.dir||a.root,d=a.base||(a.name||"")+(a.ext||"");return o?o===a.root?o+d:o+i+d:d}var r={resolve:function(){for(var a="",o=!1,d,f=arguments.length-1;f>=-1&&!o;f--){var v;f>=0?v=arguments[f]:(d===void 0&&(d=ye.cwd()),v=d),e(v),v.length!==0&&(a=v+"/"+a,o=v.charCodeAt(0)===47)}return a=t(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(e(a),a.length===0)return".";var o=a.charCodeAt(0)===47,d=a.charCodeAt(a.length-1)===47;return a=t(a,!o),a.length===0&&!o&&(a="."),a.length>0&&d&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return e(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o<arguments.length;++o){var d=arguments[o];e(d),d.length>0&&(a===void 0?a=d:a+="/"+d)}return a===void 0?".":r.normalize(a)},relative:function(a,o){if(e(a),e(o),a===o||(a=r.resolve(a),o=r.resolve(o),a===o))return"";for(var d=1;d<a.length&&a.charCodeAt(d)===47;++d);for(var f=a.length,v=f-d,s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var l=o.length,c=l-s,y=v<c?v:c,h=-1,m=0;m<=y;++m){if(m===y){if(c>y){if(o.charCodeAt(s+m)===47)return o.slice(s+m+1);if(m===0)return o.slice(s+m)}else v>y&&(a.charCodeAt(d+m)===47?h=m:m===0&&(h=0));break}var g=a.charCodeAt(d+m),u=o.charCodeAt(s+m);if(g!==u)break;g===47&&(h=m)}var _="";for(m=d+h+1;m<=f;++m)(m===f||a.charCodeAt(m)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+o.slice(s+h):(s+=h,o.charCodeAt(s)===47&&++s,o.slice(s))},_makeLong:function(a){return a},dirname:function(a){if(e(a),a.length===0)return".";for(var o=a.charCodeAt(0),d=o===47,f=-1,v=!0,s=a.length-1;s>=1;--s)if(o=a.charCodeAt(s),o===47){if(!v){f=s;break}}else v=!1;return f===-1?d?"/":".":d&&f===1?"//":a.slice(0,f)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');e(a);var d=0,f=-1,v=!0,s;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var l=o.length-1,c=-1;for(s=a.length-1;s>=0;--s){var y=a.charCodeAt(s);if(y===47){if(!v){d=s+1;break}}else c===-1&&(v=!1,c=s+1),l>=0&&(y===o.charCodeAt(l)?--l===-1&&(f=s):(l=-1,f=c))}return d===f?f=c:f===-1&&(f=a.length),a.slice(d,f)}else{for(s=a.length-1;s>=0;--s)if(a.charCodeAt(s)===47){if(!v){d=s+1;break}}else f===-1&&(v=!1,f=s+1);return f===-1?"":a.slice(d,f)}},extname:function(a){e(a);for(var o=-1,d=0,f=-1,v=!0,s=0,l=a.length-1;l>=0;--l){var c=a.charCodeAt(l);if(c===47){if(!v){d=l+1;break}continue}f===-1&&(v=!1,f=l+1),c===46?o===-1?o=l:s!==1&&(s=1):o!==-1&&(s=-1)}return o===-1||f===-1||s===0||s===1&&o===f-1&&o===d+1?"":a.slice(o,f)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return n("/",a)},parse:function(a){e(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var d=a.charCodeAt(0),f=d===47,v;f?(o.root="/",v=1):v=0;for(var s=-1,l=0,c=-1,y=!0,h=a.length-1,m=0;h>=v;--h){if(d=a.charCodeAt(h),d===47){if(!y){l=h+1;break}continue}c===-1&&(y=!1,c=h+1),d===46?s===-1?s=h:m!==1&&(m=1):s!==-1&&(m=-1)}return s===-1||c===-1||m===0||m===1&&s===c-1&&s===l+1?c!==-1&&(l===0&&f?o.base=o.name=a.slice(1,c):o.base=o.name=a.slice(l,c)):(l===0&&f?(o.name=a.slice(1,s),o.base=a.slice(1,c)):(o.name=a.slice(l,s),o.base=a.slice(l,c)),o.ext=a.slice(s,c)),l>0?o.dir=a.slice(0,l-1):f&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,Wi=r,Wi}var Nr={exports:{}},Mr={exports:{}},Fr={exports:{}},wc;function ns(){return wc||(wc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return r&&typeof r.length=="number"&&r.length>=0&&r.length%1===0}e.exports=t.default})(Fr,Fr.exports)),Fr.exports}var ht={},Br={exports:{}},Ur={exports:{}},Ec;function Iv(){return Ec||(Ec=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return function(...r){var i=r.pop();return n.call(this,r,i)}},e.exports=t.default})(Ur,Ur.exports)),Ur.exports}var _t={},Sc;function xv(){if(Sc)return _t;Sc=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.fallback=r,_t.wrap=i;var e=_t.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,t=_t.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,n=_t.hasNextTick=typeof ye=="object"&&typeof ye.nextTick=="function";function r(o){setTimeout(o,0)}function i(o){return(d,...f)=>o(()=>d(...f))}var a;return e?a=queueMicrotask:t?a=setImmediate:n?a=ye.nextTick:a=r,_t.default=i(a),_t}var Rc;function Cv(){return Rc||(Rc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var n=Iv(),r=d(n),i=xv(),a=d(i),o=Yt();function d(l){return l&&l.__esModule?l:{default:l}}function f(l){return(0,o.isAsync)(l)?function(...c){const y=c.pop(),h=l.apply(this,c);return v(h,y)}:(0,r.default)(function(c,y){var h;try{h=l.apply(this,c)}catch(m){return y(m)}if(h&&typeof h.then=="function")return v(h,y);y(null,h)})}function v(l,c){return l.then(y=>{s(c,null,y)},y=>{s(c,y&&y.message?y:new Error(y))})}function s(l,c,y){try{l(c,y)}catch(h){(0,a.default)(m=>{throw m},h)}}e.exports=t.default})(Br,Br.exports)),Br.exports}var Oc;function Yt(){if(Oc)return ht;Oc=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.isAsyncIterable=ht.isAsyncGenerator=ht.isAsync=void 0;var e=Cv(),t=n(e);function n(d){return d&&d.__esModule?d:{default:d}}function r(d){return d[Symbol.toStringTag]==="AsyncFunction"}function i(d){return d[Symbol.toStringTag]==="AsyncGenerator"}function a(d){return typeof d[Symbol.asyncIterator]=="function"}function o(d){if(typeof d!="function")throw new Error("expected a function");return r(d)?(0,t.default)(d):d}return ht.default=o,ht.isAsync=r,ht.isAsyncGenerator=i,ht.isAsyncIterable=a,ht}var Vr={exports:{}},Tc;function vr(){return Tc||(Tc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,i=r.length){if(!i)throw new Error("arity is undefined");function a(...o){return typeof o[i-1]=="function"?r.apply(this,o):new Promise((d,f)=>{o[i-1]=(v,...s)=>{if(v)return f(v);d(s.length>1?s:s[0])},r.apply(this,o)})}return a}e.exports=t.default})(Vr,Vr.exports)),Vr.exports}var Ac;function kv(){return Ac||(Ac=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=ns(),r=f(n),i=Yt(),a=f(i),o=vr(),d=f(o);function f(v){return v&&v.__esModule?v:{default:v}}t.default=(0,d.default)((v,s,l)=>{var c=(0,r.default)(s)?[]:{};v(s,(y,h,m)=>{(0,a.default)(y)((g,...u)=>{u.length<2&&([u]=u),c[h]=u,m(g)})},y=>l(y,c))},3),e.exports=t.default})(Mr,Mr.exports)),Mr.exports}var $r={exports:{}},zr={exports:{}},Gr={exports:{}},Hr={exports:{}},Ic;function Md(){return Ic||(Ic=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){function i(...a){if(r!==null){var o=r;r=null,o.apply(this,a)}}return Object.assign(i,r),i}e.exports=t.default})(Hr,Hr.exports)),Hr.exports}var Zr={exports:{}},Wr={exports:{}},xc;function Pv(){return xc||(xc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return n[Symbol.iterator]&&n[Symbol.iterator]()},e.exports=t.default})(Wr,Wr.exports)),Wr.exports}var Cc;function jv(){return Cc||(Cc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=ns(),r=o(n),i=Pv(),a=o(i);function o(l){return l&&l.__esModule?l:{default:l}}function d(l){var c=-1,y=l.length;return function(){return++c<y?{value:l[c],key:c}:null}}function f(l){var c=-1;return function(){var h=l.next();return h.done?null:(c++,{value:h.value,key:c})}}function v(l){var c=l?Object.keys(l):[],y=-1,h=c.length;return function m(){var g=c[++y];return g==="__proto__"?m():y<h?{value:l[g],key:g}:null}}function s(l){if((0,r.default)(l))return d(l);var c=(0,a.default)(l);return c?f(c):v(l)}e.exports=t.default})(Zr,Zr.exports)),Zr.exports}var Yr={exports:{}},kc;function Fd(){return kc||(kc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(...i){if(r===null)throw new Error("Callback was already called.");var a=r;r=null,a.apply(this,i)}}e.exports=t.default})(Yr,Yr.exports)),Yr.exports}var Jr={exports:{}},Kr={exports:{}},Pc;function is(){return Pc||(Pc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n={};t.default=n,e.exports=t.default})(Kr,Kr.exports)),Kr.exports}var jc;function Lv(){return jc||(jc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=is(),r=i(n);function i(o){return o&&o.__esModule?o:{default:o}}function a(o,d,f,v){let s=!1,l=!1,c=!1,y=0,h=0;function m(){y>=d||c||s||(c=!0,o.next().then(({value:_,done:E})=>{if(!(l||s)){if(c=!1,E){s=!0,y<=0&&v(null);return}y++,f(_,h,g),h++,m()}}).catch(u))}function g(_,E){if(y-=1,!l){if(_)return u(_);if(_===!1){s=!0,l=!0;return}if(E===r.default||s&&y<=0)return s=!0,v(null);m()}}function u(_){l||(c=!1,s=!0,v(_))}m()}e.exports=t.default})(Jr,Jr.exports)),Jr.exports}var Lc;function qv(){return Lc||(Lc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Md(),r=y(n),i=jv(),a=y(i),o=Fd(),d=y(o),f=Yt(),v=Lv(),s=y(v),l=is(),c=y(l);function y(h){return h&&h.__esModule?h:{default:h}}t.default=h=>(m,g,u)=>{if(u=(0,r.default)(u),h<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!m)return u(null);if((0,f.isAsyncGenerator)(m))return(0,s.default)(m,h,g,u);if((0,f.isAsyncIterable)(m))return(0,s.default)(m[Symbol.asyncIterator](),h,g,u);var _=(0,a.default)(m),E=!1,w=!1,b=0,x=!1;function O(M,W){if(!w)if(b-=1,M)E=!0,u(M);else if(M===!1)E=!0,w=!0;else{if(W===c.default||E&&b<=0)return E=!0,u(null);x||P()}}function P(){for(x=!0;b<h&&!E;){var M=_();if(M===null){E=!0,b<=0&&u(null);return}b+=1,g(M.value,M.key,(0,d.default)(O))}x=!1}P()},e.exports=t.default})(Gr,Gr.exports)),Gr.exports}var qc;function Bd(){return qc||(qc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=qv(),r=f(n),i=Yt(),a=f(i),o=vr(),d=f(o);function f(s){return s&&s.__esModule?s:{default:s}}function v(s,l,c,y){return(0,r.default)(l)(s,(0,a.default)(c),y)}t.default=(0,d.default)(v,4),e.exports=t.default})(zr,zr.exports)),zr.exports}var Dc;function Dv(){return Dc||(Dc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Bd(),r=o(n),i=vr(),a=o(i);function o(f){return f&&f.__esModule?f:{default:f}}function d(f,v,s){return(0,r.default)(f,1,v,s)}t.default=(0,a.default)(d,3),e.exports=t.default})($r,$r.exports)),$r.exports}var Nc;function Nv(){return Nc||(Nc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=kv(),r=o(n),i=Dv(),a=o(i);function o(f){return f&&f.__esModule?f:{default:f}}function d(f,v){return(0,r.default)(a.default,f,v)}e.exports=t.default})(Nr,Nr.exports)),Nr.exports}var Yi={},Ji={},Mc;function Mv(){return Mc||(Mc=1,(function(e){var t=sr(),n=gm(),r=mm(),i=_m(),a=bm();for(var o in a)e[o]=a[o];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 d=31,f=139;function v(s){if(typeof s!="number"||s<e.DEFLATE||s>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=s,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}v.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,t(this.init_done,"close before init"),t(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?r.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&i.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},v.prototype.write=function(s,l,c,y,h,m,g){return this._write(!0,s,l,c,y,h,m,g)},v.prototype.writeSync=function(s,l,c,y,h,m,g){return this._write(!1,s,l,c,y,h,m,g)},v.prototype._write=function(s,l,c,y,h,m,g,u){if(t.equal(arguments.length,8),t(this.init_done,"write before init"),t(this.mode!==e.NONE,"already finalized"),t.equal(!1,this.write_in_progress,"write already in progress"),t.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,t.equal(!1,l===void 0,"must provide flush value"),this.write_in_progress=!0,l!==e.Z_NO_FLUSH&&l!==e.Z_PARTIAL_FLUSH&&l!==e.Z_SYNC_FLUSH&&l!==e.Z_FULL_FLUSH&&l!==e.Z_FINISH&&l!==e.Z_BLOCK)throw new Error("Invalid flush value");if(c==null&&(c=et.alloc(0),h=0,y=0),this.strm.avail_in=h,this.strm.input=c,this.strm.next_in=y,this.strm.avail_out=u,this.strm.output=m,this.strm.next_out=g,this.flush=l,!s)return this._process(),this._checkError()?this._afterSync():void 0;var _=this;return ye.nextTick(function(){_._process(),_._after()}),this},v.prototype._afterSync=function(){var s=this.strm.avail_out,l=this.strm.avail_in;return this.write_in_progress=!1,[l,s]},v.prototype._process=function(){var s=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=r.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(s=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(s===null)break;if(this.strm.input[s]===d){if(this.gzip_id_bytes_read=1,s++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(s===null)break;this.strm.input[s]===f?(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=i.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=i.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=i.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=i.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},v.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},v.prototype._after=function(){if(this._checkError()){var s=this.strm.avail_out,l=this.strm.avail_in;this.write_in_progress=!1,this.callback(l,s),this.pending_close&&this.close()}},v.prototype._error=function(s){this.strm.msg&&(s=this.strm.msg),this.onerror(s,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},v.prototype.init=function(s,l,c,y,h){t(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),t(s>=8&&s<=15,"invalid windowBits"),t(l>=-1&&l<=9,"invalid compression level"),t(c>=1&&c<=9,"invalid memlevel"),t(y===e.Z_FILTERED||y===e.Z_HUFFMAN_ONLY||y===e.Z_RLE||y===e.Z_FIXED||y===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(l,s,c,y,h),this._setDictionary()},v.prototype.params=function(){throw new Error("deflateParams Not supported")},v.prototype.reset=function(){this._reset(),this._setDictionary()},v.prototype._init=function(s,l,c,y,h){switch(this.level=s,this.windowBits=l,this.memLevel=c,this.strategy=y,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 n,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=r.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=i.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=h,this.write_in_progress=!1,this.init_done=!0},v.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=r.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},v.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=r.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=i.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=v})(Ji)),Ji}var Fc;function Fv(){return Fc||(Fc=1,(function(e){var t=or().Buffer,n=_n().Transform,r=Mv(),i=Ze(),a=sr().ok,o=or().kMaxLength,d="Cannot create final Buffer. It would be larger than 0x"+o.toString(16)+" bytes";r.Z_MIN_WINDOWBITS=8,r.Z_MAX_WINDOWBITS=15,r.Z_DEFAULT_WINDOWBITS=15,r.Z_MIN_CHUNK=64,r.Z_MAX_CHUNK=1/0,r.Z_DEFAULT_CHUNK=16*1024,r.Z_MIN_MEMLEVEL=1,r.Z_MAX_MEMLEVEL=9,r.Z_DEFAULT_MEMLEVEL=8,r.Z_MIN_LEVEL=-1,r.Z_MAX_LEVEL=9,r.Z_DEFAULT_LEVEL=r.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(r),v=0;v<f.length;v++){var s=f[v];s.match(/^Z/)&&Object.defineProperty(e,s,{enumerable:!0,value:r[s],writable:!1})}for(var l={Z_OK:r.Z_OK,Z_STREAM_END:r.Z_STREAM_END,Z_NEED_DICT:r.Z_NEED_DICT,Z_ERRNO:r.Z_ERRNO,Z_STREAM_ERROR:r.Z_STREAM_ERROR,Z_DATA_ERROR:r.Z_DATA_ERROR,Z_MEM_ERROR:r.Z_MEM_ERROR,Z_BUF_ERROR:r.Z_BUF_ERROR,Z_VERSION_ERROR:r.Z_VERSION_ERROR},c=Object.keys(l),y=0;y<c.length;y++){var h=c[y];l[l[h]]=h}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(l),writable:!1}),e.Deflate=u,e.Inflate=_,e.Gzip=E,e.Gunzip=w,e.DeflateRaw=b,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 b(S)},e.createInflateRaw=function(S){return new x(S)},e.createGzip=function(S){return new E(S)},e.createGunzip=function(S){return new w(S)},e.createUnzip=function(S){return new O(S)},e.deflate=function(S,I,$){return typeof I=="function"&&($=I,I={}),m(new u(I),S,$)},e.deflateSync=function(S,I){return g(new u(I),S)},e.gzip=function(S,I,$){return typeof I=="function"&&($=I,I={}),m(new E(I),S,$)},e.gzipSync=function(S,I){return g(new E(I),S)},e.deflateRaw=function(S,I,$){return typeof I=="function"&&($=I,I={}),m(new b(I),S,$)},e.deflateRawSync=function(S,I){return g(new b(I),S)},e.unzip=function(S,I,$){return typeof I=="function"&&($=I,I={}),m(new O(I),S,$)},e.unzipSync=function(S,I){return g(new O(I),S)},e.inflate=function(S,I,$){return typeof I=="function"&&($=I,I={}),m(new _(I),S,$)},e.inflateSync=function(S,I){return g(new _(I),S)},e.gunzip=function(S,I,$){return typeof I=="function"&&($=I,I={}),m(new w(I),S,$)},e.gunzipSync=function(S,I){return g(new w(I),S)},e.inflateRaw=function(S,I,$){return typeof I=="function"&&($=I,I={}),m(new x(I),S,$)},e.inflateRawSync=function(S,I){return g(new x(I),S)};function m(S,I,$){var z=[],X=0;S.on("error",k),S.on("end",j),S.end(I),A();function A(){for(var N;(N=S.read())!==null;)z.push(N),X+=N.length;S.once("readable",A)}function k(N){S.removeListener("end",j),S.removeListener("readable",A),$(N)}function j(){var N,H=null;X>=o?H=new RangeError(d):N=t.concat(z,X),z=[],S.close(),$(H,N)}}function g(S,I){if(typeof I=="string"&&(I=t.from(I)),!t.isBuffer(I))throw new TypeError("Not a string or buffer");var $=S._finishFlushFlag;return S._processChunk(I,$)}function u(S){if(!(this instanceof u))return new u(S);M.call(this,S,r.DEFLATE)}function _(S){if(!(this instanceof _))return new _(S);M.call(this,S,r.INFLATE)}function E(S){if(!(this instanceof E))return new E(S);M.call(this,S,r.GZIP)}function w(S){if(!(this instanceof w))return new w(S);M.call(this,S,r.GUNZIP)}function b(S){if(!(this instanceof b))return new b(S);M.call(this,S,r.DEFLATERAW)}function x(S){if(!(this instanceof x))return new x(S);M.call(this,S,r.INFLATERAW)}function O(S){if(!(this instanceof O))return new O(S);M.call(this,S,r.UNZIP)}function P(S){return S===r.Z_NO_FLUSH||S===r.Z_PARTIAL_FLUSH||S===r.Z_SYNC_FLUSH||S===r.Z_FULL_FLUSH||S===r.Z_FINISH||S===r.Z_BLOCK}function M(S,I){var $=this;if(this._opts=S=S||{},this._chunkSize=S.chunkSize||e.Z_DEFAULT_CHUNK,n.call(this,S),S.flush&&!P(S.flush))throw new Error("Invalid flush flag: "+S.flush);if(S.finishFlush&&!P(S.finishFlush))throw new Error("Invalid flush flag: "+S.finishFlush);if(this._flushFlag=S.flush||r.Z_NO_FLUSH,this._finishFlushFlag=typeof S.finishFlush<"u"?S.finishFlush:r.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&&!t.isBuffer(S.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new r.Zlib(I);var z=this;this._hadError=!1,this._handle.onerror=function(k,j){W(z),z._hadError=!0;var N=new Error(k);N.errno=j,N.code=e.codes[j],z.emit("error",N)};var X=e.Z_DEFAULT_COMPRESSION;typeof S.level=="number"&&(X=S.level);var A=e.Z_DEFAULT_STRATEGY;typeof S.strategy=="number"&&(A=S.strategy),this._handle.init(S.windowBits||e.Z_DEFAULT_WINDOWBITS,X,S.memLevel||e.Z_DEFAULT_MEMLEVEL,A,S.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=X,this._strategy=A,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!$._handle},configurable:!0,enumerable:!0})}i.inherits(M,n),M.prototype.params=function(S,I,$){if(S<e.Z_MIN_LEVEL||S>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+S);if(I!=e.Z_FILTERED&&I!=e.Z_HUFFMAN_ONLY&&I!=e.Z_RLE&&I!=e.Z_FIXED&&I!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+I);if(this._level!==S||this._strategy!==I){var z=this;this.flush(r.Z_SYNC_FLUSH,function(){a(z._handle,"zlib binding closed"),z._handle.params(S,I),z._hadError||(z._level=S,z._strategy=I,$&&$())})}else ye.nextTick($)},M.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},M.prototype._flush=function(S){this._transform(t.alloc(0),"",S)},M.prototype.flush=function(S,I){var $=this,z=this._writableState;(typeof S=="function"||S===void 0&&!I)&&(I=S,S=r.Z_FULL_FLUSH),z.ended?I&&ye.nextTick(I):z.ending?I&&this.once("end",I):z.needDrain?I&&this.once("drain",function(){return $.flush(S,I)}):(this._flushFlag=S,this.write(t.alloc(0),"",I))},M.prototype.close=function(S){W(this,S),ye.nextTick(V,this)};function W(S,I){I&&ye.nextTick(I),S._handle&&(S._handle.close(),S._handle=null)}function V(S){S.emit("close")}M.prototype._transform=function(S,I,$){var z,X=this._writableState,A=X.ending||X.ended,k=A&&(!S||X.length===S.length);if(S!==null&&!t.isBuffer(S))return $(new Error("invalid input"));if(!this._handle)return $(new Error("zlib binding closed"));k?z=this._finishFlushFlag:(z=this._flushFlag,S.length>=X.length&&(this._flushFlag=this._opts.flush||r.Z_NO_FLUSH)),this._processChunk(S,z,$)},M.prototype._processChunk=function(S,I,$){var z=S&&S.length,X=this._chunkSize-this._offset,A=0,k=this,j=typeof $=="function";if(!j){var N=[],H=0,B;this.on("error",function(K){B=K}),a(this._handle,"zlib binding closed");do var q=this._handle.writeSync(I,S,A,z,this._buffer,this._offset,X);while(!this._hadError&&F(q[0],q[1]));if(this._hadError)throw B;if(H>=o)throw W(this),new RangeError(d);var L=t.concat(N,H);return W(this),L}a(this._handle,"zlib binding closed");var D=this._handle.write(I,S,A,z,this._buffer,this._offset,X);D.buffer=S,D.callback=F;function F(K,J){if(this&&(this.buffer=null,this.callback=null),!k._hadError){var ae=X-J;if(a(ae>=0,"have should not go down"),ae>0){var ue=k._buffer.slice(k._offset,k._offset+ae);k._offset+=ae,j?k.push(ue):(N.push(ue),H+=ue.length)}if((J===0||k._offset>=k._chunkSize)&&(X=k._chunkSize,k._offset=0,k._buffer=t.allocUnsafe(k._chunkSize)),J===0){if(A+=z-K,z=K,!j)return!0;var ve=k._handle.write(I,S,A,z,k._buffer,k._offset,k._chunkSize);ve.callback=F,ve.buffer=S;return}if(!j)return!1;$()}}},i.inherits(u,M),i.inherits(_,M),i.inherits(E,M),i.inherits(w,M),i.inherits(b,M),i.inherits(x,M),i.inherits(O,M)})(Yi)),Yi}var Ki={exports:{}},Xi,Bc;function Bv(){if(Bc)return Xi;Bc=1;var e=[],t=[],n=function(){};function r(c){return~e.indexOf(c)?!1:(e.push(c),!0)}function i(c){n=c}function a(c){for(var y=[],h=0;h<e.length;h++){if(e[h].async){y.push(e[h]);continue}if(e[h](c))return!0}return y.length?new Promise(function(g){Promise.all(y.map(function(_){return _(c)})).then(function(_){g(_.some(Boolean))})}):!1}function o(c){return~t.indexOf(c)?!1:(t.push(c),!0)}function d(){n.apply(n,arguments)}function f(c){for(var y=0;y<t.length;y++)c=t[y].apply(t[y],arguments);return c}function v(c,y){var h=Object.prototype.hasOwnProperty;for(var m in y)h.call(y,m)&&(c[m]=y[m]);return c}function s(c){return c.enabled=!1,c.modify=o,c.set=i,c.use=r,v(function(){return!1},c)}function l(c){function y(){var h=Array.prototype.slice.call(arguments,0);return d.call(d,c,f(h,c)),!0}return c.enabled=!0,c.modify=o,c.set=i,c.use=r,v(y,c)}return Xi=function(y){return y.introduce=v,y.enabled=a,y.process=f,y.modify=o,y.write=d,y.nope=s,y.yep=l,y.set=i,y.use=r,y},Xi}var Qi,Uc;function Uv(){if(Uc)return Qi;Uc=1;var e=Bv(),t=e(function n(r,i){return i=i||{},i.namespace=r,i.prod=!0,i.dev=!1,i.force||n.force?n.yep(i):n.nope(i)});return Qi=t,Qi}var Vc;function En(){return Vc||(Vc=1,Ki.exports=Uv()),Ki.exports}var ea,$c;function Vv(){if($c)return ea;$c=1;var e=Xo(),t=cm(),n=t.StringDecoder,r=pr(),i=r.Stream;function a(){}return ea=function(o,d){var f=et.alloc(65536),v=new n("utf8"),s=new i,l="",c=0,y=0;return o.start===-1&&delete o.start,s.readable=!0,s.destroy=function(){s.destroyed=!0,s.emit("end"),s.emit("close")},e.open(o.file,"a+","0644",function(h,m){if(h){d?d(h):s.emit("error",h),s.destroy();return}(function g(){if(s.destroyed){e.close(m,a);return}return e.read(m,f,0,f.length,c,function(u,_){if(u){d?d(u):s.emit("error",u),s.destroy();return}if(!_)return l&&((o.start==null||y>o.start)&&(d?d(null,l):s.emit("line",l)),y++,l=""),setTimeout(g,1e3);var E=v.write(f.slice(0,_));d||s.emit("data",E),E=(l+E).split(/\n+/);for(var w=E.length-1,b=0;b<w;b++)(o.start==null||y>o.start)&&(d?d(null,E[b]):s.emit("line",E[b])),y++;return l=E[w],c+=_,g()})})()}),d?s.destroy:s},ea}var ta,zc;function $v(){if(zc)return ta;zc=1;function e(P){"@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(P)}function t(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")}function n(P,M){for(var W=0;W<M.length;W++){var V=M[W];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,V.key,V)}}function r(P,M,W){return M&&n(P.prototype,M),Object.defineProperty(P,"prototype",{writable:!1}),P}function i(P,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(M&&M.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),M&&a(P,M)}function a(P,M){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,S){return V.__proto__=S,V},a(P,M)}function o(P){var M=v();return function(){var V=s(P),S;if(M){var I=s(this).constructor;S=Reflect.construct(V,arguments,I)}else S=V.apply(this,arguments);return d(this,S)}}function d(P,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 f(P)}function f(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function v(){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 s(P){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},s(P)}var l=Xo(),c=Nd(),y=Nv(),h=Fv(),m=De(),g=m.MESSAGE,u=pr(),_=u.Stream,E=u.PassThrough,w=$t(),b=En()("winston:file"),x=Vt(),O=Vv();return ta=(function(P){i(W,P);var M=o(W);function W(){var V,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t(this,W),V=M.call(this,S),V.name=S.name||"file";function I($){for(var z=arguments.length,X=new Array(z>1?z-1:0),A=1;A<z;A++)X[A-1]=arguments[A];X.slice(1).forEach(function(k){if(S[k])throw new Error("Cannot set ".concat(k," and ").concat($," together"))})}if(V._stream=new E,V._stream.setMaxListeners(30),V._onError=V._onError.bind(f(V)),S.filename||S.dirname)I("filename or dirname","stream"),V._basename=V.filename=S.filename?c.basename(S.filename):"winston.log",V.dirname=S.dirname||c.dirname(S.filename),V.options=S.options||{flags:"a"};else if(S.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),I("stream","filename","maxsize"),V._dest=V._stream.pipe(V._setupStream(S.stream)),V.dirname=c.dirname(V._dest.path);else throw new Error("Cannot log to file without filename or stream.");return V.maxsize=S.maxsize||null,V.rotationFormat=S.rotationFormat||!1,V.zippedArchive=S.zippedArchive||!1,V.maxFiles=S.maxFiles||null,V.eol=typeof S.eol=="string"?S.eol:x.EOL,V.tailable=S.tailable||!1,V._size=0,V._pendingSize=0,V._created=0,V._drain=!1,V._opening=!1,V._ending=!1,V.dirname&&V._createLogDirIfNotExist(V.dirname),V.open(),V}return r(W,[{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 I=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return $(),!0;if(this._drain){this._stream.once("drain",function(){I._drain=!1,I.log(S,$)});return}if(this._rotate){this._stream.once("rotate",function(){I._rotate=!1,I.log(S,$)});return}var z="".concat(S[g]).concat(this.eol),X=et.byteLength(z);function A(){var j=this;this._size+=X,this._pendingSize-=X,b("logged %s %s",this._size,z),this.emit("logged",S),!this._opening&&this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return j._rotateFile()}))}this._pendingSize+=X,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var k=this._stream.write(z,A.bind(this));return k?$():(this._drain=!0,this._stream.once("drain",function(){I._drain=!1,$()})),b("written",k,this._drain),this.finishIfEnding(),k}},{key:"query",value:function(S,I){typeof S=="function"&&(I=S,S={}),S=B(S);var $=c.join(this.dirname,this.filename),z="",X=[],A=0,k=l.createReadStream($,{encoding:"utf8"});k.on("error",function(q){if(k.readable&&k.destroy(),!!I)return q.code!=="ENOENT"?I(q):I(null,X)}),k.on("data",function(q){q=(z+q).split(/\n+/);for(var L=q.length-1,D=0;D<L;D++)(!S.start||A>=S.start)&&j(q[D]),A++;z=q[L]}),k.on("close",function(){z&&j(z,!0),S.order==="desc"&&(X=X.reverse()),I&&I(null,X)});function j(q,L){try{var D=JSON.parse(q);H(D)&&N(D)}catch(F){L||k.emit("error",F)}}function N(q){if(S.rows&&X.length>=S.rows&&S.order!=="desc"){k.readable&&k.destroy();return}S.fields&&(q=S.fields.reduce(function(L,D){return L[D]=q[D],L},{})),S.order==="desc"&&X.length>=S.rows&&X.shift(),X.push(q)}function H(q){if(q&&e(q)==="object"){var L=new Date(q.timestamp);if(!(S.from&&L<S.from||S.until&&L>S.until||S.level&&S.level!==q.level))return!0}}function B(q){return q=q||{},q.rows=q.rows||q.limit||10,q.start=q.start||0,q.until=q.until||new Date,e(q.until)!=="object"&&(q.until=new Date(q.until)),q.from=q.from||q.until-1440*60*1e3,e(q.from)!=="object"&&(q.from=new Date(q.from)),q.order=q.order||"desc",q}}},{key:"stream",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=c.join(this.dirname,this.filename),$=new _,z={file:I,start:S.start};return $.destroy=O(z,function(X,A){if(X)return $.emit("error",X);try{$.emit("data",A),A=JSON.parse(A),$.emit("log",A)}catch(k){$.emit("error",k)}}),$}},{key:"open",value:function(){var S=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(I,$){if(I)return S.emit("error",I);b("stat done: %s { size: %s }",S.filename,$),S._size=$,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 I=this,$=this._getFile(),z=c.join(this.dirname,$);l.stat(z,function(X,A){if(X&&X.code==="ENOENT")return b("ENOENT ok",z),I.filename=$,S(null,0);if(X)return b("err ".concat(X.code," ").concat(z)),S(X);if(!A||I._needsNewFile(A.size))return I._incFile(function(){return I.stat(S)});I.filename=$,S(null,A.size)})}},{key:"close",value:function(S){var I=this;this._stream&&this._stream.end(function(){S&&S(),I.emit("flush"),I.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,I=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),I()})):I()}},{key:"_createStream",value:function(S){var I=this,$=c.join(this.dirname,this.filename);b("create stream start",$,this.options);var z=l.createWriteStream($,this.options).on("error",function(A){return b(A)}).on("close",function(){return b("close",z.path,z.bytesWritten)}).on("open",function(){b("file open ok",$),I.emit("open",$),S.pipe(z),I.rotatedWhileOpening&&(I._stream=new E,I._stream.setMaxListeners(30),I._rotateFile(),I.rotatedWhileOpening=!1,I._cleanupStream(z),S.end())});if(b("create stream ok",$),this.zippedArchive){var X=h.createGzip();return X.pipe(z),X}return z}},{key:"_incFile",value:function(S){b("_incFile",this.filename);var I=c.extname(this._basename),$=c.basename(this._basename,I);this.tailable?this._checkMaxFilesTailable(I,$,S):(this._created+=1,this._checkMaxFilesIncrementing(I,$,S))}},{key:"_getFile",value:function(){var S=c.extname(this._basename),I=c.basename(this._basename,S),$=this.rotationFormat?this.rotationFormat():this._created,z=!this.tailable&&this._created?"".concat(I).concat($).concat(S):"".concat(I).concat(S);return this.zippedArchive&&!this.tailable?"".concat(z,".gz"):z}},{key:"_checkMaxFilesIncrementing",value:function(S,I,$){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate($);var z=this._created-this.maxFiles,X=z!==0?z:"",A=this.zippedArchive?".gz":"",k="".concat(I).concat(X).concat(S).concat(A),j=c.join(this.dirname,k);l.unlink(j,$)}},{key:"_checkMaxFilesTailable",value:function(S,I,$){var z=this,X=[];if(this.maxFiles){for(var A=this.zippedArchive?".gz":"",k=this.maxFiles-1;k>1;k--)X.push((function(j,N){var H=this,B="".concat(I).concat(j-1).concat(S).concat(A),q=c.join(this.dirname,B);l.exists(q,function(L){if(!L)return N(null);B="".concat(I).concat(j).concat(S).concat(A),l.rename(q,c.join(H.dirname,B),N)})}).bind(this,k));y(X,function(){l.rename(c.join(z.dirname,"".concat(I).concat(S)),c.join(z.dirname,"".concat(I,"1").concat(S).concat(A)),$)})}}},{key:"_createLogDirIfNotExist",value:function(S){l.existsSync(S)||l.mkdirSync(S,{recursive:!0})}}]),W})(w),ta}var ra,Gc;function zv(){if(Gc)return ra;Gc=1;function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},e(w)}function t(w,b){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(w);b&&(O=O.filter(function(P){return Object.getOwnPropertyDescriptor(w,P).enumerable})),x.push.apply(x,O)}return x}function n(w){for(var b=1;b<arguments.length;b++){var x=arguments[b]!=null?arguments[b]:{};b%2?t(Object(x),!0).forEach(function(O){r(w,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(x)):t(Object(x)).forEach(function(O){Object.defineProperty(w,O,Object.getOwnPropertyDescriptor(x,O))})}return w}function r(w,b,x){return b in w?Object.defineProperty(w,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):w[b]=x,w}function i(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function a(w,b){for(var x=0;x<b.length;x++){var O=b[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(w,O.key,O)}}function o(w,b,x){return b&&a(w.prototype,b),Object.defineProperty(w,"prototype",{writable:!1}),w}function d(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),b&&f(w,b)}function f(w,b){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,P){return O.__proto__=P,O},f(w,b)}function v(w){var b=c();return function(){var O=y(w),P;if(b){var M=y(this).constructor;P=Reflect.construct(O,arguments,M)}else P=O.apply(this,arguments);return s(this,P)}}function s(w,b){if(b&&(e(b)==="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(w)}function l(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}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 y(w){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},y(w)}var h=fm(),m=dm(),g=pr(),u=g.Stream,_=$t(),E=gr();return ra=(function(w){d(x,w);var b=v(x);function x(){var O,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return i(this,x),O=b.call(this,P),O.options=P,O.name=P.name||"http",O.ssl=!!P.ssl,O.host=P.host||"localhost",O.port=P.port,O.auth=P.auth,O.path=P.path||"",O.agent=P.agent,O.headers=P.headers||{},O.headers["content-type"]="application/json",O.batch=P.batch||!1,O.batchInterval=P.batchInterval||5e3,O.batchCount=P.batchCount||10,O.batchOptions=[],O.batchTimeoutID=-1,O.batchCallback={},O.port||(O.port=O.ssl?443:80),O}return o(x,[{key:"log",value:function(P,M){var W=this;this._request(P,function(V,S){S&&S.statusCode!==200&&(V=new Error("Invalid HTTP Status Code: ".concat(S.statusCode))),V?W.emit("warn",V):W.emit("logged",P)}),M&&setImmediate(M)}},{key:"query",value:function(P,M){typeof P=="function"&&(M=P,P={}),P={method:"query",params:this.normalizeQuery(P)},P.params.path&&(P.path=P.params.path,delete P.params.path),P.params.auth&&(P.auth=P.params.auth,delete P.params.auth),this._request(P,function(W,V,S){if(V&&V.statusCode!==200&&(W=new Error("Invalid HTTP Status Code: ".concat(V.statusCode))),W)return M(W);if(typeof S=="string")try{S=JSON.parse(S)}catch(I){return M(I)}M(null,S)})}},{key:"stream",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=new u;P={method:"stream",params:P},P.params.path&&(P.path=P.params.path,delete P.params.path),P.params.auth&&(P.auth=P.params.auth,delete P.params.auth);var W="",V=this._request(P);return M.destroy=function(){return V.destroy()},V.on("data",function(S){S=(W+S).split(/\n+/);for(var I=S.length-1,$=0;$<I;$++)try{M.emit("log",JSON.parse(S[$]))}catch(z){M.emit("error",z)}W=S[I]}),V.on("error",function(S){return M.emit("error",S)}),M}},{key:"_request",value:function(P,M){P=P||{};var W=P.auth||this.auth,V=P.path||this.path||"";delete P.auth,delete P.path,this.batch?this._doBatch(P,M,W,V):this._doRequest(P,M,W,V)}},{key:"_doBatch",value:function(P,M,W,V){if(this.batchOptions.push(P),this.batchOptions.length===1){var S=this;this.batchCallback=M,this.batchTimeoutID=setTimeout(function(){S.batchTimeoutID=-1,S._doBatchRequest(S.batchCallback,W,V)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,W,V)}},{key:"_doBatchRequest",value:function(P,M,W){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var V=this.batchOptions.slice();this.batchOptions=[],this._doRequest(V,P,M,W)}},{key:"_doRequest",value:function(P,M,W,V){var S=Object.assign({},this.headers);W&&W.bearer&&(S.Authorization="Bearer ".concat(W.bearer));var I=(this.ssl?m:h).request(n(n({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(V.replace(/^\//,"")),headers:S,auth:W&&W.username&&W.password?"".concat(W.username,":").concat(W.password):"",agent:this.agent}));I.on("error",M),I.on("response",function($){return $.on("end",function(){return M(null,$)}).resume()}),I.end(et.from(E(P,this.options.replacer),"utf8"))}}]),x})(_),ra}var na,Hc;function Ud(){if(Hc)return na;Hc=1;const e=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";return e.writable=t=>e(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object",e.readable=t=>e(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object",e.duplex=t=>e.writable(t)&&e.readable(t),e.transform=t=>e.duplex(t)&&typeof t._transform=="function",na=e,na}var ia,Zc;function Gv(){if(Zc)return ia;Zc=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 t(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function n(g,u){for(var _=0;_<u.length;_++){var E=u[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,E.key,E)}}function r(g,u,_){return u&&n(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}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(E,w){return E.__proto__=w,E},a(g,u)}function o(g){var u=v();return function(){var E=s(g),w;if(u){var b=s(this).constructor;w=Reflect.construct(E,arguments,b)}else w=E.apply(this,arguments);return d(this,w)}}function d(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 f(g)}function f(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function v(){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 s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},s(g)}var l=Ud(),c=De(),y=c.MESSAGE,h=Vt(),m=$t();return ia=(function(g){i(_,g);var u=o(_);function _(){var E,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(t(this,_),E=u.call(this,w),!w.stream||!l(w.stream))throw new Error("options.stream is required.");return E._stream=w.stream,E._stream.setMaxListeners(1/0),E.isObjectMode=w.stream._writableState.objectMode,E.eol=typeof w.eol=="string"?w.eol:h.EOL,E}return r(_,[{key:"log",value:function(w,b){var x=this;if(setImmediate(function(){return x.emit("logged",w)}),this.isObjectMode){this._stream.write(w),b&&b();return}this._stream.write("".concat(w[y]).concat(this.eol)),b&&b()}}]),_})(m),ia}var Wc;function Hv(){return Wc||(Wc=1,(function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return Av()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return $v()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return zv()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return Gv()}})})(Gi)),Gi}var Ht={},Yc;function as(){if(Yc)return Ht;Yc=1;var e=qd(),t=De(),n=t.configs;return Ht.cli=e.levels(n.cli),Ht.npm=e.levels(n.npm),Ht.syslog=e.levels(n.syslog),Ht.addColors=e.levels,Ht}var Xr={exports:{}},Qr={exports:{}},Jc;function Zv(){return Jc||(Jc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=ns(),r=g(n),i=is(),a=g(i),o=Bd(),d=g(o),f=Md(),v=g(f),s=Fd(),l=g(s),c=Yt(),y=g(c),h=vr(),m=g(h);function g(w){return w&&w.__esModule?w:{default:w}}function u(w,b,x){x=(0,v.default)(x);var O=0,P=0,{length:M}=w,W=!1;M===0&&x(null);function V(S,I){S===!1&&(W=!0),W!==!0&&(S?x(S):(++P===M||I===a.default)&&x(null))}for(;O<M;O++)b(w[O],O,(0,l.default)(V))}function _(w,b,x){return(0,d.default)(w,1/0,b,x)}function E(w,b,x){var O=(0,r.default)(w)?u:_;return O(w,(0,y.default)(b),x)}t.default=(0,m.default)(E,3),e.exports=t.default})(Qr,Qr.exports)),Qr.exports}var en={exports:{}},Kc;function Wv(){return Kc||(Kc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return(i,a,o)=>r(i,o)}e.exports=t.default})(en,en.exports)),en.exports}var Xc;function os(){return Xc||(Xc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Zv(),r=s(n),i=Wv(),a=s(i),o=Yt(),d=s(o),f=vr(),v=s(f);function s(c){return c&&c.__esModule?c:{default:c}}function l(c,y,h){return(0,r.default)(c,(0,a.default)((0,d.default)(y)),h)}t.default=(0,v.default)(l,3),e.exports=t.default})(Xr,Xr.exports)),Xr.exports}var aa,Qc;function Yv(){if(Qc)return aa;Qc=1;var e=Object.prototype.toString;return aa=function(n){if(typeof n.displayName=="string"&&n.constructor.name)return n.displayName;if(typeof n.name=="string"&&n.name)return n.name;if(typeof n=="object"&&n.constructor&&typeof n.constructor.name=="string")return n.constructor.name;var r=n.toString(),i=e.call(n).slice(8,-1);return i==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=i,r||"anonymous"},aa}var oa,el;function Vd(){if(el)return oa;el=1;var e=Yv();return oa=function(n){var r=0,i;function a(){return r||(r=1,i=n.apply(this,arguments),n=null),i}return a.displayName=e(n),a},oa}var sa={},tl;function $d(){return tl||(tl=1,(function(e){e.get=function(i){var a=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var o={},d=Error.prepareStackTrace;Error.prepareStackTrace=function(v,s){return s},Error.captureStackTrace(o,i||e.get);var f=o.stack;return Error.prepareStackTrace=d,Error.stackTraceLimit=a,f},e.parse=function(i){if(!i.stack)return[];var a=this,o=i.stack.split(`
|
|
109
|
-
`).slice(1);return o.map(function(d){if(d.match(/^\s*[-]{4,}$/))return a._createParsedCallSite({fileName:d,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var f=d.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(f){var v=null,s=null,l=null,c=null,y=null,h=f[5]==="native";if(f[1]){l=f[1];var m=l.lastIndexOf(".");if(l[m-1]=="."&&m--,m>0){v=l.substr(0,m),s=l.substr(m+1);var g=v.indexOf(".Module");g>0&&(l=l.substr(g+1),v=v.substr(0,g))}c=null}s&&(c=v,y=s),s==="<anonymous>"&&(y=null,l=null);var u={fileName:f[2]||null,lineNumber:parseInt(f[3],10)||null,functionName:l,typeName:c,methodName:y,columnNumber:parseInt(f[4],10)||null,native:h};return a._createParsedCallSite(u)}}).filter(function(d){return!!d})};function t(i){for(var a in i)this[a]=i[a]}var n=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],r=["topLevel","eval","native","constructor"];n.forEach(function(i){t.prototype[i]=null,t.prototype["get"+i[0].toUpperCase()+i.substr(1)]=function(){return this[i]}}),r.forEach(function(i){t.prototype[i]=!1,t.prototype["is"+i[0].toUpperCase()+i.substr(1)]=function(){return this[i]}}),e._createParsedCallSite=function(i){return new t(i)}})(sa)),sa}var ua,rl;function zd(){if(rl)return ua;rl=1;function e(y){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(y)}function t(y,h){if(!(y instanceof h))throw new TypeError("Cannot call a class as a function")}function n(y,h){for(var m=0;m<h.length;m++){var g=h[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(y,g.key,g)}}function r(y,h,m){return h&&n(y.prototype,h),Object.defineProperty(y,"prototype",{writable:!1}),y}function i(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(h&&h.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),h&&a(y,h)}function a(y,h){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,u){return g.__proto__=u,g},a(y,h)}function o(y){var h=v();return function(){var g=s(y),u;if(h){var _=s(this).constructor;u=Reflect.construct(g,arguments,_)}else u=g.apply(this,arguments);return d(this,u)}}function d(y,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(y)}function f(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function v(){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 s(y){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},s(y)}var l=pr(),c=l.Writable;return ua=(function(y){i(m,y);var h=o(m);function m(g){var u;if(t(this,m),u=h.call(this,{objectMode:!0}),!g)throw new Error("ExceptionStream requires a TransportStream instance.");return u.handleExceptions=!0,u.transport=g,u}return r(m,[{key:"_write",value:function(u,_,
|
|
110
|
-
`),stack:l.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(l)}}},{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:r.loadavg(),uptime:r.uptime()}}},{key:"getTrace",value:function(l){var c=l?d.parse(l):d.get();return c.map(function(y){return{column:y.getColumnNumber(),file:y.getFileName(),function:y.getFunctionName(),line:y.getLineNumber(),method:y.getMethodName(),native:y.isNative()}})}},{key:"_addHandler",value:function(l){if(!this.handlers.has(l)){l.handleExceptions=!0;var c=new f(l);this.handlers.set(l,c),this.logger.pipe(c)}}},{key:"_uncaughtException",value:function(l){var c=this.getAllInfo(l),y=this._getExceptionHandlers(),h=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(l):this.logger.exitOnError,m;!y.length&&h&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),h=!1);function g(){a("doExit",h),a("process._exiting",ye._exiting),h&&!ye._exiting&&(m&&clearTimeout(m),ye.exit(1))}if(!y||y.length===0)return ye.nextTick(g);i(y,function(u,_){var
|
|
111
|
-
`),stack:l&&l.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(l)}}},{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:r.loadavg(),uptime:r.uptime()}}},{key:"getTrace",value:function(l){var c=l?d.parse(l):d.get();return c.map(function(y){return{column:y.getColumnNumber(),file:y.getFileName(),function:y.getFunctionName(),line:y.getLineNumber(),method:y.getMethodName(),native:y.isNative()}})}},{key:"_addHandler",value:function(l){if(!this.handlers.has(l)){l.handleRejections=!0;var c=new f(l);this.handlers.set(l,c),this.logger.pipe(c)}}},{key:"_unhandledRejection",value:function(l){var c=this.getAllInfo(l),y=this._getRejectionHandlers(),h=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(l):this.logger.exitOnError,m;!y.length&&h&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),h=!1);function g(){a("doExit",h),a("process._exiting",ye._exiting),h&&!ye._exiting&&(m&&clearTimeout(m),ye.exit(1))}if(!y||y.length===0)return ye.nextTick(g);i(y,function(u,_){var
|
|
108
|
+
`))},i.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},Hi.exports}var yc;function $t(){if(yc)return Dr.exports;yc=1;var e=Ze(),t=um(),n=De(),r=n.LEVEL,i=Dr.exports=function(){var o=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.call(this,{objectMode:!0,highWaterMark:d.highWaterMark}),this.format=d.format,this.level=d.level,this.handleExceptions=d.handleExceptions,this.handleRejections=d.handleRejections,this.silent=d.silent,d.log&&(this.log=d.log),d.logv&&(this.logv=d.logv),d.close&&(this.close=d.close),this.once("pipe",function(f){o.levels=f.levels,o.parent=f}),this.once("unpipe",function(f){f===o.parent&&(o.parent=null,o.close&&o.close())})};return e.inherits(i,t),i.prototype._write=function(o,d,f){if(this.silent||o.exception===!0&&!this.handleExceptions)return f(null);var v=this.level||this.parent&&this.parent.level;if(!v||this.levels[v]>=this.levels[o[r]]){if(o&&!this.format)return this.log(o,f);var s=void 0,l=void 0;try{l=this.format.transform(Object.assign({},o),this.format.options)}catch(c){s=c}if(s||!l){if(f(),s)throw s;return}return this.log(l,f)}return this._writableState.sync=!1,f(null)},i.prototype._writev=function(o,d){if(this.logv){var f=o.filter(this._accept,this);return f.length?this.logv(f,d):d(null)}for(var v=0;v<o.length;v++)if(this._accept(o[v])){if(o[v].chunk&&!this.format){this.log(o[v].chunk,o[v].callback);continue}var s=void 0,l=void 0;try{l=this.format.transform(Object.assign({},o[v].chunk),this.format.options)}catch(c){s=c}if(s||!l){if(o[v].callback(),s)throw d(null),s}else this.log(l,o[v].callback)}return d(null)},i.prototype._accept=function(o){var d=o.chunk;if(this.silent)return!1;var f=this.level||this.parent&&this.parent.level;return!!((d.exception===!0||!f||this.levels[f]>=this.levels[d[r]])&&(this.handleExceptions||d.exception!==!0))},i.prototype._nop=function(){},Dr.exports.LegacyTransportStream=Tv(),Dr.exports}var Zi,_c;function Av(){if(_c)return Zi;_c=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 t(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function n(g,u){for(var _=0;_<u.length;_++){var S=u[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function r(g,u,_){return u&&n(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}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(S,w){return S.__proto__=w,S},a(g,u)}function o(g){var u=v();return function(){var S=s(g),w;if(u){var b=s(this).constructor;w=Reflect.construct(S,arguments,b)}else w=S.apply(this,arguments);return d(this,w)}}function d(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 f(g)}function f(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function v(){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 s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},s(g)}var l=Vt(),c=De(),y=c.LEVEL,h=c.MESSAGE,m=$t();return Zi=(function(g){i(_,g);var u=o(_);function _(){var S,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t(this,_),S=u.call(this,w),S.name=w.name||"console",S.stderrLevels=S._stringArrayToSet(w.stderrLevels),S.consoleWarnLevels=S._stringArrayToSet(w.consoleWarnLevels),S.eol=typeof w.eol=="string"?w.eol:l.EOL,S.setMaxListeners(30),S}return r(_,[{key:"log",value:function(w,b){var x=this;if(setImmediate(function(){return x.emit("logged",w)}),this.stderrLevels[w[y]]){console._stderr?console._stderr.write("".concat(w[h]).concat(this.eol)):console.error(w[h]),b&&b();return}else if(this.consoleWarnLevels[w[y]]){console._stderr?console._stderr.write("".concat(w[h]).concat(this.eol)):console.warn(w[h]),b&&b();return}console._stdout?console._stdout.write("".concat(w[h]).concat(this.eol)):console.log(w[h]),b&&b()}},{key:"_stringArrayToSet",value:function(w,b){if(!w)return{};if(b=b||"Cannot make set from type other than Array of string elements",!Array.isArray(w))throw new Error(b);return w.reduce(function(x,O){if(typeof O!="string")throw new Error(b);return x[O]=!0,x},{})}}]),_})(m),Zi}var Wi,bc;function Nd(){if(bc)return Wi;bc=1;function e(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function t(i,a){for(var o="",d=0,f=-1,v=0,s,l=0;l<=i.length;++l){if(l<i.length)s=i.charCodeAt(l);else{if(s===47)break;s=47}if(s===47){if(!(f===l-1||v===1))if(f!==l-1&&v===2){if(o.length<2||d!==2||o.charCodeAt(o.length-1)!==46||o.charCodeAt(o.length-2)!==46){if(o.length>2){var c=o.lastIndexOf("/");if(c!==o.length-1){c===-1?(o="",d=0):(o=o.slice(0,c),d=o.length-1-o.lastIndexOf("/")),f=l,v=0;continue}}else if(o.length===2||o.length===1){o="",d=0,f=l,v=0;continue}}a&&(o.length>0?o+="/..":o="..",d=2)}else o.length>0?o+="/"+i.slice(f+1,l):o=i.slice(f+1,l),d=l-f-1;f=l,v=0}else s===46&&v!==-1?++v:v=-1}return o}function n(i,a){var o=a.dir||a.root,d=a.base||(a.name||"")+(a.ext||"");return o?o===a.root?o+d:o+i+d:d}var r={resolve:function(){for(var a="",o=!1,d,f=arguments.length-1;f>=-1&&!o;f--){var v;f>=0?v=arguments[f]:(d===void 0&&(d=ye.cwd()),v=d),e(v),v.length!==0&&(a=v+"/"+a,o=v.charCodeAt(0)===47)}return a=t(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(e(a),a.length===0)return".";var o=a.charCodeAt(0)===47,d=a.charCodeAt(a.length-1)===47;return a=t(a,!o),a.length===0&&!o&&(a="."),a.length>0&&d&&(a+="/"),o?"/"+a:a},isAbsolute:function(a){return e(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,o=0;o<arguments.length;++o){var d=arguments[o];e(d),d.length>0&&(a===void 0?a=d:a+="/"+d)}return a===void 0?".":r.normalize(a)},relative:function(a,o){if(e(a),e(o),a===o||(a=r.resolve(a),o=r.resolve(o),a===o))return"";for(var d=1;d<a.length&&a.charCodeAt(d)===47;++d);for(var f=a.length,v=f-d,s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var l=o.length,c=l-s,y=v<c?v:c,h=-1,m=0;m<=y;++m){if(m===y){if(c>y){if(o.charCodeAt(s+m)===47)return o.slice(s+m+1);if(m===0)return o.slice(s+m)}else v>y&&(a.charCodeAt(d+m)===47?h=m:m===0&&(h=0));break}var g=a.charCodeAt(d+m),u=o.charCodeAt(s+m);if(g!==u)break;g===47&&(h=m)}var _="";for(m=d+h+1;m<=f;++m)(m===f||a.charCodeAt(m)===47)&&(_.length===0?_+="..":_+="/..");return _.length>0?_+o.slice(s+h):(s+=h,o.charCodeAt(s)===47&&++s,o.slice(s))},_makeLong:function(a){return a},dirname:function(a){if(e(a),a.length===0)return".";for(var o=a.charCodeAt(0),d=o===47,f=-1,v=!0,s=a.length-1;s>=1;--s)if(o=a.charCodeAt(s),o===47){if(!v){f=s;break}}else v=!1;return f===-1?d?"/":".":d&&f===1?"//":a.slice(0,f)},basename:function(a,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');e(a);var d=0,f=-1,v=!0,s;if(o!==void 0&&o.length>0&&o.length<=a.length){if(o.length===a.length&&o===a)return"";var l=o.length-1,c=-1;for(s=a.length-1;s>=0;--s){var y=a.charCodeAt(s);if(y===47){if(!v){d=s+1;break}}else c===-1&&(v=!1,c=s+1),l>=0&&(y===o.charCodeAt(l)?--l===-1&&(f=s):(l=-1,f=c))}return d===f?f=c:f===-1&&(f=a.length),a.slice(d,f)}else{for(s=a.length-1;s>=0;--s)if(a.charCodeAt(s)===47){if(!v){d=s+1;break}}else f===-1&&(v=!1,f=s+1);return f===-1?"":a.slice(d,f)}},extname:function(a){e(a);for(var o=-1,d=0,f=-1,v=!0,s=0,l=a.length-1;l>=0;--l){var c=a.charCodeAt(l);if(c===47){if(!v){d=l+1;break}continue}f===-1&&(v=!1,f=l+1),c===46?o===-1?o=l:s!==1&&(s=1):o!==-1&&(s=-1)}return o===-1||f===-1||s===0||s===1&&o===f-1&&o===d+1?"":a.slice(o,f)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return n("/",a)},parse:function(a){e(a);var o={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return o;var d=a.charCodeAt(0),f=d===47,v;f?(o.root="/",v=1):v=0;for(var s=-1,l=0,c=-1,y=!0,h=a.length-1,m=0;h>=v;--h){if(d=a.charCodeAt(h),d===47){if(!y){l=h+1;break}continue}c===-1&&(y=!1,c=h+1),d===46?s===-1?s=h:m!==1&&(m=1):s!==-1&&(m=-1)}return s===-1||c===-1||m===0||m===1&&s===c-1&&s===l+1?c!==-1&&(l===0&&f?o.base=o.name=a.slice(1,c):o.base=o.name=a.slice(l,c)):(l===0&&f?(o.name=a.slice(1,s),o.base=a.slice(1,c)):(o.name=a.slice(l,s),o.base=a.slice(l,c)),o.ext=a.slice(s,c)),l>0?o.dir=a.slice(0,l-1):f&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,Wi=r,Wi}var Nr={exports:{}},Mr={exports:{}},Fr={exports:{}},wc;function ns(){return wc||(wc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return r&&typeof r.length=="number"&&r.length>=0&&r.length%1===0}e.exports=t.default})(Fr,Fr.exports)),Fr.exports}var ht={},Br={exports:{}},Ur={exports:{}},Sc;function Iv(){return Sc||(Sc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return function(...r){var i=r.pop();return n.call(this,r,i)}},e.exports=t.default})(Ur,Ur.exports)),Ur.exports}var _t={},Ec;function xv(){if(Ec)return _t;Ec=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.fallback=r,_t.wrap=i;var e=_t.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,t=_t.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,n=_t.hasNextTick=typeof ye=="object"&&typeof ye.nextTick=="function";function r(o){setTimeout(o,0)}function i(o){return(d,...f)=>o(()=>d(...f))}var a;return e?a=queueMicrotask:t?a=setImmediate:n?a=ye.nextTick:a=r,_t.default=i(a),_t}var Rc;function Cv(){return Rc||(Rc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var n=Iv(),r=d(n),i=xv(),a=d(i),o=Yt();function d(l){return l&&l.__esModule?l:{default:l}}function f(l){return(0,o.isAsync)(l)?function(...c){const y=c.pop(),h=l.apply(this,c);return v(h,y)}:(0,r.default)(function(c,y){var h;try{h=l.apply(this,c)}catch(m){return y(m)}if(h&&typeof h.then=="function")return v(h,y);y(null,h)})}function v(l,c){return l.then(y=>{s(c,null,y)},y=>{s(c,y&&y.message?y:new Error(y))})}function s(l,c,y){try{l(c,y)}catch(h){(0,a.default)(m=>{throw m},h)}}e.exports=t.default})(Br,Br.exports)),Br.exports}var Oc;function Yt(){if(Oc)return ht;Oc=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.isAsyncIterable=ht.isAsyncGenerator=ht.isAsync=void 0;var e=Cv(),t=n(e);function n(d){return d&&d.__esModule?d:{default:d}}function r(d){return d[Symbol.toStringTag]==="AsyncFunction"}function i(d){return d[Symbol.toStringTag]==="AsyncGenerator"}function a(d){return typeof d[Symbol.asyncIterator]=="function"}function o(d){if(typeof d!="function")throw new Error("expected a function");return r(d)?(0,t.default)(d):d}return ht.default=o,ht.isAsync=r,ht.isAsyncGenerator=i,ht.isAsyncIterable=a,ht}var Vr={exports:{}},Tc;function vr(){return Tc||(Tc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,i=r.length){if(!i)throw new Error("arity is undefined");function a(...o){return typeof o[i-1]=="function"?r.apply(this,o):new Promise((d,f)=>{o[i-1]=(v,...s)=>{if(v)return f(v);d(s.length>1?s:s[0])},r.apply(this,o)})}return a}e.exports=t.default})(Vr,Vr.exports)),Vr.exports}var Ac;function kv(){return Ac||(Ac=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=ns(),r=f(n),i=Yt(),a=f(i),o=vr(),d=f(o);function f(v){return v&&v.__esModule?v:{default:v}}t.default=(0,d.default)((v,s,l)=>{var c=(0,r.default)(s)?[]:{};v(s,(y,h,m)=>{(0,a.default)(y)((g,...u)=>{u.length<2&&([u]=u),c[h]=u,m(g)})},y=>l(y,c))},3),e.exports=t.default})(Mr,Mr.exports)),Mr.exports}var $r={exports:{}},zr={exports:{}},Gr={exports:{}},Hr={exports:{}},Ic;function Md(){return Ic||(Ic=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){function i(...a){if(r!==null){var o=r;r=null,o.apply(this,a)}}return Object.assign(i,r),i}e.exports=t.default})(Hr,Hr.exports)),Hr.exports}var Zr={exports:{}},Wr={exports:{}},xc;function Pv(){return xc||(xc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return n[Symbol.iterator]&&n[Symbol.iterator]()},e.exports=t.default})(Wr,Wr.exports)),Wr.exports}var Cc;function jv(){return Cc||(Cc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=ns(),r=o(n),i=Pv(),a=o(i);function o(l){return l&&l.__esModule?l:{default:l}}function d(l){var c=-1,y=l.length;return function(){return++c<y?{value:l[c],key:c}:null}}function f(l){var c=-1;return function(){var h=l.next();return h.done?null:(c++,{value:h.value,key:c})}}function v(l){var c=l?Object.keys(l):[],y=-1,h=c.length;return function m(){var g=c[++y];return g==="__proto__"?m():y<h?{value:l[g],key:g}:null}}function s(l){if((0,r.default)(l))return d(l);var c=(0,a.default)(l);return c?f(c):v(l)}e.exports=t.default})(Zr,Zr.exports)),Zr.exports}var Yr={exports:{}},kc;function Fd(){return kc||(kc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(...i){if(r===null)throw new Error("Callback was already called.");var a=r;r=null,a.apply(this,i)}}e.exports=t.default})(Yr,Yr.exports)),Yr.exports}var Jr={exports:{}},Kr={exports:{}},Pc;function is(){return Pc||(Pc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n={};t.default=n,e.exports=t.default})(Kr,Kr.exports)),Kr.exports}var jc;function Lv(){return jc||(jc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=is(),r=i(n);function i(o){return o&&o.__esModule?o:{default:o}}function a(o,d,f,v){let s=!1,l=!1,c=!1,y=0,h=0;function m(){y>=d||c||s||(c=!0,o.next().then(({value:_,done:S})=>{if(!(l||s)){if(c=!1,S){s=!0,y<=0&&v(null);return}y++,f(_,h,g),h++,m()}}).catch(u))}function g(_,S){if(y-=1,!l){if(_)return u(_);if(_===!1){s=!0,l=!0;return}if(S===r.default||s&&y<=0)return s=!0,v(null);m()}}function u(_){l||(c=!1,s=!0,v(_))}m()}e.exports=t.default})(Jr,Jr.exports)),Jr.exports}var Lc;function qv(){return Lc||(Lc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Md(),r=y(n),i=jv(),a=y(i),o=Fd(),d=y(o),f=Yt(),v=Lv(),s=y(v),l=is(),c=y(l);function y(h){return h&&h.__esModule?h:{default:h}}t.default=h=>(m,g,u)=>{if(u=(0,r.default)(u),h<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!m)return u(null);if((0,f.isAsyncGenerator)(m))return(0,s.default)(m,h,g,u);if((0,f.isAsyncIterable)(m))return(0,s.default)(m[Symbol.asyncIterator](),h,g,u);var _=(0,a.default)(m),S=!1,w=!1,b=0,x=!1;function O(M,W){if(!w)if(b-=1,M)S=!0,u(M);else if(M===!1)S=!0,w=!0;else{if(W===c.default||S&&b<=0)return S=!0,u(null);x||P()}}function P(){for(x=!0;b<h&&!S;){var M=_();if(M===null){S=!0,b<=0&&u(null);return}b+=1,g(M.value,M.key,(0,d.default)(O))}x=!1}P()},e.exports=t.default})(Gr,Gr.exports)),Gr.exports}var qc;function Bd(){return qc||(qc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=qv(),r=f(n),i=Yt(),a=f(i),o=vr(),d=f(o);function f(s){return s&&s.__esModule?s:{default:s}}function v(s,l,c,y){return(0,r.default)(l)(s,(0,a.default)(c),y)}t.default=(0,d.default)(v,4),e.exports=t.default})(zr,zr.exports)),zr.exports}var Dc;function Dv(){return Dc||(Dc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Bd(),r=o(n),i=vr(),a=o(i);function o(f){return f&&f.__esModule?f:{default:f}}function d(f,v,s){return(0,r.default)(f,1,v,s)}t.default=(0,a.default)(d,3),e.exports=t.default})($r,$r.exports)),$r.exports}var Nc;function Nv(){return Nc||(Nc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=kv(),r=o(n),i=Dv(),a=o(i);function o(f){return f&&f.__esModule?f:{default:f}}function d(f,v){return(0,r.default)(a.default,f,v)}e.exports=t.default})(Nr,Nr.exports)),Nr.exports}var Yi={},Ji={},Mc;function Mv(){return Mc||(Mc=1,(function(e){var t=sr(),n=gm(),r=mm(),i=_m(),a=bm();for(var o in a)e[o]=a[o];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 d=31,f=139;function v(s){if(typeof s!="number"||s<e.DEFLATE||s>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=s,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}v.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,t(this.init_done,"close before init"),t(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?r.deflateEnd(this.strm):(this.mode===e.INFLATE||this.mode===e.GUNZIP||this.mode===e.INFLATERAW||this.mode===e.UNZIP)&&i.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},v.prototype.write=function(s,l,c,y,h,m,g){return this._write(!0,s,l,c,y,h,m,g)},v.prototype.writeSync=function(s,l,c,y,h,m,g){return this._write(!1,s,l,c,y,h,m,g)},v.prototype._write=function(s,l,c,y,h,m,g,u){if(t.equal(arguments.length,8),t(this.init_done,"write before init"),t(this.mode!==e.NONE,"already finalized"),t.equal(!1,this.write_in_progress,"write already in progress"),t.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,t.equal(!1,l===void 0,"must provide flush value"),this.write_in_progress=!0,l!==e.Z_NO_FLUSH&&l!==e.Z_PARTIAL_FLUSH&&l!==e.Z_SYNC_FLUSH&&l!==e.Z_FULL_FLUSH&&l!==e.Z_FINISH&&l!==e.Z_BLOCK)throw new Error("Invalid flush value");if(c==null&&(c=et.alloc(0),h=0,y=0),this.strm.avail_in=h,this.strm.input=c,this.strm.next_in=y,this.strm.avail_out=u,this.strm.output=m,this.strm.next_out=g,this.flush=l,!s)return this._process(),this._checkError()?this._afterSync():void 0;var _=this;return ye.nextTick(function(){_._process(),_._after()}),this},v.prototype._afterSync=function(){var s=this.strm.avail_out,l=this.strm.avail_in;return this.write_in_progress=!1,[l,s]},v.prototype._process=function(){var s=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=r.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(s=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(s===null)break;if(this.strm.input[s]===d){if(this.gzip_id_bytes_read=1,s++,this.strm.avail_in===1)break}else{this.mode=e.INFLATE;break}case 1:if(s===null)break;this.strm.input[s]===f?(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=i.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=i.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=i.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=i.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},v.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},v.prototype._after=function(){if(this._checkError()){var s=this.strm.avail_out,l=this.strm.avail_in;this.write_in_progress=!1,this.callback(l,s),this.pending_close&&this.close()}},v.prototype._error=function(s){this.strm.msg&&(s=this.strm.msg),this.onerror(s,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},v.prototype.init=function(s,l,c,y,h){t(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),t(s>=8&&s<=15,"invalid windowBits"),t(l>=-1&&l<=9,"invalid compression level"),t(c>=1&&c<=9,"invalid memlevel"),t(y===e.Z_FILTERED||y===e.Z_HUFFMAN_ONLY||y===e.Z_RLE||y===e.Z_FIXED||y===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(l,s,c,y,h),this._setDictionary()},v.prototype.params=function(){throw new Error("deflateParams Not supported")},v.prototype.reset=function(){this._reset(),this._setDictionary()},v.prototype._init=function(s,l,c,y,h){switch(this.level=s,this.windowBits=l,this.memLevel=c,this.strategy=y,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 n,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=r.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=i.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=h,this.write_in_progress=!1,this.init_done=!0},v.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=r.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},v.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=r.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=i.inflateReset(this.strm);break}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=v})(Ji)),Ji}var Fc;function Fv(){return Fc||(Fc=1,(function(e){var t=or().Buffer,n=_n().Transform,r=Mv(),i=Ze(),a=sr().ok,o=or().kMaxLength,d="Cannot create final Buffer. It would be larger than 0x"+o.toString(16)+" bytes";r.Z_MIN_WINDOWBITS=8,r.Z_MAX_WINDOWBITS=15,r.Z_DEFAULT_WINDOWBITS=15,r.Z_MIN_CHUNK=64,r.Z_MAX_CHUNK=1/0,r.Z_DEFAULT_CHUNK=16*1024,r.Z_MIN_MEMLEVEL=1,r.Z_MAX_MEMLEVEL=9,r.Z_DEFAULT_MEMLEVEL=8,r.Z_MIN_LEVEL=-1,r.Z_MAX_LEVEL=9,r.Z_DEFAULT_LEVEL=r.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(r),v=0;v<f.length;v++){var s=f[v];s.match(/^Z/)&&Object.defineProperty(e,s,{enumerable:!0,value:r[s],writable:!1})}for(var l={Z_OK:r.Z_OK,Z_STREAM_END:r.Z_STREAM_END,Z_NEED_DICT:r.Z_NEED_DICT,Z_ERRNO:r.Z_ERRNO,Z_STREAM_ERROR:r.Z_STREAM_ERROR,Z_DATA_ERROR:r.Z_DATA_ERROR,Z_MEM_ERROR:r.Z_MEM_ERROR,Z_BUF_ERROR:r.Z_BUF_ERROR,Z_VERSION_ERROR:r.Z_VERSION_ERROR},c=Object.keys(l),y=0;y<c.length;y++){var h=c[y];l[l[h]]=h}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(l),writable:!1}),e.Deflate=u,e.Inflate=_,e.Gzip=S,e.Gunzip=w,e.DeflateRaw=b,e.InflateRaw=x,e.Unzip=O,e.createDeflate=function(E){return new u(E)},e.createInflate=function(E){return new _(E)},e.createDeflateRaw=function(E){return new b(E)},e.createInflateRaw=function(E){return new x(E)},e.createGzip=function(E){return new S(E)},e.createGunzip=function(E){return new w(E)},e.createUnzip=function(E){return new O(E)},e.deflate=function(E,I,$){return typeof I=="function"&&($=I,I={}),m(new u(I),E,$)},e.deflateSync=function(E,I){return g(new u(I),E)},e.gzip=function(E,I,$){return typeof I=="function"&&($=I,I={}),m(new S(I),E,$)},e.gzipSync=function(E,I){return g(new S(I),E)},e.deflateRaw=function(E,I,$){return typeof I=="function"&&($=I,I={}),m(new b(I),E,$)},e.deflateRawSync=function(E,I){return g(new b(I),E)},e.unzip=function(E,I,$){return typeof I=="function"&&($=I,I={}),m(new O(I),E,$)},e.unzipSync=function(E,I){return g(new O(I),E)},e.inflate=function(E,I,$){return typeof I=="function"&&($=I,I={}),m(new _(I),E,$)},e.inflateSync=function(E,I){return g(new _(I),E)},e.gunzip=function(E,I,$){return typeof I=="function"&&($=I,I={}),m(new w(I),E,$)},e.gunzipSync=function(E,I){return g(new w(I),E)},e.inflateRaw=function(E,I,$){return typeof I=="function"&&($=I,I={}),m(new x(I),E,$)},e.inflateRawSync=function(E,I){return g(new x(I),E)};function m(E,I,$){var z=[],X=0;E.on("error",k),E.on("end",j),E.end(I),A();function A(){for(var N;(N=E.read())!==null;)z.push(N),X+=N.length;E.once("readable",A)}function k(N){E.removeListener("end",j),E.removeListener("readable",A),$(N)}function j(){var N,H=null;X>=o?H=new RangeError(d):N=t.concat(z,X),z=[],E.close(),$(H,N)}}function g(E,I){if(typeof I=="string"&&(I=t.from(I)),!t.isBuffer(I))throw new TypeError("Not a string or buffer");var $=E._finishFlushFlag;return E._processChunk(I,$)}function u(E){if(!(this instanceof u))return new u(E);M.call(this,E,r.DEFLATE)}function _(E){if(!(this instanceof _))return new _(E);M.call(this,E,r.INFLATE)}function S(E){if(!(this instanceof S))return new S(E);M.call(this,E,r.GZIP)}function w(E){if(!(this instanceof w))return new w(E);M.call(this,E,r.GUNZIP)}function b(E){if(!(this instanceof b))return new b(E);M.call(this,E,r.DEFLATERAW)}function x(E){if(!(this instanceof x))return new x(E);M.call(this,E,r.INFLATERAW)}function O(E){if(!(this instanceof O))return new O(E);M.call(this,E,r.UNZIP)}function P(E){return E===r.Z_NO_FLUSH||E===r.Z_PARTIAL_FLUSH||E===r.Z_SYNC_FLUSH||E===r.Z_FULL_FLUSH||E===r.Z_FINISH||E===r.Z_BLOCK}function M(E,I){var $=this;if(this._opts=E=E||{},this._chunkSize=E.chunkSize||e.Z_DEFAULT_CHUNK,n.call(this,E),E.flush&&!P(E.flush))throw new Error("Invalid flush flag: "+E.flush);if(E.finishFlush&&!P(E.finishFlush))throw new Error("Invalid flush flag: "+E.finishFlush);if(this._flushFlag=E.flush||r.Z_NO_FLUSH,this._finishFlushFlag=typeof E.finishFlush<"u"?E.finishFlush:r.Z_FINISH,E.chunkSize&&(E.chunkSize<e.Z_MIN_CHUNK||E.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+E.chunkSize);if(E.windowBits&&(E.windowBits<e.Z_MIN_WINDOWBITS||E.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+E.windowBits);if(E.level&&(E.level<e.Z_MIN_LEVEL||E.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+E.level);if(E.memLevel&&(E.memLevel<e.Z_MIN_MEMLEVEL||E.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+E.memLevel);if(E.strategy&&E.strategy!=e.Z_FILTERED&&E.strategy!=e.Z_HUFFMAN_ONLY&&E.strategy!=e.Z_RLE&&E.strategy!=e.Z_FIXED&&E.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+E.strategy);if(E.dictionary&&!t.isBuffer(E.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new r.Zlib(I);var z=this;this._hadError=!1,this._handle.onerror=function(k,j){W(z),z._hadError=!0;var N=new Error(k);N.errno=j,N.code=e.codes[j],z.emit("error",N)};var X=e.Z_DEFAULT_COMPRESSION;typeof E.level=="number"&&(X=E.level);var A=e.Z_DEFAULT_STRATEGY;typeof E.strategy=="number"&&(A=E.strategy),this._handle.init(E.windowBits||e.Z_DEFAULT_WINDOWBITS,X,E.memLevel||e.Z_DEFAULT_MEMLEVEL,A,E.dictionary),this._buffer=t.allocUnsafe(this._chunkSize),this._offset=0,this._level=X,this._strategy=A,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!$._handle},configurable:!0,enumerable:!0})}i.inherits(M,n),M.prototype.params=function(E,I,$){if(E<e.Z_MIN_LEVEL||E>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+E);if(I!=e.Z_FILTERED&&I!=e.Z_HUFFMAN_ONLY&&I!=e.Z_RLE&&I!=e.Z_FIXED&&I!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+I);if(this._level!==E||this._strategy!==I){var z=this;this.flush(r.Z_SYNC_FLUSH,function(){a(z._handle,"zlib binding closed"),z._handle.params(E,I),z._hadError||(z._level=E,z._strategy=I,$&&$())})}else ye.nextTick($)},M.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},M.prototype._flush=function(E){this._transform(t.alloc(0),"",E)},M.prototype.flush=function(E,I){var $=this,z=this._writableState;(typeof E=="function"||E===void 0&&!I)&&(I=E,E=r.Z_FULL_FLUSH),z.ended?I&&ye.nextTick(I):z.ending?I&&this.once("end",I):z.needDrain?I&&this.once("drain",function(){return $.flush(E,I)}):(this._flushFlag=E,this.write(t.alloc(0),"",I))},M.prototype.close=function(E){W(this,E),ye.nextTick(V,this)};function W(E,I){I&&ye.nextTick(I),E._handle&&(E._handle.close(),E._handle=null)}function V(E){E.emit("close")}M.prototype._transform=function(E,I,$){var z,X=this._writableState,A=X.ending||X.ended,k=A&&(!E||X.length===E.length);if(E!==null&&!t.isBuffer(E))return $(new Error("invalid input"));if(!this._handle)return $(new Error("zlib binding closed"));k?z=this._finishFlushFlag:(z=this._flushFlag,E.length>=X.length&&(this._flushFlag=this._opts.flush||r.Z_NO_FLUSH)),this._processChunk(E,z,$)},M.prototype._processChunk=function(E,I,$){var z=E&&E.length,X=this._chunkSize-this._offset,A=0,k=this,j=typeof $=="function";if(!j){var N=[],H=0,B;this.on("error",function(K){B=K}),a(this._handle,"zlib binding closed");do var q=this._handle.writeSync(I,E,A,z,this._buffer,this._offset,X);while(!this._hadError&&F(q[0],q[1]));if(this._hadError)throw B;if(H>=o)throw W(this),new RangeError(d);var L=t.concat(N,H);return W(this),L}a(this._handle,"zlib binding closed");var D=this._handle.write(I,E,A,z,this._buffer,this._offset,X);D.buffer=E,D.callback=F;function F(K,J){if(this&&(this.buffer=null,this.callback=null),!k._hadError){var ae=X-J;if(a(ae>=0,"have should not go down"),ae>0){var ue=k._buffer.slice(k._offset,k._offset+ae);k._offset+=ae,j?k.push(ue):(N.push(ue),H+=ue.length)}if((J===0||k._offset>=k._chunkSize)&&(X=k._chunkSize,k._offset=0,k._buffer=t.allocUnsafe(k._chunkSize)),J===0){if(A+=z-K,z=K,!j)return!0;var ve=k._handle.write(I,E,A,z,k._buffer,k._offset,k._chunkSize);ve.callback=F,ve.buffer=E;return}if(!j)return!1;$()}}},i.inherits(u,M),i.inherits(_,M),i.inherits(S,M),i.inherits(w,M),i.inherits(b,M),i.inherits(x,M),i.inherits(O,M)})(Yi)),Yi}var Ki={exports:{}},Xi,Bc;function Bv(){if(Bc)return Xi;Bc=1;var e=[],t=[],n=function(){};function r(c){return~e.indexOf(c)?!1:(e.push(c),!0)}function i(c){n=c}function a(c){for(var y=[],h=0;h<e.length;h++){if(e[h].async){y.push(e[h]);continue}if(e[h](c))return!0}return y.length?new Promise(function(g){Promise.all(y.map(function(_){return _(c)})).then(function(_){g(_.some(Boolean))})}):!1}function o(c){return~t.indexOf(c)?!1:(t.push(c),!0)}function d(){n.apply(n,arguments)}function f(c){for(var y=0;y<t.length;y++)c=t[y].apply(t[y],arguments);return c}function v(c,y){var h=Object.prototype.hasOwnProperty;for(var m in y)h.call(y,m)&&(c[m]=y[m]);return c}function s(c){return c.enabled=!1,c.modify=o,c.set=i,c.use=r,v(function(){return!1},c)}function l(c){function y(){var h=Array.prototype.slice.call(arguments,0);return d.call(d,c,f(h,c)),!0}return c.enabled=!0,c.modify=o,c.set=i,c.use=r,v(y,c)}return Xi=function(y){return y.introduce=v,y.enabled=a,y.process=f,y.modify=o,y.write=d,y.nope=s,y.yep=l,y.set=i,y.use=r,y},Xi}var Qi,Uc;function Uv(){if(Uc)return Qi;Uc=1;var e=Bv(),t=e(function n(r,i){return i=i||{},i.namespace=r,i.prod=!0,i.dev=!1,i.force||n.force?n.yep(i):n.nope(i)});return Qi=t,Qi}var Vc;function Sn(){return Vc||(Vc=1,Ki.exports=Uv()),Ki.exports}var ea,$c;function Vv(){if($c)return ea;$c=1;var e=Xo(),t=cm(),n=t.StringDecoder,r=pr(),i=r.Stream;function a(){}return ea=function(o,d){var f=et.alloc(65536),v=new n("utf8"),s=new i,l="",c=0,y=0;return o.start===-1&&delete o.start,s.readable=!0,s.destroy=function(){s.destroyed=!0,s.emit("end"),s.emit("close")},e.open(o.file,"a+","0644",function(h,m){if(h){d?d(h):s.emit("error",h),s.destroy();return}(function g(){if(s.destroyed){e.close(m,a);return}return e.read(m,f,0,f.length,c,function(u,_){if(u){d?d(u):s.emit("error",u),s.destroy();return}if(!_)return l&&((o.start==null||y>o.start)&&(d?d(null,l):s.emit("line",l)),y++,l=""),setTimeout(g,1e3);var S=v.write(f.slice(0,_));d||s.emit("data",S),S=(l+S).split(/\n+/);for(var w=S.length-1,b=0;b<w;b++)(o.start==null||y>o.start)&&(d?d(null,S[b]):s.emit("line",S[b])),y++;return l=S[w],c+=_,g()})})()}),d?s.destroy:s},ea}var ta,zc;function $v(){if(zc)return ta;zc=1;function e(P){"@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(P)}function t(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")}function n(P,M){for(var W=0;W<M.length;W++){var V=M[W];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,V.key,V)}}function r(P,M,W){return M&&n(P.prototype,M),Object.defineProperty(P,"prototype",{writable:!1}),P}function i(P,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(M&&M.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),Object.defineProperty(P,"prototype",{writable:!1}),M&&a(P,M)}function a(P,M){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,E){return V.__proto__=E,V},a(P,M)}function o(P){var M=v();return function(){var V=s(P),E;if(M){var I=s(this).constructor;E=Reflect.construct(V,arguments,I)}else E=V.apply(this,arguments);return d(this,E)}}function d(P,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 f(P)}function f(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function v(){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 s(P){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},s(P)}var l=Xo(),c=Nd(),y=Nv(),h=Fv(),m=De(),g=m.MESSAGE,u=pr(),_=u.Stream,S=u.PassThrough,w=$t(),b=Sn()("winston:file"),x=Vt(),O=Vv();return ta=(function(P){i(W,P);var M=o(W);function W(){var V,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t(this,W),V=M.call(this,E),V.name=E.name||"file";function I($){for(var z=arguments.length,X=new Array(z>1?z-1:0),A=1;A<z;A++)X[A-1]=arguments[A];X.slice(1).forEach(function(k){if(E[k])throw new Error("Cannot set ".concat(k," and ").concat($," together"))})}if(V._stream=new S,V._stream.setMaxListeners(30),V._onError=V._onError.bind(f(V)),E.filename||E.dirname)I("filename or dirname","stream"),V._basename=V.filename=E.filename?c.basename(E.filename):"winston.log",V.dirname=E.dirname||c.dirname(E.filename),V.options=E.options||{flags:"a"};else if(E.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),I("stream","filename","maxsize"),V._dest=V._stream.pipe(V._setupStream(E.stream)),V.dirname=c.dirname(V._dest.path);else throw new Error("Cannot log to file without filename or stream.");return V.maxsize=E.maxsize||null,V.rotationFormat=E.rotationFormat||!1,V.zippedArchive=E.zippedArchive||!1,V.maxFiles=E.maxFiles||null,V.eol=typeof E.eol=="string"?E.eol:x.EOL,V.tailable=E.tailable||!1,V._size=0,V._pendingSize=0,V._created=0,V._drain=!1,V._opening=!1,V._ending=!1,V.dirname&&V._createLogDirIfNotExist(V.dirname),V.open(),V}return r(W,[{key:"finishIfEnding",value:function(){var E=this;this._ending&&(this._opening?this.once("open",function(){E._stream.once("finish",function(){return E.emit("finish")}),setImmediate(function(){return E._stream.end()})}):(this._stream.once("finish",function(){return E.emit("finish")}),setImmediate(function(){return E._stream.end()})))}},{key:"log",value:function(E){var I=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return $(),!0;if(this._drain){this._stream.once("drain",function(){I._drain=!1,I.log(E,$)});return}if(this._rotate){this._stream.once("rotate",function(){I._rotate=!1,I.log(E,$)});return}var z="".concat(E[g]).concat(this.eol),X=et.byteLength(z);function A(){var j=this;this._size+=X,this._pendingSize-=X,b("logged %s %s",this._size,z),this.emit("logged",E),!this._opening&&this._needsNewFile()&&(this._rotate=!0,this._endStream(function(){return j._rotateFile()}))}this._pendingSize+=X,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var k=this._stream.write(z,A.bind(this));return k?$():(this._drain=!0,this._stream.once("drain",function(){I._drain=!1,$()})),b("written",k,this._drain),this.finishIfEnding(),k}},{key:"query",value:function(E,I){typeof E=="function"&&(I=E,E={}),E=B(E);var $=c.join(this.dirname,this.filename),z="",X=[],A=0,k=l.createReadStream($,{encoding:"utf8"});k.on("error",function(q){if(k.readable&&k.destroy(),!!I)return q.code!=="ENOENT"?I(q):I(null,X)}),k.on("data",function(q){q=(z+q).split(/\n+/);for(var L=q.length-1,D=0;D<L;D++)(!E.start||A>=E.start)&&j(q[D]),A++;z=q[L]}),k.on("close",function(){z&&j(z,!0),E.order==="desc"&&(X=X.reverse()),I&&I(null,X)});function j(q,L){try{var D=JSON.parse(q);H(D)&&N(D)}catch(F){L||k.emit("error",F)}}function N(q){if(E.rows&&X.length>=E.rows&&E.order!=="desc"){k.readable&&k.destroy();return}E.fields&&(q=E.fields.reduce(function(L,D){return L[D]=q[D],L},{})),E.order==="desc"&&X.length>=E.rows&&X.shift(),X.push(q)}function H(q){if(q&&e(q)==="object"){var L=new Date(q.timestamp);if(!(E.from&&L<E.from||E.until&&L>E.until||E.level&&E.level!==q.level))return!0}}function B(q){return q=q||{},q.rows=q.rows||q.limit||10,q.start=q.start||0,q.until=q.until||new Date,e(q.until)!=="object"&&(q.until=new Date(q.until)),q.from=q.from||q.until-1440*60*1e3,e(q.from)!=="object"&&(q.from=new Date(q.from)),q.order=q.order||"desc",q}}},{key:"stream",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=c.join(this.dirname,this.filename),$=new _,z={file:I,start:E.start};return $.destroy=O(z,function(X,A){if(X)return $.emit("error",X);try{$.emit("data",A),A=JSON.parse(A),$.emit("log",A)}catch(k){$.emit("error",k)}}),$}},{key:"open",value:function(){var E=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(I,$){if(I)return E.emit("error",I);b("stat done: %s { size: %s }",E.filename,$),E._size=$,E._dest=E._createStream(E._stream),E._opening=!1,E.once("open",function(){E._stream.eventNames().includes("rotate")?E._stream.emit("rotate"):E._rotate=!1})})))}},{key:"stat",value:function(E){var I=this,$=this._getFile(),z=c.join(this.dirname,$);l.stat(z,function(X,A){if(X&&X.code==="ENOENT")return b("ENOENT ok",z),I.filename=$,E(null,0);if(X)return b("err ".concat(X.code," ").concat(z)),E(X);if(!A||I._needsNewFile(A.size))return I._incFile(function(){return I.stat(E)});I.filename=$,E(null,A.size)})}},{key:"close",value:function(E){var I=this;this._stream&&this._stream.end(function(){E&&E(),I.emit("flush"),I.emit("closed")})}},{key:"_needsNewFile",value:function(E){return E=E||this._size,this.maxsize&&E>=this.maxsize}},{key:"_onError",value:function(E){this.emit("error",E)}},{key:"_setupStream",value:function(E){return E.on("error",this._onError),E}},{key:"_cleanupStream",value:function(E){return E.removeListener("error",this._onError),E}},{key:"_rotateFile",value:function(){var E=this;this._incFile(function(){return E.open()})}},{key:"_endStream",value:function(){var E=this,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){E._cleanupStream(E._dest),I()})):I()}},{key:"_createStream",value:function(E){var I=this,$=c.join(this.dirname,this.filename);b("create stream start",$,this.options);var z=l.createWriteStream($,this.options).on("error",function(A){return b(A)}).on("close",function(){return b("close",z.path,z.bytesWritten)}).on("open",function(){b("file open ok",$),I.emit("open",$),E.pipe(z),I.rotatedWhileOpening&&(I._stream=new S,I._stream.setMaxListeners(30),I._rotateFile(),I.rotatedWhileOpening=!1,I._cleanupStream(z),E.end())});if(b("create stream ok",$),this.zippedArchive){var X=h.createGzip();return X.pipe(z),X}return z}},{key:"_incFile",value:function(E){b("_incFile",this.filename);var I=c.extname(this._basename),$=c.basename(this._basename,I);this.tailable?this._checkMaxFilesTailable(I,$,E):(this._created+=1,this._checkMaxFilesIncrementing(I,$,E))}},{key:"_getFile",value:function(){var E=c.extname(this._basename),I=c.basename(this._basename,E),$=this.rotationFormat?this.rotationFormat():this._created,z=!this.tailable&&this._created?"".concat(I).concat($).concat(E):"".concat(I).concat(E);return this.zippedArchive&&!this.tailable?"".concat(z,".gz"):z}},{key:"_checkMaxFilesIncrementing",value:function(E,I,$){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate($);var z=this._created-this.maxFiles,X=z!==0?z:"",A=this.zippedArchive?".gz":"",k="".concat(I).concat(X).concat(E).concat(A),j=c.join(this.dirname,k);l.unlink(j,$)}},{key:"_checkMaxFilesTailable",value:function(E,I,$){var z=this,X=[];if(this.maxFiles){for(var A=this.zippedArchive?".gz":"",k=this.maxFiles-1;k>1;k--)X.push((function(j,N){var H=this,B="".concat(I).concat(j-1).concat(E).concat(A),q=c.join(this.dirname,B);l.exists(q,function(L){if(!L)return N(null);B="".concat(I).concat(j).concat(E).concat(A),l.rename(q,c.join(H.dirname,B),N)})}).bind(this,k));y(X,function(){l.rename(c.join(z.dirname,"".concat(I).concat(E)),c.join(z.dirname,"".concat(I,"1").concat(E).concat(A)),$)})}}},{key:"_createLogDirIfNotExist",value:function(E){l.existsSync(E)||l.mkdirSync(E,{recursive:!0})}}]),W})(w),ta}var ra,Gc;function zv(){if(Gc)return ra;Gc=1;function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},e(w)}function t(w,b){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(w);b&&(O=O.filter(function(P){return Object.getOwnPropertyDescriptor(w,P).enumerable})),x.push.apply(x,O)}return x}function n(w){for(var b=1;b<arguments.length;b++){var x=arguments[b]!=null?arguments[b]:{};b%2?t(Object(x),!0).forEach(function(O){r(w,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(x)):t(Object(x)).forEach(function(O){Object.defineProperty(w,O,Object.getOwnPropertyDescriptor(x,O))})}return w}function r(w,b,x){return b in w?Object.defineProperty(w,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):w[b]=x,w}function i(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function a(w,b){for(var x=0;x<b.length;x++){var O=b[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(w,O.key,O)}}function o(w,b,x){return b&&a(w.prototype,b),Object.defineProperty(w,"prototype",{writable:!1}),w}function d(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),b&&f(w,b)}function f(w,b){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,P){return O.__proto__=P,O},f(w,b)}function v(w){var b=c();return function(){var O=y(w),P;if(b){var M=y(this).constructor;P=Reflect.construct(O,arguments,M)}else P=O.apply(this,arguments);return s(this,P)}}function s(w,b){if(b&&(e(b)==="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(w)}function l(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}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 y(w){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},y(w)}var h=fm(),m=dm(),g=pr(),u=g.Stream,_=$t(),S=gr();return ra=(function(w){d(x,w);var b=v(x);function x(){var O,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return i(this,x),O=b.call(this,P),O.options=P,O.name=P.name||"http",O.ssl=!!P.ssl,O.host=P.host||"localhost",O.port=P.port,O.auth=P.auth,O.path=P.path||"",O.agent=P.agent,O.headers=P.headers||{},O.headers["content-type"]="application/json",O.batch=P.batch||!1,O.batchInterval=P.batchInterval||5e3,O.batchCount=P.batchCount||10,O.batchOptions=[],O.batchTimeoutID=-1,O.batchCallback={},O.port||(O.port=O.ssl?443:80),O}return o(x,[{key:"log",value:function(P,M){var W=this;this._request(P,function(V,E){E&&E.statusCode!==200&&(V=new Error("Invalid HTTP Status Code: ".concat(E.statusCode))),V?W.emit("warn",V):W.emit("logged",P)}),M&&setImmediate(M)}},{key:"query",value:function(P,M){typeof P=="function"&&(M=P,P={}),P={method:"query",params:this.normalizeQuery(P)},P.params.path&&(P.path=P.params.path,delete P.params.path),P.params.auth&&(P.auth=P.params.auth,delete P.params.auth),this._request(P,function(W,V,E){if(V&&V.statusCode!==200&&(W=new Error("Invalid HTTP Status Code: ".concat(V.statusCode))),W)return M(W);if(typeof E=="string")try{E=JSON.parse(E)}catch(I){return M(I)}M(null,E)})}},{key:"stream",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=new u;P={method:"stream",params:P},P.params.path&&(P.path=P.params.path,delete P.params.path),P.params.auth&&(P.auth=P.params.auth,delete P.params.auth);var W="",V=this._request(P);return M.destroy=function(){return V.destroy()},V.on("data",function(E){E=(W+E).split(/\n+/);for(var I=E.length-1,$=0;$<I;$++)try{M.emit("log",JSON.parse(E[$]))}catch(z){M.emit("error",z)}W=E[I]}),V.on("error",function(E){return M.emit("error",E)}),M}},{key:"_request",value:function(P,M){P=P||{};var W=P.auth||this.auth,V=P.path||this.path||"";delete P.auth,delete P.path,this.batch?this._doBatch(P,M,W,V):this._doRequest(P,M,W,V)}},{key:"_doBatch",value:function(P,M,W,V){if(this.batchOptions.push(P),this.batchOptions.length===1){var E=this;this.batchCallback=M,this.batchTimeoutID=setTimeout(function(){E.batchTimeoutID=-1,E._doBatchRequest(E.batchCallback,W,V)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,W,V)}},{key:"_doBatchRequest",value:function(P,M,W){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var V=this.batchOptions.slice();this.batchOptions=[],this._doRequest(V,P,M,W)}},{key:"_doRequest",value:function(P,M,W,V){var E=Object.assign({},this.headers);W&&W.bearer&&(E.Authorization="Bearer ".concat(W.bearer));var I=(this.ssl?m:h).request(n(n({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(V.replace(/^\//,"")),headers:E,auth:W&&W.username&&W.password?"".concat(W.username,":").concat(W.password):"",agent:this.agent}));I.on("error",M),I.on("response",function($){return $.on("end",function(){return M(null,$)}).resume()}),I.end(et.from(S(P,this.options.replacer),"utf8"))}}]),x})(_),ra}var na,Hc;function Ud(){if(Hc)return na;Hc=1;const e=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";return e.writable=t=>e(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object",e.readable=t=>e(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object",e.duplex=t=>e.writable(t)&&e.readable(t),e.transform=t=>e.duplex(t)&&typeof t._transform=="function",na=e,na}var ia,Zc;function Gv(){if(Zc)return ia;Zc=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 t(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function n(g,u){for(var _=0;_<u.length;_++){var S=u[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function r(g,u,_){return u&&n(g.prototype,u),Object.defineProperty(g,"prototype",{writable:!1}),g}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(S,w){return S.__proto__=w,S},a(g,u)}function o(g){var u=v();return function(){var S=s(g),w;if(u){var b=s(this).constructor;w=Reflect.construct(S,arguments,b)}else w=S.apply(this,arguments);return d(this,w)}}function d(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 f(g)}function f(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function v(){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 s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},s(g)}var l=Ud(),c=De(),y=c.MESSAGE,h=Vt(),m=$t();return ia=(function(g){i(_,g);var u=o(_);function _(){var S,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(t(this,_),S=u.call(this,w),!w.stream||!l(w.stream))throw new Error("options.stream is required.");return S._stream=w.stream,S._stream.setMaxListeners(1/0),S.isObjectMode=w.stream._writableState.objectMode,S.eol=typeof w.eol=="string"?w.eol:h.EOL,S}return r(_,[{key:"log",value:function(w,b){var x=this;if(setImmediate(function(){return x.emit("logged",w)}),this.isObjectMode){this._stream.write(w),b&&b();return}this._stream.write("".concat(w[y]).concat(this.eol)),b&&b()}}]),_})(m),ia}var Wc;function Hv(){return Wc||(Wc=1,(function(e){Object.defineProperty(e,"Console",{configurable:!0,enumerable:!0,get:function(){return Av()}}),Object.defineProperty(e,"File",{configurable:!0,enumerable:!0,get:function(){return $v()}}),Object.defineProperty(e,"Http",{configurable:!0,enumerable:!0,get:function(){return zv()}}),Object.defineProperty(e,"Stream",{configurable:!0,enumerable:!0,get:function(){return Gv()}})})(Gi)),Gi}var Ht={},Yc;function as(){if(Yc)return Ht;Yc=1;var e=qd(),t=De(),n=t.configs;return Ht.cli=e.levels(n.cli),Ht.npm=e.levels(n.npm),Ht.syslog=e.levels(n.syslog),Ht.addColors=e.levels,Ht}var Xr={exports:{}},Qr={exports:{}},Jc;function Zv(){return Jc||(Jc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=ns(),r=g(n),i=is(),a=g(i),o=Bd(),d=g(o),f=Md(),v=g(f),s=Fd(),l=g(s),c=Yt(),y=g(c),h=vr(),m=g(h);function g(w){return w&&w.__esModule?w:{default:w}}function u(w,b,x){x=(0,v.default)(x);var O=0,P=0,{length:M}=w,W=!1;M===0&&x(null);function V(E,I){E===!1&&(W=!0),W!==!0&&(E?x(E):(++P===M||I===a.default)&&x(null))}for(;O<M;O++)b(w[O],O,(0,l.default)(V))}function _(w,b,x){return(0,d.default)(w,1/0,b,x)}function S(w,b,x){var O=(0,r.default)(w)?u:_;return O(w,(0,y.default)(b),x)}t.default=(0,m.default)(S,3),e.exports=t.default})(Qr,Qr.exports)),Qr.exports}var en={exports:{}},Kc;function Wv(){return Kc||(Kc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return(i,a,o)=>r(i,o)}e.exports=t.default})(en,en.exports)),en.exports}var Xc;function os(){return Xc||(Xc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Zv(),r=s(n),i=Wv(),a=s(i),o=Yt(),d=s(o),f=vr(),v=s(f);function s(c){return c&&c.__esModule?c:{default:c}}function l(c,y,h){return(0,r.default)(c,(0,a.default)((0,d.default)(y)),h)}t.default=(0,v.default)(l,3),e.exports=t.default})(Xr,Xr.exports)),Xr.exports}var aa,Qc;function Yv(){if(Qc)return aa;Qc=1;var e=Object.prototype.toString;return aa=function(n){if(typeof n.displayName=="string"&&n.constructor.name)return n.displayName;if(typeof n.name=="string"&&n.name)return n.name;if(typeof n=="object"&&n.constructor&&typeof n.constructor.name=="string")return n.constructor.name;var r=n.toString(),i=e.call(n).slice(8,-1);return i==="Function"?r=r.substring(r.indexOf("(")+1,r.indexOf(")")):r=i,r||"anonymous"},aa}var oa,el;function Vd(){if(el)return oa;el=1;var e=Yv();return oa=function(n){var r=0,i;function a(){return r||(r=1,i=n.apply(this,arguments),n=null),i}return a.displayName=e(n),a},oa}var sa={},tl;function $d(){return tl||(tl=1,(function(e){e.get=function(i){var a=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var o={},d=Error.prepareStackTrace;Error.prepareStackTrace=function(v,s){return s},Error.captureStackTrace(o,i||e.get);var f=o.stack;return Error.prepareStackTrace=d,Error.stackTraceLimit=a,f},e.parse=function(i){if(!i.stack)return[];var a=this,o=i.stack.split(`
|
|
109
|
+
`).slice(1);return o.map(function(d){if(d.match(/^\s*[-]{4,}$/))return a._createParsedCallSite({fileName:d,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var f=d.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(f){var v=null,s=null,l=null,c=null,y=null,h=f[5]==="native";if(f[1]){l=f[1];var m=l.lastIndexOf(".");if(l[m-1]=="."&&m--,m>0){v=l.substr(0,m),s=l.substr(m+1);var g=v.indexOf(".Module");g>0&&(l=l.substr(g+1),v=v.substr(0,g))}c=null}s&&(c=v,y=s),s==="<anonymous>"&&(y=null,l=null);var u={fileName:f[2]||null,lineNumber:parseInt(f[3],10)||null,functionName:l,typeName:c,methodName:y,columnNumber:parseInt(f[4],10)||null,native:h};return a._createParsedCallSite(u)}}).filter(function(d){return!!d})};function t(i){for(var a in i)this[a]=i[a]}var n=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],r=["topLevel","eval","native","constructor"];n.forEach(function(i){t.prototype[i]=null,t.prototype["get"+i[0].toUpperCase()+i.substr(1)]=function(){return this[i]}}),r.forEach(function(i){t.prototype[i]=!1,t.prototype["is"+i[0].toUpperCase()+i.substr(1)]=function(){return this[i]}}),e._createParsedCallSite=function(i){return new t(i)}})(sa)),sa}var ua,rl;function zd(){if(rl)return ua;rl=1;function e(y){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(y)}function t(y,h){if(!(y instanceof h))throw new TypeError("Cannot call a class as a function")}function n(y,h){for(var m=0;m<h.length;m++){var g=h[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(y,g.key,g)}}function r(y,h,m){return h&&n(y.prototype,h),Object.defineProperty(y,"prototype",{writable:!1}),y}function i(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(h&&h.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),h&&a(y,h)}function a(y,h){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,u){return g.__proto__=u,g},a(y,h)}function o(y){var h=v();return function(){var g=s(y),u;if(h){var _=s(this).constructor;u=Reflect.construct(g,arguments,_)}else u=g.apply(this,arguments);return d(this,u)}}function d(y,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(y)}function f(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function v(){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 s(y){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},s(y)}var l=pr(),c=l.Writable;return ua=(function(y){i(m,y);var h=o(m);function m(g){var u;if(t(this,m),u=h.call(this,{objectMode:!0}),!g)throw new Error("ExceptionStream requires a TransportStream instance.");return u.handleExceptions=!0,u.transport=g,u}return r(m,[{key:"_write",value:function(u,_,S){return u.exception?this.transport.log(u,S):(S(),!0)}}]),m})(c),ua}var ca,nl;function Gd(){if(nl)return ca;nl=1;function e(v,s){if(!(v instanceof s))throw new TypeError("Cannot call a class as a function")}function t(v,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(v,c.key,c)}}function n(v,s,l){return s&&t(v.prototype,s),Object.defineProperty(v,"prototype",{writable:!1}),v}var r=Vt(),i=os(),a=Sn()("winston:exception"),o=Vd(),d=$d(),f=zd();return ca=(function(){function v(s){if(e(this,v),!s)throw new Error("Logger is required to handle exceptions");this.logger=s,this.handlers=new Map}return n(v,[{key:"handle",value:function(){for(var l=this,c=arguments.length,y=new Array(c),h=0;h<c;h++)y[h]=arguments[h];y.forEach(function(m){if(Array.isArray(m))return m.forEach(function(g){return l._addHandler(g)});l._addHandler(m)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),ye.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var l=this;this.catcher&&(ye.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(c){return l.logger.unpipe(c)}))}},{key:"getAllInfo",value:function(l){var c=l.message;return!c&&typeof l=="string"&&(c=l),{error:l,level:"error",message:["uncaughtException: ".concat(c||"(no error message)"),l.stack||" No stack trace"].join(`
|
|
110
|
+
`),stack:l.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(l)}}},{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:r.loadavg(),uptime:r.uptime()}}},{key:"getTrace",value:function(l){var c=l?d.parse(l):d.get();return c.map(function(y){return{column:y.getColumnNumber(),file:y.getFileName(),function:y.getFunctionName(),line:y.getLineNumber(),method:y.getMethodName(),native:y.isNative()}})}},{key:"_addHandler",value:function(l){if(!this.handlers.has(l)){l.handleExceptions=!0;var c=new f(l);this.handlers.set(l,c),this.logger.pipe(c)}}},{key:"_uncaughtException",value:function(l){var c=this.getAllInfo(l),y=this._getExceptionHandlers(),h=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(l):this.logger.exitOnError,m;!y.length&&h&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),h=!1);function g(){a("doExit",h),a("process._exiting",ye._exiting),h&&!ye._exiting&&(m&&clearTimeout(m),ye.exit(1))}if(!y||y.length===0)return ye.nextTick(g);i(y,function(u,_){var S=o(_),w=u.transport||u;function b(x){return function(){a(x),S()}}w._ending=!0,w.once("finish",b("finished")),w.once("error",b("error"))},function(){return h&&g()}),this.logger.log(c),h&&(m=setTimeout(g,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(l){var c=l.transport||l;return c.handleExceptions})}}]),v})(),ca}var la,il;function Hd(){if(il)return la;il=1;function e(v,s){if(!(v instanceof s))throw new TypeError("Cannot call a class as a function")}function t(v,s){for(var l=0;l<s.length;l++){var c=s[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(v,c.key,c)}}function n(v,s,l){return s&&t(v.prototype,s),Object.defineProperty(v,"prototype",{writable:!1}),v}var r=Vt(),i=os(),a=Sn()("winston:rejection"),o=Vd(),d=$d(),f=zd();return la=(function(){function v(s){if(e(this,v),!s)throw new Error("Logger is required to handle rejections");this.logger=s,this.handlers=new Map}return n(v,[{key:"handle",value:function(){for(var l=this,c=arguments.length,y=new Array(c),h=0;h<c;h++)y[h]=arguments[h];y.forEach(function(m){if(Array.isArray(m))return m.forEach(function(g){return l._addHandler(g)});l._addHandler(m)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),ye.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var l=this;this.catcher&&(ye.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(c){return l.logger.unpipe(c)}))}},{key:"getAllInfo",value:function(l){var c=null;return l&&(c=typeof l=="string"?l:l.message),{error:l,level:"error",message:["unhandledRejection: ".concat(c||"(no error message)"),l&&l.stack||" No stack trace"].join(`
|
|
111
|
+
`),stack:l&&l.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(l)}}},{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:r.loadavg(),uptime:r.uptime()}}},{key:"getTrace",value:function(l){var c=l?d.parse(l):d.get();return c.map(function(y){return{column:y.getColumnNumber(),file:y.getFileName(),function:y.getFunctionName(),line:y.getLineNumber(),method:y.getMethodName(),native:y.isNative()}})}},{key:"_addHandler",value:function(l){if(!this.handlers.has(l)){l.handleRejections=!0;var c=new f(l);this.handlers.set(l,c),this.logger.pipe(c)}}},{key:"_unhandledRejection",value:function(l){var c=this.getAllInfo(l),y=this._getRejectionHandlers(),h=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(l):this.logger.exitOnError,m;!y.length&&h&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),h=!1);function g(){a("doExit",h),a("process._exiting",ye._exiting),h&&!ye._exiting&&(m&&clearTimeout(m),ye.exit(1))}if(!y||y.length===0)return ye.nextTick(g);i(y,function(u,_){var S=o(_),w=u.transport||u;function b(x){return function(){a(x),S()}}w._ending=!0,w.once("finish",b("finished")),w.once("error",b("error"))},function(){return h&&g()}),this.logger.log(c),h&&(m=setTimeout(g,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(l){var c=l.transport||l;return c.handleRejections})}}]),v})(),la}var fa={exports:{}},al;function Jv(){if(al)return fa.exports;al=1;const e=Ze(),{LEVEL:t}=De(),n=$t(),r=fa.exports=function(a={}){if(n.call(this,a),!a.transport||typeof a.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=a.transport,this.level=this.level||a.transport.level,this.handleExceptions=this.handleExceptions||a.transport.handleExceptions,this._deprecated();function o(d){this.emit("error",d,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=o.bind(this),this.transport.on("error",this.transport.__winstonError))};return e.inherits(r,n),r.prototype._write=function(a,o,d){if(this.silent||a.exception===!0&&!this.handleExceptions)return d(null);(!this.level||this.levels[this.level]>=this.levels[a[t]])&&this.transport.log(a[t],a.message,a,this._nop),d(null)},r.prototype._writev=function(a,o){for(let d=0;d<a.length;d++)this._accept(a[d])&&(this.transport.log(a[d].chunk[t],a[d].chunk.message,a[d].chunk,this._nop),a[d].callback());return o(null)},r.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(`
|
|
112
112
|
`))},r.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},fa.exports}var da,ol;function Kv(){if(ol)return da;ol=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){for(var o=0;o<a.length;o++){var d=a[o];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}function r(i,a,o){return a&&n(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),i}return da=(function(){function i(a){if(t(this,i),!a)throw new Error("Logger is required for profiling.");this.logger=a,this.start=Date.now()}return r(i,[{key:"done",value:function(){for(var o=arguments.length,d=new Array(o),f=0;f<o;f++)d[f]=arguments[f];typeof d[d.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),d.pop());var v=e(d[d.length-1])==="object"?d.pop():{};return v.level=v.level||"info",v.durationMs=Date.now()-this.start,this.logger.write(v)}}]),i})(),da}var ha,sl;function Xv(){if(sl)return ha;sl=1;class e extends Error{constructor(n){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
|
113
113
|
Found: ${n.toString().split(`
|
|
114
114
|
`)[0]}
|
|
115
|
-
`),Error.captureStackTrace(this,e)}}return ha=t=>{if(t.length>2)throw new e(t);function n(i={}){this.options=i}n.prototype.transform=t;function r(i){return new n(i)}return r.Format=n,r},ha}var pa,ul;function Qv(){if(ul)return pa;ul=1;const e=Xv(),{MESSAGE:t}=De(),n=gr();function r(i,a){return typeof a=="bigint"?a.toString():a}return pa=e((i,a)=>{const o=n.configure(a);return i[t]=o(i,a.replacer||r,a.space),i}),pa}var ma,cl;function ey(){if(cl)return ma;cl=1;function e($,z,X){return z in $?Object.defineProperty($,z,{value:X,enumerable:!0,configurable:!0,writable:!0}):$[z]=X,$}function t($){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},t($)}function n($,z){if(!($ instanceof z))throw new TypeError("Cannot call a class as a function")}function r($,z){for(var X=0;X<z.length;X++){var A=z[X];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty($,A.key,A)}}function i($,z,X){return z&&r($.prototype,z),Object.defineProperty($,"prototype",{writable:!1}),$}function a($,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(z&&z.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),z&&o($,z)}function o($,z){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,k){return A.__proto__=k,A},o($,z)}function d($){var z=s();return function(){var A=l($),k;if(z){var j=l(this).constructor;k=Reflect.construct(A,arguments,j)}else k=A.apply(this,arguments);return f(this,k)}}function f($,z){if(z&&(t(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v($)}function v($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function s(){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(X){return X.__proto__||Object.getPrototypeOf(X)},l($)}var c=pr(),y=c.Stream,h=c.Transform,m=os(),g=De(),u=g.LEVEL,_=g.SPLAT,
|
|
116
|
-
`));Pe&&this.exceptions.handle(Pe),je&&this.rejections.handle(je)}},{key:"isLevelEnabled",value:function(k){var j=this,N=I(this.levels,k);if(N===null)return!1;var H=I(this.levels,this.level);if(H===null)return!1;if(!this.transports||this.transports.length===0)return H>=N;var B=this.transports.findIndex(function(q){var L=I(j.levels,q.level);return L===null&&(L=H),L>=N});return B!==-1}},{key:"log",value:function(k,j){for(var N,H=arguments.length,B=new Array(H>2?H-2:0),q=2;q<H;q++)B[q-2]=arguments[q];if(arguments.length===1)return k[u]=k.level,this._addDefaultMeta(k),this.write(k),this;if(arguments.length===2){var L;return j&&t(j)==="object"?(j[u]=j.level=k,this._addDefaultMeta(j),this.write(j),this):(j=(L={},e(L,u,k),e(L,"level",k),e(L,"message",j),L),this._addDefaultMeta(j),this.write(j),this)}var D=B[0];if(t(D)==="object"&&D!==null){var F=j&&j.match&&j.match(V);if(!F){var K,J=Object.assign({},this.defaultMeta,D,(K={},e(K,u,k),e(K,_,B),e(K,"level",k),e(K,"message",j),K));return D.message&&(J.message="".concat(J.message," ").concat(D.message)),D.stack&&(J.stack=D.stack),this.write(J),this}}return this.write(Object.assign({},this.defaultMeta,(N={},e(N,u,k),e(N,_,B),e(N,"level",k),e(N,"message",j),N))),this}},{key:"_transform",value:function(k,j,N){if(this.silent)return N();k[u]||(k[u]=k.level),!this.levels[k[u]]&&this.levels[k[u]]!==0&&console.error("[winston] Unknown logger level: %s",k[u]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",k);try{this.push(this.format.transform(k,this.format.options))}finally{this._writableState.sync=!1,N()}}},{key:"_final",value:function(k){var j=this.transports.slice();m(j,function(N,H){if(!N||N.finished)return setImmediate(H);N.once("finish",H),N.end()},k)}},{key:"add",value:function(k){var j=!
|
|
117
|
-
`))}},{key:"_onEvent",value:function(k,j){function N(H){k==="error"&&!this.transports.includes(j)&&this.add(j),this.emit(k,H,j)}j["__winston"+k]||(j["__winston"+k]=N.bind(this),j.on(k,j["__winston"+k]))}},{key:"_addDefaultMeta",value:function(k){this.defaultMeta&&Object.assign(k,this.defaultMeta)}}]),X})(h);function I($,z){var X=$[z];return!X&&X!==0?null:X}return Object.defineProperty(S.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var z=this._readableState.pipes;return Array.isArray(z)?z:[z].filter(Boolean)}}),ma=S,ma}var ga,ll;function Zd(){if(ll)return ga;ll=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 t(g,u,_){return Object.defineProperty(g,"prototype",{writable:!1}),g}function n(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function r(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&&i(g,u)}function i(g,u){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,w){return E.__proto__=w,E},i(g,u)}function a(g){var u=f();return function(){var E=v(g),w;if(u){var b=v(this).constructor;w=Reflect.construct(E,arguments,b)}else w=E.apply(this,arguments);return o(this,w)}}function o(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 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 v(g){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},v(g)}var s=De(),l=s.LEVEL,c=as(),y=ey(),h=En()("winston:create-logger");function m(g){return"is"+g.charAt(0).toUpperCase()+g.slice(1)+"Enabled"}return ga=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};g.levels=g.levels||c.npm.levels;var u=(function(E){r(b,E);var w=a(b);function b(x){return n(this,b),w.call(this,x)}return t(b)})(y),_=new u(g);return Object.keys(g.levels).forEach(function(E){if(h('Define prototype method for "%s"',E),E==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}u.prototype[E]=function(){for(var w=this||_,b=arguments.length,x=new Array(b),O=0;O<b;O++)x[O]=arguments[O];if(x.length===1){var P=x[0],M=P&&P.message&&P||{message:P};return M.level=M[l]=E,w._addDefaultMeta(M),w.write(M),this||_}return x.length===0?(w.log(E,""),w):w.log.apply(w,[E].concat(x))},u.prototype[m(E)]=function(){return(this||_).isLevelEnabled(E)}}),_},ga}var va,fl;function ty(){if(fl)return va;fl=1;function e(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function t(i,a){for(var o=0;o<a.length;o++){var d=a[o];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}function n(i,a,o){return a&&t(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),i}var r=Zd();return va=(function(){function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,i),this.loggers=new Map,this.options=a}return n(i,[{key:"add",value:function(o,d){var f=this;if(!this.loggers.has(o)){d=Object.assign({},d||this.options);var v=d.transports||this.options.transports;d.transports=v?v.slice():[];var s=r(d);s.on("close",function(){return f._delete(o)}),this.loggers.set(o,s)}return this.loggers.get(o)}},{key:"get",value:function(o,d){return this.add(o,d)}},{key:"has",value:function(o){return!!this.loggers.has(o)}},{key:"close",value:function(o){var d=this;if(o)return this._removeLogger(o);this.loggers.forEach(function(f,v){return d._removeLogger(v)})}},{key:"_removeLogger",value:function(o){if(this.loggers.has(o)){var d=this.loggers.get(o);d.close(),this._delete(o)}}},{key:"_delete",value:function(o){this.loggers.delete(o)}}]),i})(),va}var dl;function ry(){return dl||(dl=1,(function(e){var t=qd(),n=Dd(),r=n.warn;e.version=Ov.version,e.transports=Hv(),e.config=as(),e.addColors=t.levels,e.format=t.format,e.createLogger=Zd(),e.ExceptionHandler=Gd(),e.RejectionHandler=Hd(),e.Container=ty(),e.Transport=$t(),e.loggers=new e.Container;var i=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(a){return e[a]=function(){return i[a].apply(i,arguments)}}),Object.defineProperty(e,"level",{get:function(){return i.level},set:function(o){i.level=o}}),Object.defineProperty(e,"exceptions",{get:function(){return i.exceptions}}),["exitOnError"].forEach(function(a){Object.defineProperty(e,a,{get:function(){return i[a]},set:function(d){i[a]=d}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:i.exceptionHandlers,rejectionHandlers:i.rejectionHandlers,transports:i.transports}}}),r.deprecated(e,"setLevels"),r.forFunctions(e,"useFormat",["cli"]),r.forProperties(e,"useFormat",["padLevels","stripColors"]),r.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),r.forProperties(e,"deprecated",["emitErrs","levelLength"]),r.moved(e,"createLogger","Logger")})(mi)),mi}var ya={exports:{}},_a,hl;function Sn(){if(hl)return _a;hl=1;var e=function(t,n){Error.call(this,t),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=t,n&&(this.inner=n)};return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,_a=e,_a}var ba,pl;function Wd(){if(pl)return ba;pl=1;var e=Sn(),t=function(n,r){e.call(this,n),this.name="NotBeforeError",this.date=r};return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ba=t,ba}var wa,ml;function Yd(){if(ml)return wa;ml=1;var e=Sn(),t=function(n,r){e.call(this,n),this.name="TokenExpiredError",this.expiredAt=r};return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wa=t,wa}var bt={},Ea,gl;function Jd(){if(gl)return Ea;gl=1;var e=hr().Buffer,t=_n(),n=Ze();function r(i){if(this.buffer=null,this.writable=!0,this.readable=!0,!i)return this.buffer=e.alloc(0),this;if(typeof i.pipe=="function")return this.buffer=e.alloc(0),i.pipe(this),this;if(i.length||typeof i=="object")return this.buffer=i,this.writable=!1,ye.nextTick((function(){this.emit("end",i),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof i+")")}return n.inherits(r,t),r.prototype.write=function(a){this.buffer=e.concat([this.buffer,e.from(a)]),this.emit("data",a)},r.prototype.end=function(a){a&&this.write(a),this.emit("end",a),this.emit("close"),this.writable=!1,this.readable=!1},Ea=r,Ea}var Sa,vl;function ny(){if(vl)return Sa;vl=1;function e(r){var i=(r/8|0)+(r%8===0?0:1);return i}var t={ES256:e(256),ES384:e(384),ES512:e(521)};function n(r){var i=t[r];if(i)return i;throw new Error('Unknown algorithm "'+r+'"')}return Sa=n,Sa}var Ra,yl;function iy(){if(yl)return Ra;yl=1;var e=hr().Buffer,t=ny(),n=128,r=0,i=32,a=16,o=2,d=a|i|r<<6,f=o|r<<6;function v(h){return h.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(h){if(e.isBuffer(h))return h;if(typeof h=="string")return e.from(h,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function l(h,m){h=s(h);var g=t(m),u=g+1,_=h.length,E=0;if(h[E++]!==d)throw new Error('Could not find expected "seq"');var w=h[E++];if(w===(n|1)&&(w=h[E++]),_-E<w)throw new Error('"seq" specified length of "'+w+'", only "'+(_-E)+'" remaining');if(h[E++]!==f)throw new Error('Could not find expected "int" for "r"');var b=h[E++];if(_-E-2<b)throw new Error('"r" specified length of "'+b+'", only "'+(_-E-2)+'" available');if(u<b)throw new Error('"r" specified length of "'+b+'", max of "'+u+'" is acceptable');var x=E;if(E+=b,h[E++]!==f)throw new Error('Could not find expected "int" for "s"');var O=h[E++];if(_-E!==O)throw new Error('"s" specified length of "'+O+'", expected "'+(_-E)+'"');if(u<O)throw new Error('"s" specified length of "'+O+'", max of "'+u+'" is acceptable');var P=E;if(E+=O,E!==_)throw new Error('Expected to consume entire buffer, but "'+(_-E)+'" bytes remain');var M=g-b,W=g-O,V=e.allocUnsafe(M+b+W+O);for(E=0;E<M;++E)V[E]=0;h.copy(V,E,x+Math.max(-M,0),x+b),E=g;for(var S=E;E<S+W;++E)V[E]=0;return h.copy(V,E,P+Math.max(-W,0),P+O),V=V.toString("base64"),V=v(V),V}function c(h,m,g){for(var u=0;m+u<g&&h[m+u]===0;)++u;var _=h[m+u]>=n;return _&&--u,u}function y(h,m){h=s(h);var g=t(m),u=h.length;if(u!==g*2)throw new TypeError('"'+m+'" signatures must be "'+g*2+'" bytes, saw "'+u+'"');var _=c(h,0,g),E=c(h,g,h.length),w=g-_,b=g-E,x=2+w+1+1+b,O=x<n,P=e.allocUnsafe((O?2:3)+x),M=0;return P[M++]=d,O?P[M++]=x:(P[M++]=n|1,P[M++]=x&255),P[M++]=f,P[M++]=w,_<0?(P[M++]=0,M+=h.copy(P,M,0,g)):M+=h.copy(P,M,_,g),P[M++]=f,P[M++]=b,E<0?(P[M++]=0,h.copy(P,M,g)):h.copy(P,M,g+E),P}return Ra={derToJose:l,joseToDer:y},Ra}var Oa,_l;function ay(){if(_l)return Oa;_l=1;var e=or().Buffer,t=or().SlowBuffer;Oa=n;function n(a,o){if(!e.isBuffer(a)||!e.isBuffer(o)||a.length!==o.length)return!1;for(var d=0,f=0;f<a.length;f++)d|=a[f]^o[f];return d===0}n.install=function(){e.prototype.equal=t.prototype.equal=function(o){return n(this,o)}};var r=e.prototype.equal,i=t.prototype.equal;return n.restore=function(){e.prototype.equal=r,t.prototype.equal=i},Oa}var Ta,bl;function Kd(){if(bl)return Ta;bl=1;var e=hr().Buffer,t=Wt(),n=iy(),r=Ze(),i=`"%s" is not a valid algorithm.
|
|
115
|
+
`),Error.captureStackTrace(this,e)}}return ha=t=>{if(t.length>2)throw new e(t);function n(i={}){this.options=i}n.prototype.transform=t;function r(i){return new n(i)}return r.Format=n,r},ha}var pa,ul;function Qv(){if(ul)return pa;ul=1;const e=Xv(),{MESSAGE:t}=De(),n=gr();function r(i,a){return typeof a=="bigint"?a.toString():a}return pa=e((i,a)=>{const o=n.configure(a);return i[t]=o(i,a.replacer||r,a.space),i}),pa}var ma,cl;function ey(){if(cl)return ma;cl=1;function e($,z,X){return z in $?Object.defineProperty($,z,{value:X,enumerable:!0,configurable:!0,writable:!0}):$[z]=X,$}function t($){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},t($)}function n($,z){if(!($ instanceof z))throw new TypeError("Cannot call a class as a function")}function r($,z){for(var X=0;X<z.length;X++){var A=z[X];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty($,A.key,A)}}function i($,z,X){return z&&r($.prototype,z),Object.defineProperty($,"prototype",{writable:!1}),$}function a($,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(z&&z.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),z&&o($,z)}function o($,z){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,k){return A.__proto__=k,A},o($,z)}function d($){var z=s();return function(){var A=l($),k;if(z){var j=l(this).constructor;k=Reflect.construct(A,arguments,j)}else k=A.apply(this,arguments);return f(this,k)}}function f($,z){if(z&&(t(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v($)}function v($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function s(){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(X){return X.__proto__||Object.getPrototypeOf(X)},l($)}var c=pr(),y=c.Stream,h=c.Transform,m=os(),g=De(),u=g.LEVEL,_=g.SPLAT,S=Ud(),w=Gd(),b=Hd(),x=Jv(),O=Kv(),P=Dd(),M=P.warn,W=as(),V=/%[scdjifoO%]/g,E=(function($){a(X,$);var z=d(X);function X(A){var k;return n(this,X),k=z.call(this,{objectMode:!0}),k.configure(A),k}return i(X,[{key:"child",value:function(k){var j=this;return Object.create(j,{write:{value:function(H){var B=Object.assign({},k,H);H instanceof Error&&(B.stack=H.stack,B.message=H.message),j.write(B)}}})}},{key:"configure",value:function(){var k=this,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=j.silent,H=j.format,B=j.defaultMeta,q=j.levels,L=j.level,D=L===void 0?"info":L,F=j.exitOnError,K=F===void 0?!0:F,J=j.transports,ae=j.colors,ue=j.emitErrs,ve=j.formatters,me=j.padLevels,we=j.rewriters,Ce=j.stripColors,Pe=j.exceptionHandlers,je=j.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=N,this.format=H||this.format||Qv()(),this.defaultMeta=B||null,this.levels=q||this.levels||W.npm.levels,this.level=D,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new w(this),this.rejections=new b(this),this.profilers={},this.exitOnError=K,J&&(J=Array.isArray(J)?J:[J],J.forEach(function(Ie){return k.add(Ie)})),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(`
|
|
116
|
+
`));Pe&&this.exceptions.handle(Pe),je&&this.rejections.handle(je)}},{key:"isLevelEnabled",value:function(k){var j=this,N=I(this.levels,k);if(N===null)return!1;var H=I(this.levels,this.level);if(H===null)return!1;if(!this.transports||this.transports.length===0)return H>=N;var B=this.transports.findIndex(function(q){var L=I(j.levels,q.level);return L===null&&(L=H),L>=N});return B!==-1}},{key:"log",value:function(k,j){for(var N,H=arguments.length,B=new Array(H>2?H-2:0),q=2;q<H;q++)B[q-2]=arguments[q];if(arguments.length===1)return k[u]=k.level,this._addDefaultMeta(k),this.write(k),this;if(arguments.length===2){var L;return j&&t(j)==="object"?(j[u]=j.level=k,this._addDefaultMeta(j),this.write(j),this):(j=(L={},e(L,u,k),e(L,"level",k),e(L,"message",j),L),this._addDefaultMeta(j),this.write(j),this)}var D=B[0];if(t(D)==="object"&&D!==null){var F=j&&j.match&&j.match(V);if(!F){var K,J=Object.assign({},this.defaultMeta,D,(K={},e(K,u,k),e(K,_,B),e(K,"level",k),e(K,"message",j),K));return D.message&&(J.message="".concat(J.message," ").concat(D.message)),D.stack&&(J.stack=D.stack),this.write(J),this}}return this.write(Object.assign({},this.defaultMeta,(N={},e(N,u,k),e(N,_,B),e(N,"level",k),e(N,"message",j),N))),this}},{key:"_transform",value:function(k,j,N){if(this.silent)return N();k[u]||(k[u]=k.level),!this.levels[k[u]]&&this.levels[k[u]]!==0&&console.error("[winston] Unknown logger level: %s",k[u]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",k);try{this.push(this.format.transform(k,this.format.options))}finally{this._writableState.sync=!1,N()}}},{key:"_final",value:function(k){var j=this.transports.slice();m(j,function(N,H){if(!N||N.finished)return setImmediate(H);N.once("finish",H),N.end()},k)}},{key:"add",value:function(k){var j=!S(k)||k.log.length>2?new x({transport:k}):k;if(!j._writableState||!j._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",j),this._onEvent("warn",j),this.pipe(j),k.handleExceptions&&this.exceptions.handle(),k.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(k){if(!k)return this;var j=k;return(!S(k)||k.log.length>2)&&(j=this.transports.filter(function(N){return N.transport===k})[0]),j&&this.unpipe(j),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(){M.deprecated("setLevels")}},{key:"query",value:function(k,j){typeof k=="function"&&(j=k,k={}),k=k||{};var N={},H=Object.assign({},k.query||{});function B(L,D){k.query&&typeof L.formatQuery=="function"&&(k.query=L.formatQuery(H)),L.query(k,function(F,K){if(F)return D(F);typeof L.formatResults=="function"&&(K=L.formatResults(K,k.format)),D(null,K)})}function q(L,D){B(L,function(F,K){D&&(K=F||K,K&&(N[L.name]=K),D()),D=null})}m(this.transports.filter(function(L){return!!L.query}),q,function(){return j(null,N)})}},{key:"stream",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=new y,N=[];return j._streams=N,j.destroy=function(){for(var H=N.length;H--;)N[H].destroy()},this.transports.filter(function(H){return!!H.stream}).forEach(function(H){var B=H.stream(k);B&&(N.push(B),B.on("log",function(q){q.transport=q.transport||[],q.transport.push(H.name),j.emit("log",q)}),B.on("error",function(q){q.transport=q.transport||[],q.transport.push(H.name),j.emit("error",q)}))}),j}},{key:"startTimer",value:function(){return new O(this)}},{key:"profile",value:function(k){var j=Date.now();if(this.profilers[k]){var N=this.profilers[k];delete this.profilers[k];for(var H=arguments.length,B=new Array(H>1?H-1:0),q=1;q<H;q++)B[q-1]=arguments[q];typeof B[B.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),B.pop());var L=t(B[B.length-1])==="object"?B.pop():{};return L.level=L.level||"info",L.durationMs=j-N,L.message=L.message||k,this.write(L)}return this.profilers[k]=j,this}},{key:"handleExceptions",value:function(){var k;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(k=this.exceptions).handle.apply(k,arguments)}},{key:"unhandleExceptions",value:function(){var k;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(k=this.exceptions).unhandle.apply(k,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(`
|
|
117
|
+
`))}},{key:"_onEvent",value:function(k,j){function N(H){k==="error"&&!this.transports.includes(j)&&this.add(j),this.emit(k,H,j)}j["__winston"+k]||(j["__winston"+k]=N.bind(this),j.on(k,j["__winston"+k]))}},{key:"_addDefaultMeta",value:function(k){this.defaultMeta&&Object.assign(k,this.defaultMeta)}}]),X})(h);function I($,z){var X=$[z];return!X&&X!==0?null:X}return Object.defineProperty(E.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var z=this._readableState.pipes;return Array.isArray(z)?z:[z].filter(Boolean)}}),ma=E,ma}var ga,ll;function Zd(){if(ll)return ga;ll=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 t(g,u,_){return Object.defineProperty(g,"prototype",{writable:!1}),g}function n(g,u){if(!(g instanceof u))throw new TypeError("Cannot call a class as a function")}function r(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&&i(g,u)}function i(g,u){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,w){return S.__proto__=w,S},i(g,u)}function a(g){var u=f();return function(){var S=v(g),w;if(u){var b=v(this).constructor;w=Reflect.construct(S,arguments,b)}else w=S.apply(this,arguments);return o(this,w)}}function o(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 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 v(g){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},v(g)}var s=De(),l=s.LEVEL,c=as(),y=ey(),h=Sn()("winston:create-logger");function m(g){return"is"+g.charAt(0).toUpperCase()+g.slice(1)+"Enabled"}return ga=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};g.levels=g.levels||c.npm.levels;var u=(function(S){r(b,S);var w=a(b);function b(x){return n(this,b),w.call(this,x)}return t(b)})(y),_=new u(g);return Object.keys(g.levels).forEach(function(S){if(h('Define prototype method for "%s"',S),S==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}u.prototype[S]=function(){for(var w=this||_,b=arguments.length,x=new Array(b),O=0;O<b;O++)x[O]=arguments[O];if(x.length===1){var P=x[0],M=P&&P.message&&P||{message:P};return M.level=M[l]=S,w._addDefaultMeta(M),w.write(M),this||_}return x.length===0?(w.log(S,""),w):w.log.apply(w,[S].concat(x))},u.prototype[m(S)]=function(){return(this||_).isLevelEnabled(S)}}),_},ga}var va,fl;function ty(){if(fl)return va;fl=1;function e(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function t(i,a){for(var o=0;o<a.length;o++){var d=a[o];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}function n(i,a,o){return a&&t(i.prototype,a),Object.defineProperty(i,"prototype",{writable:!1}),i}var r=Zd();return va=(function(){function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e(this,i),this.loggers=new Map,this.options=a}return n(i,[{key:"add",value:function(o,d){var f=this;if(!this.loggers.has(o)){d=Object.assign({},d||this.options);var v=d.transports||this.options.transports;d.transports=v?v.slice():[];var s=r(d);s.on("close",function(){return f._delete(o)}),this.loggers.set(o,s)}return this.loggers.get(o)}},{key:"get",value:function(o,d){return this.add(o,d)}},{key:"has",value:function(o){return!!this.loggers.has(o)}},{key:"close",value:function(o){var d=this;if(o)return this._removeLogger(o);this.loggers.forEach(function(f,v){return d._removeLogger(v)})}},{key:"_removeLogger",value:function(o){if(this.loggers.has(o)){var d=this.loggers.get(o);d.close(),this._delete(o)}}},{key:"_delete",value:function(o){this.loggers.delete(o)}}]),i})(),va}var dl;function ry(){return dl||(dl=1,(function(e){var t=qd(),n=Dd(),r=n.warn;e.version=Ov.version,e.transports=Hv(),e.config=as(),e.addColors=t.levels,e.format=t.format,e.createLogger=Zd(),e.ExceptionHandler=Gd(),e.RejectionHandler=Hd(),e.Container=ty(),e.Transport=$t(),e.loggers=new e.Container;var i=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(a){return e[a]=function(){return i[a].apply(i,arguments)}}),Object.defineProperty(e,"level",{get:function(){return i.level},set:function(o){i.level=o}}),Object.defineProperty(e,"exceptions",{get:function(){return i.exceptions}}),["exitOnError"].forEach(function(a){Object.defineProperty(e,a,{get:function(){return i[a]},set:function(d){i[a]=d}})}),Object.defineProperty(e,"default",{get:function(){return{exceptionHandlers:i.exceptionHandlers,rejectionHandlers:i.rejectionHandlers,transports:i.transports}}}),r.deprecated(e,"setLevels"),r.forFunctions(e,"useFormat",["cli"]),r.forProperties(e,"useFormat",["padLevels","stripColors"]),r.forFunctions(e,"deprecated",["addRewriter","addFilter","clone","extend"]),r.forProperties(e,"deprecated",["emitErrs","levelLength"]),r.moved(e,"createLogger","Logger")})(mi)),mi}var ya={exports:{}},_a,hl;function En(){if(hl)return _a;hl=1;var e=function(t,n){Error.call(this,t),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=t,n&&(this.inner=n)};return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,_a=e,_a}var ba,pl;function Wd(){if(pl)return ba;pl=1;var e=En(),t=function(n,r){e.call(this,n),this.name="NotBeforeError",this.date=r};return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ba=t,ba}var wa,ml;function Yd(){if(ml)return wa;ml=1;var e=En(),t=function(n,r){e.call(this,n),this.name="TokenExpiredError",this.expiredAt=r};return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wa=t,wa}var bt={},Sa,gl;function Jd(){if(gl)return Sa;gl=1;var e=hr().Buffer,t=_n(),n=Ze();function r(i){if(this.buffer=null,this.writable=!0,this.readable=!0,!i)return this.buffer=e.alloc(0),this;if(typeof i.pipe=="function")return this.buffer=e.alloc(0),i.pipe(this),this;if(i.length||typeof i=="object")return this.buffer=i,this.writable=!1,ye.nextTick((function(){this.emit("end",i),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof i+")")}return n.inherits(r,t),r.prototype.write=function(a){this.buffer=e.concat([this.buffer,e.from(a)]),this.emit("data",a)},r.prototype.end=function(a){a&&this.write(a),this.emit("end",a),this.emit("close"),this.writable=!1,this.readable=!1},Sa=r,Sa}var Ea,vl;function ny(){if(vl)return Ea;vl=1;function e(r){var i=(r/8|0)+(r%8===0?0:1);return i}var t={ES256:e(256),ES384:e(384),ES512:e(521)};function n(r){var i=t[r];if(i)return i;throw new Error('Unknown algorithm "'+r+'"')}return Ea=n,Ea}var Ra,yl;function iy(){if(yl)return Ra;yl=1;var e=hr().Buffer,t=ny(),n=128,r=0,i=32,a=16,o=2,d=a|i|r<<6,f=o|r<<6;function v(h){return h.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(h){if(e.isBuffer(h))return h;if(typeof h=="string")return e.from(h,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function l(h,m){h=s(h);var g=t(m),u=g+1,_=h.length,S=0;if(h[S++]!==d)throw new Error('Could not find expected "seq"');var w=h[S++];if(w===(n|1)&&(w=h[S++]),_-S<w)throw new Error('"seq" specified length of "'+w+'", only "'+(_-S)+'" remaining');if(h[S++]!==f)throw new Error('Could not find expected "int" for "r"');var b=h[S++];if(_-S-2<b)throw new Error('"r" specified length of "'+b+'", only "'+(_-S-2)+'" available');if(u<b)throw new Error('"r" specified length of "'+b+'", max of "'+u+'" is acceptable');var x=S;if(S+=b,h[S++]!==f)throw new Error('Could not find expected "int" for "s"');var O=h[S++];if(_-S!==O)throw new Error('"s" specified length of "'+O+'", expected "'+(_-S)+'"');if(u<O)throw new Error('"s" specified length of "'+O+'", max of "'+u+'" is acceptable');var P=S;if(S+=O,S!==_)throw new Error('Expected to consume entire buffer, but "'+(_-S)+'" bytes remain');var M=g-b,W=g-O,V=e.allocUnsafe(M+b+W+O);for(S=0;S<M;++S)V[S]=0;h.copy(V,S,x+Math.max(-M,0),x+b),S=g;for(var E=S;S<E+W;++S)V[S]=0;return h.copy(V,S,P+Math.max(-W,0),P+O),V=V.toString("base64"),V=v(V),V}function c(h,m,g){for(var u=0;m+u<g&&h[m+u]===0;)++u;var _=h[m+u]>=n;return _&&--u,u}function y(h,m){h=s(h);var g=t(m),u=h.length;if(u!==g*2)throw new TypeError('"'+m+'" signatures must be "'+g*2+'" bytes, saw "'+u+'"');var _=c(h,0,g),S=c(h,g,h.length),w=g-_,b=g-S,x=2+w+1+1+b,O=x<n,P=e.allocUnsafe((O?2:3)+x),M=0;return P[M++]=d,O?P[M++]=x:(P[M++]=n|1,P[M++]=x&255),P[M++]=f,P[M++]=w,_<0?(P[M++]=0,M+=h.copy(P,M,0,g)):M+=h.copy(P,M,_,g),P[M++]=f,P[M++]=b,S<0?(P[M++]=0,h.copy(P,M,g)):h.copy(P,M,g+S),P}return Ra={derToJose:l,joseToDer:y},Ra}var Oa,_l;function ay(){if(_l)return Oa;_l=1;var e=or().Buffer,t=or().SlowBuffer;Oa=n;function n(a,o){if(!e.isBuffer(a)||!e.isBuffer(o)||a.length!==o.length)return!1;for(var d=0,f=0;f<a.length;f++)d|=a[f]^o[f];return d===0}n.install=function(){e.prototype.equal=t.prototype.equal=function(o){return n(this,o)}};var r=e.prototype.equal,i=t.prototype.equal;return n.restore=function(){e.prototype.equal=r,t.prototype.equal=i},Oa}var Ta,bl;function Kd(){if(bl)return Ta;bl=1;var e=hr().Buffer,t=Wt(),n=iy(),r=Ze(),i=`"%s" is not a valid algorithm.
|
|
118
118
|
Supported algorithms are:
|
|
119
|
-
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,a="secret must be a string or buffer",o="key must be a string or a buffer",d="key must be a string, a buffer or an object",f=typeof t.createPublicKey=="function";f&&(o+=" or a KeyObject",a+="or a KeyObject");function v(I){if(!e.isBuffer(I)&&typeof I!="string"&&(!f||typeof I!="object"||typeof I.type!="string"||typeof I.asymmetricKeyType!="string"||typeof I.export!="function"))throw h(o)}function s(I){if(!e.isBuffer(I)&&typeof I!="string"&&typeof I!="object")throw h(d)}function l(I){if(!e.isBuffer(I)){if(typeof I=="string")return I;if(!f||typeof I!="object"||I.type!=="secret"||typeof I.export!="function")throw h(a)}}function c(I){return I.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function y(I){I=I.toString();var $=4-I.length%4;if($!==4)for(var z=0;z<$;++z)I+="=";return I.replace(/\-/g,"+").replace(/_/g,"/")}function h(I){var $=[].slice.call(arguments,1),z=r.format.bind(r,I).apply(null,$);return new TypeError(z)}function m(I){return e.isBuffer(I)||typeof I=="string"}function g(I){return m(I)||(I=JSON.stringify(I)),I}function u(I){return function(z,X){l(X),z=g(z);var A=t.createHmac("sha"+I,X),k=(A.update(z),A.digest("base64"));return c(k)}}var _,E="timingSafeEqual"in t?function($,z){return $.byteLength!==z.byteLength?!1:t.timingSafeEqual($,z)}:function($,z){return _||(_=ay()),_($,z)};function w(I){return function(z,X,A){var k=u(I)(z,A);return E(e.from(X),e.from(k))}}function b(I){return function(z,X){s(X),z=g(z);var A=t.createSign("RSA-SHA"+I),k=(A.update(z),A.sign(X,"base64"));return c(k)}}function x(I){return function(z,X,A){v(A),z=g(z),X=y(X);var k=t.createVerify("RSA-SHA"+I);return k.update(z),k.verify(A,X,"base64")}}function O(I){return function(z,X){s(X),z=g(z);var A=t.createSign("RSA-SHA"+I),k=(A.update(z),A.sign({key:X,padding:t.constants.RSA_PKCS1_PSS_PADDING,saltLength:t.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return c(k)}}function P(I){return function(z,X,A){v(A),z=g(z),X=y(X);var k=t.createVerify("RSA-SHA"+I);return k.update(z),k.verify({key:A,padding:t.constants.RSA_PKCS1_PSS_PADDING,saltLength:t.constants.RSA_PSS_SALTLEN_DIGEST},X,"base64")}}function M(I){var $=b(I);return function(){var X=$.apply(null,arguments);return X=n.derToJose(X,"ES"+I),X}}function W(I){var $=x(I);return function(X,A,k){A=n.joseToDer(A,"ES"+I).toString("base64");var j=$(X,A,k);return j}}function V(){return function(){return""}}function S(){return function($,z){return z===""}}return Ta=function($){var z={hs:u,rs:b,ps:O,es:M,none:V},X={hs:w,rs:x,ps:P,es:W,none:S},A=$.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!A)throw h(i,$);var k=(A[1]||A[3]).toLowerCase(),j=A[2];return{sign:z[k](j),verify:X[k](j)}},Ta}var Aa,wl;function Xd(){if(wl)return Aa;wl=1;var e=or().Buffer;return Aa=function(n){return typeof n=="string"?n:typeof n=="number"||e.isBuffer(n)?n.toString():JSON.stringify(n)},Aa}var Ia,El;function oy(){if(El)return Ia;El=1;var e=hr().Buffer,t=Jd(),n=Kd(),r=_n(),i=Xd(),a=Ze();function o(s,l){return e.from(s,l).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function d(s,l,c){c=c||"utf8";var y=o(i(s),"binary"),h=o(i(l),c);return a.format("%s.%s",y,h)}function f(s){var l=s.header,c=s.payload,y=s.secret||s.privateKey,h=s.encoding,m=n(l.alg),g=d(l,c,h),u=m.sign(g,y);return a.format("%s.%s",g,u)}function v(s){var l=s.secret;if(l=l??s.privateKey,l=l??s.key,/^hs/i.test(s.header.alg)===!0&&l==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var c=new t(l);this.readable=!0,this.header=s.header,this.encoding=s.encoding,this.secret=this.privateKey=this.key=c,this.payload=new t(s.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 a.inherits(v,r),v.prototype.sign=function(){try{var l=f({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",l),this.emit("data",l),this.emit("end"),this.readable=!1,l}catch(c){this.readable=!1,this.emit("error",c),this.emit("close")}},v.sign=f,Ia=v,Ia}var xa,Sl;function sy(){if(Sl)return xa;Sl=1;var e=hr().Buffer,t=Jd(),n=Kd(),r=_n(),i=Xd(),a=Ze(),o=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function d(u){return Object.prototype.toString.call(u)==="[object Object]"}function f(u){if(d(u))return u;try{return JSON.parse(u)}catch{return}}function v(u){var _=u.split(".",1)[0];return f(e.from(_,"base64").toString("binary"))}function s(u){return u.split(".",2).join(".")}function l(u){return u.split(".")[2]}function c(u,_){_=_||"utf8";var E=u.split(".")[1];return e.from(E,"base64").toString(_)}function y(u){return o.test(u)&&!!v(u)}function h(u,_,E){if(!_){var w=new Error("Missing algorithm parameter for jws.verify");throw w.code="MISSING_ALGORITHM",w}u=i(u);var b=l(u),x=s(u),O=n(_);return O.verify(x,b,E)}function m(u,_){if(_=_||{},u=i(u),!y(u))return null;var E=v(u);if(!E)return null;var w=c(u);return(E.typ==="JWT"||_.json)&&(w=JSON.parse(w,_.encoding)),{header:E,payload:w,signature:l(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 E=new t(_);this.readable=!0,this.algorithm=u.algorithm,this.encoding=u.encoding,this.secret=this.publicKey=this.key=E,this.signature=new t(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 a.inherits(g,r),g.prototype.verify=function(){try{var _=h(this.signature.buffer,this.algorithm,this.key.buffer),E=m(this.signature.buffer,this.encoding);return this.emit("done",_,E),this.emit("data",_),this.emit("end"),this.readable=!1,_}catch(w){this.readable=!1,this.emit("error",w),this.emit("close")}},g.decode=m,g.isValid=y,g.verify=h,xa=g,xa}var Rl;function ss(){if(Rl)return bt;Rl=1;var e=oy(),t=sy(),n=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];return bt.ALGORITHMS=n,bt.sign=e.sign,bt.verify=t.verify,bt.decode=t.decode,bt.isValid=t.isValid,bt.createSign=function(i){return new e(i)},bt.createVerify=function(i){return new t(i)},bt}var Ca,Ol;function Qd(){if(Ol)return Ca;Ol=1;var e=ss();return Ca=function(t,n){n=n||{};var r=e.decode(t,n);if(!r)return null;var i=r.payload;if(typeof i=="string")try{var a=JSON.parse(i);a!==null&&typeof a=="object"&&(i=a)}catch{}return n.complete===!0?{header:r.header,payload:i,signature:r.signature}:i},Ca}var ka,Tl;function eh(){if(Tl)return ka;Tl=1;var e=Od();return ka=function(t,n){var r=n||Math.floor(Date.now()/1e3);if(typeof t=="string"){var i=e(t);return typeof i>"u"?void 0:Math.floor(r+i/1e3)}else return typeof t=="number"?r+t:void 0},ka}var tn={exports:{}},Pa,Al;function yr(){if(Al)return Pa;Al=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,i=t-6;return Pa={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Pa}var ja,Il;function Rn(){if(Il)return ja;Il=1;var e={};return ja=typeof ye=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},ja}var xl;function _r(){return xl||(xl=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=yr(),a=Rn();t=e.exports={};const o=t.re=[],d=t.safeRe=[],f=t.src=[],v=t.safeSrc=[],s=t.t={};let l=0;const c="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",i],[c,r]],h=g=>{for(const[u,_]of y)g=g.split(`${u}*`).join(`${u}{0,${_}}`).split(`${u}+`).join(`${u}{1,${_}}`);return g},m=(g,u,_)=>{const E=h(u),w=l++;a(g,w,u),s[g]=w,f[w]=u,v[w]=E,o[w]=new RegExp(u,_?"g":void 0),d[w]=new RegExp(E,_?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),m("MAINVERSION",`(${f[s.NUMERICIDENTIFIER]})\\.(${f[s.NUMERICIDENTIFIER]})\\.(${f[s.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${f[s.NUMERICIDENTIFIERLOOSE]})\\.(${f[s.NUMERICIDENTIFIERLOOSE]})\\.(${f[s.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${f[s.NONNUMERICIDENTIFIER]}|${f[s.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${f[s.NONNUMERICIDENTIFIER]}|${f[s.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${f[s.PRERELEASEIDENTIFIER]}(?:\\.${f[s.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${f[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[s.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${c}+`),m("BUILD",`(?:\\+(${f[s.BUILDIDENTIFIER]}(?:\\.${f[s.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${f[s.MAINVERSION]}${f[s.PRERELEASE]}?${f[s.BUILD]}?`),m("FULL",`^${f[s.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${f[s.MAINVERSIONLOOSE]}${f[s.PRERELEASELOOSE]}?${f[s.BUILD]}?`),m("LOOSE",`^${f[s.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${f[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${f[s.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${f[s.XRANGEIDENTIFIER]})(?:\\.(${f[s.XRANGEIDENTIFIER]})(?:\\.(${f[s.XRANGEIDENTIFIER]})(?:${f[s.PRERELEASE]})?${f[s.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${f[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[s.XRANGEIDENTIFIERLOOSE]})(?:${f[s.PRERELEASELOOSE]})?${f[s.BUILD]}?)?)?`),m("XRANGE",`^${f[s.GTLT]}\\s*${f[s.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${f[s.GTLT]}\\s*${f[s.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${f[s.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",f[s.COERCEPLAIN]+`(?:${f[s.PRERELEASE]})?(?:${f[s.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",f[s.COERCE],!0),m("COERCERTLFULL",f[s.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${f[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${f[s.LONETILDE]}${f[s.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${f[s.LONETILDE]}${f[s.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${f[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${f[s.LONECARET]}${f[s.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${f[s.LONECARET]}${f[s.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${f[s.GTLT]}\\s*(${f[s.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${f[s.GTLT]}\\s*(${f[s.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${f[s.GTLT]}\\s*(${f[s.LOOSEPLAIN]}|${f[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${f[s.XRANGEPLAIN]})\\s+-\\s+(${f[s.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${f[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[s.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(tn,tn.exports)),tn.exports}var La,Cl;function us(){if(Cl)return La;Cl=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return La=r=>r?typeof r!="object"?e:r:t,La}var qa,kl;function th(){if(kl)return qa;kl=1;const e=/^[0-9]+$/,t=(r,i)=>{if(typeof r=="number"&&typeof i=="number")return r===i?0:r<i?-1:1;const a=e.test(r),o=e.test(i);return a&&o&&(r=+r,i=+i),r===i?0:a&&!o?-1:o&&!a?1:r<i?-1:1};return qa={compareIdentifiers:t,rcompareIdentifiers:(r,i)=>t(i,r)},qa}var Da,Pl;function Ke(){if(Pl)return Da;Pl=1;const e=Rn(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=yr(),{safeRe:r,t:i}=_r(),a=us(),{compareIdentifiers:o}=th(),d=(v,s)=>{const l=s.split(".");if(l.length>v.length)return!1;for(let c=0;c<l.length;c++)if(o(v[c],l[c])!==0)return!1;return!0};class f{constructor(s,l){if(l=a(l),s instanceof f){if(s.loose===!!l.loose&&s.includePrerelease===!!l.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",s,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=s.trim().match(l.loose?r[i.LOOSE]:r[i.FULL]);if(!c)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){const h=+y;if(h>=0&&h<n)return h}return y}):this.prerelease=[],this.build=c[5]?c[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(s){if(e("SemVer.compare",this.version,this.options,s),!(s instanceof f)){if(typeof s=="string"&&s===this.version)return 0;s=new f(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof f||(s=new f(s,this.options)),this.major<s.major?-1:this.major>s.major?1:this.minor<s.minor?-1:this.minor>s.minor?1:this.patch<s.patch?-1:this.patch>s.patch?1:0}comparePre(s){if(s instanceof f||(s=new f(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let l=0;do{const c=this.prerelease[l],y=s.prerelease[l];if(e("prerelease compare",l,c,y),c===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(c===void 0)return-1;if(c===y)continue;return o(c,y)}while(++l)}compareBuild(s){s instanceof f||(s=new f(s,this.options));let l=0;do{const c=this.build[l],y=s.build[l];if(e("build compare",l,c,y),c===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(c===void 0)return-1;if(c===y)continue;return o(c,y)}while(++l)}inc(s,l,c){if(s.startsWith("pre")){if(!l&&c===!1)throw new Error("invalid increment argument: identifier is empty");if(l){const y=`-${l}`.match(this.options.loose?r[i.PRERELEASELOOSE]:r[i.PRERELEASE]);if(!y||y[1]!==l)throw new Error(`invalid identifier: ${l}`)}}switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",l,c);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",l,c);break;case"prepatch":this.prerelease.length=0,this.inc("patch",l,c),this.inc("pre",l,c);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",l,c),this.inc("pre",l,c);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 y=Number(c)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(l===this.prerelease.join(".")&&c===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(y)}}if(l){let h=[l,y];if(c===!1&&(h=[l]),d(this.prerelease,l)){const m=this.prerelease[l.split(".").length];isNaN(m)&&(this.prerelease=h)}else this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${s}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Da=f,Da}var Na,jl;function zt(){if(jl)return Na;jl=1;const e=Ke();return Na=(n,r,i=!1)=>{if(n instanceof e)return n;try{return new e(n,r)}catch(a){if(!i)return null;throw a}},Na}var Ma,Ll;function uy(){if(Ll)return Ma;Ll=1;const e=zt();return Ma=(n,r)=>{const i=e(n,r);return i?i.version:null},Ma}var Fa,ql;function cy(){if(ql)return Fa;ql=1;const e=zt();return Fa=(n,r)=>{const i=e(n.trim().replace(/^[=v]+/,""),r);return i?i.version:null},Fa}var Ba,Dl;function ly(){if(Dl)return Ba;Dl=1;const e=Ke();return Ba=(n,r,i,a,o)=>{typeof i=="string"&&(o=a,a=i,i=void 0);try{return new e(n instanceof e?n.version:n,i).inc(r,a,o).version}catch{return null}},Ba}var Ua,Nl;function fy(){if(Nl)return Ua;Nl=1;const e=zt();return Ua=(n,r)=>{const i=e(n,null,!0),a=e(r,null,!0),o=i.compare(a);if(o===0)return null;const d=o>0,f=d?i:a,v=d?a:i,s=!!f.prerelease.length;if(!!v.prerelease.length&&!s){if(!v.patch&&!v.minor)return"major";if(v.compareMain(f)===0)return v.minor&&!v.patch?"minor":"patch"}const c=s?"pre":"";return i.major!==a.major?c+"major":i.minor!==a.minor?c+"minor":i.patch!==a.patch?c+"patch":"prerelease"},Ua}var Va,Ml;function dy(){if(Ml)return Va;Ml=1;const e=Ke();return Va=(n,r)=>new e(n,r).major,Va}var $a,Fl;function hy(){if(Fl)return $a;Fl=1;const e=Ke();return $a=(n,r)=>new e(n,r).minor,$a}var za,Bl;function py(){if(Bl)return za;Bl=1;const e=Ke();return za=(n,r)=>new e(n,r).patch,za}var Ga,Ul;function my(){if(Ul)return Ga;Ul=1;const e=zt();return Ga=(n,r)=>{const i=e(n,r);return i&&i.prerelease.length?i.prerelease:null},Ga}var Ha,Vl;function lt(){if(Vl)return Ha;Vl=1;const e=Ke();return Ha=(n,r,i)=>new e(n,i).compare(new e(r,i)),Ha}var Za,$l;function gy(){if($l)return Za;$l=1;const e=lt();return Za=(n,r,i)=>e(r,n,i),Za}var Wa,zl;function vy(){if(zl)return Wa;zl=1;const e=lt();return Wa=(n,r)=>e(n,r,!0),Wa}var Ya,Gl;function cs(){if(Gl)return Ya;Gl=1;const e=Ke();return Ya=(n,r,i)=>{const a=new e(n,i),o=new e(r,i);return a.compare(o)||a.compareBuild(o)},Ya}var Ja,Hl;function yy(){if(Hl)return Ja;Hl=1;const e=cs();return Ja=(n,r)=>n.sort((i,a)=>e(i,a,r)),Ja}var Ka,Zl;function _y(){if(Zl)return Ka;Zl=1;const e=cs();return Ka=(n,r)=>n.sort((i,a)=>e(a,i,r)),Ka}var Xa,Wl;function On(){if(Wl)return Xa;Wl=1;const e=lt();return Xa=(n,r,i)=>e(n,r,i)>0,Xa}var Qa,Yl;function ls(){if(Yl)return Qa;Yl=1;const e=lt();return Qa=(n,r,i)=>e(n,r,i)<0,Qa}var eo,Jl;function rh(){if(Jl)return eo;Jl=1;const e=lt();return eo=(n,r,i)=>e(n,r,i)===0,eo}var to,Kl;function nh(){if(Kl)return to;Kl=1;const e=lt();return to=(n,r,i)=>e(n,r,i)!==0,to}var ro,Xl;function fs(){if(Xl)return ro;Xl=1;const e=lt();return ro=(n,r,i)=>e(n,r,i)>=0,ro}var no,Ql;function ds(){if(Ql)return no;Ql=1;const e=lt();return no=(n,r,i)=>e(n,r,i)<=0,no}var io,ef;function ih(){if(ef)return io;ef=1;const e=rh(),t=nh(),n=On(),r=fs(),i=ls(),a=ds();return io=(d,f,v,s)=>{switch(f){case"===":return typeof d=="object"&&(d=d.version),typeof v=="object"&&(v=v.version),d===v;case"!==":return typeof d=="object"&&(d=d.version),typeof v=="object"&&(v=v.version),d!==v;case"":case"=":case"==":return e(d,v,s);case"!=":return t(d,v,s);case">":return n(d,v,s);case">=":return r(d,v,s);case"<":return i(d,v,s);case"<=":return a(d,v,s);default:throw new TypeError(`Invalid operator: ${f}`)}},io}var ao,tf;function by(){if(tf)return ao;tf=1;const e=Ke(),t=zt(),{safeRe:n,t:r}=_r();return ao=(a,o)=>{if(a instanceof e)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;o=o||{};let d=null;if(!o.rtl)d=a.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);else{const y=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let h;for(;(h=y.exec(a))&&(!d||d.index+d[0].length!==a.length);)(!d||h.index+h[0].length!==d.index+d[0].length)&&(d=h),y.lastIndex=h.index+h[1].length+h[2].length;y.lastIndex=-1}if(d===null)return null;const f=d[2],v=d[3]||"0",s=d[4]||"0",l=o.includePrerelease&&d[5]?`-${d[5]}`:"",c=o.includePrerelease&&d[6]?`+${d[6]}`:"";return t(`${f}.${v}.${s}${l}${c}`,o)},ao}var oo,rf;function wy(){if(rf)return oo;rf=1;const e=zt(),t=yr(),n=Ke(),r=(d,f,v)=>{if(!t.RELEASE_TYPES.includes(f))return null;const s=i(d,v);return s&&a(s,f)},i=(d,f)=>{const v=d instanceof n?d.version:d;return e(v,f)},a=(d,f)=>{if(o(f))return d.version;switch(d.prerelease=[],f){case"major":d.minor=0,d.patch=0;break;case"minor":d.patch=0;break}return d.format()},o=d=>d.startsWith("pre");return oo=r,oo}var so,nf;function Ey(){if(nf)return so;nf=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const r=this.map.get(n);if(r!==void 0)return this.map.delete(n),this.map.set(n,r),r}delete(n){return this.map.delete(n)}set(n,r){if(!this.delete(n)&&r!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(n,r)}return this}}return so=e,so}var uo,af;function ft(){if(af)return uo;af=1;const e=/\s+/g;class t{constructor(k,j){if(j=i(j),k instanceof t)return k.loose===!!j.loose&&k.includePrerelease===!!j.includePrerelease?k:new t(k.raw,j);if(k instanceof a)return this.raw=k.value,this.set=[[k]],this.formatted=void 0,this;if(this.options=j,this.loose=!!j.loose,this.includePrerelease=!!j.includePrerelease,this.raw=k.trim().replace(e," "),this.set=this.raw.split("||").map(N=>this.parseRange(N.trim())).filter(N=>N.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const N=this.set[0];if(this.set=this.set.filter(H=>!u(H[0])),this.set.length===0)this.set=[N];else if(this.set.length>1){for(const H of this.set)if(H.length===1&&_(H[0])){this.set=[H];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let k=0;k<this.set.length;k++){k>0&&(this.formatted+="||");const j=this.set[k];for(let N=0;N<j.length;N++)N>0&&(this.formatted+=" "),this.formatted+=j[N].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(k){k=k.replace(g,"");const N=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+k,H=r.get(N);if(H)return H;const B=this.options.loose,q=B?f[s.HYPHENRANGELOOSE]:f[s.HYPHENRANGE];k=k.replace(q,z(this.options.includePrerelease)),o("hyphen replace",k),k=k.replace(f[s.COMPARATORTRIM],l),o("comparator trim",k),k=k.replace(f[s.TILDETRIM],c),o("tilde trim",k),k=k.replace(f[s.CARETTRIM],y),o("caret trim",k);let L=k.split(" ").map(J=>w(J,this.options)).join(" ").split(/\s+/).map(J=>$(J,this.options));B&&(L=L.filter(J=>(o("loose invalid filter",J,this.options),!!J.match(f[s.COMPARATORLOOSE])))),o("range list",L);const D=new Map,F=L.map(J=>new a(J,this.options));for(const J of F){if(u(J))return[J];D.set(J.value,J)}D.size>1&&D.has("")&&D.delete("");const K=[...D.values()];return r.set(N,K),K}intersects(k,j){if(!(k instanceof t))throw new TypeError("a Range is required");return this.set.some(N=>E(N,j)&&k.set.some(H=>E(H,j)&&N.every(B=>H.every(q=>B.intersects(q,j)))))}test(k){if(!k)return!1;if(typeof k=="string")try{k=new d(k,this.options)}catch{return!1}for(let j=0;j<this.set.length;j++)if(X(this.set[j],k,this.options))return!0;return!1}}uo=t;const n=Ey(),r=new n,i=us(),a=Tn(),o=Rn(),d=Ke(),{safeRe:f,src:v,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:y}=_r(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=yr(),g=new RegExp(v[s.BUILD],"g"),u=A=>A.value==="<0.0.0-0",_=A=>A.value==="",E=(A,k)=>{let j=!0;const N=A.slice();let H=N.pop();for(;j&&N.length;)j=N.every(B=>H.intersects(B,k)),H=N.pop();return j},w=(A,k)=>(A=A.replace(f[s.BUILD],""),o("comp",A,k),A=M(A,k),o("caret",A),A=O(A,k),o("tildes",A),A=V(A,k),o("xrange",A),A=I(A,k),o("stars",A),A),b=A=>!A||A.toLowerCase()==="x"||A==="*",x=(A,k,j)=>b(A)&&!b(k)||b(k)&&j&&!b(j),O=(A,k)=>A.trim().split(/\s+/).map(j=>P(j,k)).join(" "),P=(A,k)=>{const j=k.loose?f[s.TILDELOOSE]:f[s.TILDE],N=k.includePrerelease?"-0":"";return A.replace(j,(H,B,q,L,D)=>{o("tilde",A,H,B,q,L,D);let F;return b(B)?F="":b(q)?F=`>=${B}.0.0${N} <${+B+1}.0.0-0`:b(L)?F=`>=${B}.${q}.0${N} <${B}.${+q+1}.0-0`:D?(o("replaceTilde pr",D),F=`>=${B}.${q}.${L}-${D} <${B}.${+q+1}.0-0`):F=`>=${B}.${q}.${L} <${B}.${+q+1}.0-0`,o("tilde return",F),F})},M=(A,k)=>A.trim().split(/\s+/).map(j=>W(j,k)).join(" "),W=(A,k)=>{o("caret",A,k);const j=k.loose?f[s.CARETLOOSE]:f[s.CARET],N=k.includePrerelease?"-0":"";return A.replace(j,(H,B,q,L,D)=>{o("caret",A,H,B,q,L,D);let F;return b(B)?F="":b(q)?F=`>=${B}.0.0${N} <${+B+1}.0.0-0`:b(L)?B==="0"?F=`>=${B}.${q}.0${N} <${B}.${+q+1}.0-0`:F=`>=${B}.${q}.0${N} <${+B+1}.0.0-0`:D?(o("replaceCaret pr",D),B==="0"?q==="0"?F=`>=${B}.${q}.${L}-${D} <${B}.${q}.${+L+1}-0`:F=`>=${B}.${q}.${L}-${D} <${B}.${+q+1}.0-0`:F=`>=${B}.${q}.${L}-${D} <${+B+1}.0.0-0`):(o("no pr"),B==="0"?q==="0"?F=`>=${B}.${q}.${L} <${B}.${q}.${+L+1}-0`:F=`>=${B}.${q}.${L} <${B}.${+q+1}.0-0`:F=`>=${B}.${q}.${L} <${+B+1}.0.0-0`),o("caret return",F),F})},V=(A,k)=>(o("replaceXRanges",A,k),A.split(/\s+/).map(j=>S(j,k)).join(" ")),S=(A,k)=>{A=A.trim();const j=k.loose?f[s.XRANGELOOSE]:f[s.XRANGE];return A.replace(j,(N,H,B,q,L,D)=>{if(o("xRange",A,N,H,B,q,L,D),x(B,q,L))return A;const F=b(B),K=F||b(q),J=K||b(L),ae=J;return H==="="&&ae&&(H=""),D=k.includePrerelease?"-0":"",F?H===">"||H==="<"?N="<0.0.0-0":N="*":H&&ae?(K&&(q=0),L=0,H===">"?(H=">=",K?(B=+B+1,q=0,L=0):(q=+q+1,L=0)):H==="<="&&(H="<",K?B=+B+1:q=+q+1),H==="<"&&(D="-0"),N=`${H+B}.${q}.${L}${D}`):K?N=`>=${B}.0.0${D} <${+B+1}.0.0-0`:J&&(N=`>=${B}.${q}.0${D} <${B}.${+q+1}.0-0`),o("xRange return",N),N})},I=(A,k)=>(o("replaceStars",A,k),A.trim().replace(f[s.STAR],"")),$=(A,k)=>(o("replaceGTE0",A,k),A.trim().replace(f[k.includePrerelease?s.GTE0PRE:s.GTE0],"")),z=A=>(k,j,N,H,B,q,L,D,F,K,J,ae)=>(b(N)?j="":b(H)?j=`>=${N}.0.0${A?"-0":""}`:b(B)?j=`>=${N}.${H}.0${A?"-0":""}`:q?j=`>=${j}`:j=`>=${j}${A?"-0":""}`,b(F)?D="":b(K)?D=`<${+F+1}.0.0-0`:b(J)?D=`<${F}.${+K+1}.0-0`:ae?D=`<=${F}.${K}.${J}-${ae}`:A?D=`<${F}.${K}.${+J+1}-0`:D=`<=${D}`,`${j} ${D}`.trim()),X=(A,k,j)=>{for(let N=0;N<A.length;N++)if(!A[N].test(k))return!1;if(k.prerelease.length&&!j.includePrerelease){for(let N=0;N<A.length;N++)if(o(A[N].semver),A[N].semver!==a.ANY&&A[N].semver.prerelease.length>0){const H=A[N].semver;if(H.major===k.major&&H.minor===k.minor&&H.patch===k.patch)return!0}return!1}return!0};return uo}var co,of;function Tn(){if(of)return co;of=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(s,l){if(l=n(l),s instanceof t){if(s.loose===!!l.loose)return s;s=s.value}s=s.trim().split(/\s+/).join(" "),o("comparator",s,l),this.options=l,this.loose=!!l.loose,this.parse(s),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(s){const l=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],c=s.match(l);if(!c)throw new TypeError(`Invalid comparator: ${s}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new d(c[2],this.options.loose):this.semver=e}toString(){return this.value}test(s){if(o("Comparator.test",s,this.options.loose),this.semver===e||s===e)return!0;if(typeof s=="string")try{s=new d(s,this.options)}catch{return!1}return a(s,this.operator,this.semver,this.options)}intersects(s,l){if(!(s instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new f(s.value,l).test(this.value):s.operator===""?s.value===""?!0:new f(this.value,l).test(s.semver):(l=n(l),l.includePrerelease&&(this.value==="<0.0.0-0"||s.value==="<0.0.0-0")||!l.includePrerelease&&(this.value.startsWith("<0.0.0")||s.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&s.operator.startsWith(">")||this.operator.startsWith("<")&&s.operator.startsWith("<")||this.semver.version===s.semver.version&&this.operator.includes("=")&&s.operator.includes("=")||a(this.semver,"<",s.semver,l)&&this.operator.startsWith(">")&&s.operator.startsWith("<")||a(this.semver,">",s.semver,l)&&this.operator.startsWith("<")&&s.operator.startsWith(">")))}}co=t;const n=us(),{safeRe:r,t:i}=_r(),a=ih(),o=Rn(),d=Ke(),f=ft();return co}var lo,sf;function An(){if(sf)return lo;sf=1;const e=ft();return lo=(n,r,i)=>{try{r=new e(r,i)}catch{return!1}return r.test(n)},lo}var fo,uf;function Sy(){if(uf)return fo;uf=1;const e=ft();return fo=(n,r)=>new e(n,r).set.map(i=>i.map(a=>a.value).join(" ").trim().split(" ")),fo}var ho,cf;function Ry(){if(cf)return ho;cf=1;const e=Ke(),t=ft();return ho=(r,i,a)=>{let o=null,d=null,f=null;try{f=new t(i,a)}catch{return null}return r.forEach(v=>{f.test(v)&&(!o||d.compare(v)===-1)&&(o=v,d=new e(o,a))}),o},ho}var po,lf;function Oy(){if(lf)return po;lf=1;const e=Ke(),t=ft();return po=(r,i,a)=>{let o=null,d=null,f=null;try{f=new t(i,a)}catch{return null}return r.forEach(v=>{f.test(v)&&(!o||d.compare(v)===1)&&(o=v,d=new e(o,a))}),o},po}var mo,ff;function Ty(){if(ff)return mo;ff=1;const e=Ke(),t=ft(),n=On();return mo=(i,a)=>{i=new t(i,a);let o=new e("0.0.0");if(i.test(o)||(o=new e("0.0.0-0"),i.test(o)))return o;o=null;for(let d=0;d<i.set.length;++d){const f=i.set[d];let v=null;f.forEach(s=>{const l=new e(s.semver.version);switch(s.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!v||n(l,v))&&(v=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),v&&(!o||n(o,v))&&(o=v)}return o&&i.test(o)?o:null},mo}var go,df;function Ay(){if(df)return go;df=1;const e=ft();return go=(n,r)=>{try{return new e(n,r).range||"*"}catch{return null}},go}var vo,hf;function hs(){if(hf)return vo;hf=1;const e=Ke(),t=Tn(),{ANY:n}=t,r=ft(),i=An(),a=On(),o=ls(),d=ds(),f=fs();return vo=(s,l,c,y)=>{s=new e(s,y),l=new r(l,y);let h,m,g,u,_;switch(c){case">":h=a,m=d,g=o,u=">",_=">=";break;case"<":h=o,m=f,g=a,u="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(s,l,y))return!1;for(let E=0;E<l.set.length;++E){const w=l.set[E];let b=null,x=null;if(w.forEach(O=>{O.semver===n&&(O=new t(">=0.0.0")),b=b||O,x=x||O,h(O.semver,b.semver,y)?b=O:g(O.semver,x.semver,y)&&(x=O)}),b.operator===u||b.operator===_||(!x.operator||x.operator===u)&&m(s,x.semver))return!1;if(x.operator===_&&g(s,x.semver))return!1}return!0},vo}var yo,pf;function Iy(){if(pf)return yo;pf=1;const e=hs();return yo=(n,r,i)=>e(n,r,">",i),yo}var _o,mf;function xy(){if(mf)return _o;mf=1;const e=hs();return _o=(n,r,i)=>e(n,r,"<",i),_o}var bo,gf;function Cy(){if(gf)return bo;gf=1;const e=ft();return bo=(n,r,i)=>(n=new e(n,i),r=new e(r,i),n.intersects(r,i)),bo}var wo,vf;function ky(){if(vf)return wo;vf=1;const e=An(),t=lt();return wo=(n,r,i)=>{const a=[];let o=null,d=null;const f=n.sort((c,y)=>t(c,y,i));for(const c of f)e(c,r,i)?(d=c,o||(o=c)):(d&&a.push([o,d]),d=null,o=null);o&&a.push([o,null]);const v=[];for(const[c,y]of a)c===y?v.push(c):!y&&c===f[0]?v.push("*"):y?c===f[0]?v.push(`<=${y}`):v.push(`${c} - ${y}`):v.push(`>=${c}`);const s=v.join(" || "),l=typeof r.raw=="string"?r.raw:String(r);return s.length<l.length?s:r},wo}var Eo,yf;function Py(){if(yf)return Eo;yf=1;const e=ft(),t=Tn(),{ANY:n}=t,r=An(),i=lt(),a=(l,c,y={})=>{if(l===c)return!0;l=new e(l,y),c=new e(c,y);let h=!1;e:for(const m of l.set){for(const g of c.set){const u=f(m,g,y);if(h=h||u!==null,u)continue e}if(h)return!1}return!0},o=[new t(">=0.0.0-0")],d=[new t(">=0.0.0")],f=(l,c,y)=>{if(l===c)return!0;if(l.length===1&&l[0].semver===n){if(c.length===1&&c[0].semver===n)return!0;y.includePrerelease?l=o:l=d}if(c.length===1&&c[0].semver===n){if(y.includePrerelease)return!0;c=d}const h=new Set;let m,g;for(const P of l)P.operator===">"||P.operator===">="?m=v(m,P,y):P.operator==="<"||P.operator==="<="?g=s(g,P,y):h.add(P.semver);if(h.size>1)return null;let u;if(m&&g){if(u=i(m.semver,g.semver,y),u>0)return null;if(u===0&&(m.operator!==">="||g.operator!=="<="))return null}for(const P of h){if(m&&!r(P,String(m),y)||g&&!r(P,String(g),y))return null;for(const M of c)if(!r(P,String(M),y))return!1;return!0}let _,E,w,b,x=g&&!y.includePrerelease&&g.semver.prerelease.length?g.semver:!1,O=m&&!y.includePrerelease&&m.semver.prerelease.length?m.semver:!1;x&&x.prerelease.length===1&&g.operator==="<"&&x.prerelease[0]===0&&(x=!1);for(const P of c){if(b=b||P.operator===">"||P.operator===">=",w=w||P.operator==="<"||P.operator==="<=",m){if(O&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===O.major&&P.semver.minor===O.minor&&P.semver.patch===O.patch&&(O=!1),P.operator===">"||P.operator===">="){if(_=v(m,P,y),_===P&&_!==m)return!1}else if(m.operator===">="&&!P.test(m.semver))return!1}if(g){if(x&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===x.major&&P.semver.minor===x.minor&&P.semver.patch===x.patch&&(x=!1),P.operator==="<"||P.operator==="<="){if(E=s(g,P,y),E===P&&E!==g)return!1}else if(g.operator==="<="&&!P.test(g.semver))return!1}if(!P.operator&&(g||m)&&u!==0)return!1}return!(m&&w&&!g&&u!==0||g&&b&&!m&&u!==0||O||x)},v=(l,c,y)=>{if(!l)return c;const h=i(l.semver,c.semver,y);return h>0?l:h<0||c.operator===">"&&l.operator===">="?c:l},s=(l,c,y)=>{if(!l)return c;const h=i(l.semver,c.semver,y);return h<0?l:h>0||c.operator==="<"&&l.operator==="<="?c:l};return Eo=a,Eo}var So,_f;function ps(){if(_f)return So;_f=1;const e=_r(),t=yr(),n=Ke(),r=th(),i=zt(),a=uy(),o=cy(),d=ly(),f=fy(),v=dy(),s=hy(),l=py(),c=my(),y=lt(),h=gy(),m=vy(),g=cs(),u=yy(),_=_y(),E=On(),w=ls(),b=rh(),x=nh(),O=fs(),P=ds(),M=ih(),W=by(),V=wy(),S=Tn(),I=ft(),$=An(),z=Sy(),X=Ry(),A=Oy(),k=Ty(),j=Ay(),N=hs(),H=Iy(),B=xy(),q=Cy(),L=ky(),D=Py();return So={parse:i,valid:a,clean:o,inc:d,diff:f,major:v,minor:s,patch:l,prerelease:c,compare:y,rcompare:h,compareLoose:m,compareBuild:g,sort:u,rsort:_,gt:E,lt:w,eq:b,neq:x,gte:O,lte:P,cmp:M,coerce:W,truncate:V,Comparator:S,Range:I,satisfies:$,toComparators:z,maxSatisfying:X,minSatisfying:A,minVersion:k,validRange:j,outside:N,gtr:H,ltr:B,intersects:q,simplifyRange:L,subset:D,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers},So}var Ro,bf;function jy(){return bf||(bf=1,Ro=ps().satisfies(ye.version,">=15.7.0")),Ro}var Oo,wf;function Ly(){return wf||(wf=1,Oo=ps().satisfies(ye.version,">=16.9.0")),Oo}var To,Ef;function ah(){if(Ef)return To;Ef=1;const e=jy(),t=Ly(),n={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},r={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return To=function(i,a){if(!i||!a)return;const o=a.asymmetricKeyType;if(!o)return;const d=n[o];if(!d)throw new Error(`Unknown key type "${o}".`);if(!d.includes(i))throw new Error(`"alg" parameter for "${o}" key type must be one of: ${d.join(", ")}.`);if(e)switch(o){case"ec":const f=a.asymmetricKeyDetails.namedCurve,v=r[i];if(f!==v)throw new Error(`"alg" parameter "${i}" requires curve "${v}".`);break;case"rsa-pss":if(t){const s=parseInt(i.slice(-3),10),{hashAlgorithm:l,mgf1HashAlgorithm:c,saltLength:y}=a.asymmetricKeyDetails;if(l!==`sha${s}`||c!==l)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${i}.`);if(y!==void 0&&y>s>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${i}.`)}break}},To}var Ao,Sf;function oh(){if(Sf)return Ao;Sf=1;var e=ps();return Ao=e.satisfies(ye.version,"^6.12.0 || >=8.0.0"),Ao}var Io,Rf;function qy(){if(Rf)return Io;Rf=1;const e=Sn(),t=Wd(),n=Yd(),r=Qd(),i=eh(),a=ah(),o=oh(),d=ss(),{KeyObject:f,createSecretKey:v,createPublicKey:s}=Wt(),l=["RS256","RS384","RS512"],c=["ES256","ES384","ES512"],y=["RS256","RS384","RS512"],h=["HS256","HS384","HS512"];return o&&(l.splice(l.length,0,"PS256","PS384","PS512"),y.splice(y.length,0,"PS256","PS384","PS512")),Io=function(m,g,u,_){typeof u=="function"&&!_&&(_=u,u={}),u||(u={}),u=Object.assign({},u);let E;if(_?E=_:E=function(M,W){if(M)throw M;return W},u.clockTimestamp&&typeof u.clockTimestamp!="number")return E(new e("clockTimestamp must be a number"));if(u.nonce!==void 0&&(typeof u.nonce!="string"||u.nonce.trim()===""))return E(new e("nonce must be a non-empty string"));if(u.allowInvalidAsymmetricKeyTypes!==void 0&&typeof u.allowInvalidAsymmetricKeyTypes!="boolean")return E(new e("allowInvalidAsymmetricKeyTypes must be a boolean"));const w=u.clockTimestamp||Math.floor(Date.now()/1e3);if(!m)return E(new e("jwt must be provided"));if(typeof m!="string")return E(new e("jwt must be a string"));const b=m.split(".");if(b.length!==3)return E(new e("jwt malformed"));let x;try{x=r(m,{complete:!0})}catch(M){return E(M)}if(!x)return E(new e("invalid token"));const O=x.header;let P;if(typeof g=="function"){if(!_)return E(new e("verify must be called asynchronous if secret or public key is provided as a callback"));P=g}else P=function(M,W){return W(null,g)};return P(O,function(M,W){if(M)return E(new e("error in secret or public key callback: "+M.message));const V=b[2].trim()!=="";if(!V&&W)return E(new e("jwt signature is required"));if(V&&!W)return E(new e("secret or public key must be provided"));if(!V&&!u.algorithms)return E(new e('please specify "none" in "algorithms" to verify unsigned tokens'));if(W!=null&&!(W instanceof f))try{W=s(W)}catch{try{W=v(typeof W=="string"?et.from(W):W)}catch{return E(new e("secretOrPublicKey is not valid key material"))}}if(u.algorithms||(W.type==="secret"?u.algorithms=h:["rsa","rsa-pss"].includes(W.asymmetricKeyType)?u.algorithms=y:W.asymmetricKeyType==="ec"?u.algorithms=c:u.algorithms=l),u.algorithms.indexOf(x.header.alg)===-1)return E(new e("invalid algorithm"));if(O.alg.startsWith("HS")&&W.type!=="secret")return E(new e(`secretOrPublicKey must be a symmetric key when using ${O.alg}`));if(/^(?:RS|PS|ES)/.test(O.alg)&&W.type!=="public")return E(new e(`secretOrPublicKey must be an asymmetric key when using ${O.alg}`));if(!u.allowInvalidAsymmetricKeyTypes)try{a(O.alg,W)}catch($){return E($)}let S;try{S=d.verify(m,x.header.alg,W)}catch($){return E($)}if(!S)return E(new e("invalid signature"));const I=x.payload;if(typeof I.nbf<"u"&&!u.ignoreNotBefore){if(typeof I.nbf!="number")return E(new e("invalid nbf value"));if(I.nbf>w+(u.clockTolerance||0))return E(new t("jwt not active",new Date(I.nbf*1e3)))}if(typeof I.exp<"u"&&!u.ignoreExpiration){if(typeof I.exp!="number")return E(new e("invalid exp value"));if(w>=I.exp+(u.clockTolerance||0))return E(new n("jwt expired",new Date(I.exp*1e3)))}if(u.audience){const $=Array.isArray(u.audience)?u.audience:[u.audience];if(!(Array.isArray(I.aud)?I.aud:[I.aud]).some(function(A){return $.some(function(k){return k instanceof RegExp?k.test(A):k===A})}))return E(new e("jwt audience invalid. expected: "+$.join(" or ")))}if(u.issuer&&(typeof u.issuer=="string"&&I.iss!==u.issuer||Array.isArray(u.issuer)&&u.issuer.indexOf(I.iss)===-1))return E(new e("jwt issuer invalid. expected: "+u.issuer));if(u.subject&&I.sub!==u.subject)return E(new e("jwt subject invalid. expected: "+u.subject));if(u.jwtid&&I.jti!==u.jwtid)return E(new e("jwt jwtid invalid. expected: "+u.jwtid));if(u.nonce&&I.nonce!==u.nonce)return E(new e("jwt nonce invalid. expected: "+u.nonce));if(u.maxAge){if(typeof I.iat!="number")return E(new e("iat required when maxAge is specified"));const $=i(u.maxAge,I.iat);if(typeof $>"u")return E(new e('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(w>=$+(u.clockTolerance||0))return E(new n("maxAge exceeded",new Date($*1e3)))}if(u.complete===!0){const $=x.signature;return E(null,{header:O,payload:I,signature:$})}return E(null,I)})},Io}const Dy=Yo(lm);var xo,Of;function Ny(){if(Of)return xo;Of=1;const e=eh(),t=oh(),n=ah(),r=ss(),{includes:i,isBoolean:a,isInteger:o,isNumber:d,isPlainObject:f,isString:v,once:s}=Dy,{KeyObject:l,createSecretKey:c,createPrivateKey:y}=Wt(),h=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];t&&h.splice(3,0,"PS256","PS384","PS512");const m={expiresIn:{isValid:function(x){return o(x)||v(x)&&x},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(x){return o(x)||v(x)&&x},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(x){return v(x)||Array.isArray(x)},message:'"audience" must be a string or array'},algorithm:{isValid:i.bind(null,h),message:'"algorithm" must be a valid string enum value'},header:{isValid:f,message:'"header" must be an object'},encoding:{isValid:v,message:'"encoding" must be a string'},issuer:{isValid:v,message:'"issuer" must be a string'},subject:{isValid:v,message:'"subject" must be a string'},jwtid:{isValid:v,message:'"jwtid" must be a string'},noTimestamp:{isValid:a,message:'"noTimestamp" must be a boolean'},keyid:{isValid:v,message:'"keyid" must be a string'},mutatePayload:{isValid:a,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:a,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:a,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},g={iat:{isValid:d,message:'"iat" should be a number of seconds'},exp:{isValid:d,message:'"exp" should be a number of seconds'},nbf:{isValid:d,message:'"nbf" should be a number of seconds'}};function u(x,O,P,M){if(!f(P))throw new Error('Expected "'+M+'" to be a plain object.');Object.keys(P).forEach(function(W){const V=x[W];if(!V){if(!O)throw new Error('"'+W+'" is not allowed in "'+M+'"');return}if(!V.isValid(P[W]))throw new Error(V.message)})}function _(x){return u(m,!1,x,"options")}function E(x){return u(g,!0,x,"payload")}const w={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},b=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return xo=function(x,O,P,M){typeof P=="function"?(M=P,P={}):P=P||{};const W=typeof x=="object"&&!et.isBuffer(x),V=Object.assign({alg:P.algorithm||"HS256",typ:W?"JWT":void 0,kid:P.keyid},P.header);function S(z){if(M)return M(z);throw z}if(!O&&P.algorithm!=="none")return S(new Error("secretOrPrivateKey must have a value"));if(O!=null&&!(O instanceof l))try{O=y(O)}catch{try{O=c(typeof O=="string"?et.from(O):O)}catch{return S(new Error("secretOrPrivateKey is not valid key material"))}}if(V.alg.startsWith("HS")&&O.type!=="secret")return S(new Error(`secretOrPrivateKey must be a symmetric key when using ${V.alg}`));if(/^(?:RS|PS|ES)/.test(V.alg)){if(O.type!=="private")return S(new Error(`secretOrPrivateKey must be an asymmetric key when using ${V.alg}`));if(!P.allowInsecureKeySizes&&!V.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 ${V.alg}`))}if(typeof x>"u")return S(new Error("payload is required"));if(W){try{E(x)}catch(z){return S(z)}P.mutatePayload||(x=Object.assign({},x))}else{const z=b.filter(function(X){return typeof P[X]<"u"});if(z.length>0)return S(new Error("invalid "+z.join(",")+" option for "+typeof x+" payload"))}if(typeof x.exp<"u"&&typeof P.expiresIn<"u")return S(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof x.nbf<"u"&&typeof P.notBefore<"u")return S(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{_(P)}catch(z){return S(z)}if(!P.allowInvalidAsymmetricKeyTypes)try{n(V.alg,O)}catch(z){return S(z)}const I=x.iat||Math.floor(Date.now()/1e3);if(P.noTimestamp?delete x.iat:W&&(x.iat=I),typeof P.notBefore<"u"){try{x.nbf=e(P.notBefore,I)}catch(z){return S(z)}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 P.expiresIn<"u"&&typeof x=="object"){try{x.exp=e(P.expiresIn,I)}catch(z){return S(z)}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(w).forEach(function(z){const X=w[z];if(typeof P[z]<"u"){if(typeof x[X]<"u")return S(new Error('Bad "options.'+z+'" option. The payload already has an "'+X+'" property.'));x[X]=P[z]}});const $=P.encoding||"utf8";if(typeof M=="function")M=M&&s(M),r.createSign({header:V,privateKey:O,payload:x,encoding:$}).once("error",M).once("done",function(z){if(!P.allowInsecureKeySizes&&/^(?:RS|PS)/.test(V.alg)&&z.length<256)return M(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${V.alg}`));M(null,z)});else{let z=r.sign({header:V,payload:x,secret:O,encoding:$});if(!P.allowInsecureKeySizes&&/^(?:RS|PS)/.test(V.alg)&&z.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${V.alg}`);return z}},xo}var Tf;function My(){return Tf||(Tf=1,(function(e){e.exports={verify:qy(),sign:Ny(),JsonWebTokenError:Sn(),NotBeforeError:Wd(),TokenExpiredError:Yd()},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:Qd()})})(ya)),ya.exports}var Co,Af;function Fy(){if(Af)return Co;Af=1;function e(t){this.token=t.token||"",this.response=t.response||"",this.body=t.responseText||"",this.json=null,this.intuit_tid=t.intuit_tid||""}return e.prototype.processResponse=function(n){this.response=n||"",this.body=n&&n.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=n&&n.headers&&n.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(n){return this.getContentType().indexOf(n)>-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 By="0.0.4",Uy={version:By};var ko,If;function Vy(){if(If)return ko;If=1;function e(t){t=t||{},this.realmId=t.realmId||"",this.token_type=t.token_type||"",this.access_token=t.access_token||"",this.refresh_token=t.refresh_token||"",this.expires_in=t.expires_in||0,this.x_refresh_token_expires_in=t.x_refresh_token_expires_in||0,this.id_token=t.id_token||"",this.latency=t.latency||60*1e3,this.createdAt=t.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(n){return this.access_token=n.access_token,this.refresh_token=n.refresh_token,this.token_type=n.token_type,this.expires_in=n.expires_in,this.x_refresh_token_expires_in=n.x_refresh_token_expires_in,this.id_token=n.id_token||"",this.createdAt=n.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(n){return this.createdAt+n*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)},ko=e,ko}var Po,xf;function $y(){if(xf)return Po;xf=1,Po=e;function e(i,a){var o=et.from(i,"base64"),d=et.from(a,"base64"),f=o.toString("hex"),v=d.toString("hex");f=t(f),v=t(v);var s=f.length/2,l=v.length/2,c=r(s),y=r(l),h="30"+r(s+l+c.length/2+y.length/2+2)+"02"+c+f+"02"+y+v,m=et.from(h,"hex").toString("base64"),g=`-----BEGIN RSA PUBLIC KEY-----
|
|
119
|
+
"HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,a="secret must be a string or buffer",o="key must be a string or a buffer",d="key must be a string, a buffer or an object",f=typeof t.createPublicKey=="function";f&&(o+=" or a KeyObject",a+="or a KeyObject");function v(I){if(!e.isBuffer(I)&&typeof I!="string"&&(!f||typeof I!="object"||typeof I.type!="string"||typeof I.asymmetricKeyType!="string"||typeof I.export!="function"))throw h(o)}function s(I){if(!e.isBuffer(I)&&typeof I!="string"&&typeof I!="object")throw h(d)}function l(I){if(!e.isBuffer(I)){if(typeof I=="string")return I;if(!f||typeof I!="object"||I.type!=="secret"||typeof I.export!="function")throw h(a)}}function c(I){return I.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function y(I){I=I.toString();var $=4-I.length%4;if($!==4)for(var z=0;z<$;++z)I+="=";return I.replace(/\-/g,"+").replace(/_/g,"/")}function h(I){var $=[].slice.call(arguments,1),z=r.format.bind(r,I).apply(null,$);return new TypeError(z)}function m(I){return e.isBuffer(I)||typeof I=="string"}function g(I){return m(I)||(I=JSON.stringify(I)),I}function u(I){return function(z,X){l(X),z=g(z);var A=t.createHmac("sha"+I,X),k=(A.update(z),A.digest("base64"));return c(k)}}var _,S="timingSafeEqual"in t?function($,z){return $.byteLength!==z.byteLength?!1:t.timingSafeEqual($,z)}:function($,z){return _||(_=ay()),_($,z)};function w(I){return function(z,X,A){var k=u(I)(z,A);return S(e.from(X),e.from(k))}}function b(I){return function(z,X){s(X),z=g(z);var A=t.createSign("RSA-SHA"+I),k=(A.update(z),A.sign(X,"base64"));return c(k)}}function x(I){return function(z,X,A){v(A),z=g(z),X=y(X);var k=t.createVerify("RSA-SHA"+I);return k.update(z),k.verify(A,X,"base64")}}function O(I){return function(z,X){s(X),z=g(z);var A=t.createSign("RSA-SHA"+I),k=(A.update(z),A.sign({key:X,padding:t.constants.RSA_PKCS1_PSS_PADDING,saltLength:t.constants.RSA_PSS_SALTLEN_DIGEST},"base64"));return c(k)}}function P(I){return function(z,X,A){v(A),z=g(z),X=y(X);var k=t.createVerify("RSA-SHA"+I);return k.update(z),k.verify({key:A,padding:t.constants.RSA_PKCS1_PSS_PADDING,saltLength:t.constants.RSA_PSS_SALTLEN_DIGEST},X,"base64")}}function M(I){var $=b(I);return function(){var X=$.apply(null,arguments);return X=n.derToJose(X,"ES"+I),X}}function W(I){var $=x(I);return function(X,A,k){A=n.joseToDer(A,"ES"+I).toString("base64");var j=$(X,A,k);return j}}function V(){return function(){return""}}function E(){return function($,z){return z===""}}return Ta=function($){var z={hs:u,rs:b,ps:O,es:M,none:V},X={hs:w,rs:x,ps:P,es:W,none:E},A=$.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!A)throw h(i,$);var k=(A[1]||A[3]).toLowerCase(),j=A[2];return{sign:z[k](j),verify:X[k](j)}},Ta}var Aa,wl;function Xd(){if(wl)return Aa;wl=1;var e=or().Buffer;return Aa=function(n){return typeof n=="string"?n:typeof n=="number"||e.isBuffer(n)?n.toString():JSON.stringify(n)},Aa}var Ia,Sl;function oy(){if(Sl)return Ia;Sl=1;var e=hr().Buffer,t=Jd(),n=Kd(),r=_n(),i=Xd(),a=Ze();function o(s,l){return e.from(s,l).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function d(s,l,c){c=c||"utf8";var y=o(i(s),"binary"),h=o(i(l),c);return a.format("%s.%s",y,h)}function f(s){var l=s.header,c=s.payload,y=s.secret||s.privateKey,h=s.encoding,m=n(l.alg),g=d(l,c,h),u=m.sign(g,y);return a.format("%s.%s",g,u)}function v(s){var l=s.secret;if(l=l??s.privateKey,l=l??s.key,/^hs/i.test(s.header.alg)===!0&&l==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var c=new t(l);this.readable=!0,this.header=s.header,this.encoding=s.encoding,this.secret=this.privateKey=this.key=c,this.payload=new t(s.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 a.inherits(v,r),v.prototype.sign=function(){try{var l=f({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",l),this.emit("data",l),this.emit("end"),this.readable=!1,l}catch(c){this.readable=!1,this.emit("error",c),this.emit("close")}},v.sign=f,Ia=v,Ia}var xa,El;function sy(){if(El)return xa;El=1;var e=hr().Buffer,t=Jd(),n=Kd(),r=_n(),i=Xd(),a=Ze(),o=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function d(u){return Object.prototype.toString.call(u)==="[object Object]"}function f(u){if(d(u))return u;try{return JSON.parse(u)}catch{return}}function v(u){var _=u.split(".",1)[0];return f(e.from(_,"base64").toString("binary"))}function s(u){return u.split(".",2).join(".")}function l(u){return u.split(".")[2]}function c(u,_){_=_||"utf8";var S=u.split(".")[1];return e.from(S,"base64").toString(_)}function y(u){return o.test(u)&&!!v(u)}function h(u,_,S){if(!_){var w=new Error("Missing algorithm parameter for jws.verify");throw w.code="MISSING_ALGORITHM",w}u=i(u);var b=l(u),x=s(u),O=n(_);return O.verify(x,b,S)}function m(u,_){if(_=_||{},u=i(u),!y(u))return null;var S=v(u);if(!S)return null;var w=c(u);return(S.typ==="JWT"||_.json)&&(w=JSON.parse(w,_.encoding)),{header:S,payload:w,signature:l(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 S=new t(_);this.readable=!0,this.algorithm=u.algorithm,this.encoding=u.encoding,this.secret=this.publicKey=this.key=S,this.signature=new t(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 a.inherits(g,r),g.prototype.verify=function(){try{var _=h(this.signature.buffer,this.algorithm,this.key.buffer),S=m(this.signature.buffer,this.encoding);return this.emit("done",_,S),this.emit("data",_),this.emit("end"),this.readable=!1,_}catch(w){this.readable=!1,this.emit("error",w),this.emit("close")}},g.decode=m,g.isValid=y,g.verify=h,xa=g,xa}var Rl;function ss(){if(Rl)return bt;Rl=1;var e=oy(),t=sy(),n=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];return bt.ALGORITHMS=n,bt.sign=e.sign,bt.verify=t.verify,bt.decode=t.decode,bt.isValid=t.isValid,bt.createSign=function(i){return new e(i)},bt.createVerify=function(i){return new t(i)},bt}var Ca,Ol;function Qd(){if(Ol)return Ca;Ol=1;var e=ss();return Ca=function(t,n){n=n||{};var r=e.decode(t,n);if(!r)return null;var i=r.payload;if(typeof i=="string")try{var a=JSON.parse(i);a!==null&&typeof a=="object"&&(i=a)}catch{}return n.complete===!0?{header:r.header,payload:i,signature:r.signature}:i},Ca}var ka,Tl;function eh(){if(Tl)return ka;Tl=1;var e=Od();return ka=function(t,n){var r=n||Math.floor(Date.now()/1e3);if(typeof t=="string"){var i=e(t);return typeof i>"u"?void 0:Math.floor(r+i/1e3)}else return typeof t=="number"?r+t:void 0},ka}var tn={exports:{}},Pa,Al;function yr(){if(Al)return Pa;Al=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,i=t-6;return Pa={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Pa}var ja,Il;function Rn(){if(Il)return ja;Il=1;var e={};return ja=typeof ye=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},ja}var xl;function _r(){return xl||(xl=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=yr(),a=Rn();t=e.exports={};const o=t.re=[],d=t.safeRe=[],f=t.src=[],v=t.safeSrc=[],s=t.t={};let l=0;const c="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",i],[c,r]],h=g=>{for(const[u,_]of y)g=g.split(`${u}*`).join(`${u}{0,${_}}`).split(`${u}+`).join(`${u}{1,${_}}`);return g},m=(g,u,_)=>{const S=h(u),w=l++;a(g,w,u),s[g]=w,f[w]=u,v[w]=S,o[w]=new RegExp(u,_?"g":void 0),d[w]=new RegExp(S,_?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),m("MAINVERSION",`(${f[s.NUMERICIDENTIFIER]})\\.(${f[s.NUMERICIDENTIFIER]})\\.(${f[s.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${f[s.NUMERICIDENTIFIERLOOSE]})\\.(${f[s.NUMERICIDENTIFIERLOOSE]})\\.(${f[s.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${f[s.NONNUMERICIDENTIFIER]}|${f[s.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${f[s.NONNUMERICIDENTIFIER]}|${f[s.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${f[s.PRERELEASEIDENTIFIER]}(?:\\.${f[s.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${f[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[s.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${c}+`),m("BUILD",`(?:\\+(${f[s.BUILDIDENTIFIER]}(?:\\.${f[s.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${f[s.MAINVERSION]}${f[s.PRERELEASE]}?${f[s.BUILD]}?`),m("FULL",`^${f[s.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${f[s.MAINVERSIONLOOSE]}${f[s.PRERELEASELOOSE]}?${f[s.BUILD]}?`),m("LOOSE",`^${f[s.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${f[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${f[s.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${f[s.XRANGEIDENTIFIER]})(?:\\.(${f[s.XRANGEIDENTIFIER]})(?:\\.(${f[s.XRANGEIDENTIFIER]})(?:${f[s.PRERELEASE]})?${f[s.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${f[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[s.XRANGEIDENTIFIERLOOSE]})(?:${f[s.PRERELEASELOOSE]})?${f[s.BUILD]}?)?)?`),m("XRANGE",`^${f[s.GTLT]}\\s*${f[s.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${f[s.GTLT]}\\s*${f[s.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${f[s.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",f[s.COERCEPLAIN]+`(?:${f[s.PRERELEASE]})?(?:${f[s.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",f[s.COERCE],!0),m("COERCERTLFULL",f[s.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${f[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${f[s.LONETILDE]}${f[s.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${f[s.LONETILDE]}${f[s.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${f[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${f[s.LONECARET]}${f[s.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${f[s.LONECARET]}${f[s.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${f[s.GTLT]}\\s*(${f[s.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${f[s.GTLT]}\\s*(${f[s.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${f[s.GTLT]}\\s*(${f[s.LOOSEPLAIN]}|${f[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${f[s.XRANGEPLAIN]})\\s+-\\s+(${f[s.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${f[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[s.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(tn,tn.exports)),tn.exports}var La,Cl;function us(){if(Cl)return La;Cl=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return La=r=>r?typeof r!="object"?e:r:t,La}var qa,kl;function th(){if(kl)return qa;kl=1;const e=/^[0-9]+$/,t=(r,i)=>{if(typeof r=="number"&&typeof i=="number")return r===i?0:r<i?-1:1;const a=e.test(r),o=e.test(i);return a&&o&&(r=+r,i=+i),r===i?0:a&&!o?-1:o&&!a?1:r<i?-1:1};return qa={compareIdentifiers:t,rcompareIdentifiers:(r,i)=>t(i,r)},qa}var Da,Pl;function Ke(){if(Pl)return Da;Pl=1;const e=Rn(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=yr(),{safeRe:r,t:i}=_r(),a=us(),{compareIdentifiers:o}=th(),d=(v,s)=>{const l=s.split(".");if(l.length>v.length)return!1;for(let c=0;c<l.length;c++)if(o(v[c],l[c])!==0)return!1;return!0};class f{constructor(s,l){if(l=a(l),s instanceof f){if(s.loose===!!l.loose&&s.includePrerelease===!!l.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",s,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=s.trim().match(l.loose?r[i.LOOSE]:r[i.FULL]);if(!c)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){const h=+y;if(h>=0&&h<n)return h}return y}):this.prerelease=[],this.build=c[5]?c[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(s){if(e("SemVer.compare",this.version,this.options,s),!(s instanceof f)){if(typeof s=="string"&&s===this.version)return 0;s=new f(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof f||(s=new f(s,this.options)),this.major<s.major?-1:this.major>s.major?1:this.minor<s.minor?-1:this.minor>s.minor?1:this.patch<s.patch?-1:this.patch>s.patch?1:0}comparePre(s){if(s instanceof f||(s=new f(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let l=0;do{const c=this.prerelease[l],y=s.prerelease[l];if(e("prerelease compare",l,c,y),c===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(c===void 0)return-1;if(c===y)continue;return o(c,y)}while(++l)}compareBuild(s){s instanceof f||(s=new f(s,this.options));let l=0;do{const c=this.build[l],y=s.build[l];if(e("build compare",l,c,y),c===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(c===void 0)return-1;if(c===y)continue;return o(c,y)}while(++l)}inc(s,l,c){if(s.startsWith("pre")){if(!l&&c===!1)throw new Error("invalid increment argument: identifier is empty");if(l){const y=`-${l}`.match(this.options.loose?r[i.PRERELEASELOOSE]:r[i.PRERELEASE]);if(!y||y[1]!==l)throw new Error(`invalid identifier: ${l}`)}}switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",l,c);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",l,c);break;case"prepatch":this.prerelease.length=0,this.inc("patch",l,c),this.inc("pre",l,c);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",l,c),this.inc("pre",l,c);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 y=Number(c)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(l===this.prerelease.join(".")&&c===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(y)}}if(l){let h=[l,y];if(c===!1&&(h=[l]),d(this.prerelease,l)){const m=this.prerelease[l.split(".").length];isNaN(m)&&(this.prerelease=h)}else this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${s}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Da=f,Da}var Na,jl;function zt(){if(jl)return Na;jl=1;const e=Ke();return Na=(n,r,i=!1)=>{if(n instanceof e)return n;try{return new e(n,r)}catch(a){if(!i)return null;throw a}},Na}var Ma,Ll;function uy(){if(Ll)return Ma;Ll=1;const e=zt();return Ma=(n,r)=>{const i=e(n,r);return i?i.version:null},Ma}var Fa,ql;function cy(){if(ql)return Fa;ql=1;const e=zt();return Fa=(n,r)=>{const i=e(n.trim().replace(/^[=v]+/,""),r);return i?i.version:null},Fa}var Ba,Dl;function ly(){if(Dl)return Ba;Dl=1;const e=Ke();return Ba=(n,r,i,a,o)=>{typeof i=="string"&&(o=a,a=i,i=void 0);try{return new e(n instanceof e?n.version:n,i).inc(r,a,o).version}catch{return null}},Ba}var Ua,Nl;function fy(){if(Nl)return Ua;Nl=1;const e=zt();return Ua=(n,r)=>{const i=e(n,null,!0),a=e(r,null,!0),o=i.compare(a);if(o===0)return null;const d=o>0,f=d?i:a,v=d?a:i,s=!!f.prerelease.length;if(!!v.prerelease.length&&!s){if(!v.patch&&!v.minor)return"major";if(v.compareMain(f)===0)return v.minor&&!v.patch?"minor":"patch"}const c=s?"pre":"";return i.major!==a.major?c+"major":i.minor!==a.minor?c+"minor":i.patch!==a.patch?c+"patch":"prerelease"},Ua}var Va,Ml;function dy(){if(Ml)return Va;Ml=1;const e=Ke();return Va=(n,r)=>new e(n,r).major,Va}var $a,Fl;function hy(){if(Fl)return $a;Fl=1;const e=Ke();return $a=(n,r)=>new e(n,r).minor,$a}var za,Bl;function py(){if(Bl)return za;Bl=1;const e=Ke();return za=(n,r)=>new e(n,r).patch,za}var Ga,Ul;function my(){if(Ul)return Ga;Ul=1;const e=zt();return Ga=(n,r)=>{const i=e(n,r);return i&&i.prerelease.length?i.prerelease:null},Ga}var Ha,Vl;function lt(){if(Vl)return Ha;Vl=1;const e=Ke();return Ha=(n,r,i)=>new e(n,i).compare(new e(r,i)),Ha}var Za,$l;function gy(){if($l)return Za;$l=1;const e=lt();return Za=(n,r,i)=>e(r,n,i),Za}var Wa,zl;function vy(){if(zl)return Wa;zl=1;const e=lt();return Wa=(n,r)=>e(n,r,!0),Wa}var Ya,Gl;function cs(){if(Gl)return Ya;Gl=1;const e=Ke();return Ya=(n,r,i)=>{const a=new e(n,i),o=new e(r,i);return a.compare(o)||a.compareBuild(o)},Ya}var Ja,Hl;function yy(){if(Hl)return Ja;Hl=1;const e=cs();return Ja=(n,r)=>n.sort((i,a)=>e(i,a,r)),Ja}var Ka,Zl;function _y(){if(Zl)return Ka;Zl=1;const e=cs();return Ka=(n,r)=>n.sort((i,a)=>e(a,i,r)),Ka}var Xa,Wl;function On(){if(Wl)return Xa;Wl=1;const e=lt();return Xa=(n,r,i)=>e(n,r,i)>0,Xa}var Qa,Yl;function ls(){if(Yl)return Qa;Yl=1;const e=lt();return Qa=(n,r,i)=>e(n,r,i)<0,Qa}var eo,Jl;function rh(){if(Jl)return eo;Jl=1;const e=lt();return eo=(n,r,i)=>e(n,r,i)===0,eo}var to,Kl;function nh(){if(Kl)return to;Kl=1;const e=lt();return to=(n,r,i)=>e(n,r,i)!==0,to}var ro,Xl;function fs(){if(Xl)return ro;Xl=1;const e=lt();return ro=(n,r,i)=>e(n,r,i)>=0,ro}var no,Ql;function ds(){if(Ql)return no;Ql=1;const e=lt();return no=(n,r,i)=>e(n,r,i)<=0,no}var io,ef;function ih(){if(ef)return io;ef=1;const e=rh(),t=nh(),n=On(),r=fs(),i=ls(),a=ds();return io=(d,f,v,s)=>{switch(f){case"===":return typeof d=="object"&&(d=d.version),typeof v=="object"&&(v=v.version),d===v;case"!==":return typeof d=="object"&&(d=d.version),typeof v=="object"&&(v=v.version),d!==v;case"":case"=":case"==":return e(d,v,s);case"!=":return t(d,v,s);case">":return n(d,v,s);case">=":return r(d,v,s);case"<":return i(d,v,s);case"<=":return a(d,v,s);default:throw new TypeError(`Invalid operator: ${f}`)}},io}var ao,tf;function by(){if(tf)return ao;tf=1;const e=Ke(),t=zt(),{safeRe:n,t:r}=_r();return ao=(a,o)=>{if(a instanceof e)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;o=o||{};let d=null;if(!o.rtl)d=a.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);else{const y=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let h;for(;(h=y.exec(a))&&(!d||d.index+d[0].length!==a.length);)(!d||h.index+h[0].length!==d.index+d[0].length)&&(d=h),y.lastIndex=h.index+h[1].length+h[2].length;y.lastIndex=-1}if(d===null)return null;const f=d[2],v=d[3]||"0",s=d[4]||"0",l=o.includePrerelease&&d[5]?`-${d[5]}`:"",c=o.includePrerelease&&d[6]?`+${d[6]}`:"";return t(`${f}.${v}.${s}${l}${c}`,o)},ao}var oo,rf;function wy(){if(rf)return oo;rf=1;const e=zt(),t=yr(),n=Ke(),r=(d,f,v)=>{if(!t.RELEASE_TYPES.includes(f))return null;const s=i(d,v);return s&&a(s,f)},i=(d,f)=>{const v=d instanceof n?d.version:d;return e(v,f)},a=(d,f)=>{if(o(f))return d.version;switch(d.prerelease=[],f){case"major":d.minor=0,d.patch=0;break;case"minor":d.patch=0;break}return d.format()},o=d=>d.startsWith("pre");return oo=r,oo}var so,nf;function Sy(){if(nf)return so;nf=1;class e{constructor(){this.max=1e3,this.map=new Map}get(n){const r=this.map.get(n);if(r!==void 0)return this.map.delete(n),this.map.set(n,r),r}delete(n){return this.map.delete(n)}set(n,r){if(!this.delete(n)&&r!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(n,r)}return this}}return so=e,so}var uo,af;function ft(){if(af)return uo;af=1;const e=/\s+/g;class t{constructor(k,j){if(j=i(j),k instanceof t)return k.loose===!!j.loose&&k.includePrerelease===!!j.includePrerelease?k:new t(k.raw,j);if(k instanceof a)return this.raw=k.value,this.set=[[k]],this.formatted=void 0,this;if(this.options=j,this.loose=!!j.loose,this.includePrerelease=!!j.includePrerelease,this.raw=k.trim().replace(e," "),this.set=this.raw.split("||").map(N=>this.parseRange(N.trim())).filter(N=>N.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const N=this.set[0];if(this.set=this.set.filter(H=>!u(H[0])),this.set.length===0)this.set=[N];else if(this.set.length>1){for(const H of this.set)if(H.length===1&&_(H[0])){this.set=[H];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let k=0;k<this.set.length;k++){k>0&&(this.formatted+="||");const j=this.set[k];for(let N=0;N<j.length;N++)N>0&&(this.formatted+=" "),this.formatted+=j[N].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(k){k=k.replace(g,"");const N=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+k,H=r.get(N);if(H)return H;const B=this.options.loose,q=B?f[s.HYPHENRANGELOOSE]:f[s.HYPHENRANGE];k=k.replace(q,z(this.options.includePrerelease)),o("hyphen replace",k),k=k.replace(f[s.COMPARATORTRIM],l),o("comparator trim",k),k=k.replace(f[s.TILDETRIM],c),o("tilde trim",k),k=k.replace(f[s.CARETTRIM],y),o("caret trim",k);let L=k.split(" ").map(J=>w(J,this.options)).join(" ").split(/\s+/).map(J=>$(J,this.options));B&&(L=L.filter(J=>(o("loose invalid filter",J,this.options),!!J.match(f[s.COMPARATORLOOSE])))),o("range list",L);const D=new Map,F=L.map(J=>new a(J,this.options));for(const J of F){if(u(J))return[J];D.set(J.value,J)}D.size>1&&D.has("")&&D.delete("");const K=[...D.values()];return r.set(N,K),K}intersects(k,j){if(!(k instanceof t))throw new TypeError("a Range is required");return this.set.some(N=>S(N,j)&&k.set.some(H=>S(H,j)&&N.every(B=>H.every(q=>B.intersects(q,j)))))}test(k){if(!k)return!1;if(typeof k=="string")try{k=new d(k,this.options)}catch{return!1}for(let j=0;j<this.set.length;j++)if(X(this.set[j],k,this.options))return!0;return!1}}uo=t;const n=Sy(),r=new n,i=us(),a=Tn(),o=Rn(),d=Ke(),{safeRe:f,src:v,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:y}=_r(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=yr(),g=new RegExp(v[s.BUILD],"g"),u=A=>A.value==="<0.0.0-0",_=A=>A.value==="",S=(A,k)=>{let j=!0;const N=A.slice();let H=N.pop();for(;j&&N.length;)j=N.every(B=>H.intersects(B,k)),H=N.pop();return j},w=(A,k)=>(A=A.replace(f[s.BUILD],""),o("comp",A,k),A=M(A,k),o("caret",A),A=O(A,k),o("tildes",A),A=V(A,k),o("xrange",A),A=I(A,k),o("stars",A),A),b=A=>!A||A.toLowerCase()==="x"||A==="*",x=(A,k,j)=>b(A)&&!b(k)||b(k)&&j&&!b(j),O=(A,k)=>A.trim().split(/\s+/).map(j=>P(j,k)).join(" "),P=(A,k)=>{const j=k.loose?f[s.TILDELOOSE]:f[s.TILDE],N=k.includePrerelease?"-0":"";return A.replace(j,(H,B,q,L,D)=>{o("tilde",A,H,B,q,L,D);let F;return b(B)?F="":b(q)?F=`>=${B}.0.0${N} <${+B+1}.0.0-0`:b(L)?F=`>=${B}.${q}.0${N} <${B}.${+q+1}.0-0`:D?(o("replaceTilde pr",D),F=`>=${B}.${q}.${L}-${D} <${B}.${+q+1}.0-0`):F=`>=${B}.${q}.${L} <${B}.${+q+1}.0-0`,o("tilde return",F),F})},M=(A,k)=>A.trim().split(/\s+/).map(j=>W(j,k)).join(" "),W=(A,k)=>{o("caret",A,k);const j=k.loose?f[s.CARETLOOSE]:f[s.CARET],N=k.includePrerelease?"-0":"";return A.replace(j,(H,B,q,L,D)=>{o("caret",A,H,B,q,L,D);let F;return b(B)?F="":b(q)?F=`>=${B}.0.0${N} <${+B+1}.0.0-0`:b(L)?B==="0"?F=`>=${B}.${q}.0${N} <${B}.${+q+1}.0-0`:F=`>=${B}.${q}.0${N} <${+B+1}.0.0-0`:D?(o("replaceCaret pr",D),B==="0"?q==="0"?F=`>=${B}.${q}.${L}-${D} <${B}.${q}.${+L+1}-0`:F=`>=${B}.${q}.${L}-${D} <${B}.${+q+1}.0-0`:F=`>=${B}.${q}.${L}-${D} <${+B+1}.0.0-0`):(o("no pr"),B==="0"?q==="0"?F=`>=${B}.${q}.${L} <${B}.${q}.${+L+1}-0`:F=`>=${B}.${q}.${L} <${B}.${+q+1}.0-0`:F=`>=${B}.${q}.${L} <${+B+1}.0.0-0`),o("caret return",F),F})},V=(A,k)=>(o("replaceXRanges",A,k),A.split(/\s+/).map(j=>E(j,k)).join(" ")),E=(A,k)=>{A=A.trim();const j=k.loose?f[s.XRANGELOOSE]:f[s.XRANGE];return A.replace(j,(N,H,B,q,L,D)=>{if(o("xRange",A,N,H,B,q,L,D),x(B,q,L))return A;const F=b(B),K=F||b(q),J=K||b(L),ae=J;return H==="="&&ae&&(H=""),D=k.includePrerelease?"-0":"",F?H===">"||H==="<"?N="<0.0.0-0":N="*":H&&ae?(K&&(q=0),L=0,H===">"?(H=">=",K?(B=+B+1,q=0,L=0):(q=+q+1,L=0)):H==="<="&&(H="<",K?B=+B+1:q=+q+1),H==="<"&&(D="-0"),N=`${H+B}.${q}.${L}${D}`):K?N=`>=${B}.0.0${D} <${+B+1}.0.0-0`:J&&(N=`>=${B}.${q}.0${D} <${B}.${+q+1}.0-0`),o("xRange return",N),N})},I=(A,k)=>(o("replaceStars",A,k),A.trim().replace(f[s.STAR],"")),$=(A,k)=>(o("replaceGTE0",A,k),A.trim().replace(f[k.includePrerelease?s.GTE0PRE:s.GTE0],"")),z=A=>(k,j,N,H,B,q,L,D,F,K,J,ae)=>(b(N)?j="":b(H)?j=`>=${N}.0.0${A?"-0":""}`:b(B)?j=`>=${N}.${H}.0${A?"-0":""}`:q?j=`>=${j}`:j=`>=${j}${A?"-0":""}`,b(F)?D="":b(K)?D=`<${+F+1}.0.0-0`:b(J)?D=`<${F}.${+K+1}.0-0`:ae?D=`<=${F}.${K}.${J}-${ae}`:A?D=`<${F}.${K}.${+J+1}-0`:D=`<=${D}`,`${j} ${D}`.trim()),X=(A,k,j)=>{for(let N=0;N<A.length;N++)if(!A[N].test(k))return!1;if(k.prerelease.length&&!j.includePrerelease){for(let N=0;N<A.length;N++)if(o(A[N].semver),A[N].semver!==a.ANY&&A[N].semver.prerelease.length>0){const H=A[N].semver;if(H.major===k.major&&H.minor===k.minor&&H.patch===k.patch)return!0}return!1}return!0};return uo}var co,of;function Tn(){if(of)return co;of=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(s,l){if(l=n(l),s instanceof t){if(s.loose===!!l.loose)return s;s=s.value}s=s.trim().split(/\s+/).join(" "),o("comparator",s,l),this.options=l,this.loose=!!l.loose,this.parse(s),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(s){const l=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],c=s.match(l);if(!c)throw new TypeError(`Invalid comparator: ${s}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new d(c[2],this.options.loose):this.semver=e}toString(){return this.value}test(s){if(o("Comparator.test",s,this.options.loose),this.semver===e||s===e)return!0;if(typeof s=="string")try{s=new d(s,this.options)}catch{return!1}return a(s,this.operator,this.semver,this.options)}intersects(s,l){if(!(s instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new f(s.value,l).test(this.value):s.operator===""?s.value===""?!0:new f(this.value,l).test(s.semver):(l=n(l),l.includePrerelease&&(this.value==="<0.0.0-0"||s.value==="<0.0.0-0")||!l.includePrerelease&&(this.value.startsWith("<0.0.0")||s.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&s.operator.startsWith(">")||this.operator.startsWith("<")&&s.operator.startsWith("<")||this.semver.version===s.semver.version&&this.operator.includes("=")&&s.operator.includes("=")||a(this.semver,"<",s.semver,l)&&this.operator.startsWith(">")&&s.operator.startsWith("<")||a(this.semver,">",s.semver,l)&&this.operator.startsWith("<")&&s.operator.startsWith(">")))}}co=t;const n=us(),{safeRe:r,t:i}=_r(),a=ih(),o=Rn(),d=Ke(),f=ft();return co}var lo,sf;function An(){if(sf)return lo;sf=1;const e=ft();return lo=(n,r,i)=>{try{r=new e(r,i)}catch{return!1}return r.test(n)},lo}var fo,uf;function Ey(){if(uf)return fo;uf=1;const e=ft();return fo=(n,r)=>new e(n,r).set.map(i=>i.map(a=>a.value).join(" ").trim().split(" ")),fo}var ho,cf;function Ry(){if(cf)return ho;cf=1;const e=Ke(),t=ft();return ho=(r,i,a)=>{let o=null,d=null,f=null;try{f=new t(i,a)}catch{return null}return r.forEach(v=>{f.test(v)&&(!o||d.compare(v)===-1)&&(o=v,d=new e(o,a))}),o},ho}var po,lf;function Oy(){if(lf)return po;lf=1;const e=Ke(),t=ft();return po=(r,i,a)=>{let o=null,d=null,f=null;try{f=new t(i,a)}catch{return null}return r.forEach(v=>{f.test(v)&&(!o||d.compare(v)===1)&&(o=v,d=new e(o,a))}),o},po}var mo,ff;function Ty(){if(ff)return mo;ff=1;const e=Ke(),t=ft(),n=On();return mo=(i,a)=>{i=new t(i,a);let o=new e("0.0.0");if(i.test(o)||(o=new e("0.0.0-0"),i.test(o)))return o;o=null;for(let d=0;d<i.set.length;++d){const f=i.set[d];let v=null;f.forEach(s=>{const l=new e(s.semver.version);switch(s.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!v||n(l,v))&&(v=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),v&&(!o||n(o,v))&&(o=v)}return o&&i.test(o)?o:null},mo}var go,df;function Ay(){if(df)return go;df=1;const e=ft();return go=(n,r)=>{try{return new e(n,r).range||"*"}catch{return null}},go}var vo,hf;function hs(){if(hf)return vo;hf=1;const e=Ke(),t=Tn(),{ANY:n}=t,r=ft(),i=An(),a=On(),o=ls(),d=ds(),f=fs();return vo=(s,l,c,y)=>{s=new e(s,y),l=new r(l,y);let h,m,g,u,_;switch(c){case">":h=a,m=d,g=o,u=">",_=">=";break;case"<":h=o,m=f,g=a,u="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(s,l,y))return!1;for(let S=0;S<l.set.length;++S){const w=l.set[S];let b=null,x=null;if(w.forEach(O=>{O.semver===n&&(O=new t(">=0.0.0")),b=b||O,x=x||O,h(O.semver,b.semver,y)?b=O:g(O.semver,x.semver,y)&&(x=O)}),b.operator===u||b.operator===_||(!x.operator||x.operator===u)&&m(s,x.semver))return!1;if(x.operator===_&&g(s,x.semver))return!1}return!0},vo}var yo,pf;function Iy(){if(pf)return yo;pf=1;const e=hs();return yo=(n,r,i)=>e(n,r,">",i),yo}var _o,mf;function xy(){if(mf)return _o;mf=1;const e=hs();return _o=(n,r,i)=>e(n,r,"<",i),_o}var bo,gf;function Cy(){if(gf)return bo;gf=1;const e=ft();return bo=(n,r,i)=>(n=new e(n,i),r=new e(r,i),n.intersects(r,i)),bo}var wo,vf;function ky(){if(vf)return wo;vf=1;const e=An(),t=lt();return wo=(n,r,i)=>{const a=[];let o=null,d=null;const f=n.sort((c,y)=>t(c,y,i));for(const c of f)e(c,r,i)?(d=c,o||(o=c)):(d&&a.push([o,d]),d=null,o=null);o&&a.push([o,null]);const v=[];for(const[c,y]of a)c===y?v.push(c):!y&&c===f[0]?v.push("*"):y?c===f[0]?v.push(`<=${y}`):v.push(`${c} - ${y}`):v.push(`>=${c}`);const s=v.join(" || "),l=typeof r.raw=="string"?r.raw:String(r);return s.length<l.length?s:r},wo}var So,yf;function Py(){if(yf)return So;yf=1;const e=ft(),t=Tn(),{ANY:n}=t,r=An(),i=lt(),a=(l,c,y={})=>{if(l===c)return!0;l=new e(l,y),c=new e(c,y);let h=!1;e:for(const m of l.set){for(const g of c.set){const u=f(m,g,y);if(h=h||u!==null,u)continue e}if(h)return!1}return!0},o=[new t(">=0.0.0-0")],d=[new t(">=0.0.0")],f=(l,c,y)=>{if(l===c)return!0;if(l.length===1&&l[0].semver===n){if(c.length===1&&c[0].semver===n)return!0;y.includePrerelease?l=o:l=d}if(c.length===1&&c[0].semver===n){if(y.includePrerelease)return!0;c=d}const h=new Set;let m,g;for(const P of l)P.operator===">"||P.operator===">="?m=v(m,P,y):P.operator==="<"||P.operator==="<="?g=s(g,P,y):h.add(P.semver);if(h.size>1)return null;let u;if(m&&g){if(u=i(m.semver,g.semver,y),u>0)return null;if(u===0&&(m.operator!==">="||g.operator!=="<="))return null}for(const P of h){if(m&&!r(P,String(m),y)||g&&!r(P,String(g),y))return null;for(const M of c)if(!r(P,String(M),y))return!1;return!0}let _,S,w,b,x=g&&!y.includePrerelease&&g.semver.prerelease.length?g.semver:!1,O=m&&!y.includePrerelease&&m.semver.prerelease.length?m.semver:!1;x&&x.prerelease.length===1&&g.operator==="<"&&x.prerelease[0]===0&&(x=!1);for(const P of c){if(b=b||P.operator===">"||P.operator===">=",w=w||P.operator==="<"||P.operator==="<=",m){if(O&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===O.major&&P.semver.minor===O.minor&&P.semver.patch===O.patch&&(O=!1),P.operator===">"||P.operator===">="){if(_=v(m,P,y),_===P&&_!==m)return!1}else if(m.operator===">="&&!P.test(m.semver))return!1}if(g){if(x&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===x.major&&P.semver.minor===x.minor&&P.semver.patch===x.patch&&(x=!1),P.operator==="<"||P.operator==="<="){if(S=s(g,P,y),S===P&&S!==g)return!1}else if(g.operator==="<="&&!P.test(g.semver))return!1}if(!P.operator&&(g||m)&&u!==0)return!1}return!(m&&w&&!g&&u!==0||g&&b&&!m&&u!==0||O||x)},v=(l,c,y)=>{if(!l)return c;const h=i(l.semver,c.semver,y);return h>0?l:h<0||c.operator===">"&&l.operator===">="?c:l},s=(l,c,y)=>{if(!l)return c;const h=i(l.semver,c.semver,y);return h<0?l:h>0||c.operator==="<"&&l.operator==="<="?c:l};return So=a,So}var Eo,_f;function ps(){if(_f)return Eo;_f=1;const e=_r(),t=yr(),n=Ke(),r=th(),i=zt(),a=uy(),o=cy(),d=ly(),f=fy(),v=dy(),s=hy(),l=py(),c=my(),y=lt(),h=gy(),m=vy(),g=cs(),u=yy(),_=_y(),S=On(),w=ls(),b=rh(),x=nh(),O=fs(),P=ds(),M=ih(),W=by(),V=wy(),E=Tn(),I=ft(),$=An(),z=Ey(),X=Ry(),A=Oy(),k=Ty(),j=Ay(),N=hs(),H=Iy(),B=xy(),q=Cy(),L=ky(),D=Py();return Eo={parse:i,valid:a,clean:o,inc:d,diff:f,major:v,minor:s,patch:l,prerelease:c,compare:y,rcompare:h,compareLoose:m,compareBuild:g,sort:u,rsort:_,gt:S,lt:w,eq:b,neq:x,gte:O,lte:P,cmp:M,coerce:W,truncate:V,Comparator:E,Range:I,satisfies:$,toComparators:z,maxSatisfying:X,minSatisfying:A,minVersion:k,validRange:j,outside:N,gtr:H,ltr:B,intersects:q,simplifyRange:L,subset:D,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers},Eo}var Ro,bf;function jy(){return bf||(bf=1,Ro=ps().satisfies(ye.version,">=15.7.0")),Ro}var Oo,wf;function Ly(){return wf||(wf=1,Oo=ps().satisfies(ye.version,">=16.9.0")),Oo}var To,Sf;function ah(){if(Sf)return To;Sf=1;const e=jy(),t=Ly(),n={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},r={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return To=function(i,a){if(!i||!a)return;const o=a.asymmetricKeyType;if(!o)return;const d=n[o];if(!d)throw new Error(`Unknown key type "${o}".`);if(!d.includes(i))throw new Error(`"alg" parameter for "${o}" key type must be one of: ${d.join(", ")}.`);if(e)switch(o){case"ec":const f=a.asymmetricKeyDetails.namedCurve,v=r[i];if(f!==v)throw new Error(`"alg" parameter "${i}" requires curve "${v}".`);break;case"rsa-pss":if(t){const s=parseInt(i.slice(-3),10),{hashAlgorithm:l,mgf1HashAlgorithm:c,saltLength:y}=a.asymmetricKeyDetails;if(l!==`sha${s}`||c!==l)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${i}.`);if(y!==void 0&&y>s>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${i}.`)}break}},To}var Ao,Ef;function oh(){if(Ef)return Ao;Ef=1;var e=ps();return Ao=e.satisfies(ye.version,"^6.12.0 || >=8.0.0"),Ao}var Io,Rf;function qy(){if(Rf)return Io;Rf=1;const e=En(),t=Wd(),n=Yd(),r=Qd(),i=eh(),a=ah(),o=oh(),d=ss(),{KeyObject:f,createSecretKey:v,createPublicKey:s}=Wt(),l=["RS256","RS384","RS512"],c=["ES256","ES384","ES512"],y=["RS256","RS384","RS512"],h=["HS256","HS384","HS512"];return o&&(l.splice(l.length,0,"PS256","PS384","PS512"),y.splice(y.length,0,"PS256","PS384","PS512")),Io=function(m,g,u,_){typeof u=="function"&&!_&&(_=u,u={}),u||(u={}),u=Object.assign({},u);let S;if(_?S=_:S=function(M,W){if(M)throw M;return W},u.clockTimestamp&&typeof u.clockTimestamp!="number")return S(new e("clockTimestamp must be a number"));if(u.nonce!==void 0&&(typeof u.nonce!="string"||u.nonce.trim()===""))return S(new e("nonce must be a non-empty string"));if(u.allowInvalidAsymmetricKeyTypes!==void 0&&typeof u.allowInvalidAsymmetricKeyTypes!="boolean")return S(new e("allowInvalidAsymmetricKeyTypes must be a boolean"));const w=u.clockTimestamp||Math.floor(Date.now()/1e3);if(!m)return S(new e("jwt must be provided"));if(typeof m!="string")return S(new e("jwt must be a string"));const b=m.split(".");if(b.length!==3)return S(new e("jwt malformed"));let x;try{x=r(m,{complete:!0})}catch(M){return S(M)}if(!x)return S(new e("invalid token"));const O=x.header;let P;if(typeof g=="function"){if(!_)return S(new e("verify must be called asynchronous if secret or public key is provided as a callback"));P=g}else P=function(M,W){return W(null,g)};return P(O,function(M,W){if(M)return S(new e("error in secret or public key callback: "+M.message));const V=b[2].trim()!=="";if(!V&&W)return S(new e("jwt signature is required"));if(V&&!W)return S(new e("secret or public key must be provided"));if(!V&&!u.algorithms)return S(new e('please specify "none" in "algorithms" to verify unsigned tokens'));if(W!=null&&!(W instanceof f))try{W=s(W)}catch{try{W=v(typeof W=="string"?et.from(W):W)}catch{return S(new e("secretOrPublicKey is not valid key material"))}}if(u.algorithms||(W.type==="secret"?u.algorithms=h:["rsa","rsa-pss"].includes(W.asymmetricKeyType)?u.algorithms=y:W.asymmetricKeyType==="ec"?u.algorithms=c:u.algorithms=l),u.algorithms.indexOf(x.header.alg)===-1)return S(new e("invalid algorithm"));if(O.alg.startsWith("HS")&&W.type!=="secret")return S(new e(`secretOrPublicKey must be a symmetric key when using ${O.alg}`));if(/^(?:RS|PS|ES)/.test(O.alg)&&W.type!=="public")return S(new e(`secretOrPublicKey must be an asymmetric key when using ${O.alg}`));if(!u.allowInvalidAsymmetricKeyTypes)try{a(O.alg,W)}catch($){return S($)}let E;try{E=d.verify(m,x.header.alg,W)}catch($){return S($)}if(!E)return S(new e("invalid signature"));const I=x.payload;if(typeof I.nbf<"u"&&!u.ignoreNotBefore){if(typeof I.nbf!="number")return S(new e("invalid nbf value"));if(I.nbf>w+(u.clockTolerance||0))return S(new t("jwt not active",new Date(I.nbf*1e3)))}if(typeof I.exp<"u"&&!u.ignoreExpiration){if(typeof I.exp!="number")return S(new e("invalid exp value"));if(w>=I.exp+(u.clockTolerance||0))return S(new n("jwt expired",new Date(I.exp*1e3)))}if(u.audience){const $=Array.isArray(u.audience)?u.audience:[u.audience];if(!(Array.isArray(I.aud)?I.aud:[I.aud]).some(function(A){return $.some(function(k){return k instanceof RegExp?k.test(A):k===A})}))return S(new e("jwt audience invalid. expected: "+$.join(" or ")))}if(u.issuer&&(typeof u.issuer=="string"&&I.iss!==u.issuer||Array.isArray(u.issuer)&&u.issuer.indexOf(I.iss)===-1))return S(new e("jwt issuer invalid. expected: "+u.issuer));if(u.subject&&I.sub!==u.subject)return S(new e("jwt subject invalid. expected: "+u.subject));if(u.jwtid&&I.jti!==u.jwtid)return S(new e("jwt jwtid invalid. expected: "+u.jwtid));if(u.nonce&&I.nonce!==u.nonce)return S(new e("jwt nonce invalid. expected: "+u.nonce));if(u.maxAge){if(typeof I.iat!="number")return S(new e("iat required when maxAge is specified"));const $=i(u.maxAge,I.iat);if(typeof $>"u")return S(new e('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(w>=$+(u.clockTolerance||0))return S(new n("maxAge exceeded",new Date($*1e3)))}if(u.complete===!0){const $=x.signature;return S(null,{header:O,payload:I,signature:$})}return S(null,I)})},Io}const Dy=Yo(lm);var xo,Of;function Ny(){if(Of)return xo;Of=1;const e=eh(),t=oh(),n=ah(),r=ss(),{includes:i,isBoolean:a,isInteger:o,isNumber:d,isPlainObject:f,isString:v,once:s}=Dy,{KeyObject:l,createSecretKey:c,createPrivateKey:y}=Wt(),h=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];t&&h.splice(3,0,"PS256","PS384","PS512");const m={expiresIn:{isValid:function(x){return o(x)||v(x)&&x},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(x){return o(x)||v(x)&&x},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(x){return v(x)||Array.isArray(x)},message:'"audience" must be a string or array'},algorithm:{isValid:i.bind(null,h),message:'"algorithm" must be a valid string enum value'},header:{isValid:f,message:'"header" must be an object'},encoding:{isValid:v,message:'"encoding" must be a string'},issuer:{isValid:v,message:'"issuer" must be a string'},subject:{isValid:v,message:'"subject" must be a string'},jwtid:{isValid:v,message:'"jwtid" must be a string'},noTimestamp:{isValid:a,message:'"noTimestamp" must be a boolean'},keyid:{isValid:v,message:'"keyid" must be a string'},mutatePayload:{isValid:a,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:a,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:a,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},g={iat:{isValid:d,message:'"iat" should be a number of seconds'},exp:{isValid:d,message:'"exp" should be a number of seconds'},nbf:{isValid:d,message:'"nbf" should be a number of seconds'}};function u(x,O,P,M){if(!f(P))throw new Error('Expected "'+M+'" to be a plain object.');Object.keys(P).forEach(function(W){const V=x[W];if(!V){if(!O)throw new Error('"'+W+'" is not allowed in "'+M+'"');return}if(!V.isValid(P[W]))throw new Error(V.message)})}function _(x){return u(m,!1,x,"options")}function S(x){return u(g,!0,x,"payload")}const w={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},b=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return xo=function(x,O,P,M){typeof P=="function"?(M=P,P={}):P=P||{};const W=typeof x=="object"&&!et.isBuffer(x),V=Object.assign({alg:P.algorithm||"HS256",typ:W?"JWT":void 0,kid:P.keyid},P.header);function E(z){if(M)return M(z);throw z}if(!O&&P.algorithm!=="none")return E(new Error("secretOrPrivateKey must have a value"));if(O!=null&&!(O instanceof l))try{O=y(O)}catch{try{O=c(typeof O=="string"?et.from(O):O)}catch{return E(new Error("secretOrPrivateKey is not valid key material"))}}if(V.alg.startsWith("HS")&&O.type!=="secret")return E(new Error(`secretOrPrivateKey must be a symmetric key when using ${V.alg}`));if(/^(?:RS|PS|ES)/.test(V.alg)){if(O.type!=="private")return E(new Error(`secretOrPrivateKey must be an asymmetric key when using ${V.alg}`));if(!P.allowInsecureKeySizes&&!V.alg.startsWith("ES")&&O.asymmetricKeyDetails!==void 0&&O.asymmetricKeyDetails.modulusLength<2048)return E(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${V.alg}`))}if(typeof x>"u")return E(new Error("payload is required"));if(W){try{S(x)}catch(z){return E(z)}P.mutatePayload||(x=Object.assign({},x))}else{const z=b.filter(function(X){return typeof P[X]<"u"});if(z.length>0)return E(new Error("invalid "+z.join(",")+" option for "+typeof x+" payload"))}if(typeof x.exp<"u"&&typeof P.expiresIn<"u")return E(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(typeof x.nbf<"u"&&typeof P.notBefore<"u")return E(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{_(P)}catch(z){return E(z)}if(!P.allowInvalidAsymmetricKeyTypes)try{n(V.alg,O)}catch(z){return E(z)}const I=x.iat||Math.floor(Date.now()/1e3);if(P.noTimestamp?delete x.iat:W&&(x.iat=I),typeof P.notBefore<"u"){try{x.nbf=e(P.notBefore,I)}catch(z){return E(z)}if(typeof x.nbf>"u")return E(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(typeof P.expiresIn<"u"&&typeof x=="object"){try{x.exp=e(P.expiresIn,I)}catch(z){return E(z)}if(typeof x.exp>"u")return E(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(w).forEach(function(z){const X=w[z];if(typeof P[z]<"u"){if(typeof x[X]<"u")return E(new Error('Bad "options.'+z+'" option. The payload already has an "'+X+'" property.'));x[X]=P[z]}});const $=P.encoding||"utf8";if(typeof M=="function")M=M&&s(M),r.createSign({header:V,privateKey:O,payload:x,encoding:$}).once("error",M).once("done",function(z){if(!P.allowInsecureKeySizes&&/^(?:RS|PS)/.test(V.alg)&&z.length<256)return M(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${V.alg}`));M(null,z)});else{let z=r.sign({header:V,payload:x,secret:O,encoding:$});if(!P.allowInsecureKeySizes&&/^(?:RS|PS)/.test(V.alg)&&z.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${V.alg}`);return z}},xo}var Tf;function My(){return Tf||(Tf=1,(function(e){e.exports={verify:qy(),sign:Ny(),JsonWebTokenError:En(),NotBeforeError:Wd(),TokenExpiredError:Yd()},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:Qd()})})(ya)),ya.exports}var Co,Af;function Fy(){if(Af)return Co;Af=1;function e(t){this.token=t.token||"",this.response=t.response||"",this.body=t.responseText||"",this.json=null,this.intuit_tid=t.intuit_tid||""}return e.prototype.processResponse=function(n){this.response=n||"",this.body=n&&n.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=n&&n.headers&&n.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(n){return this.getContentType().indexOf(n)>-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 By="0.0.4",Uy={version:By};var ko,If;function Vy(){if(If)return ko;If=1;function e(t){t=t||{},this.realmId=t.realmId||"",this.token_type=t.token_type||"",this.access_token=t.access_token||"",this.refresh_token=t.refresh_token||"",this.expires_in=t.expires_in||0,this.x_refresh_token_expires_in=t.x_refresh_token_expires_in||0,this.id_token=t.id_token||"",this.latency=t.latency||60*1e3,this.createdAt=t.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(n){return this.access_token=n.access_token,this.refresh_token=n.refresh_token,this.token_type=n.token_type,this.expires_in=n.expires_in,this.x_refresh_token_expires_in=n.x_refresh_token_expires_in,this.id_token=n.id_token||"",this.createdAt=n.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(n){return this.createdAt+n*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)},ko=e,ko}var Po,xf;function $y(){if(xf)return Po;xf=1,Po=e;function e(i,a){var o=et.from(i,"base64"),d=et.from(a,"base64"),f=o.toString("hex"),v=d.toString("hex");f=t(f),v=t(v);var s=f.length/2,l=v.length/2,c=r(s),y=r(l),h="30"+r(s+l+c.length/2+y.length/2+2)+"02"+c+f+"02"+y+v,m=et.from(h,"hex").toString("base64"),g=`-----BEGIN RSA PUBLIC KEY-----
|
|
120
120
|
`+m.match(/.{1,64}/g).join(`
|
|
121
121
|
`)+`
|
|
122
122
|
-----END RSA PUBLIC KEY-----
|
|
123
|
-
`;return g}function t(i){var a=i[0];return a<"0"||a>"7"?"00"+i:i}function n(i){var a=i.toString(16);return a.length%2?"0"+a:a}function r(i){if(i<=127)return n(i);var a=n(i),o=128+a.length/2;return n(o)+a}return Po}var jo,Cf;function zy(){if(Cf)return jo;Cf=1;const e=ag(),t=bg(),n=jg(),r=Mg(),i=Vt(),a=ry(),o=Nd(),d=Xo(),f=My(),v=Fy(),s=Uy,l=Vy();function c(y){if(this.environment=y.environment,this.clientId=y.clientId,this.clientSecret=y.clientSecret,this.redirectUri=y.redirectUri,this.token=new l(y.token),this.logging=!!(Object.prototype.hasOwnProperty.call(y,"logging")&&y.logging===!0),this.logger=null,this.state=new t,this.logging){const h="./logs";d.existsSync(h)||d.mkdirSync(h),this.logger=a.createLogger({level:"info",format:a.format.combine(a.format.timestamp(),a.format.printf(m=>`${m.timestamp} ${m.level}: ${m.message}`)),transports:[new a.transports.File({filename:o.join(h,"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_${s.version}_${i.type()}_${i.release()}_${i.platform()}`,c.prototype.setAuthorizeURLs=function(h){if(!h)throw new Error("Provide the custom authorize URL's");return c.authorizeEndpoint=h.authorizeEndpoint,c.tokenEndpoint=h.tokenEndpoint,c.revokeEndpoint=h.revokeEndpoint,this.environment==="sandbox"?c.userinfo_endpoint_sandbox=h.userInfoEndpoint:c.userinfo_endpoint_production=h.userInfoEndpoint,this},c.prototype.authorizeUri=function(h){if(h=h||{},!h.scope)throw new Error("Provide the scopes");const m=`${c.authorizeEndpoint}?${n.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(h.scope)?h.scope.join(" "):h.scope,state:h.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",m),m},c.prototype.createToken=function(h){return new Promise(m=>{if(!h)throw new Error("Provide the Uri");const g=n.parse(h.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":v._urlencodedContentType,Accept:v._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(_))}).then(m=>{const g=m.json?m:null,u=g&&g.getJson()||m;return this.token.setToken(u),this.log("info","Create Token response is : ",JSON.stringify(g,null,2)),g}).catch(m=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.refresh=function(){return new Promise(h=>{this.validateToken();const m={};m.grant_type="refresh_token",m.refresh_token=this.getToken().refresh_token;const g={url:c.tokenEndpoint,body:m,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":v._urlencodedContentType,Accept:v._jsonContentType,"User-Agent":c.user_agent}};h(this.getTokenRequest(g))}).then(h=>{const m=h.json?h:null,g=m&&m.getJson()||h;return this.token.setToken(g),this.log("info","Refresh Token () response is : ",JSON.stringify(m,null,2)),m}).catch(h=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(h,null,2)),h})},c.prototype.refreshUsingToken=function(h){return new Promise(m=>{if(!h)throw new Error("The Refresh token is missing");const g={};g.grant_type="refresh_token",g.refresh_token=h;const u={url:c.tokenEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":v._urlencodedContentType,Accept:v._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(u))}).then(m=>{const g=m.json?m:null,u=g&&g.getJson()||m;return this.token.setToken(u),this.log("info","Refresh usingToken () response is : ",JSON.stringify(g,null,2)),g}).catch(m=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.revoke=function(h){return new Promise(m=>{h=h||{};const g={};g.token=h.access_token||h.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:v._jsonContentType,"Content-Type":v._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(u))}).then(m=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(m,null,2)),m)).catch(m=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.getUserInfo=function(){return new Promise(h=>{const m={url:this.environment==="sandbox"?c.userinfo_endpoint_sandbox:c.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:v._jsonContentType,"User-Agent":c.user_agent}};h(this.getTokenRequest(m))}).then(h=>{const m=h.json?h:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(m,null,2)),m}).catch(h=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(h,null,2)),h})},c.prototype.makeApiCall=function(h){return new Promise(m=>{h=h||{};const g=h.transport?h.transport:r.createTransport({type:"text"}),u=h.headers&&typeof h.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:v._jsonContentType,"User-Agent":c.user_agent},h.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:v._jsonContentType,"User-Agent":c.user_agent}),_={url:h.url,method:h.method||"GET",headers:u,transport:g};h.body&&(_.body=h.body),m(this.getTokenRequest(_))}).then(m=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(m,null,2)),m)).catch(m=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.validateIdToken=function(h={}){return new Promise(m=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||h.id_token,u=g.split("."),_=JSON.parse(e(u[0])),E=JSON.parse(e(u[1]));if(E.iss!=="https://oauth.platform.intuit.com/op/v1"||!E.aud.find(b=>b===this.clientId)||E.exp<Date.now()/1e3)return!1;const w={url:c.jwks_uri,method:"GET",headers:{Accept:v._jsonContentType,"User-Agent":c.user_agent}};return m(this.getKeyFromJWKsURI(g,_.kid,w))}).then(m=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(m,null,2)),!!m)).catch(m=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.getValidatedIdToken=function(h={}){return new Promise(m=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||h.id_token,u=g.split("."),_=JSON.parse(e(u[0])),E=JSON.parse(e(u[1]));if(E.iss!=="https://oauth.platform.intuit.com/op/v1"||!E.aud.find(b=>b===this.clientId)||E.exp<Date.now()/1e3)return!1;const w={url:c.jwks_uri,method:"GET",headers:{Accept:v._jsonContentType,"User-Agent":c.user_agent}};return m(this.getKeyFromJWKsURI(g,_.kid,w))}).then(m=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(m,null,2)),m)).catch(m=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.getIdTokenComponents=async function(y={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const m=(this.getToken().id_token||y.id_token).split("."),g=JSON.parse(e(m[0])),u=JSON.parse(e(m[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(h,m,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 E=JSON.parse(u.body).keys.find(b=>b.kid===m),w=this.getPublicKey(E.n,E.e);return f.verify(h,w)}).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(h,m){return $y()(h,m)},c.prototype.getTokenRequest=function(h){const m=new v({token:this.token});return new Promise(g=>{g(this.loadResponse(h))}).then(g=>{if(m.processResponse(g),!m.valid())throw new Error("Response has an Error");return m}).catch(g=>{throw g.authResponse||(g=this.createError(g,m)),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(h){return r.get(h).then(m=>m)},c.prototype.loadResponseFromJWKsURI=function(h){return r.get(h).then(m=>m)},c.prototype.createError=function(h,m){return!m||m.body===""?(h.error=m&&m.response.statusText||h.message||"",h.authResponse=m||"",h.intuit_tid=m&&m.headers()&&m.headers().intuit_tid||"",h.originalMessage=h.message||"",h.error_description=m&&m.response.statusText||"",h):(h.authResponse=m,h.originalMessage=h.message,h.error="","error"in m.getJson()?h.error=m.getJson().error:m.response.statusText?h.error=m.response.statusText:h.message&&(h.error=h.message),h.error_description="","error_description"in m.getJson()?h.error_description=m.getJson().error_description:m.response.statusText&&(h.error_description=m.response.statusText),h.intuit_tid=m.headers().intuit_tid,h)},c.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},c.prototype.getToken=function(){return this.token},c.prototype.setToken=function(h){return this.token=new l(h),this.token},c.prototype.authHeader=function(){const h=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(h):et.from(h).toString("base64")},c.prototype.log=function(h,m,g){this.logging&&this.logger.log(h,m+g)},jo=c,jo}var Gy=zy();const mt=Op(Gy),sh="project-management.project",rn=(()=>{let e,t,n="";return{initiatedCompanyID:n,init:(a,o)=>{t=new mt({clientId:gn.quickbooksKey,clientSecret:"",environment:ad,redirectUri:window.location.origin+a}),e=t.authorizeUri({state:o,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile,sh]}),n=o},handleClick:()=>{window.open(e,"_self","noopener")}}})();function ms(e){const n=zo(e,!0).query,r=n.code,i=n.realmId,a=n.state,o=r!=null?decodeURIComponent(r):"",d=i!=null?decodeURIComponent(i):"",f=a!=null?decodeURIComponent(a):"";return{code:o,realmId:d,state:f}}const Hy=(e,t,n,r,i)=>e!==""&&t!==""&&n!==""&&r!==null&&r!==""&&i!==null&&i!=="",Zy=({code:e,realmId:t,state:n,connectionId:r,signedInuserId:i,tenantId:a,companyId:o,onboardingViewFetchState:d,saveConnectionFetchState:f})=>Hy(e,t,n,r,i)===!0&&f!=="In-Progress"&&d==="Completed"&&a!=null&&o!=null,Wy=()=>{const e=Jo(),{code:t,realmId:n,state:r}=ms(e.search),i=He.getSignedInUser()?.userId??"",a=r==="create-qbo-subscription";if(Yy(t,n,r,i))if(a){const o=`/onboarding/${r}?code=${t}&realmId=${n}&state=${r}`;return U.jsx(ir,{to:o})}else{const o=`/onboarding/edit/${r}?code=${t}&realmId=${n}&state=auth_flow`;return U.jsx(ir,{to:o})}return U.jsx(ir,{to:"../../"})},Yy=(e,t,n,r)=>e!==""&&t!==""&&n!==""&&r!==null&&r!=="",Jy=tt.div`
|
|
123
|
+
`;return g}function t(i){var a=i[0];return a<"0"||a>"7"?"00"+i:i}function n(i){var a=i.toString(16);return a.length%2?"0"+a:a}function r(i){if(i<=127)return n(i);var a=n(i),o=128+a.length/2;return n(o)+a}return Po}var jo,Cf;function zy(){if(Cf)return jo;Cf=1;const e=ag(),t=bg(),n=jg(),r=Mg(),i=Vt(),a=ry(),o=Nd(),d=Xo(),f=My(),v=Fy(),s=Uy,l=Vy();function c(y){if(this.environment=y.environment,this.clientId=y.clientId,this.clientSecret=y.clientSecret,this.redirectUri=y.redirectUri,this.token=new l(y.token),this.logging=!!(Object.prototype.hasOwnProperty.call(y,"logging")&&y.logging===!0),this.logger=null,this.state=new t,this.logging){const h="./logs";d.existsSync(h)||d.mkdirSync(h),this.logger=a.createLogger({level:"info",format:a.format.combine(a.format.timestamp(),a.format.printf(m=>`${m.timestamp} ${m.level}: ${m.message}`)),transports:[new a.transports.File({filename:o.join(h,"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_${s.version}_${i.type()}_${i.release()}_${i.platform()}`,c.prototype.setAuthorizeURLs=function(h){if(!h)throw new Error("Provide the custom authorize URL's");return c.authorizeEndpoint=h.authorizeEndpoint,c.tokenEndpoint=h.tokenEndpoint,c.revokeEndpoint=h.revokeEndpoint,this.environment==="sandbox"?c.userinfo_endpoint_sandbox=h.userInfoEndpoint:c.userinfo_endpoint_production=h.userInfoEndpoint,this},c.prototype.authorizeUri=function(h){if(h=h||{},!h.scope)throw new Error("Provide the scopes");const m=`${c.authorizeEndpoint}?${n.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(h.scope)?h.scope.join(" "):h.scope,state:h.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",m),m},c.prototype.createToken=function(h){return new Promise(m=>{if(!h)throw new Error("Provide the Uri");const g=n.parse(h.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":v._urlencodedContentType,Accept:v._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(_))}).then(m=>{const g=m.json?m:null,u=g&&g.getJson()||m;return this.token.setToken(u),this.log("info","Create Token response is : ",JSON.stringify(g,null,2)),g}).catch(m=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.refresh=function(){return new Promise(h=>{this.validateToken();const m={};m.grant_type="refresh_token",m.refresh_token=this.getToken().refresh_token;const g={url:c.tokenEndpoint,body:m,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":v._urlencodedContentType,Accept:v._jsonContentType,"User-Agent":c.user_agent}};h(this.getTokenRequest(g))}).then(h=>{const m=h.json?h:null,g=m&&m.getJson()||h;return this.token.setToken(g),this.log("info","Refresh Token () response is : ",JSON.stringify(m,null,2)),m}).catch(h=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(h,null,2)),h})},c.prototype.refreshUsingToken=function(h){return new Promise(m=>{if(!h)throw new Error("The Refresh token is missing");const g={};g.grant_type="refresh_token",g.refresh_token=h;const u={url:c.tokenEndpoint,body:g,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":v._urlencodedContentType,Accept:v._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(u))}).then(m=>{const g=m.json?m:null,u=g&&g.getJson()||m;return this.token.setToken(u),this.log("info","Refresh usingToken () response is : ",JSON.stringify(g,null,2)),g}).catch(m=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.revoke=function(h){return new Promise(m=>{h=h||{};const g={};g.token=h.access_token||h.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:v._jsonContentType,"Content-Type":v._jsonContentType,"User-Agent":c.user_agent}};m(this.getTokenRequest(u))}).then(m=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(m,null,2)),m)).catch(m=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.getUserInfo=function(){return new Promise(h=>{const m={url:this.environment==="sandbox"?c.userinfo_endpoint_sandbox:c.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:v._jsonContentType,"User-Agent":c.user_agent}};h(this.getTokenRequest(m))}).then(h=>{const m=h.json?h:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(m,null,2)),m}).catch(h=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(h,null,2)),h})},c.prototype.makeApiCall=function(h){return new Promise(m=>{h=h||{};const g=h.transport?h.transport:r.createTransport({type:"text"}),u=h.headers&&typeof h.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:v._jsonContentType,"User-Agent":c.user_agent},h.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:v._jsonContentType,"User-Agent":c.user_agent}),_={url:h.url,method:h.method||"GET",headers:u,transport:g};h.body&&(_.body=h.body),m(this.getTokenRequest(_))}).then(m=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(m,null,2)),m)).catch(m=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.validateIdToken=function(h={}){return new Promise(m=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||h.id_token,u=g.split("."),_=JSON.parse(e(u[0])),S=JSON.parse(e(u[1]));if(S.iss!=="https://oauth.platform.intuit.com/op/v1"||!S.aud.find(b=>b===this.clientId)||S.exp<Date.now()/1e3)return!1;const w={url:c.jwks_uri,method:"GET",headers:{Accept:v._jsonContentType,"User-Agent":c.user_agent}};return m(this.getKeyFromJWKsURI(g,_.kid,w))}).then(m=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(m,null,2)),!!m)).catch(m=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.getValidatedIdToken=function(h={}){return new Promise(m=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const g=this.getToken().id_token||h.id_token,u=g.split("."),_=JSON.parse(e(u[0])),S=JSON.parse(e(u[1]));if(S.iss!=="https://oauth.platform.intuit.com/op/v1"||!S.aud.find(b=>b===this.clientId)||S.exp<Date.now()/1e3)return!1;const w={url:c.jwks_uri,method:"GET",headers:{Accept:v._jsonContentType,"User-Agent":c.user_agent}};return m(this.getKeyFromJWKsURI(g,_.kid,w))}).then(m=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(m,null,2)),m)).catch(m=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(m,null,2)),m})},c.prototype.getIdTokenComponents=async function(y={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const m=(this.getToken().id_token||y.id_token).split("."),g=JSON.parse(e(m[0])),u=JSON.parse(e(m[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(h,m,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 S=JSON.parse(u.body).keys.find(b=>b.kid===m),w=this.getPublicKey(S.n,S.e);return f.verify(h,w)}).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(h,m){return $y()(h,m)},c.prototype.getTokenRequest=function(h){const m=new v({token:this.token});return new Promise(g=>{g(this.loadResponse(h))}).then(g=>{if(m.processResponse(g),!m.valid())throw new Error("Response has an Error");return m}).catch(g=>{throw g.authResponse||(g=this.createError(g,m)),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(h){return r.get(h).then(m=>m)},c.prototype.loadResponseFromJWKsURI=function(h){return r.get(h).then(m=>m)},c.prototype.createError=function(h,m){return!m||m.body===""?(h.error=m&&m.response.statusText||h.message||"",h.authResponse=m||"",h.intuit_tid=m&&m.headers()&&m.headers().intuit_tid||"",h.originalMessage=h.message||"",h.error_description=m&&m.response.statusText||"",h):(h.authResponse=m,h.originalMessage=h.message,h.error="","error"in m.getJson()?h.error=m.getJson().error:m.response.statusText?h.error=m.response.statusText:h.message&&(h.error=h.message),h.error_description="","error_description"in m.getJson()?h.error_description=m.getJson().error_description:m.response.statusText&&(h.error_description=m.response.statusText),h.intuit_tid=m.headers().intuit_tid,h)},c.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},c.prototype.getToken=function(){return this.token},c.prototype.setToken=function(h){return this.token=new l(h),this.token},c.prototype.authHeader=function(){const h=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(h):et.from(h).toString("base64")},c.prototype.log=function(h,m,g){this.logging&&this.logger.log(h,m+g)},jo=c,jo}var Gy=zy();const mt=Op(Gy),sh="project-management.project",rn=(()=>{let e,t,n="";return{initiatedCompanyID:n,init:(a,o)=>{t=new mt({clientId:gn.quickbooksKey,clientSecret:"",environment:ad,redirectUri:window.location.origin+a}),e=t.authorizeUri({state:o,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile,sh]}),n=o},handleClick:()=>{window.open(e,"_self","noopener")}}})();function ms(e){const n=zo(e,!0).query,r=n.code,i=n.realmId,a=n.state,o=r!=null?decodeURIComponent(r):"",d=i!=null?decodeURIComponent(i):"",f=a!=null?decodeURIComponent(a):"";return{code:o,realmId:d,state:f}}const Hy=(e,t,n,r,i)=>e!==""&&t!==""&&n!==""&&r!==null&&r!==""&&i!==null&&i!=="",Zy=({code:e,realmId:t,state:n,connectionId:r,signedInuserId:i,tenantId:a,companyId:o,onboardingViewFetchState:d,saveConnectionFetchState:f})=>Hy(e,t,n,r,i)===!0&&f!=="In-Progress"&&d==="Completed"&&a!=null&&o!=null,Wy=()=>{const e=Jo(),{code:t,realmId:n,state:r}=ms(e.search),i=He.getSignedInUser()?.userId??"",a=r==="create-qbo-subscription";if(Yy(t,n,r,i))if(a){const o=`/onboarding/${r}?code=${t}&realmId=${n}&state=${r}`;return U.jsx(ir,{to:o})}else{const o=`/onboarding/edit/${r}?code=${t}&realmId=${n}&state=auth_flow`;return U.jsx(ir,{to:o})}return U.jsx(ir,{to:"../../"})},Yy=(e,t,n,r)=>e!==""&&t!==""&&n!==""&&r!==null&&r!=="",Jy=tt.div`
|
|
124
124
|
display: flex;
|
|
125
125
|
height: 100vh;
|
|
126
126
|
width: 100%;
|
|
@@ -129,7 +129,7 @@ Found: ${n.toString().split(`
|
|
|
129
129
|
align-items: center;
|
|
130
130
|
background-color: ${e=>e.theme.colors.grey5};
|
|
131
131
|
box-shadow: ${e=>`0px 2px 4px ${e.theme.colors.dropShadowNormal}`};
|
|
132
|
-
`;function Ky(e,t){const{address:n,showNavbarWithClose:r,sectionStyles:i,navbarStyles:a}=t;return{showNavbarWithClose:r,addressToEdit:n?.addressToCreate,loadingState:n?.status.fetchState,googleAPIKey:gn.googleMapsAPIKey,sectionStyles:i,navbarStyles:a}}function Xy(e,t){return{onSubmitHandler:n=>{const r=t_(n);e(Ph({addressType:"company_address",addressToCreate:r})),t.closeDrawerHandler?.()},onCancel:()=>{t.closeDrawerHandler?.()}}}const Qy=ze(Ky,Xy)(Bp);function e_({closeDrawerHandler:e}){const t=Bt(),n=Be(),r=Jo(),{addressType:i}=ot(),a=lr(),o=He.getSignedInUser(),d=
|
|
132
|
+
`;function Ky(e,t){const{address:n,showNavbarWithClose:r,sectionStyles:i,navbarStyles:a}=t;return{showNavbarWithClose:r,addressToEdit:n?.addressToCreate,loadingState:n?.status.fetchState,googleAPIKey:gn.googleMapsAPIKey,sectionStyles:i,navbarStyles:a}}function Xy(e,t){return{onSubmitHandler:n=>{const r=t_(n);e(Ph({addressType:"company_address",addressToCreate:r})),t.closeDrawerHandler?.()},onCancel:()=>{t.closeDrawerHandler?.()}}}const Qy=ze(Ky,Xy)(Bp);function e_({closeDrawerHandler:e}){const t=Bt(),n=Be(),r=Jo(),{addressType:i}=ot(),a=lr(),o=He.getSignedInUser(),d=Ee(v=>kh("company_address",v));if(o==null)throw Error("Can't access address page without signing in...");const f=v=>v.trackPageLoaded(d?.newAddressId!=null?Mo.Event.editAddress:Mo.Event.addAddress);return i!=null&&!i.match(/(company_address)$/g)?U.jsx(Qo,{}):U.jsxs(U.Fragment,{children:[U.jsx(od,{analytics:Fe,onLoad:f}),U.jsx(Jy,{windowSize:a,children:U.jsx(Qy,{location:r,navigate:n,address:d,closeDrawerHandler:e,showNavbarWithClose:!0,navbarStyles:{backgroundColor:t.colors.grey5},sectionStyles:{backgroundColor:t.colors.grey5}})})]})}const t_=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}),r_={drawerLeftMargin:new at(0,0,240)},n_=({isAddressDrawerOpen:e,closeDrawerHandler:t})=>{const n=Bt(),r=lr(),i=r_.drawerLeftMargin.valuePx(r),a=()=>{t?.()};return U.jsx(dr,{anchor:"right",open:e,PaperProps:{style:{width:`calc(100% - ${i})`}},slotProps:{backdrop:{style:{backgroundColor:n.colors.black,opacity:.8,cursor:"pointer"}}},onClick:()=>a(),children:U.jsx(i_,{onClick:o=>o.stopPropagation(),children:U.jsx(e_,{closeDrawerHandler:t})})})},i_=tt(Zt)`
|
|
133
133
|
display: flex;
|
|
134
134
|
min-height: 100%;
|
|
135
135
|
flex-direction: column;
|
|
@@ -141,7 +141,7 @@ Found: ${n.toString().split(`
|
|
|
141
141
|
justify-content: center;
|
|
142
142
|
align-items: center;
|
|
143
143
|
background-color: ${e=>e.theme.colors.grey4};
|
|
144
|
-
`,o_=({companyId:e,isOnboardingCustomerDrawerOpen:t,closeDrawerHandler:n})=>{const r=Be(),i=Bt(),a=We(),{useFeatureGate:o}=wt(),[d,f]=ce.useState(!1),[v,s]=ce.useState(!1),[l,c]=ce.useState(!1),[y,h]=ce.useState(!1),{isFeatureEnabled:m}=o(yn.isDebitCardFeatureEnabled),g=fr.getLocalizedStrings(),{code:u,realmId:_,state:
|
|
144
|
+
`,o_=({companyId:e,isOnboardingCustomerDrawerOpen:t,closeDrawerHandler:n})=>{const r=Be(),i=Bt(),a=We(),{useFeatureGate:o}=wt(),[d,f]=ce.useState(!1),[v,s]=ce.useState(!1),[l,c]=ce.useState(!1),[y,h]=ce.useState(!1),{isFeatureEnabled:m}=o(yn.isDebitCardFeatureEnabled),g=fr.getLocalizedStrings(),{code:u,realmId:_,state:S}=ms(location.search),w={onOkClick:()=>{f(!1),H()},onCancelClick:()=>{f(!1)}},b=Ee(K=>jh(K)),{newOnboardedCustomerId:x}=b,O=b.companyView?.company.companyInfo.tenantId,P=b.newOnboardingCustomerLocalData.selectedProducts??[],M=P.includes("zeni_checking")&&!P.includes("bookkeeping"),W=Ee(K=>Hf(K)),V=Ee(K=>Lh(K)),E=Ee(K=>K.userState),I=b.companyView?.company.companyOnboardingInfo.onboardingInfo?.qboLinked.completed===!0,$=b.externalConnections?.accounting[0],z=$?.connectionType,X=$?.connectionName,A=$?.connectionId??"",k=b.customerLocalStoreInitState!=="Completed"||b.onboardingCompletedCompanies.fetchState!=="Completed"||V.fetchState==="In-Progress",j=He.getSignedInUser();if(j==null)throw Error("Can't access onboarding customer page without signing in...");const N=ce.useCallback(()=>{h(!0),a(ws(!1,!0))},[]),H=()=>{a(Tt({selectedStep:""})),a(In()),n()},B=K=>{a(ws(K)),a(Tt({selectedStep:""}))},q=K=>{K!=null&&r(K==="management"?"../../management":"../")},L=K=>{a(Fh(K))},D=K=>{const J=s_(K,b);a(Mh(J)),s(!0)},F=()=>{document.cookie="pre_board_questionnaire_id= ;path=/;",window.open("/pre-onboard")};return ce.useEffect(()=>{W.fetchState==="Completed"&&a(qh(m,e))},[e,W.fetchState,E.userByUserId]),ce.useEffect(()=>{O!=null&&I!==!0&&!M&&a(Dh(j.userId,O))},[O,I]),ce.useEffect(()=>{e!=null&&rn.initiatedCompanyID!==e&&I!==!0&&rn.init("/cockpit/onboarding/auth",e)},[e]),ce.useEffect(()=>{b.sendInviteFetchState.fetchState==="Completed"&&(a(In()),n())},[b.sendInviteFetchState.fetchState]),ce.useEffect(()=>{b.customerLocalStoreInitState==="Error"&&r("../../onboarding")},[b.customerLocalStoreInitState]),ce.useEffect(()=>{Zy({code:u,realmId:_,state:S,connectionId:A,signedInuserId:j.userId,tenantId:O,companyId:e,onboardingViewFetchState:W.fetchState,saveConnectionFetchState:b.externalConnections?.saveConnectionState})&&O!=null&&(a(Nh(O,{connection_type:z??"accounting",connection_name:X??"quickbooks_online",authorization_code:u,realm_id:_,connection_id:A,user_id:j.userId},zo(window.location.origin+"/cockpit/onboarding/auth"),e,j.userId)),r(`/onboarding/edit/${e}`))},[z,X,u,_,S,A,j.userId,b.externalConnections?.saveConnectionState,location.pathname,W.fetchState,O,e]),ce.useEffect(()=>{b.fetchState==="Completed"&&(y===!0?e==null&&x!=null?r(`../../onboarding/edit/${x}`):e!=null&&x==null&&rn.handleClick():(a(In()),n()))},[b.fetchState,e,y]),ce.useEffect(()=>{b.externalConnections?.fetchState==="Completed"&&y===!0&&x!=null&&rn.handleClick()},[b.externalConnections?.fetchState,y,x]),U.jsx(dr,{anchor:"right",open:t,PaperProps:{style:{width:"100%"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.8,cursor:"pointer"}}},onClose:()=>{v===!0?f(!0):H()},children:U.jsxs(u_,{children:[d===!0?U.jsx(Up,{titleComponent:U.jsx(c_,{children:g.common.confirmationPopup.discardTitle}),descriptionComponent:U.jsx(l_,{children:g.cockpit.onboarding.discardDescription}),primaryButtonText:g.common.confirmationPopup.discard,secondaryButtonText:g.common.cancel,action:w}):null,k?U.jsx(a_,{children:U.jsx(vn,{size:"Large",start:!0})}):U.jsxs(U.Fragment,{children:[U.jsx(Vp,{localData:b,analytics:Fe,onCloseClick:H,onCompanyDomainBlurred:L,onSaveClick:B,onViewClick:q,onOnboardingCustomerDataUpdated:D,onNavigateToPreOnboarding:F,screenType:e!=null?"edit":"create",onQBOConnectClick:N,qboConnectClicked:y}),l===!0?U.jsx(n_,{isAddressDrawerOpen:l,closeDrawerHandler:()=>{c(!1)}}):null]})]})})},s_=(e,t)=>{const n={},{companySection:r,customerSection:i,groupSection:a,qboConnectionSection:o}=e,{newOnboardingCustomerLocalData:d}=t;return d.companyId==null&&(n.companyEmailDomain=r.companyDomain),d.isEmailGroupCreated!==!0&&(n.groupId=a.groupEmail,n.groupName=a.groupName,n.groupDescription=a.groupDescription),n.email=i.email,n.customerName={firstName:i.customerName.firstName,lastName:i.customerName.lastName},n.name=i.name,n.chargebeeId=i.chargebeeId,n.qboRealmId=i.realmId,n.hubSpotId=i.hubSpotId,n.selectedProducts=i.products.selectedOptions.map(f=>Bh(f)).filter(f=>f!=null),i.entityType.selectedOption!=null?i.entityType.selectedOption?.value==="Subsidiary"?(n.isSubsidiary=!0,i.company.selectedOption!=null&&(n.parentCompanyId=i.company.selectedOption.value)):n.isSubsidiary=!1:n.isSubsidiary=void 0,o.accountingConnectionCreationMode!=null&&(n.accountingConnectionCreationMode=o.accountingConnectionCreationMode),n},u_=tt(Zt)`
|
|
145
145
|
display: flex;
|
|
146
146
|
min-height: 100%;
|
|
147
147
|
flex-direction: column;
|
|
@@ -158,7 +158,7 @@ Found: ${n.toString().split(`
|
|
|
158
158
|
margin-bottom: 30px;
|
|
159
159
|
margin-top: ${Nt.sp4};
|
|
160
160
|
white-space: pre-line;
|
|
161
|
-
`,kf=(()=>{let e="",t;return{init:(i,a="create-qbo-subscription")=>{t=new mt({clientId:gn.quickbooksKey,clientSecret:"",environment:ad,redirectUri:`${window.location.origin}${i}`}),e=t.authorizeUri({state:a,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile,sh]})},handleClick:()=>{window.open(e,"_self","noopener")}}})(),f_=(e,t,n,r)=>e!==""&&t!==""&&n!==""&&r!=null&&r!=="",d_=({code:e,realmId:t,state:n,signedInuserId:r})=>f_(e,t,n,r)===!0;function h_(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Tt({filterText:r}))}}},onboardingPageActions:{onOnboardingStepClicked:(n,r)=>{e(Tt({selectedStep:r})),t.navigate(`../edit/${n}`)},onCancelClicked:()=>{e(Tt({showGoLivePopUp:!1}))},onGoLiveClicked:n=>{e(Wh(n.companyId,n))},onUpdateCustomerCreationStatus:()=>{e(Zh())},onSendInviteClick:n=>{e(Hh(n))},onColumnSortConfigChanged:(n,r)=>{e(Tt({sortKey:n,sortOrder:r}))},redirectToDashboardOnboarding:n=>{window.open(`/${n}/onboarding`)},onRetryBankAccountConnection:n=>{e(Gh({companyId:n}))},onFilterTextChanged:(n,r)=>{e(Tt({filterText:r}))},onCockpitReloadData:n=>{n==="onboarding"&&(e(Zf()),e(Wf()))},onQBOConnectClick:()=>{kf.init("/cockpit/onboarding/auth","create-qbo-subscription"),kf.handleClick()},onScroll:n=>{}}}}function p_(e,t){return{onboardingPageData:{onboardingView:t.onboardingView,loggedInUser:t.signedInUser,qboConnectionPoolFlag:t.qboConnectionPoolFlag}}}const m_=ze(p_,h_)($p);function nn({isOnboardingCustomerDrawerOpen:e}){const t=Be(),n=We(),r=Ut(),{onboardingCustomerCompanyId:i}=ot(),[a,o]=ce.useState(!1),{useDynamicConfig:d}=wt(),{configValue:f}=d(At.qboConnectionPoolEnablement),v=
|
|
161
|
+
`,kf=(()=>{let e="",t;return{init:(i,a="create-qbo-subscription")=>{t=new mt({clientId:gn.quickbooksKey,clientSecret:"",environment:ad,redirectUri:`${window.location.origin}${i}`}),e=t.authorizeUri({state:a,scope:[mt.scopes.Accounting,mt.scopes.OpenId,mt.scopes.Email,mt.scopes.Profile,sh]})},handleClick:()=>{window.open(e,"_self","noopener")}}})(),f_=(e,t,n,r)=>e!==""&&t!==""&&n!==""&&r!=null&&r!=="",d_=({code:e,realmId:t,state:n,signedInuserId:r})=>f_(e,t,n,r)===!0;function h_(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Tt({filterText:r}))}}},onboardingPageActions:{onOnboardingStepClicked:(n,r)=>{e(Tt({selectedStep:r})),t.navigate(`../edit/${n}`)},onCancelClicked:()=>{e(Tt({showGoLivePopUp:!1}))},onGoLiveClicked:n=>{e(Wh(n.companyId,n))},onUpdateCustomerCreationStatus:()=>{e(Zh())},onSendInviteClick:n=>{e(Hh(n))},onColumnSortConfigChanged:(n,r)=>{e(Tt({sortKey:n,sortOrder:r}))},redirectToDashboardOnboarding:n=>{window.open(`/${n}/onboarding`)},onRetryBankAccountConnection:n=>{e(Gh({companyId:n}))},onFilterTextChanged:(n,r)=>{e(Tt({filterText:r}))},onCockpitReloadData:n=>{n==="onboarding"&&(e(Zf()),e(Wf()))},onQBOConnectClick:()=>{kf.init("/cockpit/onboarding/auth","create-qbo-subscription"),kf.handleClick()},onScroll:n=>{}}}}function p_(e,t){return{onboardingPageData:{onboardingView:t.onboardingView,loggedInUser:t.signedInUser,qboConnectionPoolFlag:t.qboConnectionPoolFlag}}}const m_=ze(p_,h_)($p);function nn({isOnboardingCustomerDrawerOpen:e}){const t=Be(),n=We(),r=Ut(),{onboardingCustomerCompanyId:i}=ot(),[a,o]=ce.useState(!1),{useDynamicConfig:d}=wt(),{configValue:f}=d(At.qboConnectionPoolEnablement),v=Et(),{code:s,realmId:l,state:c}=ms(location.search),y=Ee(u=>Hf(u)),h=He.getSignedInUser();if(h==null)throw Error("Can't access onboarding customer page without signing in...");ce.useEffect(()=>{e!=null&&e===!0?o(!0):o(!1)},[e]);const m=Ee(u=>u.companyViewState.zeniUsers.fetchState);ce.useEffect(()=>{y.fetchState==="Completed"?n(xt(!1)):(y.fetchState==="Not-Started"||y.fetchState==="Error")&&(n(Zf()),(m==="Not-Started"||m==="Error")&&n(Ct()),y.qboConnectionPool.fetchState==="Not-Started"&&n(Wf()))},[y.fetchState]),ce.useEffect(()=>{y.updateStatus.fetchState==="Completed"&&(n(mn(!0)),n(Go(!0)),n(Ho(!0)),n(Uh()),y.uiState.showGoLivePopUp&&n(Tt({showGoLivePopUp:!1})),setTimeout(()=>{n(Vh())},5e3))},[y.updateStatus.fetchState]),ce.useEffect(()=>{d_({code:s,realmId:l,state:c,signedInuserId:h.userId})&&c==="create-qbo-subscription"&&(n($h({connection_type:"accounting",connection_name:"quickbooks_online",connection_id:"",authorization_code:s,realm_id:l,user_id:h.userId},zo(window.location.origin+"/cockpit/onboarding/auth"),h.userId)),t("/onboarding"))},[s,l,c,h.userId,location.pathname]);const g=()=>{o(!1),n(zh()),t("../")};return U.jsxs(U.Fragment,{children:[a===!0?U.jsx(o_,{isOnboardingCustomerDrawerOpen:a,closeDrawerHandler:g,companyId:i}):null,U.jsx(m_,{headerData:{allTabOptions:v,selectedTabOption:St("onboarding")},initialOpenThreadRequest:r??void 0,onboardingView:y,qboConnectionPoolFlag:Array.isArray(f.userEmailAccessForQBOConnectionPool)&&f.userEmailAccessForQBOConnectionPool.includes(h.userEmail),navigate:t,signedInUser:h})]})}function g_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(nn,{})})}),U.jsx(Te,{path:"/new",element:U.jsx(ke,{element:U.jsx(nn,{isOnboardingCustomerDrawerOpen:!0})})}),U.jsx(Te,{path:"/edit/:onboardingCustomerCompanyId",element:U.jsx(ke,{element:U.jsx(nn,{isOnboardingCustomerDrawerOpen:!0})})}),U.jsx(Te,{path:"/auth",element:U.jsx(ke,{element:U.jsx(Wy,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(nn,{})})})]})}function v_(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Kt({filterText:r}))},onFiltersChange:(n,r)=>{e(Kt({filters:r}))}}},portfolioPageActions:{onColumnSortConfigChanged:(n,r)=>{e(Kt({sortKey:n,sortOrder:r}))},onScroll:n=>{e(Kt({scrollYOffset:n}))},onCompanyNameClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onFiltersChange:(n,r)=>{e(Kt({filters:r}))},onCockpitReloadData:n=>{n==="portfolio"&&e(Go())}}}}function y_(e,t){return{portfolioPageData:{portfolioView:t.portfolioView}}}const __=ze(y_,v_)(zp);function Pf(){const e=Be(),t=We(),n=Ut(),r=Et(),i=Ee(o=>Yh(o)),a=Ee(o=>o.companyViewState.zeniUsers.fetchState);return ce.useEffect(()=>{i.fetchState==="Completed"?t(xt(!1)):(i.fetchState==="Not-Started"||i.fetchState==="Error")&&(t(Go()),(a==="Not-Started"||a==="Error")&&t(Ct()))},[i.fetchState]),U.jsx(__,{headerData:{allTabOptions:r,selectedTabOption:St("portfolio")},initialOpenThreadRequest:n??void 0,portfolioView:i,navigate:e})}function b_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Pf,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Pf,{})})})]})}function w_(e,t){const{merchantId:n}=t,r=Zo(e);return{tenantMerchant:n!=null?Kh(e,n):void 0,globalMerchantView:r,analytics:Fe}}function S_(e,t){const{merchantId:n,navigate:r}=t;return{updateCreateGlobalMerchantLocalData:(i,a,o)=>{e(Jf(i,a,o!=null?Qh(o):void 0))},fetchRecommendation:()=>{e(Yf("global"))},onSaveClick:()=>{e(Xh(n,"vendor_global_review"))},onBackClick:()=>{r("../vendors")}}}const E_=ze(w_,S_)(Gp);function R_(){const e=Be(),t=We(),{merchantId:n}=ot(),r=Ee(i=>Zo(i).newGlobalMerchantData?.status.fetchState);return ce.useEffect(()=>{r==="Completed"&&(t(Jh()),e("../vendors"))},[r]),U.jsx(E_,{merchantId:n,navigate:e})}function O_(e){const t=ep(e);return{vendorGlobalReviewView:tp(e),globalMerchantAutoCompleteView:t,analytics:Fe}}function T_(e,t){const{navigate:n}=t;return{onApproveGlobalReview:r=>{e(sp(r))},onRejectGlobalReview:r=>{e(op(r))},onCreateGlobalMerchant:(r,i,a)=>{i!=null&&(e(Jf(i,null,a)),e(Yf("global"))),r!=null?n(`./create/${r}`):n("./create")},onFetchGlobalReviewList:(r,i,a)=>{e(Kf(r,i,a))},onUpdateGlobalReviewUIState:r=>{e(ap(r))},onFetchGlobalMerchantAutoCompleteResults:r=>{e(ip({searchString:r,globalMerchantType:"vendor"}))},onUpdateSelectedGlobalMerchant:(r,i,a)=>{const o=I_(i);e(np({merchantId:r,currentSelection:o,customMerchantId:a}))},onClearGlobalMerchantAutoCompleteResults:()=>{e(rp())},onBackClick:()=>{n("../../management")}}}const A_=ze(O_,T_)(Hp);function Lo(){const e=Be(),t=We(),n=Fo("/reconciliation/vendors/create/*")!=null,r=Ee(a=>Zo(a));ce.useEffect(()=>{n&&r.fetchState==="Not-Started"&&e("../vendors"),t(Kf(void 0,!1))},[]);const i=a=>a.trackPageLoaded(Mo.Event.vendorGlobalReviewListPage);return U.jsxs(U.Fragment,{children:[U.jsx(od,{analytics:Fe,onLoad:i}),U.jsx(mr,{isOpen:n,drawerLeftMargin:new at(0,0,300,450),onClose:()=>{r.newGlobalMerchantData!=null&&Fe.trackVendorReviewNewVendorCanceled({reviewSource:"global_review",newRequestedVendorName:r.newGlobalMerchantData.globalMerchantName,tenantName:null,recommendedVendorName:r.recommendedGlobalMerchants[0]?.globalMerchantName??null,recommendedVendorReason:r.recommendedGlobalMerchants[0]?.reason??null}),e("../vendors")},children:U.jsx(x_,{onClick:a=>a.stopPropagation(),children:U.jsx(R_,{})})}),U.jsx(A_,{navigate:e})]})}const I_=e=>e.originalVendor===!0?"originalVendor":e.recommendedFirst===!0?"recommendedFirst":e.recommendedSecond===!0?"recommendedSecond":e.requested===!0?"requested":null,x_=tt(Zt)`
|
|
162
162
|
display: flex;
|
|
163
163
|
min-height: 100%;
|
|
164
164
|
flex-direction: column;
|
|
@@ -170,11 +170,11 @@ Found: ${n.toString().split(`
|
|
|
170
170
|
justify-content: center;
|
|
171
171
|
align-items: center;
|
|
172
172
|
background-color: ${e=>e.theme.colors.grey4};
|
|
173
|
-
`;function P_(e,t){const{companyId:n,reviewView:r}=t;return{allUsers:r.zeniUsers,companyView:r.companies.find(i=>i.companyId===n)}}function j_(e,t){const{companyId:n}=t;return{onRetryBankAccountConnection:()=>{n!=null&&e(Xf({companyId:n}))},onCloseClick:()=>{t.navigate("../")}}}const L_=ze(P_,j_)(Zp);function q_(){const e=Be(),{companyId:t}=ot(),n=
|
|
173
|
+
`;function P_(e,t){const{companyId:n,reviewView:r}=t;return{allUsers:r.zeniUsers,companyView:r.companies.find(i=>i.companyId===n)}}function j_(e,t){const{companyId:n}=t;return{onRetryBankAccountConnection:()=>{n!=null&&e(Xf({companyId:n}))},onCloseClick:()=>{t.navigate("../")}}}const L_=ze(P_,j_)(Zp);function q_(){const e=Be(),{companyId:t}=ot(),n=Ee(r=>cr(r));return U.jsx(U.Fragment,{children:n.fetchState==="In-Progress"?U.jsx(k_,{children:U.jsx(vn,{size:"Large",start:!0})}):U.jsx(L_,{companyId:t,reviewView:n,navigate:e})})}function D_(e,t){const{expenseAutomationEnabledCompanies:n,navigate:r}=t;return{headerActions:{onTabChange:i=>{const a=kt(i),o=Ft(i);Fe.trackCockpitTabClicked(o),r(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(i,a)=>{e(xn({filterText:a}))}}},reviewPageActions:{onColumnSortConfigChanged:(i,a)=>{e(xn({sortKey:i,sortOrder:a}))},onTransactionTagClicked:(i,a,o)=>{const d=n.includes(i.companyId);a==="expense"&&d?window.open(`/${i.primaryEmailDomain}/month_end_close_checks/review`):window.open(`/${i.primaryEmailDomain}/transactions/${o}-${a}`)},onReviewVendorTagClicked:i=>window.open(`/${i.primaryEmailDomain}/vendors/review`),onCompanyNameClicked:i=>window.open(`/${i.primaryEmailDomain}/dashboard`),onRetryBankAccountConnection:i=>{e(Xf({companyId:i}))},onUncategorizedAccountsErrorClick:i=>{window.open(`/${i}/accounts/mapping`)},onClickAuditScore:i=>{if(i!=null){const a=`/audit/report/${encodeURIComponent(i)}`;r(a)}},onClickWarningsCount:i=>{if(i!=null){const a=`/audit/warnings/${encodeURIComponent(i)}`;r(a)}},onFilterTextChanged:(i,a)=>{e(xn({filterText:a}))},onCockpitReloadData:i=>{i==="audit"&&e(Mt())},onScroll:i=>{}}}}function N_(e,t){return{reviewPageData:{reviewView:t.reviewView,zeniUserFetchState:t.zeniUserFetchState,allUsers:t.reviewView.zeniUsers,isReviewVendorColumnVisible:t.isReviewVendorColumnVisible},analytics:Fe}}const M_=ze(N_,D_)(Wp);function qo(){const e=Be(),t=We(),n=Ut(),r=Fo("/audit/report/*")!=null,i=Fo("/audit/warnings/*")!=null,{useFeatureGate:a}=wt(),{isFeatureEnabled:o}=a(yn.isReviewTabVendorColumnEnabled),{useDynamicConfig:d}=wt(),{configValue:f}=d(At.expenseAutomationEnablement),v=Et(),s=Ee(y=>cr(y)),l=Ee(y=>pn(y)),c=Ee(y=>y.companyViewState.zeniUsers.fetchState);return ce.useEffect(()=>{s.fetchState==="Completed"?t(xt(!1)):(s.fetchState==="Not-Started"||s.fetchState==="Error")&&(t(Mt()),(c==="Not-Started"||c==="Error")&&t(Ct()))},[s.fetchState]),ce.useEffect(()=>{s.fetchState==="Completed"&&l.fetchState==="Not-Started"&&t(Vo())},[s.fetchState]),U.jsxs(U.Fragment,{children:[U.jsx(mr,{isOpen:r||i,drawerLeftMargin:r?new at(0,0,0,0):i?new at(0,0,300,650):new at(0,0,300,650),onClose:()=>{r&&t(Mt()),e("../")},children:U.jsx(F_,{onClick:y=>y.stopPropagation(),children:r?U.jsx(hd,{}):i?U.jsx(q_,{}):null})}),U.jsx(M_,{headerData:{allTabOptions:v,selectedTabOption:St("audit")},initialOpenThreadRequest:n??void 0,reviewView:s,navigate:e,isReviewVendorColumnVisible:o,zeniUserFetchState:c,expenseAutomationEnabledCompanies:f.expenseAutomationEnabledCompanies!=null&&Array.isArray(f.expenseAutomationEnabledCompanies)?f.expenseAutomationEnabledCompanies:[]})]})}const F_=tt(Zt)`
|
|
174
174
|
display: flex;
|
|
175
175
|
min-height: 100%;
|
|
176
176
|
flex-direction: column;
|
|
177
|
-
`;function B_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/report/:companyId",element:U.jsx(ke,{element:U.jsx(qo,{})})}),U.jsx(Te,{path:"/warnings/:companyId",element:U.jsx(ke,{element:U.jsx(qo,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(qo,{})})})]})}function U_(e,t){const n=Qf(e,t.tenantId),r=n.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:n,isDisabled:r}}function V_(e,t){const{tenantId:n,companyId:r,location:i,navigate:a}=t;return{onSubscriptionDetailsChanged:o=>{const{addPlan:d,invoiceOption:f}=o,{subscriptionPlan:v,recurringAddOns:s,coupon:l}=d,c={subscriptionPlanId:v.selectedOption??"",subscriptionAddOnIds:s.filter(y=>y.selectedOption!=null).map(y=>y.selectedOption),subscriptionCouponIds:l.selectedOption!=null?[l.selectedOption]:[],invoiceImmediately:f.invoicingOption!=null};d.planStartDate!=null&&(c.startDate=on(d.planStartDate.toString())),e(ed({tenantId:n,subscriptionData:c}))},onEstimateSuccess:()=>{const o=dd(i.state?.pathnameStackToGoBack,i.pathname);a(`../tenants/${n}/companies/${r}/summary`,{state:{pathnameStackToGoBack:o}})},onReviewClick:()=>{e(up(n))},onBackClick:()=>{a(`../tenants/${n}/companies/${r}`)},onResetClick:()=>{e(Wo(n))}}}const $_=ze(U_,V_)(Yp),z_=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e;return U.jsx($_,{tenantId:t,companyId:n,location:r,navigate:i})};function G_(e,t){const{companyId:n,tenantId:r}=t,i=lp(e,n,r),a=i.fetchState!=="In-Progress";return{subscriptionDetailView:i,canUpdate:a}}function H_(e,t){const{tenantId:n,location:r,navigate:i}=t;return{onUpdateOrAddPlanClick:a=>{e(Wo(n,a)),e(fp()),e(dp()),e(hp()),a!=null?i(`${r.pathname}/update`):i(`${r.pathname}/add`)},onCloseClick:()=>{i("../")}}}const Z_=ze(G_,H_)(Jp),W_=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e,a=We(),[o,d]=ce.useState(!1),f=
|
|
177
|
+
`;function B_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/report/:companyId",element:U.jsx(ke,{element:U.jsx(qo,{})})}),U.jsx(Te,{path:"/warnings/:companyId",element:U.jsx(ke,{element:U.jsx(qo,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(qo,{})})})]})}function U_(e,t){const n=Qf(e,t.tenantId),r=n.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:n,isDisabled:r}}function V_(e,t){const{tenantId:n,companyId:r,location:i,navigate:a}=t;return{onSubscriptionDetailsChanged:o=>{const{addPlan:d,invoiceOption:f}=o,{subscriptionPlan:v,recurringAddOns:s,coupon:l}=d,c={subscriptionPlanId:v.selectedOption??"",subscriptionAddOnIds:s.filter(y=>y.selectedOption!=null).map(y=>y.selectedOption),subscriptionCouponIds:l.selectedOption!=null?[l.selectedOption]:[],invoiceImmediately:f.invoicingOption!=null};d.planStartDate!=null&&(c.startDate=on(d.planStartDate.toString())),e(ed({tenantId:n,subscriptionData:c}))},onEstimateSuccess:()=>{const o=dd(i.state?.pathnameStackToGoBack,i.pathname);a(`../tenants/${n}/companies/${r}/summary`,{state:{pathnameStackToGoBack:o}})},onReviewClick:()=>{e(up(n))},onBackClick:()=>{a(`../tenants/${n}/companies/${r}`)},onResetClick:()=>{e(Wo(n))}}}const $_=ze(U_,V_)(Yp),z_=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e;return U.jsx($_,{tenantId:t,companyId:n,location:r,navigate:i})};function G_(e,t){const{companyId:n,tenantId:r}=t,i=lp(e,n,r),a=i.fetchState!=="In-Progress";return{subscriptionDetailView:i,canUpdate:a}}function H_(e,t){const{tenantId:n,location:r,navigate:i}=t;return{onUpdateOrAddPlanClick:a=>{e(Wo(n,a)),e(fp()),e(dp()),e(hp()),a!=null?i(`${r.pathname}/update`):i(`${r.pathname}/add`)},onCloseClick:()=>{i("../")}}}const Z_=ze(G_,H_)(Jp),W_=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e,a=We(),[o,d]=ce.useState(!1),f=Ee(v=>v.subscriptionViewState.subscriptionDetailsByCompanyId[n]?.fetchStatus);return ce.useEffect(()=>{!o&&(f==null||f?.fetchState==="Not-Started")&&(d(!0),a(cp(n)))},[o,f,n,a]),ce.useEffect(()=>{o&&f!=null&&f?.fetchState==="Error"&&i("../subscription")},[o,f]),U.jsx(Z_,{tenantId:t,companyId:n,location:r,navigate:i})};function Y_(e,t){return{subscriptionEstimateData:pp(e,t.tenantId)}}function J_(e,t){const{tenantId:n,companyId:r,location:i,navigate:a}=t,o=()=>{const d=Rm(i.state?.pathnameStackToGoBack),f=d.poppedPathname??Om(1);a(f,{state:{pathnameStackToGoBack:d.newStack}})};return{onBackClick:()=>{o()},onCancelClick:()=>{o()},onConfirmClick:()=>{e(mp(n))},onConfirmSuccess:()=>{a(`../tenants/${n}/companies/${r}`)}}}const K_=ze(Y_,J_)(Kp),X_=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e;return U.jsx(K_,{companyId:n,tenantId:t,location:r,navigate:i})};function Q_(e,t){const n=Qf(e,t.tenantId),r=n.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:n,isDisabled:r}}function eb(e,t){const{tenantId:n,companyId:r,location:i,navigate:a}=t;return{onSubscriptionDetailsChanged:o=>{const{updatePlan:d,applyChanges:f}=o,{subscriptionPlan:v,recurringAddOns:s,coupon:l}=d,c={subscriptionPlanId:v.selectedOption??"",subscriptionAddOnIds:s.filter(y=>y.selectedOption!=null).map(y=>y.selectedOption),subscriptionCouponIds:l.selectedOption!=null?[l.selectedOption]:[],invoiceImmediately:!0,applyEndOfTerm:f.changeType==="applyEndOfTerm",shouldProrate:f.shouldProrate};e(ed({tenantId:n,subscriptionData:c}))},onEstimateSuccess:()=>{const o=dd(i.state?.pathnameStackToGoBack,i.pathname);a(`../tenants/${n}/companies/${r}/summary`,{state:{pathnameStackToGoBack:o}})},onReviewClick:()=>{e(gp(n))},onBackClick:()=>{a(`../tenants/${n}/companies/${r}`)},onResetClick:o=>{e(Wo(n,o.subscription.subscription.subscriptionId))}}}const tb=ze(Q_,eb)(Xp),rb=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e;return U.jsx(tb,{tenantId:t,companyId:n,location:r,navigate:i})},uh=["add","update","summary"],nb=e=>yp(e,uh),ib=e=>vp(e,uh),ab=()=>{const[e,t]=ce.useState(!0),{tenantId:n,companyId:r,updatePageType:i}=ot(),a=Be(),o=Ee(f=>n!=null?f.subscriptionViewState.subscriptionUpdateViewDataByTenantId[n]:null);if(He.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return ce.useEffect(()=>{(o==null&&i!=null||ib(i??"")==null)&&a(`../tenants/${n}/companies/${r}`)},[o]),U.jsx(mr,{isOpen:e,onClose:()=>{t(!1),a("../subscription")},children:U.jsx(sb,{children:U.jsx(ob,{tenantId:n,companyId:r,updatePageType:i!=null?nb(i):void 0})})})},ob=({tenantId:e,companyId:t,updatePageType:n})=>{const r=Be(),i=Jo(),a={tenantId:e,companyId:t,navigate:r,location:i};if(n==null)return U.jsx(W_,{...a});switch(n){case"update":return U.jsx(rb,{...a});case"add":return U.jsx(z_,{...a});case"summary":return U.jsx(X_,{...a});default:return console.error("Subscription Update Page - Invalid Url"),U.jsx(ir,{to:"/",replace:!0})}},sb=tt(Zt)`
|
|
178
178
|
display: flex;
|
|
179
179
|
min-height: 100%;
|
|
180
|
-
`;function ub(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Gt({filterText:r}))},onFiltersChange:(n,r)=>{e(Gt({filters:r}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(n,r)=>{e(Gt({sortKey:n,sortOrder:r}))},onCollapseToggled:(n,r)=>{e(Gt({isRowCollapseToggled:{companyId:n,isCollapsed:r}}))},onScroll:n=>{e(Gt({scrollYOffset:n}))},changeHandlers:(n,r)=>{const i=fb(r);Object.keys(i).length>0&&e($o(n,i))},onCompanyNameClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(n,r)=>{e(bp({tenantId:r})),t.navigate(`../tenants/${r}/companies/${n}`)},onFiltersChange:(n,r)=>{e(Gt({filters:r}))},onCockpitReloadData:n=>{n==="subscription"&&e(Ho())}}}}function cb(e,t){return{subscriptionPageData:{loggedInUser:t.signedInUser,subscriptionView:t.subscriptionView}}}const lb=ze(cb,ub)(Qp);function Do({isDrawerOpen:e}){const t=Be(),n=We(),r=Ut(),i=
|
|
180
|
+
`;function ub(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Gt({filterText:r}))},onFiltersChange:(n,r)=>{e(Gt({filters:r}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(n,r)=>{e(Gt({sortKey:n,sortOrder:r}))},onCollapseToggled:(n,r)=>{e(Gt({isRowCollapseToggled:{companyId:n,isCollapsed:r}}))},onScroll:n=>{e(Gt({scrollYOffset:n}))},changeHandlers:(n,r)=>{const i=fb(r);Object.keys(i).length>0&&e($o(n,i))},onCompanyNameClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(n,r)=>{e(bp({tenantId:r})),t.navigate(`../tenants/${r}/companies/${n}`)},onFiltersChange:(n,r)=>{e(Gt({filters:r}))},onCockpitReloadData:n=>{n==="subscription"&&e(Ho())}}}}function cb(e,t){return{subscriptionPageData:{loggedInUser:t.signedInUser,subscriptionView:t.subscriptionView}}}const lb=ze(cb,ub)(Qp);function Do({isDrawerOpen:e}){const t=Be(),n=We(),r=Ut(),i=Et(),a=Ee(f=>_p(f)),o=Ee(f=>f.companyViewState.zeniUsers.fetchState);ce.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&(n(Ho()),(o==="Not-Started"||o==="Error")&&n(Ct()))},[a.fetchState]);const d=He.getSignedInUser();return U.jsxs(U.Fragment,{children:[e===!0?U.jsx(ab,{}):null,U.jsx(lb,{headerData:{allTabOptions:i,selectedTabOption:St("subscription")},initialOpenThreadRequest:r??void 0,signedInUser:d,subscriptionView:a,navigate:t})]})}const fb=e=>{const{users:t}=e;return t?{users:t}:{}};function db(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:U.jsx(ke,{element:U.jsx(Do,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:U.jsx(ke,{element:U.jsx(Do,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Do,{})})})]})}function hb(e,t){const{navigate:n}=t;return{headerActions:{onTabChange:r=>{const i=kt(r);n(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(r,i)=>{e(Ss({filterText:i}))},onFiltersChange:(r,i)=>{e(Ss({filters:i}))}}},taskManagerPageActions:{onRowClick:(r,i)=>{window.open(`/${r}/tasks/${i}`)},onCockpitReloadData:r=>{r==="taskManager"&&e(No(0,"dueDate","descending",!1))},onFetchTaskManagerView:(r,i,a,o,d,f)=>{e(No(r,i,a,o,d,f))}}}}function pb(e,t){return{isBirdsEyeViewEnabled:t.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:t.companyTaskManagerView}}}const mb=ze(pb,hb)(em);function jf(){const e=Be(),t=We(),n=Ut(),r=Et(),{useFeatureGate:i}=wt(),{isFeatureEnabled:a}=i(yn.isBirdsEyeViewEnabled),o=Ee(l=>wp(l)),d=Ee(l=>Sp(l)),f=Ee(l=>l.companyViewState.zeniUsers.fetchState);if(ce.useEffect(()=>{o.fetchState==="Completed"?t(xt(!1)):o.fetchState==="Not-Started"&&(t(No(0,"dueDate","descending",!1)),t(Ep()),(f==="Not-Started"||f==="Error")&&t(Ct()))},[o.fetchState]),ce.useEffect(()=>{a&&(o.metricsFetchState==="Not-Started"||o.metricsFetchState==="Error")&&t(Rp())},[a,o.metricsFetchState]),He.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");const s=ce.useMemo(()=>({allTabOptions:r,selectedTabOption:St("taskManager")}),[r]);return U.jsx(mb,{headerData:s,companyTaskManagerView:o,isBirdsEyeViewEnabled:a,initialOpenThreadRequest:n,navigate:e,reviewCount:d})}function gb(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(jf,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(jf,{})})})]})}const vb=ud(()=>td(()=>import("./CreditAgentRoutes-B41gvJ7R.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])));let Lf=!1;const yb=ud(()=>td(()=>Promise.resolve().then(()=>Km),void 0));function _b(){const e=He.getSignedInUser(),t=Bt().mode;return ce.useEffect(()=>{He.isSignedIn()&&!Lf&&e!=null&&(tm(e,t),Lf=!0)},[e]),U.jsxs(gt,{children:[U.jsx(Te,{path:"/ai-accountant/*",element:U.jsx(Tm,{})}),U.jsx(Te,{path:"/management/*",element:U.jsx(ig,{})}),U.jsx(Te,{path:"/subscription/*",element:U.jsx(db,{})}),U.jsx(Te,{path:"/onboarding/*",element:U.jsx(g_,{})}),U.jsx(Te,{path:"/portfolio/*",element:U.jsx(b_,{})}),U.jsx(Te,{path:"/audit/*",element:U.jsx(B_,{})}),U.jsx(Te,{path:"/reconciliation/*",element:U.jsx(C_,{})}),U.jsx(Te,{path:"/health-monitor/*",element:U.jsx(km,{})}),U.jsx(Te,{path:"/task-manager/*",element:U.jsx(gb,{})}),U.jsx(Te,{path:"/credit-agent/*",element:U.jsx(vb,{})}),U.jsx(Te,{path:"/*",element:U.jsx(yb,{})})]})}const kb=Object.freeze(Object.defineProperty({__proto__:null,default:_b},Symbol.toStringTag,{value:"Module"}));export{ke as P,kb as S,wm as u};
|