@zeniai/web-app-ui 5.0.68-qa → 5.0.69-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.
- package/dist/assets/AddressRoutes-1NXz8t4Q.js +1 -0
- package/dist/assets/{AddressScreen-2d2ovpiZ.js → AddressScreen-DcX4lc_F.js} +1 -1
- package/dist/assets/{AiCfoScreen-LLFGWtB2.js → AiCfoScreen-B-SD-BvW.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-Cngtnc1t.js → BillPayApprovalRoutes-Basd0KQv.js} +1 -1
- package/dist/assets/{BillPayRoutes-CMrCjkm3.js → BillPayRoutes-xwiyRCEj.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-Ck14gI3x.js → BusinessVerificationPageScreen-B-O4fGng.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-BlpW4les.js → ChargeCardRoutes-CZHJ2f3S.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-DsIgXQcl.js → CompanyPassportScreen-DMNbV7xV.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-Ba4cIzn3.js → ConnectionAuthScreen-DQHN7Yil.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-DWZf1W12.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-k4zdaFbp.js → CustomerOnboardingRoutes-DBczs8W1.js} +1 -1
- package/dist/assets/{DashboardRoutes-DQNi4Bls.js → DashboardRoutes-6tX_FJnK.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DlneJXmh.js → DefaultTenantHome-gdhC8rFn.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-DlrlDnHx.js → DomesticWireDetailScreen-CwGd9Q26.js} +1 -1
- package/dist/assets/{DrawerScreen-C5kc-1KR.js → DrawerScreen-DApdgXsr.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-B6pJdYpn.js → EntityDetailRoutes-CGMIAqZF.js} +1 -1
- package/dist/assets/ExpenseAutomationRoutes-RczgWR48.js +25 -0
- package/dist/assets/{FeaturePreviewScreen-DfcTWDpe.js → FeaturePreviewScreen-DukdbkDU.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-7Kk-vZgW.js → MagicLinkRoutes-CJq_o8r6.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-CLVah6RB.js → MagicLinkSignInScreen-Cq-_I3N7.js} +1 -1
- package/dist/assets/{MobileAppDrawer-FuW2cx8a.js → MobileAppDrawer-B0SDRa0y.js} +1 -1
- package/dist/assets/NotFoundScreen-DnYi4Alo.js +1 -0
- package/dist/assets/{NotificationRoutes-kZE0n5II.js → NotificationRoutes-DE_b-rRI.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-MRpg6Yeq.js → OAuthConsentScreen-C4y7IeaO.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-DBStXMKI.js → PandLWithForecastRoutes-BegSQYJd.js} +1 -1
- package/dist/assets/{PeopleRoutes-DSZLNeqx.js → PeopleRoutes-CaRj4nPy.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DtpdAAnW.js → PerformanceRoutes-BmdUlT3Y.js} +1 -1
- package/dist/assets/{Preview-DVbK_8TN.js → Preview-BzKmpY8q.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-HcQe0eGd.js → QBOConnectionScreen-H8Qvt38d.js} +1 -1
- package/dist/assets/{ReferralListScreen-DvrPT4g8.js → ReferralListScreen-Ih6wu8ZB.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-CCv3xLQT.js → ReimbursementApprovalRoutes-B07Q_12k.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Bei2xs0S.js → ReimbursementApprovalRuleDetailScreen-Cs1Oz67I.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-B-Sg6Hqq.js → ReimbursementRoutes-V4aVhNjv.js} +1 -1
- package/dist/assets/{ReportsRoutes-Dbi4SYIJ.js → ReportsRoutes-IDUQFhiX.js} +1 -1
- package/dist/assets/{RewardsRoutes-BMJQqTth.js → RewardsRoutes-DsoF8WDm.js} +1 -1
- package/dist/assets/{ScreenRoutes-DHRRpjB0.js → ScreenRoutes-q84xLWb1.js} +2 -2
- package/dist/assets/{SettingsRoutes-pHLO4SVh.js → SettingsRoutes-0j-n-7mu.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BJApXgeQ.js → SetupPagesScreen-C4GjXjRP.js} +1 -1
- package/dist/assets/{SignInScreen-C0lNsIe4.js → SignInScreen-B6ywBnJ6.js} +1 -1
- package/dist/assets/{SignOutScreen-Bi-9EAnk.js → SignOutScreen-syLC8-ZX.js} +1 -1
- package/dist/assets/{TaskListScreen-QQkoAcfV.js → TaskListScreen-Ute_eU7l.js} +1 -1
- package/dist/assets/{TaskRoutes-C88qaxgI.js → TaskRoutes-BqaUB3X4.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-RdDsGxG0.js +1 -0
- package/dist/assets/{TransactionDetailScreen-8mXHg0UY.js → TransactionDetailScreen-B71792qc.js} +1 -1
- package/dist/assets/{TransactionListRoutes-CX-Kc7E-.js → TransactionListRoutes-Blo9KvRe.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CJ7Oy-uL.js → TreasuryRoutes-D4_fryuU.js} +1 -1
- package/dist/assets/{VendorsRoutes-DIC-oUiR.js → VendorsRoutes-DKMnK28g.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-Jo50UPm3.js → WiseConfirmationScreen-iZmAunYq.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-Bjeduxw9.js → ZeniAccountRoutes-ByRr-Rvb.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-DutbAsuJ.js → ZeniAccountStatementScreen-DLzmrfoy.js} +1 -1
- package/dist/assets/{accountMappingHelper-QtwozoN5.js → accountMappingHelper-CbeIjSvu.js} +1 -1
- package/dist/assets/{analytics-DxyMm95L.js → analytics-CX30pJB4.js} +1 -1
- package/dist/assets/{analyticsHelper-Djzujhjh.js → analyticsHelper-SG8tB9jY.js} +1 -1
- package/dist/assets/{core-BFuZewo1.js → core-Chn6k0lm.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-GFuMfgir.js → decodeURIComponentSafe-B4WuQ5yM.js} +1 -1
- package/dist/assets/{dnd-mZw2LJiL.js → dnd-CKKgQZIG.js} +1 -1
- package/dist/assets/{empty-Bp3kP_ka.js → empty-BOUM9tFw.js} +1 -1
- package/dist/assets/{empty-k_XNQecn.js → empty-CM7hXaA6.js} +1 -1
- package/dist/assets/{emptyVideoElement-DkqeoE-M.js → emptyVideoElement-BB3xSIc2.js} +1 -1
- package/dist/assets/epic-CWSv6htf.js +2 -0
- package/dist/assets/{getLocaleForTenant-BjDLo9MD.js → getLocaleForTenant-j9oTpFdD.js} +1 -1
- package/dist/assets/{index-Bya5oAxf.js → index-BOIvqKof.js} +1 -1
- package/dist/assets/{index-DyQYRNiR.js → index-BreaiJNl.js} +7 -7
- package/dist/assets/{index-4iSF13bs.js → index-CAPfyPqh.js} +1 -1
- package/dist/assets/{index-fD_ZJJNS.js → index-Cyof-eFv.js} +1 -1
- package/dist/assets/{index-Ly4rr8Gt.js → index-D-iEs16m.js} +2 -2
- package/dist/assets/{index-CS3R_7Wp.js → index-Dswa3EzJ.js} +1 -1
- package/dist/assets/{index-u5Oc_Hut.js → index-qc05mnSq.js} +1 -1
- package/dist/assets/{index-BcBTxYRI.js → index-vkGyITuL.js} +1 -1
- package/dist/assets/{lexical-DGyy1g7u.js → lexical-CMmB3hg4.js} +1 -1
- package/dist/assets/{liveblocks-Dh2QAkHf.js → liveblocks-DuKOLlGn.js} +1 -1
- package/dist/assets/{lottie-DueJpsnD.js → lottie-BzC_z70r.js} +1 -1
- package/dist/assets/{mui-sjj8uXYx.js → mui-BKTsYfTF.js} +1 -1
- package/dist/assets/{pathToGoBack-CI2c4nh7.js → pathToGoBack-DuG_pESe.js} +1 -1
- package/dist/assets/{pdf-BDzUzBn8.js → pdf-DKctSUPl.js} +3 -3
- package/dist/assets/{pdf-lib-C3DJztgI.js → pdf-lib-CFnSeXgz.js} +1 -1
- package/dist/assets/{plaid-CvsW7WgG.js → plaid-BDw9fPCd.js} +1 -1
- package/dist/assets/{pusher-bE72k_fg.js → pusher-C3OEsBE6.js} +1 -1
- package/dist/assets/{react-BA6cfPHm.js → react-7DVU8bop.js} +1 -1
- package/dist/assets/{react-DazvgizP.js → react-CJKpxSUM.js} +1 -1
- package/dist/assets/{react-C2gtub8l.js → react-CyKriL-x.js} +1 -1
- package/dist/assets/{react-D9akfTfa.js → react-D6FwTuSW.js} +1 -1
- package/dist/assets/{react-CJsxDDv6.js → react-DX8ScWZU.js} +1 -1
- package/dist/assets/{react-CEHzE8fT.js → react-w6DB2NS-.js} +1 -1
- package/dist/assets/{recharts-Di30TSqm.js → recharts-DDgm0ZY-.js} +1 -1
- package/dist/assets/{routePaths-zFH_1U3e.js → routePaths-D5pZG1HW.js} +1 -1
- package/dist/assets/{sentry-DK3ab-Mk.js → sentry-8NyHUHYi.js} +1 -1
- package/dist/assets/{url-BrRDv2PY.js → url-Ch2k8kvj.js} +1 -1
- package/dist/assets/{url-Cw9gHNrq.js → url-KL9dl4eL.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-BBmaNftJ.js → useAskAiCfoHostNavButtonProps-Yc6V_8SE.js} +1 -1
- package/dist/assets/{useDeviceId-GTblrVdw.js → useDeviceId-EvuyeVv7.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-Cem1fO9j.js → useFetchSuggestedQuestionsWhenReady-Dl_AzQW_.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-ZTV3oo-i.js → useInitialThreadRequest-DWCinY7g.js} +1 -1
- package/dist/assets/{utils-DdXexb3v.js → utils-BgDKBMSG.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-Bd_ziiFV.js → withTransactionSidePanel-BxWHMEM-.js} +1 -1
- package/dist/assets/{zeni-epic-state-Bhb0JOZy.js → zeni-epic-state-CrPv4S-z.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-DaSOTLqQ.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-CD6W8O0B.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-CfsSexJs.js +0 -25
- package/dist/assets/NotFoundScreen-CLbpaFRJ.js +0 -1
- package/dist/assets/TransactionDetailRoutes-Ch1h2s4g.js +0 -1
- package/dist/assets/epic-CNC5mVA8.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-
|
|
2
|
-
import{a as g,b as T,c as ene,R as V6t,p as sW,r as Ru,g as XYe,e as Cpe,f as H6t,s as vpe,i as U6t,w as W6t,j as Q6t,S as G6t,k as Y6t,l as q6t,m as K6t,n as Z6t,o as J6t}from"./sentry-DK3ab-Mk.js";import{L as X6t,C as Spe,_ as Np,a as $I,b as ext,c as bR,d as kI,u as eqe,T as txt,e as nxt,f as oxt,g as ixt,h as tqe,i as rxt,k as axt,j as Bt,l as lxt}from"./liveblocks-Dh2QAkHf.js";import{f as nqe,r as Lr,R as s8,P as pl,u as Xh,m as ele,g as fi,h as t3,O as sxt,N as oqe,i as rj,j as wR,k as cxt,l as dxt,n as uxt,o as Ku,p as pxt,B as hxt}from"./core-BFuZewo1.js";import{L as $pe,bl as mxt,bm as gxt,bn as C4,bo as iqe,bp as fxt,bq as Ft,br as FS,bs as Rm,bt as xxt,bu as v4,bv as Ra,bw as za,bx as yxt,by as bxt,bz as wxt,bA as c4,bB as n3,bC as CR,bD as nn,bE as rqe,bF as aqe,bG as tle,bH as Mp,bI as o3,bJ as Jc,bK as Hf,bL as Cxt,bM as _l,bN as vxt,bO as RS,bP as Sxt,bQ as $xt,bR as kxt,bS as ay,bT as Axt,bU as kpe,bV as jxt,bW as Ext,bX as Ixt,bY as Lxt,bZ as Txt,b_ as Dxt,b$ as Pxt,c0 as Bxt,c1 as S7,c2 as vR,c3 as Mxt,c4 as SR,c5 as $R,c6 as kR,c7 as nle,c8 as AR,c9 as Xv,ca as eS,cb as jR,cc as _xt,cd as zxt,ce as Ape,cf as tne,cg as Oxt,ch as Fxt,ci as _d,cj as lqe,ck as ole,cl as Rxt,cm as Cx,cn as jpe,co as Nxt,cp as Vxt,cq as Hxt,cr as Oy,cs as Fy,ct as sqe,cu as cqe,cv as ile,cw as Uxt,cx as Wxt,cy as tz,cz as dqe,cA as Qxt,cB as uqe,cC as Gxt,cD as aj,cE as Epe,cF as Yxt,cG as pqe,cH as hqe,cI as mqe,cJ as qxt,cK as NS,cL as Ipe,cM as Kxt,cN as Zxt,cO as gqe,cP as Jxt,cQ as Lpe,cR as bc,cS as gl,cT as Xxt,cU as tS,cV as Id,cW as fqe,cX as e9t,cY as SE,cZ as z8,c_ as ya,c$ as t9t,d0 as n9t,d1 as o9t,d2 as VL,d3 as Th,d4 as i9t,d5 as r9t,d6 as a9t,d7 as l9t,d8 as HL,d9 as ly,da as ER,db as s9t,dc as c9t,dd as Ry,de as zd,df as xqe,dg as yqe,dh as d9t,di as nne,dj as u9t,dk as $1,dl as sy,dm as rle,dn as bqe,dp as wqe,dq as Cqe,dr as vqe,ds as Sqe,dt as $qe,du as p9t,dv as Tpe,dw as h9t,_ as Hd,dx as ale,dy as kqe,dz as m9t,dA as Dpe,dB as Zu,dC as Uf,dD as g9t,dE as f9t,dF as Aqe,dG as one,dH as VM,dI as x9t,dJ as y9t,dK as b9t,dL as w9t,dM as C9t,dN as v9t,dO as S9t,dP as $9t,dQ as k9t,dR as A9t,dS as _j,dT as zj,dU as jqe,dV as GC,dW as lle,dX as sle,dY as VS,dZ as cle,d_ as dle,d$ as ule,e0 as ple,e1 as Eqe,e2 as hle,e3 as j9t,e4 as E9t,e5 as Iqe,e6 as Ppe,e7 as I9t,e8 as mle,e9 as L9t,ea as T9t,eb as Lqe,ec as D9t,ed as P9t,ee as Tqe,ef as B9t,eg as Dqe,eh as Pqe,ei as M9t,ej as _9t,ek as z9t,el as O9t,em as F9t,en as R9t,eo as N9t,ep as V9t,eq as H9t,er as Bpe,es as IR,et as U9t,eu as W9t,ev as Q9t,ew as G9t,ex as Y9t,ey as q9t,ez as K9t,eA as Z9t,eB as Mpe,eC as Bqe,eD as Mqe,eE as _qe,eF as zqe,eG as Oqe,eH as Fqe,eI as J9t,eJ as X9t,eK as e8t,v as t8t,eL as n8t,eM as o8t,eN as gle,eO as Nu,eP as Rqe,eQ as AI,eR as i8t,eS as Nqe,eT as r8t,eU as Vqe,eV as a8t,eW as Hqe,eX as l8t,eY as s8t,eZ as c8t,e_ as d8t,e$ as u8t,f0 as _pe,f1 as Uqe,f2 as Pb,f3 as LR,f4 as zpe,f5 as p8t,f6 as Ope,f7 as h8t,f8 as m8t,f9 as Wqe,fa as Qqe,fb as g8t,fc as f8t,fd as x8t,fe as y8t,ff as b8t,fg as w8t,fh as nz,fi as fle,fj as Gqe,fk as C8t,fl as Oj,fm as v8t,fn as S8t,fo as $8t,fp as k8t,fq as A8t,fr as j8t,fs as E8t,ft as I8t,fu as L8t,fv as T8t,fw as D8t,fx as Yqe,fy as P8t,fz as B8t,fA as M8t,fB as Fpe,fC as _8t,fD as z8t,fE as O8t,fF as F8t,fG as R8t,fH as ine,fI as N8t,fJ as V8t,fK as H8t,fL as U8t,fM as W8t,fN as Q8t,fO as G8t,fP as Y8t,fQ as Rpe,fR as q8t,fS as K8t}from"./zeni-epic-state-Bhb0JOZy.js";import{n as l,T as qqe,G as jI,j as qo,c as De,k as On,C as Kqe,u as xle,a as rne,A as Z8t,b as J8t,I as X8t,d as eyt,D as oz,S as Zqe}from"./mui-sjj8uXYx.js";import{r as tyt,m as Ch}from"./analytics-DxyMm95L.js";import{u as Vp}from"./plaid-CvsW7WgG.js";import{g as nyt,O as oyt,H as iyt,S as ryt,T as ayt,a as lyt,u as syt,b as cyt}from"./dnd-mZw2LJiL.js";import{l as dyt}from"./stripe-DMRn4zHo.js";import{L as yv}from"./lottie-DueJpsnD.js";import{r as js}from"./lexical-DGyy1g7u.js";import{D as ane,P as lne,_ as Jqe,a as Xqe}from"./pdf-BDzUzBn8.js";import{R as $E,G as cy,X as ts,Y as zl,H as dy,I as nd,J as _p,K as Ny,L as Hp,M as uyt,N as HS,O as eKe,P as pyt,Q as TR,S as bv,U as hyt,V as yle,W as myt,Z as gyt,_ as fyt}from"./recharts-Di30TSqm.js";import{r as xyt}from"./utils-DdXexb3v.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]="b6a0fb10-62f5-4710-9aa4-03c208c121a1",e._sentryDebugIdIdentifier="sentry-dbid-b6a0fb10-62f5-4710-9aa4-03c208c121a1")}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 Npe,UL={},yyt=function(){if(Npe)return UL;Npe=1;var e=nqe();return UL.createRoot=e.createRoot,UL.hydrateRoot=e.hydrateRoot,UL}(),Su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ene<"u"?ene:typeof self<"u"?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vpe,Hpe,Upe={exports:{}},O$={};function tKe(){return Hpe||(Hpe=1,Upe.exports=function(){if(Vpe)return O$;Vpe=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,m={},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)&&(m[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:m,_owner:a.current}}return O$.Fragment=o,O$.jsx=c,O$.jsxs=c,O$}()),Upe.exports}var t=tKe();const byt=g.createContext(null),cW={didCatch:!1,error:null};let wyt=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cW}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(cW)}}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(cW))}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=g.createElement(o,d);else{if(i===void 0)throw s;c=i}}return g.createElement(byt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var Wpe,dW={exports:{}},Qpe,Gpe,uW,Cyt=(Wpe||(Wpe=1,Gpe=dW.exports,uW=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(m,f){this._input=m,this._value=f}return e=function(m){var f,x,y,b;if(e.isNumeral(m))f=m.value();else if(m===0||typeof m>"u")f=0;else if(m===null||n.isNaN(m))f=null;else if(typeof m=="string")if(p.zeroFormat&&m===p.zeroFormat)f=0;else if(p.nullFormat&&m===p.nullFormat||!m.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)&&m.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(m)}else f=Number(m)||null;return new h(m,f)},e.version="2.0.6",e.isNumeral=function(m){return m instanceof h},e._=n={numberToFormat:function(m,f,x){var y,b,w,C,v,$,k,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",_=1e12,z=1e9,M=1e6,R="",N=!1;if(m=m||0,w=Math.abs(m),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&($=e._.includes(f,"+")?f.indexOf("+"):m<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,m/=_):w<_&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,m/=z):w<z&&w>=M&&!b||b==="m"?(I+=A.abbreviations.million,m/=M):(w<M&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,m/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=m.toString().split(".")[0],v=f.split(".")[1],k=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),R=e._.toFixed(m,v[0].length+v[1].length,x,v[1].length)):R=e._.toFixed(m,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(m,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 k>-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?")":""):$>=0?j=$===0?(N?"-":"+")+j:j+(N?"-":"+"):N&&(j="-"+j),j},stringToNumber:function(m){var f,x,y,b=d[p.currentLocale],w=m,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&m===p.zeroFormat)x=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(m=m.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*=(m.split("-").length+Math.min(m.split("(").length-1,m.split(")").length-1))%2?1:-1,m=m.replace(/[^0-9\.]+/g,""),x*=Number(m)}return x},isNaN:function(m){return typeof m=="number"&&isNaN(m)},includes:function(m,f){return m.indexOf(f)!==-1},insert:function(m,f,x){return m.slice(0,x)+f+m.slice(x)},reduce:function(m,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(m),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(m){var f=m.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(m,f){var x=n.multiplier(f);return m>x?m:x},1)},toFixed:function(m,f,x,y){var b,w,C,v,$=m.toString().split("."),k=f-(y||0);return b=$.length===2?Math.min(Math.max($[1].length,k),f):k,C=Math.pow(10,b),v=(x(m+"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(m){return m&&(p.currentLocale=m.toLowerCase()),p.currentLocale},e.localeData=function(m){if(!m)return d[p.currentLocale];if(m=m.toLowerCase(),!d[m])throw new Error("Unknown locale : "+m);return d[m]},e.reset=function(){for(var m in u)p[m]=u[m]},e.zeroFormat=function(m){p.zeroFormat=typeof m=="string"?m:null},e.nullFormat=function(m){p.nullFormat=typeof m=="string"?m:null},e.defaultFormat=function(m){p.defaultFormat=typeof m=="string"?m:"0.0"},e.register=function(m,f,x){if(f=f.toLowerCase(),this[m+"s"][f])throw new TypeError(f+" "+m+" already registered.");return this[m+"s"][f]=x,x},e.validate=function(m,f){var x,y,b,w,C,v,$,k;if(typeof m!="string"&&(m+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",m)),(m=m.trim()).match(/^\d+$/))return!0;if(m==="")return!1;try{$=e.localeData(f)}catch{$=e.localeData(e.locale())}return b=$.currency.symbol,C=$.abbreviations,x=$.delimiters.decimal,y=$.delimiters.thousands==="."?"\\.":$.delimiters.thousands,!((k=m.match(/^[^\d]+/))!==null&&(m=m.substr(1),k[0]!==b)||(k=m.match(/[^\d]+$/))!==null&&(m=m.slice(0,-1),k[0]!==C.thousand&&k[0]!==C.million&&k[0]!==C.billion&&k[0]!==C.trillion)||(v=new RegExp(y+"{2}"),m.match(/[^\d.,]/g)||(w=m.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(m,f){var x,y,b,w=this._value,C=m||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(m){return this._value=Number(m),this},add:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([this._value,m],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([m],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(m){return this._value=n.reduce([this._value,m],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(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(m){return Math.abs(e(this._value).subtract(m).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(m){var f=m%10;return~~(m%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(m,f,x){var y,b=e._.includes(f," BPS")?" ":"";return m*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(m){return+(1e-4*e._.stringToNumber(m)).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(m){return o.suffixes.indexOf(m)<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(m,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),m===null||m===0||m>=b&&m<w){v+=C.suffixes[y],b>0&&(m/=b);break}return e._.numberToFormat(m,f,x)+v},unformat:function(m){var f,x,y=e._.stringToNumber(m);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(m,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(m,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(m,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(m,f,x),m>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):m<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(m,f,x){var y=(typeof m!="number"||e._.isNaN(m)?"0e+0":m.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(m){var f=e._.includes(m,"e+")?m.split("e+"):m.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(m,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var $=e._.correctionFactor(b,w);return b*$*(w*$)/($*$)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(m,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(m),e._.numberToFormat(m,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(m,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(m*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(m){var f=e._.stringToNumber(m);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(m,f,x){var y=Math.floor(m/60/60),b=Math.floor((m-60*y*60)/60),w=Math.round(m-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(m){var f=m.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},(Qpe=dW).exports?Qpe.exports=uW():Gpe.numeral=uW()),dW.exports);const Zf=ji(Cyt);function d4(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 Jf="$$material";var vyt={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 Syt(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var $yt=/[A-Z]|^ms/g,kyt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nKe=function(e){return e.charCodeAt(1)===45},Ype=function(e){return e!=null&&typeof e!="boolean"},pW=Syt(function(e){return nKe(e)?e:e.replace($yt,"-$&").toLowerCase()}),qpe=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(kyt,function(o,i,a){return r7={name:i,styles:a,next:r7},i})}return vyt[e]===1||nKe(e)||typeof n!="number"||n===0?n:n+"px"};function iz(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 r7={name:a.name,styles:a.styles,next:r7},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)r7={name:c.name,styles:c.styles,next:r7},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var m=0;m<p.length;m++)h+=iz(d,u,p[m])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;Ype(y)&&(h+=pW(f)+":"+qpe(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)Ype(x[b])&&(h+=pW(f)+":"+qpe(f,x[b])+";");else{var w=iz(d,u,x);switch(f){case"animation":case"animationName":h+=pW(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var r7,Kpe=/label:\s*([^\s;{]+)\s*(;|$)/g,Zpe,Jpe,Xpe,ehe,the,nhe={exports:{}};function Ayt(){return Jpe?Zpe:(Jpe=1,Zpe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function jyt(){if(ehe)return Xpe;ehe=1;var e=Ayt();function n(){}function o(){}return o.resetWarningCache=n,Xpe=function(){function i(c,d,u,p,h,m){if(m!==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 ble(){return the||(the=1,nhe.exports=jyt()()),nhe.exports}const xn=ji(ble());var Eyt=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}(),vd="-ms-",ohe="-moz-",Mr="-webkit-",oKe="comm",wle="rule",Cle="decl",iKe="@keyframes",Iyt=Math.abs,DR=String.fromCharCode,Lyt=Object.assign;function rKe(e){return e.trim()}function _r(e,n,o){return e.replace(n,o)}function sne(e,n){return e.indexOf(n)}function Wc(e,n){return 0|e.charCodeAt(n)}function kE(e,n,o){return e.slice(n,o)}function mg(e){return e.length}function vle(e){return e.length}function WL(e,n){return n.push(e),e}var PR=1,nS=1,aKe=0,Du=0,Ss=0,US="";function BR(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:PR,column:nS,length:c,return:""}}function F$(e,n){return Lyt(BR("",null,null,"",null,null,0),e,{length:-e.length},n)}function Tp(){return Ss=Du<aKe?Wc(US,Du++):0,nS++,Ss===10&&(nS=1,PR++),Ss}function Ug(){return Wc(US,Du)}function HM(){return Du}function EI(e,n){return kE(US,e,n)}function AE(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 lKe(e){return PR=nS=1,aKe=mg(US=e),Du=0,[]}function sKe(e){return US="",e}function UM(e){return rKe(EI(Du-1,cne(e===91?e+2:e===40?e+1:e)))}function Tyt(e){for(;(Ss=Ug())&&Ss<33;)Tp();return AE(e)>2||AE(Ss)>3?"":" "}function Dyt(e,n){for(;--n&&Tp()&&!(Ss<48||Ss>102||Ss>57&&Ss<65||Ss>70&&Ss<97););return EI(e,HM()+(n<6&&Ug()==32&&Tp()==32))}function cne(e){for(;Tp();)switch(Ss){case e:return Du;case 34:case 39:e!==34&&e!==39&&cne(Ss);break;case 40:e===41&&cne(e);break;case 92:Tp()}return Du}function Pyt(e,n){for(;Tp()&&e+Ss!==57&&(e+Ss!==84||Ug()!==47););return"/*"+EI(n,Du-1)+"*"+DR(e===47?e:Tp())}function Byt(e){for(;!AE(Ug());)Tp();return EI(e,Du)}function Myt(e){return sKe(WM("",null,null,null,[""],e=lKe(e),0,[0],e))}function WM(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,m=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,$="",k=a,j=s,A=i,E=$;w;)switch(y=v,v=Tp()){case 40:if(y!=108&&Wc(E,m-1)==58){sne(E+=_r(UM(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=UM(v);break;case 9:case 10:case 13:case 32:E+=Tyt(y);break;case 92:E+=Dyt(HM()-1,7);continue;case 47:switch(Ug()){case 42:case 47:WL(_yt(Pyt(Tp(),HM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=mg(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=_r(E,/\f/g,"")),x>0&&mg(E)-m&&WL(x>32?rhe(E+";",i,o,m-1):rhe(_r(E," ","")+";",i,o,m-2),u);break;case 59:E+=";";default:if(WL(A=ihe(E,n,o,p,h,a,d,$,k=[],j=[],m),s),v===123)if(h===0)WM(E,n,A,A,k,s,m,d,j);else switch(f===99&&Wc(E,3)===110?100:f){case 100:case 108:case 109:case 115:WM(e,A,A,i&&WL(ihe(e,A,A,0,0,a,d,$,a,k=[],m),j),a,j,m,d,i?k:j);break;default:WM(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,$=E="",m=c;break;case 58:m=1+mg(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Ss=Du>0?Wc(US,--Du):0,nS--,Ss===10&&(nS=1,PR--),Ss==125))continue}switch(E+=DR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(mg(E)-1)*C,C=1;break;case 64:Ug()===45&&(E+=UM(Tp())),f=Ug(),h=m=mg($=E+=Byt(HM())),v++;break;case 45:y===45&&mg(E)==2&&(b=0)}}return s}function ihe(e,n,o,i,a,s,c,d,u,p,h){for(var m=a-1,f=a===0?s:[""],x=vle(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=kE(e,m+1,m=Iyt(b=c[y])),$=e;C<x;++C)($=rKe(b>0?f[C]+" "+v:_r(v,/&\f/g,f[C])))&&(u[w++]=$);return BR(e,n,o,a===0?wle:d,u,p,h)}function _yt(e,n,o){return BR(e,n,o,oKe,DR(Ss),kE(e,2,-2),0)}function rhe(e,n,o,i){return BR(e,n,o,Cle,kE(e,0,i),kE(e,i+1,-1),i)}function wv(e,n){for(var o="",i=vle(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function zyt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Cle:return e.return=e.return||e.value;case oKe:return"";case iKe:return e.return=e.value+"{"+wv(e.children,i)+"}";case wle:e.value=e.props.join(",")}return mg(o=wv(e.children,i))?e.return=e.value+"{"+o+"}":""}function Oyt(e){return function(n){n.root||(n=n.return)&&e(n)}}var Fyt=function(e,n,o){for(var i=0,a=0;i=a,a=Ug(),i===38&&a===12&&(n[o]=1),!AE(a);)Tp();return EI(e,Du)},Ryt=function(e,n){return sKe(function(o,i){var a=-1,s=44;do switch(AE(s)){case 0:s===38&&Ug()===12&&(i[a]=1),o[a]+=Fyt(Du-1,i,a);break;case 2:o[a]+=UM(s);break;case 4:if(s===44){o[++a]=Ug()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=DR(s)}while(s=Tp());return o}(lKe(e),n))},ahe=new WeakMap,Nyt=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||ahe.get(o))&&!i){ahe.set(e,!0);for(var a=[],s=Ryt(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]}}},Vyt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function cKe(e,n){switch(function(o,i){return 45^Wc(o,0)?(((i<<2^Wc(o,0))<<2^Wc(o,1))<<2^Wc(o,2))<<2^Wc(o,3):0}(e,n)){case 5103:return Mr+"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 Mr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Mr+e+ohe+e+vd+e+e;case 6828:case 4268:return Mr+e+vd+e+e;case 6165:return Mr+e+vd+"flex-"+e+e;case 5187:return Mr+e+_r(e,/(\w+).+(:[^]+)/,Mr+"box-$1$2"+vd+"flex-$1$2")+e;case 5443:return Mr+e+vd+"flex-item-"+_r(e,/flex-|-self/,"")+e;case 4675:return Mr+e+vd+"flex-line-pack"+_r(e,/align-content|flex-|-self/,"")+e;case 5548:return Mr+e+vd+_r(e,"shrink","negative")+e;case 5292:return Mr+e+vd+_r(e,"basis","preferred-size")+e;case 6060:return Mr+"box-"+_r(e,"-grow","")+Mr+e+vd+_r(e,"grow","positive")+e;case 4554:return Mr+_r(e,/([^-])(transform)/g,"$1"+Mr+"$2")+e;case 6187:return _r(_r(_r(e,/(zoom-|grab)/,Mr+"$1"),/(image-set)/,Mr+"$1"),e,"")+e;case 5495:case 3959:return _r(e,/(image-set\([^]*)/,Mr+"$1$`$1");case 4968:return _r(_r(e,/(.+:)(flex-)?(.*)/,Mr+"box-pack:$3"+vd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mr+e+e;case 4095:case 3583:case 4068:case 2532:return _r(e,/(.+)-inline(.+)/,Mr+"$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(mg(e)-1-n>6)switch(Wc(e,n+1)){case 109:if(Wc(e,n+4)!==45)break;case 102:return _r(e,/(.+:)(.+)-([^]+)/,"$1"+Mr+"$2-$3$1"+ohe+(Wc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~sne(e,"stretch")?cKe(_r(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Wc(e,n+1)!==115)break;case 6444:switch(Wc(e,mg(e)-3-(~sne(e,"!important")&&10))){case 107:return _r(e,":",":"+Mr)+e;case 101:return _r(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mr+(Wc(e,14)===45?"inline-":"")+"box$3$1"+Mr+"$2$3$1"+vd+"$2box$3")+e}break;case 5936:switch(Wc(e,n+11)){case 114:return Mr+e+vd+_r(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mr+e+vd+_r(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mr+e+vd+_r(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Mr+e+vd+e+e}return e}var Hyt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case Cle:e.return=cKe(e.value,e.length);break;case iKe:return wv([F$(e,{value:_r(e.value,"@","@"+Mr)})],i);case wle: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 wv([F$(e,{props:[_r(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return wv([F$(e,{props:[_r(a,/:(plac\w+)/,":"+Mr+"input-$1")]}),F$(e,{props:[_r(a,/:(plac\w+)/,":-moz-$1")]}),F$(e,{props:[_r(a,/:(plac\w+)/,vd+"input-$1")]})],i)}return""})}}],dKe=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||Hyt,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=[Nyt,Vyt],h=[zyt,Oyt(function(x){u.insert(x)})],m=function(x){var y=vle(x);return function(b,w,C,v){for(var $="",k=0;k<y;k++)$+=x[k](b,w,C,v)||"";return $}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){wv(Myt(C),m)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new Eyt({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 uKe(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(jI,{styles:i})}const lhe=[];function $7(e){return lhe[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="";r7=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=iz(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=iz(i,o,n[d]),a&&(s+=c[d]);Kpe.lastIndex=0;for(var u,p="";(u=Kpe.exec(s))!==null;)p+="-"+u[1];var h=function(m){for(var f,x=0,y=0,b=m.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&m.charCodeAt(y)|(255&m.charCodeAt(++y))<<8|(255&m.charCodeAt(++y))<<16|(255&m.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&m.charCodeAt(y+2))<<16;case 2:x^=(255&m.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&m.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:r7}}(lhe)}var she,che,dhe={exports:{}},aa={};function Uyt(){if(she)return aa;she=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"),m=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 m:case h:case s:return b;default:return w}}case n:return w}}}return aa.ContextConsumer=s,aa.ContextProvider=c,aa.Element=e,aa.ForwardRef=d,aa.Fragment=o,aa.Lazy=m,aa.Memo=h,aa.Portal=n,aa.Profiler=a,aa.StrictMode=i,aa.Suspense=u,aa.SuspenseList=p,aa.isContextConsumer=function(b){return y(b)===s},aa.isContextProvider=function(b){return y(b)===c},aa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},aa.isForwardRef=function(b){return y(b)===d},aa.isFragment=function(b){return y(b)===o},aa.isLazy=function(b){return y(b)===m},aa.isMemo=function(b){return y(b)===h},aa.isPortal=function(b){return y(b)===n},aa.isProfiler=function(b){return y(b)===a},aa.isStrictMode=function(b){return y(b)===i},aa.isSuspense=function(b){return y(b)===u},aa.isSuspenseList=function(b){return y(b)===p},aa.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===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},aa.typeOf=y,aa}function Wyt(){return che||(che=1,dhe.exports=Uyt()),dhe.exports}var pKe=Wyt();function Tf(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 hKe(e){if(g.isValidElement(e)||pKe.isValidElementType(e)||!Tf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=hKe(e[o])}),n}function Od(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return Tf(e)&&Tf(n)&&Object.keys(n).forEach(a=>{g.isValidElement(n[a])||pKe.isValidElementType(n[a])?i[a]=n[a]:Tf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Tf(e[a])?i[a]=Od(e[a],n[a],o):o.clone?i[a]=Tf(n[a])?hKe(n[a]):n[a]:i[a]=n[a]}),i}function Qyt(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 m=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return m.sort((f,x)=>f.val-x.val),m.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,m){const f=c.indexOf(m);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]]:m)-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 m=c.indexOf(h);return m===0?d(c[1]):m===c.length-1?u(c[m]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function uhe(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 Gyt={borderRadius:4};function Fj(e,n){return n?Od(e,n,{clone:!1}):e}const MR={xs:0,sm:600,md:900,lg:1200,xl:1536},phe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${MR[e]}px)`},Yyt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:MR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function u4(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||phe;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||phe;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[,m,f]=h,x=Number.isNaN(+m)?m||0:+m;return u.containerQueries(f).up(x)}(i.containerQueries?i:Yyt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||MR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function hhe(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function yi(e){if(typeof e!="string")throw new Error(d4(7));return e.charAt(0).toUpperCase()+e.slice(1)}function _R(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 rz(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:_R(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=_R(c.theme,i)||{};return u4(c,d,p=>{let h=rz(u,a,p);return p===h&&typeof p=="string"&&(h=rz(u,a,`${n}${p==="default"?"":yi(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const qyt={m:"margin",p:"padding"},Kyt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mhe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zyt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!mhe[e])return[e];e=mhe[e]}const[n,o]=e.split(""),i=qyt[n],a=Kyt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),mKe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gKe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function II(e,n,o,i){const a=_R(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 Sle(e){return II(e,"spacing",8)}function LI(e,n){return typeof n=="string"||n==null?n:e(n)}function Jyt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=LI(c,d),u),{})}(Zyt(o),i);return u4(e,e[o],a)}function fKe(e,n){const o=Sle(e.theme);return Object.keys(e).map(i=>Jyt(e,n,i,o)).reduce(Fj,{})}function Al(e){return fKe(e,mKe)}function jl(e){return fKe(e,gKe)}function xKe(e=8,n=Sle({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 zR(...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]?Fj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Dh(e){return typeof e!="number"?e:`${e}px solid`}function h0(e,n){return Kl({prop:e,themeKey:"borders",transform:n})}Al.propTypes={},Al.filterProps=mKe,jl.propTypes={},jl.filterProps=gKe;const Xyt=h0("border",Dh),ebt=h0("borderTop",Dh),tbt=h0("borderRight",Dh),nbt=h0("borderBottom",Dh),obt=h0("borderLeft",Dh),ibt=h0("borderColor"),rbt=h0("borderTopColor"),abt=h0("borderRightColor"),lbt=h0("borderBottomColor"),sbt=h0("borderLeftColor"),cbt=h0("outline",Dh),dbt=h0("outlineColor"),QM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=II(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:LI(n,i)});return u4(e,e.borderRadius,o)}return null};QM.propTypes={},QM.filterProps=["borderRadius"],zR(Xyt,ebt,tbt,nbt,obt,ibt,rbt,abt,lbt,sbt,QM,cbt,dbt);const az=e=>{if(e.gap!==void 0&&e.gap!==null){const n=II(e.theme,"spacing",8),o=i=>({gap:LI(n,i)});return u4(e,e.gap,o)}return null};az.propTypes={},az.filterProps=["gap"];const lz=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=II(e.theme,"spacing",8),o=i=>({columnGap:LI(n,i)});return u4(e,e.columnGap,o)}return null};lz.propTypes={},lz.filterProps=["columnGap"];const sz=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=II(e.theme,"spacing",8),o=i=>({rowGap:LI(n,i)});return u4(e,e.rowGap,o)}return null};sz.propTypes={},sz.filterProps=["rowGap"];function Cv(e,n){return n==="grey"?n:e}zR(az,lz,sz,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 $p(e){return e<=1&&e!==0?100*e+"%":e}zR(Kl({prop:"color",themeKey:"palette",transform:Cv}),Kl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cv}),Kl({prop:"backgroundColor",themeKey:"palette",transform:Cv}));const ubt=Kl({prop:"width",transform:$p}),$le=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||MR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:$p(o)}};return u4(e,e.maxWidth,n)}return null};$le.filterProps=["maxWidth"];const pbt=Kl({prop:"minWidth",transform:$p}),hbt=Kl({prop:"height",transform:$p}),mbt=Kl({prop:"maxHeight",transform:$p}),gbt=Kl({prop:"minHeight",transform:$p});Kl({prop:"size",cssProperty:"width",transform:$p}),Kl({prop:"size",cssProperty:"height",transform:$p});zR(ubt,$le,pbt,hbt,mbt,gbt,Kl({prop:"boxSizing"}));const OR={border:{themeKey:"borders",transform:Dh},borderTop:{themeKey:"borders",transform:Dh},borderRight:{themeKey:"borders",transform:Dh},borderBottom:{themeKey:"borders",transform:Dh},borderLeft:{themeKey:"borders",transform:Dh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Dh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:QM},color:{themeKey:"palette",transform:Cv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cv},backgroundColor:{themeKey:"palette",transform:Cv},p:{style:jl},pt:{style:jl},pr:{style:jl},pb:{style:jl},pl:{style:jl},px:{style:jl},py:{style:jl},padding:{style:jl},paddingTop:{style:jl},paddingRight:{style:jl},paddingBottom:{style:jl},paddingLeft:{style:jl},paddingX:{style:jl},paddingY:{style:jl},paddingInline:{style:jl},paddingInlineStart:{style:jl},paddingInlineEnd:{style:jl},paddingBlock:{style:jl},paddingBlockStart:{style:jl},paddingBlockEnd:{style:jl},m:{style:Al},mt:{style:Al},mr:{style:Al},mb:{style:Al},ml:{style:Al},mx:{style:Al},my:{style:Al},margin:{style:Al},marginTop:{style:Al},marginRight:{style:Al},marginBottom:{style:Al},marginLeft:{style:Al},marginX:{style:Al},marginY:{style:Al},marginInline:{style:Al},marginInlineStart:{style:Al},marginInlineEnd:{style:Al},marginBlock:{style:Al},marginBlockStart:{style:Al},marginBlockEnd:{style:Al},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:az},rowGap:{style:sz},columnGap:{style:lz},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$p},maxWidth:{style:$le},minWidth:{transform:$p},height:{transform:$p},maxHeight:{transform:$p},minHeight:{transform:$p},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"}},uy=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 m=_R(i,u)||{};return h?h(s):u4(s,o,f=>{let x=rz(m,p,f);return f===x&&typeof f=="string"&&(x=rz(m,p,`${n}${f==="default"?"":yi(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??OR;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),m=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=Fj(f,e(x,y,a,c));else{const b=u4({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce(($,k)=>$.concat(Object.keys(k)),[]),v=new Set(C);return w.every($=>v.size===Object.keys($).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=Fj(f,b)}else f=Fj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":uhe(a,hhe(m,f))}:uhe(a,hhe(m,f))}return Array.isArray(i)?i.map(d):d(i)}}();function fbt(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 kle(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Od({breakpoints:Qyt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:xKe(a),shape:{...Gyt,...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 m={},f=x=>(h(m,x),m);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=fbt,d=n.reduce((u,p)=>Od(u,p),d),d.unstable_sxConfig={...OR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return uy({sx:u,theme:this})},d}function dne(e=null){const n=g.useContext(qqe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}uy.filterProps=["sx"];const xbt=kle();function yKe(e=xbt){return dne(e)}function ghe(e){const n=$7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function bKe({styles:e,themeId:n,defaultTheme:o={}}){const i=yKe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>ghe(typeof c=="function"?c(a):c)):ghe(s)),t.jsx(uKe,{styles:s})}const fhe=e=>e,ybt=(()=>{let e=fhe;return{configure(n){e=n},generate:n=>e(n),reset(){e=fhe}}})();function wKe(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=wKe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function wi(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=wKe(e))&&(i&&(i+=" "),i+=n);return i}const bbt={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 Rr(e,n,o="Mui"){const i=bbt[n];return i?`${o}-${i}`:`${ybt.generate(e)}-${n}`}function fr(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Rr(e,a,o)}),i}function CKe(e){const{variants:n,...o}=e,i={variants:n,style:$7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=$7(a.style))}),i}const wbt=kle();function hW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function c8(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Cbt(e){return e?(n,o)=>o[e]:null}function GM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>GM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?c8(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?c8($7(c),o):c}return vKe(e,i.variants,[a],o)}return i?.isProcessed?o?c8($7(i.style),o):i.style:o?c8($7(i),o):i}function vKe(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?c8($7(c.style(a)),i):c.style(a))):o.push(i?c8($7(c.style),i):c.style)}return o}function vbt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function une(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]=une(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=wi(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 e0=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Ale(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 R7(e){if(e.type)return e;if(e.charAt(0)==="#")return R7(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(d4(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(d4(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const lj=(e,n)=>{try{return(o=>{const i=R7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function FR(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 SKe(e){e=R7(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])),FR({type:d,values:u})}function pne(e){let n=(e=R7(e)).type==="hsl"||e.type==="hsla"?R7(SKe(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 cz(e,n){return e=R7(e),n=Ale(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,FR(e)}function vx(e,n,o){try{return cz(e,n)}catch{return e}}function RR(e,n){if(e=R7(e),n=Ale(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 FR(e)}function Xr(e,n,o){try{return RR(e,n)}catch{return e}}function NR(e,n){if(e=R7(e),n=Ale(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 FR(e)}function ea(e,n,o){try{return NR(e,n)}catch{return e}}function QL(e,n,o){try{return function(i,a=.15){return pne(i)>.5?RR(i,a):NR(i,a)}(e,n)}catch{return e}}const $Ke=g.createContext(null);function jle(){return g.useContext($Ke)}const Sbt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $bt(e){const{children:n,theme:o}=e,i=jle(),a=g.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[Sbt]=i!==null),s},[o,i]);return t.jsx($Ke.Provider,{value:a,children:n})}const kKe=g.createContext();function kbt({value:e,...n}){return t.jsx(kKe.Provider,{value:e??!0,...n})}const VR=()=>g.useContext(kKe)??!1,AKe=g.createContext(void 0);function Abt({value:e,children:n}){return t.jsx(AKe.Provider,{value:e,children:n})}function jbt({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?une(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:une(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:g.useContext(AKe)}})}let xhe=0;const yhe={...V6t}.useId;function HR(e){if(yhe!==void 0){const n=yhe();return e??n}return function(n){const[o,i]=g.useState(n),a=n||o;return g.useEffect(()=>{o==null&&(xhe+=1,i(`mui-${xhe}`))},[o]),a}(e)}const bhe={};function whe(e,n,o,i=!1){return g.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 jKe(e){const{children:n,theme:o,themeId:i}=e,a=dne(bhe),s=jle()||bhe,c=whe(i,a,o),d=whe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const m=dne(),f=HR()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&m===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",e0(()=>{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(bKe,{styles:y}):null}(c);return t.jsx($bt,{theme:d,children:t.jsx(qqe.Provider,{value:c,children:t.jsx(kbt,{value:u,children:t.jsxs(Abt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Che={theme:void 0},hne="mode",mne="color-scheme",Ebt="data-color-scheme";function Ibt(){}const Lbt=({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 Ibt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function mW(){}function vhe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function She(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 Tbt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=hne,colorSchemeStorageKey:c=mne,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=Lbt,noSsr:p=!1}=e,h=a.join(","),m=a.length>1,f=g.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=g.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=g.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=g.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,_=y?.get(i)||i;return{mode:L,systemMode:vhe(L),lightColorScheme:I,darkColorScheme:_}}),[C,v]=g.useState(p||!m);g.useEffect(()=>{v(!0)},[]);const $=function(L){return She(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),k=g.useCallback(L=>{w(I=>{if(L===I.mode)return I;const _=L??n;return f?.set(_),{...I,mode:_,systemMode:vhe(_)}})},[f,n]),j=g.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const _={...I};return She(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,M=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\`.`)),M&&(h.includes(M)?(_.darkColorScheme=M,y?.set(M)):console.error(`\`${M}\` 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=g.useCallback(L=>{b.mode==="system"&&w(I=>{const _=L?.matches?"dark":"light";return I.systemMode===_?I:{...I,systemMode:_}})},[b.mode]),E=g.useRef(A);return E.current=A,g.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const L=(..._)=>E.current(..._),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[m]),g.useEffect(()=>{if(m){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)})||mW,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||mW,_=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||mW;return()=>{L(),I(),_()}}},[j,k,h,n,d,m,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?$:void 0,setMode:k,setColorScheme:j}}function Dbt(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 $he=(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 gW(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(m,f=[],x=[]){Object.entries(m).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("-")}`,m=((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]:m}),$he(s,d,`var(${h})`,p),$he(c,d,`var(${h}, ${m})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function Nr(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 fW(e,n){return g.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const jE={black:"#000",white:"#fff"},Pbt={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"},Bbt="#f3e5f5",Mbt="#ce93d8",_bt="#ba68c8",zbt="#ab47bc",Obt="#9c27b0",Fbt="#7b1fa2",Rbt="#e57373",Nbt="#ef5350",Vbt="#f44336",khe="#d32f2f",Hbt="#c62828",Ubt="#ffb74d",Wbt="#ffa726",Qbt="#ff9800",Gbt="#f57c00",Ybt="#e65100",qbt="#e3f2fd",Kbt="#90caf9",Ahe="#42a5f5",Zbt="#1976d2",Jbt="#1565c0",Xbt="#4fc3f7",ewt="#29b6f6",twt="#03a9f4",jhe="#0288d1",nwt="#01579b",owt="#81c784",iwt="#66bb6a",rwt="#4caf50",awt="#388e3c",lwt="#2e7d32",swt="#1b5e20";function EKe(){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:jE.white,default:jE.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 IKe=EKe();function LKe(){return{text:{primary:jE.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:jE.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 gne=LKe();function Ehe(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=NR(e.main,a):n==="dark"&&(e.dark=RR(e.main,s)))}function Ihe(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 Ele(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:Kbt,light:qbt,dark:Ahe}:{main:Zbt,light:Ahe,dark:Jbt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:Mbt,light:Bbt,dark:zbt}:{main:Obt,light:_bt,dark:Fbt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:Vbt,light:Rbt,dark:khe}:{main:khe,light:Nbt,dark:Hbt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:ewt,light:Xbt,dark:jhe}:{main:jhe,light:twt,dark:nwt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:iwt,light:owt,dark:awt}:{main:lwt,light:rwt,dark:swt}}(n),m=e.warning||function(b="light"){return b==="dark"?{main:Wbt,light:Ubt,dark:Gbt}:{main:"#ed6c02",light:Qbt,dark:Ybt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const $=pne(C),k=pne(v);return(Math.max($,k)+.05)/(Math.min($,k)+.05)}(b,gne.text.primary)>=o?gne.text.primary:IKe.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:$=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(d4(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(d4(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(Ihe(a,b,"light",v,i),Ihe(a,b,"dark",$,i)):(Ehe(b,"light",v,i),Ehe(b,"dark",$,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=EKe():n==="dark"&&(y=LKe()),Od({common:{...jE},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:m,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:Pbt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function cwt(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 dwt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function uwt(e){return Math.round(1e5*e)/1e5}const Lhe={textTransform:"uppercase"},The='"Roboto", "Helvetica", "Arial", sans-serif';function TKe(e,n){const{fontFamily:o=The,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...m}=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===The?{letterSpacing:`${uwt($/C)}em`}:{},...k,...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,Lhe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Lhe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Od({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},m,{clone:!1})}function Ja(...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 pwt=["none",Ja(0,2,1,-1,0,1,1,0,0,1,3,0),Ja(0,3,1,-2,0,2,2,0,0,1,5,0),Ja(0,3,3,-2,0,3,4,0,0,1,8,0),Ja(0,2,4,-1,0,4,5,0,0,1,10,0),Ja(0,3,5,-1,0,5,8,0,0,1,14,0),Ja(0,3,5,-1,0,6,10,0,0,1,18,0),Ja(0,4,5,-2,0,7,10,1,0,2,16,1),Ja(0,5,5,-3,0,8,10,1,0,3,14,2),Ja(0,5,6,-3,0,9,12,1,0,3,16,2),Ja(0,6,6,-3,0,10,14,1,0,4,18,3),Ja(0,6,7,-4,0,11,15,1,0,4,20,3),Ja(0,7,8,-4,0,12,17,2,0,5,22,4),Ja(0,7,8,-4,0,13,19,2,0,5,24,4),Ja(0,7,9,-4,0,14,21,2,0,5,26,4),Ja(0,8,9,-5,0,15,22,2,0,6,28,5),Ja(0,8,10,-5,0,16,24,2,0,6,30,5),Ja(0,8,11,-5,0,17,26,2,0,6,32,5),Ja(0,9,11,-5,0,18,28,2,0,7,34,6),Ja(0,9,12,-6,0,19,29,2,0,7,36,6),Ja(0,10,13,-6,0,20,31,3,0,8,38,7),Ja(0,10,13,-6,0,21,33,3,0,8,40,7),Ja(0,10,14,-6,0,22,35,3,0,8,42,7),Ja(0,11,14,-7,0,23,36,3,0,9,44,8),Ja(0,11,15,-7,0,24,38,3,0,9,46,8)],hwt={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)"},DKe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Dhe(e){return`${Math.round(e)}ms`}function mwt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function gwt(e){const n={...hwt,...e.easing},o={...DKe,...e.duration};return{getAutoHeightDuration:mwt,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:Dhe(s)} ${c} ${typeof d=="string"?d:Dhe(d)}`).join(",")},...e,easing:n,duration:o}}const fwt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xwt(e){return Tf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function PKe(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];!xwt(d)||c.startsWith("unstable_")?delete i[c]:Tf(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-CrPv4S-z.js","assets/sentry-8NyHUHYi.js","assets/core-Chn6k0lm.js","assets/index-D-iEs16m.js","assets/DefaultTenantHome-gdhC8rFn.js","assets/mui-BKTsYfTF.js","assets/getLocaleForTenant-j9oTpFdD.js","assets/analytics-CX30pJB4.js","assets/utils-BgDKBMSG.js","assets/ScreenRoutes-q84xLWb1.js","assets/analyticsHelper-SG8tB9jY.js","assets/ConnectionAuthScreen-DQHN7Yil.js","assets/QBOConnectionScreen-H8Qvt38d.js","assets/empty-CM7hXaA6.js","assets/index-Cyof-eFv.js","assets/url-KL9dl4eL.js","assets/index-vkGyITuL.js","assets/decodeURIComponentSafe-B4WuQ5yM.js","assets/SignInScreen-B6ywBnJ6.js","assets/useDeviceId-EvuyeVv7.js","assets/MagicLinkSignInScreen-Cq-_I3N7.js","assets/NotFoundScreen-DnYi4Alo.js","assets/MagicLinkRoutes-CJq_o8r6.js","assets/WiseConfirmationScreen-iZmAunYq.js","assets/CustomerOnboardingAuthScreen-DWZf1W12.js","assets/SignOutScreen-syLC8-ZX.js","assets/OAuthConsentScreen-C4y7IeaO.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as g,b as T,c as ene,R as V6t,p as sW,r as Ru,g as XYe,e as Cpe,f as H6t,s as vpe,i as U6t,w as W6t,j as Q6t,S as G6t,k as Y6t,l as q6t,m as K6t,n as Z6t,o as J6t}from"./sentry-8NyHUHYi.js";import{L as X6t,C as Spe,_ as Np,a as $I,b as ext,c as bR,d as kI,u as eqe,T as txt,e as nxt,f as oxt,g as ixt,h as tqe,i as rxt,k as axt,j as Bt,l as lxt}from"./liveblocks-DuKOLlGn.js";import{f as nqe,r as Lr,R as s8,P as pl,u as Xh,m as ele,g as fi,h as t3,O as sxt,N as oqe,i as rj,j as wR,k as cxt,l as dxt,n as uxt,o as Ku,p as pxt,B as hxt}from"./core-Chn6k0lm.js";import{L as $pe,bl as mxt,bm as gxt,bn as C4,bo as iqe,bp as fxt,bq as Ft,br as FS,bs as Rm,bt as xxt,bu as v4,bv as Ra,bw as za,bx as yxt,by as bxt,bz as wxt,bA as c4,bB as n3,bC as CR,bD as nn,bE as rqe,bF as aqe,bG as tle,bH as Mp,bI as o3,bJ as Jc,bK as Hf,bL as Cxt,bM as _l,bN as vxt,bO as RS,bP as Sxt,bQ as $xt,bR as kxt,bS as ay,bT as Axt,bU as kpe,bV as jxt,bW as Ext,bX as Ixt,bY as Lxt,bZ as Txt,b_ as Dxt,b$ as Pxt,c0 as Bxt,c1 as S7,c2 as vR,c3 as Mxt,c4 as SR,c5 as $R,c6 as kR,c7 as nle,c8 as AR,c9 as Xv,ca as eS,cb as jR,cc as _xt,cd as zxt,ce as Ape,cf as tne,cg as Oxt,ch as Fxt,ci as _d,cj as lqe,ck as ole,cl as Rxt,cm as Cx,cn as jpe,co as Nxt,cp as Vxt,cq as Hxt,cr as Oy,cs as Fy,ct as sqe,cu as cqe,cv as ile,cw as Uxt,cx as Wxt,cy as tz,cz as dqe,cA as Qxt,cB as uqe,cC as Gxt,cD as aj,cE as Epe,cF as Yxt,cG as pqe,cH as hqe,cI as mqe,cJ as qxt,cK as NS,cL as Ipe,cM as Kxt,cN as Zxt,cO as gqe,cP as Jxt,cQ as Lpe,cR as bc,cS as gl,cT as Xxt,cU as tS,cV as Id,cW as fqe,cX as e9t,cY as SE,cZ as z8,c_ as ya,c$ as t9t,d0 as n9t,d1 as o9t,d2 as VL,d3 as Th,d4 as i9t,d5 as r9t,d6 as a9t,d7 as l9t,d8 as HL,d9 as ly,da as ER,db as s9t,dc as c9t,dd as Ry,de as zd,df as xqe,dg as yqe,dh as d9t,di as nne,dj as u9t,dk as $1,dl as sy,dm as rle,dn as bqe,dp as wqe,dq as Cqe,dr as vqe,ds as Sqe,dt as $qe,du as p9t,dv as Tpe,dw as h9t,_ as Hd,dx as ale,dy as kqe,dz as m9t,dA as Dpe,dB as Zu,dC as Uf,dD as g9t,dE as f9t,dF as Aqe,dG as one,dH as VM,dI as x9t,dJ as y9t,dK as b9t,dL as w9t,dM as C9t,dN as v9t,dO as S9t,dP as $9t,dQ as k9t,dR as A9t,dS as _j,dT as zj,dU as jqe,dV as GC,dW as lle,dX as sle,dY as VS,dZ as cle,d_ as dle,d$ as ule,e0 as ple,e1 as Eqe,e2 as hle,e3 as j9t,e4 as E9t,e5 as Iqe,e6 as Ppe,e7 as I9t,e8 as mle,e9 as L9t,ea as T9t,eb as Lqe,ec as D9t,ed as P9t,ee as Tqe,ef as B9t,eg as Dqe,eh as Pqe,ei as M9t,ej as _9t,ek as z9t,el as O9t,em as F9t,en as R9t,eo as N9t,ep as V9t,eq as H9t,er as Bpe,es as IR,et as U9t,eu as W9t,ev as Q9t,ew as G9t,ex as Y9t,ey as q9t,ez as K9t,eA as Z9t,eB as Mpe,eC as Bqe,eD as Mqe,eE as _qe,eF as zqe,eG as Oqe,eH as Fqe,eI as J9t,eJ as X9t,eK as e8t,v as t8t,eL as n8t,eM as o8t,eN as gle,eO as Nu,eP as Rqe,eQ as AI,eR as i8t,eS as Nqe,eT as r8t,eU as Vqe,eV as a8t,eW as Hqe,eX as l8t,eY as s8t,eZ as c8t,e_ as d8t,e$ as u8t,f0 as _pe,f1 as Uqe,f2 as Pb,f3 as LR,f4 as zpe,f5 as p8t,f6 as Ope,f7 as h8t,f8 as m8t,f9 as Wqe,fa as Qqe,fb as g8t,fc as f8t,fd as x8t,fe as y8t,ff as b8t,fg as w8t,fh as nz,fi as fle,fj as Gqe,fk as C8t,fl as Oj,fm as v8t,fn as S8t,fo as $8t,fp as k8t,fq as A8t,fr as j8t,fs as E8t,ft as I8t,fu as L8t,fv as T8t,fw as D8t,fx as Yqe,fy as P8t,fz as B8t,fA as M8t,fB as Fpe,fC as _8t,fD as z8t,fE as O8t,fF as F8t,fG as R8t,fH as ine,fI as N8t,fJ as V8t,fK as H8t,fL as U8t,fM as W8t,fN as Q8t,fO as G8t,fP as Y8t,fQ as Rpe,fR as q8t,fS as K8t}from"./zeni-epic-state-CrPv4S-z.js";import{n as l,T as qqe,G as jI,j as qo,c as De,k as On,C as Kqe,u as xle,a as rne,A as Z8t,b as J8t,I as X8t,d as eyt,D as oz,S as Zqe}from"./mui-BKTsYfTF.js";import{r as tyt,m as Ch}from"./analytics-CX30pJB4.js";import{u as Vp}from"./plaid-BDw9fPCd.js";import{g as nyt,O as oyt,H as iyt,S as ryt,T as ayt,a as lyt,u as syt,b as cyt}from"./dnd-CKKgQZIG.js";import{l as dyt}from"./stripe-DMRn4zHo.js";import{L as yv}from"./lottie-BzC_z70r.js";import{r as js}from"./lexical-CMmB3hg4.js";import{D as ane,P as lne,_ as Jqe,a as Xqe}from"./pdf-DKctSUPl.js";import{R as $E,G as cy,X as ts,Y as zl,H as dy,I as nd,J as _p,K as Ny,L as Hp,M as uyt,N as HS,O as eKe,P as pyt,Q as TR,S as bv,U as hyt,V as yle,W as myt,Z as gyt,_ as fyt}from"./recharts-DDgm0ZY-.js";import{r as xyt}from"./utils-BgDKBMSG.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]="fff69a59-e10b-4fd7-b8dc-843bf2b4c62f",e._sentryDebugIdIdentifier="sentry-dbid-fff69a59-e10b-4fd7-b8dc-843bf2b4c62f")}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 Npe,UL={},yyt=function(){if(Npe)return UL;Npe=1;var e=nqe();return UL.createRoot=e.createRoot,UL.hydrateRoot=e.hydrateRoot,UL}(),Su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ene<"u"?ene:typeof self<"u"?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vpe,Hpe,Upe={exports:{}},O$={};function tKe(){return Hpe||(Hpe=1,Upe.exports=function(){if(Vpe)return O$;Vpe=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,m={},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)&&(m[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:m,_owner:a.current}}return O$.Fragment=o,O$.jsx=c,O$.jsxs=c,O$}()),Upe.exports}var t=tKe();const byt=g.createContext(null),cW={didCatch:!1,error:null};let wyt=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cW}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(cW)}}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(cW))}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=g.createElement(o,d);else{if(i===void 0)throw s;c=i}}return g.createElement(byt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var Wpe,dW={exports:{}},Qpe,Gpe,uW,Cyt=(Wpe||(Wpe=1,Gpe=dW.exports,uW=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(m,f){this._input=m,this._value=f}return e=function(m){var f,x,y,b;if(e.isNumeral(m))f=m.value();else if(m===0||typeof m>"u")f=0;else if(m===null||n.isNaN(m))f=null;else if(typeof m=="string")if(p.zeroFormat&&m===p.zeroFormat)f=0;else if(p.nullFormat&&m===p.nullFormat||!m.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)&&m.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(m)}else f=Number(m)||null;return new h(m,f)},e.version="2.0.6",e.isNumeral=function(m){return m instanceof h},e._=n={numberToFormat:function(m,f,x){var y,b,w,C,v,$,k,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",_=1e12,z=1e9,M=1e6,R="",N=!1;if(m=m||0,w=Math.abs(m),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&($=e._.includes(f,"+")?f.indexOf("+"):m<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,m/=_):w<_&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,m/=z):w<z&&w>=M&&!b||b==="m"?(I+=A.abbreviations.million,m/=M):(w<M&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,m/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=m.toString().split(".")[0],v=f.split(".")[1],k=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),R=e._.toFixed(m,v[0].length+v[1].length,x,v[1].length)):R=e._.toFixed(m,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(m,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 k>-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?")":""):$>=0?j=$===0?(N?"-":"+")+j:j+(N?"-":"+"):N&&(j="-"+j),j},stringToNumber:function(m){var f,x,y,b=d[p.currentLocale],w=m,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&m===p.zeroFormat)x=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(m=m.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*=(m.split("-").length+Math.min(m.split("(").length-1,m.split(")").length-1))%2?1:-1,m=m.replace(/[^0-9\.]+/g,""),x*=Number(m)}return x},isNaN:function(m){return typeof m=="number"&&isNaN(m)},includes:function(m,f){return m.indexOf(f)!==-1},insert:function(m,f,x){return m.slice(0,x)+f+m.slice(x)},reduce:function(m,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(m),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(m){var f=m.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(m,f){var x=n.multiplier(f);return m>x?m:x},1)},toFixed:function(m,f,x,y){var b,w,C,v,$=m.toString().split("."),k=f-(y||0);return b=$.length===2?Math.min(Math.max($[1].length,k),f):k,C=Math.pow(10,b),v=(x(m+"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(m){return m&&(p.currentLocale=m.toLowerCase()),p.currentLocale},e.localeData=function(m){if(!m)return d[p.currentLocale];if(m=m.toLowerCase(),!d[m])throw new Error("Unknown locale : "+m);return d[m]},e.reset=function(){for(var m in u)p[m]=u[m]},e.zeroFormat=function(m){p.zeroFormat=typeof m=="string"?m:null},e.nullFormat=function(m){p.nullFormat=typeof m=="string"?m:null},e.defaultFormat=function(m){p.defaultFormat=typeof m=="string"?m:"0.0"},e.register=function(m,f,x){if(f=f.toLowerCase(),this[m+"s"][f])throw new TypeError(f+" "+m+" already registered.");return this[m+"s"][f]=x,x},e.validate=function(m,f){var x,y,b,w,C,v,$,k;if(typeof m!="string"&&(m+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",m)),(m=m.trim()).match(/^\d+$/))return!0;if(m==="")return!1;try{$=e.localeData(f)}catch{$=e.localeData(e.locale())}return b=$.currency.symbol,C=$.abbreviations,x=$.delimiters.decimal,y=$.delimiters.thousands==="."?"\\.":$.delimiters.thousands,!((k=m.match(/^[^\d]+/))!==null&&(m=m.substr(1),k[0]!==b)||(k=m.match(/[^\d]+$/))!==null&&(m=m.slice(0,-1),k[0]!==C.thousand&&k[0]!==C.million&&k[0]!==C.billion&&k[0]!==C.trillion)||(v=new RegExp(y+"{2}"),m.match(/[^\d.,]/g)||(w=m.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(m,f){var x,y,b,w=this._value,C=m||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(m){return this._value=Number(m),this},add:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([this._value,m],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([m],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(m){return this._value=n.reduce([this._value,m],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(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(m){return Math.abs(e(this._value).subtract(m).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(m){var f=m%10;return~~(m%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(m,f,x){var y,b=e._.includes(f," BPS")?" ":"";return m*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(m){return+(1e-4*e._.stringToNumber(m)).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(m){return o.suffixes.indexOf(m)<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(m,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),m===null||m===0||m>=b&&m<w){v+=C.suffixes[y],b>0&&(m/=b);break}return e._.numberToFormat(m,f,x)+v},unformat:function(m){var f,x,y=e._.stringToNumber(m);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(m,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(m,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(m,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(m,f,x),m>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):m<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(m,f,x){var y=(typeof m!="number"||e._.isNaN(m)?"0e+0":m.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(m){var f=e._.includes(m,"e+")?m.split("e+"):m.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(m,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var $=e._.correctionFactor(b,w);return b*$*(w*$)/($*$)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(m,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(m),e._.numberToFormat(m,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(m,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(m*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(m){var f=e._.stringToNumber(m);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(m,f,x){var y=Math.floor(m/60/60),b=Math.floor((m-60*y*60)/60),w=Math.round(m-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(m){var f=m.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},(Qpe=dW).exports?Qpe.exports=uW():Gpe.numeral=uW()),dW.exports);const Zf=ji(Cyt);function d4(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 Jf="$$material";var vyt={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 Syt(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var $yt=/[A-Z]|^ms/g,kyt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nKe=function(e){return e.charCodeAt(1)===45},Ype=function(e){return e!=null&&typeof e!="boolean"},pW=Syt(function(e){return nKe(e)?e:e.replace($yt,"-$&").toLowerCase()}),qpe=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(kyt,function(o,i,a){return r7={name:i,styles:a,next:r7},i})}return vyt[e]===1||nKe(e)||typeof n!="number"||n===0?n:n+"px"};function iz(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 r7={name:a.name,styles:a.styles,next:r7},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)r7={name:c.name,styles:c.styles,next:r7},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var m=0;m<p.length;m++)h+=iz(d,u,p[m])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;Ype(y)&&(h+=pW(f)+":"+qpe(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)Ype(x[b])&&(h+=pW(f)+":"+qpe(f,x[b])+";");else{var w=iz(d,u,x);switch(f){case"animation":case"animationName":h+=pW(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var r7,Kpe=/label:\s*([^\s;{]+)\s*(;|$)/g,Zpe,Jpe,Xpe,ehe,the,nhe={exports:{}};function Ayt(){return Jpe?Zpe:(Jpe=1,Zpe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function jyt(){if(ehe)return Xpe;ehe=1;var e=Ayt();function n(){}function o(){}return o.resetWarningCache=n,Xpe=function(){function i(c,d,u,p,h,m){if(m!==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 ble(){return the||(the=1,nhe.exports=jyt()()),nhe.exports}const xn=ji(ble());var Eyt=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}(),vd="-ms-",ohe="-moz-",Mr="-webkit-",oKe="comm",wle="rule",Cle="decl",iKe="@keyframes",Iyt=Math.abs,DR=String.fromCharCode,Lyt=Object.assign;function rKe(e){return e.trim()}function _r(e,n,o){return e.replace(n,o)}function sne(e,n){return e.indexOf(n)}function Wc(e,n){return 0|e.charCodeAt(n)}function kE(e,n,o){return e.slice(n,o)}function mg(e){return e.length}function vle(e){return e.length}function WL(e,n){return n.push(e),e}var PR=1,nS=1,aKe=0,Du=0,Ss=0,US="";function BR(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:PR,column:nS,length:c,return:""}}function F$(e,n){return Lyt(BR("",null,null,"",null,null,0),e,{length:-e.length},n)}function Tp(){return Ss=Du<aKe?Wc(US,Du++):0,nS++,Ss===10&&(nS=1,PR++),Ss}function Ug(){return Wc(US,Du)}function HM(){return Du}function EI(e,n){return kE(US,e,n)}function AE(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 lKe(e){return PR=nS=1,aKe=mg(US=e),Du=0,[]}function sKe(e){return US="",e}function UM(e){return rKe(EI(Du-1,cne(e===91?e+2:e===40?e+1:e)))}function Tyt(e){for(;(Ss=Ug())&&Ss<33;)Tp();return AE(e)>2||AE(Ss)>3?"":" "}function Dyt(e,n){for(;--n&&Tp()&&!(Ss<48||Ss>102||Ss>57&&Ss<65||Ss>70&&Ss<97););return EI(e,HM()+(n<6&&Ug()==32&&Tp()==32))}function cne(e){for(;Tp();)switch(Ss){case e:return Du;case 34:case 39:e!==34&&e!==39&&cne(Ss);break;case 40:e===41&&cne(e);break;case 92:Tp()}return Du}function Pyt(e,n){for(;Tp()&&e+Ss!==57&&(e+Ss!==84||Ug()!==47););return"/*"+EI(n,Du-1)+"*"+DR(e===47?e:Tp())}function Byt(e){for(;!AE(Ug());)Tp();return EI(e,Du)}function Myt(e){return sKe(WM("",null,null,null,[""],e=lKe(e),0,[0],e))}function WM(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,m=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,$="",k=a,j=s,A=i,E=$;w;)switch(y=v,v=Tp()){case 40:if(y!=108&&Wc(E,m-1)==58){sne(E+=_r(UM(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=UM(v);break;case 9:case 10:case 13:case 32:E+=Tyt(y);break;case 92:E+=Dyt(HM()-1,7);continue;case 47:switch(Ug()){case 42:case 47:WL(_yt(Pyt(Tp(),HM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=mg(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=_r(E,/\f/g,"")),x>0&&mg(E)-m&&WL(x>32?rhe(E+";",i,o,m-1):rhe(_r(E," ","")+";",i,o,m-2),u);break;case 59:E+=";";default:if(WL(A=ihe(E,n,o,p,h,a,d,$,k=[],j=[],m),s),v===123)if(h===0)WM(E,n,A,A,k,s,m,d,j);else switch(f===99&&Wc(E,3)===110?100:f){case 100:case 108:case 109:case 115:WM(e,A,A,i&&WL(ihe(e,A,A,0,0,a,d,$,a,k=[],m),j),a,j,m,d,i?k:j);break;default:WM(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,$=E="",m=c;break;case 58:m=1+mg(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Ss=Du>0?Wc(US,--Du):0,nS--,Ss===10&&(nS=1,PR--),Ss==125))continue}switch(E+=DR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(mg(E)-1)*C,C=1;break;case 64:Ug()===45&&(E+=UM(Tp())),f=Ug(),h=m=mg($=E+=Byt(HM())),v++;break;case 45:y===45&&mg(E)==2&&(b=0)}}return s}function ihe(e,n,o,i,a,s,c,d,u,p,h){for(var m=a-1,f=a===0?s:[""],x=vle(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=kE(e,m+1,m=Iyt(b=c[y])),$=e;C<x;++C)($=rKe(b>0?f[C]+" "+v:_r(v,/&\f/g,f[C])))&&(u[w++]=$);return BR(e,n,o,a===0?wle:d,u,p,h)}function _yt(e,n,o){return BR(e,n,o,oKe,DR(Ss),kE(e,2,-2),0)}function rhe(e,n,o,i){return BR(e,n,o,Cle,kE(e,0,i),kE(e,i+1,-1),i)}function wv(e,n){for(var o="",i=vle(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function zyt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Cle:return e.return=e.return||e.value;case oKe:return"";case iKe:return e.return=e.value+"{"+wv(e.children,i)+"}";case wle:e.value=e.props.join(",")}return mg(o=wv(e.children,i))?e.return=e.value+"{"+o+"}":""}function Oyt(e){return function(n){n.root||(n=n.return)&&e(n)}}var Fyt=function(e,n,o){for(var i=0,a=0;i=a,a=Ug(),i===38&&a===12&&(n[o]=1),!AE(a);)Tp();return EI(e,Du)},Ryt=function(e,n){return sKe(function(o,i){var a=-1,s=44;do switch(AE(s)){case 0:s===38&&Ug()===12&&(i[a]=1),o[a]+=Fyt(Du-1,i,a);break;case 2:o[a]+=UM(s);break;case 4:if(s===44){o[++a]=Ug()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=DR(s)}while(s=Tp());return o}(lKe(e),n))},ahe=new WeakMap,Nyt=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||ahe.get(o))&&!i){ahe.set(e,!0);for(var a=[],s=Ryt(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]}}},Vyt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function cKe(e,n){switch(function(o,i){return 45^Wc(o,0)?(((i<<2^Wc(o,0))<<2^Wc(o,1))<<2^Wc(o,2))<<2^Wc(o,3):0}(e,n)){case 5103:return Mr+"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 Mr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Mr+e+ohe+e+vd+e+e;case 6828:case 4268:return Mr+e+vd+e+e;case 6165:return Mr+e+vd+"flex-"+e+e;case 5187:return Mr+e+_r(e,/(\w+).+(:[^]+)/,Mr+"box-$1$2"+vd+"flex-$1$2")+e;case 5443:return Mr+e+vd+"flex-item-"+_r(e,/flex-|-self/,"")+e;case 4675:return Mr+e+vd+"flex-line-pack"+_r(e,/align-content|flex-|-self/,"")+e;case 5548:return Mr+e+vd+_r(e,"shrink","negative")+e;case 5292:return Mr+e+vd+_r(e,"basis","preferred-size")+e;case 6060:return Mr+"box-"+_r(e,"-grow","")+Mr+e+vd+_r(e,"grow","positive")+e;case 4554:return Mr+_r(e,/([^-])(transform)/g,"$1"+Mr+"$2")+e;case 6187:return _r(_r(_r(e,/(zoom-|grab)/,Mr+"$1"),/(image-set)/,Mr+"$1"),e,"")+e;case 5495:case 3959:return _r(e,/(image-set\([^]*)/,Mr+"$1$`$1");case 4968:return _r(_r(e,/(.+:)(flex-)?(.*)/,Mr+"box-pack:$3"+vd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mr+e+e;case 4095:case 3583:case 4068:case 2532:return _r(e,/(.+)-inline(.+)/,Mr+"$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(mg(e)-1-n>6)switch(Wc(e,n+1)){case 109:if(Wc(e,n+4)!==45)break;case 102:return _r(e,/(.+:)(.+)-([^]+)/,"$1"+Mr+"$2-$3$1"+ohe+(Wc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~sne(e,"stretch")?cKe(_r(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Wc(e,n+1)!==115)break;case 6444:switch(Wc(e,mg(e)-3-(~sne(e,"!important")&&10))){case 107:return _r(e,":",":"+Mr)+e;case 101:return _r(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mr+(Wc(e,14)===45?"inline-":"")+"box$3$1"+Mr+"$2$3$1"+vd+"$2box$3")+e}break;case 5936:switch(Wc(e,n+11)){case 114:return Mr+e+vd+_r(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mr+e+vd+_r(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mr+e+vd+_r(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Mr+e+vd+e+e}return e}var Hyt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case Cle:e.return=cKe(e.value,e.length);break;case iKe:return wv([F$(e,{value:_r(e.value,"@","@"+Mr)})],i);case wle: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 wv([F$(e,{props:[_r(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return wv([F$(e,{props:[_r(a,/:(plac\w+)/,":"+Mr+"input-$1")]}),F$(e,{props:[_r(a,/:(plac\w+)/,":-moz-$1")]}),F$(e,{props:[_r(a,/:(plac\w+)/,vd+"input-$1")]})],i)}return""})}}],dKe=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||Hyt,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=[Nyt,Vyt],h=[zyt,Oyt(function(x){u.insert(x)})],m=function(x){var y=vle(x);return function(b,w,C,v){for(var $="",k=0;k<y;k++)$+=x[k](b,w,C,v)||"";return $}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){wv(Myt(C),m)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new Eyt({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 uKe(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(jI,{styles:i})}const lhe=[];function $7(e){return lhe[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="";r7=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=iz(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=iz(i,o,n[d]),a&&(s+=c[d]);Kpe.lastIndex=0;for(var u,p="";(u=Kpe.exec(s))!==null;)p+="-"+u[1];var h=function(m){for(var f,x=0,y=0,b=m.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&m.charCodeAt(y)|(255&m.charCodeAt(++y))<<8|(255&m.charCodeAt(++y))<<16|(255&m.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&m.charCodeAt(y+2))<<16;case 2:x^=(255&m.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&m.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:r7}}(lhe)}var she,che,dhe={exports:{}},aa={};function Uyt(){if(she)return aa;she=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"),m=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 m:case h:case s:return b;default:return w}}case n:return w}}}return aa.ContextConsumer=s,aa.ContextProvider=c,aa.Element=e,aa.ForwardRef=d,aa.Fragment=o,aa.Lazy=m,aa.Memo=h,aa.Portal=n,aa.Profiler=a,aa.StrictMode=i,aa.Suspense=u,aa.SuspenseList=p,aa.isContextConsumer=function(b){return y(b)===s},aa.isContextProvider=function(b){return y(b)===c},aa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},aa.isForwardRef=function(b){return y(b)===d},aa.isFragment=function(b){return y(b)===o},aa.isLazy=function(b){return y(b)===m},aa.isMemo=function(b){return y(b)===h},aa.isPortal=function(b){return y(b)===n},aa.isProfiler=function(b){return y(b)===a},aa.isStrictMode=function(b){return y(b)===i},aa.isSuspense=function(b){return y(b)===u},aa.isSuspenseList=function(b){return y(b)===p},aa.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===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},aa.typeOf=y,aa}function Wyt(){return che||(che=1,dhe.exports=Uyt()),dhe.exports}var pKe=Wyt();function Tf(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 hKe(e){if(g.isValidElement(e)||pKe.isValidElementType(e)||!Tf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=hKe(e[o])}),n}function Od(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return Tf(e)&&Tf(n)&&Object.keys(n).forEach(a=>{g.isValidElement(n[a])||pKe.isValidElementType(n[a])?i[a]=n[a]:Tf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Tf(e[a])?i[a]=Od(e[a],n[a],o):o.clone?i[a]=Tf(n[a])?hKe(n[a]):n[a]:i[a]=n[a]}),i}function Qyt(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 m=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return m.sort((f,x)=>f.val-x.val),m.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,m){const f=c.indexOf(m);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]]:m)-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 m=c.indexOf(h);return m===0?d(c[1]):m===c.length-1?u(c[m]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function uhe(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 Gyt={borderRadius:4};function Fj(e,n){return n?Od(e,n,{clone:!1}):e}const MR={xs:0,sm:600,md:900,lg:1200,xl:1536},phe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${MR[e]}px)`},Yyt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:MR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function u4(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||phe;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||phe;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[,m,f]=h,x=Number.isNaN(+m)?m||0:+m;return u.containerQueries(f).up(x)}(i.containerQueries?i:Yyt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||MR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function hhe(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function yi(e){if(typeof e!="string")throw new Error(d4(7));return e.charAt(0).toUpperCase()+e.slice(1)}function _R(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 rz(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:_R(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=_R(c.theme,i)||{};return u4(c,d,p=>{let h=rz(u,a,p);return p===h&&typeof p=="string"&&(h=rz(u,a,`${n}${p==="default"?"":yi(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const qyt={m:"margin",p:"padding"},Kyt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mhe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zyt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!mhe[e])return[e];e=mhe[e]}const[n,o]=e.split(""),i=qyt[n],a=Kyt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),mKe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gKe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function II(e,n,o,i){const a=_R(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 Sle(e){return II(e,"spacing",8)}function LI(e,n){return typeof n=="string"||n==null?n:e(n)}function Jyt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=LI(c,d),u),{})}(Zyt(o),i);return u4(e,e[o],a)}function fKe(e,n){const o=Sle(e.theme);return Object.keys(e).map(i=>Jyt(e,n,i,o)).reduce(Fj,{})}function Al(e){return fKe(e,mKe)}function jl(e){return fKe(e,gKe)}function xKe(e=8,n=Sle({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 zR(...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]?Fj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Dh(e){return typeof e!="number"?e:`${e}px solid`}function h0(e,n){return Kl({prop:e,themeKey:"borders",transform:n})}Al.propTypes={},Al.filterProps=mKe,jl.propTypes={},jl.filterProps=gKe;const Xyt=h0("border",Dh),ebt=h0("borderTop",Dh),tbt=h0("borderRight",Dh),nbt=h0("borderBottom",Dh),obt=h0("borderLeft",Dh),ibt=h0("borderColor"),rbt=h0("borderTopColor"),abt=h0("borderRightColor"),lbt=h0("borderBottomColor"),sbt=h0("borderLeftColor"),cbt=h0("outline",Dh),dbt=h0("outlineColor"),QM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=II(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:LI(n,i)});return u4(e,e.borderRadius,o)}return null};QM.propTypes={},QM.filterProps=["borderRadius"],zR(Xyt,ebt,tbt,nbt,obt,ibt,rbt,abt,lbt,sbt,QM,cbt,dbt);const az=e=>{if(e.gap!==void 0&&e.gap!==null){const n=II(e.theme,"spacing",8),o=i=>({gap:LI(n,i)});return u4(e,e.gap,o)}return null};az.propTypes={},az.filterProps=["gap"];const lz=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=II(e.theme,"spacing",8),o=i=>({columnGap:LI(n,i)});return u4(e,e.columnGap,o)}return null};lz.propTypes={},lz.filterProps=["columnGap"];const sz=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=II(e.theme,"spacing",8),o=i=>({rowGap:LI(n,i)});return u4(e,e.rowGap,o)}return null};sz.propTypes={},sz.filterProps=["rowGap"];function Cv(e,n){return n==="grey"?n:e}zR(az,lz,sz,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 $p(e){return e<=1&&e!==0?100*e+"%":e}zR(Kl({prop:"color",themeKey:"palette",transform:Cv}),Kl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cv}),Kl({prop:"backgroundColor",themeKey:"palette",transform:Cv}));const ubt=Kl({prop:"width",transform:$p}),$le=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||MR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:$p(o)}};return u4(e,e.maxWidth,n)}return null};$le.filterProps=["maxWidth"];const pbt=Kl({prop:"minWidth",transform:$p}),hbt=Kl({prop:"height",transform:$p}),mbt=Kl({prop:"maxHeight",transform:$p}),gbt=Kl({prop:"minHeight",transform:$p});Kl({prop:"size",cssProperty:"width",transform:$p}),Kl({prop:"size",cssProperty:"height",transform:$p});zR(ubt,$le,pbt,hbt,mbt,gbt,Kl({prop:"boxSizing"}));const OR={border:{themeKey:"borders",transform:Dh},borderTop:{themeKey:"borders",transform:Dh},borderRight:{themeKey:"borders",transform:Dh},borderBottom:{themeKey:"borders",transform:Dh},borderLeft:{themeKey:"borders",transform:Dh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Dh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:QM},color:{themeKey:"palette",transform:Cv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cv},backgroundColor:{themeKey:"palette",transform:Cv},p:{style:jl},pt:{style:jl},pr:{style:jl},pb:{style:jl},pl:{style:jl},px:{style:jl},py:{style:jl},padding:{style:jl},paddingTop:{style:jl},paddingRight:{style:jl},paddingBottom:{style:jl},paddingLeft:{style:jl},paddingX:{style:jl},paddingY:{style:jl},paddingInline:{style:jl},paddingInlineStart:{style:jl},paddingInlineEnd:{style:jl},paddingBlock:{style:jl},paddingBlockStart:{style:jl},paddingBlockEnd:{style:jl},m:{style:Al},mt:{style:Al},mr:{style:Al},mb:{style:Al},ml:{style:Al},mx:{style:Al},my:{style:Al},margin:{style:Al},marginTop:{style:Al},marginRight:{style:Al},marginBottom:{style:Al},marginLeft:{style:Al},marginX:{style:Al},marginY:{style:Al},marginInline:{style:Al},marginInlineStart:{style:Al},marginInlineEnd:{style:Al},marginBlock:{style:Al},marginBlockStart:{style:Al},marginBlockEnd:{style:Al},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:az},rowGap:{style:sz},columnGap:{style:lz},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$p},maxWidth:{style:$le},minWidth:{transform:$p},height:{transform:$p},maxHeight:{transform:$p},minHeight:{transform:$p},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"}},uy=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 m=_R(i,u)||{};return h?h(s):u4(s,o,f=>{let x=rz(m,p,f);return f===x&&typeof f=="string"&&(x=rz(m,p,`${n}${f==="default"?"":yi(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??OR;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),m=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=Fj(f,e(x,y,a,c));else{const b=u4({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce(($,k)=>$.concat(Object.keys(k)),[]),v=new Set(C);return w.every($=>v.size===Object.keys($).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=Fj(f,b)}else f=Fj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":uhe(a,hhe(m,f))}:uhe(a,hhe(m,f))}return Array.isArray(i)?i.map(d):d(i)}}();function fbt(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 kle(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Od({breakpoints:Qyt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:xKe(a),shape:{...Gyt,...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 m={},f=x=>(h(m,x),m);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=fbt,d=n.reduce((u,p)=>Od(u,p),d),d.unstable_sxConfig={...OR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return uy({sx:u,theme:this})},d}function dne(e=null){const n=g.useContext(qqe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}uy.filterProps=["sx"];const xbt=kle();function yKe(e=xbt){return dne(e)}function ghe(e){const n=$7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function bKe({styles:e,themeId:n,defaultTheme:o={}}){const i=yKe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>ghe(typeof c=="function"?c(a):c)):ghe(s)),t.jsx(uKe,{styles:s})}const fhe=e=>e,ybt=(()=>{let e=fhe;return{configure(n){e=n},generate:n=>e(n),reset(){e=fhe}}})();function wKe(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=wKe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function wi(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=wKe(e))&&(i&&(i+=" "),i+=n);return i}const bbt={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 Rr(e,n,o="Mui"){const i=bbt[n];return i?`${o}-${i}`:`${ybt.generate(e)}-${n}`}function fr(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Rr(e,a,o)}),i}function CKe(e){const{variants:n,...o}=e,i={variants:n,style:$7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=$7(a.style))}),i}const wbt=kle();function hW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function c8(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Cbt(e){return e?(n,o)=>o[e]:null}function GM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>GM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?c8(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?c8($7(c),o):c}return vKe(e,i.variants,[a],o)}return i?.isProcessed?o?c8($7(i.style),o):i.style:o?c8($7(i),o):i}function vKe(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?c8($7(c.style(a)),i):c.style(a))):o.push(i?c8($7(c.style),i):c.style)}return o}function vbt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function une(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]=une(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=wi(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 e0=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Ale(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 R7(e){if(e.type)return e;if(e.charAt(0)==="#")return R7(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(d4(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(d4(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const lj=(e,n)=>{try{return(o=>{const i=R7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function FR(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 SKe(e){e=R7(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])),FR({type:d,values:u})}function pne(e){let n=(e=R7(e)).type==="hsl"||e.type==="hsla"?R7(SKe(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 cz(e,n){return e=R7(e),n=Ale(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,FR(e)}function vx(e,n,o){try{return cz(e,n)}catch{return e}}function RR(e,n){if(e=R7(e),n=Ale(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 FR(e)}function Xr(e,n,o){try{return RR(e,n)}catch{return e}}function NR(e,n){if(e=R7(e),n=Ale(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 FR(e)}function ea(e,n,o){try{return NR(e,n)}catch{return e}}function QL(e,n,o){try{return function(i,a=.15){return pne(i)>.5?RR(i,a):NR(i,a)}(e,n)}catch{return e}}const $Ke=g.createContext(null);function jle(){return g.useContext($Ke)}const Sbt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $bt(e){const{children:n,theme:o}=e,i=jle(),a=g.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[Sbt]=i!==null),s},[o,i]);return t.jsx($Ke.Provider,{value:a,children:n})}const kKe=g.createContext();function kbt({value:e,...n}){return t.jsx(kKe.Provider,{value:e??!0,...n})}const VR=()=>g.useContext(kKe)??!1,AKe=g.createContext(void 0);function Abt({value:e,children:n}){return t.jsx(AKe.Provider,{value:e,children:n})}function jbt({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?une(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:une(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:g.useContext(AKe)}})}let xhe=0;const yhe={...V6t}.useId;function HR(e){if(yhe!==void 0){const n=yhe();return e??n}return function(n){const[o,i]=g.useState(n),a=n||o;return g.useEffect(()=>{o==null&&(xhe+=1,i(`mui-${xhe}`))},[o]),a}(e)}const bhe={};function whe(e,n,o,i=!1){return g.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 jKe(e){const{children:n,theme:o,themeId:i}=e,a=dne(bhe),s=jle()||bhe,c=whe(i,a,o),d=whe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const m=dne(),f=HR()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&m===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",e0(()=>{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(bKe,{styles:y}):null}(c);return t.jsx($bt,{theme:d,children:t.jsx(qqe.Provider,{value:c,children:t.jsx(kbt,{value:u,children:t.jsxs(Abt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Che={theme:void 0},hne="mode",mne="color-scheme",Ebt="data-color-scheme";function Ibt(){}const Lbt=({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 Ibt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function mW(){}function vhe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function She(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 Tbt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=hne,colorSchemeStorageKey:c=mne,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=Lbt,noSsr:p=!1}=e,h=a.join(","),m=a.length>1,f=g.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=g.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=g.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=g.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,_=y?.get(i)||i;return{mode:L,systemMode:vhe(L),lightColorScheme:I,darkColorScheme:_}}),[C,v]=g.useState(p||!m);g.useEffect(()=>{v(!0)},[]);const $=function(L){return She(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),k=g.useCallback(L=>{w(I=>{if(L===I.mode)return I;const _=L??n;return f?.set(_),{...I,mode:_,systemMode:vhe(_)}})},[f,n]),j=g.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const _={...I};return She(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,M=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\`.`)),M&&(h.includes(M)?(_.darkColorScheme=M,y?.set(M)):console.error(`\`${M}\` 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=g.useCallback(L=>{b.mode==="system"&&w(I=>{const _=L?.matches?"dark":"light";return I.systemMode===_?I:{...I,systemMode:_}})},[b.mode]),E=g.useRef(A);return E.current=A,g.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const L=(..._)=>E.current(..._),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[m]),g.useEffect(()=>{if(m){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)})||mW,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||mW,_=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||mW;return()=>{L(),I(),_()}}},[j,k,h,n,d,m,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?$:void 0,setMode:k,setColorScheme:j}}function Dbt(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 $he=(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 gW(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(m,f=[],x=[]){Object.entries(m).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("-")}`,m=((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]:m}),$he(s,d,`var(${h})`,p),$he(c,d,`var(${h}, ${m})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function Nr(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 fW(e,n){return g.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const jE={black:"#000",white:"#fff"},Pbt={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"},Bbt="#f3e5f5",Mbt="#ce93d8",_bt="#ba68c8",zbt="#ab47bc",Obt="#9c27b0",Fbt="#7b1fa2",Rbt="#e57373",Nbt="#ef5350",Vbt="#f44336",khe="#d32f2f",Hbt="#c62828",Ubt="#ffb74d",Wbt="#ffa726",Qbt="#ff9800",Gbt="#f57c00",Ybt="#e65100",qbt="#e3f2fd",Kbt="#90caf9",Ahe="#42a5f5",Zbt="#1976d2",Jbt="#1565c0",Xbt="#4fc3f7",ewt="#29b6f6",twt="#03a9f4",jhe="#0288d1",nwt="#01579b",owt="#81c784",iwt="#66bb6a",rwt="#4caf50",awt="#388e3c",lwt="#2e7d32",swt="#1b5e20";function EKe(){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:jE.white,default:jE.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 IKe=EKe();function LKe(){return{text:{primary:jE.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:jE.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 gne=LKe();function Ehe(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=NR(e.main,a):n==="dark"&&(e.dark=RR(e.main,s)))}function Ihe(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 Ele(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:Kbt,light:qbt,dark:Ahe}:{main:Zbt,light:Ahe,dark:Jbt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:Mbt,light:Bbt,dark:zbt}:{main:Obt,light:_bt,dark:Fbt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:Vbt,light:Rbt,dark:khe}:{main:khe,light:Nbt,dark:Hbt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:ewt,light:Xbt,dark:jhe}:{main:jhe,light:twt,dark:nwt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:iwt,light:owt,dark:awt}:{main:lwt,light:rwt,dark:swt}}(n),m=e.warning||function(b="light"){return b==="dark"?{main:Wbt,light:Ubt,dark:Gbt}:{main:"#ed6c02",light:Qbt,dark:Ybt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const $=pne(C),k=pne(v);return(Math.max($,k)+.05)/(Math.min($,k)+.05)}(b,gne.text.primary)>=o?gne.text.primary:IKe.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:$=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(d4(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(d4(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(Ihe(a,b,"light",v,i),Ihe(a,b,"dark",$,i)):(Ehe(b,"light",v,i),Ehe(b,"dark",$,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=EKe():n==="dark"&&(y=LKe()),Od({common:{...jE},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:m,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:Pbt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function cwt(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 dwt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function uwt(e){return Math.round(1e5*e)/1e5}const Lhe={textTransform:"uppercase"},The='"Roboto", "Helvetica", "Arial", sans-serif';function TKe(e,n){const{fontFamily:o=The,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...m}=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===The?{letterSpacing:`${uwt($/C)}em`}:{},...k,...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,Lhe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Lhe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Od({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},m,{clone:!1})}function Ja(...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 pwt=["none",Ja(0,2,1,-1,0,1,1,0,0,1,3,0),Ja(0,3,1,-2,0,2,2,0,0,1,5,0),Ja(0,3,3,-2,0,3,4,0,0,1,8,0),Ja(0,2,4,-1,0,4,5,0,0,1,10,0),Ja(0,3,5,-1,0,5,8,0,0,1,14,0),Ja(0,3,5,-1,0,6,10,0,0,1,18,0),Ja(0,4,5,-2,0,7,10,1,0,2,16,1),Ja(0,5,5,-3,0,8,10,1,0,3,14,2),Ja(0,5,6,-3,0,9,12,1,0,3,16,2),Ja(0,6,6,-3,0,10,14,1,0,4,18,3),Ja(0,6,7,-4,0,11,15,1,0,4,20,3),Ja(0,7,8,-4,0,12,17,2,0,5,22,4),Ja(0,7,8,-4,0,13,19,2,0,5,24,4),Ja(0,7,9,-4,0,14,21,2,0,5,26,4),Ja(0,8,9,-5,0,15,22,2,0,6,28,5),Ja(0,8,10,-5,0,16,24,2,0,6,30,5),Ja(0,8,11,-5,0,17,26,2,0,6,32,5),Ja(0,9,11,-5,0,18,28,2,0,7,34,6),Ja(0,9,12,-6,0,19,29,2,0,7,36,6),Ja(0,10,13,-6,0,20,31,3,0,8,38,7),Ja(0,10,13,-6,0,21,33,3,0,8,40,7),Ja(0,10,14,-6,0,22,35,3,0,8,42,7),Ja(0,11,14,-7,0,23,36,3,0,9,44,8),Ja(0,11,15,-7,0,24,38,3,0,9,46,8)],hwt={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)"},DKe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Dhe(e){return`${Math.round(e)}ms`}function mwt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function gwt(e){const n={...hwt,...e.easing},o={...DKe,...e.duration};return{getAutoHeightDuration:mwt,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:Dhe(s)} ${c} ${typeof d=="string"?d:Dhe(d)}`).join(",")},...e,easing:n,duration:o}}const fwt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xwt(e){return Tf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function PKe(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];!xwt(d)||c.startsWith("unstable_")?delete i[c]:Tf(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
|
|
|
@@ -6586,7 +6586,7 @@ Initiate your first transfer to start earning yield.`,insuredFundsTooltip:"Secur
|
|
|
6586
6586
|
padding-top: ${e=>zu.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
6587
6587
|
`,A9n=l.div``,j9n=l(e=>g.createElement("svg",{width:598,height:361,viewBox:"0 0 598 361",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M3 42V10C3 5.58172 6.58172 2 11 2H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),g.createElement("path",{d:"M595 42V10C595 5.58172 591.418 2 587 2H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),g.createElement("path",{d:"M3 319V351C3 355.418 6.58172 359 11 359H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),g.createElement("path",{d:"M595 319V351C595 355.418 591.418 359 587 359H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),g.createElement("path",{d:"M160 164.999C160 163.344 161.05 162 162.344 162L232.656 162C233.95 162 235 163.344 235 164.999C235 166.655 233.95 167.999 232.656 167.999L162.344 167.999C161.05 167.999 160 166.655 160 164.999Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M337.544 164.999C337.544 163.344 338.944 162 340.669 162L434.419 162C436.144 162 437.544 163.344 437.544 164.999C437.544 166.655 436.144 167.999 434.419 167.999L340.669 167.999C338.944 167.999 337.544 166.655 337.544 164.999Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M261.544 165C261.544 163.344 262.594 162 263.888 162L309.2 162C310.494 162 311.544 163.344 311.544 165C311.544 166.656 310.494 168 309.2 168L263.888 168C262.594 168 261.544 166.656 261.544 165Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M138 202C138 200.344 140.924 199 144.527 199L453.473 199C457.076 199 460 200.344 460 202C460 203.656 457.076 205 453.473 205L144.527 205C140.924 205 138 203.656 138 202Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M138 276C138 274.344 140.924 273 144.527 273L453.473 273C457.076 273 460 274.344 460 276C460 277.656 457.076 279 453.473 279L144.527 279C140.924 279 138 277.656 138 276Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M207 239C207 237.344 209.29 236 212.111 236L385.889 236C388.71 236 391 237.344 391 239C391 240.656 388.71 242 385.889 242L212.111 242C209.29 242 207 240.656 207 239Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M3 113C234.19 51.6667 363.81 51.6667 595 113",stroke:"#FAFAFA",strokeWidth:5,strokeLinecap:"round"})))`
|
|
6588
6588
|
transform: scale(1, 0.9);
|
|
6589
|
-
`,E9n=l(is)``,Vve="application/pdf",kct=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],I9n={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function L9n(e,n,o){const i=e.getViewport({scale:n}),a=document.createElement("canvas");a.width=Math.floor(i.width),a.height=Math.floor(i.height);const s=a.getContext("2d");if(s==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:s,viewport:i}).promise,(await function(c,d){return new Promise((u,p)=>{c.toBlob(h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))},"image/jpeg",d)})}(a,o)).arrayBuffer()}async function T9n(e,n){const o=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===Vve){const a=await async function(s,c){const[{PDFDocument:d},u]=await Promise.all([Hd(()=>import("./pdf-lib-
|
|
6589
|
+
`,E9n=l(is)``,Vve="application/pdf",kct=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],I9n={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function L9n(e,n,o){const i=e.getViewport({scale:n}),a=document.createElement("canvas");a.width=Math.floor(i.width),a.height=Math.floor(i.height);const s=a.getContext("2d");if(s==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:s,viewport:i}).promise,(await function(c,d){return new Promise((u,p)=>{c.toBlob(h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))},"image/jpeg",d)})}(a,o)).arrayBuffer()}async function T9n(e,n){const o=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===Vve){const a=await async function(s,c){const[{PDFDocument:d},u]=await Promise.all([Hd(()=>import("./pdf-lib-CFnSeXgz.js").then(b=>b.i),__vite__mapDeps([0,1,2])),Hd(()=>import("./pdf-DKctSUPl.js").then(b=>b.i),__vite__mapDeps([0,1,2])).then(b=>b.pdfjs)]),p=await s.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,m=h.numPages,f=await d.create();for(let b=1;b<=m;b++){const w=await h.getPage(b),C=await L9n(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),$=v.scale(1);f.addPage([$.width,$.height]).drawImage(v,{x:0,y:0,width:$.width,height:$.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:Vve,lastModified:s.lastModified})}(o,n);return a.size<o.size?{blob:a,name:a.name}:{blob:e,name:n}}const i=await(async(a,s)=>{if(kct.includes(a.type)===!1)return a;const c=await Uc(a,I9n),d=c.type.split("/")[1],u=`${s.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:a.lastModified,type:c.type})})(o,n);return{blob:i,name:i.name}}const D9n=({fileType:e="file",fileRef:n,name:o,value:i="",multiple:a=!1,acceptableTypes:s,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:o,value:i,size:1e3,"data-testid":K("input-file-element-mobile",o),onChange:async u=>{const p=u.target.files?.[0],h=p?.size;p!=null&&h!=null?(c?.(!1),d(p),u.target.value=""):(c?.(!0),u.target.value="")},style:{display:"none"},accept:`${(s??"image/jpg, image/jpeg").toString()}`,multiple:a,capture:!0}),oL=({shouldDisplay:e,width:n=30,height:o=30,styles:i,animationInLoop:a=!1})=>{const[,s]=ice(clt),[c]=Ar("MoneyTransferSuccess");return T.useEffect(()=>{e&&s(!0)},[e,s]),e&&c!=null?t.jsx(Ua,{style:{width:n,height:o,...i},play:!0,animationData:c,loop:a,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};l.div`
|
|
6590
6590
|
display: flex;
|
|
6591
6591
|
overflow: hidden;
|
|
6592
6592
|
width: 100%;
|
|
@@ -20393,7 +20393,7 @@ to {
|
|
|
20393
20393
|
justify-content: center;
|
|
20394
20394
|
align-items: center;
|
|
20395
20395
|
margin-right: ${e=>EKn.approvalCountMarginRight.valuePx(e.windowSize)};
|
|
20396
|
-
`,Mut=({card:e,data:n,actions:o,isExpenseAutomationEnabledForUser:i,analytics:a,dndProps:s})=>{const{isUncategorizedExpensesTransactionsExist:c,isUncategorizedIncomeTransactionsExist:d,isUncategorizedExpenseAccountIdentified:u,isUncategorizedIncomeAccountIdentified:p,numOfBillsPendingApproval:h,numOfReimbursementsPendingApproval:m}=n.tasks,f=u===!1||p===!1,x=ue();return t.jsx(Sl,{isDragging:s?.draggedCardType!=null,isDragOver:s?.dragOverCard===e.cardType,draggable:!0,onDragStart:y=>s?.onDragStart(e.cardType,y),onDragOver:y=>s?.onDragOver(y,e.cardType),onDragLeave:y=>s?.onDragLeave(y),onDrop:y=>s?.onDrop(y,e.cardType),dimension:e.dimension,children:t.jsx(Yu,{card:e,actions:{onCardClick:()=>{},onReloadData:o.onReloadData},children:t.jsx(vl,{dimension:e.dimension,style:{cursor:"default"},children:t.jsxs(IKn,{windowSize:x,children:[t.jsx(LKn,{children:t.jsx(DKn,{children:X.getLocalizedStrings().taskCard.title})}),t.jsxs(TKn,{children:[m>0&&t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("remi-awaiting-approval"),onClick:()=>{a?.trackReimbursementTaskCard(m),o.onCategoryClick?.("reimbursement","pending_approval","awaitingMyApproval")},"data-testid":K("dashboard-tasks-card-remi-awaiting-approval",e.cardType),children:[X.getLocalizedStrings().taskCard.reimbursementsAwaitingApproval,t.jsxs(uje,{children:[t.jsx(pje,{windowSize:x,textColor:Vx("remi-awaiting-approval"),children:m}),t.jsx(Fk,{})]})]})}),h>0&&t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("bills-awaiting-approval"),onClick:()=>{a?.trackBillPayTaskCard(h),o.onCategoryClick?.("bill-pay","pending_approval","awaiting_my_approval")},"data-testid":K("dashboard-tasks-card-bills-awaiting-approval",e.cardType),children:[X.getLocalizedStrings().taskCard.billsAwaitingApproval,t.jsxs(uje,{children:[t.jsx(pje,{windowSize:x,textColor:Vx("bills-awaiting-approval"),children:h}),t.jsx(Fk,{})]})]})}),f===!0?t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("uncategorized-account-mapping"),onClick:()=>o.onCategoryClick?.("uncategorized-account-mapping"),"data-testid":K("dashboard-tasks-card-uncategorized-account-mapping",e.cardType),children:[X.getLocalizedStrings().taskCard.uncategorizedAccountMappingText,t.jsx(Fk,{})]})}):null,!i&&c?t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("uncategorized-expense"),onClick:()=>o.onCategoryClick?.("uncategorized-expense"),"data-testid":K("dashboard-tasks-card-uncategorized-expense",e.cardType),children:[X.getLocalizedStrings().taskCard.expensesText,t.jsx(Fk,{})]})}):null,!i&&d?t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("uncategorized-income"),onClick:()=>o.onCategoryClick?.("uncategorized-income"),"data-testid":K("dashboard-tasks-card-uncategorized-income",e.cardType),children:[X.getLocalizedStrings().taskCard.incomeText,t.jsx(Fk,{})]})}):null]})]})})})},e.cardIndex)},Vx=e=>{switch(e){case"uncategorized-income":return new Zt(xm.graphColor33);case"uncategorized-expense":return new Zt(xm.graphColor17);case"bills-awaiting-approval":return new Zt(xm.graphColor09);case"remi-awaiting-approval":return new Zt(xm.graphColor05);case"uncategorized-account-mapping":return new Zt(xm.graphColor34);default:return new Zt(Vo.brandColorJadeDark)}};T.memo(Mut);const kde=e=>g.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{filter:"url(#filter0_f_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),g.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),g.createElement("g",{filter:"url(#filter1_d_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),g.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),g.createElement("g",{clipPath:"url(#clip0_251_38441)"},g.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),g.createElement("defs",null,g.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),g.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),g.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),g.createElement("feOffset",{dy:4}),g.createElement("feGaussianBlur",{stdDeviation:2}),g.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),g.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),g.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),g.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("clipPath",{id:"clip0_251_38441"},g.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),hje=g.lazy(()=>Hd(()=>import("./index-
|
|
20396
|
+
`,Mut=({card:e,data:n,actions:o,isExpenseAutomationEnabledForUser:i,analytics:a,dndProps:s})=>{const{isUncategorizedExpensesTransactionsExist:c,isUncategorizedIncomeTransactionsExist:d,isUncategorizedExpenseAccountIdentified:u,isUncategorizedIncomeAccountIdentified:p,numOfBillsPendingApproval:h,numOfReimbursementsPendingApproval:m}=n.tasks,f=u===!1||p===!1,x=ue();return t.jsx(Sl,{isDragging:s?.draggedCardType!=null,isDragOver:s?.dragOverCard===e.cardType,draggable:!0,onDragStart:y=>s?.onDragStart(e.cardType,y),onDragOver:y=>s?.onDragOver(y,e.cardType),onDragLeave:y=>s?.onDragLeave(y),onDrop:y=>s?.onDrop(y,e.cardType),dimension:e.dimension,children:t.jsx(Yu,{card:e,actions:{onCardClick:()=>{},onReloadData:o.onReloadData},children:t.jsx(vl,{dimension:e.dimension,style:{cursor:"default"},children:t.jsxs(IKn,{windowSize:x,children:[t.jsx(LKn,{children:t.jsx(DKn,{children:X.getLocalizedStrings().taskCard.title})}),t.jsxs(TKn,{children:[m>0&&t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("remi-awaiting-approval"),onClick:()=>{a?.trackReimbursementTaskCard(m),o.onCategoryClick?.("reimbursement","pending_approval","awaitingMyApproval")},"data-testid":K("dashboard-tasks-card-remi-awaiting-approval",e.cardType),children:[X.getLocalizedStrings().taskCard.reimbursementsAwaitingApproval,t.jsxs(uje,{children:[t.jsx(pje,{windowSize:x,textColor:Vx("remi-awaiting-approval"),children:m}),t.jsx(Fk,{})]})]})}),h>0&&t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("bills-awaiting-approval"),onClick:()=>{a?.trackBillPayTaskCard(h),o.onCategoryClick?.("bill-pay","pending_approval","awaiting_my_approval")},"data-testid":K("dashboard-tasks-card-bills-awaiting-approval",e.cardType),children:[X.getLocalizedStrings().taskCard.billsAwaitingApproval,t.jsxs(uje,{children:[t.jsx(pje,{windowSize:x,textColor:Vx("bills-awaiting-approval"),children:h}),t.jsx(Fk,{})]})]})}),f===!0?t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("uncategorized-account-mapping"),onClick:()=>o.onCategoryClick?.("uncategorized-account-mapping"),"data-testid":K("dashboard-tasks-card-uncategorized-account-mapping",e.cardType),children:[X.getLocalizedStrings().taskCard.uncategorizedAccountMappingText,t.jsx(Fk,{})]})}):null,!i&&c?t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("uncategorized-expense"),onClick:()=>o.onCategoryClick?.("uncategorized-expense"),"data-testid":K("dashboard-tasks-card-uncategorized-expense",e.cardType),children:[X.getLocalizedStrings().taskCard.expensesText,t.jsx(Fk,{})]})}):null,!i&&d?t.jsx(zk,{children:t.jsxs(Ok,{textColor:Vx("uncategorized-income"),onClick:()=>o.onCategoryClick?.("uncategorized-income"),"data-testid":K("dashboard-tasks-card-uncategorized-income",e.cardType),children:[X.getLocalizedStrings().taskCard.incomeText,t.jsx(Fk,{})]})}):null]})]})})})},e.cardIndex)},Vx=e=>{switch(e){case"uncategorized-income":return new Zt(xm.graphColor33);case"uncategorized-expense":return new Zt(xm.graphColor17);case"bills-awaiting-approval":return new Zt(xm.graphColor09);case"remi-awaiting-approval":return new Zt(xm.graphColor05);case"uncategorized-account-mapping":return new Zt(xm.graphColor34);default:return new Zt(Vo.brandColorJadeDark)}};T.memo(Mut);const kde=e=>g.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{filter:"url(#filter0_f_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),g.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),g.createElement("g",{filter:"url(#filter1_d_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),g.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),g.createElement("g",{clipPath:"url(#clip0_251_38441)"},g.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),g.createElement("defs",null,g.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),g.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),g.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),g.createElement("feOffset",{dy:4}),g.createElement("feGaussianBlur",{stdDeviation:2}),g.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),g.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),g.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),g.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("clipPath",{id:"clip0_251_38441"},g.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),hje=g.lazy(()=>Hd(()=>import("./index-D-iEs16m.js"),__vite__mapDeps([3,0,1,2])));function Ade({src:e,autoPlay:n=!0,config:o,controls:i=!0,height:a="100%",isModalOpen:s,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:m="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=ue(),[w,C]=g.useState(!1);g.useEffect(()=>{s===!0&&n?C(!0):s===!1&&C(!1)},[s,n]);const v={};o?.youtube&&(v.youtube=o.youtube);const $=()=>{C(!1),f?.(),s!=null&&x?.()},k=()=>{C(!0),y?.()};return s!=null?s?Lr.createPortal(t.jsx(zKn,{windowSize:b,role:"presentation",children:t.jsx(Kn,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(OKn,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(FKn,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(_Kn,{src:h,alt:"Video thumbnail"}),t.jsx(BKn,{onClick:()=>{C(!0),y?.()},children:t.jsx(MKn,{windowSize:b})})]}),(!u||w)&&t.jsx(g.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(hje,{src:e,playing:w,controls:i,muted:d,loop:c,width:"100%",height:"100%",onEnded:$,onPlay:k,config:v})})]})})})}),document.body):null:t.jsx(g.Suspense,{fallback:t.jsx("div",{style:{width:m,height:a,...p}}),children:t.jsx(hje,{src:e,playing:w,controls:i,muted:d,loop:c,width:m,height:a,style:p,light:!(!u||w)&&(h??!0),onEnded:$,onPlay:k,config:v})})}const PKn=On`
|
|
20397
20397
|
0% {
|
|
20398
20398
|
transform: rotate(0deg);
|
|
20399
20399
|
}
|
|
@@ -67236,7 +67236,7 @@ ${Ca.beneficiaryAddress} ${ne}`,d(xe),I(!0)})(o),"data-testid":K("title-text-cop
|
|
|
67236
67236
|
`,Jrr=l.div`
|
|
67237
67237
|
box-sizing: border-box;
|
|
67238
67238
|
border-bottom: 1px solid ${e=>e.theme.colors.grey2};
|
|
67239
|
-
`,{common:Xrr,transactionDetail:{notCategorizedTooltipText:ear},expenseAutomation:{transactions:tar}}=X.getLocalizedStrings(),Y5t=g.createContext({headerHeight:0,headerNode:null,totalMinWidth:void 0}),nar=g.forwardRef(function({children:e,style:n,...o},i){const{headerHeight:a,headerNode:s,totalMinWidth:c}=g.useContext(Y5t),d=n;return t.jsxs("div",{ref:i,style:{...d,position:"relative",height:(d.height??0)+a,minWidth:c},...o,children:[s,e]})}),oar=({selectedTab:e,transactionView:n,authParams:o,sectionId:i,isAccountingClassesEnabled:a,isCOTEnabled:s,isDisabled:c,vendorSearchAutoCompleteActions:d,isTransactionActivityEnabled:u,vendorSearchAutoCompleteData:p,setCurrentTransactionInAction:h,vendorLoadOptions:m,onTransactionCategorizationRowClick:f,onUpdateTransactionCategorizationUIState:x,onFetchTransactionCategorizationList:y,containerRef:b,cotTracking:w,isUncategorizedExpenseCategoryEnabled:C,setActivityLogTransactionId:v,onUploadTransactionReceipt:$,onUpdateScrollYOffSetTransactionCategorizationUIState:k})=>{const j=ue(),A=Bc(),[E,L]=g.useState(void 0),[I,_]=g.useState(null),{fetchState:z,uiState:M,transactionLocalData:R,selectedCheckBoxTransactionIds:N,transactionIdsWithUnsavedData:O,transactions:F,uncategorizedAccounts:P}=n;Pa({componentName:`expense_automation.transaction_categorization.${e}`,enabled:z==="Completed"});const U=g.useMemo(()=>F.map(Ie=>v3(Ie.id)),[F]);dx("transaction_categorization",U);const V=g.useRef(null),G=g.useRef({}),H=g.useRef(null),Q=g.useMemo(()=>al(()=>{const Ie=H.current??0;H.current=null,V.current?.resetAfterIndex(Ie,!1)},50),[]),{control:q}=kt();g.useEffect(()=>{G.current={},V.current?.resetAfterIndex(0,!0)},[j,R,A]),g.useEffect(()=>{const Ie=M.scrollPosition?.scrollTop??0;V.current?.scrollTo(Ie)},[e]);const[Y,ne]=g.useState(0),oe=g.useCallback(Ie=>{Ie!=null&&ne(Ie.getBoundingClientRect().height)},[]),ee=R5t(a).value(j),te=g.useCallback(Ie=>{if(G.current?.[Ie]!=null)return G.current[Ie];if(R[Ie]==null)return 56;const Oe=R[Ie].transactionReviewLocalData,We=Oe.tabSpecificLineItems?.[e]??[],je=We.length>0?We.length:Object.keys(Oe.lineItemById).length;return je!=null&&!isNaN(je)&&je>1?44*je+12:56},[R,j,M.sortKey,M.sortOrder,e]),ie=g.useCallback((Ie,Oe)=>{G.current[Ie]!==Oe&&(G.current[Ie]=Oe,H.current=H.current==null?Ie:Math.min(H.current,Ie),Q())},[j,R,M.sortKey,M.sortOrder,Q]),ae=g.useCallback(()=>{(M.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&y(e,M.searchString,!0,M.pageToken,!0,!1)},[n.refreshStatus.fetchState,y,e,M.pageToken,M.searchString,M.sortKey,M.sortOrder]),se=g.useCallback(()=>{M.pageToken!=null&&ae()},[ae,M.pageToken,M.sortKey,M.sortOrder]),xe=g.useMemo(()=>al(Ie=>k(e,{scrollPosition:{scrollTop:Ie}}),1e3,{trailing:!0}),[e]),le=Ie=>Ie<n.transactionLocalData.length,ce=(Ie,Oe)=>{x(e,{sortOrder:Oe,sortKey:Ie}),y(e,M.searchString,!1,null,!1,!0)},me=Ie=>{const Oe=(je=>{if(e==="autoCategorized")return!N.includes(je);const Ce=R.find(ze=>ze.transactionId===je)?.transactionReviewLocalData,$e=F.find(ze=>ze.id===je);return $e!=null&&Ce!=null?!X9t($e,Ce,P,C)||!(C!==!0||!Mpe(P,Ce.lineItemById,["expense"]))&&O.includes(je)===!1:N.length===0||!N.includes(je)})(Ie);let We=!1;if(C===!0&&Oe===!0&&e==="review"){const je=R.find(Ce=>Ce.transactionId===Ie);je!=null&&Mpe(P,je.transactionReviewLocalData.lineItemById,["expense"])&&(We=!O.includes(Ie))}return{isCheckboxDisabled:Oe,showException:We,exceptionInfo:We?ear:void 0}};let pe=[];(z==="Completed"||n.transactionLocalData.length>0)&&(pe=R.map(Ie=>Ie.transactionId));const de={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:fe,subTitle:ge}=Gs("transaction_categorization").allDoneText,we=R.map(Ie=>Ie.transactionId),ye=g.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),ve=g.useMemo(()=>M.pageToken!=null?R.length+1:R.length,[R,M.pageToken]),ke=g.useCallback(Ie=>`${R[Ie]?.transactionId??""}-${Ie}`,[R]),Ee=g.useCallback(({scrollOffset:Ie})=>{xe(Ie)},[xe]),Le=n.uiState.scrollPosition?.scrollTop;return t.jsx(par,{windowSize:j,$isQuickViewMode:A,isInitialLoading:z==="Not-Started"||z==="In-Progress"&&R.length===0,"data-testid":K("transaction-categorization-list-table-wrapper"),children:t.jsx(har,{windowSize:j,$isQuickViewMode:A,"data-testid":K("transaction-categorization-list-table-container"),children:z==="Error"?t.jsxs(gar,{windowSize:j,"data-testid":K("transaction-categorization-reload-page"),children:[t.jsx(far,{onClick:()=>y(e,void 0,!0,null,!1,!0),"data-testid":K("transaction-categorization-reload-icon"),children:t.jsx(pr,{})}),t.jsx(xar,{"data-testid":K("transaction-categorization-reload-label"),children:Xrr.reloadPage.label})]}):z==="Completed"&&R.length===0?t.jsx(qh,{tab:"transaction_categorization",title:fe,subTitle:ge,"data-testid":K("transaction-categorization-empty-table-section")}):z==="Not-Started"||z==="In-Progress"&&R.length===0?t.jsx(Hrr,{sortConfig:{sortKey:M.sortKey,sortOrder:M.sortOrder},fetchState:z,isAccountingClassesEnabled:a,onColumnSortConfigChanged:ce,"data-testid":K("transaction-categorization-list-table-empty-table")}):t.jsx(mar,{windowSize:j,$isQuickViewMode:A,"data-testid":K("transaction-categorization-list-table-view"),children:t.jsx(Xo,{control:q,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:Ie,ref:Oe,onChange:We}})=>{const je=A?void 0:Vae+ee+sR,Ce=t.jsx(G5t,{ref:oe,children:t.jsxs(yar,{children:[!A&&t.jsxs(t.Fragment,{children:[t.jsx(cR,{type:"left",children:t.jsx(SU,{selectionLimit:IR,value:Ie,checkBoxContainerStyle:{width:"auto",backgroundColor:"inherit"},checkBox:{label:t.jsx(t.Fragment,{}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:de,allCheckBoxValues:pe,mode:"off",draggable:!1,checkBoxStyle:{padding:0},labelCheckBoxStyle:{padding:0},name:"transactionCategorizationHeader",index:0,onChangeHandler:ze=>$U({event:ze,value:Ie,allCheckBoxValues:pe,groupLabelCheckBox:de,onChange:We}),ref:Oe})}),t.jsx(dR,{type:"left"})]}),t.jsx(bar,{isQuickViewMode:A,children:t.jsx(N5t,{isAccountingClassesEnabled:a,sortConfig:{sortKey:M.sortKey,sortOrder:M.sortOrder},isDisabled:c,onColumnSortConfigChanged:ce})}),!A&&t.jsxs(t.Fragment,{children:[t.jsx(cR,{type:"right"}),t.jsx(dR,{type:"right"})]})]})}),$e={value:Ie,allCheckBoxValues:pe,groupLabelCheckBox:de,categorizationGroupValue:we,transactionLocalData:R,isQuickViewMode:A,mode:"always_on",setRowHeight:ie,isItemLoaded:le,ref:Oe,onChange:We,selectedCheckBoxTransactionIds:N,isAccountingClassesEnabled:a,isTransactionActivityEnabled:u,setActivityLogTransactionId:v,contentWidth:ee,buildCheckboxMeta:me,transactionView:n,authParams:o,sectionId:i,isCOTEnabled:s,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:p,setCurrentTransactionInAction:h,vendorLoadOptions:m,onTransactionCategorizationRowClick:f,containerRef:b,listRef:V,cotTracking:w,openTooltipId:E,setOpenTooltipId:L,isUncategorizedExpenseCategoryEnabled:C,onUploadTransactionReceipt:$,selectedTab:e,hoveredTransactionId:I,setHoveredTransactionId:_,itemCount:ve,headerHeight:Y};return t.jsx(Oo,{style:Mrr,children:({height:ze,width:Ve})=>{if(ze<=0||Ve<=0)return null;const Qe=!A&&ee+Vae+sR<=Ve;return t.jsx(z5t,{value:Qe,children:t.jsx(Y5t.Provider,{value:{headerHeight:Y,headerNode:Ce,totalMinWidth:je},children:t.jsx(_rr,{style:{height:ze,width:Ve},children:t.jsx(m3,{isItemLoaded:le,itemCount:ye,loadMoreItems:se,children:({onItemsRendered:wt,ref:mt})=>t.jsx(Or,{ref:qe=>{mt(qe),V.current=qe},height:ze,width:Ve,itemCount:ve,itemSize:te,style:{...zrr,borderRadius:A?r.sp2:r.sp0},innerElementType:nar,onItemsRendered:wt,onScroll:Ee,overscanCount:5,itemData:$e,itemKey:ke,initialScrollOffset:Le,children:car})})})})})}})}})})})})};function iar({transactionId:e,children:n}){const o=I$({transactionId:e,rowEntityType:"expense_automation.transaction.row"});return t.jsx(t.Fragment,{children:n(o)})}function rar({rowCommenting:e,transactionId:n}){const o=Te(),{isCommentingActive:i,totalThreadCount:a,isThreadsLoading:s,handleActiveThreadClick:c,handleAddRowCommentClick:d}=e;return i!==!0?null:t.jsx(aar,{children:t.jsx(lar,{children:t.jsx(sar,{children:a>0?t.jsx(dd,{isLoading:s,count:a,style:{backgroundColor:o.colors.grey4,borderRadius:"50% 50% 50% 0",cursor:"pointer"},openThread:c}):s===!1?t.jsx(jb,{className:"comment-add-icon","data-testid":K("expense-automation-transaction-row-add-comment",n),onClick:d}):null})})})}const aar=l.div`
|
|
67239
|
+
`,{common:Xrr,transactionDetail:{notCategorizedTooltipText:ear},expenseAutomation:{transactions:tar}}=X.getLocalizedStrings(),Y5t=g.createContext({headerHeight:0,headerNode:null,totalMinWidth:void 0}),nar=g.forwardRef(function({children:e,style:n,...o},i){const{headerHeight:a,headerNode:s,totalMinWidth:c}=g.useContext(Y5t),d=n;return t.jsxs("div",{ref:i,style:{...d,position:"relative",height:(d.height??0)+a,minWidth:c},...o,children:[s,e]})}),oar=({selectedTab:e,transactionView:n,authParams:o,sectionId:i,isAccountingClassesEnabled:a,isCOTEnabled:s,isDisabled:c,vendorSearchAutoCompleteActions:d,isTransactionActivityEnabled:u,vendorSearchAutoCompleteData:p,setCurrentTransactionInAction:h,vendorLoadOptions:m,onTransactionCategorizationRowClick:f,onUpdateTransactionCategorizationUIState:x,onFetchTransactionCategorizationList:y,containerRef:b,cotTracking:w,isUncategorizedExpenseCategoryEnabled:C,setActivityLogTransactionId:v,onUploadTransactionReceipt:$,onUpdateScrollYOffSetTransactionCategorizationUIState:k})=>{const j=ue(),A=Bc(),[E,L]=g.useState(void 0),[I,_]=g.useState(null),{fetchState:z,uiState:M,transactionLocalData:R,selectedCheckBoxTransactionIds:N,transactionIdsWithUnsavedData:O,transactions:F,uncategorizedAccounts:P}=n;Pa({componentName:`expense_automation.transaction_categorization.${e}`,enabled:z==="Completed"});const U=g.useMemo(()=>F.map(Ie=>v3(Ie.id)),[F]);dx("transaction_categorization",U);const V=g.useRef(null),G=g.useRef({}),H=g.useRef(null),Q=g.useMemo(()=>al(()=>{const Ie=H.current??0;H.current=null,V.current?.resetAfterIndex(Ie,!1)},50),[]),{control:q}=kt();g.useEffect(()=>{G.current={},V.current?.resetAfterIndex(0,!0)},[j,R,A]),g.useEffect(()=>{const Ie=M.scrollPosition?.scrollTop??0;V.current?.scrollTo(Ie)},[e]);const[Y,ne]=g.useState(0),oe=g.useCallback(Ie=>{Ie!=null&&ne(Ie.getBoundingClientRect().height)},[]),ee=R5t(a).value(j),te=g.useCallback(Ie=>{if(G.current?.[Ie]!=null)return G.current[Ie];if(R[Ie]==null)return 56;const Oe=R[Ie].transactionReviewLocalData,We=Oe.tabSpecificLineItems?.[e]??[],je=We.length>0?We.length:Object.keys(Oe.lineItemById).length;return je!=null&&!isNaN(je)&&je>1?44*je+12:56},[R,j,M.sortKey,M.sortOrder,e]),ie=g.useCallback((Ie,Oe)=>{G.current[Ie]!==Oe&&(G.current[Ie]=Oe,H.current=H.current==null?Ie:Math.min(H.current,Ie),Q())},[j,R,M.sortKey,M.sortOrder,Q]),ae=g.useCallback(()=>{(M.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&y(e,M.searchString,!0,M.pageToken,!0,!1)},[n.refreshStatus.fetchState,y,e,M.pageToken,M.searchString,M.sortKey,M.sortOrder]),se=g.useCallback(()=>{M.pageToken!=null&&ae()},[ae,M.pageToken,M.sortKey,M.sortOrder]),xe=g.useMemo(()=>al(Ie=>k(e,{scrollPosition:{scrollTop:Ie}}),1e3,{trailing:!0}),[e]),le=Ie=>Ie<n.transactionLocalData.length,ce=(Ie,Oe)=>{x(e,{sortOrder:Oe,sortKey:Ie}),y(e,M.searchString,!1,null,!1,!0)},me=Ie=>{const Oe=(je=>{if(e==="autoCategorized")return!N.includes(je);const Ce=R.find(ze=>ze.transactionId===je)?.transactionReviewLocalData,$e=F.find(ze=>ze.id===je);return $e!=null&&Ce!=null?!X9t($e,Ce,P,C,a)||!(C!==!0||!Mpe(P,Ce.lineItemById,["expense"]))&&O.includes(je)===!1:N.length===0||!N.includes(je)})(Ie);let We=!1;if(C===!0&&Oe===!0&&e==="review"){const je=R.find(Ce=>Ce.transactionId===Ie);je!=null&&Mpe(P,je.transactionReviewLocalData.lineItemById,["expense"])&&(We=!O.includes(Ie))}return{isCheckboxDisabled:Oe,showException:We,exceptionInfo:We?ear:void 0}};let pe=[];(z==="Completed"||n.transactionLocalData.length>0)&&(pe=R.map(Ie=>Ie.transactionId));const de={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:fe,subTitle:ge}=Gs("transaction_categorization").allDoneText,we=R.map(Ie=>Ie.transactionId),ye=g.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),ve=g.useMemo(()=>M.pageToken!=null?R.length+1:R.length,[R,M.pageToken]),ke=g.useCallback(Ie=>`${R[Ie]?.transactionId??""}-${Ie}`,[R]),Ee=g.useCallback(({scrollOffset:Ie})=>{xe(Ie)},[xe]),Le=n.uiState.scrollPosition?.scrollTop;return t.jsx(par,{windowSize:j,$isQuickViewMode:A,isInitialLoading:z==="Not-Started"||z==="In-Progress"&&R.length===0,"data-testid":K("transaction-categorization-list-table-wrapper"),children:t.jsx(har,{windowSize:j,$isQuickViewMode:A,"data-testid":K("transaction-categorization-list-table-container"),children:z==="Error"?t.jsxs(gar,{windowSize:j,"data-testid":K("transaction-categorization-reload-page"),children:[t.jsx(far,{onClick:()=>y(e,void 0,!0,null,!1,!0),"data-testid":K("transaction-categorization-reload-icon"),children:t.jsx(pr,{})}),t.jsx(xar,{"data-testid":K("transaction-categorization-reload-label"),children:Xrr.reloadPage.label})]}):z==="Completed"&&R.length===0?t.jsx(qh,{tab:"transaction_categorization",title:fe,subTitle:ge,"data-testid":K("transaction-categorization-empty-table-section")}):z==="Not-Started"||z==="In-Progress"&&R.length===0?t.jsx(Hrr,{sortConfig:{sortKey:M.sortKey,sortOrder:M.sortOrder},fetchState:z,isAccountingClassesEnabled:a,onColumnSortConfigChanged:ce,"data-testid":K("transaction-categorization-list-table-empty-table")}):t.jsx(mar,{windowSize:j,$isQuickViewMode:A,"data-testid":K("transaction-categorization-list-table-view"),children:t.jsx(Xo,{control:q,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:Ie,ref:Oe,onChange:We}})=>{const je=A?void 0:Vae+ee+sR,Ce=t.jsx(G5t,{ref:oe,children:t.jsxs(yar,{children:[!A&&t.jsxs(t.Fragment,{children:[t.jsx(cR,{type:"left",children:t.jsx(SU,{selectionLimit:IR,value:Ie,checkBoxContainerStyle:{width:"auto",backgroundColor:"inherit"},checkBox:{label:t.jsx(t.Fragment,{}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:de,allCheckBoxValues:pe,mode:"off",draggable:!1,checkBoxStyle:{padding:0},labelCheckBoxStyle:{padding:0},name:"transactionCategorizationHeader",index:0,onChangeHandler:ze=>$U({event:ze,value:Ie,allCheckBoxValues:pe,groupLabelCheckBox:de,onChange:We}),ref:Oe})}),t.jsx(dR,{type:"left"})]}),t.jsx(bar,{isQuickViewMode:A,children:t.jsx(N5t,{isAccountingClassesEnabled:a,sortConfig:{sortKey:M.sortKey,sortOrder:M.sortOrder},isDisabled:c,onColumnSortConfigChanged:ce})}),!A&&t.jsxs(t.Fragment,{children:[t.jsx(cR,{type:"right"}),t.jsx(dR,{type:"right"})]})]})}),$e={value:Ie,allCheckBoxValues:pe,groupLabelCheckBox:de,categorizationGroupValue:we,transactionLocalData:R,isQuickViewMode:A,mode:"always_on",setRowHeight:ie,isItemLoaded:le,ref:Oe,onChange:We,selectedCheckBoxTransactionIds:N,isAccountingClassesEnabled:a,isTransactionActivityEnabled:u,setActivityLogTransactionId:v,contentWidth:ee,buildCheckboxMeta:me,transactionView:n,authParams:o,sectionId:i,isCOTEnabled:s,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:p,setCurrentTransactionInAction:h,vendorLoadOptions:m,onTransactionCategorizationRowClick:f,containerRef:b,listRef:V,cotTracking:w,openTooltipId:E,setOpenTooltipId:L,isUncategorizedExpenseCategoryEnabled:C,onUploadTransactionReceipt:$,selectedTab:e,hoveredTransactionId:I,setHoveredTransactionId:_,itemCount:ve,headerHeight:Y};return t.jsx(Oo,{style:Mrr,children:({height:ze,width:Ve})=>{if(ze<=0||Ve<=0)return null;const Qe=!A&&ee+Vae+sR<=Ve;return t.jsx(z5t,{value:Qe,children:t.jsx(Y5t.Provider,{value:{headerHeight:Y,headerNode:Ce,totalMinWidth:je},children:t.jsx(_rr,{style:{height:ze,width:Ve},children:t.jsx(m3,{isItemLoaded:le,itemCount:ye,loadMoreItems:se,children:({onItemsRendered:wt,ref:mt})=>t.jsx(Or,{ref:qe=>{mt(qe),V.current=qe},height:ze,width:Ve,itemCount:ve,itemSize:te,style:{...zrr,borderRadius:A?r.sp2:r.sp0},innerElementType:nar,onItemsRendered:wt,onScroll:Ee,overscanCount:5,itemData:$e,itemKey:ke,initialScrollOffset:Le,children:car})})})})})}})}})})})})};function iar({transactionId:e,children:n}){const o=I$({transactionId:e,rowEntityType:"expense_automation.transaction.row"});return t.jsx(t.Fragment,{children:n(o)})}function rar({rowCommenting:e,transactionId:n}){const o=Te(),{isCommentingActive:i,totalThreadCount:a,isThreadsLoading:s,handleActiveThreadClick:c,handleAddRowCommentClick:d}=e;return i!==!0?null:t.jsx(aar,{children:t.jsx(lar,{children:t.jsx(sar,{children:a>0?t.jsx(dd,{isLoading:s,count:a,style:{backgroundColor:o.colors.grey4,borderRadius:"50% 50% 50% 0",cursor:"pointer"},openThread:c}):s===!1?t.jsx(jb,{className:"comment-add-icon","data-testid":K("expense-automation-transaction-row-add-comment",n),onClick:d}):null})})})}const aar=l.div`
|
|
67240
67240
|
position: sticky;
|
|
67241
67241
|
right: ${sR}px;
|
|
67242
67242
|
flex: 0 0 0;
|
|
@@ -67355,7 +67355,7 @@ ${Ca.beneficiaryAddress} ${ne}`,d(xe),I(!0)})(o),"data-testid":K("title-text-cop
|
|
|
67355
67355
|
box-sizing: border-box;
|
|
67356
67356
|
border-top: ${e=>e.isFirstItem!==!0?`1px solid ${e.theme.colors.grey2}`:"none"};
|
|
67357
67357
|
border-bottom: ${e=>e.isQuickViewMode!==!0&&e.isLastItem===!0?`1px solid ${e.theme.colors.grey2}`:"none"};
|
|
67358
|
-
`,war=({selectedTab:e,transactionView:n,authParams:o,sectionId:i,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:s,isAccountingClassesEnabled:c,isCOTEnabled:d,isTransactionActivityEnabled:u,setCurrentFooterFormId:p,setLocalDataForCategoryAndClass:h,onTransactionCategorizationRowClick:m,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:x,onFetchTransactionCategorizationList:y,onSaveUpdateTransactionCategorization:b,onUpdateSelectedCheckboxTransactionIds:w,onFetchRecommendationsForEntityCategorization:C,onFetchRecommendationsForEntityCategorizationWithCustomer:v,setActivityLogTransactionId:$,onUploadTransactionReceipt:k})=>{const[j,A]=g.useState({transactionId:void 0,lineItemId:void 0}),E=g.useRef(),L=g.useRef({}),{useDynamicConfig:I}=rs(),{configValue:_}=I(L2.enableUncategorizedExpenseCategory),z=_?.uncategorized_expense_category_enabled===!0,{transactions:M,transactionLocalData:R,accountsHierarchyList:N,classHierarchyList:O,accountList:F,classList:P,selectedCheckBoxTransactionIds:U,uncategorizedAccounts:V}=n,G=Tn({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>BWe(U,R,N,O,a.entityAutoCompleteView),[N,O,U,R,a.entityAutoCompleteView]),values:g.useMemo(()=>BWe(U,R,N,O,a.entityAutoCompleteView),[N,O,U,R,a.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});g.useEffect(()=>()=>{p("expenseAutomationPage")},[]),g.useEffect(()=>{U.length>0?p(Oee):p("expenseAutomationPage")},[U,p]);const H=G.handleSubmit(q=>{const Y=q[Q_],ne=L.current;b(e,Y,ne),Y.forEach(oe=>{delete L.current[oe]})});g.useEffect(()=>{const q=G.watch((Y,{name:ne})=>{ne!=null&&Y!=null&&ko(()=>(async(oe,ee)=>{if(oe!=null){if(oe===Q_){const te=G.getValues(Q_);if(te.length<U.length||te.length===IR)return void w(e,te);const ie=te[te.length-1],ae=ee[B8].findIndex(xe=>xe.transactionId===ie),se=G.getValues(`${B8}.${ae}.lineInfo`);if(se!=null){let xe=!1;if(se.every(le=>(xe=GC(V,le[xs].selectedOption,z?["income"]:void 0),!(!le[xs].selectedOption||le[xs].selectedOption==null||xe
|
|
67358
|
+
`,war=({selectedTab:e,transactionView:n,authParams:o,sectionId:i,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:s,isAccountingClassesEnabled:c,isCOTEnabled:d,isTransactionActivityEnabled:u,setCurrentFooterFormId:p,setLocalDataForCategoryAndClass:h,onTransactionCategorizationRowClick:m,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:x,onFetchTransactionCategorizationList:y,onSaveUpdateTransactionCategorization:b,onUpdateSelectedCheckboxTransactionIds:w,onFetchRecommendationsForEntityCategorization:C,onFetchRecommendationsForEntityCategorizationWithCustomer:v,setActivityLogTransactionId:$,onUploadTransactionReceipt:k})=>{const[j,A]=g.useState({transactionId:void 0,lineItemId:void 0}),E=g.useRef(),L=g.useRef({}),{useDynamicConfig:I}=rs(),{configValue:_}=I(L2.enableUncategorizedExpenseCategory),z=_?.uncategorized_expense_category_enabled===!0,{transactions:M,transactionLocalData:R,accountsHierarchyList:N,classHierarchyList:O,accountList:F,classList:P,selectedCheckBoxTransactionIds:U,uncategorizedAccounts:V}=n,G=Tn({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>BWe(U,R,N,O,a.entityAutoCompleteView),[N,O,U,R,a.entityAutoCompleteView]),values:g.useMemo(()=>BWe(U,R,N,O,a.entityAutoCompleteView),[N,O,U,R,a.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});g.useEffect(()=>()=>{p("expenseAutomationPage")},[]),g.useEffect(()=>{U.length>0?p(Oee):p("expenseAutomationPage")},[U,p]);const H=G.handleSubmit(q=>{const Y=q[Q_],ne=L.current;b(e,Y,ne),Y.forEach(oe=>{delete L.current[oe]})});g.useEffect(()=>{const q=G.watch((Y,{name:ne})=>{ne!=null&&Y!=null&&ko(()=>(async(oe,ee)=>{if(oe!=null){if(oe===Q_){const te=G.getValues(Q_);if(te.length<U.length||te.length===IR)return void w(e,te);const ie=te[te.length-1],ae=ee[B8].findIndex(xe=>xe.transactionId===ie),se=G.getValues(`${B8}.${ae}.lineInfo`);if(se!=null){let xe=!1;if(se.every(le=>(xe=GC(V,le[xs].selectedOption,z?["income"]:void 0),!(!le[xs].selectedOption||le[xs].selectedOption==null||xe||c!==!1&&!le[wp].selectedOption||!le[tm].selectedOption)))===!0)return void w(e,te);{const le=te.filter(ce=>ce!==ie);return void w(e,le)}}return}if(oe.includes(xs)===!0||oe.includes(wp)===!0){const te=parseInt(oe.split(".")[1]),ie=parseInt(oe.split(".")[3]),ae=G.getValues(`${B8}.${te}.lineInfo`),se=ae[ie];if(oe.includes(xs)||oe.includes(wp)){const{transactionId:xe,lineId:le,recommendations:ce}=se;if(ae!=null){const me=se[xs].selectedOption,pe=se[wp].selectedOption,de=se[tm].selectedOption,fe=se[tm].selectedOption,ge=se[tm].defaultOptions,we=ge?.find($e=>$e.options?.find(ze=>ze.value===de))?.options?.find($e=>$e.value===de)?.label,ye=ge?.find($e=>$e.options?.find(ze=>ze.value===fe))?.options?.find($e=>$e.value===fe)?.label,ve=a.entityAutoCompleteView.vendor.find($e=>$e.qboId===de),ke=a.entityAutoCompleteView.customer.find($e=>$e.qboId===fe),Ee=ce.find($e=>$e.vendor?.qboId===de)?.vendor,Le=de||ve?.qboId||Ee?.qboId?{id:de??ve?.qboId??Ee?.qboId??"",name:we??ve?.name??Ee?.name??"",logo:ve?.logo??Ee?.logo}:void 0,Ie=fe||ke?.qboId?{id:fe??ke?.qboId??"",name:ye??ke?.name??"",logo:ke?.logo}:void 0,Oe=F.find($e=>$e.qboId===me),We=P.find($e=>$e.classId===pe),je=n.transactionLocalData.find($e=>$e.transactionId===xe)?.transactionReviewLocalData.lineItemById[le].account,Ce=n.transactionLocalData.find($e=>$e.transactionId===xe)?.transactionReviewLocalData.lineItemById[le].class;h(e,xe,le,M,Le?.id,Ie?.id,oe.includes(xs)&&Oe!=null?{...Oe,isPreFilled:!1}:je,oe.includes(wp)&&We!=null?{...We,isPreFilled:!1}:Ce,void 0,ce,z,c)}return}}if(oe.includes(tm)){const te=parseInt(oe.split(".")[1]),ie=parseInt(oe.split(".")[3]),ae=G.getValues(`${B8}.${te}.lineInfo`);if(ae!=null){const se=ae[ie],{transactionId:xe,recommendations:le}=se,ce=se[tm].selectedOption,me=se[tm].selectedOption,pe=se[tm].defaultOptions,de=pe?.flatMap(Oe=>Oe.options)?.find(Oe=>Oe.value===ce)?.label,fe=pe?.flatMap(Oe=>Oe.options)?.find(Oe=>Oe.value===me)?.label,ge=a.entityAutoCompleteView.vendor.find(Oe=>Oe.qboId===ce),we=a.entityAutoCompleteView.customer.find(Oe=>Oe.qboId===me),ye=le.find(Oe=>Oe.vendor?.qboId===ce)?.vendor,ve=ce!==""&&ce!=null?ce:de!==""&&de!=null?de:"",ke=(ge?.qboId!=null&&ge.qboId!==""?ge.qboId:null)??(ye?.qboId!=null&&ye.qboId!==""?ye.qboId:null)??(ce!=null&&ce!==""?ce:null),Ee={id:ke??de??"",name:de!=null&&de!==""?de:ge?.name!=null&&ge.name!==""?ge.name:ye?.name!=null&&ye.name!==""?ye.name:ke!=null&&ke!==""?ke:"",logo:ge?.logo??ye?.logo},Le=we?.qboId!=null&&we.qboId!==""?{id:we.qboId??me??"",name:fe??we.name??"",logo:we.logo}:void 0,Ie=M.find(Oe=>Oe.id===xe);if(Ie!=null){const Oe=n.transactionLocalData.find(ze=>ze.transactionId===Ie.id)?.transactionReviewLocalData,We=Oe?.lineItemById[se.lineId],je=Id(Ie)===!0?Oe?.selectedEntity:We?.selectedEntityLine,Ce=Le?.id!=null&&Le.id!==""?{id:Le.id,name:Le.name,type:"customer",qboId:Le.id,zeniId:Le.id,logo:Le.logo}:Ee.id!==""&&Ee.id!=null?{id:ve,name:de!=null&&de!==""?de:ve,type:"vendor",qboId:ve,zeniId:ve,logo:Ee.logo,isPreFilled:je?.id===ke&&je?.isPreFilled}:void 0,$e={transactionId:{id:Ie.id,type:Ie.type},transaction:Ie,lineIds:Ie.type!=="journal_entry"?Ie.lines?.map(ze=>ze.id)??[]:[se.lineId]};Ce?.type==="customer"?v(se.amount.amount,$e,!1,e,Ce,Le,z):C(se.amount.amount,$e,!1,e,Ce,Ee,z)}}return void s.onCancelAutoComplete?.()}}})(ne,Y))});return()=>{q.unsubscribe()}}),g.useEffect(()=>{if(a.entityAutoCompleteView.fetchState==="Completed"){const q=n.transactionLocalData.find(Y=>Y.transactionId===j.transactionId);if(q){const{transactionReviewLocalData:Y}=q,{selectedEntity:ne}=Y,oe=j?.lineItemId??Y.sortedLineItems[0],ee=Y.lineItemById[oe],te=ee.selectedEntityLine;E.current?.(n$(a.entityAutoCompleteView,ne??te,ee?.recommendationsWithCOT??[]))}A({transactionId:void 0,lineItemId:void 0})}},[a.entityAutoCompleteView.fetchState]);const Q=g.useRef(null);return t.jsx(Sar,{ref:Q,"data-testid":K("transaction-categorization-list-page"),children:t.jsx(Ln,{...G,children:t.jsx("form",{id:PWe(Oee),onSubmit:H,style:{height:"100%",width:"100%"},"data-testid":K(PWe(Oee)),children:t.jsx(oar,{isAccountingClassesEnabled:c,isTransactionActivityEnabled:u,selectedTab:e,sectionId:i,transactionView:n,authParams:o,setCurrentTransactionInAction:A,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:x,onFetchTransactionCategorizationList:y,onTransactionCategorizationRowClick:m,vendorLoadOptions:(q,Y)=>{s.onAutoCompleteInputChange?.(q),E.current=Y},vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:s,containerRef:Q,isCOTEnabled:d,cotTracking:{onCOTView:(q,Y,ne,oe)=>{const ee={...L.current};ee[Y]==null&&(ee[Y]=[]);let te=ee[Y].findIndex(ie=>ie.lineId===q);if(te===-1){const ie={lineId:q,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};ee[Y].push(ie),te=ee[Y].length-1}else{const ie=ee[Y][te];ee[Y][te]={...ie,category:{...ie.category,recommendationTypesViewed:[...ie.category.recommendationTypesViewed]},class:{...ie.class,recommendationTypesViewed:[...ie.class.recommendationTypesViewed]},vendor:{...ie.vendor,recommendationTypesViewed:[...ie.vendor.recommendationTypesViewed]}}}oe!=null&&oe!==""&&!ee[Y][te][ne].recommendationTypesViewed.includes(oe)&&ee[Y][te][ne].recommendationTypesViewed.push(oe),L.current=ee}},isUncategorizedExpenseCategoryEnabled:z,setActivityLogTransactionId:$,onUploadTransactionReceipt:k})})})})},PWe=e=>`${e}_form`,BWe=(e,n,o,i,a)=>({[B8]:n.map(s=>Car(s.transactionId,s.transactionReviewLocalData,o,i,a)),[Q_]:e}),Car=(e,n,o,i,a)=>{const{lineItemById:s,sortedLineItems:c,selectedEntity:d}=n,u=Object.values(s).sort((h,m)=>c.indexOf(h.lineId)-c.indexOf(m.lineId)),p=u[0]?.lineId;return{[V5t]:u.map(h=>{const m=h.account?.qboId??h.account?.accountId,f=h.class?.classId,x=h.selectedEntityLine;return{id:h.id,transactionId:h.transactionId,type:h.type,amount:h.amount,lineDetailType:h.lineDetailType,platformLineDetailType:h.platformLineDetailType,lineTransactionType:h.lineTransactionType,postingType:h.postingType,postingTypeName:h.postingTypeName,customer:h.customer,vendor:h.vendor,billable:h.billable,item:h.item,isCategoryMiscategorized:h.isCategoryMiscategorized,isClassMiscategorized:h.isClassMiscategorized,lineId:h.id,[xs]:{selectedOption:m,allOptions:dH(o,h.recommendationsWithCOT)},[wp]:{selectedOption:f,allOptions:uH(i,h.recommendationsWithCOT)},[tm]:{selectedOption:d?.id??x?.id??d?.name??x?.name,defaultOptions:n$(a,d??x,n.lineItemById[p]?.recommendationsWithCOT??[])},[Zir]:h.lineEntity,[Jir]:h.recommendationsWithCOT??[]}}),transactionId:e,[Xir]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[err]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},Sar=l.div`
|
|
67359
67359
|
display: flex;
|
|
67360
67360
|
width: 100%;
|
|
67361
67361
|
height: 100%;
|
|
@@ -73352,7 +73352,7 @@ ${Ca.beneficiaryAddress} ${ne}`,d(xe),I(!0)})(o),"data-testid":K("title-text-cop
|
|
|
73352
73352
|
display: flex;
|
|
73353
73353
|
min-height: 100%;
|
|
73354
73354
|
flex-direction: column;
|
|
73355
|
-
`,X7r=()=>{const[e,n]=g.useState(()=>vi.getSignedInUser()),o=t3(),[i,a]=g.useState(!1),[s,c]=g.useState(!1),d=fi(m=>Yqe(m).fetchState),u=fi(m=>Nu(m));g.useEffect(()=>{const m=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(m)},[e]);const p=g.useCallback(()=>{const m=vi.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(m)?m:f)},[]);g.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),g.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(_8t(u.companyId))},[d,u.companyId,o]);const h=g.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Bt.jsxs(g.Fragment,{children:[s&&Bt.jsx(xde,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Bt.jsx(Z7r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},MYe="init-enter",e6r=g.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=n.get(o||MYe);t6r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||MYe,c=n6r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),t6r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),n6r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},I6t=g.createContext(void 0),o6r=({children:e})=>{const{tenantEmailDomain:n}=dxt(),o=n!=null?vi.getSignedInUserTenant(n):void 0,i=fi(u=>Nu(u)),a=AI().tenantId,s=o?.tenantId,c=i?.tenantId,d=g.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Bt.jsx(I6t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},oyr=()=>{const e=g.useContext(I6t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},D0=e=>g.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}}),L6t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),T6t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),D6t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),P6t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Yl(...e){const n=yc==="DEV"||yc==="QA";if(L6t||T6t||D6t||P6t)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 Jv(...e){const n=yc==="DEV"||yc==="QA";if(L6t||T6t||D6t||P6t)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 SC=null,ij=!1;const ql=yc==="PROD"?"https://api.zeni.ai":yc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function _Ye(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 i6r={dashboard:function(e){return[..._Ye()]},reports:_Ye,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 zYe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,i6r[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 OYe(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,m)=>{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)):m(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 Jv("[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,m)=>p[h.priority]-p[m.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=AI(),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){Jv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else Jv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function r6r({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:m=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=g.useState(!1),[b,w]=g.useState(!1),C=g.useRef(null),v=Xh(),$=vi.getSignedInUser(),{useFeatureGate:k}=rs(),{isFeatureEnabled:j}=k(qi.isReferralFeatureEnabled),A=hn(),E=S7(A?.loggedInUserRole??[]),L=fi(R=>Nu(R)),{isFeatureEnabled:I}=k(qi.isDebitCardFeatureEnabled),_=Vqe(I,L),z=Nqe(L),M=_===!1&&z===!1;return g.useEffect(()=>{if(!c||x||!$||!o)return;const R=zYe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:M,companyId:L?.companyId??"",isPageIndependent:m}),N=m?"dashboard":n;if(R.length===0)return void Yl(`[Prefetch Provider - ${N}${m?" (base)":""}] No URLs to prefetch`);Yl(`[Prefetch Provider - ${N}${m?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch`);const O=setTimeout(()=>{OYe(R,i,a).catch(F=>{Jv(`[Prefetch Provider - ${N}${m?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,$,o,n,u,p,j,E,M,L?.companyId,m,i,a,s,v.pathname]),g.useEffect(()=>{y(!1)},[o,v.pathname]),g.useEffect(()=>{m||(y(!1),w(!1))},[v.pathname,m]),g.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&$&&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=()=>{ij&&(Yl("[Idle Detection - Service Worker] 🏃 User became active again"),ij=!1),SC&&clearTimeout(SC),SC=setTimeout(()=>{ij||(Yl("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),ij=!0,F())},O)},U=["mousedown","mousemove","keypress","scroll","touchstart","click"];return U.forEach(V=>{document.addEventListener(V,P,!0)}),P(),()=>{Yl("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),SC&&(clearTimeout(SC),SC=null),U.forEach(V=>{document.removeEventListener(V,P,!0)}),ij=!1}}({timeout:h,onIdle:()=>{if(b)return;Yl("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=zYe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:M,companyId:L.companyId,isPageIndependent:m,isIdleCallEnabled:!0}),O=m?"dashboard":n;N.length!==0?(Yl(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),OYe(N,i,a).catch(F=>{Jv(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):Yl(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=R,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,$,o,b,n,u,p,j,E,M,L.companyId,m,i,a]),g.useEffect(()=>{w(!1)},[o]),g.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){Jv("[Prefetch Provider] Failed to notify service worker of refresh:",R)}}())},[]),Bt.jsx(Bt.Fragment,{children:e})}function a6r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=Xh(),u=fi(y=>Nu(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 m=u.tenantId,{useFeatureGate:f}=rs(),{isFeatureEnabled:x}=f(qi.isServiceWorkerPrefetchingEnabled);return m&&p?Bt.jsx(r6r,{currentPage:p,tenantId:m,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Bt.jsx(Bt.Fragment,{children:e})}function l6r(e,n){const o=ro.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const s6r=D0(()=>Hd(()=>import("./DefaultTenantHome-DlneJXmh.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),FYe=D0(()=>Hd(()=>Promise.resolve().then(()=>L7r),void 0)),RYe=D0(()=>Hd(()=>import("./ScreenRoutes-DHRRpjB0.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),c6r=D0(()=>Hd(()=>import("./ConnectionAuthScreen-Ba4cIzn3.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),d6r=D0(()=>Hd(()=>import("./SignInScreen-C0lNsIe4.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),u6r=D0(()=>Hd(()=>import("./MagicLinkSignInScreen-CLVah6RB.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),NYe=D0(()=>Hd(()=>import("./NotFoundScreen-CLbpaFRJ.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),p6r=D0(()=>Hd(()=>import("./MagicLinkRoutes-7Kk-vZgW.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),h6r=D0(()=>Hd(()=>import("./WiseConfirmationScreen-Jo50UPm3.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),m6r=D0(()=>Hd(()=>import("./CustomerOnboardingAuthScreen-CD6W8O0B.js"),__vite__mapDeps([24,1,2,0,12,8,13,14,15,16,5,17,7]))),g6r=D0(()=>Hd(()=>import("./SignOutScreen-Bi-9EAnk.js"),__vite__mapDeps([25,1,2,0,5,7,8]))),f6r=D0(()=>Hd(()=>import("./OAuthConsentScreen-MRpg6Yeq.js"),__vite__mapDeps([26,1,2,0,5,7,8]))),x6r=()=>{const e=Xh(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=l6r("/",n);return Bt.jsx(oqe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function VYe(){const{isOpen:e}=ub(),n=S4n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=tW(),a=g.useRef(!1),s=g.useRef(o),c=g.useRef(!1);return g.useLayoutEffect(()=>{const d=o&&!s.current;s.current=o,d&&e&&(i(!1),n(),c.current=!0)},[o,e,i,n]),g.useEffect(()=>{e&&!a.current&&(c.current=!1,o&&i(!1)),a.current=e},[e,o,i]),g.useEffect(()=>{!e&&c.current&&(c.current=!1,i(!0))},[e,i]),null}const y6r=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=vi.isSignedIn(),i=fi(M=>Nu(M)),a=vi.getSignedInUser(),s=o&&C4(a),c=fi(M=>z8t(M)).tenantsBaseInOrder.map(M=>({companyId:M.companyId,tenantId:M.tenantId,companyName:M.companyName})),d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i.tenantId??""},u=t3(),p=pc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Zue(),m=k6t(),[f,x]=g.useState(!1),[y,b]=g.useState(null),w=g.useMemo(()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b}),[f,y,x,b]),{useFeatureGate:C}=rs(),{isFeatureEnabled:v}=C(qi.isAiCfoFileUploadEnabled),{isFeatureEnabled:$}=C(qi.isBillPayCommentingEnabled),{isFeatureEnabled:k}=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 g.useEffect(()=>{!h&&f&&x(!1)},[h,f]),g.useEffect(()=>{h||u(O8t())},[u,h]),Bt.jsx(v4n,{children:i.tenantId!=null?Bt.jsx(ZNi,{roomId:`dashboard_${i.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${OS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${OS.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:Bt.jsxs(qae.Provider,{value:w,children:[Bt.jsx(VYe,{}),Bt.jsxs(WYe,{children:[Bt.jsx(FYe,{tenantEmailDomain:e}),Bt.jsx(UYe,{children:Bt.jsx(HYe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:m,isAiCfoFileUploadEnabled:v})})]})]})}):Bt.jsx(XNi,{children:Bt.jsxs(qae.Provider,{value:w,children:[Bt.jsx(VYe,{}),Bt.jsxs(WYe,{children:[Bt.jsx(FYe,{tenantEmailDomain:e}),Bt.jsx(UYe,{children:Bt.jsx(HYe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:m,isAiCfoFileUploadEnabled:v})})]})]})})})},HYe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=fi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=rs(),{configValue:c}=s(L2.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}=nW(),{isAiCfoOpen:m,setIsAiCfoOpen:f}=tW();return g.useEffect(()=>{h(epe.APP_INITIALIZATION)},[h]),Bt.jsx(g.Suspense,{fallback:null,children:Bt.jsx(a6r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Bt.jsxs(uxt,{children:[Bt.jsx(Ku,{path:"/magic_links/*",element:Bt.jsx(p6r,{})}),Bt.jsx(Ku,{path:"/wise/callback/link-account/*",element:Bt.jsx(h6r,{})}),Bt.jsx(Ku,{path:"/page-not-found",element:Bt.jsx(NYe,{})}),Bt.jsx(Ku,{path:"/",element:Bt.jsx(s6r,{})}),Bt.jsx(Ku,{path:"/aicfo",element:Bt.jsx(x6r,{})}),Bt.jsx(Ku,{path:"/onboarding/auth",element:Bt.jsx(m6r,{})}),Bt.jsx(Ku,{path:"/:tenantEmailDomain/*",element:Bt.jsxs(C6r,{children:[Bt.jsx(v6r,{children:Bt.jsxs(o6r,{children:[a!=null?Bt.jsx(X7r,{}):null,n?Bt.jsx(RYe,{setTenantEmailDomain:e}):Bt.jsx(Jte,{children:Bt.jsx(RYe,{setTenantEmailDomain:e})})]})}),o?Bt.jsx(S6r,{isOpen:m,children:Bt.jsx(H7r,{isOpen:m,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Bt.jsx(Ku,{path:"/signin/auth",element:Bt.jsx(Jte,{children:Bt.jsx(d6r,{setTenantEmailDomain:e})})}),Bt.jsx(Ku,{path:"/signin/magic-link",element:Bt.jsx(Jte,{children:Bt.jsx(u6r,{})})}),Bt.jsx(Ku,{path:"/signout",element:Bt.jsx(g6r,{})}),Bt.jsx(Ku,{path:"/connection/auth",element:Bt.jsx(c6r,{})}),Bt.jsx(Ku,{path:"/oauth/authorize",element:Bt.jsx(f6r,{})}),Bt.jsx(Ku,{path:"*",element:Bt.jsx(NYe,{})})]})})})},UYe=({children:e})=>{const{isOpen:n,width:o}=ub();return Bt.jsx(w6r,{commentsDrawerWidth:n?o:0,children:e})},b6r=Bn("div")`
|
|
73355
|
+
`,X7r=()=>{const[e,n]=g.useState(()=>vi.getSignedInUser()),o=t3(),[i,a]=g.useState(!1),[s,c]=g.useState(!1),d=fi(m=>Yqe(m).fetchState),u=fi(m=>Nu(m));g.useEffect(()=>{const m=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(m)},[e]);const p=g.useCallback(()=>{const m=vi.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(m)?m:f)},[]);g.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),g.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(_8t(u.companyId))},[d,u.companyId,o]);const h=g.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Bt.jsxs(g.Fragment,{children:[s&&Bt.jsx(xde,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Bt.jsx(Z7r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},MYe="init-enter",e6r=g.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=n.get(o||MYe);t6r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||MYe,c=n6r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),t6r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),n6r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},I6t=g.createContext(void 0),o6r=({children:e})=>{const{tenantEmailDomain:n}=dxt(),o=n!=null?vi.getSignedInUserTenant(n):void 0,i=fi(u=>Nu(u)),a=AI().tenantId,s=o?.tenantId,c=i?.tenantId,d=g.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Bt.jsx(I6t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},oyr=()=>{const e=g.useContext(I6t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},D0=e=>g.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}}),L6t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),T6t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),D6t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),P6t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Yl(...e){const n=yc==="DEV"||yc==="QA";if(L6t||T6t||D6t||P6t)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 Jv(...e){const n=yc==="DEV"||yc==="QA";if(L6t||T6t||D6t||P6t)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 SC=null,ij=!1;const ql=yc==="PROD"?"https://api.zeni.ai":yc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function _Ye(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 i6r={dashboard:function(e){return[..._Ye()]},reports:_Ye,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 zYe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,i6r[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 OYe(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,m)=>{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)):m(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 Jv("[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,m)=>p[h.priority]-p[m.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=AI(),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){Jv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else Jv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function r6r({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:m=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=g.useState(!1),[b,w]=g.useState(!1),C=g.useRef(null),v=Xh(),$=vi.getSignedInUser(),{useFeatureGate:k}=rs(),{isFeatureEnabled:j}=k(qi.isReferralFeatureEnabled),A=hn(),E=S7(A?.loggedInUserRole??[]),L=fi(R=>Nu(R)),{isFeatureEnabled:I}=k(qi.isDebitCardFeatureEnabled),_=Vqe(I,L),z=Nqe(L),M=_===!1&&z===!1;return g.useEffect(()=>{if(!c||x||!$||!o)return;const R=zYe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:M,companyId:L?.companyId??"",isPageIndependent:m}),N=m?"dashboard":n;if(R.length===0)return void Yl(`[Prefetch Provider - ${N}${m?" (base)":""}] No URLs to prefetch`);Yl(`[Prefetch Provider - ${N}${m?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch`);const O=setTimeout(()=>{OYe(R,i,a).catch(F=>{Jv(`[Prefetch Provider - ${N}${m?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,$,o,n,u,p,j,E,M,L?.companyId,m,i,a,s,v.pathname]),g.useEffect(()=>{y(!1)},[o,v.pathname]),g.useEffect(()=>{m||(y(!1),w(!1))},[v.pathname,m]),g.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&$&&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=()=>{ij&&(Yl("[Idle Detection - Service Worker] 🏃 User became active again"),ij=!1),SC&&clearTimeout(SC),SC=setTimeout(()=>{ij||(Yl("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),ij=!0,F())},O)},U=["mousedown","mousemove","keypress","scroll","touchstart","click"];return U.forEach(V=>{document.addEventListener(V,P,!0)}),P(),()=>{Yl("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),SC&&(clearTimeout(SC),SC=null),U.forEach(V=>{document.removeEventListener(V,P,!0)}),ij=!1}}({timeout:h,onIdle:()=>{if(b)return;Yl("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=zYe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:M,companyId:L.companyId,isPageIndependent:m,isIdleCallEnabled:!0}),O=m?"dashboard":n;N.length!==0?(Yl(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),OYe(N,i,a).catch(F=>{Jv(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):Yl(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=R,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,$,o,b,n,u,p,j,E,M,L.companyId,m,i,a]),g.useEffect(()=>{w(!1)},[o]),g.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){Jv("[Prefetch Provider] Failed to notify service worker of refresh:",R)}}())},[]),Bt.jsx(Bt.Fragment,{children:e})}function a6r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=Xh(),u=fi(y=>Nu(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 m=u.tenantId,{useFeatureGate:f}=rs(),{isFeatureEnabled:x}=f(qi.isServiceWorkerPrefetchingEnabled);return m&&p?Bt.jsx(r6r,{currentPage:p,tenantId:m,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Bt.jsx(Bt.Fragment,{children:e})}function l6r(e,n){const o=ro.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const s6r=D0(()=>Hd(()=>import("./DefaultTenantHome-gdhC8rFn.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),FYe=D0(()=>Hd(()=>Promise.resolve().then(()=>L7r),void 0)),RYe=D0(()=>Hd(()=>import("./ScreenRoutes-q84xLWb1.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),c6r=D0(()=>Hd(()=>import("./ConnectionAuthScreen-DQHN7Yil.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),d6r=D0(()=>Hd(()=>import("./SignInScreen-B6ywBnJ6.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),u6r=D0(()=>Hd(()=>import("./MagicLinkSignInScreen-Cq-_I3N7.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),NYe=D0(()=>Hd(()=>import("./NotFoundScreen-DnYi4Alo.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),p6r=D0(()=>Hd(()=>import("./MagicLinkRoutes-CJq_o8r6.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),h6r=D0(()=>Hd(()=>import("./WiseConfirmationScreen-iZmAunYq.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),m6r=D0(()=>Hd(()=>import("./CustomerOnboardingAuthScreen-DWZf1W12.js"),__vite__mapDeps([24,1,2,0,12,8,13,14,15,16,5,17,7]))),g6r=D0(()=>Hd(()=>import("./SignOutScreen-syLC8-ZX.js"),__vite__mapDeps([25,1,2,0,5,7,8]))),f6r=D0(()=>Hd(()=>import("./OAuthConsentScreen-C4y7IeaO.js"),__vite__mapDeps([26,1,2,0,5,7,8]))),x6r=()=>{const e=Xh(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=l6r("/",n);return Bt.jsx(oqe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function VYe(){const{isOpen:e}=ub(),n=S4n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=tW(),a=g.useRef(!1),s=g.useRef(o),c=g.useRef(!1);return g.useLayoutEffect(()=>{const d=o&&!s.current;s.current=o,d&&e&&(i(!1),n(),c.current=!0)},[o,e,i,n]),g.useEffect(()=>{e&&!a.current&&(c.current=!1,o&&i(!1)),a.current=e},[e,o,i]),g.useEffect(()=>{!e&&c.current&&(c.current=!1,i(!0))},[e,i]),null}const y6r=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=vi.isSignedIn(),i=fi(M=>Nu(M)),a=vi.getSignedInUser(),s=o&&C4(a),c=fi(M=>z8t(M)).tenantsBaseInOrder.map(M=>({companyId:M.companyId,tenantId:M.tenantId,companyName:M.companyName})),d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i.tenantId??""},u=t3(),p=pc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Zue(),m=k6t(),[f,x]=g.useState(!1),[y,b]=g.useState(null),w=g.useMemo(()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b}),[f,y,x,b]),{useFeatureGate:C}=rs(),{isFeatureEnabled:v}=C(qi.isAiCfoFileUploadEnabled),{isFeatureEnabled:$}=C(qi.isBillPayCommentingEnabled),{isFeatureEnabled:k}=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 g.useEffect(()=>{!h&&f&&x(!1)},[h,f]),g.useEffect(()=>{h||u(O8t())},[u,h]),Bt.jsx(v4n,{children:i.tenantId!=null?Bt.jsx(ZNi,{roomId:`dashboard_${i.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${OS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${OS.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:Bt.jsxs(qae.Provider,{value:w,children:[Bt.jsx(VYe,{}),Bt.jsxs(WYe,{children:[Bt.jsx(FYe,{tenantEmailDomain:e}),Bt.jsx(UYe,{children:Bt.jsx(HYe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:m,isAiCfoFileUploadEnabled:v})})]})]})}):Bt.jsx(XNi,{children:Bt.jsxs(qae.Provider,{value:w,children:[Bt.jsx(VYe,{}),Bt.jsxs(WYe,{children:[Bt.jsx(FYe,{tenantEmailDomain:e}),Bt.jsx(UYe,{children:Bt.jsx(HYe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:m,isAiCfoFileUploadEnabled:v})})]})]})})})},HYe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=fi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=rs(),{configValue:c}=s(L2.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}=nW(),{isAiCfoOpen:m,setIsAiCfoOpen:f}=tW();return g.useEffect(()=>{h(epe.APP_INITIALIZATION)},[h]),Bt.jsx(g.Suspense,{fallback:null,children:Bt.jsx(a6r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Bt.jsxs(uxt,{children:[Bt.jsx(Ku,{path:"/magic_links/*",element:Bt.jsx(p6r,{})}),Bt.jsx(Ku,{path:"/wise/callback/link-account/*",element:Bt.jsx(h6r,{})}),Bt.jsx(Ku,{path:"/page-not-found",element:Bt.jsx(NYe,{})}),Bt.jsx(Ku,{path:"/",element:Bt.jsx(s6r,{})}),Bt.jsx(Ku,{path:"/aicfo",element:Bt.jsx(x6r,{})}),Bt.jsx(Ku,{path:"/onboarding/auth",element:Bt.jsx(m6r,{})}),Bt.jsx(Ku,{path:"/:tenantEmailDomain/*",element:Bt.jsxs(C6r,{children:[Bt.jsx(v6r,{children:Bt.jsxs(o6r,{children:[a!=null?Bt.jsx(X7r,{}):null,n?Bt.jsx(RYe,{setTenantEmailDomain:e}):Bt.jsx(Jte,{children:Bt.jsx(RYe,{setTenantEmailDomain:e})})]})}),o?Bt.jsx(S6r,{isOpen:m,children:Bt.jsx(H7r,{isOpen:m,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Bt.jsx(Ku,{path:"/signin/auth",element:Bt.jsx(Jte,{children:Bt.jsx(d6r,{setTenantEmailDomain:e})})}),Bt.jsx(Ku,{path:"/signin/magic-link",element:Bt.jsx(Jte,{children:Bt.jsx(u6r,{})})}),Bt.jsx(Ku,{path:"/signout",element:Bt.jsx(g6r,{})}),Bt.jsx(Ku,{path:"/connection/auth",element:Bt.jsx(c6r,{})}),Bt.jsx(Ku,{path:"/oauth/authorize",element:Bt.jsx(f6r,{})}),Bt.jsx(Ku,{path:"*",element:Bt.jsx(NYe,{})})]})})})},UYe=({children:e})=>{const{isOpen:n,width:o}=ub();return Bt.jsx(w6r,{commentsDrawerWidth:n?o:0,children:e})},b6r=Bn("div")`
|
|
73356
73356
|
display:flex;
|
|
73357
73357
|
`,WYe=Bn("div")`
|
|
73358
73358
|
display: flex;
|