@zeniai/web-app-ui 5.0.88-dev → 5.0.88-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/assets/{AddressRoutes-Idr8o5Q_.js → AddressRoutes-Djzm4hjd.js} +1 -1
  2. package/dist/assets/{AddressScreen-BgaNg0Qn.js → AddressScreen-h6F8nVYN.js} +1 -1
  3. package/dist/assets/{AiCfoScreen-BY8n3owP.js → AiCfoScreen-OLwbmiYD.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-CG8clEYB.js → BillPayApprovalRoutes-DsjRockq.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-CrklWR3z.js → BillPayRoutes-YTAReJ2c.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-C-td2Gz2.js → BusinessVerificationPageScreen-Cjm5MRXi.js} +1 -1
  7. package/dist/assets/{ChargeCardRoutes-BIImgtAf.js → ChargeCardRoutes-DBNrni6V.js} +1 -1
  8. package/dist/assets/{CompanyPassportScreen-DLguBt5O.js → CompanyPassportScreen-Wc9Neaz1.js} +1 -1
  9. package/dist/assets/{ConnectionAuthScreen-C5CI5_R0.js → ConnectionAuthScreen-gAh9UaQG.js} +1 -1
  10. package/dist/assets/{CustomerOnboardingAuthScreen-D5J-D_gR.js → CustomerOnboardingAuthScreen-Btu05i4h.js} +1 -1
  11. package/dist/assets/{CustomerOnboardingRoutes-ChK-o54A.js → CustomerOnboardingRoutes-CbCcHxCy.js} +1 -1
  12. package/dist/assets/{DashboardRoutes-Dk9jZRz5.js → DashboardRoutes-DFf2imko.js} +1 -1
  13. package/dist/assets/{DefaultTenantHome-EQCVNZvu.js → DefaultTenantHome-Bx6WQ-Mz.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-CNcs_kp-.js → DomesticWireDetailScreen-w4AIyMqf.js} +1 -1
  15. package/dist/assets/{DrawerScreen-4A-8jdZK.js → DrawerScreen-CtmWzT0D.js} +1 -1
  16. package/dist/assets/{EntityDetailRoutes-FAkHCqKz.js → EntityDetailRoutes-BQF2uQ7X.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-Bf4kvKbd.js → ExpenseAutomationRoutes-D3kquSUU.js} +1 -1
  18. package/dist/assets/{FeaturePreviewScreen-CPoYCyoW.js → FeaturePreviewScreen-dlYgctun.js} +1 -1
  19. package/dist/assets/{HubSpotOAuthCallbackScreen-_NVW7LI5.js → HubSpotOAuthCallbackScreen-O6i8xkbo.js} +1 -1
  20. package/dist/assets/{MagicLinkRoutes-BS3qbL4y.js → MagicLinkRoutes-CS6bQmQL.js} +1 -1
  21. package/dist/assets/{MagicLinkSignInScreen-8i0SXp70.js → MagicLinkSignInScreen-aL0UHXqm.js} +1 -1
  22. package/dist/assets/{MobileAppDrawer-BhM60dvk.js → MobileAppDrawer-CXLCRreY.js} +1 -1
  23. package/dist/assets/{NotFoundScreen-DB_m9Zh0.js → NotFoundScreen-D1-E1kBF.js} +1 -1
  24. package/dist/assets/{NotificationRoutes-Yi8XGMv3.js → NotificationRoutes-DvQQ7oaR.js} +1 -1
  25. package/dist/assets/{OAuthConsentScreen-CKM2d6ge.js → OAuthConsentScreen-BX4BwxWb.js} +1 -1
  26. package/dist/assets/{PandLWithForecastRoutes-vYtv-oJN.js → PandLWithForecastRoutes-BO50q4p1.js} +1 -1
  27. package/dist/assets/{PeopleRoutes-Cx1WB4UN.js → PeopleRoutes-CAjCGUS6.js} +1 -1
  28. package/dist/assets/{PerformanceRoutes-CWOgGPU1.js → PerformanceRoutes-DuMTUSdQ.js} +1 -1
  29. package/dist/assets/{QBOConnectionScreen-geVwV75e.js → QBOConnectionScreen-CvW4YyLY.js} +1 -1
  30. package/dist/assets/{ReferralListScreen-ChBc672l.js → ReferralListScreen-B6ywI0R7.js} +1 -1
  31. package/dist/assets/{ReimbursementApprovalRoutes-BDyufiCG.js → ReimbursementApprovalRoutes-BJfS22O6.js} +1 -1
  32. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DJv_b_Bz.js → ReimbursementApprovalRuleDetailScreen-BRDzYwiP.js} +1 -1
  33. package/dist/assets/{ReimbursementRoutes-nqPDWuH1.js → ReimbursementRoutes-DprHryRK.js} +1 -1
  34. package/dist/assets/{ReportsRoutes-C2J6zIA5.js → ReportsRoutes-DtUGaRZb.js} +1 -1
  35. package/dist/assets/{RewardsRoutes-BMmhN6i_.js → RewardsRoutes-Du6Z6CYq.js} +1 -1
  36. package/dist/assets/{ScreenRoutes-BTS40_ia.js → ScreenRoutes-Bm0blHDU.js} +2 -2
  37. package/dist/assets/{SettingsRoutes-B9C3tvaJ.js → SettingsRoutes-BPx3mV39.js} +1 -1
  38. package/dist/assets/{SetupPagesScreen-XYLqa_k3.js → SetupPagesScreen-DAXpkujH.js} +1 -1
  39. package/dist/assets/{SignInScreen-DMbX8HuT.js → SignInScreen-D_ZIzo4l.js} +1 -1
  40. package/dist/assets/{SignOutScreen-DicPj8v2.js → SignOutScreen-CyHjoyPO.js} +1 -1
  41. package/dist/assets/{TaskListScreen-B6Exeljf.js → TaskListScreen-CD0yo2G_.js} +1 -1
  42. package/dist/assets/{TaskRoutes-1TlP3n5Y.js → TaskRoutes-Eq8lUPTt.js} +1 -1
  43. package/dist/assets/{TransactionDetailRoutes-DGZsOIBF.js → TransactionDetailRoutes-B0zPxUO6.js} +1 -1
  44. package/dist/assets/{TransactionDetailScreen-C9lFmDnj.js → TransactionDetailScreen-Cffx3kdg.js} +1 -1
  45. package/dist/assets/{TransactionListRoutes-CZ04gxln.js → TransactionListRoutes-Dhb4M-FX.js} +1 -1
  46. package/dist/assets/{TreasuryRoutes-dKXycm8O.js → TreasuryRoutes-DzA3TiDm.js} +1 -1
  47. package/dist/assets/{VendorsRoutes-C9c1xhtj.js → VendorsRoutes-B3NL3qG7.js} +1 -1
  48. package/dist/assets/{WiseConfirmationScreen-DgM02BC4.js → WiseConfirmationScreen-CcQUprGd.js} +1 -1
  49. package/dist/assets/{ZeniAccountRoutes-CGg7ZoIY.js → ZeniAccountRoutes-CaEKevKl.js} +1 -1
  50. package/dist/assets/{ZeniAccountStatementScreen-C1jeHlhb.js → ZeniAccountStatementScreen-CsjbaEOP.js} +1 -1
  51. package/dist/assets/{analyticsHelper-sB0sZFDB.js → analyticsHelper-DjIWqwJH.js} +1 -1
  52. package/dist/assets/{getLocaleForTenant-3FpSnKiE.js → getLocaleForTenant-lJA2tHmd.js} +1 -1
  53. package/dist/assets/{index-Cm44je86.js → index-BIwQAhFv.js} +5 -5
  54. package/dist/assets/{routePaths-Dh2GrAVT.js → routePaths-BjY4Hbs8.js} +1 -1
  55. package/dist/assets/{useAskAiCfoHostNavButtonProps-CFYiOVm6.js → useAskAiCfoHostNavButtonProps-DHofygYw.js} +1 -1
  56. package/dist/assets/{useFetchSuggestedQuestionsWhenReady-B9n4CrDa.js → useFetchSuggestedQuestionsWhenReady-BWzQNqoL.js} +1 -1
  57. package/dist/assets/{useInitialThreadRequest-Dc9OG28t.js → useInitialThreadRequest-D1wLkM4c.js} +1 -1
  58. package/dist/assets/{withTransactionSidePanel-YgRxp760.js → withTransactionSidePanel-NOFN_NLa.js} +1 -1
  59. package/dist/index.html +1 -1
  60. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-CIBk9-EN.js","assets/sentry-Wnm-N8eT.js","assets/core-Bv8kdUko.js","assets/index-BUMFvFkQ.js","assets/DefaultTenantHome-EQCVNZvu.js","assets/mui-DtV_yZlj.js","assets/getLocaleForTenant-3FpSnKiE.js","assets/analytics-B6udoEJT.js","assets/utils-CRtSAyQU.js","assets/ScreenRoutes-BTS40_ia.js","assets/analyticsHelper-sB0sZFDB.js","assets/ConnectionAuthScreen-C5CI5_R0.js","assets/QBOConnectionScreen-geVwV75e.js","assets/empty-B0o7u5U9.js","assets/index-DdfWbiyW.js","assets/url-BmD3S9u5.js","assets/index-D40kV0u0.js","assets/decodeURIComponentSafe-DeA-_wid.js","assets/SignInScreen-DMbX8HuT.js","assets/useDeviceId-Bi73VT1N.js","assets/MagicLinkSignInScreen-8i0SXp70.js","assets/NotFoundScreen-DB_m9Zh0.js","assets/MagicLinkRoutes-BS3qbL4y.js","assets/WiseConfirmationScreen-DgM02BC4.js","assets/HubSpotOAuthCallbackScreen-_NVW7LI5.js","assets/CustomerOnboardingAuthScreen-D5J-D_gR.js","assets/SignOutScreen-DicPj8v2.js","assets/OAuthConsentScreen-CKM2d6ge.js"])))=>i.map(i=>d[i]);
