@zeniai/web-cockpit-ui 2.0.6-dev → 2.0.6-qa

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.
@@ -1,4 +1,4 @@
1
- import{G1 as Pf,G2 as kf,jr as xt,ef as ps,G3 as jf,eo as Lf,ed as qf,G4 as Wt,ek as rn,G5 as id,G6 as ad,G7 as or,G8 as od,i2 as Nf,jt as At,h$ as sd,i6 as Df,G9 as ms,i8 as ud,i9 as cd,Ga as _r,Gb as sr,hx as ld,Gc as cn,Gd as Fo,c$ as fd,fx as Bo,fu as nn,fC as qt,fA as hd,Ge as Mf,Gf as Ff,ip as dd,il as pd,Gg as md,iA as gd,iv as gs,is as vd,ig as yd,Gh as _d,dX as bd,d5 as wd,jF as Bf,Gi as Ed,be as tn,ic as vs,ii as Sd,qp as Uf,js as ln,Gj as pt,iP as Uo,Gk as Rd,jL as Od,H as et,bi as Go,Gl as Td,hu as xd,Gm as Ad,Gn as Gf,Go as Id,oZ as ys,ou as Cd,Gp as Pd,oA as Rn,Gq as kd,oC as jd,Gr as Rt,or as Ld,cP as qd,jw as Vf,jx as $f,jv as Vo,ju as $o,jy as Nd,Gs as Dd,p0 as Md,Gt as Fd,oJ as Bd,oW as Ud,Gu as Gd,oN as Vd,Gv as $d,Gw as Yt,Gx as zo,Gy as zd,Gz as Hd,nv as Zd,nB as zf,GA as Hf,g$ as Wd,F7 as Zf,GB as Yd,F1 as Jd,GC as Kd,GD as Xd,nE as Qd,GE as ep,Fc as tp,F0 as rp,r_ as Wf,GF as On,GG as Yf,C9 as Ho,BX as np,Cc as Jf,B_ as ip,GH as ap,C3 as op,BR as sp,BU as up,GI as cp,Cg as lp,C6 as fp,bl as hp,bd as dp,GJ as pp,GK as Gt,GL as mp,GM as gp,GN as vp,iE as qo,iK as yp,ba as _p}from"./zeni-epic-state-BW-vYzMS.js";import{j as U}from"./liveblocks-PwPddB1a.js";import{a as fe,p as ye,e as Kf,d as Xf,g as bp}from"./sentry-B3BRIZXI.js";import{J as ur,h as Dt,x as wp,V as wt,g as Qf,b as at,a as Ge,c as It,d as Mt,z as Je,e as Ep,u as Sp,f as Rp,i as Op,j as fn,k as Tp,D as cr,l as hn,o as Lt,w as xp,n as Ap,m as Ot,s as dn,W as Nt,p as Ip,$ as Cp,q as Tn,r as Pp,t as eh,v as kp,y as th,A as rh,B as No,N as jp,T as Lp,C as qp,E as nh,F as Np,G as Dp,H as Mp,I as Fp,S as Bp,K as Up,L as Gp,M as Vp,O as $p,P as zp,Q as Hp,R as Zp,U as Wp}from"./index-DSgV1c8r.js";import{f as Yp}from"./analyticsHelper-D0LaHE6d.js";import{i as Fe,n as Ze,g as Se,o as ot,N as rr,k as gt,l as Te,p as ih,h as $e,u as Zo,j as Do}from"./core-D_MAgorT.js";import{D as lr,n as tt,S as $t}from"./mui-C0zAEyFB.js";import{a as He,b as Jp,c as Kp,d as Xp,e as Wo,f as Qp,g as em,h as tm,i as zt,j as rm,k as ir,l as pn,m as nm,n as fr,o as im}from"./utils-DyFv7MO8.js";import{r as Yo}from"./empty-taYVTRRD.js";import{r as hr,a as am}from"./index-Mdntodkr.js";import{r as om}from"./index-C87IeE77.js";import"./recharts-DTSdaU5r.js";import"./analytics-CJO6EKNZ.js";import"./lottie-Cq_uKEbi.js";import"./lexical-BRT5wQo0.js";import"./url-CBmJaXjR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c7ff1f20-9ba8-4ee3-8ea1-80ed30bb3e22",e._sentryDebugIdIdentifier="sentry-dbid-c7ff1f20-9ba8-4ee3-8ea1-80ed30bb3e22")}catch{}})();var xn={},_s;function mn(){return _s||(_s=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)o(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,d,l){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+d),l);return}for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){var r,s,d,l,f,h;for(d=0,r=0,s=t.length;r<s;r++)d+=t[r].length;for(h=new Uint8Array(d),l=0,r=0,s=t.length;r<s;r++)f=t[r],h.set(f,l),l+=f.length;return h}},a={arraySet:function(t,r,s,d,l){for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(xn)),xn}var ut={},Ct={},bs;function sm(){if(bs)return Ct;bs=1;var e=mn(),n=4,o=0,i=1,a=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var r=0,s=1,d=2,l=3,f=258,h=29,c=256,w=c+1+h,m=30,y=19,g=2*w+1,u=15,_=16,E=7,v=256,b=16,x=17,O=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((w+2)*2);t(R);var L=new Array(m*2);t(L);var N=new Array(S);t(N);var V=new Array(f-l+1);t(V);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(I,ne,se,le,Z){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=le,this.max_length=Z,this.has_stree=I&&I.length}var F,W,z;function B(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function q(I){return I<256?N[I]:N[256+(I>>>7)]}function M(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function G(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,M(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function X(I,ne,se){G(I,se[ne*2],se[ne*2+1])}function K(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(M(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,le=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,$,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>le)&&(I.bl_count[A]++,$=0,te>=oe&&($=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+$),ie&&(I.static_len+=ee*(Z[te*2+1]+$)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>le)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var le=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)le[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=K(le[oe]++,oe))}}function me(){var I,ne,se,le,Z,ie=new Array(u+1);for(se=0,le=0;le<h-1;le++)for(P[le]=se,I=0;I<1<<C[le];I++)V[se++]=le;for(V[se-1]=le,Z=0,le=0;le<16;le++)for(j[le]=Z,I=0;I<1<<D[le];I++)N[Z++]=le;for(Z>>=7;le<m;le++)for(j[le]=Z<<7,I=0;I<1<<D[le]-7;I++)N[256+Z++]=le;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,w+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=K(I,5);F=new k(R,C,c+1,w,u),W=new k(L,D,0,m,u),z=new k(new Array(0),Y,0,y,E)}function we(I){var ne;for(ne=0;ne<w;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?M(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,le){Ce(I),M(I,se),M(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,le){var Z=ne*2,ie=se*2;return I[Z]<I[ie]||I[Z]===I[ie]&&le[ne]<=le[se]}function Ae(I,ne,se){for(var le=I.heap[se],Z=se<<1;Z<=I.heap_len&&(Z<I.heap_len&&je(ne,I.heap[Z+1],I.heap[Z],I.depth)&&Z++,!je(ne,le,I.heap[Z],I.depth));)I.heap[se]=I.heap[Z],se=Z,Z<<=1;I.heap[se]=le}function Ee(I,ne,se){var le,Z,ie=0,T,oe;if(I.last_lit!==0)do le=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Z=I.pending_buf[I.l_buf+ie],ie++,le===0?X(I,Z,ne):(T=V[Z],X(I,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],G(I,Z,oe)),le--,T=q(le),X(I,T,se),oe=D[T],oe!==0&&(le-=j[T],G(I,le,oe)));while(ie<I.last_lit);X(I,v,ne)}function Ve(I,ne){var se=ne.dyn_tree,le=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Z&&(I.static_len-=le[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,le=0;le<=se;le++)ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&I.bl_tree[ie*2]++,I.bl_tree[b*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),le=0;le<=se;le++)if(ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(X(I,ie,I.bl_tree),oe--),X(I,b,I.bl_tree),G(I,oe-3,2)):oe<=10?(X(I,x,I.bl_tree),G(I,oe-3,3)):(X(I,O,I.bl_tree),G(I,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function De(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),Ve(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[H[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function We(I,ne,se,le){var Z;for(G(I,ne-257,5),G(I,se-1,5),G(I,le-4,4),Z=0;Z<le;Z++)G(I,I.bl_tree[H[Z]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(I){Q||(me(),Q=!0),I.l_desc=new B(I.dyn_ltree,F),I.d_desc=new B(I.dyn_dtree,W),I.bl_desc=new B(I.bl_tree,z),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,le){G(I,(r<<1)+(le?1:0),3),ke(I,ne,se)}function he(I){G(I,s<<1,3),X(I,v,R),ae(I)}function Re(I,ne,se,le){var Z,ie,T=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=J(I)),Ve(I,I.l_desc),Ve(I,I.d_desc),T=De(I),Z=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(I,ne,se,le):I.strategy===n||ie===Z?(G(I,(s<<1)+(le?1:0),3),Ee(I,R,L)):(G(I,(d<<1)+(le?1:0),3),We(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),le&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(V[se]+c+1)*2]++,I.dyn_dtree[q(ne)*2]++),I.last_lit===I.lit_bufsize-1}return Ct._tr_init=ce,Ct._tr_stored_block=ge,Ct._tr_flush_block=Re,Ct._tr_tally=Oe,Ct._tr_align=he,Ct}var An,ws;function ah(){if(ws)return An;ws=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return An=e,An}var In,Es;function oh(){if(Es)return In;Es=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,d=r+t;i^=-1;for(var l=r;l<d;l++)i=i>>>8^s[(i^a[l])&255];return i^-1}return In=o,In}var Cn,Ss;function um(){return Ss||(Ss=1,Cn={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"}),Cn}var Rs;function cm(){if(Rs)return ut;Rs=1;var e=mn(),n=sm(),o=ah(),i=oh(),a=um(),t=0,r=1,s=3,d=4,l=5,f=0,h=1,c=-2,w=-3,m=-5,y=-1,g=1,u=2,_=3,E=4,v=0,b=2,x=8,O=9,C=15,D=8,Y=29,H=256,S=H+1+Y,R=30,L=19,N=2*S+1,V=15,P=3,j=258,k=j+P+1,F=32,W=42,z=69,B=73,q=91,M=103,G=113,X=666,K=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function Ve(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var $=p.avail_in;return $>A&&($=A),$===0?0:(p.avail_in-=$,e.arraySet(te,p.input,p.next_in,$,re),p.state.wrap===1?p.adler=o(p.adler,te,$,re):p.state.wrap===2&&(p.adler=i(p.adler,te,$,re)),p.next_in+=$,p.total_in+=$,$)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,$,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Be=xe[A+_e-1],Ye=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if($=te,!(xe[$+_e]!==Ye||xe[$+_e-1]!==Be||xe[$]!==xe[A]||xe[++$]!==xe[A+1])){A+=2,$++;do;while(xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Be=xe[A+_e-1],Ye=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function De(p){var te=p.w_size,re,A,$,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do $=p.head[--re],p.head[re]=$>=te?$-te:0;while(--A);A=te,re=A;do $=p.prev[--re],p.prev[re]=$>=te?$-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function We(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(De(p),p.lookahead===0&&te===t)return K;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),K)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else A=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function Q(p,te){for(var re,A,$;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){$=p.strstart+p.lookahead-P,A=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=$&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return K}else if(p.match_available){if(A=n._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return K}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ce(p,te){for(var re,A,$,ee,_e=p.window;;){if(p.lookahead<=j){if(De(p),p.lookahead<=j&&te===t)return K;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&($=p.strstart-1,A=_e[$],A===_e[++$]&&A===_e[++$]&&A===_e[++$])){ee=p.strstart+j;do;while(A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&$<ee);p.match_length=j-(ee-$),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(De(p),p.lookahead===0)){if(te===t)return K;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function he(p,te,re,A,$){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=$}var Re;Re=[new he(0,0,0,0,We),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(N*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(V+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=b,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?W:G,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),f)}function se(p){var te=ne(p);return te===f&&Oe(p.state),te}function le(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,f)}function Z(p,te,re,A,$,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),$<1||$>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>E)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=$+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<$+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,D,v)}function T(p,te){var re,A,$,ee;if(!p||!p.state||te>l||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===X&&te!==d)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===W)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=z):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=G);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=F),_e+=31-_e%31,A.status=G,Ve(A,_e),A.strstart!==0&&(Ve(A,p.adler>>>16),Ve(A,p.adler&65535)),p.adler=1}if(A.status===z)if(A.gzhead.extra){for($=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=B)}else A.status=B;if(A.status===B)if(A.gzhead.name){$=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),ee===0&&(A.gzindex=0,A.status=q)}else A.status=q;if(A.status===q)if(A.gzhead.comment){$=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),ee===0&&(A.status=M)}else A.status=M;if(A.status===M&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=G)):A.status=G),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,f}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(A.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==X){var pe=A.strategy===u?ge(A,te):A.strategy===_?ce(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=X),pe===K||pe===ue)return p.avail_out===0&&(A.last_flush=-1),f;if(pe===ae&&(te===r?n._tr_align(A):te!==l&&(n._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,f}return te!==d?f:A.wrap<=0?h:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):(Ve(A,p.adler>>>16),Ve(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?f:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==W&&te!==z&&te!==B&&te!==q&&te!==M&&te!==G&&te!==X?we(p,c):(p.state=null,te===G?we(p,w):f))}function be(p,te){var re=te.length,A,$,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==W||A.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,De(A);A.lookahead>=P;){$=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[$+P-1])&A.hash_mask,A.prev[$&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=$,$++;while(--ee);A.strstart=$,A.lookahead=P-1,De(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,f}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=le,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var Pn,Os;function lm(){if(Os)return Pn;Os=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 Pn=e,Pn}var it={},kn,Ts;function fm(){if(Ts)return kn;Ts=1;var e=30,n=12;return kn=function(i,a){var t,r,s,d,l,f,h,c,w,m,y,g,u,_,E,v,b,x,O,C,D,Y,H,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),d=i.next_out,R=i.output,l=d-(a-i.avail_out),f=d+(i.avail_out-257),h=t.dmax,c=t.wsize,w=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,E=t.distcode,v=(1<<t.lenbits)-1,b=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=E[g&b];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(D=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),D+=g&(1<<O)-1,D>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-l,D>O){if(O=D-O,O>w&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(Y=0,H=y,m===0){if(Y+=c-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}}else if(m<O){if(Y+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[Y++];while(--O);if(Y=0,m<C){O=m,C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}}}else if(Y+=m-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}for(;C>2;)R[d++]=H[Y++],R[d++]=H[Y++],R[d++]=H[Y++],C-=3;C&&(R[d++]=H[Y++],C>1&&(R[d++]=H[Y++]))}else{Y=d-D;do R[d++]=R[Y++],R[d++]=R[Y++],R[d++]=R[Y++],C-=3;while(C>2);C&&(R[d++]=R[Y++],C>1&&(R[d++]=R[Y++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&d<f);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=d,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=d<f?257+(f-d):257-(d-f),t.hold=g,t.bits=u},kn}var jn,xs;function hm(){if(xs)return jn;xs=1;var e=mn(),n=15,o=852,i=592,a=0,t=1,r=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return jn=function(c,w,m,y,g,u,_,E){var v=E.bits,b=0,x=0,O=0,C=0,D=0,Y=0,H=0,S=0,R=0,L=0,N,V,P,j,k,F=null,W=0,z,B=new e.Buf16(n+1),q=new e.Buf16(n+1),M=null,G=0,X,K,ae;for(b=0;b<=n;b++)B[b]=0;for(x=0;x<y;x++)B[w[m+x]]++;for(D=v,C=n;C>=1&&B[C]===0;C--);if(D>C&&(D=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<C&&B[O]===0;O++);for(D<O&&(D=O),S=1,b=1;b<=n;b++)if(S<<=1,S-=B[b],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(q[1]=0,b=1;b<n;b++)q[b+1]=q[b]+B[b];for(x=0;x<y;x++)w[m+x]!==0&&(_[q[w[m+x]]++]=x);if(c===a?(F=M=_,z=19):c===t?(F=s,W-=257,M=d,G-=257,z=256):(F=l,M=f,z=-1),L=0,x=0,b=O,k=u,Y=D,H=0,P=-1,R=1<<D,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=b-H,_[x]<z?(K=0,ae=_[x]):_[x]>z?(K=M[G+_[x]],ae=F[W+_[x]]):(K=96,ae=0),N=1<<b-H,V=1<<Y,O=V;do V-=N,g[k+(L>>H)+V]=X<<24|K<<16|ae|0;while(V!==0);for(N=1<<b-1;L&N;)N>>=1;if(N!==0?(L&=N-1,L+=N):L=0,x++,--B[b]===0){if(b===C)break;b=w[m+_[x]]}if(b>D&&(L&j)!==P){for(H===0&&(H=D),k+=O,Y=b-H,S=1<<Y;Y+H<C&&(S-=B[Y+H],!(S<=0));)Y++,S<<=1;if(R+=1<<Y,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=D<<24|Y<<16|k-u|0}}return L!==0&&(g[k+L]=b-H<<24|64<<16|0),E.bits=D,0},jn}var As;function dm(){if(As)return it;As=1;var e=mn(),n=ah(),o=oh(),i=fm(),a=hm(),t=0,r=1,s=2,d=4,l=5,f=6,h=0,c=1,w=2,m=-2,y=-3,g=-4,u=-5,_=8,E=1,v=2,b=3,x=4,O=5,C=6,D=7,Y=8,H=9,S=10,R=11,L=12,N=13,V=14,P=15,j=16,k=17,F=18,W=19,z=20,B=21,q=22,M=23,G=24,X=25,K=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function Ve(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?m:(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(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function De(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function We(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,De(Z))}function J(Z,ie){var T,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,T=We(Z,ie),T!==h&&(Z.state=null),T):m}function Q(Z){return J(Z,Ee)}var ce=!0,ge,he;function Re(Z){if(ce){var ie;for(ge=new e.Buf32(512),he=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(a(r,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;a(s,Z.lens,0,32,he,0,Z.work,{bits:5}),ce=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Oe(Z,ie,T,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,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Z,ie){var T,oe,be,p,te,re,A,$,ee,_e,de,pe,xe,vt,Le=0,Ie,Be,Ye,Xe,vr,yr,Me,nt,ze=new e.Buf8(4),yt,ht,ds=[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 m;T=Z.state,T.mode===L&&(T.mode=N),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,$=T.hold,ee=T.bits,_e=re,de=A,nt=h;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=N;break}for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&$===35615){T.check=0,ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0),$=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||((($&255)<<8)+($>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if(($&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if($>>>=4,ee-=4,Me=($&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=$&512?S:L,$=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.flags=$,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=$>>8&1),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0,T.mode=b;case b:for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=$),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,ze[2]=$>>>16&255,ze[3]=$>>>24&255,T.check=o(T.check,ze,4,0)),$=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=$&255,T.head.os=$>>8),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.length=$,T.head&&(T.head.extra_len=$),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=D;case D:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=Y;case Y:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=H;case H:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}$=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}Z.adler=T.check=Ve($),$=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,w;Z.adler=T.check=1,T.mode=L;case L:if(ie===l||ie===f)break e;case N:if(T.last){$>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}switch(T.last=$&1,$>>>=1,ee-=1,$&3){case 0:T.mode=V;break;case 1:if(Re(T),T.mode=z,ie===f){$>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}$>>>=2,ee-=2;break;case V:for($>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(($&65535)!==($>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=$&65535,$=0,ee=0,T.mode=P,ie===f)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.nlen=($&31)+257,$>>>=5,ee-=5,T.ndist=($&31)+1,$>>>=5,ee-=5,T.ncode=($&15)+4,$>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=F;case F:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.lens[ds[T.have++]]=$&7,$>>>=3,ee-=3}for(;T.have<19;)T.lens[ds[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=W;case W:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[$&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(Ye<16)$>>>=Ie,ee-=Ie,T.lens[T.have++]=Ye;else{if(Ye===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($>>>=Ie,ee-=Ie,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+($&3),$>>>=2,ee-=2}else if(Ye===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Ie,ee-=Ie,Me=0,pe=3+($&7),$>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Ie,ee-=Ie,Me=0,pe=11+($&127),$>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=z,ie===f)break e;case z:T.mode=B;case B:if(re>=6&&A>=258){Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,$=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[$&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(Be&&(Be&240)===0){for(Xe=Ie,vr=Be,yr=Ye;Le=T.lencode[yr+(($&(1<<Xe+vr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Xe,ee-=Xe,T.back+=Xe}if($>>>=Ie,ee-=Ie,T.back+=Ie,T.length=Ye,Be===0){T.mode=K;break}if(Be&32){T.back=-1,T.mode=L;break}if(Be&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Be&15,T.mode=q;case q:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.length+=$&(1<<T.extra)-1,$>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=M;case M:for(;Le=T.distcode[$&(1<<T.distbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if((Be&240)===0){for(Xe=Ie,vr=Be,yr=Ye;Le=T.distcode[yr+(($&(1<<Xe+vr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Xe,ee-=Xe,T.back+=Xe}if($>>>=Ie,ee-=Ie,T.back+=Ie,Be&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Ye,T.extra=Be&15,T.mode=G;case G:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.offset+=$&(1<<T.extra)-1,$>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=B);break;case K:if(A===0)break e;be[te++]=T.length,A--,T.mode=B;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,$|=oe[p++]<<ee,ee+=8}if(de-=A,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=A,(T.flags?$:Ve($))!==T.check){Z.msg="incorrect data check",T.mode=me;break}$=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}$=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Oe(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?o(T.check,be,de,Z.next_out-de):n(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===z||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,h}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function le(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Oe(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=De,it.inflateReset2=We,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=le,it.inflateInfo="pako inflate (from Nodeca project)",it}var Ln,Is;function pm(){return Is||(Is=1,Ln={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}),Ln}const mm={overlayWidth:new at(100,100,50)};function Cs(){const e=Fe(),n=Ze(),o=ur(),i=Dt(),a=Se(b=>Pf(b)),t=a.uiState.selectedCustomerTenantId,r=fe.useMemo(()=>t?a.customers.find(b=>b.tenantId===t):void 0,[a.customers,t]),s=Se(b=>t?kf(b.aiAccountantCustomerState,b.userState,t):[]),d=a.customerViewStateByTenantId[t],l=d?.jobsFetchStatus??{fetchState:"Not-Started"},f=d?.jobsPageToken!=null;fe.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&n(ps())},[a.fetchState]);const h=b=>{const x=It(b),O=Mt(b);Ge.trackCockpitTabClicked(O),e(`../../${x}`,{replace:!0})},c=(b,x,O,C)=>{n(jf([b.tenantId])),n(Lf(x,O,C))},w=b=>{n(qf(b.companyId,b.tenantId))},m=b=>{b==="aiAccountant"&&n(ps())},y=(b,x)=>{n(Wt({sortKey:b,sortOrder:x}))},g=b=>{n(Wt({selectedCustomerTenantId:b.tenantId})),n(rn(b.tenantId))},u=()=>{n(Wt({selectedCustomerTenantId:""}))},_=b=>{n(Wt({filterText:b}))},E=(b,x)=>{n(Wt({filters:x}))},v=()=>{t&&n(rn(t,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(wp,{headerData:{selectedTabOption:wt("aiAccountant")},headerActions:{onTabChange:h},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:c,onCancelOnboarding:w,onCockpitReloadData:m,onColumnSortConfigChanged:y,onCustomerSelected:g,onFilterTextChanged:_,onFiltersChange:E}}),U.jsx(lr,{anchor:"right",open:r!=null,PaperProps:{style:{width:mm.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:u,children:r!=null&&U.jsx(Qf,{customer:r,hasMoreJobs:f,jobs:s,jobsFetchStatus:l,onAction:c,onCancelOnboarding:w,onClose:u,onLoadMoreJobs:v})})]})}function gm(){const{tenantId:e=""}=ot(),n=Fe(),o=Ze(),i=Se(c=>id(c.aiAccountantCustomerState,c.userState)),a=Se(c=>Pf(c)),t=i.find(c=>c.tenantId===e),r=a.customerViewStateByTenantId[e],s=Se(c=>kf(c.aiAccountantCustomerState,c.userState,e));if(fe.useEffect(()=>{o(rn(e))},[e,o]),t==null)return null;const d=(c,w,m,y)=>{o(jf([c.tenantId])),o(Lf(w,m,y))},l=c=>{o(qf(c.companyId,c.tenantId))},f=()=>{n("../")},h=()=>{o(rn(e,!0))};return U.jsx(Qf,{customer:t,hasMoreJobs:r?.jobsPageToken!=null,jobs:s,jobsFetchStatus:r?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:d,onCancelOnboarding:l,onClose:f,onLoadMoreJobs:h})}const sh=(e,n)=>{const o=[...e??[]];return o.push(n),o},vm=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ym=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>Je.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(rr,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function _m(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Cs,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(Pe,{element:U.jsx(gm,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Cs,{})})})]})}const Ft=()=>{const[e,n]=ih(),[o,i]=fe.useState(),a=fe.useRef(!1);return fe.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=Ep(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},bm={overlayWidth:new at(100,100,50)},{common:{strings:Ps}}=cr.getLocalizedStrings();function wm(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Mt(o);Ge.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(_r({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ge.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(Ps.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(Ps.comma)}}),e(_r({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Df(o))},onColumnSortConfigChanged:(o,i)=>{e(_r({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(Nf())},onFiltersChange:o=>{e(_r({uiState:{filters:o}}))}}}}function Em(e,n){return{headerData:{selectedTabOption:wt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Sm=$e(Em,wm)(Tp);function qn({isDrawerOpen:e}){const n=Fe(),o=Ze(),i=Dt(),a=ur(),{companyId:t}=ot(),[r,s]=ih(),[d,l]=fe.useState(!1),f=Ft(),h=Se(v=>ad(v)),c=Se(v=>or(v)),{additionalChurnFactors:w}=Se(v=>od(v)),{selectedCompanyDetail:m,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=h,u=Se(v=>v.companyViewState.zeniUsers.fetchState),_=Se(v=>v.companyHealthMetricConfigViewState);if(fe.useEffect(()=>{const v=b=>b==="Not-Started"||b==="Error";h.fetchState==="Completed"?o(xt(!1)):v(h.fetchState)&&(o(Nf()),v(u)&&o(At()),v(_.fetchState)&&o(sd()))},[h.fetchState,_.fetchState]),fe.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Df(t)),m!=null&&(Sp(),Ge.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),l(!0),r.delete("utm_source"),s(r)))},[h.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),Je.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||y!=null&&m!=null?U.jsx(lr,{anchor:"right",open:y!=null,PaperProps:{style:{width:bm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ms()),children:U.jsx(Rp,{roomId:`cockpit_${y}`,autoConnect:!0,children:U.jsx(Op,{onSaveClick:()=>{y!=null&&o(cd(y))},onSaveChangesToLocalStore:v=>{h.selectedCompanyId!=null&&o(ud({companyId:h.selectedCompanyId,updatedLocalData:v}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(ms()),analytics:Ge,urlSource:d,additionalChurnFactorsOptions:w})})}):null,U.jsx(Sm,{initialOpenThreadRequest:f??void 0,healthView:h,managementView:c,navigate:n,mixpanelHMUrl:fn.mixpanelHMUrl})]})}function Rm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(qn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(qn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(qn,{})})})]})}const Om={drawerLeftMargin:new at(0,0,240)};function dr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=ur(),r=o?.valuePx(t)??Om.drawerLeftMargin.valuePx(t),s=Dt();return U.jsx(lr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Tm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(xm,{children:U.jsx(hn,{size:"ExtraLarge",start:!0})}):null,xm=tt.div`
1
+ import{G1 as Pf,G2 as kf,jr as xt,ef as ps,G3 as jf,eo as Lf,ed as qf,G4 as Wt,ek as rn,G5 as id,G6 as ad,G7 as or,G8 as od,i2 as Nf,jt as At,h$ as sd,i6 as Df,G9 as ms,i8 as ud,i9 as cd,Ga as _r,Gb as sr,hx as ld,Gc as cn,Gd as Fo,c$ as fd,fx as Bo,fu as nn,fC as qt,fA as hd,Ge as Mf,Gf as Ff,ip as dd,il as pd,Gg as md,iA as gd,iv as gs,is as vd,ig as yd,Gh as _d,dX as bd,d5 as wd,jF as Bf,Gi as Ed,be as tn,ic as vs,ii as Sd,qp as Uf,js as ln,Gj as pt,iP as Uo,Gk as Rd,jL as Od,H as et,bi as Go,Gl as Td,hu as xd,Gm as Ad,Gn as Gf,Go as Id,oZ as ys,ou as Cd,Gp as Pd,oA as Rn,Gq as kd,oC as jd,Gr as Rt,or as Ld,cP as qd,jw as Vf,jx as $f,jv as Vo,ju as $o,jy as Nd,Gs as Dd,p0 as Md,Gt as Fd,oJ as Bd,oW as Ud,Gu as Gd,oN as Vd,Gv as $d,Gw as Yt,Gx as zo,Gy as zd,Gz as Hd,nv as Zd,nB as zf,GA as Hf,g$ as Wd,F7 as Zf,GB as Yd,F1 as Jd,GC as Kd,GD as Xd,nE as Qd,GE as ep,Fc as tp,F0 as rp,r_ as Wf,GF as On,GG as Yf,C9 as Ho,BX as np,Cc as Jf,B_ as ip,GH as ap,C3 as op,BR as sp,BU as up,GI as cp,Cg as lp,C6 as fp,bl as hp,bd as dp,GJ as pp,GK as Gt,GL as mp,GM as gp,GN as vp,iE as qo,iK as yp,ba as _p}from"./zeni-epic-state-BW-vYzMS.js";import{j as U}from"./liveblocks-PwPddB1a.js";import{a as fe,p as ye,e as Kf,d as Xf,g as bp}from"./sentry-B3BRIZXI.js";import{J as ur,h as Dt,x as wp,V as wt,g as Qf,b as at,a as Ge,c as It,d as Mt,z as Je,e as Ep,u as Sp,f as Rp,i as Op,j as fn,k as Tp,D as cr,l as hn,o as Lt,w as xp,n as Ap,m as Ot,s as dn,W as Nt,p as Ip,$ as Cp,q as Tn,r as Pp,t as eh,v as kp,y as th,A as rh,B as No,N as jp,T as Lp,C as qp,E as nh,F as Np,G as Dp,H as Mp,I as Fp,S as Bp,K as Up,L as Gp,M as Vp,O as $p,P as zp,Q as Hp,R as Zp,U as Wp}from"./index-hgTW36kH.js";import{f as Yp}from"./analyticsHelper-Btecxsit.js";import{i as Fe,n as Ze,g as Se,o as ot,N as rr,k as gt,l as Te,p as ih,h as $e,u as Zo,j as Do}from"./core-D_MAgorT.js";import{D as lr,n as tt,S as $t}from"./mui-C0zAEyFB.js";import{a as He,b as Jp,c as Kp,d as Xp,e as Wo,f as Qp,g as em,h as tm,i as zt,j as rm,k as ir,l as pn,m as nm,n as fr,o as im}from"./utils-DyFv7MO8.js";import{r as Yo}from"./empty-taYVTRRD.js";import{r as hr,a as am}from"./index-Mdntodkr.js";import{r as om}from"./index-C87IeE77.js";import"./recharts-DTSdaU5r.js";import"./analytics-CJO6EKNZ.js";import"./lottie-Cq_uKEbi.js";import"./lexical-BRT5wQo0.js";import"./url-CBmJaXjR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c7ff1f20-9ba8-4ee3-8ea1-80ed30bb3e22",e._sentryDebugIdIdentifier="sentry-dbid-c7ff1f20-9ba8-4ee3-8ea1-80ed30bb3e22")}catch{}})();var xn={},_s;function mn(){return _s||(_s=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var d in s)o(s,d)&&(t[d]=s[d])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,d,l){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+d),l);return}for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){var r,s,d,l,f,h;for(d=0,r=0,s=t.length;r<s;r++)d+=t[r].length;for(h=new Uint8Array(d),l=0,r=0,s=t.length;r<s;r++)f=t[r],h.set(f,l),l+=f.length;return h}},a={arraySet:function(t,r,s,d,l){for(var f=0;f<d;f++)t[l+f]=r[s+f]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(xn)),xn}var ut={},Ct={},bs;function sm(){if(bs)return Ct;bs=1;var e=mn(),n=4,o=0,i=1,a=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var r=0,s=1,d=2,l=3,f=258,h=29,c=256,w=c+1+h,m=30,y=19,g=2*w+1,u=15,_=16,E=7,v=256,b=16,x=17,O=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((w+2)*2);t(R);var L=new Array(m*2);t(L);var N=new Array(S);t(N);var V=new Array(f-l+1);t(V);var P=new Array(h);t(P);var j=new Array(m);t(j);function k(I,ne,se,le,Z){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=le,this.max_length=Z,this.has_stree=I&&I.length}var F,W,z;function B(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function q(I){return I<256?N[I]:N[256+(I>>>7)]}function M(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function G(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,M(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function X(I,ne,se){G(I,se[ne*2],se[ne*2+1])}function K(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(M(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,le=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,$,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>le)&&(I.bl_count[A]++,$=0,te>=oe&&($=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+$),ie&&(I.static_len+=ee*(Z[te*2+1]+$)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>le)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var le=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)le[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=K(le[oe]++,oe))}}function me(){var I,ne,se,le,Z,ie=new Array(u+1);for(se=0,le=0;le<h-1;le++)for(P[le]=se,I=0;I<1<<C[le];I++)V[se++]=le;for(V[se-1]=le,Z=0,le=0;le<16;le++)for(j[le]=Z,I=0;I<1<<D[le];I++)N[Z++]=le;for(Z>>=7;le<m;le++)for(j[le]=Z<<7,I=0;I<1<<D[le]-7;I++)N[256+Z++]=le;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,w+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=K(I,5);F=new k(R,C,c+1,w,u),W=new k(L,D,0,m,u),z=new k(new Array(0),Y,0,y,E)}function we(I){var ne;for(ne=0;ne<w;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?M(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,le){Ce(I),M(I,se),M(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,le){var Z=ne*2,ie=se*2;return I[Z]<I[ie]||I[Z]===I[ie]&&le[ne]<=le[se]}function Ae(I,ne,se){for(var le=I.heap[se],Z=se<<1;Z<=I.heap_len&&(Z<I.heap_len&&je(ne,I.heap[Z+1],I.heap[Z],I.depth)&&Z++,!je(ne,le,I.heap[Z],I.depth));)I.heap[se]=I.heap[Z],se=Z,Z<<=1;I.heap[se]=le}function Ee(I,ne,se){var le,Z,ie=0,T,oe;if(I.last_lit!==0)do le=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Z=I.pending_buf[I.l_buf+ie],ie++,le===0?X(I,Z,ne):(T=V[Z],X(I,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],G(I,Z,oe)),le--,T=q(le),X(I,T,se),oe=D[T],oe!==0&&(le-=j[T],G(I,le,oe)));while(ie<I.last_lit);X(I,v,ne)}function Ve(I,ne){var se=ne.dyn_tree,le=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Z&&(I.static_len-=le[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,le=0;le<=se;le++)ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&I.bl_tree[ie*2]++,I.bl_tree[b*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),le=0;le<=se;le++)if(ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(X(I,ie,I.bl_tree),oe--),X(I,b,I.bl_tree),G(I,oe-3,2)):oe<=10?(X(I,x,I.bl_tree),G(I,oe-3,3)):(X(I,O,I.bl_tree),G(I,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function De(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),Ve(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[H[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function We(I,ne,se,le){var Z;for(G(I,ne-257,5),G(I,se-1,5),G(I,le-4,4),Z=0;Z<le;Z++)G(I,I.bl_tree[H[Z]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(I){Q||(me(),Q=!0),I.l_desc=new B(I.dyn_ltree,F),I.d_desc=new B(I.dyn_dtree,W),I.bl_desc=new B(I.bl_tree,z),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,le){G(I,(r<<1)+(le?1:0),3),ke(I,ne,se)}function he(I){G(I,s<<1,3),X(I,v,R),ae(I)}function Re(I,ne,se,le){var Z,ie,T=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=J(I)),Ve(I,I.l_desc),Ve(I,I.d_desc),T=De(I),Z=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(I,ne,se,le):I.strategy===n||ie===Z?(G(I,(s<<1)+(le?1:0),3),Ee(I,R,L)):(G(I,(d<<1)+(le?1:0),3),We(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),le&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(V[se]+c+1)*2]++,I.dyn_dtree[q(ne)*2]++),I.last_lit===I.lit_bufsize-1}return Ct._tr_init=ce,Ct._tr_stored_block=ge,Ct._tr_flush_block=Re,Ct._tr_tally=Oe,Ct._tr_align=he,Ct}var An,ws;function ah(){if(ws)return An;ws=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return An=e,An}var In,Es;function oh(){if(Es)return In;Es=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,d=r+t;i^=-1;for(var l=r;l<d;l++)i=i>>>8^s[(i^a[l])&255];return i^-1}return In=o,In}var Cn,Ss;function um(){return Ss||(Ss=1,Cn={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"}),Cn}var Rs;function cm(){if(Rs)return ut;Rs=1;var e=mn(),n=sm(),o=ah(),i=oh(),a=um(),t=0,r=1,s=3,d=4,l=5,f=0,h=1,c=-2,w=-3,m=-5,y=-1,g=1,u=2,_=3,E=4,v=0,b=2,x=8,O=9,C=15,D=8,Y=29,H=256,S=H+1+Y,R=30,L=19,N=2*S+1,V=15,P=3,j=258,k=j+P+1,F=32,W=42,z=69,B=73,q=91,M=103,G=113,X=666,K=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function Ve(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var $=p.avail_in;return $>A&&($=A),$===0?0:(p.avail_in-=$,e.arraySet(te,p.input,p.next_in,$,re),p.state.wrap===1?p.adler=o(p.adler,te,$,re):p.state.wrap===2&&(p.adler=i(p.adler,te,$,re)),p.next_in+=$,p.total_in+=$,$)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,$,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Be=xe[A+_e-1],Ye=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if($=te,!(xe[$+_e]!==Ye||xe[$+_e-1]!==Be||xe[$]!==xe[A]||xe[++$]!==xe[A+1])){A+=2,$++;do;while(xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&xe[++A]===xe[++$]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Be=xe[A+_e-1],Ye=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function De(p){var te=p.w_size,re,A,$,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do $=p.head[--re],p.head[re]=$>=te?$-te:0;while(--A);A=te,re=A;do $=p.prev[--re],p.prev[re]=$>=te?$-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function We(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(De(p),p.lookahead===0&&te===t)return K;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),K)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else A=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function Q(p,te){for(var re,A,$;;){if(p.lookahead<k){if(De(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){$=p.strstart+p.lookahead-P,A=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=$&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return K}else if(p.match_available){if(A=n._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return K}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ce(p,te){for(var re,A,$,ee,_e=p.window;;){if(p.lookahead<=j){if(De(p),p.lookahead<=j&&te===t)return K;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&($=p.strstart-1,A=_e[$],A===_e[++$]&&A===_e[++$]&&A===_e[++$])){ee=p.strstart+j;do;while(A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&A===_e[++$]&&$<ee);p.match_length=j-(ee-$),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(De(p),p.lookahead===0)){if(te===t)return K;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===d?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function he(p,te,re,A,$){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=$}var Re;Re=[new he(0,0,0,0,We),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(N*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(V+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=b,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?W:G,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),f)}function se(p){var te=ne(p);return te===f&&Oe(p.state),te}function le(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,f)}function Z(p,te,re,A,$,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),$<1||$>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>E)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=$+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<$+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,D,v)}function T(p,te){var re,A,$,ee;if(!p||!p.state||te>l||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===X&&te!==d)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===W)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=z):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=G);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=F),_e+=31-_e%31,A.status=G,Ve(A,_e),A.strstart!==0&&(Ve(A,p.adler>>>16),Ve(A,p.adler&65535)),p.adler=1}if(A.status===z)if(A.gzhead.extra){for($=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=B)}else A.status=B;if(A.status===B)if(A.gzhead.name){$=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),ee===0&&(A.gzindex=0,A.status=q)}else A.status=q;if(A.status===q)if(A.gzhead.comment){$=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),je(p),$=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>$&&(p.adler=i(p.adler,A.pending_buf,A.pending-$,$)),ee===0&&(A.status=M)}else A.status=M;if(A.status===M&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=G)):A.status=G),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,f}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==d)return we(p,m);if(A.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==X){var pe=A.strategy===u?ge(A,te):A.strategy===_?ce(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=X),pe===K||pe===ue)return p.avail_out===0&&(A.last_flush=-1),f;if(pe===ae&&(te===r?n._tr_align(A):te!==l&&(n._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,f}return te!==d?f:A.wrap<=0?h:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):(Ve(A,p.adler>>>16),Ve(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?f:h)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==W&&te!==z&&te!==B&&te!==q&&te!==M&&te!==G&&te!==X?we(p,c):(p.state=null,te===G?we(p,w):f))}function be(p,te){var re=te.length,A,$,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==W||A.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,De(A);A.lookahead>=P;){$=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[$+P-1])&A.hash_mask,A.prev[$&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=$,$++;while(--ee);A.strstart=$,A.lookahead=P-1,De(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,f}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=le,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var Pn,Os;function lm(){if(Os)return Pn;Os=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 Pn=e,Pn}var it={},kn,Ts;function fm(){if(Ts)return kn;Ts=1;var e=30,n=12;return kn=function(i,a){var t,r,s,d,l,f,h,c,w,m,y,g,u,_,E,v,b,x,O,C,D,Y,H,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),d=i.next_out,R=i.output,l=d-(a-i.avail_out),f=d+(i.avail_out-257),h=t.dmax,c=t.wsize,w=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,E=t.distcode,v=(1<<t.lenbits)-1,b=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[d++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=E[g&b];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(D=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),D+=g&(1<<O)-1,D>h){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=d-l,D>O){if(O=D-O,O>w&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(Y=0,H=y,m===0){if(Y+=c-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}}else if(m<O){if(Y+=c+m-O,O-=m,O<C){C-=O;do R[d++]=y[Y++];while(--O);if(Y=0,m<C){O=m,C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}}}else if(Y+=m-O,O<C){C-=O;do R[d++]=y[Y++];while(--O);Y=d-D,H=R}for(;C>2;)R[d++]=H[Y++],R[d++]=H[Y++],R[d++]=H[Y++],C-=3;C&&(R[d++]=H[Y++],C>1&&(R[d++]=H[Y++]))}else{Y=d-D;do R[d++]=R[Y++],R[d++]=R[Y++],R[d++]=R[Y++],C-=3;while(C>2);C&&(R[d++]=R[Y++],C>1&&(R[d++]=R[Y++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&d<f);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=d,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=d<f?257+(f-d):257-(d-f),t.hold=g,t.bits=u},kn}var jn,xs;function hm(){if(xs)return jn;xs=1;var e=mn(),n=15,o=852,i=592,a=0,t=1,r=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return jn=function(c,w,m,y,g,u,_,E){var v=E.bits,b=0,x=0,O=0,C=0,D=0,Y=0,H=0,S=0,R=0,L=0,N,V,P,j,k,F=null,W=0,z,B=new e.Buf16(n+1),q=new e.Buf16(n+1),M=null,G=0,X,K,ae;for(b=0;b<=n;b++)B[b]=0;for(x=0;x<y;x++)B[w[m+x]]++;for(D=v,C=n;C>=1&&B[C]===0;C--);if(D>C&&(D=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<C&&B[O]===0;O++);for(D<O&&(D=O),S=1,b=1;b<=n;b++)if(S<<=1,S-=B[b],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(q[1]=0,b=1;b<n;b++)q[b+1]=q[b]+B[b];for(x=0;x<y;x++)w[m+x]!==0&&(_[q[w[m+x]]++]=x);if(c===a?(F=M=_,z=19):c===t?(F=s,W-=257,M=d,G-=257,z=256):(F=l,M=f,z=-1),L=0,x=0,b=O,k=u,Y=D,H=0,P=-1,R=1<<D,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=b-H,_[x]<z?(K=0,ae=_[x]):_[x]>z?(K=M[G+_[x]],ae=F[W+_[x]]):(K=96,ae=0),N=1<<b-H,V=1<<Y,O=V;do V-=N,g[k+(L>>H)+V]=X<<24|K<<16|ae|0;while(V!==0);for(N=1<<b-1;L&N;)N>>=1;if(N!==0?(L&=N-1,L+=N):L=0,x++,--B[b]===0){if(b===C)break;b=w[m+_[x]]}if(b>D&&(L&j)!==P){for(H===0&&(H=D),k+=O,Y=b-H,S=1<<Y;Y+H<C&&(S-=B[Y+H],!(S<=0));)Y++,S<<=1;if(R+=1<<Y,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=D<<24|Y<<16|k-u|0}}return L!==0&&(g[k+L]=b-H<<24|64<<16|0),E.bits=D,0},jn}var As;function dm(){if(As)return it;As=1;var e=mn(),n=ah(),o=oh(),i=fm(),a=hm(),t=0,r=1,s=2,d=4,l=5,f=6,h=0,c=1,w=2,m=-2,y=-3,g=-4,u=-5,_=8,E=1,v=2,b=3,x=4,O=5,C=6,D=7,Y=8,H=9,S=10,R=11,L=12,N=13,V=14,P=15,j=16,k=17,F=18,W=19,z=20,B=21,q=22,M=23,G=24,X=25,K=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function Ve(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?m:(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(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,h)}function De(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function We(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,De(Z))}function J(Z,ie){var T,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,T=We(Z,ie),T!==h&&(Z.state=null),T):m}function Q(Z){return J(Z,Ee)}var ce=!0,ge,he;function Re(Z){if(ce){var ie;for(ge=new e.Buf32(512),he=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(a(r,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;a(s,Z.lens,0,32,he,0,Z.work,{bits:5}),ce=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Oe(Z,ie,T,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,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Z,ie){var T,oe,be,p,te,re,A,$,ee,_e,de,pe,xe,vt,Le=0,Ie,Be,Ye,Xe,vr,yr,Me,nt,ze=new e.Buf8(4),yt,ht,ds=[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 m;T=Z.state,T.mode===L&&(T.mode=N),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,$=T.hold,ee=T.bits,_e=re,de=A,nt=h;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=N;break}for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&$===35615){T.check=0,ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0),$=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||((($&255)<<8)+($>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if(($&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if($>>>=4,ee-=4,Me=($&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=$&512?S:L,$=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.flags=$,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=$>>8&1),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0,T.mode=b;case b:for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=$),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,ze[2]=$>>>16&255,ze[3]=$>>>24&255,T.check=o(T.check,ze,4,0)),$=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=$&255,T.head.os=$>>8),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.length=$,T.head&&(T.head.extra_len=$),T.flags&512&&(ze[0]=$&255,ze[1]=$>>>8&255,T.check=o(T.check,ze,2,0)),$=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=D;case D:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=Y;case Y:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=H;case H:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}$=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}Z.adler=T.check=Ve($),$=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,w;Z.adler=T.check=1,T.mode=L;case L:if(ie===l||ie===f)break e;case N:if(T.last){$>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}switch(T.last=$&1,$>>>=1,ee-=1,$&3){case 0:T.mode=V;break;case 1:if(Re(T),T.mode=z,ie===f){$>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}$>>>=2,ee-=2;break;case V:for($>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(($&65535)!==($>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=$&65535,$=0,ee=0,T.mode=P,ie===f)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(T.nlen=($&31)+257,$>>>=5,ee-=5,T.ndist=($&31)+1,$>>>=5,ee-=5,T.ncode=($&15)+4,$>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=F;case F:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.lens[ds[T.have++]]=$&7,$>>>=3,ee-=3}for(;T.have<19;)T.lens[ds[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=W;case W:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[$&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(Ye<16)$>>>=Ie,ee-=Ie,T.lens[T.have++]=Ye;else{if(Ye===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($>>>=Ie,ee-=Ie,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+($&3),$>>>=2,ee-=2}else if(Ye===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Ie,ee-=Ie,Me=0,pe=3+($&7),$>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Ie,ee-=Ie,Me=0,pe=11+($&127),$>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=z,ie===f)break e;case z:T.mode=B;case B:if(re>=6&&A>=258){Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,$=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[$&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if(Be&&(Be&240)===0){for(Xe=Ie,vr=Be,yr=Ye;Le=T.lencode[yr+(($&(1<<Xe+vr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Xe,ee-=Xe,T.back+=Xe}if($>>>=Ie,ee-=Ie,T.back+=Ie,T.length=Ye,Be===0){T.mode=K;break}if(Be&32){T.back=-1,T.mode=L;break}if(Be&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Be&15,T.mode=q;case q:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.length+=$&(1<<T.extra)-1,$>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=M;case M:for(;Le=T.distcode[$&(1<<T.distbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if((Be&240)===0){for(Xe=Ie,vr=Be,yr=Ye;Le=T.distcode[yr+(($&(1<<Xe+vr)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Ye=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}$>>>=Xe,ee-=Xe,T.back+=Xe}if($>>>=Ie,ee-=Ie,T.back+=Ie,Be&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Ye,T.extra=Be&15,T.mode=G;case G:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}T.offset+=$&(1<<T.extra)-1,$>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=B);break;case K:if(A===0)break e;be[te++]=T.length,A--,T.mode=B;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,$|=oe[p++]<<ee,ee+=8}if(de-=A,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=A,(T.flags?$:Ve($))!==T.check){Z.msg="incorrect data check",T.mode=me;break}$=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,$+=oe[p++]<<ee,ee+=8}if($!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}$=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=$,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==d))&&Oe(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?o(T.check,be,de,Z.next_out-de):n(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===z||T.mode===P?256:0),(_e===0&&de===0||ie===d)&&nt===h&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,h}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,h)}function le(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Oe(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,h))}return it.inflateReset=De,it.inflateReset2=We,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=le,it.inflateInfo="pako inflate (from Nodeca project)",it}var Ln,Is;function pm(){return Is||(Is=1,Ln={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}),Ln}const mm={overlayWidth:new at(100,100,50)};function Cs(){const e=Fe(),n=Ze(),o=ur(),i=Dt(),a=Se(b=>Pf(b)),t=a.uiState.selectedCustomerTenantId,r=fe.useMemo(()=>t?a.customers.find(b=>b.tenantId===t):void 0,[a.customers,t]),s=Se(b=>t?kf(b.aiAccountantCustomerState,b.userState,t):[]),d=a.customerViewStateByTenantId[t],l=d?.jobsFetchStatus??{fetchState:"Not-Started"},f=d?.jobsPageToken!=null;fe.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&n(ps())},[a.fetchState]);const h=b=>{const x=It(b),O=Mt(b);Ge.trackCockpitTabClicked(O),e(`../../${x}`,{replace:!0})},c=(b,x,O,C)=>{n(jf([b.tenantId])),n(Lf(x,O,C))},w=b=>{n(qf(b.companyId,b.tenantId))},m=b=>{b==="aiAccountant"&&n(ps())},y=(b,x)=>{n(Wt({sortKey:b,sortOrder:x}))},g=b=>{n(Wt({selectedCustomerTenantId:b.tenantId})),n(rn(b.tenantId))},u=()=>{n(Wt({selectedCustomerTenantId:""}))},_=b=>{n(Wt({filterText:b}))},E=(b,x)=>{n(Wt({filters:x}))},v=()=>{t&&n(rn(t,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(wp,{headerData:{selectedTabOption:wt("aiAccountant")},headerActions:{onTabChange:h},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:c,onCancelOnboarding:w,onCockpitReloadData:m,onColumnSortConfigChanged:y,onCustomerSelected:g,onFilterTextChanged:_,onFiltersChange:E}}),U.jsx(lr,{anchor:"right",open:r!=null,PaperProps:{style:{width:mm.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:u,children:r!=null&&U.jsx(Qf,{customer:r,hasMoreJobs:f,jobs:s,jobsFetchStatus:l,onAction:c,onCancelOnboarding:w,onClose:u,onLoadMoreJobs:v})})]})}function gm(){const{tenantId:e=""}=ot(),n=Fe(),o=Ze(),i=Se(c=>id(c.aiAccountantCustomerState,c.userState)),a=Se(c=>Pf(c)),t=i.find(c=>c.tenantId===e),r=a.customerViewStateByTenantId[e],s=Se(c=>kf(c.aiAccountantCustomerState,c.userState,e));if(fe.useEffect(()=>{o(rn(e))},[e,o]),t==null)return null;const d=(c,w,m,y)=>{o(jf([c.tenantId])),o(Lf(w,m,y))},l=c=>{o(qf(c.companyId,c.tenantId))},f=()=>{n("../")},h=()=>{o(rn(e,!0))};return U.jsx(Qf,{customer:t,hasMoreJobs:r?.jobsPageToken!=null,jobs:s,jobsFetchStatus:r?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:d,onCancelOnboarding:l,onClose:f,onLoadMoreJobs:h})}const sh=(e,n)=>{const o=[...e??[]];return o.push(n),o},vm=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ym=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>Je.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(rr,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function _m(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Cs,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(Pe,{element:U.jsx(gm,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Cs,{})})})]})}const Ft=()=>{const[e,n]=ih(),[o,i]=fe.useState(),a=fe.useRef(!1);return fe.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=Ep(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},bm={overlayWidth:new at(100,100,50)},{common:{strings:Ps}}=cr.getLocalizedStrings();function wm(e,n){return{headerActions:{onTabChange:o=>{const i=It(o),a=Mt(o);Ge.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(_r({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ge.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(Ps.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(Ps.comma)}}),e(_r({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Df(o))},onColumnSortConfigChanged:(o,i)=>{e(_r({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(Nf())},onFiltersChange:o=>{e(_r({uiState:{filters:o}}))}}}}function Em(e,n){return{headerData:{selectedTabOption:wt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Sm=$e(Em,wm)(Tp);function qn({isDrawerOpen:e}){const n=Fe(),o=Ze(),i=Dt(),a=ur(),{companyId:t}=ot(),[r,s]=ih(),[d,l]=fe.useState(!1),f=Ft(),h=Se(v=>ad(v)),c=Se(v=>or(v)),{additionalChurnFactors:w}=Se(v=>od(v)),{selectedCompanyDetail:m,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=h,u=Se(v=>v.companyViewState.zeniUsers.fetchState),_=Se(v=>v.companyHealthMetricConfigViewState);if(fe.useEffect(()=>{const v=b=>b==="Not-Started"||b==="Error";h.fetchState==="Completed"?o(xt(!1)):v(h.fetchState)&&(o(Nf()),v(u)&&o(At()),v(_.fetchState)&&o(sd()))},[h.fetchState,_.fetchState]),fe.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Df(t)),m!=null&&(Sp(),Ge.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),l(!0),r.delete("utm_source"),s(r)))},[h.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),Je.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||y!=null&&m!=null?U.jsx(lr,{anchor:"right",open:y!=null,PaperProps:{style:{width:bm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ms()),children:U.jsx(Rp,{roomId:`cockpit_${y}`,autoConnect:!0,children:U.jsx(Op,{onSaveClick:()=>{y!=null&&o(cd(y))},onSaveChangesToLocalStore:v=>{h.selectedCompanyId!=null&&o(ud({companyId:h.selectedCompanyId,updatedLocalData:v}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(ms()),analytics:Ge,urlSource:d,additionalChurnFactorsOptions:w})})}):null,U.jsx(Sm,{initialOpenThreadRequest:f??void 0,healthView:h,managementView:c,navigate:n,mixpanelHMUrl:fn.mixpanelHMUrl})]})}function Rm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(qn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(qn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(qn,{})})})]})}const Om={drawerLeftMargin:new at(0,0,240)};function dr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=ur(),r=o?.valuePx(t)??Om.drawerLeftMargin.valuePx(t),s=Dt();return U.jsx(lr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Tm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(xm,{children:U.jsx(hn,{size:"ExtraLarge",start:!0})}):null,xm=tt.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{j as d}from"./liveblocks-PwPddB1a.js";import{a as u,b as S,n as I}from"./sentry-B3BRIZXI.js";import{n as m,i as w,g,u as b,N as h,h as y}from"./core-D_MAgorT.js";import{z as l,h as C,D as v,a as E,B as U,X as T,j as f}from"./index-DSgV1c8r.js";import{GO as x,GP as D,GQ as L,GR as z,bi as p}from"./zeni-epic-state-BW-vYzMS.js";import{f as A}from"./analyticsHelper-D0LaHE6d.js";import"./recharts-DTSdaU5r.js";import"./mui-C0zAEyFB.js";import"./analytics-CJO6EKNZ.js";import"./lottie-Cq_uKEbi.js";import"./lexical-BRT5wQo0.js";import"./utils-DyFv7MO8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b8ef6a9c-fcb1-42eb-acb0-e2a4261b0ff9",e._sentryDebugIdIdentifier="sentry-dbid-b8ef6a9c-fcb1-42eb-acb0-e2a4261b0ff9")}catch{}})();function N(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:f.googleClientId,microsoftClientId:f.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function P(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{I({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(z({authCode:n,oauthProvider:t,appType:"web",redirectUri:p(s),sourceUri:p(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const j=y(N,P)(T),k=S.memo(j);function W(){const e=m(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=b();if(u.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(D("Completed")),v.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(h,{to:a,state:{...c.state,origin:""}})}else return d.jsx(k,{navigate:o,location:c})}export{W as default};
1
+ import{j as d}from"./liveblocks-PwPddB1a.js";import{a as u,b as S,n as I}from"./sentry-B3BRIZXI.js";import{n as m,i as w,g,u as b,N as h,h as y}from"./core-D_MAgorT.js";import{z as l,h as C,D as v,a as E,B as U,X as T,j as f}from"./index-hgTW36kH.js";import{GO as x,GP as D,GQ as L,GR as z,bi as p}from"./zeni-epic-state-BW-vYzMS.js";import{f as A}from"./analyticsHelper-Btecxsit.js";import"./recharts-DTSdaU5r.js";import"./mui-C0zAEyFB.js";import"./analytics-CJO6EKNZ.js";import"./lottie-Cq_uKEbi.js";import"./lexical-BRT5wQo0.js";import"./utils-DyFv7MO8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b8ef6a9c-fcb1-42eb-acb0-e2a4261b0ff9",e._sentryDebugIdIdentifier="sentry-dbid-b8ef6a9c-fcb1-42eb-acb0-e2a4261b0ff9")}catch{}})();function N(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:f.googleClientId,microsoftClientId:f.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function P(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{I({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(z({authCode:n,oauthProvider:t,appType:"web",redirectUri:p(s),sourceUri:p(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const j=y(N,P)(T),k=S.memo(j);function W(){const e=m(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=b();if(u.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(D("Completed")),v.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(h,{to:a,state:{...c.state,origin:""}})}else return d.jsx(k,{navigate:o,location:c})}export{W as default};
@@ -1 +1 @@
1
- import{a as n}from"./index-DSgV1c8r.js";import"./sentry-B3BRIZXI.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="7b42a103-155a-44ea-b0f4-31bca932f024",a._sentryDebugIdIdentifier="sentry-dbid-7b42a103-155a-44ea-b0f4-31bca932f024")}catch{}})();const d=(a,i,e,o)=>{n.identify(a.userId,{tenant_id:e?.tenantId,tenant_email_domain:e?.tenantEmailDomain,company_id:e?.companyId,company_name:e?.companyName,user_role:e?.userRole,$email:a.userEmail,user_email_domain:a.userEmailDomain,$first_name:a.firstName,$last_name:a.lastName,company_ids:void 0,company_names:void 0,user_roles:void 0,app_type:"web",appearance:i})};export{d as f};
1
+ import{a as n}from"./index-hgTW36kH.js";import"./sentry-B3BRIZXI.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="7b42a103-155a-44ea-b0f4-31bca932f024",a._sentryDebugIdIdentifier="sentry-dbid-7b42a103-155a-44ea-b0f4-31bca932f024")}catch{}})();const d=(a,i,e,o)=>{n.identify(a.userId,{tenant_id:e?.tenantId,tenant_email_domain:e?.tenantEmailDomain,company_id:e?.companyId,company_name:e?.companyName,user_role:e?.userRole,$email:a.userEmail,user_email_domain:a.userEmailDomain,$first_name:a.firstName,$last_name:a.lastName,company_ids:void 0,company_names:void 0,user_roles:void 0,app_type:"web",appearance:i})};export{d as f};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-6ai9S6pI.js","assets/sentry-B3BRIZXI.js","assets/empty-taYVTRRD.js","assets/index-vRDH00TS.js","assets/index-Mdntodkr.js","assets/zeni-epic-state-BW-vYzMS.js","assets/core-D_MAgorT.js","assets/utils-DyFv7MO8.js","assets/recharts-DTSdaU5r.js","assets/url-CBmJaXjR.js","assets/index-BFmE3Qmc.js","assets/index-C87IeE77.js","assets/url-CwOlJ5HG.js","assets/index-POB-7Cal.js","assets/ScreenRoutes-DhDfqKSM.js","assets/liveblocks-PwPddB1a.js","assets/analyticsHelper-D0LaHE6d.js","assets/mui-C0zAEyFB.js","assets/analytics-CJO6EKNZ.js","assets/lottie-Cq_uKEbi.js","assets/lexical-BRT5wQo0.js","assets/SignInScreen-rR1uzws2.js"])))=>i.map(i=>d[i]);
2
- import{a as f,b as k,R as cTe,c as o3,p as Up,e as pY,r as Il,g as fH,f as uTe,s as hY,w as pTe,i as hTe,S as mTe,j as gTe,k as fTe,l as xTe,m as yTe}from"./sentry-B3BRIZXI.js";import{j as cr,_ as T3e,a as oc,u as B3e,T as wTe,C as bTe,b as vTe,c as Bk,d as Dk,e as CTe,f as D3e,g as $Te,h as kTe,L as STe,i as mY,k as ATe,l as ETe,P as LTe,m as jTe,n as ITe,o as _3e,p as MTe,q as PTe,I as gY,r as TTe,s as BTe,t as DTe,v as _Te,w as zTe,x as RTe,y as z3e,z as FTe,A as OTe,B as NTe}from"./liveblocks-PwPddB1a.js";import{f as R3e,R as jg,r as fs,P as Zi,u as _k,g as Fu,h as HTe,i as xH,j as VTe,k as UTe,l as gj,N as WTe,m as QTe,n as GTe,B as YTe}from"./core-D_MAgorT.js";import{H as mC,ba as Ig,bb as KTe,bc as fY,bd as k3,be as Oo,bf as F3e,bg as fo,bh as qTe,bi as L5,bj as o2,bk as yH,bl as O3e,bm as ZTe,bn as N3e,bo as wH,bp as JTe,bq as H3e,br as XTe,bs as $i,bt as j5,bu as fu,bv as eBe,bw as tBe,bx as rBe,by as oBe,bz as xY,bA as iBe,bB as nBe,bC as aBe,bD as sBe,bE as zk,bF as V3e,bG as i2,bH as lBe,bI as U3e,bJ as _R,bK as yY,bL as wY,bM as bY,bN as zs,bO as bH,bP as vH,bQ as n7,bR as CH,bS as $H,bT as kH,bU as SH,bV as dBe,bW as gC,bX as cBe,bY as W3e,bZ as AH,b_ as uBe,b$ as ih,c0 as pBe,c1 as hBe,c2 as mBe,c3 as gBe,c4 as fBe,c5 as xBe,c6 as yBe,c7 as wBe,c8 as bBe,c9 as vBe,ca as CBe,cb as $Be,cc as kBe,cd as SBe,ce as ABe,cf as EBe,cg as LBe,ch as jBe,ci as IBe,cj as MBe,ck as PBe,cl as Rk,cm as Fk,cn as Q3e,co as TBe,cp as vY,cq as BBe,cr as DBe,cs as _Be,ct as _9,cu as G3e,cv as Y3e,cw as zBe,cx as K3e,cy as CY,cz as q3e,cA as Z3e,cB as J3e,cC as X3e,cD as efe,cE as tfe,cF as RBe,cG as FBe,cH as OBe,cI as rfe,cJ as zR,cK as NBe,cL as ofe,cM as ife,cN as HBe,cO as VBe,cP as UBe,cQ as WBe,cR as QBe,cS as GBe,cT as YBe,cU as KBe,v as qBe,cV as Ok,cW as nfe,cX as afe,cY as ZBe,cZ as JBe,c_ as XBe,c$ as eDe,d0 as tDe,d1 as rDe,d2 as oDe,d3 as iDe,d4 as nDe,d5 as $Y,d6 as aDe,d7 as sDe,d8 as lDe,d9 as dDe}from"./zeni-epic-state-BW-vYzMS.js";import{T as sfe,j as $r,n as a,c as ge,k as Ot,G as Ax,C as lfe,u as dfe,a as cDe}from"./mui-C0zAEyFB.js";import{r as uDe,m as xu}from"./analytics-CJO6EKNZ.js";import{L as RR}from"./lottie-Cq_uKEbi.js";import{r as Nn}from"./lexical-BRT5wQo0.js";import{E as hi,c as Nk,P as pDe,R as FR,F as fC,X as ad,Y as sd,G as kh,H as xC,I as Hk,J as Sh,K as cfe,L as hDe,M as mDe,N as S3,O as EH,Q as LH,S as Ex,U as gDe}from"./recharts-DTSdaU5r.js";import{r as fDe}from"./utils-DyFv7MO8.js";(function(){try{var e=typeof window<"u"?window:typeof o3<"u"?o3:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1469fd0c-3cf8-4cde-84f7-03d3509c56d4",e._sentryDebugIdIdentifier="sentry-dbid-1469fd0c-3cf8-4cde-84f7-03d3509c56d4")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const d of s.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function r(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(n){if(n.ep)return;n.ep=!0;const s=r(n);fetch(n.href,s)}})();var Ny={},kY;function xDe(){if(kY)return Ny;kY=1;var e=R3e();return Ny.createRoot=e.createRoot,Ny.hydrateRoot=e.hydrateRoot,Ny}var yDe=xDe(),hl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof o3<"u"?o3:typeof self<"u"?self:{};function io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var SY={exports:{}},t6={},AY;function wDe(){if(AY)return t6;AY=1;var e=k,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function d(c,u,p){var h,m={},g=null,x=null;p!==void 0&&(g=""+p),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(x=u.ref);for(h in u)i.call(u,h)&&!s.hasOwnProperty(h)&&(m[h]=u[h]);if(c&&c.defaultProps)for(h in u=c.defaultProps,u)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:t,type:c,key:g,ref:x,props:m,_owner:n.current}}return t6.Fragment=r,t6.jsx=d,t6.jsxs=d,t6}var EY;function ufe(){return EY||(EY=1,SY.exports=wDe()),SY.exports}var l=ufe();const bDe=f.createContext(null),fj={didCatch:!1,error:null};let vDe=class extends f.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=fj}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var t,r,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];(t=(r=this.props).onReset)===null||t===void 0||t.call(r,{args:n,reason:"imperative-api"}),this.setState(fj)}}componentDidCatch(e,t){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,e,t)}componentDidUpdate(e,t){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&t.error!==null&&CDe(e.resetKeys,i)){var n,s;(n=(s=this.props).onReset)===null||n===void 0||n.call(s,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(fj)}}render(){const{children:e,fallbackRender:t,FallbackComponent:r,fallback:i}=this.props,{didCatch:n,error:s}=this.state;let d=e;if(n){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof t=="function")d=t(c);else if(r)d=f.createElement(r,c);else if(i!==void 0)d=i;else throw s}return f.createElement(bDe.Provider,{value:{didCatch:n,error:s,resetErrorBoundary:this.resetErrorBoundary}},d)}};function CDe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,i)=>!Object.is(r,t[i]))}var OR={exports:{}},$De=OR.exports,LY;function kDe(){return LY||(LY=1,function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})($De,function(){var t,r,i="2.0.6",n={},s={},d={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:d.currentLocale,zeroFormat:d.zeroFormat,nullFormat:d.nullFormat,defaultFormat:d.defaultFormat,scalePercentBy100:d.scalePercentBy100};function u(p,h){this._input=p,this._value=h}return t=function(p){var h,m,g,x;if(t.isNumeral(p))h=p.value();else if(p===0||typeof p>"u")h=0;else if(p===null||r.isNaN(p))h=null;else if(typeof p=="string")if(c.zeroFormat&&p===c.zeroFormat)h=0;else if(c.nullFormat&&p===c.nullFormat||!p.replace(/[^0-9]+/g,"").length)h=null;else{for(m in n)if(x=typeof n[m].regexps.unformat=="function"?n[m].regexps.unformat():n[m].regexps.unformat,x&&p.match(x)){g=n[m].unformat;break}g=g||t._.stringToNumber,h=g(p)}else h=Number(p)||null;return new u(p,h)},t.version=i,t.isNumeral=function(p){return p instanceof u},t._=r={numberToFormat:function(p,h,m){var g=s[t.options.currentLocale],x=!1,y=!1,w=0,b="",C=1e12,$=1e9,A=1e6,E=1e3,I="",j=!1,T,P,B,_,O,z,G;if(p=p||0,P=Math.abs(p),t._.includes(h,"(")?(x=!0,h=h.replace(/[\(|\)]/g,"")):(t._.includes(h,"+")||t._.includes(h,"-"))&&(O=t._.includes(h,"+")?h.indexOf("+"):p<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),t._.includes(h,"a")&&(T=h.match(/a(k|m|b|t)?/),T=T?T[1]:!1,t._.includes(h," a")&&(b=" "),h=h.replace(new RegExp(b+"a[kmbt]?"),""),P>=C&&!T||T==="t"?(b+=g.abbreviations.trillion,p=p/C):P<C&&P>=$&&!T||T==="b"?(b+=g.abbreviations.billion,p=p/$):P<$&&P>=A&&!T||T==="m"?(b+=g.abbreviations.million,p=p/A):(P<A&&P>=E&&!T||T==="k")&&(b+=g.abbreviations.thousand,p=p/E)),t._.includes(h,"[.]")&&(y=!0,h=h.replace("[.]",".")),B=p.toString().split(".")[0],_=h.split(".")[1],z=h.indexOf(","),w=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(t._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),I=t._.toFixed(p,_[0].length+_[1].length,m,_[1].length)):I=t._.toFixed(p,_.length,m),B=I.split(".")[0],t._.includes(I,".")?I=g.delimiters.decimal+I.split(".")[1]:I="",y&&Number(I.slice(1))===0&&(I="")):B=t._.toFixed(p,0,m),b&&!T&&Number(B)>=1e3&&b!==g.abbreviations.trillion)switch(B=String(Number(B)/1e3),b){case g.abbreviations.thousand:b=g.abbreviations.million;break;case g.abbreviations.million:b=g.abbreviations.billion;break;case g.abbreviations.billion:b=g.abbreviations.trillion;break}if(t._.includes(B,"-")&&(B=B.slice(1),j=!0),B.length<w)for(var Z=w-B.length;Z>0;Z--)B="0"+B;return z>-1&&(B=B.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+g.delimiters.thousands)),h.indexOf(".")===0&&(B=""),G=B+I+(b||""),x?G=(x&&j?"(":"")+G+(x&&j?")":""):O>=0?G=O===0?(j?"-":"+")+G:G+(j?"-":"+"):j&&(G="-"+G),G},stringToNumber:function(p){var h=s[c.currentLocale],m=p,g={thousand:3,million:6,billion:9,trillion:12},x,y,w;if(c.zeroFormat&&p===c.zeroFormat)y=0;else if(c.nullFormat&&p===c.nullFormat||!p.replace(/[^0-9]+/g,"").length)y=null;else{y=1,h.delimiters.decimal!=="."&&(p=p.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(x in g)if(w=new RegExp("[^a-zA-Z]"+h.abbreviations[x]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),m.match(w)){y*=Math.pow(10,g[x]);break}y*=(p.split("-").length+Math.min(p.split("(").length-1,p.split(")").length-1))%2?1:-1,p=p.replace(/[^0-9\.]+/g,""),y*=Number(p)}return y},isNaN:function(p){return typeof p=="number"&&isNaN(p)},includes:function(p,h){return p.indexOf(h)!==-1},insert:function(p,h,m){return p.slice(0,m)+h+p.slice(m)},reduce:function(p,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var m=Object(p),g=m.length>>>0,x=0,y;if(arguments.length===3)y=arguments[2];else{for(;x<g&&!(x in m);)x++;if(x>=g)throw new TypeError("Reduce of empty array with no initial value");y=m[x++]}for(;x<g;x++)x in m&&(y=h(y,m[x],x,m));return y},multiplier:function(p){var h=p.toString().split(".");return h.length<2?1:Math.pow(10,h[1].length)},correctionFactor:function(){var p=Array.prototype.slice.call(arguments);return p.reduce(function(h,m){var g=r.multiplier(m);return h>g?h:g},1)},toFixed:function(p,h,m,g){var x=p.toString().split("."),y=h-(g||0),w,b,C,$;return x.length===2?w=Math.min(Math.max(x[1].length,y),h):w=y,C=Math.pow(10,w),$=(m(p+"e+"+w)/C).toFixed(w),g>h-w&&(b=new RegExp("\\.?0{1,"+(g-(h-w))+"}$"),$=$.replace(b,"")),$}},t.options=c,t.formats=n,t.locales=s,t.locale=function(p){return p&&(c.currentLocale=p.toLowerCase()),c.currentLocale},t.localeData=function(p){if(!p)return s[c.currentLocale];if(p=p.toLowerCase(),!s[p])throw new Error("Unknown locale : "+p);return s[p]},t.reset=function(){for(var p in d)c[p]=d[p]},t.zeroFormat=function(p){c.zeroFormat=typeof p=="string"?p:null},t.nullFormat=function(p){c.nullFormat=typeof p=="string"?p:null},t.defaultFormat=function(p){c.defaultFormat=typeof p=="string"?p:"0.0"},t.register=function(p,h,m){if(h=h.toLowerCase(),this[p+"s"][h])throw new TypeError(h+" "+p+" already registered.");return this[p+"s"][h]=m,m},t.validate=function(p,h){var m,g,x,y,w,b,C,$;if(typeof p!="string"&&(p+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",p)),p=p.trim(),p.match(/^\d+$/))return!0;if(p==="")return!1;try{C=t.localeData(h)}catch{C=t.localeData(t.locale())}return x=C.currency.symbol,w=C.abbreviations,m=C.delimiters.decimal,C.delimiters.thousands==="."?g="\\.":g=C.delimiters.thousands,$=p.match(/^[^\d]+/),$!==null&&(p=p.substr(1),$[0]!==x)||($=p.match(/[^\d]+$/),$!==null&&(p=p.slice(0,-1),$[0]!==w.thousand&&$[0]!==w.million&&$[0]!==w.billion&&$[0]!==w.trillion))?!1:(b=new RegExp(g+"{2}"),p.match(/[^\d.,]/g)?!1:(y=p.split(m),y.length>2?!1:y.length<2?!!y[0].match(/^\d+.*\d$/)&&!y[0].match(b):y[0].length===1?!!y[0].match(/^\d+$/)&&!y[0].match(b)&&!!y[1].match(/^\d+$/):!!y[0].match(/^\d+.*\d$/)&&!y[0].match(b)&&!!y[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(p,h){var m=this._value,g=p||c.defaultFormat,x,y,w;if(h=h||Math.round,m===0&&c.zeroFormat!==null)y=c.zeroFormat;else if(m===null&&c.nullFormat!==null)y=c.nullFormat;else{for(x in n)if(g.match(n[x].regexps.format)){w=n[x].format;break}w=w||t._.numberToFormat,y=w(m,g,h)}return y},value:function(){return this._value},input:function(){return this._input},set:function(p){return this._value=Number(p),this},add:function(p){var h=r.correctionFactor.call(null,this._value,p);function m(g,x,y,w){return g+Math.round(h*x)}return this._value=r.reduce([this._value,p],m,0)/h,this},subtract:function(p){var h=r.correctionFactor.call(null,this._value,p);function m(g,x,y,w){return g-Math.round(h*x)}return this._value=r.reduce([p],m,Math.round(this._value*h))/h,this},multiply:function(p){function h(m,g,x,y){var w=r.correctionFactor(m,g);return Math.round(m*w)*Math.round(g*w)/Math.round(w*w)}return this._value=r.reduce([this._value,p],h,1),this},divide:function(p){function h(m,g,x,y){var w=r.correctionFactor(m,g);return Math.round(m*w)/Math.round(g*w)}return this._value=r.reduce([this._value,p],h),this},difference:function(p){return Math.abs(t(this._value).subtract(p).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(p){var h=p%10;return~~(p%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(p,h,m){var g=t._.includes(h," BPS")?" ":"",x;return p=p*1e4,h=h.replace(/\s?BPS/,""),x=t._.numberToFormat(p,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,g+"BPS"),x=x.join("")):x=x+g+"BPS",x},unformat:function(p){return+(t._.stringToNumber(p)*1e-4).toFixed(15)}})}(),function(){var p={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},m=p.suffixes.concat(h.suffixes.filter(function(x){return p.suffixes.indexOf(x)<0})),g=m.join("|");g="("+g.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(g)},format:function(x,y,w){var b,C=t._.includes(y,"ib")?h:p,$=t._.includes(y," b")||t._.includes(y," ib")?" ":"",A,E,I;for(y=y.replace(/\s?i?b/,""),A=0;A<=C.suffixes.length;A++)if(E=Math.pow(C.base,A),I=Math.pow(C.base,A+1),x===null||x===0||x>=E&&x<I){$+=C.suffixes[A],E>0&&(x=x/E);break}return b=t._.numberToFormat(x,y,w),b+$},unformat:function(x){var y=t._.stringToNumber(x),w,b;if(y){for(w=p.suffixes.length-1;w>=0;w--){if(t._.includes(x,p.suffixes[w])){b=Math.pow(p.base,w);break}if(t._.includes(x,h.suffixes[w])){b=Math.pow(h.base,w);break}}y*=b||1}return y}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(p,h,m){var g=t.locales[t.options.currentLocale],x={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},y,w,b;for(h=h.replace(/\s?\$\s?/,""),y=t._.numberToFormat(p,h,m),p>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):p<0&&!t._.includes(x.before,"-")&&!t._.includes(x.before,"(")&&(x.before="-"+x.before),b=0;b<x.before.length;b++)switch(w=x.before[b],w){case"$":y=t._.insert(y,g.currency.symbol,b);break;case" ":y=t._.insert(y," ",b+g.currency.symbol.length-1);break}for(b=x.after.length-1;b>=0;b--)switch(w=x.after[b],w){case"$":y=b===x.after.length-1?y+g.currency.symbol:t._.insert(y,g.currency.symbol,-(x.after.length-(1+b)));break;case" ":y=b===x.after.length-1?y+" ":t._.insert(y," ",-(x.after.length-(1+b)+g.currency.symbol.length-1));break}return y}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(p,h,m){var g,x=typeof p=="number"&&!t._.isNaN(p)?p.toExponential():"0e+0",y=x.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),g=t._.numberToFormat(Number(y[0]),h,m),g+"e"+y[1]},unformat:function(p){var h=t._.includes(p,"e+")?p.split("e+"):p.split("e-"),m=Number(h[0]),g=Number(h[1]);g=t._.includes(p,"e-")?g*=-1:g;function x(y,w,b,C){var $=t._.correctionFactor(y,w),A=y*$*(w*$)/($*$);return A}return t._.reduce([m,Math.pow(10,g)],x,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(p,h,m){var g=t.locales[t.options.currentLocale],x,y=t._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),y+=g.ordinal(p),x=t._.numberToFormat(p,h,m),x+y}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(p,h,m){var g=t._.includes(h," %")?" ":"",x;return t.options.scalePercentBy100&&(p=p*100),h=h.replace(/\s?\%/,""),x=t._.numberToFormat(p,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,g+"%"),x=x.join("")):x=x+g+"%",x},unformat:function(p){var h=t._.stringToNumber(p);return t.options.scalePercentBy100?h*.01:h}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(p,h,m){var g=Math.floor(p/60/60),x=Math.floor((p-g*60*60)/60),y=Math.round(p-g*60*60-x*60);return g+":"+(x<10?"0"+x:x)+":"+(y<10?"0"+y:y)},unformat:function(p){var h=p.split(":"),m=0;return h.length===3?(m=m+Number(h[0])*60*60,m=m+Number(h[1])*60,m=m+Number(h[2])):h.length===2&&(m=m+Number(h[0])*60,m=m+Number(h[1])),Number(m)}})}(),t})}(OR)),OR.exports}var SDe=kDe();const lh=io(SDe);function gh(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}const dh="$$material";function ADe(e){for(var t=0,r,i=0,n=e.length;n>=4;++i,n-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var EDe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function LDe(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jDe=/[A-Z]|^ms/g,IDe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pfe=function(e){return e.charCodeAt(1)===45},jY=function(e){return e!=null&&typeof e!="boolean"},xj=LDe(function(e){return pfe(e)?e:e.replace(jDe,"-$&").toLowerCase()}),IY=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(IDe,function(r,i,n){return P0={name:i,styles:n,next:P0},i})}return EDe[e]!==1&&!pfe(e)&&typeof t=="number"&&t!==0?t+"px":t};function yC(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return P0={name:n.name,styles:n.styles,next:P0},n.name;var s=r;if(s.styles!==void 0){var d=s.next;if(d!==void 0)for(;d!==void 0;)P0={name:d.name,styles:d.styles,next:P0},d=d.next;var c=s.styles+";";return c}return MDe(e,t,r)}}var u=r;return u}function MDe(e,t,r){var i="";if(Array.isArray(r))for(var n=0;n<r.length;n++)i+=yC(e,t,r[n])+";";else for(var s in r){var d=r[s];if(typeof d!="object"){var c=d;jY(c)&&(i+=xj(s)+":"+IY(s,c)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&t==null)for(var u=0;u<d.length;u++)jY(d[u])&&(i+=xj(s)+":"+IY(s,d[u])+";");else{var p=yC(e,t,d);switch(s){case"animation":case"animationName":{i+=xj(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var MY=/label:\s*([^\s;{]+)\s*(;|$)/g,P0;function PDe(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,n="";P0=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,n+=yC(r,t,s);else{var d=s;n+=d[0]}for(var c=1;c<e.length;c++)if(n+=yC(r,t,e[c]),i){var u=s;n+=u[c]}MY.lastIndex=0;for(var p="",h;(h=MY.exec(n))!==null;)p+="-"+h[1];var m=ADe(n)+p;return{name:m,styles:n,next:P0}}var yj={exports:{}},wj,PY;function TDe(){if(PY)return wj;PY=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wj=e,wj}var bj,TY;function BDe(){if(TY)return bj;TY=1;var e=TDe();function t(){}function r(){}return r.resetWarningCache=t,bj=function(){function i(d,c,u,p,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}i.isRequired=i;function n(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:n,element:i,elementType:i,instanceOf:n,node:i,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},bj}var BY;function jH(){return BY||(BY=1,yj.exports=BDe()()),yj.exports}var DDe=jH();const Pt=io(DDe);function _De(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function zDe(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var RDe=function(){function e(r){var i=this;this._insertTag=function(n){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(n,s),i.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zDe(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var n=_De(i);try{n.insertRule(r,n.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),os="-ms-",wC="-moz-",No="-webkit-",hfe="comm",IH="rule",MH="decl",FDe="@import",mfe="@keyframes",ODe="@layer",NDe=Math.abs,Vk=String.fromCharCode,HDe=Object.assign;function VDe(e,t){return Ha(e,0)^45?(((t<<2^Ha(e,0))<<2^Ha(e,1))<<2^Ha(e,2))<<2^Ha(e,3):0}function gfe(e){return e.trim()}function UDe(e,t){return(e=t.exec(e))?e[0]:e}function Ho(e,t,r){return e.replace(t,r)}function NR(e,t){return e.indexOf(t)}function Ha(e,t){return e.charCodeAt(t)|0}function z9(e,t,r){return e.slice(t,r)}function yu(e){return e.length}function PH(e){return e.length}function Hy(e,t){return t.push(e),e}function WDe(e,t){return e.map(t).join("")}var Uk=1,I5=1,ffe=0,kl=0,_n=0,a7="";function Wk(e,t,r,i,n,s,d){return{value:e,root:t,parent:r,type:i,props:n,children:s,line:Uk,column:I5,length:d,return:""}}function r6(e,t){return HDe(Wk("",null,null,"",null,null,0),e,{length:-e.length},t)}function QDe(){return _n}function GDe(){return _n=kl>0?Ha(a7,--kl):0,I5--,_n===10&&(I5=1,Uk--),_n}function od(){return _n=kl<ffe?Ha(a7,kl++):0,I5++,_n===10&&(I5=1,Uk++),_n}function Qu(){return Ha(a7,kl)}function Bv(){return kl}function Lx(e,t){return z9(a7,e,t)}function R9(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xfe(e){return Uk=I5=1,ffe=yu(a7=e),kl=0,[]}function yfe(e){return a7="",e}function Dv(e){return gfe(Lx(kl-1,HR(e===91?e+2:e===40?e+1:e)))}function YDe(e){for(;(_n=Qu())&&_n<33;)od();return R9(e)>2||R9(_n)>3?"":" "}function KDe(e,t){for(;--t&&od()&&!(_n<48||_n>102||_n>57&&_n<65||_n>70&&_n<97););return Lx(e,Bv()+(t<6&&Qu()==32&&od()==32))}function HR(e){for(;od();)switch(_n){case e:return kl;case 34:case 39:e!==34&&e!==39&&HR(_n);break;case 40:e===41&&HR(e);break;case 92:od();break}return kl}function qDe(e,t){for(;od()&&e+_n!==57&&!(e+_n===84&&Qu()===47););return"/*"+Lx(t,kl-1)+"*"+Vk(e===47?e:od())}function ZDe(e){for(;!R9(Qu());)od();return Lx(e,kl)}function JDe(e){return yfe(_v("",null,null,null,[""],e=xfe(e),0,[0],e))}function _v(e,t,r,i,n,s,d,c,u){for(var p=0,h=0,m=d,g=0,x=0,y=0,w=1,b=1,C=1,$=0,A="",E=n,I=s,j=i,T=A;b;)switch(y=$,$=od()){case 40:if(y!=108&&Ha(T,m-1)==58){NR(T+=Ho(Dv($),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:T+=Dv($);break;case 9:case 10:case 13:case 32:T+=YDe(y);break;case 92:T+=KDe(Bv()-1,7);continue;case 47:switch(Qu()){case 42:case 47:Hy(XDe(qDe(od(),Bv()),t,r),u);break;default:T+="/"}break;case 123*w:c[p++]=yu(T)*C;case 125*w:case 59:case 0:switch($){case 0:case 125:b=0;case 59+h:C==-1&&(T=Ho(T,/\f/g,"")),x>0&&yu(T)-m&&Hy(x>32?_Y(T+";",i,r,m-1):_Y(Ho(T," ","")+";",i,r,m-2),u);break;case 59:T+=";";default:if(Hy(j=DY(T,t,r,p,h,n,c,A,E=[],I=[],m),s),$===123)if(h===0)_v(T,t,j,j,E,s,m,c,I);else switch(g===99&&Ha(T,3)===110?100:g){case 100:case 108:case 109:case 115:_v(e,j,j,i&&Hy(DY(e,j,j,0,0,n,c,A,n,E=[],m),I),n,I,m,c,i?E:I);break;default:_v(T,j,j,j,[""],I,0,c,I)}}p=h=x=0,w=C=1,A=T="",m=d;break;case 58:m=1+yu(T),x=y;default:if(w<1){if($==123)--w;else if($==125&&w++==0&&GDe()==125)continue}switch(T+=Vk($),$*w){case 38:C=h>0?1:(T+="\f",-1);break;case 44:c[p++]=(yu(T)-1)*C,C=1;break;case 64:Qu()===45&&(T+=Dv(od())),g=Qu(),h=m=yu(A=T+=ZDe(Bv())),$++;break;case 45:y===45&&yu(T)==2&&(w=0)}}return s}function DY(e,t,r,i,n,s,d,c,u,p,h){for(var m=n-1,g=n===0?s:[""],x=PH(g),y=0,w=0,b=0;y<i;++y)for(var C=0,$=z9(e,m+1,m=NDe(w=d[y])),A=e;C<x;++C)(A=gfe(w>0?g[C]+" "+$:Ho($,/&\f/g,g[C])))&&(u[b++]=A);return Wk(e,t,r,n===0?IH:c,u,p,h)}function XDe(e,t,r){return Wk(e,t,r,hfe,Vk(QDe()),z9(e,2,-2),0)}function _Y(e,t,r,i){return Wk(e,t,r,MH,z9(e,0,i),z9(e,i+1,-1),i)}function n5(e,t){for(var r="",i=PH(e),n=0;n<i;n++)r+=t(e[n],n,e,t)||"";return r}function e_e(e,t,r,i){switch(e.type){case ODe:if(e.children.length)break;case FDe:case MH:return e.return=e.return||e.value;case hfe:return"";case mfe:return e.return=e.value+"{"+n5(e.children,i)+"}";case IH:e.value=e.props.join(",")}return yu(r=n5(e.children,i))?e.return=e.value+"{"+r+"}":""}function t_e(e){var t=PH(e);return function(r,i,n,s){for(var d="",c=0;c<t;c++)d+=e[c](r,i,n,s)||"";return d}}function r_e(e){return function(t){t.root||(t=t.return)&&e(t)}}var o_e=function(e,t,r){for(var i=0,n=0;i=n,n=Qu(),i===38&&n===12&&(t[r]=1),!R9(n);)od();return Lx(e,kl)},i_e=function(e,t){var r=-1,i=44;do switch(R9(i)){case 0:i===38&&Qu()===12&&(t[r]=1),e[r]+=o_e(kl-1,t,r);break;case 2:e[r]+=Dv(i);break;case 4:if(i===44){e[++r]=Qu()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Vk(i)}while(i=od());return e},n_e=function(e,t){return yfe(i_e(xfe(e),t))},zY=new WeakMap,a_e=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!zY.get(r))&&!i){zY.set(e,!0);for(var n=[],s=n_e(t,n),d=r.props,c=0,u=0;c<s.length;c++)for(var p=0;p<d.length;p++,u++)e.props[u]=n[c]?s[c].replace(/&\f/g,d[p]):d[p]+" "+s[c]}}},s_e=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function wfe(e,t){switch(VDe(e,t)){case 5103:return No+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return No+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return No+e+wC+e+os+e+e;case 6828:case 4268:return No+e+os+e+e;case 6165:return No+e+os+"flex-"+e+e;case 5187:return No+e+Ho(e,/(\w+).+(:[^]+)/,No+"box-$1$2"+os+"flex-$1$2")+e;case 5443:return No+e+os+"flex-item-"+Ho(e,/flex-|-self/,"")+e;case 4675:return No+e+os+"flex-line-pack"+Ho(e,/align-content|flex-|-self/,"")+e;case 5548:return No+e+os+Ho(e,"shrink","negative")+e;case 5292:return No+e+os+Ho(e,"basis","preferred-size")+e;case 6060:return No+"box-"+Ho(e,"-grow","")+No+e+os+Ho(e,"grow","positive")+e;case 4554:return No+Ho(e,/([^-])(transform)/g,"$1"+No+"$2")+e;case 6187:return Ho(Ho(Ho(e,/(zoom-|grab)/,No+"$1"),/(image-set)/,No+"$1"),e,"")+e;case 5495:case 3959:return Ho(e,/(image-set\([^]*)/,No+"$1$`$1");case 4968:return Ho(Ho(e,/(.+:)(flex-)?(.*)/,No+"box-pack:$3"+os+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+No+e+e;case 4095:case 3583:case 4068:case 2532:return Ho(e,/(.+)-inline(.+)/,No+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(yu(e)-1-t>6)switch(Ha(e,t+1)){case 109:if(Ha(e,t+4)!==45)break;case 102:return Ho(e,/(.+:)(.+)-([^]+)/,"$1"+No+"$2-$3$1"+wC+(Ha(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~NR(e,"stretch")?wfe(Ho(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ha(e,t+1)!==115)break;case 6444:switch(Ha(e,yu(e)-3-(~NR(e,"!important")&&10))){case 107:return Ho(e,":",":"+No)+e;case 101:return Ho(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+No+(Ha(e,14)===45?"inline-":"")+"box$3$1"+No+"$2$3$1"+os+"$2box$3")+e}break;case 5936:switch(Ha(e,t+11)){case 114:return No+e+os+Ho(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return No+e+os+Ho(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return No+e+os+Ho(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return No+e+os+e+e}return e}var l_e=function(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case MH:e.return=wfe(e.value,e.length);break;case mfe:return n5([r6(e,{value:Ho(e.value,"@","@"+No)})],i);case IH:if(e.length)return WDe(e.props,function(n){switch(UDe(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return n5([r6(e,{props:[Ho(n,/:(read-\w+)/,":"+wC+"$1")]})],i);case"::placeholder":return n5([r6(e,{props:[Ho(n,/:(plac\w+)/,":"+No+"input-$1")]}),r6(e,{props:[Ho(n,/:(plac\w+)/,":"+wC+"$1")]}),r6(e,{props:[Ho(n,/:(plac\w+)/,os+"input-$1")]})],i)}return""})}},d_e=[l_e],bfe=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||d_e,n={},s,d=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),b=1;b<w.length;b++)n[w[b]]=!0;d.push(y)});var c,u=[a_e,s_e];{var p,h=[e_e,r_e(function(y){p.insert(y)})],m=t_e(u.concat(i,h)),g=function(y){return n5(JDe(y),m)};c=function(y,w,b,C){p=b,g(y?y+"{"+w.styles+"}":w.styles),C&&(x.inserted[w.name]=!0)}}var x={key:t,sheet:new RDe({key:t,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:c};return x.sheet.hydrate(d),x};function c_e(e){return e==null||Object.keys(e).length===0}function vfe(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?n=>t(c_e(n)?r:n):t;return l.jsx(Ax,{styles:i})}function u_e(e,t){return a(e,t)}function p_e(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const RY=[];function U0(e){return RY[0]=e,PDe(RY)}var FY={exports:{}},si={},OY;function h_e(){if(OY)return si;OY=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(w){if(typeof w=="object"&&w!==null){var b=w.$$typeof;switch(b){case e:switch(w=w.type,w){case r:case n:case i:case u:case p:case g:return w;default:switch(w=w&&w.$$typeof,w){case d:case c:case m:case h:return w;case s:return w;default:return b}}case t:return b}}}return si.ContextConsumer=s,si.ContextProvider=d,si.Element=e,si.ForwardRef=c,si.Fragment=r,si.Lazy=m,si.Memo=h,si.Portal=t,si.Profiler=n,si.StrictMode=i,si.Suspense=u,si.SuspenseList=p,si.isContextConsumer=function(w){return y(w)===s},si.isContextProvider=function(w){return y(w)===d},si.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},si.isForwardRef=function(w){return y(w)===c},si.isFragment=function(w){return y(w)===r},si.isLazy=function(w){return y(w)===m},si.isMemo=function(w){return y(w)===h},si.isPortal=function(w){return y(w)===t},si.isProfiler=function(w){return y(w)===n},si.isStrictMode=function(w){return y(w)===i},si.isSuspense=function(w){return y(w)===u},si.isSuspenseList=function(w){return y(w)===p},si.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===n||w===i||w===u||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===d||w.$$typeof===s||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},si.typeOf=y,si}var NY;function m_e(){return NY||(NY=1,FY.exports=h_e()),FY.exports}var Cfe=m_e();function Jp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $fe(e){if(f.isValidElement(e)||Cfe.isValidElementType(e)||!Jp(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=$fe(e[r])}),t}function hs(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Jp(e)&&Jp(t)&&Object.keys(t).forEach(n=>{f.isValidElement(t[n])||Cfe.isValidElementType(t[n])?i[n]=t[n]:Jp(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Jp(e[n])?i[n]=hs(e[n],t[n],r):r.clone?i[n]=Jp(t[n])?$fe(t[n]):t[n]:i[n]=t[n]}),i}const g_e=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function f_e(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...n}=e,s=g_e(t),d=Object.keys(s);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-i/100}${r})`}function p(g,x){const y=d.indexOf(x);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(y!==-1&&typeof t[d[y]]=="number"?t[d[y]]:x)-i/100}${r})`}function h(g){return d.indexOf(g)+1<d.length?p(g,d[d.indexOf(g)+1]):c(g)}function m(g){const x=d.indexOf(g);return x===0?c(d[1]):x===d.length-1?u(d[x]):p(g,d[d.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:d,values:s,up:c,down:u,between:p,only:h,not:m,unit:r,...n}}function HY(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,n)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(n.match(s)?.[1]||0)});return r.length?r.reduce((i,n)=>{const s=t[n];return delete i[n],i[n]=s,i},{...t}):t}function x_e(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function y_e(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,i,n]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(n).up(s)}function w_e(e){const t=(s,d)=>s.replace("@media",d?`@container ${d}`:"@container");function r(s,d){s.up=(...c)=>t(e.breakpoints.up(...c),d),s.down=(...c)=>t(e.breakpoints.down(...c),d),s.between=(...c)=>t(e.breakpoints.between(...c),d),s.only=(...c)=>t(e.breakpoints.only(...c),d),s.not=(...c)=>{const u=t(e.breakpoints.not(...c),d);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const i={},n=s=>(r(i,s),i);return r(n),{...e,containerQueries:n}}const b_e={borderRadius:4};function s9(e,t){return t?hs(e,t,{clone:!1}):e}const Qk={xs:0,sm:600,md:900,lg:1200,xl:1536},VY={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qk[e]}px)`},v_e={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Qk[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function fh(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const n=i.breakpoints||VY;return t.reduce((s,d,c)=>(s[n.up(n.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const n=i.breakpoints||VY;return Object.keys(t).reduce((s,d)=>{if(x_e(n.keys,d)){const c=y_e(i.containerQueries?i:v_e,d);c&&(s[c]=r(t[d],d))}else if(Object.keys(n.values||Qk).includes(d)){const c=n.up(d);s[c]=r(t[d],d)}else{const c=d;s[c]=t[c]}return s},{})}return r(t)}function C_e(e={}){return e.keys?.reduce((t,r)=>{const i=e.up(r);return t[i]={},t},{})||{}}function UY(e,t){return e.reduce((r,i)=>{const n=r[i];return(!n||Object.keys(n).length===0)&&delete r[i],r},t)}function Vr(e){if(typeof e!="string")throw new Error(gh(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gk(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((n,s)=>n&&n[s]?n[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,n)=>i&&i[n]!=null?i[n]:null,e)}function bC(e,t,r,i=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||i:n=Gk(e,r)||i,t&&(n=t(n,i,e)),n}function Sn(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:n}=e,s=d=>{if(d[t]==null)return null;const c=d[t],u=d.theme,p=Gk(u,i)||{};return fh(d,c,h=>{let m=bC(p,n,h);return h===m&&typeof h=="string"&&(m=bC(p,n,`${t}${h==="default"?"":Vr(h)}`,h)),r===!1?m:{[r]:m}})};return s.propTypes={},s.filterProps=[t],s}function $_e(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const k_e={m:"margin",p:"padding"},S_e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},WY={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},A_e=$_e(e=>{if(e.length>2)if(WY[e])e=WY[e];else return[e];const[t,r]=e.split(""),i=k_e[t],n=S_e[r]||"";return Array.isArray(n)?n.map(s=>i+s):[i+n]}),TH=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],BH=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...TH,...BH];function jx(e,t,r,i){const n=Gk(e,t,!0)??r;return typeof n=="number"||typeof n=="string"?s=>typeof s=="string"?s:typeof n=="string"?n.startsWith("var(")&&s===0?0:n.startsWith("var(")&&s===1?n:`calc(${s} * ${n})`:n*s:Array.isArray(n)?s=>{if(typeof s=="string")return s;const d=Math.abs(s),c=n[d];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof n=="function"?n:()=>{}}function DH(e){return jx(e,"spacing",8)}function Ix(e,t){return typeof t=="string"||t==null?t:e(t)}function E_e(e,t){return r=>e.reduce((i,n)=>(i[n]=Ix(t,r),i),{})}function L_e(e,t,r,i){if(!t.includes(r))return null;const n=A_e(r),s=E_e(n,i),d=e[r];return fh(e,d,s)}function kfe(e,t){const r=DH(e.theme);return Object.keys(e).map(i=>L_e(e,t,i,r)).reduce(s9,{})}function on(e){return kfe(e,TH)}on.propTypes={};on.filterProps=TH;function nn(e){return kfe(e,BH)}nn.propTypes={};nn.filterProps=BH;function Sfe(e=8,t=DH({spacing:e})){if(e.mui)return e;const r=(...i)=>(i.length===0?[1]:i).map(n=>{const s=t(n);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Yk(...e){const t=e.reduce((i,n)=>(n.filterProps.forEach(s=>{i[s]=n}),i),{}),r=i=>Object.keys(i).reduce((n,s)=>t[s]?s9(n,t[s](i)):n,{});return r.propTypes={},r.filterProps=e.reduce((i,n)=>i.concat(n.filterProps),[]),r}function Td(e){return typeof e!="number"?e:`${e}px solid`}function ic(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const j_e=ic("border",Td),I_e=ic("borderTop",Td),M_e=ic("borderRight",Td),P_e=ic("borderBottom",Td),T_e=ic("borderLeft",Td),B_e=ic("borderColor"),D_e=ic("borderTopColor"),__e=ic("borderRightColor"),z_e=ic("borderBottomColor"),R_e=ic("borderLeftColor"),F_e=ic("outline",Td),O_e=ic("outlineColor"),Kk=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=jx(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:Ix(t,i)});return fh(e,e.borderRadius,r)}return null};Kk.propTypes={};Kk.filterProps=["borderRadius"];Yk(j_e,I_e,M_e,P_e,T_e,B_e,D_e,__e,z_e,R_e,Kk,F_e,O_e);const qk=e=>{if(e.gap!==void 0&&e.gap!==null){const t=jx(e.theme,"spacing",8),r=i=>({gap:Ix(t,i)});return fh(e,e.gap,r)}return null};qk.propTypes={};qk.filterProps=["gap"];const Zk=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=jx(e.theme,"spacing",8),r=i=>({columnGap:Ix(t,i)});return fh(e,e.columnGap,r)}return null};Zk.propTypes={};Zk.filterProps=["columnGap"];const Jk=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=jx(e.theme,"spacing",8),r=i=>({rowGap:Ix(t,i)});return fh(e,e.rowGap,r)}return null};Jk.propTypes={};Jk.filterProps=["rowGap"];const N_e=Sn({prop:"gridColumn"}),H_e=Sn({prop:"gridRow"}),V_e=Sn({prop:"gridAutoFlow"}),U_e=Sn({prop:"gridAutoColumns"}),W_e=Sn({prop:"gridAutoRows"}),Q_e=Sn({prop:"gridTemplateColumns"}),G_e=Sn({prop:"gridTemplateRows"}),Y_e=Sn({prop:"gridTemplateAreas"}),K_e=Sn({prop:"gridArea"});Yk(qk,Zk,Jk,N_e,H_e,V_e,U_e,W_e,Q_e,G_e,Y_e,K_e);function a5(e,t){return t==="grey"?t:e}const q_e=Sn({prop:"color",themeKey:"palette",transform:a5}),Z_e=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:a5}),J_e=Sn({prop:"backgroundColor",themeKey:"palette",transform:a5});Yk(q_e,Z_e,J_e);function ql(e){return e<=1&&e!==0?`${e*100}%`:e}const X_e=Sn({prop:"width",transform:ql}),_H=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||Qk[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:ql(r)}};return fh(e,e.maxWidth,t)}return null};_H.filterProps=["maxWidth"];const eze=Sn({prop:"minWidth",transform:ql}),tze=Sn({prop:"height",transform:ql}),rze=Sn({prop:"maxHeight",transform:ql}),oze=Sn({prop:"minHeight",transform:ql});Sn({prop:"size",cssProperty:"width",transform:ql});Sn({prop:"size",cssProperty:"height",transform:ql});const ize=Sn({prop:"boxSizing"});Yk(X_e,_H,eze,tze,rze,oze,ize);const Xk={border:{themeKey:"borders",transform:Td},borderTop:{themeKey:"borders",transform:Td},borderRight:{themeKey:"borders",transform:Td},borderBottom:{themeKey:"borders",transform:Td},borderLeft:{themeKey:"borders",transform:Td},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Td},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Kk},color:{themeKey:"palette",transform:a5},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:a5},backgroundColor:{themeKey:"palette",transform:a5},p:{style:nn},pt:{style:nn},pr:{style:nn},pb:{style:nn},pl:{style:nn},px:{style:nn},py:{style:nn},padding:{style:nn},paddingTop:{style:nn},paddingRight:{style:nn},paddingBottom:{style:nn},paddingLeft:{style:nn},paddingX:{style:nn},paddingY:{style:nn},paddingInline:{style:nn},paddingInlineStart:{style:nn},paddingInlineEnd:{style:nn},paddingBlock:{style:nn},paddingBlockStart:{style:nn},paddingBlockEnd:{style:nn},m:{style:on},mt:{style:on},mr:{style:on},mb:{style:on},ml:{style:on},mx:{style:on},my:{style:on},margin:{style:on},marginTop:{style:on},marginRight:{style:on},marginBottom:{style:on},marginLeft:{style:on},marginX:{style:on},marginY:{style:on},marginInline:{style:on},marginInlineStart:{style:on},marginInlineEnd:{style:on},marginBlock:{style:on},marginBlockStart:{style:on},marginBlockEnd:{style:on},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:qk},rowGap:{style:Jk},columnGap:{style:Zk},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ql},maxWidth:{style:_H},minWidth:{transform:ql},height:{transform:ql},maxHeight:{transform:ql},minHeight:{transform:ql},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function nze(...e){const t=e.reduce((i,n)=>i.concat(Object.keys(n)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function aze(e,t){return typeof e=="function"?e(t):e}function sze(){function e(r,i,n,s){const d={[r]:i,theme:n},c=s[r];if(!c)return{[r]:i};const{cssProperty:u=r,themeKey:p,transform:h,style:m}=c;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[r]:i};const g=Gk(n,p)||{};return m?m(d):fh(d,i,x=>{let y=bC(g,h,x);return x===y&&typeof x=="string"&&(y=bC(g,h,`${r}${x==="default"?"":Vr(x)}`,x)),u===!1?y:{[u]:y}})}function t(r){const{sx:i,theme:n={},nested:s}=r||{};if(!i)return null;const d=n.unstable_sxConfig??Xk;function c(u){let p=u;if(typeof u=="function")p=u(n);else if(typeof u!="object")return u;if(!p)return null;const h=C_e(n.breakpoints),m=Object.keys(h);let g=h;return Object.keys(p).forEach(x=>{const y=aze(p[x],n);if(y!=null)if(typeof y=="object")if(d[x])g=s9(g,e(x,y,n,d));else{const w=fh({theme:n},y,b=>({[x]:b}));nze(w,y)?g[x]=t({sx:y,theme:n,nested:!0}):g=s9(g,w)}else g=s9(g,e(x,y,n,d))}),!s&&n.modularCssLayers?{"@layer sx":HY(n,UY(m,g))}:HY(n,UY(m,g))}return Array.isArray(i)?i.map(c):c(i)}return t}const i3=sze();i3.filterProps=["sx"];function lze(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function zH(e={},...t){const{breakpoints:r={},palette:i={},spacing:n,shape:s={},...d}=e,c=f_e(r),u=Sfe(n);let p=hs({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...b_e,...s}},d);return p=w_e(p),p.applyStyles=lze,p=t.reduce((h,m)=>hs(h,m),p),p.unstable_sxConfig={...Xk,...d?.unstable_sxConfig},p.unstable_sx=function(h){return i3({sx:h,theme:this})},p}function dze(e){return Object.keys(e).length===0}function RH(e=null){const t=f.useContext(sfe);return!t||dze(t)?e:t}const cze=zH();function Afe(e=cze){return RH(e)}function QY(e){const t=U0(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Efe({styles:e,themeId:t,defaultTheme:r={}}){const i=Afe(r),n=t&&i[t]||i;let s=typeof e=="function"?e(n):e;return n.modularCssLayers&&(Array.isArray(s)?s=s.map(d=>QY(typeof d=="function"?d(n):d)):s=QY(s)),l.jsx(vfe,{styles:s})}const GY=e=>e,uze=()=>{let e=GY;return{configure(t){e=t},generate(t){return e(t)},reset(){e=GY}}},pze=uze();function Lfe(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Lfe(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Sr(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Lfe(e))&&(i&&(i+=" "),i+=t);return i}const hze={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Wo(e,t,r="Mui"){const i=hze[t];return i?`${r}-${i}`:`${pze.generate(e)}-${t}`}function Qo(e,t,r="Mui"){const i={};return t.forEach(n=>{i[n]=Wo(e,n,r)}),i}function jfe(e){const{variants:t,...r}=e,i={variants:t,style:U0(r),isProcessed:!0};return i.style===r||t&&t.forEach(n=>{typeof n.style!="function"&&(n.style=U0(n.style))}),i}const mze=zH();function vj(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mg(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gze(e){return e?(t,r)=>r[e]:null}function fze(e,t,r){e.theme=wze(e.theme)?r:e.theme[t]||e.theme}function zv(e,t,r){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(n=>zv(e,n,r));if(Array.isArray(i?.variants)){let n;if(i.isProcessed)n=r?Mg(i.style,r):i.style;else{const{variants:s,...d}=i;n=r?Mg(U0(d),r):d}return Ife(e,i.variants,[n],r)}return i?.isProcessed?r?Mg(U0(i.style),r):i.style:r?Mg(U0(i),r):i}function Ife(e,t,r=[],i=void 0){let n;e:for(let s=0;s<t.length;s+=1){const d=t[s];if(typeof d.props=="function"){if(n??={...e,...e.ownerState,ownerState:e.ownerState},!d.props(n))continue}else for(const c in d.props)if(e[c]!==d.props[c]&&e.ownerState?.[c]!==d.props[c])continue e;typeof d.style=="function"?(n??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i?Mg(U0(d.style(n)),i):d.style(n))):r.push(i?Mg(U0(d.style),i):d.style)}return r}function xze(e={}){const{themeId:t,defaultTheme:r=mze,rootShouldForwardProp:i=vj,slotShouldForwardProp:n=vj}=e;function s(d){fze(d,t,r)}return(d,c={})=>{p_e(d,I=>I.filter(j=>j!==i3));const{name:u,slot:p,skipVariantsResolver:h,skipSx:m,overridesResolver:g=gze(vze(p)),...x}=c,y=u&&u.startsWith("Mui")||p?"components":"custom",w=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,b=m||!1;let C=vj;p==="Root"||p==="root"?C=i:p?C=n:bze(d)&&(C=void 0);const $=u_e(d,{shouldForwardProp:C,label:yze(),...x}),A=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(j){return zv(j,I,j.theme.modularCssLayers?y:void 0)};if(Jp(I)){const j=jfe(I);return function(T){return j.variants?zv(T,j,T.theme.modularCssLayers?y:void 0):T.theme.modularCssLayers?Mg(j.style,y):j.style}}return I},E=(...I)=>{const j=[],T=I.map(A),P=[];if(j.push(s),u&&g&&P.push(function(O){const z=O.theme.components?.[u]?.styleOverrides;if(!z)return null;const G={};for(const Z in z)G[Z]=zv(O,z[Z],O.theme.modularCssLayers?"theme":void 0);return g(O,G)}),u&&!w&&P.push(function(O){const z=O.theme?.components?.[u]?.variants;return z?Ife(O,z,[],O.theme.modularCssLayers?"theme":void 0):null}),b||P.push(i3),Array.isArray(T[0])){const O=T.shift(),z=new Array(j.length).fill(""),G=new Array(P.length).fill("");let Z;Z=[...z,...O,...G],Z.raw=[...z,...O.raw,...G],j.unshift(Z)}const B=[...j,...T,...P],_=$(...B);return d.muiName&&(_.muiName=d.muiName),_};return $.withConfig&&(E.withConfig=$.withConfig),E}}function yze(e,t){return void 0}function wze(e){for(const t in e)return!1;return!0}function bze(e){return typeof e=="string"&&e.charCodeAt(0)>96}function vze(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function VR(e,t,r=!1){const i={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const s=n;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const d=e[s],c=t[s];if(!c)i[s]=d||{};else if(!d)i[s]=c;else{i[s]={...c};for(const u in d)if(Object.prototype.hasOwnProperty.call(d,u)){const p=u;i[s][p]=VR(d[p],c[p],r)}}}else s==="className"&&r&&t.className?i.className=Sr(e?.className,t?.className):s==="style"&&r&&t.style?i.style={...e?.style,...t?.style}:i[s]===void 0&&(i[s]=e[s])}return i}const Jd=typeof window<"u"?f.useLayoutEffect:f.useEffect;function Cze(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function FH(e,t=0,r=1){return Cze(e,t,r)}function $ze(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),r?`rgb${r.length===4?"a":""}(${r.map((i,n)=>n<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function n2(e){if(e.type)return e;if(e.charAt(0)==="#")return n2($ze(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(gh(9,e));let i=e.substring(t+1,e.length-1),n;if(r==="color"){if(i=i.split(" "),n=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(n))throw new Error(gh(10,n))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:n}}const kze=e=>{const t=n2(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},B8=(e,t)=>{try{return kze(e)}catch{return e}};function eS(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((n,s)=>s<3?parseInt(n,10):n):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Mfe(e){e=n2(e);const{values:t}=e,r=t[0],i=t[1]/100,n=t[2]/100,s=i*Math.min(n,1-n),d=(p,h=(p+r/30)%12)=>n-s*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const u=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),eS({type:c,values:u})}function UR(e){e=n2(e);let t=e.type==="hsl"||e.type==="hsla"?n2(Mfe(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Sze(e,t){const r=UR(e),i=UR(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function vC(e,t){return e=n2(e),t=FH(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,eS(e)}function Mm(e,t,r){try{return vC(e,t)}catch{return e}}function tS(e,t){if(e=n2(e),t=FH(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return eS(e)}function Xo(e,t,r){try{return tS(e,t)}catch{return e}}function rS(e,t){if(e=n2(e),t=FH(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return eS(e)}function ei(e,t,r){try{return rS(e,t)}catch{return e}}function Aze(e,t=.15){return UR(e)>.5?tS(e,t):rS(e,t)}function Vy(e,t,r){try{return Aze(e,t)}catch{return e}}const Pfe=f.createContext(null);function OH(){return f.useContext(Pfe)}const Eze=typeof Symbol=="function"&&Symbol.for,Lze=Eze?Symbol.for("mui.nested"):"__THEME_NESTED__";function jze(e,t){return typeof t=="function"?t(e):{...e,...t}}function Ize(e){const{children:t,theme:r}=e,i=OH(),n=f.useMemo(()=>{const s=i===null?{...r}:jze(i,r);return s!=null&&(s[Lze]=i!==null),s},[r,i]);return l.jsx(Pfe.Provider,{value:n,children:t})}const Tfe=f.createContext();function Mze({value:e,...t}){return l.jsx(Tfe.Provider,{value:e??!0,...t})}const s7=()=>f.useContext(Tfe)??!1,Bfe=f.createContext(void 0);function Pze({value:e,children:t}){return l.jsx(Bfe.Provider,{value:e,children:t})}function Tze(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const n=t.components[r];return n.defaultProps?VR(n.defaultProps,i,t.components.mergeClassNameAndStyle):!n.styleOverrides&&!n.variants?VR(n,i,t.components.mergeClassNameAndStyle):i}function Bze({props:e,name:t}){const r=f.useContext(Bfe);return Tze({props:e,name:t,theme:{components:r}})}let YY=0;function Dze(e){const[t,r]=f.useState(e),i=e||t;return f.useEffect(()=>{t==null&&(YY+=1,r(`mui-${YY}`))},[t]),i}const _ze={...cTe},KY=_ze.useId;function oS(e){if(KY!==void 0){const t=KY();return e??t}return Dze(e)}function zze(e){const t=RH(),r=oS()||"",{modularCssLayers:i}=e;let n="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!i||t!==null?n="":typeof i=="string"?n=i.replace(/mui(?!\.)/g,n):n=`@layer ${n};`,Jd(()=>{const s=document.querySelector("head");if(!s)return;const d=s.firstChild;if(n){if(d&&d.hasAttribute?.("data-mui-layer-order")&&d.getAttribute("data-mui-layer-order")===r)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",r),c.textContent=n,s.prepend(c)}else s.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[n,r]),n?l.jsx(Efe,{styles:n}):null}const qY={};function ZY(e,t,r,i=!1){return f.useMemo(()=>{const n=e&&t[e]||t;if(typeof r=="function"){const s=r(n),d=e?{...t,[e]:s}:s;return i?()=>d:d}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}function Dfe(e){const{children:t,theme:r,themeId:i}=e,n=RH(qY),s=OH()||qY,d=ZY(i,n,r),c=ZY(i,s,r,!0),u=(i?d[i]:d).direction==="rtl",p=zze(d);return l.jsx(Ize,{theme:c,children:l.jsx(sfe.Provider,{value:d,children:l.jsx(Mze,{value:u,children:l.jsxs(Pze,{value:i?d[i].components:d.components,children:[p,t]})})})})}const JY={theme:void 0};function Rze(e){let t,r;return function(i){let n=t;return(n===void 0||i.theme!==r)&&(JY.theme=i.theme,n=jfe(e(JY)),t=n,r=i.theme),n}}const NH="mode",HH="color-scheme",Fze="data-color-scheme";function Oze(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:n=NH,colorSchemeStorageKey:s=HH,attribute:d=Fze,colorSchemeNode:c="document.documentElement",nonce:u}=e||{};let p="",h=d;if(d==="class"&&(h=".%s"),d==="data"&&(h="[data-%s]"),h.startsWith(".")){const g=h.substring(1);p+=`${c}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-6ai9S6pI.js","assets/sentry-B3BRIZXI.js","assets/empty-taYVTRRD.js","assets/index-vRDH00TS.js","assets/index-Mdntodkr.js","assets/zeni-epic-state-BW-vYzMS.js","assets/core-D_MAgorT.js","assets/utils-DyFv7MO8.js","assets/recharts-DTSdaU5r.js","assets/url-CBmJaXjR.js","assets/index-BFmE3Qmc.js","assets/index-C87IeE77.js","assets/url-CwOlJ5HG.js","assets/index-POB-7Cal.js","assets/ScreenRoutes-Dyf0-Igm.js","assets/liveblocks-PwPddB1a.js","assets/analyticsHelper-Btecxsit.js","assets/mui-C0zAEyFB.js","assets/analytics-CJO6EKNZ.js","assets/lottie-Cq_uKEbi.js","assets/lexical-BRT5wQo0.js","assets/SignInScreen-D1RwJ5MI.js"])))=>i.map(i=>d[i]);
2
+ import{a as f,b as k,R as cTe,c as o3,p as Up,e as pY,r as Il,g as fH,f as uTe,s as hY,w as pTe,i as hTe,S as mTe,j as gTe,k as fTe,l as xTe,m as yTe}from"./sentry-B3BRIZXI.js";import{j as cr,_ as T3e,a as oc,u as B3e,T as wTe,C as bTe,b as vTe,c as Bk,d as Dk,e as CTe,f as D3e,g as $Te,h as kTe,L as STe,i as mY,k as ATe,l as ETe,P as LTe,m as jTe,n as ITe,o as _3e,p as MTe,q as PTe,I as gY,r as TTe,s as BTe,t as DTe,v as _Te,w as zTe,x as RTe,y as z3e,z as FTe,A as OTe,B as NTe}from"./liveblocks-PwPddB1a.js";import{f as R3e,R as jg,r as fs,P as Zi,u as _k,g as Fu,h as HTe,i as xH,j as VTe,k as UTe,l as gj,N as WTe,m as QTe,n as GTe,B as YTe}from"./core-D_MAgorT.js";import{H as mC,ba as Ig,bb as KTe,bc as fY,bd as k3,be as Oo,bf as F3e,bg as fo,bh as qTe,bi as L5,bj as o2,bk as yH,bl as O3e,bm as ZTe,bn as N3e,bo as wH,bp as JTe,bq as H3e,br as XTe,bs as $i,bt as j5,bu as fu,bv as eBe,bw as tBe,bx as rBe,by as oBe,bz as xY,bA as iBe,bB as nBe,bC as aBe,bD as sBe,bE as zk,bF as V3e,bG as i2,bH as lBe,bI as U3e,bJ as _R,bK as yY,bL as wY,bM as bY,bN as zs,bO as bH,bP as vH,bQ as n7,bR as CH,bS as $H,bT as kH,bU as SH,bV as dBe,bW as gC,bX as cBe,bY as W3e,bZ as AH,b_ as uBe,b$ as ih,c0 as pBe,c1 as hBe,c2 as mBe,c3 as gBe,c4 as fBe,c5 as xBe,c6 as yBe,c7 as wBe,c8 as bBe,c9 as vBe,ca as CBe,cb as $Be,cc as kBe,cd as SBe,ce as ABe,cf as EBe,cg as LBe,ch as jBe,ci as IBe,cj as MBe,ck as PBe,cl as Rk,cm as Fk,cn as Q3e,co as TBe,cp as vY,cq as BBe,cr as DBe,cs as _Be,ct as _9,cu as G3e,cv as Y3e,cw as zBe,cx as K3e,cy as CY,cz as q3e,cA as Z3e,cB as J3e,cC as X3e,cD as efe,cE as tfe,cF as RBe,cG as FBe,cH as OBe,cI as rfe,cJ as zR,cK as NBe,cL as ofe,cM as ife,cN as HBe,cO as VBe,cP as UBe,cQ as WBe,cR as QBe,cS as GBe,cT as YBe,cU as KBe,v as qBe,cV as Ok,cW as nfe,cX as afe,cY as ZBe,cZ as JBe,c_ as XBe,c$ as eDe,d0 as tDe,d1 as rDe,d2 as oDe,d3 as iDe,d4 as nDe,d5 as $Y,d6 as aDe,d7 as sDe,d8 as lDe,d9 as dDe}from"./zeni-epic-state-BW-vYzMS.js";import{T as sfe,j as $r,n as a,c as ge,k as Ot,G as Ax,C as lfe,u as dfe,a as cDe}from"./mui-C0zAEyFB.js";import{r as uDe,m as xu}from"./analytics-CJO6EKNZ.js";import{L as RR}from"./lottie-Cq_uKEbi.js";import{r as Nn}from"./lexical-BRT5wQo0.js";import{E as hi,c as Nk,P as pDe,R as FR,F as fC,X as ad,Y as sd,G as kh,H as xC,I as Hk,J as Sh,K as cfe,L as hDe,M as mDe,N as S3,O as EH,Q as LH,S as Ex,U as gDe}from"./recharts-DTSdaU5r.js";import{r as fDe}from"./utils-DyFv7MO8.js";(function(){try{var e=typeof window<"u"?window:typeof o3<"u"?o3:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0ec1926f-87ed-422e-8129-dd8a8ba38d0f",e._sentryDebugIdIdentifier="sentry-dbid-0ec1926f-87ed-422e-8129-dd8a8ba38d0f")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const d of s.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function r(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(n){if(n.ep)return;n.ep=!0;const s=r(n);fetch(n.href,s)}})();var Ny={},kY;function xDe(){if(kY)return Ny;kY=1;var e=R3e();return Ny.createRoot=e.createRoot,Ny.hydrateRoot=e.hydrateRoot,Ny}var yDe=xDe(),hl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof o3<"u"?o3:typeof self<"u"?self:{};function io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var SY={exports:{}},t6={},AY;function wDe(){if(AY)return t6;AY=1;var e=k,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function d(c,u,p){var h,m={},g=null,x=null;p!==void 0&&(g=""+p),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(x=u.ref);for(h in u)i.call(u,h)&&!s.hasOwnProperty(h)&&(m[h]=u[h]);if(c&&c.defaultProps)for(h in u=c.defaultProps,u)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:t,type:c,key:g,ref:x,props:m,_owner:n.current}}return t6.Fragment=r,t6.jsx=d,t6.jsxs=d,t6}var EY;function ufe(){return EY||(EY=1,SY.exports=wDe()),SY.exports}var l=ufe();const bDe=f.createContext(null),fj={didCatch:!1,error:null};let vDe=class extends f.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=fj}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var t,r,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];(t=(r=this.props).onReset)===null||t===void 0||t.call(r,{args:n,reason:"imperative-api"}),this.setState(fj)}}componentDidCatch(e,t){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,e,t)}componentDidUpdate(e,t){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&t.error!==null&&CDe(e.resetKeys,i)){var n,s;(n=(s=this.props).onReset)===null||n===void 0||n.call(s,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(fj)}}render(){const{children:e,fallbackRender:t,FallbackComponent:r,fallback:i}=this.props,{didCatch:n,error:s}=this.state;let d=e;if(n){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof t=="function")d=t(c);else if(r)d=f.createElement(r,c);else if(i!==void 0)d=i;else throw s}return f.createElement(bDe.Provider,{value:{didCatch:n,error:s,resetErrorBoundary:this.resetErrorBoundary}},d)}};function CDe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,i)=>!Object.is(r,t[i]))}var OR={exports:{}},$De=OR.exports,LY;function kDe(){return LY||(LY=1,function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})($De,function(){var t,r,i="2.0.6",n={},s={},d={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:d.currentLocale,zeroFormat:d.zeroFormat,nullFormat:d.nullFormat,defaultFormat:d.defaultFormat,scalePercentBy100:d.scalePercentBy100};function u(p,h){this._input=p,this._value=h}return t=function(p){var h,m,g,x;if(t.isNumeral(p))h=p.value();else if(p===0||typeof p>"u")h=0;else if(p===null||r.isNaN(p))h=null;else if(typeof p=="string")if(c.zeroFormat&&p===c.zeroFormat)h=0;else if(c.nullFormat&&p===c.nullFormat||!p.replace(/[^0-9]+/g,"").length)h=null;else{for(m in n)if(x=typeof n[m].regexps.unformat=="function"?n[m].regexps.unformat():n[m].regexps.unformat,x&&p.match(x)){g=n[m].unformat;break}g=g||t._.stringToNumber,h=g(p)}else h=Number(p)||null;return new u(p,h)},t.version=i,t.isNumeral=function(p){return p instanceof u},t._=r={numberToFormat:function(p,h,m){var g=s[t.options.currentLocale],x=!1,y=!1,w=0,b="",C=1e12,$=1e9,A=1e6,E=1e3,I="",j=!1,T,P,B,_,O,z,G;if(p=p||0,P=Math.abs(p),t._.includes(h,"(")?(x=!0,h=h.replace(/[\(|\)]/g,"")):(t._.includes(h,"+")||t._.includes(h,"-"))&&(O=t._.includes(h,"+")?h.indexOf("+"):p<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),t._.includes(h,"a")&&(T=h.match(/a(k|m|b|t)?/),T=T?T[1]:!1,t._.includes(h," a")&&(b=" "),h=h.replace(new RegExp(b+"a[kmbt]?"),""),P>=C&&!T||T==="t"?(b+=g.abbreviations.trillion,p=p/C):P<C&&P>=$&&!T||T==="b"?(b+=g.abbreviations.billion,p=p/$):P<$&&P>=A&&!T||T==="m"?(b+=g.abbreviations.million,p=p/A):(P<A&&P>=E&&!T||T==="k")&&(b+=g.abbreviations.thousand,p=p/E)),t._.includes(h,"[.]")&&(y=!0,h=h.replace("[.]",".")),B=p.toString().split(".")[0],_=h.split(".")[1],z=h.indexOf(","),w=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(t._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),I=t._.toFixed(p,_[0].length+_[1].length,m,_[1].length)):I=t._.toFixed(p,_.length,m),B=I.split(".")[0],t._.includes(I,".")?I=g.delimiters.decimal+I.split(".")[1]:I="",y&&Number(I.slice(1))===0&&(I="")):B=t._.toFixed(p,0,m),b&&!T&&Number(B)>=1e3&&b!==g.abbreviations.trillion)switch(B=String(Number(B)/1e3),b){case g.abbreviations.thousand:b=g.abbreviations.million;break;case g.abbreviations.million:b=g.abbreviations.billion;break;case g.abbreviations.billion:b=g.abbreviations.trillion;break}if(t._.includes(B,"-")&&(B=B.slice(1),j=!0),B.length<w)for(var Z=w-B.length;Z>0;Z--)B="0"+B;return z>-1&&(B=B.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+g.delimiters.thousands)),h.indexOf(".")===0&&(B=""),G=B+I+(b||""),x?G=(x&&j?"(":"")+G+(x&&j?")":""):O>=0?G=O===0?(j?"-":"+")+G:G+(j?"-":"+"):j&&(G="-"+G),G},stringToNumber:function(p){var h=s[c.currentLocale],m=p,g={thousand:3,million:6,billion:9,trillion:12},x,y,w;if(c.zeroFormat&&p===c.zeroFormat)y=0;else if(c.nullFormat&&p===c.nullFormat||!p.replace(/[^0-9]+/g,"").length)y=null;else{y=1,h.delimiters.decimal!=="."&&(p=p.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(x in g)if(w=new RegExp("[^a-zA-Z]"+h.abbreviations[x]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),m.match(w)){y*=Math.pow(10,g[x]);break}y*=(p.split("-").length+Math.min(p.split("(").length-1,p.split(")").length-1))%2?1:-1,p=p.replace(/[^0-9\.]+/g,""),y*=Number(p)}return y},isNaN:function(p){return typeof p=="number"&&isNaN(p)},includes:function(p,h){return p.indexOf(h)!==-1},insert:function(p,h,m){return p.slice(0,m)+h+p.slice(m)},reduce:function(p,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var m=Object(p),g=m.length>>>0,x=0,y;if(arguments.length===3)y=arguments[2];else{for(;x<g&&!(x in m);)x++;if(x>=g)throw new TypeError("Reduce of empty array with no initial value");y=m[x++]}for(;x<g;x++)x in m&&(y=h(y,m[x],x,m));return y},multiplier:function(p){var h=p.toString().split(".");return h.length<2?1:Math.pow(10,h[1].length)},correctionFactor:function(){var p=Array.prototype.slice.call(arguments);return p.reduce(function(h,m){var g=r.multiplier(m);return h>g?h:g},1)},toFixed:function(p,h,m,g){var x=p.toString().split("."),y=h-(g||0),w,b,C,$;return x.length===2?w=Math.min(Math.max(x[1].length,y),h):w=y,C=Math.pow(10,w),$=(m(p+"e+"+w)/C).toFixed(w),g>h-w&&(b=new RegExp("\\.?0{1,"+(g-(h-w))+"}$"),$=$.replace(b,"")),$}},t.options=c,t.formats=n,t.locales=s,t.locale=function(p){return p&&(c.currentLocale=p.toLowerCase()),c.currentLocale},t.localeData=function(p){if(!p)return s[c.currentLocale];if(p=p.toLowerCase(),!s[p])throw new Error("Unknown locale : "+p);return s[p]},t.reset=function(){for(var p in d)c[p]=d[p]},t.zeroFormat=function(p){c.zeroFormat=typeof p=="string"?p:null},t.nullFormat=function(p){c.nullFormat=typeof p=="string"?p:null},t.defaultFormat=function(p){c.defaultFormat=typeof p=="string"?p:"0.0"},t.register=function(p,h,m){if(h=h.toLowerCase(),this[p+"s"][h])throw new TypeError(h+" "+p+" already registered.");return this[p+"s"][h]=m,m},t.validate=function(p,h){var m,g,x,y,w,b,C,$;if(typeof p!="string"&&(p+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",p)),p=p.trim(),p.match(/^\d+$/))return!0;if(p==="")return!1;try{C=t.localeData(h)}catch{C=t.localeData(t.locale())}return x=C.currency.symbol,w=C.abbreviations,m=C.delimiters.decimal,C.delimiters.thousands==="."?g="\\.":g=C.delimiters.thousands,$=p.match(/^[^\d]+/),$!==null&&(p=p.substr(1),$[0]!==x)||($=p.match(/[^\d]+$/),$!==null&&(p=p.slice(0,-1),$[0]!==w.thousand&&$[0]!==w.million&&$[0]!==w.billion&&$[0]!==w.trillion))?!1:(b=new RegExp(g+"{2}"),p.match(/[^\d.,]/g)?!1:(y=p.split(m),y.length>2?!1:y.length<2?!!y[0].match(/^\d+.*\d$/)&&!y[0].match(b):y[0].length===1?!!y[0].match(/^\d+$/)&&!y[0].match(b)&&!!y[1].match(/^\d+$/):!!y[0].match(/^\d+.*\d$/)&&!y[0].match(b)&&!!y[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(p,h){var m=this._value,g=p||c.defaultFormat,x,y,w;if(h=h||Math.round,m===0&&c.zeroFormat!==null)y=c.zeroFormat;else if(m===null&&c.nullFormat!==null)y=c.nullFormat;else{for(x in n)if(g.match(n[x].regexps.format)){w=n[x].format;break}w=w||t._.numberToFormat,y=w(m,g,h)}return y},value:function(){return this._value},input:function(){return this._input},set:function(p){return this._value=Number(p),this},add:function(p){var h=r.correctionFactor.call(null,this._value,p);function m(g,x,y,w){return g+Math.round(h*x)}return this._value=r.reduce([this._value,p],m,0)/h,this},subtract:function(p){var h=r.correctionFactor.call(null,this._value,p);function m(g,x,y,w){return g-Math.round(h*x)}return this._value=r.reduce([p],m,Math.round(this._value*h))/h,this},multiply:function(p){function h(m,g,x,y){var w=r.correctionFactor(m,g);return Math.round(m*w)*Math.round(g*w)/Math.round(w*w)}return this._value=r.reduce([this._value,p],h,1),this},divide:function(p){function h(m,g,x,y){var w=r.correctionFactor(m,g);return Math.round(m*w)/Math.round(g*w)}return this._value=r.reduce([this._value,p],h),this},difference:function(p){return Math.abs(t(this._value).subtract(p).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(p){var h=p%10;return~~(p%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(p,h,m){var g=t._.includes(h," BPS")?" ":"",x;return p=p*1e4,h=h.replace(/\s?BPS/,""),x=t._.numberToFormat(p,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,g+"BPS"),x=x.join("")):x=x+g+"BPS",x},unformat:function(p){return+(t._.stringToNumber(p)*1e-4).toFixed(15)}})}(),function(){var p={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},m=p.suffixes.concat(h.suffixes.filter(function(x){return p.suffixes.indexOf(x)<0})),g=m.join("|");g="("+g.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(g)},format:function(x,y,w){var b,C=t._.includes(y,"ib")?h:p,$=t._.includes(y," b")||t._.includes(y," ib")?" ":"",A,E,I;for(y=y.replace(/\s?i?b/,""),A=0;A<=C.suffixes.length;A++)if(E=Math.pow(C.base,A),I=Math.pow(C.base,A+1),x===null||x===0||x>=E&&x<I){$+=C.suffixes[A],E>0&&(x=x/E);break}return b=t._.numberToFormat(x,y,w),b+$},unformat:function(x){var y=t._.stringToNumber(x),w,b;if(y){for(w=p.suffixes.length-1;w>=0;w--){if(t._.includes(x,p.suffixes[w])){b=Math.pow(p.base,w);break}if(t._.includes(x,h.suffixes[w])){b=Math.pow(h.base,w);break}}y*=b||1}return y}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(p,h,m){var g=t.locales[t.options.currentLocale],x={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},y,w,b;for(h=h.replace(/\s?\$\s?/,""),y=t._.numberToFormat(p,h,m),p>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):p<0&&!t._.includes(x.before,"-")&&!t._.includes(x.before,"(")&&(x.before="-"+x.before),b=0;b<x.before.length;b++)switch(w=x.before[b],w){case"$":y=t._.insert(y,g.currency.symbol,b);break;case" ":y=t._.insert(y," ",b+g.currency.symbol.length-1);break}for(b=x.after.length-1;b>=0;b--)switch(w=x.after[b],w){case"$":y=b===x.after.length-1?y+g.currency.symbol:t._.insert(y,g.currency.symbol,-(x.after.length-(1+b)));break;case" ":y=b===x.after.length-1?y+" ":t._.insert(y," ",-(x.after.length-(1+b)+g.currency.symbol.length-1));break}return y}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(p,h,m){var g,x=typeof p=="number"&&!t._.isNaN(p)?p.toExponential():"0e+0",y=x.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),g=t._.numberToFormat(Number(y[0]),h,m),g+"e"+y[1]},unformat:function(p){var h=t._.includes(p,"e+")?p.split("e+"):p.split("e-"),m=Number(h[0]),g=Number(h[1]);g=t._.includes(p,"e-")?g*=-1:g;function x(y,w,b,C){var $=t._.correctionFactor(y,w),A=y*$*(w*$)/($*$);return A}return t._.reduce([m,Math.pow(10,g)],x,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(p,h,m){var g=t.locales[t.options.currentLocale],x,y=t._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),y+=g.ordinal(p),x=t._.numberToFormat(p,h,m),x+y}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(p,h,m){var g=t._.includes(h," %")?" ":"",x;return t.options.scalePercentBy100&&(p=p*100),h=h.replace(/\s?\%/,""),x=t._.numberToFormat(p,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,g+"%"),x=x.join("")):x=x+g+"%",x},unformat:function(p){var h=t._.stringToNumber(p);return t.options.scalePercentBy100?h*.01:h}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(p,h,m){var g=Math.floor(p/60/60),x=Math.floor((p-g*60*60)/60),y=Math.round(p-g*60*60-x*60);return g+":"+(x<10?"0"+x:x)+":"+(y<10?"0"+y:y)},unformat:function(p){var h=p.split(":"),m=0;return h.length===3?(m=m+Number(h[0])*60*60,m=m+Number(h[1])*60,m=m+Number(h[2])):h.length===2&&(m=m+Number(h[0])*60,m=m+Number(h[1])),Number(m)}})}(),t})}(OR)),OR.exports}var SDe=kDe();const lh=io(SDe);function gh(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}const dh="$$material";function ADe(e){for(var t=0,r,i=0,n=e.length;n>=4;++i,n-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var EDe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function LDe(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jDe=/[A-Z]|^ms/g,IDe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pfe=function(e){return e.charCodeAt(1)===45},jY=function(e){return e!=null&&typeof e!="boolean"},xj=LDe(function(e){return pfe(e)?e:e.replace(jDe,"-$&").toLowerCase()}),IY=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(IDe,function(r,i,n){return P0={name:i,styles:n,next:P0},i})}return EDe[e]!==1&&!pfe(e)&&typeof t=="number"&&t!==0?t+"px":t};function yC(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return P0={name:n.name,styles:n.styles,next:P0},n.name;var s=r;if(s.styles!==void 0){var d=s.next;if(d!==void 0)for(;d!==void 0;)P0={name:d.name,styles:d.styles,next:P0},d=d.next;var c=s.styles+";";return c}return MDe(e,t,r)}}var u=r;return u}function MDe(e,t,r){var i="";if(Array.isArray(r))for(var n=0;n<r.length;n++)i+=yC(e,t,r[n])+";";else for(var s in r){var d=r[s];if(typeof d!="object"){var c=d;jY(c)&&(i+=xj(s)+":"+IY(s,c)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&t==null)for(var u=0;u<d.length;u++)jY(d[u])&&(i+=xj(s)+":"+IY(s,d[u])+";");else{var p=yC(e,t,d);switch(s){case"animation":case"animationName":{i+=xj(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var MY=/label:\s*([^\s;{]+)\s*(;|$)/g,P0;function PDe(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,n="";P0=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,n+=yC(r,t,s);else{var d=s;n+=d[0]}for(var c=1;c<e.length;c++)if(n+=yC(r,t,e[c]),i){var u=s;n+=u[c]}MY.lastIndex=0;for(var p="",h;(h=MY.exec(n))!==null;)p+="-"+h[1];var m=ADe(n)+p;return{name:m,styles:n,next:P0}}var yj={exports:{}},wj,PY;function TDe(){if(PY)return wj;PY=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wj=e,wj}var bj,TY;function BDe(){if(TY)return bj;TY=1;var e=TDe();function t(){}function r(){}return r.resetWarningCache=t,bj=function(){function i(d,c,u,p,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}i.isRequired=i;function n(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:n,element:i,elementType:i,instanceOf:n,node:i,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},bj}var BY;function jH(){return BY||(BY=1,yj.exports=BDe()()),yj.exports}var DDe=jH();const Pt=io(DDe);function _De(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function zDe(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var RDe=function(){function e(r){var i=this;this._insertTag=function(n){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(n,s),i.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zDe(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var n=_De(i);try{n.insertRule(r,n.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),os="-ms-",wC="-moz-",No="-webkit-",hfe="comm",IH="rule",MH="decl",FDe="@import",mfe="@keyframes",ODe="@layer",NDe=Math.abs,Vk=String.fromCharCode,HDe=Object.assign;function VDe(e,t){return Ha(e,0)^45?(((t<<2^Ha(e,0))<<2^Ha(e,1))<<2^Ha(e,2))<<2^Ha(e,3):0}function gfe(e){return e.trim()}function UDe(e,t){return(e=t.exec(e))?e[0]:e}function Ho(e,t,r){return e.replace(t,r)}function NR(e,t){return e.indexOf(t)}function Ha(e,t){return e.charCodeAt(t)|0}function z9(e,t,r){return e.slice(t,r)}function yu(e){return e.length}function PH(e){return e.length}function Hy(e,t){return t.push(e),e}function WDe(e,t){return e.map(t).join("")}var Uk=1,I5=1,ffe=0,kl=0,_n=0,a7="";function Wk(e,t,r,i,n,s,d){return{value:e,root:t,parent:r,type:i,props:n,children:s,line:Uk,column:I5,length:d,return:""}}function r6(e,t){return HDe(Wk("",null,null,"",null,null,0),e,{length:-e.length},t)}function QDe(){return _n}function GDe(){return _n=kl>0?Ha(a7,--kl):0,I5--,_n===10&&(I5=1,Uk--),_n}function od(){return _n=kl<ffe?Ha(a7,kl++):0,I5++,_n===10&&(I5=1,Uk++),_n}function Qu(){return Ha(a7,kl)}function Bv(){return kl}function Lx(e,t){return z9(a7,e,t)}function R9(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xfe(e){return Uk=I5=1,ffe=yu(a7=e),kl=0,[]}function yfe(e){return a7="",e}function Dv(e){return gfe(Lx(kl-1,HR(e===91?e+2:e===40?e+1:e)))}function YDe(e){for(;(_n=Qu())&&_n<33;)od();return R9(e)>2||R9(_n)>3?"":" "}function KDe(e,t){for(;--t&&od()&&!(_n<48||_n>102||_n>57&&_n<65||_n>70&&_n<97););return Lx(e,Bv()+(t<6&&Qu()==32&&od()==32))}function HR(e){for(;od();)switch(_n){case e:return kl;case 34:case 39:e!==34&&e!==39&&HR(_n);break;case 40:e===41&&HR(e);break;case 92:od();break}return kl}function qDe(e,t){for(;od()&&e+_n!==57&&!(e+_n===84&&Qu()===47););return"/*"+Lx(t,kl-1)+"*"+Vk(e===47?e:od())}function ZDe(e){for(;!R9(Qu());)od();return Lx(e,kl)}function JDe(e){return yfe(_v("",null,null,null,[""],e=xfe(e),0,[0],e))}function _v(e,t,r,i,n,s,d,c,u){for(var p=0,h=0,m=d,g=0,x=0,y=0,w=1,b=1,C=1,$=0,A="",E=n,I=s,j=i,T=A;b;)switch(y=$,$=od()){case 40:if(y!=108&&Ha(T,m-1)==58){NR(T+=Ho(Dv($),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:T+=Dv($);break;case 9:case 10:case 13:case 32:T+=YDe(y);break;case 92:T+=KDe(Bv()-1,7);continue;case 47:switch(Qu()){case 42:case 47:Hy(XDe(qDe(od(),Bv()),t,r),u);break;default:T+="/"}break;case 123*w:c[p++]=yu(T)*C;case 125*w:case 59:case 0:switch($){case 0:case 125:b=0;case 59+h:C==-1&&(T=Ho(T,/\f/g,"")),x>0&&yu(T)-m&&Hy(x>32?_Y(T+";",i,r,m-1):_Y(Ho(T," ","")+";",i,r,m-2),u);break;case 59:T+=";";default:if(Hy(j=DY(T,t,r,p,h,n,c,A,E=[],I=[],m),s),$===123)if(h===0)_v(T,t,j,j,E,s,m,c,I);else switch(g===99&&Ha(T,3)===110?100:g){case 100:case 108:case 109:case 115:_v(e,j,j,i&&Hy(DY(e,j,j,0,0,n,c,A,n,E=[],m),I),n,I,m,c,i?E:I);break;default:_v(T,j,j,j,[""],I,0,c,I)}}p=h=x=0,w=C=1,A=T="",m=d;break;case 58:m=1+yu(T),x=y;default:if(w<1){if($==123)--w;else if($==125&&w++==0&&GDe()==125)continue}switch(T+=Vk($),$*w){case 38:C=h>0?1:(T+="\f",-1);break;case 44:c[p++]=(yu(T)-1)*C,C=1;break;case 64:Qu()===45&&(T+=Dv(od())),g=Qu(),h=m=yu(A=T+=ZDe(Bv())),$++;break;case 45:y===45&&yu(T)==2&&(w=0)}}return s}function DY(e,t,r,i,n,s,d,c,u,p,h){for(var m=n-1,g=n===0?s:[""],x=PH(g),y=0,w=0,b=0;y<i;++y)for(var C=0,$=z9(e,m+1,m=NDe(w=d[y])),A=e;C<x;++C)(A=gfe(w>0?g[C]+" "+$:Ho($,/&\f/g,g[C])))&&(u[b++]=A);return Wk(e,t,r,n===0?IH:c,u,p,h)}function XDe(e,t,r){return Wk(e,t,r,hfe,Vk(QDe()),z9(e,2,-2),0)}function _Y(e,t,r,i){return Wk(e,t,r,MH,z9(e,0,i),z9(e,i+1,-1),i)}function n5(e,t){for(var r="",i=PH(e),n=0;n<i;n++)r+=t(e[n],n,e,t)||"";return r}function e_e(e,t,r,i){switch(e.type){case ODe:if(e.children.length)break;case FDe:case MH:return e.return=e.return||e.value;case hfe:return"";case mfe:return e.return=e.value+"{"+n5(e.children,i)+"}";case IH:e.value=e.props.join(",")}return yu(r=n5(e.children,i))?e.return=e.value+"{"+r+"}":""}function t_e(e){var t=PH(e);return function(r,i,n,s){for(var d="",c=0;c<t;c++)d+=e[c](r,i,n,s)||"";return d}}function r_e(e){return function(t){t.root||(t=t.return)&&e(t)}}var o_e=function(e,t,r){for(var i=0,n=0;i=n,n=Qu(),i===38&&n===12&&(t[r]=1),!R9(n);)od();return Lx(e,kl)},i_e=function(e,t){var r=-1,i=44;do switch(R9(i)){case 0:i===38&&Qu()===12&&(t[r]=1),e[r]+=o_e(kl-1,t,r);break;case 2:e[r]+=Dv(i);break;case 4:if(i===44){e[++r]=Qu()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Vk(i)}while(i=od());return e},n_e=function(e,t){return yfe(i_e(xfe(e),t))},zY=new WeakMap,a_e=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!zY.get(r))&&!i){zY.set(e,!0);for(var n=[],s=n_e(t,n),d=r.props,c=0,u=0;c<s.length;c++)for(var p=0;p<d.length;p++,u++)e.props[u]=n[c]?s[c].replace(/&\f/g,d[p]):d[p]+" "+s[c]}}},s_e=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function wfe(e,t){switch(VDe(e,t)){case 5103:return No+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return No+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return No+e+wC+e+os+e+e;case 6828:case 4268:return No+e+os+e+e;case 6165:return No+e+os+"flex-"+e+e;case 5187:return No+e+Ho(e,/(\w+).+(:[^]+)/,No+"box-$1$2"+os+"flex-$1$2")+e;case 5443:return No+e+os+"flex-item-"+Ho(e,/flex-|-self/,"")+e;case 4675:return No+e+os+"flex-line-pack"+Ho(e,/align-content|flex-|-self/,"")+e;case 5548:return No+e+os+Ho(e,"shrink","negative")+e;case 5292:return No+e+os+Ho(e,"basis","preferred-size")+e;case 6060:return No+"box-"+Ho(e,"-grow","")+No+e+os+Ho(e,"grow","positive")+e;case 4554:return No+Ho(e,/([^-])(transform)/g,"$1"+No+"$2")+e;case 6187:return Ho(Ho(Ho(e,/(zoom-|grab)/,No+"$1"),/(image-set)/,No+"$1"),e,"")+e;case 5495:case 3959:return Ho(e,/(image-set\([^]*)/,No+"$1$`$1");case 4968:return Ho(Ho(e,/(.+:)(flex-)?(.*)/,No+"box-pack:$3"+os+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+No+e+e;case 4095:case 3583:case 4068:case 2532:return Ho(e,/(.+)-inline(.+)/,No+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(yu(e)-1-t>6)switch(Ha(e,t+1)){case 109:if(Ha(e,t+4)!==45)break;case 102:return Ho(e,/(.+:)(.+)-([^]+)/,"$1"+No+"$2-$3$1"+wC+(Ha(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~NR(e,"stretch")?wfe(Ho(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ha(e,t+1)!==115)break;case 6444:switch(Ha(e,yu(e)-3-(~NR(e,"!important")&&10))){case 107:return Ho(e,":",":"+No)+e;case 101:return Ho(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+No+(Ha(e,14)===45?"inline-":"")+"box$3$1"+No+"$2$3$1"+os+"$2box$3")+e}break;case 5936:switch(Ha(e,t+11)){case 114:return No+e+os+Ho(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return No+e+os+Ho(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return No+e+os+Ho(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return No+e+os+e+e}return e}var l_e=function(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case MH:e.return=wfe(e.value,e.length);break;case mfe:return n5([r6(e,{value:Ho(e.value,"@","@"+No)})],i);case IH:if(e.length)return WDe(e.props,function(n){switch(UDe(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return n5([r6(e,{props:[Ho(n,/:(read-\w+)/,":"+wC+"$1")]})],i);case"::placeholder":return n5([r6(e,{props:[Ho(n,/:(plac\w+)/,":"+No+"input-$1")]}),r6(e,{props:[Ho(n,/:(plac\w+)/,":"+wC+"$1")]}),r6(e,{props:[Ho(n,/:(plac\w+)/,os+"input-$1")]})],i)}return""})}},d_e=[l_e],bfe=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||d_e,n={},s,d=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),b=1;b<w.length;b++)n[w[b]]=!0;d.push(y)});var c,u=[a_e,s_e];{var p,h=[e_e,r_e(function(y){p.insert(y)})],m=t_e(u.concat(i,h)),g=function(y){return n5(JDe(y),m)};c=function(y,w,b,C){p=b,g(y?y+"{"+w.styles+"}":w.styles),C&&(x.inserted[w.name]=!0)}}var x={key:t,sheet:new RDe({key:t,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:c};return x.sheet.hydrate(d),x};function c_e(e){return e==null||Object.keys(e).length===0}function vfe(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?n=>t(c_e(n)?r:n):t;return l.jsx(Ax,{styles:i})}function u_e(e,t){return a(e,t)}function p_e(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const RY=[];function U0(e){return RY[0]=e,PDe(RY)}var FY={exports:{}},si={},OY;function h_e(){if(OY)return si;OY=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(w){if(typeof w=="object"&&w!==null){var b=w.$$typeof;switch(b){case e:switch(w=w.type,w){case r:case n:case i:case u:case p:case g:return w;default:switch(w=w&&w.$$typeof,w){case d:case c:case m:case h:return w;case s:return w;default:return b}}case t:return b}}}return si.ContextConsumer=s,si.ContextProvider=d,si.Element=e,si.ForwardRef=c,si.Fragment=r,si.Lazy=m,si.Memo=h,si.Portal=t,si.Profiler=n,si.StrictMode=i,si.Suspense=u,si.SuspenseList=p,si.isContextConsumer=function(w){return y(w)===s},si.isContextProvider=function(w){return y(w)===d},si.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},si.isForwardRef=function(w){return y(w)===c},si.isFragment=function(w){return y(w)===r},si.isLazy=function(w){return y(w)===m},si.isMemo=function(w){return y(w)===h},si.isPortal=function(w){return y(w)===t},si.isProfiler=function(w){return y(w)===n},si.isStrictMode=function(w){return y(w)===i},si.isSuspense=function(w){return y(w)===u},si.isSuspenseList=function(w){return y(w)===p},si.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===n||w===i||w===u||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===d||w.$$typeof===s||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},si.typeOf=y,si}var NY;function m_e(){return NY||(NY=1,FY.exports=h_e()),FY.exports}var Cfe=m_e();function Jp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $fe(e){if(f.isValidElement(e)||Cfe.isValidElementType(e)||!Jp(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=$fe(e[r])}),t}function hs(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Jp(e)&&Jp(t)&&Object.keys(t).forEach(n=>{f.isValidElement(t[n])||Cfe.isValidElementType(t[n])?i[n]=t[n]:Jp(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Jp(e[n])?i[n]=hs(e[n],t[n],r):r.clone?i[n]=Jp(t[n])?$fe(t[n]):t[n]:i[n]=t[n]}),i}const g_e=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,i)=>r.val-i.val),t.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function f_e(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...n}=e,s=g_e(t),d=Object.keys(s);function c(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-i/100}${r})`}function p(g,x){const y=d.indexOf(x);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(y!==-1&&typeof t[d[y]]=="number"?t[d[y]]:x)-i/100}${r})`}function h(g){return d.indexOf(g)+1<d.length?p(g,d[d.indexOf(g)+1]):c(g)}function m(g){const x=d.indexOf(g);return x===0?c(d[1]):x===d.length-1?u(d[x]):p(g,d[d.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:d,values:s,up:c,down:u,between:p,only:h,not:m,unit:r,...n}}function HY(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,n)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(n.match(s)?.[1]||0)});return r.length?r.reduce((i,n)=>{const s=t[n];return delete i[n],i[n]=s,i},{...t}):t}function x_e(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function y_e(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,i,n]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(n).up(s)}function w_e(e){const t=(s,d)=>s.replace("@media",d?`@container ${d}`:"@container");function r(s,d){s.up=(...c)=>t(e.breakpoints.up(...c),d),s.down=(...c)=>t(e.breakpoints.down(...c),d),s.between=(...c)=>t(e.breakpoints.between(...c),d),s.only=(...c)=>t(e.breakpoints.only(...c),d),s.not=(...c)=>{const u=t(e.breakpoints.not(...c),d);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const i={},n=s=>(r(i,s),i);return r(n),{...e,containerQueries:n}}const b_e={borderRadius:4};function s9(e,t){return t?hs(e,t,{clone:!1}):e}const Qk={xs:0,sm:600,md:900,lg:1200,xl:1536},VY={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qk[e]}px)`},v_e={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Qk[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function fh(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const n=i.breakpoints||VY;return t.reduce((s,d,c)=>(s[n.up(n.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const n=i.breakpoints||VY;return Object.keys(t).reduce((s,d)=>{if(x_e(n.keys,d)){const c=y_e(i.containerQueries?i:v_e,d);c&&(s[c]=r(t[d],d))}else if(Object.keys(n.values||Qk).includes(d)){const c=n.up(d);s[c]=r(t[d],d)}else{const c=d;s[c]=t[c]}return s},{})}return r(t)}function C_e(e={}){return e.keys?.reduce((t,r)=>{const i=e.up(r);return t[i]={},t},{})||{}}function UY(e,t){return e.reduce((r,i)=>{const n=r[i];return(!n||Object.keys(n).length===0)&&delete r[i],r},t)}function Vr(e){if(typeof e!="string")throw new Error(gh(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gk(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((n,s)=>n&&n[s]?n[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,n)=>i&&i[n]!=null?i[n]:null,e)}function bC(e,t,r,i=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||i:n=Gk(e,r)||i,t&&(n=t(n,i,e)),n}function Sn(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:n}=e,s=d=>{if(d[t]==null)return null;const c=d[t],u=d.theme,p=Gk(u,i)||{};return fh(d,c,h=>{let m=bC(p,n,h);return h===m&&typeof h=="string"&&(m=bC(p,n,`${t}${h==="default"?"":Vr(h)}`,h)),r===!1?m:{[r]:m}})};return s.propTypes={},s.filterProps=[t],s}function $_e(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const k_e={m:"margin",p:"padding"},S_e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},WY={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},A_e=$_e(e=>{if(e.length>2)if(WY[e])e=WY[e];else return[e];const[t,r]=e.split(""),i=k_e[t],n=S_e[r]||"";return Array.isArray(n)?n.map(s=>i+s):[i+n]}),TH=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],BH=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...TH,...BH];function jx(e,t,r,i){const n=Gk(e,t,!0)??r;return typeof n=="number"||typeof n=="string"?s=>typeof s=="string"?s:typeof n=="string"?n.startsWith("var(")&&s===0?0:n.startsWith("var(")&&s===1?n:`calc(${s} * ${n})`:n*s:Array.isArray(n)?s=>{if(typeof s=="string")return s;const d=Math.abs(s),c=n[d];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof n=="function"?n:()=>{}}function DH(e){return jx(e,"spacing",8)}function Ix(e,t){return typeof t=="string"||t==null?t:e(t)}function E_e(e,t){return r=>e.reduce((i,n)=>(i[n]=Ix(t,r),i),{})}function L_e(e,t,r,i){if(!t.includes(r))return null;const n=A_e(r),s=E_e(n,i),d=e[r];return fh(e,d,s)}function kfe(e,t){const r=DH(e.theme);return Object.keys(e).map(i=>L_e(e,t,i,r)).reduce(s9,{})}function on(e){return kfe(e,TH)}on.propTypes={};on.filterProps=TH;function nn(e){return kfe(e,BH)}nn.propTypes={};nn.filterProps=BH;function Sfe(e=8,t=DH({spacing:e})){if(e.mui)return e;const r=(...i)=>(i.length===0?[1]:i).map(n=>{const s=t(n);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Yk(...e){const t=e.reduce((i,n)=>(n.filterProps.forEach(s=>{i[s]=n}),i),{}),r=i=>Object.keys(i).reduce((n,s)=>t[s]?s9(n,t[s](i)):n,{});return r.propTypes={},r.filterProps=e.reduce((i,n)=>i.concat(n.filterProps),[]),r}function Td(e){return typeof e!="number"?e:`${e}px solid`}function ic(e,t){return Sn({prop:e,themeKey:"borders",transform:t})}const j_e=ic("border",Td),I_e=ic("borderTop",Td),M_e=ic("borderRight",Td),P_e=ic("borderBottom",Td),T_e=ic("borderLeft",Td),B_e=ic("borderColor"),D_e=ic("borderTopColor"),__e=ic("borderRightColor"),z_e=ic("borderBottomColor"),R_e=ic("borderLeftColor"),F_e=ic("outline",Td),O_e=ic("outlineColor"),Kk=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=jx(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:Ix(t,i)});return fh(e,e.borderRadius,r)}return null};Kk.propTypes={};Kk.filterProps=["borderRadius"];Yk(j_e,I_e,M_e,P_e,T_e,B_e,D_e,__e,z_e,R_e,Kk,F_e,O_e);const qk=e=>{if(e.gap!==void 0&&e.gap!==null){const t=jx(e.theme,"spacing",8),r=i=>({gap:Ix(t,i)});return fh(e,e.gap,r)}return null};qk.propTypes={};qk.filterProps=["gap"];const Zk=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=jx(e.theme,"spacing",8),r=i=>({columnGap:Ix(t,i)});return fh(e,e.columnGap,r)}return null};Zk.propTypes={};Zk.filterProps=["columnGap"];const Jk=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=jx(e.theme,"spacing",8),r=i=>({rowGap:Ix(t,i)});return fh(e,e.rowGap,r)}return null};Jk.propTypes={};Jk.filterProps=["rowGap"];const N_e=Sn({prop:"gridColumn"}),H_e=Sn({prop:"gridRow"}),V_e=Sn({prop:"gridAutoFlow"}),U_e=Sn({prop:"gridAutoColumns"}),W_e=Sn({prop:"gridAutoRows"}),Q_e=Sn({prop:"gridTemplateColumns"}),G_e=Sn({prop:"gridTemplateRows"}),Y_e=Sn({prop:"gridTemplateAreas"}),K_e=Sn({prop:"gridArea"});Yk(qk,Zk,Jk,N_e,H_e,V_e,U_e,W_e,Q_e,G_e,Y_e,K_e);function a5(e,t){return t==="grey"?t:e}const q_e=Sn({prop:"color",themeKey:"palette",transform:a5}),Z_e=Sn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:a5}),J_e=Sn({prop:"backgroundColor",themeKey:"palette",transform:a5});Yk(q_e,Z_e,J_e);function ql(e){return e<=1&&e!==0?`${e*100}%`:e}const X_e=Sn({prop:"width",transform:ql}),_H=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||Qk[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:ql(r)}};return fh(e,e.maxWidth,t)}return null};_H.filterProps=["maxWidth"];const eze=Sn({prop:"minWidth",transform:ql}),tze=Sn({prop:"height",transform:ql}),rze=Sn({prop:"maxHeight",transform:ql}),oze=Sn({prop:"minHeight",transform:ql});Sn({prop:"size",cssProperty:"width",transform:ql});Sn({prop:"size",cssProperty:"height",transform:ql});const ize=Sn({prop:"boxSizing"});Yk(X_e,_H,eze,tze,rze,oze,ize);const Xk={border:{themeKey:"borders",transform:Td},borderTop:{themeKey:"borders",transform:Td},borderRight:{themeKey:"borders",transform:Td},borderBottom:{themeKey:"borders",transform:Td},borderLeft:{themeKey:"borders",transform:Td},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Td},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Kk},color:{themeKey:"palette",transform:a5},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:a5},backgroundColor:{themeKey:"palette",transform:a5},p:{style:nn},pt:{style:nn},pr:{style:nn},pb:{style:nn},pl:{style:nn},px:{style:nn},py:{style:nn},padding:{style:nn},paddingTop:{style:nn},paddingRight:{style:nn},paddingBottom:{style:nn},paddingLeft:{style:nn},paddingX:{style:nn},paddingY:{style:nn},paddingInline:{style:nn},paddingInlineStart:{style:nn},paddingInlineEnd:{style:nn},paddingBlock:{style:nn},paddingBlockStart:{style:nn},paddingBlockEnd:{style:nn},m:{style:on},mt:{style:on},mr:{style:on},mb:{style:on},ml:{style:on},mx:{style:on},my:{style:on},margin:{style:on},marginTop:{style:on},marginRight:{style:on},marginBottom:{style:on},marginLeft:{style:on},marginX:{style:on},marginY:{style:on},marginInline:{style:on},marginInlineStart:{style:on},marginInlineEnd:{style:on},marginBlock:{style:on},marginBlockStart:{style:on},marginBlockEnd:{style:on},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:qk},rowGap:{style:Jk},columnGap:{style:Zk},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ql},maxWidth:{style:_H},minWidth:{transform:ql},height:{transform:ql},maxHeight:{transform:ql},minHeight:{transform:ql},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function nze(...e){const t=e.reduce((i,n)=>i.concat(Object.keys(n)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function aze(e,t){return typeof e=="function"?e(t):e}function sze(){function e(r,i,n,s){const d={[r]:i,theme:n},c=s[r];if(!c)return{[r]:i};const{cssProperty:u=r,themeKey:p,transform:h,style:m}=c;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[r]:i};const g=Gk(n,p)||{};return m?m(d):fh(d,i,x=>{let y=bC(g,h,x);return x===y&&typeof x=="string"&&(y=bC(g,h,`${r}${x==="default"?"":Vr(x)}`,x)),u===!1?y:{[u]:y}})}function t(r){const{sx:i,theme:n={},nested:s}=r||{};if(!i)return null;const d=n.unstable_sxConfig??Xk;function c(u){let p=u;if(typeof u=="function")p=u(n);else if(typeof u!="object")return u;if(!p)return null;const h=C_e(n.breakpoints),m=Object.keys(h);let g=h;return Object.keys(p).forEach(x=>{const y=aze(p[x],n);if(y!=null)if(typeof y=="object")if(d[x])g=s9(g,e(x,y,n,d));else{const w=fh({theme:n},y,b=>({[x]:b}));nze(w,y)?g[x]=t({sx:y,theme:n,nested:!0}):g=s9(g,w)}else g=s9(g,e(x,y,n,d))}),!s&&n.modularCssLayers?{"@layer sx":HY(n,UY(m,g))}:HY(n,UY(m,g))}return Array.isArray(i)?i.map(c):c(i)}return t}const i3=sze();i3.filterProps=["sx"];function lze(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function zH(e={},...t){const{breakpoints:r={},palette:i={},spacing:n,shape:s={},...d}=e,c=f_e(r),u=Sfe(n);let p=hs({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...b_e,...s}},d);return p=w_e(p),p.applyStyles=lze,p=t.reduce((h,m)=>hs(h,m),p),p.unstable_sxConfig={...Xk,...d?.unstable_sxConfig},p.unstable_sx=function(h){return i3({sx:h,theme:this})},p}function dze(e){return Object.keys(e).length===0}function RH(e=null){const t=f.useContext(sfe);return!t||dze(t)?e:t}const cze=zH();function Afe(e=cze){return RH(e)}function QY(e){const t=U0(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Efe({styles:e,themeId:t,defaultTheme:r={}}){const i=Afe(r),n=t&&i[t]||i;let s=typeof e=="function"?e(n):e;return n.modularCssLayers&&(Array.isArray(s)?s=s.map(d=>QY(typeof d=="function"?d(n):d)):s=QY(s)),l.jsx(vfe,{styles:s})}const GY=e=>e,uze=()=>{let e=GY;return{configure(t){e=t},generate(t){return e(t)},reset(){e=GY}}},pze=uze();function Lfe(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Lfe(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Sr(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Lfe(e))&&(i&&(i+=" "),i+=t);return i}const hze={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Wo(e,t,r="Mui"){const i=hze[t];return i?`${r}-${i}`:`${pze.generate(e)}-${t}`}function Qo(e,t,r="Mui"){const i={};return t.forEach(n=>{i[n]=Wo(e,n,r)}),i}function jfe(e){const{variants:t,...r}=e,i={variants:t,style:U0(r),isProcessed:!0};return i.style===r||t&&t.forEach(n=>{typeof n.style!="function"&&(n.style=U0(n.style))}),i}const mze=zH();function vj(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mg(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gze(e){return e?(t,r)=>r[e]:null}function fze(e,t,r){e.theme=wze(e.theme)?r:e.theme[t]||e.theme}function zv(e,t,r){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(n=>zv(e,n,r));if(Array.isArray(i?.variants)){let n;if(i.isProcessed)n=r?Mg(i.style,r):i.style;else{const{variants:s,...d}=i;n=r?Mg(U0(d),r):d}return Ife(e,i.variants,[n],r)}return i?.isProcessed?r?Mg(U0(i.style),r):i.style:r?Mg(U0(i),r):i}function Ife(e,t,r=[],i=void 0){let n;e:for(let s=0;s<t.length;s+=1){const d=t[s];if(typeof d.props=="function"){if(n??={...e,...e.ownerState,ownerState:e.ownerState},!d.props(n))continue}else for(const c in d.props)if(e[c]!==d.props[c]&&e.ownerState?.[c]!==d.props[c])continue e;typeof d.style=="function"?(n??={...e,...e.ownerState,ownerState:e.ownerState},r.push(i?Mg(U0(d.style(n)),i):d.style(n))):r.push(i?Mg(U0(d.style),i):d.style)}return r}function xze(e={}){const{themeId:t,defaultTheme:r=mze,rootShouldForwardProp:i=vj,slotShouldForwardProp:n=vj}=e;function s(d){fze(d,t,r)}return(d,c={})=>{p_e(d,I=>I.filter(j=>j!==i3));const{name:u,slot:p,skipVariantsResolver:h,skipSx:m,overridesResolver:g=gze(vze(p)),...x}=c,y=u&&u.startsWith("Mui")||p?"components":"custom",w=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,b=m||!1;let C=vj;p==="Root"||p==="root"?C=i:p?C=n:bze(d)&&(C=void 0);const $=u_e(d,{shouldForwardProp:C,label:yze(),...x}),A=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(j){return zv(j,I,j.theme.modularCssLayers?y:void 0)};if(Jp(I)){const j=jfe(I);return function(T){return j.variants?zv(T,j,T.theme.modularCssLayers?y:void 0):T.theme.modularCssLayers?Mg(j.style,y):j.style}}return I},E=(...I)=>{const j=[],T=I.map(A),P=[];if(j.push(s),u&&g&&P.push(function(O){const z=O.theme.components?.[u]?.styleOverrides;if(!z)return null;const G={};for(const Z in z)G[Z]=zv(O,z[Z],O.theme.modularCssLayers?"theme":void 0);return g(O,G)}),u&&!w&&P.push(function(O){const z=O.theme?.components?.[u]?.variants;return z?Ife(O,z,[],O.theme.modularCssLayers?"theme":void 0):null}),b||P.push(i3),Array.isArray(T[0])){const O=T.shift(),z=new Array(j.length).fill(""),G=new Array(P.length).fill("");let Z;Z=[...z,...O,...G],Z.raw=[...z,...O.raw,...G],j.unshift(Z)}const B=[...j,...T,...P],_=$(...B);return d.muiName&&(_.muiName=d.muiName),_};return $.withConfig&&(E.withConfig=$.withConfig),E}}function yze(e,t){return void 0}function wze(e){for(const t in e)return!1;return!0}function bze(e){return typeof e=="string"&&e.charCodeAt(0)>96}function vze(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function VR(e,t,r=!1){const i={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const s=n;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const d=e[s],c=t[s];if(!c)i[s]=d||{};else if(!d)i[s]=c;else{i[s]={...c};for(const u in d)if(Object.prototype.hasOwnProperty.call(d,u)){const p=u;i[s][p]=VR(d[p],c[p],r)}}}else s==="className"&&r&&t.className?i.className=Sr(e?.className,t?.className):s==="style"&&r&&t.style?i.style={...e?.style,...t?.style}:i[s]===void 0&&(i[s]=e[s])}return i}const Jd=typeof window<"u"?f.useLayoutEffect:f.useEffect;function Cze(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function FH(e,t=0,r=1){return Cze(e,t,r)}function $ze(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),r?`rgb${r.length===4?"a":""}(${r.map((i,n)=>n<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function n2(e){if(e.type)return e;if(e.charAt(0)==="#")return n2($ze(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(gh(9,e));let i=e.substring(t+1,e.length-1),n;if(r==="color"){if(i=i.split(" "),n=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(n))throw new Error(gh(10,n))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:n}}const kze=e=>{const t=n2(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},B8=(e,t)=>{try{return kze(e)}catch{return e}};function eS(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((n,s)=>s<3?parseInt(n,10):n):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function Mfe(e){e=n2(e);const{values:t}=e,r=t[0],i=t[1]/100,n=t[2]/100,s=i*Math.min(n,1-n),d=(p,h=(p+r/30)%12)=>n-s*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const u=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),eS({type:c,values:u})}function UR(e){e=n2(e);let t=e.type==="hsl"||e.type==="hsla"?n2(Mfe(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Sze(e,t){const r=UR(e),i=UR(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function vC(e,t){return e=n2(e),t=FH(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,eS(e)}function Mm(e,t,r){try{return vC(e,t)}catch{return e}}function tS(e,t){if(e=n2(e),t=FH(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return eS(e)}function Xo(e,t,r){try{return tS(e,t)}catch{return e}}function rS(e,t){if(e=n2(e),t=FH(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return eS(e)}function ei(e,t,r){try{return rS(e,t)}catch{return e}}function Aze(e,t=.15){return UR(e)>.5?tS(e,t):rS(e,t)}function Vy(e,t,r){try{return Aze(e,t)}catch{return e}}const Pfe=f.createContext(null);function OH(){return f.useContext(Pfe)}const Eze=typeof Symbol=="function"&&Symbol.for,Lze=Eze?Symbol.for("mui.nested"):"__THEME_NESTED__";function jze(e,t){return typeof t=="function"?t(e):{...e,...t}}function Ize(e){const{children:t,theme:r}=e,i=OH(),n=f.useMemo(()=>{const s=i===null?{...r}:jze(i,r);return s!=null&&(s[Lze]=i!==null),s},[r,i]);return l.jsx(Pfe.Provider,{value:n,children:t})}const Tfe=f.createContext();function Mze({value:e,...t}){return l.jsx(Tfe.Provider,{value:e??!0,...t})}const s7=()=>f.useContext(Tfe)??!1,Bfe=f.createContext(void 0);function Pze({value:e,children:t}){return l.jsx(Bfe.Provider,{value:e,children:t})}function Tze(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const n=t.components[r];return n.defaultProps?VR(n.defaultProps,i,t.components.mergeClassNameAndStyle):!n.styleOverrides&&!n.variants?VR(n,i,t.components.mergeClassNameAndStyle):i}function Bze({props:e,name:t}){const r=f.useContext(Bfe);return Tze({props:e,name:t,theme:{components:r}})}let YY=0;function Dze(e){const[t,r]=f.useState(e),i=e||t;return f.useEffect(()=>{t==null&&(YY+=1,r(`mui-${YY}`))},[t]),i}const _ze={...cTe},KY=_ze.useId;function oS(e){if(KY!==void 0){const t=KY();return e??t}return Dze(e)}function zze(e){const t=RH(),r=oS()||"",{modularCssLayers:i}=e;let n="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!i||t!==null?n="":typeof i=="string"?n=i.replace(/mui(?!\.)/g,n):n=`@layer ${n};`,Jd(()=>{const s=document.querySelector("head");if(!s)return;const d=s.firstChild;if(n){if(d&&d.hasAttribute?.("data-mui-layer-order")&&d.getAttribute("data-mui-layer-order")===r)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",r),c.textContent=n,s.prepend(c)}else s.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[n,r]),n?l.jsx(Efe,{styles:n}):null}const qY={};function ZY(e,t,r,i=!1){return f.useMemo(()=>{const n=e&&t[e]||t;if(typeof r=="function"){const s=r(n),d=e?{...t,[e]:s}:s;return i?()=>d:d}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}function Dfe(e){const{children:t,theme:r,themeId:i}=e,n=RH(qY),s=OH()||qY,d=ZY(i,n,r),c=ZY(i,s,r,!0),u=(i?d[i]:d).direction==="rtl",p=zze(d);return l.jsx(Ize,{theme:c,children:l.jsx(sfe.Provider,{value:d,children:l.jsx(Mze,{value:u,children:l.jsxs(Pze,{value:i?d[i].components:d.components,children:[p,t]})})})})}const JY={theme:void 0};function Rze(e){let t,r;return function(i){let n=t;return(n===void 0||i.theme!==r)&&(JY.theme=i.theme,n=jfe(e(JY)),t=n,r=i.theme),n}}const NH="mode",HH="color-scheme",Fze="data-color-scheme";function Oze(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:n=NH,colorSchemeStorageKey:s=HH,attribute:d=Fze,colorSchemeNode:c="document.documentElement",nonce:u}=e||{};let p="",h=d;if(d==="class"&&(h=".%s"),d==="data"&&(h="[data-%s]"),h.startsWith(".")){const g=h.substring(1);p+=`${c}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
3
3
  ${c}.classList.add('${g}'.replace('%s', colorScheme));`}const m=h.match(/\[([^[\]]+)\]/);if(m){const[g,x]=m[1].split("=");x||(p+=`${c}.removeAttribute('${g}'.replace('%s', light));
4
4
  ${c}.removeAttribute('${g}'.replace('%s', dark));`),p+=`
5
5
  ${c}.setAttribute('${g}'.replace('%s', colorScheme), ${x?`${x}.replace('%s', colorScheme)`:'""'});`}else p+=`${c}.setAttribute('${h}', colorScheme);`;return l.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
@@ -75960,7 +75960,7 @@ ${e}`,z2o=e=>f.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
75960
75960
  align-items: end;
75961
75961
  color: ${S.brandColorGoldDark};
75962
75962
  margin-left: ${o.sp2};
75963
- `;var W$o=fDe();const D9=fH(W$o);class Q$o{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(r!=null&&t!=null)return JSON.parse(this.decrypt(r,t))}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!0}getSignedInUserTenant(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&i!=null)return JSON.parse(this.decrypt(r,i)).find(s=>s.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&i!=null)return JSON.parse(this.decrypt(r,i)).find(s=>s.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(r&&t!=null){const i=this.decrypt(r,t);return i?JSON.parse(i):[]}return[]}saveForceRefreshedComponents(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),r)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,r){if(t==null||r==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,r),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),r))}saveSignedInUserTenants(t,r){const i=r??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(r=>window.localStorage.getItem(r)!=null).reduce((r,i)=>r&&i)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,r))}getTheme(){const t=window.localStorage.getItem(this.ZENI_THEME),r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null&&r!==null)return this.decrypt(t,r)}encrypt(t,r){return D9.AES.encrypt(t,r).toString()}decrypt(t,r){return D9.AES.decrypt(t,r).toString(D9.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const Ka=new Q$o,G$o=({children:e})=>{const t=cDe("(prefers-color-scheme: dark)"),[r,i]=k.useState({dark:t});f.useEffect(()=>{const u=Ka.getTheme()==null?t:Ka.getTheme()==="dark";r.dark!==u&&i({dark:u})},[r,t]);const n=()=>{const u=!r.dark;Ka.setTheme(u?"dark":"light"),i({...r,dark:u})},s=r.dark?epr():Xur(),d=typeof window<"u"?window.__NONCE__:void 0,c=d!=null&&d.length>0?d:void 0;return cr.jsx(Olr,{dark:r.dark,webAppTheme:s,toggle:n,nonce:c,children:e})},Y$o=["sandbox","production"],K$o=e=>k3(e,Y$o),q$o=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},Z$o=["development","staging","production"],J$o=e=>k3(e,Z$o),X$o=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";case"DEV":default:return"development"}},eko=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],tko=e=>k3(e,eko),Nd=tko("DEV"),Sx=()=>Nd==="DEV"||Nd==="QA"||Nd==="PUNE"||Nd==="SUNNYVALE"||Nd==="DELHI"||Nd==="MOHALI",DG="https://zeni-webapp-dev.uc.r.appspot.com",rko="63d3a2406505a5737a2b4debdb513f20",lRo=K$o(q$o(Nd)),oko=J$o(X$o(Nd));function iko(e,t){return D9.AES.decrypt(e,t).toString(D9.enc.Utf8)}const nko="ZENI-WEB-APP-",APe=Nd==="DEV"||Nd==="QA"?.2:.8,Pn={sentryDsn:"",sentryTraceSamplingRate:APe,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let $3,_G;function ako(e){Pn.sentryDsn=e.keys.SENTRY_DSN,Pn.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):APe,Pn.googleClientId=e.keys.GOOGLE_CLIENT_ID,Pn.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Pn.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Pn.mixpanelToken=e.keys.MIXPANEL_TOKEN,Pn.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Pn.pusherCluster=e.keys.PUSHER_CLUSTER,Pn.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Pn.appUrl=e.keys.WEB_ENDPOINT,Pn.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Pn.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,Pn.cardVaultId=e.keys.UNIT_VAULT_ID,Pn.stripeKey=e.keys.STRIPE_KEY,Pn.qboRedirectionUrl=e.keys.QBO_URL,Pn.mixpanelUrl=e.keys.MIXPANEL_URL,Pn.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,_G=e.externalEndPoints,$3=e.apiEndPoints,sko()}function sko(){try{const e=new Set;if($3!=null){for(const t of Object.values($3))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const r=document.createElement("link");r.rel="preconnect",r.href=t,r.crossOrigin="anonymous",document.head.appendChild(r)}}catch{}}async function lko(){const t=encodeURIComponent(JSON.stringify({environment:Nd}));try{const r=await fetch(`${DG}/api/keys?query=${t}`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("Error fetching details:",r),null}}let E3e=!1;function a9(){E3e||(xu.init(rko,{api_host:_G.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),E3e=!0)}let L3e=!1,j3e=!1;function EPe(){if(L3e)return;L3e=!0,a9();const e=ml.extractUtmParamsFromUrl();Object.keys(e).length>0&&xu.register(e),Sx()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}function dko(){return xu?.persistence?.props??null}const cko=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function uko(){const e=dko();if(e==null)return;const t=Object.keys(e).filter(r=>r.startsWith("utm_")||cko.has(r));for(const r of t)xu.unregister(r);Sx()&&t.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(t)}`)}function pko(){j3e||(j3e=!0,uko())}class Lg{identify(t,r){if(a9(),this.#r=t,t!=null&&r!=null&&(Lg.#t==null||qBe({userId:t,traits:r},Lg.#t)!==!0)){const{$email:i,...n}={...r};xu.identify(t),i&&i!=null&&xu.people.set_once({$email:i}),xu.people.set(n),Lg.#t={userId:t,traits:r},Sx()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(r)} `)}}identifyUserAndCompany(t,r,i,n,s){throw Error("Use identify in the web-app!!")}track(t,r){if(a9(),this.#r==null){console.error("user is not identified :(, so can not fire event");return}EPe();const i={distinct_id:this.#r,...r};xu.track(t,i),pko(),Sx()&&console.log(`*** firing ${t} with props ${JSON.stringify(r)}`)}alias(t,r){a9(),xu.alias(t,r)}reset(){a9(),xu.reset(),this.#r=void 0,Lg.#t=void 0}static get analytics(){return this.#e}static#e=new ml.Analytics(new Lg);static#t;#r}const rj=Lg.analytics;function hko(){EPe()}const mko=()=>{const e=_k(),t=Fu(r=>r.companyState);if(e.pathname.includes("/management/parent/")){const r=e.pathname.split("/")[3],i=t.companiesById[r];if(i!=null)return`${i.companyInfo.name} ${Q.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const r=e.pathname.split("/")[4],i=t.companiesById[r];if(i!=null)return i.companyInfo.name}},I3e=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";case"aiAccountant":return"ai-accountant";default:return e}},dRo=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";case"aiAccountant":return"ai accountant";default:return e}};function gko(e,t){return{updateDownloadStateHandler:r=>{e(ZBe(r))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(nfe()),e(afe(!1)),Ka.clearAll();const r=t.locationHook.state?.origin??"/";t.navigate(r,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),rj?.trackOnboardingNewCustomerStarted()},onThreadClick:(r,i,n)=>{const s=r.entityType.split(".");if(s.length===2){const d=Wme(s[0]);if(d!=null){const c=I3e(d);t.navigate(`/${c}`),n(r,i)}else console.warn(`Invalid navigation target in thread: ${s[0]}`)}},onNotificationClick:(r,i,n)=>{const s=r.entityType.split(".");if(r.isGlobalComment&&s.length===2){const d=Wme(s[0]);if(d!=null){const c=I3e(d);t.navigate(`/${c}`),n(r,i)}else console.warn(`Invalid navigation target in notification: ${s[0]}`)}}}}function fko(e,t){const{signedInUser:r,cockpitHeader:i}=t,n=e.tenantState.currentTenantId,d=Ok(e)?.companyName??"",c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:n??""};return{signedInUser:r,cockpitHeader:i,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:d,cockpitEndPoint:`${DG}/cockpitTabs`,authParams:c}}}const xko=HTe(fko,gko)(Mho);function yko(){const e=Z$e(),t=Ka.getSignedInUser(),r=xH(),i=_k(),n=mko(),s=Fu(u=>JBe(u)),d={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:s.filterByTabs,timezone:XBe()},c=i.pathname.split("/")[1];return cr.jsx(xko,{locationHook:i,themeState:e,signedInUser:t,cockpitHeader:n,allTabsViews:s,defaultOptions:d,analytics:rj,currentTab:c,navigate:r})}const wko=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*","/ai-accountant/*"];function bko({appContent:e}){const t=wko.filter(r=>VTe(r)).length===0;return cr.jsxs(cr.Fragment,{children:[t?null:cr.jsx(yko,{}),cr.jsx(cr.Fragment,{children:e})]})}const vko="cockpit",LPe="init-enter";function Cko({location:e,visitedUrl:t}){const{pathname:r}=e;return f.useLayoutEffect(()=>{const i=t.get(r||LPe);M3e(i!==void 0?i:0)}),null}const $ko=f.memo(Cko,(e,t)=>{const{location:r,visitedUrl:i}=e,{location:n}=t,s=r.pathname||LPe,d=kko();return i.set(s,d),!((n.pathname!==r.pathname||n.search!==r.search)&&n.hash==="")}),M3e=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),kko=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},jPe=e=>f.lazy(async()=>{const t=e.toString(),r=Ka.getForceRefreshedComponents(),i=new Set(r),n=i.has(t);try{const s=await e();return i.delete(t),Ka.saveForceRefreshedComponents(Array.from(i)),s}catch(s){throw n||(i.add(t),Ka.saveForceRefreshedComponents(Array.from(i)),location.reload()),s}}),Sko=jPe(()=>Ig(()=>import("./ScreenRoutes-DhDfqKSM.js"),__vite__mapDeps([14,5,1,6,15,8,16,17,7,2,4,9,11,18,19,20]))),Ako=jPe(()=>Ig(()=>import("./SignInScreen-rR1uzws2.js"),__vite__mapDeps([21,15,1,6,8,5,16,17,18,19,20,7])));function Eko(){const e=f.useRef();e.current==null&&(e.current=new Map);const t=xH(),r=_k();return f.useEffect(()=>{hko()},[]),f.useEffect(()=>{const i="signin/auth";Ka.isSignedIn()===!1&&!r.pathname.includes(i)&&t(i,{replace:!0,state:{...r.state,message:"...",origin:r.pathname}})}),cr.jsxs(Iko,{children:[cr.jsx($ko,{visitedUrl:e.current,location:r}),cr.jsx(Lko,{})]})}const Lko=()=>{const e=Ka.isSignedIn(),t=Ka.getSignedInUser(),r=e&&wH(t),i=Fu(u=>Ok(u)),n={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:i.tenantId??""},s=Fu(u=>eDe(u)),c=Fu(u=>tDe(u)).map(u=>({companyId:u.companyId,tenantId:u.tenantId,companyName:u.name}));return cr.jsx(Wno,{roomId:vko,authParams:n,users:s,companies:c,authUrlEndPoint:`${$3.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${$3.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:r,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:cr.jsx(jko,{})})},jko=()=>cr.jsx(f.Suspense,{fallback:cr.jsx(Mko,{children:cr.jsx(kr,{size:"Large",start:!0})}),children:cr.jsxs(UTe,{children:[cr.jsx(gj,{path:"/",element:cr.jsx(WTe,{to:"management",replace:!0})}),cr.jsx(gj,{path:"/signin/auth",element:cr.jsx(Ako,{})}),cr.jsx(gj,{path:"*",element:cr.jsx(bko,{appContent:cr.jsx(Sko,{})})})]})}),Iko=Xt("div")``,Mko=Xt("div")`
75963
+ `;var W$o=fDe();const D9=fH(W$o);class Q$o{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(r!=null&&t!=null)return JSON.parse(this.decrypt(r,t))}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),r=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&r!=null?JSON.parse(this.decrypt(t,r)):!0}getSignedInUserTenant(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&i!=null)return JSON.parse(this.decrypt(r,i)).find(s=>s.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){const r=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null&&i!=null)return JSON.parse(this.decrypt(r,i)).find(s=>s.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),r=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(r&&t!=null){const i=this.decrypt(r,t);return i?JSON.parse(i):[]}return[]}saveForceRefreshedComponents(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),r)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,r){if(t==null||r==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,r),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),r))}saveSignedInUserTenants(t,r){const i=r??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(r!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),r));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(r=>window.localStorage.getItem(r)!=null).reduce((r,i)=>r&&i)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const r=window.localStorage.getItem(this.ZENI_SESSION_ID);r!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,r))}getTheme(){const t=window.localStorage.getItem(this.ZENI_THEME),r=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null&&r!==null)return this.decrypt(t,r)}encrypt(t,r){return D9.AES.encrypt(t,r).toString()}decrypt(t,r){return D9.AES.decrypt(t,r).toString(D9.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const Ka=new Q$o,G$o=({children:e})=>{const t=cDe("(prefers-color-scheme: dark)"),[r,i]=k.useState({dark:t});f.useEffect(()=>{const u=Ka.getTheme()==null?t:Ka.getTheme()==="dark";r.dark!==u&&i({dark:u})},[r,t]);const n=()=>{const u=!r.dark;Ka.setTheme(u?"dark":"light"),i({...r,dark:u})},s=r.dark?epr():Xur(),d=typeof window<"u"?window.__NONCE__:void 0,c=d!=null&&d.length>0?d:void 0;return cr.jsx(Olr,{dark:r.dark,webAppTheme:s,toggle:n,nonce:c,children:e})},Y$o=["sandbox","production"],K$o=e=>k3(e,Y$o),q$o=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},Z$o=["development","staging","production"],J$o=e=>k3(e,Z$o),X$o=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";case"DEV":default:return"development"}},eko=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],tko=e=>k3(e,eko),Nd=tko("QA"),Sx=()=>Nd==="DEV"||Nd==="QA"||Nd==="PUNE"||Nd==="SUNNYVALE"||Nd==="DELHI"||Nd==="MOHALI",DG="https://zeni-webapp-qa.uc.r.appspot.com",rko="ed1936cb971f6aad4104ddbe708f812c",lRo=K$o(q$o(Nd)),oko=J$o(X$o(Nd));function iko(e,t){return D9.AES.decrypt(e,t).toString(D9.enc.Utf8)}const nko="ZENI-WEB-APP-",APe=Nd==="DEV"||Nd==="QA"?.2:.8,Pn={sentryDsn:"",sentryTraceSamplingRate:APe,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let $3,_G;function ako(e){Pn.sentryDsn=e.keys.SENTRY_DSN,Pn.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):APe,Pn.googleClientId=e.keys.GOOGLE_CLIENT_ID,Pn.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Pn.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Pn.mixpanelToken=e.keys.MIXPANEL_TOKEN,Pn.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Pn.pusherCluster=e.keys.PUSHER_CLUSTER,Pn.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Pn.appUrl=e.keys.WEB_ENDPOINT,Pn.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Pn.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,Pn.cardVaultId=e.keys.UNIT_VAULT_ID,Pn.stripeKey=e.keys.STRIPE_KEY,Pn.qboRedirectionUrl=e.keys.QBO_URL,Pn.mixpanelUrl=e.keys.MIXPANEL_URL,Pn.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,_G=e.externalEndPoints,$3=e.apiEndPoints,sko()}function sko(){try{const e=new Set;if($3!=null){for(const t of Object.values($3))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const r=document.createElement("link");r.rel="preconnect",r.href=t,r.crossOrigin="anonymous",document.head.appendChild(r)}}catch{}}async function lko(){const t=encodeURIComponent(JSON.stringify({environment:Nd}));try{const r=await fetch(`${DG}/api/keys?query=${t}`);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){return console.error("Error fetching details:",r),null}}let E3e=!1;function a9(){E3e||(xu.init(rko,{api_host:_G.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),E3e=!0)}let L3e=!1,j3e=!1;function EPe(){if(L3e)return;L3e=!0,a9();const e=ml.extractUtmParamsFromUrl();Object.keys(e).length>0&&xu.register(e),Sx()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}function dko(){return xu?.persistence?.props??null}const cko=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function uko(){const e=dko();if(e==null)return;const t=Object.keys(e).filter(r=>r.startsWith("utm_")||cko.has(r));for(const r of t)xu.unregister(r);Sx()&&t.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(t)}`)}function pko(){j3e||(j3e=!0,uko())}class Lg{identify(t,r){if(a9(),this.#r=t,t!=null&&r!=null&&(Lg.#t==null||qBe({userId:t,traits:r},Lg.#t)!==!0)){const{$email:i,...n}={...r};xu.identify(t),i&&i!=null&&xu.people.set_once({$email:i}),xu.people.set(n),Lg.#t={userId:t,traits:r},Sx()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(r)} `)}}identifyUserAndCompany(t,r,i,n,s){throw Error("Use identify in the web-app!!")}track(t,r){if(a9(),this.#r==null){console.error("user is not identified :(, so can not fire event");return}EPe();const i={distinct_id:this.#r,...r};xu.track(t,i),pko(),Sx()&&console.log(`*** firing ${t} with props ${JSON.stringify(r)}`)}alias(t,r){a9(),xu.alias(t,r)}reset(){a9(),xu.reset(),this.#r=void 0,Lg.#t=void 0}static get analytics(){return this.#e}static#e=new ml.Analytics(new Lg);static#t;#r}const rj=Lg.analytics;function hko(){EPe()}const mko=()=>{const e=_k(),t=Fu(r=>r.companyState);if(e.pathname.includes("/management/parent/")){const r=e.pathname.split("/")[3],i=t.companiesById[r];if(i!=null)return`${i.companyInfo.name} ${Q.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const r=e.pathname.split("/")[4],i=t.companiesById[r];if(i!=null)return i.companyInfo.name}},I3e=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";case"aiAccountant":return"ai-accountant";default:return e}},dRo=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";case"aiAccountant":return"ai accountant";default:return e}};function gko(e,t){return{updateDownloadStateHandler:r=>{e(ZBe(r))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(nfe()),e(afe(!1)),Ka.clearAll();const r=t.locationHook.state?.origin??"/";t.navigate(r,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),rj?.trackOnboardingNewCustomerStarted()},onThreadClick:(r,i,n)=>{const s=r.entityType.split(".");if(s.length===2){const d=Wme(s[0]);if(d!=null){const c=I3e(d);t.navigate(`/${c}`),n(r,i)}else console.warn(`Invalid navigation target in thread: ${s[0]}`)}},onNotificationClick:(r,i,n)=>{const s=r.entityType.split(".");if(r.isGlobalComment&&s.length===2){const d=Wme(s[0]);if(d!=null){const c=I3e(d);t.navigate(`/${c}`),n(r,i)}else console.warn(`Invalid navigation target in notification: ${s[0]}`)}}}}function fko(e,t){const{signedInUser:r,cockpitHeader:i}=t,n=e.tenantState.currentTenantId,d=Ok(e)?.companyName??"",c={userId:r?.userId??"",sessionId:r?.zeniSessionId??"",tenantId:n??""};return{signedInUser:r,cockpitHeader:i,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:d,cockpitEndPoint:`${DG}/cockpitTabs`,authParams:c}}}const xko=HTe(fko,gko)(Mho);function yko(){const e=Z$e(),t=Ka.getSignedInUser(),r=xH(),i=_k(),n=mko(),s=Fu(u=>JBe(u)),d={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:s.filterByTabs,timezone:XBe()},c=i.pathname.split("/")[1];return cr.jsx(xko,{locationHook:i,themeState:e,signedInUser:t,cockpitHeader:n,allTabsViews:s,defaultOptions:d,analytics:rj,currentTab:c,navigate:r})}const wko=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*","/ai-accountant/*"];function bko({appContent:e}){const t=wko.filter(r=>VTe(r)).length===0;return cr.jsxs(cr.Fragment,{children:[t?null:cr.jsx(yko,{}),cr.jsx(cr.Fragment,{children:e})]})}const vko="cockpit",LPe="init-enter";function Cko({location:e,visitedUrl:t}){const{pathname:r}=e;return f.useLayoutEffect(()=>{const i=t.get(r||LPe);M3e(i!==void 0?i:0)}),null}const $ko=f.memo(Cko,(e,t)=>{const{location:r,visitedUrl:i}=e,{location:n}=t,s=r.pathname||LPe,d=kko();return i.set(s,d),!((n.pathname!==r.pathname||n.search!==r.search)&&n.hash==="")}),M3e=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),kko=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},jPe=e=>f.lazy(async()=>{const t=e.toString(),r=Ka.getForceRefreshedComponents(),i=new Set(r),n=i.has(t);try{const s=await e();return i.delete(t),Ka.saveForceRefreshedComponents(Array.from(i)),s}catch(s){throw n||(i.add(t),Ka.saveForceRefreshedComponents(Array.from(i)),location.reload()),s}}),Sko=jPe(()=>Ig(()=>import("./ScreenRoutes-Dyf0-Igm.js"),__vite__mapDeps([14,5,1,6,15,8,16,17,7,2,4,9,11,18,19,20]))),Ako=jPe(()=>Ig(()=>import("./SignInScreen-D1RwJ5MI.js"),__vite__mapDeps([21,15,1,6,8,5,16,17,18,19,20,7])));function Eko(){const e=f.useRef();e.current==null&&(e.current=new Map);const t=xH(),r=_k();return f.useEffect(()=>{hko()},[]),f.useEffect(()=>{const i="signin/auth";Ka.isSignedIn()===!1&&!r.pathname.includes(i)&&t(i,{replace:!0,state:{...r.state,message:"...",origin:r.pathname}})}),cr.jsxs(Iko,{children:[cr.jsx($ko,{visitedUrl:e.current,location:r}),cr.jsx(Lko,{})]})}const Lko=()=>{const e=Ka.isSignedIn(),t=Ka.getSignedInUser(),r=e&&wH(t),i=Fu(u=>Ok(u)),n={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:i.tenantId??""},s=Fu(u=>eDe(u)),c=Fu(u=>tDe(u)).map(u=>({companyId:u.companyId,tenantId:u.tenantId,companyName:u.name}));return cr.jsx(Wno,{roomId:vko,authParams:n,users:s,companies:c,authUrlEndPoint:`${$3.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${$3.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:r,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:cr.jsx(jko,{})})},jko=()=>cr.jsx(f.Suspense,{fallback:cr.jsx(Mko,{children:cr.jsx(kr,{size:"Large",start:!0})}),children:cr.jsxs(UTe,{children:[cr.jsx(gj,{path:"/",element:cr.jsx(WTe,{to:"management",replace:!0})}),cr.jsx(gj,{path:"/signin/auth",element:cr.jsx(Ako,{})}),cr.jsx(gj,{path:"*",element:cr.jsx(bko,{appContent:cr.jsx(Sko,{})})})]})}),Iko=Xt("div")``,Mko=Xt("div")`
75964
75964
  display: flex;
75965
75965
  flex: 1 1 auto;
75966
75966
  flex-direction: row;
@@ -75971,4 +75971,4 @@ ${e}`,z2o=e=>f.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
75971
75971
  background-color: ${e=>e.theme.colors.background};
75972
75972
  `;function Pko(){Q.updateAppLocaleID("en"),_ko();const e=zko(),[t,r]=f.useState(!1),i=f.useCallback(s=>{s.data?.type==="UPDATE_READY"?r(!0):s.data?.type==="HIDE_UPDATE_POPUP"&&r(!1)},[]);f.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",i),navigator.serviceWorker.addEventListener("controllerchange",()=>{r(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",i)}),[i]);const n=()=>{r(!1),window.location.reload()};return cr.jsx(G$o,{children:cr.jsx(QTe,{store:e,children:cr.jsx(vbt,{children:cr.jsxs(rWt,{children:[t?cr.jsx(Sqt,{onPrimaryClick:n}):null,cr.jsx(Bko,{})]})})})})}const Tko=()=>{const e=Ka.getSignedInUser(),t=Fu($=>Ok($)),r=Fu($=>nDe($,t.companyId)),i=_k(),n=xH(),s=GTe(),d=t?.excludedResources?.fetchState=="Completed"?t.excludedResources.resources:[];f.useEffect(()=>()=>{s($Y())},[]);const c=Fu($=>aDe($)),u=t?.externalConnections?.accounting[0]?.connectionName,p=()=>{s($Y())},h=f.useMemo(()=>sDe(t.userRole),[t.userRole]),m=Fu($=>$.companyViewState.zeniUsers),g=f.useMemo(()=>{const $=m.fetchState==="Error"&&lDe(m.error);return $&&console.warn("Auto-logout triggered due to invalid session"),$},[m.fetchState,m.error]),x=f.useMemo(()=>{const $=m.fetchState==="Error"&&dDe(m.error)===!0;return $&&console.warn("Page is not accessible, show 404"),$},[m.fetchState,m.error]),y=f.useRef(!1);f.useEffect(()=>(g&&!y.current&&(y.current=!0,w()),()=>{y.current=!1}),[g]),f.useEffect(()=>{x&&window.open("/page-not-found","_self")},[x]);const w=f.useCallback(()=>{s(nfe()),s(afe(!1)),Ka.clearAll();const $=i.state?.origin??"/";n($,{replace:!0})},[]),b=f.useMemo(()=>Ka.getSignedInUser(),[]),C=f.useMemo(()=>({userId:b?.userId??"",sessionId:b?.zeniSessionId??"",tenantId:t.tenantId??""}),[b,t.tenantId]);return cr.jsx(gWt,{globalInfo:{loggedInUser:e,loggedInUserRole:t?.userRole,excludedResources:d,loggedInUserRoleMap:h,currentTenant:t,connectionName:u,controllersList:r},children:cr.jsx(aWt,{toolkit:{analytics:rj,sentry:mTe,authParams:C},children:cr.jsxs(bUt,{endPoint:{url:DG},children:[cr.jsx(kHr,{isOnDashboard:!1,showSnackbar:c.isSnackbarOpen,snackbar:{message:c.message,messageType:c.messageType,onRemoveSnackbar:p,showStatusIcon:c.showStatusIcon}}),cr.jsx(Eko,{})]})})})},Bko=()=>{const e=Ka.isSignedIn(),r=Fu(i=>Ok(i)).companyId;return cr.jsx(UGt,{isUserSignedIn:e,featureGateCustomFields:{companyId:r},zeniFeatureConfig:{currentFeatureEnv:oko,featureClientSecret:Pn.featureClientSecretCockpit,providerEndPoint:_G.statsigBaseUrl},children:cr.jsx(Tko,{})})},Dko=pTe(Pko);function _ko(){console.log("Initialize any 3rd party libs!")}let DR=null;function zko(){return DR===null&&(DR=Rko(),rDe().catch(e=>{console.error("Failed to load feature epics:",e),hTe(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
75973
75973
 
75974
- Please refresh the page to try again.`)})),DR}function Rko(){console.warn(`initializing epic state with url ${JSON.stringify($3)}`);const e=Ka.getSignedInUser(),t=oDe($3,e?.userId,e?.zeniSessionId,void 0,Sx()),r=iDe();return r.userId!=null&&rj.identify(r.userId,{tenant_id:r.tenantId}),t}const Fko=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),Oko="DEV",Nko="https://zeni-webapp-dev.uc.r.appspot.com",P3e=`/service-worker.js?v=${Date.now()}&env=${Oko}&endpoint=${encodeURIComponent(Nko)}`;function Hko(e){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{Fko?Vko(P3e):IPe(P3e)})}}function IPe(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const i=r.installing;i!=null&&(i.onstatechange=()=>{i.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),r.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),r.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(r=>{console.error("Error during service worker registration:",r)})}function Vko(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const i=r.headers.get("content-type");r.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then(n=>{n.unregister().then(()=>window.location.reload())}):IPe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const Uko=Ka.getSignedInUser(),Wko=Uko?.zeniSessionId;async function Qko(){try{const e=await lko(),t=iko(e,nko+Nd);ako(JSON.parse(t)),yDe.createRoot(document.getElementById("root")).render(cr.jsx(k.StrictMode,{children:cr.jsx(YTe,{basename:"/cockpit",children:cr.jsx(Dko,{})})})),Gko()}catch(e){console.error("Error initializing app:",e)}}function Gko(){const e=()=>{gTe({dsn:Pn.sentryDsn,integrations:[fTe(),xTe({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:Pn.sentryTraceSamplingRate,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(r=>r.category!=="console"?!0:(r.message??"").toLowerCase().includes("called people set")||Array.isArray(r.data?.arguments)&&r.data.arguments.some(n=>typeof n=="string"&&n.toLowerCase().includes("called people set"))?!1:(Array.isArray(r.data?.arguments)&&(r.data.arguments=r.data.arguments.map(n=>{if(typeof n=="string"&&n.includes("user_roles"))try{const s=n.match(/\{.*\}/s);if(s!==null){const d=JSON.parse(s[0]);if(d.user_roles!=null)return delete d.user_roles,n.replace(s[0],JSON.stringify(d))}}catch{}return n})),!0))),t}}),yTe("session-id",Wko)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}Qko();Hko();export{iRo as $,Yur as A,ml as B,rRo as C,Q as D,uSo as E,tRo as F,Jzo as G,PMo as H,TMo as I,Pe as J,nRo as K,Zzo as L,jLo as M,IAo as N,ILo as O,qzo as P,Kzo as Q,Qzo as R,sRo as S,g2 as T,jPe as U,hf as V,RGt as W,YEo as X,rj as a,L as b,I3e as c,dRo as d,tBo as e,Qno as f,Xzo as g,st as h,Gzo as i,Pn as j,Yzo as k,kr as l,mW as m,Zjo as n,o,oRo as p,v as q,GEo as r,_Ce as s,Wzo as t,hko as u,$Lo as v,aRo as w,eRo as x,lRo as y,Ka as z};
75974
+ Please refresh the page to try again.`)})),DR}function Rko(){console.warn(`initializing epic state with url ${JSON.stringify($3)}`);const e=Ka.getSignedInUser(),t=oDe($3,e?.userId,e?.zeniSessionId,void 0,Sx()),r=iDe();return r.userId!=null&&rj.identify(r.userId,{tenant_id:r.tenantId}),t}const Fko=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),Oko="QA",Nko="https://zeni-webapp-qa.uc.r.appspot.com",P3e=`/service-worker.js?v=${Date.now()}&env=${Oko}&endpoint=${encodeURIComponent(Nko)}`;function Hko(e){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{Fko?Vko(P3e):IPe(P3e)})}}function IPe(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const i=r.installing;i!=null&&(i.onstatechange=()=>{i.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),r.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),r.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(r=>{console.error("Error during service worker registration:",r)})}function Vko(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const i=r.headers.get("content-type");r.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then(n=>{n.unregister().then(()=>window.location.reload())}):IPe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const Uko=Ka.getSignedInUser(),Wko=Uko?.zeniSessionId;async function Qko(){try{const e=await lko(),t=iko(e,nko+Nd);ako(JSON.parse(t)),yDe.createRoot(document.getElementById("root")).render(cr.jsx(k.StrictMode,{children:cr.jsx(YTe,{basename:"/cockpit",children:cr.jsx(Dko,{})})})),Gko()}catch(e){console.error("Error initializing app:",e)}}function Gko(){const e=()=>{gTe({dsn:Pn.sentryDsn,integrations:[fTe(),xTe({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:Pn.sentryTraceSamplingRate,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(r=>r.category!=="console"?!0:(r.message??"").toLowerCase().includes("called people set")||Array.isArray(r.data?.arguments)&&r.data.arguments.some(n=>typeof n=="string"&&n.toLowerCase().includes("called people set"))?!1:(Array.isArray(r.data?.arguments)&&(r.data.arguments=r.data.arguments.map(n=>{if(typeof n=="string"&&n.includes("user_roles"))try{const s=n.match(/\{.*\}/s);if(s!==null){const d=JSON.parse(s[0]);if(d.user_roles!=null)return delete d.user_roles,n.replace(s[0],JSON.stringify(d))}}catch{}return n})),!0))),t}}),yTe("session-id",Wko)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}Qko();Hko();export{iRo as $,Yur as A,ml as B,rRo as C,Q as D,uSo as E,tRo as F,Jzo as G,PMo as H,TMo as I,Pe as J,nRo as K,Zzo as L,jLo as M,IAo as N,ILo as O,qzo as P,Kzo as Q,Qzo as R,sRo as S,g2 as T,jPe as U,hf as V,RGt as W,YEo as X,rj as a,L as b,I3e as c,dRo as d,tBo as e,Qno as f,Xzo as g,st as h,Gzo as i,Pn as j,Yzo as k,kr as l,mW as m,Zjo as n,o,oRo as p,v as q,GEo as r,_Ce as s,Wzo as t,hko as u,$Lo as v,aRo as w,eRo as x,lRo as y,Ka as z};
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zeni - Modern Finance Team For Startups</title><script type="module" crossorigin src="/assets/index-DSgV1c8r.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-B3BRIZXI.js"><link rel="modulepreload" crossorigin href="/assets/core-D_MAgorT.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BW-vYzMS.js"><link rel="modulepreload" crossorigin href="/assets/recharts-DTSdaU5r.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-PwPddB1a.js"><link rel="modulepreload" crossorigin href="/assets/mui-C0zAEyFB.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CJO6EKNZ.js"><link rel="modulepreload" crossorigin href="/assets/lottie-Cq_uKEbi.js"><link rel="modulepreload" crossorigin href="/assets/lexical-BRT5wQo0.js"><link rel="modulepreload" crossorigin href="/assets/utils-DyFv7MO8.js"><link rel="stylesheet" crossorigin href="/assets/index-t8y498Dk.css"></head><body><div id="root"></div></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zeni - Modern Finance Team For Startups</title><script type="module" crossorigin src="/assets/index-hgTW36kH.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-B3BRIZXI.js"><link rel="modulepreload" crossorigin href="/assets/core-D_MAgorT.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BW-vYzMS.js"><link rel="modulepreload" crossorigin href="/assets/recharts-DTSdaU5r.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-PwPddB1a.js"><link rel="modulepreload" crossorigin href="/assets/mui-C0zAEyFB.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CJO6EKNZ.js"><link rel="modulepreload" crossorigin href="/assets/lottie-Cq_uKEbi.js"><link rel="modulepreload" crossorigin href="/assets/lexical-BRT5wQo0.js"><link rel="modulepreload" crossorigin href="/assets/utils-DyFv7MO8.js"><link rel="stylesheet" crossorigin href="/assets/index-t8y498Dk.css"></head><body><div id="root"></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/web-cockpit-ui",
3
- "version": "2.0.6-dev",
3
+ "version": "2.0.6-qa",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],