@zeniai/web-app-ui 5.1.57-qa → 5.1.58-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AddressRoutes-Jvk5ZIh7.js +1 -0
- package/dist/assets/{AddressScreen-Bah6Axto.js → AddressScreen-BrRyijJp.js} +1 -1
- package/dist/assets/{AiCfoScreen-D6w_JSwz.js → AiCfoScreen-CicMJAHj.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-8TDA8Ccp.js → BillPayApprovalRoutes-CDu2EgPZ.js} +1 -1
- package/dist/assets/{BillPayRoutes-nnUKPO5Y.js → BillPayRoutes-qpaKIKLh.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-BSCz_weX.js → BusinessVerificationPageScreen-NuRsHlJi.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-Ct92GkQR.js → ChargeCardRoutes-DGkxpdY7.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-BuzhHe2C.js → CompanyPassportScreen-CG5-5eoy.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-Cx532D02.js → ConnectionAuthScreen-Bn_8LVY-.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Bgpl9puf.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-6JIj5Uwx.js → CustomerOnboardingRoutes-BWH4fb9z.js} +1 -1
- package/dist/assets/{DashboardRoutes-8dZJcrjS.js → DashboardRoutes-9HsT8T2z.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DtGQaM5T.js → DefaultTenantHome-CwgycKYc.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-uWwGtp2A.js → DomesticWireDetailScreen-Dd35H5gU.js} +1 -1
- package/dist/assets/{DrawerScreen-C8n2HmP2.js → DrawerScreen-C5n2KCQV.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-HkIOiOiT.js → EntityDetailRoutes-DLIsh6TE.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-D87utETH.js → ExpenseAutomationRoutes-C0zzACQj.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-GFqoRAmW.js → FeaturePreviewScreen-BeSvOfyq.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-P129l75l.js → HubSpotOAuthCallbackScreen-QEO5L34X.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CwtB31Og.js → MagicLinkRoutes-CWoYIOYU.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-eN1m4ocj.js → MagicLinkSignInScreen-D_t_Me45.js} +1 -1
- package/dist/assets/{MobileAppDrawer-B0EbhwTO.js → MobileAppDrawer-BG5P4V6f.js} +1 -1
- package/dist/assets/NotFoundScreen-DcBza--g.js +1 -0
- package/dist/assets/{NotificationRoutes-DrdoIjCe.js → NotificationRoutes-CQ3pB1c-.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-B6rOIgJM.js → OAuthConsentScreen-rh4Splr8.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CjBSrJEt.js → PandLWithForecastRoutes-C321jz-9.js} +1 -1
- package/dist/assets/{PeopleRoutes-Cm-tUsbs.js → PeopleRoutes-tz6kKz-A.js} +1 -1
- package/dist/assets/{PerformanceRoutes-B6QkgqxQ.js → PerformanceRoutes-CeebcaT1.js} +1 -1
- package/dist/assets/{Preview-DUJTupxJ.js → Preview-Dw6WgJ9D.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DuffYDWL.js → QBOConnectionScreen-DmBrRYj5.js} +1 -1
- package/dist/assets/{ReferralListScreen-B2Vroa_d.js → ReferralListScreen-Lnl80ls5.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-eSS641gM.js → ReimbursementApprovalRoutes-U1jW3SNW.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DID8ZBs6.js → ReimbursementApprovalRuleDetailScreen-C7v9N8Xz.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-BxQKQK4v.js → ReimbursementRoutes-CrSmjoHG.js} +1 -1
- package/dist/assets/{ReportsRoutes-Crmtgf42.js → ReportsRoutes-CVQ3KrxC.js} +1 -1
- package/dist/assets/{RewardsRoutes-BmTO_Tbv.js → RewardsRoutes-CuXw1sC8.js} +1 -1
- package/dist/assets/{ScreenRoutes-CVo30lLK.js → ScreenRoutes-Bm5EazfY.js} +2 -2
- package/dist/assets/{SettingsRoutes-B-U88pFC.js → SettingsRoutes-BdwvZMwv.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BR7nlLcj.js → SetupPagesScreen-DPjCUjqg.js} +1 -1
- package/dist/assets/{SignInScreen-C54ZI6c4.js → SignInScreen-C1EKfqaQ.js} +1 -1
- package/dist/assets/{SignOutScreen-BIz1BEQ9.js → SignOutScreen-DK40OwVP.js} +1 -1
- package/dist/assets/{TaskListScreen-DKr0bX0e.js → TaskListScreen-d8fI83l2.js} +1 -1
- package/dist/assets/{TaskRoutes-DH15_wAa.js → TaskRoutes-jKlcwy0X.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-xbgQVU2q.js → TransactionDetailRoutes-CCDdwe13.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-gxTWcgHw.js → TransactionDetailScreen-DmE69GP7.js} +1 -1
- package/dist/assets/{TransactionListRoutes-BeJcfGnQ.js → TransactionListRoutes-BU6W03tb.js} +1 -1
- package/dist/assets/{TreasuryRoutes-D0pT4IIe.js → TreasuryRoutes-Bm8WTWLC.js} +1 -1
- package/dist/assets/{VendorsRoutes-DEyltljX.js → VendorsRoutes-B1U9Gev2.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-D4eECASa.js → WiseConfirmationScreen-BsEe1BHV.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-hy9KXK0i.js → ZeniAccountRoutes-DjEDHzor.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-CeCApd4l.js → ZeniAccountStatementScreen-Cu_59prd.js} +1 -1
- package/dist/assets/{accountMappingHelper-CQ-cPZ2Q.js → accountMappingHelper-JvNPAAYV.js} +1 -1
- package/dist/assets/{analytics-Dp5zEMRl.js → analytics-wiEk3GGD.js} +1 -1
- package/dist/assets/{analyticsHelper-BsoPneRx.js → analyticsHelper-CScMfb2z.js} +1 -1
- package/dist/assets/{core-Bz75oBBS.js → core-DUPexJ3H.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-C4sdX50I.js → decodeURIComponentSafe-jbE9T9Sc.js} +1 -1
- package/dist/assets/{dnd-CZ-V7Opk.js → dnd-O-LDWVRl.js} +1 -1
- package/dist/assets/{empty-7OUXq_pa.js → empty-B5snx4g9.js} +1 -1
- package/dist/assets/{empty-BOJvSC1K.js → empty-DtHXOIj5.js} +1 -1
- package/dist/assets/{emptyVideoElement-B7aN1P9v.js → emptyVideoElement-6tVV7Q67.js} +1 -1
- package/dist/assets/{epic-BcqgfxS9.js → epic-DdqgmVvM.js} +1 -1
- package/dist/assets/{getLocaleForTenant-haKQ7Ka2.js → getLocaleForTenant-BQer3J3i.js} +1 -1
- package/dist/assets/{index-CIlw72ZY.js → index-B_Z_hpYg.js} +8 -8
- package/dist/assets/{index-B580fqwk.js → index-BhL3T4qt.js} +1 -1
- package/dist/assets/{index-6BzK0FJL.js → index-C4rqoBpF.js} +1 -1
- package/dist/assets/{index-DqlK4s6f.js → index-CFjZqjGQ.js} +1 -1
- package/dist/assets/{index-PPRJ7txt.js → index-D9U_bKAc.js} +1 -1
- package/dist/assets/{index-Bs6X6A75.js → index-R3FzVapp.js} +1 -1
- package/dist/assets/{index-BQTqLUth.js → index-fhWfMdvB.js} +2 -2
- package/dist/assets/{index-uPeOzU7i.js → index-iv31G9Nr.js} +1 -1
- package/dist/assets/{lexical-BhoV9klE.js → lexical-D7D3BWIv.js} +1 -1
- package/dist/assets/{liveblocks-Dtw-cIpm.js → liveblocks-CpSeBLzv.js} +1 -1
- package/dist/assets/{lottie-DCGoGDCc.js → lottie-BpJoufaA.js} +1 -1
- package/dist/assets/{mui-XIlJ9bNw.js → mui-BYcLUAn-.js} +1 -1
- package/dist/assets/{pathToGoBack-DF7meFK5.js → pathToGoBack-DOYIxcIl.js} +1 -1
- package/dist/assets/{pdf-DY4XXQdH.js → pdf--1Oee4-D.js} +3 -3
- package/dist/assets/{pdf-lib-BwfYoiDb.js → pdf-lib-DIbgSioz.js} +1 -1
- package/dist/assets/{plaid-HhKeWLGl.js → plaid-DSCHiplf.js} +1 -1
- package/dist/assets/{pusher-yKpXr-6q.js → pusher-DWPsZ62H.js} +1 -1
- package/dist/assets/{react-PQlAUPJl.js → react-B3g-qTY7.js} +1 -1
- package/dist/assets/{react-BihThLEf.js → react-BQJ3WCCJ.js} +1 -1
- package/dist/assets/{react-B27fDKOl.js → react-BYOk0YaM.js} +1 -1
- package/dist/assets/{react-BU60ZCxp.js → react-C2LzYoMn.js} +1 -1
- package/dist/assets/{react-5mDvcVHb.js → react-CA9dc_Y6.js} +1 -1
- package/dist/assets/{react-4ndjzott.js → react-CD_enKrG.js} +1 -1
- package/dist/assets/{recharts-P1XbTErv.js → recharts-Dp6Vlg5X.js} +1 -1
- package/dist/assets/{routePaths-kzqCOAuK.js → routePaths-DpeDFIQv.js} +1 -1
- package/dist/assets/{sentry-CcjRjG-d.js → sentry-BxlhxHUi.js} +1 -1
- package/dist/assets/{url-CywC97He.js → url-Cto2mSPb.js} +1 -1
- package/dist/assets/{url-t5z6Dd8t.js → url-DLyO75wK.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Dr7tCqEp.js → useAiCfoDashboardSuggestedQuestionsChips-BK9arDN4.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CiS8Thq0.js → useAskAiCfoHostNavButtonProps-D8UKtiUm.js} +1 -1
- package/dist/assets/{useDeviceId-iq2z2ZGf.js → useDeviceId-6JqjTKKJ.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-XlIrdlUc.js → useInitialThreadRequest-hFu4tb2i.js} +1 -1
- package/dist/assets/{utils-CSFJzIqP.js → utils-BI-ymB94.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BwTwVibl.js → withTransactionSidePanel-DXm_Rajk.js} +1 -1
- package/dist/assets/{zeni-epic-state-qHZitSu9.js → zeni-epic-state-DP595dtC.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AddressRoutes-CbBiqU38.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Df40VEpH.js +0 -1
- package/dist/assets/NotFoundScreen-i7in0PiQ.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-
|
|
2
|
-
import{a as m,b as T,c as Koe,R as Ibt,p as UQ,r as Ku,g as TJe,e as O0e,f as Lbt,s as F0e,i as Tbt,w as Dbt,j as Pbt,S as Bbt,k as Mbt,l as _bt,m as zbt,n as Obt,o as Fbt}from"./sentry-CcjRjG-d.js";import{L as Rbt,C as R0e,_ as Zu,a as CL,b as Nbt,c as rV,d as vL,u as DJe,T as Vbt,e as Hbt,f as Ubt,g as Wbt,h as PJe,i as Qbt,k as Gbt,j as jt,l as Ybt}from"./liveblocks-Dtw-cIpm.js";import{f as BJe,r as Ur,R as bx,P as $l,O as qbt,N as MJe,u as Up,g as Wp,h as SL,i as _Je,j as ai,m as Zse,k as zJe,l as Oj,n as Kbt,o as Zbt,p as eu,q as Jbt,B as Xbt}from"./core-Bz75oBBS.js";import{L as N0e,bl as ewt,bm as twt,bn as g6,bo as Nt,bp as dk,bq as nwt,br as owt,bs as el,bt as e2,bu as iwt,bv as D4,bw as Za,bx as rwt,by as awt,bz as lwt,bA as xI,bB as w4,bC as g3,bD as aV,bE as sn,bF as OJe,bG as FJe,bH as Jse,bI as Qp,bJ as f3,bK as ad,bL as t4,bM as swt,bN as Kl,bO as cwt,bP as uk,bQ as dwt,bR as uwt,bS as pwt,bT as my,bU as V0e,bV as hwt,bW as mwt,bX as gwt,bY as fwt,bZ as xwt,b_ as ywt,b$ as bwt,c0 as wwt,c1 as M7,c2 as lV,c3 as Cwt,c4 as sV,c5 as cV,c6 as dV,c7 as Xse,c8 as uV,c9 as CS,ca as vS,cb as pV,cc as vwt,cd as Swt,ce as H0e,cf as kwt,cg as $wt,ch as Awt,ci as Gd,cj as RJe,ck as ece,cl as jwt,cm as E9,cn as U0e,co as Ewt,cp as Iwt,cq as Lwt,cr as Wy,cs as Qy,ct as NJe,cu as VJe,cv as tce,cw as Twt,cx as Dwt,cy as PO,cz as HJe,cA as Pwt,cB as UJe,cC as Bwt,cD as Fj,cE as W0e,cF as Mwt,cG as WJe,cH as QJe,cI as GJe,cJ as _wt,cK as Q0e,cL as zwt,cM as Owt,cN as YJe,cO as Fwt,cP as G0e,cQ as Ic,cR as El,cS as Rwt,cT as SS,cU as Nd,cV as qJe,cW as Nwt,cX as yI,cY as Gx,cZ as Pa,c_ as Vwt,c$ as Hwt,d0 as Uwt,d1 as Wwt,d2 as KT,d3 as Wh,d4 as Qwt,d5 as Gwt,d6 as Ywt,d7 as qwt,d8 as ZT,d9 as gy,da as hV,db as Kwt,dc as Zwt,dd as Gy,de as Yd,df as KJe,dg as ZJe,dh as Jwt,di as pk,dj as Zoe,dk as Xwt,dl as E1,dm as fy,dn as nce,dp as JJe,dq as XJe,dr as eXe,ds as tXe,dt as nXe,du as oXe,dv as eCt,dw as Y0e,dx as tCt,_ as fd,dy as oce,dz as iXe,dA as nCt,dB as q0e,dC as ap,dD as n4,dE as oCt,dF as iCt,dG as rXe,dH as Joe,dI as xz,dJ as rCt,dK as aCt,dL as lCt,dM as sCt,dN as cCt,dO as dCt,dP as uCt,dQ as pCt,dR as hCt,dS as mCt,dT as yE,dU as bE,dV as aXe,dW as Bp,dX as gCt,dY as ice,dZ as rce,d_ as hk,d$ as ace,e0 as lce,e1 as sce,e2 as cce,e3 as lXe,e4 as dce,e5 as fCt,e6 as xCt,e7 as sXe,e8 as K0e,e9 as yCt,ea as uce,eb as bCt,ec as wCt,ed as cXe,ee as CCt,ef as vCt,eg as SCt,eh as dXe,ei as kCt,ej as uXe,ek as pXe,el as $Ct,em as ACt,en as jCt,eo as ECt,ep as ICt,eq as LCt,er as TCt,es as DCt,et as hXe,eu as PCt,ev as Z0e,ew as mV,ex as BCt,ey as MCt,ez as _Ct,eA as zCt,eB as OCt,eC as FCt,eD as RCt,eE as NCt,eF as J0e,eG as mXe,eH as gXe,eI as fXe,eJ as xXe,eK as yXe,eL as bXe,eM as VCt,eN as HCt,eO as UCt,v as WCt,eP as kL,eQ as V1,eR as wXe,eS as QCt,eT as pce,eU as $L,eV as hce,eW as CXe,eX as vXe,eY as GCt,eZ as SXe,e_ as YCt,e$ as kXe,f0 as qCt,f1 as $Xe,f2 as KCt,f3 as ZCt,f4 as JCt,f5 as XCt,f6 as evt,f7 as X0e,f8 as AXe,f9 as Kb,fa as eme,fb as tvt,fc as tme,fd as nvt,fe as ovt,ff as jXe,fg as EXe,fh as ivt,fi as rvt,fj as avt,fk as lvt,fl as svt,fm as cvt,fn as BO,fo as mce,fp as IXe,fq as dvt,fr as wE,fs as uvt,ft as pvt,fu as hvt,fv as mvt,fw as gvt,fx as fvt,fy as xvt,fz as yvt,fA as bvt,fB as wvt,fC as LXe,fD as Cvt,fE as vvt,fF as Svt,fG as nme,fH as kvt,fI as $vt,fJ as Avt,fK as jvt,fL as Evt,fM as Xoe,fN as Ivt,fO as Lvt,fP as Tvt,fQ as Dvt,fR as Pvt,fS as Bvt,fT as Mvt,fU as _vt,fV as ome,fW as zvt,fX as Ovt}from"./zeni-epic-state-qHZitSu9.js";import{n as l,T as TXe,G as AL,j as qo,c as je,k as Hn,C as DXe,u as gce,a as eie,A as Fvt,b as Rvt,I as Nvt,d as Vvt,D as MO,S as PXe}from"./mui-XIlJ9bNw.js";import{r as Hvt,m as Bh}from"./analytics-Dp5zEMRl.js";import{u as Xp}from"./plaid-HhKeWLGl.js";import{g as Uvt,O as Wvt,H as Qvt,S as Gvt,T as Yvt,a as qvt,u as Kvt,b as Zvt}from"./dnd-CZ-V7Opk.js";import{l as Jvt}from"./stripe-DMRn4zHo.js";import{L as Fv}from"./lottie-DCGoGDCc.js";import{r as Bs}from"./lexical-BhoV9klE.js";import{D as tie,P as nie,_ as BXe,a as MXe}from"./pdf-DY4XXQdH.js";import{R as bI,G as xy,X as hs,Y as Zl,H as yy,I as pd,J as Gp,K as Yy,L as eh,M as mk,N as _Xe,O as Xvt,P as eSt,Q as gV,S as Rv,U as tSt,V as fce,W as nSt,Z as oSt,_ as iSt}from"./recharts-P1XbTErv.js";import{r as rSt}from"./utils-CSFJzIqP.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]="f537aeb7-a99b-4c0e-983d-adfe4da77a8f",e._sentryDebugIdIdentifier="sentry-dbid-f537aeb7-a99b-4c0e-983d-adfe4da77a8f")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0})}function n(o){if(o.ep)return;o.ep=!0;const i=function(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}(o);fetch(o.href,i)}})();var ime,JT={},aSt=function(){if(ime)return JT;ime=1;var e=BJe();return JT.createRoot=e.createRoot,JT.hydrateRoot=e.hydrateRoot,JT}(),Bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Koe<"u"?Koe:typeof self<"u"?self:{};function zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rme,ame,lme={exports:{}},u$={};function zXe(){return ame||(ame=1,lme.exports=function(){if(rme)return u$;rme=1;var e=T,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)i.call(u,h)&&!s.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:a.current}}return u$.Fragment=o,u$.jsx=c,u$.jsxs=c,u$}()),lme.exports}var t=zXe();const lSt=m.createContext(null),WQ={didCatch:!1,error:null};let sSt=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=WQ}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];(n=(o=this.props).onReset)===null||n===void 0||n.call(o,{args:a,reason:"imperative-api"}),this.setState(WQ)}}componentDidCatch(e,n){var o,i;(o=(i=this.props).onError)===null||o===void 0||o.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:o}=this.state,{resetKeys:i}=this.props;var a,s;o&&n.error!==null&&function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return c.length!==d.length||c.some((u,p)=>!Object.is(u,d[p]))}(e.resetKeys,i)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(WQ))}render(){const{children:e,fallbackRender:n,FallbackComponent:o,fallback:i}=this.props,{didCatch:a,error:s}=this.state;let c=e;if(a){const d={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(o)c=m.createElement(o,d);else{if(i===void 0)throw s;c=i}}return m.createElement(lSt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var sme,QQ={exports:{}},cme,dme,GQ,cSt=(sme||(sme=1,dme=QQ.exports,GQ=function(){var e,n,o,i,a,s,c={},d={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function h(g,f){this._input=g,this._value=f}return e=function(g){var f,x,y,b;if(e.isNumeral(g))f=g.value();else if(g===0||typeof g>"u")f=0;else if(g===null||n.isNaN(g))f=null;else if(typeof g=="string")if(p.zeroFormat&&g===p.zeroFormat)f=0;else if(p.nullFormat&&g===p.nullFormat||!g.replace(/[^0-9]+/g,"").length)f=null;else{for(x in c)if((b=typeof c[x].regexps.unformat=="function"?c[x].regexps.unformat():c[x].regexps.unformat)&&g.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(g)}else f=Number(g)||null;return new h(g,f)},e.version="2.0.6",e.isNumeral=function(g){return g instanceof h},e._=n={numberToFormat:function(g,f,x){var y,b,w,C,v,k,$,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",P=1e12,z=1e9,_=1e6,W="",R=!1;if(g=g||0,w=Math.abs(g),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&(k=e._.includes(f,"+")?f.indexOf("+"):g<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),e._.includes(f,"a")&&(b=!!(b=f.match(/a(k|m|b|t)?/))&&b[1],e._.includes(f," a")&&(I=" "),f=f.replace(new RegExp(I+"a[kmbt]?"),""),w>=P&&!b||b==="t"?(I+=A.abbreviations.trillion,g/=P):w<P&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,g/=z):w<z&&w>=_&&!b||b==="m"?(I+=A.abbreviations.million,g/=_):(w<_&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,g/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=g.toString().split(".")[0],v=f.split(".")[1],$=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),W=e._.toFixed(g,v[0].length+v[1].length,x,v[1].length)):W=e._.toFixed(g,v.length,x),C=W.split(".")[0],W=e._.includes(W,".")?A.delimiters.decimal+W.split(".")[1]:"",L&&Number(W.slice(1))===0&&(W="")):C=e._.toFixed(g,0,x),I&&!b&&Number(C)>=1e3&&I!==A.abbreviations.trillion)switch(C=String(Number(C)/1e3),I){case A.abbreviations.thousand:I=A.abbreviations.million;break;case A.abbreviations.million:I=A.abbreviations.billion;break;case A.abbreviations.billion:I=A.abbreviations.trillion}if(e._.includes(C,"-")&&(C=C.slice(1),R=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return $>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+W+(I||""),E?j=(E&&R?"(":"")+j+(E&&R?")":""):k>=0?j=k===0?(R?"-":"+")+j:j+(R?"-":"+"):R&&(j="-"+j),j},stringToNumber:function(g){var f,x,y,b=d[p.currentLocale],w=g,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&g===p.zeroFormat)x=0;else if(p.nullFormat&&g===p.nullFormat||!g.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(g=g.replace(/\./g,"").replace(b.delimiters.decimal,".")),C)if(y=new RegExp("[^a-zA-Z]"+b.abbreviations[f]+"(?:\\)|(\\"+b.currency.symbol+")?(?:\\))?)?$"),w.match(y)){x*=Math.pow(10,C[f]);break}x*=(g.split("-").length+Math.min(g.split("(").length-1,g.split(")").length-1))%2?1:-1,g=g.replace(/[^0-9\.]+/g,""),x*=Number(g)}return x},isNaN:function(g){return typeof g=="number"&&isNaN(g)},includes:function(g,f){return g.indexOf(f)!==-1},insert:function(g,f,x){return g.slice(0,x)+f+g.slice(x)},reduce:function(g,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var x,y=Object(g),b=y.length>>>0,w=0;if(arguments.length===3)x=arguments[2];else{for(;w<b&&!(w in y);)w++;if(w>=b)throw new TypeError("Reduce of empty array with no initial value");x=y[w++]}for(;w<b;w++)w in y&&(x=f(x,y[w],w,y));return x},multiplier:function(g){var f=g.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(g,f){var x=n.multiplier(f);return g>x?g:x},1)},toFixed:function(g,f,x,y){var b,w,C,v,k=g.toString().split("."),$=f-(y||0);return b=k.length===2?Math.min(Math.max(k[1].length,$),f):$,C=Math.pow(10,b),v=(x(g+"e+"+b)/C).toFixed(b),y>f-b&&(w=new RegExp("\\.?0{1,"+(y-(f-b))+"}$"),v=v.replace(w,"")),v}},e.options=p,e.formats=c,e.locales=d,e.locale=function(g){return g&&(p.currentLocale=g.toLowerCase()),p.currentLocale},e.localeData=function(g){if(!g)return d[p.currentLocale];if(g=g.toLowerCase(),!d[g])throw new Error("Unknown locale : "+g);return d[g]},e.reset=function(){for(var g in u)p[g]=u[g]},e.zeroFormat=function(g){p.zeroFormat=typeof g=="string"?g:null},e.nullFormat=function(g){p.nullFormat=typeof g=="string"?g:null},e.defaultFormat=function(g){p.defaultFormat=typeof g=="string"?g:"0.0"},e.register=function(g,f,x){if(f=f.toLowerCase(),this[g+"s"][f])throw new TypeError(f+" "+g+" already registered.");return this[g+"s"][f]=x,x},e.validate=function(g,f){var x,y,b,w,C,v,k,$;if(typeof g!="string"&&(g+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",g)),(g=g.trim()).match(/^\d+$/))return!0;if(g==="")return!1;try{k=e.localeData(f)}catch{k=e.localeData(e.locale())}return b=k.currency.symbol,C=k.abbreviations,x=k.delimiters.decimal,y=k.delimiters.thousands==="."?"\\.":k.delimiters.thousands,!(($=g.match(/^[^\d]+/))!==null&&(g=g.substr(1),$[0]!==b)||($=g.match(/[^\d]+$/))!==null&&(g=g.slice(0,-1),$[0]!==C.thousand&&$[0]!==C.million&&$[0]!==C.billion&&$[0]!==C.trillion)||(v=new RegExp(y+"{2}"),g.match(/[^\d.,]/g)||(w=g.split(x)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(v):w[0].length===1?!w[0].match(/^\d+$/)||w[0].match(v)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(v)||!w[1].match(/^\d+$/))))},e.fn=h.prototype={clone:function(){return e(this)},format:function(g,f){var x,y,b,w=this._value,C=g||p.defaultFormat;if(f=f||Math.round,w===0&&p.zeroFormat!==null)y=p.zeroFormat;else if(w===null&&p.nullFormat!==null)y=p.nullFormat;else{for(x in c)if(C.match(c[x].regexps.format)){b=c[x].format;break}y=(b=b||e._.numberToFormat)(w,C,f)}return y},value:function(){return this._value},input:function(){return this._input},set:function(g){return this._value=Number(g),this},add:function(g){var f=n.correctionFactor.call(null,this._value,g);return this._value=n.reduce([this._value,g],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(g){var f=n.correctionFactor.call(null,this._value,g);return this._value=n.reduce([g],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(g){return this._value=n.reduce([this._value,g],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)*Math.round(x*w)/Math.round(w*w)},1),this},divide:function(g){return this._value=n.reduce([this._value,g],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(g){return Math.abs(e(this._value).subtract(g).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(g){var f=g%10;return~~(g%100/10)==1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(g,f,x){var y,b=e._.includes(f," BPS")?" ":"";return g*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(g,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(g){return+(1e-4*e._.stringToNumber(g)).toFixed(15)}}),i={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a=(o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(i.suffixes.filter(function(g){return o.suffixes.indexOf(g)<0})),s="("+(s=a.join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(g,f,x){var y,b,w,C=e._.includes(f,"ib")?i:o,v=e._.includes(f," b")||e._.includes(f," ib")?" ":"";for(f=f.replace(/\s?i?b/,""),y=0;y<=C.suffixes.length;y++)if(b=Math.pow(C.base,y),w=Math.pow(C.base,y+1),g===null||g===0||g>=b&&g<w){v+=C.suffixes[y],b>0&&(g/=b);break}return e._.numberToFormat(g,f,x)+v},unformat:function(g){var f,x,y=e._.stringToNumber(g);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(g,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(g,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(g,f,x){var y,b,w,C=e.locales[e.options.currentLocale],v={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(f=f.replace(/\s?\$\s?/,""),y=e._.numberToFormat(g,f,x),g>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):g<0&&!e._.includes(v.before,"-")&&!e._.includes(v.before,"(")&&(v.before="-"+v.before),w=0;w<v.before.length;w++)switch(b=v.before[w],b){case"$":y=e._.insert(y,C.currency.symbol,w);break;case" ":y=e._.insert(y," ",w+C.currency.symbol.length-1)}for(w=v.after.length-1;w>=0;w--)switch(b=v.after[w],b){case"$":y=w===v.after.length-1?y+C.currency.symbol:e._.insert(y,C.currency.symbol,-(v.after.length-(1+w)));break;case" ":y=w===v.after.length-1?y+" ":e._.insert(y," ",-(v.after.length-(1+w)+C.currency.symbol.length-1))}return y}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(g,f,x){var y=(typeof g!="number"||e._.isNaN(g)?"0e+0":g.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(g){var f=e._.includes(g,"e+")?g.split("e+"):g.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(g,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var k=e._.correctionFactor(b,w);return b*k*(w*k)/(k*k)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(g,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(g),e._.numberToFormat(g,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(g,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(g*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(g,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(g){var f=e._.stringToNumber(g);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(g,f,x){var y=Math.floor(g/60/60),b=Math.floor((g-60*y*60)/60),w=Math.round(g-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(g){var f=g.split(":"),x=0;return f.length===3?(x+=60*Number(f[0])*60,x+=60*Number(f[1]),x+=Number(f[2])):f.length===2&&(x+=60*Number(f[0]),x+=Number(f[1])),Number(x)}}),e},(cme=QQ).exports?cme.exports=GQ():dme.numeral=GQ()),QQ.exports);const c4=zi(cSt);function C4(e,...n){const o=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${o} for the full message.`}const d4="$$material";var dSt={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 uSt(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var pSt=/[A-Z]|^ms/g,hSt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,OXe=function(e){return e.charCodeAt(1)===45},ume=function(e){return e!=null&&typeof e!="boolean"},YQ=uSt(function(e){return OXe(e)?e:e.replace(pSt,"-$&").toLowerCase()}),pme=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(hSt,function(o,i,a){return f7={name:i,styles:a,next:f7},i})}return dSt[e]===1||OXe(e)||typeof n!="number"||n===0?n:n+"px"};function _O(e,n,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":var a=o;if(a.anim===1)return f7={name:a.name,styles:a.styles,next:f7},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)f7={name:c.name,styles:c.styles,next:f7},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var g=0;g<p.length;g++)h+=_O(d,u,p[g])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;ume(y)&&(h+=YQ(f)+":"+pme(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)ume(x[b])&&(h+=YQ(f)+":"+pme(f,x[b])+";");else{var w=_O(d,u,x);switch(f){case"animation":case"animationName":h+=YQ(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var f7,hme=/label:\s*([^\s;{]+)\s*(;|$)/g,mme,gme,fme,xme,yme,bme={exports:{}};function mSt(){return gme?mme:(gme=1,mme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function gSt(){if(xme)return fme;xme=1;var e=mSt();function n(){}function o(){}return o.resetWarningCache=n,fme=function(){function i(c,d,u,p,h,g){if(g!==e){var f=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 f.name="Invariant Violation",f}}function a(){return i}i.isRequired=i;var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:n};return s.PropTypes=s,s}}function xce(){return yme||(yme=1,bme.exports=gSt()()),bme.exports}const bn=zi(xce());var fSt=function(){function e(o){var i=this;this._insertTag=function(a){var s;s=i.tags.length===0?i.insertionPoint?i.insertionPoint.nextSibling:i.prepend?i.container.firstChild:i.before:i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,s),i.tags.push(a)},this.isSpeedy=o.speedy===void 0||o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(o){o.forEach(this._insertTag)},n.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(s){var c=document.createElement("style");return c.setAttribute("data-emotion",s.key),s.nonce!==void 0&&c.setAttribute("nonce",s.nonce),c.appendChild(document.createTextNode("")),c.setAttribute("data-s",""),c}(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(s){if(s.sheet)return s.sheet;for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].ownerNode===s)return document.styleSheets[c]}(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},n.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),Md="-ms-",wme="-moz-",Yr="-webkit-",FXe="comm",yce="rule",bce="decl",RXe="@keyframes",xSt=Math.abs,fV=String.fromCharCode,ySt=Object.assign;function NXe(e){return e.trim()}function qr(e,n,o){return e.replace(n,o)}function oie(e,n){return e.indexOf(n)}function ed(e,n){return 0|e.charCodeAt(n)}function wI(e,n,o){return e.slice(n,o)}function jg(e){return e.length}function wce(e){return e.length}function XT(e,n){return n.push(e),e}var xV=1,kS=1,VXe=0,Uu=0,Is=0,gk="";function yV(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:xV,column:kS,length:c,return:""}}function p$(e,n){return ySt(yV("",null,null,"",null,null,0),e,{length:-e.length},n)}function Fp(){return Is=Uu<VXe?ed(gk,Uu++):0,kS++,Is===10&&(kS=1,xV++),Is}function i3(){return ed(gk,Uu)}function yz(){return Uu}function jL(e,n){return wI(gk,e,n)}function CI(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 HXe(e){return xV=kS=1,VXe=jg(gk=e),Uu=0,[]}function UXe(e){return gk="",e}function bz(e){return NXe(jL(Uu-1,iie(e===91?e+2:e===40?e+1:e)))}function bSt(e){for(;(Is=i3())&&Is<33;)Fp();return CI(e)>2||CI(Is)>3?"":" "}function wSt(e,n){for(;--n&&Fp()&&!(Is<48||Is>102||Is>57&&Is<65||Is>70&&Is<97););return jL(e,yz()+(n<6&&i3()==32&&Fp()==32))}function iie(e){for(;Fp();)switch(Is){case e:return Uu;case 34:case 39:e!==34&&e!==39&&iie(Is);break;case 40:e===41&&iie(e);break;case 92:Fp()}return Uu}function CSt(e,n){for(;Fp()&&e+Is!==57&&(e+Is!==84||i3()!==47););return"/*"+jL(n,Uu-1)+"*"+fV(e===47?e:Fp())}function vSt(e){for(;!CI(i3());)Fp();return jL(e,Uu)}function SSt(e){return UXe(wz("",null,null,null,[""],e=HXe(e),0,[0],e))}function wz(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,g=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,k="",$=a,j=s,A=i,E=k;w;)switch(y=v,v=Fp()){case 40:if(y!=108&&ed(E,g-1)==58){oie(E+=qr(bz(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=bz(v);break;case 9:case 10:case 13:case 32:E+=bSt(y);break;case 92:E+=wSt(yz()-1,7);continue;case 47:switch(i3()){case 42:case 47:XT(kSt(CSt(Fp(),yz()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=jg(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=qr(E,/\f/g,"")),x>0&&jg(E)-g&&XT(x>32?vme(E+";",i,o,g-1):vme(qr(E," ","")+";",i,o,g-2),u);break;case 59:E+=";";default:if(XT(A=Cme(E,n,o,p,h,a,d,k,$=[],j=[],g),s),v===123)if(h===0)wz(E,n,A,A,$,s,g,d,j);else switch(f===99&&ed(E,3)===110?100:f){case 100:case 108:case 109:case 115:wz(e,A,A,i&&XT(Cme(e,A,A,0,0,a,d,k,a,$=[],g),j),a,j,g,d,i?$:j);break;default:wz(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,k=E="",g=c;break;case 58:g=1+jg(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Is=Uu>0?ed(gk,--Uu):0,kS--,Is===10&&(kS=1,xV--),Is==125))continue}switch(E+=fV(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(jg(E)-1)*C,C=1;break;case 64:i3()===45&&(E+=bz(Fp())),f=i3(),h=g=jg(k=E+=vSt(yz())),v++;break;case 45:y===45&&jg(E)==2&&(b=0)}}return s}function Cme(e,n,o,i,a,s,c,d,u,p,h){for(var g=a-1,f=a===0?s:[""],x=wce(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=wI(e,g+1,g=xSt(b=c[y])),k=e;C<x;++C)(k=NXe(b>0?f[C]+" "+v:qr(v,/&\f/g,f[C])))&&(u[w++]=k);return yV(e,n,o,a===0?yce:d,u,p,h)}function kSt(e,n,o){return yV(e,n,o,FXe,fV(Is),wI(e,2,-2),0)}function vme(e,n,o,i){return yV(e,n,o,bce,wI(e,0,i),wI(e,i+1,-1),i)}function Nv(e,n){for(var o="",i=wce(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function $St(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bce:return e.return=e.return||e.value;case FXe:return"";case RXe:return e.return=e.value+"{"+Nv(e.children,i)+"}";case yce:e.value=e.props.join(",")}return jg(o=Nv(e.children,i))?e.return=e.value+"{"+o+"}":""}function ASt(e){return function(n){n.root||(n=n.return)&&e(n)}}var jSt=function(e,n,o){for(var i=0,a=0;i=a,a=i3(),i===38&&a===12&&(n[o]=1),!CI(a);)Fp();return jL(e,Uu)},ESt=function(e,n){return UXe(function(o,i){var a=-1,s=44;do switch(CI(s)){case 0:s===38&&i3()===12&&(i[a]=1),o[a]+=jSt(Uu-1,i,a);break;case 2:o[a]+=bz(s);break;case 4:if(s===44){o[++a]=i3()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=fV(s)}while(s=Fp());return o}(HXe(e),n))},Sme=new WeakMap,ISt=function(e){if(e.type==="rule"&&e.parent&&!(e.length<1)){for(var n=e.value,o=e.parent,i=e.column===o.column&&e.line===o.line;o.type!=="rule";)if(!(o=o.parent))return;if((e.props.length!==1||n.charCodeAt(0)===58||Sme.get(o))&&!i){Sme.set(e,!0);for(var a=[],s=ESt(n,a),c=o.props,d=0,u=0;d<s.length;d++)for(var p=0;p<c.length;p++,u++)e.props[u]=a[d]?s[d].replace(/&\f/g,c[p]):c[p]+" "+s[d]}}},LSt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function WXe(e,n){switch(function(o,i){return 45^ed(o,0)?(((i<<2^ed(o,0))<<2^ed(o,1))<<2^ed(o,2))<<2^ed(o,3):0}(e,n)){case 5103:return Yr+"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 Yr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yr+e+wme+e+Md+e+e;case 6828:case 4268:return Yr+e+Md+e+e;case 6165:return Yr+e+Md+"flex-"+e+e;case 5187:return Yr+e+qr(e,/(\w+).+(:[^]+)/,Yr+"box-$1$2"+Md+"flex-$1$2")+e;case 5443:return Yr+e+Md+"flex-item-"+qr(e,/flex-|-self/,"")+e;case 4675:return Yr+e+Md+"flex-line-pack"+qr(e,/align-content|flex-|-self/,"")+e;case 5548:return Yr+e+Md+qr(e,"shrink","negative")+e;case 5292:return Yr+e+Md+qr(e,"basis","preferred-size")+e;case 6060:return Yr+"box-"+qr(e,"-grow","")+Yr+e+Md+qr(e,"grow","positive")+e;case 4554:return Yr+qr(e,/([^-])(transform)/g,"$1"+Yr+"$2")+e;case 6187:return qr(qr(qr(e,/(zoom-|grab)/,Yr+"$1"),/(image-set)/,Yr+"$1"),e,"")+e;case 5495:case 3959:return qr(e,/(image-set\([^]*)/,Yr+"$1$`$1");case 4968:return qr(qr(e,/(.+:)(flex-)?(.*)/,Yr+"box-pack:$3"+Md+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yr+e+e;case 4095:case 3583:case 4068:case 2532:return qr(e,/(.+)-inline(.+)/,Yr+"$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(jg(e)-1-n>6)switch(ed(e,n+1)){case 109:if(ed(e,n+4)!==45)break;case 102:return qr(e,/(.+:)(.+)-([^]+)/,"$1"+Yr+"$2-$3$1"+wme+(ed(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~oie(e,"stretch")?WXe(qr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(ed(e,n+1)!==115)break;case 6444:switch(ed(e,jg(e)-3-(~oie(e,"!important")&&10))){case 107:return qr(e,":",":"+Yr)+e;case 101:return qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yr+(ed(e,14)===45?"inline-":"")+"box$3$1"+Yr+"$2$3$1"+Md+"$2box$3")+e}break;case 5936:switch(ed(e,n+11)){case 114:return Yr+e+Md+qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yr+e+Md+qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yr+e+Md+qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yr+e+Md+e+e}return e}var TSt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case bce:e.return=WXe(e.value,e.length);break;case RXe:return Nv([p$(e,{value:qr(e.value,"@","@"+Yr)})],i);case yce:if(e.length)return function(a,s){return a.map(s).join("")}(e.props,function(a){switch(function(s,c){return(s=c.exec(s))?s[0]:s}(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nv([p$(e,{props:[qr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return Nv([p$(e,{props:[qr(a,/:(plac\w+)/,":"+Yr+"input-$1")]}),p$(e,{props:[qr(a,/:(plac\w+)/,":-moz-$1")]}),p$(e,{props:[qr(a,/:(plac\w+)/,Md+"input-$1")]})],i)}return""})}}],QXe=function(e){var n=e.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(x){x.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i,a=e.stylisPlugins||TSt,s={},c=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var y=x.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;c.push(x)});var d,u,p=[ISt,LSt],h=[$St,ASt(function(x){u.insert(x)})],g=function(x){var y=wce(x);return function(b,w,C,v){for(var k="",$=0;$<y;$++)k+=x[$](b,w,C,v)||"";return k}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){Nv(SSt(C),g)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new fSt({key:n,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:d};return f.sheet.hydrate(c),f};function GXe(e){const{styles:n,defaultTheme:o={}}=e,i=typeof n=="function"?a=>n(function(s){return s==null||Object.keys(s).length===0}(a)?o:a):n;return t.jsx(AL,{styles:i})}const kme=[];function _7(e){return kme[0]=e,function(n,o,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var a=!0,s="";f7=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=_O(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=_O(i,o,n[d]),a&&(s+=c[d]);hme.lastIndex=0;for(var u,p="";(u=hme.exec(s))!==null;)p+="-"+u[1];var h=function(g){for(var f,x=0,y=0,b=g.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&g.charCodeAt(y)|(255&g.charCodeAt(++y))<<8|(255&g.charCodeAt(++y))<<16|(255&g.charCodeAt(++y))<<24))+(59797*(f>>>16)<<16),x=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&x)+(59797*(x>>>16)<<16);switch(b){case 3:x^=(255&g.charCodeAt(y+2))<<16;case 2:x^=(255&g.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&g.charCodeAt(y)))+(59797*(x>>>16)<<16)}return(((x=1540483477*(65535&(x^=x>>>13))+(59797*(x>>>16)<<16))^x>>>15)>>>0).toString(36)}(s)+p;return{name:h,styles:s,next:f7}}(kme)}var $me,Ame,jme={exports:{}},wa={};function DSt(){if($me)return wa;$me=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type){case o:case a:case i:case u:case p:case f:return b;default:switch(b=b&&b.$$typeof){case c:case d:case g:case h:case s:return b;default:return w}}case n:return w}}}return wa.ContextConsumer=s,wa.ContextProvider=c,wa.Element=e,wa.ForwardRef=d,wa.Fragment=o,wa.Lazy=g,wa.Memo=h,wa.Portal=n,wa.Profiler=a,wa.StrictMode=i,wa.Suspense=u,wa.SuspenseList=p,wa.isContextConsumer=function(b){return y(b)===s},wa.isContextProvider=function(b){return y(b)===c},wa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},wa.isForwardRef=function(b){return y(b)===d},wa.isFragment=function(b){return y(b)===o},wa.isLazy=function(b){return y(b)===g},wa.isMemo=function(b){return y(b)===h},wa.isPortal=function(b){return y(b)===n},wa.isProfiler=function(b){return y(b)===a},wa.isStrictMode=function(b){return y(b)===i},wa.isSuspense=function(b){return y(b)===u},wa.isSuspenseList=function(b){return y(b)===p},wa.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===a||b===i||b===u||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},wa.typeOf=y,wa}function PSt(){return Ame||(Ame=1,jme.exports=DSt()),jme.exports}var YXe=PSt();function Uf(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function qXe(e){if(m.isValidElement(e)||YXe.isValidElementType(e)||!Uf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=qXe(e[o])}),n}function qd(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return Uf(e)&&Uf(n)&&Object.keys(n).forEach(a=>{m.isValidElement(n[a])||YXe.isValidElementType(n[a])?i[a]=n[a]:Uf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Uf(e[a])?i[a]=qd(e[a],n[a],o):o.clone?i[a]=Uf(n[a])?qXe(n[a]):n[a]:i[a]=n[a]}),i}function BSt(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,s=(h=>{const g=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return g.sort((f,x)=>f.val-x.val),g.reduce((f,x)=>({...f,[x.key]:x.val}),{})})(n),c=Object.keys(s);function d(h){return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o})`}function u(h){return`@media (max-width:${(typeof n[h]=="number"?n[h]:h)-i/100}${o})`}function p(h,g){const f=c.indexOf(g);return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o}) and (max-width:${(f!==-1&&typeof n[c[f]]=="number"?n[c[f]]:g)-i/100}${o})`}return{keys:c,values:s,up:d,down:u,between:p,only:function(h){return c.indexOf(h)+1<c.length?p(h,c[c.indexOf(h)+1]):d(h)},not:function(h){const g=c.indexOf(h);return g===0?d(c[1]):g===c.length-1?u(c[g]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function Eme(e,n){if(!e.containerQueries)return n;const o=Object.keys(n).filter(i=>i.startsWith("@container")).sort((i,a)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(a.match(s)?.[1]||0)});return o.length?o.reduce((i,a)=>{const s=n[a];return delete i[a],i[a]=s,i},{...n}):n}const MSt={borderRadius:4};function CE(e,n){return n?qd(e,n,{clone:!1}):e}const bV={xs:0,sm:600,md:900,lg:1200,xl:1536},Ime={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bV[e]}px)`},_St={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:bV[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function v4(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||Ime;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||Ime;return Object.keys(n).reduce((s,c)=>{if(function(d,u){return u==="@"||u.startsWith("@")&&(d.some(p=>u.startsWith(`@${p}`))||!!u.match(/^@\d/))}(a.keys,c)){const d=function(u,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,f]=h,x=Number.isNaN(+g)?g||0:+g;return u.containerQueries(f).up(x)}(i.containerQueries?i:_St,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||bV).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Lme(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function $i(e){if(typeof e!="string")throw new Error(C4(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wV(e,n,o=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&o){const i=`vars.${n}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(i!=null)return i}return n.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function zO(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:wV(e,o)||i,n&&(a=n(a,i,e)),a}function ss(e){const{prop:n,cssProperty:o=e.prop,themeKey:i,transform:a}=e,s=c=>{if(c[n]==null)return null;const d=c[n],u=wV(c.theme,i)||{};return v4(c,d,p=>{let h=zO(u,a,p);return p===h&&typeof p=="string"&&(h=zO(u,a,`${n}${p==="default"?"":$i(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const zSt={m:"margin",p:"padding"},OSt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tme={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},FSt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!Tme[e])return[e];e=Tme[e]}const[n,o]=e.split(""),i=zSt[n],a=OSt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),KXe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ZXe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function EL(e,n,o,i){const a=wV(e,n,!0)??o;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=a[c];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:()=>{}}function Cce(e){return EL(e,"spacing",8)}function IL(e,n){return typeof n=="string"||n==null?n:e(n)}function RSt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=IL(c,d),u),{})}(FSt(o),i);return v4(e,e[o],a)}function JXe(e,n){const o=Cce(e.theme);return Object.keys(e).map(i=>RSt(e,n,i,o)).reduce(CE,{})}function Fl(e){return JXe(e,KXe)}function Rl(e){return JXe(e,ZXe)}function XXe(e=8,n=Cce({spacing:e})){if(e.mui)return e;const o=(...i)=>(i.length===0?[1]:i).map(a=>{const s=n(a);return typeof s=="number"?`${s}px`:s}).join(" ");return o.mui=!0,o}function CV(...e){const n=e.reduce((i,a)=>(a.filterProps.forEach(s=>{i[s]=a}),i),{}),o=i=>Object.keys(i).reduce((a,s)=>n[s]?CE(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Qh(e){return typeof e!="number"?e:`${e}px solid`}function k0(e,n){return ss({prop:e,themeKey:"borders",transform:n})}Fl.propTypes={},Fl.filterProps=KXe,Rl.propTypes={},Rl.filterProps=ZXe;const NSt=k0("border",Qh),VSt=k0("borderTop",Qh),HSt=k0("borderRight",Qh),USt=k0("borderBottom",Qh),WSt=k0("borderLeft",Qh),QSt=k0("borderColor"),GSt=k0("borderTopColor"),YSt=k0("borderRightColor"),qSt=k0("borderBottomColor"),KSt=k0("borderLeftColor"),ZSt=k0("outline",Qh),JSt=k0("outlineColor"),Cz=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=EL(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:IL(n,i)});return v4(e,e.borderRadius,o)}return null};Cz.propTypes={},Cz.filterProps=["borderRadius"],CV(NSt,VSt,HSt,USt,WSt,QSt,GSt,YSt,qSt,KSt,Cz,ZSt,JSt);const OO=e=>{if(e.gap!==void 0&&e.gap!==null){const n=EL(e.theme,"spacing",8),o=i=>({gap:IL(n,i)});return v4(e,e.gap,o)}return null};OO.propTypes={},OO.filterProps=["gap"];const FO=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=EL(e.theme,"spacing",8),o=i=>({columnGap:IL(n,i)});return v4(e,e.columnGap,o)}return null};FO.propTypes={},FO.filterProps=["columnGap"];const RO=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=EL(e.theme,"spacing",8),o=i=>({rowGap:IL(n,i)});return v4(e,e.rowGap,o)}return null};RO.propTypes={},RO.filterProps=["rowGap"];function Vv(e,n){return n==="grey"?n:e}CV(OO,FO,RO,ss({prop:"gridColumn"}),ss({prop:"gridRow"}),ss({prop:"gridAutoFlow"}),ss({prop:"gridAutoColumns"}),ss({prop:"gridAutoRows"}),ss({prop:"gridTemplateColumns"}),ss({prop:"gridTemplateRows"}),ss({prop:"gridTemplateAreas"}),ss({prop:"gridArea"}));function Tp(e){return e<=1&&e!==0?100*e+"%":e}CV(ss({prop:"color",themeKey:"palette",transform:Vv}),ss({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vv}),ss({prop:"backgroundColor",themeKey:"palette",transform:Vv}));const XSt=ss({prop:"width",transform:Tp}),vce=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||bV[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Tp(o)}};return v4(e,e.maxWidth,n)}return null};vce.filterProps=["maxWidth"];const ekt=ss({prop:"minWidth",transform:Tp}),tkt=ss({prop:"height",transform:Tp}),nkt=ss({prop:"maxHeight",transform:Tp}),okt=ss({prop:"minHeight",transform:Tp});ss({prop:"size",cssProperty:"width",transform:Tp}),ss({prop:"size",cssProperty:"height",transform:Tp});CV(XSt,vce,ekt,tkt,nkt,okt,ss({prop:"boxSizing"}));const vV={border:{themeKey:"borders",transform:Qh},borderTop:{themeKey:"borders",transform:Qh},borderRight:{themeKey:"borders",transform:Qh},borderBottom:{themeKey:"borders",transform:Qh},borderLeft:{themeKey:"borders",transform:Qh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cz},color:{themeKey:"palette",transform:Vv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vv},backgroundColor:{themeKey:"palette",transform:Vv},p:{style:Rl},pt:{style:Rl},pr:{style:Rl},pb:{style:Rl},pl:{style:Rl},px:{style:Rl},py:{style:Rl},padding:{style:Rl},paddingTop:{style:Rl},paddingRight:{style:Rl},paddingBottom:{style:Rl},paddingLeft:{style:Rl},paddingX:{style:Rl},paddingY:{style:Rl},paddingInline:{style:Rl},paddingInlineStart:{style:Rl},paddingInlineEnd:{style:Rl},paddingBlock:{style:Rl},paddingBlockStart:{style:Rl},paddingBlockEnd:{style:Rl},m:{style:Fl},mt:{style:Fl},mr:{style:Fl},mb:{style:Fl},ml:{style:Fl},mx:{style:Fl},my:{style:Fl},margin:{style:Fl},marginTop:{style:Fl},marginRight:{style:Fl},marginBottom:{style:Fl},marginLeft:{style:Fl},marginX:{style:Fl},marginY:{style:Fl},marginInline:{style:Fl},marginInlineStart:{style:Fl},marginInlineEnd:{style:Fl},marginBlock:{style:Fl},marginBlockStart:{style:Fl},marginBlockEnd:{style:Fl},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:OO},rowGap:{style:RO},columnGap:{style:FO},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tp},maxWidth:{style:vce},minWidth:{transform:Tp},height:{transform:Tp},maxHeight:{transform:Tp},minHeight:{transform:Tp},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"}},by=function(){function e(n,o,i,a){const s={[n]:o,theme:i},c=a[n];if(!c)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const g=wV(i,u)||{};return h?h(s):v4(s,o,f=>{let x=zO(g,p,f);return f===x&&typeof f=="string"&&(x=zO(g,p,`${n}${f==="default"?"":$i(f)}`,f)),d===!1?x:{[d]:x}})}return function n(o){const{sx:i,theme:a={},nested:s}=o||{};if(!i)return null;const c=a.unstable_sxConfig??vV;function d(u){let p=u;if(typeof u=="function")p=u(a);else if(typeof u!="object")return u;if(!p)return null;const h=function(x={}){return x.keys?.reduce((y,b)=>(y[x.up(b)]={},y),{})||{}}(a.breakpoints),g=Object.keys(h);let f=h;return Object.keys(p).forEach(x=>{const y=function(b,w){return typeof b=="function"?b(w):b}(p[x],a);if(y!=null)if(typeof y=="object")if(c[x])f=CE(f,e(x,y,a,c));else{const b=v4({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce((k,$)=>k.concat(Object.keys($)),[]),v=new Set(C);return w.every(k=>v.size===Object.keys(k).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=CE(f,b)}else f=CE(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":Eme(a,Lme(g,f))}:Eme(a,Lme(g,f))}return Array.isArray(i)?i.map(d):d(i)}}();function ikt(e,n){const o=this;if(o.vars){if(!o.colorSchemes?.[e]||typeof o.getColorSchemeSelector!="function")return{};let i=o.getColorSchemeSelector(e);return i==="&"?n:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:n})}return o.palette.mode===e?n:{}}function Sce(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=qd({breakpoints:BSt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:XXe(a),shape:{...MSt,...s}},c);return d=function(u){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...b)=>p(u.breakpoints.up(...b),y),x.down=(...b)=>p(u.breakpoints.down(...b),y),x.between=(...b)=>p(u.breakpoints.between(...b),y),x.only=(...b)=>p(u.breakpoints.only(...b),y),x.not=(...b)=>{const w=p(u.breakpoints.not(...b),y);return w.includes("not all and")?w.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):w}}const g={},f=x=>(h(g,x),g);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=ikt,d=n.reduce((u,p)=>qd(u,p),d),d.unstable_sxConfig={...vV,...c?.unstable_sxConfig},d.unstable_sx=function(u){return by({sx:u,theme:this})},d}function rie(e=null){const n=m.useContext(TXe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}by.filterProps=["sx"];const rkt=Sce();function eet(e=rkt){return rie(e)}function Dme(e){const n=_7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function tet({styles:e,themeId:n,defaultTheme:o={}}){const i=eet(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>Dme(typeof c=="function"?c(a):c)):Dme(s)),t.jsx(GXe,{styles:s})}const Pme=e=>e,akt=(()=>{let e=Pme;return{configure(n){e=n},generate:n=>e(n),reset(){e=Pme}}})();function net(e){var n,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(o=net(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function Ei(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=net(e))&&(i&&(i+=" "),i+=n);return i}const lkt={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 Jr(e,n,o="Mui"){const i=lkt[n];return i?`${o}-${i}`:`${akt.generate(e)}-${n}`}function Dr(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Jr(e,a,o)}),i}function oet(e){const{variants:n,...o}=e,i={variants:n,style:_7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=_7(a.style))}),i}const skt=Sce();function qQ(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function wx(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function ckt(e){return e?(n,o)=>o[e]:null}function vz(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>vz(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?wx(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?wx(_7(c),o):c}return iet(e,i.variants,[a],o)}return i?.isProcessed?o?wx(_7(i.style),o):i.style:o?wx(_7(i),o):i}function iet(e,n,o=[],i=void 0){let a;e:for(let s=0;s<n.length;s+=1){const c=n[s];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},o.push(i?wx(_7(c.style(a)),i):c.style(a))):o.push(i?wx(_7(c.style),i):c.style)}return o}function dkt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function aie(e,n,o=!1){const i={...n};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const s=a;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const c=e[s],d=n[s];if(d)if(c){i[s]={...d};for(const u in c)if(Object.prototype.hasOwnProperty.call(c,u)){const p=u;i[s][p]=aie(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=Ei(e?.className,n?.className):s==="style"&&o&&n.style?i.style={...e?.style,...n?.style}:i[s]===void 0&&(i[s]=e[s])}return i}const Yp=typeof window<"u"?m.useLayoutEffect:m.useEffect;function kce(e,n=0,o=1){return function(i,a=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(i,s))}(e,n,o)}function K7(e){if(e.type)return e;if(e.charAt(0)==="#")return K7(function(s){s=s.slice(1);const c=new RegExp(`.{1,${s.length>=6?2:1}}`,"g");let d=s.match(c);return d&&d[0].length===1&&(d=d.map(u=>u+u)),d?`rgb${d.length===4?"a":""}(${d.map((u,p)=>p<3?parseInt(u,16):Math.round(parseInt(u,16)/255*1e3)/1e3).join(", ")})`:""}(e));const n=e.indexOf("("),o=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(C4(9,e));let i,a=e.substring(n+1,e.length-1);if(o==="color"){if(a=a.split(" "),i=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(C4(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const Rj=(e,n)=>{try{return(o=>{const i=K7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function SV(e){const{type:n,colorSpace:o}=e;let{values:i}=e;return n.includes("rgb")?i=i.map((a,s)=>s<3?parseInt(a,10):a):n.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=n.includes("color")?`${o} ${i.join(" ")}`:`${i.join(", ")}`,`${n}(${i})`}function ret(e){e=K7(e);const{values:n}=e,o=n[0],i=n[1]/100,a=n[2]/100,s=i*Math.min(a,1-a),c=(p,h=(p+o/30)%12)=>a-s*Math.max(Math.min(h-3,9-h,1),-1);let d="rgb";const u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return e.type==="hsla"&&(d+="a",u.push(n[3])),SV({type:d,values:u})}function lie(e){let n=(e=K7(e)).type==="hsl"||e.type==="hsla"?K7(ret(e)).values:e.values;return n=n.map(o=>(e.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function NO(e,n){return e=K7(e),n=kce(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,SV(e)}function I9(e,n,o){try{return NO(e,n)}catch{return e}}function kV(e,n){if(e=K7(e),n=kce(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-n;return SV(e)}function la(e,n,o){try{return kV(e,n)}catch{return e}}function $V(e,n){if(e=K7(e),n=kce(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*n;else if(e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*n;return SV(e)}function sa(e,n,o){try{return $V(e,n)}catch{return e}}function eD(e,n,o){try{return function(i,a=.15){return lie(i)>.5?kV(i,a):$V(i,a)}(e,n)}catch{return e}}const aet=m.createContext(null);function $ce(){return m.useContext(aet)}const ukt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function pkt(e){const{children:n,theme:o}=e,i=$ce(),a=m.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[ukt]=i!==null),s},[o,i]);return t.jsx(aet.Provider,{value:a,children:n})}const set=m.createContext();function hkt({value:e,...n}){return t.jsx(set.Provider,{value:e??!0,...n})}const AV=()=>m.useContext(set)??!1,cet=m.createContext(void 0);function mkt({value:e,children:n}){return t.jsx(cet.Provider,{value:e,children:n})}function gkt({props:e,name:n}){return function(o){const{theme:i,name:a,props:s}=o;if(!i||!i.components||!i.components[a])return s;const c=i.components[a];return c.defaultProps?aie(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:aie(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:m.useContext(cet)}})}let Bme=0;const Mme={...Ibt}.useId;function jV(e){if(Mme!==void 0){const n=Mme();return e??n}return function(n){const[o,i]=m.useState(n),a=n||o;return m.useEffect(()=>{o==null&&(Bme+=1,i(`mui-${Bme}`))},[o]),a}(e)}const _me={};function zme(e,n,o,i=!1){return m.useMemo(()=>{const a=e&&n[e]||n;if(typeof o=="function"){const s=o(a),c=e?{...n,[e]:s}:s;return i?()=>c:c}return e?{...n,[e]:o}:{...n,...o}},[e,n,o,i])}function det(e){const{children:n,theme:o,themeId:i}=e,a=rie(_me),s=$ce()||_me,c=zme(i,a,o),d=zme(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const g=rie(),f=jV()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&g===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",Yp(()=>{const b=document.querySelector("head");if(!b)return;const w=b.firstChild;if(y){if(w&&w.hasAttribute?.("data-mui-layer-order")&&w.getAttribute("data-mui-layer-order")===f)return;const C=document.createElement("style");C.setAttribute("data-mui-layer-order",f),C.textContent=y,b.prepend(C)}else b.querySelector(`style[data-mui-layer-order="${f}"]`)?.remove()},[y,f]),y?t.jsx(tet,{styles:y}):null}(c);return t.jsx(pkt,{theme:d,children:t.jsx(TXe.Provider,{value:c,children:t.jsx(hkt,{value:u,children:t.jsxs(mkt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Ome={theme:void 0},sie="mode",cie="color-scheme",fkt="data-color-scheme";function xkt(){}const ykt=({key:e,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(o){if(typeof window>"u")return;if(!n)return o;let i;try{i=n.localStorage.getItem(e)}catch{}return i||o},set:o=>{if(n)try{n.localStorage.setItem(e,o)}catch{}},subscribe:o=>{if(!n)return xkt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function KQ(){}function Fme(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Rme(e,n){return e.mode==="light"||e.mode==="system"&&e.systemMode==="light"?n("light"):e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark"?n("dark"):void 0}function bkt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=sie,colorSchemeStorageKey:c=cie,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=ykt,noSsr:p=!1}=e,h=a.join(","),g=a.length>1,f=m.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=m.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=m.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=m.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,P=y?.get(i)||i;return{mode:L,systemMode:Fme(L),lightColorScheme:I,darkColorScheme:P}}),[C,v]=m.useState(p||!g);m.useEffect(()=>{v(!0)},[]);const k=function(L){return Rme(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),$=m.useCallback(L=>{w(I=>{if(L===I.mode)return I;const P=L??n;return f?.set(P),{...I,mode:P,systemMode:Fme(P)}})},[f,n]),j=m.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const P={...I};return Rme(I,z=>{z==="light"&&(x?.set(L),P.lightColorScheme=L),z==="dark"&&(y?.set(L),P.darkColorScheme=L)}),P}):w(I=>{const P={...I},z=L.light===null?o:L.light,_=L.dark===null?i:L.dark;return z&&(h.includes(z)?(P.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),_&&(h.includes(_)?(P.darkColorScheme=_,y?.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),P}):w(I=>(x?.set(o),y?.set(i),{...I,lightColorScheme:o,darkColorScheme:i}))},[h,x,y,o,i]),A=m.useCallback(L=>{b.mode==="system"&&w(I=>{const P=L?.matches?"dark":"light";return I.systemMode===P?I:{...I,systemMode:P}})},[b.mode]),E=m.useRef(A);return E.current=A,m.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const L=(...P)=>E.current(...P),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[g]),m.useEffect(()=>{if(g){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&$(z||n)})||KQ,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||KQ,P=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||KQ;return()=>{L(),I(),P()}}},[j,$,h,n,d,g,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?k:void 0,setMode:$,setColorScheme:j}}function wkt(e=""){function n(...o){if(!o.length)return"";const i=o[0];return typeof i!="string"||i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${i}`:`, var(--${e?`${e}-`:""}${i}${n(...o.slice(1))})`}return(o,...i)=>`var(--${e?`${e}-`:""}${o}${n(...i)})`}const Nme=(e,n,o,i=[])=>{let a=e;n.forEach((s,c)=>{c===n.length-1?Array.isArray(a)?a[Number(s)]=o:a&&typeof a=="object"&&(a[s]=o):a&&typeof a=="object"&&(a[s]||(a[s]=i.includes(s)?[]:{}),a=a[s])})};function ZQ(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(g,f=[],x=[]){Object.entries(g).forEach(([y,b])=>{(!p||p&&!p([...f,y]))&&b!=null&&(typeof b=="object"&&Object.keys(b).length>0?h(b,[...f,y],Array.isArray(b)?[...x,y]:x):u([...f,y],b,x))})})(d)})(e,(d,u,p)=>{if(!(typeof u!="string"&&typeof u!="number"||i&&i(d,u))){const h=`--${o?`${o}-`:""}${d.join("-")}`,g=((f,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>f.includes(y))||f[f.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(d,u);Object.assign(a,{[h]:g}),Nme(s,d,`var(${h})`,p),Nme(c,d,`var(${h}, ${g})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function Xr(e,n,o=void 0){const i={};for(const a in e){const s=e[a];let c="",d=!0;for(let u=0;u<s.length;u+=1){const p=s[u];p&&(c+=(d===!0?"":" ")+n(p),d=!1,o&&o[p]&&(c+=" "+o[p]))}i[a]=c}return i}function JQ(e,n){return m.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const vI={black:"#000",white:"#fff"},Ckt={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},vkt="#f3e5f5",Skt="#ce93d8",kkt="#ba68c8",$kt="#ab47bc",Akt="#9c27b0",jkt="#7b1fa2",Ekt="#e57373",Ikt="#ef5350",Lkt="#f44336",Vme="#d32f2f",Tkt="#c62828",Dkt="#ffb74d",Pkt="#ffa726",Bkt="#ff9800",Mkt="#f57c00",_kt="#e65100",zkt="#e3f2fd",Okt="#90caf9",Hme="#42a5f5",Fkt="#1976d2",Rkt="#1565c0",Nkt="#4fc3f7",Vkt="#29b6f6",Hkt="#03a9f4",Ume="#0288d1",Ukt="#01579b",Wkt="#81c784",Qkt="#66bb6a",Gkt="#4caf50",Ykt="#388e3c",qkt="#2e7d32",Kkt="#1b5e20";function uet(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vI.white,default:vI.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const pet=uet();function het(){return{text:{primary:vI.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:vI.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const die=het();function Wme(e,n,o,i){const a=i.light||i,s=i.dark||1.5*i;e[n]||(e.hasOwnProperty(o)?e[n]=e[o]:n==="light"?e.light=$V(e.main,a):n==="dark"&&(e.dark=kV(e.main,s)))}function Qme(e,n,o,i,a){const s=a.light||a,c=a.dark||1.5*a;n[o]||(n.hasOwnProperty(i)?n[o]=n[i]:o==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(100*s).toFixed(0)}%)`:o==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(100*c).toFixed(0)}%)`))}function Ace(e){const{mode:n="light",contrastThreshold:o=3,tonalOffset:i=.2,colorSpace:a,...s}=e,c=e.primary||function(b="light"){return b==="dark"?{main:Okt,light:zkt,dark:Hme}:{main:Fkt,light:Hme,dark:Rkt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:Skt,light:vkt,dark:$kt}:{main:Akt,light:kkt,dark:jkt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:Lkt,light:Ekt,dark:Vme}:{main:Vme,light:Ikt,dark:Tkt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:Vkt,light:Nkt,dark:Ume}:{main:Ume,light:Hkt,dark:Ukt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Qkt,light:Wkt,dark:Ykt}:{main:qkt,light:Gkt,dark:Kkt}}(n),g=e.warning||function(b="light"){return b==="dark"?{main:Pkt,light:Dkt,dark:Mkt}:{main:"#ed6c02",light:Bkt,dark:_kt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const k=lie(C),$=lie(v);return(Math.max(k,$)+.05)/(Math.min(k,$)+.05)}(b,die.text.primary)>=o?die.text.primary:pet.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:k=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(C4(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(C4(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(Qme(a,b,"light",v,i),Qme(a,b,"dark",k,i)):(Wme(b,"light",v,i),Wme(b,"dark",k,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=uet():n==="dark"&&(y=het()),qd({common:{...vI},mode:n,primary:x({color:c,name:"primary"}),secondary:x({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:u,name:"error"}),warning:x({color:g,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:Ckt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function Zkt(e){const n={};return Object.entries(e).forEach(o=>{const[i,a]=o;typeof a=="object"&&(n[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),n}function Jkt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function Xkt(e){return Math.round(1e5*e)/1e5}const Gme={textTransform:"uppercase"},Yme='"Roboto", "Helvetica", "Arial", sans-serif';function met(e,n){const{fontFamily:o=Yme,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...g}=typeof n=="function"?n(e):n,f=i/14,x=h||(w=>w/u*f+"rem"),y=(w,C,v,k,$)=>({fontFamily:o,fontWeight:w,fontSize:x(C),lineHeight:v,...o===Yme?{letterSpacing:`${Xkt(k/C)}em`}:{},...$,...p}),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(c,14,1.75,.4,Gme),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Gme),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qd({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},g,{clone:!1})}function dl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const e$t=["none",dl(0,2,1,-1,0,1,1,0,0,1,3,0),dl(0,3,1,-2,0,2,2,0,0,1,5,0),dl(0,3,3,-2,0,3,4,0,0,1,8,0),dl(0,2,4,-1,0,4,5,0,0,1,10,0),dl(0,3,5,-1,0,5,8,0,0,1,14,0),dl(0,3,5,-1,0,6,10,0,0,1,18,0),dl(0,4,5,-2,0,7,10,1,0,2,16,1),dl(0,5,5,-3,0,8,10,1,0,3,14,2),dl(0,5,6,-3,0,9,12,1,0,3,16,2),dl(0,6,6,-3,0,10,14,1,0,4,18,3),dl(0,6,7,-4,0,11,15,1,0,4,20,3),dl(0,7,8,-4,0,12,17,2,0,5,22,4),dl(0,7,8,-4,0,13,19,2,0,5,24,4),dl(0,7,9,-4,0,14,21,2,0,5,26,4),dl(0,8,9,-5,0,15,22,2,0,6,28,5),dl(0,8,10,-5,0,16,24,2,0,6,30,5),dl(0,8,11,-5,0,17,26,2,0,6,32,5),dl(0,9,11,-5,0,18,28,2,0,7,34,6),dl(0,9,12,-6,0,19,29,2,0,7,36,6),dl(0,10,13,-6,0,20,31,3,0,8,38,7),dl(0,10,13,-6,0,21,33,3,0,8,40,7),dl(0,10,14,-6,0,22,35,3,0,8,42,7),dl(0,11,14,-7,0,23,36,3,0,9,44,8),dl(0,11,15,-7,0,24,38,3,0,9,46,8)],t$t={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},get={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qme(e){return`${Math.round(e)}ms`}function n$t(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function o$t(e){const n={...t$t,...e.easing},o={...get,...e.duration};return{getAutoHeightDuration:n$t,create:(i=["all"],a={})=>{const{duration:s=o.standard,easing:c=n.easeInOut,delay:d=0,...u}=a;return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof s=="string"?s:qme(s)} ${c} ${typeof d=="string"?d:qme(d)}`).join(",")},...e,easing:n,duration:o}}const i$t={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function r$t(e){return Uf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fet(e={}){const n={...e};return function o(i){const a=Object.entries(i);for(let s=0;s<a.length;s++){const[c,d]=a[s];!r$t(d)||c.startsWith("unstable_")?delete i[c]:Uf(d)&&(i[c]={...d},o(i[c]))}}(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-DP595dtC.js","assets/sentry-BxlhxHUi.js","assets/core-DUPexJ3H.js","assets/index-fhWfMdvB.js","assets/DefaultTenantHome-CwgycKYc.js","assets/mui-BYcLUAn-.js","assets/getLocaleForTenant-BQer3J3i.js","assets/analytics-wiEk3GGD.js","assets/utils-BI-ymB94.js","assets/ScreenRoutes-Bm5EazfY.js","assets/analyticsHelper-CScMfb2z.js","assets/ConnectionAuthScreen-Bn_8LVY-.js","assets/QBOConnectionScreen-DmBrRYj5.js","assets/empty-DtHXOIj5.js","assets/index-BhL3T4qt.js","assets/url-DLyO75wK.js","assets/index-iv31G9Nr.js","assets/decodeURIComponentSafe-jbE9T9Sc.js","assets/SignInScreen-C1EKfqaQ.js","assets/useDeviceId-6JqjTKKJ.js","assets/MagicLinkSignInScreen-D_t_Me45.js","assets/NotFoundScreen-DcBza--g.js","assets/MagicLinkRoutes-CWoYIOYU.js","assets/WiseConfirmationScreen-BsEe1BHV.js","assets/HubSpotOAuthCallbackScreen-QEO5L34X.js","assets/CustomerOnboardingAuthScreen-Bgpl9puf.js","assets/SignOutScreen-DK40OwVP.js","assets/OAuthConsentScreen-rh4Splr8.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as m,b as T,c as Koe,R as Ibt,p as UQ,r as Ku,g as TJe,e as O0e,f as Lbt,s as F0e,i as Tbt,w as Dbt,j as Pbt,S as Bbt,k as Mbt,l as _bt,m as zbt,n as Obt,o as Fbt}from"./sentry-BxlhxHUi.js";import{L as Rbt,C as R0e,_ as Zu,a as CL,b as Nbt,c as rV,d as vL,u as DJe,T as Vbt,e as Hbt,f as Ubt,g as Wbt,h as PJe,i as Qbt,k as Gbt,j as jt,l as Ybt}from"./liveblocks-CpSeBLzv.js";import{f as BJe,r as Ur,R as bx,P as $l,O as qbt,N as MJe,u as Up,g as Wp,h as SL,i as _Je,j as ai,m as Zse,k as zJe,l as Oj,n as Kbt,o as Zbt,p as eu,q as Jbt,B as Xbt}from"./core-DUPexJ3H.js";import{L as N0e,bl as ewt,bm as twt,bn as g6,bo as Nt,bp as dk,bq as nwt,br as owt,bs as el,bt as e2,bu as iwt,bv as D4,bw as Za,bx as rwt,by as awt,bz as lwt,bA as xI,bB as w4,bC as g3,bD as aV,bE as sn,bF as OJe,bG as FJe,bH as Jse,bI as Qp,bJ as f3,bK as ad,bL as t4,bM as swt,bN as Kl,bO as cwt,bP as uk,bQ as dwt,bR as uwt,bS as pwt,bT as my,bU as V0e,bV as hwt,bW as mwt,bX as gwt,bY as fwt,bZ as xwt,b_ as ywt,b$ as bwt,c0 as wwt,c1 as M7,c2 as lV,c3 as Cwt,c4 as sV,c5 as cV,c6 as dV,c7 as Xse,c8 as uV,c9 as CS,ca as vS,cb as pV,cc as vwt,cd as Swt,ce as H0e,cf as kwt,cg as $wt,ch as Awt,ci as Gd,cj as RJe,ck as ece,cl as jwt,cm as E9,cn as U0e,co as Ewt,cp as Iwt,cq as Lwt,cr as Wy,cs as Qy,ct as NJe,cu as VJe,cv as tce,cw as Twt,cx as Dwt,cy as PO,cz as HJe,cA as Pwt,cB as UJe,cC as Bwt,cD as Fj,cE as W0e,cF as Mwt,cG as WJe,cH as QJe,cI as GJe,cJ as _wt,cK as Q0e,cL as zwt,cM as Owt,cN as YJe,cO as Fwt,cP as G0e,cQ as Ic,cR as El,cS as Rwt,cT as SS,cU as Nd,cV as qJe,cW as Nwt,cX as yI,cY as Gx,cZ as Pa,c_ as Vwt,c$ as Hwt,d0 as Uwt,d1 as Wwt,d2 as KT,d3 as Wh,d4 as Qwt,d5 as Gwt,d6 as Ywt,d7 as qwt,d8 as ZT,d9 as gy,da as hV,db as Kwt,dc as Zwt,dd as Gy,de as Yd,df as KJe,dg as ZJe,dh as Jwt,di as pk,dj as Zoe,dk as Xwt,dl as E1,dm as fy,dn as nce,dp as JJe,dq as XJe,dr as eXe,ds as tXe,dt as nXe,du as oXe,dv as eCt,dw as Y0e,dx as tCt,_ as fd,dy as oce,dz as iXe,dA as nCt,dB as q0e,dC as ap,dD as n4,dE as oCt,dF as iCt,dG as rXe,dH as Joe,dI as xz,dJ as rCt,dK as aCt,dL as lCt,dM as sCt,dN as cCt,dO as dCt,dP as uCt,dQ as pCt,dR as hCt,dS as mCt,dT as yE,dU as bE,dV as aXe,dW as Bp,dX as gCt,dY as ice,dZ as rce,d_ as hk,d$ as ace,e0 as lce,e1 as sce,e2 as cce,e3 as lXe,e4 as dce,e5 as fCt,e6 as xCt,e7 as sXe,e8 as K0e,e9 as yCt,ea as uce,eb as bCt,ec as wCt,ed as cXe,ee as CCt,ef as vCt,eg as SCt,eh as dXe,ei as kCt,ej as uXe,ek as pXe,el as $Ct,em as ACt,en as jCt,eo as ECt,ep as ICt,eq as LCt,er as TCt,es as DCt,et as hXe,eu as PCt,ev as Z0e,ew as mV,ex as BCt,ey as MCt,ez as _Ct,eA as zCt,eB as OCt,eC as FCt,eD as RCt,eE as NCt,eF as J0e,eG as mXe,eH as gXe,eI as fXe,eJ as xXe,eK as yXe,eL as bXe,eM as VCt,eN as HCt,eO as UCt,v as WCt,eP as kL,eQ as V1,eR as wXe,eS as QCt,eT as pce,eU as $L,eV as hce,eW as CXe,eX as vXe,eY as GCt,eZ as SXe,e_ as YCt,e$ as kXe,f0 as qCt,f1 as $Xe,f2 as KCt,f3 as ZCt,f4 as JCt,f5 as XCt,f6 as evt,f7 as X0e,f8 as AXe,f9 as Kb,fa as eme,fb as tvt,fc as tme,fd as nvt,fe as ovt,ff as jXe,fg as EXe,fh as ivt,fi as rvt,fj as avt,fk as lvt,fl as svt,fm as cvt,fn as BO,fo as mce,fp as IXe,fq as dvt,fr as wE,fs as uvt,ft as pvt,fu as hvt,fv as mvt,fw as gvt,fx as fvt,fy as xvt,fz as yvt,fA as bvt,fB as wvt,fC as LXe,fD as Cvt,fE as vvt,fF as Svt,fG as nme,fH as kvt,fI as $vt,fJ as Avt,fK as jvt,fL as Evt,fM as Xoe,fN as Ivt,fO as Lvt,fP as Tvt,fQ as Dvt,fR as Pvt,fS as Bvt,fT as Mvt,fU as _vt,fV as ome,fW as zvt,fX as Ovt}from"./zeni-epic-state-DP595dtC.js";import{n as l,T as TXe,G as AL,j as qo,c as je,k as Hn,C as DXe,u as gce,a as eie,A as Fvt,b as Rvt,I as Nvt,d as Vvt,D as MO,S as PXe}from"./mui-BYcLUAn-.js";import{r as Hvt,m as Bh}from"./analytics-wiEk3GGD.js";import{u as Xp}from"./plaid-DSCHiplf.js";import{g as Uvt,O as Wvt,H as Qvt,S as Gvt,T as Yvt,a as qvt,u as Kvt,b as Zvt}from"./dnd-O-LDWVRl.js";import{l as Jvt}from"./stripe-DMRn4zHo.js";import{L as Fv}from"./lottie-BpJoufaA.js";import{r as Bs}from"./lexical-D7D3BWIv.js";import{D as tie,P as nie,_ as BXe,a as MXe}from"./pdf--1Oee4-D.js";import{R as bI,G as xy,X as hs,Y as Zl,H as yy,I as pd,J as Gp,K as Yy,L as eh,M as mk,N as _Xe,O as Xvt,P as eSt,Q as gV,S as Rv,U as tSt,V as fce,W as nSt,Z as oSt,_ as iSt}from"./recharts-Dp6Vlg5X.js";import{r as rSt}from"./utils-BI-ymB94.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]="77a0568e-3ce2-48a7-8b08-9b9ef290c454",e._sentryDebugIdIdentifier="sentry-dbid-77a0568e-3ce2-48a7-8b08-9b9ef290c454")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0})}function n(o){if(o.ep)return;o.ep=!0;const i=function(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}(o);fetch(o.href,i)}})();var ime,JT={},aSt=function(){if(ime)return JT;ime=1;var e=BJe();return JT.createRoot=e.createRoot,JT.hydrateRoot=e.hydrateRoot,JT}(),Bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Koe<"u"?Koe:typeof self<"u"?self:{};function zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rme,ame,lme={exports:{}},u$={};function zXe(){return ame||(ame=1,lme.exports=function(){if(rme)return u$;rme=1;var e=T,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)i.call(u,h)&&!s.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:a.current}}return u$.Fragment=o,u$.jsx=c,u$.jsxs=c,u$}()),lme.exports}var t=zXe();const lSt=m.createContext(null),WQ={didCatch:!1,error:null};let sSt=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=WQ}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];(n=(o=this.props).onReset)===null||n===void 0||n.call(o,{args:a,reason:"imperative-api"}),this.setState(WQ)}}componentDidCatch(e,n){var o,i;(o=(i=this.props).onError)===null||o===void 0||o.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:o}=this.state,{resetKeys:i}=this.props;var a,s;o&&n.error!==null&&function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return c.length!==d.length||c.some((u,p)=>!Object.is(u,d[p]))}(e.resetKeys,i)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(WQ))}render(){const{children:e,fallbackRender:n,FallbackComponent:o,fallback:i}=this.props,{didCatch:a,error:s}=this.state;let c=e;if(a){const d={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(o)c=m.createElement(o,d);else{if(i===void 0)throw s;c=i}}return m.createElement(lSt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var sme,QQ={exports:{}},cme,dme,GQ,cSt=(sme||(sme=1,dme=QQ.exports,GQ=function(){var e,n,o,i,a,s,c={},d={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function h(g,f){this._input=g,this._value=f}return e=function(g){var f,x,y,b;if(e.isNumeral(g))f=g.value();else if(g===0||typeof g>"u")f=0;else if(g===null||n.isNaN(g))f=null;else if(typeof g=="string")if(p.zeroFormat&&g===p.zeroFormat)f=0;else if(p.nullFormat&&g===p.nullFormat||!g.replace(/[^0-9]+/g,"").length)f=null;else{for(x in c)if((b=typeof c[x].regexps.unformat=="function"?c[x].regexps.unformat():c[x].regexps.unformat)&&g.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(g)}else f=Number(g)||null;return new h(g,f)},e.version="2.0.6",e.isNumeral=function(g){return g instanceof h},e._=n={numberToFormat:function(g,f,x){var y,b,w,C,v,k,$,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",P=1e12,z=1e9,_=1e6,W="",R=!1;if(g=g||0,w=Math.abs(g),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&(k=e._.includes(f,"+")?f.indexOf("+"):g<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),e._.includes(f,"a")&&(b=!!(b=f.match(/a(k|m|b|t)?/))&&b[1],e._.includes(f," a")&&(I=" "),f=f.replace(new RegExp(I+"a[kmbt]?"),""),w>=P&&!b||b==="t"?(I+=A.abbreviations.trillion,g/=P):w<P&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,g/=z):w<z&&w>=_&&!b||b==="m"?(I+=A.abbreviations.million,g/=_):(w<_&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,g/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=g.toString().split(".")[0],v=f.split(".")[1],$=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),W=e._.toFixed(g,v[0].length+v[1].length,x,v[1].length)):W=e._.toFixed(g,v.length,x),C=W.split(".")[0],W=e._.includes(W,".")?A.delimiters.decimal+W.split(".")[1]:"",L&&Number(W.slice(1))===0&&(W="")):C=e._.toFixed(g,0,x),I&&!b&&Number(C)>=1e3&&I!==A.abbreviations.trillion)switch(C=String(Number(C)/1e3),I){case A.abbreviations.thousand:I=A.abbreviations.million;break;case A.abbreviations.million:I=A.abbreviations.billion;break;case A.abbreviations.billion:I=A.abbreviations.trillion}if(e._.includes(C,"-")&&(C=C.slice(1),R=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return $>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+W+(I||""),E?j=(E&&R?"(":"")+j+(E&&R?")":""):k>=0?j=k===0?(R?"-":"+")+j:j+(R?"-":"+"):R&&(j="-"+j),j},stringToNumber:function(g){var f,x,y,b=d[p.currentLocale],w=g,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&g===p.zeroFormat)x=0;else if(p.nullFormat&&g===p.nullFormat||!g.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(g=g.replace(/\./g,"").replace(b.delimiters.decimal,".")),C)if(y=new RegExp("[^a-zA-Z]"+b.abbreviations[f]+"(?:\\)|(\\"+b.currency.symbol+")?(?:\\))?)?$"),w.match(y)){x*=Math.pow(10,C[f]);break}x*=(g.split("-").length+Math.min(g.split("(").length-1,g.split(")").length-1))%2?1:-1,g=g.replace(/[^0-9\.]+/g,""),x*=Number(g)}return x},isNaN:function(g){return typeof g=="number"&&isNaN(g)},includes:function(g,f){return g.indexOf(f)!==-1},insert:function(g,f,x){return g.slice(0,x)+f+g.slice(x)},reduce:function(g,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var x,y=Object(g),b=y.length>>>0,w=0;if(arguments.length===3)x=arguments[2];else{for(;w<b&&!(w in y);)w++;if(w>=b)throw new TypeError("Reduce of empty array with no initial value");x=y[w++]}for(;w<b;w++)w in y&&(x=f(x,y[w],w,y));return x},multiplier:function(g){var f=g.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(g,f){var x=n.multiplier(f);return g>x?g:x},1)},toFixed:function(g,f,x,y){var b,w,C,v,k=g.toString().split("."),$=f-(y||0);return b=k.length===2?Math.min(Math.max(k[1].length,$),f):$,C=Math.pow(10,b),v=(x(g+"e+"+b)/C).toFixed(b),y>f-b&&(w=new RegExp("\\.?0{1,"+(y-(f-b))+"}$"),v=v.replace(w,"")),v}},e.options=p,e.formats=c,e.locales=d,e.locale=function(g){return g&&(p.currentLocale=g.toLowerCase()),p.currentLocale},e.localeData=function(g){if(!g)return d[p.currentLocale];if(g=g.toLowerCase(),!d[g])throw new Error("Unknown locale : "+g);return d[g]},e.reset=function(){for(var g in u)p[g]=u[g]},e.zeroFormat=function(g){p.zeroFormat=typeof g=="string"?g:null},e.nullFormat=function(g){p.nullFormat=typeof g=="string"?g:null},e.defaultFormat=function(g){p.defaultFormat=typeof g=="string"?g:"0.0"},e.register=function(g,f,x){if(f=f.toLowerCase(),this[g+"s"][f])throw new TypeError(f+" "+g+" already registered.");return this[g+"s"][f]=x,x},e.validate=function(g,f){var x,y,b,w,C,v,k,$;if(typeof g!="string"&&(g+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",g)),(g=g.trim()).match(/^\d+$/))return!0;if(g==="")return!1;try{k=e.localeData(f)}catch{k=e.localeData(e.locale())}return b=k.currency.symbol,C=k.abbreviations,x=k.delimiters.decimal,y=k.delimiters.thousands==="."?"\\.":k.delimiters.thousands,!(($=g.match(/^[^\d]+/))!==null&&(g=g.substr(1),$[0]!==b)||($=g.match(/[^\d]+$/))!==null&&(g=g.slice(0,-1),$[0]!==C.thousand&&$[0]!==C.million&&$[0]!==C.billion&&$[0]!==C.trillion)||(v=new RegExp(y+"{2}"),g.match(/[^\d.,]/g)||(w=g.split(x)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(v):w[0].length===1?!w[0].match(/^\d+$/)||w[0].match(v)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(v)||!w[1].match(/^\d+$/))))},e.fn=h.prototype={clone:function(){return e(this)},format:function(g,f){var x,y,b,w=this._value,C=g||p.defaultFormat;if(f=f||Math.round,w===0&&p.zeroFormat!==null)y=p.zeroFormat;else if(w===null&&p.nullFormat!==null)y=p.nullFormat;else{for(x in c)if(C.match(c[x].regexps.format)){b=c[x].format;break}y=(b=b||e._.numberToFormat)(w,C,f)}return y},value:function(){return this._value},input:function(){return this._input},set:function(g){return this._value=Number(g),this},add:function(g){var f=n.correctionFactor.call(null,this._value,g);return this._value=n.reduce([this._value,g],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(g){var f=n.correctionFactor.call(null,this._value,g);return this._value=n.reduce([g],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(g){return this._value=n.reduce([this._value,g],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)*Math.round(x*w)/Math.round(w*w)},1),this},divide:function(g){return this._value=n.reduce([this._value,g],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(g){return Math.abs(e(this._value).subtract(g).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(g){var f=g%10;return~~(g%100/10)==1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(g,f,x){var y,b=e._.includes(f," BPS")?" ":"";return g*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(g,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(g){return+(1e-4*e._.stringToNumber(g)).toFixed(15)}}),i={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a=(o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(i.suffixes.filter(function(g){return o.suffixes.indexOf(g)<0})),s="("+(s=a.join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(g,f,x){var y,b,w,C=e._.includes(f,"ib")?i:o,v=e._.includes(f," b")||e._.includes(f," ib")?" ":"";for(f=f.replace(/\s?i?b/,""),y=0;y<=C.suffixes.length;y++)if(b=Math.pow(C.base,y),w=Math.pow(C.base,y+1),g===null||g===0||g>=b&&g<w){v+=C.suffixes[y],b>0&&(g/=b);break}return e._.numberToFormat(g,f,x)+v},unformat:function(g){var f,x,y=e._.stringToNumber(g);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(g,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(g,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(g,f,x){var y,b,w,C=e.locales[e.options.currentLocale],v={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(f=f.replace(/\s?\$\s?/,""),y=e._.numberToFormat(g,f,x),g>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):g<0&&!e._.includes(v.before,"-")&&!e._.includes(v.before,"(")&&(v.before="-"+v.before),w=0;w<v.before.length;w++)switch(b=v.before[w],b){case"$":y=e._.insert(y,C.currency.symbol,w);break;case" ":y=e._.insert(y," ",w+C.currency.symbol.length-1)}for(w=v.after.length-1;w>=0;w--)switch(b=v.after[w],b){case"$":y=w===v.after.length-1?y+C.currency.symbol:e._.insert(y,C.currency.symbol,-(v.after.length-(1+w)));break;case" ":y=w===v.after.length-1?y+" ":e._.insert(y," ",-(v.after.length-(1+w)+C.currency.symbol.length-1))}return y}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(g,f,x){var y=(typeof g!="number"||e._.isNaN(g)?"0e+0":g.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(g){var f=e._.includes(g,"e+")?g.split("e+"):g.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(g,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var k=e._.correctionFactor(b,w);return b*k*(w*k)/(k*k)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(g,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(g),e._.numberToFormat(g,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(g,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(g*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(g,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(g){var f=e._.stringToNumber(g);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(g,f,x){var y=Math.floor(g/60/60),b=Math.floor((g-60*y*60)/60),w=Math.round(g-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(g){var f=g.split(":"),x=0;return f.length===3?(x+=60*Number(f[0])*60,x+=60*Number(f[1]),x+=Number(f[2])):f.length===2&&(x+=60*Number(f[0]),x+=Number(f[1])),Number(x)}}),e},(cme=QQ).exports?cme.exports=GQ():dme.numeral=GQ()),QQ.exports);const c4=zi(cSt);function C4(e,...n){const o=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${o} for the full message.`}const d4="$$material";var dSt={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 uSt(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var pSt=/[A-Z]|^ms/g,hSt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,OXe=function(e){return e.charCodeAt(1)===45},ume=function(e){return e!=null&&typeof e!="boolean"},YQ=uSt(function(e){return OXe(e)?e:e.replace(pSt,"-$&").toLowerCase()}),pme=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(hSt,function(o,i,a){return f7={name:i,styles:a,next:f7},i})}return dSt[e]===1||OXe(e)||typeof n!="number"||n===0?n:n+"px"};function _O(e,n,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":var a=o;if(a.anim===1)return f7={name:a.name,styles:a.styles,next:f7},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)f7={name:c.name,styles:c.styles,next:f7},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var g=0;g<p.length;g++)h+=_O(d,u,p[g])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;ume(y)&&(h+=YQ(f)+":"+pme(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)ume(x[b])&&(h+=YQ(f)+":"+pme(f,x[b])+";");else{var w=_O(d,u,x);switch(f){case"animation":case"animationName":h+=YQ(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var f7,hme=/label:\s*([^\s;{]+)\s*(;|$)/g,mme,gme,fme,xme,yme,bme={exports:{}};function mSt(){return gme?mme:(gme=1,mme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function gSt(){if(xme)return fme;xme=1;var e=mSt();function n(){}function o(){}return o.resetWarningCache=n,fme=function(){function i(c,d,u,p,h,g){if(g!==e){var f=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 f.name="Invariant Violation",f}}function a(){return i}i.isRequired=i;var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:n};return s.PropTypes=s,s}}function xce(){return yme||(yme=1,bme.exports=gSt()()),bme.exports}const bn=zi(xce());var fSt=function(){function e(o){var i=this;this._insertTag=function(a){var s;s=i.tags.length===0?i.insertionPoint?i.insertionPoint.nextSibling:i.prepend?i.container.firstChild:i.before:i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,s),i.tags.push(a)},this.isSpeedy=o.speedy===void 0||o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(o){o.forEach(this._insertTag)},n.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(s){var c=document.createElement("style");return c.setAttribute("data-emotion",s.key),s.nonce!==void 0&&c.setAttribute("nonce",s.nonce),c.appendChild(document.createTextNode("")),c.setAttribute("data-s",""),c}(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(s){if(s.sheet)return s.sheet;for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].ownerNode===s)return document.styleSheets[c]}(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},n.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),Md="-ms-",wme="-moz-",Yr="-webkit-",FXe="comm",yce="rule",bce="decl",RXe="@keyframes",xSt=Math.abs,fV=String.fromCharCode,ySt=Object.assign;function NXe(e){return e.trim()}function qr(e,n,o){return e.replace(n,o)}function oie(e,n){return e.indexOf(n)}function ed(e,n){return 0|e.charCodeAt(n)}function wI(e,n,o){return e.slice(n,o)}function jg(e){return e.length}function wce(e){return e.length}function XT(e,n){return n.push(e),e}var xV=1,kS=1,VXe=0,Uu=0,Is=0,gk="";function yV(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:xV,column:kS,length:c,return:""}}function p$(e,n){return ySt(yV("",null,null,"",null,null,0),e,{length:-e.length},n)}function Fp(){return Is=Uu<VXe?ed(gk,Uu++):0,kS++,Is===10&&(kS=1,xV++),Is}function i3(){return ed(gk,Uu)}function yz(){return Uu}function jL(e,n){return wI(gk,e,n)}function CI(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 HXe(e){return xV=kS=1,VXe=jg(gk=e),Uu=0,[]}function UXe(e){return gk="",e}function bz(e){return NXe(jL(Uu-1,iie(e===91?e+2:e===40?e+1:e)))}function bSt(e){for(;(Is=i3())&&Is<33;)Fp();return CI(e)>2||CI(Is)>3?"":" "}function wSt(e,n){for(;--n&&Fp()&&!(Is<48||Is>102||Is>57&&Is<65||Is>70&&Is<97););return jL(e,yz()+(n<6&&i3()==32&&Fp()==32))}function iie(e){for(;Fp();)switch(Is){case e:return Uu;case 34:case 39:e!==34&&e!==39&&iie(Is);break;case 40:e===41&&iie(e);break;case 92:Fp()}return Uu}function CSt(e,n){for(;Fp()&&e+Is!==57&&(e+Is!==84||i3()!==47););return"/*"+jL(n,Uu-1)+"*"+fV(e===47?e:Fp())}function vSt(e){for(;!CI(i3());)Fp();return jL(e,Uu)}function SSt(e){return UXe(wz("",null,null,null,[""],e=HXe(e),0,[0],e))}function wz(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,g=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,k="",$=a,j=s,A=i,E=k;w;)switch(y=v,v=Fp()){case 40:if(y!=108&&ed(E,g-1)==58){oie(E+=qr(bz(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=bz(v);break;case 9:case 10:case 13:case 32:E+=bSt(y);break;case 92:E+=wSt(yz()-1,7);continue;case 47:switch(i3()){case 42:case 47:XT(kSt(CSt(Fp(),yz()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=jg(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=qr(E,/\f/g,"")),x>0&&jg(E)-g&&XT(x>32?vme(E+";",i,o,g-1):vme(qr(E," ","")+";",i,o,g-2),u);break;case 59:E+=";";default:if(XT(A=Cme(E,n,o,p,h,a,d,k,$=[],j=[],g),s),v===123)if(h===0)wz(E,n,A,A,$,s,g,d,j);else switch(f===99&&ed(E,3)===110?100:f){case 100:case 108:case 109:case 115:wz(e,A,A,i&&XT(Cme(e,A,A,0,0,a,d,k,a,$=[],g),j),a,j,g,d,i?$:j);break;default:wz(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,k=E="",g=c;break;case 58:g=1+jg(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Is=Uu>0?ed(gk,--Uu):0,kS--,Is===10&&(kS=1,xV--),Is==125))continue}switch(E+=fV(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(jg(E)-1)*C,C=1;break;case 64:i3()===45&&(E+=bz(Fp())),f=i3(),h=g=jg(k=E+=vSt(yz())),v++;break;case 45:y===45&&jg(E)==2&&(b=0)}}return s}function Cme(e,n,o,i,a,s,c,d,u,p,h){for(var g=a-1,f=a===0?s:[""],x=wce(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=wI(e,g+1,g=xSt(b=c[y])),k=e;C<x;++C)(k=NXe(b>0?f[C]+" "+v:qr(v,/&\f/g,f[C])))&&(u[w++]=k);return yV(e,n,o,a===0?yce:d,u,p,h)}function kSt(e,n,o){return yV(e,n,o,FXe,fV(Is),wI(e,2,-2),0)}function vme(e,n,o,i){return yV(e,n,o,bce,wI(e,0,i),wI(e,i+1,-1),i)}function Nv(e,n){for(var o="",i=wce(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function $St(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case bce:return e.return=e.return||e.value;case FXe:return"";case RXe:return e.return=e.value+"{"+Nv(e.children,i)+"}";case yce:e.value=e.props.join(",")}return jg(o=Nv(e.children,i))?e.return=e.value+"{"+o+"}":""}function ASt(e){return function(n){n.root||(n=n.return)&&e(n)}}var jSt=function(e,n,o){for(var i=0,a=0;i=a,a=i3(),i===38&&a===12&&(n[o]=1),!CI(a);)Fp();return jL(e,Uu)},ESt=function(e,n){return UXe(function(o,i){var a=-1,s=44;do switch(CI(s)){case 0:s===38&&i3()===12&&(i[a]=1),o[a]+=jSt(Uu-1,i,a);break;case 2:o[a]+=bz(s);break;case 4:if(s===44){o[++a]=i3()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=fV(s)}while(s=Fp());return o}(HXe(e),n))},Sme=new WeakMap,ISt=function(e){if(e.type==="rule"&&e.parent&&!(e.length<1)){for(var n=e.value,o=e.parent,i=e.column===o.column&&e.line===o.line;o.type!=="rule";)if(!(o=o.parent))return;if((e.props.length!==1||n.charCodeAt(0)===58||Sme.get(o))&&!i){Sme.set(e,!0);for(var a=[],s=ESt(n,a),c=o.props,d=0,u=0;d<s.length;d++)for(var p=0;p<c.length;p++,u++)e.props[u]=a[d]?s[d].replace(/&\f/g,c[p]):c[p]+" "+s[d]}}},LSt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function WXe(e,n){switch(function(o,i){return 45^ed(o,0)?(((i<<2^ed(o,0))<<2^ed(o,1))<<2^ed(o,2))<<2^ed(o,3):0}(e,n)){case 5103:return Yr+"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 Yr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yr+e+wme+e+Md+e+e;case 6828:case 4268:return Yr+e+Md+e+e;case 6165:return Yr+e+Md+"flex-"+e+e;case 5187:return Yr+e+qr(e,/(\w+).+(:[^]+)/,Yr+"box-$1$2"+Md+"flex-$1$2")+e;case 5443:return Yr+e+Md+"flex-item-"+qr(e,/flex-|-self/,"")+e;case 4675:return Yr+e+Md+"flex-line-pack"+qr(e,/align-content|flex-|-self/,"")+e;case 5548:return Yr+e+Md+qr(e,"shrink","negative")+e;case 5292:return Yr+e+Md+qr(e,"basis","preferred-size")+e;case 6060:return Yr+"box-"+qr(e,"-grow","")+Yr+e+Md+qr(e,"grow","positive")+e;case 4554:return Yr+qr(e,/([^-])(transform)/g,"$1"+Yr+"$2")+e;case 6187:return qr(qr(qr(e,/(zoom-|grab)/,Yr+"$1"),/(image-set)/,Yr+"$1"),e,"")+e;case 5495:case 3959:return qr(e,/(image-set\([^]*)/,Yr+"$1$`$1");case 4968:return qr(qr(e,/(.+:)(flex-)?(.*)/,Yr+"box-pack:$3"+Md+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yr+e+e;case 4095:case 3583:case 4068:case 2532:return qr(e,/(.+)-inline(.+)/,Yr+"$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(jg(e)-1-n>6)switch(ed(e,n+1)){case 109:if(ed(e,n+4)!==45)break;case 102:return qr(e,/(.+:)(.+)-([^]+)/,"$1"+Yr+"$2-$3$1"+wme+(ed(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~oie(e,"stretch")?WXe(qr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(ed(e,n+1)!==115)break;case 6444:switch(ed(e,jg(e)-3-(~oie(e,"!important")&&10))){case 107:return qr(e,":",":"+Yr)+e;case 101:return qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yr+(ed(e,14)===45?"inline-":"")+"box$3$1"+Yr+"$2$3$1"+Md+"$2box$3")+e}break;case 5936:switch(ed(e,n+11)){case 114:return Yr+e+Md+qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yr+e+Md+qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yr+e+Md+qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yr+e+Md+e+e}return e}var TSt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case bce:e.return=WXe(e.value,e.length);break;case RXe:return Nv([p$(e,{value:qr(e.value,"@","@"+Yr)})],i);case yce:if(e.length)return function(a,s){return a.map(s).join("")}(e.props,function(a){switch(function(s,c){return(s=c.exec(s))?s[0]:s}(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nv([p$(e,{props:[qr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return Nv([p$(e,{props:[qr(a,/:(plac\w+)/,":"+Yr+"input-$1")]}),p$(e,{props:[qr(a,/:(plac\w+)/,":-moz-$1")]}),p$(e,{props:[qr(a,/:(plac\w+)/,Md+"input-$1")]})],i)}return""})}}],QXe=function(e){var n=e.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(x){x.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i,a=e.stylisPlugins||TSt,s={},c=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var y=x.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;c.push(x)});var d,u,p=[ISt,LSt],h=[$St,ASt(function(x){u.insert(x)})],g=function(x){var y=wce(x);return function(b,w,C,v){for(var k="",$=0;$<y;$++)k+=x[$](b,w,C,v)||"";return k}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){Nv(SSt(C),g)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new fSt({key:n,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:d};return f.sheet.hydrate(c),f};function GXe(e){const{styles:n,defaultTheme:o={}}=e,i=typeof n=="function"?a=>n(function(s){return s==null||Object.keys(s).length===0}(a)?o:a):n;return t.jsx(AL,{styles:i})}const kme=[];function _7(e){return kme[0]=e,function(n,o,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var a=!0,s="";f7=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=_O(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=_O(i,o,n[d]),a&&(s+=c[d]);hme.lastIndex=0;for(var u,p="";(u=hme.exec(s))!==null;)p+="-"+u[1];var h=function(g){for(var f,x=0,y=0,b=g.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&g.charCodeAt(y)|(255&g.charCodeAt(++y))<<8|(255&g.charCodeAt(++y))<<16|(255&g.charCodeAt(++y))<<24))+(59797*(f>>>16)<<16),x=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&x)+(59797*(x>>>16)<<16);switch(b){case 3:x^=(255&g.charCodeAt(y+2))<<16;case 2:x^=(255&g.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&g.charCodeAt(y)))+(59797*(x>>>16)<<16)}return(((x=1540483477*(65535&(x^=x>>>13))+(59797*(x>>>16)<<16))^x>>>15)>>>0).toString(36)}(s)+p;return{name:h,styles:s,next:f7}}(kme)}var $me,Ame,jme={exports:{}},wa={};function DSt(){if($me)return wa;$me=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type){case o:case a:case i:case u:case p:case f:return b;default:switch(b=b&&b.$$typeof){case c:case d:case g:case h:case s:return b;default:return w}}case n:return w}}}return wa.ContextConsumer=s,wa.ContextProvider=c,wa.Element=e,wa.ForwardRef=d,wa.Fragment=o,wa.Lazy=g,wa.Memo=h,wa.Portal=n,wa.Profiler=a,wa.StrictMode=i,wa.Suspense=u,wa.SuspenseList=p,wa.isContextConsumer=function(b){return y(b)===s},wa.isContextProvider=function(b){return y(b)===c},wa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},wa.isForwardRef=function(b){return y(b)===d},wa.isFragment=function(b){return y(b)===o},wa.isLazy=function(b){return y(b)===g},wa.isMemo=function(b){return y(b)===h},wa.isPortal=function(b){return y(b)===n},wa.isProfiler=function(b){return y(b)===a},wa.isStrictMode=function(b){return y(b)===i},wa.isSuspense=function(b){return y(b)===u},wa.isSuspenseList=function(b){return y(b)===p},wa.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===a||b===i||b===u||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},wa.typeOf=y,wa}function PSt(){return Ame||(Ame=1,jme.exports=DSt()),jme.exports}var YXe=PSt();function Uf(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function qXe(e){if(m.isValidElement(e)||YXe.isValidElementType(e)||!Uf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=qXe(e[o])}),n}function qd(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return Uf(e)&&Uf(n)&&Object.keys(n).forEach(a=>{m.isValidElement(n[a])||YXe.isValidElementType(n[a])?i[a]=n[a]:Uf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Uf(e[a])?i[a]=qd(e[a],n[a],o):o.clone?i[a]=Uf(n[a])?qXe(n[a]):n[a]:i[a]=n[a]}),i}function BSt(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,s=(h=>{const g=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return g.sort((f,x)=>f.val-x.val),g.reduce((f,x)=>({...f,[x.key]:x.val}),{})})(n),c=Object.keys(s);function d(h){return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o})`}function u(h){return`@media (max-width:${(typeof n[h]=="number"?n[h]:h)-i/100}${o})`}function p(h,g){const f=c.indexOf(g);return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o}) and (max-width:${(f!==-1&&typeof n[c[f]]=="number"?n[c[f]]:g)-i/100}${o})`}return{keys:c,values:s,up:d,down:u,between:p,only:function(h){return c.indexOf(h)+1<c.length?p(h,c[c.indexOf(h)+1]):d(h)},not:function(h){const g=c.indexOf(h);return g===0?d(c[1]):g===c.length-1?u(c[g]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function Eme(e,n){if(!e.containerQueries)return n;const o=Object.keys(n).filter(i=>i.startsWith("@container")).sort((i,a)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(a.match(s)?.[1]||0)});return o.length?o.reduce((i,a)=>{const s=n[a];return delete i[a],i[a]=s,i},{...n}):n}const MSt={borderRadius:4};function CE(e,n){return n?qd(e,n,{clone:!1}):e}const bV={xs:0,sm:600,md:900,lg:1200,xl:1536},Ime={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bV[e]}px)`},_St={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:bV[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function v4(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||Ime;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||Ime;return Object.keys(n).reduce((s,c)=>{if(function(d,u){return u==="@"||u.startsWith("@")&&(d.some(p=>u.startsWith(`@${p}`))||!!u.match(/^@\d/))}(a.keys,c)){const d=function(u,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,f]=h,x=Number.isNaN(+g)?g||0:+g;return u.containerQueries(f).up(x)}(i.containerQueries?i:_St,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||bV).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Lme(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function $i(e){if(typeof e!="string")throw new Error(C4(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wV(e,n,o=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&o){const i=`vars.${n}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(i!=null)return i}return n.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function zO(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:wV(e,o)||i,n&&(a=n(a,i,e)),a}function ss(e){const{prop:n,cssProperty:o=e.prop,themeKey:i,transform:a}=e,s=c=>{if(c[n]==null)return null;const d=c[n],u=wV(c.theme,i)||{};return v4(c,d,p=>{let h=zO(u,a,p);return p===h&&typeof p=="string"&&(h=zO(u,a,`${n}${p==="default"?"":$i(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const zSt={m:"margin",p:"padding"},OSt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tme={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},FSt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!Tme[e])return[e];e=Tme[e]}const[n,o]=e.split(""),i=zSt[n],a=OSt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),KXe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ZXe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function EL(e,n,o,i){const a=wV(e,n,!0)??o;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=a[c];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:()=>{}}function Cce(e){return EL(e,"spacing",8)}function IL(e,n){return typeof n=="string"||n==null?n:e(n)}function RSt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=IL(c,d),u),{})}(FSt(o),i);return v4(e,e[o],a)}function JXe(e,n){const o=Cce(e.theme);return Object.keys(e).map(i=>RSt(e,n,i,o)).reduce(CE,{})}function Fl(e){return JXe(e,KXe)}function Rl(e){return JXe(e,ZXe)}function XXe(e=8,n=Cce({spacing:e})){if(e.mui)return e;const o=(...i)=>(i.length===0?[1]:i).map(a=>{const s=n(a);return typeof s=="number"?`${s}px`:s}).join(" ");return o.mui=!0,o}function CV(...e){const n=e.reduce((i,a)=>(a.filterProps.forEach(s=>{i[s]=a}),i),{}),o=i=>Object.keys(i).reduce((a,s)=>n[s]?CE(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Qh(e){return typeof e!="number"?e:`${e}px solid`}function k0(e,n){return ss({prop:e,themeKey:"borders",transform:n})}Fl.propTypes={},Fl.filterProps=KXe,Rl.propTypes={},Rl.filterProps=ZXe;const NSt=k0("border",Qh),VSt=k0("borderTop",Qh),HSt=k0("borderRight",Qh),USt=k0("borderBottom",Qh),WSt=k0("borderLeft",Qh),QSt=k0("borderColor"),GSt=k0("borderTopColor"),YSt=k0("borderRightColor"),qSt=k0("borderBottomColor"),KSt=k0("borderLeftColor"),ZSt=k0("outline",Qh),JSt=k0("outlineColor"),Cz=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=EL(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:IL(n,i)});return v4(e,e.borderRadius,o)}return null};Cz.propTypes={},Cz.filterProps=["borderRadius"],CV(NSt,VSt,HSt,USt,WSt,QSt,GSt,YSt,qSt,KSt,Cz,ZSt,JSt);const OO=e=>{if(e.gap!==void 0&&e.gap!==null){const n=EL(e.theme,"spacing",8),o=i=>({gap:IL(n,i)});return v4(e,e.gap,o)}return null};OO.propTypes={},OO.filterProps=["gap"];const FO=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=EL(e.theme,"spacing",8),o=i=>({columnGap:IL(n,i)});return v4(e,e.columnGap,o)}return null};FO.propTypes={},FO.filterProps=["columnGap"];const RO=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=EL(e.theme,"spacing",8),o=i=>({rowGap:IL(n,i)});return v4(e,e.rowGap,o)}return null};RO.propTypes={},RO.filterProps=["rowGap"];function Vv(e,n){return n==="grey"?n:e}CV(OO,FO,RO,ss({prop:"gridColumn"}),ss({prop:"gridRow"}),ss({prop:"gridAutoFlow"}),ss({prop:"gridAutoColumns"}),ss({prop:"gridAutoRows"}),ss({prop:"gridTemplateColumns"}),ss({prop:"gridTemplateRows"}),ss({prop:"gridTemplateAreas"}),ss({prop:"gridArea"}));function Tp(e){return e<=1&&e!==0?100*e+"%":e}CV(ss({prop:"color",themeKey:"palette",transform:Vv}),ss({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vv}),ss({prop:"backgroundColor",themeKey:"palette",transform:Vv}));const XSt=ss({prop:"width",transform:Tp}),vce=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||bV[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Tp(o)}};return v4(e,e.maxWidth,n)}return null};vce.filterProps=["maxWidth"];const ekt=ss({prop:"minWidth",transform:Tp}),tkt=ss({prop:"height",transform:Tp}),nkt=ss({prop:"maxHeight",transform:Tp}),okt=ss({prop:"minHeight",transform:Tp});ss({prop:"size",cssProperty:"width",transform:Tp}),ss({prop:"size",cssProperty:"height",transform:Tp});CV(XSt,vce,ekt,tkt,nkt,okt,ss({prop:"boxSizing"}));const vV={border:{themeKey:"borders",transform:Qh},borderTop:{themeKey:"borders",transform:Qh},borderRight:{themeKey:"borders",transform:Qh},borderBottom:{themeKey:"borders",transform:Qh},borderLeft:{themeKey:"borders",transform:Qh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cz},color:{themeKey:"palette",transform:Vv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vv},backgroundColor:{themeKey:"palette",transform:Vv},p:{style:Rl},pt:{style:Rl},pr:{style:Rl},pb:{style:Rl},pl:{style:Rl},px:{style:Rl},py:{style:Rl},padding:{style:Rl},paddingTop:{style:Rl},paddingRight:{style:Rl},paddingBottom:{style:Rl},paddingLeft:{style:Rl},paddingX:{style:Rl},paddingY:{style:Rl},paddingInline:{style:Rl},paddingInlineStart:{style:Rl},paddingInlineEnd:{style:Rl},paddingBlock:{style:Rl},paddingBlockStart:{style:Rl},paddingBlockEnd:{style:Rl},m:{style:Fl},mt:{style:Fl},mr:{style:Fl},mb:{style:Fl},ml:{style:Fl},mx:{style:Fl},my:{style:Fl},margin:{style:Fl},marginTop:{style:Fl},marginRight:{style:Fl},marginBottom:{style:Fl},marginLeft:{style:Fl},marginX:{style:Fl},marginY:{style:Fl},marginInline:{style:Fl},marginInlineStart:{style:Fl},marginInlineEnd:{style:Fl},marginBlock:{style:Fl},marginBlockStart:{style:Fl},marginBlockEnd:{style:Fl},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:OO},rowGap:{style:RO},columnGap:{style:FO},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tp},maxWidth:{style:vce},minWidth:{transform:Tp},height:{transform:Tp},maxHeight:{transform:Tp},minHeight:{transform:Tp},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"}},by=function(){function e(n,o,i,a){const s={[n]:o,theme:i},c=a[n];if(!c)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const g=wV(i,u)||{};return h?h(s):v4(s,o,f=>{let x=zO(g,p,f);return f===x&&typeof f=="string"&&(x=zO(g,p,`${n}${f==="default"?"":$i(f)}`,f)),d===!1?x:{[d]:x}})}return function n(o){const{sx:i,theme:a={},nested:s}=o||{};if(!i)return null;const c=a.unstable_sxConfig??vV;function d(u){let p=u;if(typeof u=="function")p=u(a);else if(typeof u!="object")return u;if(!p)return null;const h=function(x={}){return x.keys?.reduce((y,b)=>(y[x.up(b)]={},y),{})||{}}(a.breakpoints),g=Object.keys(h);let f=h;return Object.keys(p).forEach(x=>{const y=function(b,w){return typeof b=="function"?b(w):b}(p[x],a);if(y!=null)if(typeof y=="object")if(c[x])f=CE(f,e(x,y,a,c));else{const b=v4({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce((k,$)=>k.concat(Object.keys($)),[]),v=new Set(C);return w.every(k=>v.size===Object.keys(k).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=CE(f,b)}else f=CE(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":Eme(a,Lme(g,f))}:Eme(a,Lme(g,f))}return Array.isArray(i)?i.map(d):d(i)}}();function ikt(e,n){const o=this;if(o.vars){if(!o.colorSchemes?.[e]||typeof o.getColorSchemeSelector!="function")return{};let i=o.getColorSchemeSelector(e);return i==="&"?n:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:n})}return o.palette.mode===e?n:{}}function Sce(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=qd({breakpoints:BSt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:XXe(a),shape:{...MSt,...s}},c);return d=function(u){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...b)=>p(u.breakpoints.up(...b),y),x.down=(...b)=>p(u.breakpoints.down(...b),y),x.between=(...b)=>p(u.breakpoints.between(...b),y),x.only=(...b)=>p(u.breakpoints.only(...b),y),x.not=(...b)=>{const w=p(u.breakpoints.not(...b),y);return w.includes("not all and")?w.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):w}}const g={},f=x=>(h(g,x),g);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=ikt,d=n.reduce((u,p)=>qd(u,p),d),d.unstable_sxConfig={...vV,...c?.unstable_sxConfig},d.unstable_sx=function(u){return by({sx:u,theme:this})},d}function rie(e=null){const n=m.useContext(TXe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}by.filterProps=["sx"];const rkt=Sce();function eet(e=rkt){return rie(e)}function Dme(e){const n=_7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function tet({styles:e,themeId:n,defaultTheme:o={}}){const i=eet(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>Dme(typeof c=="function"?c(a):c)):Dme(s)),t.jsx(GXe,{styles:s})}const Pme=e=>e,akt=(()=>{let e=Pme;return{configure(n){e=n},generate:n=>e(n),reset(){e=Pme}}})();function net(e){var n,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(o=net(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function Ei(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=net(e))&&(i&&(i+=" "),i+=n);return i}const lkt={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 Jr(e,n,o="Mui"){const i=lkt[n];return i?`${o}-${i}`:`${akt.generate(e)}-${n}`}function Dr(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Jr(e,a,o)}),i}function oet(e){const{variants:n,...o}=e,i={variants:n,style:_7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=_7(a.style))}),i}const skt=Sce();function qQ(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function wx(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function ckt(e){return e?(n,o)=>o[e]:null}function vz(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>vz(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?wx(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?wx(_7(c),o):c}return iet(e,i.variants,[a],o)}return i?.isProcessed?o?wx(_7(i.style),o):i.style:o?wx(_7(i),o):i}function iet(e,n,o=[],i=void 0){let a;e:for(let s=0;s<n.length;s+=1){const c=n[s];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},o.push(i?wx(_7(c.style(a)),i):c.style(a))):o.push(i?wx(_7(c.style),i):c.style)}return o}function dkt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function aie(e,n,o=!1){const i={...n};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const s=a;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const c=e[s],d=n[s];if(d)if(c){i[s]={...d};for(const u in c)if(Object.prototype.hasOwnProperty.call(c,u)){const p=u;i[s][p]=aie(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=Ei(e?.className,n?.className):s==="style"&&o&&n.style?i.style={...e?.style,...n?.style}:i[s]===void 0&&(i[s]=e[s])}return i}const Yp=typeof window<"u"?m.useLayoutEffect:m.useEffect;function kce(e,n=0,o=1){return function(i,a=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(i,s))}(e,n,o)}function K7(e){if(e.type)return e;if(e.charAt(0)==="#")return K7(function(s){s=s.slice(1);const c=new RegExp(`.{1,${s.length>=6?2:1}}`,"g");let d=s.match(c);return d&&d[0].length===1&&(d=d.map(u=>u+u)),d?`rgb${d.length===4?"a":""}(${d.map((u,p)=>p<3?parseInt(u,16):Math.round(parseInt(u,16)/255*1e3)/1e3).join(", ")})`:""}(e));const n=e.indexOf("("),o=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(C4(9,e));let i,a=e.substring(n+1,e.length-1);if(o==="color"){if(a=a.split(" "),i=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(C4(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const Rj=(e,n)=>{try{return(o=>{const i=K7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function SV(e){const{type:n,colorSpace:o}=e;let{values:i}=e;return n.includes("rgb")?i=i.map((a,s)=>s<3?parseInt(a,10):a):n.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=n.includes("color")?`${o} ${i.join(" ")}`:`${i.join(", ")}`,`${n}(${i})`}function ret(e){e=K7(e);const{values:n}=e,o=n[0],i=n[1]/100,a=n[2]/100,s=i*Math.min(a,1-a),c=(p,h=(p+o/30)%12)=>a-s*Math.max(Math.min(h-3,9-h,1),-1);let d="rgb";const u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return e.type==="hsla"&&(d+="a",u.push(n[3])),SV({type:d,values:u})}function lie(e){let n=(e=K7(e)).type==="hsl"||e.type==="hsla"?K7(ret(e)).values:e.values;return n=n.map(o=>(e.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function NO(e,n){return e=K7(e),n=kce(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,SV(e)}function I9(e,n,o){try{return NO(e,n)}catch{return e}}function kV(e,n){if(e=K7(e),n=kce(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-n;return SV(e)}function la(e,n,o){try{return kV(e,n)}catch{return e}}function $V(e,n){if(e=K7(e),n=kce(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*n;else if(e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*n;return SV(e)}function sa(e,n,o){try{return $V(e,n)}catch{return e}}function eD(e,n,o){try{return function(i,a=.15){return lie(i)>.5?kV(i,a):$V(i,a)}(e,n)}catch{return e}}const aet=m.createContext(null);function $ce(){return m.useContext(aet)}const ukt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function pkt(e){const{children:n,theme:o}=e,i=$ce(),a=m.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[ukt]=i!==null),s},[o,i]);return t.jsx(aet.Provider,{value:a,children:n})}const set=m.createContext();function hkt({value:e,...n}){return t.jsx(set.Provider,{value:e??!0,...n})}const AV=()=>m.useContext(set)??!1,cet=m.createContext(void 0);function mkt({value:e,children:n}){return t.jsx(cet.Provider,{value:e,children:n})}function gkt({props:e,name:n}){return function(o){const{theme:i,name:a,props:s}=o;if(!i||!i.components||!i.components[a])return s;const c=i.components[a];return c.defaultProps?aie(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:aie(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:m.useContext(cet)}})}let Bme=0;const Mme={...Ibt}.useId;function jV(e){if(Mme!==void 0){const n=Mme();return e??n}return function(n){const[o,i]=m.useState(n),a=n||o;return m.useEffect(()=>{o==null&&(Bme+=1,i(`mui-${Bme}`))},[o]),a}(e)}const _me={};function zme(e,n,o,i=!1){return m.useMemo(()=>{const a=e&&n[e]||n;if(typeof o=="function"){const s=o(a),c=e?{...n,[e]:s}:s;return i?()=>c:c}return e?{...n,[e]:o}:{...n,...o}},[e,n,o,i])}function det(e){const{children:n,theme:o,themeId:i}=e,a=rie(_me),s=$ce()||_me,c=zme(i,a,o),d=zme(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const g=rie(),f=jV()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&g===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",Yp(()=>{const b=document.querySelector("head");if(!b)return;const w=b.firstChild;if(y){if(w&&w.hasAttribute?.("data-mui-layer-order")&&w.getAttribute("data-mui-layer-order")===f)return;const C=document.createElement("style");C.setAttribute("data-mui-layer-order",f),C.textContent=y,b.prepend(C)}else b.querySelector(`style[data-mui-layer-order="${f}"]`)?.remove()},[y,f]),y?t.jsx(tet,{styles:y}):null}(c);return t.jsx(pkt,{theme:d,children:t.jsx(TXe.Provider,{value:c,children:t.jsx(hkt,{value:u,children:t.jsxs(mkt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Ome={theme:void 0},sie="mode",cie="color-scheme",fkt="data-color-scheme";function xkt(){}const ykt=({key:e,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(o){if(typeof window>"u")return;if(!n)return o;let i;try{i=n.localStorage.getItem(e)}catch{}return i||o},set:o=>{if(n)try{n.localStorage.setItem(e,o)}catch{}},subscribe:o=>{if(!n)return xkt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function KQ(){}function Fme(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Rme(e,n){return e.mode==="light"||e.mode==="system"&&e.systemMode==="light"?n("light"):e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark"?n("dark"):void 0}function bkt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=sie,colorSchemeStorageKey:c=cie,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=ykt,noSsr:p=!1}=e,h=a.join(","),g=a.length>1,f=m.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=m.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=m.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=m.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,P=y?.get(i)||i;return{mode:L,systemMode:Fme(L),lightColorScheme:I,darkColorScheme:P}}),[C,v]=m.useState(p||!g);m.useEffect(()=>{v(!0)},[]);const k=function(L){return Rme(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),$=m.useCallback(L=>{w(I=>{if(L===I.mode)return I;const P=L??n;return f?.set(P),{...I,mode:P,systemMode:Fme(P)}})},[f,n]),j=m.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const P={...I};return Rme(I,z=>{z==="light"&&(x?.set(L),P.lightColorScheme=L),z==="dark"&&(y?.set(L),P.darkColorScheme=L)}),P}):w(I=>{const P={...I},z=L.light===null?o:L.light,_=L.dark===null?i:L.dark;return z&&(h.includes(z)?(P.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),_&&(h.includes(_)?(P.darkColorScheme=_,y?.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),P}):w(I=>(x?.set(o),y?.set(i),{...I,lightColorScheme:o,darkColorScheme:i}))},[h,x,y,o,i]),A=m.useCallback(L=>{b.mode==="system"&&w(I=>{const P=L?.matches?"dark":"light";return I.systemMode===P?I:{...I,systemMode:P}})},[b.mode]),E=m.useRef(A);return E.current=A,m.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const L=(...P)=>E.current(...P),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[g]),m.useEffect(()=>{if(g){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&$(z||n)})||KQ,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||KQ,P=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||KQ;return()=>{L(),I(),P()}}},[j,$,h,n,d,g,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?k:void 0,setMode:$,setColorScheme:j}}function wkt(e=""){function n(...o){if(!o.length)return"";const i=o[0];return typeof i!="string"||i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${i}`:`, var(--${e?`${e}-`:""}${i}${n(...o.slice(1))})`}return(o,...i)=>`var(--${e?`${e}-`:""}${o}${n(...i)})`}const Nme=(e,n,o,i=[])=>{let a=e;n.forEach((s,c)=>{c===n.length-1?Array.isArray(a)?a[Number(s)]=o:a&&typeof a=="object"&&(a[s]=o):a&&typeof a=="object"&&(a[s]||(a[s]=i.includes(s)?[]:{}),a=a[s])})};function ZQ(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(g,f=[],x=[]){Object.entries(g).forEach(([y,b])=>{(!p||p&&!p([...f,y]))&&b!=null&&(typeof b=="object"&&Object.keys(b).length>0?h(b,[...f,y],Array.isArray(b)?[...x,y]:x):u([...f,y],b,x))})})(d)})(e,(d,u,p)=>{if(!(typeof u!="string"&&typeof u!="number"||i&&i(d,u))){const h=`--${o?`${o}-`:""}${d.join("-")}`,g=((f,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>f.includes(y))||f[f.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(d,u);Object.assign(a,{[h]:g}),Nme(s,d,`var(${h})`,p),Nme(c,d,`var(${h}, ${g})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function Xr(e,n,o=void 0){const i={};for(const a in e){const s=e[a];let c="",d=!0;for(let u=0;u<s.length;u+=1){const p=s[u];p&&(c+=(d===!0?"":" ")+n(p),d=!1,o&&o[p]&&(c+=" "+o[p]))}i[a]=c}return i}function JQ(e,n){return m.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const vI={black:"#000",white:"#fff"},Ckt={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},vkt="#f3e5f5",Skt="#ce93d8",kkt="#ba68c8",$kt="#ab47bc",Akt="#9c27b0",jkt="#7b1fa2",Ekt="#e57373",Ikt="#ef5350",Lkt="#f44336",Vme="#d32f2f",Tkt="#c62828",Dkt="#ffb74d",Pkt="#ffa726",Bkt="#ff9800",Mkt="#f57c00",_kt="#e65100",zkt="#e3f2fd",Okt="#90caf9",Hme="#42a5f5",Fkt="#1976d2",Rkt="#1565c0",Nkt="#4fc3f7",Vkt="#29b6f6",Hkt="#03a9f4",Ume="#0288d1",Ukt="#01579b",Wkt="#81c784",Qkt="#66bb6a",Gkt="#4caf50",Ykt="#388e3c",qkt="#2e7d32",Kkt="#1b5e20";function uet(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vI.white,default:vI.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const pet=uet();function het(){return{text:{primary:vI.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:vI.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const die=het();function Wme(e,n,o,i){const a=i.light||i,s=i.dark||1.5*i;e[n]||(e.hasOwnProperty(o)?e[n]=e[o]:n==="light"?e.light=$V(e.main,a):n==="dark"&&(e.dark=kV(e.main,s)))}function Qme(e,n,o,i,a){const s=a.light||a,c=a.dark||1.5*a;n[o]||(n.hasOwnProperty(i)?n[o]=n[i]:o==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(100*s).toFixed(0)}%)`:o==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(100*c).toFixed(0)}%)`))}function Ace(e){const{mode:n="light",contrastThreshold:o=3,tonalOffset:i=.2,colorSpace:a,...s}=e,c=e.primary||function(b="light"){return b==="dark"?{main:Okt,light:zkt,dark:Hme}:{main:Fkt,light:Hme,dark:Rkt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:Skt,light:vkt,dark:$kt}:{main:Akt,light:kkt,dark:jkt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:Lkt,light:Ekt,dark:Vme}:{main:Vme,light:Ikt,dark:Tkt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:Vkt,light:Nkt,dark:Ume}:{main:Ume,light:Hkt,dark:Ukt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Qkt,light:Wkt,dark:Ykt}:{main:qkt,light:Gkt,dark:Kkt}}(n),g=e.warning||function(b="light"){return b==="dark"?{main:Pkt,light:Dkt,dark:Mkt}:{main:"#ed6c02",light:Bkt,dark:_kt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const k=lie(C),$=lie(v);return(Math.max(k,$)+.05)/(Math.min(k,$)+.05)}(b,die.text.primary)>=o?die.text.primary:pet.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:k=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(C4(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(C4(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(Qme(a,b,"light",v,i),Qme(a,b,"dark",k,i)):(Wme(b,"light",v,i),Wme(b,"dark",k,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=uet():n==="dark"&&(y=het()),qd({common:{...vI},mode:n,primary:x({color:c,name:"primary"}),secondary:x({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:u,name:"error"}),warning:x({color:g,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:Ckt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function Zkt(e){const n={};return Object.entries(e).forEach(o=>{const[i,a]=o;typeof a=="object"&&(n[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),n}function Jkt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function Xkt(e){return Math.round(1e5*e)/1e5}const Gme={textTransform:"uppercase"},Yme='"Roboto", "Helvetica", "Arial", sans-serif';function met(e,n){const{fontFamily:o=Yme,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...g}=typeof n=="function"?n(e):n,f=i/14,x=h||(w=>w/u*f+"rem"),y=(w,C,v,k,$)=>({fontFamily:o,fontWeight:w,fontSize:x(C),lineHeight:v,...o===Yme?{letterSpacing:`${Xkt(k/C)}em`}:{},...$,...p}),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(c,14,1.75,.4,Gme),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Gme),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qd({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},g,{clone:!1})}function dl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const e$t=["none",dl(0,2,1,-1,0,1,1,0,0,1,3,0),dl(0,3,1,-2,0,2,2,0,0,1,5,0),dl(0,3,3,-2,0,3,4,0,0,1,8,0),dl(0,2,4,-1,0,4,5,0,0,1,10,0),dl(0,3,5,-1,0,5,8,0,0,1,14,0),dl(0,3,5,-1,0,6,10,0,0,1,18,0),dl(0,4,5,-2,0,7,10,1,0,2,16,1),dl(0,5,5,-3,0,8,10,1,0,3,14,2),dl(0,5,6,-3,0,9,12,1,0,3,16,2),dl(0,6,6,-3,0,10,14,1,0,4,18,3),dl(0,6,7,-4,0,11,15,1,0,4,20,3),dl(0,7,8,-4,0,12,17,2,0,5,22,4),dl(0,7,8,-4,0,13,19,2,0,5,24,4),dl(0,7,9,-4,0,14,21,2,0,5,26,4),dl(0,8,9,-5,0,15,22,2,0,6,28,5),dl(0,8,10,-5,0,16,24,2,0,6,30,5),dl(0,8,11,-5,0,17,26,2,0,6,32,5),dl(0,9,11,-5,0,18,28,2,0,7,34,6),dl(0,9,12,-6,0,19,29,2,0,7,36,6),dl(0,10,13,-6,0,20,31,3,0,8,38,7),dl(0,10,13,-6,0,21,33,3,0,8,40,7),dl(0,10,14,-6,0,22,35,3,0,8,42,7),dl(0,11,14,-7,0,23,36,3,0,9,44,8),dl(0,11,15,-7,0,24,38,3,0,9,46,8)],t$t={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},get={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qme(e){return`${Math.round(e)}ms`}function n$t(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function o$t(e){const n={...t$t,...e.easing},o={...get,...e.duration};return{getAutoHeightDuration:n$t,create:(i=["all"],a={})=>{const{duration:s=o.standard,easing:c=n.easeInOut,delay:d=0,...u}=a;return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof s=="string"?s:qme(s)} ${c} ${typeof d=="string"?d:qme(d)}`).join(",")},...e,easing:n,duration:o}}const i$t={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function r$t(e){return Uf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fet(e={}){const n={...e};return function o(i){const a=Object.entries(i);for(let s=0;s<a.length;s++){const[c,d]=a[s];!r$t(d)||c.startsWith("unstable_")?delete i[c]:Uf(d)&&(i[c]={...d},o(i[c]))}}(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
3
3
|
|
|
4
4
|
const theme = ${JSON.stringify(n,null,2)};
|
|
5
5
|
|
|
@@ -6655,7 +6655,7 @@ Initiate your first transfer to start earning yield.`,insuredFundsTooltip:"Secur
|
|
|
6655
6655
|
padding-top: ${e=>Gu.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
6656
6656
|
`,TCn=l.div``,DCn=l(e=>m.createElement("svg",{width:598,height:361,viewBox:"0 0 598 361",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M3 42V10C3 5.58172 6.58172 2 11 2H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 42V10C595 5.58172 591.418 2 587 2H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M3 319V351C3 355.418 6.58172 359 11 359H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 319V351C595 355.418 591.418 359 587 359H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M160 164.999C160 163.344 161.05 162 162.344 162L232.656 162C233.95 162 235 163.344 235 164.999C235 166.655 233.95 167.999 232.656 167.999L162.344 167.999C161.05 167.999 160 166.655 160 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M337.544 164.999C337.544 163.344 338.944 162 340.669 162L434.419 162C436.144 162 437.544 163.344 437.544 164.999C437.544 166.655 436.144 167.999 434.419 167.999L340.669 167.999C338.944 167.999 337.544 166.655 337.544 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M261.544 165C261.544 163.344 262.594 162 263.888 162L309.2 162C310.494 162 311.544 163.344 311.544 165C311.544 166.656 310.494 168 309.2 168L263.888 168C262.594 168 261.544 166.656 261.544 165Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 202C138 200.344 140.924 199 144.527 199L453.473 199C457.076 199 460 200.344 460 202C460 203.656 457.076 205 453.473 205L144.527 205C140.924 205 138 203.656 138 202Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 276C138 274.344 140.924 273 144.527 273L453.473 273C457.076 273 460 274.344 460 276C460 277.656 457.076 279 453.473 279L144.527 279C140.924 279 138 277.656 138 276Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M207 239C207 237.344 209.29 236 212.111 236L385.889 236C388.71 236 391 237.344 391 239C391 240.656 388.71 242 385.889 242L212.111 242C209.29 242 207 240.656 207 239Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M3 113C234.19 51.6667 363.81 51.6667 595 113",stroke:"#FAFAFA",strokeWidth:5,strokeLinecap:"round"})))`
|
|
6657
6657
|
transform: scale(1, 0.9);
|
|
6658
|
-
`,PCn=l(wl)``,A$e="application/pdf",hpt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],BCn={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function MCn(e,n,o){const i=e.getViewport({scale:n}),a=document.createElement("canvas");a.width=Math.floor(i.width),a.height=Math.floor(i.height);const s=a.getContext("2d");if(s==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:s,viewport:i}).promise,(await function(c,d){return new Promise((u,p)=>{c.toBlob(h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))},"image/jpeg",d)})}(a,o)).arrayBuffer()}async function _Cn(e,n){const o=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===A$e){const a=await async function(s,c){const[{PDFDocument:d},u]=await Promise.all([fd(()=>import("./pdf-lib-
|
|
6658
|
+
`,PCn=l(wl)``,A$e="application/pdf",hpt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],BCn={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function MCn(e,n,o){const i=e.getViewport({scale:n}),a=document.createElement("canvas");a.width=Math.floor(i.width),a.height=Math.floor(i.height);const s=a.getContext("2d");if(s==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:s,viewport:i}).promise,(await function(c,d){return new Promise((u,p)=>{c.toBlob(h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))},"image/jpeg",d)})}(a,o)).arrayBuffer()}async function _Cn(e,n){const o=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===A$e){const a=await async function(s,c){const[{PDFDocument:d},u]=await Promise.all([fd(()=>import("./pdf-lib-DIbgSioz.js").then(b=>b.i),__vite__mapDeps([0,1,2])),fd(()=>import("./pdf--1Oee4-D.js").then(b=>b.i),__vite__mapDeps([0,1,2])).then(b=>b.pdfjs)]),p=await s.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,g=h.numPages,f=await d.create();for(let b=1;b<=g;b++){const w=await h.getPage(b),C=await MCn(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),k=v.scale(1);f.addPage([k.width,k.height]).drawImage(v,{x:0,y:0,width:k.width,height:k.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:A$e,lastModified:s.lastModified})}(o,n);return a.size<o.size?{blob:a,name:a.name}:{blob:e,name:n}}const i=await(async(a,s)=>{if(hpt.includes(a.type)===!1)return a;const c=await Jc(a,BCn),d=c.type.split("/")[1],u=`${s.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:a.lastModified,type:c.type})})(o,n);return{blob:i,name:i.name}}const zCn=({fileType:e="file",fileRef:n,name:o,value:i="",multiple:a=!1,acceptableTypes:s,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:o,value:i,size:1e3,"data-testid":Y("input-file-element-mobile",o),onChange:async u=>{const p=u.target.files?.[0],h=p?.size;p!=null&&h!=null?(c?.(!1),d(p),u.target.value=""):(c?.(!0),u.target.value="")},style:{display:"none"},accept:`${(s??"image/jpg, image/jpeg").toString()}`,multiple:a,capture:!0}),lT=({shouldDisplay:e,width:n=30,height:o=30,styles:i,animationInLoop:a=!1})=>{const[,s]=n1e(e1t),[c]=Tr("MoneyTransferSuccess");return T.useEffect(()=>{e&&s(!0)},[e,s]),e&&c!=null?t.jsx(ol,{style:{width:n,height:o,...i},play:!0,animationData:c,loop:a,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};l.div`
|
|
6659
6659
|
display: flex;
|
|
6660
6660
|
overflow: hidden;
|
|
6661
6661
|
width: 100%;
|
|
@@ -20645,7 +20645,7 @@ to {
|
|
|
20645
20645
|
${({isMenuVisible:e})=>e===!1?je`
|
|
20646
20646
|
display: none;
|
|
20647
20647
|
`:null};
|
|
20648
|
-
`,Pue=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),nLe=m.lazy(()=>fd(()=>import("./index-
|
|
20648
|
+
`,Pue=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),nLe=m.lazy(()=>fd(()=>import("./index-fhWfMdvB.js"),__vite__mapDeps([3,0,1,2])));function Bue({src:e,autoPlay:n=!0,config:o,controls:i=!0,height:a="100%",isModalOpen:s,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:g="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=ce(),[w,C]=m.useState(!1);m.useEffect(()=>{s===!0&&n?C(!0):s===!1&&C(!1)},[s,n]);const v={};o?.youtube&&(v.youtube=o.youtube);const k=()=>{C(!1),f?.(),s!=null&&x?.()},$=()=>{C(!0),y?.()};return s!=null?s?Ur.createPortal(t.jsx(gno,{windowSize:b,role:"presentation",children:t.jsx(Fn,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(fno,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(xno,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(mno,{src:h,alt:"Video thumbnail"}),t.jsx(pno,{onClick:()=>{C(!0),y?.()},children:t.jsx(hno,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(nLe,{src:e,playing:w,controls:i,muted:d,loop:c,width:"100%",height:"100%",onEnded:k,onPlay:$,config:v})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:a,...p}}),children:t.jsx(nLe,{src:e,playing:w,controls:i,muted:d,loop:c,width:g,height:a,style:p,light:!(!u||w)&&(h??!0),onEnded:k,onPlay:$,config:v})})}const uno=Hn`
|
|
20649
20649
|
0% {
|
|
20650
20650
|
transform: rotate(0deg);
|
|
20651
20651
|
}
|
|
@@ -23095,7 +23095,7 @@ to {
|
|
|
23095
23095
|
height: ${e=>e2t.chartHeight.valuePx(e.windowSize)};
|
|
23096
23096
|
`,rdo=l.div`
|
|
23097
23097
|
display: flex;
|
|
23098
|
-
`,ado=(e,n,o,i,a,s)=>{const c=n.includes("this_period_vs_last_period")||n.includes("this_period_vs_last_period_percent");c===!0&&s?.trackCompareFilterTimeFrame(nc(o),w0(i),"bar",AR(e,i,a)),s?.trackDateRangeFilterChange(nc(o),"bar",c,void 0,AR(e,i,a))},VJ="ZeniSwitch",af={root:`${VJ}-root`,switchBase:`${VJ}-switchBase`,track:`${VJ}-track`},ldo=(19.43-17)/2,sdo=l(({className:e,...n})=>t.jsx(KVt,{...n,className:e,classes:{...af}}))(({theme:e})=>({width:34,height:19.43,padding:0,marginLeft:r.sp2,[`& .${af.switchBase}`]:{padding:ldo,color:e.colors.grey5,"&.Mui-checked":{transform:"translateX(14.57px)"}},"& .MuiSwitch-thumb":{width:17,height:17,boxShadow:"0px 1.82px 4.86px 0px #0000001A, 0px 1.82px 0.61px 0px #00000008"},[`& .${af.track}`]:{backgroundColor:e.colors.grey2,borderRadius:S[5],opacity:1},[`& .${af.switchBase}.Mui-checked`]:{color:e.colors.grey5},[`& .${af.switchBase}.Mui-checked + .${af.track}`]:{backgroundColor:e.
|
|
23098
|
+
`,ado=(e,n,o,i,a,s)=>{const c=n.includes("this_period_vs_last_period")||n.includes("this_period_vs_last_period_percent");c===!0&&s?.trackCompareFilterTimeFrame(nc(o),w0(i),"bar",AR(e,i,a)),s?.trackDateRangeFilterChange(nc(o),"bar",c,void 0,AR(e,i,a))},VJ="ZeniSwitch",af={root:`${VJ}-root`,switchBase:`${VJ}-switchBase`,track:`${VJ}-track`},ldo=(19.43-17)/2,sdo=l(({className:e,...n})=>t.jsx(KVt,{...n,className:e,classes:{...af}}))(({theme:e})=>({width:34,height:19.43,padding:0,marginLeft:r.sp2,[`& .${af.switchBase}`]:{padding:ldo,color:e.colors.grey5,"&.Mui-checked":{transform:"translateX(14.57px)"}},"& .MuiSwitch-thumb":{width:17,height:17,boxShadow:"0px 1.82px 4.86px 0px #0000001A, 0px 1.82px 0.61px 0px #00000008"},[`& .${af.track}`]:{backgroundColor:e.colors.grey2,borderRadius:S[5],opacity:1},[`& .${af.switchBase}.Mui-checked`]:{color:e.colors.grey5},[`& .${af.switchBase}.Mui-checked + .${af.track}`]:{backgroundColor:e.colors.brandColorJadeDark,opacity:1},[`& .${af.switchBase}.Mui-disabled`]:{color:e.colors.grey4},[`& .${af.switchBase}.Mui-disabled + .${af.track}`]:{opacity:.5,backgroundColor:e.colors.background}})),Yue=e=>t.jsx(sdo,{...e});function Rd(e){if(e==="week"||e==="free_range")throw new Error(`Timeframe "${e}" is not allowed`);return e}const cdo=l.div`
|
|
23099
23099
|
position: relative;
|
|
23100
23100
|
width: ${e=>e.windowSize==="small"?"100%":"288px"};
|
|
23101
23101
|
display: flex;
|
|
@@ -75256,7 +75256,7 @@ ${za.beneficiaryAddress} ${ne}`,d(fe),I(!0)})(o),"data-testid":Y("title-text-cop
|
|
|
75256
75256
|
padding: ${r.sp3} ${r.sp0};
|
|
75257
75257
|
`,tJe=l(Dt)`
|
|
75258
75258
|
min-width: 140px;
|
|
75259
|
-
`,gI=TJe(rSt()),sSr=["sandbox","production"],cSr=["development","staging","production"],bS=()=>Ec==="DEV"||Ec==="QA"||Ec==="PUNE"||Ec==="SUNNYVALE"||Ec==="DELHI"||Ec==="MOHALI",h0e="https://zeni-webapp-qa.uc.r.appspot.com",Ec=D4("QA",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),AEr=(e=>D4(e,sSr))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Ec)),nJe=(e=>D4(e,cSr))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Ec)),m0e=Ec==="DEV"||Ec==="QA"?.2:.8,Lyt=m0e,Fa={sentryDsn:"",sentryTraceSamplingRate:m0e,sentryProfileSamplingRate:Lyt,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let ck,bL;function dSr(e){Fa.sentryDsn=e.keys.SENTRY_DSN,Fa.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):m0e,Fa.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):Lyt,Fa.googleClientId=e.keys.GOOGLE_CLIENT_ID,Fa.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Fa.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Fa.mixpanelToken=e.keys.MIXPANEL_TOKEN,Fa.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Fa.pusherCluster=e.keys.PUSHER_CLUSTER,Fa.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Fa.appUrl=e.keys.WEB_ENDPOINT,Fa.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Fa.cardVaultId=e.keys.UNIT_VAULT_ID,Fa.stripeKey=e.keys.STRIPE_KEY,Fa.qboRedirectionUrl=e.keys.QBO_URL,Fa.mixpanelUrl=e.keys.MIXPANEL_URL,Fa.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,bL=e.externalEndPoints,ck=e.apiEndPoints,function(n,o){const i=new Set,a=[...Object.values(n),...Object.values(o)];for(const s of a)if(typeof s=="string"&&s.length>0)try{i.add(new URL(s).origin)}catch{}for(const s of i){if(document.querySelector(`link[rel="preconnect"][href="${s}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=s,document.head.appendChild(c)}}(ck,bL)}let oJe=!1;function dv(){oJe||(Bh.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:bL.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),oJe=!0)}const uSr=new Set(Array.from(mo.EVENTS_WITHOUT_SUPER_PROPERTIES));let iJe=!1,rJe=!1;function Qse(){if(iJe)return;iJe=!0,dv();const e=mo.extractUtmParamsFromUrl();Object.keys(e).length>0&&Bh.register(e),bS()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const pSr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function hSr(){const e=function(){return Bh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||pSr.has(o));for(const o of n)Bh.unregister(o);bS()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function aJe(){rJe||(rJe=!0,hSr())}class Ov{identify(n,o){if(dv(),this.#t=n,n!=null&&o!=null&&(Ov.#e==null||!WCt({userId:n,traits:o},Ov.#e))){const{$email:i,...a}={...o};Bh.identify(n),i&&i!=null&&Bh.people.set_once({$email:i}),Bh.people.set(a),Ov.#e={userId:n,traits:o},bS()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(o)} `)}}identifyUserAndCompany(n,o,i,a,s){throw Error("Use identify in the web-app!!")}track(n,o){dv();const i=uSr.has(n);if(this.#t!=null||i){if(Qse(),this.#t!=null){const a={distinct_id:this.#t,...o};Bh.track(n,a)}else Bh.track(n,o);if(aJe(),bS()){const a=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(o)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(o)}`;console.log(a)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,o){dv(),Qse(),Bh.track(n,o),aJe(),bS()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){dv(),Bh.alias(n,o)}reset(){dv(),Bh.identify(void 0),this.#t=void 0,Ov.#e=void 0}static#e;#t}const Gse=new Ov,Tyt=new mo.Analytics(Gse);Tyt.trackWithoutUserId=Gse.trackWithoutUserId.bind(Gse);const dd=Tyt,mSr="openAiCfoScope",Yse="openAiCfoScopeOnDashboard";function gSr(e){const{location:n,navigate:o,mergeState:i}=e;o({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[Yse]:!0,...i}})}function jEr(e){const n=kL(e);if(n.createSessionAndSubmitState.fetchState==="In-Progress")return!0;const o=n.uiState?.currentChatSessionId;return o!=null&&n.responseStateByChatSessionId?.[o]?.answer?.fetchState==="In-Progress"}function g0e(e,n){const o=n!=null?e.find(d=>d.chatSession.chatSessionId===n):void 0,i=o?.questionAnswers??[],a=i[i.length-1],s=a?.responses.answer?.content?.summarizedTitle??"";return{currentChatSession:o?.chatSession,currentQuestionAnswer:a,currentQuestionAnswerSummary:s,currentChatSessionWithMessages:o,currentSessionQuestionAnswers:i}}function Dyt(e,n){return(e||n?.chatSessionSummary)??null}const Pyt="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",oV="zeni-ai-cfo-upload-promo-storage-changed",_i=new class{_isZeniUserCache;getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);return n!=null&&e!=null?JSON.parse(this.decrypt(n,e)):void 0}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!1}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!0}getSignedInUserTenant(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantEmailDomain===e)}getSignedInUserTenantWithId(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantId===e)}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_ACTIVE_TENANT_DOMAIN);if(!(n==null||e==null)){const o=this.decrypt(n,e),i=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS);if(i!=null)return JSON.parse(this.decrypt(i,e)).find(a=>a.tenantEmailDomain===o)}}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(n&&e!=null){const o=this.decrypt(n,e);return o?JSON.parse(o):[]}return[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),o)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(e=>window.localStorage.getItem(e)!=null).reduce((e,n)=>e&&n)}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_THEME]);this.ALL_IDs.filter(n=>!e.has(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n)).forEach(n=>window.localStorage.removeItem(n))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){const e=window.localStorage.getItem(this.ZENI_OTP_TOKEN),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null){let o=JSON.parse(this.decrypt(e,n));return o={...o,expiry:sn(o.expiry.toString())},o}}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const o=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let i={};if(o!=null)try{const a=JSON.parse(o);i=a!==null&&typeof a=="object"?a:{}}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(i))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const o=JSON.parse(n);return o!==null&&typeof o=="object"&&o[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(oV)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const o=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let i={};if(o!=null)try{const a=JSON.parse(o);i=a!==null&&typeof a=="object"?a:{}}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(i)),window.dispatchEvent(new CustomEvent(oV))}savePayNowInfoTooltip(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),o))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_PAY_NOW_INFO_TOOLTIP),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null)try{const o=this.decrypt(e,n);return o===""||o==null?void 0:JSON.parse(o)}catch{return}}saveZeniOtpTokenForCardHolder(e,n){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),o))}getZeniOtpTokenForCardHolder(e){const n=window.localStorage.getItem(`${this.ZENI_OTP_TOKEN}_${e}`),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)try{const i=this.decrypt(n,o);if(i===""||i==null)return;let a=JSON.parse(i);return a={...a,expiry:sn(a.expiry.toString())},a}catch{return}}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){const e=window.localStorage.getItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),n="7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c";if(e!=null)try{return this.decrypt(e,n)}catch{return window.localStorage.removeItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),null}return null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){const e=window.localStorage.getItem(this.ZENI_MAGIC_LINK_EMAIL);return e!=null?this.decrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"):null}encrypt(e,n){return gI.AES.encrypt(e,n).toString()}decrypt(e,n){return gI.AES.decrypt(e,n).toString(gI.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_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=Pyt;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_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]},Jg=(e,n)=>{const o=[...e??[]];return o.push(n),o},EEr=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},IEr=({state:e})=>_i.isSignedIn()===!0?jt.jsx(qbt,{}):jt.jsx(MJe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function fSr(){const e=Up(),n=Wp(),o=SL(),{tenantEmailDomain:i}=_Je(),[a,s]=m.useState(!1),c=ai(x=>x.tenantState.fetchState==="Completed"||x.tenantState.activeTenantFetchState.fetchState==="Completed"?V1(x):void 0),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=ai(x=>kL(x));m.useEffect(()=>{const x=n.state;x?.[Yse]===!0&&(s(!0),o({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...x,[Yse]:void 0}}))},[n.state,n.pathname,n.search,n.hash,o]);const p=m.useCallback(()=>{if(i==null)return;const x=Jg(n.state?.pathnameStackToGoBack,n.pathname);o(`/${i}/ai-cfo/explore`,{state:{pathnameStackToGoBack:x,referrer:n.state?.referrer??"Navigation"}})},[n.pathname,n.state,o,i]),h=m.useCallback(()=>{s(!1),p()},[p]),g=m.useCallback(()=>{s(!1)},[]),f=m.useCallback(()=>{d||c?.userRoleId==null?s(!1):e(wXe(c.userRoleId))},[e,d,c?.userRoleId]);return jt.jsx(lyt,{open:a,onClose:g,children:jt.jsxs(ayt,{children:[a&&!d?jt.jsx(wue,{analytics:dd,onLoad:x=>d?null:x.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,jt.jsx(Fre,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:d,showHeader:!1,togglePageView:d?h:void 0,onCloseClick:g,onCompleteClick:f})]})})}const qse=m.createContext(void 0);function _Q(){const e=m.useContext(qse);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const f0e=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],x0e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],Byt=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],Myt=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],_yt=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],zyt=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],Oyt=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],Fyt=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],Ryt=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Nyt(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let o=1;o<n.length;o+=1)if(n[o]==="transaction")return!0;return!1}const Vyt=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Hyt=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],Uyt=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],xSr=[...Byt,...f0e,...x0e,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...Vyt,...Hyt,...Uyt,...Myt,..._yt,...zyt,...Oyt,...Fyt,...Ryt];function Wyt(){const{pathname:e}=Wp(),n=e??"";return xSr.some(o=>Zse(o,n)!=null)||Nyt(e)}function wc(e){const{pathname:n}=Wp(),o=n??"";return e.some(i=>Zse(i,o)!=null)}const Qyt=m.createContext(null),y0e={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function ySr({children:e}){const[n,o]=m.useState(()=>new Set([])),i=n.size>0,a=m.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=m.useCallback(d=>{o(u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p})},[]),c={isLoading:i,activeLoadingStates:n,setLoading:a,clearLoading:s,clearAllLoading:m.useCallback(()=>{o(new Set)},[])};return jt.jsx(Qyt.Provider,{value:c,children:e})}function zQ(){const e=m.useContext(Qyt);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const Gyt=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],Yyt=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],bSr=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],wSr=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],CSr=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],vSr=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],SSr=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],qyt=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Kyt=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],kSr=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function b0e(e){const n=Pu(e),o=n.indexOf("review");if(o<2||n[o-1]!=="month_end_close_checks")return null;if(o===n.length-1)return"overview";const i=n[o+1];return i==null?"overview":kSr.includes(i)?i:null}const $Sr=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),ASr=new Set(["setup","verification","promo","approval-rules"]);function Pu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function w0e(e){const n=Pu(e),o=n[1]==="vendors"?1:-1;if(o<0||n.length<o+2)return;const i=n[o+1];if(i==="summary")return"vendors";if(i==="opex")return"opex_by_vendor";if(i==="schedules"){const a=n[o+2];return a==="prepaid_expenses"?"prepaid_expenses":a==="fixed_assets"?"fixed_assets":a==="accrued_expenses"?"accrued_expenses":void 0}return i==="filing_1099"?"form_1099":void 0}function Zyt(e,n,o){const i=Pu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function Jyt(e,n,o){return Zyt(e,n,i=>!o.has(i))}function Xyt(e){return Jyt(e,"bills",$Sr)}function ebt(e){return Jyt(e,"reimbursements",ASr)}function tbt(e){return Zyt(e,"tasks",n=>n==="group")}const jSr=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),ESr=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function C0e(e){const n=Pu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return jSr.has(o)?"checking":"checking_details"}function v0e(e){const n=Pu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return ESr.has(o)?"cards":"cards_detail"}function nbt(e){const n=Pu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function obt(e){return Pu(e)[1]==="performance"?"performance":void 0}function ibt(e){const n=Pu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function rbt(e){const n=Pu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function im(e,n){return n.some(o=>Zse(o,e)!=null)}function ISr(e){return im(e,f0e)?"reports":im(e,Gyt)?"ap_aging":im(e,Yyt)?"ar_aging":w0e(e)!=null?"vendors_tab":im(e,x0e)?"forecast":b0e(e)!=null?"month_end_close_review":im(e,qyt)?"cash_balance":im(e,Kyt)?"card_balance":tbt(e)?"task_checklist":nbt(e)!=null?"transaction_detail":obt(e)!=null?"performance":ibt(e)!=null?"bills_detail":rbt(e)!=null?"reimbursement_detail":Xyt(e)?"bills_list":ebt(e)?"reimbursement_list":im(e,bSr)?"cash_in_cash_out":im(e,wSr)?"operating_expenses":im(e,CSr)?"revenue":im(e,vSr)?"net_burn_or_income":im(e,SSr)?"cash_position":function(n){const o=Pu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":C0e(e)!=null?"checking":function(n){return Pu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":v0e(e)!=null?"cards":function(n){return Pu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return Pu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return Pu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function abt(e,n){switch(ISr(e)){case"reports":{const o=n?.selectedReportId;return o==null?void 0:function(i){switch(i){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}}(o)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return w0e(e);case"forecast":return"forecast";case"month_end_close_review":{const o=b0e(e);return o==null?void 0:function(i){switch(i){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}}(o)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return C0e(e);case"treasury":return"treasury";case"cards":return v0e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function lbt(){const{pathname:e}=Wp(),n=e??"",o=ai(i=>i.financeStatementState?.selectedReportId);return m.useMemo(()=>abt(n,{selectedReportId:o}),[n,o])}function OQ(){const{useFeatureGate:e}=Dl(),{isFeatureEnabled:n}=e(Gi.isAiCfoEnabled),o=ai(a=>V1(a)),i=_i.getSignedInUser();return i!=null&&i.userId!=null&&o!=null&&o.companyId!=null&&n}function LSr(){const{useFeatureGate:e}=Dl(),{isFeatureEnabled:n}=e(Gi.isAiCfoNavButtonEnabled),o=OQ();return n&&o}const sbt=m.createContext(void 0),TSr=({children:e})=>{const{tenantEmailDomain:n}=_Je(),o=n!=null?_i.getSignedInUserTenant(n):void 0,i=ai(u=>V1(u)),a=$L().tenantId,s=o?.tenantId,c=i?.tenantId,d=m.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return jt.jsx(sbt.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},DSr=()=>{const e=m.useContext(sbt);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function cbt(e,n){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!n)}function dbt(e){const{areTenantIdsInSync:n}=DSr(),o=OQ(),i=LSr();return n&&e&&i&&o}function LEr(e){const{pageContexts:n,canFetchSuggestedQuestions:o}=e,i=Up(),a=zJe(),s=m.useRef(null);m.useEffect(()=>{const c=s.current===!1&&o===!0;if(s.current=o,o&&n!=null&&n.length!==0)for(const d of n){const u=hce(a.getState(),d)?.fetchState;cbt(u,c)&&i(CXe({pageContext:d}))}},[o,i,n,a])}function ubt(e){(function(n){const{pageContext:o,canFetchSuggestedQuestions:i}=n,a=Up(),s=zJe(),c=m.useRef(null);m.useEffect(()=>{const d=c.current===!1&&i===!0;if(c.current=i,o==null||!i)return;const u=hce(s.getState(),o)?.fetchState;cbt(u,d)&&a(CXe({pageContext:o}))},[i,a,o,s])})({canFetchSuggestedQuestions:dbt(e.isDataReady),pageContext:e.pageContext})}function TEr(e){ubt({pageContext:lbt(),isDataReady:e.isDataReady})}const{questionTemplates:{sampleQuestion1:PSr,sampleQuestion2:BSr,sampleQuestion3:MSr}}=ee.getLocalizedStrings().aiCfo,_Sr=[PSr,BSr,MSr];function zSr(e,n=!1){ubt({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const o=dbt(!0),i=ai(g=>e!=null&&e!==""?hce(g,e):void 0),{useDynamicConfig:a}=Dl(),{configValue:s}=a(T3.aiCfoMessageDynamicConfig),c=m.useMemo(()=>Array.isArray(s?.default_message_list)?[...s.default_message_list]:[],[s?.default_message_list]),d=m.useMemo(()=>c.length>0?c:[..._Sr],[c]),u=e!=null&&e!=="",p=u&&o&&(i==null||i.fetchState!=="Completed"&&i.fetchState!=="Error"),h=m.useMemo(()=>{if(!u||!o)return d;if(p)return[];if(i?.fetchState==="Error")return d;const g=(i?.suggestedQuestions??[]).map(f=>f.trim()).filter(f=>f.length>0);return g.length===0?d:g},[o,d,u,p,i?.fetchState,i?.suggestedQuestions]);return{isSuggestedQuestionsLoading:!n&&p,suggestedPromptQuestions:m.useMemo(()=>n?[]:h,[n,h])}}function OSr({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=m.useCallback(()=>e===!0&&n!=null&&!_i.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=m.useState(o);return m.useEffect(()=>{a(o())},[o]),m.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(oV,s);const c=d=>{d.key===Pyt&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(oV,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:m.useCallback(()=>{n!=null&&_i.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const pbt=m.createContext(void 0),S0e=()=>m.useContext(pbt),FSr=e=>{const n=_i.isSignedIn(),o=_i.getSignedInUser(),[i,a]=m.useState(void 0),s=m.useMemo(()=>i,[i]),c=ai(p=>V1(p)),d=c.companyId,u=c.userRoleId;return m.useEffect(()=>{let p,h=!1;if(n&&c.tenantId!=null&&o?.userId!=null&&o.zeniSessionId!=null){i!=null&&(i.channels.all().forEach(w=>{i.unsubscribe(w.name)}),i.disconnect()),a(void 0);const g=o.userId,f=c.tenantId,x=o.zeniSessionId,y=async()=>{if(h)return;let w;try{w=await GCt(Fa.pusherClientSecret,{cluster:Fa.pusherCluster},{userId:g,tenantId:f,sessionId:x},!0)}catch(C){return void console.warn("Failed to initialize Pusher",C)}h?w?.disconnect():(a(w),w!=null&&(d!=null&&fI(w,d),g!=null&&fI(w,g),u!=null&&fI(w,u)))},b=()=>{const w=$L();return w.tenantId===f&&w.userId===g&&w.sessionId===x};if(b())y();else{let w=0;p=setInterval(()=>{h||(w++,b()?(clearInterval(p),y()):w>=30&&(clearInterval(p),vXe(g,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(g=>i?.unsubscribe(g.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),jt.jsx(pbt.Provider,{value:s,children:e.children})};function fI(e,n){const o=`private-encrypted-${n}`,i=e.channel(o);if(i?.subscribed===!0)return i;const a=e.subscribe(o);return a.bind("pusher:subscription_error",s=>{console.warn("Pusher Channel Connection Subscription Error",s)}),a}const RSr=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},k0e=e=>n=>{const o=S0e(),i=m.useRef(n.eventCallback),a=m.useRef(n.onSubscribed),s=m.useRef({}),c=m.useRef(0);m.useEffect(()=>{i.current=n.eventCallback,a.current=n.onSubscribed;const{events:u,eventCallback:p,onSubscribed:h,...g}=n;s.current=g},[n]);const d=m.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return m.useEffect(()=>{if(o!=null){const{events:u}=n,p=[];if(u.length===0)return;const h=new Set,g=()=>{if(a.current==null)return;const f=Date.now();f-c.current<5e3||(c.current=f,a.current(s.current))};return u.forEach(f=>{const[x,y]=RSr(f);if(y==="")return;const b=o.channel(x),w=v=>{i.current(y,v,s.current)};let C;if(b?.subscribed===!0)C=b,C.bind(y,w),h.has(x)||(h.add(x),g()),p.push(()=>{b.unbind(y,w)});else{if(C=b??o.subscribe(x),C.bind(y,w),!h.has(x)){h.add(x);const v=()=>{g()};C.bind("pusher:subscription_succeeded",v),p.push(()=>{C.unbind("pusher:subscription_succeeded",v)})}p.push(()=>{C.unbind(y,w)})}}),()=>{p.forEach(f=>f())}}},[o,d]),jt.jsx(e,{...n})},NSr=({children:e})=>{const n=eie("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});m.useEffect(()=>{const d=_i.getTheme()==null?n:_i.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?VO({palette:{mode:"dark"},...AEe},jEe,BQn,_Qn):VO({palette:{mode:"light"},...AEe},jEe,PQn,MQn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return jt.jsx(zEn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;_i.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},hbt=m.createContext(!1),VSr=hbt.Provider;function HSr(){return m.useContext(hbt)}const USr=()=>ai(e=>V1(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=Ybt();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function WSr({isTreasuryPromoVideoRemindMeLaterClicked:e,isTreasuryPromoVideoPlayed:n,loginCounterForTreasuryPromoVideo:o,isTreasuryVideoClosed:i=!1}){return!i&&!n&&(!e||o>0&&o%5==0)}const Kse=e=>u9n.includes(e),DO=e=>Aut.includes(e),lJe=e=>Kse(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":kR(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:DO(e)?`ai-cfo/${e}`:e,QSr=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],sJe=(e,n)=>e.includes(n),iV=e=>{switch(e.split("/")[2]){case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return function(n){if(n==null)return;const o=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const i of o)if(sJe(n,i))switch(i){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}}(e);case"performance":return"performance";case"month_end_close_checks":return function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const o=n.split("/"),i=o.indexOf("review"),a=i>=0?o[i+1]:void 0;return a!=null&&kR(a)?$ut(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of Aut)if(sJe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function cJe(e){let n=iV(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=iV(o[i])}return n??"home"}function GSr(e){return e.pathname.includes("settings")}function YSr(e){return e.pathname.includes("ai-cfo")}const qSr=()=>{const e=KSr();return Oj("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},KSr=()=>Wp().state?.message==="expenseAutomation";function ZSr(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const JSr=(e,n,o)=>{const i=SXe(e),a=YCt(e),s=kXe(o,e);return n||o||a||i||s},NC="AppDrawer",Im={root:`${NC}-root`,drawer:`${NC}-drawer`,appBar:`${NC}-appBar`,menuButton:`${NC}-menuButton`,appBarZenilogo:`${NC}-appBarZenilogo`,drawerZenilogo:`${NC}-drawerZenilogo`},wL=210,XSr=zn("div",{slot:"Root"})(({theme:e})=>({[`&.${Im.root}`]:{display:"flex"},[`& .${Im.drawer}`]:{[e.breakpoints.up("md")]:{width:wL,flexShrink:0,backgroundColor:e.colors.background}},[`& .${Im.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${Im.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${Im.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${Im.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),ekr=k0e(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=_Q(),[i,a]=T.useState(!1),[s,c]=m.useState(!1),d=Wp(),u=SL(),p=$L(),h=Z1e(),g=Up(),[f,x]=m.useState(!1),y=Te(),{useFeatureGate:b}=Dl(),{isFeatureEnabled:w}=b(Gi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(Gi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(Gi.isExpenseAutomationEnabledV2),[k,$]=m.useState(()=>_i.getSignedInUser());m.useEffect(()=>{const Qt=()=>{const ho=_i.getSignedInUser();$(ho)};return window.addEventListener("completeProfileDone",Qt),()=>{window.removeEventListener("completeProfileDone",Qt)}},[]);const j=ai(Qt=>V1(Qt)),A=j.masterTOSInfo?.isMasterTOSAccepted??!1,{setLoading:E}=zQ(),L=OQ(),I=g6(k),P=LZi(),z=HSr(),[_,W]=m.useState(void 0),{isFeatureEnabled:R}=b(Gi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:O}=b(Gi.isChargeCardFeatureEnabled),F=JSr(j,O,w),{isFeatureEnabled:M}=b(Gi.isSettingsFeatureEnabled),{isFeatureEnabled:H}=b(Gi.isReferralFeatureEnabled),{isFeatureEnabled:V}=b(Gi.isTreasuryEnabled),{isFeatureEnabled:G}=b(Gi.isTaskManagerCustomerUserAccessEnabled),N=I||!I&&G,Q=ai(Qt=>KCt(Qt));m.useEffect(()=>{const Qt=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",Qt),()=>{window.removeEventListener("scroll",Qt)}},[]);const K=ai(Qt=>ZCt(Qt)),q=ai(Qt=>Qt.expenseAutomationViewState.selectedPeriodByTenantId),ne=ai(Qt=>JCt(Qt)),{monthEndCloseChecksView:oe}=ne,Z=Oj("/signout")!==null,te=Oj("/:tenantEmailDomain/dashboard")!==null,ie=Oj("/:tenantEmailDomain/reports")!==null,re=Oj("/:tenantEmailDomain/onboarding/*")!==null,ue=qSr();m.useEffect(()=>{z&&H&&!re&&K.fetchState==="Not-Started"&&g(XCt(!0))},[z,H,K.fetchState,re]),m.useEffect(()=>{if(ue){const Qt=d.state?.origin;if(Qt!=null){const ho=evt(Qt);ho!=null&&g(X0e(ho))}}},[ue,d.state]);const fe=Z||re,de=ai(Qt=>Qt.tenantState),pe=ai(Qt=>de.fetchState==="Completed"?AXe(Qt):[]),{isFeatureEnabled:ae}=b(Gi.isApAgingFeatureEnabled),{isFeatureEnabled:se}=b(Gi.isArAgingFeatureEnabled),{isFeatureEnabled:me}=b(Gi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:ge}=b(Gi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ye}=b(Gi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:be}=b(Gi.isDashboardSidebarNewYearAnimationEnabled),xe=ai(Qt=>Kb(Qt).totalUnreadCount),Ce=ai(Qt=>Kb(Qt).notificationDetailsByTab.tasks.uiState.unreadCount),Ae=ai(Qt=>Kb(Qt).notificationDetailsByTab.comments.uiState.unreadCount),Ie=ai(Qt=>Kb(Qt).reducedFetchCountState),Me=ai(Qt=>Kb(Qt).notificationDetailsByTab.tasks.fetchCountState),Ee=ai(Qt=>kL(Qt)),[Ne,Oe]=m.useState(void 0),Le=Ee.uiState.currentChatSessionId,ke=Ne!=null?Ee.deleteChatSessionStateByChatSessionId[Ne]?.fetchState:void 0,ve=Et(ke),{inboxNotifications:Pe,isLoading:Be,isFetchingMore:Fe,hasFetchedAll:ct,fetchMore:Ge}=USr(),We=ai(Qt=>Kb(Qt).notificationDetailsByTab.comments.fetchCountState);m.useEffect(()=>{const Qt=setTimeout(()=>Ge?.(),0);return()=>clearTimeout(Qt)}),m.useEffect(()=>{if(Ne!=null)return ve==="In-Progress"&&ke==="Completed"?(g(eme({chatSessionId:Ne})),Oe(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(ke==="Error"&&(g(eme({chatSessionId:Ne})),Oe(void 0)))},[g,d.state,u,ke,Ne,ve,e]),m.useEffect(()=>{if(Be===!1&&Fe===!1&&ct===!0&&j?.companyId!=null&&Pe!=null){const Qt=`dashboard_${j.companyId}`;W(Pe.filter(ho=>ho.roomId===Qt&&ho.readAt==null).length)}},[Be,Fe,ct,j?.companyId,Pe]),m.useEffect(()=>{z&&I&&!re&&Me.fetchState==="Not-Started"&&p.tenantId!=null&&g(tvt("task_manager","dashboard"))},[z,p.tenantId]),m.useEffect(()=>{re||We.fetchState!=="Not-Started"||g(tme({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),m.useEffect(()=>{if(_!=null){const{fetchState:Qt}=We;Qt!=="In-Progress"&&Qt!=="Completed"||(Qt==="In-Progress"&&g(tme({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),g($Xe({unreadCount:_},"comments")))}},[_,We.fetchState]);const st={fetchStatus:Ie,count:xe},dt=[];ae===!1&&dt.push("accounts_payable_aging"),se===!1&&dt.push("accounts_receivable_aging"),R===!1&&dt.push("zeni_accounts_promo_card"),H===!1&&dt.push("rewards_card"),P===!1&&dt.push("expense_automation_card");const Vt=un(),rt=ai(Qt=>nvt(Qt,dt,k,v,C,V).fetchState),Je=ai(Qt=>ovt(Qt).fetchState),kt=e!=null?_i.getSignedInUserTenant(e):null,Gt=ai(Qt=>kt?.tenantId!=null?jXe(Qt,kt.tenantId):void 0),ln=te&&(rt==="Completed"||rt==="Error")||ie&&(Je==="Completed"||Je==="Error")||!te&&!ie?void 0:"disabled",it=m.useMemo(()=>EXe(j.userRole),[j.userRole]),qt=GJe(it),on=Qt=>{a(Qt)},yt=j.company!=null&&ivt(j.company),zt=V&&yt,Jt=YJe(Vt?.loggedInUserRoleMap),pn=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,Ht=ai(Qt=>Qt.treasurySetupViewState.treasuryFundsDetails),In=ai(Qt=>Qt.dashboardState.isTreasuryVideoClosed),hn=j.isTreasuryPromoVideoRemindMeLaterClicked,Lt=j.isTreasuryPromoVideoPlayed,Ot=j.loginCounterForTreasuryPromoVideo,An=m.useMemo(()=>WSr({isTreasuryPromoVideoRemindMeLaterClicked:hn,isTreasuryPromoVideoPlayed:Lt,loginCounterForTreasuryPromoVideo:Ot,isTreasuryVideoClosed:In}),[j.isTreasuryPromoVideoRemindMeLaterClicked,j.isTreasuryPromoVideoPlayed,j.loginCounterForTreasuryPromoVideo,In]),fn=iV(d.pathname)==="home"&&An,so=m.useCallback(()=>zt&&Jt&&Ht?.fetchStatus.fetchState==="Completed"&&!_i.getTreasuryPopupSeen(e??"")&&j.isTreasuryPromoVideoPlayed!==!0&&pn===!1&&iV(d.pathname)!=="treasury"&&fn!==!0,[zt,Jt,pn,d.pathname,e,Ht?.fetchStatus,j.isTreasuryPromoVideoPlayed,An,fn]),[xo,co]=m.useState(so);m.useEffect(()=>{z&&zt&&Ht?.fetchStatus.fetchState==="Not-Started"&&g(rvt())},[z,zt,Ht?.fetchStatus.fetchState]),m.useEffect(()=>{co(so())},[so]);const Ln=ZSr(Ht.fundsDetails),oo=j?.rewardsLastViewedTime==null,jo=k?.userEmail!=null&&Q.fetchState==="Completed"&&avt(Q.notificationSettings,k.userEmail,w,j),Xo=m.useCallback(Qt=>{const ho=d.state?.referrer;if(oe.monthEndCloseChecks?.auditSummary!=null&&dd.trackMonthCloseAuditPage(Qt.month,Qt.year,oe.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",oe.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,ho??null),g(lvt(j.tenantId,Qt)),q[j.tenantId]!=null){const Co=Jg(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${ne.currentSelectedView}/${Qt.month}-${Qt.year}`,{state:{pathnameStackToGoBack:Co,referrer:ne.currentSelectedView}})}g(X0e(ne.currentSelectedView)),ne.reconciliation.selectedAccountId!=null&&g(svt({selectedAccountId:void 0}))},[ne.reconciliation.selectedAccountId,ne.currentSelectedView,j.tenantId,oe.monthEndCloseChecks?.auditSummary,oe.monthEndCloseChecks?.reportEmailSentDate,q,e,d.state,d.pathname]),yo=m.useMemo(()=>({zIndex:s||xo?12:S[2]}),[s,xo]),ei=L&&YSr(d),ti=jt.jsx(sao,{signedInUser:k,currentTenantId:de.currentTenantId??"",tenants:de.fetchState==="Completed"?pe:Gt!=null?[Gt]:[],rewardsConfiguration:{isRewardsTabVisible:H,isRewardsAnimated:oo,rewardsPlan:K.rewardsPlan},selectedMenu:n===!0?$ut("ai_cfo"):cJe(d),isTenantDropdownDisabled:ln,isSettings:GSr(d),isSettingsFeatureEnabled:M,currentTenant:j,isVendorsTabVisible:qt,isZeniAccountEnabled:R,isChargeCardEnabled:F,isTreasuryEnabled:zt,isTreasuryPopupVisible:xo,treasuryYieldPercentage:Ln,isNotificationsTabVisible:jo,notificationCountDetails:st,isExpenseAutomationEnabledForUser:P,isAiCfoAccessEnabled:L,onNotificationIconClick:()=>{on(!1);const Qt=I?Ce===0&&Ae>0?"notifications/comments":"notifications/tasks":"notifications/comments",ho=Jg(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${Qt}`,{state:{pathnameStackToGoBack:ho}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:Qt=>{E(y0e.TENANT_SWITCHING),on(!1);const ho=Qt.tenantEmailDomain,Co=cJe(d),Vo=Co;let Jo="";const Li=kR(Vo);Co==="home"?Jo+="dashboard":Co==="users_and_roles"?Jo+="people":Kse(Co)?Jo+="settings/my_profile":DO(Co)?Jo+=`ai-cfo/${Co}`:Jo+=Vo==="task_checklist"?"tasks":Li?"month_end_close_checks/review":encodeURIComponent(Co);const Zt=`/${encodeURIComponent(ho)}/${Jo}`;u(Zt,{replace:!0}),k!=null&&(g(mce(Qt.tenantId)),g(IXe(k.userId,Qt.tenantId,k.zeniSessionId)));const xn=Qt;dd.trackCompanySwitch(xn.companyId,xn.companyName,xn.userRole)},handleMenuChange:(Qt,ho)=>{if(k!=null&&dd.trackSidePanelClicked(Qt.type,Qt.group),on(!1),e==null)return;if(n&&(Zt=>{if(Kse(Zt)||DO(Zt))return!0;const xn=lJe(Zt).split("/")[0];return!QSr.includes(xn)})(Qt.type)&&o(!1),Qt.type==="ai_cfo"){if(dd.trackAICFOChatScreenStateChanged("viewed","left_menu",Le??null,null),!A)return void gSr({location:d,navigate:u,mergeState:{referrer:"Sidebar"}});const Zt=Jg(d.state?.pathnameStackToGoBack,d.pathname);return void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:Zt,referrer:"Sidebar"}})}const Co=Jg(d.state?.pathnameStackToGoBack,d.pathname),Vo=Qt.type,Jo=kR(Vo)&&Vo!=="command_center";if(Vo!=="command_center"&&!Jo||q[j.tenantId]==null||dd.trackMonthEndCloseClicked(q[j.tenantId].month,q[j.tenantId].year,"Sidebar"),Jo&&q[j.tenantId]!=null){const Zt=q[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${Qt.type}/${Zt.month}-${Zt.year}`,{state:{pathnameStackToGoBack:Co,message:ho,referrer:"Sidebar"}})}const Li=lJe(Qt.type);DO(Qt.type)?(Le!=null&&g(BO()),u(`/${e}/ai-cfo/${Qt.type}`,{state:{pathnameStackToGoBack:Co.slice(0,-1),message:ho,referrer:"Sidebar"}})):u(`../${e}/${Li}`,{state:{pathnameStackToGoBack:Co,message:ho,referrer:"Sidebar"}})},onDeleteChatSession:Qt=>{g(cvt(Qt)),Le===Qt&&Oe(Qt)},handleLogOutClick:()=>{on(!1);const Qt=Jg(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:Qt,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{_i.saveTreasuryPopupSeen(e??"",!0),co(!1)},monthEndCloseChecksView:oe,onPeriodChange:Xo,onCalendarOpen:c,aiCfoView:Ee,isAiCfo:ei,isOnDashboard:te,isTaskManagerAccessEnabled:N,updateCurrentChatSessionId:Qt=>{g(pce({sessionId:Qt,agentId:"controller"})),u(`../${e}/ai-cfo/${Qt}`,{state:{...d.state}})},halloweenAnimationEnabled:me,thanksGivingAnimationEnabled:ge,christmasAnimationEnabled:ye,newYearAnimationEnabled:be}),pr=jt.jsx(Fvt,{position:"fixed",className:Im.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:jt.jsxs(Rvt,{style:{minHeight:Cut},children:[jt.jsx(Nvt,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>on(!0),className:Im.menuButton,size:"large",children:jt.jsx(tkr,{})}),jt.jsx(nkr,{className:Im.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),Qo=eie(Qt=>Qt.breakpoints.up("md")),bi=eie(Qt=>Qt.breakpoints.down("md"));return e==null?null:jt.jsxs(XSr,{className:Im.root,children:[jt.jsx(Vvt,{}),fe===!1?jt.jsxs(jt.Fragment,{children:[Qo||!te?null:pr,jt.jsxs("nav",{className:Im.drawer,children:[Qo?null:jt.jsx(MO,{container:window.document.body,variant:"temporary",open:i,onClose:()=>on(!1),PaperProps:{sx:{width:wL,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:ti}),bi?null:jt.jsx(MO,{PaperProps:{sx:{width:wL,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...yo}},variant:"permanent",open:!0,children:ti})]})]}):null]})});function dJe(e){return e?.data.unread!=null&&e?.mode!=null}const tkr=zn(e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.604839 4.51889C0.333157 4.57797 0.0879194 4.8318 0.0182541 5.12602C-0.00534674 5.22569 -0.00534674 5.4412 0.0182541 5.54086C0.0523791 5.685 0.117181 5.80198 0.22956 5.92229C0.346814 6.04782 0.459133 6.11627 0.600351 6.14826C0.726193 6.17676 23.2738 6.17676 23.3997 6.14826C23.5409 6.11627 23.6532 6.04782 23.7704 5.92229C23.9348 5.74632 24 5.57908 24 5.33344C24 5.1793 23.9797 5.08352 23.9199 4.95575C23.8455 4.79698 23.6879 4.63709 23.5343 4.56468C23.3857 4.49468 24.2116 4.49926 11.9899 4.50058C2.66632 4.50157 0.669677 4.50479 0.604839 4.51889ZM0.669895 11.1732C0.365117 11.2113 0.0889356 11.4752 0.0182179 11.7958C-0.00468131 11.8996 -0.00469357 12.0996 0.0181935 12.2034C0.0806855 12.4867 0.305734 12.7294 0.581516 12.8108C0.65573 12.8327 1.1761 12.8337 12 12.8337C22.8591 12.8337 23.3441 12.8327 23.4192 12.8106C23.6933 12.7297 23.9196 12.4855 23.9818 12.2034C24.0047 12.0996 24.0047 11.8997 23.9818 11.7959C23.9201 11.516 23.7014 11.2776 23.425 11.1888C23.3558 11.1665 22.8817 11.1655 12.0544 11.164C5.84032 11.1631 0.717278 11.1672 0.669895 11.1732ZM0.594774 17.8516C0.458952 17.8831 0.344939 17.9535 0.22956 18.077C0.0652015 18.253 0 18.4202 0 18.6659C0 18.82 0.0203225 18.9158 0.0801289 19.0435C0.154452 19.2023 0.312097 19.3622 0.465726 19.4346C0.614214 19.5046 -0.209758 19.4999 12 19.4999C21.8294 19.4999 23.3082 19.4975 23.3881 19.4811C23.6596 19.4256 23.9122 19.1669 23.9817 18.8733C24.0053 18.7736 24.0053 18.5581 23.9817 18.4584C23.9476 18.3143 23.8828 18.1973 23.7704 18.077C23.6532 17.9515 23.5409 17.883 23.3997 17.851C23.2779 17.8235 0.713601 17.824 0.594774 17.8516Z",fill:"currentColor"})))`
|
|
75259
|
+
`,gI=TJe(rSt()),sSr=["sandbox","production"],cSr=["development","staging","production"],bS=()=>Ec==="DEV"||Ec==="QA"||Ec==="PUNE"||Ec==="SUNNYVALE"||Ec==="DELHI"||Ec==="MOHALI",h0e="https://zeni-webapp-dev.uc.r.appspot.com",Ec=D4("DEV",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),AEr=(e=>D4(e,sSr))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Ec)),nJe=(e=>D4(e,cSr))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Ec)),m0e=Ec==="DEV"||Ec==="QA"?.2:.8,Lyt=m0e,Fa={sentryDsn:"",sentryTraceSamplingRate:m0e,sentryProfileSamplingRate:Lyt,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let ck,bL;function dSr(e){Fa.sentryDsn=e.keys.SENTRY_DSN,Fa.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):m0e,Fa.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):Lyt,Fa.googleClientId=e.keys.GOOGLE_CLIENT_ID,Fa.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Fa.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Fa.mixpanelToken=e.keys.MIXPANEL_TOKEN,Fa.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Fa.pusherCluster=e.keys.PUSHER_CLUSTER,Fa.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Fa.appUrl=e.keys.WEB_ENDPOINT,Fa.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Fa.cardVaultId=e.keys.UNIT_VAULT_ID,Fa.stripeKey=e.keys.STRIPE_KEY,Fa.qboRedirectionUrl=e.keys.QBO_URL,Fa.mixpanelUrl=e.keys.MIXPANEL_URL,Fa.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,bL=e.externalEndPoints,ck=e.apiEndPoints,function(n,o){const i=new Set,a=[...Object.values(n),...Object.values(o)];for(const s of a)if(typeof s=="string"&&s.length>0)try{i.add(new URL(s).origin)}catch{}for(const s of i){if(document.querySelector(`link[rel="preconnect"][href="${s}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=s,document.head.appendChild(c)}}(ck,bL)}let oJe=!1;function dv(){oJe||(Bh.init("63d3a2406505a5737a2b4debdb513f20",{api_host:bL.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),oJe=!0)}const uSr=new Set(Array.from(mo.EVENTS_WITHOUT_SUPER_PROPERTIES));let iJe=!1,rJe=!1;function Qse(){if(iJe)return;iJe=!0,dv();const e=mo.extractUtmParamsFromUrl();Object.keys(e).length>0&&Bh.register(e),bS()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const pSr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function hSr(){const e=function(){return Bh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||pSr.has(o));for(const o of n)Bh.unregister(o);bS()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function aJe(){rJe||(rJe=!0,hSr())}class Ov{identify(n,o){if(dv(),this.#t=n,n!=null&&o!=null&&(Ov.#e==null||!WCt({userId:n,traits:o},Ov.#e))){const{$email:i,...a}={...o};Bh.identify(n),i&&i!=null&&Bh.people.set_once({$email:i}),Bh.people.set(a),Ov.#e={userId:n,traits:o},bS()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(o)} `)}}identifyUserAndCompany(n,o,i,a,s){throw Error("Use identify in the web-app!!")}track(n,o){dv();const i=uSr.has(n);if(this.#t!=null||i){if(Qse(),this.#t!=null){const a={distinct_id:this.#t,...o};Bh.track(n,a)}else Bh.track(n,o);if(aJe(),bS()){const a=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(o)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(o)}`;console.log(a)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,o){dv(),Qse(),Bh.track(n,o),aJe(),bS()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){dv(),Bh.alias(n,o)}reset(){dv(),Bh.identify(void 0),this.#t=void 0,Ov.#e=void 0}static#e;#t}const Gse=new Ov,Tyt=new mo.Analytics(Gse);Tyt.trackWithoutUserId=Gse.trackWithoutUserId.bind(Gse);const dd=Tyt,mSr="openAiCfoScope",Yse="openAiCfoScopeOnDashboard";function gSr(e){const{location:n,navigate:o,mergeState:i}=e;o({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[Yse]:!0,...i}})}function jEr(e){const n=kL(e);if(n.createSessionAndSubmitState.fetchState==="In-Progress")return!0;const o=n.uiState?.currentChatSessionId;return o!=null&&n.responseStateByChatSessionId?.[o]?.answer?.fetchState==="In-Progress"}function g0e(e,n){const o=n!=null?e.find(d=>d.chatSession.chatSessionId===n):void 0,i=o?.questionAnswers??[],a=i[i.length-1],s=a?.responses.answer?.content?.summarizedTitle??"";return{currentChatSession:o?.chatSession,currentQuestionAnswer:a,currentQuestionAnswerSummary:s,currentChatSessionWithMessages:o,currentSessionQuestionAnswers:i}}function Dyt(e,n){return(e||n?.chatSessionSummary)??null}const Pyt="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",oV="zeni-ai-cfo-upload-promo-storage-changed",_i=new class{_isZeniUserCache;getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);return n!=null&&e!=null?JSON.parse(this.decrypt(n,e)):void 0}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!1}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!0}getSignedInUserTenant(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantEmailDomain===e)}getSignedInUserTenantWithId(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantId===e)}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_ACTIVE_TENANT_DOMAIN);if(!(n==null||e==null)){const o=this.decrypt(n,e),i=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS);if(i!=null)return JSON.parse(this.decrypt(i,e)).find(a=>a.tenantEmailDomain===o)}}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(n&&e!=null){const o=this.decrypt(n,e);return o?JSON.parse(o):[]}return[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),o)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(e=>window.localStorage.getItem(e)!=null).reduce((e,n)=>e&&n)}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_THEME]);this.ALL_IDs.filter(n=>!e.has(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n)).forEach(n=>window.localStorage.removeItem(n))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){const e=window.localStorage.getItem(this.ZENI_OTP_TOKEN),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null){let o=JSON.parse(this.decrypt(e,n));return o={...o,expiry:sn(o.expiry.toString())},o}}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const o=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let i={};if(o!=null)try{const a=JSON.parse(o);i=a!==null&&typeof a=="object"?a:{}}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(i))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const o=JSON.parse(n);return o!==null&&typeof o=="object"&&o[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(oV)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const o=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let i={};if(o!=null)try{const a=JSON.parse(o);i=a!==null&&typeof a=="object"?a:{}}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(i)),window.dispatchEvent(new CustomEvent(oV))}savePayNowInfoTooltip(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),o))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_PAY_NOW_INFO_TOOLTIP),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null)try{const o=this.decrypt(e,n);return o===""||o==null?void 0:JSON.parse(o)}catch{return}}saveZeniOtpTokenForCardHolder(e,n){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),o))}getZeniOtpTokenForCardHolder(e){const n=window.localStorage.getItem(`${this.ZENI_OTP_TOKEN}_${e}`),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)try{const i=this.decrypt(n,o);if(i===""||i==null)return;let a=JSON.parse(i);return a={...a,expiry:sn(a.expiry.toString())},a}catch{return}}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){const e=window.localStorage.getItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),n="7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c";if(e!=null)try{return this.decrypt(e,n)}catch{return window.localStorage.removeItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),null}return null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){const e=window.localStorage.getItem(this.ZENI_MAGIC_LINK_EMAIL);return e!=null?this.decrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"):null}encrypt(e,n){return gI.AES.encrypt(e,n).toString()}decrypt(e,n){return gI.AES.decrypt(e,n).toString(gI.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_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=Pyt;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_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]},Jg=(e,n)=>{const o=[...e??[]];return o.push(n),o},EEr=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},IEr=({state:e})=>_i.isSignedIn()===!0?jt.jsx(qbt,{}):jt.jsx(MJe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function fSr(){const e=Up(),n=Wp(),o=SL(),{tenantEmailDomain:i}=_Je(),[a,s]=m.useState(!1),c=ai(x=>x.tenantState.fetchState==="Completed"||x.tenantState.activeTenantFetchState.fetchState==="Completed"?V1(x):void 0),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=ai(x=>kL(x));m.useEffect(()=>{const x=n.state;x?.[Yse]===!0&&(s(!0),o({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...x,[Yse]:void 0}}))},[n.state,n.pathname,n.search,n.hash,o]);const p=m.useCallback(()=>{if(i==null)return;const x=Jg(n.state?.pathnameStackToGoBack,n.pathname);o(`/${i}/ai-cfo/explore`,{state:{pathnameStackToGoBack:x,referrer:n.state?.referrer??"Navigation"}})},[n.pathname,n.state,o,i]),h=m.useCallback(()=>{s(!1),p()},[p]),g=m.useCallback(()=>{s(!1)},[]),f=m.useCallback(()=>{d||c?.userRoleId==null?s(!1):e(wXe(c.userRoleId))},[e,d,c?.userRoleId]);return jt.jsx(lyt,{open:a,onClose:g,children:jt.jsxs(ayt,{children:[a&&!d?jt.jsx(wue,{analytics:dd,onLoad:x=>d?null:x.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,jt.jsx(Fre,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:d,showHeader:!1,togglePageView:d?h:void 0,onCloseClick:g,onCompleteClick:f})]})})}const qse=m.createContext(void 0);function _Q(){const e=m.useContext(qse);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const f0e=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],x0e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],Byt=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],Myt=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],_yt=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],zyt=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],Oyt=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],Fyt=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],Ryt=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Nyt(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let o=1;o<n.length;o+=1)if(n[o]==="transaction")return!0;return!1}const Vyt=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Hyt=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],Uyt=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],xSr=[...Byt,...f0e,...x0e,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...Vyt,...Hyt,...Uyt,...Myt,..._yt,...zyt,...Oyt,...Fyt,...Ryt];function Wyt(){const{pathname:e}=Wp(),n=e??"";return xSr.some(o=>Zse(o,n)!=null)||Nyt(e)}function wc(e){const{pathname:n}=Wp(),o=n??"";return e.some(i=>Zse(i,o)!=null)}const Qyt=m.createContext(null),y0e={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function ySr({children:e}){const[n,o]=m.useState(()=>new Set([])),i=n.size>0,a=m.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=m.useCallback(d=>{o(u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p})},[]),c={isLoading:i,activeLoadingStates:n,setLoading:a,clearLoading:s,clearAllLoading:m.useCallback(()=>{o(new Set)},[])};return jt.jsx(Qyt.Provider,{value:c,children:e})}function zQ(){const e=m.useContext(Qyt);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const Gyt=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],Yyt=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],bSr=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],wSr=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],CSr=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],vSr=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],SSr=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],qyt=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Kyt=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],kSr=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function b0e(e){const n=Pu(e),o=n.indexOf("review");if(o<2||n[o-1]!=="month_end_close_checks")return null;if(o===n.length-1)return"overview";const i=n[o+1];return i==null?"overview":kSr.includes(i)?i:null}const $Sr=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),ASr=new Set(["setup","verification","promo","approval-rules"]);function Pu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function w0e(e){const n=Pu(e),o=n[1]==="vendors"?1:-1;if(o<0||n.length<o+2)return;const i=n[o+1];if(i==="summary")return"vendors";if(i==="opex")return"opex_by_vendor";if(i==="schedules"){const a=n[o+2];return a==="prepaid_expenses"?"prepaid_expenses":a==="fixed_assets"?"fixed_assets":a==="accrued_expenses"?"accrued_expenses":void 0}return i==="filing_1099"?"form_1099":void 0}function Zyt(e,n,o){const i=Pu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function Jyt(e,n,o){return Zyt(e,n,i=>!o.has(i))}function Xyt(e){return Jyt(e,"bills",$Sr)}function ebt(e){return Jyt(e,"reimbursements",ASr)}function tbt(e){return Zyt(e,"tasks",n=>n==="group")}const jSr=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),ESr=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function C0e(e){const n=Pu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return jSr.has(o)?"checking":"checking_details"}function v0e(e){const n=Pu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return ESr.has(o)?"cards":"cards_detail"}function nbt(e){const n=Pu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function obt(e){return Pu(e)[1]==="performance"?"performance":void 0}function ibt(e){const n=Pu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function rbt(e){const n=Pu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function im(e,n){return n.some(o=>Zse(o,e)!=null)}function ISr(e){return im(e,f0e)?"reports":im(e,Gyt)?"ap_aging":im(e,Yyt)?"ar_aging":w0e(e)!=null?"vendors_tab":im(e,x0e)?"forecast":b0e(e)!=null?"month_end_close_review":im(e,qyt)?"cash_balance":im(e,Kyt)?"card_balance":tbt(e)?"task_checklist":nbt(e)!=null?"transaction_detail":obt(e)!=null?"performance":ibt(e)!=null?"bills_detail":rbt(e)!=null?"reimbursement_detail":Xyt(e)?"bills_list":ebt(e)?"reimbursement_list":im(e,bSr)?"cash_in_cash_out":im(e,wSr)?"operating_expenses":im(e,CSr)?"revenue":im(e,vSr)?"net_burn_or_income":im(e,SSr)?"cash_position":function(n){const o=Pu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":C0e(e)!=null?"checking":function(n){return Pu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":v0e(e)!=null?"cards":function(n){return Pu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return Pu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return Pu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function abt(e,n){switch(ISr(e)){case"reports":{const o=n?.selectedReportId;return o==null?void 0:function(i){switch(i){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}}(o)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return w0e(e);case"forecast":return"forecast";case"month_end_close_review":{const o=b0e(e);return o==null?void 0:function(i){switch(i){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}}(o)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return C0e(e);case"treasury":return"treasury";case"cards":return v0e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function lbt(){const{pathname:e}=Wp(),n=e??"",o=ai(i=>i.financeStatementState?.selectedReportId);return m.useMemo(()=>abt(n,{selectedReportId:o}),[n,o])}function OQ(){const{useFeatureGate:e}=Dl(),{isFeatureEnabled:n}=e(Gi.isAiCfoEnabled),o=ai(a=>V1(a)),i=_i.getSignedInUser();return i!=null&&i.userId!=null&&o!=null&&o.companyId!=null&&n}function LSr(){const{useFeatureGate:e}=Dl(),{isFeatureEnabled:n}=e(Gi.isAiCfoNavButtonEnabled),o=OQ();return n&&o}const sbt=m.createContext(void 0),TSr=({children:e})=>{const{tenantEmailDomain:n}=_Je(),o=n!=null?_i.getSignedInUserTenant(n):void 0,i=ai(u=>V1(u)),a=$L().tenantId,s=o?.tenantId,c=i?.tenantId,d=m.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return jt.jsx(sbt.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},DSr=()=>{const e=m.useContext(sbt);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function cbt(e,n){return e!=="Completed"&&e!=="In-Progress"&&!(e==="Error"&&!n)}function dbt(e){const{areTenantIdsInSync:n}=DSr(),o=OQ(),i=LSr();return n&&e&&i&&o}function LEr(e){const{pageContexts:n,canFetchSuggestedQuestions:o}=e,i=Up(),a=zJe(),s=m.useRef(null);m.useEffect(()=>{const c=s.current===!1&&o===!0;if(s.current=o,o&&n!=null&&n.length!==0)for(const d of n){const u=hce(a.getState(),d)?.fetchState;cbt(u,c)&&i(CXe({pageContext:d}))}},[o,i,n,a])}function ubt(e){(function(n){const{pageContext:o,canFetchSuggestedQuestions:i}=n,a=Up(),s=zJe(),c=m.useRef(null);m.useEffect(()=>{const d=c.current===!1&&i===!0;if(c.current=i,o==null||!i)return;const u=hce(s.getState(),o)?.fetchState;cbt(u,d)&&a(CXe({pageContext:o}))},[i,a,o,s])})({canFetchSuggestedQuestions:dbt(e.isDataReady),pageContext:e.pageContext})}function TEr(e){ubt({pageContext:lbt(),isDataReady:e.isDataReady})}const{questionTemplates:{sampleQuestion1:PSr,sampleQuestion2:BSr,sampleQuestion3:MSr}}=ee.getLocalizedStrings().aiCfo,_Sr=[PSr,BSr,MSr];function zSr(e,n=!1){ubt({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const o=dbt(!0),i=ai(g=>e!=null&&e!==""?hce(g,e):void 0),{useDynamicConfig:a}=Dl(),{configValue:s}=a(T3.aiCfoMessageDynamicConfig),c=m.useMemo(()=>Array.isArray(s?.default_message_list)?[...s.default_message_list]:[],[s?.default_message_list]),d=m.useMemo(()=>c.length>0?c:[..._Sr],[c]),u=e!=null&&e!=="",p=u&&o&&(i==null||i.fetchState!=="Completed"&&i.fetchState!=="Error"),h=m.useMemo(()=>{if(!u||!o)return d;if(p)return[];if(i?.fetchState==="Error")return d;const g=(i?.suggestedQuestions??[]).map(f=>f.trim()).filter(f=>f.length>0);return g.length===0?d:g},[o,d,u,p,i?.fetchState,i?.suggestedQuestions]);return{isSuggestedQuestionsLoading:!n&&p,suggestedPromptQuestions:m.useMemo(()=>n?[]:h,[n,h])}}function OSr({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=m.useCallback(()=>e===!0&&n!=null&&!_i.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=m.useState(o);return m.useEffect(()=>{a(o())},[o]),m.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(oV,s);const c=d=>{d.key===Pyt&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(oV,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:m.useCallback(()=>{n!=null&&_i.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const pbt=m.createContext(void 0),S0e=()=>m.useContext(pbt),FSr=e=>{const n=_i.isSignedIn(),o=_i.getSignedInUser(),[i,a]=m.useState(void 0),s=m.useMemo(()=>i,[i]),c=ai(p=>V1(p)),d=c.companyId,u=c.userRoleId;return m.useEffect(()=>{let p,h=!1;if(n&&c.tenantId!=null&&o?.userId!=null&&o.zeniSessionId!=null){i!=null&&(i.channels.all().forEach(w=>{i.unsubscribe(w.name)}),i.disconnect()),a(void 0);const g=o.userId,f=c.tenantId,x=o.zeniSessionId,y=async()=>{if(h)return;let w;try{w=await GCt(Fa.pusherClientSecret,{cluster:Fa.pusherCluster},{userId:g,tenantId:f,sessionId:x},!0)}catch(C){return void console.warn("Failed to initialize Pusher",C)}h?w?.disconnect():(a(w),w!=null&&(d!=null&&fI(w,d),g!=null&&fI(w,g),u!=null&&fI(w,u)))},b=()=>{const w=$L();return w.tenantId===f&&w.userId===g&&w.sessionId===x};if(b())y();else{let w=0;p=setInterval(()=>{h||(w++,b()?(clearInterval(p),y()):w>=30&&(clearInterval(p),vXe(g,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(g=>i?.unsubscribe(g.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),jt.jsx(pbt.Provider,{value:s,children:e.children})};function fI(e,n){const o=`private-encrypted-${n}`,i=e.channel(o);if(i?.subscribed===!0)return i;const a=e.subscribe(o);return a.bind("pusher:subscription_error",s=>{console.warn("Pusher Channel Connection Subscription Error",s)}),a}const RSr=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},k0e=e=>n=>{const o=S0e(),i=m.useRef(n.eventCallback),a=m.useRef(n.onSubscribed),s=m.useRef({}),c=m.useRef(0);m.useEffect(()=>{i.current=n.eventCallback,a.current=n.onSubscribed;const{events:u,eventCallback:p,onSubscribed:h,...g}=n;s.current=g},[n]);const d=m.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return m.useEffect(()=>{if(o!=null){const{events:u}=n,p=[];if(u.length===0)return;const h=new Set,g=()=>{if(a.current==null)return;const f=Date.now();f-c.current<5e3||(c.current=f,a.current(s.current))};return u.forEach(f=>{const[x,y]=RSr(f);if(y==="")return;const b=o.channel(x),w=v=>{i.current(y,v,s.current)};let C;if(b?.subscribed===!0)C=b,C.bind(y,w),h.has(x)||(h.add(x),g()),p.push(()=>{b.unbind(y,w)});else{if(C=b??o.subscribe(x),C.bind(y,w),!h.has(x)){h.add(x);const v=()=>{g()};C.bind("pusher:subscription_succeeded",v),p.push(()=>{C.unbind("pusher:subscription_succeeded",v)})}p.push(()=>{C.unbind(y,w)})}}),()=>{p.forEach(f=>f())}}},[o,d]),jt.jsx(e,{...n})},NSr=({children:e})=>{const n=eie("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});m.useEffect(()=>{const d=_i.getTheme()==null?n:_i.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?VO({palette:{mode:"dark"},...AEe},jEe,BQn,_Qn):VO({palette:{mode:"light"},...AEe},jEe,PQn,MQn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return jt.jsx(zEn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;_i.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},hbt=m.createContext(!1),VSr=hbt.Provider;function HSr(){return m.useContext(hbt)}const USr=()=>ai(e=>V1(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=Ybt();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function WSr({isTreasuryPromoVideoRemindMeLaterClicked:e,isTreasuryPromoVideoPlayed:n,loginCounterForTreasuryPromoVideo:o,isTreasuryVideoClosed:i=!1}){return!i&&!n&&(!e||o>0&&o%5==0)}const Kse=e=>u9n.includes(e),DO=e=>Aut.includes(e),lJe=e=>Kse(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":kR(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:DO(e)?`ai-cfo/${e}`:e,QSr=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],sJe=(e,n)=>e.includes(n),iV=e=>{switch(e.split("/")[2]){case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return function(n){if(n==null)return;const o=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const i of o)if(sJe(n,i))switch(i){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}}(e);case"performance":return"performance";case"month_end_close_checks":return function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const o=n.split("/"),i=o.indexOf("review"),a=i>=0?o[i+1]:void 0;return a!=null&&kR(a)?$ut(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of Aut)if(sJe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function cJe(e){let n=iV(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=iV(o[i])}return n??"home"}function GSr(e){return e.pathname.includes("settings")}function YSr(e){return e.pathname.includes("ai-cfo")}const qSr=()=>{const e=KSr();return Oj("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},KSr=()=>Wp().state?.message==="expenseAutomation";function ZSr(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const JSr=(e,n,o)=>{const i=SXe(e),a=YCt(e),s=kXe(o,e);return n||o||a||i||s},NC="AppDrawer",Im={root:`${NC}-root`,drawer:`${NC}-drawer`,appBar:`${NC}-appBar`,menuButton:`${NC}-menuButton`,appBarZenilogo:`${NC}-appBarZenilogo`,drawerZenilogo:`${NC}-drawerZenilogo`},wL=210,XSr=zn("div",{slot:"Root"})(({theme:e})=>({[`&.${Im.root}`]:{display:"flex"},[`& .${Im.drawer}`]:{[e.breakpoints.up("md")]:{width:wL,flexShrink:0,backgroundColor:e.colors.background}},[`& .${Im.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${Im.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${Im.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${Im.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),ekr=k0e(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=_Q(),[i,a]=T.useState(!1),[s,c]=m.useState(!1),d=Wp(),u=SL(),p=$L(),h=Z1e(),g=Up(),[f,x]=m.useState(!1),y=Te(),{useFeatureGate:b}=Dl(),{isFeatureEnabled:w}=b(Gi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(Gi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(Gi.isExpenseAutomationEnabledV2),[k,$]=m.useState(()=>_i.getSignedInUser());m.useEffect(()=>{const Qt=()=>{const ho=_i.getSignedInUser();$(ho)};return window.addEventListener("completeProfileDone",Qt),()=>{window.removeEventListener("completeProfileDone",Qt)}},[]);const j=ai(Qt=>V1(Qt)),A=j.masterTOSInfo?.isMasterTOSAccepted??!1,{setLoading:E}=zQ(),L=OQ(),I=g6(k),P=LZi(),z=HSr(),[_,W]=m.useState(void 0),{isFeatureEnabled:R}=b(Gi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:O}=b(Gi.isChargeCardFeatureEnabled),F=JSr(j,O,w),{isFeatureEnabled:M}=b(Gi.isSettingsFeatureEnabled),{isFeatureEnabled:H}=b(Gi.isReferralFeatureEnabled),{isFeatureEnabled:V}=b(Gi.isTreasuryEnabled),{isFeatureEnabled:G}=b(Gi.isTaskManagerCustomerUserAccessEnabled),N=I||!I&&G,Q=ai(Qt=>KCt(Qt));m.useEffect(()=>{const Qt=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",Qt),()=>{window.removeEventListener("scroll",Qt)}},[]);const K=ai(Qt=>ZCt(Qt)),q=ai(Qt=>Qt.expenseAutomationViewState.selectedPeriodByTenantId),ne=ai(Qt=>JCt(Qt)),{monthEndCloseChecksView:oe}=ne,Z=Oj("/signout")!==null,te=Oj("/:tenantEmailDomain/dashboard")!==null,ie=Oj("/:tenantEmailDomain/reports")!==null,re=Oj("/:tenantEmailDomain/onboarding/*")!==null,ue=qSr();m.useEffect(()=>{z&&H&&!re&&K.fetchState==="Not-Started"&&g(XCt(!0))},[z,H,K.fetchState,re]),m.useEffect(()=>{if(ue){const Qt=d.state?.origin;if(Qt!=null){const ho=evt(Qt);ho!=null&&g(X0e(ho))}}},[ue,d.state]);const fe=Z||re,de=ai(Qt=>Qt.tenantState),pe=ai(Qt=>de.fetchState==="Completed"?AXe(Qt):[]),{isFeatureEnabled:ae}=b(Gi.isApAgingFeatureEnabled),{isFeatureEnabled:se}=b(Gi.isArAgingFeatureEnabled),{isFeatureEnabled:me}=b(Gi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:ge}=b(Gi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ye}=b(Gi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:be}=b(Gi.isDashboardSidebarNewYearAnimationEnabled),xe=ai(Qt=>Kb(Qt).totalUnreadCount),Ce=ai(Qt=>Kb(Qt).notificationDetailsByTab.tasks.uiState.unreadCount),Ae=ai(Qt=>Kb(Qt).notificationDetailsByTab.comments.uiState.unreadCount),Ie=ai(Qt=>Kb(Qt).reducedFetchCountState),Me=ai(Qt=>Kb(Qt).notificationDetailsByTab.tasks.fetchCountState),Ee=ai(Qt=>kL(Qt)),[Ne,Oe]=m.useState(void 0),Le=Ee.uiState.currentChatSessionId,ke=Ne!=null?Ee.deleteChatSessionStateByChatSessionId[Ne]?.fetchState:void 0,ve=Et(ke),{inboxNotifications:Pe,isLoading:Be,isFetchingMore:Fe,hasFetchedAll:ct,fetchMore:Ge}=USr(),We=ai(Qt=>Kb(Qt).notificationDetailsByTab.comments.fetchCountState);m.useEffect(()=>{const Qt=setTimeout(()=>Ge?.(),0);return()=>clearTimeout(Qt)}),m.useEffect(()=>{if(Ne!=null)return ve==="In-Progress"&&ke==="Completed"?(g(eme({chatSessionId:Ne})),Oe(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(ke==="Error"&&(g(eme({chatSessionId:Ne})),Oe(void 0)))},[g,d.state,u,ke,Ne,ve,e]),m.useEffect(()=>{if(Be===!1&&Fe===!1&&ct===!0&&j?.companyId!=null&&Pe!=null){const Qt=`dashboard_${j.companyId}`;W(Pe.filter(ho=>ho.roomId===Qt&&ho.readAt==null).length)}},[Be,Fe,ct,j?.companyId,Pe]),m.useEffect(()=>{z&&I&&!re&&Me.fetchState==="Not-Started"&&p.tenantId!=null&&g(tvt("task_manager","dashboard"))},[z,p.tenantId]),m.useEffect(()=>{re||We.fetchState!=="Not-Started"||g(tme({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),m.useEffect(()=>{if(_!=null){const{fetchState:Qt}=We;Qt!=="In-Progress"&&Qt!=="Completed"||(Qt==="In-Progress"&&g(tme({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),g($Xe({unreadCount:_},"comments")))}},[_,We.fetchState]);const st={fetchStatus:Ie,count:xe},dt=[];ae===!1&&dt.push("accounts_payable_aging"),se===!1&&dt.push("accounts_receivable_aging"),R===!1&&dt.push("zeni_accounts_promo_card"),H===!1&&dt.push("rewards_card"),P===!1&&dt.push("expense_automation_card");const Vt=un(),rt=ai(Qt=>nvt(Qt,dt,k,v,C,V).fetchState),Je=ai(Qt=>ovt(Qt).fetchState),kt=e!=null?_i.getSignedInUserTenant(e):null,Gt=ai(Qt=>kt?.tenantId!=null?jXe(Qt,kt.tenantId):void 0),ln=te&&(rt==="Completed"||rt==="Error")||ie&&(Je==="Completed"||Je==="Error")||!te&&!ie?void 0:"disabled",it=m.useMemo(()=>EXe(j.userRole),[j.userRole]),qt=GJe(it),on=Qt=>{a(Qt)},yt=j.company!=null&&ivt(j.company),zt=V&&yt,Jt=YJe(Vt?.loggedInUserRoleMap),pn=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,Ht=ai(Qt=>Qt.treasurySetupViewState.treasuryFundsDetails),In=ai(Qt=>Qt.dashboardState.isTreasuryVideoClosed),hn=j.isTreasuryPromoVideoRemindMeLaterClicked,Lt=j.isTreasuryPromoVideoPlayed,Ot=j.loginCounterForTreasuryPromoVideo,An=m.useMemo(()=>WSr({isTreasuryPromoVideoRemindMeLaterClicked:hn,isTreasuryPromoVideoPlayed:Lt,loginCounterForTreasuryPromoVideo:Ot,isTreasuryVideoClosed:In}),[j.isTreasuryPromoVideoRemindMeLaterClicked,j.isTreasuryPromoVideoPlayed,j.loginCounterForTreasuryPromoVideo,In]),fn=iV(d.pathname)==="home"&&An,so=m.useCallback(()=>zt&&Jt&&Ht?.fetchStatus.fetchState==="Completed"&&!_i.getTreasuryPopupSeen(e??"")&&j.isTreasuryPromoVideoPlayed!==!0&&pn===!1&&iV(d.pathname)!=="treasury"&&fn!==!0,[zt,Jt,pn,d.pathname,e,Ht?.fetchStatus,j.isTreasuryPromoVideoPlayed,An,fn]),[xo,co]=m.useState(so);m.useEffect(()=>{z&&zt&&Ht?.fetchStatus.fetchState==="Not-Started"&&g(rvt())},[z,zt,Ht?.fetchStatus.fetchState]),m.useEffect(()=>{co(so())},[so]);const Ln=ZSr(Ht.fundsDetails),oo=j?.rewardsLastViewedTime==null,jo=k?.userEmail!=null&&Q.fetchState==="Completed"&&avt(Q.notificationSettings,k.userEmail,w,j),Xo=m.useCallback(Qt=>{const ho=d.state?.referrer;if(oe.monthEndCloseChecks?.auditSummary!=null&&dd.trackMonthCloseAuditPage(Qt.month,Qt.year,oe.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",oe.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,ho??null),g(lvt(j.tenantId,Qt)),q[j.tenantId]!=null){const Co=Jg(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${ne.currentSelectedView}/${Qt.month}-${Qt.year}`,{state:{pathnameStackToGoBack:Co,referrer:ne.currentSelectedView}})}g(X0e(ne.currentSelectedView)),ne.reconciliation.selectedAccountId!=null&&g(svt({selectedAccountId:void 0}))},[ne.reconciliation.selectedAccountId,ne.currentSelectedView,j.tenantId,oe.monthEndCloseChecks?.auditSummary,oe.monthEndCloseChecks?.reportEmailSentDate,q,e,d.state,d.pathname]),yo=m.useMemo(()=>({zIndex:s||xo?12:S[2]}),[s,xo]),ei=L&&YSr(d),ti=jt.jsx(sao,{signedInUser:k,currentTenantId:de.currentTenantId??"",tenants:de.fetchState==="Completed"?pe:Gt!=null?[Gt]:[],rewardsConfiguration:{isRewardsTabVisible:H,isRewardsAnimated:oo,rewardsPlan:K.rewardsPlan},selectedMenu:n===!0?$ut("ai_cfo"):cJe(d),isTenantDropdownDisabled:ln,isSettings:GSr(d),isSettingsFeatureEnabled:M,currentTenant:j,isVendorsTabVisible:qt,isZeniAccountEnabled:R,isChargeCardEnabled:F,isTreasuryEnabled:zt,isTreasuryPopupVisible:xo,treasuryYieldPercentage:Ln,isNotificationsTabVisible:jo,notificationCountDetails:st,isExpenseAutomationEnabledForUser:P,isAiCfoAccessEnabled:L,onNotificationIconClick:()=>{on(!1);const Qt=I?Ce===0&&Ae>0?"notifications/comments":"notifications/tasks":"notifications/comments",ho=Jg(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${Qt}`,{state:{pathnameStackToGoBack:ho}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:Qt=>{E(y0e.TENANT_SWITCHING),on(!1);const ho=Qt.tenantEmailDomain,Co=cJe(d),Vo=Co;let Jo="";const Li=kR(Vo);Co==="home"?Jo+="dashboard":Co==="users_and_roles"?Jo+="people":Kse(Co)?Jo+="settings/my_profile":DO(Co)?Jo+=`ai-cfo/${Co}`:Jo+=Vo==="task_checklist"?"tasks":Li?"month_end_close_checks/review":encodeURIComponent(Co);const Zt=`/${encodeURIComponent(ho)}/${Jo}`;u(Zt,{replace:!0}),k!=null&&(g(mce(Qt.tenantId)),g(IXe(k.userId,Qt.tenantId,k.zeniSessionId)));const xn=Qt;dd.trackCompanySwitch(xn.companyId,xn.companyName,xn.userRole)},handleMenuChange:(Qt,ho)=>{if(k!=null&&dd.trackSidePanelClicked(Qt.type,Qt.group),on(!1),e==null)return;if(n&&(Zt=>{if(Kse(Zt)||DO(Zt))return!0;const xn=lJe(Zt).split("/")[0];return!QSr.includes(xn)})(Qt.type)&&o(!1),Qt.type==="ai_cfo"){if(dd.trackAICFOChatScreenStateChanged("viewed","left_menu",Le??null,null),!A)return void gSr({location:d,navigate:u,mergeState:{referrer:"Sidebar"}});const Zt=Jg(d.state?.pathnameStackToGoBack,d.pathname);return void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:Zt,referrer:"Sidebar"}})}const Co=Jg(d.state?.pathnameStackToGoBack,d.pathname),Vo=Qt.type,Jo=kR(Vo)&&Vo!=="command_center";if(Vo!=="command_center"&&!Jo||q[j.tenantId]==null||dd.trackMonthEndCloseClicked(q[j.tenantId].month,q[j.tenantId].year,"Sidebar"),Jo&&q[j.tenantId]!=null){const Zt=q[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${Qt.type}/${Zt.month}-${Zt.year}`,{state:{pathnameStackToGoBack:Co,message:ho,referrer:"Sidebar"}})}const Li=lJe(Qt.type);DO(Qt.type)?(Le!=null&&g(BO()),u(`/${e}/ai-cfo/${Qt.type}`,{state:{pathnameStackToGoBack:Co.slice(0,-1),message:ho,referrer:"Sidebar"}})):u(`../${e}/${Li}`,{state:{pathnameStackToGoBack:Co,message:ho,referrer:"Sidebar"}})},onDeleteChatSession:Qt=>{g(cvt(Qt)),Le===Qt&&Oe(Qt)},handleLogOutClick:()=>{on(!1);const Qt=Jg(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:Qt,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{_i.saveTreasuryPopupSeen(e??"",!0),co(!1)},monthEndCloseChecksView:oe,onPeriodChange:Xo,onCalendarOpen:c,aiCfoView:Ee,isAiCfo:ei,isOnDashboard:te,isTaskManagerAccessEnabled:N,updateCurrentChatSessionId:Qt=>{g(pce({sessionId:Qt,agentId:"controller"})),u(`../${e}/ai-cfo/${Qt}`,{state:{...d.state}})},halloweenAnimationEnabled:me,thanksGivingAnimationEnabled:ge,christmasAnimationEnabled:ye,newYearAnimationEnabled:be}),pr=jt.jsx(Fvt,{position:"fixed",className:Im.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:jt.jsxs(Rvt,{style:{minHeight:Cut},children:[jt.jsx(Nvt,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>on(!0),className:Im.menuButton,size:"large",children:jt.jsx(tkr,{})}),jt.jsx(nkr,{className:Im.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),Qo=eie(Qt=>Qt.breakpoints.up("md")),bi=eie(Qt=>Qt.breakpoints.down("md"));return e==null?null:jt.jsxs(XSr,{className:Im.root,children:[jt.jsx(Vvt,{}),fe===!1?jt.jsxs(jt.Fragment,{children:[Qo||!te?null:pr,jt.jsxs("nav",{className:Im.drawer,children:[Qo?null:jt.jsx(MO,{container:window.document.body,variant:"temporary",open:i,onClose:()=>on(!1),PaperProps:{sx:{width:wL,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:ti}),bi?null:jt.jsx(MO,{PaperProps:{sx:{width:wL,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...yo}},variant:"permanent",open:!0,children:ti})]})]}):null]})});function dJe(e){return e?.data.unread!=null&&e?.mode!=null}const tkr=zn(e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.604839 4.51889C0.333157 4.57797 0.0879194 4.8318 0.0182541 5.12602C-0.00534674 5.22569 -0.00534674 5.4412 0.0182541 5.54086C0.0523791 5.685 0.117181 5.80198 0.22956 5.92229C0.346814 6.04782 0.459133 6.11627 0.600351 6.14826C0.726193 6.17676 23.2738 6.17676 23.3997 6.14826C23.5409 6.11627 23.6532 6.04782 23.7704 5.92229C23.9348 5.74632 24 5.57908 24 5.33344C24 5.1793 23.9797 5.08352 23.9199 4.95575C23.8455 4.79698 23.6879 4.63709 23.5343 4.56468C23.3857 4.49468 24.2116 4.49926 11.9899 4.50058C2.66632 4.50157 0.669677 4.50479 0.604839 4.51889ZM0.669895 11.1732C0.365117 11.2113 0.0889356 11.4752 0.0182179 11.7958C-0.00468131 11.8996 -0.00469357 12.0996 0.0181935 12.2034C0.0806855 12.4867 0.305734 12.7294 0.581516 12.8108C0.65573 12.8327 1.1761 12.8337 12 12.8337C22.8591 12.8337 23.3441 12.8327 23.4192 12.8106C23.6933 12.7297 23.9196 12.4855 23.9818 12.2034C24.0047 12.0996 24.0047 11.8997 23.9818 11.7959C23.9201 11.516 23.7014 11.2776 23.425 11.1888C23.3558 11.1665 22.8817 11.1655 12.0544 11.164C5.84032 11.1631 0.717278 11.1672 0.669895 11.1732ZM0.594774 17.8516C0.458952 17.8831 0.344939 17.9535 0.22956 18.077C0.0652015 18.253 0 18.4202 0 18.6659C0 18.82 0.0203225 18.9158 0.0801289 19.0435C0.154452 19.2023 0.312097 19.3622 0.465726 19.4346C0.614214 19.5046 -0.209758 19.4999 12 19.4999C21.8294 19.4999 23.3082 19.4975 23.3881 19.4811C23.6596 19.4256 23.9122 19.1669 23.9817 18.8733C24.0053 18.7736 24.0053 18.5581 23.9817 18.4584C23.9476 18.3143 23.8828 18.1973 23.7704 18.077C23.6532 17.9515 23.5409 17.883 23.3997 17.851C23.2779 17.8235 0.713601 17.824 0.594774 17.8516Z",fill:"currentColor"})))`
|
|
75260
75260
|
height: 20px;
|
|
75261
75261
|
width: 20px;
|
|
75262
75262
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -75353,7 +75353,7 @@ ${za.beneficiaryAddress} ${ne}`,d(fe),I(!0)})(o),"data-testid":Y("title-text-cop
|
|
|
75353
75353
|
display: flex;
|
|
75354
75354
|
min-height: 100%;
|
|
75355
75355
|
flex-direction: column;
|
|
75356
|
-
`,$kr=()=>{const[e,n]=m.useState(()=>_i.getSignedInUser()),o=Up(),[i,a]=m.useState(!1),[s,c]=m.useState(!1),d=ai(g=>LXe(g).fetchState),u=ai(g=>V1(g));m.useEffect(()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(g)},[e]);const p=m.useCallback(()=>{const g=_i.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(g)?g:f)},[]);m.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),m.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(kvt(u.companyId))},[d,u.companyId,o]);const h=m.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return jt.jsxs(m.Fragment,{children:[s&&jt.jsx(Cue,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?jt.jsx(Skr,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},uJe="init-enter",Akr=m.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return m.useLayoutEffect(()=>{const i=n.get(o||uJe);jkr(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||uJe,c=Ekr();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),jkr=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),Ekr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},sh=e=>m.lazy(async()=>{const n=e.toString(),o=_i.getForceRefreshedComponents(),i=new Set(o),a=_i.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&_i.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&_i.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),xbt=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),ybt=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),bbt=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),wbt=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function as(...e){const n=Ec==="DEV"||Ec==="QA";if(xbt||ybt||bbt||wbt)return void console.log(...e);const o=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&o&&console.log(...e)}function wS(...e){const n=Ec==="DEV"||Ec==="QA";if(xbt||ybt||bbt||wbt)return void console.warn(...e);const o=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&o&&console.warn(...e)}let VC=null,zj=!1;const ls=Ec==="PROD"?"https://api.zeni.ai":Ec==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function pJe(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),o=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),a=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const Ikr={dashboard:function(e){return[...pJe()]},reports:pJe,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),o=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${ls}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${ls}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${ls}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${ls}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${ls}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:o}=e,i=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${ls}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${ls}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${ls}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${ls}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function hJe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,Ikr[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(as(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(as(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(as(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return as(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function mJe(e,n=0,o){if("serviceWorker"in navigator)try{const i=await async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(as("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)})}(1e4),a=navigator.serviceWorker.controller||i.active;if(!a)return void wS("[Prefetch Manager - Service Worker] No active Service Worker available");const s=function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort((h,g)=>p[h.priority]-p[g.priority])}(e);as("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:s.length,high:s.filter(u=>u.priority==="HIGH").length,medium:s.filter(u=>u.priority==="MEDIUM").length,low:s.filter(u=>u.priority==="LOW").length,batchSize:n>0?n:"disabled",expirationTime:o??"20 minutes",viaController:!!navigator.serviceWorker.controller}),s.forEach((u,p)=>{as(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),as(` URL: ${u.url}`)});const c=$L(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};a.postMessage({type:"PREFETCH_URLS",payload:{urls:s.map(u=>({url:u.url,priority:u.priority,apiType:u.apiType})),authHeaders:d,batchSize:n,expirationTime:o}}),as("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){wS("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else wS("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function Lkr({children:e,currentPage:n,tenantId:o,batchCalls:i=0,expirationTime:a,delay:s=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Wp(),k=_i.getSignedInUser(),{useFeatureGate:$}=Dl(),{isFeatureEnabled:j}=$(Gi.isReferralFeatureEnabled),A=un(),E=M7(A?.loggedInUserRole??[]),L=ai(W=>V1(W)),{isFeatureEnabled:I}=$(Gi.isDebitCardFeatureEnabled),P=kXe(I,L),z=SXe(L),_=P===!1&&z===!1;return m.useEffect(()=>{if(!c||x||!k||!o)return;const W=hJe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:_,companyId:L?.companyId??"",isPageIndependent:g}),R=g?"dashboard":n;if(W.length===0)return void as(`[Prefetch Provider - ${R}${g?" (base)":""}] No URLs to prefetch`);as(`[Prefetch Provider - ${R}${g?" (base)":""}] 📦 Generated ${W.length} URLs to prefetch`);const O=setTimeout(()=>{mJe(W,i,a).catch(F=>{wS(`[Prefetch Provider - ${R}${g?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,k,o,n,u,p,j,E,_,L?.companyId,g,i,a,s,v.pathname]),m.useEffect(()=>{y(!1)},[o,v.pathname]),m.useEffect(()=>{g||(y(!1),w(!1))},[v.pathname,g]),m.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&k&&o)||b)return;as(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const W=function(R){const{timeout:O=2e3,onIdle:F}=R;as(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const M=()=>{zj&&(as("[Idle Detection - Service Worker] 🏃 User became active again"),zj=!1),VC&&clearTimeout(VC),VC=setTimeout(()=>{zj||(as("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),zj=!0,F())},O)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach(V=>{document.addEventListener(V,M,!0)}),M(),()=>{as("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),VC&&(clearTimeout(VC),VC=null),H.forEach(V=>{document.removeEventListener(V,M,!0)}),zj=!1}}({timeout:h,onIdle:()=>{if(b)return;as("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const R=hJe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:_,companyId:L.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),O=g?"dashboard":n;R.length!==0?(as(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch on idle`),mJe(R,i,a).catch(F=>{wS(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):as(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=W,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,k,o,b,n,u,p,j,E,_,L.companyId,g,i,a]),m.useEffect(()=>{w(!1)},[o]),m.useEffect(()=>{(function(){const W=performance.getEntriesByType("navigation");if(W.length>0)return W[0].type==="reload";const R=performance.navigation;return!(!R||typeof R.type!="number")&&R.type===1})()&&f&&(as("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const W=await navigator.serviceWorker.ready,R=navigator.serviceWorker.controller||W.active;if(!R)return;as("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),R.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(W){wS("[Prefetch Provider] Failed to notify service worker of refresh:",W)}}())},[]),jt.jsx(jt.Fragment,{children:e})}function Tkr({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=Wp(),u=ai(y=>V1(y)),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=Dl(),{isFeatureEnabled:x}=f(Gi.isServiceWorkerPrefetchingEnabled);return g&&p?jt.jsx(Lkr,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):jt.jsx(jt.Fragment,{children:e})}function Dkr(e,n){const o=mo.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const Pkr=sh(()=>fd(()=>import("./DefaultTenantHome-DtGQaM5T.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),gJe=sh(()=>fd(()=>Promise.resolve().then(()=>okr),void 0)),fJe=sh(()=>fd(()=>import("./ScreenRoutes-CVo30lLK.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),Bkr=sh(()=>fd(()=>import("./ConnectionAuthScreen-Cx532D02.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),Mkr=sh(()=>fd(()=>import("./SignInScreen-C54ZI6c4.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),_kr=sh(()=>fd(()=>import("./MagicLinkSignInScreen-eN1m4ocj.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),xJe=sh(()=>fd(()=>import("./NotFoundScreen-i7in0PiQ.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),zkr=sh(()=>fd(()=>import("./MagicLinkRoutes-CwtB31Og.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),Okr=sh(()=>fd(()=>import("./WiseConfirmationScreen-D4eECASa.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),Fkr=sh(()=>fd(()=>import("./HubSpotOAuthCallbackScreen-P129l75l.js"),__vite__mapDeps([24,1,2,0,5,7,8]))),Rkr=sh(()=>fd(()=>import("./CustomerOnboardingAuthScreen-Df40VEpH.js"),__vite__mapDeps([25,1,2,0,12,8,13,14,15,16,5,17,7]))),Nkr=sh(()=>fd(()=>import("./SignOutScreen-BIz1BEQ9.js"),__vite__mapDeps([26,1,2,0,5,7,8]))),Vkr=sh(()=>fd(()=>import("./OAuthConsentScreen-B6rOIgJM.js"),__vite__mapDeps([27,1,2,0,5,7,8]))),Hkr=()=>{const e=Wp(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=Dkr("/",n);return jt.jsx(MJe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function yJe(){const{isOpen:e}=Cb(),n=T8n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=_Q(),a=m.useRef(!1),s=m.useRef(o),c=m.useRef(!1);return m.useLayoutEffect(()=>{const d=o&&!s.current;s.current=o,d&&e&&(i(!1),n(),c.current=!0)},[o,e,i,n]),m.useEffect(()=>{e&&!a.current&&(c.current=!1,o&&i(!1)),a.current=e},[e,o,i]),m.useEffect(()=>{!e&&c.current&&(c.current=!1,i(!0))},[e,i]),null}const Ukr=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=_i.isSignedIn(),i=ai(_=>V1(_)),a=_i.getSignedInUser(),s=o&&g6(a),c=ai(_=>$vt(_)).tenantsBaseInOrder.map(_=>({companyId:_.companyId,tenantId:_.tenantId,companyName:_.companyName})),d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i.tenantId??""},u=Up(),p=wc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Wyt(),g=OQ(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo(()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b}),[f,y,x,b]),{useFeatureGate:C}=Dl(),{isFeatureEnabled:v}=C(Gi.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=C(Gi.isBillPayCommentingEnabled),{isFeatureEnabled:$}=C(Gi.isReimbursementCommentingEnabled),{isFeatureEnabled:j}=C(Gi.isExpenseAutomationEnabled),{isFeatureEnabled:A}=C(Gi.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=C(Gi.isTreasuryCommentingEnabled),{isFeatureEnabled:L}=C(Gi.isCheckingCommentingEnabled),{isFeatureEnabled:I}=C(Gi.isTransactionCommentingEnabled),{isFeatureEnabled:P}=C(Gi.isCardsCommentingEnabled),z=k||$||s&&j||!s&&A||E||L||I||P;return m.useEffect(()=>{!h&&f&&x(!1)},[h,f]),m.useEffect(()=>{h||u(Avt())},[u,h]),jt.jsx(L8n,{children:i.tenantId!=null?jt.jsx(BZi,{roomId:`dashboard_${i.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${ck.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${ck.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:s,autoConnect:s||I||P,loggedInUser:a,withRoomProvider:!0,withThreadsProvider:z,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:i.companyId},children:jt.jsxs(qse.Provider,{value:w,children:[jt.jsx(yJe,{}),jt.jsxs(CJe,{children:[jt.jsx(gJe,{tenantEmailDomain:e}),jt.jsx(wJe,{children:jt.jsx(bJe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})}):jt.jsx(_Zi,{children:jt.jsxs(qse.Provider,{value:w,children:[jt.jsx(yJe,{}),jt.jsxs(CJe,{children:[jt.jsx(gJe,{tenantEmailDomain:e}),jt.jsx(wJe,{children:jt.jsx(bJe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})})})},bJe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=ai(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=Dl(),{configValue:c}=s(T3.webappPrefetchConfig),d=typeof c.SERVICE_WORKER_BATCH_CALLS=="number"?c.SERVICE_WORKER_BATCH_CALLS:15,u=typeof c.SERVICE_WORKER_IDLE_TIMEOUT=="number"?c.SERVICE_WORKER_IDLE_TIMEOUT:3e3,p=typeof c.EXPIRATION_TIME=="number"&&c.EXPIRATION_TIME>0?c.EXPIRATION_TIME:12e5,{clearLoading:h}=zQ(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=_Q();return m.useEffect(()=>{h(y0e.APP_INITIALIZATION)},[h]),jt.jsx(m.Suspense,{fallback:null,children:jt.jsx(Tkr,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:jt.jsxs(Zbt,{children:[jt.jsx(eu,{path:"/magic_links/*",element:jt.jsx(zkr,{})}),jt.jsx(eu,{path:"/wise/callback/link-account/*",element:jt.jsx(Okr,{})}),jt.jsx(eu,{path:"/page-not-found",element:jt.jsx(xJe,{})}),jt.jsx(eu,{path:"/",element:jt.jsx(Pkr,{})}),jt.jsx(eu,{path:"/aicfo",element:jt.jsx(Hkr,{})}),jt.jsx(eu,{path:"/onboarding/auth",element:jt.jsx(Rkr,{})}),jt.jsx(eu,{path:"/:tenantEmailDomain/*",element:jt.jsx(Gkr,{children:jt.jsxs(TSr,{children:[jt.jsxs(Ykr,{children:[a!=null?jt.jsx($kr,{}):null,n?jt.jsx(fJe,{setTenantEmailDomain:e}):jt.jsx(Yoe,{children:jt.jsx(fJe,{setTenantEmailDomain:e})})]}),o?jt.jsxs(jt.Fragment,{children:[jt.jsx(fSr,{}),jt.jsx(qkr,{isOpen:g,children:jt.jsx(gkr,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:i})})]}):null]})})}),jt.jsx(eu,{path:"/signin/auth",element:jt.jsx(Yoe,{children:jt.jsx(Mkr,{setTenantEmailDomain:e})})}),jt.jsx(eu,{path:"/signin/magic-link",element:jt.jsx(Yoe,{children:jt.jsx(_kr,{})})}),jt.jsx(eu,{path:"/signout",element:jt.jsx(Nkr,{})}),jt.jsx(eu,{path:"/connection/auth",element:jt.jsx(Bkr,{})}),jt.jsx(eu,{path:"/oauth/hubspot/callback",element:jt.jsx(Fkr,{})}),jt.jsx(eu,{path:"/oauth/authorize",element:jt.jsx(Vkr,{})}),jt.jsx(eu,{path:"*",element:jt.jsx(xJe,{})})]})})})},wJe=({children:e})=>{const{isOpen:n,width:o}=Cb();return jt.jsx(Qkr,{commentsDrawerWidth:n?o:0,children:e})},Wkr=zn("div")`
|
|
75356
|
+
`,$kr=()=>{const[e,n]=m.useState(()=>_i.getSignedInUser()),o=Up(),[i,a]=m.useState(!1),[s,c]=m.useState(!1),d=ai(g=>LXe(g).fetchState),u=ai(g=>V1(g));m.useEffect(()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(g)},[e]);const p=m.useCallback(()=>{const g=_i.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(g)?g:f)},[]);m.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),m.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(kvt(u.companyId))},[d,u.companyId,o]);const h=m.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return jt.jsxs(m.Fragment,{children:[s&&jt.jsx(Cue,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?jt.jsx(Skr,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},uJe="init-enter",Akr=m.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return m.useLayoutEffect(()=>{const i=n.get(o||uJe);jkr(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||uJe,c=Ekr();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),jkr=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),Ekr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},sh=e=>m.lazy(async()=>{const n=e.toString(),o=_i.getForceRefreshedComponents(),i=new Set(o),a=_i.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&_i.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&_i.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),xbt=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),ybt=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),bbt=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),wbt=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function as(...e){const n=Ec==="DEV"||Ec==="QA";if(xbt||ybt||bbt||wbt)return void console.log(...e);const o=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&o&&console.log(...e)}function wS(...e){const n=Ec==="DEV"||Ec==="QA";if(xbt||ybt||bbt||wbt)return void console.warn(...e);const o=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&o&&console.warn(...e)}let VC=null,zj=!1;const ls=Ec==="PROD"?"https://api.zeni.ai":Ec==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function pJe(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),o=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),a=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${ls}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const Ikr={dashboard:function(e){return[...pJe()]},reports:pJe,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),o=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${ls}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${ls}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${ls}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${ls}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${ls}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${ls}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:o}=e,i=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${ls}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${ls}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${ls}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${ls}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function hJe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,Ikr[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(as(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(as(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(as(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return as(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function mJe(e,n=0,o){if("serviceWorker"in navigator)try{const i=await async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(as("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)})}(1e4),a=navigator.serviceWorker.controller||i.active;if(!a)return void wS("[Prefetch Manager - Service Worker] No active Service Worker available");const s=function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort((h,g)=>p[h.priority]-p[g.priority])}(e);as("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:s.length,high:s.filter(u=>u.priority==="HIGH").length,medium:s.filter(u=>u.priority==="MEDIUM").length,low:s.filter(u=>u.priority==="LOW").length,batchSize:n>0?n:"disabled",expirationTime:o??"20 minutes",viaController:!!navigator.serviceWorker.controller}),s.forEach((u,p)=>{as(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),as(` URL: ${u.url}`)});const c=$L(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};a.postMessage({type:"PREFETCH_URLS",payload:{urls:s.map(u=>({url:u.url,priority:u.priority,apiType:u.apiType})),authHeaders:d,batchSize:n,expirationTime:o}}),as("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){wS("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else wS("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function Lkr({children:e,currentPage:n,tenantId:o,batchCalls:i=0,expirationTime:a,delay:s=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Wp(),k=_i.getSignedInUser(),{useFeatureGate:$}=Dl(),{isFeatureEnabled:j}=$(Gi.isReferralFeatureEnabled),A=un(),E=M7(A?.loggedInUserRole??[]),L=ai(W=>V1(W)),{isFeatureEnabled:I}=$(Gi.isDebitCardFeatureEnabled),P=kXe(I,L),z=SXe(L),_=P===!1&&z===!1;return m.useEffect(()=>{if(!c||x||!k||!o)return;const W=hJe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:_,companyId:L?.companyId??"",isPageIndependent:g}),R=g?"dashboard":n;if(W.length===0)return void as(`[Prefetch Provider - ${R}${g?" (base)":""}] No URLs to prefetch`);as(`[Prefetch Provider - ${R}${g?" (base)":""}] 📦 Generated ${W.length} URLs to prefetch`);const O=setTimeout(()=>{mJe(W,i,a).catch(F=>{wS(`[Prefetch Provider - ${R}${g?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,k,o,n,u,p,j,E,_,L?.companyId,g,i,a,s,v.pathname]),m.useEffect(()=>{y(!1)},[o,v.pathname]),m.useEffect(()=>{g||(y(!1),w(!1))},[v.pathname,g]),m.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&k&&o)||b)return;as(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const W=function(R){const{timeout:O=2e3,onIdle:F}=R;as(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const M=()=>{zj&&(as("[Idle Detection - Service Worker] 🏃 User became active again"),zj=!1),VC&&clearTimeout(VC),VC=setTimeout(()=>{zj||(as("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),zj=!0,F())},O)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach(V=>{document.addEventListener(V,M,!0)}),M(),()=>{as("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),VC&&(clearTimeout(VC),VC=null),H.forEach(V=>{document.removeEventListener(V,M,!0)}),zj=!1}}({timeout:h,onIdle:()=>{if(b)return;as("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const R=hJe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:_,companyId:L.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),O=g?"dashboard":n;R.length!==0?(as(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch on idle`),mJe(R,i,a).catch(F=>{wS(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):as(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=W,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,k,o,b,n,u,p,j,E,_,L.companyId,g,i,a]),m.useEffect(()=>{w(!1)},[o]),m.useEffect(()=>{(function(){const W=performance.getEntriesByType("navigation");if(W.length>0)return W[0].type==="reload";const R=performance.navigation;return!(!R||typeof R.type!="number")&&R.type===1})()&&f&&(as("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const W=await navigator.serviceWorker.ready,R=navigator.serviceWorker.controller||W.active;if(!R)return;as("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),R.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(W){wS("[Prefetch Provider] Failed to notify service worker of refresh:",W)}}())},[]),jt.jsx(jt.Fragment,{children:e})}function Tkr({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=Wp(),u=ai(y=>V1(y)),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=Dl(),{isFeatureEnabled:x}=f(Gi.isServiceWorkerPrefetchingEnabled);return g&&p?jt.jsx(Lkr,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):jt.jsx(jt.Fragment,{children:e})}function Dkr(e,n){const o=mo.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const Pkr=sh(()=>fd(()=>import("./DefaultTenantHome-CwgycKYc.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),gJe=sh(()=>fd(()=>Promise.resolve().then(()=>okr),void 0)),fJe=sh(()=>fd(()=>import("./ScreenRoutes-Bm5EazfY.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),Bkr=sh(()=>fd(()=>import("./ConnectionAuthScreen-Bn_8LVY-.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),Mkr=sh(()=>fd(()=>import("./SignInScreen-C1EKfqaQ.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),_kr=sh(()=>fd(()=>import("./MagicLinkSignInScreen-D_t_Me45.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),xJe=sh(()=>fd(()=>import("./NotFoundScreen-DcBza--g.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),zkr=sh(()=>fd(()=>import("./MagicLinkRoutes-CWoYIOYU.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),Okr=sh(()=>fd(()=>import("./WiseConfirmationScreen-BsEe1BHV.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),Fkr=sh(()=>fd(()=>import("./HubSpotOAuthCallbackScreen-QEO5L34X.js"),__vite__mapDeps([24,1,2,0,5,7,8]))),Rkr=sh(()=>fd(()=>import("./CustomerOnboardingAuthScreen-Bgpl9puf.js"),__vite__mapDeps([25,1,2,0,12,8,13,14,15,16,5,17,7]))),Nkr=sh(()=>fd(()=>import("./SignOutScreen-DK40OwVP.js"),__vite__mapDeps([26,1,2,0,5,7,8]))),Vkr=sh(()=>fd(()=>import("./OAuthConsentScreen-rh4Splr8.js"),__vite__mapDeps([27,1,2,0,5,7,8]))),Hkr=()=>{const e=Wp(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=Dkr("/",n);return jt.jsx(MJe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function yJe(){const{isOpen:e}=Cb(),n=T8n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=_Q(),a=m.useRef(!1),s=m.useRef(o),c=m.useRef(!1);return m.useLayoutEffect(()=>{const d=o&&!s.current;s.current=o,d&&e&&(i(!1),n(),c.current=!0)},[o,e,i,n]),m.useEffect(()=>{e&&!a.current&&(c.current=!1,o&&i(!1)),a.current=e},[e,o,i]),m.useEffect(()=>{!e&&c.current&&(c.current=!1,i(!0))},[e,i]),null}const Ukr=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=_i.isSignedIn(),i=ai(_=>V1(_)),a=_i.getSignedInUser(),s=o&&g6(a),c=ai(_=>$vt(_)).tenantsBaseInOrder.map(_=>({companyId:_.companyId,tenantId:_.tenantId,companyName:_.companyName})),d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i.tenantId??""},u=Up(),p=wc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Wyt(),g=OQ(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo(()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b}),[f,y,x,b]),{useFeatureGate:C}=Dl(),{isFeatureEnabled:v}=C(Gi.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=C(Gi.isBillPayCommentingEnabled),{isFeatureEnabled:$}=C(Gi.isReimbursementCommentingEnabled),{isFeatureEnabled:j}=C(Gi.isExpenseAutomationEnabled),{isFeatureEnabled:A}=C(Gi.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=C(Gi.isTreasuryCommentingEnabled),{isFeatureEnabled:L}=C(Gi.isCheckingCommentingEnabled),{isFeatureEnabled:I}=C(Gi.isTransactionCommentingEnabled),{isFeatureEnabled:P}=C(Gi.isCardsCommentingEnabled),z=k||$||s&&j||!s&&A||E||L||I||P;return m.useEffect(()=>{!h&&f&&x(!1)},[h,f]),m.useEffect(()=>{h||u(Avt())},[u,h]),jt.jsx(L8n,{children:i.tenantId!=null?jt.jsx(BZi,{roomId:`dashboard_${i.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${ck.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${ck.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:s,autoConnect:s||I||P,loggedInUser:a,withRoomProvider:!0,withThreadsProvider:z,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:i.companyId},children:jt.jsxs(qse.Provider,{value:w,children:[jt.jsx(yJe,{}),jt.jsxs(CJe,{children:[jt.jsx(gJe,{tenantEmailDomain:e}),jt.jsx(wJe,{children:jt.jsx(bJe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})}):jt.jsx(_Zi,{children:jt.jsxs(qse.Provider,{value:w,children:[jt.jsx(yJe,{}),jt.jsxs(CJe,{children:[jt.jsx(gJe,{tenantEmailDomain:e}),jt.jsx(wJe,{children:jt.jsx(bJe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})})})},bJe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=ai(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=Dl(),{configValue:c}=s(T3.webappPrefetchConfig),d=typeof c.SERVICE_WORKER_BATCH_CALLS=="number"?c.SERVICE_WORKER_BATCH_CALLS:15,u=typeof c.SERVICE_WORKER_IDLE_TIMEOUT=="number"?c.SERVICE_WORKER_IDLE_TIMEOUT:3e3,p=typeof c.EXPIRATION_TIME=="number"&&c.EXPIRATION_TIME>0?c.EXPIRATION_TIME:12e5,{clearLoading:h}=zQ(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=_Q();return m.useEffect(()=>{h(y0e.APP_INITIALIZATION)},[h]),jt.jsx(m.Suspense,{fallback:null,children:jt.jsx(Tkr,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:jt.jsxs(Zbt,{children:[jt.jsx(eu,{path:"/magic_links/*",element:jt.jsx(zkr,{})}),jt.jsx(eu,{path:"/wise/callback/link-account/*",element:jt.jsx(Okr,{})}),jt.jsx(eu,{path:"/page-not-found",element:jt.jsx(xJe,{})}),jt.jsx(eu,{path:"/",element:jt.jsx(Pkr,{})}),jt.jsx(eu,{path:"/aicfo",element:jt.jsx(Hkr,{})}),jt.jsx(eu,{path:"/onboarding/auth",element:jt.jsx(Rkr,{})}),jt.jsx(eu,{path:"/:tenantEmailDomain/*",element:jt.jsx(Gkr,{children:jt.jsxs(TSr,{children:[jt.jsxs(Ykr,{children:[a!=null?jt.jsx($kr,{}):null,n?jt.jsx(fJe,{setTenantEmailDomain:e}):jt.jsx(Yoe,{children:jt.jsx(fJe,{setTenantEmailDomain:e})})]}),o?jt.jsxs(jt.Fragment,{children:[jt.jsx(fSr,{}),jt.jsx(qkr,{isOpen:g,children:jt.jsx(gkr,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:i})})]}):null]})})}),jt.jsx(eu,{path:"/signin/auth",element:jt.jsx(Yoe,{children:jt.jsx(Mkr,{setTenantEmailDomain:e})})}),jt.jsx(eu,{path:"/signin/magic-link",element:jt.jsx(Yoe,{children:jt.jsx(_kr,{})})}),jt.jsx(eu,{path:"/signout",element:jt.jsx(Nkr,{})}),jt.jsx(eu,{path:"/connection/auth",element:jt.jsx(Bkr,{})}),jt.jsx(eu,{path:"/oauth/hubspot/callback",element:jt.jsx(Fkr,{})}),jt.jsx(eu,{path:"/oauth/authorize",element:jt.jsx(Vkr,{})}),jt.jsx(eu,{path:"*",element:jt.jsx(xJe,{})})]})})})},wJe=({children:e})=>{const{isOpen:n,width:o}=Cb();return jt.jsx(Qkr,{commentsDrawerWidth:n?o:0,children:e})},Wkr=zn("div")`
|
|
75357
75357
|
display:flex;
|
|
75358
75358
|
`,CJe=zn("div")`
|
|
75359
75359
|
display: flex;
|
|
@@ -75475,4 +75475,4 @@ ${za.beneficiaryAddress} ${ne}`,d(fe),I(!0)})(o),"data-testid":Y("title-text-cop
|
|
|
75475
75475
|
}
|
|
75476
75476
|
`,o$r=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?jt.jsxs(Jkr,{style:n,children:[jt.jsxs(Xkr,{children:[jt.jsx(gz,{children:jt.jsx($h,{width:96,height:20})}),jt.jsxs(gz,{children:[jt.jsx($h,{width:55,height:12}),jt.jsx($h,{width:78,height:16}),jt.jsx($h,{width:46,height:16})]}),jt.jsxs(gz,{children:[jt.jsx($h,{width:55,height:12}),jt.jsx($h,{width:110,height:16}),jt.jsx($h,{width:84,height:16})]}),jt.jsxs(gz,{children:[jt.jsx($h,{width:55,height:12}),jt.jsx($h,{width:84,height:16}),jt.jsx($h,{width:64,height:16})]})]}),jt.jsxs(e$r,{children:[jt.jsxs(t$r,{children:[jt.jsx($h,{width:106,height:27}),jt.jsx($h,{width:111,height:32})]}),jt.jsx(n$r,{children:jt.jsx(Zkr,{width:96,height:96})})]})]}):null;function i$r({minDisplayTime:e=0}){const{isLoading:n}=zQ(),[o,i]=m.useState(!1),a=m.useRef(),s=m.useRef(null);return m.useLayoutEffect(()=>{if(a.current&&clearTimeout(a.current),_i.isSignedIn()===!1&&document.querySelector("#app-shell-loader")?.remove(),n)o||(i(!0),s.current=Date.now());else if(!n&&o){document.querySelector("#app-shell-loader")?.remove();const c=s.current;if(c!=null){const d=Date.now()-c,u=Math.max(0,e-d);a.current=setTimeout(()=>{i(!1),s.current=null},u)}else i(!1)}},[n,o,e]),m.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),!n&&o||!o?null:jt.jsx(o$r,{fetchState:"In-Progress"})}const vJe="missing-receipts-batch-completed",nx=new class{state={activeTenantFetchFired:new Set,activeTenantFetchInProgress:!1,allTenantsFetchFired:!1,allTenantsFetchInProgress:!1,connectionsFetchFired:new Set,excludedResourcesFetchFired:new Set};reset(){this.state={activeTenantFetchFired:new Set,activeTenantFetchInProgress:!1,allTenantsFetchFired:!1,allTenantsFetchInProgress:!1,connectionsFetchFired:new Set,excludedResourcesFetchFired:new Set}}shouldFetchActiveTenant(e){return!this.state.activeTenantFetchInProgress&&!this.state.activeTenantFetchFired.has(e)}markActiveTenantFetchStarted(e){this.state.activeTenantFetchInProgress=!0,this.state.activeTenantFetchFired.add(e)}markActiveTenantFetchCompleted(e){this.state.activeTenantFetchInProgress=!1}markActiveTenantFetchFailed(e){this.state.activeTenantFetchInProgress=!1}shouldFetchAllTenants(){return!this.state.allTenantsFetchInProgress&&!this.state.allTenantsFetchFired}markAllTenantsFetchStarted(){this.state.allTenantsFetchInProgress=!0,this.state.allTenantsFetchFired=!0}markAllTenantsFetchCompleted(){this.state.allTenantsFetchInProgress=!1}markAllTenantsFetchFailed(){this.state.allTenantsFetchInProgress=!1,this.state.allTenantsFetchFired=!1}shouldFetchExcludedResources(e){return!this.state.excludedResourcesFetchFired.has(e)}markExcludedResourcesFetchStarted(e){this.state.excludedResourcesFetchFired.add(e)}shouldFetchConnections(e){return!this.state.connectionsFetchFired.has(e)}markConnectionsFetchStarted(e){this.state.connectionsFetchFired.add(e)}clearTenant(e){this.state.activeTenantFetchFired.delete(e),this.state.connectionsFetchFired.delete(e),this.state.excludedResourcesFetchFired.delete(e)}clearAllFiredStates(){this.state.activeTenantFetchFired.clear(),this.state.connectionsFetchFired.clear(),this.state.excludedResourcesFetchFired.clear(),this.state.allTenantsFetchInProgress||(this.state.allTenantsFetchFired=!1)}getState(){return{...this.state,activeTenantFetchFired:Array.from(this.state.activeTenantFetchFired)}}};ee.updateAppLocaleID("en");let uv=null;function r$r(){return uv===null&&(uv=function(){console.warn(`initializing epic state with url ${JSON.stringify(ck)}`);const e=_i.getSignedInUser(),n=e!=null?function(){const a=window.location.pathname.split("/").filter(Boolean)[0],s=["signin","signout"];if(a!=null&&!s.includes(a)){const d=_i.getSignedInUserTenant(a);if(d?.tenantId!=null)return d.tenantId}return _i.getActiveTenantForUser()?.tenantId}():void 0,o=Lvt(ck,e?.userId,e?.zeniSessionId,n,bS(),c$r);Xoe();const i=$L();return i.userId!=null&&dd.identify(i.userId,{tenant_id:i.tenantId}),o}(),Xoe().then(()=>{uv!=null&&(nx.reset(),s$r(uv))}).catch(e=>{console.error("Failed to load feature epics:",e),Pbt(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
75477
75477
|
|
|
75478
|
-
Please refresh the page to try again.`)})),uv}function DEr(){return uv}const fz=new Evt,SJe=()=>{const e=Up(),n=_i.getSignedInUser(),o=ai(w=>V1(w)),[i,a]=m.useState(null),s=function(w){const{useDynamicConfig:C}=Dl(),{configValue:v,isDynamicConfigLoading:k}=C(d1e.sessionAutoLogoutConfig),$=v!=null&&Object.keys(v).length>0;if(k||w==null||!$)return UM;const j=eVe(v.users_disabled_for_auto_logout),A=eVe(v.users_enabled_for_auto_logout),E=v.is_inactivity_based_logout_feature_enabled===!0,L=j.includes(w),I=!L&&A.includes(w);return{heartbeatIntervalMinutes:L?0:Dte(v.heartbeat_interval_minutes,UM.heartbeatIntervalMinutes),idleTimeoutMinutes:Dte(v.idle_timeout_minutes,UM.idleTimeoutMinutes),isAutoLogoutEnabled:!L&&(I||E),warningDurationSeconds:Dte(v.warning_duration_seconds,UM.warningDurationSeconds)}}(n?.userId),c=m.useCallback((w="manual")=>{w==="auto-logout"?function(C){try{sessionStorage.setItem(Sue,"auto-logout"),sessionStorage.setItem(kue,String(C.idleTimeoutMinutes)),sessionStorage.setItem($ue,String(Date.now())),qE=void 0}catch{}}({idleTimeoutMinutes:s.idleTimeoutMinutes}):(c0t(),qE=void 0),a(null),fz.stop(),e(Pvt()),e(Bvt(!1)),_i.clearAll(),window.location.href="/signin/auth"},[e,a,s.idleTimeoutMinutes]);m.useEffect(()=>{if(n?.zeniSessionId!=null)return fz.start({idleTimeoutMinutes:s.idleTimeoutMinutes,warningDurationSeconds:s.warningDurationSeconds,heartbeatIntervalMinutes:s.heartbeatIntervalMinutes,isAutoLogoutEnabled:s.isAutoLogoutEnabled},{onHeartbeat:()=>e(Mvt()),onWarningStart:w=>{dd.trackSessionTimeoutPopupShown(w),a(w)},onWarningTick:a,onAutoLogout:()=>{dd.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>a(null)}),()=>fz.stop()},[n?.zeniSessionId,s.isAutoLogoutEnabled,s.idleTimeoutMinutes,s.warningDurationSeconds,s.heartbeatIntervalMinutes,e,c,a]);const d=ai(w=>_vt(w,o.companyId)),u=wc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];m.useEffect(()=>()=>{e(ome())},[]);const h=ai(w=>zvt(w));(()=>{const w=S0e(),C=Up(),{useFeatureGate:v}=Dl(),{isFeatureEnabled:k}=v(Gi.isMissingReceiptsBulkUploadEnabled);m.useEffect(()=>{if(k!==!0||w==null)return;const $=_i.getSignedInUser()?.userId;if($==null)return;const j=fI(w,$),A=E=>{C(jvt({batchId:E.batch_id,progress:E.progress,status:E.status.toLowerCase()}))};return j.bind(vJe,A),()=>{j.unbind(vJe,A)}},[w,C,k])})();const g=o?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo(()=>EXe(o.userRole),[o.userRole]),x={events:o.userRoleId!=null?[`private-encrypted-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(w,C)=>{var v;v=C,v?.data!=null&&e(Ovt(C))}},y=m.useMemo(()=>_i.getSignedInUser(),[]),b=m.useMemo(()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:o.tenantId??""}),[y,o.tenantId]);return jt.jsxs(f0n,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:o,connectionName:g,controllersList:d},children:[jt.jsx(s0n,{toolkit:{analytics:dd,sentry:Bbt,authParams:b},children:jt.jsxs(jhn,{endPoint:{url:h0e},children:[jt.jsx(Hai,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(ome())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),jt.jsx(Kkr,{...x})]})}),i!=null&&n!=null?jt.jsx(Kvr,{secondsRemaining:i,onContinueSession:()=>{dd.trackSessionTimeoutClicked("continue",i),fz.continueSession()},onSignOut:()=>{dd.trackSessionTimeoutClicked("sign_out",i),c()}}):null]})},a$r=()=>{const e=_i.isSignedIn(),n=ai(s=>V1(s)).companyId,o=ai(s=>Ivt(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=m.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=m.useMemo(()=>({currentFeatureEnv:nJe,featureClientSecret:Fa.featureClientSecret,providerEndPoint:bL.statsigBaseUrl}),[nJe,Fa.featureClientSecret,bL.statsigBaseUrl]);return n?jt.jsx(Agn,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:jt.jsx(SJe,{})}):jt.jsx(SJe,{})},l$r=Dbt(function(){const e=m.useMemo(()=>r$r(),[]),[n,o]=m.useState(!1),[i,a]=m.useState(!1);m.useEffect(()=>{Xoe().then(()=>o(!0)).catch(()=>{})},[]);const s=m.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return m.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),jt.jsx(NSr,{children:jt.jsx(Jbt,{store:e,children:jt.jsx(VSr,{value:n,children:jt.jsxs(ySr,{children:[jt.jsx(i$r,{}),jt.jsx(LUt,{children:jt.jsx(FSr,{children:jt.jsxs(a0n,{children:[i?jt.jsx(M9n,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,jt.jsx(a$r,{})]})})})]})})})})});function s$r(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:_i.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=V1(n);let c;if(!a||["signin","signout"].includes(a))if(s?.tenantEmailDomain!=null&&s?.tenantId!=null)a=s.tenantEmailDomain,c=s.tenantId;else{const d=_i.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=_i.getSignedInUserTenant(a)?.tenantId;c!=null&&(vXe(i.userId,i.zeniSessionId,c),e.dispatch(mce(c)),a!=null&&_i.saveActiveTenantDomainForUser(a),nx.shouldFetchActiveTenant(c)&&(nx.markActiveTenantFetchStarted(c),e.dispatch(IXe(i.userId,c,i.zeniSessionId))),nx.shouldFetchExcludedResources(c)&&(nx.markExcludedResourcesFetchStarted(c),e.dispatch(Tvt(i.userId,c))),nx.shouldFetchConnections(c)&&(nx.markConnectionsFetchStarted(c),e.dispatch(Dvt(i.userId,c))))}function c$r(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const d$r=!!(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}$/)),kJe=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function $Je(e,n){navigator.serviceWorker.register(e).then(o=>{o.onupdatefound=()=>{const i=o.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"}),o.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},o.waiting&&o.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),o.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(o=>{console.error("Error during service worker registration:",o)})}const AJe="zeni-chunk-reload-at",u$r=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function jJe(e){try{const n=Number(sessionStorage.getItem(AJe))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(AJe,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let qoe=!1,EJe=null;const IJe="//js.hs-scripts.com/5991084.js",LJe="hs-script-loader",p$r=_i.getSignedInUser(),h$r=p$r?.zeniSessionId;var z8;window.addEventListener("vite:preloadError",e=>{const n=e;jJe(n.payload)&&n.preventDefault()}),window.addEventListener("unhandledrejection",e=>{(function(n){const o=String(n?.message??n??"");return u$r.some(i=>o.includes(i))})(e.reason)&&jJe(e.reason)}),async function(){try{const o=await async function(){const a={environment:Ec},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${h0e}/api/keys?query=${s}`);if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return await c.json()}catch(c){return console.error("Error fetching details:",c),null}}(),i=(e=o,n="ZENI-WEB-APP-"+Ec,gI.AES.decrypt(e,n).toString(gI.enc.Utf8));dSr(JSON.parse(i)),aSt.createRoot(document.getElementById("root")).render(jt.jsx(T.StrictMode,{children:jt.jsx(Xbt,{children:jt.jsx(l$r,{})})})),function(){const a=()=>{const s=Fa.sentryDsn?.trim();if(!s)return;const c=Fa.sentryProfileSamplingRate>0;Mbt({dsn:s,tracesSampleRate:Fa.sentryTraceSamplingRate,profilesSampleRate:c?Fa.sentryProfileSamplingRate:0,integrations:[_bt(),...c?[zbt()]:[],Obt({maskAllText:!0,blockAllMedia:!0})],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction:d=>(d.breadcrumbs&&(d.breadcrumbs=d.breadcrumbs.filter(u=>u.category!=="console"||!((u.message??"").toLowerCase().includes("called people set")||Array.isArray(u.data?.arguments)&&u.data.arguments.some(p=>typeof p=="string"&&p.toLowerCase().includes("called people set"))||(Array.isArray(u.data?.arguments)&&(u.data.arguments=u.data.arguments.map(p=>{if(typeof p=="string"&&p.includes("user_roles"))try{const h=p.match(/\{.*\}/s);if(h!==null){const g=JSON.parse(h[0]);if(g.user_roles!=null)return delete g.user_roles,p.replace(h[0],JSON.stringify(g))}}catch{}return p})),0)))),d)}),Fbt("session-id",h$r)};"requestIdleCallback"in window?requestIdleCallback(a):setTimeout(a,0)}()}catch(o){console.error("Error initializing app:",o)}var e,n}(),typeof window>"u"?Promise.resolve(!1):EJe!==null||(EJe=new Promise(e=>{if(qoe)return void e(!0);const n=()=>{qoe?e(!0):(qoe=!0,new Promise((i,a)=>{if(document.getElementById(LJe))return void i();const s=document.createElement("script");s.id=LJe,s.src=IJe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${IJe}`)),document.body.appendChild(s)}).then(()=>{e(!0)}).catch(i=>{console.error("Error loading third-party scripts:",i),e(!0)}))},o=()=>{var i,a;i=()=>{setTimeout(n,7e3)},a=3e3,"requestIdleCallback"in window?window.requestIdleCallback(i,{timeout:a}):setTimeout(i,50)};document.readyState==="complete"?o():window.addEventListener("load",o,{once:!0})})),function(){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{var e;d$r?(e=kJe,fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const o=n.headers.get("content-type");n.status===404||o!=null&&!o.includes("javascript")?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>window.location.reload())}):$Je(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})):$Je(kJe)})}}(),(z8=console.log)&&z8 instanceof Function&&fd(async()=>{const{getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a}=await import("./web-vitals-D_vxw1oG.js");return{getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a}},[]).then(({getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a})=>{e(z8),n(z8),o(z8),i(z8),a(z8)});export{gSr as $,D as A,wkr as B,B as C,ee as D,I$r as E,ljr as F,ujr as G,Z1e as H,tAr as I,ce as J,Nvo as K,y0e as L,AEr as M,rAr as N,ISr as O,IEr as P,cjr as Q,dbt as R,Zkr as S,LZi as T,Gi as U,sjr as V,LEr as W,_Q as X,DSr as Y,LSr as Z,TEr as _,OQ as a,lbt as a$,X$r as a0,Mu as a1,h0e as a2,iV as a3,sEr as a4,$ut as a5,nEr as a6,k0e as a7,dJe as a8,JSr as a9,Pjr as aA,_jr as aB,zjr as aC,W$r as aD,fjr as aE,RAr as aF,HAr as aG,lhe as aH,bjr as aI,yjr as aJ,VAr as aK,NAr as aL,U$r as aM,T3 as aN,XAr as aO,qSr as aP,rjr as aQ,Cvo as aR,iAr as aS,RVn as aT,nlo as aU,mjr as aV,hjr as aW,gjr as aX,K$r as aY,Sn as aZ,ra as a_,USr as aa,YSr as ab,ZSr as ac,sao as ad,cJe as ae,GSr as af,Kse as ag,DO as ah,kR as ai,lJe as aj,Uo as ak,zAr as al,_Ar as am,K$o as an,oAr as ao,njr as ap,Et as aq,ejr as ar,wL as as,ck as at,M3 as au,tjr as av,Mjr as aw,Eut as ax,Djr as ay,Bjr as az,Dkr as b,qAr as b$,jEr as b0,ukr as b1,J$r as b2,eAr as b3,WSr as b4,g0e as b5,mSr as b6,G$r as b7,kYn as b8,c1t as b9,Sa as bA,Fjr as bB,jAr as bC,$Ar as bD,wEr as bE,ZAr as bF,gEr as bG,LAr as bH,TAr as bI,PAr as bJ,ijr as bK,yAr as bL,bAr as bM,ojr as bN,ajr as bO,vAr as bP,SAr as bQ,kAr as bR,DAr as bS,H$r as bT,BAr as bU,MAr as bV,dEr as bW,AAr as bX,kEr as bY,fEr as bZ,QAr as b_,aAr as ba,aEr as bb,iEr as bc,zSr as bd,EAr as be,B$r as bf,F$r as bg,A1e as bh,M$r as bi,cEr as bj,FAr as bk,z$r as bl,O$r as bm,_$r as bn,bS as bo,xjr as bp,hAr as bq,gAr as br,mAr as bs,dAr as bt,cAr as bu,fAr as bv,pjr as bw,uAr as bx,pAr as by,xAr as bz,dd as c,Dyt as c$,GAr as c0,T$r as c1,UAr as c2,WAr as c3,Cue as c4,KAr as c5,JAr as c6,S6r as c7,T8r as c8,Coe as c9,Hjr as cA,Kjr as cB,Ojr as cC,oEr as cD,lEr as cE,pEr as cF,uEr as cG,mEr as cH,P$r as cI,OAr as cJ,hEr as cK,IAr as cL,T8n as cM,Cb as cN,$Er as cO,Y8o as cP,rEr as cQ,tEr as cR,wAr as cS,eEr as cT,OSr as cU,ikr as cV,pkr as cW,Fre as cX,lyt as cY,ayt as cZ,D$r as c_,CEr as ca,vEr as cb,SEr as cc,bEr as cd,Z$r as ce,Jjr as cf,S0e as cg,RSr as ch,Vjr as ci,Wjr as cj,R$r as ck,YAr as cl,Ni as cm,P_i as cn,Ujr as co,Rjr as cp,Gjr as cq,Njr as cr,Qjr as cs,Zjr as ct,N$r as cu,V$r as cv,Xjr as cw,S as cx,qjr as cy,Yjr as cz,s$r as d,mo as e,Q$r as f,DEr as g,Fa as h,nAr as i,wn as j,un as k,sh as l,Te as m,l$n as n,r as o,EEr as p,Jg as q,djr as r,Dl as s,nx as t,zQ as u,HSr as v,E$r as w,wue as x,Pei as y,_i as z};
|
|
75478
|
+
Please refresh the page to try again.`)})),uv}function DEr(){return uv}const fz=new Evt,SJe=()=>{const e=Up(),n=_i.getSignedInUser(),o=ai(w=>V1(w)),[i,a]=m.useState(null),s=function(w){const{useDynamicConfig:C}=Dl(),{configValue:v,isDynamicConfigLoading:k}=C(d1e.sessionAutoLogoutConfig),$=v!=null&&Object.keys(v).length>0;if(k||w==null||!$)return UM;const j=eVe(v.users_disabled_for_auto_logout),A=eVe(v.users_enabled_for_auto_logout),E=v.is_inactivity_based_logout_feature_enabled===!0,L=j.includes(w),I=!L&&A.includes(w);return{heartbeatIntervalMinutes:L?0:Dte(v.heartbeat_interval_minutes,UM.heartbeatIntervalMinutes),idleTimeoutMinutes:Dte(v.idle_timeout_minutes,UM.idleTimeoutMinutes),isAutoLogoutEnabled:!L&&(I||E),warningDurationSeconds:Dte(v.warning_duration_seconds,UM.warningDurationSeconds)}}(n?.userId),c=m.useCallback((w="manual")=>{w==="auto-logout"?function(C){try{sessionStorage.setItem(Sue,"auto-logout"),sessionStorage.setItem(kue,String(C.idleTimeoutMinutes)),sessionStorage.setItem($ue,String(Date.now())),qE=void 0}catch{}}({idleTimeoutMinutes:s.idleTimeoutMinutes}):(c0t(),qE=void 0),a(null),fz.stop(),e(Pvt()),e(Bvt(!1)),_i.clearAll(),window.location.href="/signin/auth"},[e,a,s.idleTimeoutMinutes]);m.useEffect(()=>{if(n?.zeniSessionId!=null)return fz.start({idleTimeoutMinutes:s.idleTimeoutMinutes,warningDurationSeconds:s.warningDurationSeconds,heartbeatIntervalMinutes:s.heartbeatIntervalMinutes,isAutoLogoutEnabled:s.isAutoLogoutEnabled},{onHeartbeat:()=>e(Mvt()),onWarningStart:w=>{dd.trackSessionTimeoutPopupShown(w),a(w)},onWarningTick:a,onAutoLogout:()=>{dd.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>a(null)}),()=>fz.stop()},[n?.zeniSessionId,s.isAutoLogoutEnabled,s.idleTimeoutMinutes,s.warningDurationSeconds,s.heartbeatIntervalMinutes,e,c,a]);const d=ai(w=>_vt(w,o.companyId)),u=wc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];m.useEffect(()=>()=>{e(ome())},[]);const h=ai(w=>zvt(w));(()=>{const w=S0e(),C=Up(),{useFeatureGate:v}=Dl(),{isFeatureEnabled:k}=v(Gi.isMissingReceiptsBulkUploadEnabled);m.useEffect(()=>{if(k!==!0||w==null)return;const $=_i.getSignedInUser()?.userId;if($==null)return;const j=fI(w,$),A=E=>{C(jvt({batchId:E.batch_id,progress:E.progress,status:E.status.toLowerCase()}))};return j.bind(vJe,A),()=>{j.unbind(vJe,A)}},[w,C,k])})();const g=o?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo(()=>EXe(o.userRole),[o.userRole]),x={events:o.userRoleId!=null?[`private-encrypted-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(w,C)=>{var v;v=C,v?.data!=null&&e(Ovt(C))}},y=m.useMemo(()=>_i.getSignedInUser(),[]),b=m.useMemo(()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:o.tenantId??""}),[y,o.tenantId]);return jt.jsxs(f0n,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:o,connectionName:g,controllersList:d},children:[jt.jsx(s0n,{toolkit:{analytics:dd,sentry:Bbt,authParams:b},children:jt.jsxs(jhn,{endPoint:{url:h0e},children:[jt.jsx(Hai,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(ome())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),jt.jsx(Kkr,{...x})]})}),i!=null&&n!=null?jt.jsx(Kvr,{secondsRemaining:i,onContinueSession:()=>{dd.trackSessionTimeoutClicked("continue",i),fz.continueSession()},onSignOut:()=>{dd.trackSessionTimeoutClicked("sign_out",i),c()}}):null]})},a$r=()=>{const e=_i.isSignedIn(),n=ai(s=>V1(s)).companyId,o=ai(s=>Ivt(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=m.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=m.useMemo(()=>({currentFeatureEnv:nJe,featureClientSecret:Fa.featureClientSecret,providerEndPoint:bL.statsigBaseUrl}),[nJe,Fa.featureClientSecret,bL.statsigBaseUrl]);return n?jt.jsx(Agn,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:jt.jsx(SJe,{})}):jt.jsx(SJe,{})},l$r=Dbt(function(){const e=m.useMemo(()=>r$r(),[]),[n,o]=m.useState(!1),[i,a]=m.useState(!1);m.useEffect(()=>{Xoe().then(()=>o(!0)).catch(()=>{})},[]);const s=m.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return m.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),jt.jsx(NSr,{children:jt.jsx(Jbt,{store:e,children:jt.jsx(VSr,{value:n,children:jt.jsxs(ySr,{children:[jt.jsx(i$r,{}),jt.jsx(LUt,{children:jt.jsx(FSr,{children:jt.jsxs(a0n,{children:[i?jt.jsx(M9n,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,jt.jsx(a$r,{})]})})})]})})})})});function s$r(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:_i.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=V1(n);let c;if(!a||["signin","signout"].includes(a))if(s?.tenantEmailDomain!=null&&s?.tenantId!=null)a=s.tenantEmailDomain,c=s.tenantId;else{const d=_i.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=_i.getSignedInUserTenant(a)?.tenantId;c!=null&&(vXe(i.userId,i.zeniSessionId,c),e.dispatch(mce(c)),a!=null&&_i.saveActiveTenantDomainForUser(a),nx.shouldFetchActiveTenant(c)&&(nx.markActiveTenantFetchStarted(c),e.dispatch(IXe(i.userId,c,i.zeniSessionId))),nx.shouldFetchExcludedResources(c)&&(nx.markExcludedResourcesFetchStarted(c),e.dispatch(Tvt(i.userId,c))),nx.shouldFetchConnections(c)&&(nx.markConnectionsFetchStarted(c),e.dispatch(Dvt(i.userId,c))))}function c$r(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const d$r=!!(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}$/)),kJe=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function $Je(e,n){navigator.serviceWorker.register(e).then(o=>{o.onupdatefound=()=>{const i=o.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"}),o.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},o.waiting&&o.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),o.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(o=>{console.error("Error during service worker registration:",o)})}const AJe="zeni-chunk-reload-at",u$r=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function jJe(e){try{const n=Number(sessionStorage.getItem(AJe))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(AJe,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let qoe=!1,EJe=null;const IJe="//js.hs-scripts.com/5991084.js",LJe="hs-script-loader",p$r=_i.getSignedInUser(),h$r=p$r?.zeniSessionId;var z8;window.addEventListener("vite:preloadError",e=>{const n=e;jJe(n.payload)&&n.preventDefault()}),window.addEventListener("unhandledrejection",e=>{(function(n){const o=String(n?.message??n??"");return u$r.some(i=>o.includes(i))})(e.reason)&&jJe(e.reason)}),async function(){try{const o=await async function(){const a={environment:Ec},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${h0e}/api/keys?query=${s}`);if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return await c.json()}catch(c){return console.error("Error fetching details:",c),null}}(),i=(e=o,n="ZENI-WEB-APP-"+Ec,gI.AES.decrypt(e,n).toString(gI.enc.Utf8));dSr(JSON.parse(i)),aSt.createRoot(document.getElementById("root")).render(jt.jsx(T.StrictMode,{children:jt.jsx(Xbt,{children:jt.jsx(l$r,{})})})),function(){const a=()=>{const s=Fa.sentryDsn?.trim();if(!s)return;const c=Fa.sentryProfileSamplingRate>0;Mbt({dsn:s,tracesSampleRate:Fa.sentryTraceSamplingRate,profilesSampleRate:c?Fa.sentryProfileSamplingRate:0,integrations:[_bt(),...c?[zbt()]:[],Obt({maskAllText:!0,blockAllMedia:!0})],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction:d=>(d.breadcrumbs&&(d.breadcrumbs=d.breadcrumbs.filter(u=>u.category!=="console"||!((u.message??"").toLowerCase().includes("called people set")||Array.isArray(u.data?.arguments)&&u.data.arguments.some(p=>typeof p=="string"&&p.toLowerCase().includes("called people set"))||(Array.isArray(u.data?.arguments)&&(u.data.arguments=u.data.arguments.map(p=>{if(typeof p=="string"&&p.includes("user_roles"))try{const h=p.match(/\{.*\}/s);if(h!==null){const g=JSON.parse(h[0]);if(g.user_roles!=null)return delete g.user_roles,p.replace(h[0],JSON.stringify(g))}}catch{}return p})),0)))),d)}),Fbt("session-id",h$r)};"requestIdleCallback"in window?requestIdleCallback(a):setTimeout(a,0)}()}catch(o){console.error("Error initializing app:",o)}var e,n}(),typeof window>"u"?Promise.resolve(!1):EJe!==null||(EJe=new Promise(e=>{if(qoe)return void e(!0);const n=()=>{qoe?e(!0):(qoe=!0,new Promise((i,a)=>{if(document.getElementById(LJe))return void i();const s=document.createElement("script");s.id=LJe,s.src=IJe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${IJe}`)),document.body.appendChild(s)}).then(()=>{e(!0)}).catch(i=>{console.error("Error loading third-party scripts:",i),e(!0)}))},o=()=>{var i,a;i=()=>{setTimeout(n,7e3)},a=3e3,"requestIdleCallback"in window?window.requestIdleCallback(i,{timeout:a}):setTimeout(i,50)};document.readyState==="complete"?o():window.addEventListener("load",o,{once:!0})})),function(){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{var e;d$r?(e=kJe,fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const o=n.headers.get("content-type");n.status===404||o!=null&&!o.includes("javascript")?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>window.location.reload())}):$Je(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})):$Je(kJe)})}}(),(z8=console.log)&&z8 instanceof Function&&fd(async()=>{const{getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a}=await import("./web-vitals-D_vxw1oG.js");return{getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a}},[]).then(({getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a})=>{e(z8),n(z8),o(z8),i(z8),a(z8)});export{gSr as $,D as A,wkr as B,B as C,ee as D,I$r as E,ljr as F,ujr as G,Z1e as H,tAr as I,ce as J,Nvo as K,y0e as L,AEr as M,rAr as N,ISr as O,IEr as P,cjr as Q,dbt as R,Zkr as S,LZi as T,Gi as U,sjr as V,LEr as W,_Q as X,DSr as Y,LSr as Z,TEr as _,OQ as a,lbt as a$,X$r as a0,Mu as a1,h0e as a2,iV as a3,sEr as a4,$ut as a5,nEr as a6,k0e as a7,dJe as a8,JSr as a9,Pjr as aA,_jr as aB,zjr as aC,W$r as aD,fjr as aE,RAr as aF,HAr as aG,lhe as aH,bjr as aI,yjr as aJ,VAr as aK,NAr as aL,U$r as aM,T3 as aN,XAr as aO,qSr as aP,rjr as aQ,Cvo as aR,iAr as aS,RVn as aT,nlo as aU,mjr as aV,hjr as aW,gjr as aX,K$r as aY,Sn as aZ,ra as a_,USr as aa,YSr as ab,ZSr as ac,sao as ad,cJe as ae,GSr as af,Kse as ag,DO as ah,kR as ai,lJe as aj,Uo as ak,zAr as al,_Ar as am,K$o as an,oAr as ao,njr as ap,Et as aq,ejr as ar,wL as as,ck as at,M3 as au,tjr as av,Mjr as aw,Eut as ax,Djr as ay,Bjr as az,Dkr as b,qAr as b$,jEr as b0,ukr as b1,J$r as b2,eAr as b3,WSr as b4,g0e as b5,mSr as b6,G$r as b7,kYn as b8,c1t as b9,Sa as bA,Fjr as bB,jAr as bC,$Ar as bD,wEr as bE,ZAr as bF,gEr as bG,LAr as bH,TAr as bI,PAr as bJ,ijr as bK,yAr as bL,bAr as bM,ojr as bN,ajr as bO,vAr as bP,SAr as bQ,kAr as bR,DAr as bS,H$r as bT,BAr as bU,MAr as bV,dEr as bW,AAr as bX,kEr as bY,fEr as bZ,QAr as b_,aAr as ba,aEr as bb,iEr as bc,zSr as bd,EAr as be,B$r as bf,F$r as bg,A1e as bh,M$r as bi,cEr as bj,FAr as bk,z$r as bl,O$r as bm,_$r as bn,bS as bo,xjr as bp,hAr as bq,gAr as br,mAr as bs,dAr as bt,cAr as bu,fAr as bv,pjr as bw,uAr as bx,pAr as by,xAr as bz,dd as c,Dyt as c$,GAr as c0,T$r as c1,UAr as c2,WAr as c3,Cue as c4,KAr as c5,JAr as c6,S6r as c7,T8r as c8,Coe as c9,Hjr as cA,Kjr as cB,Ojr as cC,oEr as cD,lEr as cE,pEr as cF,uEr as cG,mEr as cH,P$r as cI,OAr as cJ,hEr as cK,IAr as cL,T8n as cM,Cb as cN,$Er as cO,Y8o as cP,rEr as cQ,tEr as cR,wAr as cS,eEr as cT,OSr as cU,ikr as cV,pkr as cW,Fre as cX,lyt as cY,ayt as cZ,D$r as c_,CEr as ca,vEr as cb,SEr as cc,bEr as cd,Z$r as ce,Jjr as cf,S0e as cg,RSr as ch,Vjr as ci,Wjr as cj,R$r as ck,YAr as cl,Ni as cm,P_i as cn,Ujr as co,Rjr as cp,Gjr as cq,Njr as cr,Qjr as cs,Zjr as ct,N$r as cu,V$r as cv,Xjr as cw,S as cx,qjr as cy,Yjr as cz,s$r as d,mo as e,Q$r as f,DEr as g,Fa as h,nAr as i,wn as j,un as k,sh as l,Te as m,l$n as n,r as o,EEr as p,Jg as q,djr as r,Dl as s,nx as t,zQ as u,HSr as v,E$r as w,wue as x,Pei as y,_i as z};
|