2
- import{a as m,b as T,c as pne,R as B9t,p as yW,r as Uu,g as _qe,e as Bpe,f as M9t,s as Mpe,i as _9t,w as z9t,j as O9t,S as F9t,k as R9t,l as N9t,m as V9t,n as H9t,o as U9t}from"./sentry-Wnm-N8eT.js";import{L as W9t,C as _pe,_ as Wu,a as PI,b as Q9t,c as ER,d as BI,u as zqe,T as G9t,e as Y9t,f as q9t,g as K9t,h as Oqe,i as Z9t,k as J9t,j as Pt,l as X9t}from"./liveblocks-CCyJOwfy.js";import{f as Fqe,r as Dr,R as gx,P as pl,u as t0,m as ule,g as gi,h as l3,O as e8t,N as Rqe,i as hj,j as IR,k as t8t,l as n8t,n as o8t,o as J1,p as i8t,B as r8t}from"./core-Bv8kdUko.js";import{L as zpe,bl as a8t,bm as l8t,bn as j4,bo as Nqe,bp as s8t,bq as Nt,br as US,bs as U2,bt as c8t,bu as E4,bv as Wa,bw as Va,bx as d8t,by as u8t,bz as p8t,bA as DE,bB as m4,bC as s3,bD as LR,bE as ln,bF as Vqe,bG as Hqe,bH as ple,bI as Op,bJ as c3,bK as ed,bL as Yf,bM as h8t,bN as Ol,bO as m8t,bP as WS,bQ as g8t,bR as f8t,bS as x8t,bT as py,bU as y8t,bV as Ope,bW as b8t,bX as w8t,bY as C8t,bZ as v8t,b_ as S8t,b$ as k8t,c0 as $8t,c1 as A8t,c2 as E7,c3 as TR,c4 as j8t,c5 as DR,c6 as PR,c7 as BR,c8 as hle,c9 as MR,ca as oS,cb as iS,cc as _R,cd as E8t,ce as I8t,cf as Fpe,cg as L8t,ch as T8t,ci as D8t,cj as Od,ck as Uqe,cl as mle,cm as P8t,cn as A9,co as Rpe,cp as B8t,cq as M8t,cr as _8t,cs as Hy,ct as Uy,cu as Wqe,cv as Qqe,cw as gle,cx as z8t,cy as O8t,cz as dz,cA as Gqe,cB as F8t,cC as Yqe,cD as R8t,cE as mj,cF as Npe,cG as N8t,cH as qqe,cI as Kqe,cJ as Zqe,cK as V8t,cL as QS,cM as Vpe,cN as H8t,cO as U8t,cP as Jqe,cQ as W8t,cR as Hpe,cS as vc,cT as gl,cU as Q8t,cV as rS,cW as Td,cX as Xqe,cY as G8t,cZ as PE,c_ as Hx,c$ as wa,d0 as Y8t,d1 as q8t,d2 as K8t,d3 as Z8t,d4 as JL,d5 as Ph,d6 as J8t,d7 as X8t,d8 as ext,d9 as txt,da as XL,db as hy,dc as zR,dd as nxt,de as oxt,df as Wy,dg as Fd,dh as eKe,di as tKe,dj as ixt,dk as hne,dl as rxt,dm as $1,dn as my,dp as fle,dq as nKe,dr as oKe,ds as iKe,dt as rKe,du as aKe,dv as lKe,dw as axt,dx as Upe,dy as lxt,_ as ld,dz as xle,dA as sKe,dB as sxt,dC as Wpe,dD as tp,dE as qf,dF as cxt,dG as dxt,dH as cKe,dI as mne,dJ as JM,dK as uxt,dL as pxt,dM as hxt,dN as mxt,dO as gxt,dP as fxt,dQ as xxt,dR as yxt,dS as bxt,dT as wxt,dU as Wj,dV as Qj,dW as dKe,dX as ZC,dY as yle,dZ as ble,d_ as GS,d$ as wle,e0 as Cle,e1 as vle,e2 as Sle,e3 as uKe,e4 as kle,e5 as Cxt,e6 as vxt,e7 as pKe,e8 as Qpe,e9 as Sxt,ea as $le,eb as kxt,ec as $xt,ed as hKe,ee as Axt,ef as jxt,eg as Ext,eh as mKe,ei as Ixt,ej as gKe,ek as fKe,el as Lxt,em as Txt,en as Dxt,eo as Pxt,ep as Bxt,eq as Mxt,er as _xt,es as zxt,et as Oxt,eu as Gpe,ev as OR,ew as Fxt,ex as Rxt,ey as Nxt,ez as Vxt,eA as Hxt,eB as Uxt,eC as Wxt,eD as Qxt,eE as Ype,eF as xKe,eG as yKe,eH as bKe,eI as wKe,eJ as CKe,eK as vKe,eL as Gxt,eM as Yxt,eN as qxt,v as Kxt,eO as Zxt,eP as Jxt,eQ as Ale,eR as Qu,eS as SKe,eT as MI,eU as Xxt,eV as kKe,eW as eyt,eX as $Ke,eY as tyt,eZ as AKe,e_ as nyt,e$ as oyt,f0 as iyt,f1 as ryt,f2 as ayt,f3 as qpe,f4 as jKe,f5 as zb,f6 as FR,f7 as Kpe,f8 as lyt,f9 as Zpe,fa as syt,fb as cyt,fc as EKe,fd as IKe,fe as dyt,ff as uyt,fg as pyt,fh as hyt,fi as myt,fj as gyt,fk as uz,fl as jle,fm as LKe,fn as fyt,fo as Gj,fp as xyt,fq as yyt,fr as byt,fs as wyt,ft as Cyt,fu as vyt,fv as Syt,fw as kyt,fx as $yt,fy as Ayt,fz as jyt,fA as TKe,fB as Eyt,fC as Iyt,fD as Lyt,fE as Jpe,fF as Tyt,fG as Dyt,fH as Pyt,fI as Byt,fJ as Myt,fK as gne,fL as _yt,fM as zyt,fN as Oyt,fO as Fyt,fP as Ryt,fQ as Nyt,fR as Vyt,fS as Hyt,fT as Xpe,fU as Uyt,fV as Wyt}from"./zeni-epic-state-CIBk9-EN.js";import{n as l,T as DKe,G as _I,j as Qo,c as Te,k as Fn,C as PKe,u as Ele,a as fne,A as Qyt,b as Gyt,I as Yyt,d as qyt,D as pz,S as BKe}from"./mui-DtV_yZlj.js";import{r as Kyt,m as Sh}from"./analytics-B6udoEJT.js";import{u as Up}from"./plaid--kCGp3zU.js";import{g as Zyt,O as Jyt,H as Xyt,S as ebt,T as tbt,a as nbt,u as obt,b as ibt}from"./dnd-BIjMGuxw.js";import{l as rbt}from"./stripe-DMRn4zHo.js";import{L as vv}from"./lottie-DL8N42Il.js";import{r as js}from"./lexical-DOh49tNP.js";import{D as xne,P as yne,_ as MKe,a as _Ke}from"./pdf-BcmiSEKK.js";import{R as BE,G as gy,X as ts,Y as Fl,H as fy,I as id,J as Fp,K as Qy,L as Wp,M as abt,N as YS,O as zKe,P as lbt,Q as RR,S as Sv,U as sbt,V as Ile,W as cbt,Z as dbt,_ as ubt}from"./recharts-DdIjbBfI.js";import{r as pbt}from"./utils-CRtSAyQU.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]="919c07bf-6712-4504-8db4-617f13a948de",e._sentryDebugIdIdentifier="sentry-dbid-919c07bf-6712-4504-8db4-617f13a948de")}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 ehe,eT={},hbt=function(){if(ehe)return eT;ehe=1;var e=Fqe();return eT.createRoot=e.createRoot,eT.hydrateRoot=e.hydrateRoot,eT}(),Iu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof pne<"u"?pne:typeof self<"u"?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var the,nhe,ohe={exports:{}},Uk={};function OKe(){return nhe||(nhe=1,ohe.exports=function(){if(the)return Uk;the=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 Uk.Fragment=o,Uk.jsx=c,Uk.jsxs=c,Uk}()),ohe.exports}var t=OKe();const mbt=m.createContext(null),bW={didCatch:!1,error:null};let gbt=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=bW}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(bW)}}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(bW))}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(mbt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var ihe,wW={exports:{}},rhe,ahe,CW,fbt=(ihe||(ihe=1,ahe=wW.exports,CW=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="",_=1e12,z=1e9,B=1e6,R="",N=!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>=_&&!b||b==="t"?(I+=A.abbreviations.trillion,g/=_):w<_&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,g/=z):w<z&&w>=B&&!b||b==="m"?(I+=A.abbreviations.million,g/=B):(w<B&&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("["),R=e._.toFixed(g,v[0].length+v[1].length,x,v[1].length)):R=e._.toFixed(g,v.length,x),C=R.split(".")[0],R=e._.includes(R,".")?A.delimiters.decimal+R.split(".")[1]:"",L&&Number(R.slice(1))===0&&(R="")):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),N=!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+R+(I||""),E?j=(E&&N?"(":"")+j+(E&&N?")":""):k>=0?j=k===0?(N?"-":"+")+j:j+(N?"-":"+"):N&&(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},(rhe=wW).exports?rhe.exports=CW():ahe.numeral=CW()),wW.exports);const n4=ji(fbt);function g4(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 o4="$$material";var xbt={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 ybt(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var bbt=/[A-Z]|^ms/g,wbt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FKe=function(e){return e.charCodeAt(1)===45},lhe=function(e){return e!=null&&typeof e!="boolean"},vW=ybt(function(e){return FKe(e)?e:e.replace(bbt,"-$&").toLowerCase()}),she=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(wbt,function(o,i,a){return d7={name:i,styles:a,next:d7},i})}return xbt[e]===1||FKe(e)||typeof n!="number"||n===0?n:n+"px"};function hz(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 d7={name:a.name,styles:a.styles,next:d7},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)d7={name:c.name,styles:c.styles,next:d7},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+=hz(d,u,p[g])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;lhe(y)&&(h+=vW(f)+":"+she(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)lhe(x[b])&&(h+=vW(f)+":"+she(f,x[b])+";");else{var w=hz(d,u,x);switch(f){case"animation":case"animationName":h+=vW(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var d7,che=/label:\s*([^\s;{]+)\s*(;|$)/g,dhe,uhe,phe,hhe,mhe,ghe={exports:{}};function Cbt(){return uhe?dhe:(uhe=1,dhe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function vbt(){if(hhe)return phe;hhe=1;var e=Cbt();function n(){}function o(){}return o.resetWarningCache=n,phe=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 Lle(){return mhe||(mhe=1,ghe.exports=vbt()()),ghe.exports}const bn=ji(Lle());var Sbt=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}(),$d="-ms-",fhe="-moz-",zr="-webkit-",RKe="comm",Tle="rule",Dle="decl",NKe="@keyframes",kbt=Math.abs,NR=String.fromCharCode,$bt=Object.assign;function VKe(e){return e.trim()}function Or(e,n,o){return e.replace(n,o)}function bne(e,n){return e.indexOf(n)}function Gc(e,n){return 0|e.charCodeAt(n)}function ME(e,n,o){return e.slice(n,o)}function bg(e){return e.length}function Ple(e){return e.length}function tT(e,n){return n.push(e),e}var VR=1,aS=1,HKe=0,Ou=0,Ss=0,qS="";function HR(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:VR,column:aS,length:c,return:""}}function Wk(e,n){return $bt(HR("",null,null,"",null,null,0),e,{length:-e.length},n)}function Bp(){return Ss=Ou<HKe?Gc(qS,Ou++):0,aS++,Ss===10&&(aS=1,VR++),Ss}function Kg(){return Gc(qS,Ou)}function XM(){return Ou}function zI(e,n){return ME(qS,e,n)}function _E(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 UKe(e){return VR=aS=1,HKe=bg(qS=e),Ou=0,[]}function WKe(e){return qS="",e}function e_(e){return VKe(zI(Ou-1,wne(e===91?e+2:e===40?e+1:e)))}function Abt(e){for(;(Ss=Kg())&&Ss<33;)Bp();return _E(e)>2||_E(Ss)>3?"":" "}function jbt(e,n){for(;--n&&Bp()&&!(Ss<48||Ss>102||Ss>57&&Ss<65||Ss>70&&Ss<97););return zI(e,XM()+(n<6&&Kg()==32&&Bp()==32))}function wne(e){for(;Bp();)switch(Ss){case e:return Ou;case 34:case 39:e!==34&&e!==39&&wne(Ss);break;case 40:e===41&&wne(e);break;case 92:Bp()}return Ou}function Ebt(e,n){for(;Bp()&&e+Ss!==57&&(e+Ss!==84||Kg()!==47););return"/*"+zI(n,Ou-1)+"*"+NR(e===47?e:Bp())}function Ibt(e){for(;!_E(Kg());)Bp();return zI(e,Ou)}function Lbt(e){return WKe(t_("",null,null,null,[""],e=UKe(e),0,[0],e))}function t_(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=Bp()){case 40:if(y!=108&&Gc(E,g-1)==58){bne(E+=Or(e_(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=e_(v);break;case 9:case 10:case 13:case 32:E+=Abt(y);break;case 92:E+=jbt(XM()-1,7);continue;case 47:switch(Kg()){case 42:case 47:tT(Tbt(Ebt(Bp(),XM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=bg(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=Or(E,/\f/g,"")),x>0&&bg(E)-g&&tT(x>32?yhe(E+";",i,o,g-1):yhe(Or(E," ","")+";",i,o,g-2),u);break;case 59:E+=";";default:if(tT(A=xhe(E,n,o,p,h,a,d,k,$=[],j=[],g),s),v===123)if(h===0)t_(E,n,A,A,$,s,g,d,j);else switch(f===99&&Gc(E,3)===110?100:f){case 100:case 108:case 109:case 115:t_(e,A,A,i&&tT(xhe(e,A,A,0,0,a,d,k,a,$=[],g),j),a,j,g,d,i?$:j);break;default:t_(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,k=E="",g=c;break;case 58:g=1+bg(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Ss=Ou>0?Gc(qS,--Ou):0,aS--,Ss===10&&(aS=1,VR--),Ss==125))continue}switch(E+=NR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(bg(E)-1)*C,C=1;break;case 64:Kg()===45&&(E+=e_(Bp())),f=Kg(),h=g=bg(k=E+=Ibt(XM())),v++;break;case 45:y===45&&bg(E)==2&&(b=0)}}return s}function xhe(e,n,o,i,a,s,c,d,u,p,h){for(var g=a-1,f=a===0?s:[""],x=Ple(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=ME(e,g+1,g=kbt(b=c[y])),k=e;C<x;++C)(k=VKe(b>0?f[C]+" "+v:Or(v,/&\f/g,f[C])))&&(u[w++]=k);return HR(e,n,o,a===0?Tle:d,u,p,h)}function Tbt(e,n,o){return HR(e,n,o,RKe,NR(Ss),ME(e,2,-2),0)}function yhe(e,n,o,i){return HR(e,n,o,Dle,ME(e,0,i),ME(e,i+1,-1),i)}function kv(e,n){for(var o="",i=Ple(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function Dbt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dle:return e.return=e.return||e.value;case RKe:return"";case NKe:return e.return=e.value+"{"+kv(e.children,i)+"}";case Tle:e.value=e.props.join(",")}return bg(o=kv(e.children,i))?e.return=e.value+"{"+o+"}":""}function Pbt(e){return function(n){n.root||(n=n.return)&&e(n)}}var Bbt=function(e,n,o){for(var i=0,a=0;i=a,a=Kg(),i===38&&a===12&&(n[o]=1),!_E(a);)Bp();return zI(e,Ou)},Mbt=function(e,n){return WKe(function(o,i){var a=-1,s=44;do switch(_E(s)){case 0:s===38&&Kg()===12&&(i[a]=1),o[a]+=Bbt(Ou-1,i,a);break;case 2:o[a]+=e_(s);break;case 4:if(s===44){o[++a]=Kg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=NR(s)}while(s=Bp());return o}(UKe(e),n))},bhe=new WeakMap,_bt=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||bhe.get(o))&&!i){bhe.set(e,!0);for(var a=[],s=Mbt(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]}}},zbt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function QKe(e,n){switch(function(o,i){return 45^Gc(o,0)?(((i<<2^Gc(o,0))<<2^Gc(o,1))<<2^Gc(o,2))<<2^Gc(o,3):0}(e,n)){case 5103:return zr+"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 zr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zr+e+fhe+e+$d+e+e;case 6828:case 4268:return zr+e+$d+e+e;case 6165:return zr+e+$d+"flex-"+e+e;case 5187:return zr+e+Or(e,/(\w+).+(:[^]+)/,zr+"box-$1$2"+$d+"flex-$1$2")+e;case 5443:return zr+e+$d+"flex-item-"+Or(e,/flex-|-self/,"")+e;case 4675:return zr+e+$d+"flex-line-pack"+Or(e,/align-content|flex-|-self/,"")+e;case 5548:return zr+e+$d+Or(e,"shrink","negative")+e;case 5292:return zr+e+$d+Or(e,"basis","preferred-size")+e;case 6060:return zr+"box-"+Or(e,"-grow","")+zr+e+$d+Or(e,"grow","positive")+e;case 4554:return zr+Or(e,/([^-])(transform)/g,"$1"+zr+"$2")+e;case 6187:return Or(Or(Or(e,/(zoom-|grab)/,zr+"$1"),/(image-set)/,zr+"$1"),e,"")+e;case 5495:case 3959:return Or(e,/(image-set\([^]*)/,zr+"$1$`$1");case 4968:return Or(Or(e,/(.+:)(flex-)?(.*)/,zr+"box-pack:$3"+$d+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zr+e+e;case 4095:case 3583:case 4068:case 2532:return Or(e,/(.+)-inline(.+)/,zr+"$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(bg(e)-1-n>6)switch(Gc(e,n+1)){case 109:if(Gc(e,n+4)!==45)break;case 102:return Or(e,/(.+:)(.+)-([^]+)/,"$1"+zr+"$2-$3$1"+fhe+(Gc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~bne(e,"stretch")?QKe(Or(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Gc(e,n+1)!==115)break;case 6444:switch(Gc(e,bg(e)-3-(~bne(e,"!important")&&10))){case 107:return Or(e,":",":"+zr)+e;case 101:return Or(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zr+(Gc(e,14)===45?"inline-":"")+"box$3$1"+zr+"$2$3$1"+$d+"$2box$3")+e}break;case 5936:switch(Gc(e,n+11)){case 114:return zr+e+$d+Or(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zr+e+$d+Or(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zr+e+$d+Or(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zr+e+$d+e+e}return e}var Obt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case Dle:e.return=QKe(e.value,e.length);break;case NKe:return kv([Wk(e,{value:Or(e.value,"@","@"+zr)})],i);case Tle: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 kv([Wk(e,{props:[Or(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return kv([Wk(e,{props:[Or(a,/:(plac\w+)/,":"+zr+"input-$1")]}),Wk(e,{props:[Or(a,/:(plac\w+)/,":-moz-$1")]}),Wk(e,{props:[Or(a,/:(plac\w+)/,$d+"input-$1")]})],i)}return""})}}],GKe=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||Obt,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=[_bt,zbt],h=[Dbt,Pbt(function(x){u.insert(x)})],g=function(x){var y=Ple(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){kv(Lbt(C),g)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new Sbt({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 YKe(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(_I,{styles:i})}const whe=[];function I7(e){return whe[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="";d7=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=hz(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=hz(i,o,n[d]),a&&(s+=c[d]);che.lastIndex=0;for(var u,p="";(u=che.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:d7}}(whe)}var Che,vhe,She={exports:{}},sa={};function Fbt(){if(Che)return sa;Che=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 sa.ContextConsumer=s,sa.ContextProvider=c,sa.Element=e,sa.ForwardRef=d,sa.Fragment=o,sa.Lazy=g,sa.Memo=h,sa.Portal=n,sa.Profiler=a,sa.StrictMode=i,sa.Suspense=u,sa.SuspenseList=p,sa.isContextConsumer=function(b){return y(b)===s},sa.isContextProvider=function(b){return y(b)===c},sa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},sa.isForwardRef=function(b){return y(b)===d},sa.isFragment=function(b){return y(b)===o},sa.isLazy=function(b){return y(b)===g},sa.isMemo=function(b){return y(b)===h},sa.isPortal=function(b){return y(b)===n},sa.isProfiler=function(b){return y(b)===a},sa.isStrictMode=function(b){return y(b)===i},sa.isSuspense=function(b){return y(b)===u},sa.isSuspenseList=function(b){return y(b)===p},sa.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)},sa.typeOf=y,sa}function Rbt(){return vhe||(vhe=1,She.exports=Fbt()),She.exports}var qKe=Rbt();function Mf(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 KKe(e){if(m.isValidElement(e)||qKe.isValidElementType(e)||!Mf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=KKe(e[o])}),n}function Rd(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return Mf(e)&&Mf(n)&&Object.keys(n).forEach(a=>{m.isValidElement(n[a])||qKe.isValidElementType(n[a])?i[a]=n[a]:Mf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Mf(e[a])?i[a]=Rd(e[a],n[a],o):o.clone?i[a]=Mf(n[a])?KKe(n[a]):n[a]:i[a]=n[a]}),i}function Nbt(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 khe(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 Vbt={borderRadius:4};function Yj(e,n){return n?Rd(e,n,{clone:!1}):e}const UR={xs:0,sm:600,md:900,lg:1200,xl:1536},$he={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${UR[e]}px)`},Hbt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:UR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function f4(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||$he;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||$he;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:Hbt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||UR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Ahe(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function xi(e){if(typeof e!="string")throw new Error(g4(7));return e.charAt(0).toUpperCase()+e.slice(1)}function WR(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 mz(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:WR(e,o)||i,n&&(a=n(a,i,e)),a}function Kl(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=WR(c.theme,i)||{};return f4(c,d,p=>{let h=mz(u,a,p);return p===h&&typeof p=="string"&&(h=mz(u,a,`${n}${p==="default"?"":xi(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const Ubt={m:"margin",p:"padding"},Wbt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jhe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qbt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!jhe[e])return[e];e=jhe[e]}const[n,o]=e.split(""),i=Ubt[n],a=Wbt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),ZKe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],JKe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function OI(e,n,o,i){const a=WR(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 Ble(e){return OI(e,"spacing",8)}function FI(e,n){return typeof n=="string"||n==null?n:e(n)}function Gbt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=FI(c,d),u),{})}(Qbt(o),i);return f4(e,e[o],a)}function XKe(e,n){const o=Ble(e.theme);return Object.keys(e).map(i=>Gbt(e,n,i,o)).reduce(Yj,{})}function El(e){return XKe(e,ZKe)}function Il(e){return XKe(e,JKe)}function eZe(e=8,n=Ble({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 QR(...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]?Yj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Bh(e){return typeof e!="number"?e:`${e}px solid`}function f0(e,n){return Kl({prop:e,themeKey:"borders",transform:n})}El.propTypes={},El.filterProps=ZKe,Il.propTypes={},Il.filterProps=JKe;const Ybt=f0("border",Bh),qbt=f0("borderTop",Bh),Kbt=f0("borderRight",Bh),Zbt=f0("borderBottom",Bh),Jbt=f0("borderLeft",Bh),Xbt=f0("borderColor"),ewt=f0("borderTopColor"),twt=f0("borderRightColor"),nwt=f0("borderBottomColor"),owt=f0("borderLeftColor"),iwt=f0("outline",Bh),rwt=f0("outlineColor"),n_=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=OI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:FI(n,i)});return f4(e,e.borderRadius,o)}return null};n_.propTypes={},n_.filterProps=["borderRadius"],QR(Ybt,qbt,Kbt,Zbt,Jbt,Xbt,ewt,twt,nwt,owt,n_,iwt,rwt);const gz=e=>{if(e.gap!==void 0&&e.gap!==null){const n=OI(e.theme,"spacing",8),o=i=>({gap:FI(n,i)});return f4(e,e.gap,o)}return null};gz.propTypes={},gz.filterProps=["gap"];const fz=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=OI(e.theme,"spacing",8),o=i=>({columnGap:FI(n,i)});return f4(e,e.columnGap,o)}return null};fz.propTypes={},fz.filterProps=["columnGap"];const xz=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=OI(e.theme,"spacing",8),o=i=>({rowGap:FI(n,i)});return f4(e,e.rowGap,o)}return null};xz.propTypes={},xz.filterProps=["rowGap"];function $v(e,n){return n==="grey"?n:e}QR(gz,fz,xz,Kl({prop:"gridColumn"}),Kl({prop:"gridRow"}),Kl({prop:"gridAutoFlow"}),Kl({prop:"gridAutoColumns"}),Kl({prop:"gridAutoRows"}),Kl({prop:"gridTemplateColumns"}),Kl({prop:"gridTemplateRows"}),Kl({prop:"gridTemplateAreas"}),Kl({prop:"gridArea"}));function jp(e){return e<=1&&e!==0?100*e+"%":e}QR(Kl({prop:"color",themeKey:"palette",transform:$v}),Kl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$v}),Kl({prop:"backgroundColor",themeKey:"palette",transform:$v}));const awt=Kl({prop:"width",transform:jp}),Mle=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||UR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:jp(o)}};return f4(e,e.maxWidth,n)}return null};Mle.filterProps=["maxWidth"];const lwt=Kl({prop:"minWidth",transform:jp}),swt=Kl({prop:"height",transform:jp}),cwt=Kl({prop:"maxHeight",transform:jp}),dwt=Kl({prop:"minHeight",transform:jp});Kl({prop:"size",cssProperty:"width",transform:jp}),Kl({prop:"size",cssProperty:"height",transform:jp});QR(awt,Mle,lwt,swt,cwt,dwt,Kl({prop:"boxSizing"}));const GR={border:{themeKey:"borders",transform:Bh},borderTop:{themeKey:"borders",transform:Bh},borderRight:{themeKey:"borders",transform:Bh},borderBottom:{themeKey:"borders",transform:Bh},borderLeft:{themeKey:"borders",transform:Bh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:n_},color:{themeKey:"palette",transform:$v},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$v},backgroundColor:{themeKey:"palette",transform:$v},p:{style:Il},pt:{style:Il},pr:{style:Il},pb:{style:Il},pl:{style:Il},px:{style:Il},py:{style:Il},padding:{style:Il},paddingTop:{style:Il},paddingRight:{style:Il},paddingBottom:{style:Il},paddingLeft:{style:Il},paddingX:{style:Il},paddingY:{style:Il},paddingInline:{style:Il},paddingInlineStart:{style:Il},paddingInlineEnd:{style:Il},paddingBlock:{style:Il},paddingBlockStart:{style:Il},paddingBlockEnd:{style:Il},m:{style:El},mt:{style:El},mr:{style:El},mb:{style:El},ml:{style:El},mx:{style:El},my:{style:El},margin:{style:El},marginTop:{style:El},marginRight:{style:El},marginBottom:{style:El},marginLeft:{style:El},marginX:{style:El},marginY:{style:El},marginInline:{style:El},marginInlineStart:{style:El},marginInlineEnd:{style:El},marginBlock:{style:El},marginBlockStart:{style:El},marginBlockEnd:{style:El},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:gz},rowGap:{style:xz},columnGap:{style:fz},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jp},maxWidth:{style:Mle},minWidth:{transform:jp},height:{transform:jp},maxHeight:{transform:jp},minHeight:{transform:jp},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"}},xy=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=WR(i,u)||{};return h?h(s):f4(s,o,f=>{let x=mz(g,p,f);return f===x&&typeof f=="string"&&(x=mz(g,p,`${n}${f==="default"?"":xi(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??GR;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=Yj(f,e(x,y,a,c));else{const b=f4({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=Yj(f,b)}else f=Yj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":khe(a,Ahe(g,f))}:khe(a,Ahe(g,f))}return Array.isArray(i)?i.map(d):d(i)}}();function uwt(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 _le(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Rd({breakpoints:Nbt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:eZe(a),shape:{...Vbt,...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=uwt,d=n.reduce((u,p)=>Rd(u,p),d),d.unstable_sxConfig={...GR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return xy({sx:u,theme:this})},d}function Cne(e=null){const n=m.useContext(DKe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}xy.filterProps=["sx"];const pwt=_le();function tZe(e=pwt){return Cne(e)}function Ehe(e){const n=I7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function nZe({styles:e,themeId:n,defaultTheme:o={}}){const i=tZe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>Ehe(typeof c=="function"?c(a):c)):Ehe(s)),t.jsx(YKe,{styles:s})}const Ihe=e=>e,hwt=(()=>{let e=Ihe;return{configure(n){e=n},generate:n=>e(n),reset(){e=Ihe}}})();function oZe(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=oZe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function bi(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=oZe(e))&&(i&&(i+=" "),i+=n);return i}const mwt={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 Vr(e,n,o="Mui"){const i=mwt[n];return i?`${o}-${i}`:`${hwt.generate(e)}-${n}`}function wr(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Vr(e,a,o)}),i}function iZe(e){const{variants:n,...o}=e,i={variants:n,style:I7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=I7(a.style))}),i}const gwt=_le();function SW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fx(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function fwt(e){return e?(n,o)=>o[e]:null}function o_(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>o_(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?fx(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?fx(I7(c),o):c}return rZe(e,i.variants,[a],o)}return i?.isProcessed?o?fx(I7(i.style),o):i.style:o?fx(I7(i),o):i}function rZe(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?fx(I7(c.style(a)),i):c.style(a))):o.push(i?fx(I7(c.style),i):c.style)}return o}function xwt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function vne(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]=vne(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=bi(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 n0=typeof window<"u"?m.useLayoutEffect:m.useEffect;function zle(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 W7(e){if(e.type)return e;if(e.charAt(0)==="#")return W7(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(g4(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(g4(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const gj=(e,n)=>{try{return(o=>{const i=W7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function YR(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 aZe(e){e=W7(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])),YR({type:d,values:u})}function Sne(e){let n=(e=W7(e)).type==="hsl"||e.type==="hsla"?W7(aZe(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 yz(e,n){return e=W7(e),n=zle(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,YR(e)}function j9(e,n,o){try{return yz(e,n)}catch{return e}}function qR(e,n){if(e=W7(e),n=zle(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 YR(e)}function Xr(e,n,o){try{return qR(e,n)}catch{return e}}function KR(e,n){if(e=W7(e),n=zle(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 YR(e)}function ea(e,n,o){try{return KR(e,n)}catch{return e}}function nT(e,n,o){try{return function(i,a=.15){return Sne(i)>.5?qR(i,a):KR(i,a)}(e,n)}catch{return e}}const lZe=m.createContext(null);function Ole(){return m.useContext(lZe)}const ywt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bwt(e){const{children:n,theme:o}=e,i=Ole(),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[ywt]=i!==null),s},[o,i]);return t.jsx(lZe.Provider,{value:a,children:n})}const sZe=m.createContext();function wwt({value:e,...n}){return t.jsx(sZe.Provider,{value:e??!0,...n})}const ZR=()=>m.useContext(sZe)??!1,cZe=m.createContext(void 0);function Cwt({value:e,children:n}){return t.jsx(cZe.Provider,{value:e,children:n})}function vwt({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?vne(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:vne(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:m.useContext(cZe)}})}let Lhe=0;const The={...B9t}.useId;function JR(e){if(The!==void 0){const n=The();return e??n}return function(n){const[o,i]=m.useState(n),a=n||o;return m.useEffect(()=>{o==null&&(Lhe+=1,i(`mui-${Lhe}`))},[o]),a}(e)}const Dhe={};function Phe(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 dZe(e){const{children:n,theme:o,themeId:i}=e,a=Cne(Dhe),s=Ole()||Dhe,c=Phe(i,a,o),d=Phe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const g=Cne(),f=JR()||"",{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};`:"",n0(()=>{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(nZe,{styles:y}):null}(c);return t.jsx(bwt,{theme:d,children:t.jsx(DKe.Provider,{value:c,children:t.jsx(wwt,{value:u,children:t.jsxs(Cwt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Bhe={theme:void 0},kne="mode",$ne="color-scheme",Swt="data-color-scheme";function kwt(){}const $wt=({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 kwt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function kW(){}function Mhe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _he(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 Awt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=kne,colorSchemeStorageKey:c=$ne,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=$wt,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,_=y?.get(i)||i;return{mode:L,systemMode:Mhe(L),lightColorScheme:I,darkColorScheme:_}}),[C,v]=m.useState(p||!g);m.useEffect(()=>{v(!0)},[]);const k=function(L){return _he(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 _=L??n;return f?.set(_),{...I,mode:_,systemMode:Mhe(_)}})},[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 _={...I};return _he(I,z=>{z==="light"&&(x?.set(L),_.lightColorScheme=L),z==="dark"&&(y?.set(L),_.darkColorScheme=L)}),_}):w(I=>{const _={...I},z=L.light===null?o:L.light,B=L.dark===null?i:L.dark;return z&&(h.includes(z)?(_.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),B&&(h.includes(B)?(_.darkColorScheme=B,y?.set(B)):console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`)),_}):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 _=L?.matches?"dark":"light";return I.systemMode===_?I:{...I,systemMode:_}})},[b.mode]),E=m.useRef(A);return E.current=A,m.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const L=(..._)=>E.current(..._),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)})||kW,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||kW,_=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||kW;return()=>{L(),I(),_()}}},[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 jwt(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 zhe=(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 $W(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}),zhe(s,d,`var(${h})`,p),zhe(c,d,`var(${h}, ${g})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function Hr(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 AW(e,n){return m.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const zE={black:"#000",white:"#fff"},Ewt={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"},Iwt="#f3e5f5",Lwt="#ce93d8",Twt="#ba68c8",Dwt="#ab47bc",Pwt="#9c27b0",Bwt="#7b1fa2",Mwt="#e57373",_wt="#ef5350",zwt="#f44336",Ohe="#d32f2f",Owt="#c62828",Fwt="#ffb74d",Rwt="#ffa726",Nwt="#ff9800",Vwt="#f57c00",Hwt="#e65100",Uwt="#e3f2fd",Wwt="#90caf9",Fhe="#42a5f5",Qwt="#1976d2",Gwt="#1565c0",Ywt="#4fc3f7",qwt="#29b6f6",Kwt="#03a9f4",Rhe="#0288d1",Zwt="#01579b",Jwt="#81c784",Xwt="#66bb6a",eCt="#4caf50",tCt="#388e3c",nCt="#2e7d32",oCt="#1b5e20";function uZe(){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:zE.white,default:zE.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 pZe=uZe();function hZe(){return{text:{primary:zE.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:zE.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 Ane=hZe();function Nhe(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=KR(e.main,a):n==="dark"&&(e.dark=qR(e.main,s)))}function Vhe(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 Fle(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:Wwt,light:Uwt,dark:Fhe}:{main:Qwt,light:Fhe,dark:Gwt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:Lwt,light:Iwt,dark:Dwt}:{main:Pwt,light:Twt,dark:Bwt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:zwt,light:Mwt,dark:Ohe}:{main:Ohe,light:_wt,dark:Owt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:qwt,light:Ywt,dark:Rhe}:{main:Rhe,light:Kwt,dark:Zwt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Xwt,light:Jwt,dark:tCt}:{main:nCt,light:eCt,dark:oCt}}(n),g=e.warning||function(b="light"){return b==="dark"?{main:Rwt,light:Fwt,dark:Vwt}:{main:"#ed6c02",light:Nwt,dark:Hwt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const k=Sne(C),$=Sne(v);return(Math.max(k,$)+.05)/(Math.min(k,$)+.05)}(b,Ane.text.primary)>=o?Ane.text.primary:pZe.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(g4(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(g4(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(Vhe(a,b,"light",v,i),Vhe(a,b,"dark",k,i)):(Nhe(b,"light",v,i),Nhe(b,"dark",k,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=uZe():n==="dark"&&(y=hZe()),Rd({common:{...zE},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:Ewt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function iCt(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 rCt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function aCt(e){return Math.round(1e5*e)/1e5}const Hhe={textTransform:"uppercase"},Uhe='"Roboto", "Helvetica", "Arial", sans-serif';function mZe(e,n){const{fontFamily:o=Uhe,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===Uhe?{letterSpacing:`${aCt(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,Hhe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Hhe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rd({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},g,{clone:!1})}function tl(...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 lCt=["none",tl(0,2,1,-1,0,1,1,0,0,1,3,0),tl(0,3,1,-2,0,2,2,0,0,1,5,0),tl(0,3,3,-2,0,3,4,0,0,1,8,0),tl(0,2,4,-1,0,4,5,0,0,1,10,0),tl(0,3,5,-1,0,5,8,0,0,1,14,0),tl(0,3,5,-1,0,6,10,0,0,1,18,0),tl(0,4,5,-2,0,7,10,1,0,2,16,1),tl(0,5,5,-3,0,8,10,1,0,3,14,2),tl(0,5,6,-3,0,9,12,1,0,3,16,2),tl(0,6,6,-3,0,10,14,1,0,4,18,3),tl(0,6,7,-4,0,11,15,1,0,4,20,3),tl(0,7,8,-4,0,12,17,2,0,5,22,4),tl(0,7,8,-4,0,13,19,2,0,5,24,4),tl(0,7,9,-4,0,14,21,2,0,5,26,4),tl(0,8,9,-5,0,15,22,2,0,6,28,5),tl(0,8,10,-5,0,16,24,2,0,6,30,5),tl(0,8,11,-5,0,17,26,2,0,6,32,5),tl(0,9,11,-5,0,18,28,2,0,7,34,6),tl(0,9,12,-6,0,19,29,2,0,7,36,6),tl(0,10,13,-6,0,20,31,3,0,8,38,7),tl(0,10,13,-6,0,21,33,3,0,8,40,7),tl(0,10,14,-6,0,22,35,3,0,8,42,7),tl(0,11,14,-7,0,23,36,3,0,9,44,8),tl(0,11,15,-7,0,24,38,3,0,9,46,8)],sCt={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)"},gZe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Whe(e){return`${Math.round(e)}ms`}function cCt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function dCt(e){const n={...sCt,...e.easing},o={...gZe,...e.duration};return{getAutoHeightDuration:cCt,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:Whe(s)} ${c} ${typeof d=="string"?d:Whe(d)}`).join(",")},...e,easing:n,duration:o}}const uCt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function pCt(e){return Mf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fZe(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];!pCt(d)||c.startsWith("unstable_")?delete i[c]:Mf(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-CIBk9-EN.js","assets/sentry-Wnm-N8eT.js","assets/core-Bv8kdUko.js","assets/index-BUMFvFkQ.js","assets/DefaultTenantHome-Bx6WQ-Mz.js","assets/mui-DtV_yZlj.js","assets/getLocaleForTenant-lJA2tHmd.js","assets/analytics-B6udoEJT.js","assets/utils-CRtSAyQU.js","assets/ScreenRoutes-Bm0blHDU.js","assets/analyticsHelper-DjIWqwJH.js","assets/ConnectionAuthScreen-gAh9UaQG.js","assets/QBOConnectionScreen-CvW4YyLY.js","assets/empty-B0o7u5U9.js","assets/index-DdfWbiyW.js","assets/url-BmD3S9u5.js","assets/index-D40kV0u0.js","assets/decodeURIComponentSafe-DeA-_wid.js","assets/SignInScreen-D_ZIzo4l.js","assets/useDeviceId-Bi73VT1N.js","assets/MagicLinkSignInScreen-aL0UHXqm.js","assets/NotFoundScreen-D1-E1kBF.js","assets/MagicLinkRoutes-CS6bQmQL.js","assets/WiseConfirmationScreen-CcQUprGd.js","assets/HubSpotOAuthCallbackScreen-O6i8xkbo.js","assets/CustomerOnboardingAuthScreen-Btu05i4h.js","assets/SignOutScreen-CyHjoyPO.js","assets/OAuthConsentScreen-BX4BwxWb.js"])))=>i.map(i=>d[i]);
2
+ import{a as m,b as T,c as pne,R as B9t,p as yW,r as Uu,g as _qe,e as Bpe,f as M9t,s as Mpe,i as _9t,w as z9t,j as O9t,S as F9t,k as R9t,l as N9t,m as V9t,n as H9t,o as U9t}from"./sentry-Wnm-N8eT.js";import{L as W9t,C as _pe,_ as Wu,a as PI,b as Q9t,c as ER,d as BI,u as zqe,T as G9t,e as Y9t,f as q9t,g as K9t,h as Oqe,i as Z9t,k as J9t,j as Pt,l as X9t}from"./liveblocks-CCyJOwfy.js";import{f as Fqe,r as Dr,R as gx,P as pl,u as t0,m as ule,g as gi,h as l3,O as e8t,N as Rqe,i as hj,j as IR,k as t8t,l as n8t,n as o8t,o as J1,p as i8t,B as r8t}from"./core-Bv8kdUko.js";import{L as zpe,bl as a8t,bm as l8t,bn as j4,bo as Nqe,bp as s8t,bq as Nt,br as US,bs as U2,bt as c8t,bu as E4,bv as Wa,bw as Va,bx as d8t,by as u8t,bz as p8t,bA as DE,bB as m4,bC as s3,bD as LR,bE as ln,bF as Vqe,bG as Hqe,bH as ple,bI as Op,bJ as c3,bK as ed,bL as Yf,bM as h8t,bN as Ol,bO as m8t,bP as WS,bQ as g8t,bR as f8t,bS as x8t,bT as py,bU as y8t,bV as Ope,bW as b8t,bX as w8t,bY as C8t,bZ as v8t,b_ as S8t,b$ as k8t,c0 as $8t,c1 as A8t,c2 as E7,c3 as TR,c4 as j8t,c5 as DR,c6 as PR,c7 as BR,c8 as hle,c9 as MR,ca as oS,cb as iS,cc as _R,cd as E8t,ce as I8t,cf as Fpe,cg as L8t,ch as T8t,ci as D8t,cj as Od,ck as Uqe,cl as mle,cm as P8t,cn as A9,co as Rpe,cp as B8t,cq as M8t,cr as _8t,cs as Hy,ct as Uy,cu as Wqe,cv as Qqe,cw as gle,cx as z8t,cy as O8t,cz as dz,cA as Gqe,cB as F8t,cC as Yqe,cD as R8t,cE as mj,cF as Npe,cG as N8t,cH as qqe,cI as Kqe,cJ as Zqe,cK as V8t,cL as QS,cM as Vpe,cN as H8t,cO as U8t,cP as Jqe,cQ as W8t,cR as Hpe,cS as vc,cT as gl,cU as Q8t,cV as rS,cW as Td,cX as Xqe,cY as G8t,cZ as PE,c_ as Hx,c$ as wa,d0 as Y8t,d1 as q8t,d2 as K8t,d3 as Z8t,d4 as JL,d5 as Ph,d6 as J8t,d7 as X8t,d8 as ext,d9 as txt,da as XL,db as hy,dc as zR,dd as nxt,de as oxt,df as Wy,dg as Fd,dh as eKe,di as tKe,dj as ixt,dk as hne,dl as rxt,dm as $1,dn as my,dp as fle,dq as nKe,dr as oKe,ds as iKe,dt as rKe,du as aKe,dv as lKe,dw as axt,dx as Upe,dy as lxt,_ as ld,dz as xle,dA as sKe,dB as sxt,dC as Wpe,dD as tp,dE as qf,dF as cxt,dG as dxt,dH as cKe,dI as mne,dJ as JM,dK as uxt,dL as pxt,dM as hxt,dN as mxt,dO as gxt,dP as fxt,dQ as xxt,dR as yxt,dS as bxt,dT as wxt,dU as Wj,dV as Qj,dW as dKe,dX as ZC,dY as yle,dZ as ble,d_ as GS,d$ as wle,e0 as Cle,e1 as vle,e2 as Sle,e3 as uKe,e4 as kle,e5 as Cxt,e6 as vxt,e7 as pKe,e8 as Qpe,e9 as Sxt,ea as $le,eb as kxt,ec as $xt,ed as hKe,ee as Axt,ef as jxt,eg as Ext,eh as mKe,ei as Ixt,ej as gKe,ek as fKe,el as Lxt,em as Txt,en as Dxt,eo as Pxt,ep as Bxt,eq as Mxt,er as _xt,es as zxt,et as Oxt,eu as Gpe,ev as OR,ew as Fxt,ex as Rxt,ey as Nxt,ez as Vxt,eA as Hxt,eB as Uxt,eC as Wxt,eD as Qxt,eE as Ype,eF as xKe,eG as yKe,eH as bKe,eI as wKe,eJ as CKe,eK as vKe,eL as Gxt,eM as Yxt,eN as qxt,v as Kxt,eO as Zxt,eP as Jxt,eQ as Ale,eR as Qu,eS as SKe,eT as MI,eU as Xxt,eV as kKe,eW as eyt,eX as $Ke,eY as tyt,eZ as AKe,e_ as nyt,e$ as oyt,f0 as iyt,f1 as ryt,f2 as ayt,f3 as qpe,f4 as jKe,f5 as zb,f6 as FR,f7 as Kpe,f8 as lyt,f9 as Zpe,fa as syt,fb as cyt,fc as EKe,fd as IKe,fe as dyt,ff as uyt,fg as pyt,fh as hyt,fi as myt,fj as gyt,fk as uz,fl as jle,fm as LKe,fn as fyt,fo as Gj,fp as xyt,fq as yyt,fr as byt,fs as wyt,ft as Cyt,fu as vyt,fv as Syt,fw as kyt,fx as $yt,fy as Ayt,fz as jyt,fA as TKe,fB as Eyt,fC as Iyt,fD as Lyt,fE as Jpe,fF as Tyt,fG as Dyt,fH as Pyt,fI as Byt,fJ as Myt,fK as gne,fL as _yt,fM as zyt,fN as Oyt,fO as Fyt,fP as Ryt,fQ as Nyt,fR as Vyt,fS as Hyt,fT as Xpe,fU as Uyt,fV as Wyt}from"./zeni-epic-state-CIBk9-EN.js";import{n as l,T as DKe,G as _I,j as Qo,c as Te,k as Fn,C as PKe,u as Ele,a as fne,A as Qyt,b as Gyt,I as Yyt,d as qyt,D as pz,S as BKe}from"./mui-DtV_yZlj.js";import{r as Kyt,m as Sh}from"./analytics-B6udoEJT.js";import{u as Up}from"./plaid--kCGp3zU.js";import{g as Zyt,O as Jyt,H as Xyt,S as ebt,T as tbt,a as nbt,u as obt,b as ibt}from"./dnd-BIjMGuxw.js";import{l as rbt}from"./stripe-DMRn4zHo.js";import{L as vv}from"./lottie-DL8N42Il.js";import{r as js}from"./lexical-DOh49tNP.js";import{D as xne,P as yne,_ as MKe,a as _Ke}from"./pdf-BcmiSEKK.js";import{R as BE,G as gy,X as ts,Y as Fl,H as fy,I as id,J as Fp,K as Qy,L as Wp,M as abt,N as YS,O as zKe,P as lbt,Q as RR,S as Sv,U as sbt,V as Ile,W as cbt,Z as dbt,_ as ubt}from"./recharts-DdIjbBfI.js";import{r as pbt}from"./utils-CRtSAyQU.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]="3ae52e88-477b-405c-9d03-c2d8a3856469",e._sentryDebugIdIdentifier="sentry-dbid-3ae52e88-477b-405c-9d03-c2d8a3856469")}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 ehe,eT={},hbt=function(){if(ehe)return eT;ehe=1;var e=Fqe();return eT.createRoot=e.createRoot,eT.hydrateRoot=e.hydrateRoot,eT}(),Iu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof pne<"u"?pne:typeof self<"u"?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var the,nhe,ohe={exports:{}},Uk={};function OKe(){return nhe||(nhe=1,ohe.exports=function(){if(the)return Uk;the=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 Uk.Fragment=o,Uk.jsx=c,Uk.jsxs=c,Uk}()),ohe.exports}var t=OKe();const mbt=m.createContext(null),bW={didCatch:!1,error:null};let gbt=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=bW}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(bW)}}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(bW))}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(mbt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var ihe,wW={exports:{}},rhe,ahe,CW,fbt=(ihe||(ihe=1,ahe=wW.exports,CW=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="",_=1e12,z=1e9,B=1e6,R="",N=!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>=_&&!b||b==="t"?(I+=A.abbreviations.trillion,g/=_):w<_&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,g/=z):w<z&&w>=B&&!b||b==="m"?(I+=A.abbreviations.million,g/=B):(w<B&&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("["),R=e._.toFixed(g,v[0].length+v[1].length,x,v[1].length)):R=e._.toFixed(g,v.length,x),C=R.split(".")[0],R=e._.includes(R,".")?A.delimiters.decimal+R.split(".")[1]:"",L&&Number(R.slice(1))===0&&(R="")):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),N=!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+R+(I||""),E?j=(E&&N?"(":"")+j+(E&&N?")":""):k>=0?j=k===0?(N?"-":"+")+j:j+(N?"-":"+"):N&&(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},(rhe=wW).exports?rhe.exports=CW():ahe.numeral=CW()),wW.exports);const n4=ji(fbt);function g4(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 o4="$$material";var xbt={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 ybt(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var bbt=/[A-Z]|^ms/g,wbt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FKe=function(e){return e.charCodeAt(1)===45},lhe=function(e){return e!=null&&typeof e!="boolean"},vW=ybt(function(e){return FKe(e)?e:e.replace(bbt,"-$&").toLowerCase()}),she=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(wbt,function(o,i,a){return d7={name:i,styles:a,next:d7},i})}return xbt[e]===1||FKe(e)||typeof n!="number"||n===0?n:n+"px"};function hz(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 d7={name:a.name,styles:a.styles,next:d7},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)d7={name:c.name,styles:c.styles,next:d7},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+=hz(d,u,p[g])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;lhe(y)&&(h+=vW(f)+":"+she(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)lhe(x[b])&&(h+=vW(f)+":"+she(f,x[b])+";");else{var w=hz(d,u,x);switch(f){case"animation":case"animationName":h+=vW(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var d7,che=/label:\s*([^\s;{]+)\s*(;|$)/g,dhe,uhe,phe,hhe,mhe,ghe={exports:{}};function Cbt(){return uhe?dhe:(uhe=1,dhe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function vbt(){if(hhe)return phe;hhe=1;var e=Cbt();function n(){}function o(){}return o.resetWarningCache=n,phe=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 Lle(){return mhe||(mhe=1,ghe.exports=vbt()()),ghe.exports}const bn=ji(Lle());var Sbt=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}(),$d="-ms-",fhe="-moz-",zr="-webkit-",RKe="comm",Tle="rule",Dle="decl",NKe="@keyframes",kbt=Math.abs,NR=String.fromCharCode,$bt=Object.assign;function VKe(e){return e.trim()}function Or(e,n,o){return e.replace(n,o)}function bne(e,n){return e.indexOf(n)}function Gc(e,n){return 0|e.charCodeAt(n)}function ME(e,n,o){return e.slice(n,o)}function bg(e){return e.length}function Ple(e){return e.length}function tT(e,n){return n.push(e),e}var VR=1,aS=1,HKe=0,Ou=0,Ss=0,qS="";function HR(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:VR,column:aS,length:c,return:""}}function Wk(e,n){return $bt(HR("",null,null,"",null,null,0),e,{length:-e.length},n)}function Bp(){return Ss=Ou<HKe?Gc(qS,Ou++):0,aS++,Ss===10&&(aS=1,VR++),Ss}function Kg(){return Gc(qS,Ou)}function XM(){return Ou}function zI(e,n){return ME(qS,e,n)}function _E(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 UKe(e){return VR=aS=1,HKe=bg(qS=e),Ou=0,[]}function WKe(e){return qS="",e}function e_(e){return VKe(zI(Ou-1,wne(e===91?e+2:e===40?e+1:e)))}function Abt(e){for(;(Ss=Kg())&&Ss<33;)Bp();return _E(e)>2||_E(Ss)>3?"":" "}function jbt(e,n){for(;--n&&Bp()&&!(Ss<48||Ss>102||Ss>57&&Ss<65||Ss>70&&Ss<97););return zI(e,XM()+(n<6&&Kg()==32&&Bp()==32))}function wne(e){for(;Bp();)switch(Ss){case e:return Ou;case 34:case 39:e!==34&&e!==39&&wne(Ss);break;case 40:e===41&&wne(e);break;case 92:Bp()}return Ou}function Ebt(e,n){for(;Bp()&&e+Ss!==57&&(e+Ss!==84||Kg()!==47););return"/*"+zI(n,Ou-1)+"*"+NR(e===47?e:Bp())}function Ibt(e){for(;!_E(Kg());)Bp();return zI(e,Ou)}function Lbt(e){return WKe(t_("",null,null,null,[""],e=UKe(e),0,[0],e))}function t_(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=Bp()){case 40:if(y!=108&&Gc(E,g-1)==58){bne(E+=Or(e_(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=e_(v);break;case 9:case 10:case 13:case 32:E+=Abt(y);break;case 92:E+=jbt(XM()-1,7);continue;case 47:switch(Kg()){case 42:case 47:tT(Tbt(Ebt(Bp(),XM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=bg(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=Or(E,/\f/g,"")),x>0&&bg(E)-g&&tT(x>32?yhe(E+";",i,o,g-1):yhe(Or(E," ","")+";",i,o,g-2),u);break;case 59:E+=";";default:if(tT(A=xhe(E,n,o,p,h,a,d,k,$=[],j=[],g),s),v===123)if(h===0)t_(E,n,A,A,$,s,g,d,j);else switch(f===99&&Gc(E,3)===110?100:f){case 100:case 108:case 109:case 115:t_(e,A,A,i&&tT(xhe(e,A,A,0,0,a,d,k,a,$=[],g),j),a,j,g,d,i?$:j);break;default:t_(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,k=E="",g=c;break;case 58:g=1+bg(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Ss=Ou>0?Gc(qS,--Ou):0,aS--,Ss===10&&(aS=1,VR--),Ss==125))continue}switch(E+=NR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(bg(E)-1)*C,C=1;break;case 64:Kg()===45&&(E+=e_(Bp())),f=Kg(),h=g=bg(k=E+=Ibt(XM())),v++;break;case 45:y===45&&bg(E)==2&&(b=0)}}return s}function xhe(e,n,o,i,a,s,c,d,u,p,h){for(var g=a-1,f=a===0?s:[""],x=Ple(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=ME(e,g+1,g=kbt(b=c[y])),k=e;C<x;++C)(k=VKe(b>0?f[C]+" "+v:Or(v,/&\f/g,f[C])))&&(u[w++]=k);return HR(e,n,o,a===0?Tle:d,u,p,h)}function Tbt(e,n,o){return HR(e,n,o,RKe,NR(Ss),ME(e,2,-2),0)}function yhe(e,n,o,i){return HR(e,n,o,Dle,ME(e,0,i),ME(e,i+1,-1),i)}function kv(e,n){for(var o="",i=Ple(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function Dbt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dle:return e.return=e.return||e.value;case RKe:return"";case NKe:return e.return=e.value+"{"+kv(e.children,i)+"}";case Tle:e.value=e.props.join(",")}return bg(o=kv(e.children,i))?e.return=e.value+"{"+o+"}":""}function Pbt(e){return function(n){n.root||(n=n.return)&&e(n)}}var Bbt=function(e,n,o){for(var i=0,a=0;i=a,a=Kg(),i===38&&a===12&&(n[o]=1),!_E(a);)Bp();return zI(e,Ou)},Mbt=function(e,n){return WKe(function(o,i){var a=-1,s=44;do switch(_E(s)){case 0:s===38&&Kg()===12&&(i[a]=1),o[a]+=Bbt(Ou-1,i,a);break;case 2:o[a]+=e_(s);break;case 4:if(s===44){o[++a]=Kg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=NR(s)}while(s=Bp());return o}(UKe(e),n))},bhe=new WeakMap,_bt=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||bhe.get(o))&&!i){bhe.set(e,!0);for(var a=[],s=Mbt(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]}}},zbt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function QKe(e,n){switch(function(o,i){return 45^Gc(o,0)?(((i<<2^Gc(o,0))<<2^Gc(o,1))<<2^Gc(o,2))<<2^Gc(o,3):0}(e,n)){case 5103:return zr+"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 zr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zr+e+fhe+e+$d+e+e;case 6828:case 4268:return zr+e+$d+e+e;case 6165:return zr+e+$d+"flex-"+e+e;case 5187:return zr+e+Or(e,/(\w+).+(:[^]+)/,zr+"box-$1$2"+$d+"flex-$1$2")+e;case 5443:return zr+e+$d+"flex-item-"+Or(e,/flex-|-self/,"")+e;case 4675:return zr+e+$d+"flex-line-pack"+Or(e,/align-content|flex-|-self/,"")+e;case 5548:return zr+e+$d+Or(e,"shrink","negative")+e;case 5292:return zr+e+$d+Or(e,"basis","preferred-size")+e;case 6060:return zr+"box-"+Or(e,"-grow","")+zr+e+$d+Or(e,"grow","positive")+e;case 4554:return zr+Or(e,/([^-])(transform)/g,"$1"+zr+"$2")+e;case 6187:return Or(Or(Or(e,/(zoom-|grab)/,zr+"$1"),/(image-set)/,zr+"$1"),e,"")+e;case 5495:case 3959:return Or(e,/(image-set\([^]*)/,zr+"$1$`$1");case 4968:return Or(Or(e,/(.+:)(flex-)?(.*)/,zr+"box-pack:$3"+$d+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zr+e+e;case 4095:case 3583:case 4068:case 2532:return Or(e,/(.+)-inline(.+)/,zr+"$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(bg(e)-1-n>6)switch(Gc(e,n+1)){case 109:if(Gc(e,n+4)!==45)break;case 102:return Or(e,/(.+:)(.+)-([^]+)/,"$1"+zr+"$2-$3$1"+fhe+(Gc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~bne(e,"stretch")?QKe(Or(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Gc(e,n+1)!==115)break;case 6444:switch(Gc(e,bg(e)-3-(~bne(e,"!important")&&10))){case 107:return Or(e,":",":"+zr)+e;case 101:return Or(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zr+(Gc(e,14)===45?"inline-":"")+"box$3$1"+zr+"$2$3$1"+$d+"$2box$3")+e}break;case 5936:switch(Gc(e,n+11)){case 114:return zr+e+$d+Or(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zr+e+$d+Or(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zr+e+$d+Or(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zr+e+$d+e+e}return e}var Obt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case Dle:e.return=QKe(e.value,e.length);break;case NKe:return kv([Wk(e,{value:Or(e.value,"@","@"+zr)})],i);case Tle: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 kv([Wk(e,{props:[Or(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return kv([Wk(e,{props:[Or(a,/:(plac\w+)/,":"+zr+"input-$1")]}),Wk(e,{props:[Or(a,/:(plac\w+)/,":-moz-$1")]}),Wk(e,{props:[Or(a,/:(plac\w+)/,$d+"input-$1")]})],i)}return""})}}],GKe=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||Obt,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=[_bt,zbt],h=[Dbt,Pbt(function(x){u.insert(x)})],g=function(x){var y=Ple(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){kv(Lbt(C),g)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new Sbt({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 YKe(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(_I,{styles:i})}const whe=[];function I7(e){return whe[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="";d7=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=hz(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=hz(i,o,n[d]),a&&(s+=c[d]);che.lastIndex=0;for(var u,p="";(u=che.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:d7}}(whe)}var Che,vhe,She={exports:{}},sa={};function Fbt(){if(Che)return sa;Che=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 sa.ContextConsumer=s,sa.ContextProvider=c,sa.Element=e,sa.ForwardRef=d,sa.Fragment=o,sa.Lazy=g,sa.Memo=h,sa.Portal=n,sa.Profiler=a,sa.StrictMode=i,sa.Suspense=u,sa.SuspenseList=p,sa.isContextConsumer=function(b){return y(b)===s},sa.isContextProvider=function(b){return y(b)===c},sa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},sa.isForwardRef=function(b){return y(b)===d},sa.isFragment=function(b){return y(b)===o},sa.isLazy=function(b){return y(b)===g},sa.isMemo=function(b){return y(b)===h},sa.isPortal=function(b){return y(b)===n},sa.isProfiler=function(b){return y(b)===a},sa.isStrictMode=function(b){return y(b)===i},sa.isSuspense=function(b){return y(b)===u},sa.isSuspenseList=function(b){return y(b)===p},sa.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)},sa.typeOf=y,sa}function Rbt(){return vhe||(vhe=1,She.exports=Fbt()),She.exports}var qKe=Rbt();function Mf(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 KKe(e){if(m.isValidElement(e)||qKe.isValidElementType(e)||!Mf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=KKe(e[o])}),n}function Rd(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return Mf(e)&&Mf(n)&&Object.keys(n).forEach(a=>{m.isValidElement(n[a])||qKe.isValidElementType(n[a])?i[a]=n[a]:Mf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Mf(e[a])?i[a]=Rd(e[a],n[a],o):o.clone?i[a]=Mf(n[a])?KKe(n[a]):n[a]:i[a]=n[a]}),i}function Nbt(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 khe(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 Vbt={borderRadius:4};function Yj(e,n){return n?Rd(e,n,{clone:!1}):e}const UR={xs:0,sm:600,md:900,lg:1200,xl:1536},$he={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${UR[e]}px)`},Hbt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:UR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function f4(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||$he;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||$he;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:Hbt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||UR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Ahe(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function xi(e){if(typeof e!="string")throw new Error(g4(7));return e.charAt(0).toUpperCase()+e.slice(1)}function WR(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 mz(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:WR(e,o)||i,n&&(a=n(a,i,e)),a}function Kl(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=WR(c.theme,i)||{};return f4(c,d,p=>{let h=mz(u,a,p);return p===h&&typeof p=="string"&&(h=mz(u,a,`${n}${p==="default"?"":xi(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const Ubt={m:"margin",p:"padding"},Wbt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jhe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qbt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!jhe[e])return[e];e=jhe[e]}const[n,o]=e.split(""),i=Ubt[n],a=Wbt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),ZKe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],JKe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function OI(e,n,o,i){const a=WR(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 Ble(e){return OI(e,"spacing",8)}function FI(e,n){return typeof n=="string"||n==null?n:e(n)}function Gbt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=FI(c,d),u),{})}(Qbt(o),i);return f4(e,e[o],a)}function XKe(e,n){const o=Ble(e.theme);return Object.keys(e).map(i=>Gbt(e,n,i,o)).reduce(Yj,{})}function El(e){return XKe(e,ZKe)}function Il(e){return XKe(e,JKe)}function eZe(e=8,n=Ble({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 QR(...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]?Yj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Bh(e){return typeof e!="number"?e:`${e}px solid`}function f0(e,n){return Kl({prop:e,themeKey:"borders",transform:n})}El.propTypes={},El.filterProps=ZKe,Il.propTypes={},Il.filterProps=JKe;const Ybt=f0("border",Bh),qbt=f0("borderTop",Bh),Kbt=f0("borderRight",Bh),Zbt=f0("borderBottom",Bh),Jbt=f0("borderLeft",Bh),Xbt=f0("borderColor"),ewt=f0("borderTopColor"),twt=f0("borderRightColor"),nwt=f0("borderBottomColor"),owt=f0("borderLeftColor"),iwt=f0("outline",Bh),rwt=f0("outlineColor"),n_=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=OI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:FI(n,i)});return f4(e,e.borderRadius,o)}return null};n_.propTypes={},n_.filterProps=["borderRadius"],QR(Ybt,qbt,Kbt,Zbt,Jbt,Xbt,ewt,twt,nwt,owt,n_,iwt,rwt);const gz=e=>{if(e.gap!==void 0&&e.gap!==null){const n=OI(e.theme,"spacing",8),o=i=>({gap:FI(n,i)});return f4(e,e.gap,o)}return null};gz.propTypes={},gz.filterProps=["gap"];const fz=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=OI(e.theme,"spacing",8),o=i=>({columnGap:FI(n,i)});return f4(e,e.columnGap,o)}return null};fz.propTypes={},fz.filterProps=["columnGap"];const xz=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=OI(e.theme,"spacing",8),o=i=>({rowGap:FI(n,i)});return f4(e,e.rowGap,o)}return null};xz.propTypes={},xz.filterProps=["rowGap"];function $v(e,n){return n==="grey"?n:e}QR(gz,fz,xz,Kl({prop:"gridColumn"}),Kl({prop:"gridRow"}),Kl({prop:"gridAutoFlow"}),Kl({prop:"gridAutoColumns"}),Kl({prop:"gridAutoRows"}),Kl({prop:"gridTemplateColumns"}),Kl({prop:"gridTemplateRows"}),Kl({prop:"gridTemplateAreas"}),Kl({prop:"gridArea"}));function jp(e){return e<=1&&e!==0?100*e+"%":e}QR(Kl({prop:"color",themeKey:"palette",transform:$v}),Kl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$v}),Kl({prop:"backgroundColor",themeKey:"palette",transform:$v}));const awt=Kl({prop:"width",transform:jp}),Mle=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||UR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:jp(o)}};return f4(e,e.maxWidth,n)}return null};Mle.filterProps=["maxWidth"];const lwt=Kl({prop:"minWidth",transform:jp}),swt=Kl({prop:"height",transform:jp}),cwt=Kl({prop:"maxHeight",transform:jp}),dwt=Kl({prop:"minHeight",transform:jp});Kl({prop:"size",cssProperty:"width",transform:jp}),Kl({prop:"size",cssProperty:"height",transform:jp});QR(awt,Mle,lwt,swt,cwt,dwt,Kl({prop:"boxSizing"}));const GR={border:{themeKey:"borders",transform:Bh},borderTop:{themeKey:"borders",transform:Bh},borderRight:{themeKey:"borders",transform:Bh},borderBottom:{themeKey:"borders",transform:Bh},borderLeft:{themeKey:"borders",transform:Bh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:n_},color:{themeKey:"palette",transform:$v},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$v},backgroundColor:{themeKey:"palette",transform:$v},p:{style:Il},pt:{style:Il},pr:{style:Il},pb:{style:Il},pl:{style:Il},px:{style:Il},py:{style:Il},padding:{style:Il},paddingTop:{style:Il},paddingRight:{style:Il},paddingBottom:{style:Il},paddingLeft:{style:Il},paddingX:{style:Il},paddingY:{style:Il},paddingInline:{style:Il},paddingInlineStart:{style:Il},paddingInlineEnd:{style:Il},paddingBlock:{style:Il},paddingBlockStart:{style:Il},paddingBlockEnd:{style:Il},m:{style:El},mt:{style:El},mr:{style:El},mb:{style:El},ml:{style:El},mx:{style:El},my:{style:El},margin:{style:El},marginTop:{style:El},marginRight:{style:El},marginBottom:{style:El},marginLeft:{style:El},marginX:{style:El},marginY:{style:El},marginInline:{style:El},marginInlineStart:{style:El},marginInlineEnd:{style:El},marginBlock:{style:El},marginBlockStart:{style:El},marginBlockEnd:{style:El},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:gz},rowGap:{style:xz},columnGap:{style:fz},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jp},maxWidth:{style:Mle},minWidth:{transform:jp},height:{transform:jp},maxHeight:{transform:jp},minHeight:{transform:jp},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"}},xy=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=WR(i,u)||{};return h?h(s):f4(s,o,f=>{let x=mz(g,p,f);return f===x&&typeof f=="string"&&(x=mz(g,p,`${n}${f==="default"?"":xi(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??GR;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=Yj(f,e(x,y,a,c));else{const b=f4({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=Yj(f,b)}else f=Yj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":khe(a,Ahe(g,f))}:khe(a,Ahe(g,f))}return Array.isArray(i)?i.map(d):d(i)}}();function uwt(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 _le(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Rd({breakpoints:Nbt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:eZe(a),shape:{...Vbt,...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=uwt,d=n.reduce((u,p)=>Rd(u,p),d),d.unstable_sxConfig={...GR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return xy({sx:u,theme:this})},d}function Cne(e=null){const n=m.useContext(DKe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}xy.filterProps=["sx"];const pwt=_le();function tZe(e=pwt){return Cne(e)}function Ehe(e){const n=I7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function nZe({styles:e,themeId:n,defaultTheme:o={}}){const i=tZe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>Ehe(typeof c=="function"?c(a):c)):Ehe(s)),t.jsx(YKe,{styles:s})}const Ihe=e=>e,hwt=(()=>{let e=Ihe;return{configure(n){e=n},generate:n=>e(n),reset(){e=Ihe}}})();function oZe(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=oZe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function bi(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=oZe(e))&&(i&&(i+=" "),i+=n);return i}const mwt={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 Vr(e,n,o="Mui"){const i=mwt[n];return i?`${o}-${i}`:`${hwt.generate(e)}-${n}`}function wr(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Vr(e,a,o)}),i}function iZe(e){const{variants:n,...o}=e,i={variants:n,style:I7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=I7(a.style))}),i}const gwt=_le();function SW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fx(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function fwt(e){return e?(n,o)=>o[e]:null}function o_(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>o_(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?fx(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?fx(I7(c),o):c}return rZe(e,i.variants,[a],o)}return i?.isProcessed?o?fx(I7(i.style),o):i.style:o?fx(I7(i),o):i}function rZe(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?fx(I7(c.style(a)),i):c.style(a))):o.push(i?fx(I7(c.style),i):c.style)}return o}function xwt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function vne(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]=vne(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=bi(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 n0=typeof window<"u"?m.useLayoutEffect:m.useEffect;function zle(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 W7(e){if(e.type)return e;if(e.charAt(0)==="#")return W7(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(g4(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(g4(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const gj=(e,n)=>{try{return(o=>{const i=W7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function YR(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 aZe(e){e=W7(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])),YR({type:d,values:u})}function Sne(e){let n=(e=W7(e)).type==="hsl"||e.type==="hsla"?W7(aZe(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 yz(e,n){return e=W7(e),n=zle(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,YR(e)}function j9(e,n,o){try{return yz(e,n)}catch{return e}}function qR(e,n){if(e=W7(e),n=zle(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 YR(e)}function Xr(e,n,o){try{return qR(e,n)}catch{return e}}function KR(e,n){if(e=W7(e),n=zle(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 YR(e)}function ea(e,n,o){try{return KR(e,n)}catch{return e}}function nT(e,n,o){try{return function(i,a=.15){return Sne(i)>.5?qR(i,a):KR(i,a)}(e,n)}catch{return e}}const lZe=m.createContext(null);function Ole(){return m.useContext(lZe)}const ywt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bwt(e){const{children:n,theme:o}=e,i=Ole(),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[ywt]=i!==null),s},[o,i]);return t.jsx(lZe.Provider,{value:a,children:n})}const sZe=m.createContext();function wwt({value:e,...n}){return t.jsx(sZe.Provider,{value:e??!0,...n})}const ZR=()=>m.useContext(sZe)??!1,cZe=m.createContext(void 0);function Cwt({value:e,children:n}){return t.jsx(cZe.Provider,{value:e,children:n})}function vwt({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?vne(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:vne(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:m.useContext(cZe)}})}let Lhe=0;const The={...B9t}.useId;function JR(e){if(The!==void 0){const n=The();return e??n}return function(n){const[o,i]=m.useState(n),a=n||o;return m.useEffect(()=>{o==null&&(Lhe+=1,i(`mui-${Lhe}`))},[o]),a}(e)}const Dhe={};function Phe(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 dZe(e){const{children:n,theme:o,themeId:i}=e,a=Cne(Dhe),s=Ole()||Dhe,c=Phe(i,a,o),d=Phe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const g=Cne(),f=JR()||"",{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};`:"",n0(()=>{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(nZe,{styles:y}):null}(c);return t.jsx(bwt,{theme:d,children:t.jsx(DKe.Provider,{value:c,children:t.jsx(wwt,{value:u,children:t.jsxs(Cwt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Bhe={theme:void 0},kne="mode",$ne="color-scheme",Swt="data-color-scheme";function kwt(){}const $wt=({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 kwt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function kW(){}function Mhe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _he(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 Awt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=kne,colorSchemeStorageKey:c=$ne,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=$wt,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,_=y?.get(i)||i;return{mode:L,systemMode:Mhe(L),lightColorScheme:I,darkColorScheme:_}}),[C,v]=m.useState(p||!g);m.useEffect(()=>{v(!0)},[]);const k=function(L){return _he(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 _=L??n;return f?.set(_),{...I,mode:_,systemMode:Mhe(_)}})},[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 _={...I};return _he(I,z=>{z==="light"&&(x?.set(L),_.lightColorScheme=L),z==="dark"&&(y?.set(L),_.darkColorScheme=L)}),_}):w(I=>{const _={...I},z=L.light===null?o:L.light,B=L.dark===null?i:L.dark;return z&&(h.includes(z)?(_.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),B&&(h.includes(B)?(_.darkColorScheme=B,y?.set(B)):console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`)),_}):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 _=L?.matches?"dark":"light";return I.systemMode===_?I:{...I,systemMode:_}})},[b.mode]),E=m.useRef(A);return E.current=A,m.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const L=(..._)=>E.current(..._),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)})||kW,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||kW,_=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||kW;return()=>{L(),I(),_()}}},[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 jwt(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 zhe=(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 $W(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}),zhe(s,d,`var(${h})`,p),zhe(c,d,`var(${h}, ${g})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function Hr(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 AW(e,n){return m.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const zE={black:"#000",white:"#fff"},Ewt={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"},Iwt="#f3e5f5",Lwt="#ce93d8",Twt="#ba68c8",Dwt="#ab47bc",Pwt="#9c27b0",Bwt="#7b1fa2",Mwt="#e57373",_wt="#ef5350",zwt="#f44336",Ohe="#d32f2f",Owt="#c62828",Fwt="#ffb74d",Rwt="#ffa726",Nwt="#ff9800",Vwt="#f57c00",Hwt="#e65100",Uwt="#e3f2fd",Wwt="#90caf9",Fhe="#42a5f5",Qwt="#1976d2",Gwt="#1565c0",Ywt="#4fc3f7",qwt="#29b6f6",Kwt="#03a9f4",Rhe="#0288d1",Zwt="#01579b",Jwt="#81c784",Xwt="#66bb6a",eCt="#4caf50",tCt="#388e3c",nCt="#2e7d32",oCt="#1b5e20";function uZe(){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:zE.white,default:zE.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 pZe=uZe();function hZe(){return{text:{primary:zE.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:zE.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 Ane=hZe();function Nhe(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=KR(e.main,a):n==="dark"&&(e.dark=qR(e.main,s)))}function Vhe(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 Fle(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:Wwt,light:Uwt,dark:Fhe}:{main:Qwt,light:Fhe,dark:Gwt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:Lwt,light:Iwt,dark:Dwt}:{main:Pwt,light:Twt,dark:Bwt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:zwt,light:Mwt,dark:Ohe}:{main:Ohe,light:_wt,dark:Owt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:qwt,light:Ywt,dark:Rhe}:{main:Rhe,light:Kwt,dark:Zwt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Xwt,light:Jwt,dark:tCt}:{main:nCt,light:eCt,dark:oCt}}(n),g=e.warning||function(b="light"){return b==="dark"?{main:Rwt,light:Fwt,dark:Vwt}:{main:"#ed6c02",light:Nwt,dark:Hwt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const k=Sne(C),$=Sne(v);return(Math.max(k,$)+.05)/(Math.min(k,$)+.05)}(b,Ane.text.primary)>=o?Ane.text.primary:pZe.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(g4(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(g4(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(Vhe(a,b,"light",v,i),Vhe(a,b,"dark",k,i)):(Nhe(b,"light",v,i),Nhe(b,"dark",k,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=uZe():n==="dark"&&(y=hZe()),Rd({common:{...zE},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:Ewt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function iCt(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 rCt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function aCt(e){return Math.round(1e5*e)/1e5}const Hhe={textTransform:"uppercase"},Uhe='"Roboto", "Helvetica", "Arial", sans-serif';function mZe(e,n){const{fontFamily:o=Uhe,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===Uhe?{letterSpacing:`${aCt(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,Hhe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Hhe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rd({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},g,{clone:!1})}function tl(...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 lCt=["none",tl(0,2,1,-1,0,1,1,0,0,1,3,0),tl(0,3,1,-2,0,2,2,0,0,1,5,0),tl(0,3,3,-2,0,3,4,0,0,1,8,0),tl(0,2,4,-1,0,4,5,0,0,1,10,0),tl(0,3,5,-1,0,5,8,0,0,1,14,0),tl(0,3,5,-1,0,6,10,0,0,1,18,0),tl(0,4,5,-2,0,7,10,1,0,2,16,1),tl(0,5,5,-3,0,8,10,1,0,3,14,2),tl(0,5,6,-3,0,9,12,1,0,3,16,2),tl(0,6,6,-3,0,10,14,1,0,4,18,3),tl(0,6,7,-4,0,11,15,1,0,4,20,3),tl(0,7,8,-4,0,12,17,2,0,5,22,4),tl(0,7,8,-4,0,13,19,2,0,5,24,4),tl(0,7,9,-4,0,14,21,2,0,5,26,4),tl(0,8,9,-5,0,15,22,2,0,6,28,5),tl(0,8,10,-5,0,16,24,2,0,6,30,5),tl(0,8,11,-5,0,17,26,2,0,6,32,5),tl(0,9,11,-5,0,18,28,2,0,7,34,6),tl(0,9,12,-6,0,19,29,2,0,7,36,6),tl(0,10,13,-6,0,20,31,3,0,8,38,7),tl(0,10,13,-6,0,21,33,3,0,8,40,7),tl(0,10,14,-6,0,22,35,3,0,8,42,7),tl(0,11,14,-7,0,23,36,3,0,9,44,8),tl(0,11,15,-7,0,24,38,3,0,9,46,8)],sCt={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)"},gZe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Whe(e){return`${Math.round(e)}ms`}function cCt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function dCt(e){const n={...sCt,...e.easing},o={...gZe,...e.duration};return{getAutoHeightDuration:cCt,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:Whe(s)} ${c} ${typeof d=="string"?d:Whe(d)}`).join(",")},...e,easing:n,duration:o}}const uCt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function pCt(e){return Mf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fZe(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];!pCt(d)||c.startsWith("unstable_")?delete i[c]:Mf(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
 
@@ -73780,7 +73780,7 @@ ${ka.beneficiaryAddress} ${ne}`,d(xe),I(!0)})(o),"data-testid":K("title-text-cop
73780
73780
  padding: ${r.sp3} ${r.sp0};
73781
73781
  `,aqe=l(zt)`
73782
73782
  min-width: 140px;
73783
- `,ale=m.createContext(void 0);function uW(){const e=m.useContext(ale);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const spe=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],cpe=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],F6t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],R6t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],N6t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],V6t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],H6t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],U6t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],W6t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Q6t(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 G6t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Y6t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],q6t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],P9r=[...F6t,...spe,...cpe,"/: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",...G6t,...Y6t,...q6t,...R6t,...N6t,...V6t,...H6t,...U6t,...W6t];function dpe(){const{pathname:e}=t0(),n=e??"";return P9r.some(o=>ule(o,n)!=null)||Q6t(e)}function gc(e){const{pathname:n}=t0(),o=n??"";return e.some(i=>ule(i,o)!=null)}const LE=_qe(pbt()),B9r=["sandbox","production"],M9r=["development","staging","production"],tS=()=>Cc==="DEV"||Cc==="QA"||Cc==="PUNE"||Cc==="SUNNYVALE"||Cc==="DELHI"||Cc==="MOHALI",upe="https://zeni-webapp-dev.uc.r.appspot.com",Cc=E4("DEV",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),Hwr=(e=>E4(e,B9r))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Cc)),lqe=(e=>E4(e,M9r))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Cc)),ppe=Cc==="DEV"||Cc==="QA"?.2:.8,K6t=ppe,Aa={sentryDsn:"",sentryTraceSamplingRate:ppe,sentryProfileSamplingRate:K6t,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let HS,TI;function _9r(e){Aa.sentryDsn=e.keys.SENTRY_DSN,Aa.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):ppe,Aa.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):K6t,Aa.googleClientId=e.keys.GOOGLE_CLIENT_ID,Aa.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Aa.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Aa.mixpanelToken=e.keys.MIXPANEL_TOKEN,Aa.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Aa.pusherCluster=e.keys.PUSHER_CLUSTER,Aa.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Aa.appUrl=e.keys.WEB_ENDPOINT,Aa.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Aa.cardVaultId=e.keys.UNIT_VAULT_ID,Aa.stripeKey=e.keys.STRIPE_KEY,Aa.qboRedirectionUrl=e.keys.QBO_URL,Aa.mixpanelUrl=e.keys.MIXPANEL_URL,Aa.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,TI=e.externalEndPoints,HS=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)}}(HS,TI)}let sqe=!1;function qC(){sqe||(Sh.init("63d3a2406505a5737a2b4debdb513f20",{api_host:TI.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),sqe=!0)}const z9r=new Set(Array.from(lo.EVENTS_WITHOUT_SUPER_PROPERTIES));let cqe=!1,dqe=!1;function lle(){if(cqe)return;cqe=!0,qC();const e=lo.extractUtmParamsFromUrl();Object.keys(e).length>0&&Sh.register(e),tS()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const O9r=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function F9r(){const e=function(){return Sh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||O9r.has(o));for(const o of n)Sh.unregister(o);tS()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function uqe(){dqe||(dqe=!0,F9r())}class Cv{identify(n,o){if(qC(),this.#t=n,n!=null&&o!=null&&(Cv.#e==null||!Kxt({userId:n,traits:o},Cv.#e))){const{$email:i,...a}={...o};Sh.identify(n),i&&i!=null&&Sh.people.set_once({$email:i}),Sh.people.set(a),Cv.#e={userId:n,traits:o},tS()&&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){qC();const i=z9r.has(n);if(this.#t!=null||i){if(lle(),this.#t!=null){const a={distinct_id:this.#t,...o};Sh.track(n,a)}else Sh.track(n,o);if(uqe(),tS()){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){qC(),lle(),Sh.track(n,o),uqe(),tS()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){qC(),Sh.alias(n,o)}reset(){qC(),Sh.identify(void 0),this.#t=void 0,Cv.#e=void 0}static#e;#t}const sle=new Cv,Z6t=new lo.Analytics(sle);Z6t.trackWithoutUserId=sle.trackWithoutUserId.bind(sle);const zd=Z6t,J6t=m.createContext(null),hpe={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function R9r({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 Pt.jsx(J6t.Provider,{value:c,children:e})}function pW(){const e=m.useContext(J6t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const X6t="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",jR="zeni-ai-cfo-upload-promo-storage-changed",vi=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.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:ln(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(jR)),!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(jR))}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:ln(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 LE.AES.encrypt(e,n).toString()}decrypt(e,n){return LE.AES.decrypt(e,n).toString(LE.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=X6t;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]};function N9r(e){return gi(n=>function(o,i){if(i==null||i==="")return;const a=Zxt(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const e9t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],t9t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],V9r=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],H9r=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],U9r=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],W9r=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Q9r=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],n9t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],o9t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],G9r=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function mpe(e){const n=Eu(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":G9r.includes(i)?i:null}const Y9r=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),q9r=new Set(["setup","verification","promo","approval-rules"]);function Eu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function gpe(e){const n=Eu(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 i9t(e,n,o){const i=Eu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function r9t(e,n,o){return i9t(e,n,i=>!o.has(i))}function a9t(e){return r9t(e,"bills",Y9r)}function l9t(e){return r9t(e,"reimbursements",q9r)}function s9t(e){return i9t(e,"tasks",n=>n==="group")}const K9r=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),Z9r=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function fpe(e){const n=Eu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return K9r.has(o)?"checking":"checking_details"}function xpe(e){const n=Eu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return Z9r.has(o)?"cards":"cards_detail"}function c9t(e){const n=Eu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function d9t(e){return Eu(e)[1]==="performance"?"performance":void 0}function u9t(e){const n=Eu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function p9t(e){const n=Eu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function Y0(e,n){return n.some(o=>ule(o,e)!=null)}function J9r(e){return Y0(e,spe)?"reports":Y0(e,e9t)?"ap_aging":Y0(e,t9t)?"ar_aging":gpe(e)!=null?"vendors_tab":Y0(e,cpe)?"forecast":mpe(e)!=null?"month_end_close_review":Y0(e,n9t)?"cash_balance":Y0(e,o9t)?"card_balance":s9t(e)?"task_checklist":c9t(e)!=null?"transaction_detail":d9t(e)!=null?"performance":u9t(e)!=null?"bills_detail":p9t(e)!=null?"reimbursement_detail":a9t(e)?"bills_list":l9t(e)?"reimbursement_list":Y0(e,V9r)?"cash_in_cash_out":Y0(e,H9r)?"operating_expenses":Y0(e,U9r)?"revenue":Y0(e,W9r)?"net_burn_or_income":Y0(e,Q9r)?"cash_position":function(n){const o=Eu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":fpe(e)!=null?"checking":function(n){return Eu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":xpe(e)!=null?"cards":function(n){return Eu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return Eu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return Eu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function h9t(e,n){switch(J9r(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 gpe(e);case"forecast":return"forecast";case"month_end_close_review":{const o=mpe(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 fpe(e);case"treasury":return"treasury";case"cards":return xpe(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function X9r(){const{pathname:e}=t0(),n=e??"",o=gi(i=>i.financeStatementState?.selectedReportId);return m.useMemo(()=>h9t(n,{selectedReportId:o}),[n,o])}function e8r({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=m.useCallback(()=>e===!0&&n!=null&&!vi.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=m.useState(o);return m.useEffect(()=>{a(o())},[o]),m.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(jR,s);const c=d=>{d.key===X6t&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(jR,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:m.useCallback(()=>{n!=null&&vi.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const m9t=m.createContext(void 0),ype=()=>m.useContext(m9t),t8r=e=>{const n=vi.isSignedIn(),o=vi.getSignedInUser(),[i,a]=m.useState(void 0),s=m.useMemo(()=>i,[i]),c=gi(p=>Qu(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 Xxt(Aa.pusherClientSecret,{cluster:Aa.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&&TE(w,d),g!=null&&TE(w,g),u!=null&&TE(w,u)))},b=()=>{const w=MI();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),SKe(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]),Pt.jsx(m9t.Provider,{value:s,children:e.children})};function TE(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 bpe=e=>n=>{const o=ype(),i=m.useRef(n.eventCallback),a=m.useRef({});m.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=m.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return m.useEffect(()=>{if(o!=null){const{events:c}=n,d=[];return c.length===0?void 0:(c.forEach(u=>{const[p,h]=(y=>y.split("."))(u),g=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(g?.subscribed===!0)x=g,x.bind(h,f),d.push(()=>{g.unbind(h,f)});else{x=g??o.subscribe(p),x.bind(h,f);const y=()=>{};x.bind("pusher:subscription_succeeded",y),x.subscribed===!0&&x.unbind("pusher:subscription_succeeded",y),d.push(()=>{x.unbind(h,f),x.unbind("pusher:subscription_succeeded",y)})}}),()=>{d.forEach(u=>u())})}},[o,s]),Pt.jsx(e,{...n})},Gf=(e,n)=>{const o=[...e??[]];return o.push(n),o},Uwr=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Wwr=({state:e})=>vi.isSignedIn()===!0?Pt.jsx(e8t,{}):Pt.jsx(Rqe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),n8r=({children:e})=>{const n=fne("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});m.useEffect(()=>{const d=vi.getTheme()==null?n:vi.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?bz({palette:{mode:"dark"},...tAe},nAe,kVn,AVn):bz({palette:{mode:"light"},...tAe},nAe,SVn,$Vn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return Pt.jsx(jkn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;vi.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},g9t=m.createContext(!1),o8r=g9t.Provider;function i8r(){return m.useContext(g9t)}const r8r=()=>gi(e=>Qu(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=X9t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function f9t(){const{useFeatureGate:e}=is(),{isFeatureEnabled:n}=e(qi.isAiCfoEnabled),o=gi(a=>Qu(a)),i=vi.getSignedInUser();if(i==null||i.userId==null||o==null||o.companyId==null)return!1;if(!j4(i)){const a=o.userRole??[];return Nqe(a)&&n}return n}const cle=e=>Jfn.includes(e),cz=e=>vct.includes(e),pqe=e=>cle(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":XO(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:cz(e)?`ai-cfo/${e}`:e,a8r=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],hqe=(e,n)=>e.includes(n),dle=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(hqe(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&&XO(a)?Cct(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of vct)if(hqe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function mqe(e){let n=dle(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=dle(o[i])}return n??"home"}function l8r(e){return e.pathname.includes("settings")}function s8r(e){return e.pathname.includes("ai-cfo")}const c8r=()=>{const e=d8r();return hj("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},d8r=()=>t0().state?.message==="expenseAutomation";function u8r(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const p8r=(e,n,o)=>{const i=kKe(e),a=eyt(e),s=$Ke(o,e);return n||o||a||i||s},AC="AppDrawer",b2={root:`${AC}-root`,drawer:`${AC}-drawer`,appBar:`${AC}-appBar`,menuButton:`${AC}-menuButton`,appBarZenilogo:`${AC}-appBarZenilogo`,drawerZenilogo:`${AC}-drawerZenilogo`},DI=210,h8r=Dn("div",{slot:"Root"})(({theme:e})=>({[`&.${b2.root}`]:{display:"flex"},[`& .${b2.drawer}`]:{[e.breakpoints.up("md")]:{width:DI,flexShrink:0,backgroundColor:e.colors.background}},[`& .${b2.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${b2.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${b2.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${b2.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),m8r=bpe(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=uW(),[i,a]=T.useState(!1),[s,c]=m.useState(!1),d=t0(),u=IR(),p=MI(),h=ade(),g=l3(),[f,x]=m.useState(!1),y=Le(),{useFeatureGate:b}=is(),{isFeatureEnabled:w}=b(qi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(qi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(qi.isExpenseAutomationEnabledV2),[k,$]=m.useState(()=>vi.getSignedInUser());m.useEffect(()=>{const kt=()=>{const jn=vi.getSignedInUser();$(jn)};return window.addEventListener("completeProfileDone",kt),()=>{window.removeEventListener("completeProfileDone",kt)}},[]);const j=gi(kt=>Qu(kt)),A=pe(),E=dpe(),L=j.masterTOSInfo?.isMasterTOSAccepted??!1,{setLoading:I}=pW(),_=f9t(),z=j4(k),B=v||C&&z,R=i8r(),[N,O]=m.useState(void 0),{isFeatureEnabled:F}=b(qi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:P}=b(qi.isChargeCardFeatureEnabled),V=p8r(j,P,w),{isFeatureEnabled:H}=b(qi.isSettingsFeatureEnabled),{isFeatureEnabled:Q}=b(qi.isReferralFeatureEnabled),{isFeatureEnabled:U}=b(qi.isTreasuryEnabled),{isFeatureEnabled:G}=b(qi.isTaskManagerCustomerUserAccessEnabled),Y=z||!z&&G,q=gi(kt=>nyt(kt));m.useEffect(()=>{const kt=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",kt),()=>{window.removeEventListener("scroll",kt)}},[]);const ne=gi(kt=>oyt(kt)),ie=gi(kt=>kt.expenseAutomationViewState.selectedPeriodByTenantId),J=gi(kt=>iyt(kt)),{monthEndCloseChecksView:te}=J,oe=hj("/signout")!==null,re=hj("/:tenantEmailDomain/dashboard")!==null,se=hj("/:tenantEmailDomain/reports")!==null,xe=hj("/:tenantEmailDomain/onboarding/*")!==null,le=c8r();m.useEffect(()=>{R&&Q&&!xe&&ne.fetchState==="Not-Started"&&g(ryt(!0))},[R,Q,ne.fetchState,xe]),m.useEffect(()=>{if(le){const kt=d.state?.origin;if(kt!=null){const jn=ayt(kt);g(qpe(jn))}}},[le,d.state]);const ce=oe||xe,ue=gi(kt=>kt.tenantState),he=gi(kt=>ue.fetchState==="Completed"?jKe(kt):[]),{isFeatureEnabled:de}=b(qi.isApAgingFeatureEnabled),{isFeatureEnabled:fe}=b(qi.isArAgingFeatureEnabled),{isFeatureEnabled:ge}=b(qi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:be}=b(qi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ye}=b(qi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:Ce}=b(qi.isDashboardSidebarNewYearAnimationEnabled),Ae=gi(kt=>zb(kt).totalUnreadCount),Ee=gi(kt=>zb(kt).notificationDetailsByTab.tasks.uiState.unreadCount),Be=gi(kt=>zb(kt).notificationDetailsByTab.comments.uiState.unreadCount),Ie=gi(kt=>zb(kt).reducedFetchCountState),ze=gi(kt=>zb(kt).notificationDetailsByTab.tasks.fetchCountState),Ve=gi(kt=>FR(kt)),[je,ve]=m.useState(void 0),ke=Ve.uiState.currentChatSessionId,Oe=je!=null?Ve.deleteChatSessionStateByChatSessionId[je]?.fetchState:void 0,He=It(Oe),{inboxNotifications:Ue,isLoading:Ct,isFetchingMore:pt,hasFetchedAll:Ke,fetchMore:wt}=r8r(),ht=gi(kt=>zb(kt).notificationDetailsByTab.comments.fetchCountState);m.useEffect(()=>{const kt=setTimeout(()=>wt?.(),0);return()=>clearTimeout(kt)}),m.useEffect(()=>{if(je!=null)return He==="In-Progress"&&Oe==="Completed"?(g(Kpe({chatSessionId:je})),ve(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(Oe==="Error"&&(g(Kpe({chatSessionId:je})),ve(void 0)))},[g,d.state,u,Oe,je,He,e]),m.useEffect(()=>{if(Ct===!1&&pt===!1&&Ke===!0&&j?.companyId!=null&&Ue!=null){const kt=`dashboard_${j.companyId}`;O(Ue.filter(jn=>jn.roomId===kt&&jn.readAt==null).length)}},[Ct,pt,Ke,j?.companyId,Ue]),m.useEffect(()=>{R&&z&&!xe&&ze.fetchState==="Not-Started"&&p.tenantId!=null&&g(lyt("task_manager","dashboard"))},[R,p.tenantId]),m.useEffect(()=>{xe||ht.fetchState!=="Not-Started"||g(Zpe({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),m.useEffect(()=>{if(N!=null){const{fetchState:kt}=ht;kt!=="In-Progress"&&kt!=="Completed"||(kt==="In-Progress"&&g(Zpe({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),g(AKe({unreadCount:N},"comments")))}},[N,ht.fetchState]);const _t={fetchStatus:Ie,count:Ae},at=[];de===!1&&at.push("accounts_payable_aging"),fe===!1&&at.push("accounts_receivable_aging"),F===!1&&at.push("zeni_accounts_promo_card"),Q===!1&&at.push("rewards_card"),B===!1&&at.push("expense_automation_card");const ft=hn(),Tt=gi(kt=>syt(kt,at,k,v,C,U).fetchState),Xt=gi(kt=>cyt(kt).fetchState),Yt=e!=null?vi.getSignedInUserTenant(e):null,et=gi(kt=>Yt?.tenantId!=null?EKe(kt,Yt.tenantId):void 0),qt=re&&(Tt==="Completed"||Tt==="Error")||se&&(Xt==="Completed"||Xt==="Error")||!re&&!se?void 0:"disabled",rn=m.useMemo(()=>IKe(j.userRole),[j.userRole]),dt=Zqe(rn),Et=kt=>{a(kt)},Jt=j.company!=null&&dyt(j.company),$t=U&&Jt,Vt=Jqe(ft?.loggedInUserRoleMap),xn=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,dn=gi(kt=>kt.treasurySetupViewState.treasuryFundsDetails),Ft=m.useCallback(()=>$t&&Vt&&dn?.fetchStatus.fetchState==="Completed"&&!vi.getTreasuryPopupSeen(e??"")&&j.isTreasuryVideoViewed!==!0&&xn===!1&&dle(d.pathname)!=="treasury",[$t,Vt,xn,d.pathname,e,dn?.fetchStatus,j.isTreasuryVideoViewed]),[Rn,so]=m.useState(Ft);m.useEffect(()=>{R&&$t&&dn?.fetchStatus.fetchState==="Not-Started"&&g(uyt())},[R,$t,dn?.fetchStatus.fetchState]),m.useEffect(()=>{so(Ft())},[Ft]);const On=u8r(dn.fundsDetails),Fo=j?.rewardsLastViewedTime==null,Xo=k?.userEmail!=null&&q.fetchState==="Completed"&&pyt(q.notificationSettings,k.userEmail,w,j),co=m.useCallback(kt=>{const jn=d.state?.referrer;if(te.monthEndCloseChecks?.auditSummary!=null&&zd.trackMonthCloseAuditPage(kt.month,kt.year,te.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",te.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,jn??null),g(hyt(j.tenantId,kt)),ie[j.tenantId]!=null){const nn=Gf(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${J.currentSelectedView}/${kt.month}-${kt.year}`,{state:{pathnameStackToGoBack:nn,referrer:J.currentSelectedView}})}g(qpe(J.currentSelectedView)),J.reconciliation.selectedAccountId!=null&&g(myt({selectedAccountId:void 0}))},[J.reconciliation.selectedAccountId,J.currentSelectedView,j.tenantId,te.monthEndCloseChecks?.auditSummary,te.monthEndCloseChecks?.reportEmailSentDate,ie,e,d.state,d.pathname]),Mn=m.useMemo(()=>({zIndex:s||Rn?12:S[2]}),[s,Rn]),fo=_&&s8r(d),go=Pt.jsx(tto,{signedInUser:k,currentTenantId:ue.currentTenantId??"",tenants:ue.fetchState==="Completed"?he:et!=null?[et]:[],rewardsConfiguration:{isRewardsTabVisible:Q,isRewardsAnimated:Fo,rewardsPlan:ne.rewardsPlan},selectedMenu:n===!0?Cct("ai_cfo"):mqe(d),isTenantDropdownDisabled:qt,isSettings:l8r(d),isSettingsFeatureEnabled:H,currentTenant:j,isVendorsTabVisible:dt,isZeniAccountEnabled:F,isChargeCardEnabled:V,isTreasuryEnabled:$t,isTreasuryPopupVisible:Rn,treasuryYieldPercentage:On,isNotificationsTabVisible:Xo,notificationCountDetails:_t,isExpenseAutomationEnabledForUser:B&&Wa(j.userRole)===!1,isAiCfoAccessEnabled:_,onNotificationIconClick:()=>{Et(!1);const kt=z?Ee===0&&Be>0?"notifications/comments":"notifications/tasks":"notifications/comments",jn=Gf(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${kt}`,{state:{pathnameStackToGoBack:jn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:kt=>{I(hpe.TENANT_SWITCHING),Et(!1);const jn=kt.tenantEmailDomain,nn=mqe(d),Pn=nn;let to="";const ro=XO(Pn);nn==="home"?to+="dashboard":nn==="users_and_roles"?to+="people":cle(nn)?to+="settings/my_profile":cz(nn)?to+=`ai-cfo/${nn}`:to+=Pn==="task_checklist"?"tasks":ro?"month_end_close_checks/review":encodeURIComponent(nn);const uo=`/${encodeURIComponent(jn)}/${to}`;u(uo,{replace:!0}),k!=null&&(g(jle(kt.tenantId)),g(LKe(k.userId,kt.tenantId,k.zeniSessionId)));const $o=kt;zd.trackCompanySwitch($o.companyId,$o.companyName,$o.userRole)},handleMenuChange:(kt,jn)=>{if(k!=null&&zd.trackSidePanelClicked(kt.type,kt.group),Et(!1),e==null)return;if(n&&(uo=>{if(cle(uo)||cz(uo))return!0;const $o=pqe(uo).split("/")[0];return!a8r.includes($o)})(kt.type)&&o(!1),kt.type==="ai_cfo"){zd.trackAICFOChatScreenStateChanged("viewed","left_menu",ke??null,null);const uo=Gf(d.state?.pathnameStackToGoBack,d.pathname);return L?void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:uo,referrer:"Sidebar"}}):void(p3(A)?u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:uo,referrer:"Sidebar"}}):E?o(!0):u(`/${e}/dashboard`,{state:{pathnameStackToGoBack:uo,referrer:"Sidebar",message:"open_ai_cfo_drawer"}}))}const nn=Gf(d.state?.pathnameStackToGoBack,d.pathname),Pn=kt.type,to=XO(Pn)&&Pn!=="command_center";if(Pn!=="command_center"&&!to||ie[j.tenantId]==null||zd.trackMonthEndCloseClicked(ie[j.tenantId].month,ie[j.tenantId].year,"Sidebar"),to&&ie[j.tenantId]!=null){const uo=ie[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${kt.type}/${uo.month}-${uo.year}`,{state:{pathnameStackToGoBack:nn,message:jn,referrer:"Sidebar"}})}const ro=pqe(kt.type);cz(kt.type)?(ke!=null&&g(uz()),u(`/${e}/ai-cfo/${kt.type}`,{state:{pathnameStackToGoBack:nn.slice(0,-1),message:jn,referrer:"Sidebar"}})):u(`../${e}/${ro}`,{state:{pathnameStackToGoBack:nn,message:jn,referrer:"Sidebar"}})},onDeleteChatSession:kt=>{g(gyt(kt)),ke===kt&&ve(kt)},handleLogOutClick:()=>{Et(!1);const kt=Gf(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:kt,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{vi.saveTreasuryPopupSeen(e??"",!0),so(!1)},monthEndCloseChecksView:te,onPeriodChange:co,onCalendarOpen:c,aiCfoView:Ve,isAiCfo:fo,isOnDashboard:re,isTaskManagerAccessEnabled:Y,updateCurrentChatSessionId:kt=>{g(Ale({sessionId:kt,agentId:"controller"})),u(`../${e}/ai-cfo/${kt}`,{state:{...d.state}})},halloweenAnimationEnabled:ge,thanksGivingAnimationEnabled:be,christmasAnimationEnabled:ye,newYearAnimationEnabled:Ce}),ei=Pt.jsx(Qyt,{position:"fixed",className:b2.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Pt.jsxs(Gyt,{style:{minHeight:xct},children:[Pt.jsx(Yyt,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>Et(!0),className:b2.menuButton,size:"large",children:Pt.jsx(g8r,{})}),Pt.jsx(f8r,{className:b2.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),eo=fne(kt=>kt.breakpoints.up("md")),Yo=fne(kt=>kt.breakpoints.down("md"));return e==null?null:Pt.jsxs(h8r,{className:b2.root,children:[Pt.jsx(qyt,{}),ce===!1?Pt.jsxs(Pt.Fragment,{children:[eo||!re?null:ei,Pt.jsxs("nav",{className:b2.drawer,children:[eo?null:Pt.jsx(pz,{container:window.document.body,variant:"temporary",open:i,onClose:()=>Et(!1),PaperProps:{sx:{width:DI,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:go}),Yo?null:Pt.jsx(pz,{PaperProps:{sx:{width:DI,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...Mn}},variant:"permanent",open:!0,children:go})]})]}):null]})});function gqe(e){return e?.data.unread!=null&&e?.mode!=null}const g8r=Dn(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"})))`
73783
+ `,ale=m.createContext(void 0);function uW(){const e=m.useContext(ale);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const spe=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],cpe=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],F6t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],R6t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],N6t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],V6t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],H6t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],U6t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],W6t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Q6t(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 G6t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Y6t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],q6t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],P9r=[...F6t,...spe,...cpe,"/: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",...G6t,...Y6t,...q6t,...R6t,...N6t,...V6t,...H6t,...U6t,...W6t];function dpe(){const{pathname:e}=t0(),n=e??"";return P9r.some(o=>ule(o,n)!=null)||Q6t(e)}function gc(e){const{pathname:n}=t0(),o=n??"";return e.some(i=>ule(i,o)!=null)}const LE=_qe(pbt()),B9r=["sandbox","production"],M9r=["development","staging","production"],tS=()=>Cc==="DEV"||Cc==="QA"||Cc==="PUNE"||Cc==="SUNNYVALE"||Cc==="DELHI"||Cc==="MOHALI",upe="https://zeni-webapp-qa.uc.r.appspot.com",Cc=E4("QA",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),Hwr=(e=>E4(e,B9r))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Cc)),lqe=(e=>E4(e,M9r))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Cc)),ppe=Cc==="DEV"||Cc==="QA"?.2:.8,K6t=ppe,Aa={sentryDsn:"",sentryTraceSamplingRate:ppe,sentryProfileSamplingRate:K6t,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let HS,TI;function _9r(e){Aa.sentryDsn=e.keys.SENTRY_DSN,Aa.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):ppe,Aa.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):K6t,Aa.googleClientId=e.keys.GOOGLE_CLIENT_ID,Aa.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Aa.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Aa.mixpanelToken=e.keys.MIXPANEL_TOKEN,Aa.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Aa.pusherCluster=e.keys.PUSHER_CLUSTER,Aa.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Aa.appUrl=e.keys.WEB_ENDPOINT,Aa.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Aa.cardVaultId=e.keys.UNIT_VAULT_ID,Aa.stripeKey=e.keys.STRIPE_KEY,Aa.qboRedirectionUrl=e.keys.QBO_URL,Aa.mixpanelUrl=e.keys.MIXPANEL_URL,Aa.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,TI=e.externalEndPoints,HS=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)}}(HS,TI)}let sqe=!1;function qC(){sqe||(Sh.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:TI.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),sqe=!0)}const z9r=new Set(Array.from(lo.EVENTS_WITHOUT_SUPER_PROPERTIES));let cqe=!1,dqe=!1;function lle(){if(cqe)return;cqe=!0,qC();const e=lo.extractUtmParamsFromUrl();Object.keys(e).length>0&&Sh.register(e),tS()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const O9r=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function F9r(){const e=function(){return Sh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||O9r.has(o));for(const o of n)Sh.unregister(o);tS()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function uqe(){dqe||(dqe=!0,F9r())}class Cv{identify(n,o){if(qC(),this.#t=n,n!=null&&o!=null&&(Cv.#e==null||!Kxt({userId:n,traits:o},Cv.#e))){const{$email:i,...a}={...o};Sh.identify(n),i&&i!=null&&Sh.people.set_once({$email:i}),Sh.people.set(a),Cv.#e={userId:n,traits:o},tS()&&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){qC();const i=z9r.has(n);if(this.#t!=null||i){if(lle(),this.#t!=null){const a={distinct_id:this.#t,...o};Sh.track(n,a)}else Sh.track(n,o);if(uqe(),tS()){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){qC(),lle(),Sh.track(n,o),uqe(),tS()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){qC(),Sh.alias(n,o)}reset(){qC(),Sh.identify(void 0),this.#t=void 0,Cv.#e=void 0}static#e;#t}const sle=new Cv,Z6t=new lo.Analytics(sle);Z6t.trackWithoutUserId=sle.trackWithoutUserId.bind(sle);const zd=Z6t,J6t=m.createContext(null),hpe={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function R9r({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 Pt.jsx(J6t.Provider,{value:c,children:e})}function pW(){const e=m.useContext(J6t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const X6t="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",jR="zeni-ai-cfo-upload-promo-storage-changed",vi=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.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:ln(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(jR)),!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(jR))}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:ln(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 LE.AES.encrypt(e,n).toString()}decrypt(e,n){return LE.AES.decrypt(e,n).toString(LE.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=X6t;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]};function N9r(e){return gi(n=>function(o,i){if(i==null||i==="")return;const a=Zxt(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const e9t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],t9t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],V9r=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],H9r=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],U9r=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],W9r=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Q9r=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],n9t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],o9t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],G9r=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function mpe(e){const n=Eu(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":G9r.includes(i)?i:null}const Y9r=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),q9r=new Set(["setup","verification","promo","approval-rules"]);function Eu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function gpe(e){const n=Eu(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 i9t(e,n,o){const i=Eu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function r9t(e,n,o){return i9t(e,n,i=>!o.has(i))}function a9t(e){return r9t(e,"bills",Y9r)}function l9t(e){return r9t(e,"reimbursements",q9r)}function s9t(e){return i9t(e,"tasks",n=>n==="group")}const K9r=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),Z9r=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function fpe(e){const n=Eu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return K9r.has(o)?"checking":"checking_details"}function xpe(e){const n=Eu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return Z9r.has(o)?"cards":"cards_detail"}function c9t(e){const n=Eu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function d9t(e){return Eu(e)[1]==="performance"?"performance":void 0}function u9t(e){const n=Eu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function p9t(e){const n=Eu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function Y0(e,n){return n.some(o=>ule(o,e)!=null)}function J9r(e){return Y0(e,spe)?"reports":Y0(e,e9t)?"ap_aging":Y0(e,t9t)?"ar_aging":gpe(e)!=null?"vendors_tab":Y0(e,cpe)?"forecast":mpe(e)!=null?"month_end_close_review":Y0(e,n9t)?"cash_balance":Y0(e,o9t)?"card_balance":s9t(e)?"task_checklist":c9t(e)!=null?"transaction_detail":d9t(e)!=null?"performance":u9t(e)!=null?"bills_detail":p9t(e)!=null?"reimbursement_detail":a9t(e)?"bills_list":l9t(e)?"reimbursement_list":Y0(e,V9r)?"cash_in_cash_out":Y0(e,H9r)?"operating_expenses":Y0(e,U9r)?"revenue":Y0(e,W9r)?"net_burn_or_income":Y0(e,Q9r)?"cash_position":function(n){const o=Eu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":fpe(e)!=null?"checking":function(n){return Eu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":xpe(e)!=null?"cards":function(n){return Eu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return Eu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return Eu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function h9t(e,n){switch(J9r(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 gpe(e);case"forecast":return"forecast";case"month_end_close_review":{const o=mpe(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 fpe(e);case"treasury":return"treasury";case"cards":return xpe(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function X9r(){const{pathname:e}=t0(),n=e??"",o=gi(i=>i.financeStatementState?.selectedReportId);return m.useMemo(()=>h9t(n,{selectedReportId:o}),[n,o])}function e8r({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=m.useCallback(()=>e===!0&&n!=null&&!vi.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=m.useState(o);return m.useEffect(()=>{a(o())},[o]),m.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(jR,s);const c=d=>{d.key===X6t&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(jR,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:m.useCallback(()=>{n!=null&&vi.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const m9t=m.createContext(void 0),ype=()=>m.useContext(m9t),t8r=e=>{const n=vi.isSignedIn(),o=vi.getSignedInUser(),[i,a]=m.useState(void 0),s=m.useMemo(()=>i,[i]),c=gi(p=>Qu(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 Xxt(Aa.pusherClientSecret,{cluster:Aa.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&&TE(w,d),g!=null&&TE(w,g),u!=null&&TE(w,u)))},b=()=>{const w=MI();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),SKe(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]),Pt.jsx(m9t.Provider,{value:s,children:e.children})};function TE(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 bpe=e=>n=>{const o=ype(),i=m.useRef(n.eventCallback),a=m.useRef({});m.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=m.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return m.useEffect(()=>{if(o!=null){const{events:c}=n,d=[];return c.length===0?void 0:(c.forEach(u=>{const[p,h]=(y=>y.split("."))(u),g=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(g?.subscribed===!0)x=g,x.bind(h,f),d.push(()=>{g.unbind(h,f)});else{x=g??o.subscribe(p),x.bind(h,f);const y=()=>{};x.bind("pusher:subscription_succeeded",y),x.subscribed===!0&&x.unbind("pusher:subscription_succeeded",y),d.push(()=>{x.unbind(h,f),x.unbind("pusher:subscription_succeeded",y)})}}),()=>{d.forEach(u=>u())})}},[o,s]),Pt.jsx(e,{...n})},Gf=(e,n)=>{const o=[...e??[]];return o.push(n),o},Uwr=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Wwr=({state:e})=>vi.isSignedIn()===!0?Pt.jsx(e8t,{}):Pt.jsx(Rqe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),n8r=({children:e})=>{const n=fne("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});m.useEffect(()=>{const d=vi.getTheme()==null?n:vi.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?bz({palette:{mode:"dark"},...tAe},nAe,kVn,AVn):bz({palette:{mode:"light"},...tAe},nAe,SVn,$Vn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return Pt.jsx(jkn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;vi.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},g9t=m.createContext(!1),o8r=g9t.Provider;function i8r(){return m.useContext(g9t)}const r8r=()=>gi(e=>Qu(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=X9t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function f9t(){const{useFeatureGate:e}=is(),{isFeatureEnabled:n}=e(qi.isAiCfoEnabled),o=gi(a=>Qu(a)),i=vi.getSignedInUser();if(i==null||i.userId==null||o==null||o.companyId==null)return!1;if(!j4(i)){const a=o.userRole??[];return Nqe(a)&&n}return n}const cle=e=>Jfn.includes(e),cz=e=>vct.includes(e),pqe=e=>cle(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":XO(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:cz(e)?`ai-cfo/${e}`:e,a8r=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],hqe=(e,n)=>e.includes(n),dle=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(hqe(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&&XO(a)?Cct(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of vct)if(hqe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function mqe(e){let n=dle(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=dle(o[i])}return n??"home"}function l8r(e){return e.pathname.includes("settings")}function s8r(e){return e.pathname.includes("ai-cfo")}const c8r=()=>{const e=d8r();return hj("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},d8r=()=>t0().state?.message==="expenseAutomation";function u8r(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const p8r=(e,n,o)=>{const i=kKe(e),a=eyt(e),s=$Ke(o,e);return n||o||a||i||s},AC="AppDrawer",b2={root:`${AC}-root`,drawer:`${AC}-drawer`,appBar:`${AC}-appBar`,menuButton:`${AC}-menuButton`,appBarZenilogo:`${AC}-appBarZenilogo`,drawerZenilogo:`${AC}-drawerZenilogo`},DI=210,h8r=Dn("div",{slot:"Root"})(({theme:e})=>({[`&.${b2.root}`]:{display:"flex"},[`& .${b2.drawer}`]:{[e.breakpoints.up("md")]:{width:DI,flexShrink:0,backgroundColor:e.colors.background}},[`& .${b2.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${b2.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${b2.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${b2.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),m8r=bpe(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=uW(),[i,a]=T.useState(!1),[s,c]=m.useState(!1),d=t0(),u=IR(),p=MI(),h=ade(),g=l3(),[f,x]=m.useState(!1),y=Le(),{useFeatureGate:b}=is(),{isFeatureEnabled:w}=b(qi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(qi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(qi.isExpenseAutomationEnabledV2),[k,$]=m.useState(()=>vi.getSignedInUser());m.useEffect(()=>{const kt=()=>{const jn=vi.getSignedInUser();$(jn)};return window.addEventListener("completeProfileDone",kt),()=>{window.removeEventListener("completeProfileDone",kt)}},[]);const j=gi(kt=>Qu(kt)),A=pe(),E=dpe(),L=j.masterTOSInfo?.isMasterTOSAccepted??!1,{setLoading:I}=pW(),_=f9t(),z=j4(k),B=v||C&&z,R=i8r(),[N,O]=m.useState(void 0),{isFeatureEnabled:F}=b(qi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:P}=b(qi.isChargeCardFeatureEnabled),V=p8r(j,P,w),{isFeatureEnabled:H}=b(qi.isSettingsFeatureEnabled),{isFeatureEnabled:Q}=b(qi.isReferralFeatureEnabled),{isFeatureEnabled:U}=b(qi.isTreasuryEnabled),{isFeatureEnabled:G}=b(qi.isTaskManagerCustomerUserAccessEnabled),Y=z||!z&&G,q=gi(kt=>nyt(kt));m.useEffect(()=>{const kt=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",kt),()=>{window.removeEventListener("scroll",kt)}},[]);const ne=gi(kt=>oyt(kt)),ie=gi(kt=>kt.expenseAutomationViewState.selectedPeriodByTenantId),J=gi(kt=>iyt(kt)),{monthEndCloseChecksView:te}=J,oe=hj("/signout")!==null,re=hj("/:tenantEmailDomain/dashboard")!==null,se=hj("/:tenantEmailDomain/reports")!==null,xe=hj("/:tenantEmailDomain/onboarding/*")!==null,le=c8r();m.useEffect(()=>{R&&Q&&!xe&&ne.fetchState==="Not-Started"&&g(ryt(!0))},[R,Q,ne.fetchState,xe]),m.useEffect(()=>{if(le){const kt=d.state?.origin;if(kt!=null){const jn=ayt(kt);g(qpe(jn))}}},[le,d.state]);const ce=oe||xe,ue=gi(kt=>kt.tenantState),he=gi(kt=>ue.fetchState==="Completed"?jKe(kt):[]),{isFeatureEnabled:de}=b(qi.isApAgingFeatureEnabled),{isFeatureEnabled:fe}=b(qi.isArAgingFeatureEnabled),{isFeatureEnabled:ge}=b(qi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:be}=b(qi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ye}=b(qi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:Ce}=b(qi.isDashboardSidebarNewYearAnimationEnabled),Ae=gi(kt=>zb(kt).totalUnreadCount),Ee=gi(kt=>zb(kt).notificationDetailsByTab.tasks.uiState.unreadCount),Be=gi(kt=>zb(kt).notificationDetailsByTab.comments.uiState.unreadCount),Ie=gi(kt=>zb(kt).reducedFetchCountState),ze=gi(kt=>zb(kt).notificationDetailsByTab.tasks.fetchCountState),Ve=gi(kt=>FR(kt)),[je,ve]=m.useState(void 0),ke=Ve.uiState.currentChatSessionId,Oe=je!=null?Ve.deleteChatSessionStateByChatSessionId[je]?.fetchState:void 0,He=It(Oe),{inboxNotifications:Ue,isLoading:Ct,isFetchingMore:pt,hasFetchedAll:Ke,fetchMore:wt}=r8r(),ht=gi(kt=>zb(kt).notificationDetailsByTab.comments.fetchCountState);m.useEffect(()=>{const kt=setTimeout(()=>wt?.(),0);return()=>clearTimeout(kt)}),m.useEffect(()=>{if(je!=null)return He==="In-Progress"&&Oe==="Completed"?(g(Kpe({chatSessionId:je})),ve(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(Oe==="Error"&&(g(Kpe({chatSessionId:je})),ve(void 0)))},[g,d.state,u,Oe,je,He,e]),m.useEffect(()=>{if(Ct===!1&&pt===!1&&Ke===!0&&j?.companyId!=null&&Ue!=null){const kt=`dashboard_${j.companyId}`;O(Ue.filter(jn=>jn.roomId===kt&&jn.readAt==null).length)}},[Ct,pt,Ke,j?.companyId,Ue]),m.useEffect(()=>{R&&z&&!xe&&ze.fetchState==="Not-Started"&&p.tenantId!=null&&g(lyt("task_manager","dashboard"))},[R,p.tenantId]),m.useEffect(()=>{xe||ht.fetchState!=="Not-Started"||g(Zpe({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),m.useEffect(()=>{if(N!=null){const{fetchState:kt}=ht;kt!=="In-Progress"&&kt!=="Completed"||(kt==="In-Progress"&&g(Zpe({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),g(AKe({unreadCount:N},"comments")))}},[N,ht.fetchState]);const _t={fetchStatus:Ie,count:Ae},at=[];de===!1&&at.push("accounts_payable_aging"),fe===!1&&at.push("accounts_receivable_aging"),F===!1&&at.push("zeni_accounts_promo_card"),Q===!1&&at.push("rewards_card"),B===!1&&at.push("expense_automation_card");const ft=hn(),Tt=gi(kt=>syt(kt,at,k,v,C,U).fetchState),Xt=gi(kt=>cyt(kt).fetchState),Yt=e!=null?vi.getSignedInUserTenant(e):null,et=gi(kt=>Yt?.tenantId!=null?EKe(kt,Yt.tenantId):void 0),qt=re&&(Tt==="Completed"||Tt==="Error")||se&&(Xt==="Completed"||Xt==="Error")||!re&&!se?void 0:"disabled",rn=m.useMemo(()=>IKe(j.userRole),[j.userRole]),dt=Zqe(rn),Et=kt=>{a(kt)},Jt=j.company!=null&&dyt(j.company),$t=U&&Jt,Vt=Jqe(ft?.loggedInUserRoleMap),xn=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,dn=gi(kt=>kt.treasurySetupViewState.treasuryFundsDetails),Ft=m.useCallback(()=>$t&&Vt&&dn?.fetchStatus.fetchState==="Completed"&&!vi.getTreasuryPopupSeen(e??"")&&j.isTreasuryVideoViewed!==!0&&xn===!1&&dle(d.pathname)!=="treasury",[$t,Vt,xn,d.pathname,e,dn?.fetchStatus,j.isTreasuryVideoViewed]),[Rn,so]=m.useState(Ft);m.useEffect(()=>{R&&$t&&dn?.fetchStatus.fetchState==="Not-Started"&&g(uyt())},[R,$t,dn?.fetchStatus.fetchState]),m.useEffect(()=>{so(Ft())},[Ft]);const On=u8r(dn.fundsDetails),Fo=j?.rewardsLastViewedTime==null,Xo=k?.userEmail!=null&&q.fetchState==="Completed"&&pyt(q.notificationSettings,k.userEmail,w,j),co=m.useCallback(kt=>{const jn=d.state?.referrer;if(te.monthEndCloseChecks?.auditSummary!=null&&zd.trackMonthCloseAuditPage(kt.month,kt.year,te.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",te.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,jn??null),g(hyt(j.tenantId,kt)),ie[j.tenantId]!=null){const nn=Gf(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${J.currentSelectedView}/${kt.month}-${kt.year}`,{state:{pathnameStackToGoBack:nn,referrer:J.currentSelectedView}})}g(qpe(J.currentSelectedView)),J.reconciliation.selectedAccountId!=null&&g(myt({selectedAccountId:void 0}))},[J.reconciliation.selectedAccountId,J.currentSelectedView,j.tenantId,te.monthEndCloseChecks?.auditSummary,te.monthEndCloseChecks?.reportEmailSentDate,ie,e,d.state,d.pathname]),Mn=m.useMemo(()=>({zIndex:s||Rn?12:S[2]}),[s,Rn]),fo=_&&s8r(d),go=Pt.jsx(tto,{signedInUser:k,currentTenantId:ue.currentTenantId??"",tenants:ue.fetchState==="Completed"?he:et!=null?[et]:[],rewardsConfiguration:{isRewardsTabVisible:Q,isRewardsAnimated:Fo,rewardsPlan:ne.rewardsPlan},selectedMenu:n===!0?Cct("ai_cfo"):mqe(d),isTenantDropdownDisabled:qt,isSettings:l8r(d),isSettingsFeatureEnabled:H,currentTenant:j,isVendorsTabVisible:dt,isZeniAccountEnabled:F,isChargeCardEnabled:V,isTreasuryEnabled:$t,isTreasuryPopupVisible:Rn,treasuryYieldPercentage:On,isNotificationsTabVisible:Xo,notificationCountDetails:_t,isExpenseAutomationEnabledForUser:B&&Wa(j.userRole)===!1,isAiCfoAccessEnabled:_,onNotificationIconClick:()=>{Et(!1);const kt=z?Ee===0&&Be>0?"notifications/comments":"notifications/tasks":"notifications/comments",jn=Gf(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${kt}`,{state:{pathnameStackToGoBack:jn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:kt=>{I(hpe.TENANT_SWITCHING),Et(!1);const jn=kt.tenantEmailDomain,nn=mqe(d),Pn=nn;let to="";const ro=XO(Pn);nn==="home"?to+="dashboard":nn==="users_and_roles"?to+="people":cle(nn)?to+="settings/my_profile":cz(nn)?to+=`ai-cfo/${nn}`:to+=Pn==="task_checklist"?"tasks":ro?"month_end_close_checks/review":encodeURIComponent(nn);const uo=`/${encodeURIComponent(jn)}/${to}`;u(uo,{replace:!0}),k!=null&&(g(jle(kt.tenantId)),g(LKe(k.userId,kt.tenantId,k.zeniSessionId)));const $o=kt;zd.trackCompanySwitch($o.companyId,$o.companyName,$o.userRole)},handleMenuChange:(kt,jn)=>{if(k!=null&&zd.trackSidePanelClicked(kt.type,kt.group),Et(!1),e==null)return;if(n&&(uo=>{if(cle(uo)||cz(uo))return!0;const $o=pqe(uo).split("/")[0];return!a8r.includes($o)})(kt.type)&&o(!1),kt.type==="ai_cfo"){zd.trackAICFOChatScreenStateChanged("viewed","left_menu",ke??null,null);const uo=Gf(d.state?.pathnameStackToGoBack,d.pathname);return L?void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:uo,referrer:"Sidebar"}}):void(p3(A)?u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:uo,referrer:"Sidebar"}}):E?o(!0):u(`/${e}/dashboard`,{state:{pathnameStackToGoBack:uo,referrer:"Sidebar",message:"open_ai_cfo_drawer"}}))}const nn=Gf(d.state?.pathnameStackToGoBack,d.pathname),Pn=kt.type,to=XO(Pn)&&Pn!=="command_center";if(Pn!=="command_center"&&!to||ie[j.tenantId]==null||zd.trackMonthEndCloseClicked(ie[j.tenantId].month,ie[j.tenantId].year,"Sidebar"),to&&ie[j.tenantId]!=null){const uo=ie[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${kt.type}/${uo.month}-${uo.year}`,{state:{pathnameStackToGoBack:nn,message:jn,referrer:"Sidebar"}})}const ro=pqe(kt.type);cz(kt.type)?(ke!=null&&g(uz()),u(`/${e}/ai-cfo/${kt.type}`,{state:{pathnameStackToGoBack:nn.slice(0,-1),message:jn,referrer:"Sidebar"}})):u(`../${e}/${ro}`,{state:{pathnameStackToGoBack:nn,message:jn,referrer:"Sidebar"}})},onDeleteChatSession:kt=>{g(gyt(kt)),ke===kt&&ve(kt)},handleLogOutClick:()=>{Et(!1);const kt=Gf(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:kt,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{vi.saveTreasuryPopupSeen(e??"",!0),so(!1)},monthEndCloseChecksView:te,onPeriodChange:co,onCalendarOpen:c,aiCfoView:Ve,isAiCfo:fo,isOnDashboard:re,isTaskManagerAccessEnabled:Y,updateCurrentChatSessionId:kt=>{g(Ale({sessionId:kt,agentId:"controller"})),u(`../${e}/ai-cfo/${kt}`,{state:{...d.state}})},halloweenAnimationEnabled:ge,thanksGivingAnimationEnabled:be,christmasAnimationEnabled:ye,newYearAnimationEnabled:Ce}),ei=Pt.jsx(Qyt,{position:"fixed",className:b2.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Pt.jsxs(Gyt,{style:{minHeight:xct},children:[Pt.jsx(Yyt,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>Et(!0),className:b2.menuButton,size:"large",children:Pt.jsx(g8r,{})}),Pt.jsx(f8r,{className:b2.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),eo=fne(kt=>kt.breakpoints.up("md")),Yo=fne(kt=>kt.breakpoints.down("md"));return e==null?null:Pt.jsxs(h8r,{className:b2.root,children:[Pt.jsx(qyt,{}),ce===!1?Pt.jsxs(Pt.Fragment,{children:[eo||!re?null:ei,Pt.jsxs("nav",{className:b2.drawer,children:[eo?null:Pt.jsx(pz,{container:window.document.body,variant:"temporary",open:i,onClose:()=>Et(!1),PaperProps:{sx:{width:DI,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:go}),Yo?null:Pt.jsx(pz,{PaperProps:{sx:{width:DI,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...Mn}},variant:"permanent",open:!0,children:go})]})]}):null]})});function gqe(e){return e?.data.unread!=null&&e?.mode!=null}const g8r=Dn(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"})))`
73784
73784
  height: 20px;
73785
73785
  width: 20px;
73786
73786
  color: ${e=>e.theme.colors.primary};
@@ -73877,7 +73877,7 @@ ${ka.beneficiaryAddress} ${ne}`,d(xe),I(!0)})(o),"data-testid":K("title-text-cop
73877
73877
  display: flex;
73878
73878
  min-height: 100%;
73879
73879
  flex-direction: column;
73880
- `,N8r=()=>{const[e,n]=m.useState(()=>vi.getSignedInUser()),o=l3(),[i,a]=m.useState(!1),[s,c]=m.useState(!1),d=gi(g=>TKe(g).fetchState),u=gi(g=>Qu(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=vi.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(Tyt(u.companyId))},[d,u.companyId,o]);const h=m.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Pt.jsxs(m.Fragment,{children:[s&&Pt.jsx(Ide,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Pt.jsx(F8r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},fqe="init-enter",V8r=m.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return m.useLayoutEffect(()=>{const i=n.get(o||fqe);H8r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||fqe,c=U8r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),H8r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),U8r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},C9t=m.createContext(void 0),W8r=({children:e})=>{const{tenantEmailDomain:n}=n8t(),o=n!=null?vi.getSignedInUserTenant(n):void 0,i=gi(u=>Qu(u)),a=MI().tenantId,s=o?.tenantId,c=i?.tenantId,d=m.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Pt.jsx(C9t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},Gwr=()=>{const e=m.useContext(C9t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},Zp=e=>m.lazy(async()=>{const n=e.toString(),o=vi.getForceRefreshedComponents(),i=new Set(o),a=vi.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&vi.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&vi.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),v9t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),S9t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),k9t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),$9t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Yl(...e){const n=Cc==="DEV"||Cc==="QA";if(v9t||S9t||k9t||$9t)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 nS(...e){const n=Cc==="DEV"||Cc==="QA";if(v9t||S9t||k9t||$9t)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 jC=null,pj=!1;const ql=Cc==="PROD"?"https://api.zeni.ai":Cc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function xqe(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:`${ql}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const Q8r={dashboard:function(e){return[...xqe()]},reports:xqe,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:`${ql}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${ql}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${ql}/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:`${ql}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${ql}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${ql}/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:`${ql}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${ql}/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:`${ql}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${ql}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${ql}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${ql}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function yqe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,Q8r[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(Yl(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(Yl(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(Yl(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return Yl(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function bqe(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?(Yl("[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 nS("[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);Yl("[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)=>{Yl(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Yl(` URL: ${u.url}`)});const c=MI(),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}}),Yl("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){nS("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else nS("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function G8r({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=t0(),k=vi.getSignedInUser(),{useFeatureGate:$}=is(),{isFeatureEnabled:j}=$(qi.isReferralFeatureEnabled),A=hn(),E=E7(A?.loggedInUserRole??[]),L=gi(R=>Qu(R)),{isFeatureEnabled:I}=$(qi.isDebitCardFeatureEnabled),_=$Ke(I,L),z=kKe(L),B=_===!1&&z===!1;return m.useEffect(()=>{if(!c||x||!k||!o)return;const R=yqe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L?.companyId??"",isPageIndependent:g}),N=g?"dashboard":n;if(R.length===0)return void Yl(`[Prefetch Provider - ${N}${g?" (base)":""}] No URLs to prefetch`);Yl(`[Prefetch Provider - ${N}${g?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch`);const O=setTimeout(()=>{bqe(R,i,a).catch(F=>{nS(`[Prefetch Provider - ${N}${g?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,k,o,n,u,p,j,E,B,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;Yl(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const R=function(N){const{timeout:O=2e3,onIdle:F}=N;Yl(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const P=()=>{pj&&(Yl("[Idle Detection - Service Worker] 🏃 User became active again"),pj=!1),jC&&clearTimeout(jC),jC=setTimeout(()=>{pj||(Yl("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),pj=!0,F())},O)},V=["mousedown","mousemove","keypress","scroll","touchstart","click"];return V.forEach(H=>{document.addEventListener(H,P,!0)}),P(),()=>{Yl("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),jC&&(clearTimeout(jC),jC=null),V.forEach(H=>{document.removeEventListener(H,P,!0)}),pj=!1}}({timeout:h,onIdle:()=>{if(b)return;Yl("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=yqe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),O=g?"dashboard":n;N.length!==0?(Yl(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),bqe(N,i,a).catch(F=>{nS(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):Yl(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=R,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,k,o,b,n,u,p,j,E,B,L.companyId,g,i,a]),m.useEffect(()=>{w(!1)},[o]),m.useEffect(()=>{(function(){const R=performance.getEntriesByType("navigation");if(R.length>0)return R[0].type==="reload";const N=performance.navigation;return!(!N||typeof N.type!="number")&&N.type===1})()&&f&&(Yl("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const R=await navigator.serviceWorker.ready,N=navigator.serviceWorker.controller||R.active;if(!N)return;Yl("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),N.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(R){nS("[Prefetch Provider] Failed to notify service worker of refresh:",R)}}())},[]),Pt.jsx(Pt.Fragment,{children:e})}function Y8r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=t0(),u=gi(y=>Qu(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}=is(),{isFeatureEnabled:x}=f(qi.isServiceWorkerPrefetchingEnabled);return g&&p?Pt.jsx(G8r,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Pt.jsx(Pt.Fragment,{children:e})}function q8r(e,n){const o=lo.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const K8r=Zp(()=>ld(()=>import("./DefaultTenantHome-EQCVNZvu.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),wqe=Zp(()=>ld(()=>Promise.resolve().then(()=>x8r),void 0)),Cqe=Zp(()=>ld(()=>import("./ScreenRoutes-BTS40_ia.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),Z8r=Zp(()=>ld(()=>import("./ConnectionAuthScreen-C5CI5_R0.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),J8r=Zp(()=>ld(()=>import("./SignInScreen-DMbX8HuT.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),X8r=Zp(()=>ld(()=>import("./MagicLinkSignInScreen-8i0SXp70.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),vqe=Zp(()=>ld(()=>import("./NotFoundScreen-DB_m9Zh0.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),exr=Zp(()=>ld(()=>import("./MagicLinkRoutes-BS3qbL4y.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),txr=Zp(()=>ld(()=>import("./WiseConfirmationScreen-DgM02BC4.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),nxr=Zp(()=>ld(()=>import("./HubSpotOAuthCallbackScreen-_NVW7LI5.js"),__vite__mapDeps([24,1,2,0,5,7,8]))),oxr=Zp(()=>ld(()=>import("./CustomerOnboardingAuthScreen-D5J-D_gR.js"),__vite__mapDeps([25,1,2,0,12,8,13,14,15,16,5,17,7]))),ixr=Zp(()=>ld(()=>import("./SignOutScreen-DicPj8v2.js"),__vite__mapDeps([26,1,2,0,5,7,8]))),rxr=Zp(()=>ld(()=>import("./OAuthConsentScreen-CKM2d6ge.js"),__vite__mapDeps([27,1,2,0,5,7,8]))),axr=()=>{const e=t0(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=q8r("/",n);return Pt.jsx(Rqe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function Sqe(){const{isOpen:e}=gb(),n=y5n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=uW(),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 lxr=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=vi.isSignedIn(),i=gi(B=>Qu(B)),a=vi.getSignedInUser(),s=o&&j4(a),c=gi(B=>Dyt(B)).tenantsBaseInOrder.map(B=>({companyId:B.companyId,tenantId:B.tenantId,companyName:B.companyName})),d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i.tenantId??""},u=l3(),p=gc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=dpe(),g=f9t(),[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}=is(),{isFeatureEnabled:v}=C(qi.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=C(qi.isBillPayCommentingEnabled),{isFeatureEnabled:$}=C(qi.isReimbursementCommentingEnabled),{isFeatureEnabled:j}=C(qi.isExpenseAutomationEnabled),{isFeatureEnabled:A}=C(qi.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=C(qi.isTreasuryCommentingEnabled),{isFeatureEnabled:L}=C(qi.isCheckingCommentingEnabled),{isFeatureEnabled:I}=C(qi.isTransactionCommentingEnabled),{isFeatureEnabled:_}=C(qi.isCardsCommentingEnabled),z=k||$||s&&j||!s&&A||E||L||I||_;return m.useEffect(()=>{!h&&f&&x(!1)},[h,f]),m.useEffect(()=>{h||u(Pyt())},[u,h]),Pt.jsx(x5n,{children:i.tenantId!=null?Pt.jsx(OUi,{roomId:`dashboard_${i.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${HS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${HS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:s,autoConnect:s||I||_,loggedInUser:a,withRoomProvider:!0,withThreadsProvider:z,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:i.companyId},children:Pt.jsxs(ale.Provider,{value:w,children:[Pt.jsx(Sqe,{}),Pt.jsxs(Aqe,{children:[Pt.jsx(wqe,{tenantEmailDomain:e}),Pt.jsx($qe,{children:Pt.jsx(kqe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})}):Pt.jsx(RUi,{children:Pt.jsxs(ale.Provider,{value:w,children:[Pt.jsx(Sqe,{}),Pt.jsxs(Aqe,{children:[Pt.jsx(wqe,{tenantEmailDomain:e}),Pt.jsx($qe,{children:Pt.jsx(kqe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})})})},kqe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=gi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=is(),{configValue:c}=s(Bm.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}=pW(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=uW();return m.useEffect(()=>{h(hpe.APP_INITIALIZATION)},[h]),Pt.jsx(m.Suspense,{fallback:null,children:Pt.jsx(Y8r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Pt.jsxs(o8t,{children:[Pt.jsx(J1,{path:"/magic_links/*",element:Pt.jsx(exr,{})}),Pt.jsx(J1,{path:"/wise/callback/link-account/*",element:Pt.jsx(txr,{})}),Pt.jsx(J1,{path:"/page-not-found",element:Pt.jsx(vqe,{})}),Pt.jsx(J1,{path:"/",element:Pt.jsx(K8r,{})}),Pt.jsx(J1,{path:"/aicfo",element:Pt.jsx(axr,{})}),Pt.jsx(J1,{path:"/onboarding/auth",element:Pt.jsx(oxr,{})}),Pt.jsx(J1,{path:"/:tenantEmailDomain/*",element:Pt.jsxs(dxr,{children:[Pt.jsx(uxr,{children:Pt.jsxs(W8r,{children:[a!=null?Pt.jsx(N8r,{}):null,n?Pt.jsx(Cqe,{setTenantEmailDomain:e}):Pt.jsx(dne,{children:Pt.jsx(Cqe,{setTenantEmailDomain:e})})]})}),o?Pt.jsx(pxr,{isOpen:g,children:Pt.jsx(T8r,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Pt.jsx(J1,{path:"/signin/auth",element:Pt.jsx(dne,{children:Pt.jsx(J8r,{setTenantEmailDomain:e})})}),Pt.jsx(J1,{path:"/signin/magic-link",element:Pt.jsx(dne,{children:Pt.jsx(X8r,{})})}),Pt.jsx(J1,{path:"/signout",element:Pt.jsx(ixr,{})}),Pt.jsx(J1,{path:"/connection/auth",element:Pt.jsx(Z8r,{})}),Pt.jsx(J1,{path:"/oauth/hubspot/callback",element:Pt.jsx(nxr,{})}),Pt.jsx(J1,{path:"/oauth/authorize",element:Pt.jsx(rxr,{})}),Pt.jsx(J1,{path:"*",element:Pt.jsx(vqe,{})})]})})})},$qe=({children:e})=>{const{isOpen:n,width:o}=gb();return Pt.jsx(cxr,{commentsDrawerWidth:n?o:0,children:e})},sxr=Dn("div")`
73880
+ `,N8r=()=>{const[e,n]=m.useState(()=>vi.getSignedInUser()),o=l3(),[i,a]=m.useState(!1),[s,c]=m.useState(!1),d=gi(g=>TKe(g).fetchState),u=gi(g=>Qu(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=vi.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(Tyt(u.companyId))},[d,u.companyId,o]);const h=m.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Pt.jsxs(m.Fragment,{children:[s&&Pt.jsx(Ide,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Pt.jsx(F8r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},fqe="init-enter",V8r=m.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return m.useLayoutEffect(()=>{const i=n.get(o||fqe);H8r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||fqe,c=U8r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),H8r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),U8r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},C9t=m.createContext(void 0),W8r=({children:e})=>{const{tenantEmailDomain:n}=n8t(),o=n!=null?vi.getSignedInUserTenant(n):void 0,i=gi(u=>Qu(u)),a=MI().tenantId,s=o?.tenantId,c=i?.tenantId,d=m.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Pt.jsx(C9t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},Gwr=()=>{const e=m.useContext(C9t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},Zp=e=>m.lazy(async()=>{const n=e.toString(),o=vi.getForceRefreshedComponents(),i=new Set(o),a=vi.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&vi.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&vi.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),v9t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),S9t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),k9t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),$9t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Yl(...e){const n=Cc==="DEV"||Cc==="QA";if(v9t||S9t||k9t||$9t)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 nS(...e){const n=Cc==="DEV"||Cc==="QA";if(v9t||S9t||k9t||$9t)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 jC=null,pj=!1;const ql=Cc==="PROD"?"https://api.zeni.ai":Cc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function xqe(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:`${ql}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${ql}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const Q8r={dashboard:function(e){return[...xqe()]},reports:xqe,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:`${ql}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${ql}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${ql}/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:`${ql}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${ql}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${ql}/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:`${ql}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${ql}/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:`${ql}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${ql}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${ql}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${ql}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function yqe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,Q8r[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(Yl(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(Yl(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(Yl(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return Yl(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function bqe(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?(Yl("[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 nS("[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);Yl("[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)=>{Yl(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Yl(` URL: ${u.url}`)});const c=MI(),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}}),Yl("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){nS("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else nS("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function G8r({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=t0(),k=vi.getSignedInUser(),{useFeatureGate:$}=is(),{isFeatureEnabled:j}=$(qi.isReferralFeatureEnabled),A=hn(),E=E7(A?.loggedInUserRole??[]),L=gi(R=>Qu(R)),{isFeatureEnabled:I}=$(qi.isDebitCardFeatureEnabled),_=$Ke(I,L),z=kKe(L),B=_===!1&&z===!1;return m.useEffect(()=>{if(!c||x||!k||!o)return;const R=yqe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L?.companyId??"",isPageIndependent:g}),N=g?"dashboard":n;if(R.length===0)return void Yl(`[Prefetch Provider - ${N}${g?" (base)":""}] No URLs to prefetch`);Yl(`[Prefetch Provider - ${N}${g?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch`);const O=setTimeout(()=>{bqe(R,i,a).catch(F=>{nS(`[Prefetch Provider - ${N}${g?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,k,o,n,u,p,j,E,B,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;Yl(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const R=function(N){const{timeout:O=2e3,onIdle:F}=N;Yl(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const P=()=>{pj&&(Yl("[Idle Detection - Service Worker] 🏃 User became active again"),pj=!1),jC&&clearTimeout(jC),jC=setTimeout(()=>{pj||(Yl("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),pj=!0,F())},O)},V=["mousedown","mousemove","keypress","scroll","touchstart","click"];return V.forEach(H=>{document.addEventListener(H,P,!0)}),P(),()=>{Yl("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),jC&&(clearTimeout(jC),jC=null),V.forEach(H=>{document.removeEventListener(H,P,!0)}),pj=!1}}({timeout:h,onIdle:()=>{if(b)return;Yl("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=yqe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),O=g?"dashboard":n;N.length!==0?(Yl(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),bqe(N,i,a).catch(F=>{nS(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):Yl(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=R,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,k,o,b,n,u,p,j,E,B,L.companyId,g,i,a]),m.useEffect(()=>{w(!1)},[o]),m.useEffect(()=>{(function(){const R=performance.getEntriesByType("navigation");if(R.length>0)return R[0].type==="reload";const N=performance.navigation;return!(!N||typeof N.type!="number")&&N.type===1})()&&f&&(Yl("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const R=await navigator.serviceWorker.ready,N=navigator.serviceWorker.controller||R.active;if(!N)return;Yl("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),N.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(R){nS("[Prefetch Provider] Failed to notify service worker of refresh:",R)}}())},[]),Pt.jsx(Pt.Fragment,{children:e})}function Y8r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=t0(),u=gi(y=>Qu(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}=is(),{isFeatureEnabled:x}=f(qi.isServiceWorkerPrefetchingEnabled);return g&&p?Pt.jsx(G8r,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Pt.jsx(Pt.Fragment,{children:e})}function q8r(e,n){const o=lo.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const K8r=Zp(()=>ld(()=>import("./DefaultTenantHome-Bx6WQ-Mz.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),wqe=Zp(()=>ld(()=>Promise.resolve().then(()=>x8r),void 0)),Cqe=Zp(()=>ld(()=>import("./ScreenRoutes-Bm0blHDU.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),Z8r=Zp(()=>ld(()=>import("./ConnectionAuthScreen-gAh9UaQG.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),J8r=Zp(()=>ld(()=>import("./SignInScreen-D_ZIzo4l.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),X8r=Zp(()=>ld(()=>import("./MagicLinkSignInScreen-aL0UHXqm.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),vqe=Zp(()=>ld(()=>import("./NotFoundScreen-D1-E1kBF.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),exr=Zp(()=>ld(()=>import("./MagicLinkRoutes-CS6bQmQL.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),txr=Zp(()=>ld(()=>import("./WiseConfirmationScreen-CcQUprGd.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),nxr=Zp(()=>ld(()=>import("./HubSpotOAuthCallbackScreen-O6i8xkbo.js"),__vite__mapDeps([24,1,2,0,5,7,8]))),oxr=Zp(()=>ld(()=>import("./CustomerOnboardingAuthScreen-Btu05i4h.js"),__vite__mapDeps([25,1,2,0,12,8,13,14,15,16,5,17,7]))),ixr=Zp(()=>ld(()=>import("./SignOutScreen-CyHjoyPO.js"),__vite__mapDeps([26,1,2,0,5,7,8]))),rxr=Zp(()=>ld(()=>import("./OAuthConsentScreen-BX4BwxWb.js"),__vite__mapDeps([27,1,2,0,5,7,8]))),axr=()=>{const e=t0(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=q8r("/",n);return Pt.jsx(Rqe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function Sqe(){const{isOpen:e}=gb(),n=y5n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=uW(),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 lxr=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=vi.isSignedIn(),i=gi(B=>Qu(B)),a=vi.getSignedInUser(),s=o&&j4(a),c=gi(B=>Dyt(B)).tenantsBaseInOrder.map(B=>({companyId:B.companyId,tenantId:B.tenantId,companyName:B.companyName})),d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i.tenantId??""},u=l3(),p=gc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=dpe(),g=f9t(),[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}=is(),{isFeatureEnabled:v}=C(qi.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=C(qi.isBillPayCommentingEnabled),{isFeatureEnabled:$}=C(qi.isReimbursementCommentingEnabled),{isFeatureEnabled:j}=C(qi.isExpenseAutomationEnabled),{isFeatureEnabled:A}=C(qi.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=C(qi.isTreasuryCommentingEnabled),{isFeatureEnabled:L}=C(qi.isCheckingCommentingEnabled),{isFeatureEnabled:I}=C(qi.isTransactionCommentingEnabled),{isFeatureEnabled:_}=C(qi.isCardsCommentingEnabled),z=k||$||s&&j||!s&&A||E||L||I||_;return m.useEffect(()=>{!h&&f&&x(!1)},[h,f]),m.useEffect(()=>{h||u(Pyt())},[u,h]),Pt.jsx(x5n,{children:i.tenantId!=null?Pt.jsx(OUi,{roomId:`dashboard_${i.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${HS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${HS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:s,autoConnect:s||I||_,loggedInUser:a,withRoomProvider:!0,withThreadsProvider:z,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:i.companyId},children:Pt.jsxs(ale.Provider,{value:w,children:[Pt.jsx(Sqe,{}),Pt.jsxs(Aqe,{children:[Pt.jsx(wqe,{tenantEmailDomain:e}),Pt.jsx($qe,{children:Pt.jsx(kqe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})}):Pt.jsx(RUi,{children:Pt.jsxs(ale.Provider,{value:w,children:[Pt.jsx(Sqe,{}),Pt.jsxs(Aqe,{children:[Pt.jsx(wqe,{tenantEmailDomain:e}),Pt.jsx($qe,{children:Pt.jsx(kqe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})})})},kqe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=gi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=is(),{configValue:c}=s(Bm.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}=pW(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=uW();return m.useEffect(()=>{h(hpe.APP_INITIALIZATION)},[h]),Pt.jsx(m.Suspense,{fallback:null,children:Pt.jsx(Y8r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Pt.jsxs(o8t,{children:[Pt.jsx(J1,{path:"/magic_links/*",element:Pt.jsx(exr,{})}),Pt.jsx(J1,{path:"/wise/callback/link-account/*",element:Pt.jsx(txr,{})}),Pt.jsx(J1,{path:"/page-not-found",element:Pt.jsx(vqe,{})}),Pt.jsx(J1,{path:"/",element:Pt.jsx(K8r,{})}),Pt.jsx(J1,{path:"/aicfo",element:Pt.jsx(axr,{})}),Pt.jsx(J1,{path:"/onboarding/auth",element:Pt.jsx(oxr,{})}),Pt.jsx(J1,{path:"/:tenantEmailDomain/*",element:Pt.jsxs(dxr,{children:[Pt.jsx(uxr,{children:Pt.jsxs(W8r,{children:[a!=null?Pt.jsx(N8r,{}):null,n?Pt.jsx(Cqe,{setTenantEmailDomain:e}):Pt.jsx(dne,{children:Pt.jsx(Cqe,{setTenantEmailDomain:e})})]})}),o?Pt.jsx(pxr,{isOpen:g,children:Pt.jsx(T8r,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Pt.jsx(J1,{path:"/signin/auth",element:Pt.jsx(dne,{children:Pt.jsx(J8r,{setTenantEmailDomain:e})})}),Pt.jsx(J1,{path:"/signin/magic-link",element:Pt.jsx(dne,{children:Pt.jsx(X8r,{})})}),Pt.jsx(J1,{path:"/signout",element:Pt.jsx(ixr,{})}),Pt.jsx(J1,{path:"/connection/auth",element:Pt.jsx(Z8r,{})}),Pt.jsx(J1,{path:"/oauth/hubspot/callback",element:Pt.jsx(nxr,{})}),Pt.jsx(J1,{path:"/oauth/authorize",element:Pt.jsx(rxr,{})}),Pt.jsx(J1,{path:"*",element:Pt.jsx(vqe,{})})]})})})},$qe=({children:e})=>{const{isOpen:n,width:o}=gb();return Pt.jsx(cxr,{commentsDrawerWidth:n?o:0,children:e})},sxr=Dn("div")`
73881
73881
  display:flex;
73882
73882
  `,Aqe=Dn("div")`
73883
73883
  display: flex;
@@ -73999,4 +73999,4 @@ ${ka.beneficiaryAddress} ${ne}`,d(xe),I(!0)})(o),"data-testid":K("title-text-cop
73999
73999
  }
74000
74000
  `,wxr=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?Pt.jsxs(gxr,{style:n,children:[Pt.jsxs(fxr,{children:[Pt.jsx(KM,{children:Pt.jsx(mh,{width:96,height:20})}),Pt.jsxs(KM,{children:[Pt.jsx(mh,{width:55,height:12}),Pt.jsx(mh,{width:78,height:16}),Pt.jsx(mh,{width:46,height:16})]}),Pt.jsxs(KM,{children:[Pt.jsx(mh,{width:55,height:12}),Pt.jsx(mh,{width:110,height:16}),Pt.jsx(mh,{width:84,height:16})]}),Pt.jsxs(KM,{children:[Pt.jsx(mh,{width:55,height:12}),Pt.jsx(mh,{width:84,height:16}),Pt.jsx(mh,{width:64,height:16})]})]}),Pt.jsxs(xxr,{children:[Pt.jsxs(yxr,{children:[Pt.jsx(mh,{width:106,height:27}),Pt.jsx(mh,{width:111,height:32})]}),Pt.jsx(bxr,{children:Pt.jsx(mxr,{width:96,height:96})})]})]}):null;function Cxr({minDisplayTime:e=0}){const{isLoading:n}=pW(),[o,i]=m.useState(!1),a=m.useRef(),s=m.useRef(null);return m.useLayoutEffect(()=>{if(a.current&&clearTimeout(a.current),vi.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:Pt.jsx(wxr,{fetchState:"In-Progress"})}const jqe="missing-receipts-batch-completed",Z8=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 KC=null;function vxr(){return KC===null&&(KC=function(){console.warn(`initializing epic state with url ${JSON.stringify(HS)}`);const e=vi.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=vi.getSignedInUserTenant(a);if(d?.tenantId!=null)return d.tenantId}return vi.getActiveTenantForUser()?.tenantId}():void 0,o=zyt(HS,e?.userId,e?.zeniSessionId,n,tS(),Axr);gne();const i=MI();return i.userId!=null&&zd.identify(i.userId,{tenant_id:i.tenantId}),o}(),gne().then(()=>{KC!=null&&(Z8.reset(),$xr(KC))}).catch(e=>{console.error("Failed to load feature epics:",e),O9t(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
74001
74001
 
74002
- Please refresh the page to try again.`)})),KC}function qwr(){return KC}const ZM=new Myt,Eqe=()=>{const e=l3(),n=vi.getSignedInUser(),o=gi(w=>Qu(w)),[i,a]=m.useState(null),s=i6i(n?.userId),c=m.useCallback(()=>{a(null),ZM.stop(),e(Ryt()),e(Nyt(!1)),vi.clearAll(),window.location.href="/signin/auth"},[e,a]);m.useEffect(()=>{if(n?.zeniSessionId!=null)return ZM.start({idleTimeoutMinutes:s.idleTimeoutMinutes,warningDurationSeconds:s.warningDurationSeconds,heartbeatIntervalMinutes:s.heartbeatIntervalMinutes,isAutoLogoutEnabled:s.isAutoLogoutEnabled},{onHeartbeat:()=>e(Vyt()),onWarningStart:w=>{zd.trackSessionTimeoutPopupShown(w),a(w)},onWarningTick:a,onAutoLogout:()=>{zd.trackSessionTimeoutAutoLogout(),c()},onSessionExtended:()=>a(null)}),()=>ZM.stop()},[n?.zeniSessionId,s.isAutoLogoutEnabled,s.idleTimeoutMinutes,s.warningDurationSeconds,s.heartbeatIntervalMinutes,e,c,a]);const d=gi(w=>Hyt(w,o.companyId)),u=gc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];m.useEffect(()=>()=>{e(Xpe())},[]);const h=gi(w=>Uyt(w));(()=>{const w=ype(),C=l3(),{useFeatureGate:v}=is(),{isFeatureEnabled:k}=v(qi.isMissingReceiptsBulkUploadEnabled);m.useEffect(()=>{if(k!==!0||w==null)return;const $=vi.getSignedInUser()?.userId;if($==null)return;const j=TE(w,$),A=E=>{C(Byt({batchId:E.batch_id,progress:E.progress,status:E.status.toLowerCase()}))};return j.bind(jqe,A),()=>{j.unbind(jqe,A)}},[w,C,k])})();const g=o?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo(()=>IKe(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(Wyt(C))}},y=m.useMemo(()=>vi.getSignedInUser(),[]),b=m.useMemo(()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:o.tenantId??""}),[y,o.tenantId]);return Pt.jsxs(i1n,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:o,connectionName:g,controllersList:d},children:[Pt.jsx(Kdn,{toolkit:{analytics:zd,sentry:F9t,authParams:b},children:Pt.jsxs(gdn,{endPoint:{url:upe},children:[Pt.jsx(Fei,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(Xpe())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),Pt.jsx(hxr,{...x})]})}),i!=null&&n!=null?Pt.jsx(C9r,{secondsRemaining:i,onContinueSession:()=>{zd.trackSessionTimeoutClicked("continue",i),ZM.continueSession()},onSignOut:()=>{zd.trackSessionTimeoutClicked("sign_out",i),c()}}):null]})},Sxr=()=>{const e=vi.isSignedIn(),n=gi(s=>Qu(s)).companyId,o=gi(s=>_yt(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=m.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=m.useMemo(()=>({currentFeatureEnv:lqe,featureClientSecret:Aa.featureClientSecret,providerEndPoint:TI.statsigBaseUrl}),[lqe,Aa.featureClientSecret,TI.statsigBaseUrl]);return n?Pt.jsx(fhn,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Pt.jsx(Eqe,{})}):Pt.jsx(Eqe,{})},kxr=z9t(function(){const e=m.useMemo(()=>vxr(),[]),[n,o]=m.useState(!1),[i,a]=m.useState(!1);m.useEffect(()=>{gne().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]),Pt.jsx(n8r,{children:Pt.jsx(i8t,{store:e,children:Pt.jsx(o8r,{value:n,children:Pt.jsxs(R9r,{children:[Pt.jsx(Cxr,{}),Pt.jsx(xRt,{children:Pt.jsx(t8r,{children:Pt.jsxs(Ydn,{children:[i?Pt.jsx(v4n,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Pt.jsx(Sxr,{})]})})})]})})})})});function $xr(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:vi.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=Qu(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=vi.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=vi.getSignedInUserTenant(a)?.tenantId;c!=null&&(SKe(i.userId,i.zeniSessionId,c),e.dispatch(jle(c)),a!=null&&vi.saveActiveTenantDomainForUser(a),Z8.shouldFetchActiveTenant(c)&&(Z8.markActiveTenantFetchStarted(c),e.dispatch(LKe(i.userId,c,i.zeniSessionId))),Z8.shouldFetchExcludedResources(c)&&(Z8.markExcludedResourcesFetchStarted(c),e.dispatch(Oyt(i.userId,c))),Z8.shouldFetchConnections(c)&&(Z8.markConnectionsFetchStarted(c),e.dispatch(Fyt(i.userId,c))))}function Axr(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const jxr=!!(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}$/)),Iqe=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function Lqe(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 Tqe="zeni-chunk-reload-at",Exr=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function Dqe(e){try{const n=Number(sessionStorage.getItem(Tqe))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(Tqe,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let une=!1,Pqe=null;const Bqe="//js.hs-scripts.com/5991084.js",Mqe="hs-script-loader",Ixr=vi.getSignedInUser(),Lxr=Ixr?.zeniSessionId;var P8;window.addEventListener("vite:preloadError",e=>{const n=e;Dqe(n.payload)&&n.preventDefault()}),window.addEventListener("unhandledrejection",e=>{(function(n){const o=String(n?.message??n??"");return Exr.some(i=>o.includes(i))})(e.reason)&&Dqe(e.reason)}),async function(){try{const o=await async function(){const a={environment:Cc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${upe}/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-"+Cc,LE.AES.decrypt(e,n).toString(LE.enc.Utf8));_9r(JSON.parse(i)),hbt.createRoot(document.getElementById("root")).render(Pt.jsx(T.StrictMode,{children:Pt.jsx(r8t,{children:Pt.jsx(kxr,{})})})),function(){const a=()=>{const s=Aa.sentryDsn?.trim();if(!s)return;const c=Aa.sentryProfileSamplingRate>0;R9t({dsn:s,tracesSampleRate:Aa.sentryTraceSamplingRate,profilesSampleRate:c?Aa.sentryProfileSamplingRate:0,integrations:[N9t(),...c?[V9t()]:[],H9t({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)}),U9t("session-id",Lxr)};"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):Pqe!==null||(Pqe=new Promise(e=>{if(une)return void e(!0);const n=()=>{une?e(!0):(une=!0,new Promise((i,a)=>{if(document.getElementById(Mqe))return void i();const s=document.createElement("script");s.id=Mqe,s.src=Bqe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${Bqe}`)),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;jxr?(e=Iqe,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())}):Lqe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})):Lqe(Iqe)})}}(),(P8=console.log)&&P8 instanceof Function&&ld(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(P8),n(P8),o(P8),i(P8),a(P8)});export{$wr as $,qi as A,_8r as B,is as C,ee as D,IYo as E,D as F,cyr as G,Ebr as H,jbr as I,M as J,pe as K,hpe as L,Qxr as M,kbr as N,T8o as O,Wwr as P,Hwr as Q,vyr as R,nut as S,hn as T,J9r as U,uW as V,Gwr as W,fyr as X,p3 as Y,upe as Z,dle as _,f9t as a,dyr as a$,Cct as a0,X9r as a1,bwr as a2,bpe as a3,gqe as a4,dpe as a5,p8r as a6,r8r as a7,s8r as a8,u8r as a9,syr as aA,Pbr as aB,obr as aC,abr as aD,iue as aE,_br as aF,Mbr as aG,rbr as aH,ibr as aI,lyr as aJ,Bm as aK,xbr as aL,c8r as aM,u8o as aN,Cyr as aO,LOn as aP,qto as aQ,Tbr as aR,Lbr as aS,Dbr as aT,hyr as aU,vn as aV,Zr as aW,Qwr as aX,A8r as aY,gyr as aZ,xyr as a_,tto as aa,mqe as ab,l8r as ac,cle as ad,cz as ae,XO as af,pqe as ag,Vo as ah,ebr as ai,Xyr as aj,Rbo as ak,wyr as al,wbr as am,It as an,ybr as ao,DI as ap,HS as aq,E3 as ar,bbr as as,Jbr as at,kct as au,qbr as av,Zbr as aw,Kbr as ax,Xbr as ay,ewr as az,q8r as b,W2r as b$,pUn as b0,nst as b1,Syr as b2,Swr as b3,Cwr as b4,Wyr as b5,Zxr as b6,nyr as b7,Bce as b8,Jxr as b9,Kyr as bA,vbr as bB,Myr as bC,_yr as bD,Cbr as bE,Sbr as bF,Fyr as bG,Ryr as bH,Nyr as bI,qyr as bJ,ayr as bK,Zyr as bL,Jyr as bM,jwr as bN,Hyr as bO,Nwr as bP,Pwr as bQ,cbr as bR,pbr as bS,dbr as bT,Yxr as bU,lbr as bV,sbr as bW,gbr as bX,Ide as bY,hbr as bZ,fbr as b_,Awr as ba,nbr as bb,eyr as bc,tyr as bd,Xxr as be,tS as bf,Bbr as bg,Lyr as bh,Dyr as bi,Tyr as bj,jyr as bk,Ayr as bl,Pyr as bm,Ibr as bn,Eyr as bo,Iyr as bp,Byr as bq,da as br,nwr as bs,Uyr as bt,Vyr as bu,zwr as bv,mbr as bw,Dwr as bx,Gyr as by,Yyr as bz,zd as c,Xgr as c0,Ote as c1,Owr as c2,Fwr as c3,Rwr as c4,_wr as c5,myr as c6,gwr as c7,rwr as c8,swr as c9,Lwr as cA,Qyr as cB,y5n as cC,gb as cD,Vwr as cE,vwr as cF,ywr as cG,zyr as cH,xwr as cI,j8r as cJ,e8r as cK,y8r as cL,$8r as cM,E8r as cN,wpe as cO,Bpn as cP,Ywr as cQ,qxr as cR,x9t as cS,oyr as ca,ubr as cb,_i as cc,eLi as cd,lwr as ce,owr as cf,dwr as cg,iwr as ch,cwr as ci,mwr as cj,iyr as ck,ryr as cl,fwr as cm,S as cn,pwr as co,uwr as cp,awr as cq,hwr as cr,twr as cs,wwr as ct,kwr as cu,Iwr as cv,Ewr as cw,Twr as cx,Kxr as cy,tbr as cz,$xr as d,lo as e,yyr as f,qwr as g,Aa as h,byr as i,wn as j,$br as k,Zp as l,Le as m,Zwn as n,r as o,Uwr as p,IJn as q,Wxr as r,Abr as s,Z8 as t,pW as u,Gf as v,ade as w,i8r as x,mxr as y,vi as z};
74002
+ Please refresh the page to try again.`)})),KC}function qwr(){return KC}const ZM=new Myt,Eqe=()=>{const e=l3(),n=vi.getSignedInUser(),o=gi(w=>Qu(w)),[i,a]=m.useState(null),s=i6i(n?.userId),c=m.useCallback(()=>{a(null),ZM.stop(),e(Ryt()),e(Nyt(!1)),vi.clearAll(),window.location.href="/signin/auth"},[e,a]);m.useEffect(()=>{if(n?.zeniSessionId!=null)return ZM.start({idleTimeoutMinutes:s.idleTimeoutMinutes,warningDurationSeconds:s.warningDurationSeconds,heartbeatIntervalMinutes:s.heartbeatIntervalMinutes,isAutoLogoutEnabled:s.isAutoLogoutEnabled},{onHeartbeat:()=>e(Vyt()),onWarningStart:w=>{zd.trackSessionTimeoutPopupShown(w),a(w)},onWarningTick:a,onAutoLogout:()=>{zd.trackSessionTimeoutAutoLogout(),c()},onSessionExtended:()=>a(null)}),()=>ZM.stop()},[n?.zeniSessionId,s.isAutoLogoutEnabled,s.idleTimeoutMinutes,s.warningDurationSeconds,s.heartbeatIntervalMinutes,e,c,a]);const d=gi(w=>Hyt(w,o.companyId)),u=gc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];m.useEffect(()=>()=>{e(Xpe())},[]);const h=gi(w=>Uyt(w));(()=>{const w=ype(),C=l3(),{useFeatureGate:v}=is(),{isFeatureEnabled:k}=v(qi.isMissingReceiptsBulkUploadEnabled);m.useEffect(()=>{if(k!==!0||w==null)return;const $=vi.getSignedInUser()?.userId;if($==null)return;const j=TE(w,$),A=E=>{C(Byt({batchId:E.batch_id,progress:E.progress,status:E.status.toLowerCase()}))};return j.bind(jqe,A),()=>{j.unbind(jqe,A)}},[w,C,k])})();const g=o?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo(()=>IKe(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(Wyt(C))}},y=m.useMemo(()=>vi.getSignedInUser(),[]),b=m.useMemo(()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:o.tenantId??""}),[y,o.tenantId]);return Pt.jsxs(i1n,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:o,connectionName:g,controllersList:d},children:[Pt.jsx(Kdn,{toolkit:{analytics:zd,sentry:F9t,authParams:b},children:Pt.jsxs(gdn,{endPoint:{url:upe},children:[Pt.jsx(Fei,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(Xpe())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),Pt.jsx(hxr,{...x})]})}),i!=null&&n!=null?Pt.jsx(C9r,{secondsRemaining:i,onContinueSession:()=>{zd.trackSessionTimeoutClicked("continue",i),ZM.continueSession()},onSignOut:()=>{zd.trackSessionTimeoutClicked("sign_out",i),c()}}):null]})},Sxr=()=>{const e=vi.isSignedIn(),n=gi(s=>Qu(s)).companyId,o=gi(s=>_yt(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=m.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=m.useMemo(()=>({currentFeatureEnv:lqe,featureClientSecret:Aa.featureClientSecret,providerEndPoint:TI.statsigBaseUrl}),[lqe,Aa.featureClientSecret,TI.statsigBaseUrl]);return n?Pt.jsx(fhn,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Pt.jsx(Eqe,{})}):Pt.jsx(Eqe,{})},kxr=z9t(function(){const e=m.useMemo(()=>vxr(),[]),[n,o]=m.useState(!1),[i,a]=m.useState(!1);m.useEffect(()=>{gne().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]),Pt.jsx(n8r,{children:Pt.jsx(i8t,{store:e,children:Pt.jsx(o8r,{value:n,children:Pt.jsxs(R9r,{children:[Pt.jsx(Cxr,{}),Pt.jsx(xRt,{children:Pt.jsx(t8r,{children:Pt.jsxs(Ydn,{children:[i?Pt.jsx(v4n,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Pt.jsx(Sxr,{})]})})})]})})})})});function $xr(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:vi.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=Qu(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=vi.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=vi.getSignedInUserTenant(a)?.tenantId;c!=null&&(SKe(i.userId,i.zeniSessionId,c),e.dispatch(jle(c)),a!=null&&vi.saveActiveTenantDomainForUser(a),Z8.shouldFetchActiveTenant(c)&&(Z8.markActiveTenantFetchStarted(c),e.dispatch(LKe(i.userId,c,i.zeniSessionId))),Z8.shouldFetchExcludedResources(c)&&(Z8.markExcludedResourcesFetchStarted(c),e.dispatch(Oyt(i.userId,c))),Z8.shouldFetchConnections(c)&&(Z8.markConnectionsFetchStarted(c),e.dispatch(Fyt(i.userId,c))))}function Axr(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const jxr=!!(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}$/)),Iqe=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function Lqe(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 Tqe="zeni-chunk-reload-at",Exr=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function Dqe(e){try{const n=Number(sessionStorage.getItem(Tqe))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(Tqe,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let une=!1,Pqe=null;const Bqe="//js.hs-scripts.com/5991084.js",Mqe="hs-script-loader",Ixr=vi.getSignedInUser(),Lxr=Ixr?.zeniSessionId;var P8;window.addEventListener("vite:preloadError",e=>{const n=e;Dqe(n.payload)&&n.preventDefault()}),window.addEventListener("unhandledrejection",e=>{(function(n){const o=String(n?.message??n??"");return Exr.some(i=>o.includes(i))})(e.reason)&&Dqe(e.reason)}),async function(){try{const o=await async function(){const a={environment:Cc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${upe}/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-"+Cc,LE.AES.decrypt(e,n).toString(LE.enc.Utf8));_9r(JSON.parse(i)),hbt.createRoot(document.getElementById("root")).render(Pt.jsx(T.StrictMode,{children:Pt.jsx(r8t,{children:Pt.jsx(kxr,{})})})),function(){const a=()=>{const s=Aa.sentryDsn?.trim();if(!s)return;const c=Aa.sentryProfileSamplingRate>0;R9t({dsn:s,tracesSampleRate:Aa.sentryTraceSamplingRate,profilesSampleRate:c?Aa.sentryProfileSamplingRate:0,integrations:[N9t(),...c?[V9t()]:[],H9t({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)}),U9t("session-id",Lxr)};"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):Pqe!==null||(Pqe=new Promise(e=>{if(une)return void e(!0);const n=()=>{une?e(!0):(une=!0,new Promise((i,a)=>{if(document.getElementById(Mqe))return void i();const s=document.createElement("script");s.id=Mqe,s.src=Bqe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${Bqe}`)),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;jxr?(e=Iqe,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())}):Lqe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})):Lqe(Iqe)})}}(),(P8=console.log)&&P8 instanceof Function&&ld(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(P8),n(P8),o(P8),i(P8),a(P8)});export{$wr as $,qi as A,_8r as B,is as C,ee as D,IYo as E,D as F,cyr as G,Ebr as H,jbr as I,M as J,pe as K,hpe as L,Qxr as M,kbr as N,T8o as O,Wwr as P,Hwr as Q,vyr as R,nut as S,hn as T,J9r as U,uW as V,Gwr as W,fyr as X,p3 as Y,upe as Z,dle as _,f9t as a,dyr as a$,Cct as a0,X9r as a1,bwr as a2,bpe as a3,gqe as a4,dpe as a5,p8r as a6,r8r as a7,s8r as a8,u8r as a9,syr as aA,Pbr as aB,obr as aC,abr as aD,iue as aE,_br as aF,Mbr as aG,rbr as aH,ibr as aI,lyr as aJ,Bm as aK,xbr as aL,c8r as aM,u8o as aN,Cyr as aO,LOn as aP,qto as aQ,Tbr as aR,Lbr as aS,Dbr as aT,hyr as aU,vn as aV,Zr as aW,Qwr as aX,A8r as aY,gyr as aZ,xyr as a_,tto as aa,mqe as ab,l8r as ac,cle as ad,cz as ae,XO as af,pqe as ag,Vo as ah,ebr as ai,Xyr as aj,Rbo as ak,wyr as al,wbr as am,It as an,ybr as ao,DI as ap,HS as aq,E3 as ar,bbr as as,Jbr as at,kct as au,qbr as av,Zbr as aw,Kbr as ax,Xbr as ay,ewr as az,q8r as b,W2r as b$,pUn as b0,nst as b1,Syr as b2,Swr as b3,Cwr as b4,Wyr as b5,Zxr as b6,nyr as b7,Bce as b8,Jxr as b9,Kyr as bA,vbr as bB,Myr as bC,_yr as bD,Cbr as bE,Sbr as bF,Fyr as bG,Ryr as bH,Nyr as bI,qyr as bJ,ayr as bK,Zyr as bL,Jyr as bM,jwr as bN,Hyr as bO,Nwr as bP,Pwr as bQ,cbr as bR,pbr as bS,dbr as bT,Yxr as bU,lbr as bV,sbr as bW,gbr as bX,Ide as bY,hbr as bZ,fbr as b_,Awr as ba,nbr as bb,eyr as bc,tyr as bd,Xxr as be,tS as bf,Bbr as bg,Lyr as bh,Dyr as bi,Tyr as bj,jyr as bk,Ayr as bl,Pyr as bm,Ibr as bn,Eyr as bo,Iyr as bp,Byr as bq,da as br,nwr as bs,Uyr as bt,Vyr as bu,zwr as bv,mbr as bw,Dwr as bx,Gyr as by,Yyr as bz,zd as c,Xgr as c0,Ote as c1,Owr as c2,Fwr as c3,Rwr as c4,_wr as c5,myr as c6,gwr as c7,rwr as c8,swr as c9,Lwr as cA,Qyr as cB,y5n as cC,gb as cD,Vwr as cE,vwr as cF,ywr as cG,zyr as cH,xwr as cI,j8r as cJ,e8r as cK,y8r as cL,$8r as cM,E8r as cN,wpe as cO,Bpn as cP,Ywr as cQ,qxr as cR,x9t as cS,oyr as ca,ubr as cb,_i as cc,eLi as cd,lwr as ce,owr as cf,dwr as cg,iwr as ch,cwr as ci,mwr as cj,iyr as ck,ryr as cl,fwr as cm,S as cn,pwr as co,uwr as cp,awr as cq,hwr as cr,twr as cs,wwr as ct,kwr as cu,Iwr as cv,Ewr as cw,Twr as cx,Kxr as cy,tbr as cz,$xr as d,lo as e,yyr as f,qwr as g,Aa as h,byr as i,wn as j,$br as k,Zp as l,Le as m,Zwn as n,r as o,Uwr as p,IJn as q,Wxr as r,Abr as s,Z8 as t,pW as u,Gf as v,ade as w,i8r as x,mxr as y,vi as z};