@zeniai/web-app-ui 5.3.98-dev → 5.3.98-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/{AccountMappingScreen-DkipdeBd.js → AccountMappingScreen-CsvIh3pU.js} +1 -1
- package/dist/assets/{ActualMatchingMatchDetailScreen-Yq3IhSD1.js → ActualMatchingMatchDetailScreen-BeyJfzoq.js} +1 -1
- package/dist/assets/AddressRoutes-DlDhfbdO.js +1 -0
- package/dist/assets/{AddressScreen-SveIGGcZ.js → AddressScreen-xlCgJTb4.js} +1 -1
- package/dist/assets/{AiCfoScreen-C0a5Kz2R.js → AiCfoScreen-jcAGVejP.js} +1 -1
- package/dist/assets/{AppDrawer-iCXzB-Zx.js → AppDrawer-B6XGm--J.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CO68g4sl.js → BillPayApprovalRoutes-CWaHbHoJ.js} +1 -1
- package/dist/assets/{BillPayRoutes-9Bp55PZY.js → BillPayRoutes-BXSQK4Z1.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-BEKu1sS6.js → BusinessVerificationPageScreen-B2MzrRz9.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-Do3B6xOK.js → CardsAiCfoScreen-D7eizM_e.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-TfS6URYe.js → ChargeCardRoutes-CHKFOxrs.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-CzgRbofg.js → CompanyPassportScreen-Dk-3Eud9.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-BwEBh9bB.js → ConnectionAuthScreen-H57FpfA5.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Bga-XNUf.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-B6z9gODa.js → CustomerOnboardingRoutes-n-9HOpeM.js} +1 -1
- package/dist/assets/{DashboardRoutes-DvqewcQi.js → DashboardRoutes-BdEdFLmK.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DHj0LZf2.js → DefaultTenantHome-C-xDsqWH.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-NsnrfBbI.js → DomesticWireDetailScreen-DtE2OBa7.js} +1 -1
- package/dist/assets/{DrawerScreen-C-sU_EBz.js → DrawerScreen-g7gMvOCC.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-Cd9AUwPz.js → EntityDetailRoutes-CuFBFS-c.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-B-LCmWX6.js → ExpenseAutomationRoutes-XTTRYQTO.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-DHsaAADF.js → FeaturePreviewScreen-ocxt03Zk.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-CqtvTlMw.js → HubSpotOAuthCallbackScreen-BtBx3Urb.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-BbgapV9e.js → InboxNotificationsProvider-Db8GSYr5.js} +1 -1
- package/dist/assets/{InvoicingRoutes-CteMwomX.js → InvoicingRoutes-BEEsHk_H.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CjOGoDmF.js → MagicLinkRoutes-Dj9i4Hr2.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-Csaci2Yg.js → MagicLinkSignInScreen-C6hfbFq3.js} +1 -1
- package/dist/assets/{MobileAppDrawer-Dzg3ZYKF.js → MobileAppDrawer-D9_9MdJz.js} +1 -1
- package/dist/assets/NotFoundScreen-C9HgOUVr.js +1 -0
- package/dist/assets/{NotificationRoutes-zC1-rHQB.js → NotificationRoutes-DJGhb-22.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-BGX1agKv.js → OAuthConsentScreen-B3Frt3xZ.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CITu_u8l.js → PandLWithForecastRoutes-BVhl9s7m.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-_UAo_fsM.js → PaymentLinkScreen-C6K4l799.js} +1 -1
- package/dist/assets/{PeopleRoutes-B9Skn948.js → PeopleRoutes-DcnEXgK1.js} +1 -1
- package/dist/assets/{PerformanceRoutes-Bw19vP5H.js → PerformanceRoutes-CPPduOhh.js} +1 -1
- package/dist/assets/{Preview-CuBMxPUC.js → Preview-Dmk92_3R.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DHNNL8-f.js → QBOConnectionScreen-w89pHWnf.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-BgKx8N_6.js → ReimbursementApprovalRoutes-C4rWwmOK.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C-jZxtX5.js → ReimbursementApprovalRuleDetailScreen-C5VRjOUn.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-1GgOF6-S.js → ReimbursementRoutes-xmP1sf5g.js} +1 -1
- package/dist/assets/{ReportsRoutes-DDrHQIpT.js → ReportsRoutes-B3kIWCeV.js} +1 -1
- package/dist/assets/{RewardsRoutes-BDo_jXck.js → RewardsRoutes-B0ffV2tU.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-Co9SdTEQ.js → ScheduleDetailsPrepaidExpensesScreen-edh3y6eB.js} +1 -1
- package/dist/assets/{ScreenRoutes-5TQ3QdBJ.js → ScreenRoutes-BXmr-cb0.js} +2 -2
- package/dist/assets/{SettingsRoutes--Mb2rkVX.js → SettingsRoutes-DP3k31bS.js} +1 -1
- package/dist/assets/{SetupPagesScreen-E1ySiMh3.js → SetupPagesScreen-CxoDK6yX.js} +1 -1
- package/dist/assets/{SignInScreen-cOdJloLh.js → SignInScreen-iAhBMOUT.js} +1 -1
- package/dist/assets/{SignOutScreen-D3furmi9.js → SignOutScreen-MC6Mvo1b.js} +1 -1
- package/dist/assets/{TaskListScreen-DgOpvPPF.js → TaskListScreen-CfRSt11Z.js} +1 -1
- package/dist/assets/{TaskRoutes-BPBfVKWi.js → TaskRoutes-Bsl06EUw.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-D82kBzWU.js +1 -0
- package/dist/assets/{TransactionDetailScreen-CEmYD0Tg.js → TransactionDetailScreen-DEfBPk22.js} +1 -1
- package/dist/assets/{TransactionListRoutes-BzcrVUiM.js → TransactionListRoutes-Cf10-jIo.js} +1 -1
- package/dist/assets/{TreasuryRoutes-Dpl0kdhr.js → TreasuryRoutes-CUsBc54k.js} +1 -1
- package/dist/assets/{VendorsRoutes-Bc6Bj7xz.js → VendorsRoutes-VjUFmibF.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-iFg0baoI.js → WiseConfirmationScreen-BLzh4txk.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-BJVsLkSB.js → ZeniAccountRoutes-CCtz7FC8.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-zPoNSIDN.js → ZeniAccountStatementScreen-CYxLDv4m.js} +1 -1
- package/dist/assets/{accountMappingHelper-DTvekvpS.js → accountMappingHelper-DLreHlS2.js} +1 -1
- package/dist/assets/{analytics-DgsLc9VO.js → analytics-DOu6Ih_Z.js} +1 -1
- package/dist/assets/{analyticsHelper-sTbcNkFd.js → analyticsHelper-Bjsf9R5q.js} +1 -1
- package/dist/assets/{core-wa4jvXau.js → core-Dx-yNdOO.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CIevgEwa.js → decodeURIComponentSafe-gD0LryXw.js} +1 -1
- package/dist/assets/{dnd-Cbngon1O.js → dnd-DfkYz8Zm.js} +1 -1
- package/dist/assets/{empty-BLA-Ut17.js → empty-D1pJjZqZ.js} +1 -1
- package/dist/assets/{empty-DGZZ0Isy.js → empty-D2eoN5PS.js} +1 -1
- package/dist/assets/{emptyVideoElement-IpJePceg.js → emptyVideoElement-BfILpxFo.js} +1 -1
- package/dist/assets/{epic-DgP8mAwL.js → epic-BWvBjvXV.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-B9h6s4MU.js → expenseAutomationHelper--OaaBO01.js} +1 -1
- package/dist/assets/{getLocaleForTenant-B2kDgrkF.js → getLocaleForTenant-CCedhKv9.js} +1 -1
- package/dist/assets/{index-4Nv-4tI_.js → index-BJmkm_zf.js} +1 -1
- package/dist/assets/{index-BGcr7M3t.js → index-BN_JNPW3.js} +8 -8
- package/dist/assets/{index-h9Yx7xG4.js → index-C19xNC89.js} +1 -1
- package/dist/assets/{index-8CGije3n.js → index-CAZwNpzy.js} +2 -2
- package/dist/assets/{index-S7x3Q8ir.js → index-CFth-nEE.js} +1 -1
- package/dist/assets/{index-D4oD0Zwi.js → index-CfVtthD8.js} +1 -1
- package/dist/assets/{index-Dsfoke68.js → index-Cp3PWInT.js} +1 -1
- package/dist/assets/{index-DSayiUiZ.js → index-D2mWQKs0.js} +1 -1
- package/dist/assets/{lexical-BhCVvQ5e.js → lexical-CeKyhyV8.js} +1 -1
- package/dist/assets/{liveblocks-S_bQ6bIM.js → liveblocks-BlNqAXG4.js} +1 -1
- package/dist/assets/{lottie-CMd-N9jH.js → lottie-CICLPim-.js} +1 -1
- package/dist/assets/{mui-Ci0HQ48M.js → mui-DicWBIpH.js} +1 -1
- package/dist/assets/{pathToGoBack-BQ4U7b_1.js → pathToGoBack-BzzMe8-p.js} +1 -1
- package/dist/assets/{pdf-OHT1WZQx.js → pdf-BwuxCG-0.js} +3 -3
- package/dist/assets/{pdf-lib-B91RK-F0.js → pdf-lib-BK2JzciQ.js} +1 -1
- package/dist/assets/{plaid-BWdXQkCk.js → plaid-BW55_XuJ.js} +1 -1
- package/dist/assets/{pusher-8A5uNu4P.js → pusher-CYljAxCY.js} +1 -1
- package/dist/assets/{react--GqNzBLX.js → react-BRFjbln3.js} +1 -1
- package/dist/assets/{react-BxAOQlUv.js → react-C0TfUb2o.js} +1 -1
- package/dist/assets/{react-CG53JZQx.js → react-CoUnzBTV.js} +1 -1
- package/dist/assets/{react-CbVqKv24.js → react-DZ74qEy0.js} +1 -1
- package/dist/assets/{react-B_sF0JCy.js → react-Dl4MB9dn.js} +1 -1
- package/dist/assets/{react-DkS5-yyq.js → react-R2WFHHNj.js} +1 -1
- package/dist/assets/{recharts-Dwi7DT-C.js → recharts-DkhthbKK.js} +1 -1
- package/dist/assets/{routePaths-CEJABH0C.js → routePaths-P47RCoW6.js} +1 -1
- package/dist/assets/{sentry-BU5jEr8h.js → sentry-oO1cMYln.js} +1 -1
- package/dist/assets/{stripSplatSuffix-1d8c6YLM.js → stripSplatSuffix-DUyz4jOZ.js} +1 -1
- package/dist/assets/{url-BPQU9fEv.js → url-1v6FOp1K.js} +1 -1
- package/dist/assets/{url-zU7Z4CO_.js → url-Hqju5Y0N.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-BF3bwUO7.js → useActualMatchingMatchDetail-CR2SRNcX.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-Dut4uoVw.js → useAiCfoDashboardSuggestedQuestionsChips-CQ8NCzd2.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CZ-JbWqQ.js → useAskAiCfoHostNavButtonProps-BOks8lHg.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-BloaCcy0.js → useChargeCardPusherEvents-CCCFXoUc.js} +1 -1
- package/dist/assets/{useDeviceId-D7PzfQ-u.js → useDeviceId-CLaYnGNC.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BO75ukY9.js → useEmailConnectResultRefresh-C_lu7Qr7.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-ZafvGlm9.js → useInitialThreadRequest-J-yGGXi5.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-DpldujcE.js → useTaskManagerAccess-Ces4QXd0.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-CowYG4es.js → useTaskManagerPusherEvents-C9HPPvD2.js} +1 -1
- package/dist/assets/{utils-Zs4lusR-.js → utils-vB0Nm3XK.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-BPZ1XJCd.js → withTransactionSidePanel-BGYKHHLT.js} +1 -1
- package/dist/assets/{zeni-epic-state-lWD60tIp.js → zeni-epic-state-DU8p9Pr6.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AddressRoutes-C6aHDBRx.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-DxbrkI4o.js +0 -1
- package/dist/assets/NotFoundScreen-CSyRIHbc.js +0 -1
- package/dist/assets/TransactionDetailRoutes-BdBwnPUo.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-
|
|
2
|
-
import{R as B,b as E5e,a as m,r as t0,g as pwt,p as mre,d as Kke,f as Nin,s as Zke,i as _in,w as Vin,j as Hin,S as Uin,k as Win,l as Qin,m as Yin,n as Gin,o as qin,q as Kin}from"./sentry-BU5jEr8h.js";import{L as Zin,C as Jke,_ as Up,a as Jin,b as mz,c as Xin,d as uee,e as gz,u as hwt,T as eon,f as ton,g as non,h as ion,i as oon,k as mwt,l as ron,m as aon,j as tn}from"./liveblocks-S_bQ6bIM.js";import{f as gwt,r as ka,P as Bl,R as son,O as lon,N as fwt,u as Tp,g as Mg,h as pee,i as xwt,j as zr,m as e8e,s as iK,k as ywt,l as con,n as don,o as H1,p as uon,B as pon}from"./core-wa4jvXau.js";import{L as Xke,bl as hon,bm as mon,bn as fz,bo as gon,bp as fon,bq as ms,br as Yt,bs as KD,bt as bwt,bu as F3,bv as xon,bw as ny,bx as $s,by as yon,bz as bon,bA as won,bB as P1,bC as Op,bD as nR,bE as y9,bF as xn,bG as wwt,bH as $1,bI as Sa,bJ as YI,bK as Cwt,bL as vwt,bM as t8e,bN as k5,bO as Ou,bP as v7,bQ as Con,bR as Ac,bS as von,bT as ZD,bU as Aon,bV as Son,bW as oK,bX as kon,bY as jon,bZ as rK,b_ as $on,b$ as Eon,c0 as b9,c1 as eje,c2 as Ion,c3 as Don,c4 as Ton,c5 as Lon,c6 as Bon,c7 as Pon,c8 as Mon,c9 as A7,ca as hee,cb as Oon,cc as mee,cd as gee,ce as fee,cf as n8e,cg as vA,ch as AA,ci as xz,cj as GI,ck as qI,cl as SA,cm as xee,cn as Gv,co as Fon,cp as tje,cq as Ron,cr as zon,cs as Non,ct as _on,cu as Awt,cv as Von,cw as Hon,cx as tw,cy as nje,cz as Uon,cA as Won,cB as Qon,cC as oS,cD as rS,cE as Swt,cF as kwt,cG as i8e,cH as Yon,cI as jwt,cJ as Gon,cK as aK,cL as $wt,cM as qon,cN as Ewt,cO as Kon,cP as TM,cQ as Zon,cR as Jon,cS as ije,cT as Xon,cU as o8e,cV as r8e,cW as ern,cX as trn,cY as nrn,cZ as irn,c_ as a_,c$ as KI,d0 as s_,d1 as orn,d2 as rrn,d3 as Iwt,d4 as arn,d5 as srn,d6 as lrn,d7 as crn,d8 as drn,d9 as Dwt,da as oje,db as urn,dc as a8e,dd as prn,de as hrn,df as mrn,dg as Twt,dh as Jd,di as Ol,dj as yee,dk as grn,dl as frn,dm as b1,dn as Lwt,dp as xrn,dq as iR,dr as qv,ds as Ms,dt as rje,du as yrn,dv as brn,dw as wrn,dx as Bwt,dy as s8e,dz as l_,dA as Pwt,dB as Crn,dC as vrn,dD as Arn,dE as Srn,dF as krn,dG as dg,dH as jrn,dI as $rn,dJ as Ern,dK as Irn,dL as c_,dM as kA,dN as bee,dO as Drn,dP as Trn,dQ as aS,dR as E1,dS as Mwt,dT as Owt,dU as Lrn,dV as Fwt,dW as Brn,dX as Prn,dY as Mrn,dZ as Orn,d_ as JD,d$ as l8e,e0 as c8e,e1 as Frn,e2 as d8e,e3 as Rwt,e4 as zwt,e5 as Nwt,e6 as _wt,e7 as Vwt,e8 as Hwt,e9 as Rrn,_ as Cd,ea as XD,eb as zrn,ec as aje,ed as wee,ee as Nrn,ef as _rn,eg as Uwt,eh as Vrn,ei as BO,ej as d0,ek as S7,el as Wwt,em as Qwt,en as Hrn,eo as Ywt,ep as I5e,eq as Urn,er as SG,es as Wrn,et as Qrn,eu as Yrn,ev as Grn,ew as qrn,ex as Gwt,ey as qwt,ez as Krn,eA as Zrn,eB as Kwt,eC as PO,eD as MO,eE as Zwt,eF as Jrn,eG as Xrn,eH as u8e,eI as ean,eJ as tan,eK as nan,eL as p8e,eM as Jwt,eN as Xwt,eO as h8e,eP as eT,eQ as Cee,eR as m8e,eS as g8e,eT as f8e,eU as x8e,eV as ian,eW as oan,eX as eCt,eY as sje,eZ as ran,e_ as aan,e$ as I1,f0 as san,f1 as vee,f2 as tCt,f3 as nCt,f4 as lan,f5 as y8e,f6 as b8e,f7 as can,f8 as dan,f9 as uan,fa as pan,fb as han,fc as man,fd as Sg,fe as lje,ff as iCt,fg as gan,fh as fan,fi as xan,fj as oCt,fk as rCt,fl as aCt,fm as sCt,fn as lCt,fo as cCt,fp as yan,fq as ZI,fr as ban,fs as wan,ft as Can,fu as van,fv as dCt,fw as uCt,fx as cje,fy as dje,fz as Aan,fA as San,fB as uje,fC as pje,fD as kan,fE as jan,fF as D5e,fG as $an,v as Ean,fH as Aee,fI as Fp,fJ as pCt,fK as hCt,fL as Ian,fM as Dan,fN as hje,fO as Tan,fP as Lan,fQ as Ban,fR as Pan,fS as Man,fT as Oan,fU as Fan,fV as Ran,fW as zan,fX as Nan,fY as _an,fZ as Van,f_ as Han,f$ as Uan,g0 as Wan,g1 as Qan,g2 as Yan,g3 as Gan,g4 as qan,g5 as mje,g6 as Kan,g7 as Zan,g8 as Jan,g9 as Xan,ga as esn,gb as mCt,gc as See,gd as w8e,ge as gCt,gf as tsn,gg as nsn,gh as isn,gi as fCt,gj as gje,gk as xCt,gl as yCt,gm as osn,gn as bCt,go as wCt,gp as rsn,gq as asn,gr as T5e,gs as ssn,gt as OO,gu as lsn,gv as csn,gw as dsn,gx as usn,gy as psn,gz as hsn,gA as msn,gB as gsn,gC as fsn,gD as xsn,gE as ysn,gF as bsn,gG as CCt,gH as wsn,gI as Csn,gJ as vsn,gK as fje,gL as Asn,gM as Ssn,gN as ksn,gO as jsn,gP as $sn,gQ as Esn,gR as Isn,gS as vCt,gT as ACt,gU as Dsn,gV as SCt,gW as Tsn,gX as Lsn,gY as L5e,gZ as Bsn,g_ as Psn,g$ as Msn,h0 as Osn,h1 as Fsn,h2 as Rsn,h3 as xje,h4 as zsn,h5 as Nsn,h6 as _sn}from"./zeni-epic-state-lWD60tIp.js";import{j as Po,c as Ee,k as pi,a as yje,b as kCt,C as jCt,T as Vsn,M as Hsn,n as a,u as Pe,d as ci,e as $Ct,G as kee,A as bje,R as Usn,D as Wc,F as Wsn,f as sK,g as B5e,P as R3,h as Qsn,S as jee,i as Ysn,l as Gsn,m as oR,o as qsn,s as sS,p as Ksn}from"./mui-Ci0HQ48M.js";import{r as Zsn,m as ig}from"./analytics-DgsLc9VO.js";import{u as O1}from"./plaid-BWdXQkCk.js";import{D as C8e,H as $ee,g as Jsn,O as Xsn,S as eln,T as tln,u as v8e,a as A8e,b as nln}from"./dnd-Cbngon1O.js";import{l as S8e}from"./stripe-cKAAJElX.js";import{L as cI}from"./lottie-CMd-N9jH.js";import{r as Qc}from"./lexical-BhCVvQ5e.js";import{D as P5e,P as M5e,_ as ECt,a as ICt}from"./pdf-OHT1WZQx.js";import{R as jA,G as w9,H as Rp,X as Hl,Y as Cl,I as xd,J as C9,K as Y9,L as Kv,M as Ru,N as tT,O as DCt,P as iln,Q as oln,S as Eee,U as rln,V as k8e,W as aln,Z as sln,_ as lln,d as cln}from"./recharts-Dwi7DT-C.js";import{r as dln,n as wje}from"./utils-Zs4lusR-.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]="782e6db9-9c18-4cf3-832a-b23df56f72e9",e._sentryDebugIdIdentifier="sentry-dbid-782e6db9-9c18-4cf3-832a-b23df56f72e9")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver((i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)})).observe(document,{childList:!0,subtree:!0})}function n(i){if(i.ep)return;i.ep=!0;const r=(function(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l})(i);fetch(i.href,r)}})();var Cje,d_={},uln=(function(){if(Cje)return d_;Cje=1;var e=gwt();return d_.createRoot=e.createRoot,d_.hydrateRoot=e.hydrateRoot,d_})(),Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof E5e<"u"?E5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vje,Aje,Sje={exports:{}},lL={};function TCt(){return Aje||(Aje=1,Sje.exports=(function(){if(vje)return lL;vje=1;var e=B,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)r.call(u,h)&&!l.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:s.current}}return lL.Fragment=i,lL.jsx=c,lL.jsxs=c,lL})()),Sje.exports}var t=TCt();const pln=m.createContext(null),gre={didCatch:!1,error:null};let hln=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=gre}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,i,r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:s,reason:"imperative-api"}),this.setState(gre)}}componentDidCatch(e,n){var i,r;(i=(r=this.props).onError)===null||i===void 0||i.call(r,e,n)}componentDidUpdate(e,n){const{didCatch:i}=this.state,{resetKeys:r}=this.props;var s,l;i&&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,r)&&((s=(l=this.props).onReset)===null||s===void 0||s.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(gre))}render(){const{children:e,fallbackRender:n,FallbackComponent:i,fallback:r}=this.props,{didCatch:s,error:l}=this.state;let c=e;if(s){const d={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(i)c=m.createElement(i,d);else{if(r===void 0)throw l;c=r}}return m.createElement(pln.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var kje,jje,$je,fre,Eje,Ije,Dje,Tje,Lje,xre={exports:{}};function mln(){return kje||(kje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(xre.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(G){s=!!G},d=function(){return s},u=function(G){r=G},p=function(){return r};function h(G){return document.createElement(G)}function g(G,X){var pe,xe,Ce=G.length;for(pe=0;pe<Ce;pe+=1)for(var $e in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,$e)&&(X.prototype[$e]=xe[$e])}function f(G){function X(){}return X.prototype=G,X}var x=(function(){function G(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return G.prototype={addAudio:function(X){this.audios.push(X)},pause:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].pause()},resume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].resume()},setRate:function(X){var pe,xe=this.audios.length;for(pe=0;pe<xe;pe+=1)this.audios[pe].setRate(X)},createAudio:function(X){return this.audioFactory?this.audioFactory(X):window.Howl?new window.Howl({src:[X]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(X){this.audioFactory=X},setVolume:function(X){this._volume=X,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].volume(this._volume*(this._isMuted?0:1))}},function(){return new G}})(),y=(function(){function G(pe,xe){var Ce,$e=0,Me=[];switch(pe){case"int16":case"uint8c":Ce=1;break;default:Ce=1.1}for($e=0;$e<xe;$e+=1)Me.push(Ce);return Me}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):G(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:G})();function b(G){return Array.apply(null,{length:G})}var w=!0,C=null,v="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function O(G,X,pe,xe){this.type=G,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(G,X){this.type=G,this.direction=X<0?-1:1}function _(G,X,pe,xe){this.type=G,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(G,X,pe){this.type=G,this.firstFrame=X,this.totalFrames=pe}function T(G,X){this.type=G,this.target=X}function M(G,X){this.type="renderFrameError",this.nativeError=G,this.currentTime=X}function F(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function V(G,X,pe){var xe,Ce,$e,Me,We,Qe,Ot,Kt;switch(Qe=pe*(1-X),Ot=pe*(1-(We=6*G-(Me=Math.floor(6*G)))*X),Kt=pe*(1-(1-We)*X),Me%6){case 0:xe=pe,Ce=Kt,$e=Qe;break;case 1:xe=Ot,Ce=pe,$e=Qe;break;case 2:xe=Qe,Ce=pe,$e=Kt;break;case 3:xe=Qe,Ce=Ot,$e=pe;break;case 4:xe=Kt,Ce=Qe,$e=pe;break;case 5:xe=pe,Ce=Qe,$e=Ot}return[xe,Ce,$e]}function W(G,X,pe){var xe,Ce=Math.max(G,X,pe),$e=Math.min(G,X,pe),Me=Ce-$e,We=Ce===0?0:Me/Ce,Qe=Ce/255;switch(Ce){case $e:xe=0;break;case G:xe=X-pe+Me*(X<pe?6:0),xe/=6*Me;break;case X:xe=pe-G+2*Me,xe/=6*Me;break;case pe:xe=G-X+4*Me,xe/=6*Me}return[xe,We,Qe]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),V(pe[0],pe[1],pe[2])}function Y(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[2]+=X,pe[2]>1?pe[2]=1:pe[2]<0&&(pe[2]=0),V(pe[0],pe[1],pe[2])}function q(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[0]+=X/360,pe[0]>1?pe[0]-=1:pe[0]<0&&(pe[0]+=1),V(pe[0],pe[1],pe[2])}(function(){var G,X,pe=[];for(G=0;G<256;G+=1)X=G.toString(16),pe[G]=X.length===1?"0"+X:X})();var K=function(G){w=!!G},J=function(){return w},ee=function(G){C=G},te=function(){return C},ne=function(G){E=G},se=function(){return E},re=function(G){v=G};function le(G){return document.createElementNS(i,G)}function me(G){return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},me(G)}var ue=(function(){var G,X,pe=1,xe=[],Ce={onmessage:function(){},postMessage:function(ct){G({data:ct})}},$e={postMessage:function(ct){Ce.onmessage({data:ct})}};function Me(ct){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",ct.toString()],{type:"text/javascript"}),Et=URL.createObjectURL(Ct);return new Worker(Et)}return G=ct,Ce}function We(){X||(X=Me((function(ct){function Ct(){function Gt(zt,gn){var gt,rt,ze,dt,wt,gi,Ko=zt.length;for(rt=0;rt<Ko;rt+=1)if("ks"in(gt=zt[rt])&&!gt.completed){if(gt.completed=!0,gt.hasMask){var Bo=gt.masksProperties;for(dt=Bo.length,ze=0;ze<dt;ze+=1)if(Bo[ze].pt.k.i)qe(Bo[ze].pt.k);else for(gi=Bo[ze].pt.k.length,wt=0;wt<gi;wt+=1)Bo[ze].pt.k[wt].s&&qe(Bo[ze].pt.k[wt].s[0]),Bo[ze].pt.k[wt].e&&qe(Bo[ze].pt.k[wt].e[0])}gt.ty===0?(gt.layers=Ve(gt.refId,gn),Gt(gt.layers,gn)):gt.ty===4?Ne(gt.shapes):gt.ty===5&&qo(gt)}}function Jt(zt,gn){if(zt){var gt=0,rt=zt.length;for(gt=0;gt<rt;gt+=1)zt[gt].t===1&&(zt[gt].data.layers=Ve(zt[gt].data.refId,gn),Gt(zt[gt].data.layers,gn))}}function Je(zt,gn){for(var gt=0,rt=gn.length;gt<rt;){if(gn[gt].id===zt)return gn[gt];gt+=1}return null}function Ve(zt,gn){var gt=Je(zt,gn);return gt?gt.layers.__used?JSON.parse(JSON.stringify(gt.layers)):(gt.layers.__used=!0,gt.layers):null}function Ne(zt){var gn,gt,rt;for(gn=zt.length-1;gn>=0;gn-=1)if(zt[gn].ty==="sh")if(zt[gn].ks.k.i)qe(zt[gn].ks.k);else for(rt=zt[gn].ks.k.length,gt=0;gt<rt;gt+=1)zt[gn].ks.k[gt].s&&qe(zt[gn].ks.k[gt].s[0]),zt[gn].ks.k[gt].e&&qe(zt[gn].ks.k[gt].e[0]);else zt[gn].ty==="gr"&&Ne(zt[gn].it)}function qe(zt){var gn,gt=zt.i.length;for(gn=0;gn<gt;gn+=1)zt.i[gn][0]+=zt.v[gn][0],zt.i[gn][1]+=zt.v[gn][1],zt.o[gn][0]+=zt.v[gn][0],zt.o[gn][1]+=zt.v[gn][1]}function mt(zt,gn){var gt=gn?gn.split("."):[100,100,100];return zt[0]>gt[0]||!(gt[0]>zt[0])&&(zt[1]>gt[1]||!(gt[1]>zt[1])&&(zt[2]>gt[2]||!(gt[2]>zt[2])&&null))}var rn=(function(){var zt=[4,4,14];function gn(rt){var ze=rt.t.d;rt.t.d={k:[{s:ze,t:0}]}}function gt(rt){var ze,dt=rt.length;for(ze=0;ze<dt;ze+=1)rt[ze].ty===5&&gn(rt[ze])}return function(rt){if(mt(zt,rt.v)&&(gt(rt.layers),rt.assets)){var ze,dt=rt.assets.length;for(ze=0;ze<dt;ze+=1)rt.assets[ze].layers&>(rt.assets[ze].layers)}}})(),cn=(function(){var zt=[4,7,99];return function(gn){if(gn.chars&&!mt(zt,gn.v)){var gt,rt=gn.chars.length;for(gt=0;gt<rt;gt+=1){var ze=gn.chars[gt];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},gn.chars[gt].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),Ft=(function(){var zt=[5,7,15];function gn(rt){var ze=rt.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function gt(rt){var ze,dt=rt.length;for(ze=0;ze<dt;ze+=1)rt[ze].ty===5&&gn(rt[ze])}return function(rt){if(mt(zt,rt.v)&&(gt(rt.layers),rt.assets)){var ze,dt=rt.assets.length;for(ze=0;ze<dt;ze+=1)rt.assets[ze].layers&>(rt.assets[ze].layers)}}})(),po=(function(){var zt=[4,1,9];function gn(rt){var ze,dt,wt,gi=rt.length;for(ze=0;ze<gi;ze+=1)if(rt[ze].ty==="gr")gn(rt[ze].it);else if(rt[ze].ty==="fl"||rt[ze].ty==="st")if(rt[ze].c.k&&rt[ze].c.k[0].i)for(wt=rt[ze].c.k.length,dt=0;dt<wt;dt+=1)rt[ze].c.k[dt].s&&(rt[ze].c.k[dt].s[0]/=255,rt[ze].c.k[dt].s[1]/=255,rt[ze].c.k[dt].s[2]/=255,rt[ze].c.k[dt].s[3]/=255),rt[ze].c.k[dt].e&&(rt[ze].c.k[dt].e[0]/=255,rt[ze].c.k[dt].e[1]/=255,rt[ze].c.k[dt].e[2]/=255,rt[ze].c.k[dt].e[3]/=255);else rt[ze].c.k[0]/=255,rt[ze].c.k[1]/=255,rt[ze].c.k[2]/=255,rt[ze].c.k[3]/=255}function gt(rt){var ze,dt=rt.length;for(ze=0;ze<dt;ze+=1)rt[ze].ty===4&&gn(rt[ze].shapes)}return function(rt){if(mt(zt,rt.v)&&(gt(rt.layers),rt.assets)){var ze,dt=rt.assets.length;for(ze=0;ze<dt;ze+=1)rt.assets[ze].layers&>(rt.assets[ze].layers)}}})(),jo=(function(){var zt=[4,4,18];function gn(rt){var ze,dt,wt;for(ze=rt.length-1;ze>=0;ze-=1)if(rt[ze].ty==="sh")if(rt[ze].ks.k.i)rt[ze].ks.k.c=rt[ze].closed;else for(wt=rt[ze].ks.k.length,dt=0;dt<wt;dt+=1)rt[ze].ks.k[dt].s&&(rt[ze].ks.k[dt].s[0].c=rt[ze].closed),rt[ze].ks.k[dt].e&&(rt[ze].ks.k[dt].e[0].c=rt[ze].closed);else rt[ze].ty==="gr"&&gn(rt[ze].it)}function gt(rt){var ze,dt,wt,gi,Ko,Bo,wa=rt.length;for(dt=0;dt<wa;dt+=1){if((ze=rt[dt]).hasMask){var Zo=ze.masksProperties;for(gi=Zo.length,wt=0;wt<gi;wt+=1)if(Zo[wt].pt.k.i)Zo[wt].pt.k.c=Zo[wt].cl;else for(Bo=Zo[wt].pt.k.length,Ko=0;Ko<Bo;Ko+=1)Zo[wt].pt.k[Ko].s&&(Zo[wt].pt.k[Ko].s[0].c=Zo[wt].cl),Zo[wt].pt.k[Ko].e&&(Zo[wt].pt.k[Ko].e[0].c=Zo[wt].cl)}ze.ty===4&&gn(ze.shapes)}}return function(rt){if(mt(zt,rt.v)&&(gt(rt.layers),rt.assets)){var ze,dt=rt.assets.length;for(ze=0;ze<dt;ze+=1)rt.assets[ze].layers&>(rt.assets[ze].layers)}}})();function li(zt){zt.__complete||(po(zt),rn(zt),cn(zt),Ft(zt),jo(zt),Gt(zt.layers,zt.assets),Jt(zt.chars,zt.assets),zt.__complete=!0)}function qo(zt){zt.t.a.length===0&&zt.t.p}var lo={};return lo.completeData=li,lo.checkColors=po,lo.checkChars=cn,lo.checkPathProperties=Ft,lo.checkShapes=jo,lo.completeLayers=Gt,lo}if($e.dataManager||($e.dataManager=Ct()),$e.assetLoader||($e.assetLoader=(function(){function Gt(Je){var Ve=Je.getResponseHeader("content-type");return Ve&&Je.responseType==="json"&&Ve.indexOf("json")!==-1||Je.response&&me(Je.response)==="object"?Je.response:Je.response&&typeof Je.response=="string"?JSON.parse(Je.response):Je.responseText?JSON.parse(Je.responseText):null}function Jt(Je,Ve,Ne,qe){var mt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)mt=Gt(rn),Ne(mt);else try{mt=Gt(rn),Ne(mt)}catch(cn){qe&&qe(cn)}};try{rn.open(["G","E","T"].join(""),Je,!0)}catch{rn.open(["G","E","T"].join(""),Ve+"/"+Je,!0)}rn.send()}return{load:Jt}})()),ct.data.type==="loadAnimation")$e.assetLoader.load(ct.data.path,ct.data.fullPath,(function(Gt){$e.dataManager.completeData(Gt),$e.postMessage({id:ct.data.id,payload:Gt,status:"success"})}),(function(){$e.postMessage({id:ct.data.id,status:"error"})}));else if(ct.data.type==="complete"){var Et=ct.data.animation;$e.dataManager.completeData(Et),$e.postMessage({id:ct.data.id,payload:Et,status:"success"})}else ct.data.type==="loadData"&&$e.assetLoader.load(ct.data.path,ct.data.fullPath,(function(Gt){$e.postMessage({id:ct.data.id,payload:Gt,status:"success"})}),(function(){$e.postMessage({id:ct.data.id,status:"error"})}))})),X.onmessage=function(ct){var Ct=ct.data,Et=Ct.id,Gt=xe[Et];xe[Et]=null,Ct.status==="success"?Gt.onComplete(Ct.payload):Gt.onError&&Gt.onError()})}function Qe(ct,Ct){var Et="processId_"+(pe+=1);return xe[Et]={onComplete:ct,onError:Ct},Et}function Ot(ct,Ct,Et){We();var Gt=Qe(Ct,Et);X.postMessage({type:"loadAnimation",path:ct,fullPath:window.location.origin+window.location.pathname,id:Gt})}function Kt(ct,Ct,Et){We();var Gt=Qe(Ct,Et);X.postMessage({type:"loadData",path:ct,fullPath:window.location.origin+window.location.pathname,id:Gt})}function et(ct,Ct,Et){We();var Gt=Qe(Ct,Et);X.postMessage({type:"complete",animation:ct,id:Gt})}return{loadAnimation:Ot,loadData:Kt,completeAnimation:et}})(),oe=(function(){var G=(function(){var Je=h("canvas");Je.width=1,Je.height=1;var Ve=Je.getContext("2d");return Ve.fillStyle="rgba(0,0,0,0)",Ve.fillRect(0,0,1,1),Je})();function X(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function pe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function xe(Je,Ve,Ne){var qe="";if(Je.e)qe=Je.p;else if(Ve){var mt=Je.p;mt.indexOf("images/")!==-1&&(mt=mt.split("/")[1]),qe=Ve+mt}else qe=Ne,qe+=Je.u?Je.u:"",qe+=Je.p;return qe}function Ce(Je){var Ve=0,Ne=setInterval((function(){(Je.getBBox().width||Ve>500)&&(this._imageLoaded(),clearInterval(Ne)),Ve+=1}).bind(this),50)}function $e(Je){var Ve=xe(Je,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",Ve),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Je};return qe}function Me(Je){var Ve=xe(Je,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=Ve;var qe={img:Ne,assetData:Je};return qe}function We(Je){var Ve={assetData:Je},Ne=xe(Je,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){Ve.img=qe,this._footageLoaded()}).bind(this),(function(){Ve.img={},this._footageLoaded()}).bind(this)),Ve}function Qe(Je,Ve){this.imagesLoadedCb=Ve;var Ne,qe=Je.length;for(Ne=0;Ne<qe;Ne+=1)Je[Ne].layers||(Je[Ne].t&&Je[Ne].t!=="seq"?Je[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Je[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Je[Ne]))))}function Ot(Je){this.path=Je||""}function Kt(Je){this.assetsPath=Je||""}function et(Je){for(var Ve=0,Ne=this.images.length;Ve<Ne;){if(this.images[Ve].assetData===Je)return this.images[Ve].img;Ve+=1}return null}function ct(){this.imagesLoadedCb=null,this.images.length=0}function Ct(){return this.totalImages===this.loadedAssets}function Et(){return this.totalFootages===this.loadedFootagesCount}function Gt(Je,Ve){Je==="svg"?(this._elementHelper=Ve,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Jt(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ce.bind(this),this.createFootageData=We.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Jt.prototype={loadAssets:Qe,setAssetsPath:Kt,setPath:Ot,loadedImages:Ct,loadedFootages:Et,destroy:ct,getAsset:et,createImgData:Me,createImageData:$e,imageLoaded:X,footageLoaded:pe,setCacheType:Gt},Jt})();function ie(){}ie.prototype={triggerEvent:function(G,X){if(this._cbs[G])for(var pe=this._cbs[G],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(G,X){return this._cbs[G]||(this._cbs[G]=[]),this._cbs[G].push(X),(function(){this.removeEventListener(G,X)}).bind(this)},removeEventListener:function(G,X){if(X){if(this._cbs[G]){for(var pe=0,xe=this._cbs[G].length;pe<xe;)this._cbs[G][pe]===X&&(this._cbs[G].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[G].length||(this._cbs[G]=null)}}else this._cbs[G]=null}};var ce=(function(){function G(X){for(var pe,xe=X.split(`\r
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-DU8p9Pr6.js","assets/sentry-oO1cMYln.js","assets/core-Dx-yNdOO.js","assets/index-CAZwNpzy.js","assets/DefaultTenantHome-C-xDsqWH.js","assets/mui-DicWBIpH.js","assets/getLocaleForTenant-CCedhKv9.js","assets/analytics-DOu6Ih_Z.js","assets/utils-vB0Nm3XK.js","assets/AppDrawer-B6XGm--J.js","assets/InboxNotificationsProvider-Db8GSYr5.js","assets/useTaskManagerAccess-Ces4QXd0.js","assets/expenseAutomationHelper--OaaBO01.js","assets/ScreenRoutes-BXmr-cb0.js","assets/analyticsHelper-Bjsf9R5q.js","assets/ConnectionAuthScreen-H57FpfA5.js","assets/AccountMappingScreen-CsvIh3pU.js","assets/MobileAppDrawer-D9_9MdJz.js","assets/QBOConnectionScreen-w89pHWnf.js","assets/empty-D2eoN5PS.js","assets/index-BJmkm_zf.js","assets/url-Hqju5Y0N.js","assets/index-D2mWQKs0.js","assets/decodeURIComponentSafe-gD0LryXw.js","assets/accountMappingHelper-DLreHlS2.js","assets/SignInScreen-iAhBMOUT.js","assets/useDeviceId-CLaYnGNC.js","assets/MagicLinkSignInScreen-C6hfbFq3.js","assets/NotFoundScreen-C9HgOUVr.js","assets/MagicLinkRoutes-Dj9i4Hr2.js","assets/PaymentLinkScreen-C6K4l799.js","assets/WiseConfirmationScreen-BLzh4txk.js","assets/HubSpotOAuthCallbackScreen-BtBx3Urb.js","assets/CustomerOnboardingAuthScreen-Bga-XNUf.js","assets/SignOutScreen-MC6Mvo1b.js","assets/OAuthConsentScreen-B3Frt3xZ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as B,b as E5e,a as m,r as t0,g as pwt,p as mre,d as Kke,f as Nin,s as Zke,i as _in,w as Vin,j as Hin,S as Uin,k as Win,l as Qin,m as Yin,n as Gin,o as qin,q as Kin}from"./sentry-oO1cMYln.js";import{L as Zin,C as Jke,_ as Up,a as Jin,b as mz,c as Xin,d as uee,e as gz,u as hwt,T as eon,f as ton,g as non,h as ion,i as oon,k as mwt,l as ron,m as aon,j as tn}from"./liveblocks-BlNqAXG4.js";import{f as gwt,r as ka,P as Bl,R as son,O as lon,N as fwt,u as Tp,g as Mg,h as pee,i as xwt,j as zr,m as e8e,s as iK,k as ywt,l as con,n as don,o as H1,p as uon,B as pon}from"./core-Dx-yNdOO.js";import{L as Xke,bl as hon,bm as mon,bn as fz,bo as gon,bp as fon,bq as ms,br as Yt,bs as KD,bt as bwt,bu as F3,bv as xon,bw as ny,bx as $s,by as yon,bz as bon,bA as won,bB as P1,bC as Op,bD as nR,bE as y9,bF as xn,bG as wwt,bH as $1,bI as Sa,bJ as YI,bK as Cwt,bL as vwt,bM as t8e,bN as k5,bO as Ou,bP as v7,bQ as Con,bR as Ac,bS as von,bT as ZD,bU as Aon,bV as Son,bW as oK,bX as kon,bY as jon,bZ as rK,b_ as $on,b$ as Eon,c0 as b9,c1 as eje,c2 as Ion,c3 as Don,c4 as Ton,c5 as Lon,c6 as Bon,c7 as Pon,c8 as Mon,c9 as A7,ca as hee,cb as Oon,cc as mee,cd as gee,ce as fee,cf as n8e,cg as vA,ch as AA,ci as xz,cj as GI,ck as qI,cl as SA,cm as xee,cn as Gv,co as Fon,cp as tje,cq as Ron,cr as zon,cs as Non,ct as _on,cu as Awt,cv as Von,cw as Hon,cx as tw,cy as nje,cz as Uon,cA as Won,cB as Qon,cC as oS,cD as rS,cE as Swt,cF as kwt,cG as i8e,cH as Yon,cI as jwt,cJ as Gon,cK as aK,cL as $wt,cM as qon,cN as Ewt,cO as Kon,cP as TM,cQ as Zon,cR as Jon,cS as ije,cT as Xon,cU as o8e,cV as r8e,cW as ern,cX as trn,cY as nrn,cZ as irn,c_ as a_,c$ as KI,d0 as s_,d1 as orn,d2 as rrn,d3 as Iwt,d4 as arn,d5 as srn,d6 as lrn,d7 as crn,d8 as drn,d9 as Dwt,da as oje,db as urn,dc as a8e,dd as prn,de as hrn,df as mrn,dg as Twt,dh as Jd,di as Ol,dj as yee,dk as grn,dl as frn,dm as b1,dn as Lwt,dp as xrn,dq as iR,dr as qv,ds as Ms,dt as rje,du as yrn,dv as brn,dw as wrn,dx as Bwt,dy as s8e,dz as l_,dA as Pwt,dB as Crn,dC as vrn,dD as Arn,dE as Srn,dF as krn,dG as dg,dH as jrn,dI as $rn,dJ as Ern,dK as Irn,dL as c_,dM as kA,dN as bee,dO as Drn,dP as Trn,dQ as aS,dR as E1,dS as Mwt,dT as Owt,dU as Lrn,dV as Fwt,dW as Brn,dX as Prn,dY as Mrn,dZ as Orn,d_ as JD,d$ as l8e,e0 as c8e,e1 as Frn,e2 as d8e,e3 as Rwt,e4 as zwt,e5 as Nwt,e6 as _wt,e7 as Vwt,e8 as Hwt,e9 as Rrn,_ as Cd,ea as XD,eb as zrn,ec as aje,ed as wee,ee as Nrn,ef as _rn,eg as Uwt,eh as Vrn,ei as BO,ej as d0,ek as S7,el as Wwt,em as Qwt,en as Hrn,eo as Ywt,ep as I5e,eq as Urn,er as SG,es as Wrn,et as Qrn,eu as Yrn,ev as Grn,ew as qrn,ex as Gwt,ey as qwt,ez as Krn,eA as Zrn,eB as Kwt,eC as PO,eD as MO,eE as Zwt,eF as Jrn,eG as Xrn,eH as u8e,eI as ean,eJ as tan,eK as nan,eL as p8e,eM as Jwt,eN as Xwt,eO as h8e,eP as eT,eQ as Cee,eR as m8e,eS as g8e,eT as f8e,eU as x8e,eV as ian,eW as oan,eX as eCt,eY as sje,eZ as ran,e_ as aan,e$ as I1,f0 as san,f1 as vee,f2 as tCt,f3 as nCt,f4 as lan,f5 as y8e,f6 as b8e,f7 as can,f8 as dan,f9 as uan,fa as pan,fb as han,fc as man,fd as Sg,fe as lje,ff as iCt,fg as gan,fh as fan,fi as xan,fj as oCt,fk as rCt,fl as aCt,fm as sCt,fn as lCt,fo as cCt,fp as yan,fq as ZI,fr as ban,fs as wan,ft as Can,fu as van,fv as dCt,fw as uCt,fx as cje,fy as dje,fz as Aan,fA as San,fB as uje,fC as pje,fD as kan,fE as jan,fF as D5e,fG as $an,v as Ean,fH as Aee,fI as Fp,fJ as pCt,fK as hCt,fL as Ian,fM as Dan,fN as hje,fO as Tan,fP as Lan,fQ as Ban,fR as Pan,fS as Man,fT as Oan,fU as Fan,fV as Ran,fW as zan,fX as Nan,fY as _an,fZ as Van,f_ as Han,f$ as Uan,g0 as Wan,g1 as Qan,g2 as Yan,g3 as Gan,g4 as qan,g5 as mje,g6 as Kan,g7 as Zan,g8 as Jan,g9 as Xan,ga as esn,gb as mCt,gc as See,gd as w8e,ge as gCt,gf as tsn,gg as nsn,gh as isn,gi as fCt,gj as gje,gk as xCt,gl as yCt,gm as osn,gn as bCt,go as wCt,gp as rsn,gq as asn,gr as T5e,gs as ssn,gt as OO,gu as lsn,gv as csn,gw as dsn,gx as usn,gy as psn,gz as hsn,gA as msn,gB as gsn,gC as fsn,gD as xsn,gE as ysn,gF as bsn,gG as CCt,gH as wsn,gI as Csn,gJ as vsn,gK as fje,gL as Asn,gM as Ssn,gN as ksn,gO as jsn,gP as $sn,gQ as Esn,gR as Isn,gS as vCt,gT as ACt,gU as Dsn,gV as SCt,gW as Tsn,gX as Lsn,gY as L5e,gZ as Bsn,g_ as Psn,g$ as Msn,h0 as Osn,h1 as Fsn,h2 as Rsn,h3 as xje,h4 as zsn,h5 as Nsn,h6 as _sn}from"./zeni-epic-state-DU8p9Pr6.js";import{j as Po,c as Ee,k as pi,a as yje,b as kCt,C as jCt,T as Vsn,M as Hsn,n as a,u as Pe,d as ci,e as $Ct,G as kee,A as bje,R as Usn,D as Wc,F as Wsn,f as sK,g as B5e,P as R3,h as Qsn,S as jee,i as Ysn,l as Gsn,m as oR,o as qsn,s as sS,p as Ksn}from"./mui-DicWBIpH.js";import{r as Zsn,m as ig}from"./analytics-DOu6Ih_Z.js";import{u as O1}from"./plaid-BW55_XuJ.js";import{D as C8e,H as $ee,g as Jsn,O as Xsn,S as eln,T as tln,u as v8e,a as A8e,b as nln}from"./dnd-DfkYz8Zm.js";import{l as S8e}from"./stripe-cKAAJElX.js";import{L as cI}from"./lottie-CICLPim-.js";import{r as Qc}from"./lexical-CeKyhyV8.js";import{D as P5e,P as M5e,_ as ECt,a as ICt}from"./pdf-BwuxCG-0.js";import{R as jA,G as w9,H as Rp,X as Hl,Y as Cl,I as xd,J as C9,K as Y9,L as Kv,M as Ru,N as tT,O as DCt,P as iln,Q as oln,S as Eee,U as rln,V as k8e,W as aln,Z as sln,_ as lln,d as cln}from"./recharts-DkhthbKK.js";import{r as dln,n as wje}from"./utils-vB0Nm3XK.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]="1146d040-e375-4d52-96a3-5ca6d9147fef",e._sentryDebugIdIdentifier="sentry-dbid-1146d040-e375-4d52-96a3-5ca6d9147fef")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver((i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)})).observe(document,{childList:!0,subtree:!0})}function n(i){if(i.ep)return;i.ep=!0;const r=(function(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l})(i);fetch(i.href,r)}})();var Cje,d_={},uln=(function(){if(Cje)return d_;Cje=1;var e=gwt();return d_.createRoot=e.createRoot,d_.hydrateRoot=e.hydrateRoot,d_})(),Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof E5e<"u"?E5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vje,Aje,Sje={exports:{}},lL={};function TCt(){return Aje||(Aje=1,Sje.exports=(function(){if(vje)return lL;vje=1;var e=B,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)r.call(u,h)&&!l.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:s.current}}return lL.Fragment=i,lL.jsx=c,lL.jsxs=c,lL})()),Sje.exports}var t=TCt();const pln=m.createContext(null),gre={didCatch:!1,error:null};let hln=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=gre}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,i,r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:s,reason:"imperative-api"}),this.setState(gre)}}componentDidCatch(e,n){var i,r;(i=(r=this.props).onError)===null||i===void 0||i.call(r,e,n)}componentDidUpdate(e,n){const{didCatch:i}=this.state,{resetKeys:r}=this.props;var s,l;i&&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,r)&&((s=(l=this.props).onReset)===null||s===void 0||s.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(gre))}render(){const{children:e,fallbackRender:n,FallbackComponent:i,fallback:r}=this.props,{didCatch:s,error:l}=this.state;let c=e;if(s){const d={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(i)c=m.createElement(i,d);else{if(r===void 0)throw l;c=r}}return m.createElement(pln.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var kje,jje,$je,fre,Eje,Ije,Dje,Tje,Lje,xre={exports:{}};function mln(){return kje||(kje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(xre.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(G){s=!!G},d=function(){return s},u=function(G){r=G},p=function(){return r};function h(G){return document.createElement(G)}function g(G,X){var pe,xe,Ce=G.length;for(pe=0;pe<Ce;pe+=1)for(var $e in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,$e)&&(X.prototype[$e]=xe[$e])}function f(G){function X(){}return X.prototype=G,X}var x=(function(){function G(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return G.prototype={addAudio:function(X){this.audios.push(X)},pause:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].pause()},resume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].resume()},setRate:function(X){var pe,xe=this.audios.length;for(pe=0;pe<xe;pe+=1)this.audios[pe].setRate(X)},createAudio:function(X){return this.audioFactory?this.audioFactory(X):window.Howl?new window.Howl({src:[X]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(X){this.audioFactory=X},setVolume:function(X){this._volume=X,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].volume(this._volume*(this._isMuted?0:1))}},function(){return new G}})(),y=(function(){function G(pe,xe){var Ce,$e=0,Me=[];switch(pe){case"int16":case"uint8c":Ce=1;break;default:Ce=1.1}for($e=0;$e<xe;$e+=1)Me.push(Ce);return Me}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):G(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:G})();function b(G){return Array.apply(null,{length:G})}var w=!0,C=null,v="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function O(G,X,pe,xe){this.type=G,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(G,X){this.type=G,this.direction=X<0?-1:1}function _(G,X,pe,xe){this.type=G,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(G,X,pe){this.type=G,this.firstFrame=X,this.totalFrames=pe}function T(G,X){this.type=G,this.target=X}function M(G,X){this.type="renderFrameError",this.nativeError=G,this.currentTime=X}function F(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function V(G,X,pe){var xe,Ce,$e,Me,We,Qe,Ot,Kt;switch(Qe=pe*(1-X),Ot=pe*(1-(We=6*G-(Me=Math.floor(6*G)))*X),Kt=pe*(1-(1-We)*X),Me%6){case 0:xe=pe,Ce=Kt,$e=Qe;break;case 1:xe=Ot,Ce=pe,$e=Qe;break;case 2:xe=Qe,Ce=pe,$e=Kt;break;case 3:xe=Qe,Ce=Ot,$e=pe;break;case 4:xe=Kt,Ce=Qe,$e=pe;break;case 5:xe=pe,Ce=Qe,$e=Ot}return[xe,Ce,$e]}function W(G,X,pe){var xe,Ce=Math.max(G,X,pe),$e=Math.min(G,X,pe),Me=Ce-$e,We=Ce===0?0:Me/Ce,Qe=Ce/255;switch(Ce){case $e:xe=0;break;case G:xe=X-pe+Me*(X<pe?6:0),xe/=6*Me;break;case X:xe=pe-G+2*Me,xe/=6*Me;break;case pe:xe=G-X+4*Me,xe/=6*Me}return[xe,We,Qe]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),V(pe[0],pe[1],pe[2])}function Y(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[2]+=X,pe[2]>1?pe[2]=1:pe[2]<0&&(pe[2]=0),V(pe[0],pe[1],pe[2])}function q(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[0]+=X/360,pe[0]>1?pe[0]-=1:pe[0]<0&&(pe[0]+=1),V(pe[0],pe[1],pe[2])}(function(){var G,X,pe=[];for(G=0;G<256;G+=1)X=G.toString(16),pe[G]=X.length===1?"0"+X:X})();var K=function(G){w=!!G},J=function(){return w},ee=function(G){C=G},te=function(){return C},ne=function(G){E=G},se=function(){return E},re=function(G){v=G};function le(G){return document.createElementNS(i,G)}function me(G){return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},me(G)}var ue=(function(){var G,X,pe=1,xe=[],Ce={onmessage:function(){},postMessage:function(ct){G({data:ct})}},$e={postMessage:function(ct){Ce.onmessage({data:ct})}};function Me(ct){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",ct.toString()],{type:"text/javascript"}),Et=URL.createObjectURL(Ct);return new Worker(Et)}return G=ct,Ce}function We(){X||(X=Me((function(ct){function Ct(){function Gt(zt,gn){var gt,rt,ze,dt,wt,gi,Ko=zt.length;for(rt=0;rt<Ko;rt+=1)if("ks"in(gt=zt[rt])&&!gt.completed){if(gt.completed=!0,gt.hasMask){var Bo=gt.masksProperties;for(dt=Bo.length,ze=0;ze<dt;ze+=1)if(Bo[ze].pt.k.i)qe(Bo[ze].pt.k);else for(gi=Bo[ze].pt.k.length,wt=0;wt<gi;wt+=1)Bo[ze].pt.k[wt].s&&qe(Bo[ze].pt.k[wt].s[0]),Bo[ze].pt.k[wt].e&&qe(Bo[ze].pt.k[wt].e[0])}gt.ty===0?(gt.layers=Ve(gt.refId,gn),Gt(gt.layers,gn)):gt.ty===4?Ne(gt.shapes):gt.ty===5&&qo(gt)}}function Jt(zt,gn){if(zt){var gt=0,rt=zt.length;for(gt=0;gt<rt;gt+=1)zt[gt].t===1&&(zt[gt].data.layers=Ve(zt[gt].data.refId,gn),Gt(zt[gt].data.layers,gn))}}function Je(zt,gn){for(var gt=0,rt=gn.length;gt<rt;){if(gn[gt].id===zt)return gn[gt];gt+=1}return null}function Ve(zt,gn){var gt=Je(zt,gn);return gt?gt.layers.__used?JSON.parse(JSON.stringify(gt.layers)):(gt.layers.__used=!0,gt.layers):null}function Ne(zt){var gn,gt,rt;for(gn=zt.length-1;gn>=0;gn-=1)if(zt[gn].ty==="sh")if(zt[gn].ks.k.i)qe(zt[gn].ks.k);else for(rt=zt[gn].ks.k.length,gt=0;gt<rt;gt+=1)zt[gn].ks.k[gt].s&&qe(zt[gn].ks.k[gt].s[0]),zt[gn].ks.k[gt].e&&qe(zt[gn].ks.k[gt].e[0]);else zt[gn].ty==="gr"&&Ne(zt[gn].it)}function qe(zt){var gn,gt=zt.i.length;for(gn=0;gn<gt;gn+=1)zt.i[gn][0]+=zt.v[gn][0],zt.i[gn][1]+=zt.v[gn][1],zt.o[gn][0]+=zt.v[gn][0],zt.o[gn][1]+=zt.v[gn][1]}function mt(zt,gn){var gt=gn?gn.split("."):[100,100,100];return zt[0]>gt[0]||!(gt[0]>zt[0])&&(zt[1]>gt[1]||!(gt[1]>zt[1])&&(zt[2]>gt[2]||!(gt[2]>zt[2])&&null))}var rn=(function(){var zt=[4,4,14];function gn(rt){var ze=rt.t.d;rt.t.d={k:[{s:ze,t:0}]}}function gt(rt){var ze,dt=rt.length;for(ze=0;ze<dt;ze+=1)rt[ze].ty===5&&gn(rt[ze])}return function(rt){if(mt(zt,rt.v)&&(gt(rt.layers),rt.assets)){var ze,dt=rt.assets.length;for(ze=0;ze<dt;ze+=1)rt.assets[ze].layers&>(rt.assets[ze].layers)}}})(),cn=(function(){var zt=[4,7,99];return function(gn){if(gn.chars&&!mt(zt,gn.v)){var gt,rt=gn.chars.length;for(gt=0;gt<rt;gt+=1){var ze=gn.chars[gt];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},gn.chars[gt].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),Ft=(function(){var zt=[5,7,15];function gn(rt){var ze=rt.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function gt(rt){var ze,dt=rt.length;for(ze=0;ze<dt;ze+=1)rt[ze].ty===5&&gn(rt[ze])}return function(rt){if(mt(zt,rt.v)&&(gt(rt.layers),rt.assets)){var ze,dt=rt.assets.length;for(ze=0;ze<dt;ze+=1)rt.assets[ze].layers&>(rt.assets[ze].layers)}}})(),po=(function(){var zt=[4,1,9];function gn(rt){var ze,dt,wt,gi=rt.length;for(ze=0;ze<gi;ze+=1)if(rt[ze].ty==="gr")gn(rt[ze].it);else if(rt[ze].ty==="fl"||rt[ze].ty==="st")if(rt[ze].c.k&&rt[ze].c.k[0].i)for(wt=rt[ze].c.k.length,dt=0;dt<wt;dt+=1)rt[ze].c.k[dt].s&&(rt[ze].c.k[dt].s[0]/=255,rt[ze].c.k[dt].s[1]/=255,rt[ze].c.k[dt].s[2]/=255,rt[ze].c.k[dt].s[3]/=255),rt[ze].c.k[dt].e&&(rt[ze].c.k[dt].e[0]/=255,rt[ze].c.k[dt].e[1]/=255,rt[ze].c.k[dt].e[2]/=255,rt[ze].c.k[dt].e[3]/=255);else rt[ze].c.k[0]/=255,rt[ze].c.k[1]/=255,rt[ze].c.k[2]/=255,rt[ze].c.k[3]/=255}function gt(rt){var ze,dt=rt.length;for(ze=0;ze<dt;ze+=1)rt[ze].ty===4&&gn(rt[ze].shapes)}return function(rt){if(mt(zt,rt.v)&&(gt(rt.layers),rt.assets)){var ze,dt=rt.assets.length;for(ze=0;ze<dt;ze+=1)rt.assets[ze].layers&>(rt.assets[ze].layers)}}})(),jo=(function(){var zt=[4,4,18];function gn(rt){var ze,dt,wt;for(ze=rt.length-1;ze>=0;ze-=1)if(rt[ze].ty==="sh")if(rt[ze].ks.k.i)rt[ze].ks.k.c=rt[ze].closed;else for(wt=rt[ze].ks.k.length,dt=0;dt<wt;dt+=1)rt[ze].ks.k[dt].s&&(rt[ze].ks.k[dt].s[0].c=rt[ze].closed),rt[ze].ks.k[dt].e&&(rt[ze].ks.k[dt].e[0].c=rt[ze].closed);else rt[ze].ty==="gr"&&gn(rt[ze].it)}function gt(rt){var ze,dt,wt,gi,Ko,Bo,wa=rt.length;for(dt=0;dt<wa;dt+=1){if((ze=rt[dt]).hasMask){var Zo=ze.masksProperties;for(gi=Zo.length,wt=0;wt<gi;wt+=1)if(Zo[wt].pt.k.i)Zo[wt].pt.k.c=Zo[wt].cl;else for(Bo=Zo[wt].pt.k.length,Ko=0;Ko<Bo;Ko+=1)Zo[wt].pt.k[Ko].s&&(Zo[wt].pt.k[Ko].s[0].c=Zo[wt].cl),Zo[wt].pt.k[Ko].e&&(Zo[wt].pt.k[Ko].e[0].c=Zo[wt].cl)}ze.ty===4&&gn(ze.shapes)}}return function(rt){if(mt(zt,rt.v)&&(gt(rt.layers),rt.assets)){var ze,dt=rt.assets.length;for(ze=0;ze<dt;ze+=1)rt.assets[ze].layers&>(rt.assets[ze].layers)}}})();function li(zt){zt.__complete||(po(zt),rn(zt),cn(zt),Ft(zt),jo(zt),Gt(zt.layers,zt.assets),Jt(zt.chars,zt.assets),zt.__complete=!0)}function qo(zt){zt.t.a.length===0&&zt.t.p}var lo={};return lo.completeData=li,lo.checkColors=po,lo.checkChars=cn,lo.checkPathProperties=Ft,lo.checkShapes=jo,lo.completeLayers=Gt,lo}if($e.dataManager||($e.dataManager=Ct()),$e.assetLoader||($e.assetLoader=(function(){function Gt(Je){var Ve=Je.getResponseHeader("content-type");return Ve&&Je.responseType==="json"&&Ve.indexOf("json")!==-1||Je.response&&me(Je.response)==="object"?Je.response:Je.response&&typeof Je.response=="string"?JSON.parse(Je.response):Je.responseText?JSON.parse(Je.responseText):null}function Jt(Je,Ve,Ne,qe){var mt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)mt=Gt(rn),Ne(mt);else try{mt=Gt(rn),Ne(mt)}catch(cn){qe&&qe(cn)}};try{rn.open(["G","E","T"].join(""),Je,!0)}catch{rn.open(["G","E","T"].join(""),Ve+"/"+Je,!0)}rn.send()}return{load:Jt}})()),ct.data.type==="loadAnimation")$e.assetLoader.load(ct.data.path,ct.data.fullPath,(function(Gt){$e.dataManager.completeData(Gt),$e.postMessage({id:ct.data.id,payload:Gt,status:"success"})}),(function(){$e.postMessage({id:ct.data.id,status:"error"})}));else if(ct.data.type==="complete"){var Et=ct.data.animation;$e.dataManager.completeData(Et),$e.postMessage({id:ct.data.id,payload:Et,status:"success"})}else ct.data.type==="loadData"&&$e.assetLoader.load(ct.data.path,ct.data.fullPath,(function(Gt){$e.postMessage({id:ct.data.id,payload:Gt,status:"success"})}),(function(){$e.postMessage({id:ct.data.id,status:"error"})}))})),X.onmessage=function(ct){var Ct=ct.data,Et=Ct.id,Gt=xe[Et];xe[Et]=null,Ct.status==="success"?Gt.onComplete(Ct.payload):Gt.onError&&Gt.onError()})}function Qe(ct,Ct){var Et="processId_"+(pe+=1);return xe[Et]={onComplete:ct,onError:Ct},Et}function Ot(ct,Ct,Et){We();var Gt=Qe(Ct,Et);X.postMessage({type:"loadAnimation",path:ct,fullPath:window.location.origin+window.location.pathname,id:Gt})}function Kt(ct,Ct,Et){We();var Gt=Qe(Ct,Et);X.postMessage({type:"loadData",path:ct,fullPath:window.location.origin+window.location.pathname,id:Gt})}function et(ct,Ct,Et){We();var Gt=Qe(Ct,Et);X.postMessage({type:"complete",animation:ct,id:Gt})}return{loadAnimation:Ot,loadData:Kt,completeAnimation:et}})(),oe=(function(){var G=(function(){var Je=h("canvas");Je.width=1,Je.height=1;var Ve=Je.getContext("2d");return Ve.fillStyle="rgba(0,0,0,0)",Ve.fillRect(0,0,1,1),Je})();function X(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function pe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function xe(Je,Ve,Ne){var qe="";if(Je.e)qe=Je.p;else if(Ve){var mt=Je.p;mt.indexOf("images/")!==-1&&(mt=mt.split("/")[1]),qe=Ve+mt}else qe=Ne,qe+=Je.u?Je.u:"",qe+=Je.p;return qe}function Ce(Je){var Ve=0,Ne=setInterval((function(){(Je.getBBox().width||Ve>500)&&(this._imageLoaded(),clearInterval(Ne)),Ve+=1}).bind(this),50)}function $e(Je){var Ve=xe(Je,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",Ve),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Je};return qe}function Me(Je){var Ve=xe(Je,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=Ve;var qe={img:Ne,assetData:Je};return qe}function We(Je){var Ve={assetData:Je},Ne=xe(Je,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){Ve.img=qe,this._footageLoaded()}).bind(this),(function(){Ve.img={},this._footageLoaded()}).bind(this)),Ve}function Qe(Je,Ve){this.imagesLoadedCb=Ve;var Ne,qe=Je.length;for(Ne=0;Ne<qe;Ne+=1)Je[Ne].layers||(Je[Ne].t&&Je[Ne].t!=="seq"?Je[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Je[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Je[Ne]))))}function Ot(Je){this.path=Je||""}function Kt(Je){this.assetsPath=Je||""}function et(Je){for(var Ve=0,Ne=this.images.length;Ve<Ne;){if(this.images[Ve].assetData===Je)return this.images[Ve].img;Ve+=1}return null}function ct(){this.imagesLoadedCb=null,this.images.length=0}function Ct(){return this.totalImages===this.loadedAssets}function Et(){return this.totalFootages===this.loadedFootagesCount}function Gt(Je,Ve){Je==="svg"?(this._elementHelper=Ve,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function Jt(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ce.bind(this),this.createFootageData=We.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Jt.prototype={loadAssets:Qe,setAssetsPath:Kt,setPath:Ot,loadedImages:Ct,loadedFootages:Et,destroy:ct,getAsset:et,createImgData:Me,createImageData:$e,imageLoaded:X,footageLoaded:pe,setCacheType:Gt},Jt})();function ie(){}ie.prototype={triggerEvent:function(G,X){if(this._cbs[G])for(var pe=this._cbs[G],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(G,X){return this._cbs[G]||(this._cbs[G]=[]),this._cbs[G].push(X),(function(){this.removeEventListener(G,X)}).bind(this)},removeEventListener:function(G,X){if(X){if(this._cbs[G]){for(var pe=0,xe=this._cbs[G].length;pe<xe;)this._cbs[G][pe]===X&&(this._cbs[G].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[G].length||(this._cbs[G]=null)}}else this._cbs[G]=null}};var ce=(function(){function G(X){for(var pe,xe=X.split(`\r
|
|
3
3
|
`),Ce={},$e=0,Me=0;Me<xe.length;Me+=1)(pe=xe[Me].split(":")).length===2&&(Ce[pe[0]]=pe[1].trim(),$e+=1);if($e===0)throw new Error;return Ce}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var Ce=X[xe],$e={time:Ce.tm,duration:Ce.dr};try{$e.payload=JSON.parse(X[xe].cm)}catch{try{$e.payload=G(X[xe].cm)}catch{$e.payload={name:X[xe].cm}}}pe.push($e)}return pe}})(),de=(function(){function G(X){this.compositions.push(X)}return function(){function X(pe){for(var xe=0,Ce=this.compositions.length;xe<Ce;){if(this.compositions[xe].data&&this.compositions[xe].data.nm===pe)return this.compositions[xe].prepareFrame&&this.compositions[xe].data.xt&&this.compositions[xe].prepareFrame(this.currentFrame),this.compositions[xe].compInterface;xe+=1}return null}return X.compositions=[],X.currentFrame=0,X.registerComposition=G,X}})(),fe={},he=function(G,X){fe[G]=X};function ye(G){return fe[G]}function ve(){if(fe.canvas)return"canvas";for(var G in fe)if(fe[G])return G;return""}function be(G){return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},be(G)}var Ae=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=H(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=J(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=de(),this.imagePreloader=new oe,this.audioController=x(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new O("drawnFrame",0,0,0),this.expressionsPlugin=te()};g([ie],Ae),Ae.prototype.setParams=function(G){(G.wrapper||G.container)&&(this.wrapper=G.wrapper||G.container);var X="svg";G.animType?X=G.animType:G.renderer&&(X=G.renderer);var pe=ye(X);this.renderer=new pe(this,G.rendererSettings),this.imagePreloader.setCacheType(X,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=X,G.loop===""||G.loop===null||G.loop===void 0||G.loop===!0?this.loop=!0:G.loop===!1?this.loop=!1:this.loop=parseInt(G.loop,10),this.autoplay=!("autoplay"in G)||G.autoplay,this.name=G.name?G.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(G,"autoloadSegments")||G.autoloadSegments,this.assetsPath=G.assetsPath,this.initialSegment=G.initialSegment,G.audioFactory&&this.audioController.setAudioFactory(G.audioFactory),G.animationData?this.setupAnimation(G.animationData):G.path&&(G.path.lastIndexOf("\\")!==-1?this.path=G.path.substr(0,G.path.lastIndexOf("\\")+1):this.path=G.path.substr(0,G.path.lastIndexOf("/")+1),this.fileName=G.path.substr(G.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ue.loadAnimation(G.path,this.configAnimation,this.onSetupError))},Ae.prototype.onSetupError=function(){this.trigger("data_failed")},Ae.prototype.setupAnimation=function(G){ue.completeAnimation(G,this.configAnimation)},Ae.prototype.setData=function(G,X){X&&be(X)!=="object"&&(X=JSON.parse(X));var pe={wrapper:G,animationData:X},xe=G.attributes;pe.path=xe.getNamedItem("data-animation-path")?xe.getNamedItem("data-animation-path").value:xe.getNamedItem("data-bm-path")?xe.getNamedItem("data-bm-path").value:xe.getNamedItem("bm-path")?xe.getNamedItem("bm-path").value:"",pe.animType=xe.getNamedItem("data-anim-type")?xe.getNamedItem("data-anim-type").value:xe.getNamedItem("data-bm-type")?xe.getNamedItem("data-bm-type").value:xe.getNamedItem("bm-type")?xe.getNamedItem("bm-type").value:xe.getNamedItem("data-bm-renderer")?xe.getNamedItem("data-bm-renderer").value:xe.getNamedItem("bm-renderer")?xe.getNamedItem("bm-renderer").value:ve()||"canvas";var Ce=xe.getNamedItem("data-anim-loop")?xe.getNamedItem("data-anim-loop").value:xe.getNamedItem("data-bm-loop")?xe.getNamedItem("data-bm-loop").value:xe.getNamedItem("bm-loop")?xe.getNamedItem("bm-loop").value:"";Ce==="false"?pe.loop=!1:Ce==="true"?pe.loop=!0:Ce!==""&&(pe.loop=parseInt(Ce,10));var $e=xe.getNamedItem("data-anim-autoplay")?xe.getNamedItem("data-anim-autoplay").value:xe.getNamedItem("data-bm-autoplay")?xe.getNamedItem("data-bm-autoplay").value:!xe.getNamedItem("bm-autoplay")||xe.getNamedItem("bm-autoplay").value;pe.autoplay=$e!=="false",pe.name=xe.getNamedItem("data-name")?xe.getNamedItem("data-name").value:xe.getNamedItem("data-bm-name")?xe.getNamedItem("data-bm-name").value:xe.getNamedItem("bm-name")?xe.getNamedItem("bm-name").value:"",(xe.getNamedItem("data-anim-prerender")?xe.getNamedItem("data-anim-prerender").value:xe.getNamedItem("data-bm-prerender")?xe.getNamedItem("data-bm-prerender").value:xe.getNamedItem("bm-prerender")?xe.getNamedItem("bm-prerender").value:"")==="false"&&(pe.prerender=!1),pe.path?this.setParams(pe):this.trigger("destroy")},Ae.prototype.includeLayers=function(G){G.op>this.animationData.op&&(this.animationData.op=G.op,this.totalFrames=Math.floor(G.op-this.animationData.ip));var X,pe,xe=this.animationData.layers,Ce=xe.length,$e=G.layers,Me=$e.length;for(pe=0;pe<Me;pe+=1)for(X=0;X<Ce;){if(xe[X].id===$e[pe].id){xe[X]=$e[pe];break}X+=1}if((G.chars||G.fonts)&&(this.renderer.globalData.fontManager.addChars(G.chars),this.renderer.globalData.fontManager.addFonts(G.fonts,this.renderer.globalData.defs)),G.assets)for(Ce=G.assets.length,X=0;X<Ce;X+=1)this.animationData.assets.push(G.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},Ae.prototype.onSegmentComplete=function(G){this.animationData=G;var X=te();X&&X.initExpressions(this),this.loadNextSegment()},Ae.prototype.loadNextSegment=function(){var G=this.animationData.segments;if(!G||G.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var X=G.shift();this.timeCompleted=X.time*this.frameRate;var pe=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ue.loadData(pe,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},Ae.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},Ae.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},Ae.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},Ae.prototype.configAnimation=function(G){if(this.renderer)try{this.animationData=G,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(G),G.assets||(G.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(G.assets),this.markers=ce(G.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(X){this.triggerConfigError(X)}},Ae.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},Ae.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var G=te();G&&G.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},Ae.prototype.resize=function(G,X){var pe=typeof G=="number"?G:void 0,xe=typeof X=="number"?X:void 0;this.renderer.updateContainerSize(pe,xe)},Ae.prototype.setSubframe=function(G){this.isSubframeEnabled=!!G},Ae.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},Ae.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(G){this.triggerRenderFrameError(G)}},Ae.prototype.play=function(G){G&&this.name!==G||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},Ae.prototype.pause=function(G){G&&this.name!==G||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},Ae.prototype.togglePause=function(G){G&&this.name!==G||(this.isPaused===!0?this.play():this.pause())},Ae.prototype.stop=function(G){G&&this.name!==G||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},Ae.prototype.getMarkerData=function(G){for(var X,pe=0;pe<this.markers.length;pe+=1)if((X=this.markers[pe]).payload&&X.payload.name===G)return X;return null},Ae.prototype.goToAndStop=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ce=this.getMarkerData(G);Ce&&this.goToAndStop(Ce.time,!0)}else X?this.setCurrentRawFrameValue(G):this.setCurrentRawFrameValue(G*this.frameModifier);this.pause()}},Ae.prototype.goToAndPlay=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ce=this.getMarkerData(G);Ce&&(Ce.duration?this.playSegments([Ce.time,Ce.time+Ce.duration],!0):this.goToAndStop(Ce.time,!0))}else this.goToAndStop(xe,X,pe);this.play()}},Ae.prototype.advanceTime=function(G){if(this.isPaused!==!0&&this.isLoaded!==!1){var X=this.currentRawFrame+G*this.frameModifier,pe=!1;X>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?X>=this.totalFrames?(this.playCount+=1,this.checkSegments(X%this.totalFrames)||(this.setCurrentRawFrameValue(X%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(X):this.checkSegments(X>this.totalFrames?X%this.totalFrames:0)||(pe=!0,X=this.totalFrames-1):X<0?this.checkSegments(X%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(pe=!0,X=0):(this.setCurrentRawFrameValue(this.totalFrames+X%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(X),pe&&(this.setCurrentRawFrameValue(X),this.pause(),this.trigger("complete"))}},Ae.prototype.adjustSegment=function(G,X){this.playCount=0,G[1]<G[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=G[0]-G[1],this.timeCompleted=this.totalFrames,this.firstFrame=G[1],this.setCurrentRawFrameValue(this.totalFrames-.001-X)):G[1]>G[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=G[1]-G[0],this.timeCompleted=this.totalFrames,this.firstFrame=G[0],this.setCurrentRawFrameValue(.001+X)),this.trigger("segmentStart")},Ae.prototype.setSegment=function(G,X){var pe=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<G?pe=G:this.currentRawFrame+this.firstFrame>X&&(pe=X-G)),this.firstFrame=G,this.totalFrames=X-G,this.timeCompleted=this.totalFrames,pe!==-1&&this.goToAndStop(pe,!0)},Ae.prototype.playSegments=function(G,X){if(X&&(this.segments.length=0),be(G[0])==="object"){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)this.segments.push(G[pe])}else this.segments.push(G);this.segments.length&&X&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},Ae.prototype.resetSegments=function(G){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),G&&this.checkSegments(0)},Ae.prototype.checkSegments=function(G){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),G),!0)},Ae.prototype.destroy=function(G){G&&this.name!==G||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},Ae.prototype.setCurrentRawFrameValue=function(G){this.currentRawFrame=G,this.gotoFrame()},Ae.prototype.setSpeed=function(G){this.playSpeed=G,this.updaFrameModifier()},Ae.prototype.setDirection=function(G){this.playDirection=G<0?-1:1,this.updaFrameModifier()},Ae.prototype.setLoop=function(G){this.loop=G},Ae.prototype.setVolume=function(G,X){X&&this.name!==X||this.audioController.setVolume(G)},Ae.prototype.getVolume=function(){return this.audioController.getVolume()},Ae.prototype.mute=function(G){G&&this.name!==G||this.audioController.mute()},Ae.prototype.unmute=function(G){G&&this.name!==G||this.audioController.unmute()},Ae.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},Ae.prototype.getPath=function(){return this.path},Ae.prototype.getAssetsPath=function(G){var X="";if(G.e)X=G.p;else if(this.assetsPath){var pe=G.p;pe.indexOf("images/")!==-1&&(pe=pe.split("/")[1]),X=this.assetsPath+pe}else X=this.path,X+=G.u?G.u:"",X+=G.p;return X},Ae.prototype.getAssetData=function(G){for(var X=0,pe=this.assets.length;X<pe;){if(G===this.assets[X].id)return this.assets[X];X+=1}return null},Ae.prototype.hide=function(){this.renderer.hide()},Ae.prototype.show=function(){this.renderer.show()},Ae.prototype.getDuration=function(G){return G?this.totalFrames:this.totalFrames/this.frameRate},Ae.prototype.updateDocumentData=function(G,X,pe){try{this.renderer.getElementByPath(G).updateDocumentData(X,pe)}catch{}},Ae.prototype.trigger=function(G){if(this._cbs&&this._cbs[G])switch(G){case"enterFrame":this.triggerEvent(G,new O(G,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(G,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(G,new _(G,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(G,new N(G,this.frameMult));break;case"segmentStart":this.triggerEvent(G,new z(G,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(G,new T(G,this));break;default:this.triggerEvent(G)}G==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new O(G,this.currentFrame,this.totalFrames,this.frameMult)),G==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new _(G,this.loop,this.playCount,this.frameMult)),G==="complete"&&this.onComplete&&this.onComplete.call(this,new N(G,this.frameMult)),G==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new z(G,this.firstFrame,this.totalFrames)),G==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new T(G,this))},Ae.prototype.triggerRenderFrameError=function(G){var X=new M(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},Ae.prototype.triggerConfigError=function(G){var X=new F(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)};var Be=(function(){var G={},X=[],pe=0,xe=0,Ce=0,$e=!0,Me=!1;function We(gt){for(var rt=0,ze=gt.target;rt<xe;)X[rt].animation===ze&&(X.splice(rt,1),rt-=1,xe-=1,ze.isPaused||et()),rt+=1}function Qe(gt,rt){if(!gt)return null;for(var ze=0;ze<xe;){if(X[ze].elem===gt&&X[ze].elem!==null)return X[ze].animation;ze+=1}var dt=new Ae;return ct(dt,gt),dt.setData(gt,rt),dt}function Ot(){var gt,rt=X.length,ze=[];for(gt=0;gt<rt;gt+=1)ze.push(X[gt].animation);return ze}function Kt(){Ce+=1,jo()}function et(){Ce-=1}function ct(gt,rt){gt.addEventListener("destroy",We),gt.addEventListener("_active",Kt),gt.addEventListener("_idle",et),X.push({elem:rt,animation:gt}),xe+=1}function Ct(gt){var rt=new Ae;return ct(rt,null),rt.setParams(gt),rt}function Et(gt,rt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setSpeed(gt,rt)}function Gt(gt,rt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setDirection(gt,rt)}function Jt(gt){var rt;for(rt=0;rt<xe;rt+=1)X[rt].animation.play(gt)}function Je(gt){var rt,ze=gt-pe;for(rt=0;rt<xe;rt+=1)X[rt].animation.advanceTime(ze);pe=gt,Ce&&!Me?window.requestAnimationFrame(Je):$e=!0}function Ve(gt){pe=gt,window.requestAnimationFrame(Je)}function Ne(gt){var rt;for(rt=0;rt<xe;rt+=1)X[rt].animation.pause(gt)}function qe(gt,rt,ze){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.goToAndStop(gt,rt,ze)}function mt(gt){var rt;for(rt=0;rt<xe;rt+=1)X[rt].animation.stop(gt)}function rn(gt){var rt;for(rt=0;rt<xe;rt+=1)X[rt].animation.togglePause(gt)}function cn(gt){var rt;for(rt=xe-1;rt>=0;rt-=1)X[rt].animation.destroy(gt)}function Ft(gt,rt,ze){var dt,wt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),gi=wt.length;for(dt=0;dt<gi;dt+=1)ze&&wt[dt].setAttribute("data-bm-type",ze),Qe(wt[dt],gt);if(rt&&gi===0){ze||(ze="svg");var Ko=document.getElementsByTagName("body")[0];Ko.innerText="";var Bo=h("div");Bo.style.width="100%",Bo.style.height="100%",Bo.setAttribute("data-bm-type",ze),Ko.appendChild(Bo),Qe(Bo,gt)}}function po(){var gt;for(gt=0;gt<xe;gt+=1)X[gt].animation.resize()}function jo(){!Me&&Ce&&$e&&(window.requestAnimationFrame(Ve),$e=!1)}function li(){Me=!0}function qo(){Me=!1,jo()}function lo(gt,rt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setVolume(gt,rt)}function zt(gt){var rt;for(rt=0;rt<xe;rt+=1)X[rt].animation.mute(gt)}function gn(gt){var rt;for(rt=0;rt<xe;rt+=1)X[rt].animation.unmute(gt)}return G.registerAnimation=Qe,G.loadAnimation=Ct,G.setSpeed=Et,G.setDirection=Gt,G.play=Jt,G.pause=Ne,G.stop=mt,G.togglePause=rn,G.searchAnimations=Ft,G.resize=po,G.goToAndStop=qe,G.destroy=cn,G.freeze=li,G.unfreeze=qo,G.setVolume=lo,G.mute=zt,G.unmute=gn,G.getRegisteredAnimations=Ot,G})(),De=(function(){var G={};G.getBezierEasing=pe;var X={};function pe(Ve,Ne,qe,mt,rn){var cn=rn||("bez_"+Ve+"_"+Ne+"_"+qe+"_"+mt).replace(/\./g,"p");if(X[cn])return X[cn];var Ft=new Je([Ve,Ne,qe,mt]);return X[cn]=Ft,Ft}var xe=4,Ce=.001,$e=1e-7,Me=10,We=11,Qe=1/(We-1),Ot=typeof Float32Array=="function";function Kt(Ve,Ne){return 1-3*Ne+3*Ve}function et(Ve,Ne){return 3*Ne-6*Ve}function ct(Ve){return 3*Ve}function Ct(Ve,Ne,qe){return((Kt(Ne,qe)*Ve+et(Ne,qe))*Ve+ct(Ne))*Ve}function Et(Ve,Ne,qe){return 3*Kt(Ne,qe)*Ve*Ve+2*et(Ne,qe)*Ve+ct(Ne)}function Gt(Ve,Ne,qe,mt,rn){var cn,Ft,po=0;do(cn=Ct(Ft=Ne+(qe-Ne)/2,mt,rn)-Ve)>0?qe=Ft:Ne=Ft;while(Math.abs(cn)>$e&&++po<Me);return Ft}function Jt(Ve,Ne,qe,mt){for(var rn=0;rn<xe;++rn){var cn=Et(Ne,qe,mt);if(cn===0)return Ne;Ne-=(Ct(Ne,qe,mt)-Ve)/cn}return Ne}function Je(Ve){this._p=Ve,this._mSampleValues=Ot?new Float32Array(We):new Array(We),this._precomputed=!1,this.get=this.get.bind(this)}return Je.prototype={get:function(Ve){var Ne=this._p[0],qe=this._p[1],mt=this._p[2],rn=this._p[3];return this._precomputed||this._precompute(),Ne===qe&&mt===rn?Ve:Ve===0?0:Ve===1?1:Ct(this._getTForX(Ve),qe,rn)},_precompute:function(){var Ve=this._p[0],Ne=this._p[1],qe=this._p[2],mt=this._p[3];this._precomputed=!0,(Ve!==Ne||qe!==mt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Ve=this._p[0],Ne=this._p[2],qe=0;qe<We;++qe)this._mSampleValues[qe]=Ct(qe*Qe,Ve,Ne)},_getTForX:function(Ve){for(var Ne=this._p[0],qe=this._p[2],mt=this._mSampleValues,rn=0,cn=1,Ft=We-1;cn!==Ft&&mt[cn]<=Ve;++cn)rn+=Qe;var po=rn+(Ve-mt[--cn])/(mt[cn+1]-mt[cn])*Qe,jo=Et(po,Ne,qe);return jo>=Ce?Jt(Ve,po,Ne,qe):jo===0?po:Gt(Ve,rn,rn+Qe,Ne,qe)}},G})(),Te=(function(){function G(X){return X.concat(b(X.length))}return{double:G}})(),Fe=(function(){return function(G,X,pe){var xe=0,Ce=G,$e=b(Ce);function Me(){return xe?$e[xe-=1]:X()}function We(Qe){xe===Ce&&($e=Te.double($e),Ce*=2),pe&&pe(Qe),$e[xe]=Qe,xe+=1}return{newElement:Me,release:We}}})(),Oe=(function(){function G(){return{addedLength:0,percents:y("float32",se()),lengths:y("float32",se())}}return Fe(8,G)})(),Se=(function(){function G(){return{lengths:[],totalLength:0}}function X(pe){var xe,Ce=pe.lengths.length;for(xe=0;xe<Ce;xe+=1)Oe.release(pe.lengths[xe]);pe.lengths.length=0}return Fe(8,G,X)})();function we(){var G=Math;function X(ct,Ct,Et,Gt,Jt,Je){var Ve=ct*Gt+Ct*Jt+Et*Je-Jt*Gt-Je*ct-Et*Ct;return Ve>-.001&&Ve<.001}function pe(ct,Ct,Et,Gt,Jt,Je,Ve,Ne,qe){if(Et===0&&Je===0&&qe===0)return X(ct,Ct,Gt,Jt,Ve,Ne);var mt,rn=G.sqrt(G.pow(Gt-ct,2)+G.pow(Jt-Ct,2)+G.pow(Je-Et,2)),cn=G.sqrt(G.pow(Ve-ct,2)+G.pow(Ne-Ct,2)+G.pow(qe-Et,2)),Ft=G.sqrt(G.pow(Ve-Gt,2)+G.pow(Ne-Jt,2)+G.pow(qe-Je,2));return(mt=rn>cn?rn>Ft?rn-cn-Ft:Ft-cn-rn:Ft>cn?Ft-cn-rn:cn-rn-Ft)>-1e-4&&mt<1e-4}var xe=(function(){return function(ct,Ct,Et,Gt){var Jt,Je,Ve,Ne,qe,mt,rn=se(),cn=0,Ft=[],po=[],jo=Oe.newElement();for(Ve=Et.length,Jt=0;Jt<rn;Jt+=1){for(qe=Jt/(rn-1),mt=0,Je=0;Je<Ve;Je+=1)Ne=k(1-qe,3)*ct[Je]+3*k(1-qe,2)*qe*Et[Je]+3*(1-qe)*k(qe,2)*Gt[Je]+k(qe,3)*Ct[Je],Ft[Je]=Ne,po[Je]!==null&&(mt+=k(Ft[Je]-po[Je],2)),po[Je]=Ft[Je];mt&&(cn+=mt=$(mt)),jo.percents[Jt]=qe,jo.lengths[Jt]=cn}return jo.addedLength=cn,jo}})();function Ce(ct){var Ct,Et=Se.newElement(),Gt=ct.c,Jt=ct.v,Je=ct.o,Ve=ct.i,Ne=ct._length,qe=Et.lengths,mt=0;for(Ct=0;Ct<Ne-1;Ct+=1)qe[Ct]=xe(Jt[Ct],Jt[Ct+1],Je[Ct],Ve[Ct+1]),mt+=qe[Ct].addedLength;return Gt&&Ne&&(qe[Ct]=xe(Jt[Ct],Jt[0],Je[Ct],Ve[0]),mt+=qe[Ct].addedLength),Et.totalLength=mt,Et}function $e(ct){this.segmentLength=0,this.points=new Array(ct)}function Me(ct,Ct){this.partialLength=ct,this.point=Ct}var We=(function(){var ct={};return function(Ct,Et,Gt,Jt){var Je=(Ct[0]+"_"+Ct[1]+"_"+Et[0]+"_"+Et[1]+"_"+Gt[0]+"_"+Gt[1]+"_"+Jt[0]+"_"+Jt[1]).replace(/\./g,"p");if(!ct[Je]){var Ve,Ne,qe,mt,rn,cn,Ft,po=se(),jo=0,li=null;Ct.length===2&&(Ct[0]!==Et[0]||Ct[1]!==Et[1])&&X(Ct[0],Ct[1],Et[0],Et[1],Ct[0]+Gt[0],Ct[1]+Gt[1])&&X(Ct[0],Ct[1],Et[0],Et[1],Et[0]+Jt[0],Et[1]+Jt[1])&&(po=2);var qo=new $e(po);for(qe=Gt.length,Ve=0;Ve<po;Ve+=1){for(Ft=b(qe),rn=Ve/(po-1),cn=0,Ne=0;Ne<qe;Ne+=1)mt=k(1-rn,3)*Ct[Ne]+3*k(1-rn,2)*rn*(Ct[Ne]+Gt[Ne])+3*(1-rn)*k(rn,2)*(Et[Ne]+Jt[Ne])+k(rn,3)*Et[Ne],Ft[Ne]=mt,li!==null&&(cn+=k(Ft[Ne]-li[Ne],2));jo+=cn=$(cn),qo.points[Ve]=new Me(cn,Ft),li=Ft}qo.segmentLength=jo,ct[Je]=qo}return ct[Je]}})();function Qe(ct,Ct){var Et=Ct.percents,Gt=Ct.lengths,Jt=Et.length,Je=j((Jt-1)*ct),Ve=ct*Ct.addedLength,Ne=0;if(Je===Jt-1||Je===0||Ve===Gt[Je])return Et[Je];for(var qe=Gt[Je]>Ve?-1:1,mt=!0;mt;)if(Gt[Je]<=Ve&&Gt[Je+1]>Ve?(Ne=(Ve-Gt[Je])/(Gt[Je+1]-Gt[Je]),mt=!1):Je+=qe,Je<0||Je>=Jt-1){if(Je===Jt-1)return Et[Je];mt=!1}return Et[Je]+(Et[Je+1]-Et[Je])*Ne}function Ot(ct,Ct,Et,Gt,Jt,Je){var Ve=Qe(Jt,Je),Ne=1-Ve;return[G.round(1e3*(Ne*Ne*Ne*ct[0]+(Ve*Ne*Ne+Ne*Ve*Ne+Ne*Ne*Ve)*Et[0]+(Ve*Ve*Ne+Ne*Ve*Ve+Ve*Ne*Ve)*Gt[0]+Ve*Ve*Ve*Ct[0]))/1e3,G.round(1e3*(Ne*Ne*Ne*ct[1]+(Ve*Ne*Ne+Ne*Ve*Ne+Ne*Ne*Ve)*Et[1]+(Ve*Ve*Ne+Ne*Ve*Ve+Ve*Ne*Ve)*Gt[1]+Ve*Ve*Ve*Ct[1]))/1e3]}var Kt=y("float32",8);function et(ct,Ct,Et,Gt,Jt,Je,Ve){Jt<0?Jt=0:Jt>1&&(Jt=1);var Ne,qe=Qe(Jt,Ve),mt=Qe(Je=Je>1?1:Je,Ve),rn=ct.length,cn=1-qe,Ft=1-mt,po=cn*cn*cn,jo=qe*cn*cn*3,li=qe*qe*cn*3,qo=qe*qe*qe,lo=cn*cn*Ft,zt=qe*cn*Ft+cn*qe*Ft+cn*cn*mt,gn=qe*qe*Ft+cn*qe*mt+qe*cn*mt,gt=qe*qe*mt,rt=cn*Ft*Ft,ze=qe*Ft*Ft+cn*mt*Ft+cn*Ft*mt,dt=qe*mt*Ft+cn*mt*mt+qe*Ft*mt,wt=qe*mt*mt,gi=Ft*Ft*Ft,Ko=mt*Ft*Ft+Ft*mt*Ft+Ft*Ft*mt,Bo=mt*mt*Ft+Ft*mt*mt+mt*Ft*mt,wa=mt*mt*mt;for(Ne=0;Ne<rn;Ne+=1)Kt[4*Ne]=G.round(1e3*(po*ct[Ne]+jo*Et[Ne]+li*Gt[Ne]+qo*Ct[Ne]))/1e3,Kt[4*Ne+1]=G.round(1e3*(lo*ct[Ne]+zt*Et[Ne]+gn*Gt[Ne]+gt*Ct[Ne]))/1e3,Kt[4*Ne+2]=G.round(1e3*(rt*ct[Ne]+ze*Et[Ne]+dt*Gt[Ne]+wt*Ct[Ne]))/1e3,Kt[4*Ne+3]=G.round(1e3*(gi*ct[Ne]+Ko*Et[Ne]+Bo*Gt[Ne]+wa*Ct[Ne]))/1e3;return Kt}return{getSegmentsLength:Ce,getNewSegment:et,getPointInSegment:Ot,buildBezierData:We,pointOnLine2D:X,pointOnLine3D:pe}}var Ie=we(),Le=l,Re=Math.abs;function lt(G,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var Ce,$e,Me,We=X.lastIndex,Qe=We,Ot=this.keyframes.length-1,Kt=!0;Kt;){if(Ce=this.keyframes[Qe],$e=this.keyframes[Qe+1],Qe===Ot-1&&G>=$e.t-xe){Ce.h&&(Ce=$e),We=0;break}if($e.t-xe>G){We=Qe;break}Qe<Ot-1?Qe+=1:(We=0,Kt=!1)}Me=this.keyframesMetadata[Qe]||{};var et,ct,Ct,Et,Gt,Jt,Je,Ve=$e.t-xe,Ne=Ce.t-xe;if(Ce.to){Me.bezierData||(Me.bezierData=Ie.buildBezierData(Ce.s,$e.s||Ce.e,Ce.to,Ce.ti));var qe=Me.bezierData;if(G>=Ve||G<Ne){var mt=G>=Ve?qe.points.length-1:0;for(ct=qe.points[mt].point.length,et=0;et<ct;et+=1)pe[et]=qe.points[mt].point[et]}else{Me.__fnct?Jt=Me.__fnct:(Jt=De.getBezierEasing(Ce.o.x,Ce.o.y,Ce.i.x,Ce.i.y,Ce.n).get,Me.__fnct=Jt),Ct=Jt((G-Ne)/(Ve-Ne));var rn,cn=qe.segmentLength*Ct,Ft=X.lastFrame<G&&X._lastKeyframeIndex===Qe?X._lastAddedLength:0;for(Gt=X.lastFrame<G&&X._lastKeyframeIndex===Qe?X._lastPoint:0,Kt=!0,Et=qe.points.length;Kt;){if(Ft+=qe.points[Gt].partialLength,cn===0||Ct===0||Gt===qe.points.length-1){for(ct=qe.points[Gt].point.length,et=0;et<ct;et+=1)pe[et]=qe.points[Gt].point[et];break}if(cn>=Ft&&cn<Ft+qe.points[Gt+1].partialLength){for(rn=(cn-Ft)/qe.points[Gt+1].partialLength,ct=qe.points[Gt].point.length,et=0;et<ct;et+=1)pe[et]=qe.points[Gt].point[et]+(qe.points[Gt+1].point[et]-qe.points[Gt].point[et])*rn;break}Gt<Et-1?Gt+=1:Kt=!1}X._lastPoint=Gt,X._lastAddedLength=Ft-qe.points[Gt].partialLength,X._lastKeyframeIndex=Qe}}else{var po,jo,li,qo,lo;if(Ot=Ce.s.length,Je=$e.s||Ce.e,this.sh&&Ce.h!==1)G>=Ve?(pe[0]=Je[0],pe[1]=Je[1],pe[2]=Je[2]):G<=Ne?(pe[0]=Ce.s[0],pe[1]=Ce.s[1],pe[2]=Ce.s[2]):Ge(pe,Ye(ft(Ce.s),ft(Je),(G-Ne)/(Ve-Ne)));else for(Qe=0;Qe<Ot;Qe+=1)Ce.h!==1&&(G>=Ve?Ct=1:G<Ne?Ct=0:(Ce.o.x.constructor===Array?(Me.__fnct||(Me.__fnct=[]),Me.__fnct[Qe]?Jt=Me.__fnct[Qe]:(po=Ce.o.x[Qe]===void 0?Ce.o.x[0]:Ce.o.x[Qe],jo=Ce.o.y[Qe]===void 0?Ce.o.y[0]:Ce.o.y[Qe],li=Ce.i.x[Qe]===void 0?Ce.i.x[0]:Ce.i.x[Qe],qo=Ce.i.y[Qe]===void 0?Ce.i.y[0]:Ce.i.y[Qe],Jt=De.getBezierEasing(po,jo,li,qo).get,Me.__fnct[Qe]=Jt)):Me.__fnct?Jt=Me.__fnct:(po=Ce.o.x,jo=Ce.o.y,li=Ce.i.x,qo=Ce.i.y,Jt=De.getBezierEasing(po,jo,li,qo).get,Ce.keyframeMetadata=Jt),Ct=Jt((G-Ne)/(Ve-Ne)))),Je=$e.s||Ce.e,lo=Ce.h===1?Ce.s[Qe]:Ce.s[Qe]+(Je[Qe]-Ce.s[Qe])*Ct,this.propType==="multidimensional"?pe[Qe]=lo:pe=lo}return X.lastIndex=We,pe}function Ye(G,X,pe){var xe,Ce,$e,Me,We,Qe=[],Ot=G[0],Kt=G[1],et=G[2],ct=G[3],Ct=X[0],Et=X[1],Gt=X[2],Jt=X[3];return(Ce=Ot*Ct+Kt*Et+et*Gt+ct*Jt)<0&&(Ce=-Ce,Ct=-Ct,Et=-Et,Gt=-Gt,Jt=-Jt),1-Ce>1e-6?(xe=Math.acos(Ce),$e=Math.sin(xe),Me=Math.sin((1-pe)*xe)/$e,We=Math.sin(pe*xe)/$e):(Me=1-pe,We=pe),Qe[0]=Me*Ot+We*Ct,Qe[1]=Me*Kt+We*Et,Qe[2]=Me*et+We*Gt,Qe[3]=Me*ct+We*Jt,Qe}function Ge(G,X){var pe=X[0],xe=X[1],Ce=X[2],$e=X[3],Me=Math.atan2(2*xe*$e-2*pe*Ce,1-2*xe*xe-2*Ce*Ce),We=Math.asin(2*pe*xe+2*Ce*$e),Qe=Math.atan2(2*pe*$e-2*xe*Ce,1-2*pe*pe-2*Ce*Ce);G[0]=Me/D,G[1]=We/D,G[2]=Qe/D}function ft(G){var X=G[0]*D,pe=G[1]*D,xe=G[2]*D,Ce=Math.cos(X/2),$e=Math.cos(pe/2),Me=Math.cos(xe/2),We=Math.sin(X/2),Qe=Math.sin(pe/2),Ot=Math.sin(xe/2);return[We*Qe*Me+Ce*$e*Ot,We*$e*Me+Ce*Qe*Ot,Ce*Qe*Me-We*$e*Ot,Ce*$e*Me-We*Qe*Ot]}function Pt(){var G=this.comp.renderedFrame-this.offsetTime,X=this.keyframes[0].t-this.offsetTime,pe=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(G===this._caching.lastFrame||this._caching.lastFrame!==Le&&(this._caching.lastFrame>=pe&&G>=pe||this._caching.lastFrame<X&&G<X))){this._caching.lastFrame>=G&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var xe=this.interpolateValue(G,this._caching);this.pv=xe}return this._caching.lastFrame=G,this.pv}function ht(G){var X;if(this.propType==="unidimensional")X=G*this.mult,Re(this.v-X)>1e-5&&(this.v=X,this._mdf=!0);else for(var pe=0,xe=this.v.length;pe<xe;)X=G[pe]*this.mult,Re(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function It(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var G,X=this.effectsSequence.length,pe=this.kf?this.pv:this.data.k;for(G=0;G<X;G+=1)pe=this.effectsSequence[G](pe);this.setVValue(pe),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ut(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}function Ue(G,X,pe,xe){this.propType="unidimensional",this.mult=pe||1,this.data=X,this.v=pe?X.k*pe:X.k,this.pv=X.k,this._mdf=!1,this.elem=G,this.container=xe,this.comp=G.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=It,this.setVValue=ht,this.addEffect=ut}function kt(G,X,pe,xe){this.propType="multidimensional",this.mult=pe||1,this.data=X,this._mdf=!1,this.elem=G,this.container=xe,this.comp=G.comp,this.k=!1,this.kf=!1,this.frameId=-1;var Ce,$e=X.k.length;for(this.v=y("float32",$e),this.pv=y("float32",$e),this.vel=y("float32",$e),Ce=0;Ce<$e;Ce+=1)this.v[Ce]=X.k[Ce]*this.mult,this.pv[Ce]=X.k[Ce];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=It,this.setVValue=ht,this.addEffect=ut}function $t(G,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.frameId=-1,this._caching={lastFrame:Le,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=X,this.mult=pe||1,this.elem=G,this.container=xe,this.comp=G.comp,this.v=Le,this.pv=Le,this._isFirstFrame=!0,this.getValue=It,this.setVValue=ht,this.interpolateValue=lt,this.effectsSequence=[Pt.bind(this)],this.addEffect=ut}function bt(G,X,pe,xe){this.propType="multidimensional";var Ce,$e,Me,We,Qe,Ot=X.k.length;for(Ce=0;Ce<Ot-1;Ce+=1)X.k[Ce].to&&X.k[Ce].s&&X.k[Ce+1]&&X.k[Ce+1].s&&($e=X.k[Ce].s,Me=X.k[Ce+1].s,We=X.k[Ce].to,Qe=X.k[Ce].ti,($e.length===2&&!($e[0]===Me[0]&&$e[1]===Me[1])&&Ie.pointOnLine2D($e[0],$e[1],Me[0],Me[1],$e[0]+We[0],$e[1]+We[1])&&Ie.pointOnLine2D($e[0],$e[1],Me[0],Me[1],Me[0]+Qe[0],Me[1]+Qe[1])||$e.length===3&&!($e[0]===Me[0]&&$e[1]===Me[1]&&$e[2]===Me[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Me[0],Me[1],Me[2],$e[0]+We[0],$e[1]+We[1],$e[2]+We[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Me[0],Me[1],Me[2],Me[0]+Qe[0],Me[1]+Qe[1],Me[2]+Qe[2]))&&(X.k[Ce].to=null,X.k[Ce].ti=null),$e[0]===Me[0]&&$e[1]===Me[1]&&We[0]===0&&We[1]===0&&Qe[0]===0&&Qe[1]===0&&($e.length===2||$e[2]===Me[2]&&We[2]===0&&Qe[2]===0)&&(X.k[Ce].to=null,X.k[Ce].ti=null));this.effectsSequence=[Pt.bind(this)],this.data=X,this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=pe||1,this.elem=G,this.container=xe,this.comp=G.comp,this.getValue=It,this.setVValue=ht,this.interpolateValue=lt,this.frameId=-1;var Kt=X.k[0].s.length;for(this.v=y("float32",Kt),this.pv=y("float32",Kt),Ce=0;Ce<Kt;Ce+=1)this.v[Ce]=Le,this.pv[Ce]=Le;this._caching={lastFrame:Le,lastIndex:0,value:y("float32",Kt)},this.addEffect=ut}var Ke=(function(){function G(X,pe,xe,Ce,$e){var Me;if(pe.sid&&(pe=X.globalData.slotManager.getProp(pe)),pe.k.length)if(typeof pe.k[0]=="number")Me=new kt(X,pe,Ce,$e);else switch(xe){case 0:Me=new $t(X,pe,Ce,$e);break;case 1:Me=new bt(X,pe,Ce,$e)}else Me=new Ue(X,pe,Ce,$e);return Me.effectsSequence.length&&$e.addDynamicProperty(Me),Me}return{getProp:G}})();function Lt(){}Lt.prototype={addDynamicProperty:function(G){this.dynamicProperties.indexOf(G)===-1&&(this.dynamicProperties.push(G),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var G,X=this.dynamicProperties.length;for(G=0;G<X;G+=1)this.dynamicProperties[G].getValue(),this.dynamicProperties[G]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(G){this.container=G,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Wt=(function(){function G(){return y("float32",2)}return Fe(8,G)})();function yt(){this.c=!1,this._length=0,this._maxLength=8,this.v=b(this._maxLength),this.o=b(this._maxLength),this.i=b(this._maxLength)}yt.prototype.setPathData=function(G,X){this.c=G,this.setLength(X);for(var pe=0;pe<X;)this.v[pe]=Wt.newElement(),this.o[pe]=Wt.newElement(),this.i[pe]=Wt.newElement(),pe+=1},yt.prototype.setLength=function(G){for(;this._maxLength<G;)this.doubleArrayLength();this._length=G},yt.prototype.doubleArrayLength=function(){this.v=this.v.concat(b(this._maxLength)),this.i=this.i.concat(b(this._maxLength)),this.o=this.o.concat(b(this._maxLength)),this._maxLength*=2},yt.prototype.setXYAt=function(G,X,pe,xe,Ce){var $e;switch(this._length=Math.max(this._length,xe+1),this._length>=this._maxLength&&this.doubleArrayLength(),pe){case"v":$e=this.v;break;case"i":$e=this.i;break;case"o":$e=this.o;break;default:$e=[]}(!$e[xe]||$e[xe]&&!Ce)&&($e[xe]=Wt.newElement()),$e[xe][0]=G,$e[xe][1]=X},yt.prototype.setTripleAt=function(G,X,pe,xe,Ce,$e,Me,We){this.setXYAt(G,X,"v",Me,We),this.setXYAt(pe,xe,"o",Me,We),this.setXYAt(Ce,$e,"i",Me,We)},yt.prototype.reverse=function(){var G=new yt;G.setPathData(this.c,this._length);var X=this.v,pe=this.o,xe=this.i,Ce=0;this.c&&(G.setTripleAt(X[0][0],X[0][1],xe[0][0],xe[0][1],pe[0][0],pe[0][1],0,!1),Ce=1);var $e,Me=this._length-1,We=this._length;for($e=Ce;$e<We;$e+=1)G.setTripleAt(X[Me][0],X[Me][1],xe[Me][0],xe[Me][1],pe[Me][0],pe[Me][1],$e,!1),Me-=1;return G},yt.prototype.length=function(){return this._length};var Bt=(function(){function G(){return new yt}function X(Ce){var $e,Me=Ce._length;for($e=0;$e<Me;$e+=1)Wt.release(Ce.v[$e]),Wt.release(Ce.i[$e]),Wt.release(Ce.o[$e]),Ce.v[$e]=null,Ce.i[$e]=null,Ce.o[$e]=null;Ce._length=0,Ce.c=!1}function pe(Ce){var $e,Me=xe.newElement(),We=Ce._length===void 0?Ce.v.length:Ce._length;for(Me.setLength(We),Me.c=Ce.c,$e=0;$e<We;$e+=1)Me.setTripleAt(Ce.v[$e][0],Ce.v[$e][1],Ce.o[$e][0],Ce.o[$e][1],Ce.i[$e][0],Ce.i[$e][1],$e);return Me}var xe=Fe(4,G,X);return xe.clone=pe,xe})();function _t(){this._length=0,this._maxLength=4,this.shapes=b(this._maxLength)}_t.prototype.addShape=function(G){this._length===this._maxLength&&(this.shapes=this.shapes.concat(b(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=G,this._length+=1},_t.prototype.releaseShapes=function(){var G;for(G=0;G<this._length;G+=1)Bt.release(this.shapes[G]);this._length=0};var dn=(function(){var G={newShapeCollection:Ce,release:$e},X=0,pe=4,xe=b(pe);function Ce(){return X?xe[X-=1]:new _t}function $e(Me){var We,Qe=Me._length;for(We=0;We<Qe;We+=1)Bt.release(Me.shapes[We]);Me._length=0,X===pe&&(xe=Te.double(xe),pe*=2),xe[X]=Me,X+=1}return G})(),Xe=(function(){var G=-999999;function X(Je,Ve,Ne){var qe,mt,rn,cn,Ft,po,jo,li,qo,lo=Ne.lastIndex,zt=this.keyframes;if(Je<zt[0].t-this.offsetTime)qe=zt[0].s[0],rn=!0,lo=0;else if(Je>=zt[zt.length-1].t-this.offsetTime)qe=zt[zt.length-1].s?zt[zt.length-1].s[0]:zt[zt.length-2].e[0],rn=!0;else{for(var gn,gt,rt,ze=lo,dt=zt.length-1,wt=!0;wt&&(gn=zt[ze],!((gt=zt[ze+1]).t-this.offsetTime>Je));)ze<dt-1?ze+=1:wt=!1;if(rt=this.keyframesMetadata[ze]||{},lo=ze,!(rn=gn.h===1)){if(Je>=gt.t-this.offsetTime)li=1;else if(Je<gn.t-this.offsetTime)li=0;else{var gi;rt.__fnct?gi=rt.__fnct:(gi=De.getBezierEasing(gn.o.x,gn.o.y,gn.i.x,gn.i.y).get,rt.__fnct=gi),li=gi((Je-(gn.t-this.offsetTime))/(gt.t-this.offsetTime-(gn.t-this.offsetTime)))}mt=gt.s?gt.s[0]:gn.e[0]}qe=gn.s[0]}for(po=Ve._length,jo=qe.i[0].length,Ne.lastIndex=lo,cn=0;cn<po;cn+=1)for(Ft=0;Ft<jo;Ft+=1)qo=rn?qe.i[cn][Ft]:qe.i[cn][Ft]+(mt.i[cn][Ft]-qe.i[cn][Ft])*li,Ve.i[cn][Ft]=qo,qo=rn?qe.o[cn][Ft]:qe.o[cn][Ft]+(mt.o[cn][Ft]-qe.o[cn][Ft])*li,Ve.o[cn][Ft]=qo,qo=rn?qe.v[cn][Ft]:qe.v[cn][Ft]+(mt.v[cn][Ft]-qe.v[cn][Ft])*li,Ve.v[cn][Ft]=qo}function pe(){var Je=this.comp.renderedFrame-this.offsetTime,Ve=this.keyframes[0].t-this.offsetTime,Ne=this.keyframes[this.keyframes.length-1].t-this.offsetTime,qe=this._caching.lastFrame;return qe!==G&&(qe<Ve&&Je<Ve||qe>Ne&&Je>Ne)||(this._caching.lastIndex=qe<Je?this._caching.lastIndex:0,this.interpolateShape(Je,this.pv,this._caching)),this._caching.lastFrame=Je,this.pv}function xe(){this.paths=this.localShapeCollection}function Ce(Je,Ve){if(Je._length!==Ve._length||Je.c!==Ve.c)return!1;var Ne,qe=Je._length;for(Ne=0;Ne<qe;Ne+=1)if(Je.v[Ne][0]!==Ve.v[Ne][0]||Je.v[Ne][1]!==Ve.v[Ne][1]||Je.o[Ne][0]!==Ve.o[Ne][0]||Je.o[Ne][1]!==Ve.o[Ne][1]||Je.i[Ne][0]!==Ve.i[Ne][0]||Je.i[Ne][1]!==Ve.i[Ne][1])return!1;return!0}function $e(Je){Ce(this.v,Je)||(this.v=Bt.clone(Je),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Me(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var Je;this.lock=!0,this._mdf=!1,Je=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var Ve,Ne=this.effectsSequence.length;for(Ve=0;Ve<Ne;Ve+=1)Je=this.effectsSequence[Ve](Je);this.setVValue(Je),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function We(Je,Ve,Ne){this.propType="shape",this.comp=Je.comp,this.container=Je,this.elem=Je,this.data=Ve,this.k=!1,this.kf=!1,this._mdf=!1;var qe=Ne===3?Ve.pt.k:Ve.ks.k;this.v=Bt.clone(qe),this.pv=Bt.clone(this.v),this.localShapeCollection=dn.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function Qe(Je){this.effectsSequence.push(Je),this.container.addDynamicProperty(this)}function Ot(Je,Ve,Ne){this.propType="shape",this.comp=Je.comp,this.elem=Je,this.container=Je,this.offsetTime=Je.data.st,this.keyframes=Ne===3?Ve.pt.k:Ve.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var qe=this.keyframes[0].s[0].i.length;this.v=Bt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,qe),this.pv=Bt.clone(this.v),this.localShapeCollection=dn.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=G,this.reset=xe,this._caching={lastFrame:G,lastIndex:0},this.effectsSequence=[pe.bind(this)]}We.prototype.interpolateShape=X,We.prototype.getValue=Me,We.prototype.setVValue=$e,We.prototype.addEffect=Qe,Ot.prototype.getValue=Me,Ot.prototype.interpolateShape=X,Ot.prototype.setVValue=$e,Ot.prototype.addEffect=Qe;var Kt=(function(){var Je=L;function Ve(Ne,qe){this.v=Bt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=dn.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=qe.d,this.elem=Ne,this.comp=Ne.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ne),this.p=Ke.getProp(Ne,qe.p,1,0,this),this.s=Ke.getProp(Ne,qe.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Ve.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ne=this.p.v[0],qe=this.p.v[1],mt=this.s.v[0]/2,rn=this.s.v[1]/2,cn=this.d!==3,Ft=this.v;Ft.v[0][0]=Ne,Ft.v[0][1]=qe-rn,Ft.v[1][0]=cn?Ne+mt:Ne-mt,Ft.v[1][1]=qe,Ft.v[2][0]=Ne,Ft.v[2][1]=qe+rn,Ft.v[3][0]=cn?Ne-mt:Ne+mt,Ft.v[3][1]=qe,Ft.i[0][0]=cn?Ne-mt*Je:Ne+mt*Je,Ft.i[0][1]=qe-rn,Ft.i[1][0]=cn?Ne+mt:Ne-mt,Ft.i[1][1]=qe-rn*Je,Ft.i[2][0]=cn?Ne+mt*Je:Ne-mt*Je,Ft.i[2][1]=qe+rn,Ft.i[3][0]=cn?Ne-mt:Ne+mt,Ft.i[3][1]=qe+rn*Je,Ft.o[0][0]=cn?Ne+mt*Je:Ne-mt*Je,Ft.o[0][1]=qe-rn,Ft.o[1][0]=cn?Ne+mt:Ne-mt,Ft.o[1][1]=qe+rn*Je,Ft.o[2][0]=cn?Ne-mt*Je:Ne+mt*Je,Ft.o[2][1]=qe+rn,Ft.o[3][0]=cn?Ne-mt:Ne+mt,Ft.o[3][1]=qe-rn*Je}},g([Lt],Ve),Ve})(),et=(function(){function Je(Ve,Ne){this.v=Bt.newElement(),this.v.setPathData(!0,0),this.elem=Ve,this.comp=Ve.comp,this.data=Ne,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(Ve),Ne.sy===1?(this.ir=Ke.getProp(Ve,Ne.ir,0,0,this),this.is=Ke.getProp(Ve,Ne.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ke.getProp(Ve,Ne.pt,0,0,this),this.p=Ke.getProp(Ve,Ne.p,1,0,this),this.r=Ke.getProp(Ve,Ne.r,0,D,this),this.or=Ke.getProp(Ve,Ne.or,0,0,this),this.os=Ke.getProp(Ve,Ne.os,0,.01,this),this.localShapeCollection=dn.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Je.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var Ve,Ne,qe,mt,rn=2*Math.floor(this.pt.v),cn=2*Math.PI/rn,Ft=!0,po=this.or.v,jo=this.ir.v,li=this.os.v,qo=this.is.v,lo=2*Math.PI*po/(2*rn),zt=2*Math.PI*jo/(2*rn),gn=-Math.PI/2;gn+=this.r.v;var gt=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<rn;Ve+=1){qe=Ft?li:qo,mt=Ft?lo:zt;var rt=(Ne=Ft?po:jo)*Math.cos(gn),ze=Ne*Math.sin(gn),dt=rt===0&&ze===0?0:ze/Math.sqrt(rt*rt+ze*ze),wt=rt===0&&ze===0?0:-rt/Math.sqrt(rt*rt+ze*ze);rt+=+this.p.v[0],ze+=+this.p.v[1],this.v.setTripleAt(rt,ze,rt-dt*mt*qe*gt,ze-wt*mt*qe*gt,rt+dt*mt*qe*gt,ze+wt*mt*qe*gt,Ve,!0),Ft=!Ft,gn+=cn*gt}},convertPolygonToPath:function(){var Ve,Ne=Math.floor(this.pt.v),qe=2*Math.PI/Ne,mt=this.or.v,rn=this.os.v,cn=2*Math.PI*mt/(4*Ne),Ft=.5*-Math.PI,po=this.data.d===3?-1:1;for(Ft+=this.r.v,this.v._length=0,Ve=0;Ve<Ne;Ve+=1){var jo=mt*Math.cos(Ft),li=mt*Math.sin(Ft),qo=jo===0&&li===0?0:li/Math.sqrt(jo*jo+li*li),lo=jo===0&&li===0?0:-jo/Math.sqrt(jo*jo+li*li);jo+=+this.p.v[0],li+=+this.p.v[1],this.v.setTripleAt(jo,li,jo-qo*cn*rn*po,li-lo*cn*rn*po,jo+qo*cn*rn*po,li+lo*cn*rn*po,Ve,!0),Ft+=qe*po}this.paths.length=0,this.paths[0]=this.v}},g([Lt],Je),Je})(),ct=(function(){function Je(Ve,Ne){this.v=Bt.newElement(),this.v.c=!0,this.localShapeCollection=dn.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Ve,this.comp=Ve.comp,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(Ve),this.p=Ke.getProp(Ve,Ne.p,1,0,this),this.s=Ke.getProp(Ve,Ne.s,1,0,this),this.r=Ke.getProp(Ve,Ne.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Je.prototype={convertRectToPath:function(){var Ve=this.p.v[0],Ne=this.p.v[1],qe=this.s.v[0]/2,mt=this.s.v[1]/2,rn=I(qe,mt,this.r.v),cn=rn*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Ve+qe,Ne-mt+rn,Ve+qe,Ne-mt+rn,Ve+qe,Ne-mt+cn,0,!0),this.v.setTripleAt(Ve+qe,Ne+mt-rn,Ve+qe,Ne+mt-cn,Ve+qe,Ne+mt-rn,1,!0),rn!==0?(this.v.setTripleAt(Ve+qe-rn,Ne+mt,Ve+qe-rn,Ne+mt,Ve+qe-cn,Ne+mt,2,!0),this.v.setTripleAt(Ve-qe+rn,Ne+mt,Ve-qe+cn,Ne+mt,Ve-qe+rn,Ne+mt,3,!0),this.v.setTripleAt(Ve-qe,Ne+mt-rn,Ve-qe,Ne+mt-rn,Ve-qe,Ne+mt-cn,4,!0),this.v.setTripleAt(Ve-qe,Ne-mt+rn,Ve-qe,Ne-mt+cn,Ve-qe,Ne-mt+rn,5,!0),this.v.setTripleAt(Ve-qe+rn,Ne-mt,Ve-qe+rn,Ne-mt,Ve-qe+cn,Ne-mt,6,!0),this.v.setTripleAt(Ve+qe-rn,Ne-mt,Ve+qe-cn,Ne-mt,Ve+qe-rn,Ne-mt,7,!0)):(this.v.setTripleAt(Ve-qe,Ne+mt,Ve-qe+cn,Ne+mt,Ve-qe,Ne+mt,2),this.v.setTripleAt(Ve-qe,Ne-mt,Ve-qe,Ne-mt+cn,Ve-qe,Ne-mt,3))):(this.v.setTripleAt(Ve+qe,Ne-mt+rn,Ve+qe,Ne-mt+cn,Ve+qe,Ne-mt+rn,0,!0),rn!==0?(this.v.setTripleAt(Ve+qe-rn,Ne-mt,Ve+qe-rn,Ne-mt,Ve+qe-cn,Ne-mt,1,!0),this.v.setTripleAt(Ve-qe+rn,Ne-mt,Ve-qe+cn,Ne-mt,Ve-qe+rn,Ne-mt,2,!0),this.v.setTripleAt(Ve-qe,Ne-mt+rn,Ve-qe,Ne-mt+rn,Ve-qe,Ne-mt+cn,3,!0),this.v.setTripleAt(Ve-qe,Ne+mt-rn,Ve-qe,Ne+mt-cn,Ve-qe,Ne+mt-rn,4,!0),this.v.setTripleAt(Ve-qe+rn,Ne+mt,Ve-qe+rn,Ne+mt,Ve-qe+cn,Ne+mt,5,!0),this.v.setTripleAt(Ve+qe-rn,Ne+mt,Ve+qe-cn,Ne+mt,Ve+qe-rn,Ne+mt,6,!0),this.v.setTripleAt(Ve+qe,Ne+mt-rn,Ve+qe,Ne+mt-rn,Ve+qe,Ne+mt-cn,7,!0)):(this.v.setTripleAt(Ve-qe,Ne-mt,Ve-qe+cn,Ne-mt,Ve-qe,Ne-mt,1,!0),this.v.setTripleAt(Ve-qe,Ne+mt,Ve-qe,Ne+mt-cn,Ve-qe,Ne+mt,2,!0),this.v.setTripleAt(Ve+qe,Ne+mt,Ve+qe-cn,Ne+mt,Ve+qe,Ne+mt,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:xe},g([Lt],Je),Je})();function Ct(Je,Ve,Ne){var qe;return Ne===3||Ne===4?qe=(Ne===3?Ve.pt:Ve.ks).k.length?new Ot(Je,Ve,Ne):new We(Je,Ve,Ne):Ne===5?qe=new ct(Je,Ve):Ne===6?qe=new Kt(Je,Ve):Ne===7&&(qe=new et(Je,Ve)),qe.k&&Je.addDynamicProperty(qe),qe}function Et(){return We}function Gt(){return Ot}var Jt={};return Jt.getShapeProp=Ct,Jt.getConstructorFunction=Et,Jt.getKeyframedConstructorFunction=Gt,Jt})(),vt=(function(){var G=Math.cos,X=Math.sin,pe=Math.tan,xe=Math.round;function Ce(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function $e(ze){if(ze===0)return this;var dt=G(ze),wt=X(ze);return this._t(dt,-wt,0,0,wt,dt,0,0,0,0,1,0,0,0,0,1)}function Me(ze){if(ze===0)return this;var dt=G(ze),wt=X(ze);return this._t(1,0,0,0,0,dt,-wt,0,0,wt,dt,0,0,0,0,1)}function We(ze){if(ze===0)return this;var dt=G(ze),wt=X(ze);return this._t(dt,0,wt,0,0,1,0,0,-wt,0,dt,0,0,0,0,1)}function Qe(ze){if(ze===0)return this;var dt=G(ze),wt=X(ze);return this._t(dt,-wt,0,0,wt,dt,0,0,0,0,1,0,0,0,0,1)}function Ot(ze,dt){return this._t(1,dt,ze,1,0,0)}function Kt(ze,dt){return this.shear(pe(ze),pe(dt))}function et(ze,dt){var wt=G(dt),gi=X(dt);return this._t(wt,gi,0,0,-gi,wt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,pe(ze),1,0,0,0,0,1,0,0,0,0,1)._t(wt,-gi,0,0,gi,wt,0,0,0,0,1,0,0,0,0,1)}function ct(ze,dt,wt){return!wt&&wt!==0&&(wt=1),ze===1&&dt===1&&wt===1?this:this._t(ze,0,0,0,0,dt,0,0,0,0,wt,0,0,0,0,1)}function Ct(ze,dt,wt,gi,Ko,Bo,wa,Zo,pl,ma,Ga,Am,u2,Sm,km,eh){return this.props[0]=ze,this.props[1]=dt,this.props[2]=wt,this.props[3]=gi,this.props[4]=Ko,this.props[5]=Bo,this.props[6]=wa,this.props[7]=Zo,this.props[8]=pl,this.props[9]=ma,this.props[10]=Ga,this.props[11]=Am,this.props[12]=u2,this.props[13]=Sm,this.props[14]=km,this.props[15]=eh,this}function Et(ze,dt,wt){return wt=wt||0,ze!==0||dt!==0||wt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ze,dt,wt,1):this}function Gt(ze,dt,wt,gi,Ko,Bo,wa,Zo,pl,ma,Ga,Am,u2,Sm,km,eh){var dr=this.props;if(ze===1&&dt===0&&wt===0&&gi===0&&Ko===0&&Bo===1&&wa===0&&Zo===0&&pl===0&&ma===0&&Ga===1&&Am===0)return dr[12]=dr[12]*ze+dr[15]*u2,dr[13]=dr[13]*Bo+dr[15]*Sm,dr[14]=dr[14]*Ga+dr[15]*km,dr[15]*=eh,this._identityCalculated=!1,this;var ik=dr[0],ok=dr[1],X8=dr[2],Ff=dr[3],ox=dr[4],th=dr[5],Dy=dr[6],Ty=dr[7],p2=dr[8],Ly=dr[9],h2=dr[10],ew=dr[11],n_=dr[12],i_=dr[13],o_=dr[14],r_=dr[15];return dr[0]=ik*ze+ok*Ko+X8*pl+Ff*u2,dr[1]=ik*dt+ok*Bo+X8*ma+Ff*Sm,dr[2]=ik*wt+ok*wa+X8*Ga+Ff*km,dr[3]=ik*gi+ok*Zo+X8*Am+Ff*eh,dr[4]=ox*ze+th*Ko+Dy*pl+Ty*u2,dr[5]=ox*dt+th*Bo+Dy*ma+Ty*Sm,dr[6]=ox*wt+th*wa+Dy*Ga+Ty*km,dr[7]=ox*gi+th*Zo+Dy*Am+Ty*eh,dr[8]=p2*ze+Ly*Ko+h2*pl+ew*u2,dr[9]=p2*dt+Ly*Bo+h2*ma+ew*Sm,dr[10]=p2*wt+Ly*wa+h2*Ga+ew*km,dr[11]=p2*gi+Ly*Zo+h2*Am+ew*eh,dr[12]=n_*ze+i_*Ko+o_*pl+r_*u2,dr[13]=n_*dt+i_*Bo+o_*ma+r_*Sm,dr[14]=n_*wt+i_*wa+o_*Ga+r_*km,dr[15]=n_*gi+i_*Zo+o_*Am+r_*eh,this._identityCalculated=!1,this}function Jt(ze){var dt=ze.props;return this.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15])}function Je(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function Ve(ze){for(var dt=0;dt<16;){if(ze.props[dt]!==this.props[dt])return!1;dt+=1}return!0}function Ne(ze){var dt;for(dt=0;dt<16;dt+=1)ze.props[dt]=this.props[dt];return ze}function qe(ze){var dt;for(dt=0;dt<16;dt+=1)this.props[dt]=ze[dt]}function mt(ze,dt,wt){return{x:ze*this.props[0]+dt*this.props[4]+wt*this.props[8]+this.props[12],y:ze*this.props[1]+dt*this.props[5]+wt*this.props[9]+this.props[13],z:ze*this.props[2]+dt*this.props[6]+wt*this.props[10]+this.props[14]}}function rn(ze,dt,wt){return ze*this.props[0]+dt*this.props[4]+wt*this.props[8]+this.props[12]}function cn(ze,dt,wt){return ze*this.props[1]+dt*this.props[5]+wt*this.props[9]+this.props[13]}function Ft(ze,dt,wt){return ze*this.props[2]+dt*this.props[6]+wt*this.props[10]+this.props[14]}function po(){var ze=this.props[0]*this.props[5]-this.props[1]*this.props[4],dt=this.props[5]/ze,wt=-this.props[1]/ze,gi=-this.props[4]/ze,Ko=this.props[0]/ze,Bo=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ze,wa=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ze,Zo=new vt;return Zo.props[0]=dt,Zo.props[1]=wt,Zo.props[4]=gi,Zo.props[5]=Ko,Zo.props[12]=Bo,Zo.props[13]=wa,Zo}function jo(ze){return this.getInverseMatrix().applyToPointArray(ze[0],ze[1],ze[2]||0)}function li(ze){var dt,wt=ze.length,gi=[];for(dt=0;dt<wt;dt+=1)gi[dt]=jo(ze[dt]);return gi}function qo(ze,dt,wt){var gi=y("float32",6);if(this.isIdentity())gi[0]=ze[0],gi[1]=ze[1],gi[2]=dt[0],gi[3]=dt[1],gi[4]=wt[0],gi[5]=wt[1];else{var Ko=this.props[0],Bo=this.props[1],wa=this.props[4],Zo=this.props[5],pl=this.props[12],ma=this.props[13];gi[0]=ze[0]*Ko+ze[1]*wa+pl,gi[1]=ze[0]*Bo+ze[1]*Zo+ma,gi[2]=dt[0]*Ko+dt[1]*wa+pl,gi[3]=dt[0]*Bo+dt[1]*Zo+ma,gi[4]=wt[0]*Ko+wt[1]*wa+pl,gi[5]=wt[0]*Bo+wt[1]*Zo+ma}return gi}function lo(ze,dt,wt){return this.isIdentity()?[ze,dt,wt]:[ze*this.props[0]+dt*this.props[4]+wt*this.props[8]+this.props[12],ze*this.props[1]+dt*this.props[5]+wt*this.props[9]+this.props[13],ze*this.props[2]+dt*this.props[6]+wt*this.props[10]+this.props[14]]}function zt(ze,dt){if(this.isIdentity())return ze+","+dt;var wt=this.props;return Math.round(100*(ze*wt[0]+dt*wt[4]+wt[12]))/100+","+Math.round(100*(ze*wt[1]+dt*wt[5]+wt[13]))/100}function gn(){for(var ze=0,dt=this.props,wt="matrix3d(",gi=1e4;ze<16;)wt+=xe(dt[ze]*gi)/gi,wt+=ze===15?")":",",ze+=1;return wt}function gt(ze){var dt=1e4;return ze<1e-6&&ze>0||ze>-1e-6&&ze<0?xe(ze*dt)/dt:ze}function rt(){var ze=this.props;return"matrix("+gt(ze[0])+","+gt(ze[1])+","+gt(ze[4])+","+gt(ze[5])+","+gt(ze[12])+","+gt(ze[13])+")"}return function(){this.reset=Ce,this.rotate=$e,this.rotateX=Me,this.rotateY=We,this.rotateZ=Qe,this.skew=Kt,this.skewFromAxis=et,this.shear=Ot,this.scale=ct,this.setTransform=Ct,this.translate=Et,this.transform=Gt,this.multiply=Jt,this.applyToPoint=mt,this.applyToX=rn,this.applyToY=cn,this.applyToZ=Ft,this.applyToPointArray=lo,this.applyToTriplePoints=qo,this.applyToPointStringified=zt,this.toCSS=gn,this.to2dCSS=rt,this.clone=Ne,this.cloneFromProps=qe,this.equals=Ve,this.inversePoints=li,this.inversePoint=jo,this.getInverseMatrix=po,this._t=this.transform,this.isIdentity=Je,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function fn(G){return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},fn(G)}var Qt={};function sn(G){u(G)}function nn(){Be.searchAnimations()}function tt(G){K(G)}function jn(G){re(G)}function Mn(G){return Be.loadAnimation(G)}function wi(G){if(typeof G=="string")switch(G){case"high":ne(200);break;default:case"medium":ne(50);break;case"low":ne(10)}else!isNaN(G)&&G>1&&ne(G)}function io(){return typeof navigator<"u"}function ui(G,X){G==="expressions"&&ee(X)}function Xt(G){switch(G){case"propertyFactory":return Ke;case"shapePropertyFactory":return Xe;case"matrix":return vt;default:return null}}function Rn(){document.readyState==="complete"&&(clearInterval(ti),nn())}function Qn(G){for(var X=Zn.split("&"),pe=0;pe<X.length;pe+=1){var xe=X[pe].split("=");if(decodeURIComponent(xe[0])==G)return decodeURIComponent(xe[1])}return null}Qt.play=Be.play,Qt.pause=Be.pause,Qt.setLocationHref=sn,Qt.togglePause=Be.togglePause,Qt.setSpeed=Be.setSpeed,Qt.setDirection=Be.setDirection,Qt.stop=Be.stop,Qt.searchAnimations=nn,Qt.registerAnimation=Be.registerAnimation,Qt.loadAnimation=Mn,Qt.setSubframeRendering=tt,Qt.resize=Be.resize,Qt.goToAndStop=Be.goToAndStop,Qt.destroy=Be.destroy,Qt.setQuality=wi,Qt.inBrowser=io,Qt.installPlugin=ui,Qt.freeze=Be.freeze,Qt.unfreeze=Be.unfreeze,Qt.setVolume=Be.setVolume,Qt.mute=Be.mute,Qt.unmute=Be.unmute,Qt.getRegisteredAnimations=Be.getRegisteredAnimations,Qt.useWebWorker=c,Qt.setIDPrefix=jn,Qt.__getFactory=Xt,Qt.version="5.13.0";var Zn="",ii=document.getElementsByTagName("script"),fi=ii.length-1,En=ii[fi]||{src:""};Zn=En.src?En.src.replace(/^[^\?]+\??/,""):"",Qn("renderer");var ti=setInterval(Rn,100);try{fn(n)!=="object"&&(window.bodymovin=Qt)}catch{}var hn=(function(){var G={},X={};function pe(Ce,$e){X[Ce]||(X[Ce]=$e)}function xe(Ce,$e,Me){return new X[Ce]($e,Me)}return G.registerModifier=pe,G.getModifier=xe,G})();function Bn(){}function on(){}function Vt(){}Bn.prototype.initModifierProperties=function(){},Bn.prototype.addShapeToModifier=function(){},Bn.prototype.addShape=function(G){if(!this.closed){G.sh.container.addDynamicProperty(G.sh);var X={shape:G.sh,data:G,localShapeCollection:dn.newShapeCollection()};this.shapes.push(X),this.addShapeToModifier(X),this._isAnimated&&G.setAsAnimated()}},Bn.prototype.init=function(G,X){this.shapes=[],this.elem=G,this.initDynamicPropertyContainer(G),this.initModifierProperties(G,X),this.frameId=l,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Bn.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},g([Lt],Bn),g([Bn],on),on.prototype.initModifierProperties=function(G,X){this.s=Ke.getProp(G,X.s,0,.01,this),this.e=Ke.getProp(G,X.e,0,.01,this),this.o=Ke.getProp(G,X.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=X.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},on.prototype.addShapeToModifier=function(G){G.pathsData=[]},on.prototype.calculateShapeEdges=function(G,X,pe,xe,Ce){var $e=[];X<=1?$e.push({s:G,e:X}):G>=1?$e.push({s:G-1,e:X-1}):($e.push({s:G,e:1}),$e.push({s:0,e:X-1}));var Me,We,Qe=[],Ot=$e.length;for(Me=0;Me<Ot;Me+=1)if(!((We=$e[Me]).e*Ce<xe||We.s*Ce>xe+pe)){var Kt,et;Kt=We.s*Ce<=xe?0:(We.s*Ce-xe)/pe,et=We.e*Ce>=xe+pe?1:(We.e*Ce-xe)/pe,Qe.push([Kt,et])}return Qe.length||Qe.push([0,0]),Qe},on.prototype.releasePathsData=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)Se.release(G[X]);return G.length=0,G},on.prototype.processShapes=function(G){var X,pe;if(this._mdf||G){var xe=this.o.v%360/360;if(xe<0&&(xe+=1),(X=this.s.v>1?1+xe:this.s.v<0?0+xe:this.s.v+xe)>(pe=this.e.v>1?1+xe:this.e.v<0?0+xe:this.e.v+xe)){var Ce=X;X=pe,pe=Ce}X=1e-4*Math.round(1e4*X),pe=1e-4*Math.round(1e4*pe),this.sValue=X,this.eValue=pe}else X=this.sValue,pe=this.eValue;var $e,Me,We,Qe,Ot,Kt,et,ct=this.shapes.length,Ct=0;if(pe===X)for(Me=0;Me<ct;Me+=1)this.shapes[Me].localShapeCollection.releaseShapes(),this.shapes[Me].shape._mdf=!0,this.shapes[Me].shape.paths=this.shapes[Me].localShapeCollection,this._mdf&&(this.shapes[Me].pathsData.length=0);else if(pe===1&&X===0||pe===0&&X===1){if(this._mdf)for(Me=0;Me<ct;Me+=1)this.shapes[Me].pathsData.length=0,this.shapes[Me].shape._mdf=!0}else{var Et,Gt,Jt=[];for(Me=0;Me<ct;Me+=1)if((Et=this.shapes[Me]).shape._mdf||this._mdf||G||this.m===2){if(Qe=($e=Et.shape.paths)._length,et=0,!Et.shape._mdf&&Et.pathsData.length)et=Et.totalShapeLength;else{for(Ot=this.releasePathsData(Et.pathsData),We=0;We<Qe;We+=1)Kt=Ie.getSegmentsLength($e.shapes[We]),Ot.push(Kt),et+=Kt.totalLength;Et.totalShapeLength=et,Et.pathsData=Ot}Ct+=et,Et.shape._mdf=!0}else Et.shape.paths=Et.localShapeCollection;var Je,Ve=X,Ne=pe,qe=0;for(Me=ct-1;Me>=0;Me-=1)if((Et=this.shapes[Me]).shape._mdf){for((Gt=Et.localShapeCollection).releaseShapes(),this.m===2&&ct>1?(Je=this.calculateShapeEdges(X,pe,Et.totalShapeLength,qe,Ct),qe+=Et.totalShapeLength):Je=[[Ve,Ne]],Qe=Je.length,We=0;We<Qe;We+=1){Ve=Je[We][0],Ne=Je[We][1],Jt.length=0,Ne<=1?Jt.push({s:Et.totalShapeLength*Ve,e:Et.totalShapeLength*Ne}):Ve>=1?Jt.push({s:Et.totalShapeLength*(Ve-1),e:Et.totalShapeLength*(Ne-1)}):(Jt.push({s:Et.totalShapeLength*Ve,e:Et.totalShapeLength}),Jt.push({s:0,e:Et.totalShapeLength*(Ne-1)}));var mt=this.addShapes(Et,Jt[0]);if(Jt[0].s!==Jt[0].e){if(Jt.length>1)if(Et.shape.paths.shapes[Et.shape.paths._length-1].c){var rn=mt.pop();this.addPaths(mt,Gt),mt=this.addShapes(Et,Jt[1],rn)}else this.addPaths(mt,Gt),mt=this.addShapes(Et,Jt[1]);this.addPaths(mt,Gt)}}Et.shape.paths=Gt}}},on.prototype.addPaths=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)X.addShape(G[pe])},on.prototype.addSegment=function(G,X,pe,xe,Ce,$e,Me){Ce.setXYAt(X[0],X[1],"o",$e),Ce.setXYAt(pe[0],pe[1],"i",$e+1),Me&&Ce.setXYAt(G[0],G[1],"v",$e),Ce.setXYAt(xe[0],xe[1],"v",$e+1)},on.prototype.addSegmentFromArray=function(G,X,pe,xe){X.setXYAt(G[1],G[5],"o",pe),X.setXYAt(G[2],G[6],"i",pe+1),xe&&X.setXYAt(G[0],G[4],"v",pe),X.setXYAt(G[3],G[7],"v",pe+1)},on.prototype.addShapes=function(G,X,pe){var xe,Ce,$e,Me,We,Qe,Ot,Kt,et=G.pathsData,ct=G.shape.paths.shapes,Ct=G.shape.paths._length,Et=0,Gt=[],Jt=!0;for(pe?(We=pe._length,Kt=pe._length):(pe=Bt.newElement(),We=0,Kt=0),Gt.push(pe),xe=0;xe<Ct;xe+=1){for(Qe=et[xe].lengths,pe.c=ct[xe].c,$e=ct[xe].c?Qe.length:Qe.length+1,Ce=1;Ce<$e;Ce+=1)if(Et+(Me=Qe[Ce-1]).addedLength<X.s)Et+=Me.addedLength,pe.c=!1;else{if(Et>X.e){pe.c=!1;break}X.s<=Et&&X.e>=Et+Me.addedLength?(this.addSegment(ct[xe].v[Ce-1],ct[xe].o[Ce-1],ct[xe].i[Ce],ct[xe].v[Ce],pe,We,Jt),Jt=!1):(Ot=Ie.getNewSegment(ct[xe].v[Ce-1],ct[xe].v[Ce],ct[xe].o[Ce-1],ct[xe].i[Ce],(X.s-Et)/Me.addedLength,(X.e-Et)/Me.addedLength,Qe[Ce-1]),this.addSegmentFromArray(Ot,pe,We,Jt),Jt=!1,pe.c=!1),Et+=Me.addedLength,We+=1}if(ct[xe].c&&Qe.length){if(Me=Qe[Ce-1],Et<=X.e){var Je=Qe[Ce-1].addedLength;X.s<=Et&&X.e>=Et+Je?(this.addSegment(ct[xe].v[Ce-1],ct[xe].o[Ce-1],ct[xe].i[0],ct[xe].v[0],pe,We,Jt),Jt=!1):(Ot=Ie.getNewSegment(ct[xe].v[Ce-1],ct[xe].v[0],ct[xe].o[Ce-1],ct[xe].i[0],(X.s-Et)/Je,(X.e-Et)/Je,Qe[Ce-1]),this.addSegmentFromArray(Ot,pe,We,Jt),Jt=!1,pe.c=!1)}else pe.c=!1;Et+=Me.addedLength,We+=1}if(pe._length&&(pe.setXYAt(pe.v[Kt][0],pe.v[Kt][1],"i",Kt),pe.setXYAt(pe.v[pe._length-1][0],pe.v[pe._length-1][1],"o",pe._length-1)),Et>X.e)break;xe<Ct-1&&(pe=Bt.newElement(),Jt=!0,Gt.push(pe),We=0)}return Gt},g([Bn],Vt),Vt.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amount=Ke.getProp(G,X.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Vt.prototype.processPath=function(G,X){var pe=X/100,xe=[0,0],Ce=G._length,$e=0;for($e=0;$e<Ce;$e+=1)xe[0]+=G.v[$e][0],xe[1]+=G.v[$e][1];xe[0]/=Ce,xe[1]/=Ce;var Me,We,Qe,Ot,Kt,et,ct=Bt.newElement();for(ct.c=G.c,$e=0;$e<Ce;$e+=1)Me=G.v[$e][0]+(xe[0]-G.v[$e][0])*pe,We=G.v[$e][1]+(xe[1]-G.v[$e][1])*pe,Qe=G.o[$e][0]+(xe[0]-G.o[$e][0])*-pe,Ot=G.o[$e][1]+(xe[1]-G.o[$e][1])*-pe,Kt=G.i[$e][0]+(xe[0]-G.i[$e][0])*-pe,et=G.i[$e][1]+(xe[1]-G.i[$e][1])*-pe,ct.setTripleAt(Me,We,Qe,Ot,Kt,et,$e);return ct},Vt.prototype.processShapes=function(G){var X,pe,xe,Ce,$e,Me,We=this.shapes.length,Qe=this.amount.v;if(Qe!==0)for(pe=0;pe<We;pe+=1){if(Me=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Me.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,Ce=$e.shape.paths._length,xe=0;xe<Ce;xe+=1)Me.addShape(this.processPath(X[xe],Qe));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Nt=(function(){var G=[0,0];function X(Qe){var Ot=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Ot,this.a&&Qe.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Qe.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Qe.skewFromAxis(-this.sk.v,this.sa.v),this.r?Qe.rotate(-this.r.v):Qe.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Qe.translate(this.px.v,this.py.v,-this.pz.v):Qe.translate(this.px.v,this.py.v,0):Qe.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(Qe){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Qe){var Ot;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Kt,et;if(Ot=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Kt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/Ot,0),et=this.p.getValueAtTime(this.p.keyframes[0].t/Ot,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Kt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/Ot,0),et=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Ot,0)):(Kt=this.p.pv,et=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Ot,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Kt=[],et=[];var ct=this.px,Ct=this.py;ct._caching.lastFrame+ct.offsetTime<=ct.keyframes[0].t?(Kt[0]=ct.getValueAtTime((ct.keyframes[0].t+.01)/Ot,0),Kt[1]=Ct.getValueAtTime((Ct.keyframes[0].t+.01)/Ot,0),et[0]=ct.getValueAtTime(ct.keyframes[0].t/Ot,0),et[1]=Ct.getValueAtTime(Ct.keyframes[0].t/Ot,0)):ct._caching.lastFrame+ct.offsetTime>=ct.keyframes[ct.keyframes.length-1].t?(Kt[0]=ct.getValueAtTime(ct.keyframes[ct.keyframes.length-1].t/Ot,0),Kt[1]=Ct.getValueAtTime(Ct.keyframes[Ct.keyframes.length-1].t/Ot,0),et[0]=ct.getValueAtTime((ct.keyframes[ct.keyframes.length-1].t-.01)/Ot,0),et[1]=Ct.getValueAtTime((Ct.keyframes[Ct.keyframes.length-1].t-.01)/Ot,0)):(Kt=[ct.pv,Ct.pv],et[0]=ct.getValueAtTime((ct._caching.lastFrame+ct.offsetTime-.01)/Ot,ct.offsetTime),et[1]=Ct.getValueAtTime((Ct._caching.lastFrame+Ct.offsetTime-.01)/Ot,Ct.offsetTime))}else Kt=et=G;this.v.rotate(-Math.atan2(Kt[1]-et[1],Kt[0]-et[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function xe(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function Ce(){}function $e(Qe){this._addDynamicProperty(Qe),this.elem.addDynamicProperty(Qe),this._isDirty=!0}function Me(Qe,Ot,Kt){if(this.elem=Qe,this.frameId=-1,this.propType="transform",this.data=Ot,this.v=new vt,this.pre=new vt,this.appliedTransformations=0,this.initDynamicPropertyContainer(Kt||Qe),Ot.p&&Ot.p.s?(this.px=Ke.getProp(Qe,Ot.p.x,0,0,this),this.py=Ke.getProp(Qe,Ot.p.y,0,0,this),Ot.p.z&&(this.pz=Ke.getProp(Qe,Ot.p.z,0,0,this))):this.p=Ke.getProp(Qe,Ot.p||{k:[0,0,0]},1,0,this),Ot.rx){if(this.rx=Ke.getProp(Qe,Ot.rx,0,D,this),this.ry=Ke.getProp(Qe,Ot.ry,0,D,this),this.rz=Ke.getProp(Qe,Ot.rz,0,D,this),Ot.or.k[0].ti){var et,ct=Ot.or.k.length;for(et=0;et<ct;et+=1)Ot.or.k[et].to=null,Ot.or.k[et].ti=null}this.or=Ke.getProp(Qe,Ot.or,1,D,this),this.or.sh=!0}else this.r=Ke.getProp(Qe,Ot.r||{k:0},0,D,this);Ot.sk&&(this.sk=Ke.getProp(Qe,Ot.sk,0,D,this),this.sa=Ke.getProp(Qe,Ot.sa,0,D,this)),this.a=Ke.getProp(Qe,Ot.a||{k:[0,0,0]},1,0,this),this.s=Ke.getProp(Qe,Ot.s||{k:[100,100,100]},1,.01,this),Ot.o?this.o=Ke.getProp(Qe,Ot.o,0,.01,Qe):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function We(Qe,Ot,Kt){return new Me(Qe,Ot,Kt)}return Me.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:Ce},g([Lt],Me),Me.prototype.addDynamicProperty=$e,Me.prototype._addDynamicProperty=Lt.prototype.addDynamicProperty,{getTransformProperty:We}})();function Wn(){}function Xn(){}function qt(G,X){return 1e5*Math.abs(G-X)<=Math.min(Math.abs(G),Math.abs(X))}function Xi(G){return Math.abs(G)<=1e-5}function hi(G,X,pe){return G*(1-pe)+X*pe}function Yi(G,X,pe){return[hi(G[0],X[0],pe),hi(G[1],X[1],pe)]}function bo(G,X,pe){if(G===0)return[];var xe=X*X-4*G*pe;if(xe<0)return[];var Ce=-X/(2*G);if(xe===0)return[Ce];var $e=Math.sqrt(xe)/(2*G);return[Ce-$e,Ce+$e]}function yi(G,X,pe,xe){return[3*X-G-3*pe+xe,3*G-6*X+3*pe,-3*G+3*X,G]}function Un(G){return new ln(G,G,G,G,!1)}function ln(G,X,pe,xe,Ce){Ce&&so(G,X)&&(X=Yi(G,xe,1/3)),Ce&&so(pe,xe)&&(pe=Yi(G,xe,2/3));var $e=yi(G[0],X[0],pe[0],xe[0]),Me=yi(G[1],X[1],pe[1],xe[1]);this.a=[$e[0],Me[0]],this.b=[$e[1],Me[1]],this.c=[$e[2],Me[2]],this.d=[$e[3],Me[3]],this.points=[G,X,pe,xe]}function Zt(G,X){var pe=G.points[0][X],xe=G.points[G.points.length-1][X];if(pe>xe){var Ce=xe;xe=pe,pe=Ce}for(var $e=bo(3*G.a[X],2*G.b[X],G.c[X]),Me=0;Me<$e.length;Me+=1)if($e[Me]>0&&$e[Me]<1){var We=G.point($e[Me])[X];We<pe?pe=We:We>xe&&(xe=We)}return{min:pe,max:xe}}function bn(G,X,pe){var xe=G.boundingBox();return{cx:xe.cx,cy:xe.cy,width:xe.width,height:xe.height,bez:G,t:(X+pe)/2,t1:X,t2:pe}}function Tn(G){var X=G.bez.split(.5);return[bn(X[0],G.t1,G.t),bn(X[1],G.t,G.t2)]}function vn(G,X){return 2*Math.abs(G.cx-X.cx)<G.width+X.width&&2*Math.abs(G.cy-X.cy)<G.height+X.height}function Ht(G,X,pe,xe,Ce,$e){if(vn(G,X)){if(pe>=$e||G.width<=xe&&G.height<=xe&&X.width<=xe&&X.height<=xe)return void Ce.push([G.t,X.t]);var Me=Tn(G),We=Tn(X);Ht(Me[0],We[0],pe+1,xe,Ce,$e),Ht(Me[0],We[1],pe+1,xe,Ce,$e),Ht(Me[1],We[0],pe+1,xe,Ce,$e),Ht(Me[1],We[1],pe+1,xe,Ce,$e)}}function zn(G,X){return[G[1]*X[2]-G[2]*X[1],G[2]*X[0]-G[0]*X[2],G[0]*X[1]-G[1]*X[0]]}function eo(G,X,pe,xe){var Ce=[G[0],G[1],1],$e=[X[0],X[1],1],Me=[pe[0],pe[1],1],We=[xe[0],xe[1],1],Qe=zn(zn(Ce,$e),zn(Me,We));return Xi(Qe[2])?null:[Qe[0]/Qe[2],Qe[1]/Qe[2]]}function to(G,X,pe){return[G[0]+Math.cos(X)*pe,G[1]-Math.sin(X)*pe]}function Qo(G,X){return Math.hypot(G[0]-X[0],G[1]-X[1])}function so(G,X){return qt(G[0],X[0])&&qt(G[1],X[1])}function pa(){}function xr(G,X,pe,xe,Ce,$e,Me){var We=pe-Math.PI/2,Qe=pe+Math.PI/2,Ot=X[0]+Math.cos(pe)*xe*Ce,Kt=X[1]-Math.sin(pe)*xe*Ce;G.setTripleAt(Ot,Kt,Ot+Math.cos(We)*$e,Kt-Math.sin(We)*$e,Ot+Math.cos(Qe)*Me,Kt-Math.sin(Qe)*Me,G.length())}function Ea(G,X){var pe=[X[0]-G[0],X[1]-G[1]],xe=.5*-Math.PI;return[Math.cos(xe)*pe[0]-Math.sin(xe)*pe[1],Math.sin(xe)*pe[0]+Math.cos(xe)*pe[1]]}function $n(G,X){var pe=X===0?G.length()-1:X-1,xe=(X+1)%G.length(),Ce=Ea(G.v[pe],G.v[xe]);return Math.atan2(0,1)-Math.atan2(Ce[1],Ce[0])}function jt(G,X,pe,xe,Ce,$e,Me){var We=$n(X,pe),Qe=X.v[pe%X._length],Ot=X.v[pe===0?X._length-1:pe-1],Kt=X.v[(pe+1)%X._length],et=$e===2?Math.sqrt(Math.pow(Qe[0]-Ot[0],2)+Math.pow(Qe[1]-Ot[1],2)):0,ct=$e===2?Math.sqrt(Math.pow(Qe[0]-Kt[0],2)+Math.pow(Qe[1]-Kt[1],2)):0;xr(G,X.v[pe%X._length],We,Me,xe,ct/(2*(Ce+1)),et/(2*(Ce+1)))}function Pn(G,X,pe,xe,Ce,$e){for(var Me=0;Me<xe;Me+=1){var We=(Me+1)/(xe+1),Qe=Ce===2?Math.sqrt(Math.pow(X.points[3][0]-X.points[0][0],2)+Math.pow(X.points[3][1]-X.points[0][1],2)):0,Ot=X.normalAngle(We);xr(G,X.point(We),Ot,$e,pe,Qe/(2*(xe+1)),Qe/(2*(xe+1))),$e=-$e}return $e}function Li(G,X,pe){var xe=Math.atan2(X[0]-G[0],X[1]-G[1]);return[to(G,xe,pe),to(X,xe,pe)]}function Bi(G,X){var pe,xe,Ce,$e,Me,We,Qe;pe=(Qe=Li(G.points[0],G.points[1],X))[0],xe=Qe[1],Ce=(Qe=Li(G.points[1],G.points[2],X))[0],$e=Qe[1],Me=(Qe=Li(G.points[2],G.points[3],X))[0],We=Qe[1];var Ot=eo(pe,xe,Ce,$e);Ot===null&&(Ot=xe);var Kt=eo(Me,We,Ce,$e);return Kt===null&&(Kt=Me),new ln(pe,Ot,Kt,We)}function Hi(G,X,pe,xe,Ce){var $e=X.points[3],Me=pe.points[0];if(xe===3||so($e,Me))return $e;if(xe===2){var We=-X.tangentAngle(1),Qe=-pe.tangentAngle(0)+Math.PI,Ot=eo($e,to($e,We+Math.PI/2,100),Me,to(Me,We+Math.PI/2,100)),Kt=Ot?Qo(Ot,$e):Qo($e,Me)/2,et=to($e,We,2*Kt*L);return G.setXYAt(et[0],et[1],"o",G.length()-1),et=to(Me,Qe,2*Kt*L),G.setTripleAt(Me[0],Me[1],Me[0],Me[1],et[0],et[1],G.length()),Me}var ct=eo(so($e,X.points[2])?X.points[0]:X.points[2],$e,Me,so(Me,pe.points[1])?pe.points[3]:pe.points[1]);return ct&&Qo(ct,$e)<Ce?(G.setTripleAt(ct[0],ct[1],ct[0],ct[1],ct[0],ct[1],G.length()),ct):$e}function vi(G,X){var pe=G.intersections(X);return pe.length&&qt(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Vo(G,X){var pe=G.slice(),xe=X.slice(),Ce=vi(G[G.length-1],X[0]);return Ce&&(pe[G.length-1]=G[G.length-1].split(Ce[0])[0],xe[0]=X[0].split(Ce[1])[1]),G.length>1&&X.length>1&&(Ce=vi(G[0],X[X.length-1]))?[[G[0].split(Ce[0])[0]],[X[X.length-1].split(Ce[1])[1]]]:[pe,xe]}function mi(G){for(var X,pe=1;pe<G.length;pe+=1)X=Vo(G[pe-1],G[pe]),G[pe-1]=X[0],G[pe]=X[1];return G.length>1&&(X=Vo(G[G.length-1],G[0]),G[G.length-1]=X[0],G[0]=X[1]),G}function fo(G,X){var pe,xe,Ce,$e,Me=G.inflectionPoints();if(Me.length===0)return[Bi(G,X)];if(Me.length===1||qt(Me[1],1))return pe=(Ce=G.split(Me[0]))[0],xe=Ce[1],[Bi(pe,X),Bi(xe,X)];pe=(Ce=G.split(Me[0]))[0];var We=(Me[1]-Me[0])/(1-Me[0]);return $e=(Ce=Ce[1].split(We))[0],xe=Ce[1],[Bi(pe,X),Bi($e,X),Bi(xe,X)]}function yr(){}function Rt(G){for(var X,pe=G.fStyle?G.fStyle.split(" "):[],xe="normal",Ce="normal",$e=pe.length,Me=0;Me<$e;Me+=1)switch(X=pe[Me].toLowerCase(),X){case"italic":Ce="italic";break;case"bold":xe="700";break;case"black":xe="900";break;case"medium":xe="500";break;case"regular":case"normal":xe="400";break;case"light":case"thin":xe="200"}return{style:Ce,weight:G.fWeight||xe}}g([Bn],Wn),Wn.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.c=Ke.getProp(G,X.c,0,null,this),this.o=Ke.getProp(G,X.o,0,null,this),this.tr=Nt.getTransformProperty(G,X.tr,this),this.so=Ke.getProp(G,X.tr.so,0,.01,this),this.eo=Ke.getProp(G,X.tr.eo,0,.01,this),this.data=X,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new vt,this.rMatrix=new vt,this.sMatrix=new vt,this.tMatrix=new vt,this.matrix=new vt},Wn.prototype.applyTransforms=function(G,X,pe,xe,Ce,$e){var Me=$e?-1:1,We=xe.s.v[0]+(1-xe.s.v[0])*(1-Ce),Qe=xe.s.v[1]+(1-xe.s.v[1])*(1-Ce);G.translate(xe.p.v[0]*Me*Ce,xe.p.v[1]*Me*Ce,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Me*Ce),X.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2]),pe.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),pe.scale($e?1/We:We,$e?1/Qe:Qe),pe.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2])},Wn.prototype.init=function(G,X,pe,xe){for(this.elem=G,this.arr=X,this.pos=pe,this.elemsData=xe,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(G),this.initModifierProperties(G,X[pe]);pe>0;)pe-=1,this._elements.unshift(X[pe]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Wn.prototype.resetElements=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X]._processed=!1,G[X].ty==="gr"&&this.resetElements(G[X].it)},Wn.prototype.cloneElements=function(G){var X=JSON.parse(JSON.stringify(G));return this.resetElements(X),X},Wn.prototype.changeGroupRender=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)G[pe]._render=X,G[pe].ty==="gr"&&this.changeGroupRender(G[pe].it,X)},Wn.prototype.processShapes=function(G){var X,pe,xe,Ce,$e,Me=!1;if(this._mdf||G){var We,Qe=Math.ceil(this.c.v);if(this._groups.length<Qe){for(;this._groups.length<Qe;){var Ot={it:this.cloneElements(this._elements),ty:"gr"};Ot.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Ot),this._groups.splice(0,0,Ot),this._currentCopies+=1}this.elem.reloadShapes(),Me=!0}for($e=0,xe=0;xe<=this._groups.length-1;xe+=1){if(We=$e<Qe,this._groups[xe]._render=We,this.changeGroupRender(this._groups[xe].it,We),!We){var Kt=this.elemsData[xe].it,et=Kt[Kt.length-1];et.transform.op.v!==0?(et.transform.op._mdf=!0,et.transform.op.v=0):et.transform.op._mdf=!1}$e+=1}this._currentCopies=Qe;var ct=this.o.v,Ct=ct%1,Et=ct>0?Math.floor(ct):Math.ceil(ct),Gt=this.pMatrix.props,Jt=this.rMatrix.props,Je=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Ve,Ne,qe=0;if(ct>0){for(;qe<Et;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),qe+=1;Ct&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Ct,!1),qe+=Ct)}else if(ct<0){for(;qe>Et;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),qe-=1;Ct&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Ct,!0),qe-=Ct)}for(xe=this.data.m===1?0:this._currentCopies-1,Ce=this.data.m===1?1:-1,$e=this._currentCopies;$e;){if(Ne=(pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props).length,X[X.length-1].transform.mProps._mdf=!0,X[X.length-1].transform.op._mdf=!0,X[X.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(xe/(this._currentCopies-1)),qe!==0){for((xe!==0&&Ce===1||xe!==this._currentCopies-1&&Ce===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(Jt[0],Jt[1],Jt[2],Jt[3],Jt[4],Jt[5],Jt[6],Jt[7],Jt[8],Jt[9],Jt[10],Jt[11],Jt[12],Jt[13],Jt[14],Jt[15]),this.matrix.transform(Je[0],Je[1],Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],Je[8],Je[9],Je[10],Je[11],Je[12],Je[13],Je[14],Je[15]),this.matrix.transform(Gt[0],Gt[1],Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],Gt[8],Gt[9],Gt[10],Gt[11],Gt[12],Gt[13],Gt[14],Gt[15]),Ve=0;Ve<Ne;Ve+=1)pe[Ve]=this.matrix.props[Ve];this.matrix.reset()}else for(this.matrix.reset(),Ve=0;Ve<Ne;Ve+=1)pe[Ve]=this.matrix.props[Ve];qe+=1,$e-=1,xe+=Ce}}else for($e=this._currentCopies,xe=0,Ce=1;$e;)pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props,X[X.length-1].transform.mProps._mdf=!1,X[X.length-1].transform.op._mdf=!1,$e-=1,xe+=Ce;return Me},Wn.prototype.addShape=function(){},g([Bn],Xn),Xn.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.rd=Ke.getProp(G,X.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Xn.prototype.processPath=function(G,X){var pe=Bt.newElement();pe.c=G.c;var xe,Ce,$e,Me,We,Qe,Ot,Kt,et,ct,Ct,Et,Gt,Jt=G._length,Je=0;for(xe=0;xe<Jt;xe+=1)Ce=G.v[xe],Me=G.o[xe],$e=G.i[xe],Ce[0]===Me[0]&&Ce[1]===Me[1]&&Ce[0]===$e[0]&&Ce[1]===$e[1]?xe!==0&&xe!==Jt-1||G.c?(We=xe===0?G.v[Jt-1]:G.v[xe-1],Ot=(Qe=Math.sqrt(Math.pow(Ce[0]-We[0],2)+Math.pow(Ce[1]-We[1],2)))?Math.min(Qe/2,X)/Qe:0,Kt=Et=Ce[0]+(We[0]-Ce[0])*Ot,et=Gt=Ce[1]-(Ce[1]-We[1])*Ot,ct=Kt-(Kt-Ce[0])*L,Ct=et-(et-Ce[1])*L,pe.setTripleAt(Kt,et,ct,Ct,Et,Gt,Je),Je+=1,We=xe===Jt-1?G.v[0]:G.v[xe+1],Ot=(Qe=Math.sqrt(Math.pow(Ce[0]-We[0],2)+Math.pow(Ce[1]-We[1],2)))?Math.min(Qe/2,X)/Qe:0,Kt=ct=Ce[0]+(We[0]-Ce[0])*Ot,et=Ct=Ce[1]+(We[1]-Ce[1])*Ot,Et=Kt-(Kt-Ce[0])*L,Gt=et-(et-Ce[1])*L,pe.setTripleAt(Kt,et,ct,Ct,Et,Gt,Je),Je+=1):(pe.setTripleAt(Ce[0],Ce[1],Me[0],Me[1],$e[0],$e[1],Je),Je+=1):(pe.setTripleAt(G.v[xe][0],G.v[xe][1],G.o[xe][0],G.o[xe][1],G.i[xe][0],G.i[xe][1],Je),Je+=1);return pe},Xn.prototype.processShapes=function(G){var X,pe,xe,Ce,$e,Me,We=this.shapes.length,Qe=this.rd.v;if(Qe!==0)for(pe=0;pe<We;pe+=1){if(Me=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Me.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,Ce=$e.shape.paths._length,xe=0;xe<Ce;xe+=1)Me.addShape(this.processPath(X[xe],Qe));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ln.prototype.point=function(G){return[((this.a[0]*G+this.b[0])*G+this.c[0])*G+this.d[0],((this.a[1]*G+this.b[1])*G+this.c[1])*G+this.d[1]]},ln.prototype.derivative=function(G){return[(3*G*this.a[0]+2*this.b[0])*G+this.c[0],(3*G*this.a[1]+2*this.b[1])*G+this.c[1]]},ln.prototype.tangentAngle=function(G){var X=this.derivative(G);return Math.atan2(X[1],X[0])},ln.prototype.normalAngle=function(G){var X=this.derivative(G);return Math.atan2(X[0],X[1])},ln.prototype.inflectionPoints=function(){var G=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Xi(G))return[];var X=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/G,pe=X*X-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/G;if(pe<0)return[];var xe=Math.sqrt(pe);return Xi(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(Ce){return Ce>0&&Ce<1}))},ln.prototype.split=function(G){if(G<=0)return[Un(this.points[0]),this];if(G>=1)return[this,Un(this.points[this.points.length-1])];var X=Yi(this.points[0],this.points[1],G),pe=Yi(this.points[1],this.points[2],G),xe=Yi(this.points[2],this.points[3],G),Ce=Yi(X,pe,G),$e=Yi(pe,xe,G),Me=Yi(Ce,$e,G);return[new ln(this.points[0],X,Ce,Me,!0),new ln(Me,$e,xe,this.points[3],!0)]},ln.prototype.bounds=function(){return{x:Zt(this,0),y:Zt(this,1)}},ln.prototype.boundingBox=function(){var G=this.bounds();return{left:G.x.min,right:G.x.max,top:G.y.min,bottom:G.y.max,width:G.x.max-G.x.min,height:G.y.max-G.y.min,cx:(G.x.max+G.x.min)/2,cy:(G.y.max+G.y.min)/2}},ln.prototype.intersections=function(G,X,pe){X===void 0&&(X=2),pe===void 0&&(pe=7);var xe=[];return Ht(bn(this,0,1),bn(G,0,1),0,X,xe,pe),xe},ln.shapeSegment=function(G,X){var pe=(X+1)%G.length();return new ln(G.v[X],G.o[X],G.i[pe],G.v[pe],!0)},ln.shapeSegmentInverted=function(G,X){var pe=(X+1)%G.length();return new ln(G.v[pe],G.i[pe],G.o[X],G.v[X],!0)},g([Bn],pa),pa.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amplitude=Ke.getProp(G,X.s,0,null,this),this.frequency=Ke.getProp(G,X.r,0,null,this),this.pointsType=Ke.getProp(G,X.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},pa.prototype.processPath=function(G,X,pe,xe){var Ce=G._length,$e=Bt.newElement();if($e.c=G.c,G.c||(Ce-=1),Ce===0)return $e;var Me=-1,We=ln.shapeSegment(G,0);jt($e,G,0,X,pe,xe,Me);for(var Qe=0;Qe<Ce;Qe+=1)Me=Pn($e,We,X,pe,xe,-Me),We=Qe!==Ce-1||G.c?ln.shapeSegment(G,(Qe+1)%Ce):null,jt($e,G,Qe+1,X,pe,xe,Me);return $e},pa.prototype.processShapes=function(G){var X,pe,xe,Ce,$e,Me,We=this.shapes.length,Qe=this.amplitude.v,Ot=Math.max(0,Math.round(this.frequency.v)),Kt=this.pointsType.v;if(Qe!==0)for(pe=0;pe<We;pe+=1){if(Me=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Me.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,Ce=$e.shape.paths._length,xe=0;xe<Ce;xe+=1)Me.addShape(this.processPath(X[xe],Qe,Ot,Kt));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([Bn],yr),yr.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amount=Ke.getProp(G,X.a,0,null,this),this.miterLimit=Ke.getProp(G,X.ml,0,null,this),this.lineJoin=X.lj,this._isAnimated=this.amount.effectsSequence.length!==0},yr.prototype.processPath=function(G,X,pe,xe){var Ce=Bt.newElement();Ce.c=G.c;var $e=G.length();G.c||($e-=1);var Me,We,Qe,Ot=[];for(Me=0;Me<$e;Me+=1)Qe=ln.shapeSegment(G,Me),Ot.push(fo(Qe,X));if(!G.c)for(Me=$e-1;Me>=0;Me-=1)Qe=ln.shapeSegmentInverted(G,Me),Ot.push(fo(Qe,X));Ot=mi(Ot);var Kt=null,et=null;for(Me=0;Me<Ot.length;Me+=1){var ct=Ot[Me];for(et&&(Kt=Hi(Ce,et,ct[0],pe,xe)),et=ct[ct.length-1],We=0;We<ct.length;We+=1)Qe=ct[We],Kt&&so(Qe.points[0],Kt)?Ce.setXYAt(Qe.points[1][0],Qe.points[1][1],"o",Ce.length()-1):Ce.setTripleAt(Qe.points[0][0],Qe.points[0][1],Qe.points[1][0],Qe.points[1][1],Qe.points[0][0],Qe.points[0][1],Ce.length()),Ce.setTripleAt(Qe.points[3][0],Qe.points[3][1],Qe.points[3][0],Qe.points[3][1],Qe.points[2][0],Qe.points[2][1],Ce.length()),Kt=Qe.points[3]}return Ot.length&&Hi(Ce,et,Ot[0][0],pe,xe),Ce},yr.prototype.processShapes=function(G){var X,pe,xe,Ce,$e,Me,We=this.shapes.length,Qe=this.amount.v,Ot=this.miterLimit.v,Kt=this.lineJoin;if(Qe!==0)for(pe=0;pe<We;pe+=1){if(Me=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Me.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,Ce=$e.shape.paths._length,xe=0;xe<Ce;xe+=1)Me.addShape(this.processPath(X[xe],Qe,Kt,Ot));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var un=(function(){var G=5e3,X={w:0,size:0,shapes:[],data:{shapes:[]}},pe=[];pe=pe.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var xe=127988,Ce=917631,$e=917601,Me=917626,We=65039,Qe=8205,Ot=127462,Kt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function ct(gt){var rt,ze=gt.split(","),dt=ze.length,wt=[];for(rt=0;rt<dt;rt+=1)ze[rt]!=="sans-serif"&&ze[rt]!=="monospace"&&wt.push(ze[rt]);return wt.join(",")}function Ct(gt,rt){var ze=h("span");ze.setAttribute("aria-hidden",!0),ze.style.fontFamily=rt;var dt=h("span");dt.innerText="giItT1WQy@!-/#",ze.style.position="absolute",ze.style.left="-10000px",ze.style.top="-10000px",ze.style.fontSize="300px",ze.style.fontVariant="normal",ze.style.fontStyle="normal",ze.style.fontWeight="normal",ze.style.letterSpacing="0",ze.appendChild(dt),document.body.appendChild(ze);var wt=dt.offsetWidth;return dt.style.fontFamily=ct(gt)+", "+rt,{node:dt,w:wt,parent:ze}}function Et(){var gt,rt,ze,dt=this.fonts.length,wt=dt;for(gt=0;gt<dt;gt+=1)this.fonts[gt].loaded?wt-=1:this.fonts[gt].fOrigin==="n"||this.fonts[gt].origin===0?this.fonts[gt].loaded=!0:(rt=this.fonts[gt].monoCase.node,ze=this.fonts[gt].monoCase.w,rt.offsetWidth!==ze?(wt-=1,this.fonts[gt].loaded=!0):(rt=this.fonts[gt].sansCase.node,ze=this.fonts[gt].sansCase.w,rt.offsetWidth!==ze&&(wt-=1,this.fonts[gt].loaded=!0)),this.fonts[gt].loaded&&(this.fonts[gt].sansCase.parent.parentNode.removeChild(this.fonts[gt].sansCase.parent),this.fonts[gt].monoCase.parent.parentNode.removeChild(this.fonts[gt].monoCase.parent)));wt!==0&&Date.now()-this.initTime<G?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Gt(gt,rt){var ze,dt=document.body&&rt?"svg":"canvas",wt=Rt(gt);if(dt==="svg"){var gi=le("text");gi.style.fontSize="100px",gi.setAttribute("font-family",gt.fFamily),gi.setAttribute("font-style",wt.style),gi.setAttribute("font-weight",wt.weight),gi.textContent="1",gt.fClass?(gi.style.fontFamily="inherit",gi.setAttribute("class",gt.fClass)):gi.style.fontFamily=gt.fFamily,rt.appendChild(gi),ze=gi}else{var Ko=new OffscreenCanvas(500,500).getContext("2d");Ko.font=wt.style+" "+wt.weight+" 100px "+gt.fFamily,ze=Ko}function Bo(wa){return dt==="svg"?(ze.textContent=wa,ze.getComputedTextLength()):ze.measureText(wa).width}return{measureText:Bo}}function Jt(gt,rt){if(gt){if(this.chars)return this.isLoaded=!0,void(this.fonts=gt.list);if(!document.body)return this.isLoaded=!0,gt.list.forEach((function(Ga){Ga.helper=Gt(Ga),Ga.cache={}})),void(this.fonts=gt.list);var ze,dt=gt.list,wt=dt.length,gi=wt;for(ze=0;ze<wt;ze+=1){var Ko,Bo,wa=!0;if(dt[ze].loaded=!1,dt[ze].monoCase=Ct(dt[ze].fFamily,"monospace"),dt[ze].sansCase=Ct(dt[ze].fFamily,"sans-serif"),dt[ze].fPath){if(dt[ze].fOrigin==="p"||dt[ze].origin===3){if((Ko=document.querySelectorAll('style[f-forigin="p"][f-family="'+dt[ze].fFamily+'"], style[f-origin="3"][f-family="'+dt[ze].fFamily+'"]')).length>0&&(wa=!1),wa){var Zo=h("style");Zo.setAttribute("f-forigin",dt[ze].fOrigin),Zo.setAttribute("f-origin",dt[ze].origin),Zo.setAttribute("f-family",dt[ze].fFamily),Zo.type="text/css",Zo.innerText="@font-face {font-family: "+dt[ze].fFamily+"; font-style: normal; src: url('"+dt[ze].fPath+"');}",rt.appendChild(Zo)}}else if(dt[ze].fOrigin==="g"||dt[ze].origin===1){for(Ko=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Bo=0;Bo<Ko.length;Bo+=1)Ko[Bo].href.indexOf(dt[ze].fPath)!==-1&&(wa=!1);if(wa){var pl=h("link");pl.setAttribute("f-forigin",dt[ze].fOrigin),pl.setAttribute("f-origin",dt[ze].origin),pl.type="text/css",pl.rel="stylesheet",pl.href=dt[ze].fPath,document.body.appendChild(pl)}}else if(dt[ze].fOrigin==="t"||dt[ze].origin===2){for(Ko=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Bo=0;Bo<Ko.length;Bo+=1)dt[ze].fPath===Ko[Bo].src&&(wa=!1);if(wa){var ma=h("link");ma.setAttribute("f-forigin",dt[ze].fOrigin),ma.setAttribute("f-origin",dt[ze].origin),ma.setAttribute("rel","stylesheet"),ma.setAttribute("href",dt[ze].fPath),rt.appendChild(ma)}}}else dt[ze].loaded=!0,gi-=1;dt[ze].helper=Gt(dt[ze],rt),dt[ze].cache={},this.fonts.push(dt[ze])}gi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Je(gt){if(gt){this.chars||(this.chars=[]);var rt,ze,dt,wt=gt.length,gi=this.chars.length;for(rt=0;rt<wt;rt+=1){for(ze=0,dt=!1;ze<gi;)this.chars[ze].style===gt[rt].style&&this.chars[ze].fFamily===gt[rt].fFamily&&this.chars[ze].ch===gt[rt].ch&&(dt=!0),ze+=1;dt||(this.chars.push(gt[rt]),gi+=1)}}}function Ve(gt,rt,ze){for(var dt=0,wt=this.chars.length;dt<wt;){if(this.chars[dt].ch===gt&&this.chars[dt].style===rt&&this.chars[dt].fFamily===ze)return this.chars[dt];dt+=1}return(typeof gt=="string"&>.charCodeAt(0)!==13||!gt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",gt,rt,ze)),X}function Ne(gt,rt,ze){var dt=this.getFontByName(rt),wt=gt;if(!dt.cache[wt]){var gi=dt.helper;if(gt===" "){var Ko=gi.measureText("|"+gt+"|"),Bo=gi.measureText("||");dt.cache[wt]=(Ko-Bo)/100}else dt.cache[wt]=gi.measureText(gt)/100}return dt.cache[wt]*ze}function qe(gt){for(var rt=0,ze=this.fonts.length;rt<ze;){if(this.fonts[rt].fName===gt)return this.fonts[rt];rt+=1}return this.fonts[0]}function mt(gt){var rt=0,ze=gt.charCodeAt(0);if(ze>=55296&&ze<=56319){var dt=gt.charCodeAt(1);dt>=56320&&dt<=57343&&(rt=1024*(ze-55296)+dt-56320+65536)}return rt}function rn(gt,rt){var ze=gt.toString(16)+rt.toString(16);return et.indexOf(ze)!==-1}function cn(gt){return gt===Qe}function Ft(gt){return gt===We}function po(gt){var rt=mt(gt);return rt>=Ot&&rt<=Kt}function jo(gt){return po(gt.substr(0,2))&&po(gt.substr(2,2))}function li(gt){return pe.indexOf(gt)!==-1}function qo(gt,rt){var ze=mt(gt.substr(rt,2));if(ze!==xe)return!1;var dt=0;for(rt+=2;dt<5;){if((ze=mt(gt.substr(rt,2)))<$e||ze>Me)return!1;dt+=1,rt+=2}return mt(gt.substr(rt,2))===Ce}function lo(){this.isLoaded=!0}var zt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};zt.isModifier=rn,zt.isZeroWidthJoiner=cn,zt.isFlagEmoji=jo,zt.isRegionalCode=po,zt.isCombinedCharacter=li,zt.isRegionalFlag=qo,zt.isVariationSelector=Ft,zt.BLACK_FLAG_CODE_POINT=xe;var gn={addChars:Je,addFonts:Jt,getCharData:Ve,getFontByName:qe,measureText:Ne,checkLoadedFonts:Et,setIsLoaded:lo};return zt.prototype=gn,zt})();function en(G){this.animationData=G}function di(G){return new en(G)}function Sn(){}en.prototype.getProp=function(G){return this.animationData.slots&&this.animationData.slots[G.sid]?Object.assign(G,this.animationData.slots[G.sid].p):G},Sn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(G){this.renderableComponents.indexOf(G)===-1&&this.renderableComponents.push(G)},removeRenderableComponent:function(G){this.renderableComponents.indexOf(G)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(G),1)},prepareRenderableFrame:function(G){this.checkLayerLimits(G)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(G){this.data.ip-this.data.st<=G&&this.data.op-this.data.st>G?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var G,X=this.renderableComponents.length;for(G=0;G<X;G+=1)this.renderableComponents[G].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var ni=(function(){var G={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(X){return G[X]||""}})();function Ti(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function wo(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function Qi(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function oo(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function Dt(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function xi(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function xo(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function Hr(){this.p={}}function br(G,X){var pe=G.ef||[];this.effectElements=[];var xe,Ce,$e=pe.length;for(xe=0;xe<$e;xe+=1)Ce=new wr(pe[xe],X),this.effectElements.push(Ce)}function wr(G,X){this.init(G,X)}function Nn(){}function Ci(){}function or(G,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(G.refId),this.footageData=X.imageLoader.getAsset(this.assetData),this.initBaseData(G,X,pe)}function ha(G,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(G.refId),this.initBaseData(G,X,pe),this._isPlaying=!1,this._canPlay=!1;var xe=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(xe),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=G.tm?Ke.getProp(this,G.tm,0,X.frameRate,this):{_placeholder:!0},this.lv=Ke.getProp(this,G.au&&G.au.lv?G.au.lv:{k:[100]},1,.01,this)}function tl(){}g([Lt],wr),wr.prototype.getValue=wr.prototype.iterateDynamicProperties,wr.prototype.init=function(G,X){this.data=G,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,Ce=this.data.ef.length,$e=this.data.ef;for(pe=0;pe<Ce;pe+=1){switch(xe=null,$e[pe].ty){case 0:xe=new Ti($e[pe],X,this);break;case 1:xe=new wo($e[pe],X,this);break;case 2:xe=new Qi($e[pe],X,this);break;case 3:xe=new oo($e[pe],X,this);break;case 4:case 7:xe=new xo($e[pe],X,this);break;case 10:xe=new Dt($e[pe],X,this);break;case 11:xe=new xi($e[pe],X,this);break;case 5:xe=new br($e[pe],X);break;default:xe=new Hr($e[pe])}xe&&this.effectElements.push(xe)}},Nn.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var G=0,X=this.data.masksProperties.length;G<X;){if(this.data.masksProperties[G].mode!=="n"&&this.data.masksProperties[G].cl!==!1)return!0;G+=1}return!1},initExpressions:function(){},setBlendMode:function(){var G=ni(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=G},initBaseData:function(G,X,pe){this.globalData=X,this.comp=pe,this.data=G,this.layerId=H(),this.data.sr||(this.data.sr=1),this.effectsManager=new br(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ci.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(G,X){var pe,xe=this.dynamicProperties.length;for(pe=0;pe<xe;pe+=1)(X||this._isParent&&this.dynamicProperties[pe].propType==="transform")&&(this.dynamicProperties[pe].getValue(),this.dynamicProperties[pe]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(G){this.dynamicProperties.indexOf(G)===-1&&this.dynamicProperties.push(G)}},or.prototype.prepareFrame=function(){},g([Sn,Nn,Ci],or),or.prototype.getBaseElement=function(){return null},or.prototype.renderFrame=function(){},or.prototype.destroy=function(){},or.prototype.initExpressions=function(){},or.prototype.getFootageData=function(){return this.footageData},ha.prototype.prepareFrame=function(G){if(this.prepareRenderableFrame(G,!0),this.prepareProperties(G,!0),this.tm._placeholder)this._currentTime=G/this.data.sr;else{var X=this.tm.v;this._currentTime=X}this._volume=this.lv.v[0];var pe=this._volume*this._volumeMultiplier;this._previousVolume!==pe&&(this._previousVolume=pe,this.audio.volume(pe))},g([Sn,Nn,Ci],ha),ha.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},ha.prototype.show=function(){},ha.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ha.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ha.prototype.resume=function(){this._canPlay=!0},ha.prototype.setRate=function(G){this.audio.rate(G)},ha.prototype.volume=function(G){this._volumeMultiplier=G,this._previousVolume=G*this._volume,this.audio.volume(this._previousVolume)},ha.prototype.getBaseElement=function(){return null},ha.prototype.destroy=function(){},ha.prototype.sourceRectAtTime=function(){},ha.prototype.initExpressions=function(){},tl.prototype.checkLayers=function(G){var X,pe,xe=this.layers.length;for(this.completeLayers=!0,X=xe-1;X>=0;X-=1)this.elements[X]||(pe=this.layers[X]).ip-pe.st<=G-this.layers[X].st&&pe.op-pe.st>G-this.layers[X].st&&this.buildItem(X),this.completeLayers=!!this.elements[X]&&this.completeLayers;this.checkPendingElements()},tl.prototype.createItem=function(G){switch(G.ty){case 2:return this.createImage(G);case 0:return this.createComp(G);case 1:return this.createSolid(G);case 3:default:return this.createNull(G);case 4:return this.createShape(G);case 5:return this.createText(G);case 6:return this.createAudio(G);case 13:return this.createCamera(G);case 15:return this.createFootage(G)}},tl.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},tl.prototype.createAudio=function(G){return new ha(G,this.globalData,this)},tl.prototype.createFootage=function(G){return new or(G,this.globalData,this)},tl.prototype.buildAllItems=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.buildItem(G);this.checkPendingElements()},tl.prototype.includeLayers=function(G){this.completeLayers=!1;var X,pe,xe=G.length,Ce=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<Ce;){if(this.layers[pe].id===G[X].id){this.layers[pe]=G[X];break}pe+=1}},tl.prototype.setProjectInterface=function(G){this.globalData.projectInterface=G},tl.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},tl.prototype.buildElementParenting=function(G,X,pe){for(var xe=this.elements,Ce=this.layers,$e=0,Me=Ce.length;$e<Me;)Ce[$e].ind==X&&(xe[$e]&&xe[$e]!==!0?(pe.push(xe[$e]),xe[$e].setAsParent(),Ce[$e].parent!==void 0?this.buildElementParenting(G,Ce[$e].parent,pe):G.setHierarchy(pe)):(this.buildItem($e),this.addPendingElement(G))),$e+=1},tl.prototype.addPendingElement=function(G){this.pendingElements.push(G)},tl.prototype.searchExtraCompositions=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)if(G[X].xt){var xe=this.createComp(G[X]);xe.initExpressions(),this.globalData.projectInterface.registerComposition(xe)}},tl.prototype.getElementById=function(G){var X,pe=this.elements.length;for(X=0;X<pe;X+=1)if(this.elements[X].data.ind===G)return this.elements[X];return null},tl.prototype.getElementByPath=function(G){var X,pe=G.shift();if(typeof pe=="number")X=this.elements[pe];else{var xe,Ce=this.elements.length;for(xe=0;xe<Ce;xe+=1)if(this.elements[xe].data.nm===pe){X=this.elements[xe];break}}return G.length===0?X:X.getElementByPath(G)},tl.prototype.setupGlobalData=function(G,X){this.globalData.fontManager=new un,this.globalData.slotManager=di(G),this.globalData.fontManager.addChars(G.chars),this.globalData.fontManager.addFonts(G.fonts,X),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=G.fr,this.globalData.nm=G.nm,this.globalData.compSize={w:G.w,h:G.h}};var oL={TRANSFORM_EFFECT:"transformEFfect"};function c2(){}function wm(G,X,pe){this.data=G,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,Ce=this.globalData.defs,$e=this.masksProperties?this.masksProperties.length:0;this.viewData=b($e),this.solidPath="";var Me,We,Qe,Ot,Kt,et,ct,Ct=this.masksProperties,Et=0,Gt=[],Jt=H(),Je="clipPath",Ve="clip-path";for(xe=0;xe<$e;xe+=1)if((Ct[xe].mode!=="a"&&Ct[xe].mode!=="n"||Ct[xe].inv||Ct[xe].o.k!==100||Ct[xe].o.x)&&(Je="mask",Ve="mask"),Ct[xe].mode!=="s"&&Ct[xe].mode!=="i"||Et!==0?Ot=null:((Ot=le("rect")).setAttribute("fill","#ffffff"),Ot.setAttribute("width",this.element.comp.data.w||0),Ot.setAttribute("height",this.element.comp.data.h||0),Gt.push(Ot)),Me=le("path"),Ct[xe].mode==="n")this.viewData[xe]={op:Ke.getProp(this.element,Ct[xe].o,0,.01,this.element),prop:Xe.getShapeProp(this.element,Ct[xe],3),elem:Me,lastPath:""},Ce.appendChild(Me);else{var Ne;if(Et+=1,Me.setAttribute("fill",Ct[xe].mode==="s"?"#000000":"#ffffff"),Me.setAttribute("clip-rule","nonzero"),Ct[xe].x.k!==0?(Je="mask",Ve="mask",ct=Ke.getProp(this.element,Ct[xe].x,0,null,this.element),Ne=H(),(Kt=le("filter")).setAttribute("id",Ne),(et=le("feMorphology")).setAttribute("operator","erode"),et.setAttribute("in","SourceGraphic"),et.setAttribute("radius","0"),Kt.appendChild(et),Ce.appendChild(Kt),Me.setAttribute("stroke",Ct[xe].mode==="s"?"#000000":"#ffffff")):(et=null,ct=null),this.storedData[xe]={elem:Me,x:ct,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},Ct[xe].mode==="i"){Qe=Gt.length;var qe=le("g");for(We=0;We<Qe;We+=1)qe.appendChild(Gt[We]);var mt=le("mask");mt.setAttribute("mask-type","alpha"),mt.setAttribute("id",Jt+"_"+Et),mt.appendChild(Me),Ce.appendChild(mt),qe.setAttribute("mask","url("+p()+"#"+Jt+"_"+Et+")"),Gt.length=0,Gt.push(qe)}else Gt.push(Me);Ct[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Me,lastPath:"",op:Ke.getProp(this.element,Ct[xe].o,0,.01,this.element),prop:Xe.getShapeProp(this.element,Ct[xe],3),invRect:Ot},this.viewData[xe].prop.k||this.drawPath(Ct[xe],this.viewData[xe].prop.v,this.viewData[xe])}for(this.maskElement=le(Je),$e=Gt.length,xe=0;xe<$e;xe+=1)this.maskElement.appendChild(Gt[xe]);Et>0&&(this.maskElement.setAttribute("id",Jt),this.element.maskedElement.setAttribute(Ve,"url("+p()+"#"+Jt+")"),Ce.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}c2.prototype={initTransform:function(){var G=new vt;this.finalTransform={mProp:this.data.ks?Nt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:G,localMat:G,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var G,X=this.finalTransform.mat,pe=0,xe=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;pe<xe;){if(this.hierarchy[pe].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}pe+=1}if(this.finalTransform._matMdf)for(G=this.finalTransform.mProp.v.props,X.cloneFromProps(G),pe=0;pe<xe;pe+=1)X.multiply(this.hierarchy[pe].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var G=0,X=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;G<X;)this.localTransforms[G]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[G]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),G+=1;if(this.finalTransform._localMatMdf){var pe=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(pe),G=1;G<X;G+=1){var xe=this.localTransforms[G].matrix;pe.multiply(xe)}pe.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var Ce=this.finalTransform.localOpacity;for(G=0;G<X;G+=1)Ce*=.01*this.localTransforms[G].opacity;this.finalTransform.localOpacity=Ce}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var G=this.renderableEffectsManager.getEffects(oL.TRANSFORM_EFFECT);if(G.length){this.localTransforms=[],this.finalTransform.localMat=new vt;var X=0,pe=G.length;for(X=0;X<pe;X+=1)this.localTransforms.push(G[X])}}},globalToLocal:function(G){var X=[];X.push(this.finalTransform);for(var pe=!0,xe=this.comp;pe;)xe.finalTransform?(xe.data.hasMask&&X.splice(0,0,xe.finalTransform),xe=xe.comp):pe=!1;var Ce,$e,Me=X.length;for(Ce=0;Ce<Me;Ce+=1)$e=X[Ce].mat.applyToPointArray(0,0,0),G=[G[0]-$e[0],G[1]-$e[1],0];return G},mHelper:new vt},wm.prototype.getMaskProperty=function(G){return this.viewData[G].prop},wm.prototype.renderFrame=function(G){var X,pe=this.element.finalTransform.mat,xe=this.masksProperties.length;for(X=0;X<xe;X+=1)if((this.viewData[X].prop._mdf||G)&&this.drawPath(this.masksProperties[X],this.viewData[X].prop.v,this.viewData[X]),(this.viewData[X].op._mdf||G)&&this.viewData[X].elem.setAttribute("fill-opacity",this.viewData[X].op.v),this.masksProperties[X].mode!=="n"&&(this.viewData[X].invRect&&(this.element.finalTransform.mProp._mdf||G)&&this.viewData[X].invRect.setAttribute("transform",pe.getInverseMatrix().to2dCSS()),this.storedData[X].x&&(this.storedData[X].x._mdf||G))){var Ce=this.storedData[X].expan;this.storedData[X].x.v<0?(this.storedData[X].lastOperator!=="erode"&&(this.storedData[X].lastOperator="erode",this.storedData[X].elem.setAttribute("filter","url("+p()+"#"+this.storedData[X].filterId+")")),Ce.setAttribute("radius",-this.storedData[X].x.v)):(this.storedData[X].lastOperator!=="dilate"&&(this.storedData[X].lastOperator="dilate",this.storedData[X].elem.setAttribute("filter",null)),this.storedData[X].elem.setAttribute("stroke-width",2*this.storedData[X].x.v))}},wm.prototype.getMaskelement=function(){return this.maskElement},wm.prototype.createLayerSolidPath=function(){var G="M0,0 ";return G+=" h"+this.globalData.compSize.w,G+=" v"+this.globalData.compSize.h,G+=" h-"+this.globalData.compSize.w,G+=" v-"+this.globalData.compSize.h+" "},wm.prototype.drawPath=function(G,X,pe){var xe,Ce,$e=" M"+X.v[0][0]+","+X.v[0][1];for(Ce=X._length,xe=1;xe<Ce;xe+=1)$e+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[xe][0]+","+X.i[xe][1]+" "+X.v[xe][0]+","+X.v[xe][1];if(X.c&&Ce>1&&($e+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[0][0]+","+X.i[0][1]+" "+X.v[0][0]+","+X.v[0][1]),pe.lastPath!==$e){var Me="";pe.elem&&(X.c&&(Me=G.inv?this.solidPath+$e:$e),pe.elem.setAttribute("d",Me)),pe.lastPath=$e}},wm.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var $y=(function(){var G={};function X(xe,Ce){var $e=le("filter");return $e.setAttribute("id",xe),Ce!==!0&&($e.setAttribute("filterUnits","objectBoundingBox"),$e.setAttribute("x","0%"),$e.setAttribute("y","0%"),$e.setAttribute("width","100%"),$e.setAttribute("height","100%")),$e}function pe(){var xe=le("feColorMatrix");return xe.setAttribute("type","matrix"),xe.setAttribute("color-interpolation-filters","sRGB"),xe.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),xe}return G.createFilter=X,G.createAlphaToLuminanceFilter=pe,G})(),rL=(function(){var G={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(G.maskType=!1),/firefox/i.test(navigator.userAgent)&&(G.svgLumaHidden=!1),G})(),aL={},QN="filter_result_";function tk(G){var X,pe,xe="SourceGraphic",Ce=G.data.ef?G.data.ef.length:0,$e=H(),Me=$y.createFilter($e,!0),We=0;for(this.filters=[],X=0;X<Ce;X+=1){pe=null;var Qe=G.data.ef[X].ty;aL[Qe]&&(pe=new aL[Qe].effect(Me,G.effectsManager.effectElements[X],G,QN+We,xe),xe=QN+We,aL[Qe].countsAsEffect&&(We+=1)),pe&&this.filters.push(pe)}We&&(G.globalData.defs.appendChild(Me),G.layerElement.setAttribute("filter","url("+p()+"#"+$e+")")),this.filters.length&&G.addRenderableComponent(this)}function q8(){}function Ey(){}function tx(){}function K8(G,X,pe){this.assetData=X.getAssetData(G.refId),this.assetData&&this.assetData.sid&&(this.assetData=X.slotManager.getProp(this.assetData)),this.initElement(G,X,pe),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function lre(G,X){this.elem=G,this.pos=X}function YN(){}tk.prototype.renderFrame=function(G){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(G)},tk.prototype.getEffects=function(G){var X,pe=this.filters.length,xe=[];for(X=0;X<pe;X+=1)this.filters[X].type===G&&xe.push(this.filters[X]);return xe},q8.prototype={initRendererElement:function(){this.layerElement=le("g")},createContainerElements:function(){this.matteElement=le("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var G=null;if(this.data.td){this.matteMasks={};var X=le("g");X.setAttribute("id",this.layerId),X.appendChild(this.layerElement),G=X,this.globalData.defs.appendChild(X)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),G=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var pe=le("clipPath"),xe=le("path");xe.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var Ce=H();if(pe.setAttribute("id",Ce),pe.appendChild(xe),this.globalData.defs.appendChild(pe),this.checkMasks()){var $e=le("g");$e.setAttribute("clip-path","url("+p()+"#"+Ce+")"),$e.appendChild(this.layerElement),this.transformedElement=$e,G?G.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ce+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new wm(this.data,this,this.globalData),this.renderableEffectsManager=new tk(this),this.searchEffectTransforms()},getMatte:function(G){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[G]){var X,pe,xe,Ce,$e=this.layerId+"_"+G;if(G===1||G===3){var Me=le("mask");Me.setAttribute("id",$e),Me.setAttribute("mask-type",G===3?"luminance":"alpha"),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Me.appendChild(xe),this.globalData.defs.appendChild(Me),!rL.maskType&&G===1&&(Me.setAttribute("mask-type","luminance"),X=H(),pe=$y.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild($y.createAlphaToLuminanceFilter()),(Ce=le("g")).appendChild(xe),Me.appendChild(Ce),Ce.setAttribute("filter","url("+p()+"#"+X+")"))}else if(G===2){var We=le("mask");We.setAttribute("id",$e),We.setAttribute("mask-type","alpha");var Qe=le("g");We.appendChild(Qe),X=H(),pe=$y.createFilter(X);var Ot=le("feComponentTransfer");Ot.setAttribute("in","SourceGraphic"),pe.appendChild(Ot);var Kt=le("feFuncA");Kt.setAttribute("type","table"),Kt.setAttribute("tableValues","1.0 0.0"),Ot.appendChild(Kt),this.globalData.defs.appendChild(pe);var et=le("rect");et.setAttribute("width",this.comp.data.w),et.setAttribute("height",this.comp.data.h),et.setAttribute("x","0"),et.setAttribute("y","0"),et.setAttribute("fill","#ffffff"),et.setAttribute("opacity","0"),Qe.setAttribute("filter","url("+p()+"#"+X+")"),Qe.appendChild(et),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Qe.appendChild(xe),rL.maskType||(We.setAttribute("mask-type","luminance"),pe.appendChild($y.createAlphaToLuminanceFilter()),Ce=le("g"),Qe.appendChild(et),Ce.appendChild(this.layerElement),Qe.appendChild(Ce)),this.globalData.defs.appendChild(We)}this.matteMasks[G]=$e}return this.matteMasks[G]},setMatte:function(G){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+G+")")}},Ey.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(G){this.hierarchy=G},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},(function(){var G={initElement:function(X,pe,xe){this.initFrame(),this.initBaseData(X,pe,xe),this.initTransform(X,pe,xe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(X){this._mdf=!1,this.prepareRenderableFrame(X),this.prepareProperties(X,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};g([Sn,f(G)],tx)})(),g([Nn,c2,q8,Ey,Ci,tx],K8),K8.prototype.createContent=function(){var G=this.globalData.getAssetsPath(this.assetData);this.innerElem=le("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",G),this.layerElement.appendChild(this.innerElem)},K8.prototype.sourceRectAtTime=function(){return this.sourceRect},YN.prototype={addShapeToModifiers:function(G){var X,pe=this.shapeModifiers.length;for(X=0;X<pe;X+=1)this.shapeModifiers[X].addShape(G)},isShapeInAnimatedModifiers:function(G){for(var X=0,pe=this.shapeModifiers.length;X<pe;)if(this.shapeModifiers[X].isAnimatedWithShape(G))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var G,X=this.shapes.length;for(G=0;G<X;G+=1)this.shapes[G].sh.reset();for(G=(X=this.shapeModifiers.length)-1;G>=0&&!this.shapeModifiers[G].processShapes(this._isFirstFrame);G-=1);}},searchProcessedElement:function(G){for(var X=this.processedElements,pe=0,xe=X.length;pe<xe;){if(X[pe].elem===G)return X[pe].pos;pe+=1}return 0},addProcessedElement:function(G,X){for(var pe=this.processedElements,xe=pe.length;xe;)if(pe[xe-=1].elem===G)return void(pe[xe].pos=X);pe.push(new lre(G,X))},prepareFrame:function(G){this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)}};var GN={1:"butt",2:"round",3:"square"},qN={1:"miter",2:"round",3:"bevel"};function KN(G,X,pe){this.caches=[],this.styles=[],this.transformers=G,this.lStr="",this.sh=pe,this.lvl=X,this._isAnimated=!!pe.k;for(var xe=0,Ce=G.length;xe<Ce;){if(G[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function ZN(G,X){this.data=G,this.type=G.ty,this.d="",this.lvl=X,this._mdf=!1,this.closed=G.hd===!0,this.pElem=le("path"),this.msElem=null}function nk(G,X,pe,xe){this.elem=G,this.frameId=-1,this.dataProps=b(X.length),this.renderer=pe,this.k=!1,this.dashStr="",this.dashArray=y("float32",X.length?X.length-1:0),this.dashoffset=y("float32",1),this.initDynamicPropertyContainer(xe);var Ce,$e,Me=X.length||0;for(Ce=0;Ce<Me;Ce+=1)$e=Ke.getProp(G,X[Ce].v,0,0,this),this.k=$e.k||this.k,this.dataProps[Ce]={n:X[Ce].n,p:$e};this.k||this.getValue(!0),this._isAnimated=this.k}function JN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.o=Ke.getProp(G,X.o,0,.01,this),this.w=Ke.getProp(G,X.w,0,null,this),this.d=new nk(G,X.d||{},"svg",this),this.c=Ke.getProp(G,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function XN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.o=Ke.getProp(G,X.o,0,.01,this),this.c=Ke.getProp(G,X.c,1,255,this),this.style=pe}function e_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.style=pe}function Z8(G,X,pe){this.data=X,this.c=y("uint8c",4*X.p);var xe=X.k.k[0].s?X.k.k[0].s.length-4*X.p:X.k.k.length-4*X.p;this.o=y("float32",xe),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=xe,this.initDynamicPropertyContainer(pe),this.prop=Ke.getProp(G,X.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function Cm(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.initGradientData(G,X,pe)}function t_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.w=Ke.getProp(G,X.w,0,null,this),this.d=new nk(G,X.d||{},"svg",this),this.initGradientData(G,X,pe),this._isAnimated=!!this._isAnimated}function cre(){this.it=[],this.prevViewData=[],this.gr=le("g")}function dre(G,X,pe){this.transform={mProps:G,op:X,container:pe},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}KN.prototype.setAsAnimated=function(){this._isAnimated=!0},ZN.prototype.reset=function(){this.d="",this._mdf=!1},nk.prototype.getValue=function(G){if((this.elem.globalData.frameId!==this.frameId||G)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||G,this._mdf)){var X=0,pe=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),X=0;X<pe;X+=1)this.dataProps[X].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[X].p.v:this.dashArray[X]=this.dataProps[X].p.v:this.dashoffset[0]=this.dataProps[X].p.v}},g([Lt],nk),g([Lt],JN),g([Lt],XN),g([Lt],e_),Z8.prototype.comparePoints=function(G,X){for(var pe=0,xe=this.o.length/2;pe<xe;){if(Math.abs(G[4*pe]-G[4*X+2*pe])>.01)return!1;pe+=1}return!0},Z8.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var G=0,X=this.data.k.k.length;G<X;){if(!this.comparePoints(this.data.k.k[G].s,this.data.p))return!1;G+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Z8.prototype.getValue=function(G){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||G){var X,pe,xe,Ce=4*this.data.p;for(X=0;X<Ce;X+=1)pe=X%4==0?100:255,xe=Math.round(this.prop.v[X]*pe),this.c[X]!==xe&&(this.c[X]=xe,this._cmdf=!G);if(this.o.length)for(Ce=this.prop.v.length,X=4*this.data.p;X<Ce;X+=1)pe=X%2==0?100:1,xe=X%2==0?Math.round(100*this.prop.v[X]):this.prop.v[X],this.o[X-4*this.data.p]!==xe&&(this.o[X-4*this.data.p]=xe,this._omdf=!G);this._mdf=!G}},g([Lt],Z8),Cm.prototype.initGradientData=function(G,X,pe){this.o=Ke.getProp(G,X.o,0,.01,this),this.s=Ke.getProp(G,X.s,1,null,this),this.e=Ke.getProp(G,X.e,1,null,this),this.h=Ke.getProp(G,X.h||{k:0},0,.01,this),this.a=Ke.getProp(G,X.a||{k:0},0,D,this),this.g=new Z8(G,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},Cm.prototype.setGradientData=function(G,X){var pe=H(),xe=le(X.t===1?"linearGradient":"radialGradient");xe.setAttribute("id",pe),xe.setAttribute("spreadMethod","pad"),xe.setAttribute("gradientUnits","userSpaceOnUse");var Ce,$e,Me,We=[];for(Me=4*X.g.p,$e=0;$e<Me;$e+=4)Ce=le("stop"),xe.appendChild(Ce),We.push(Ce);G.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=We},Cm.prototype.setGradientOpacity=function(G,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,Ce,$e=le("mask"),Me=le("path");$e.appendChild(Me);var We=H(),Qe=H();$e.setAttribute("id",Qe);var Ot=le(G.t===1?"linearGradient":"radialGradient");Ot.setAttribute("id",We),Ot.setAttribute("spreadMethod","pad"),Ot.setAttribute("gradientUnits","userSpaceOnUse"),Ce=G.g.k.k[0].s?G.g.k.k[0].s.length:G.g.k.k.length;var Kt=this.stops;for(xe=4*G.g.p;xe<Ce;xe+=2)(pe=le("stop")).setAttribute("stop-color","rgb(255,255,255)"),Ot.appendChild(pe),Kt.push(pe);Me.setAttribute(G.ty==="gf"?"fill":"stroke","url("+p()+"#"+We+")"),G.ty==="gs"&&(Me.setAttribute("stroke-linecap",GN[G.lc||2]),Me.setAttribute("stroke-linejoin",qN[G.lj||2]),G.lj===1&&Me.setAttribute("stroke-miterlimit",G.ml)),this.of=Ot,this.ms=$e,this.ost=Kt,this.maskId=Qe,X.msElem=Me}},g([Lt],Cm),g([Cm,Lt],t_);var Yn=function(G,X,pe,xe){if(X===0)return"";var Ce,$e=G.o,Me=G.i,We=G.v,Qe=" M"+xe.applyToPointStringified(We[0][0],We[0][1]);for(Ce=1;Ce<X;Ce+=1)Qe+=" C"+xe.applyToPointStringified($e[Ce-1][0],$e[Ce-1][1])+" "+xe.applyToPointStringified(Me[Ce][0],Me[Ce][1])+" "+xe.applyToPointStringified(We[Ce][0],We[Ce][1]);return pe&&X&&(Qe+=" C"+xe.applyToPointStringified($e[Ce-1][0],$e[Ce-1][1])+" "+xe.applyToPointStringified(Me[0][0],Me[0][1])+" "+xe.applyToPointStringified(We[0][0],We[0][1]),Qe+="z"),Qe},vr=(function(){var G=new vt,X=new vt;function pe(Kt){switch(Kt.ty){case"fl":return Me;case"gf":return Qe;case"gs":return We;case"st":return Ot;case"sh":case"el":case"rc":case"sr":return $e;case"tr":return xe;case"no":return Ce;default:return null}}function xe(Kt,et,ct){(ct||et.transform.op._mdf)&&et.transform.container.setAttribute("opacity",et.transform.op.v),(ct||et.transform.mProps._mdf)&&et.transform.container.setAttribute("transform",et.transform.mProps.v.to2dCSS())}function Ce(){}function $e(Kt,et,ct){var Ct,Et,Gt,Jt,Je,Ve,Ne,qe,mt,rn,cn=et.styles.length,Ft=et.lvl;for(Ve=0;Ve<cn;Ve+=1){if(Jt=et.sh._mdf||ct,et.styles[Ve].lvl<Ft){for(qe=X.reset(),mt=Ft-et.styles[Ve].lvl,rn=et.transformers.length-1;!Jt&&mt>0;)Jt=et.transformers[rn].mProps._mdf||Jt,mt-=1,rn-=1;if(Jt)for(mt=Ft-et.styles[Ve].lvl,rn=et.transformers.length-1;mt>0;)qe.multiply(et.transformers[rn].mProps.v),mt-=1,rn-=1}else qe=G;if(Et=(Ne=et.sh.paths)._length,Jt){for(Gt="",Ct=0;Ct<Et;Ct+=1)(Je=Ne.shapes[Ct])&&Je._length&&(Gt+=Yn(Je,Je._length,Je.c,qe));et.caches[Ve]=Gt}else Gt=et.caches[Ve];et.styles[Ve].d+=Kt.hd===!0?"":Gt,et.styles[Ve]._mdf=Jt||et.styles[Ve]._mdf}}function Me(Kt,et,ct){var Ct=et.style;(et.c._mdf||ct)&&Ct.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||ct)&&Ct.pElem.setAttribute("fill-opacity",et.o.v)}function We(Kt,et,ct){Qe(Kt,et,ct),Ot(Kt,et,ct)}function Qe(Kt,et,ct){var Ct,Et,Gt,Jt,Je,Ve=et.gf,Ne=et.g._hasOpacity,qe=et.s.v,mt=et.e.v;if(et.o._mdf||ct){var rn=Kt.ty==="gf"?"fill-opacity":"stroke-opacity";et.style.pElem.setAttribute(rn,et.o.v)}if(et.s._mdf||ct){var cn=Kt.t===1?"x1":"cx",Ft=cn==="x1"?"y1":"cy";Ve.setAttribute(cn,qe[0]),Ve.setAttribute(Ft,qe[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute(cn,qe[0]),et.of.setAttribute(Ft,qe[1]))}if(et.g._cmdf||ct){Ct=et.cst;var po=et.g.c;for(Gt=Ct.length,Et=0;Et<Gt;Et+=1)(Jt=Ct[Et]).setAttribute("offset",po[4*Et]+"%"),Jt.setAttribute("stop-color","rgb("+po[4*Et+1]+","+po[4*Et+2]+","+po[4*Et+3]+")")}if(Ne&&(et.g._omdf||ct)){var jo=et.g.o;for(Gt=(Ct=et.g._collapsable?et.cst:et.ost).length,Et=0;Et<Gt;Et+=1)Jt=Ct[Et],et.g._collapsable||Jt.setAttribute("offset",jo[2*Et]+"%"),Jt.setAttribute("stop-opacity",jo[2*Et+1])}if(Kt.t===1)(et.e._mdf||ct)&&(Ve.setAttribute("x2",mt[0]),Ve.setAttribute("y2",mt[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",mt[0]),et.of.setAttribute("y2",mt[1])));else if((et.s._mdf||et.e._mdf||ct)&&(Je=Math.sqrt(Math.pow(qe[0]-mt[0],2)+Math.pow(qe[1]-mt[1],2)),Ve.setAttribute("r",Je),Ne&&!et.g._collapsable&&et.of.setAttribute("r",Je)),et.s._mdf||et.e._mdf||et.h._mdf||et.a._mdf||ct){Je||(Je=Math.sqrt(Math.pow(qe[0]-mt[0],2)+Math.pow(qe[1]-mt[1],2)));var li=Math.atan2(mt[1]-qe[1],mt[0]-qe[0]),qo=et.h.v;qo>=1?qo=.99:qo<=-1&&(qo=-.99);var lo=Je*qo,zt=Math.cos(li+et.a.v)*lo+qe[0],gn=Math.sin(li+et.a.v)*lo+qe[1];Ve.setAttribute("fx",zt),Ve.setAttribute("fy",gn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",zt),et.of.setAttribute("fy",gn))}}function Ot(Kt,et,ct){var Ct=et.style,Et=et.d;Et&&(Et._mdf||ct)&&Et.dashStr&&(Ct.pElem.setAttribute("stroke-dasharray",Et.dashStr),Ct.pElem.setAttribute("stroke-dashoffset",Et.dashoffset[0])),et.c&&(et.c._mdf||ct)&&Ct.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||ct)&&Ct.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||ct)&&(Ct.pElem.setAttribute("stroke-width",et.w.v),Ct.msElem&&Ct.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function er(G,X,pe){this.shapes=[],this.shapesData=G.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(G,X,pe),this.prevViewData=[]}function Xp(G,X,pe,xe,Ce,$e){this.o=G,this.sw=X,this.sc=pe,this.fc=xe,this.m=Ce,this.p=$e,this._mdf={o:!0,sw:!!X,sc:!!pe,fc:!!xe,m:!0,p:!0}}function qc(G,X){this._frameId=l,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,X.d&&X.d.sid&&(X.d=G.globalData.slotManager.getProp(X.d)),this.data=X,this.elem=G,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}g([Nn,c2,q8,YN,Ey,Ci,tx],er),er.prototype.initSecondaryElement=function(){},er.prototype.identityMatrix=new vt,er.prototype.buildExpressionInterface=function(){},er.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},er.prototype.filterUniqueShapes=function(){var G,X,pe,xe,Ce=this.shapes.length,$e=this.stylesList.length,Me=[],We=!1;for(pe=0;pe<$e;pe+=1){for(xe=this.stylesList[pe],We=!1,Me.length=0,G=0;G<Ce;G+=1)(X=this.shapes[G]).styles.indexOf(xe)!==-1&&(Me.push(X),We=X._isAnimated||We);Me.length>1&&We&&this.setShapesAsAnimated(Me)}},er.prototype.setShapesAsAnimated=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X].setAsAnimated()},er.prototype.createStyleElement=function(G,X){var pe,xe=new ZN(G,X),Ce=xe.pElem;return G.ty==="st"?pe=new JN(this,G,xe):G.ty==="fl"?pe=new XN(this,G,xe):G.ty==="gf"||G.ty==="gs"?(pe=new(G.ty==="gf"?Cm:t_)(this,G,xe),this.globalData.defs.appendChild(pe.gf),pe.maskId&&(this.globalData.defs.appendChild(pe.ms),this.globalData.defs.appendChild(pe.of),Ce.setAttribute("mask","url("+p()+"#"+pe.maskId+")"))):G.ty==="no"&&(pe=new e_(this,G,xe)),(G.ty==="st"||G.ty==="gs")&&(Ce.setAttribute("stroke-linecap",GN[G.lc||2]),Ce.setAttribute("stroke-linejoin",qN[G.lj||2]),Ce.setAttribute("fill-opacity","0"),G.lj===1&&Ce.setAttribute("stroke-miterlimit",G.ml)),G.r===2&&Ce.setAttribute("fill-rule","evenodd"),G.ln&&Ce.setAttribute("id",G.ln),G.cl&&Ce.setAttribute("class",G.cl),G.bm&&(Ce.style["mix-blend-mode"]=ni(G.bm)),this.stylesList.push(xe),this.addToAnimatedContents(G,pe),pe},er.prototype.createGroupElement=function(G){var X=new cre;return G.ln&&X.gr.setAttribute("id",G.ln),G.cl&&X.gr.setAttribute("class",G.cl),G.bm&&(X.gr.style["mix-blend-mode"]=ni(G.bm)),X},er.prototype.createTransformElement=function(G,X){var pe=Nt.getTransformProperty(this,G,this),xe=new dre(pe,pe.o,X);return this.addToAnimatedContents(G,xe),xe},er.prototype.createShapeElement=function(G,X,pe){var xe=4;G.ty==="rc"?xe=5:G.ty==="el"?xe=6:G.ty==="sr"&&(xe=7);var Ce=new KN(X,pe,Xe.getShapeProp(this,G,xe,this));return this.shapes.push(Ce),this.addShapeToModifiers(Ce),this.addToAnimatedContents(G,Ce),Ce},er.prototype.addToAnimatedContents=function(G,X){for(var pe=0,xe=this.animatedContents.length;pe<xe;){if(this.animatedContents[pe].element===X)return;pe+=1}this.animatedContents.push({fn:vr.createRenderFunction(G),element:X,data:G})},er.prototype.setElementStyles=function(G){var X,pe=G.styles,xe=this.stylesList.length;for(X=0;X<xe;X+=1)pe.indexOf(this.stylesList[X])===-1&&!this.stylesList[X].closed&&pe.push(this.stylesList[X])},er.prototype.reloadShapes=function(){this._isFirstFrame=!0;var G,X=this.itemsData.length;for(G=0;G<X;G+=1)this.prevViewData[G]=this.itemsData[G];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),X=this.dynamicProperties.length,G=0;G<X;G+=1)this.dynamicProperties[G].getValue();this.renderModifiers()},er.prototype.searchShapes=function(G,X,pe,xe,Ce,$e,Me){var We,Qe,Ot,Kt,et,ct,Ct=[].concat($e),Et=G.length-1,Gt=[],Jt=[];for(We=Et;We>=0;We-=1){if((ct=this.searchProcessedElement(G[We]))?X[We]=pe[ct-1]:G[We]._render=Me,G[We].ty==="fl"||G[We].ty==="st"||G[We].ty==="gf"||G[We].ty==="gs"||G[We].ty==="no")ct?X[We].style.closed=G[We].hd:X[We]=this.createStyleElement(G[We],Ce),G[We]._render&&X[We].style.pElem.parentNode!==xe&&xe.appendChild(X[We].style.pElem),Gt.push(X[We].style);else if(G[We].ty==="gr"){if(ct)for(Ot=X[We].it.length,Qe=0;Qe<Ot;Qe+=1)X[We].prevViewData[Qe]=X[We].it[Qe];else X[We]=this.createGroupElement(G[We]);this.searchShapes(G[We].it,X[We].it,X[We].prevViewData,X[We].gr,Ce+1,Ct,Me),G[We]._render&&X[We].gr.parentNode!==xe&&xe.appendChild(X[We].gr)}else G[We].ty==="tr"?(ct||(X[We]=this.createTransformElement(G[We],xe)),Kt=X[We].transform,Ct.push(Kt)):G[We].ty==="sh"||G[We].ty==="rc"||G[We].ty==="el"||G[We].ty==="sr"?(ct||(X[We]=this.createShapeElement(G[We],Ct,Ce)),this.setElementStyles(X[We])):G[We].ty==="tm"||G[We].ty==="rd"||G[We].ty==="ms"||G[We].ty==="pb"||G[We].ty==="zz"||G[We].ty==="op"?(ct?(et=X[We]).closed=!1:((et=hn.getModifier(G[We].ty)).init(this,G[We]),X[We]=et,this.shapeModifiers.push(et)),Jt.push(et)):G[We].ty==="rp"&&(ct?(et=X[We]).closed=!0:(et=hn.getModifier(G[We].ty),X[We]=et,et.init(this,G,We,X),this.shapeModifiers.push(et),Me=!1),Jt.push(et));this.addProcessedElement(G[We],We+1)}for(Et=Gt.length,We=0;We<Et;We+=1)Gt[We].closed=!0;for(Et=Jt.length,We=0;We<Et;We+=1)Jt[We].closed=!0},er.prototype.renderInnerContent=function(){this.renderModifiers();var G,X=this.stylesList.length;for(G=0;G<X;G+=1)this.stylesList[G].reset();for(this.renderShape(),G=0;G<X;G+=1)(this.stylesList[G]._mdf||this._isFirstFrame)&&(this.stylesList[G].msElem&&(this.stylesList[G].msElem.setAttribute("d",this.stylesList[G].d),this.stylesList[G].d="M0 0"+this.stylesList[G].d),this.stylesList[G].pElem.setAttribute("d",this.stylesList[G].d||"M0 0"))},er.prototype.renderShape=function(){var G,X,pe=this.animatedContents.length;for(G=0;G<pe;G+=1)X=this.animatedContents[G],(this._isFirstFrame||X.element._isAnimated)&&X.data!==!0&&X.fn(X.data,X.element,this._isFirstFrame)},er.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},Xp.prototype.update=function(G,X,pe,xe,Ce,$e){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var Me=!1;return this.o!==G&&(this.o=G,this._mdf.o=!0,Me=!0),this.sw!==X&&(this.sw=X,this._mdf.sw=!0,Me=!0),this.sc!==pe&&(this.sc=pe,this._mdf.sc=!0,Me=!0),this.fc!==xe&&(this.fc=xe,this._mdf.fc=!0,Me=!0),this.m!==Ce&&(this.m=Ce,this._mdf.m=!0,Me=!0),$e.length&&(this.p[0]!==$e[0]||this.p[1]!==$e[1]||this.p[4]!==$e[4]||this.p[5]!==$e[5]||this.p[12]!==$e[12]||this.p[13]!==$e[13])&&(this.p=$e,this._mdf.p=!0,Me=!0),Me},qc.prototype.defaultBoxWidth=[0,0],qc.prototype.copyData=function(G,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(G[pe]=X[pe]);return G},qc.prototype.setCurrentData=function(G){G.__complete||this.completeTextData(G),this.currentData=G,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},qc.prototype.searchProperty=function(){return this.searchKeyframes()},qc.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},qc.prototype.addEffect=function(G){this.effectsSequence.push(G),this.elem.addDynamicProperty(this)},qc.prototype.getValue=function(G){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||G){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var X=this.currentData,pe=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var xe,Ce=this.effectsSequence.length,$e=G||this.data.d.k[this.keysIndex].s;for(xe=0;xe<Ce;xe+=1)$e=pe!==this.keysIndex?this.effectsSequence[xe]($e,$e.t):this.effectsSequence[xe](this.currentData,$e.t);X!==$e&&this.setCurrentData($e),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},qc.prototype.getKeyframeValue=function(){for(var G=this.data.d.k,X=this.elem.comp.renderedFrame,pe=0,xe=G.length;pe<=xe-1&&!(pe===xe-1||G[pe+1].t>X);)pe+=1;return this.keysIndex!==pe&&(this.keysIndex=pe),this.data.d.k[this.keysIndex].s},qc.prototype.buildFinalText=function(G){for(var X,pe,xe=[],Ce=0,$e=G.length,Me=!1,We=!1,Qe="";Ce<$e;)Me=We,We=!1,X=G.charCodeAt(Ce),Qe=G.charAt(Ce),un.isCombinedCharacter(X)?Me=!0:X>=55296&&X<=56319?un.isRegionalFlag(G,Ce)?Qe=G.substr(Ce,14):(pe=G.charCodeAt(Ce+1))>=56320&&pe<=57343&&(un.isModifier(X,pe)?(Qe=G.substr(Ce,2),Me=!0):Qe=un.isFlagEmoji(G.substr(Ce,4))?G.substr(Ce,4):G.substr(Ce,2)):X>56319?(pe=G.charCodeAt(Ce+1),un.isVariationSelector(X)&&(Me=!0)):un.isZeroWidthJoiner(X)&&(Me=!0,We=!0),Me?(xe[xe.length-1]+=Qe,Me=!1):xe.push(Qe),Ce+=Qe.length;return xe},qc.prototype.completeTextData=function(G){G.__complete=!0;var X,pe,xe,Ce,$e,Me,We,Qe=this.elem.globalData.fontManager,Ot=this.data,Kt=[],et=0,ct=Ot.m.g,Ct=0,Et=0,Gt=0,Jt=[],Je=0,Ve=0,Ne=Qe.getFontByName(G.f),qe=0,mt=Rt(Ne);G.fWeight=mt.weight,G.fStyle=mt.style,G.finalSize=G.s,G.finalText=this.buildFinalText(G.t),pe=G.finalText.length,G.finalLineHeight=G.lh;var rn,cn=G.tr/1e3*G.finalSize;if(G.sz)for(var Ft,po,jo=!0,li=G.sz[0],qo=G.sz[1];jo;){Ft=0,Je=0,pe=(po=this.buildFinalText(G.t)).length,cn=G.tr/1e3*G.finalSize;var lo=-1;for(X=0;X<pe;X+=1)rn=po[X].charCodeAt(0),xe=!1,po[X]===" "?lo=X:(rn===13||rn===3)&&(Je=0,xe=!0,Ft+=G.finalLineHeight||1.2*G.finalSize),Qe.chars?(We=Qe.getCharData(po[X],Ne.fStyle,Ne.fFamily),qe=xe?0:We.w*G.finalSize/100):qe=Qe.measureText(po[X],G.f,G.finalSize),Je+qe>li&&po[X]!==" "?(lo===-1?pe+=1:X=lo,Ft+=G.finalLineHeight||1.2*G.finalSize,po.splice(X,lo===X?1:0,"\r"),lo=-1,Je=0):(Je+=qe,Je+=cn);Ft+=Ne.ascent*G.finalSize/100,this.canResize&&G.finalSize>this.minimumFontSize&&qo<Ft?(G.finalSize-=1,G.finalLineHeight=G.finalSize*G.lh/G.s):(G.finalText=po,pe=G.finalText.length,jo=!1)}Je=-cn,qe=0;var zt,gn=0;for(X=0;X<pe;X+=1)if(xe=!1,(rn=(zt=G.finalText[X]).charCodeAt(0))===13||rn===3?(gn=0,Jt.push(Je),Ve=Je>Ve?Je:Ve,Je=-2*cn,Ce="",xe=!0,Gt+=1):Ce=zt,Qe.chars?(We=Qe.getCharData(zt,Ne.fStyle,Qe.getFontByName(G.f).fFamily),qe=xe?0:We.w*G.finalSize/100):qe=Qe.measureText(Ce,G.f,G.finalSize),zt===" "?gn+=qe+cn:(Je+=qe+cn+gn,gn=0),Kt.push({l:qe,an:qe,add:Ct,n:xe,anIndexes:[],val:Ce,line:Gt,animatorJustifyOffset:0}),ct==2){if(Ct+=qe,Ce===""||Ce===" "||X===pe-1){for((Ce===""||Ce===" ")&&(Ct-=qe);Et<=X;)Kt[Et].an=Ct,Kt[Et].ind=et,Kt[Et].extra=qe,Et+=1;et+=1,Ct=0}}else if(ct==3){if(Ct+=qe,Ce===""||X===pe-1){for(Ce===""&&(Ct-=qe);Et<=X;)Kt[Et].an=Ct,Kt[Et].ind=et,Kt[Et].extra=qe,Et+=1;Ct=0,et+=1}}else Kt[et].ind=et,Kt[et].extra=0,et+=1;if(G.l=Kt,Ve=Je>Ve?Je:Ve,Jt.push(Je),G.sz)G.boxWidth=G.sz[0],G.justifyOffset=0;else switch(G.boxWidth=Ve,G.j){case 1:G.justifyOffset=-G.boxWidth;break;case 2:G.justifyOffset=-G.boxWidth/2;break;default:G.justifyOffset=0}G.lineWidths=Jt;var gt,rt,ze=Ot.a;Me=ze.length;var dt,wt,gi=[];for($e=0;$e<Me;$e+=1){for((gt=ze[$e]).a.sc&&(G.strokeColorAnim=!0),gt.a.sw&&(G.strokeWidthAnim=!0),(gt.a.fc||gt.a.fh||gt.a.fs||gt.a.fb)&&(G.fillColorAnim=!0),wt=0,dt=gt.s.b,X=0;X<pe;X+=1)(rt=Kt[X]).anIndexes[$e]=wt,(dt==1&&rt.val!==""||dt==2&&rt.val!==""&&rt.val!==" "||dt==3&&(rt.n||rt.val==" "||X==pe-1)||dt==4&&(rt.n||X==pe-1))&&(gt.s.rn===1&&gi.push(wt),wt+=1);Ot.a[$e].s.totalChars=wt;var Ko,Bo=-1;if(gt.s.rn===1)for(X=0;X<pe;X+=1)Bo!=(rt=Kt[X]).anIndexes[$e]&&(Bo=rt.anIndexes[$e],Ko=gi.splice(Math.floor(Math.random()*gi.length),1)[0]),rt.anIndexes[$e]=Ko}G.yOffset=G.finalLineHeight||1.2*G.finalSize,G.ls=G.ls||0,G.ascent=Ne.ascent*G.finalSize/100},qc.prototype.updateDocumentData=function(G,X){X=X===void 0?this.keysIndex:X;var pe=this.copyData({},this.data.d.k[X].s);pe=this.copyData(pe,G),this.data.d.k[X].s=pe,this.recalculate(X),this.setCurrentData(pe),this.elem.addDynamicProperty(this)},qc.prototype.recalculate=function(G){var X=this.data.d.k[G].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},qc.prototype.canResizeFont=function(G){this.canResize=G,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},qc.prototype.setMinimumFontSize=function(G){this.minimumFontSize=Math.floor(G)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var J8=(function(){var G=Math.max,X=Math.min,pe=Math.floor;function xe($e,Me){this._currentTextLength=-1,this.k=!1,this.data=Me,this.elem=$e,this.comp=$e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer($e),this.s=Ke.getProp($e,Me.s||{k:0},0,0,this),this.e="e"in Me?Ke.getProp($e,Me.e,0,0,this):{v:100},this.o=Ke.getProp($e,Me.o||{k:0},0,0,this),this.xe=Ke.getProp($e,Me.xe||{k:0},0,0,this),this.ne=Ke.getProp($e,Me.ne||{k:0},0,0,this),this.sm=Ke.getProp($e,Me.sm||{k:100},0,0,this),this.a=Ke.getProp($e,Me.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function Ce($e,Me,We){return new xe($e,Me)}return xe.prototype={getMult:function($e){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Me=0,We=0,Qe=1,Ot=1;this.ne.v>0?Me=this.ne.v/100:We=-this.ne.v/100,this.xe.v>0?Qe=1-this.xe.v/100:Ot=1+this.xe.v/100;var Kt=De.getBezierEasing(Me,We,Qe,Ot).get,et=0,ct=this.finalS,Ct=this.finalE,Et=this.data.sh;if(Et===2)et=Kt(et=Ct===ct?$e>=Ct?1:0:G(0,X(.5/(Ct-ct)+($e-ct)/(Ct-ct),1)));else if(Et===3)et=Kt(et=Ct===ct?$e>=Ct?0:1:1-G(0,X(.5/(Ct-ct)+($e-ct)/(Ct-ct),1)));else if(Et===4)Ct===ct?et=0:(et=G(0,X(.5/(Ct-ct)+($e-ct)/(Ct-ct),1)))<.5?et*=2:et=1-2*(et-.5),et=Kt(et);else if(Et===5){if(Ct===ct)et=0;else{var Gt=Ct-ct,Jt=-Gt/2+($e=X(G(0,$e+.5-ct),Ct-ct)),Je=Gt/2;et=Math.sqrt(1-Jt*Jt/(Je*Je))}et=Kt(et)}else Et===6?(Ct===ct?et=0:($e=X(G(0,$e+.5-ct),Ct-ct),et=(1+Math.cos(Math.PI+2*Math.PI*$e/(Ct-ct)))/2),et=Kt(et)):($e>=pe(ct)&&(et=G(0,X($e-ct<0?X(Ct,1)-(ct-$e):Ct-$e,1))),et=Kt(et));if(this.sm.v!==100){var Ve=.01*this.sm.v;Ve===0&&(Ve=1e-8);var Ne=.5-.5*Ve;et<Ne?et=0:(et=(et-Ne)/Ve)>1&&(et=1)}return et*this.a.v},getValue:function($e){this.iterateDynamicProperties(),this._mdf=$e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,$e&&this.data.r===2&&(this.e.v=this._currentTextLength);var Me=this.data.r===2?1:100/this.data.totalChars,We=this.o.v/Me,Qe=this.s.v/Me+We,Ot=this.e.v/Me+We;if(Qe>Ot){var Kt=Qe;Qe=Ot,Ot=Kt}this.finalS=Qe,this.finalE=Ot}},g([Lt],xe),{getTextSelectorProp:Ce}})();function ure(G,X,pe){var xe={propType:!1},Ce=Ke.getProp,$e=X.a;this.a={r:$e.r?Ce(G,$e.r,0,D,pe):xe,rx:$e.rx?Ce(G,$e.rx,0,D,pe):xe,ry:$e.ry?Ce(G,$e.ry,0,D,pe):xe,sk:$e.sk?Ce(G,$e.sk,0,D,pe):xe,sa:$e.sa?Ce(G,$e.sa,0,D,pe):xe,s:$e.s?Ce(G,$e.s,1,.01,pe):xe,a:$e.a?Ce(G,$e.a,1,0,pe):xe,o:$e.o?Ce(G,$e.o,0,.01,pe):xe,p:$e.p?Ce(G,$e.p,1,0,pe):xe,sw:$e.sw?Ce(G,$e.sw,0,0,pe):xe,sc:$e.sc?Ce(G,$e.sc,1,0,pe):xe,fc:$e.fc?Ce(G,$e.fc,1,0,pe):xe,fh:$e.fh?Ce(G,$e.fh,0,0,pe):xe,fs:$e.fs?Ce(G,$e.fs,0,.01,pe):xe,fb:$e.fb?Ce(G,$e.fb,0,.01,pe):xe,t:$e.t?Ce(G,$e.t,0,0,pe):xe},this.s=J8.getTextSelectorProp(G,X.s,pe),this.s.t=X.s.t}function d2(G,X,pe){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=G,this._renderType=X,this._elem=pe,this._animatorsData=b(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(pe)}function vm(){}d2.prototype.searchProperties=function(){var G,X,pe=this._textData.a.length,xe=Ke.getProp;for(G=0;G<pe;G+=1)X=this._textData.a[G],this._animatorsData[G]=new ure(this._elem,X,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:xe(this._elem,this._textData.p.a,0,0,this),f:xe(this._elem,this._textData.p.f,0,0,this),l:xe(this._elem,this._textData.p.l,0,0,this),r:xe(this._elem,this._textData.p.r,0,0,this),p:xe(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=xe(this._elem,this._textData.m.a,1,0,this)},d2.prototype.getMeasures=function(G,X){if(this.lettersChangedFlag=X,this._mdf||this._isFirstFrame||X||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var pe,xe,Ce,$e,Me,We,Qe,Ot,Kt,et,ct,Ct,Et,Gt,Jt,Je,Ve,Ne,qe,mt=this._moreOptions.alignment.v,rn=this._animatorsData,cn=this._textData,Ft=this.mHelper,po=this._renderType,jo=this.renderedLetters.length,li=G.l;if(this._hasMaskedPath){if(qe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var qo,lo=qe.v;for(this._pathData.r.v&&(lo=lo.reverse()),Me={tLength:0,segments:[]},$e=lo._length-1,Je=0,Ce=0;Ce<$e;Ce+=1)qo=Ie.buildBezierData(lo.v[Ce],lo.v[Ce+1],[lo.o[Ce][0]-lo.v[Ce][0],lo.o[Ce][1]-lo.v[Ce][1]],[lo.i[Ce+1][0]-lo.v[Ce+1][0],lo.i[Ce+1][1]-lo.v[Ce+1][1]]),Me.tLength+=qo.segmentLength,Me.segments.push(qo),Je+=qo.segmentLength;Ce=$e,qe.v.c&&(qo=Ie.buildBezierData(lo.v[Ce],lo.v[0],[lo.o[Ce][0]-lo.v[Ce][0],lo.o[Ce][1]-lo.v[Ce][1]],[lo.i[0][0]-lo.v[0][0],lo.i[0][1]-lo.v[0][1]]),Me.tLength+=qo.segmentLength,Me.segments.push(qo),Je+=qo.segmentLength),this._pathData.pi=Me}if(Me=this._pathData.pi,We=this._pathData.f.v,ct=0,et=1,Ot=0,Kt=!0,Gt=Me.segments,We<0&&qe.v.c)for(Me.tLength<Math.abs(We)&&(We=-Math.abs(We)%Me.tLength),et=(Et=Gt[ct=Gt.length-1].points).length-1;We<0;)We+=Et[et].partialLength,(et-=1)<0&&(et=(Et=Gt[ct-=1].points).length-1);Ct=(Et=Gt[ct].points)[et-1],Jt=(Qe=Et[et]).partialLength}$e=li.length,pe=0,xe=0;var zt,gn,gt,rt,ze=1.2*G.finalSize*.714,dt=!0;gt=rn.length;var wt,gi,Ko,Bo,wa,Zo,pl,ma,Ga,Am,u2,Sm,km,eh=-1,dr=We,ik=ct,ok=et,X8=-1,Ff="",ox=this.defaultPropsArray;if(G.j===2||G.j===1){var th=0,Dy=0,Ty=G.j===2?-.5:-1,p2=0,Ly=!0;for(Ce=0;Ce<$e;Ce+=1)if(li[Ce].n){for(th&&(th+=Dy);p2<Ce;)li[p2].animatorJustifyOffset=th,p2+=1;th=0,Ly=!0}else{for(gn=0;gn<gt;gn+=1)(zt=rn[gn].a).t.propType&&(Ly&&G.j===2&&(Dy+=zt.t.v*Ty),(wt=rn[gn].s.getMult(li[Ce].anIndexes[gn],cn.a[gn].s.totalChars)).length?th+=zt.t.v*wt[0]*Ty:th+=zt.t.v*wt*Ty);Ly=!1}for(th&&(th+=Dy);p2<Ce;)li[p2].animatorJustifyOffset=th,p2+=1}for(Ce=0;Ce<$e;Ce+=1){if(Ft.reset(),wa=1,li[Ce].n)pe=0,xe+=G.yOffset,xe+=dt?1:0,We=dr,dt=!1,this._hasMaskedPath&&(et=ok,Ct=(Et=Gt[ct=ik].points)[et-1],Jt=(Qe=Et[et]).partialLength,Ot=0),Ff="",Sm="",Am="",km="",ox=this.defaultPropsArray;else{if(this._hasMaskedPath){if(X8!==li[Ce].line){switch(G.j){case 1:We+=Je-G.lineWidths[li[Ce].line];break;case 2:We+=(Je-G.lineWidths[li[Ce].line])/2}X8=li[Ce].line}eh!==li[Ce].ind&&(li[eh]&&(We+=li[eh].extra),We+=li[Ce].an/2,eh=li[Ce].ind),We+=mt[0]*li[Ce].an*.005;var h2=0;for(gn=0;gn<gt;gn+=1)(zt=rn[gn].a).p.propType&&((wt=rn[gn].s.getMult(li[Ce].anIndexes[gn],cn.a[gn].s.totalChars)).length?h2+=zt.p.v[0]*wt[0]:h2+=zt.p.v[0]*wt),zt.a.propType&&((wt=rn[gn].s.getMult(li[Ce].anIndexes[gn],cn.a[gn].s.totalChars)).length?h2+=zt.a.v[0]*wt[0]:h2+=zt.a.v[0]*wt);for(Kt=!0,this._pathData.a.v&&(We=.5*li[0].an+(Je-this._pathData.f.v-.5*li[0].an-.5*li[li.length-1].an)*eh/($e-1),We+=this._pathData.f.v);Kt;)Ot+Jt>=We+h2||!Et?(Ve=(We+h2-Ot)/Qe.partialLength,Ko=Ct.point[0]+(Qe.point[0]-Ct.point[0])*Ve,Bo=Ct.point[1]+(Qe.point[1]-Ct.point[1])*Ve,Ft.translate(-mt[0]*li[Ce].an*.005,-mt[1]*ze*.01),Kt=!1):Et&&(Ot+=Qe.partialLength,(et+=1)>=Et.length&&(et=0,Gt[ct+=1]?Et=Gt[ct].points:qe.v.c?(et=0,Et=Gt[ct=0].points):(Ot-=Qe.partialLength,Et=null)),Et&&(Ct=Qe,Jt=(Qe=Et[et]).partialLength));gi=li[Ce].an/2-li[Ce].add,Ft.translate(-gi,0,0)}else gi=li[Ce].an/2-li[Ce].add,Ft.translate(-gi,0,0),Ft.translate(-mt[0]*li[Ce].an*.005,-mt[1]*ze*.01,0);for(gn=0;gn<gt;gn+=1)(zt=rn[gn].a).t.propType&&(wt=rn[gn].s.getMult(li[Ce].anIndexes[gn],cn.a[gn].s.totalChars),(pe!==0||G.j!==0)&&(this._hasMaskedPath?wt.length?We+=zt.t.v*wt[0]:We+=zt.t.v*wt:wt.length?pe+=zt.t.v*wt[0]:pe+=zt.t.v*wt));for(G.strokeWidthAnim&&(pl=G.sw||0),G.strokeColorAnim&&(Zo=G.sc?[G.sc[0],G.sc[1],G.sc[2]]:[0,0,0]),G.fillColorAnim&&G.fc&&(ma=[G.fc[0],G.fc[1],G.fc[2]]),gn=0;gn<gt;gn+=1)(zt=rn[gn].a).a.propType&&((wt=rn[gn].s.getMult(li[Ce].anIndexes[gn],cn.a[gn].s.totalChars)).length?Ft.translate(-zt.a.v[0]*wt[0],-zt.a.v[1]*wt[1],zt.a.v[2]*wt[2]):Ft.translate(-zt.a.v[0]*wt,-zt.a.v[1]*wt,zt.a.v[2]*wt));for(gn=0;gn<gt;gn+=1)(zt=rn[gn].a).s.propType&&((wt=rn[gn].s.getMult(li[Ce].anIndexes[gn],cn.a[gn].s.totalChars)).length?Ft.scale(1+(zt.s.v[0]-1)*wt[0],1+(zt.s.v[1]-1)*wt[1],1):Ft.scale(1+(zt.s.v[0]-1)*wt,1+(zt.s.v[1]-1)*wt,1));for(gn=0;gn<gt;gn+=1){if(zt=rn[gn].a,wt=rn[gn].s.getMult(li[Ce].anIndexes[gn],cn.a[gn].s.totalChars),zt.sk.propType&&(wt.length?Ft.skewFromAxis(-zt.sk.v*wt[0],zt.sa.v*wt[1]):Ft.skewFromAxis(-zt.sk.v*wt,zt.sa.v*wt)),zt.r.propType&&(wt.length?Ft.rotateZ(-zt.r.v*wt[2]):Ft.rotateZ(-zt.r.v*wt)),zt.ry.propType&&(wt.length?Ft.rotateY(zt.ry.v*wt[1]):Ft.rotateY(zt.ry.v*wt)),zt.rx.propType&&(wt.length?Ft.rotateX(zt.rx.v*wt[0]):Ft.rotateX(zt.rx.v*wt)),zt.o.propType&&(wt.length?wa+=(zt.o.v*wt[0]-wa)*wt[0]:wa+=(zt.o.v*wt-wa)*wt),G.strokeWidthAnim&&zt.sw.propType&&(wt.length?pl+=zt.sw.v*wt[0]:pl+=zt.sw.v*wt),G.strokeColorAnim&&zt.sc.propType)for(Ga=0;Ga<3;Ga+=1)wt.length?Zo[Ga]+=(zt.sc.v[Ga]-Zo[Ga])*wt[0]:Zo[Ga]+=(zt.sc.v[Ga]-Zo[Ga])*wt;if(G.fillColorAnim&&G.fc){if(zt.fc.propType)for(Ga=0;Ga<3;Ga+=1)wt.length?ma[Ga]+=(zt.fc.v[Ga]-ma[Ga])*wt[0]:ma[Ga]+=(zt.fc.v[Ga]-ma[Ga])*wt;zt.fh.propType&&(ma=wt.length?q(ma,zt.fh.v*wt[0]):q(ma,zt.fh.v*wt)),zt.fs.propType&&(ma=wt.length?U(ma,zt.fs.v*wt[0]):U(ma,zt.fs.v*wt)),zt.fb.propType&&(ma=wt.length?Y(ma,zt.fb.v*wt[0]):Y(ma,zt.fb.v*wt))}}for(gn=0;gn<gt;gn+=1)(zt=rn[gn].a).p.propType&&(wt=rn[gn].s.getMult(li[Ce].anIndexes[gn],cn.a[gn].s.totalChars),this._hasMaskedPath?wt.length?Ft.translate(0,zt.p.v[1]*wt[0],-zt.p.v[2]*wt[1]):Ft.translate(0,zt.p.v[1]*wt,-zt.p.v[2]*wt):wt.length?Ft.translate(zt.p.v[0]*wt[0],zt.p.v[1]*wt[1],-zt.p.v[2]*wt[2]):Ft.translate(zt.p.v[0]*wt,zt.p.v[1]*wt,-zt.p.v[2]*wt));if(G.strokeWidthAnim&&(Am=pl<0?0:pl),G.strokeColorAnim&&(u2="rgb("+Math.round(255*Zo[0])+","+Math.round(255*Zo[1])+","+Math.round(255*Zo[2])+")"),G.fillColorAnim&&G.fc&&(Sm="rgb("+Math.round(255*ma[0])+","+Math.round(255*ma[1])+","+Math.round(255*ma[2])+")"),this._hasMaskedPath){if(Ft.translate(0,-G.ls),Ft.translate(0,mt[1]*ze*.01+xe,0),this._pathData.p.v){Ne=(Qe.point[1]-Ct.point[1])/(Qe.point[0]-Ct.point[0]);var ew=180*Math.atan(Ne)/Math.PI;Qe.point[0]<Ct.point[0]&&(ew+=180),Ft.rotate(-ew*Math.PI/180)}Ft.translate(Ko,Bo,0),We-=mt[0]*li[Ce].an*.005,li[Ce+1]&&eh!==li[Ce+1].ind&&(We+=li[Ce].an/2,We+=.001*G.tr*G.finalSize)}else{switch(Ft.translate(pe,xe,0),G.ps&&Ft.translate(G.ps[0],G.ps[1]+G.ascent,0),G.j){case 1:Ft.translate(li[Ce].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[li[Ce].line]),0,0);break;case 2:Ft.translate(li[Ce].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[li[Ce].line])/2,0,0)}Ft.translate(0,-G.ls),Ft.translate(gi,0,0),Ft.translate(mt[0]*li[Ce].an*.005,mt[1]*ze*.01,0),pe+=li[Ce].l+.001*G.tr*G.finalSize}po==="html"?Ff=Ft.toCSS():po==="svg"?Ff=Ft.to2dCSS():ox=[Ft.props[0],Ft.props[1],Ft.props[2],Ft.props[3],Ft.props[4],Ft.props[5],Ft.props[6],Ft.props[7],Ft.props[8],Ft.props[9],Ft.props[10],Ft.props[11],Ft.props[12],Ft.props[13],Ft.props[14],Ft.props[15]],km=wa}jo<=Ce?(rt=new Xp(km,Am,u2,Sm,Ff,ox),this.renderedLetters.push(rt),jo+=1,this.lettersChangedFlag=!0):(rt=this.renderedLetters[Ce],this.lettersChangedFlag=rt.update(km,Am,u2,Sm,Ff,ox)||this.lettersChangedFlag)}}},d2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},d2.prototype.mHelper=new vt,d2.prototype.defaultPropsArray=[],g([Lt],d2),vm.prototype.initElement=function(G,X,pe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(G,X,pe),this.textProperty=new qc(this,G.t,this.dynamicProperties),this.textAnimator=new d2(G.t,this.renderType,this),this.initTransform(G,X,pe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},vm.prototype.prepareFrame=function(G){this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)},vm.prototype.createPathShape=function(G,X){var pe,xe,Ce=X.length,$e="";for(pe=0;pe<Ce;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,$e+=Yn(xe,xe.i.length,!0,G));return $e},vm.prototype.updateDocumentData=function(G,X){this.textProperty.updateDocumentData(G,X)},vm.prototype.canResizeFont=function(G){this.textProperty.canResizeFont(G)},vm.prototype.setMinimumFontSize=function(G){this.textProperty.setMinimumFontSize(G)},vm.prototype.applyTextPropertiesToMatrix=function(G,X,pe,xe,Ce){switch(G.ps&&X.translate(G.ps[0],G.ps[1]+G.ascent,0),X.translate(0,-G.ls,0),G.j){case 1:X.translate(G.justifyOffset+(G.boxWidth-G.lineWidths[pe]),0,0);break;case 2:X.translate(G.justifyOffset+(G.boxWidth-G.lineWidths[pe])/2,0,0)}X.translate(xe,Ce,0)},vm.prototype.buildColor=function(G){return"rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"},vm.prototype.emptyProp=new Xp,vm.prototype.destroy=function(){},vm.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var zin={shapes:[]};function nx(G,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(G,X,pe)}function pre(G,X,pe){this.initElement(G,X,pe)}function Iy(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initFrame(),this.initTransform(G,X,pe),this.initHierarchy()}function Id(){}function ix(){}function sL(G,X,pe){this.layers=G.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?b(this.layers.length):[],this.initElement(G,X,pe),this.tm=G.tm?Ke.getProp(this,G.tm,0,X.frameRate,this):{_placeholder:!0}}function hre(G,X){this.animationItem=G,this.layers=null,this.renderedFrame=-1,this.svgElement=le("svg");var pe="";if(X&&X.title){var xe=le("title"),Ce=H();xe.setAttribute("id",Ce),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=Ce}if(X&&X.description){var $e=le("desc"),Me=H();$e.setAttribute("id",Me),$e.textContent=X.description,this.svgElement.appendChild($e),pe+=" "+Me}pe&&this.svgElement.setAttribute("aria-labelledby",pe);var We=le("defs");this.svgElement.appendChild(We);var Qe=le("g");this.svgElement.appendChild(Qe),this.layerElement=Qe,this.renderConfig={preserveAspectRatio:X&&X.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:X&&X.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:X&&X.contentVisibility||"visible",progressiveLoad:X&&X.progressiveLoad||!1,hideOnTransparent:!(X&&X.hideOnTransparent===!1),viewBoxOnly:X&&X.viewBoxOnly||!1,viewBoxSize:X&&X.viewBoxSize||!1,className:X&&X.className||"",id:X&&X.id||"",focusable:X&&X.focusable,filterSize:{width:X&&X.filterSize&&X.filterSize.width||"100%",height:X&&X.filterSize&&X.filterSize.height||"100%",x:X&&X.filterSize&&X.filterSize.x||"0%",y:X&&X.filterSize&&X.filterSize.y||"0%"},width:X&&X.width,height:X&&X.height,runExpressions:!X||X.runExpressions===void 0||X.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:We,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([Nn,c2,q8,Ey,Ci,tx,vm],nx),nx.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=le("text"))},nx.prototype.buildTextContents=function(G){for(var X=0,pe=G.length,xe=[],Ce="";X<pe;)G[X]==="\r"||G[X]===""?(xe.push(Ce),Ce=""):Ce+=G[X],X+=1;return xe.push(Ce),xe},nx.prototype.buildShapeData=function(G,X){if(G.shapes&&G.shapes.length){var pe=G.shapes[0];if(pe.it){var xe=pe.it[pe.it.length-1];xe.s&&(xe.s.k[0]=X,xe.s.k[1]=X)}}return G},nx.prototype.buildNewText=function(){this.addDynamicProperty(this);var G,X,pe=this.textProperty.currentData;this.renderedLetters=b(pe?pe.l.length:0),pe.fc?this.layerElement.setAttribute("fill",this.buildColor(pe.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),pe.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(pe.sc)),this.layerElement.setAttribute("stroke-width",pe.sw)),this.layerElement.setAttribute("font-size",pe.finalSize);var xe=this.globalData.fontManager.getFontByName(pe.f);if(xe.fClass)this.layerElement.setAttribute("class",xe.fClass);else{this.layerElement.setAttribute("font-family",xe.fFamily);var Ce=pe.fWeight,$e=pe.fStyle;this.layerElement.setAttribute("font-style",$e),this.layerElement.setAttribute("font-weight",Ce)}this.layerElement.setAttribute("aria-label",pe.t);var Me=pe.l||[],We=!!this.globalData.fontManager.chars;X=Me.length;var Qe,Ot=this.mHelper,Kt="",et=this.data.singleShape,ct=0,Ct=0,Et=!0,Gt=.001*pe.tr*pe.finalSize;if(!et||We||pe.sz){var Jt,Je=this.textSpans.length;for(G=0;G<X;G+=1){if(this.textSpans[G]||(this.textSpans[G]={span:null,childSpan:null,glyph:null}),!We||!et||G===0){if(Qe=Je>G?this.textSpans[G].span:le(We?"g":"text"),Je<=G){if(Qe.setAttribute("stroke-linecap","butt"),Qe.setAttribute("stroke-linejoin","round"),Qe.setAttribute("stroke-miterlimit","4"),this.textSpans[G].span=Qe,We){var Ve=le("g");Qe.appendChild(Ve),this.textSpans[G].childSpan=Ve}this.textSpans[G].span=Qe,this.layerElement.appendChild(Qe)}Qe.style.display="inherit"}if(Ot.reset(),et&&(Me[G].n&&(ct=-Gt,Ct+=pe.yOffset,Ct+=Et?1:0,Et=!1),this.applyTextPropertiesToMatrix(pe,Ot,Me[G].line,ct,Ct),ct+=Me[G].l||0,ct+=Gt),We){var Ne;if((Jt=this.globalData.fontManager.getCharData(pe.finalText[G],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new sL(Jt.data,this.globalData,this);else{var qe=zin;Jt.data&&Jt.data.shapes&&(qe=this.buildShapeData(Jt.data,pe.finalSize)),Ne=new er(qe,this.globalData,this)}if(this.textSpans[G].glyph){var mt=this.textSpans[G].glyph;this.textSpans[G].childSpan.removeChild(mt.layerElement),mt.destroy()}this.textSpans[G].glyph=Ne,Ne._debug=!0,Ne.prepareFrame(0),Ne.renderFrame(),this.textSpans[G].childSpan.appendChild(Ne.layerElement),Jt.t===1&&this.textSpans[G].childSpan.setAttribute("transform","scale("+pe.finalSize/100+","+pe.finalSize/100+")")}else et&&Qe.setAttribute("transform","translate("+Ot.props[12]+","+Ot.props[13]+")"),Qe.textContent=Me[G].val,Qe.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&Qe&&Qe.setAttribute("d",Kt)}else{var rn=this.textContainer,cn="start";switch(pe.j){case 1:cn="end";break;case 2:cn="middle";break;default:cn="start"}rn.setAttribute("text-anchor",cn),rn.setAttribute("letter-spacing",Gt);var Ft=this.buildTextContents(pe.finalText);for(X=Ft.length,Ct=pe.ps?pe.ps[1]+pe.ascent:0,G=0;G<X;G+=1)(Qe=this.textSpans[G].span||le("tspan")).textContent=Ft[G],Qe.setAttribute("x",0),Qe.setAttribute("y",Ct),Qe.style.display="inherit",rn.appendChild(Qe),this.textSpans[G]||(this.textSpans[G]={span:null,glyph:null}),this.textSpans[G].span=Qe,Ct+=pe.finalLineHeight;this.layerElement.appendChild(rn)}for(;G<this.textSpans.length;)this.textSpans[G].span.style.display="none",G+=1;this._sizeChanged=!0},nx.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var G=this.layerElement.getBBox();this.bbox={top:G.y,left:G.x,width:G.width,height:G.height}}return this.bbox},nx.prototype.getValue=function(){var G,X,pe=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,G=0;G<pe;G+=1)(X=this.textSpans[G].glyph)&&(X.prepareFrame(this.comp.renderedFrame-this.data.st),X._mdf&&(this._mdf=!0))},nx.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var G,X,pe,xe,Ce,$e=this.textAnimator.renderedLetters,Me=this.textProperty.currentData.l;for(X=Me.length,G=0;G<X;G+=1)Me[G].n||(pe=$e[G],xe=this.textSpans[G].span,(Ce=this.textSpans[G].glyph)&&Ce.renderFrame(),pe._mdf.m&&xe.setAttribute("transform",pe.m),pe._mdf.o&&xe.setAttribute("opacity",pe.o),pe._mdf.sw&&xe.setAttribute("stroke-width",pe.sw),pe._mdf.sc&&xe.setAttribute("stroke",pe.sc),pe._mdf.fc&&xe.setAttribute("fill",pe.fc))}},g([K8],pre),pre.prototype.createContent=function(){var G=le("rect");G.setAttribute("width",this.data.sw),G.setAttribute("height",this.data.sh),G.setAttribute("fill",this.data.sc),this.layerElement.appendChild(G)},Iy.prototype.prepareFrame=function(G){this.prepareProperties(G,!0)},Iy.prototype.renderFrame=function(){},Iy.prototype.getBaseElement=function(){return null},Iy.prototype.destroy=function(){},Iy.prototype.sourceRectAtTime=function(){},Iy.prototype.hide=function(){},g([Nn,c2,Ey,Ci],Iy),g([tl],Id),Id.prototype.createNull=function(G){return new Iy(G,this.globalData,this)},Id.prototype.createShape=function(G){return new er(G,this.globalData,this)},Id.prototype.createText=function(G){return new nx(G,this.globalData,this)},Id.prototype.createImage=function(G){return new K8(G,this.globalData,this)},Id.prototype.createSolid=function(G){return new pre(G,this.globalData,this)},Id.prototype.configAnimation=function(G){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+G.w+" "+G.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",G.w),this.svgElement.setAttribute("height",G.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var X=this.globalData.defs;this.setupGlobalData(G,X),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=G;var pe=le("clipPath"),xe=le("rect");xe.setAttribute("width",G.w),xe.setAttribute("height",G.h),xe.setAttribute("x",0),xe.setAttribute("y",0);var Ce=H();pe.setAttribute("id",Ce),pe.appendChild(xe),this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ce+")"),X.appendChild(pe),this.layers=G.layers,this.elements=b(G.layers.length)},Id.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var G,X=this.layers?this.layers.length:0;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy&&this.elements[G].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Id.prototype.updateContainerSize=function(){},Id.prototype.findIndexByInd=function(G){var X=0,pe=this.layers.length;for(X=0;X<pe;X+=1)if(this.layers[X].ind===G)return X;return-1},Id.prototype.buildItem=function(G){var X=this.elements;if(!X[G]&&this.layers[G].ty!==99){X[G]=!0;var pe=this.createItem(this.layers[G]);if(X[G]=pe,te()&&(this.layers[G].ty===0&&this.globalData.projectInterface.registerComposition(pe),pe.initExpressions()),this.appendElementInPos(pe,G),this.layers[G].tt){var xe="tp"in this.layers[G]?this.findIndexByInd(this.layers[G].tp):G-1;if(xe===-1)return;if(this.elements[xe]&&this.elements[xe]!==!0){var Ce=X[xe].getMatte(this.layers[G].tt);pe.setMatte(Ce)}else this.buildItem(xe),this.addPendingElement(pe)}}},Id.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var G=this.pendingElements.pop();if(G.checkParenting(),G.data.tt)for(var X=0,pe=this.elements.length;X<pe;){if(this.elements[X]===G){var xe="tp"in G.data?this.findIndexByInd(G.data.tp):X-1,Ce=this.elements[xe].getMatte(this.layers[X].tt);G.setMatte(Ce);break}X+=1}}},Id.prototype.renderFrame=function(G){if(this.renderedFrame!==G&&!this.destroyed){G===null?G=this.renderedFrame:this.renderedFrame=G,this.globalData.frameNum=G,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=G,this.globalData._mdf=!1;var X,pe=this.layers.length;for(this.completeLayers||this.checkLayers(G),X=pe-1;X>=0;X-=1)(this.completeLayers||this.elements[X])&&this.elements[X].prepareFrame(G-this.layers[X].st);if(this.globalData._mdf)for(X=0;X<pe;X+=1)(this.completeLayers||this.elements[X])&&this.elements[X].renderFrame()}},Id.prototype.appendElementInPos=function(G,X){var pe=G.getBaseElement();if(pe){for(var xe,Ce=0;Ce<X;)this.elements[Ce]&&this.elements[Ce]!==!0&&this.elements[Ce].getBaseElement()&&(xe=this.elements[Ce].getBaseElement()),Ce+=1;xe?this.layerElement.insertBefore(pe,xe):this.layerElement.appendChild(pe)}},Id.prototype.hide=function(){this.layerElement.style.display="none"},Id.prototype.show=function(){this.layerElement.style.display="block"},g([Nn,c2,Ey,Ci,tx],ix),ix.prototype.initElement=function(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initTransform(G,X,pe),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!X.progressiveLoad)&&this.buildAllItems(),this.hide()},ix.prototype.prepareFrame=function(G){if(this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=G/this.data.sr;else{var X=this.tm.v;X===this.data.op&&(X=this.data.op-1),this.renderedFrame=X}var pe,xe=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),pe=xe-1;pe>=0;pe-=1)(this.completeLayers||this.elements[pe])&&(this.elements[pe].prepareFrame(this.renderedFrame-this.layers[pe].st),this.elements[pe]._mdf&&(this._mdf=!0))}},ix.prototype.renderInnerContent=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)(this.completeLayers||this.elements[G])&&this.elements[G].renderFrame()},ix.prototype.setElements=function(G){this.elements=G},ix.prototype.getElements=function(){return this.elements},ix.prototype.destroyElements=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy()},ix.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([Id,ix,q8],sL),sL.prototype.createComp=function(G){return new sL(G,this.globalData,this)},g([Id],hre),hre.prototype.createComp=function(G){return new sL(G,this.globalData,this)},he("svg",hre),hn.registerModifier("tm",on),hn.registerModifier("pb",Vt),hn.registerModifier("rp",Wn),hn.registerModifier("rd",Xn),hn.registerModifier("zz",pa),hn.registerModifier("op",yr),Qt})())})(0,xre.exports)),xre.exports}function gln(){if(Eje)return fre;function e(n){return n instanceof Xke?Xke.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return Eje=1,fre=function(n){if(n=n||{},n.circles)return(function(l){const c=[],d=[],u=new Map;if(u.set(Date,(x=>new Date(x))),u.set(Map,((x,y)=>new Map(h(Array.from(x),y)))),u.set(Set,((x,y)=>new Set(h(Array.from(x),y)))),l.constructorHandlers)for(const x of l.constructorHandlers)u.set(x[0],x[1]);let p=null;return l.proto?f:g;function h(x,y){const b=Object.keys(x),w=new Array(b.length);for(let C=0;C<b.length;C++){const v=b[C],S=x[v];if(typeof S!="object"||S===null)w[v]=S;else if(S.constructor!==Object&&(p=u.get(S.constructor)))w[v]=p(S,y);else if(ArrayBuffer.isView(S))w[v]=e(S);else{const k=c.indexOf(S);w[v]=k!==-1?d[k]:y(S)}}return w}function g(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,g);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,g);const y={};c.push(x),d.push(y);for(const b in x){if(Object.hasOwnProperty.call(x,b)===!1)continue;const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,g);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:g(w)}}return c.pop(),d.pop(),y}function f(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,f);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,f);const y={};c.push(x),d.push(y);for(const b in x){const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,f);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:f(w)}}return c.pop(),d.pop(),y}})(n);const i=new Map;if(i.set(Date,(l=>new Date(l))),i.set(Map,((l,c)=>new Map(s(Array.from(l),c)))),i.set(Set,((l,c)=>new Set(s(Array.from(l),c)))),n.constructorHandlers)for(const l of n.constructorHandlers)i.set(l[0],l[1]);let r=null;return n.proto?function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d}:function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){if(Object.hasOwnProperty.call(c,u)===!1)continue;const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d};function s(l,c){const d=Object.keys(l),u=new Array(d.length);for(let p=0;p<d.length;p++){const h=d[p],g=l[h];typeof g!="object"||g===null?u[h]=g:g.constructor!==Object&&(r=i.get(g.constructor))?u[h]=r(g,c):ArrayBuffer.isView(g)?u[h]=e(g):u[h]=c(g)}return u}},fre}var fln=(function(){if(Lje)return Tje;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}Lje=1;var n=e(mln()),i=B,r=e(i),s=e(($je||($je=1,jje=function g(f,x){if(f===x)return!0;if(f&&x&&typeof f=="object"&&typeof x=="object"){if(f.constructor!==x.constructor)return!1;var y,b,w;if(Array.isArray(f)){if((y=f.length)!=x.length)return!1;for(b=y;b--!=0;)if(!g(f[b],x[b]))return!1;return!0}if(f instanceof Map&&x instanceof Map){if(f.size!==x.size)return!1;for(b of f.entries())if(!x.has(b[0]))return!1;for(b of f.entries())if(!g(b[1],x.get(b[0])))return!1;return!0}if(f instanceof Set&&x instanceof Set){if(f.size!==x.size)return!1;for(b of f.entries())if(!x.has(b[0]))return!1;return!0}if(ArrayBuffer.isView(f)&&ArrayBuffer.isView(x)){if((y=f.length)!=x.length)return!1;for(b=y;b--!=0;)if(f[b]!==x[b])return!1;return!0}if(f.constructor===RegExp)return f.source===x.source&&f.flags===x.flags;if(f.valueOf!==Object.prototype.valueOf)return f.valueOf()===x.valueOf();if(f.toString!==Object.prototype.toString)return f.toString()===x.toString();if((y=(w=Object.keys(f)).length)!==Object.keys(x).length)return!1;for(b=y;b--!=0;)if(!Object.prototype.hasOwnProperty.call(x,w[b]))return!1;for(b=y;b--!=0;){var C=w[b];if(!(C==="_owner"&&f.$$typeof||g(f[C],x[C])))return!1}return!0}return f!=f&&x!=x}),jje)),l=e((Dje||(Dje=1,Ije=gln()()),Ije));function c(){return c=Object.assign?Object.assign.bind():function(g){for(var f=1;f<arguments.length;f++){var x=arguments[f];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(g[y]=x[y])}return g},c.apply(this,arguments)}function d(g,f){if(g==null)return{};var x,y,b={},w=Object.keys(g);for(y=0;y<w.length;y++)x=w[y],!(f.indexOf(x)>=0)&&(b[x]=g[x]);return b}var u={},p=function(){},h=(function(g){var f=g.loadAnimation,x=i.memo(i.forwardRef((function(y,b){var w,C,v=y.play,S=v===void 0?null:v,k=y.speed,$=k===void 0?1:k,j=y.direction,I=j===void 0?1:j,E=y.segments,D=E===void 0?null:E,L=y.goTo,O=L===void 0?null:L,N=y.useSubframes,_=N===void 0||N,z=y.renderer,T=z===void 0?"svg":z,M=y.loop,F=M===void 0||M,H=y.rendererSettings,V=H===void 0?u:H,W=y.audioFactory,U=y.onLoad,Y=U===void 0?p:U,q=y.onComplete,K=q===void 0?p:q,J=y.onLoopComplete,ee=J===void 0?p:J,te=y.onEnterFrame,ne=te===void 0?p:te,se=y.onSegmentStart,re=se===void 0?p:se,le=d(y,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),me=le;if("animationData"in le){var ue=le;w=ue.animationData,me=d(ue,["animationData"])}if("path"in le){var oe=le;C=oe.path,me=d(oe,["path"])}var ie=i.useRef(null),ce=i.useRef(),de=i.useCallback((function(){if(ce.current==null)throw new Error("Lottie ref is not set");return ce.current}),[]),fe=i.useState(!1),he=fe[0],ye=fe[1],ve=i.useState(D),be=ve[0],Ae=ve[1];i.useEffect((function(){s(be,D)||Ae(D)}),[D,be]);var Be=i.useState(V),De=Be[0],Te=Be[1];i.useEffect((function(){s(De,V)||Te(V)}),[V,De]),i.useEffect((function(){return function(){return de().removeEventListener("complete",K)}}),[de,K]),i.useEffect((function(){return function(){return de().removeEventListener("loopComplete",ee)}}),[de,ee]),i.useEffect((function(){return function(){return de().removeEventListener("enterFrame",ne)}}),[de,ne]),i.useEffect((function(){return function(){return de().removeEventListener("segmentStart",re)}}),[de,re]),i.useEffect((function(){return function(){return de().removeEventListener("DOMLoaded",Y)}}),[de,Y]);var Fe=i.useCallback((function(Se){ce.current=Se,typeof b=="function"?b(Se):b!=null&&(b.current=Se)}),[b]);i.useEffect((function(){if(ie.current==null)throw new Error("animElementRef is not set");var Se=f(c({animationData:w==null||typeof w!="object"?w:"default"in w&&typeof w.default=="object"?l(w.default):l(w),path:C,container:ie.current,renderer:T,loop:!1,autoplay:!1,rendererSettings:De},W?{audioFactory:W}:{}));Fe(Se);var we=function(){return ye(!0)};return de().addEventListener("DOMLoaded",we),function(){de().removeEventListener("DOMLoaded",we),ye(!1),de().destroy(),Fe(void 0)}}),[F,T,De,w,C,W,Fe,de]),i.useEffect((function(){de().addEventListener("DOMLoaded",Y)}),[de,Y]),i.useEffect((function(){de().addEventListener("complete",K)}),[de,K]),i.useEffect((function(){de().addEventListener("loopComplete",ee)}),[de,ee]),i.useEffect((function(){de().addEventListener("enterFrame",ne)}),[de,ne]),i.useEffect((function(){de().addEventListener("segmentStart",re)}),[de,re]),i.useEffect((function(){he&&(de().loop=F)}),[he,F,de]);var Oe=i.useRef(!1);return i.useEffect((function(){if(he)if(S===!0){var Se=!0;be?(de().playSegments(be,Se),Oe.current=!0,I===-1&&we(typeof be[1]=="number"?be[1]:be[1][1])):(Oe.current&&de().resetSegments(Se),Oe.current=!1,I===-1?we(de().getDuration(!0)):de().play())}else S===!1&&de().pause();function we(Ie){de().goToAndPlay(Ie,!0),de().setDirection(I)}}),[S,be,he,I,de]),i.useEffect((function(){he&&(Number.isNaN($)||de().setSpeed($))}),[$,he,de]),i.useEffect((function(){he&&de().setDirection(I)}),[I,de,he]),i.useEffect((function(){if(he&&O!=null){var Se=!0;S?de().goToAndPlay(O,Se):de().goToAndStop(O,Se)}}),[de,O,S,he]),i.useEffect((function(){de().setSubframe&&de().setSubframe(_)}),[de,_]),r.createElement("div",c({},me,{ref:ie}))})));return x})(n);return Tje=h})();const Rs=pr(fln);var Bje,Pje,yre,Mje,bre,Oje,wre,Fje,Cre,Rje,vre,zje,Are,Nje,_je,Vje,Hje,Uje,Wje,Qje,Yje,Gje,qje,Kje,Zje,Jje,Xje,e$e,t$e,n$e,Sre,i$e,kre,o$e,jre,r$e,$re,a$e,Ere,s$e,l$e,c$e,Ire,d$e,Dre,u$e,Tre,p$e,h$e,m$e,Lre,g$e,f$e,x$e,y$e,b$e,w$e,C$e,v$e,A$e,Bre,S$e,Pre,k$e,Mre,j$e,$$e,E$e,I$e,D$e,T$e,L$e,Ore,B$e,Fre,P$e,Rre,M$e,zre,O$e,Nre,F$e,R$e,z$e,_re,N$e,_$e,V$e,H$e,U$e,W$e,Q$e,Y$e,G$e,q$e,K$e,Vre,Z$e,Hre,J$e,X$e,eEe,tEe,nEe,Ure,iEe,Wre,oEe,Qre,rEe,aEe,sEe,Yre,lEe,Gre,cEe,dEe,uEe,pEe,hEe,qre,mEe,Kre,gEe,Zre,fEe,xEe,yEe;function Iee(){return Mje||(Mje=1,yre=function(e,n){return e===n||e!=e&&n!=n}),yre}function u_(){if(Oje)return bre;Oje=1;var e=Iee();return bre=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},bre}function kG(){if(Vje)return _je;Vje=1;var e=Pje?Bje:(Pje=1,Bje=function(){this.__data__=[],this.size=0}),n=(function(){if(Fje)return wre;Fje=1;var c=u_(),d=Array.prototype.splice;return wre=function(u){var p=this.__data__,h=c(p,u);return!(h<0||(h==p.length-1?p.pop():d.call(p,h,1),--this.size,0))},wre})(),i=(function(){if(Rje)return Cre;Rje=1;var c=u_();return Cre=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},Cre})(),r=(function(){if(zje)return vre;zje=1;var c=u_();return vre=function(d){return c(this.__data__,d)>-1},vre})(),s=(function(){if(Nje)return Are;Nje=1;var c=u_();return Are=function(d,u){var p=this.__data__,h=c(p,d);return h<0?(++this.size,p.push([d,u])):p[h][1]=u,this},Are})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,_je=l}function LCt(){if(Jje)return Zje;Jje=1;var e=typeof Hh=="object"&&Hh&&Hh.Object===Object&&Hh;return Zje=e}function v3(){if(e$e)return Xje;e$e=1;var e=LCt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return Xje=i}function JI(){if(n$e)return t$e;n$e=1;var e=v3().Symbol;return t$e=e}function nT(){if(r$e)return jre;r$e=1;var e=JI(),n=(function(){if(i$e)return Sre;i$e=1;var s=JI(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return Sre=function(p){var h=c.call(p,u),g=p[u];try{p[u]=void 0;var f=!0}catch{}var x=d.call(p);return f&&(h?p[u]=g:delete p[u]),x},Sre})(),i=(function(){if(o$e)return kre;o$e=1;var s=Object.prototype.toString;return kre=function(l){return s.call(l)},kre})(),r=e?e.toStringTag:void 0;return jre=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},jre}function z3(){return a$e||(a$e=1,$re=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),$re}function BCt(){if(s$e)return Ere;s$e=1;var e=nT(),n=z3();return Ere=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},Ere}function xln(){if(d$e)return Ire;d$e=1;var e=(function(){if(c$e)return l$e;c$e=1;var i=v3()["__core-js_shared__"];return l$e=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return Ire=function(i){return!!n&&n in i},Ire}function PCt(){if(u$e)return Dre;u$e=1;var e=Function.prototype.toString;return Dre=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},Dre}function Zv(){if(g$e)return Lre;g$e=1;var e=(function(){if(p$e)return Tre;p$e=1;var i=BCt(),r=xln(),s=z3(),l=PCt(),c=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,p=d.toString,h=u.hasOwnProperty,g=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Tre=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},Tre})(),n=(m$e||(m$e=1,h$e=function(i,r){return i?.[r]}),h$e);return Lre=function(i,r){var s=n(i,r);return e(s)?s:void 0},Lre}function j8e(){if(x$e)return f$e;x$e=1;var e=Zv()(v3(),"Map");return f$e=e}function p_(){if(b$e)return y$e;b$e=1;var e=Zv()(Object,"create");return y$e=e}function yln(){if(E$e)return $$e;E$e=1;var e=(function(){if(C$e)return w$e;C$e=1;var c=p_();return w$e=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(A$e||(A$e=1,v$e=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),v$e),i=(function(){if(S$e)return Bre;S$e=1;var c=p_(),d=Object.prototype.hasOwnProperty;return Bre=function(u){var p=this.__data__;if(c){var h=p[u];return h==="__lodash_hash_undefined__"?void 0:h}return d.call(p,u)?p[u]:void 0},Bre})(),r=(function(){if(k$e)return Pre;k$e=1;var c=p_(),d=Object.prototype.hasOwnProperty;return Pre=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},Pre})(),s=(function(){if(j$e)return Mre;j$e=1;var c=p_();return Mre=function(d,u){var p=this.__data__;return this.size+=this.has(d)?0:1,p[d]=c&&u===void 0?"__lodash_hash_undefined__":u,this},Mre})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,$$e=l}function h_(){if(B$e)return Ore;B$e=1;var e=(L$e||(L$e=1,T$e=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),T$e);return Ore=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},Ore}function $8e(){if(z$e)return R$e;z$e=1;var e=(function(){if(D$e)return I$e;D$e=1;var c=yln(),d=kG(),u=j8e();return I$e=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(P$e)return Fre;P$e=1;var c=h_();return Fre=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},Fre})(),i=(function(){if(M$e)return Rre;M$e=1;var c=h_();return Rre=function(d){return c(this,d).get(d)},Rre})(),r=(function(){if(O$e)return zre;O$e=1;var c=h_();return zre=function(d){return c(this,d).has(d)},zre})(),s=(function(){if(F$e)return Nre;F$e=1;var c=h_();return Nre=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},Nre})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,R$e=l}function E8e(){if(V$e)return _$e;V$e=1;var e=kG(),n=(function(){if(Uje)return Hje;Uje=1;var d=kG();return Hje=function(){this.__data__=new d,this.size=0}})(),i=(Qje||(Qje=1,Wje=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),Wje),r=(Gje||(Gje=1,Yje=function(d){return this.__data__.get(d)}),Yje),s=(Kje||(Kje=1,qje=function(d){return this.__data__.has(d)}),qje),l=(function(){if(N$e)return _re;N$e=1;var d=kG(),u=j8e(),p=$8e();return _re=function(h,g){var f=this.__data__;if(f instanceof d){var x=f.__data__;if(!u||x.length<199)return x.push([h,g]),this.size=++f.size,this;f=this.__data__=new p(x)}return f.set(h,g),this.size=f.size,this},_re})();function c(d){var u=this.__data__=new e(d);this.size=u.size}return c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=s,c.prototype.set=l,_$e=c}function MCt(){if(G$e)return Y$e;G$e=1;var e=$8e(),n=(U$e||(U$e=1,H$e=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),H$e),i=(Q$e||(Q$e=1,W$e=function(s){return this.__data__.has(s)}),W$e);function r(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new e;++l<c;)this.add(s[l])}return r.prototype.add=r.prototype.push=n,r.prototype.has=i,Y$e=r}function OCt(){return Z$e||(Z$e=1,Vre=function(e,n){return e.has(n)}),Vre}function FCt(){if(J$e)return Hre;J$e=1;var e=MCt(),n=(K$e||(K$e=1,q$e=function(r,s){for(var l=-1,c=r==null?0:r.length;++l<c;)if(s(r[l],l,r))return!0;return!1}),q$e),i=OCt();return Hre=function(r,s,l,c,d,u){var p=1&l,h=r.length,g=s.length;if(h!=g&&!(p&&g>h))return!1;var f=u.get(r),x=u.get(s);if(f&&x)return f==s&&x==r;var y=-1,b=!0,w=2&l?new e:void 0;for(u.set(r,s),u.set(s,r);++y<h;){var C=r[y],v=s[y];if(c)var S=p?c(v,C,y,s,r,u):c(C,v,y,r,s,u);if(S!==void 0){if(S)continue;b=!1;break}if(w){if(!n(s,(function(k,$){if(!i(w,$)&&(C===k||d(C,k,l,c,u)))return w.push($)}))){b=!1;break}}else if(C!==v&&!d(C,v,l,c,u)){b=!1;break}}return u.delete(r),u.delete(s),b},Hre}function RCt(){if(eEe)return X$e;eEe=1;var e=v3().Uint8Array;return X$e=e}function O5e(){return iEe||(iEe=1,Ure=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Ure}function bln(){if(oEe)return Wre;oEe=1;var e=JI(),n=RCt(),i=Iee(),r=FCt(),s=(nEe||(nEe=1,tEe=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),tEe),l=O5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Wre=function(u,p,h,g,f,x,y){switch(h){case"[object DataView]":if(u.byteLength!=p.byteLength||u.byteOffset!=p.byteOffset)return!1;u=u.buffer,p=p.buffer;case"[object ArrayBuffer]":return!(u.byteLength!=p.byteLength||!x(new n(u),new n(p)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+u,+p);case"[object Error]":return u.name==p.name&&u.message==p.message;case"[object RegExp]":case"[object String]":return u==p+"";case"[object Map]":var b=s;case"[object Set]":var w=1&g;if(b||(b=l),u.size!=p.size&&!w)return!1;var C=y.get(u);if(C)return C==p;g|=2,y.set(u,p);var v=r(b(u),b(p),g,f,x,y);return y.delete(u),v;case"[object Symbol]":if(d)return d.call(u)==d.call(p)}return!1},Wre}function I8e(){return rEe||(rEe=1,Qre=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Qre}function Gu(){if(sEe)return aEe;sEe=1;var e=Array.isArray;return aEe=e}function zCt(){if(lEe)return Yre;lEe=1;var e=I8e(),n=Gu();return Yre=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Yre}function D8e(){return cEe||(cEe=1,Gre=function(e,n){for(var i=-1,r=e==null?0:e.length,s=0,l=[];++i<r;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}),Gre}function NCt(){return uEe?dEe:(uEe=1,dEe=function(){return[]})}function T8e(){if(hEe)return pEe;hEe=1;var e=D8e(),n=NCt(),i=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(l){return l==null?[]:(l=Object(l),e(r(l),(function(c){return i.call(l,c)})))}:n;return pEe=s}function _Ct(){return mEe||(mEe=1,qre=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),qre}function W7(){return gEe||(gEe=1,Kre=function(e){return e!=null&&typeof e=="object"}),Kre}function L8e(){if(yEe)return xEe;yEe=1;var e=(function(){if(fEe)return Zre;fEe=1;var c=nT(),d=W7();return Zre=function(u){return d(u)&&c(u)=="[object Arguments]"},Zre})(),n=W7(),i=Object.prototype,r=i.hasOwnProperty,s=i.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(c){return n(c)&&r.call(c,"callee")&&!s.call(c,"callee")};return xEe=l}var bEe,wEe,CEe,Jre,vEe,Xre,AEe,eae,SEe,tae,kEe,nae={exports:{}};function B8e(){return CEe||(CEe=1,(function(e,n){var i=v3(),r=wEe?bEe:(wEe=1,bEe=function(){return!1}),s=n&&!n.nodeType&&n,l=s&&e&&!e.nodeType&&e,c=l&&l.exports===s?i.Buffer:void 0,d=(c?c.isBuffer:void 0)||r;e.exports=d})(nae,nae.exports)),nae.exports}function yz(){if(vEe)return Jre;vEe=1;var e=/^(?:0|[1-9]\d*)$/;return Jre=function(n,i){var r=typeof n;return!!(i=i??9007199254740991)&&(r=="number"||r!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i},Jre}function P8e(){return AEe?Xre:(AEe=1,Xre=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Xre)}function Dee(){return kEe||(kEe=1,tae=function(e){return function(n){return e(n)}}),tae}var jEe,$Ee,EEe,iae,IEe,oae,DEe,rae,TEe,LEe,BEe,aae,PEe,sae,MEe,lae,OEe,cae,FEe,dae,REe,zEe,NEe,_Ee,VEe,HEe,UEe,WEe,QEe,YEe,GEe,uae,qEe,pae,KEe,hae,ZEe,mae={exports:{}};function M8e(){return jEe||(jEe=1,(function(e,n){var i=LCt(),r=n&&!n.nodeType&&n,s=r&&e&&!e.nodeType&&e,l=s&&s.exports===r&&i.process,c=(function(){try{return s&&s.require&&s.require("util").types||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(mae,mae.exports)),mae.exports}function VCt(){if(EEe)return $Ee;EEe=1;var e=(function(){if(SEe)return eae;SEe=1;var l=nT(),c=P8e(),d=W7(),u={};return u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,eae=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},eae})(),n=Dee(),i=M8e(),r=i&&i.isTypedArray,s=r?n(r):e;return $Ee=s}function HCt(){if(IEe)return iae;IEe=1;var e=_Ct(),n=L8e(),i=Gu(),r=B8e(),s=yz(),l=VCt(),c=Object.prototype.hasOwnProperty;return iae=function(d,u){var p=i(d),h=!p&&n(d),g=!p&&!h&&r(d),f=!p&&!h&&!g&&l(d),x=p||h||g||f,y=x?e(d.length,String):[],b=y.length;for(var w in d)(u||c.call(d,w))&&(!x||!(w=="length"||g&&(w=="offset"||w=="parent")||f&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||s(w,b)))&&y.push(w);return y},iae}function O8e(){if(DEe)return oae;DEe=1;var e=Object.prototype;return oae=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},oae}function UCt(){return TEe||(TEe=1,rae=function(e,n){return function(i){return e(n(i))}}),rae}function wln(){if(PEe)return aae;PEe=1;var e=O8e(),n=(function(){if(BEe)return LEe;BEe=1;var r=UCt()(Object.keys,Object);return LEe=r})(),i=Object.prototype.hasOwnProperty;return aae=function(r){if(!e(r))return n(r);var s=[];for(var l in Object(r))i.call(r,l)&&l!="constructor"&&s.push(l);return s},aae}function iT(){if(MEe)return sae;MEe=1;var e=BCt(),n=P8e();return sae=function(i){return i!=null&&n(i.length)&&!e(i)},sae}function rR(){if(OEe)return lae;OEe=1;var e=HCt(),n=wln(),i=iT();return lae=function(r){return i(r)?e(r):n(r)},lae}function WCt(){if(FEe)return cae;FEe=1;var e=zCt(),n=T8e(),i=rR();return cae=function(r){return e(r,i,n)},cae}function QCt(){if(UEe)return HEe;UEe=1;var e=Zv()(v3(),"Set");return HEe=e}function Tee(){if(GEe)return YEe;GEe=1;var e=(function(){if(NEe)return zEe;NEe=1;var v=Zv()(v3(),"DataView");return zEe=v})(),n=j8e(),i=(function(){if(VEe)return _Ee;VEe=1;var v=Zv()(v3(),"Promise");return _Ee=v})(),r=QCt(),s=(function(){if(QEe)return WEe;QEe=1;var v=Zv()(v3(),"WeakMap");return WEe=v})(),l=nT(),c=PCt(),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",g="[object DataView]",f=c(e),x=c(n),y=c(i),b=c(r),w=c(s),C=l;return(e&&C(new e(new ArrayBuffer(1)))!=g||n&&C(new n)!=d||i&&C(i.resolve())!=u||r&&C(new r)!=p||s&&C(new s)!=h)&&(C=function(v){var S=l(v),k=S=="[object Object]"?v.constructor:void 0,$=k?c(k):"";if($)switch($){case f:return g;case x:return d;case y:return u;case b:return p;case w:return h}return S}),YEe=C}function Cln(){if(qEe)return uae;qEe=1;var e=E8e(),n=FCt(),i=bln(),r=(function(){if(REe)return dae;REe=1;var f=WCt(),x=Object.prototype.hasOwnProperty;return dae=function(y,b,w,C,v,S){var k=1&w,$=f(y),j=$.length;if(j!=f(b).length&&!k)return!1;for(var I=j;I--;){var E=$[I];if(!(k?E in b:x.call(b,E)))return!1}var D=S.get(y),L=S.get(b);if(D&&L)return D==b&&L==y;var O=!0;S.set(y,b),S.set(b,y);for(var N=k;++I<j;){var _=y[E=$[I]],z=b[E];if(C)var T=k?C(z,_,E,b,y,S):C(_,z,E,y,b,S);if(!(T===void 0?_===z||v(_,z,w,C,S):T)){O=!1;break}N||(N=E=="constructor")}if(O&&!N){var M=y.constructor,F=b.constructor;M!=F&&"constructor"in y&&"constructor"in b&&!(typeof M=="function"&&M instanceof M&&typeof F=="function"&&F instanceof F)&&(O=!1)}return S.delete(y),S.delete(b),O},dae})(),s=Tee(),l=Gu(),c=B8e(),d=VCt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return uae=function(f,x,y,b,w,C){var v=l(f),S=l(x),k=v?p:s(f),$=S?p:s(x),j=(k=k==u?h:k)==h,I=($=$==u?h:$)==h,E=k==$;if(E&&c(f)){if(!c(x))return!1;v=!0,j=!1}if(E&&!j)return C||(C=new e),v||d(f)?n(f,x,y,b,w,C):i(f,x,k,y,b,w,C);if(!(1&y)){var D=j&&g.call(f,"__wrapped__"),L=I&&g.call(x,"__wrapped__");if(D||L){var O=D?f.value():f,N=L?x.value():x;return C||(C=new e),w(O,N,y,b,C)}}return!!E&&(C||(C=new e),r(f,x,y,b,w,C))},uae}function F8e(){if(KEe)return pae;KEe=1;var e=Cln(),n=W7();return pae=function i(r,s,l,c,d){return r===s||(r==null||s==null||!n(r)&&!n(s)?r!=r&&s!=s:e(r,s,l,c,i,d))},pae}var vln=(function(){if(ZEe)return hae;ZEe=1;var e=F8e();return hae=function(n,i){return e(n,i)},hae})();const ro=pr(vln);var JEe,XEe,gae,eIe,fae,tIe,xae,nIe,yae,iIe,bae,oIe;function Aln(){if(tIe)return fae;tIe=1;var e=(function(){if(eIe)return gae;eIe=1;var i=/\s/;return gae=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},gae})(),n=/^\s+/;return fae=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},fae}function bz(){if(nIe)return xae;nIe=1;var e=nT(),n=W7();return xae=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},xae}function YCt(){if(iIe)return yae;iIe=1;var e=Aln(),n=z3(),i=bz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return yae=function(d){if(typeof d=="number")return d;if(i(d))return NaN;if(n(d)){var u=typeof d.valueOf=="function"?d.valueOf():d;d=n(u)?u+"":u}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=s.test(d);return p||l.test(d)?c(d.slice(2),p?2:8):r.test(d)?NaN:+d},yae}function GCt(){if(oIe)return bae;oIe=1;var e=z3(),n=(function(){if(XEe)return JEe;XEe=1;var l=v3();return JEe=function(){return l.Date.now()}})(),i=YCt(),r=Math.max,s=Math.min;return bae=function(l,c,d){var u,p,h,g,f,x,y=0,b=!1,w=!1,C=!0;if(typeof l!="function")throw new TypeError("Expected a function");function v(I){var E=u,D=p;return u=p=void 0,y=I,g=l.apply(D,E)}function S(I){var E=I-x;return x===void 0||E>=c||E<0||w&&I-y>=h}function k(){var I=n();if(S(I))return $(I);f=setTimeout(k,(function(E){var D=c-(E-x);return w?s(D,h-(E-y)):D})(I))}function $(I){return f=void 0,C&&u?v(I):(u=p=void 0,g)}function j(){var I=n(),E=S(I);if(u=arguments,p=this,x=I,E){if(f===void 0)return(function(D){return y=D,f=setTimeout(k,c),b?v(D):g})(x);if(w)return clearTimeout(f),f=setTimeout(k,c),v(x)}return f===void 0&&(f=setTimeout(k,c)),g}return c=i(c)||0,e(d)&&(b=!!d.leading,h=(w="maxWait"in d)?r(i(d.maxWait)||0,c):h,C="trailing"in d?!!d.trailing:C),j.cancel=function(){f!==void 0&&clearTimeout(f),y=0,u=x=p=f=void 0},j.flush=function(){return f===void 0?g:$(n())},j},bae}const Ds=pr(GCt());var rIe,aIe;function qCt(){return aIe?rIe:(aIe=1,rIe=function(){})}const R8e=pr(qCt());var wae,sIe,lIe,cIe,Cae,dIe,vae,uIe,Aae,pIe,Sae,hIe,mIe,gIe,kae,fIe,jae,xIe,$ae,yIe;function KCt(){return sIe||(sIe=1,wae=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),wae}function ZCt(){if(cIe)return lIe;cIe=1;var e=Zv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return lIe=n}function z8e(){if(dIe)return Cae;dIe=1;var e=ZCt();return Cae=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},Cae}function N8e(){if(uIe)return vae;uIe=1;var e=z8e(),n=Iee(),i=Object.prototype.hasOwnProperty;return vae=function(r,s,l){var c=r[s];(!i.call(r,s)||!n(c,l)||l===void 0&&!(s in r))&&e(r,s,l)},vae}function LM(){if(pIe)return Aae;pIe=1;var e=N8e(),n=z8e();return Aae=function(i,r,s,l){var c=!s;s||(s={});for(var d=-1,u=r.length;++d<u;){var p=r[d],h=l?l(s[p],i[p],p,s,i):void 0;h===void 0&&(h=i[p]),c?n(s,p,h):e(s,p,h)}return s},Aae}function Sln(){if(fIe)return kae;fIe=1;var e=z3(),n=O8e(),i=(gIe||(gIe=1,mIe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),mIe),r=Object.prototype.hasOwnProperty;return kae=function(s){if(!e(s))return i(s);var l=n(s),c=[];for(var d in s)d=="constructor"&&(l||!r.call(s,d))||c.push(d);return c},kae}function F5e(){if(xIe)return jae;xIe=1;var e=HCt(),n=Sln(),i=iT();return jae=function(r){return i(r)?e(r,!0):n(r)},jae}var bIe,wIe,CIe,Eae,vIe,AIe,SIe,kIe,jIe,Iae,$Ie,Dae,EIe,Tae,IIe,Lae,DIe,Bae,TIe,Pae,LIe,Mae,BIe,Oae,PIe,Fae,MIe,OIe,FIe,Rae,RIe,zae,zIe,NIe,_Ie,Nae,VIe,HIe,UIe,_ae,WIe,Vae,QIe,Hae={exports:{}};function _8e(){if(SIe)return AIe;SIe=1;var e=UCt()(Object.getPrototypeOf,Object);return AIe=e}function JCt(){if(jIe)return kIe;jIe=1;var e=I8e(),n=_8e(),i=T8e(),r=NCt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return kIe=s}function V8e(){if(EIe)return Dae;EIe=1;var e=zCt(),n=JCt(),i=F5e();return Dae=function(r){return e(r,i,n)},Dae}function Uae(){if(DIe)return Lae;DIe=1;var e=RCt();return Lae=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},Lae}function kln(){if(MIe)return Fae;MIe=1;var e=Uae(),n=(function(){if(TIe)return Bae;TIe=1;var l=Uae();return Bae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},Bae})(),i=(function(){if(LIe)return Pae;LIe=1;var l=/\w*$/;return Pae=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},Pae})(),r=(function(){if(BIe)return Mae;BIe=1;var l=JI(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return Mae=function(u){return d?Object(d.call(u)):{}},Mae})(),s=(function(){if(PIe)return Oae;PIe=1;var l=Uae();return Oae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},Oae})();return Fae=function(l,c,d){var u=l.constructor;switch(c){case"[object ArrayBuffer]":return e(l);case"[object Boolean]":case"[object Date]":return new u(+l);case"[object DataView]":return n(l,d);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(l,d);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(l);case"[object RegExp]":return i(l);case"[object Symbol]":return r(l)}},Fae}function jln(){if(RIe)return Rae;RIe=1;var e=(function(){if(FIe)return OIe;FIe=1;var r=z3(),s=Object.create,l=(function(){function c(){}return function(d){if(!r(d))return{};if(s)return s(d);c.prototype=d;var u=new c;return c.prototype=void 0,u}})();return OIe=l})(),n=_8e(),i=O8e();return Rae=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},Rae}function $ln(){if(_Ie)return NIe;_Ie=1;var e=(function(){if(zIe)return zae;zIe=1;var l=Tee(),c=W7();return zae=function(d){return c(d)&&l(d)=="[object Map]"},zae})(),n=Dee(),i=M8e(),r=i&&i.isMap,s=r?n(r):e;return NIe=s}function Eln(){if(UIe)return HIe;UIe=1;var e=(function(){if(VIe)return Nae;VIe=1;var l=Tee(),c=W7();return Nae=function(d){return c(d)&&l(d)=="[object Set]"},Nae})(),n=Dee(),i=M8e(),r=i&&i.isSet,s=r?n(r):e;return HIe=s}function XCt(){if(WIe)return _ae;WIe=1;var e=E8e(),n=KCt(),i=N8e(),r=(function(){if(hIe)return Sae;hIe=1;var L=LM(),O=rR();return Sae=function(N,_){return N&&L(_,O(_),N)},Sae})(),s=(function(){if(yIe)return $ae;yIe=1;var L=LM(),O=F5e();return $ae=function(N,_){return N&&L(_,O(_),N)},$ae})(),l=(bIe||(bIe=1,(function(L,O){var N=v3(),_=O&&!O.nodeType&&O,z=_&&L&&!L.nodeType&&L,T=z&&z.exports===_?N.Buffer:void 0,M=T?T.allocUnsafe:void 0;L.exports=function(F,H){if(H)return F.slice();var V=F.length,W=M?M(V):new F.constructor(V);return F.copy(W),W}})(Hae,Hae.exports)),Hae.exports),c=(CIe||(CIe=1,wIe=function(L,O){var N=-1,_=L.length;for(O||(O=Array(_));++N<_;)O[N]=L[N];return O}),wIe),d=(function(){if(vIe)return Eae;vIe=1;var L=LM(),O=T8e();return Eae=function(N,_){return L(N,O(N),_)},Eae})(),u=(function(){if($Ie)return Iae;$Ie=1;var L=LM(),O=JCt();return Iae=function(N,_){return L(N,O(N),_)},Iae})(),p=WCt(),h=V8e(),g=Tee(),f=(function(){if(IIe)return Tae;IIe=1;var L=Object.prototype.hasOwnProperty;return Tae=function(O){var N=O.length,_=new O.constructor(N);return N&&typeof O[0]=="string"&&L.call(O,"index")&&(_.index=O.index,_.input=O.input),_},Tae})(),x=kln(),y=jln(),b=Gu(),w=B8e(),C=$ln(),v=z3(),S=Eln(),k=rR(),$=F5e(),j="[object Arguments]",I="[object Function]",E="[object Object]",D={};return D[j]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[E]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[I]=D["[object WeakMap]"]=!1,_ae=function L(O,N,_,z,T,M){var F,H=1&N,V=2&N,W=4&N;if(_&&(F=T?_(O,z,T,M):_(O)),F!==void 0)return F;if(!v(O))return O;var U=b(O);if(U){if(F=f(O),!H)return c(O,F)}else{var Y=g(O),q=Y==I||Y=="[object GeneratorFunction]";if(w(O))return l(O,H);if(Y==E||Y==j||q&&!T){if(F=V||q?{}:y(O),!H)return V?u(O,s(F,O)):d(O,r(F,O))}else{if(!D[Y])return T?O:{};F=x(O,Y,H)}}M||(M=new e);var K=M.get(O);if(K)return K;M.set(O,F),S(O)?O.forEach((function(ee){F.add(L(ee,N,_,ee,O,M))})):C(O)&&O.forEach((function(ee,te){F.set(te,L(ee,N,_,te,O,M))}));var J=U?void 0:(W?V?h:p:V?$:k)(O);return n(J||O,(function(ee,te){J&&(ee=O[te=ee]),i(F,te,L(ee,N,_,te,O,M))})),F},_ae}var Iln=(function(){if(QIe)return Vae;QIe=1;var e=XCt();return Vae=function(n){return e(n,5)},Vae})();const rs=pr(Iln);var Wae,YIe,Qae,GIe,qIe,KIe,Yae,ZIe,JIe,XIe,Gae,eDe,qae,tDe,Kae,nDe,Zae,iDe,Jae,oDe,Xae,rDe,ese,aDe;function H8e(){if(GIe)return Qae;GIe=1;var e=Gu(),n=bz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Qae=function(s,l){if(e(s))return!1;var c=typeof s;return!(c!="number"&&c!="symbol"&&c!="boolean"&&s!=null&&!n(s))||r.test(s)||!i.test(s)||l!=null&&s in Object(l)},Qae}function Dln(){if(ZIe)return Yae;ZIe=1;var e=(function(){if(KIe)return qIe;KIe=1;var n=$8e();function i(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new TypeError("Expected a function");var l=function(){var c=arguments,d=s?s.apply(this,c):c[0],u=l.cache;if(u.has(d))return u.get(d);var p=r.apply(this,c);return l.cache=u.set(d,p)||u,p};return l.cache=new(i.Cache||n),l}return i.Cache=n,qIe=i})();return Yae=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Yae}function lS(){return eDe||(eDe=1,Gae=function(e,n){for(var i=-1,r=e==null?0:e.length,s=Array(r);++i<r;)s[i]=n(e[i],i,e);return s}),Gae}function evt(){if(tDe)return qae;tDe=1;var e=JI(),n=lS(),i=Gu(),r=bz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return qae=function c(d){if(typeof d=="string")return d;if(i(d))return n(d,c)+"";if(r(d))return l?l.call(d):"";var u=d+"";return u=="0"&&1/d==-1/0?"-0":u},qae}function tvt(){if(nDe)return Kae;nDe=1;var e=evt();return Kae=function(n){return n==null?"":e(n)},Kae}function XI(){if(iDe)return Zae;iDe=1;var e=Gu(),n=H8e(),i=(function(){if(XIe)return JIe;XIe=1;var s=Dln(),l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=s((function(u){var p=[];return u.charCodeAt(0)===46&&p.push(""),u.replace(l,(function(h,g,f,x){p.push(f?x.replace(c,"$1"):g||h)})),p}));return JIe=d})(),r=tvt();return Zae=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},Zae}function oT(){if(oDe)return Jae;oDe=1;var e=bz();return Jae=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Jae}function nvt(){if(rDe)return Xae;rDe=1;var e=XI(),n=L8e(),i=Gu(),r=yz(),s=P8e(),l=oT();return Xae=function(c,d,u){for(var p=-1,h=(d=e(d,c)).length,g=!1;++p<h;){var f=l(d[p]);if(!(g=c!=null&&u(c,f)))break;c=c[f]}return g||++p!=h?g:!!(h=c==null?0:c.length)&&s(h)&&r(f,h)&&(i(c)||n(c))},Xae}var Tln=(function(){if(aDe)return ese;aDe=1;var e=(function(){if(YIe)return Wae;YIe=1;var i=Object.prototype.hasOwnProperty;return Wae=function(r,s){return r!=null&&i.call(r,s)},Wae})(),n=nvt();return ese=function(i,r){return i!=null&&n(i,r,e)},ese})();const mn=pr(Tln);var sDe,lDe,tse,cDe,nse,dDe,ise,uDe,pDe,hDe,mDe,gDe,ose,fDe,xDe,yDe,rse,bDe,wDe,CDe;function rT(){return cDe||(cDe=1,tse=function(e){return e}),tse}function ivt(){return dDe||(dDe=1,nse=function(e,n,i){switch(i.length){case 0:return e.call(n);case 1:return e.call(n,i[0]);case 2:return e.call(n,i[0],i[1]);case 3:return e.call(n,i[0],i[1],i[2])}return e.apply(n,i)}),nse}function ovt(){if(uDe)return ise;uDe=1;var e=ivt(),n=Math.max;return ise=function(i,r,s){return r=n(r===void 0?i.length-1:r,0),function(){for(var l=arguments,c=-1,d=n(l.length-r,0),u=Array(d);++c<d;)u[c]=l[r+c];c=-1;for(var p=Array(r+1);++c<r;)p[c]=l[c];return p[r]=s(u),e(i,this,p)}},ise}function Lln(){if(gDe)return mDe;gDe=1;var e=(hDe||(hDe=1,pDe=function(s){return function(){return s}}),pDe),n=ZCt(),i=rT(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return mDe=r}function rvt(){if(yDe)return xDe;yDe=1;var e=Lln(),n=(function(){if(fDe)return ose;fDe=1;var r=Date.now;return ose=function(s){var l=0,c=0;return function(){var d=r(),u=16-(d-c);if(c=d,u>0){if(++l>=800)return arguments[0]}else l=0;return s.apply(void 0,arguments)}},ose})(),i=n(e);return xDe=i}function avt(){if(bDe)return rse;bDe=1;var e=rT(),n=ovt(),i=rvt();return rse=function(r,s){return i(n(r,s,e),r+"")},rse}var Bln=(function(){if(CDe)return wDe;CDe=1;var e=(lDe||(lDe=1,sDe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),sDe),n=avt()((function(i,r){return e(i,1,r)}));return wDe=n})();const Ui=pr(Bln);var ase,vDe,sse,ADe;function wz(){if(vDe)return ase;vDe=1;var e=XI(),n=oT();return ase=function(i,r){for(var s=0,l=(r=e(r,i)).length;i!=null&&s<l;)i=i[n(r[s++])];return s&&s==l?i:void 0},ase}function svt(){if(ADe)return sse;ADe=1;var e=wz();return sse=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},sse}const I3=pr(svt());var lse,SDe,cse,kDe,dse,jDe,use,$De;function lvt(){if(SDe)return lse;SDe=1;var e=E8e(),n=F8e();return lse=function(i,r,s,l){var c=s.length,d=c,u=!l;if(i==null)return!d;for(i=Object(i);c--;){var p=s[c];if(u&&p[2]?p[1]!==i[p[0]]:!(p[0]in i))return!1}for(;++c<d;){var h=(p=s[c])[0],g=i[h],f=p[1];if(u&&p[2]){if(g===void 0&&!(h in i))return!1}else{var x=new e;if(l)var y=l(g,f,h,i,r,x);if(!(y===void 0?n(f,g,3,l,x):y))return!1}}return!0},lse}function cvt(){if(kDe)return cse;kDe=1;var e=z3();return cse=function(n){return n==n&&!e(n)},cse}function dvt(){if(jDe)return dse;jDe=1;var e=cvt(),n=rR();return dse=function(i){for(var r=n(i),s=r.length;s--;){var l=r[s],c=i[l];r[s]=[l,c,e(c)]}return r},dse}var Pln=(function(){if($De)return use;$De=1;var e=lvt(),n=dvt();return use=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},use})();const Mln=pr(Pln);var EDe,IDe,Oln=(IDe||(IDe=1,EDe=function(e){return e==null}),EDe);const DDe=pr(Oln);var TDe,LDe,pse,BDe,Fln=(function(){if(BDe)return pse;BDe=1;var e=(LDe||(LDe=1,TDe=function(i,r){for(var s,l=-1,c=i.length;++l<c;){var d=r(i[l]);d!==void 0&&(s=s===void 0?d:s+d)}return s}),TDe),n=rT();return pse=function(i){return i&&i.length?e(i,n):0},pse})();const Rln=pr(Fln);var hse,PDe,mse,MDe,gse,ODe,fse,FDe,xse,RDe;function U8e(){return PDe||(PDe=1,hse=function(e,n,i){var r=-1,s=e.length;n<0&&(n=-n>s?0:s+n),(i=i>s?s:i)<0&&(i+=s),s=n>i?0:i-n>>>0,n>>>=0;for(var l=Array(s);++r<s;)l[r]=e[r+n];return l}),hse}function uvt(){if(MDe)return mse;MDe=1;var e=Iee(),n=iT(),i=yz(),r=z3();return mse=function(s,l,c){if(!r(c))return!1;var d=typeof l;return!!(d=="number"?n(c)&&i(l,c.length):d=="string"&&l in c)&&e(c[l],s)},mse}function Lee(){if(FDe)return fse;FDe=1;var e=(function(){if(ODe)return gse;ODe=1;var n=YCt(),i=1/0;return gse=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},gse})();return fse=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},fse}var zln=(function(){if(RDe)return xse;RDe=1;var e=U8e(),n=uvt(),i=Lee(),r=Math.ceil,s=Math.max;return xse=function(l,c,d){c=(d?n(l,c,d):c===void 0)?1:s(i(c),0);var u=l==null?0:l.length;if(!u||c<1)return[];for(var p=0,h=0,g=Array(r(u/c));p<u;)g[h++]=e(l,p,p+=c);return g},xse})();const Nln=pr(zln);var zDe,NDe,_ln=(NDe||(NDe=1,zDe=function(e){for(var n=-1,i=e==null?0:e.length,r=0,s=[];++n<i;){var l=e[n];l&&(s[r++]=l)}return s}),zDe);const Vln=pr(_ln);var _De,VDe,HDe,UDe,yse,WDe,bse,QDe,YDe,GDe,wse,qDe,Cse,KDe,ZDe,JDe;function Hln(){if(UDe)return HDe;UDe=1;var e=(VDe||(VDe=1,_De=function(i){return function(r,s,l){for(var c=-1,d=Object(r),u=l(r),p=u.length;p--;){var h=u[i?p:++c];if(s(d[h],h,d)===!1)break}return r}}),_De),n=e();return HDe=n}function pvt(){if(WDe)return yse;WDe=1;var e=Hln(),n=rR();return yse=function(i,r){return i&&e(i,r,n)},yse}function Cz(){if(GDe)return YDe;GDe=1;var e=pvt(),n=(function(){if(QDe)return bse;QDe=1;var r=iT();return bse=function(s,l){return function(c,d){if(c==null)return c;if(!r(c))return s(c,d);for(var u=c.length,p=l?u:-1,h=Object(c);(l?p--:++p<u)&&d(h[p],p,h)!==!1;);return c}},bse})(),i=n(e);return YDe=i}function hvt(){if(qDe)return wse;qDe=1;var e=rT();return wse=function(n){return typeof n=="function"?n:e},wse}var Uln=(JDe||(JDe=1,ZDe=(function(){if(KDe)return Cse;KDe=1;var e=KCt(),n=Cz(),i=hvt(),r=Gu();return Cse=function(s,l){return(r(s)?e:n)(s,i(l))},Cse})()),ZDe);const Wln=pr(Uln);var XDe,eTe,vse,tTe,Ase,nTe,iTe,oTe,Sse,rTe,kse,aTe,jse,sTe,$se,lTe,Ese,cTe,Ise,dTe,uTe,pTe,Dse,hTe;function mTe(){return tTe||(tTe=1,vse=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),vse}function Qln(){if(rTe)return Sse;rTe=1;var e=(oTe||(oTe=1,iTe=function(i,r){return i!=null&&r in Object(i)}),iTe),n=nvt();return Sse=function(i,r){return i!=null&&n(i,r,e)},Sse}function W8e(){return sTe||(sTe=1,jse=function(e){return function(n){return n?.[e]}}),jse}function Yln(){if(cTe)return Ese;cTe=1;var e=W8e(),n=(function(){if(lTe)return $se;lTe=1;var s=wz();return $se=function(l){return function(c){return s(c,l)}},$se})(),i=H8e(),r=oT();return Ese=function(s){return i(s)?e(r(s)):n(s)},Ese}function G9(){if(dTe)return Ise;dTe=1;var e=(function(){if(nTe)return Ase;nTe=1;var l=lvt(),c=dvt(),d=mTe();return Ase=function(u){var p=c(u);return p.length==1&&p[0][2]?d(p[0][0],p[0][1]):function(h){return h===u||l(h,u,p)}},Ase})(),n=(function(){if(aTe)return kse;aTe=1;var l=F8e(),c=svt(),d=Qln(),u=H8e(),p=cvt(),h=mTe(),g=oT();return kse=function(f,x){return u(f)&&p(x)?h(g(f),x):function(y){var b=c(y,f);return b===void 0&&b===x?d(y,f):l(x,b,3)}},kse})(),i=rT(),r=Gu(),s=Yln();return Ise=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},Ise}var Gln=(function(){if(hTe)return Dse;hTe=1;var e=(eTe||(eTe=1,XDe=function(l,c,d,u){var p=-1,h=l==null?0:l.length;for(u&&h&&(d=l[++p]);++p<h;)d=c(d,l[p],p,l);return d}),XDe),n=Cz(),i=G9(),r=(pTe||(pTe=1,uTe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),uTe),s=Gu();return Dse=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},Dse})();const R5e=pr(Gln);var Tse,gTe,Lse,fTe,Bse,xTe,yTe,bTe;function qln(){if(fTe)return Lse;fTe=1;var e=D8e(),n=lS(),i=W8e(),r=_Ct(),s=(function(){if(gTe)return Tse;gTe=1;var c=iT(),d=W7();return Tse=function(u){return d(u)&&c(u)},Tse})(),l=Math.max;return Lse=function(c){if(!c||!c.length)return[];var d=0;return c=e(c,(function(u){if(s(u))return d=l(u.length,d),!0})),r(d,(function(u){return n(c,i(u))}))},Lse}var Kln=(function(){if(bTe)return yTe;bTe=1;var e=avt(),n=(function(){if(xTe)return Bse;xTe=1;var r=ivt(),s=lS(),l=qln();return Bse=function(c,d){if(!c||!c.length)return[];var u=l(c);return d==null?u:s(u,(function(p){return r(d,void 0,p)}))},Bse})(),i=e((function(r){var s=r.length,l=s>1?r[s-1]:void 0;return l=typeof l=="function"?(r.pop(),l):void 0,n(r,l)}));return yTe=i})();const Zln=pr(Kln);var Pse,wTe,Jln=(function(){if(wTe)return Pse;wTe=1;var e=pvt(),n=hvt();return Pse=function(i,r){return i&&e(i,n(r))},Pse})();const mvt=pr(Jln);var Mse,CTe,Ose,vTe;function gvt(){if(CTe)return Mse;CTe=1;var e=Cz(),n=iT();return Mse=function(i,r){var s=-1,l=n(i)?Array(i.length):[];return e(i,(function(c,d,u){l[++s]=r(c,d,u)})),l},Mse}function fvt(){if(vTe)return Ose;vTe=1;var e=lS(),n=G9(),i=gvt(),r=Gu();return Ose=function(s,l){return(r(s)?e:i)(s,n(l,3))},Ose}const Bee=pr(fvt());var Fse,ATe,Rse,STe,zse,kTe;function Xln(){if(STe)return Rse;STe=1;var e=wz(),n=(function(){if(ATe)return Fse;ATe=1;var r=N8e(),s=XI(),l=yz(),c=z3(),d=oT();return Fse=function(u,p,h,g){if(!c(u))return u;for(var f=-1,x=(p=s(p,u)).length,y=x-1,b=u;b!=null&&++f<x;){var w=d(p[f]),C=h;if(w==="__proto__"||w==="constructor"||w==="prototype")return u;if(f!=y){var v=b[w];(C=g?g(v,w,b):void 0)===void 0&&(C=c(v)?v:l(p[f+1])?[]:{})}r(b,w,C),b=b[w]}return u},Fse})(),i=XI();return Rse=function(r,s,l){for(var c=-1,d=s.length,u={};++c<d;){var p=s[c],h=e(r,p);l(h,p)&&n(u,i(p,r),h)}return u},Rse}var ecn=(function(){if(kTe)return zse;kTe=1;var e=lS(),n=G9(),i=Xln(),r=V8e();return zse=function(s,l){if(s==null)return{};var c=e(r(s),(function(d){return[d]}));return l=n(l),i(s,c,(function(d,u){return l(d,u[0])}))},zse})();const lK=pr(ecn);var Nse,jTe,tcn=(function(){if(jTe)return Nse;jTe=1;var e=GCt(),n=z3();return Nse=function(i,r,s){var l=!0,c=!0;if(typeof i!="function")throw new TypeError("Expected a function");return n(s)&&(l="leading"in s?!!s.leading:l,c="trailing"in s?!!s.trailing:c),e(i,r,{leading:l,maxWait:r,trailing:c})},Nse})();const ncn=pr(tcn);var _se,$Te,Vse,ETe,icn=(function(){if(ETe)return Vse;ETe=1;var e=D8e(),n=(function(){if($Te)return _se;$Te=1;var s=Cz();return _se=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},_se})(),i=G9(),r=Gu();return Vse=function(s,l){return(r(s)?e:n)(s,i(l,3))},Vse})();const ocn=pr(icn);var ITe,DTe,Hse,TTe,Use,LTe,BTe,PTe;function rcn(){if(LTe)return Use;LTe=1;var e=(DTe||(DTe=1,ITe=function(s,l,c,d){for(var u=-1,p=s==null?0:s.length;++u<p;){var h=s[u];l(d,h,c(h),s)}return d}),ITe),n=(function(){if(TTe)return Hse;TTe=1;var s=Cz();return Hse=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Hse})(),i=G9(),r=Gu();return Use=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Use}var acn=(function(){if(PTe)return BTe;PTe=1;var e=z8e(),n=rcn(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return BTe=r})();const scn=pr(acn);var MTe,OTe,Wse,FTe,Qse,RTe,Yse,zTe,Gse,NTe;function lcn(){if(RTe)return Qse;RTe=1;var e=(function(){if(FTe)return Wse;FTe=1;var n=bz();return Wse=function(i,r){if(i!==r){var s=i!==void 0,l=i===null,c=i==i,d=n(i),u=r!==void 0,p=r===null,h=r==r,g=n(r);if(!p&&!g&&!d&&i>r||d&&u&&h&&!p&&!g||l&&u&&h||!s&&h||!c)return 1;if(!l&&!d&&!g&&i<r||g&&s&&c&&!l&&!d||p&&s&&c||!u&&c||!h)return-1}return 0},Wse})();return Qse=function(n,i,r){for(var s=-1,l=n.criteria,c=i.criteria,d=l.length,u=r.length;++s<d;){var p=e(l[s],c[s]);if(p)return s>=u?p:p*(r[s]=="desc"?-1:1)}return n.index-i.index},Qse}function ccn(){if(zTe)return Yse;zTe=1;var e=lS(),n=wz(),i=G9(),r=gvt(),s=(OTe||(OTe=1,MTe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),MTe),l=Dee(),c=lcn(),d=rT(),u=Gu();return Yse=function(p,h,g){h=h.length?e(h,(function(y){return u(y)?function(b){return n(b,y.length===1?y[0]:y)}:y})):[d];var f=-1;h=e(h,l(i));var x=r(p,(function(y,b,w){var C=e(h,(function(v){return v(y)}));return{criteria:C,index:++f,value:y}}));return s(x,(function(y,b){return c(y,b,g)}))},Yse}var dcn=(function(){if(NTe)return Gse;NTe=1;var e=ccn(),n=Gu();return Gse=function(i,r,s,l){return i==null?[]:(n(r)||(r=r==null?[]:[r]),n(s=l?void 0:s)||(s=s==null?[]:[s]),e(i,r,s))},Gse})();const Pee=pr(dcn);var _Te,VTe,qse,HTe,Kse,UTe,Zse,WTe;function ucn(){if(HTe)return qse;HTe=1;var e=(VTe||(VTe=1,_Te=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),_Te),n=Lee();return qse=function(i){return i?e(n(i),0,4294967295):0},qse}var pcn=(function(){if(WTe)return Zse;WTe=1;var e=(function(){if(UTe)return Kse;UTe=1;var i=Lee(),r=ucn();return Kse=function(s,l,c,d){var u=s.length;for((c=i(c))<0&&(c=-c>u?0:u+c),(d=d===void 0||d>u?u:i(d))<0&&(d+=u),d=c>d?0:r(d);c<d;)s[c++]=l;return s},Kse})(),n=uvt();return Zse=function(i,r,s,l){var c=i==null?0:i.length;return c?(s&&typeof s!="number"&&n(i,r,s)&&(s=0,l=c),e(i,r,s,l)):[]},Zse})();const xvt=pr(pcn);var QTe,YTe,Jse,GTe,Xse,qTe,ele,KTe,tle,ZTe;function yvt(){if(qTe)return Xse;qTe=1;var e=XI(),n=(YTe||(YTe=1,QTe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),QTe),i=(function(){if(GTe)return Jse;GTe=1;var l=wz(),c=U8e();return Jse=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Jse})(),r=oT(),s=Object.prototype.hasOwnProperty;return Xse=function(l,c){var d=-1,u=(c=e(c,l)).length;if(!u)return!0;for(;++d<u;){var p=r(c[d]);if(p==="__proto__"&&!s.call(l,"__proto__")||(p==="constructor"||p==="prototype")&&d<u-1)return!1}var h=i(l,c);return h==null||delete h[r(n(c))]},Xse}var hcn=(function(){if(ZTe)return tle;ZTe=1;var e=G9(),n=(function(){if(KTe)return ele;KTe=1;var i=yvt(),r=yz(),s=Array.prototype.splice;return ele=function(l,c){for(var d=l?c.length:0,u=d-1;d--;){var p=c[d];if(d==u||p!==h){var h=p;r(p)?s.call(l,p,1):i(l,p)}}return l},ele})();return tle=function(i,r){var s=[];if(!i||!i.length)return s;var l=-1,c=[],d=i.length;for(r=e(r,3);++l<d;){var u=i[l];r(u,l,i)&&(s.push(u),c.push(l))}return n(i,c),s},tle})();const cK=pr(hcn);var nle,JTe,ile,XTe,ole,eLe,rle,tLe,ale,nLe,sle,iLe,oLe,rLe;function mcn(){if(XTe)return ile;XTe=1;var e=(function(){if(JTe)return nle;JTe=1;var n=nT(),i=_8e(),r=W7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return nle=function(p){if(!r(p)||n(p)!="[object Object]")return!1;var h=i(p);if(h===null)return!0;var g=d.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&c.call(g)==u},nle})();return ile=function(n){return e(n)?void 0:n},ile}function bvt(){if(tLe)return rle;tLe=1;var e=I8e(),n=(function(){if(eLe)return ole;eLe=1;var i=JI(),r=L8e(),s=Gu(),l=i?i.isConcatSpreadable:void 0;return ole=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},ole})();return rle=function i(r,s,l,c,d){var u=-1,p=r.length;for(l||(l=n),d||(d=[]);++u<p;){var h=r[u];s>0&&l(h)?s>1?i(h,s-1,l,c,d):e(d,h):c||(d[d.length]=h)}return d},rle}function wvt(){if(nLe)return ale;nLe=1;var e=bvt();return ale=function(n){return n!=null&&n.length?e(n,1):[]},ale}var gcn=(function(){if(rLe)return oLe;rLe=1;var e=lS(),n=XCt(),i=yvt(),r=XI(),s=LM(),l=mcn(),c=(function(){if(iLe)return sle;iLe=1;var p=wvt(),h=ovt(),g=rvt();return sle=function(f){return g(h(f,void 0,p),f+"")},sle})(),d=V8e(),u=c((function(p,h){var g={};if(p==null)return g;var f=!1;h=e(h,(function(y){return y=r(y,p),f||(f=y.length>1),y})),s(p,d(p),g),f&&(g=n(g,7,l));for(var x=h.length;x--;)i(g,h[x]);return g}));return oLe=u})();const Q8e=pr(gcn);var lle,aLe,fcn=(function(){if(aLe)return lle;aLe=1;var e=bvt(),n=fvt();return lle=function(i,r){return e(n(i,r),1)},lle})();const Cvt=pr(fcn);var sLe,lLe,cLe,dLe,uLe,pLe,cle,hLe,dle,mLe,gLe,fLe,xLe,yLe,ule,bLe,ple,wLe;function xcn(){if(hLe)return cle;hLe=1;var e=(lLe||(lLe=1,sLe=function(r,s,l,c){for(var d=r.length,u=l+(c?1:-1);c?u--:++u<d;)if(s(r[u],u,r))return u;return-1}),sLe),n=(dLe||(dLe=1,cLe=function(r){return r!=r}),cLe),i=(pLe||(pLe=1,uLe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),uLe);return cle=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},cle}function vvt(){if(bLe)return ule;bLe=1;var e=MCt(),n=(function(){if(mLe)return dle;mLe=1;var c=xcn();return dle=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},dle})(),i=(fLe||(fLe=1,gLe=function(c,d,u){for(var p=-1,h=c==null?0:c.length;++p<h;)if(u(d,c[p]))return!0;return!1}),gLe),r=OCt(),s=(function(){if(yLe)return xLe;yLe=1;var c=QCt(),d=qCt(),u=O5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return xLe=p})(),l=O5e();return ule=function(c,d,u){var p=-1,h=n,g=c.length,f=!0,x=[],y=x;if(u)f=!1,h=i;else if(g>=200){var b=d?null:s(c);if(b)return l(b);f=!1,h=r,y=new e}else y=d?[]:x;e:for(;++p<g;){var w=c[p],C=d?d(w):w;if(w=u||w!==0?w:0,f&&C==C){for(var v=y.length;v--;)if(y[v]===C)continue e;d&&y.push(C),x.push(w)}else h(y,C,u)||(y!==x&&y.push(C),x.push(w))}return x},ule}var ycn=(function(){if(wLe)return ple;wLe=1;var e=G9(),n=vvt();return ple=function(i,r){return i&&i.length?n(i,e(r,2)):[]},ple})();const bcn=pr(ycn),wcn=pr(wvt());var hle,CLe,Ccn=(function(){if(CLe)return hle;CLe=1;var e=vvt();return hle=function(n){return n&&n.length?e(n):[]},hle})();const vcn=pr(Ccn);var mle,vLe,gle,ALe,fle,SLe,kLe,jLe,xle,$Le,yle,ELe,ILe,DLe,ble,TLe,wle,LLe,Cle,BLe,PLe,MLe;function Y8e(){if(SLe)return fle;SLe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return fle=function(n){return e.test(n)},fle}function Avt(){if(ELe)return yle;ELe=1;var e=(function(){if(jLe)return kLe;jLe=1;var r=W8e()("length");return kLe=r})(),n=Y8e(),i=(function(){if($Le)return xle;$Le=1;var r="\\ud800-\\udfff",s="["+r+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\\ud83c[\\udffb-\\udfff]",d="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+l+"|"+c+")?",g="[\\ufe0e\\ufe0f]?",f=g+h+"(?:\\u200d(?:"+[d,u,p].join("|")+")"+g+h+")*",x="(?:"+[d+l+"?",l,u,p,s].join("|")+")",y=RegExp(c+"(?="+c+")|"+x+f,"g");return xle=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},xle})();return yle=function(r){return n(r)?i(r):e(r)},yle}function Acn(){if(LLe)return wle;LLe=1;var e=(DLe||(DLe=1,ILe=function(r){return r.split("")}),ILe),n=Y8e(),i=(function(){if(TLe)return ble;TLe=1;var r="\\ud800-\\udfff",s="["+r+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\\ud83c[\\udffb-\\udfff]",d="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+l+"|"+c+")?",g="[\\ufe0e\\ufe0f]?",f=g+h+"(?:\\u200d(?:"+[d,u,p].join("|")+")"+g+h+")*",x="(?:"+[d+l+"?",l,u,p,s].join("|")+")",y=RegExp(c+"(?="+c+")|"+x+f,"g");return ble=function(b){return b.match(y)||[]},ble})();return wle=function(r){return n(r)?i(r):e(r)},wle}function Scn(){if(BLe)return Cle;BLe=1;var e=(function(){if(vLe)return mle;vLe=1;var d=Math.floor;return mle=function(u,p){var h="";if(!u||p<1||p>9007199254740991)return h;do p%2&&(h+=u),(p=d(p/2))&&(u+=u);while(p);return h},mle})(),n=evt(),i=(function(){if(ALe)return gle;ALe=1;var d=U8e();return gle=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},gle})(),r=Y8e(),s=Avt(),l=Acn(),c=Math.ceil;return Cle=function(d,u){var p=(u=u===void 0?" ":n(u)).length;if(p<2)return p?e(u,d):u;var h=e(u,c(d/s(u)));return r(u)?i(l(h),0,d).join(""):h.slice(0,d)},Cle}(function(){if(MLe)return PLe;MLe=1;var e=Scn(),n=Avt(),i=Lee(),r=tvt();PLe=function(s,l,c){s=r(s);var d=(l=i(l))?n(s):0;return l&&d<l?e(l-d,c)+s:s}})();var aR=e=>e.type==="checkbox",vE=e=>e instanceof Date,vp=e=>e==null;const Svt=e=>typeof e=="object";var vd=e=>!vp(e)&&!Array.isArray(e)&&Svt(e)&&!vE(e),kvt=e=>vd(e)&&e.target?aR(e.target)?e.target.checked:e.target.value:e,jvt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),G8e=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Oh(e){let n;const i=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else{if(G8e&&(e instanceof Blob||e instanceof FileList)||!i&&!vd(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return vd(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Oh(e[r]);else n=e}return n}var eD=e=>Array.isArray(e)?e.filter(Boolean):[],cl=e=>e===void 0,ji=(e,n,i)=>{if(!n||!vd(e))return i;const r=eD(n.split(/[,[\].]+?/)).reduce(((s,l)=>vp(s)?s:s[l]),e);return cl(r)||r===e?cl(e[n])?i:e[n]:r};const $vt="blur",kcn="focusout",jcn="change",$cn="onBlur",Evt="onChange",Ivt="onSubmit",Ecn="onTouched",tD="all",Icn="max",Dcn="min",Tcn="maxLength",Lcn="minLength",OLe="pattern",FLe="required",Bcn="validate",Dvt=B.createContext(null),At=()=>B.useContext(Dvt),Dn=e=>{const{children:n,...i}=e;return B.createElement(Dvt.Provider,{value:i},n)};var Tvt=(e,n,i,r=!0)=>{const s={defaultValues:n._defaultValues};for(const l in e)Object.defineProperty(s,l,{get:()=>{const c=l;return n._proxyFormState[c]!==tD&&(n._proxyFormState[c]=!r||tD),i&&(i[c]=!0),e[c]}});return s},M0=e=>vd(e)&&!Object.keys(e).length,Lvt=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return M0(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||tD)))},W0=e=>Array.isArray(e)?e:[e],Bvt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||W0(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function Mee(e){const n=B.useRef(e);n.current=e,B.useEffect((()=>{const i=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var d5=e=>typeof e=="string",Pvt=(e,n,i,r,s)=>d5(e)?(r&&n.watch.add(e),ji(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),ji(i,l)))):(r&&(n.watchAll=!0),i);function Ka(e){const n=At(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,Mee({disabled:l,subject:i._subjects.values,next:h=>{Bvt(d.current,h.name,c)&&p(Oh(Pvt(d.current,i._names,h.values||i._formValues,!1,s)))}});const[u,p]=B.useState(i._getWatch(r,s));return B.useEffect((()=>i._removeUnmounted())),u}var q8e=e=>/^\w*$/.test(e),Mvt=e=>eD(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Bs(e,n,i){let r=-1;const s=q8e(n)?[n]:Mvt(n),l=s.length,c=l-1;for(;++r<l;){const d=s[r];let u=i;if(r!==c){const p=e[d];u=vd(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function Pcn(e){const n=At(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=jvt(r._names.array,i),c=Ka({control:r,name:i,defaultValue:ji(r._formValues,i,ji(r._defaultValues,i,e.defaultValue)),exact:!0}),d=(function(p){const h=At(),{control:g=h.control,disabled:f,name:x,exact:y}=p||{},[b,w]=B.useState(g._formState),C=B.useRef(!0),v=B.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=B.useRef(x);return S.current=x,Mee({disabled:f,next:k=>C.current&&Bvt(S.current,k.name,y)&&Lvt(k,v.current,g._updateFormState)&&w({...g._formState,...k}),subject:g._subjects.state}),B.useEffect((()=>(C.current=!0,v.current.isValid&&g._updateValid(!0),()=>{C.current=!1})),[g]),Tvt(b,g,v.current,!1)})({control:r,name:i}),u=B.useRef(r.register(i,{...e.rules,value:c}));return B.useEffect((()=>{const p=r._options.shouldUnregister||s,h=(g,f)=>{const x=ji(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Oh(ji(r._options.defaultValues,i));Bs(r._defaultValues,i,g),cl(ji(r._formValues,i))&&Bs(r._formValues,i,g)}return()=>{(l?p&&!r._state.action:p)?r.unregister(i):h(i,!1)}}),[i,r,l,s]),{field:{name:i,value:c,onChange:B.useCallback((p=>u.current.onChange({target:{value:kvt(p),name:i},type:jcn})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:ji(r._formValues,i),name:i},type:$vt})),[i,r]),ref:p=>{const h=ji(r._fields,i);h&&p&&(h._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:g=>p.setCustomValidity(g),reportValidity:()=>p.reportValidity()})}},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ji(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!ji(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!ji(d.touchedFields,i)},error:{enumerable:!0,get:()=>ji(d.errors,i)}})}}const Vi=e=>e.render(Pcn(e));var Mcn=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const dK=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=ji(e,r);if(s){const{_f:l,...c}=s;if(l&&n(l.name)){if(l.ref.focus){l.ref.focus();break}if(l.refs&&l.refs[0].focus){l.refs[0].focus();break}}else vd(c)&&dK(c,n)}}};var By=()=>{const e=typeof performance>"u"?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(n=>{const i=(16*Math.random()+e)%16|0;return(n=="x"?i:3&i|8).toString(16)}))},vle=(e,n,i={})=>i.shouldFocus||cl(i.shouldFocus)?i.focusName||`${e}.${cl(i.focusIndex)?n:i.focusIndex}.`:"",z5e=e=>({isOnSubmit:!e||e===Ivt,isOnBlur:e===$cn,isOnChange:e===Evt,isOnAll:e===tD,isOnTouch:e===Ecn}),N5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),Ovt=(e,n,i)=>{const r=eD(ji(e,i));return Bs(r,"root",n[i]),Bs(e,i,r),e},dI=e=>typeof e=="boolean",K8e=e=>e.type==="file",Vb=e=>typeof e=="function",uK=e=>{if(!G8e)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},jG=e=>d5(e),Z8e=e=>e.type==="radio",pK=e=>e instanceof RegExp;const RLe={value:!1,isValid:!1},zLe={value:!0,isValid:!0};var Fvt=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter((i=>i&&i.checked&&!i.disabled)).map((i=>i.value));return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!cl(e[0].attributes.value)?cl(e[0].value)||e[0].value===""?zLe:{value:e[0].value,isValid:!0}:zLe:RLe}return RLe};const NLe={isValid:!1,value:null};var Rvt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),NLe):NLe;function _Le(e,n,i="validate"){if(jG(e)||Array.isArray(e)&&e.every(jG)||dI(e)&&!e)return{type:i,message:jG(e)?e:"",ref:n}}var rk=e=>vd(e)&&!pK(e)?e:{value:e,message:""},_5e=async(e,n,i,r,s)=>{const{ref:l,refs:c,required:d,maxLength:u,minLength:p,min:h,max:g,pattern:f,validate:x,name:y,valueAsNumber:b,mount:w,disabled:C}=e._f,v=ji(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(dI(N)?"":N||""),S.reportValidity())},$={},j=Z8e(l),I=aR(l),E=j||I,D=(b||K8e(l))&&cl(l.value)&&cl(v)||uK(l)&&l.value===""||v===""||Array.isArray(v)&&!v.length,L=Mcn.bind(null,y,i,$),O=(N,_,z,T=Tcn,M=Lcn)=>{const F=N?_:z;$[y]={type:N?T:M,message:F,ref:l,...L(N?T:M,F)}};if(s?!Array.isArray(v)||!v.length:d&&(!E&&(D||vp(v))||dI(v)&&!v||I&&!Fvt(c).isValid||j&&!Rvt(c).isValid)){const{value:N,message:_}=jG(d)?{value:!!d,message:d}:rk(d);if(N&&($[y]={type:FLe,message:_,ref:S,...L(FLe,_)},!i))return k(_),$}if(!(D||vp(h)&&vp(g))){let N,_;const z=rk(g),T=rk(h);if(vp(v)||isNaN(v)){const M=l.valueAsDate||new Date(v),F=W=>new Date(new Date().toDateString()+" "+W),H=l.type=="time",V=l.type=="week";d5(z.value)&&v&&(N=H?F(v)>F(z.value):V?v>z.value:M>new Date(z.value)),d5(T.value)&&v&&(_=H?F(v)<F(T.value):V?v<T.value:M<new Date(T.value))}else{const M=l.valueAsNumber||v&&+v;vp(z.value)||(N=M>z.value),vp(T.value)||(_=M<T.value)}if((N||_)&&(O(!!N,z.message,T.message,Icn,Dcn),!i))return k($[y].message),$}if((u||p)&&!D&&(d5(v)||s&&Array.isArray(v))){const N=rk(u),_=rk(p),z=!vp(N.value)&&v.length>+N.value,T=!vp(_.value)&&v.length<+_.value;if((z||T)&&(O(z,N.message,_.message),!i))return k($[y].message),$}if(f&&!D&&d5(v)){const{value:N,message:_}=rk(f);if(pK(N)&&!v.match(N)&&($[y]={type:OLe,message:_,ref:l,...L(OLe,_)},!i))return k(_),$}if(x){if(Vb(x)){const N=_Le(await x(v,n),S);if(N&&($[y]={...N,...L(Bcn,N.message)},!i))return k(N.message),$}else if(vd(x)){let N={};for(const _ in x){if(!M0(N)&&!i)break;const z=_Le(await x[_](v,n),S,_);z&&(N={...z,...L(_,z.message)},k(z.message),i&&($[y]=N))}if(!M0(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function Ale(e,n){return[...e,...W0(n)]}var Sle=e=>Array.isArray(e)?e.map((()=>{})):void 0;function kle(e,n,i){return[...e.slice(0,n),...W0(i),...e.slice(n)]}var jle=(e,n,i)=>Array.isArray(e)?(cl(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function $le(e,n){return[...W0(n),...W0(e)]}var Ele=(e,n)=>cl(n)?[]:(function(i,r){let s=0;const l=[...i];for(const c of r)l.splice(c-s,1),s++;return eD(l).length?l:[]})(e,W0(n).sort(((i,r)=>i-r))),Ile=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Rd(e,n){const i=Array.isArray(n)?n:q8e(n)?[n]:Mvt(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=cl(c)?p++:c[d[p++]];return c})(e,i),s=i.length-1,l=i[s];return r&&delete r[l],s!==0&&(vd(r)&&M0(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!cl(c[d]))return!1;return!0})(r))&&Rd(e,i.slice(0,-1)),e}var VLe=(e,n,i)=>(e[n]=i,e);function vl(e){const n=At(),{control:i=n.control,name:r,keyName:s="id",shouldUnregister:l}=e,[c,d]=B.useState(i._getFieldArray(r)),u=B.useRef(i._getFieldArray(r).map(By)),p=B.useRef(c),h=B.useRef(r),g=B.useRef(!1);h.current=r,p.current=c,i._names.array.add(r),e.rules&&i.register(r,e.rules),Mee({next:({values:x,name:y})=>{if(y===h.current||!y){const b=ji(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(By))}},subject:i._subjects.array});const f=B.useCallback((x=>{g.current=!0,i._updateFieldArray(r,x)}),[i,r]);return B.useEffect((()=>{if(i._state.action=!1,N5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!z5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=ji(x.errors,r),b=ji(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Bs(i._formState.errors,r,y):Rd(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=ji(i._fields,r);x&&x._f&&_5e(x,i._formValues,i._options.criteriaMode===tD,i._options.shouldUseNativeValidation,!0).then((y=>!M0(y)&&i._subjects.state.next({errors:Ovt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&dK(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!ji(i._formValues,r)&&i._updateFieldArray(r),()=>{(i._options.shouldUnregister||l)&&i.unregister(r)})),[r,i,s,l]),{swap:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);Ile(b,x,y),Ile(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,Ile,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);jle(b,x,y),jle(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,jle,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=W0(Oh(x)),w=$le(i._getFieldArray(r),b);i._names.focus=vle(r,0,y),u.current=$le(u.current,b.map(By)),f(w),d(w),i._updateFieldArray(r,w,$le,{argA:Sle(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=W0(Oh(x)),w=Ale(i._getFieldArray(r),b);i._names.focus=vle(r,w.length-1,y),u.current=Ale(u.current,b.map(By)),f(w),d(w),i._updateFieldArray(r,w,Ale,{argA:Sle(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=Ele(i._getFieldArray(r),x);u.current=Ele(u.current,x),f(y),d(y),i._updateFieldArray(r,y,Ele,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=W0(Oh(y)),C=kle(i._getFieldArray(r),x,w);i._names.focus=vle(r,x,b),u.current=kle(u.current,x,w.map(By)),f(C),d(C),i._updateFieldArray(r,C,kle,{argA:x,argB:Sle(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Oh(y),w=VLe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,v)=>C&&v!==x?u.current[v]:By())),f(w),d([...w]),i._updateFieldArray(r,w,VLe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=W0(Oh(x));u.current=y.map(By),f([...y]),d([...y]),i._updateFieldArray(r,[...y],(b=>b),{},!0,!1)}),[f,r,i]),fields:B.useMemo((()=>c.map(((x,y)=>({...x,[s]:u.current[y]||By()})))),[c,s])}}function Dle(){let e=[];return{get observers(){return e},next:n=>{for(const i of e)i.next&&i.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter((i=>i!==n))}}),unsubscribe:()=>{e=[]}}}var hK=e=>vp(e)||!Svt(e);function xv(e,n){if(hK(e)||hK(n))return e===n;if(vE(e)&&vE(n))return e.getTime()===n.getTime();const i=Object.keys(e),r=Object.keys(n);if(i.length!==r.length)return!1;for(const s of i){const l=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const c=n[s];if(vE(l)&&vE(c)||vd(l)&&vd(c)||Array.isArray(l)&&Array.isArray(c)?!xv(l,c):l!==c)return!1}}return!0}var zvt=e=>e.type==="select-multiple",Tle=e=>uK(e)&&e.isConnected,Nvt=e=>{for(const n in e)if(Vb(e[n]))return!0;return!1};function mK(e,n={}){const i=Array.isArray(e);if(vd(e)||i)for(const r in e)Array.isArray(e[r])||vd(e[r])&&!Nvt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},mK(e[r],n[r])):vp(e[r])||(n[r]=!0);return n}function _vt(e,n,i){const r=Array.isArray(e);if(vd(e)||r)for(const s in e)Array.isArray(e[s])||vd(e[s])&&!Nvt(e[s])?cl(n)||hK(i[s])?i[s]=Array.isArray(e[s])?mK(e[s],[]):{...mK(e[s])}:_vt(e[s],vp(n)?{}:n[s],i[s]):i[s]=!xv(e[s],n[s]);return i}var Lle=(e,n)=>_vt(e,n,mK(n)),Vvt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>cl(e)?e:n?e===""?NaN:e&&+e:i&&d5(e)?new Date(e):r?r(e):e;function Ble(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return K8e(n)?n.files:Z8e(n)?Rvt(e.refs).value:zvt(n)?[...n.selectedOptions].map((({value:i})=>i)):aR(n)?Fvt(e.refs).value:Vvt(cl(n.value)?e.ref.value:n.value,e)}var cL=e=>cl(e)?e:pK(e)?e.source:vd(e)?pK(e.value)?e.value.source:e.value:e;function HLe(e,n,i){const r=ji(e,i);if(r||q8e(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=ji(n,l),d=ji(e,l);if(c&&!Array.isArray(c)&&i!==l)return{name:i};if(d&&d.type)return{name:l,error:d};s.pop()}return{name:i}}const Ocn={mode:Ivt,reValidateMode:Evt,shouldFocusError:!0};function Fcn(e={},n){let i,r={...Ocn,...e},s={submitCount:0,isDirty:!1,isLoading:Vb(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=(vd(r.defaultValues)||vd(r.values))&&Oh(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Oh(c),u={action:!1,mount:!1,watch:!1},p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h=0;const g={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Dle(),array:Dle(),state:Dle()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=z5e(r.mode),b=z5e(r.reValidateMode),w=r.criteriaMode===tD,C=async Y=>{if(g.isValid||Y){const q=r.resolver?M0((await j()).errors):await I(l,!0);q!==s.isValid&&f.state.next({isValid:q})}},v=Y=>g.isValidating&&f.state.next({isValidating:Y}),S=(Y,q,K,J)=>{const ee=ji(l,Y);if(ee){const te=ji(d,Y,cl(K)?ji(c,Y):K);cl(te)||J&&J.defaultChecked||q?Bs(d,Y,q?te:Ble(ee._f)):L(Y,te),u.mount&&C()}},k=(Y,q,K,J,ee)=>{let te=!1,ne=!1;const se={name:Y};if(!K||J){g.isDirty&&(ne=s.isDirty,s.isDirty=se.isDirty=E(),te=ne!==se.isDirty);const re=xv(ji(c,Y),q);ne=ji(s.dirtyFields,Y),re?Rd(s.dirtyFields,Y):Bs(s.dirtyFields,Y,!0),se.dirtyFields=s.dirtyFields,te=te||g.dirtyFields&&ne!==!re}if(K){const re=ji(s.touchedFields,Y);re||(Bs(s.touchedFields,Y,K),se.touchedFields=s.touchedFields,te=te||g.touchedFields&&re!==K)}return te&&ee&&f.state.next(se),te?se:{}},$=(Y,q,K,J)=>{const ee=ji(s.errors,Y),te=g.isValid&&dI(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>se=>{clearTimeout(h),h=setTimeout(ne,se)})((()=>((ne,se)=>{Bs(s.errors,ne,se),f.state.next({errors:s.errors})})(Y,K))),i(e.delayError)):(clearTimeout(h),i=null,K?Bs(s.errors,Y,K):Rd(s.errors,Y)),(K?!xv(ee,K):ee)||!M0(J)||te){const ne={...J,...te&&dI(q)?{isValid:q}:{},errors:s.errors,name:Y};s={...s,...ne},f.state.next(ne)}v(!1)},j=async Y=>r.resolver(d,r.context,((q,K,J,ee)=>{const te={};for(const ne of q){const se=ji(K,ne);se&&Bs(te,ne,se._f)}return{criteriaMode:J,names:[...q],fields:te,shouldUseNativeValidation:ee}})(Y||p.mount,l,r.criteriaMode,r.shouldUseNativeValidation)),I=async(Y,q,K={valid:!0})=>{for(const J in Y){const ee=Y[J];if(ee){const{_f:te,...ne}=ee;if(te){const se=p.array.has(te.name),re=await _5e(ee,d,w,r.shouldUseNativeValidation&&!q,se);if(re[te.name]&&(K.valid=!1,q))break;!q&&(ji(re,te.name)?se?Ovt(s.errors,re,te.name):Bs(s.errors,te.name,re[te.name]):Rd(s.errors,te.name))}ne&&await I(ne,q,K)}}return K.valid},E=(Y,q)=>(Y&&q&&Bs(d,Y,q),!xv(T(),c)),D=(Y,q,K)=>Pvt(Y,p,{...u.mount?d:cl(q)?c:d5(Y)?{[Y]:q}:q},K,q),L=(Y,q,K={})=>{const J=ji(l,Y);let ee=q;if(J){const te=J._f;te&&(!te.disabled&&Bs(d,Y,Vvt(q,te)),ee=uK(te.ref)&&vp(q)?"":q,zvt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?aR(te.ref)?te.refs.length>1?te.refs.forEach((ne=>(!ne.defaultChecked||!ne.disabled)&&(ne.checked=Array.isArray(ee)?!!ee.find((se=>se===ne.value)):ee===ne.value))):te.refs[0]&&(te.refs[0].checked=!!ee):te.refs.forEach((ne=>ne.checked=ne.value===ee)):K8e(te.ref)?te.ref.value="":(te.ref.value=ee,te.ref.type||f.values.next({name:Y,values:{...d}})))}(K.shouldDirty||K.shouldTouch)&&k(Y,ee,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&z(Y)},O=(Y,q,K)=>{for(const J in q){const ee=q[J],te=`${Y}.${J}`,ne=ji(l,te);!p.array.has(Y)&&hK(ee)&&(!ne||ne._f)||vE(ee)?L(te,ee,K):O(te,ee,K)}},N=(Y,q,K={})=>{const J=ji(l,Y),ee=p.array.has(Y),te=Oh(q);Bs(d,Y,te),ee?(f.array.next({name:Y,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:Y,dirtyFields:Lle(c,d),isDirty:E(Y,te)})):!J||J._f||vp(te)?L(Y,te,K):O(Y,te,K),N5e(Y,p)&&f.state.next({...s}),f.values.next({name:Y,values:{...d}}),!u.mount&&n()},_=async Y=>{const q=Y.target;let K=q.name,J=!0;const ee=ji(l,K);if(ee){let te,ne;const se=q.type?Ble(ee._f):kvt(Y),re=Y.type===$vt||Y.type===kcn,le=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(ee._f)&&!r.resolver&&!ji(s.errors,K)&&!ee._f.deps||((ie,ce,de,fe,he)=>!he.isOnAll&&(!de&&he.isOnTouch?!(ce||ie):(de?fe.isOnBlur:he.isOnBlur)?!ie:!(de?fe.isOnChange:he.isOnChange)||ie))(re,ji(s.touchedFields,K),s.isSubmitted,b,y),me=N5e(K,p,re);Bs(d,K,se),re?(ee._f.onBlur&&ee._f.onBlur(Y),i&&i(0)):ee._f.onChange&&ee._f.onChange(Y);const ue=k(K,se,re,!1),oe=!M0(ue)||me;if(!re&&f.values.next({name:K,type:Y.type,values:{...d}}),le)return g.isValid&&C(),oe&&f.state.next({name:K,...me?{}:ue});if(!re&&me&&f.state.next({...s}),v(!0),r.resolver){const{errors:ie}=await j([K]),ce=HLe(s.errors,l,K),de=HLe(ie,l,ce.name||K);te=de.error,K=de.name,ne=M0(ie)}else te=(await _5e(ee,d,w,r.shouldUseNativeValidation))[K],J=isNaN(se)||se===ji(d,K,se),J&&(te?ne=!1:g.isValid&&(ne=await I(l,!0)));J&&(ee._f.deps&&z(ee._f.deps),$(K,ne,te,ue))}},z=async(Y,q={})=>{let K,J;const ee=W0(Y);if(v(!0),r.resolver){const te=await(async ne=>{const{errors:se}=await j();if(ne)for(const re of ne){const le=ji(se,re);le?Bs(s.errors,re,le):Rd(s.errors,re)}else s.errors=se;return se})(cl(Y)?Y:ee);K=M0(te),J=Y?!ee.some((ne=>ji(te,ne))):K}else Y?(J=(await Promise.all(ee.map((async te=>{const ne=ji(l,te);return await I(ne&&ne._f?{[te]:ne}:ne)})))).every(Boolean),(J||s.isValid)&&C()):J=K=await I(l);return f.state.next({...!d5(Y)||g.isValid&&K!==s.isValid?{}:{name:Y},...r.resolver||!Y?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&dK(l,(te=>te&&ji(s.errors,te)),Y?ee:p.mount),J},T=Y=>{const q={...c,...u.mount?d:{}};return cl(Y)?q:d5(Y)?ji(q,Y):Y.map((K=>ji(q,K)))},M=(Y,q)=>({invalid:!!ji((q||s).errors,Y),isDirty:!!ji((q||s).dirtyFields,Y),isTouched:!!ji((q||s).touchedFields,Y),error:ji((q||s).errors,Y)}),F=(Y,q={})=>{for(const K of Y?W0(Y):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Rd(l,K),Rd(d,K)),!q.keepError&&Rd(s.errors,K),!q.keepDirty&&Rd(s.dirtyFields,K),!q.keepTouched&&Rd(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Rd(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(Y,q={})=>{let K=ji(l,Y);const J=dI(q.disabled);return Bs(l,Y,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:Y}},name:Y,mount:!0,...q}}),p.mount.add(Y),K?J&&Bs(d,Y,q.disabled?void 0:ji(d,Y,Ble(K._f))):S(Y,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:cL(q.min),max:cL(q.max),minLength:cL(q.minLength),maxLength:cL(q.maxLength),pattern:cL(q.pattern)}:{},name:Y,onChange:_,onBlur:_,ref:ee=>{if(ee){H(Y,q),K=ji(l,Y);const te=cl(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=(re=>Z8e(re)||aR(re))(te),se=K._f.refs||[];if(ne?se.find((re=>re===te)):te===K._f.ref)return;Bs(l,Y,{_f:{...K._f,...ne?{refs:[...se.filter(Tle),te,...Array.isArray(ji(c,Y))?[{}]:[]],ref:{type:te.type,name:Y}}:{ref:te}}}),S(Y,!1,void 0,te)}else K=ji(l,Y,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!jvt(p.array,Y)||!u.action)&&p.unMount.add(Y)}}},V=()=>r.shouldFocusError&&dK(l,(Y=>Y&&ji(s.errors,Y)),p.mount),W=(Y,q={})=>{const K=Y||c,J=Oh(K),ee=Y&&!M0(Y)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const te of p.mount)ji(s.dirtyFields,te)?Bs(ee,te,ji(d,te)):N(te,ji(ee,te));else{if(G8e&&cl(Y))for(const te of p.mount){const ne=ji(l,te);if(ne&&ne._f){const se=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(uK(se)){const re=se.closest("form");if(re){re.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Oh(c):{}:J,f.array.next({values:{...ee}}),f.values.next({values:{...ee}})}p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!u.mount&&n(),u.mount=!g.isValid||!!q.keepIsValid,u.watch=!!e.shouldUnregister,f.state.next({submitCount:q.keepSubmitCount?s.submitCount:0,isDirty:q.keepDirty?s.isDirty:!(!q.keepDefaultValues||xv(Y,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&Y?Lle(c,Y):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(Y,q)=>W(Vb(Y)?Y(d):Y,q);return{control:{register:H,unregister:F,getFieldState:M,_executeSchema:j,_getWatch:D,_getDirty:E,_updateValid:C,_removeUnmounted:()=>{for(const Y of p.unMount){const q=ji(l,Y);q&&(q._f.refs?q._f.refs.every((K=>!Tle(K))):!Tle(q._f.ref))&&F(Y)}p.unMount=new Set},_updateFieldArray:(Y,q=[],K,J,ee=!0,te=!0)=>{if(J&&K){if(u.action=!0,te&&Array.isArray(ji(l,Y))){const ne=K(ji(l,Y),J.argA,J.argB);ee&&Bs(l,Y,ne)}if(te&&Array.isArray(ji(s.errors,Y))){const ne=K(ji(s.errors,Y),J.argA,J.argB);ee&&Bs(s.errors,Y,ne),((se,re)=>{!eD(ji(se,re)).length&&Rd(se,re)})(s.errors,Y)}if(g.touchedFields&&te&&Array.isArray(ji(s.touchedFields,Y))){const ne=K(ji(s.touchedFields,Y),J.argA,J.argB);ee&&Bs(s.touchedFields,Y,ne)}g.dirtyFields&&(s.dirtyFields=Lle(c,d)),f.state.next({name:Y,isDirty:E(Y,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Bs(d,Y,q)},_getFieldArray:Y=>eD(ji(u.mount?d:c,Y,e.shouldUnregister?ji(c,Y,[]):[])),_reset:W,_resetDefaultValues:()=>Vb(r.defaultValues)&&r.defaultValues().then((Y=>{U(Y,r.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:Y=>{s={...s,...Y}},_subjects:f,_proxyFormState:g,get _fields(){return l},get _formValues(){return d},get _state(){return u},set _state(Y){u=Y},get _defaultValues(){return c},get _names(){return p},set _names(Y){p=Y},get _formState(){return s},set _formState(Y){s=Y},get _options(){return r},set _options(Y){r={...r,...Y}}},trigger:z,register:H,handleSubmit:(Y,q)=>async K=>{K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let J=Oh(d);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:te}=await j();s.errors=ee,J=te}else await I(l);Rd(s.errors,"root"),M0(s.errors)?(f.state.next({errors:{}}),await Y(J,K)):(q&&await q({...s.errors},K),V(),setTimeout(V)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:M0(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(Y,q)=>Vb(Y)?f.values.subscribe({next:K=>Y(D(void 0,q),K)}):D(Y,q,!0),setValue:N,getValues:T,reset:U,resetField:(Y,q={})=>{ji(l,Y)&&(cl(q.defaultValue)?N(Y,ji(c,Y)):(N(Y,q.defaultValue),Bs(c,Y,q.defaultValue)),q.keepTouched||Rd(s.touchedFields,Y),q.keepDirty||(Rd(s.dirtyFields,Y),s.isDirty=q.defaultValue?E(Y,ji(c,Y)):E()),q.keepError||(Rd(s.errors,Y),g.isValid&&C()),f.state.next({...s}))},clearErrors:Y=>{Y&&W0(Y).forEach((q=>Rd(s.errors,q))),f.state.next({errors:Y?s.errors:{}})},unregister:F,setError:(Y,q,K)=>{const J=(ji(l,Y,{_f:{}})._f||{}).ref;Bs(s.errors,Y,{...q,ref:J}),f.state.next({name:Y,errors:s.errors,isValid:!1}),K&&K.shouldFocus&&J&&J.focus&&J.focus()},setFocus:(Y,q={})=>{const K=ji(l,Y),J=K&&K._f;if(J){const ee=J.refs?J.refs[0]:J.ref;ee.focus&&(ee.focus(),q.shouldSelect&&ee.select())}},getFieldState:M}}function kn(e={}){const n=B.useRef(),[i,r]=B.useState({isDirty:!1,isValidating:!1,isLoading:Vb(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Vb(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...Fcn(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,Mee({subject:s._subjects.state,next:l=>{Lvt(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!xv(e.values,s._defaultValues)?s._reset(e.values,s._options.resetOptions):s._resetDefaultValues()}),[e.values,s]),B.useEffect((()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()})),n.current.formState=Tvt(i,s),n.current}let f5;f5=typeof window<"u"?window:typeof self<"u"?self:E5e;let V5e=null,H5e=null;const Ple=f5.clearTimeout,ULe=f5.setTimeout,Mle=f5.cancelAnimationFrame||f5.mozCancelAnimationFrame||f5.webkitCancelAnimationFrame,WLe=f5.requestAnimationFrame||f5.mozRequestAnimationFrame||f5.webkitRequestAnimationFrame;function Rcn(e){let n,i,r,s,l,c,d;const u=typeof document<"u"&&document.attachEvent;if(!u){c=function(y){const b=y.__resizeTriggers__,w=b.firstElementChild,C=b.lastElementChild,v=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,v.style.width=w.offsetWidth+1+"px",v.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},l=function(y){return y.offsetWidth!==y.__resizeLast__.width||y.offsetHeight!==y.__resizeLast__.height},d=function(y){if(y.target.className&&typeof y.target.className.indexOf=="function"&&y.target.className.indexOf("contract-trigger")<0&&y.target.className.indexOf("expand-trigger")<0)return;const b=this;c(this),this.__resizeRAF__&&V5e(this.__resizeRAF__),this.__resizeRAF__=H5e((function(){l(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach((function(w){w.call(b,y)})))}))};let p=!1,h="";r="animationstart";const g="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),x="";{const y=document.createElement("fakeelement");if(y.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b<g.length;b++)if(y.style[g[b]+"AnimationName"]!==void 0){x=g[b],h="-"+x.toLowerCase()+"-",r=f[b],p=!0;break}}}i="resizeanim",n="@"+h+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",s=h+"animation: 1ms "+i+"; "}return{addResizeListener:function(p,h){if(u)p.attachEvent("onresize",h);else{if(!p.__resizeTriggers__){const g=p.ownerDocument,f=f5.getComputedStyle(p);f&&f.position==="static"&&(p.style.position="relative"),(function(b){if(!b.getElementById("detectElementResize")){const w=(n||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=b.head||b.getElementsByTagName("head")[0],v=b.createElement("style");v.id="detectElementResize",v.type="text/css",e!=null&&v.setAttribute("nonce",e),v.styleSheet?v.styleSheet.cssText=w:v.appendChild(b.createTextNode(w)),C.appendChild(v)}})(g),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const x=g.createElement("div");x.className="expand-trigger",x.appendChild(g.createElement("div"));const y=g.createElement("div");y.className="contract-trigger",p.__resizeTriggers__.appendChild(x),p.__resizeTriggers__.appendChild(y),p.appendChild(p.__resizeTriggers__),c(p),p.addEventListener("scroll",d,!0),r&&(p.__resizeTriggers__.__animationListener__=function(b){b.animationName===i&&c(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(h)}},removeResizeListener:function(p,h){if(u)p.detachEvent("onresize",h);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(h),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",d,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}Mle==null||WLe==null?(V5e=Ple,H5e=function(e){return ULe(e,20)}):(V5e=function([e,n]){Mle(e),Ple(n)},H5e=function(e){const n=WLe((function(){Ple(i),e()})),i=ULe((function(){Mle(n),e()}),20);return[n,i]});let Do=class extends m.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:i,onResize:r}=this.props;if(this._parentNode){const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(s.paddingLeft||"0"),c=parseFloat(s.paddingRight||"0"),d=parseFloat(s.paddingTop||"0"),u=parseFloat(s.paddingBottom||"0"),p=this._parentNode.getBoundingClientRect(),h=p.height-d-u,g=p.width-l-c;if(!n&&this.state.height!==h||!i&&this.state.width!==g){this.setState({height:h,width:g});const f=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof r=="function"&&r({height:h,width:g,get scaledHeight(){return f(),h},get scaledWidth(){return f(),g}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const i=n.ownerDocument.defaultView.ResizeObserver;i!=null?(this._resizeObserver=new i((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(n)):(this._detectElementResize=Rcn(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:r=!1,disableWidth:s=!1,doNotBailOutOnEmptyChildren:l=!1,nonce:c,onResize:d,style:u={},tagName:p="div",...h}=this.props,{height:g,width:f}=this.state,x={overflow:"visible"},y={};let b=!1;return r||(g===0&&(b=!0),x.height=0,y.height=g,y.scaledHeight=g),s||(f===0&&(b=!0),x.width=0,y.width=f,y.scaledWidth=f),l&&(b=!1),m.createElement(p,{ref:this._setRef,style:{...x,...u},...h},!b&&e(y))}};function J0(e){return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},J0(e)}function U5e(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,r=Array(n);i<n;i++)r[i]=e[i];return r}function J8e(e,n){if(e){if(typeof e=="string")return U5e(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?U5e(e,n):void 0}}function QLe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=J8e(e))||n){i&&(e=i);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,c=!0,d=!1;return{s:function(){i=i.call(e)},n:function(){var u=i.next();return c=u.done,u},e:function(u){d=!0,l=u},f:function(){try{c||i.return==null||i.return()}finally{if(d)throw l}}}}function Di(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gK(e,n){return gK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},gK(e,n)}function ja(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&gK(e,n)}function fK(e){return fK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fK(e)}function Hvt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Hvt=function(){return!!e})()}function $a(e){var n=Hvt();return function(){var i,r=fK(e);if(n){var s=fK(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(J0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Di(l)})(this,i)}}function ca(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Uvt(e){var n=(function(i,r){if(J0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(J0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return J0(n)=="symbol"?n:n+""}function YLe(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uvt(r.key),r)}}function da(e,n,i){return n&&YLe(e.prototype,n),i&&YLe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ai(e,n,i){return(n=Uvt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function GLe(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),i.push.apply(i,r)}return i}function yo(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?GLe(Object(i),!0).forEach((function(r){Ai(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):GLe(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}function qd(e,n){return(function(i){if(Array.isArray(i))return i})(e)||(function(i,r){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var l,c,d,u,p=[],h=!0,g=!1;try{if(d=(s=s.call(i)).next,r===0){if(Object(s)!==s)return;h=!1}else for(;!(h=(l=d.call(s)).done)&&(p.push(l.value),p.length!==r);h=!0);}catch(f){g=!0,c=f}finally{try{if(!h&&s.return!=null&&(u=s.return(),Object(u)!==u))return}finally{if(g)throw c}}return p}})(e,n)||J8e(e,n)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
5
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function xK(e,n){if(e==null)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)!==-1)continue;i[r]=e[r]}return i}function y3(e,n){if(e==null)return{};var i,r,s=xK(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)i=l[r],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ko.apply(null,arguments)}function uI(e){return(function(n){if(Array.isArray(n))return U5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||J8e(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -10498,7 +10498,7 @@ To reactivate your account, please settle the outstanding balance. Contact suppo
|
|
|
10498
10498
|
padding-top: ${e=>Xh.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
10499
10499
|
`,Nhi=a.div``,_hi=a((e=>m.createElement("svg",{width:598,height:361,viewBox:"0 0 598 361",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M3 42V10C3 5.58172 6.58172 2 11 2H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 42V10C595 5.58172 591.418 2 587 2H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M3 319V351C3 355.418 6.58172 359 11 359H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 319V351C595 355.418 591.418 359 587 359H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M160 164.999C160 163.344 161.05 162 162.344 162L232.656 162C233.95 162 235 163.344 235 164.999C235 166.655 233.95 167.999 232.656 167.999L162.344 167.999C161.05 167.999 160 166.655 160 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M337.544 164.999C337.544 163.344 338.944 162 340.669 162L434.419 162C436.144 162 437.544 163.344 437.544 164.999C437.544 166.655 436.144 167.999 434.419 167.999L340.669 167.999C338.944 167.999 337.544 166.655 337.544 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M261.544 165C261.544 163.344 262.594 162 263.888 162L309.2 162C310.494 162 311.544 163.344 311.544 165C311.544 166.656 310.494 168 309.2 168L263.888 168C262.594 168 261.544 166.656 261.544 165Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 202C138 200.344 140.924 199 144.527 199L453.473 199C457.076 199 460 200.344 460 202C460 203.656 457.076 205 453.473 205L144.527 205C140.924 205 138 203.656 138 202Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 276C138 274.344 140.924 273 144.527 273L453.473 273C457.076 273 460 274.344 460 276C460 277.656 457.076 279 453.473 279L144.527 279C140.924 279 138 277.656 138 276Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M207 239C207 237.344 209.29 236 212.111 236L385.889 236C388.71 236 391 237.344 391 239C391 240.656 388.71 242 385.889 242L212.111 242C209.29 242 207 240.656 207 239Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M3 113C234.19 51.6667 363.81 51.6667 595 113",stroke:"#FAFAFA",strokeWidth:5,strokeLinecap:"round"}))))`
|
|
10500
10500
|
transform: scale(1, 0.9);
|
|
10501
|
-
`,Vhi=a(Ns)``,dWe="application/pdf",DMt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],Hhi={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function Uhi(e,n,i){const r=e.getViewport({scale:n}),s=document.createElement("canvas");s.width=Math.floor(r.width),s.height=Math.floor(r.height);const l=s.getContext("2d");if(l==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:l,viewport:r}).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)}))})(s,i)).arrayBuffer()}async function Whi(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===dWe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([Cd((()=>import("./pdf-lib-
|
|
10501
|
+
`,Vhi=a(Ns)``,dWe="application/pdf",DMt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],Hhi={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function Uhi(e,n,i){const r=e.getViewport({scale:n}),s=document.createElement("canvas");s.width=Math.floor(r.width),s.height=Math.floor(r.height);const l=s.getContext("2d");if(l==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:l,viewport:r}).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)}))})(s,i)).arrayBuffer()}async function Whi(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===dWe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([Cd((()=>import("./pdf-lib-BK2JzciQ.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),Cd((()=>import("./pdf-BwuxCG-0.js").then((b=>b.i))),__vite__mapDeps([0,1,2])).then((b=>b.pdfjs))]),p=await l.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,g=h.numPages,f=await d.create();for(let b=1;b<=g;b++){const w=await h.getPage(b),C=await Uhi(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),S=v.scale(1);f.addPage([S.width,S.height]).drawImage(v,{x:0,y:0,width:S.width,height:S.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:dWe,lastModified:l.lastModified})})(i,n);return s.size<i.size?{blob:s,name:s.name}:{blob:e,name:n}}const r=await(async(s,l)=>{if(DMt.includes(s.type)===!1)return s;const c=await ku(s,Hhi),d=c.type.split("/")[1],u=`${l.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:s.lastModified,type:c.type})})(i,n);return{blob:r,name:r.name}}const Qhi=({fileType:e="file",fileRef:n,name:i,value:r="",multiple:s=!1,acceptableTypes:l,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:i,value:r,size:1e3,"data-testid":Q("input-file-element-mobile",i),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:`${(l??"image/jpg, image/jpeg").toString()}`,multiple:s,capture:!0}),Yz=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=Zwe(iLt),[c]=Xr("MoneyTransferSuccess");return B.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(Rs,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},UCe=e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));ICt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${ECt}/pdf.worker.mjs`;const{common:uWe}=ae.getLocalizedStrings(),pWe=(e,n,i)=>e.variant==="deleted"?"deleted":e.variant==="excluded"?"excluded":n!=null&&e.statementTransactionId===n||i!=null&&e.statementTransactionId===i?"hovered":e.variant??"default",hWe=(e,n,i)=>{const r=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const s of r){if(s.dataset.citationVariant==="excluded")continue;const l=s.getBoundingClientRect();if(n>=l.left&&n<=l.right&&i>=l.top&&i<=l.bottom)return s.dataset.statementTransactionId}},mWe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,Yhi=(e,n,i="smooth")=>{const r=n??(d=>{let u=d.parentElement;for(;u!=null;){const{overflowY:p}=window.getComputedStyle(u);if((p==="auto"||p==="scroll")&&u.scrollHeight>u.clientHeight)return u;u=u.parentElement}return null})(e);if(r==null)return void e.scrollIntoView({behavior:i,block:"center"});const s=e.getBoundingClientRect(),l=r.getBoundingClientRect(),c=r.scrollTop+(s.top-l.top)-(r.clientHeight-s.height)/2;r.scrollTo({top:Math.max(0,c),behavior:i})};function gWe(e,n,i){const{minX:r,maxX:s,minY:l,maxY:c}=(function(d){const u=d.map((h=>h.x)),p=d.map((h=>h.y));return{maxX:Math.max(...u),maxY:Math.max(...p),minX:Math.min(...u),minY:Math.min(...p)}})(e);return{height:(c-l)/i*100,left:r/n*100,top:l/i*100,width:(s-r)/n*100}}function kR(e){const[n,i]=m.useState(0),[r,s]=m.useState(void 0),[l,c]=m.useState(null),[d,u]=m.useState(void 0),p=ge(),h=m.useRef(null),g=m.useRef(null),f=m.useRef(void 0),x=e.highlightedCitations!=null&&e.highlightedCitations.length>0;m.useLayoutEffect((()=>{if(e.isFullScreen)return void s(void 0);const $=g.current;if($==null)return;const j=()=>{const E=Math.floor($.clientWidth);E>0&&s((D=>D===E?D:E))};j();const I=new ResizeObserver(j);return I.observe($),()=>{I.disconnect()}}),[e.isFullScreen,e.fileUrl]);const y=$=>{f.current!==$&&(f.current=$,u($),e.onCitationHover?.($))},b=$=>{x===!0&&y(hWe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(hWe($.currentTarget,$.clientX,$.clientY))},v=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=mWe(e.highlightedCitations,e.selectedStatementTransactionId);if($==null)return;const j=g.current?.querySelector(`[data-testid="pdf-page-${$}"]`);if(j!=null){const I=g.current,E=I!=null&&I.scrollHeight>I.clientHeight?I:null,D=(e.selectedStatementTransactionId!=null?j.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??j;if(((L,O)=>{const N=L.getBoundingClientRect(),_=O!=null?O.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return N.bottom>_.top&&N.top<_.bottom&&N.right>_.left&&N.left<_.right})(D,E))return;Yhi(D,E)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;v();const $=requestAnimationFrame(v),j=window.setTimeout(v,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,v]),m.useEffect((()=>{c(null),i(0)}),[e.fileUrl]);const S=$=>{if(!e.highlightedCitations)return null;const j=e.highlightedCitations.filter((I=>I.page===$));return j.length===0?null:t.jsx(fWe,{children:j.flatMap(((I,E)=>{const D=gWe(I.polygon,I.pageWidth,I.pageHeight),L=pWe(I,e.selectedStatementTransactionId,d);return t.jsx(xWe,{"data-citation-variant":L,"data-statement-transaction-id":I.statementTransactionId,$variant:L,style:{height:`${D.height}%`,left:`${D.left}%`,top:`${D.top}%`,width:`${D.width}%`}},`${E}`)}))})},k=()=>{e.setShowFullScreenView(!0)};return t.jsxs(t.Fragment,{children:[t.jsx(Np,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:rA,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(Ghi,{maxHeight:e.maxHeight??!1,$allowTextSelection:x,"data-statement-pdf-surface":"",onClick:()=>{x||k()},onDoubleClick:()=>{x&&k()},windowSize:p,"data-testid":Q("attachment-container",e.pdfTitle),children:t.jsxs(qhi,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(Khi,{children:[t.jsx(Zhi,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(Jhi,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(He,{enterDelay:600,display:"flex",title:uWe.texts.replace,placement:"top-end",children:t.jsx(Xhi,{"data-testid":Q("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(t0i,{"data-testid":e.deleteAttachmentDataTestId!=null?`${e.deleteAttachmentDataTestId}-mobile`:Q("delete-attachment-mobile",e.pdfTitle),onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()}}):t.jsx(He,{enterDelay:600,display:"flex",title:uWe.delete,placement:"top",children:t.jsx(e0i,{onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??Q("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const $=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some((j=>$.includes(j)))})()?t.jsx(a0i,{children:t.jsxs(s0i,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(l0i,{src:e.fileUrl,alt:e.pdfTitle,onLoad:$=>{const j=$.currentTarget;c({width:j.naturalWidth,height:j.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||l==null)return null;const $=e.highlightedCitations.filter((j=>j.page===1));return $.length===0?null:t.jsx(fWe,{children:$.flatMap(((j,I)=>{const E=gWe(j.polygon,j.pageWidth,j.pageHeight),D=pWe(j,e.selectedStatementTransactionId,d);return t.jsx(xWe,{"data-citation-variant":D,"data-statement-transaction-id":j.statementTransactionId,$variant:D,style:{height:`${E.height}%`,left:`${E.left}%`,top:`${E.top}%`,width:`${E.width}%`}},`${I}`)}))})})()]})}):t.jsxs(P5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(o0i,{children:t.jsx(Kn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(ci,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(n0i,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(r0i,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(M5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?mWe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&v()}},`page_${j+1}`),S(j+1)]}),n!=j+1?t.jsx(i0i,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const Ghi=a.div`
|
|
10502
10502
|
max-height: ${e=>e.maxHeight===!0?"650px":"auto"};
|
|
10503
10503
|
display: flex;
|
|
10504
10504
|
flex-direction: column;
|
|
@@ -23823,7 +23823,7 @@ to {
|
|
|
23823
23823
|
${({isMenuVisible:e})=>e===!1?Ee`
|
|
23824
23824
|
display: none;
|
|
23825
23825
|
`:null};
|
|
23826
|
-
`,_ve=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),zKe=m.lazy((()=>Cd((()=>import("./index-
|
|
23826
|
+
`,_ve=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),zKe=m.lazy((()=>Cd((()=>import("./index-CAZwNpzy.js")),__vite__mapDeps([3,0,1,2]))));function Vve({src:e,autoPlay:n=!0,config:i,controls:r=!0,height:s="100%",isModalOpen:l,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:g="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=ge(),[w,C]=m.useState(!1);m.useEffect((()=>{l===!0&&n?C(!0):l===!1&&C(!1)}),[l,n]);const v={};i?.youtube&&(v.youtube=i.youtube);const S=()=>{C(!1),f?.(),l!=null&&x?.()},k=()=>{C(!0),y?.()};return l!=null?l?ka.createPortal(t.jsx(wHi,{windowSize:b,role:"presentation",children:t.jsx(ci,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(CHi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(vHi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(bHi,{src:h,alt:"Video thumbnail"}),t.jsx(xHi,{onClick:()=>{C(!0),y?.()},children:t.jsx(yHi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(zKe,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:S,onPlay:k,config:v})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(zKe,{src:e,playing:w,controls:r,muted:d,loop:c,width:g,height:s,style:p,light:!(!u||w)&&(h??!0),onEnded:S,onPlay:k,config:v})})}const fHi=pi`
|
|
23827
23827
|
0% {
|
|
23828
23828
|
transform: rotate(0deg);
|
|
23829
23829
|
}
|
|
@@ -86492,7 +86492,7 @@ ${xM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
86492
86492
|
color: ${P.tagWarningColorLight};
|
|
86493
86493
|
`,Cas=a(xt)`
|
|
86494
86494
|
color: ${P.tagWarningColorLight};
|
|
86495
|
-
`,{expenseAutomation:{accountRecon:{statementProcessing:j0}},common:QY}=ae.getLocalizedStrings(),Bx="statement-processing-page";function vas(){const[e]=Xr("AiStar");return t.jsx($g,{$slotSize:o.sp4,children:e!=null?t.jsx(pT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(Das,{})})}function Aas({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=j0.steps.length,g=Math.max(h-1,0),f=r!=null&&r.accounts.length>0,x=r?.isConfirmLoading===!0,y=r?.isConfirmCompleted===!0,[b,w]=m.useState(n??0),[C,v]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((oe,ie)=>{v(oe),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[O,N]=m.useState(i!=null),[_,z]=m.useState(null),[T,M]=m.useState(0),F=m.useRef(null),H=m.useRef(!1),V=m.useRef(null),W=m.useRef(!1);m.useEffect((()=>{if(i!=null)return L(i),void N(!0);if(E==="")return L(void 0),void N(!1);let oe=!1;return N(!1),(async function(ie){if(ie==null)return;if(Ftn(ie))return 1;if(!(function(de){return de.contentType?.toLowerCase()==="application/pdf"||de.extension?.toLowerCase()===".pdf"})(ie))return;const ce=ie.signedUrl.trim();if(ce!=="")try{const de=await fetch(ce);return de.ok?(await(await Cd((()=>import("./pdf-
|
|
86495
|
+
`,{expenseAutomation:{accountRecon:{statementProcessing:j0}},common:QY}=ae.getLocalizedStrings(),Bx="statement-processing-page";function vas(){const[e]=Xr("AiStar");return t.jsx($g,{$slotSize:o.sp4,children:e!=null?t.jsx(pT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(Das,{})})}function Aas({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=j0.steps.length,g=Math.max(h-1,0),f=r!=null&&r.accounts.length>0,x=r?.isConfirmLoading===!0,y=r?.isConfirmCompleted===!0,[b,w]=m.useState(n??0),[C,v]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((oe,ie)=>{v(oe),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[O,N]=m.useState(i!=null),[_,z]=m.useState(null),[T,M]=m.useState(0),F=m.useRef(null),H=m.useRef(!1),V=m.useRef(null),W=m.useRef(!1);m.useEffect((()=>{if(i!=null)return L(i),void N(!0);if(E==="")return L(void 0),void N(!1);let oe=!1;return N(!1),(async function(ie){if(ie==null)return;if(Ftn(ie))return 1;if(!(function(de){return de.contentType?.toLowerCase()==="application/pdf"||de.extension?.toLowerCase()===".pdf"})(ie))return;const ce=ie.signedUrl.trim();if(ce!=="")try{const de=await fetch(ce);return de.ok?(await(await Cd((()=>import("./pdf-BwuxCG-0.js").then((fe=>fe.i))),__vite__mapDeps([0,1,2])).then((fe=>fe.pdfjs))).getDocument({data:new Uint8Array(await de.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:E,contentType:l?.contentType,extension:l?.extension}).then((ie=>{oe||(L(ie),N(!0))})),()=>{oe=!0}}),[i,E,l?.contentType,l?.extension]),m.useEffect((()=>{z(null)}),[E]),m.useEffect((()=>{!O||_!=null||z((function(oe){return oe==null||oe<=0?125:oe<=2?65:oe<=4?120:oe<=8?160:oe<=12?190:200})(D))}),[O,_,D]);const U=_??125,Y=L9e(h),q=1e3*U,K=Math.floor(q/Math.max(Y,1));m.useEffect((()=>{if(!e)return F.current=null,H.current=!1,M(0),void z(null);if(!H.current){const ce=(function(de,fe,he){const ye=L9e(he);return fe*(Math.max(0,Math.min(de,he)-1)/ye)})(Math.max(n??0,b,1),U,h);F.current=Date.now()-1e3*ce,H.current=!0}const oe=()=>{F.current!=null&&M(Math.floor((Date.now()-F.current)/1e3))};oe();const ie=setInterval(oe,5e3);return()=>clearInterval(ie)}),[e,U,h,n,b]);const J=_!=null?Math.max(0,_-T):0,ee=_!=null?(function(oe,ie,ce){return ie?null:oe<=0?{label:ce.takingLongerThanExpected,showClock:!1}:oe<60?{label:ce.timeRemainingSeconds(oe),showClock:!0}:{label:ce.timeRemainingMinutes(Math.ceil(oe/60)),showClock:!0}})(J,b>=h,j0):null;m.useEffect((()=>{p?.(b)}),[b,p]),m.useEffect((()=>{n!=null&&n>b&&w(n)}),[n,b]),m.useEffect((()=>{e&&b===0&&w(1)}),[e,b]);const te=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const oe=setTimeout((()=>{w((ie=>ie+1))}),te?300:K);return()=>clearTimeout(oe)}),[b,s,f,g,te,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const oe=setTimeout(u,1e3);return()=>clearTimeout(oe)}),[b,f,u,h]);const ne=f===!0&&b>=g,se=m.useCallback((()=>{const oe=F.current??Date.now();d({completedSteps:b,startedAtMs:oe,totalDurationSeconds:U,accountMappings:ne===!0?C:void 0})}),[b,ne,C,d,U]);m.useEffect((()=>{if(ne!==!0)return void(W.current=!1);if(W.current===!0)return;W.current=!0;const oe=requestAnimationFrame((()=>{const ie=V.current;ie?.scrollTo({top:ie.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(oe)}),[ne]),m.useEffect((()=>{if(h===0)return void I(0);const oe=b/h*100;if(b===0)return void I(0);if(b>=h)return void I(100);if(s!==!0&&f!==!0&&b>=g||f===!0&&b>=g)return void I(oe);const ie=(b+1)/h*100,ce=te?300:K,de=performance.now();let fe=0;const he=ye=>{const ve=Math.min((ye-de)/ce,1);I(oe+(ie-oe)*ve),ve<1&&(fe=requestAnimationFrame(he))};return fe=requestAnimationFrame(he),()=>cancelAnimationFrame(fe)}),[b,s,f,g,te,K,h]);const re=Math.min(100,Math.round(j)),le=b>=h?h-1:Math.min(b,j0.stepSubtitles.length-1),me=r?.accounts.length??0,ue=ne===!0&&me>0?r?.accountType==="bank"?j0.accountMapping.headerSubtitleAccounts(me):j0.accountMapping.headerSubtitle(me):j0.stepSubtitles[le];return t.jsxs(t.Fragment,{children:[t.jsxs(Sas,{ref:V,"data-testid":Q(Bx,"container"),children:[t.jsxs(jas,{"data-testid":Q(Bx,"header"),children:[t.jsxs($as,{children:[t.jsxs(Eas,{children:[t.jsxs(Ias,{children:[t.jsx(vas,{}),t.jsx(Tas,{children:j0.headerTitle})]}),ne===!0?t.jsxs(U6t,{"data-testid":Q(Bx,"action-needed"),children:[t.jsx(Mas,{}),t.jsx(Oas,{children:j0.actionNeeded})]}):ee!=null?t.jsxs(U6t,{"data-testid":Q(Bx,"time-remaining"),children:[ee.showClock?t.jsx(Bas,{}):null,t.jsx(Pas,{children:ee.label})]}):null]}),t.jsx(Las,{children:ue})]}),t.jsxs(Fas,{children:[t.jsxs(Ras,{children:[t.jsx(zas,{children:j0.stepProgressLabel(b,h)}),t.jsx(Nas,{children:`${re}%`})]}),t.jsx(_as,{children:t.jsx(Vas,{style:{width:`${j}%`}})})]})]}),t.jsx(kas,{"data-testid":Q(Bx,"steps"),children:j0.steps.map(((oe,ie)=>{const ce=ie+1,de=ie===j0.steps.length-1,fe=ne===!0&&y!==!0&&de===!0,he=f===!0&&y===!0&&de===!0&&b>=g,ye=fe!==!0&&he!==!0&&ce<=b,ve=he===!0||fe!==!0&&ce===b+1;return t.jsxs(Has,{"data-testid":Q(Bx,`step-${ce}`),children:[t.jsxs(Uas,{children:[t.jsx(Qas,{$isDone:ye,$isInProgress:ve,children:ce}),de?null:t.jsx(Was,{$isDone:ye})]}),t.jsx(Xas,{children:oe}),t.jsx(ess,{children:fe===!0?t.jsx(Kas,{"data-testid":Q(Bx,"action-required"),children:t.jsx(Zas,{children:QY.texts.actionRequired})}):ye?t.jsx(Yas,{}):ve?t.jsxs(Gas,{children:[t.jsx(Jas,{}),t.jsx(qas,{children:QY.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},ce)}))}),ne===!0&&r!=null?t.jsx(Xrs,{accounts:r.accounts,fileName:l?.fileName??"",ledgerAccounts:r.ledgerAccounts,accountType:r.accountType,initialMappings:r.initialMappings,statementOverrideWarningAccountIds:r.statementOverrideWarningAccountIds,unavailableLedgerAccountIds:r.unavailableLedgerAccountIds,onMappingsChange:$}):null]}),ne===!0&&r!=null?t.jsx(qn,{formId:Bx,showCancel:!0,cancelBtn:{label:j0.continueInBackground,onClick:se,style:{width:"195px"}},primaryBtn:{label:QY.confirm,isDisabled:S!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(qn,{formId:Bx,showCancel:!0,cancelBtn:{label:QY.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:j0.continueInBackground,onClick:se,variant:"secondary",style:{width:"195px"}}})]})}const Sas=a.div`
|
|
86496
86496
|
flex: 1;
|
|
86497
86497
|
display: flex;
|
|
86498
86498
|
flex-direction: column;
|
|
@@ -91719,7 +91719,7 @@ ${xM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
91719
91719
|
padding: ${o.sp3} ${o.sp0};
|
|
91720
91720
|
`,T8t=a(at)`
|
|
91721
91721
|
min-width: 140px;
|
|
91722
|
-
`,tR=pwt(dln()),s5s=["sandbox","production"],l5s=["development","staging","production"],c5s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],UI=()=>Nl==="DEV"||Nl==="QA"||Nl==="PUNE"||Nl==="SUNNYVALE"||Nl==="DELHI"||Nl==="MOHALI",Pke="https://zeni-webapp-dev.uc.r.appspot.com",Nl=(e=>ny(e,c5s))("DEV"),GCs=(e=>ny(e,s5s))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Nl)),L8t=(e=>ny(e,l5s))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Nl)),d5s=(e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"qa";case"NEXT":return"next";case"PROD":return"production";default:return"development"}})(Nl);function Fnn(e,n){return tR.AES.decrypt(e,n).toString(tR.enc.Utf8)}const Rnn="ZENI-WEB-APP-",Mke=Nl==="DEV"||Nl==="QA"?.2:.8,znn=Mke,Qs={sentryDsn:"",sentryTraceSamplingRate:Mke,sentryProfileSamplingRate:znn,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let z5,hz;function u5s(){return z5?.aiCfoMicroServiceBaseUrl!=null?`${z5.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function Nnn(e){Qs.sentryDsn=e.keys.SENTRY_DSN,Qs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):Mke,Qs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):znn,Qs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Qs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Qs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Qs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Qs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Qs.pusherCluster=e.keys.PUSHER_CLUSTER,Qs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Qs.appUrl=e.keys.WEB_ENDPOINT,Qs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Qs.cardVaultId=e.keys.UNIT_VAULT_ID,Qs.stripeKey=e.keys.STRIPE_KEY,Qs.qboRedirectionUrl=e.keys.QBO_URL,Qs.mixpanelUrl=e.keys.MIXPANEL_URL,Qs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,hz=e.externalEndPoints,z5=e.apiEndPoints,(function(n,i){const r=new Set,s=[...Object.values(n),...Object.values(i)];for(const l of s)if(typeof l=="string"&&l.length>0)try{r.add(new URL(l).origin)}catch{}for(const l of r){if(document.querySelector(`link[rel="preconnect"][href="${l}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=l,document.head.appendChild(c)}})(z5,hz)}async function B8t(){const e={environment:Nl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${Pke}/api/keys?query=${n}`);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(i){return console.error("Error fetching details:",i),null}}let P8t=!1;function CE(){P8t||(ig.init("63d3a2406505a5737a2b4debdb513f20",{api_host:hz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),P8t=!0)}const p5s=new Set(Array.from(Fi.EVENTS_WITHOUT_SUPER_PROPERTIES));let M8t=!1,O8t=!1;function Q9e(){if(M8t)return;M8t=!0,CE();const e=Fi.extractUtmParamsFromUrl();Object.keys(e).length>0&&ig.register(e),UI()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const h5s=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function m5s(){const e=(function(){return ig?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||h5s.has(i)));for(const i of n)ig.unregister(i);UI()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function F8t(){O8t||(O8t=!0,m5s())}class lI{identify(n,i){if(CE(),this.#t=n,n!=null&&i!=null&&(lI.#e==null||!Ean({userId:n,traits:i},lI.#e))){const{$email:r,...s}={...i};ig.identify(n),r&&r!=null&&ig.people.set_once({$email:r}),ig.people.set(s),lI.#e={userId:n,traits:i},UI()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(i)} `)}}identifyUserAndCompany(n,i,r,s,l){throw Error("Use identify in the web-app!!")}track(n,i){CE();const r=p5s.has(n);if(this.#t!=null||r){if(Q9e(),this.#t!=null){const s={distinct_id:this.#t,...i};ig.track(n,s)}else ig.track(n,i);if(F8t(),UI()){const s=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(i)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(i)}`;console.log(s)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,i){CE(),Q9e(),ig.track(n,i),F8t(),UI()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){CE(),ig.alias(n,i)}reset(){CE(),ig.identify(void 0),this.#t=void 0,lI.#e=void 0}static#e;#t}const Y9e=new lI,_nn=new Fi.Analytics(Y9e);_nn.trackWithoutUserId=Y9e.trackWithoutUserId.bind(Y9e);const U0=_nn,g5s="openAiCfoScope",G9e="openAiCfoScopeOnDashboard";function qCs(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[G9e]:!0,...r}})}function KCs(e){const n=Aee(e);if(n.createSessionAndSubmitState.fetchState==="In-Progress")return!0;const i=n.uiState?.currentChatSessionId;return i!=null&&n.responseStateByChatSessionId?.[i]?.answer?.fetchState==="In-Progress"}function Oke(e,n){const i=n!=null?e.find((d=>d.chatSession.chatSessionId===n)):void 0,r=i?.questionAnswers??[],s=r[r.length-1],l=s?.responses.answer?.content?.summarizedTitle??"";return{currentChatSession:i?.chatSession,currentQuestionAnswer:s,currentQuestionAnswerSummary:l,currentChatSessionWithMessages:i,currentSessionQuestionAnswers:r}}function Vnn(e,n){return(e||n?.chatSessionSummary)??null}const Hnn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",lee="zeni-ai-cfo-upload-promo-storage-changed",Ir=new class{_isZeniUserCache;getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,e)}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,e)??!1)}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null||(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,e)??!0)}getSignedInUserTenant(e){return this.getSignedInUserTenants()?.find((n=>n.tenantEmailDomain===e))}getSignedInUserTenantWithId(e){return this.getSignedInUserTenants()?.find((n=>n.tenantId===e))}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e==null)return;const n=this.readEncryptedString(this.ZENI_ACTIVE_TENANT_DOMAIN,e);return n!=null?this.getSignedInUserTenants()?.find((i=>i.tenantEmailDomain===n)):void 0}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,e)??[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==n&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map((e=>window.localStorage.getItem(e)!=null)).reduce(((e,n)=>e&&n))}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_THEME]);this.ALL_IDs.filter((n=>!e.has(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n))).forEach((n=>window.localStorage.removeItem(n)))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){return this.readOtpToken(this.ZENI_OTP_TOKEN)}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(r))}getCardPolicyPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_CARD_POLICY_POPUP_SEEN),!1}return!1}saveCardPolicyPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_CARD_POLICY_POPUP_SEEN,JSON.stringify(r))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const i=JSON.parse(n);return i!==null&&typeof i=="object"&&i[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(lee)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const i=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(r)),window.dispatchEvent(new CustomEvent(lee))}savePayNowInfoTooltip(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),i))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_PAY_NOW_INFO_TOOLTIP,e)}saveZeniOtpTokenForCardHolder(e,n){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),i))}getZeniOtpTokenForCardHolder(e){return this.readOtpToken(`${this.ZENI_OTP_TOKEN}_${e}`)}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){return this.readEncryptedString(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){return this.readEncryptedString(this.ZENI_MAGIC_LINK_EMAIL,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}encrypt(e,n){return tR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=tR.AES.decrypt(e,n).toString(tR.enc.Utf8);return i===""?void 0:i}catch{return}}readEncryptedString(e,n){const i=window.localStorage.getItem(e);if(i==null)return;const r=this.decrypt(i,n);return r==null&&window.localStorage.removeItem(e),r}readEncryptedJSON(e,n){const i=this.readEncryptedString(e,n);if(i!=null)try{const r=JSON.parse(i);return r===null?void window.localStorage.removeItem(e):r}catch{return void window.localStorage.removeItem(e)}}getSignedInUserTenants(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,e)}readOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)return;const i=this.readEncryptedJSON(e,n);if(i!=null){if(i.expiry!=null)return{...i,expiry:xn(i.expiry.toString())};window.localStorage.removeItem(e)}}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach((e=>window.localStorage.removeItem(e))),Object.keys(window.localStorage).filter((e=>e.startsWith(`${this.ZENI_OTP_TOKEN}_`))).forEach((e=>window.localStorage.removeItem(e)))}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_CARD_POLICY_POPUP_SEEN="ZENI_CARD_POLICY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=Hnn;SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS];ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_CARD_POLICY_POPUP_SEEN,this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]},qD=(e,n)=>{const i=[...e??[]];return i.push(n),i},ZCs=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},JCs=({state:e})=>Ir.isSignedIn()===!0?tn.jsx(lon,{}):tn.jsx(fwt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),f5s=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function Unn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of f5s)delete n[i];return n}function x5s(){const e=Tp(),n=Mg(),i=pee(),{tenantEmailDomain:r}=xwt(),[s,l]=m.useState(!1),c=zr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?Fp(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=zr((v=>Aee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[G9e]!==!0)return;const S=v.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof v.aiCfoInitialSubmissionSource=="string"?v.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof v.aiCfoSuggestionIndex=="number"?v.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...Unn(v),[G9e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const v=p.current;if(v==null||r==null)return!1;p.current=null;const S=n.state,k=qD(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:v.question,aiCfoShouldSubmit:!0,...v.submissionSource!=null?{aiCfoInitialSubmissionSource:v.submissionSource}:{},...v.suggestionIndex!=null?{aiCfoSuggestionIndex:v.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Ut(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const v=qD(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:v,referrer:n.state?.referrer??"Navigation"}})}),[n.pathname,n.state,i,f,r]),b=m.useCallback((()=>{l(!1),y()}),[y]),w=m.useCallback((()=>{p.current=null,l(!1)}),[]),C=m.useCallback((()=>{d||c?.userRoleId==null?(l(!1),f()):e(pCt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return tn.jsx(mnn,{open:s,onClose:w,children:tn.jsxs(hnn,{children:[s&&!h?tn.jsx(Eve,{analytics:U0,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,tn.jsx(n7e,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const q9e=m.createContext(void 0);function Fke(){const e=m.useContext(q9e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Rke=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],zke=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],Wnn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],Qnn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],Ynn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],Gnn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],qnn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],Knn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],Znn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Jnn(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let i=1;i<n.length;i+=1)if(n[i]==="transaction")return!0;return!1}const Xnn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],ein=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],tin=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],y5s=[...Wnn,...Rke,...zke,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...Xnn,...ein,...tin,...Qnn,...Ynn,...Gnn,...qnn,...Knn,...Znn];function nin(){const{pathname:e}=Mg(),n=e??"";return y5s.some((i=>e8e(i,n)!=null))||Jnn(e)}function Vd(e){const{pathname:n}=Mg(),i=n??"";return e.some((r=>e8e(r,i)!=null))}const XCs=27.22,iin=m.createContext(null),oin={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function b5s({children:e}){const[n,i]=m.useState((()=>new Set([]))),r=n.size>0,s=m.useCallback((d=>{i((u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p}))}),[]),l=m.useCallback((d=>{i((u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p}))}),[]),c={isLoading:r,activeLoadingStates:n,setLoading:s,clearLoading:l,clearAllLoading:m.useCallback((()=>{i(new Set)}),[])};return tn.jsx(iin.Provider,{value:c,children:e})}function Nke(){const e=m.useContext(iin);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function w5s(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Man(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Lan(c);u.length!==0&&(e(Ban(u)),e(Pan({sourceChatSessionId:n})),n!=null&&e(hje({chatSessionId:n,id:wje(),kind:"creating_cards",createdAt:xn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Tan(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Dna(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const v=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return v==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...Ina(v)}}const y=xX(p.vendorPolicy,"allow"),b=xX(p.vendorPolicy,"block"),w=yX(p.categoryPolicy,"allow"),C=yX(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((v=>v.isChecked)).map((v=>v.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:bX(p.limits,PSe),spendLimits:{transaction:bX(p.limits,BSe)}}})({values:c});e(Dan({templates:[u],sourceChatSessionId:n})),n!=null&&e(hje({chatSessionId:n,id:wje(),kind:"creating_policy",createdAt:xn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Ian(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(hCt())}:void 0}}const C5s=e=>Wan(e,!1),v5s=e=>Uan(e.name,!1);function A5s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Oan(r),l=Fan(r),c=Ran(r),{creditAccount:d}=zan(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(C5s),cardPolicyVendorSearchOptions:l.map(v5s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:Han(r),cardPolicyUploadedFileName:Van(r),cardPolicyFormDraft:_an(e.createCardPolicyState),cardsCreationFormDraft:Nan(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const S5s=e=>{const n=ae.currencyFormatter(0);return i=>{const r=Yan(e.chargeCardState,i);if(r==null)return;const s=Gan(e.userState,r.cardHolderUserId),l=((u,p,h)=>{const g=u!=null&&u.length>0,f=p!=null&&p.length>0;return g&&f?`${u} ${p}`:g?u:f?p:h??""})(s?.firstName,s?.lastName,s?.email),c=r.limit?.amount,d=typeof c=="number"&&Number.isFinite(c)?n.format(c):"";return{cardName:r.cardName,ownerName:l,recommendedLimitFormatted:d,owner:s}}},k5s=e=>n=>{const i=Qan(e.cardPolicyState,n);if(i==null)return;const r=i.cardsCount>0?i.cardsCount:i.appliedCards.length,s=i.allowedEntity.merchantNames.length+i.blockedEntity.merchantNames.length,l=i.allowedEntity.categoryCodes.length+i.blockedEntity.categoryCodes.length;return{name:i.name,description:i.description,cardsCount:r,vendorRestrictionsCount:s,categoryRestrictionsCount:l}};function j5s(){const{useFeatureGate:e}=gs(),{isFeatureEnabled:n}=e(yl.isAiCfoAnswerExportEnabled);return n&&z5?.aiCfoMicroServiceBaseUrl!=null?`${z5.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function $5s({isHydrationEnabled:e=!0}={}){const n=Tp(),{useFeatureGate:i}=gs(),{isFeatureEnabled:r}=i(yl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(yl.isCardPolicyEnabled),l=zr((x=>Fp(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=zr((x=>{const y=Fp(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),iK),u=m.useRef(!1),p=m.useRef(!1);m.useEffect((()=>{u.current=!1,p.current=!1}),[l]),m.useEffect((()=>{e&&c&&(u.current||(u.current=!0,n(qan()),n(mje()),n(Kan("cardHolderCandidate",!1)),n(Zan(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(Jan())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(hCt())}),[n,l]);const h=m.useMemo((()=>cln((x=>{n(mje(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=zr((x=>Xan(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),iK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const rin=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],ain=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],E5s=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],I5s=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],D5s=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],T5s=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],L5s=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],sin=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],lin=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],B5s=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function _ke(e){const n=Vh(e),i=n.indexOf("review");if(i<2||n[i-1]!=="month_end_close_checks")return null;if(i===n.length-1)return"overview";const r=n[i+1];return r==null?"overview":B5s.includes(r)?r:null}const P5s=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),M5s=new Set(["setup","verification","promo","approval-rules"]);function Vh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Vke(e){const n=Vh(e),i=n[1]==="vendors"?1:-1;if(i<0||n.length<i+2)return;const r=n[i+1];if(r==="summary")return"vendors";if(r==="opex")return"opex_by_vendor";if(r==="schedules"){const s=n[i+2];return s==="prepaid_expenses"?"prepaid_expenses":s==="fixed_assets"?"fixed_assets":s==="accrued_expenses"?"accrued_expenses":void 0}return r==="filing_1099"?"form_1099":void 0}function cin(e,n,i){const r=Vh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function din(e,n,i){return cin(e,n,(r=>!i.has(r)))}function uin(e){return din(e,"bills",P5s)}function pin(e){return din(e,"reimbursements",M5s)}function Hke(e){return cin(e,"tasks",(n=>n==="group"))}const O5s=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),F5s=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Uke(e){const n=Vh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return O5s.has(i)?"checking":"checking_details"}function Wke(e){const n=Vh(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const i=n[2];if(i==="policy"){const r=n[3];return r==null?"card_policy":r==="new"?void 0:"card_policy_detail"}return F5s.has(i)?"cards":"cards_detail"}function hin(e){const n=Vh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function min(e){return Vh(e)[1]==="performance"?"performance":void 0}function gin(e){const n=Vh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function fin(e){const n=Vh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function P2(e,n){return n.some((i=>e8e(i,e)!=null))}function R5s(e){return P2(e,Rke)?"reports":P2(e,rin)?"ap_aging":P2(e,ain)?"ar_aging":Vke(e)!=null?"vendors_tab":P2(e,zke)?"forecast":_ke(e)!=null?"month_end_close_review":P2(e,sin)?"cash_balance":P2(e,lin)?"card_balance":Hke(e)?"task_checklist":hin(e)!=null?"transaction_detail":min(e)!=null?"performance":gin(e)!=null?"bills_detail":fin(e)!=null?"reimbursement_detail":uin(e)?"bills_list":pin(e)?"reimbursement_list":P2(e,E5s)?"cash_in_cash_out":P2(e,I5s)?"operating_expenses":P2(e,D5s)?"revenue":P2(e,T5s)?"net_burn_or_income":P2(e,L5s)?"cash_position":(function(n){const i=Vh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Uke(e)!=null?"checking":(function(n){return Vh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Wke(e)!=null?"cards":(function(n){return Vh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Vh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Vh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function xin(e,n){switch(R5s(e)){case"reports":{const i=n?.selectedReportId;return i==null?void 0:(function(r){switch(r){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}})(i)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return Vke(e);case"forecast":return"forecast";case"month_end_close_review":{const i=_ke(e);return i==null?void 0:(function(r){switch(r){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}})(i)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return Uke(e);case"treasury":return"treasury";case"cards":return Wke(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function yin(){const{pathname:e}=Mg(),n=e??"",i=zr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>xin(n,{selectedReportId:i})),[n,i])}function Qke(){const{useFeatureGate:e}=gs(),{isFeatureEnabled:n}=e(yl.isAiCfoEnabled),i=zr((s=>Fp(s))),r=Ir.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function z5s(){const{useFeatureGate:e}=gs(),{isFeatureEnabled:n}=e(yl.isAiCfoNavButtonEnabled),i=Qke();return n&&i}const bin=m.createContext(void 0),N5s=({children:e})=>{const{tenantEmailDomain:n}=xwt(),i=n!=null?Ir.getSignedInUserTenant(n):void 0,r=zr((u=>Fp(u))),s=See().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return tn.jsx(bin.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},_5s=()=>{const e=m.useContext(bin);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function win(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Cin(e){const{areTenantIdsInSync:n}=_5s(),i=Qke(),r=z5s();return n&&e&&r&&i}function evs(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Tp(),s=ywt(),l=m.useRef(null);m.useEffect((()=>{const c=l.current===!1&&i===!0;if(l.current=i,i&&n!=null&&n.length!==0)for(const d of n){const u=w8e(s.getState(),d)?.fetchState;win(u,c)&&r(gCt({pageContext:d}))}}),[i,r,n,s])}function vin(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Tp(),c=ywt(),d=m.useRef(null),u=m.useRef(void 0);m.useEffect((()=>{const p=d.current===!1&&r===!0;d.current=r;const h=u.current!==void 0&&u.current!==s;if(u.current=s,i==null||!r)return;const g=w8e(c.getState(),i)?.fetchState;win(g,p||h)&&l(gCt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Cin(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function tvs(e){vin({pageContext:yin(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:V5s,sampleQuestion2:H5s,sampleQuestion3:U5s}}=ae.getLocalizedStrings().aiCfo,W5s=[V5s,H5s,U5s];function Q5s(e,n=!1){vin({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Cin(!0),r=zr((g=>e!=null&&e!==""?w8e(g,e):void 0)),{useDynamicConfig:s}=gs(),{configValue:l}=s(H5.aiCfoMessageDynamicConfig),c=m.useMemo((()=>Array.isArray(l?.default_message_list)?[...l.default_message_list]:[]),[l?.default_message_list]),d=m.useMemo((()=>c.length>0?c:[...W5s]),[c]),u=e!=null&&e!=="",p=u&&i&&(r==null||r.fetchState!=="Completed"&&r.fetchState!=="Error"),h=m.useMemo((()=>{if(!u||!i)return d;if(p)return[];if(r?.fetchState==="Error")return d;const g=(r?.suggestedQuestions??[]).map((f=>f.trim())).filter((f=>f.length>0));return g.length===0?d:g}),[i,d,u,p,r?.fetchState,r?.suggestedQuestions]);return{isSuggestedQuestionsLoading:!n&&p,suggestedPromptQuestions:m.useMemo((()=>n?[]:h),[n,h])}}function Y5s({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Ir.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(lee,l);const c=d=>{d.key===Hnn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(lee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Ir.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Ain=m.createContext(void 0),cee=()=>m.useContext(Ain),R8t=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},G5s=e=>{const n=Ir.isSignedIn(),i=Ir.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=zr((h=>Fp(h))),u=d.companyId,p=d.userRoleId;return m.useEffect((()=>{let h,g=!1;if(n&&d.tenantId!=null&&i?.userId!=null&&i.zeniSessionId!=null){R8t(l.current),l.current=void 0,s(void 0);const f=i.userId,x=d.tenantId,y=i.zeniSessionId,b=async()=>{if(g)return;let C;try{C=await osn(Qs.pusherClientSecret,{cluster:Qs.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(v){return void console.warn("Failed to initialize Pusher",v)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&WI(C,u),f!=null&&WI(C,f),p!=null&&WI(C,p)))},w=()=>{const C=See();return C.tenantId===x&&C.userId===f&&C.sessionId===y};if(w())b();else{let C=0;h=setInterval((()=>{g||(C++,w()?(clearInterval(h),b()):C>=30&&(clearInterval(h),yCt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),R8t(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),tn.jsx(Ain.Provider,{value:c,children:e.children})};function WI(e,n){const i=`private-encrypted-${n}`,r=e.channel(i);if(r?.subscribed===!0)return r;const s=e.subscribe(i);return s.bind("pusher:subscription_error",(l=>{console.warn("Pusher Channel Connection Subscription Error",l)})),s}const q5s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Sin=e=>n=>{const i=cee(),r=m.useRef(n.eventCallback),s=m.useRef(n.onSubscribed),l=m.useRef({}),c=m.useRef(0);m.useEffect((()=>{r.current=n.eventCallback,s.current=n.onSubscribed;const{events:u,eventCallback:p,onSubscribed:h,...g}=n;l.current=g}),[n]);const d=m.useMemo((()=>[...n.events].sort().join("|")),[n.events]);return m.useEffect((()=>{if(i!=null){const{events:u}=n,p=[];if(u.length===0)return;const h=new Set,g=()=>{if(s.current==null)return;const f=Date.now();f-c.current<5e3||(c.current=f,s.current(l.current))};return u.forEach((f=>{const[x,y]=q5s(f);if(y==="")return;const b=i.channel(x),w=v=>{r.current(y,v,l.current)};let C;if(b?.subscribed===!0)C=b,C.bind(y,w),h.has(x)||(h.add(x),g()),p.push((()=>{b.unbind(y,w)}));else{if(C=b??i.subscribe(x),C.bind(y,w),!h.has(x)){h.add(x);const v=()=>{g()};C.bind("pusher:subscription_succeeded",v),p.push((()=>{C.unbind("pusher:subscription_succeeded",v)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),tn.jsx(e,{...n})},nvs=210;function ivs(e){return e?.data.unread!=null&&e?.mode!=null}const Yke=e=>Wsi.includes(e),Gke=e=>PPt.includes(e),qke=e=>Qsi.includes(e),K5s={invoicing_settings_branding:"invoicing/settings/branding",invoicing_settings_dunning:"invoicing/settings/dunning",invoicing_settings_integrations:"invoicing/settings/integrations",invoicing_settings_payment_destination:"invoicing/settings/payment-destination",invoicing_settings_quickbooks:"invoicing/settings/quickbooks"},Z5s=e=>{if(qke(e)){const n=K5s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return Yke(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Hve(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Gke(e)?`ai-cfo/${e}`:e},J5s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],ovs=e=>{if(Yke(e)||Gke(e)||qke(e))return!0;const n=Z5s(e).split("/")[0];return!J5s.includes(n)},z8t=(e,n)=>e.includes(n),N8t=e=>{switch(e.split("/")[2]){case"invoicing":return(function(n){const i=n.split("/")[3];if(i==="settings")switch(n.split("/")[4]){case"payment-destination":return"invoicing_settings_payment_destination";case"branding":return"invoicing_settings_branding";case"integrations":return"invoicing_settings_integrations";case"dunning":return"invoicing_settings_dunning";case"quickbooks":return"invoicing_settings_quickbooks";default:return"invoicing_settings"}switch(i){case"customers":return"invoicing_customers";case"subscriptions":return"invoicing_subscriptions";case"invoices":return"invoicing_invoices";case"payments":return"invoicing_payments";case"credits":return"invoicing_credits";case"discounts":return"invoicing_discounts";case"dunning":return"invoicing_dunning";case"catalog":return"invoicing_catalog";case"settings":return"invoicing_settings";case"data_import":return"invoicing_data_import";case"audit_log":return"invoicing_audit_log";default:return"invoicing_overview"}})(e);case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return(function(n){if(n==null)return;const i=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const r of i)if(z8t(n,r))switch(r){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}})(e);case"performance":return"performance";case"month_end_close_checks":return(function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const i=n.split("/"),r=i.indexOf("review"),s=r>=0?i[r+1]:void 0;return s!=null&&Hve(s)?Usi(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of PPt)if(z8t(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function X5s(e){let n=N8t(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=N8t(i[r])}return n??"home"}function rvs(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function avs(e){return e.pathname.split("/")[2]==="invoicing"}function svs(e){return e.pathname.includes("ai-cfo")}function lvs(e,n){const i=X5s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":qke(i)?`invoicing/${i.replace("invoicing_","")}`:Yke(i)?"settings/my_profile":Gke(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Hve(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function exs({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(bCt(r.tenantId)),e(wCt(s.userId,r.tenantId,s.zeniSessionId))),U0.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function txs({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Tp(),u=pee(),p=Mg(),{setLoading:h}=Nke(),g=Ir.getSignedInUser(),f=fz(g),{useDynamicConfig:x}=gs(),{configValue:y}=x(H5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=zr((F=>F.tenantState)),S=zr((F=>v.fetchState==="Completed"?rsn(F):[])),k=zr((F=>e?.tenantId!=null?asn(F,e.tenantId):void 0)),$=m.useCallback((()=>C(!0)),[]),j=m.useCallback((()=>C(!1)),[]),I=m.useCallback((()=>{j(),s?.()}),[j,s]),E=m.useCallback((F=>{if(I(),F.type!=="skills"&&l?.(),F.type==="new_chat"){n!=null&&d(T5e());const H=qD(p.state?.pathnameStackToGoBack,p.pathname);u(`/${e.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:H.slice(0,-1),referrer:"Sidebar"}})}else F.type==="skills"?c?.():F.type==="explore"&&(n!=null&&d(T5e()),u(`/${e.tenantEmailDomain}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}}))}),[I,n,e.tenantEmailDomain,d,p,u,l,c]),D=m.useCallback((F=>{I(),d(mCt({sessionId:F,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${F}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),O=m.useCallback((()=>{I();const F=qD(p.state?.pathnameStackToGoBack,p.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:F,message:"logout"}})}),[I,p,u]),N=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/settings/my_profile`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),_=m.useCallback((()=>{I(),window.open("/cockpit")}),[I]),z=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/notifications/tasks`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),T=m.useCallback((F=>{h(oin.TENANT_SWITCHING),I();const H=F.tenantEmailDomain;exs({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:F,signedInUser:g})}),[I,d,g,u,h]),M=tn.jsx(Wc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:tn.jsxs(nxs,{children:[tn.jsxs(ixs,{children:[tn.jsx(JRt,{}),tn.jsx(hzt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),tn.jsx(oxs,{children:tn.jsx(tzt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),tn.jsxs(rxs,{children:[g!=null&&tn.jsx(iN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:O,onMyProfileClick:N,onCockpitClick:_}),tn.jsx(axs,{onClick:z,children:tn.jsx(sxs,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const nxs=a.div`
|
|
91722
|
+
`,tR=pwt(dln()),s5s=["sandbox","production"],l5s=["development","staging","production"],c5s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],UI=()=>Nl==="DEV"||Nl==="QA"||Nl==="PUNE"||Nl==="SUNNYVALE"||Nl==="DELHI"||Nl==="MOHALI",Pke="https://zeni-webapp-qa.uc.r.appspot.com",Nl=(e=>ny(e,c5s))("QA"),GCs=(e=>ny(e,s5s))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Nl)),L8t=(e=>ny(e,l5s))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Nl)),d5s=(e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"qa";case"NEXT":return"next";case"PROD":return"production";default:return"development"}})(Nl);function Fnn(e,n){return tR.AES.decrypt(e,n).toString(tR.enc.Utf8)}const Rnn="ZENI-WEB-APP-",Mke=Nl==="DEV"||Nl==="QA"?.2:.8,znn=Mke,Qs={sentryDsn:"",sentryTraceSamplingRate:Mke,sentryProfileSamplingRate:znn,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let z5,hz;function u5s(){return z5?.aiCfoMicroServiceBaseUrl!=null?`${z5.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function Nnn(e){Qs.sentryDsn=e.keys.SENTRY_DSN,Qs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):Mke,Qs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):znn,Qs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Qs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Qs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Qs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Qs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Qs.pusherCluster=e.keys.PUSHER_CLUSTER,Qs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Qs.appUrl=e.keys.WEB_ENDPOINT,Qs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Qs.cardVaultId=e.keys.UNIT_VAULT_ID,Qs.stripeKey=e.keys.STRIPE_KEY,Qs.qboRedirectionUrl=e.keys.QBO_URL,Qs.mixpanelUrl=e.keys.MIXPANEL_URL,Qs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,hz=e.externalEndPoints,z5=e.apiEndPoints,(function(n,i){const r=new Set,s=[...Object.values(n),...Object.values(i)];for(const l of s)if(typeof l=="string"&&l.length>0)try{r.add(new URL(l).origin)}catch{}for(const l of r){if(document.querySelector(`link[rel="preconnect"][href="${l}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=l,document.head.appendChild(c)}})(z5,hz)}async function B8t(){const e={environment:Nl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${Pke}/api/keys?query=${n}`);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(i){return console.error("Error fetching details:",i),null}}let P8t=!1;function CE(){P8t||(ig.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:hz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),P8t=!0)}const p5s=new Set(Array.from(Fi.EVENTS_WITHOUT_SUPER_PROPERTIES));let M8t=!1,O8t=!1;function Q9e(){if(M8t)return;M8t=!0,CE();const e=Fi.extractUtmParamsFromUrl();Object.keys(e).length>0&&ig.register(e),UI()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const h5s=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function m5s(){const e=(function(){return ig?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||h5s.has(i)));for(const i of n)ig.unregister(i);UI()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function F8t(){O8t||(O8t=!0,m5s())}class lI{identify(n,i){if(CE(),this.#t=n,n!=null&&i!=null&&(lI.#e==null||!Ean({userId:n,traits:i},lI.#e))){const{$email:r,...s}={...i};ig.identify(n),r&&r!=null&&ig.people.set_once({$email:r}),ig.people.set(s),lI.#e={userId:n,traits:i},UI()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(i)} `)}}identifyUserAndCompany(n,i,r,s,l){throw Error("Use identify in the web-app!!")}track(n,i){CE();const r=p5s.has(n);if(this.#t!=null||r){if(Q9e(),this.#t!=null){const s={distinct_id:this.#t,...i};ig.track(n,s)}else ig.track(n,i);if(F8t(),UI()){const s=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(i)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(i)}`;console.log(s)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,i){CE(),Q9e(),ig.track(n,i),F8t(),UI()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){CE(),ig.alias(n,i)}reset(){CE(),ig.identify(void 0),this.#t=void 0,lI.#e=void 0}static#e;#t}const Y9e=new lI,_nn=new Fi.Analytics(Y9e);_nn.trackWithoutUserId=Y9e.trackWithoutUserId.bind(Y9e);const U0=_nn,g5s="openAiCfoScope",G9e="openAiCfoScopeOnDashboard";function qCs(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[G9e]:!0,...r}})}function KCs(e){const n=Aee(e);if(n.createSessionAndSubmitState.fetchState==="In-Progress")return!0;const i=n.uiState?.currentChatSessionId;return i!=null&&n.responseStateByChatSessionId?.[i]?.answer?.fetchState==="In-Progress"}function Oke(e,n){const i=n!=null?e.find((d=>d.chatSession.chatSessionId===n)):void 0,r=i?.questionAnswers??[],s=r[r.length-1],l=s?.responses.answer?.content?.summarizedTitle??"";return{currentChatSession:i?.chatSession,currentQuestionAnswer:s,currentQuestionAnswerSummary:l,currentChatSessionWithMessages:i,currentSessionQuestionAnswers:r}}function Vnn(e,n){return(e||n?.chatSessionSummary)??null}const Hnn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",lee="zeni-ai-cfo-upload-promo-storage-changed",Ir=new class{_isZeniUserCache;getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,e)}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,e)??!1)}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null||(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,e)??!0)}getSignedInUserTenant(e){return this.getSignedInUserTenants()?.find((n=>n.tenantEmailDomain===e))}getSignedInUserTenantWithId(e){return this.getSignedInUserTenants()?.find((n=>n.tenantId===e))}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e==null)return;const n=this.readEncryptedString(this.ZENI_ACTIVE_TENANT_DOMAIN,e);return n!=null?this.getSignedInUserTenants()?.find((i=>i.tenantEmailDomain===n)):void 0}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,e)??[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==n&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map((e=>window.localStorage.getItem(e)!=null)).reduce(((e,n)=>e&&n))}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_THEME]);this.ALL_IDs.filter((n=>!e.has(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n))).forEach((n=>window.localStorage.removeItem(n)))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){return this.readOtpToken(this.ZENI_OTP_TOKEN)}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(r))}getCardPolicyPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_CARD_POLICY_POPUP_SEEN),!1}return!1}saveCardPolicyPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_CARD_POLICY_POPUP_SEEN,JSON.stringify(r))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const i=JSON.parse(n);return i!==null&&typeof i=="object"&&i[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(lee)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const i=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(r)),window.dispatchEvent(new CustomEvent(lee))}savePayNowInfoTooltip(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),i))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_PAY_NOW_INFO_TOOLTIP,e)}saveZeniOtpTokenForCardHolder(e,n){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),i))}getZeniOtpTokenForCardHolder(e){return this.readOtpToken(`${this.ZENI_OTP_TOKEN}_${e}`)}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){return this.readEncryptedString(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){return this.readEncryptedString(this.ZENI_MAGIC_LINK_EMAIL,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}encrypt(e,n){return tR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=tR.AES.decrypt(e,n).toString(tR.enc.Utf8);return i===""?void 0:i}catch{return}}readEncryptedString(e,n){const i=window.localStorage.getItem(e);if(i==null)return;const r=this.decrypt(i,n);return r==null&&window.localStorage.removeItem(e),r}readEncryptedJSON(e,n){const i=this.readEncryptedString(e,n);if(i!=null)try{const r=JSON.parse(i);return r===null?void window.localStorage.removeItem(e):r}catch{return void window.localStorage.removeItem(e)}}getSignedInUserTenants(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,e)}readOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)return;const i=this.readEncryptedJSON(e,n);if(i!=null){if(i.expiry!=null)return{...i,expiry:xn(i.expiry.toString())};window.localStorage.removeItem(e)}}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach((e=>window.localStorage.removeItem(e))),Object.keys(window.localStorage).filter((e=>e.startsWith(`${this.ZENI_OTP_TOKEN}_`))).forEach((e=>window.localStorage.removeItem(e)))}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_CARD_POLICY_POPUP_SEEN="ZENI_CARD_POLICY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=Hnn;SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS];ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_CARD_POLICY_POPUP_SEEN,this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]},qD=(e,n)=>{const i=[...e??[]];return i.push(n),i},ZCs=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},JCs=({state:e})=>Ir.isSignedIn()===!0?tn.jsx(lon,{}):tn.jsx(fwt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),f5s=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function Unn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of f5s)delete n[i];return n}function x5s(){const e=Tp(),n=Mg(),i=pee(),{tenantEmailDomain:r}=xwt(),[s,l]=m.useState(!1),c=zr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?Fp(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=zr((v=>Aee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[G9e]!==!0)return;const S=v.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof v.aiCfoInitialSubmissionSource=="string"?v.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof v.aiCfoSuggestionIndex=="number"?v.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...Unn(v),[G9e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const v=p.current;if(v==null||r==null)return!1;p.current=null;const S=n.state,k=qD(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:v.question,aiCfoShouldSubmit:!0,...v.submissionSource!=null?{aiCfoInitialSubmissionSource:v.submissionSource}:{},...v.suggestionIndex!=null?{aiCfoSuggestionIndex:v.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Ut(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const v=qD(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:v,referrer:n.state?.referrer??"Navigation"}})}),[n.pathname,n.state,i,f,r]),b=m.useCallback((()=>{l(!1),y()}),[y]),w=m.useCallback((()=>{p.current=null,l(!1)}),[]),C=m.useCallback((()=>{d||c?.userRoleId==null?(l(!1),f()):e(pCt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return tn.jsx(mnn,{open:s,onClose:w,children:tn.jsxs(hnn,{children:[s&&!h?tn.jsx(Eve,{analytics:U0,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,tn.jsx(n7e,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const q9e=m.createContext(void 0);function Fke(){const e=m.useContext(q9e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Rke=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],zke=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],Wnn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],Qnn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],Ynn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],Gnn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],qnn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],Knn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],Znn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Jnn(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let i=1;i<n.length;i+=1)if(n[i]==="transaction")return!0;return!1}const Xnn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],ein=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],tin=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],y5s=[...Wnn,...Rke,...zke,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...Xnn,...ein,...tin,...Qnn,...Ynn,...Gnn,...qnn,...Knn,...Znn];function nin(){const{pathname:e}=Mg(),n=e??"";return y5s.some((i=>e8e(i,n)!=null))||Jnn(e)}function Vd(e){const{pathname:n}=Mg(),i=n??"";return e.some((r=>e8e(r,i)!=null))}const XCs=27.22,iin=m.createContext(null),oin={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function b5s({children:e}){const[n,i]=m.useState((()=>new Set([]))),r=n.size>0,s=m.useCallback((d=>{i((u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p}))}),[]),l=m.useCallback((d=>{i((u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p}))}),[]),c={isLoading:r,activeLoadingStates:n,setLoading:s,clearLoading:l,clearAllLoading:m.useCallback((()=>{i(new Set)}),[])};return tn.jsx(iin.Provider,{value:c,children:e})}function Nke(){const e=m.useContext(iin);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function w5s(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Man(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Lan(c);u.length!==0&&(e(Ban(u)),e(Pan({sourceChatSessionId:n})),n!=null&&e(hje({chatSessionId:n,id:wje(),kind:"creating_cards",createdAt:xn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Tan(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Dna(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const v=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return v==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...Ina(v)}}const y=xX(p.vendorPolicy,"allow"),b=xX(p.vendorPolicy,"block"),w=yX(p.categoryPolicy,"allow"),C=yX(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((v=>v.isChecked)).map((v=>v.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:bX(p.limits,PSe),spendLimits:{transaction:bX(p.limits,BSe)}}})({values:c});e(Dan({templates:[u],sourceChatSessionId:n})),n!=null&&e(hje({chatSessionId:n,id:wje(),kind:"creating_policy",createdAt:xn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Ian(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(hCt())}:void 0}}const C5s=e=>Wan(e,!1),v5s=e=>Uan(e.name,!1);function A5s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Oan(r),l=Fan(r),c=Ran(r),{creditAccount:d}=zan(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(C5s),cardPolicyVendorSearchOptions:l.map(v5s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:Han(r),cardPolicyUploadedFileName:Van(r),cardPolicyFormDraft:_an(e.createCardPolicyState),cardsCreationFormDraft:Nan(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const S5s=e=>{const n=ae.currencyFormatter(0);return i=>{const r=Yan(e.chargeCardState,i);if(r==null)return;const s=Gan(e.userState,r.cardHolderUserId),l=((u,p,h)=>{const g=u!=null&&u.length>0,f=p!=null&&p.length>0;return g&&f?`${u} ${p}`:g?u:f?p:h??""})(s?.firstName,s?.lastName,s?.email),c=r.limit?.amount,d=typeof c=="number"&&Number.isFinite(c)?n.format(c):"";return{cardName:r.cardName,ownerName:l,recommendedLimitFormatted:d,owner:s}}},k5s=e=>n=>{const i=Qan(e.cardPolicyState,n);if(i==null)return;const r=i.cardsCount>0?i.cardsCount:i.appliedCards.length,s=i.allowedEntity.merchantNames.length+i.blockedEntity.merchantNames.length,l=i.allowedEntity.categoryCodes.length+i.blockedEntity.categoryCodes.length;return{name:i.name,description:i.description,cardsCount:r,vendorRestrictionsCount:s,categoryRestrictionsCount:l}};function j5s(){const{useFeatureGate:e}=gs(),{isFeatureEnabled:n}=e(yl.isAiCfoAnswerExportEnabled);return n&&z5?.aiCfoMicroServiceBaseUrl!=null?`${z5.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function $5s({isHydrationEnabled:e=!0}={}){const n=Tp(),{useFeatureGate:i}=gs(),{isFeatureEnabled:r}=i(yl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(yl.isCardPolicyEnabled),l=zr((x=>Fp(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=zr((x=>{const y=Fp(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),iK),u=m.useRef(!1),p=m.useRef(!1);m.useEffect((()=>{u.current=!1,p.current=!1}),[l]),m.useEffect((()=>{e&&c&&(u.current||(u.current=!0,n(qan()),n(mje()),n(Kan("cardHolderCandidate",!1)),n(Zan(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(Jan())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(hCt())}),[n,l]);const h=m.useMemo((()=>cln((x=>{n(mje(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=zr((x=>Xan(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),iK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const rin=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],ain=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],E5s=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],I5s=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],D5s=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],T5s=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],L5s=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],sin=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],lin=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],B5s=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function _ke(e){const n=Vh(e),i=n.indexOf("review");if(i<2||n[i-1]!=="month_end_close_checks")return null;if(i===n.length-1)return"overview";const r=n[i+1];return r==null?"overview":B5s.includes(r)?r:null}const P5s=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),M5s=new Set(["setup","verification","promo","approval-rules"]);function Vh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Vke(e){const n=Vh(e),i=n[1]==="vendors"?1:-1;if(i<0||n.length<i+2)return;const r=n[i+1];if(r==="summary")return"vendors";if(r==="opex")return"opex_by_vendor";if(r==="schedules"){const s=n[i+2];return s==="prepaid_expenses"?"prepaid_expenses":s==="fixed_assets"?"fixed_assets":s==="accrued_expenses"?"accrued_expenses":void 0}return r==="filing_1099"?"form_1099":void 0}function cin(e,n,i){const r=Vh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function din(e,n,i){return cin(e,n,(r=>!i.has(r)))}function uin(e){return din(e,"bills",P5s)}function pin(e){return din(e,"reimbursements",M5s)}function Hke(e){return cin(e,"tasks",(n=>n==="group"))}const O5s=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),F5s=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Uke(e){const n=Vh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return O5s.has(i)?"checking":"checking_details"}function Wke(e){const n=Vh(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const i=n[2];if(i==="policy"){const r=n[3];return r==null?"card_policy":r==="new"?void 0:"card_policy_detail"}return F5s.has(i)?"cards":"cards_detail"}function hin(e){const n=Vh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function min(e){return Vh(e)[1]==="performance"?"performance":void 0}function gin(e){const n=Vh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function fin(e){const n=Vh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function P2(e,n){return n.some((i=>e8e(i,e)!=null))}function R5s(e){return P2(e,Rke)?"reports":P2(e,rin)?"ap_aging":P2(e,ain)?"ar_aging":Vke(e)!=null?"vendors_tab":P2(e,zke)?"forecast":_ke(e)!=null?"month_end_close_review":P2(e,sin)?"cash_balance":P2(e,lin)?"card_balance":Hke(e)?"task_checklist":hin(e)!=null?"transaction_detail":min(e)!=null?"performance":gin(e)!=null?"bills_detail":fin(e)!=null?"reimbursement_detail":uin(e)?"bills_list":pin(e)?"reimbursement_list":P2(e,E5s)?"cash_in_cash_out":P2(e,I5s)?"operating_expenses":P2(e,D5s)?"revenue":P2(e,T5s)?"net_burn_or_income":P2(e,L5s)?"cash_position":(function(n){const i=Vh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Uke(e)!=null?"checking":(function(n){return Vh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Wke(e)!=null?"cards":(function(n){return Vh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Vh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Vh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function xin(e,n){switch(R5s(e)){case"reports":{const i=n?.selectedReportId;return i==null?void 0:(function(r){switch(r){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}})(i)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return Vke(e);case"forecast":return"forecast";case"month_end_close_review":{const i=_ke(e);return i==null?void 0:(function(r){switch(r){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}})(i)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return Uke(e);case"treasury":return"treasury";case"cards":return Wke(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function yin(){const{pathname:e}=Mg(),n=e??"",i=zr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>xin(n,{selectedReportId:i})),[n,i])}function Qke(){const{useFeatureGate:e}=gs(),{isFeatureEnabled:n}=e(yl.isAiCfoEnabled),i=zr((s=>Fp(s))),r=Ir.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function z5s(){const{useFeatureGate:e}=gs(),{isFeatureEnabled:n}=e(yl.isAiCfoNavButtonEnabled),i=Qke();return n&&i}const bin=m.createContext(void 0),N5s=({children:e})=>{const{tenantEmailDomain:n}=xwt(),i=n!=null?Ir.getSignedInUserTenant(n):void 0,r=zr((u=>Fp(u))),s=See().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return tn.jsx(bin.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},_5s=()=>{const e=m.useContext(bin);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function win(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Cin(e){const{areTenantIdsInSync:n}=_5s(),i=Qke(),r=z5s();return n&&e&&r&&i}function evs(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Tp(),s=ywt(),l=m.useRef(null);m.useEffect((()=>{const c=l.current===!1&&i===!0;if(l.current=i,i&&n!=null&&n.length!==0)for(const d of n){const u=w8e(s.getState(),d)?.fetchState;win(u,c)&&r(gCt({pageContext:d}))}}),[i,r,n,s])}function vin(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Tp(),c=ywt(),d=m.useRef(null),u=m.useRef(void 0);m.useEffect((()=>{const p=d.current===!1&&r===!0;d.current=r;const h=u.current!==void 0&&u.current!==s;if(u.current=s,i==null||!r)return;const g=w8e(c.getState(),i)?.fetchState;win(g,p||h)&&l(gCt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Cin(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function tvs(e){vin({pageContext:yin(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:V5s,sampleQuestion2:H5s,sampleQuestion3:U5s}}=ae.getLocalizedStrings().aiCfo,W5s=[V5s,H5s,U5s];function Q5s(e,n=!1){vin({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Cin(!0),r=zr((g=>e!=null&&e!==""?w8e(g,e):void 0)),{useDynamicConfig:s}=gs(),{configValue:l}=s(H5.aiCfoMessageDynamicConfig),c=m.useMemo((()=>Array.isArray(l?.default_message_list)?[...l.default_message_list]:[]),[l?.default_message_list]),d=m.useMemo((()=>c.length>0?c:[...W5s]),[c]),u=e!=null&&e!=="",p=u&&i&&(r==null||r.fetchState!=="Completed"&&r.fetchState!=="Error"),h=m.useMemo((()=>{if(!u||!i)return d;if(p)return[];if(r?.fetchState==="Error")return d;const g=(r?.suggestedQuestions??[]).map((f=>f.trim())).filter((f=>f.length>0));return g.length===0?d:g}),[i,d,u,p,r?.fetchState,r?.suggestedQuestions]);return{isSuggestedQuestionsLoading:!n&&p,suggestedPromptQuestions:m.useMemo((()=>n?[]:h),[n,h])}}function Y5s({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Ir.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(lee,l);const c=d=>{d.key===Hnn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(lee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Ir.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Ain=m.createContext(void 0),cee=()=>m.useContext(Ain),R8t=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},G5s=e=>{const n=Ir.isSignedIn(),i=Ir.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=zr((h=>Fp(h))),u=d.companyId,p=d.userRoleId;return m.useEffect((()=>{let h,g=!1;if(n&&d.tenantId!=null&&i?.userId!=null&&i.zeniSessionId!=null){R8t(l.current),l.current=void 0,s(void 0);const f=i.userId,x=d.tenantId,y=i.zeniSessionId,b=async()=>{if(g)return;let C;try{C=await osn(Qs.pusherClientSecret,{cluster:Qs.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(v){return void console.warn("Failed to initialize Pusher",v)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&WI(C,u),f!=null&&WI(C,f),p!=null&&WI(C,p)))},w=()=>{const C=See();return C.tenantId===x&&C.userId===f&&C.sessionId===y};if(w())b();else{let C=0;h=setInterval((()=>{g||(C++,w()?(clearInterval(h),b()):C>=30&&(clearInterval(h),yCt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),R8t(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),tn.jsx(Ain.Provider,{value:c,children:e.children})};function WI(e,n){const i=`private-encrypted-${n}`,r=e.channel(i);if(r?.subscribed===!0)return r;const s=e.subscribe(i);return s.bind("pusher:subscription_error",(l=>{console.warn("Pusher Channel Connection Subscription Error",l)})),s}const q5s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Sin=e=>n=>{const i=cee(),r=m.useRef(n.eventCallback),s=m.useRef(n.onSubscribed),l=m.useRef({}),c=m.useRef(0);m.useEffect((()=>{r.current=n.eventCallback,s.current=n.onSubscribed;const{events:u,eventCallback:p,onSubscribed:h,...g}=n;l.current=g}),[n]);const d=m.useMemo((()=>[...n.events].sort().join("|")),[n.events]);return m.useEffect((()=>{if(i!=null){const{events:u}=n,p=[];if(u.length===0)return;const h=new Set,g=()=>{if(s.current==null)return;const f=Date.now();f-c.current<5e3||(c.current=f,s.current(l.current))};return u.forEach((f=>{const[x,y]=q5s(f);if(y==="")return;const b=i.channel(x),w=v=>{r.current(y,v,l.current)};let C;if(b?.subscribed===!0)C=b,C.bind(y,w),h.has(x)||(h.add(x),g()),p.push((()=>{b.unbind(y,w)}));else{if(C=b??i.subscribe(x),C.bind(y,w),!h.has(x)){h.add(x);const v=()=>{g()};C.bind("pusher:subscription_succeeded",v),p.push((()=>{C.unbind("pusher:subscription_succeeded",v)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),tn.jsx(e,{...n})},nvs=210;function ivs(e){return e?.data.unread!=null&&e?.mode!=null}const Yke=e=>Wsi.includes(e),Gke=e=>PPt.includes(e),qke=e=>Qsi.includes(e),K5s={invoicing_settings_branding:"invoicing/settings/branding",invoicing_settings_dunning:"invoicing/settings/dunning",invoicing_settings_integrations:"invoicing/settings/integrations",invoicing_settings_payment_destination:"invoicing/settings/payment-destination",invoicing_settings_quickbooks:"invoicing/settings/quickbooks"},Z5s=e=>{if(qke(e)){const n=K5s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return Yke(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Hve(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Gke(e)?`ai-cfo/${e}`:e},J5s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],ovs=e=>{if(Yke(e)||Gke(e)||qke(e))return!0;const n=Z5s(e).split("/")[0];return!J5s.includes(n)},z8t=(e,n)=>e.includes(n),N8t=e=>{switch(e.split("/")[2]){case"invoicing":return(function(n){const i=n.split("/")[3];if(i==="settings")switch(n.split("/")[4]){case"payment-destination":return"invoicing_settings_payment_destination";case"branding":return"invoicing_settings_branding";case"integrations":return"invoicing_settings_integrations";case"dunning":return"invoicing_settings_dunning";case"quickbooks":return"invoicing_settings_quickbooks";default:return"invoicing_settings"}switch(i){case"customers":return"invoicing_customers";case"subscriptions":return"invoicing_subscriptions";case"invoices":return"invoicing_invoices";case"payments":return"invoicing_payments";case"credits":return"invoicing_credits";case"discounts":return"invoicing_discounts";case"dunning":return"invoicing_dunning";case"catalog":return"invoicing_catalog";case"settings":return"invoicing_settings";case"data_import":return"invoicing_data_import";case"audit_log":return"invoicing_audit_log";default:return"invoicing_overview"}})(e);case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return(function(n){if(n==null)return;const i=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const r of i)if(z8t(n,r))switch(r){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}})(e);case"performance":return"performance";case"month_end_close_checks":return(function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const i=n.split("/"),r=i.indexOf("review"),s=r>=0?i[r+1]:void 0;return s!=null&&Hve(s)?Usi(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of PPt)if(z8t(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function X5s(e){let n=N8t(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=N8t(i[r])}return n??"home"}function rvs(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function avs(e){return e.pathname.split("/")[2]==="invoicing"}function svs(e){return e.pathname.includes("ai-cfo")}function lvs(e,n){const i=X5s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":qke(i)?`invoicing/${i.replace("invoicing_","")}`:Yke(i)?"settings/my_profile":Gke(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Hve(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function exs({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(bCt(r.tenantId)),e(wCt(s.userId,r.tenantId,s.zeniSessionId))),U0.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function txs({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Tp(),u=pee(),p=Mg(),{setLoading:h}=Nke(),g=Ir.getSignedInUser(),f=fz(g),{useDynamicConfig:x}=gs(),{configValue:y}=x(H5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=zr((F=>F.tenantState)),S=zr((F=>v.fetchState==="Completed"?rsn(F):[])),k=zr((F=>e?.tenantId!=null?asn(F,e.tenantId):void 0)),$=m.useCallback((()=>C(!0)),[]),j=m.useCallback((()=>C(!1)),[]),I=m.useCallback((()=>{j(),s?.()}),[j,s]),E=m.useCallback((F=>{if(I(),F.type!=="skills"&&l?.(),F.type==="new_chat"){n!=null&&d(T5e());const H=qD(p.state?.pathnameStackToGoBack,p.pathname);u(`/${e.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:H.slice(0,-1),referrer:"Sidebar"}})}else F.type==="skills"?c?.():F.type==="explore"&&(n!=null&&d(T5e()),u(`/${e.tenantEmailDomain}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}}))}),[I,n,e.tenantEmailDomain,d,p,u,l,c]),D=m.useCallback((F=>{I(),d(mCt({sessionId:F,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${F}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),O=m.useCallback((()=>{I();const F=qD(p.state?.pathnameStackToGoBack,p.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:F,message:"logout"}})}),[I,p,u]),N=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/settings/my_profile`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),_=m.useCallback((()=>{I(),window.open("/cockpit")}),[I]),z=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/notifications/tasks`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),T=m.useCallback((F=>{h(oin.TENANT_SWITCHING),I();const H=F.tenantEmailDomain;exs({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:F,signedInUser:g})}),[I,d,g,u,h]),M=tn.jsx(Wc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:tn.jsxs(nxs,{children:[tn.jsxs(ixs,{children:[tn.jsx(JRt,{}),tn.jsx(hzt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),tn.jsx(oxs,{children:tn.jsx(tzt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),tn.jsxs(rxs,{children:[g!=null&&tn.jsx(iN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:O,onMyProfileClick:N,onCockpitClick:_}),tn.jsx(axs,{onClick:z,children:tn.jsx(sxs,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const nxs=a.div`
|
|
91723
91723
|
display: flex;
|
|
91724
91724
|
flex: 1 1 auto;
|
|
91725
91725
|
flex-direction: column;
|
|
@@ -91807,7 +91807,7 @@ ${xM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
91807
91807
|
display: flex;
|
|
91808
91808
|
min-height: 100%;
|
|
91809
91809
|
flex-direction: column;
|
|
91810
|
-
`,vxs=()=>{const[e,n]=m.useState((()=>Ir.getSignedInUser())),i=Tp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=zr((g=>CCt(g).fetchState)),u=zr((g=>Fp(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Ir.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{u?.companyId!=null&&d==="Not-Started"&&i(Asn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return tn.jsxs(m.Fragment,{children:[l&&tn.jsx(Ive,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?tn.jsx(wxs,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},V8t="init-enter",Axs=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||V8t);Sxs(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||V8t,c=kxs();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),Sxs=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),kxs=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},c0=e=>m.lazy((async()=>{const n=e.toString(),i=Ir.getForceRefreshedComponents(),r=new Set(i),s=Ir.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Ir.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Ir.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),cvs=(e,n,i)=>{const r=l8e(e),s=yee(e),l=c8e(i,e);return(n||i||s||r||l)&&a8e(e.company)},Ein=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Iin=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Din=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Tin=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function xc(...e){const n=Nl==="DEV"||Nl==="QA";if(Ein||Iin||Din||Tin)return void console.log(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.log(...e)}function QI(...e){const n=Nl==="DEV"||Nl==="QA";if(Ein||Iin||Din||Tin)return void console.warn(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.warn(...e)}let _$=null,DM=!1;const yc=Nl==="PROD"?"https://api.zeni.ai":Nl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function H8t(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=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:`${yc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const jxs={dashboard:function(e){return[...H8t()]},reports:H8t,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})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${r}`,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:`${yc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${yc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${yc}/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:`${yc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${yc}/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:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${yc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${yc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${yc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${yc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function U8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,jxs[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(xc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(xc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(xc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return xc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function W8t(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(xc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void QI("[Prefetch Manager - Service Worker] No active Service Worker available");const l=(function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort(((h,g)=>p[h.priority]-p[g.priority]))})(e);xc("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:l.length,high:l.filter((u=>u.priority==="HIGH")).length,medium:l.filter((u=>u.priority==="MEDIUM")).length,low:l.filter((u=>u.priority==="LOW")).length,batchSize:n>0?n:"disabled",expirationTime:i??"20 minutes",viaController:!!navigator.serviceWorker.controller}),l.forEach(((u,p)=>{xc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),xc(` URL: ${u.url}`)}));const c=See(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};s.postMessage({type:"PREFETCH_URLS",payload:{urls:l.map((u=>({url:u.url,priority:u.priority,apiType:u.apiType}))),authHeaders:d,batchSize:n,expirationTime:i}}),xc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){QI("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else QI("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function $xs({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Mg(),S=Ir.getSignedInUser(),{useFeatureGate:k}=gs(),{isFeatureEnabled:$}=k(yl.isReferralFeatureEnabled),j=Ln(),I=A7(j?.loggedInUserRole??[]),E=zr((_=>Fp(_))),{isFeatureEnabled:D}=k(yl.isDebitCardFeatureEnabled),L=c8e(D,E),O=l8e(E),N=L===!1&&O===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=U8t({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(_.length===0)return void xc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);xc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{W8t(_,r,s).catch((M=>{QI(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;xc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;xc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const F=()=>{DM&&(xc("[Idle Detection - Service Worker] 🏃 User became active again"),DM=!1),_$&&clearTimeout(_$),_$=setTimeout((()=>{DM||(xc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),DM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,F,!0)})),F(),()=>{xc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),_$&&(clearTimeout(_$),_$=null),H.forEach((V=>{document.removeEventListener(V,F,!0)})),DM=!1}})({timeout:h,onIdle:()=>{if(b)return;xc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=U8t({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(xc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),W8t(z,r,s).catch((M=>{QI(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):xc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=_,()=>{C.current&&(C.current(),C.current=null)}}),[c,d,h,S,i,b,n,u,p,$,I,N,E.companyId,g,r,s]),m.useEffect((()=>{w(!1)}),[i]),m.useEffect((()=>{(function(){const _=performance.getEntriesByType("navigation");if(_.length>0)return _[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(xc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const _=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||_.active;if(!z)return;xc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){QI("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),tn.jsx(tn.Fragment,{children:e})}function Exs({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Mg(),u=zr((y=>Fp(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=gs(),{isFeatureEnabled:x}=f(yl.isServiceWorkerPrefetchingEnabled);return g&&p?tn.jsx($xs,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):tn.jsx(tn.Fragment,{children:e})}function Ixs(e,n){const i=Fi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const Dxs=c0((()=>Cd((()=>import("./DefaultTenantHome-DHj0LZf2.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),Txs=c0((()=>Cd((()=>import("./AppDrawer-iCXzB-Zx.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),Q8t=c0((()=>Cd((()=>import("./ScreenRoutes-5TQ3QdBJ.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),Lxs=c0((()=>Cd((()=>import("./ConnectionAuthScreen-BwEBh9bB.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),Bxs=c0((()=>Cd((()=>import("./SignInScreen-cOdJloLh.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),Pxs=c0((()=>Cd((()=>import("./MagicLinkSignInScreen-Csaci2Yg.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),Y8t=c0((()=>Cd((()=>import("./NotFoundScreen-CSyRIHbc.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),Mxs=c0((()=>Cd((()=>import("./MagicLinkRoutes-CjOGoDmF.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),Oxs=c0((()=>Cd((()=>import("./PaymentLinkScreen-_UAo_fsM.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),Fxs=c0((()=>Cd((()=>import("./WiseConfirmationScreen-iFg0baoI.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),Rxs=c0((()=>Cd((()=>import("./HubSpotOAuthCallbackScreen-CqtvTlMw.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),zxs=c0((()=>Cd((()=>import("./CustomerOnboardingAuthScreen-DxbrkI4o.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),Nxs=c0((()=>Cd((()=>import("./SignOutScreen-D3furmi9.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),_xs=c0((()=>Cd((()=>import("./OAuthConsentScreen-BGX1agKv.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),Vxs=()=>{const e=Mg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=Ixs("/",n);return tn.jsx(fwt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function Hxs(){const{isOpen:e}=LS(),n=cci(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Fke(),s=m.useRef(!1),l=m.useRef(i),c=m.useRef(!1);return m.useLayoutEffect((()=>{const d=i&&!l.current;l.current=i,d&&e&&(r(!1),n(),c.current=!0)}),[i,e,r,n]),m.useEffect((()=>{e&&!s.current&&(c.current=!1,i&&r(!1)),s.current=e}),[e,i,r]),m.useEffect((()=>{!e&&c.current&&(c.current=!1,r(!0))}),[e,r]),null}const Uxs=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Ir.isSignedIn(),r=zr((j=>Fp(j))),s=Ir.getSignedInUser(),l=i&&fz(s),c=zr((j=>Ssn(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Tp(),p=Vd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=nin(),g=Qke(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=gs(),{isFeatureEnabled:v}=C(yl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(ksn())}),[u,h]);const S=Mg().pathname.includes("/collect-payment/"),k=tn.jsx(Wxs,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return tn.jsx(jUe,{children:tn.jsx(d2t,{children:tn.jsx(q9e.Provider,{value:w,children:k})})});const $=tn.jsxs(q9e.Provider,{value:w,children:[tn.jsx(Hxs,{}),tn.jsxs(Gxs,{children:[tn.jsx(Txs,{tenantEmailDomain:e}),tn.jsx(Qxs,{children:k})]})]});return tn.jsx(jUe,{children:r.tenantId!=null?tn.jsx(Ypa,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${z5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${z5.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):tn.jsx(d2t,{children:$})})},Wxs=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=zr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=gs(),{configValue:c}=l(H5.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}=Nke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Fke();return m.useEffect((()=>{h(oin.APP_INITIALIZATION)}),[h]),tn.jsx(m.Suspense,{fallback:null,children:tn.jsx(Exs,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:tn.jsxs(don,{children:[tn.jsx(H1,{path:"/magic_links/*",element:tn.jsx(Mxs,{})}),tn.jsx(H1,{path:"/collect-payment/:namespace/:token",element:tn.jsx(Oxs,{})}),tn.jsx(H1,{path:"/wise/callback/link-account/*",element:tn.jsx(Fxs,{})}),tn.jsx(H1,{path:"/page-not-found",element:tn.jsx(Y8t,{})}),tn.jsx(H1,{path:"/",element:tn.jsx(Dxs,{})}),tn.jsx(H1,{path:"/aicfo",element:tn.jsx(Vxs,{})}),tn.jsx(H1,{path:"/onboarding/auth",element:tn.jsx(zxs,{})}),tn.jsx(H1,{path:"/:tenantEmailDomain/*",element:tn.jsx(Kxs,{children:tn.jsxs(N5s,{children:[tn.jsxs(Zxs,{children:[s!=null?tn.jsx(vxs,{}):null,n?tn.jsx(Q8t,{setTenantEmailDomain:e}):tn.jsx(S5e,{children:tn.jsx(Q8t,{setTenantEmailDomain:e})})]}),i?tn.jsxs(tn.Fragment,{children:[tn.jsx(x5s,{}),tn.jsx(Jxs,{isOpen:g,children:tn.jsx(pxs,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),tn.jsx(H1,{path:"/signin/auth",element:tn.jsx(S5e,{children:tn.jsx(Bxs,{setTenantEmailDomain:e})})}),tn.jsx(H1,{path:"/signin/magic-link",element:tn.jsx(S5e,{children:tn.jsx(Pxs,{})})}),tn.jsx(H1,{path:"/signout",element:tn.jsx(Nxs,{})}),tn.jsx(H1,{path:"/connection/auth",element:tn.jsx(Lxs,{})}),tn.jsx(H1,{path:"/oauth/hubspot/callback",element:tn.jsx(Rxs,{})}),tn.jsx(H1,{path:"/oauth/authorize",element:tn.jsx(_xs,{})}),tn.jsx(H1,{path:"*",element:tn.jsx(Y8t,{})})]})})})},Qxs=({children:e})=>{const{isOpen:n,width:i}=LS();return tn.jsx(qxs,{commentsDrawerWidth:n?i:0,children:e})},Yxs=sS("div")`
|
|
91810
|
+
`,vxs=()=>{const[e,n]=m.useState((()=>Ir.getSignedInUser())),i=Tp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=zr((g=>CCt(g).fetchState)),u=zr((g=>Fp(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Ir.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{u?.companyId!=null&&d==="Not-Started"&&i(Asn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return tn.jsxs(m.Fragment,{children:[l&&tn.jsx(Ive,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?tn.jsx(wxs,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},V8t="init-enter",Axs=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||V8t);Sxs(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||V8t,c=kxs();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),Sxs=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),kxs=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},c0=e=>m.lazy((async()=>{const n=e.toString(),i=Ir.getForceRefreshedComponents(),r=new Set(i),s=Ir.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Ir.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Ir.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),cvs=(e,n,i)=>{const r=l8e(e),s=yee(e),l=c8e(i,e);return(n||i||s||r||l)&&a8e(e.company)},Ein=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Iin=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Din=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Tin=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function xc(...e){const n=Nl==="DEV"||Nl==="QA";if(Ein||Iin||Din||Tin)return void console.log(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.log(...e)}function QI(...e){const n=Nl==="DEV"||Nl==="QA";if(Ein||Iin||Din||Tin)return void console.warn(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.warn(...e)}let _$=null,DM=!1;const yc=Nl==="PROD"?"https://api.zeni.ai":Nl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function H8t(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=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:`${yc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${yc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const jxs={dashboard:function(e){return[...H8t()]},reports:H8t,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})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${yc}/accounting/2.0/reports/profit_and_loss?query=${r}`,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:`${yc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${yc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${yc}/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:`${yc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${yc}/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:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${yc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${yc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${yc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${yc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function U8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,jxs[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(xc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(xc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(xc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return xc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function W8t(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(xc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void QI("[Prefetch Manager - Service Worker] No active Service Worker available");const l=(function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort(((h,g)=>p[h.priority]-p[g.priority]))})(e);xc("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:l.length,high:l.filter((u=>u.priority==="HIGH")).length,medium:l.filter((u=>u.priority==="MEDIUM")).length,low:l.filter((u=>u.priority==="LOW")).length,batchSize:n>0?n:"disabled",expirationTime:i??"20 minutes",viaController:!!navigator.serviceWorker.controller}),l.forEach(((u,p)=>{xc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),xc(` URL: ${u.url}`)}));const c=See(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};s.postMessage({type:"PREFETCH_URLS",payload:{urls:l.map((u=>({url:u.url,priority:u.priority,apiType:u.apiType}))),authHeaders:d,batchSize:n,expirationTime:i}}),xc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){QI("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else QI("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function $xs({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Mg(),S=Ir.getSignedInUser(),{useFeatureGate:k}=gs(),{isFeatureEnabled:$}=k(yl.isReferralFeatureEnabled),j=Ln(),I=A7(j?.loggedInUserRole??[]),E=zr((_=>Fp(_))),{isFeatureEnabled:D}=k(yl.isDebitCardFeatureEnabled),L=c8e(D,E),O=l8e(E),N=L===!1&&O===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=U8t({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(_.length===0)return void xc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);xc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{W8t(_,r,s).catch((M=>{QI(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;xc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;xc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const F=()=>{DM&&(xc("[Idle Detection - Service Worker] 🏃 User became active again"),DM=!1),_$&&clearTimeout(_$),_$=setTimeout((()=>{DM||(xc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),DM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,F,!0)})),F(),()=>{xc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),_$&&(clearTimeout(_$),_$=null),H.forEach((V=>{document.removeEventListener(V,F,!0)})),DM=!1}})({timeout:h,onIdle:()=>{if(b)return;xc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=U8t({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(xc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),W8t(z,r,s).catch((M=>{QI(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):xc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=_,()=>{C.current&&(C.current(),C.current=null)}}),[c,d,h,S,i,b,n,u,p,$,I,N,E.companyId,g,r,s]),m.useEffect((()=>{w(!1)}),[i]),m.useEffect((()=>{(function(){const _=performance.getEntriesByType("navigation");if(_.length>0)return _[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(xc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const _=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||_.active;if(!z)return;xc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){QI("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),tn.jsx(tn.Fragment,{children:e})}function Exs({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Mg(),u=zr((y=>Fp(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=gs(),{isFeatureEnabled:x}=f(yl.isServiceWorkerPrefetchingEnabled);return g&&p?tn.jsx($xs,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):tn.jsx(tn.Fragment,{children:e})}function Ixs(e,n){const i=Fi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const Dxs=c0((()=>Cd((()=>import("./DefaultTenantHome-C-xDsqWH.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),Txs=c0((()=>Cd((()=>import("./AppDrawer-B6XGm--J.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),Q8t=c0((()=>Cd((()=>import("./ScreenRoutes-BXmr-cb0.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),Lxs=c0((()=>Cd((()=>import("./ConnectionAuthScreen-H57FpfA5.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),Bxs=c0((()=>Cd((()=>import("./SignInScreen-iAhBMOUT.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),Pxs=c0((()=>Cd((()=>import("./MagicLinkSignInScreen-C6hfbFq3.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),Y8t=c0((()=>Cd((()=>import("./NotFoundScreen-C9HgOUVr.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),Mxs=c0((()=>Cd((()=>import("./MagicLinkRoutes-Dj9i4Hr2.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),Oxs=c0((()=>Cd((()=>import("./PaymentLinkScreen-C6K4l799.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),Fxs=c0((()=>Cd((()=>import("./WiseConfirmationScreen-BLzh4txk.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),Rxs=c0((()=>Cd((()=>import("./HubSpotOAuthCallbackScreen-BtBx3Urb.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),zxs=c0((()=>Cd((()=>import("./CustomerOnboardingAuthScreen-Bga-XNUf.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),Nxs=c0((()=>Cd((()=>import("./SignOutScreen-MC6Mvo1b.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),_xs=c0((()=>Cd((()=>import("./OAuthConsentScreen-B3Frt3xZ.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),Vxs=()=>{const e=Mg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=Ixs("/",n);return tn.jsx(fwt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function Hxs(){const{isOpen:e}=LS(),n=cci(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Fke(),s=m.useRef(!1),l=m.useRef(i),c=m.useRef(!1);return m.useLayoutEffect((()=>{const d=i&&!l.current;l.current=i,d&&e&&(r(!1),n(),c.current=!0)}),[i,e,r,n]),m.useEffect((()=>{e&&!s.current&&(c.current=!1,i&&r(!1)),s.current=e}),[e,i,r]),m.useEffect((()=>{!e&&c.current&&(c.current=!1,r(!0))}),[e,r]),null}const Uxs=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Ir.isSignedIn(),r=zr((j=>Fp(j))),s=Ir.getSignedInUser(),l=i&&fz(s),c=zr((j=>Ssn(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Tp(),p=Vd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=nin(),g=Qke(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=gs(),{isFeatureEnabled:v}=C(yl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(ksn())}),[u,h]);const S=Mg().pathname.includes("/collect-payment/"),k=tn.jsx(Wxs,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return tn.jsx(jUe,{children:tn.jsx(d2t,{children:tn.jsx(q9e.Provider,{value:w,children:k})})});const $=tn.jsxs(q9e.Provider,{value:w,children:[tn.jsx(Hxs,{}),tn.jsxs(Gxs,{children:[tn.jsx(Txs,{tenantEmailDomain:e}),tn.jsx(Qxs,{children:k})]})]});return tn.jsx(jUe,{children:r.tenantId!=null?tn.jsx(Ypa,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${z5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${z5.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):tn.jsx(d2t,{children:$})})},Wxs=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=zr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=gs(),{configValue:c}=l(H5.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}=Nke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Fke();return m.useEffect((()=>{h(oin.APP_INITIALIZATION)}),[h]),tn.jsx(m.Suspense,{fallback:null,children:tn.jsx(Exs,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:tn.jsxs(don,{children:[tn.jsx(H1,{path:"/magic_links/*",element:tn.jsx(Mxs,{})}),tn.jsx(H1,{path:"/collect-payment/:namespace/:token",element:tn.jsx(Oxs,{})}),tn.jsx(H1,{path:"/wise/callback/link-account/*",element:tn.jsx(Fxs,{})}),tn.jsx(H1,{path:"/page-not-found",element:tn.jsx(Y8t,{})}),tn.jsx(H1,{path:"/",element:tn.jsx(Dxs,{})}),tn.jsx(H1,{path:"/aicfo",element:tn.jsx(Vxs,{})}),tn.jsx(H1,{path:"/onboarding/auth",element:tn.jsx(zxs,{})}),tn.jsx(H1,{path:"/:tenantEmailDomain/*",element:tn.jsx(Kxs,{children:tn.jsxs(N5s,{children:[tn.jsxs(Zxs,{children:[s!=null?tn.jsx(vxs,{}):null,n?tn.jsx(Q8t,{setTenantEmailDomain:e}):tn.jsx(S5e,{children:tn.jsx(Q8t,{setTenantEmailDomain:e})})]}),i?tn.jsxs(tn.Fragment,{children:[tn.jsx(x5s,{}),tn.jsx(Jxs,{isOpen:g,children:tn.jsx(pxs,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),tn.jsx(H1,{path:"/signin/auth",element:tn.jsx(S5e,{children:tn.jsx(Bxs,{setTenantEmailDomain:e})})}),tn.jsx(H1,{path:"/signin/magic-link",element:tn.jsx(S5e,{children:tn.jsx(Pxs,{})})}),tn.jsx(H1,{path:"/signout",element:tn.jsx(Nxs,{})}),tn.jsx(H1,{path:"/connection/auth",element:tn.jsx(Lxs,{})}),tn.jsx(H1,{path:"/oauth/hubspot/callback",element:tn.jsx(Rxs,{})}),tn.jsx(H1,{path:"/oauth/authorize",element:tn.jsx(_xs,{})}),tn.jsx(H1,{path:"*",element:tn.jsx(Y8t,{})})]})})})},Qxs=({children:e})=>{const{isOpen:n,width:i}=LS();return tn.jsx(qxs,{commentsDrawerWidth:n?i:0,children:e})},Yxs=sS("div")`
|
|
91811
91811
|
display:flex;
|
|
91812
91812
|
`,Gxs=sS("div")`
|
|
91813
91813
|
display: flex;
|
|
@@ -91929,4 +91929,4 @@ ${xM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
91929
91929
|
}
|
|
91930
91930
|
`,x7s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?tn.jsxs(p7s,{style:n,children:[tn.jsxs(h7s,{children:[tn.jsx(vG,{children:tn.jsx(Rm,{width:96,height:20})}),tn.jsxs(vG,{children:[tn.jsx(Rm,{width:55,height:12}),tn.jsx(Rm,{width:78,height:16}),tn.jsx(Rm,{width:46,height:16})]}),tn.jsxs(vG,{children:[tn.jsx(Rm,{width:55,height:12}),tn.jsx(Rm,{width:110,height:16}),tn.jsx(Rm,{width:84,height:16})]}),tn.jsxs(vG,{children:[tn.jsx(Rm,{width:55,height:12}),tn.jsx(Rm,{width:84,height:16}),tn.jsx(Rm,{width:64,height:16})]})]}),tn.jsxs(m7s,{children:[tn.jsxs(g7s,{children:[tn.jsx(Rm,{width:106,height:27}),tn.jsx(Rm,{width:111,height:32})]}),tn.jsx(f7s,{children:tn.jsx(u7s,{width:96,height:96})})]})]}):null;function y7s({minDisplayTime:e=0}){const{isLoading:n}=Nke(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),Ir.isSignedIn()===!1&&document.querySelector("#app-shell-loader")?.remove(),n)i||(r(!0),l.current=Date.now());else if(!n&&i){document.querySelector("#app-shell-loader")?.remove();const c=l.current;if(c!=null){const d=Date.now()-c,u=Math.max(0,e-d);s.current=setTimeout((()=>{r(!1),l.current=null}),u)}else r(!1)}}),[n,i,e]),m.useEffect((()=>()=>{s.current&&clearTimeout(s.current)}),[]),!n&&i||!i?null:tn.jsx(x7s,{fetchState:"In-Progress"})}const b7s=()=>{const[e,n]=m.useState((()=>Ir.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(Ir.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},K8t="missing-receipts-batch-completed";let Z9e=null,J9e=!1;function uvs(e,n){if(!n)return Z9e=null,void(J9e=!1);Z9e=e,J9e=!0}const w7s=()=>{const e=Tp(),{useFeatureGate:n}=gs(),{isFeatureEnabled:i}=n(yl.isReconV3Enabled),r=zr((l=>vCt(l)?.reconciliation?.accountReconciliationsByAccountID)),s=m.useRef({});m.useEffect((()=>{i===!0&&r!=null&&Object.entries(r).forEach((([l,c])=>{const d=c.statementParseStatus.fetchState,u=s.current[l]??"Not-Started";c.statementProcessingDismissedToBackground!==!0||(function(p){return J9e&&Z9e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(xCt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:Ios(c)},{variableName:"_transaction_count_",variableValue:String(Dos(c))}]})),s.current[l]=d}))}),[r,e,i])},Z8t="reconciliation-status-updated",J8t="statement-status-updated",X8t="combined-statement-group-updated";function C7s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function v7s(e,n,i,r,s,l){const c=i.account_id;if(c==null||c==="")return;const d=i.new_statement_data_status?.code;if(d==="deleting"||(e(ACt(n,c,!0,!0)),r!==!0))return;const u=i.statement_upload_id,p=u!=null&&u!=="",h=d==="parsed_awaiting_mapping"&&s===!0&&p===!0,g=d==="processed"&&p===!0&&(s!==!0||(function(f,x,y){return f!=null&&Object.values(f.accountReconciliationsByAccountID).some((b=>{const w=b.confirmedCombinedStatementUploads;if((w?.length??0)===0)return!1;const C=y!=null&&y!==""&&w?.some((S=>S.statementUploadId===y))===!0,v=w?.some((S=>S.accountId===x))===!0;return C===!0||v===!0}))})(l,c,u)!==!0);h!==!0&&g!==!0||e(Dsn({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(SCt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function A7s(e,n,i,r,s,l){if(r!==!0||s!==!0)return;const c=i.group_status;if(c!=="processed"&&c!=="processing_failed")return;const d=(function(u,p){const h=p.combined_statement_group_id?.trim();if(u==null||h==null||h==="")return;const g=p.statement_upload_id?.trim()??"",f=Object.entries(u.accountReconciliationsByAccountID),x=(y,b)=>{const w=(function(C,v){return v!==""?v:C.confirmedCombinedStatementUploads?.find((S=>S.isCombinedStatementAnchor===!0))?.statementUploadId??C.confirmedCombinedStatementUploads?.[0]?.statementUploadId??C.accountReconEntity.statementMetaData?.statementUploadId??C.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??""})(b,g);if(w!=="")return{accountId:y,combinedStatementGroupId:h,statementUploadId:w}};for(const[y,b]of f){if(C7s(b)!==h)continue;const w=x(y,b);if(w!=null)return w}for(const[y,b]of f){const w=(b.confirmedCombinedStatementUploads?.length??0)>0,C=b.localData?.statementAccountScope==="multi_account";if(w!==!0&&C!==!0)continue;const v=x(y,b);if(v!=null)return v}})(l,i);d!=null&&(e(ACt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Tsn({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):SCt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function S7s(){let e=q8t();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(z5)}`);const n=Ir.getSignedInUser(),i=n!=null?(function(){const l=window.location.pathname.split("/").filter(Boolean)[0],c=["signin","signout"];if(l!=null&&!c.includes(l)){const u=Ir.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return Ir.getActiveTenantForUser()?.tenantId})():void 0,r=Psn(z5,n?.userId,n?.zeniSessionId,i,UI(),$7s);L5e();const s=See();return s.userId!=null&&U0.identify(s.userId,{tenant_id:s.tenantId}),r})(),Bin=e,L5e().then((()=>{const n=q8t();n!=null&&(nb.reset(),c7s(n))})).catch((n=>{console.error("Failed to load feature epics:",n),Hin(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
91931
91931
|
|
|
91932
|
-
Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const AG=new Lsn,ewt=()=>{const e=Tp(),n=Ir.getSignedInUser(),i=zr((L=>Fp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:O}=gs(),{configValue:N,isDynamicConfigLoading:_}=O(iCe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return kW;const T=Rut(N.users_disabled_for_auto_logout),M=Rut(N.users_enabled_for_auto_logout),F=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),V=!H&&M.includes(L);return{heartbeatIntervalMinutes:Fge(N.heartbeat_interval_minutes,kW.heartbeatIntervalMinutes),idleTimeoutMinutes:Fge(N.idle_timeout_minutes,kW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||F),warningDurationSeconds:Fge(N.warning_duration_seconds,kW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(O){try{sessionStorage.setItem(Tve,"auto-logout"),sessionStorage.setItem(Lve,String(O.idleTimeoutMinutes)),sessionStorage.setItem(Bve,String(Date.now())),cF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(LFt(),cF=void 0),s(null),AG.stop(),e(Msn()),e(Osn(!1)),Ir.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return AG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(Fsn()),onWarningStart:L=>{U0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{U0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>AG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=zr((L=>Rsn(L,i.companyId))),u=Vd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(xje())}),[]);const h=zr((L=>zsn(L)));(()=>{const L=cee(),O=Tp(),{useFeatureGate:N}=gs(),{isFeatureEnabled:_}=N(yl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Ir.getSignedInUser()?.userId;if(z==null)return;const T=WI(L,z),M=F=>{O(Isn({batchId:F.batch_id,progress:F.progress,status:F.status.toLowerCase()}))};return T.bind(K8t,M),()=>{T.unbind(K8t,M)}}),[L,O,_])})(),(()=>{const L=cee(),O=Tp(),{useFeatureGate:N}=gs(),{isFeatureEnabled:_}=N(yl.isReconV3Enabled),{isFeatureEnabled:z}=N(yl.isReconciliationCombinedStatementEnabled),T=zr((Y=>Fp(Y)?.companyId)),M=zr((Y=>vCt(Y))),F=M?.selectedPeriod,H=M?.reconciliation,V=F?.month,W=F?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||V==null||W==null)return;const Y={month:V,year:W},q=WI(L,T),K=ee=>{v7s(O,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{A7s(O,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(Z8t,K),q.bind(J8t,K),q.bind(X8t,J),()=>{q.unbind(Z8t,K),q.unbind(J8t,K),q.unbind(X8t,J)}}),[L,O,_,z,T,V,W])})(),w7s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>Nsn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,O)=>{var N;N=O,N?.data!=null&&e(_sn(O))}},y=m.useMemo((()=>Ir.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=gs(),{isFeatureEnabled:C}=w(yl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(yl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(yl.isInvoicingFeatureEnabled),k=fma(),$=i?.userRole!=null&&ms(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Nl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&Twt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>l7s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:U0,sentry:Uin,authParams:b,resolveDeepLink:E})),[b,E]);return tn.jsxs(mNn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[tn.jsx(aNn,{toolkit:D,children:tn.jsxs(fzn,{endPoint:{url:Pke},children:[tn.jsx(xir,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(xje())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),tn.jsx(Xxs,{...x})]})}),r!=null&&n!=null?tn.jsx(q4s,{secondsRemaining:r,onContinueSession:()=>{U0.trackSessionTimeoutClicked("continue",r),AG.continueSession()},onSignOut:()=>{U0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},k7s=()=>{const e=Ir.isSignedIn(),n=zr((c=>Fp(c))).companyId,i=zr((c=>Bsn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=b7s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:L8t,featureClientSecret:Qs.featureClientSecret,providerEndPoint:hz.statsigBaseUrl})),[L8t,Qs.featureClientSecret,hz.statsigBaseUrl]);return n?tn.jsx(YHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:tn.jsx(ewt,{})}):tn.jsx(ewt,{})},j7s=Vin((function(){const e=m.useMemo((()=>S7s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{L5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),tn.jsx(e7s,{children:tn.jsx(uon,{store:e,children:tn.jsx(d7s,{value:n,children:tn.jsxs(b5s,{children:[tn.jsx(y7s,{}),tn.jsx(jyn,{children:tn.jsx(G5s,{children:tn.jsxs(oNn,{children:[r?tn.jsx(dli,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,tn.jsx(k7s,{})]})})})]})})})})}));function $7s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const E7s=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),twt=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function nwt(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const Min="zeni:env-keys:",dee=`${Min}${Nl}:5.3.98-dev-d67c9df2c`,iwt="zeni.ai";function I7s(e){return Oin(e)}function owt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(I7s)}const k5e="o4504609050525696",D7s={SENTRY_DSN:[`${k5e}.ingest.sentry.io`,`${k5e}.ingest.us.sentry.io`,`${k5e}.ingest.de.sentry.io`],QBO_URL:["app.qbo.intuit.com","app.sandbox.qbo.intuit.com"],MIXPANEL_URL:["mixpanel.com","api.mixpanel.com"],MIXPANEL_HM_URL:["mixpanel.com","api.mixpanel.com"]},T7s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,L7s=["WEB_ENDPOINT"];function Oin(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===iwt||n.hostname.endsWith(`.${iwt}`))}const B7s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],P7s=/^[A-Za-z0-9_-]+$/,M7s=Object.keys({accountMicroServiceBaseUrl:!0,agentPerfBaseUrl:!0,aiCfoMicroServiceBaseUrl:!0,approvalMicroServiceBaseUrl:!0,authMicroServiceBaseUrl:!0,bankingMicroServiceBaseUrl:!0,cardMicroServiceBaseUrl:!0,communicationAgentMicroServiceBaseUrl:!0,documentAIMicroServiceBaseUrl:!0,fileMicroServiceBaseUrl:!0,insightsMicroServiceBaseUrl:!0,invoicingMicroServiceBaseUrl:!0,noAuthMicroServiceBaseUrl:!0,notificationMicroServiceBaseUrl:!0,payMicroServiceBaseUrl:!0,reconciliationMicroServiceBaseUrl:!0,searchMicroServiceBaseUrl:!0,spendManagementMicroServiceBaseUrl:!0,taskMicroServiceBaseUrl:!0,tenantMicroServiceBaseUrl:!0}),O7s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),F7s=/^pk_(live|test)_[A-Za-z0-9]+$/,R7s=/^[A-Za-z0-9_.-]+$/,z7s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function N7s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!owt(n.apiEndPoints)||!owt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(M7s.some((h=>i[h]==null))||O7s.some((h=>r[h]==null)))return!1;const s=n.keys;if(typeof s!="object"||s==null||Array.isArray(s))return!1;const l=s,c=Object.entries(D7s).every((([h,g])=>{const f=l[h];return f==null||(function(x,y){if(typeof x!="string"||x.length===0)return!1;let b;try{b=new URL(x)}catch{return!1}return b.protocol==="https:"&&y.includes(b.hostname)})(f,g)})),d=B7s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&P7s.test(g)})),u=L7s.every((h=>{const g=l[h];return g==null||(function(f){if(Oin(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&T7s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&F7s.test(l.STRIPE_KEY))&&z7s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&R7s.test(g)}));return c&&d&&u&&p}function j5e(){try{window.localStorage.removeItem(dee)}catch{}}function _7s(e){try{window.localStorage.setItem(dee,JSON.stringify({payload:e,storedAt:Date.now()})),(function(){try{const n=[];for(let i=0;i<window.localStorage.length;i+=1){const r=window.localStorage.key(i);r!=null&&r.startsWith(Min)&&r!==dee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Fin(e){if(e==null||e==="")return null;try{const n=JSON.parse(Fnn(e,Rnn+Nl));return N7s(n)?n:null}catch{return null}}function rwt(e){return Fin(e)!=null&&(_7s(e),!0)}const awt="zeni-chunk-reload-at",V7s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function swt(e){try{const n=Number(sessionStorage.getItem(awt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(awt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let $5e=!1,lwt=null;const cwt="//js.hs-scripts.com/5991084.js",dwt="hs-script-loader",H7s=Ir.getSignedInUser(),U7s=H7s?.zeniSessionId;function W7s(){const e=()=>{const n=Qs.sentryDsn?.trim();if(!n)return;const i=Qs.sentryProfileSamplingRate>0,r=Nl==="PROD";Win({dsn:n,environment:d5s,tracesSampleRate:Qs.sentryTraceSamplingRate,profilesSampleRate:i?Qs.sentryProfileSamplingRate:0,integrations:[Qin(),...i?[Yin()]:[],...r?[Gin({maskAllText:!0,blockAllMedia:!0})]:[]],replaysSessionSampleRate:0,replaysOnErrorSampleRate:r?1:0,beforeSendTransaction:s=>(s.breadcrumbs&&(s.breadcrumbs=s.breadcrumbs.filter((l=>l.category!=="console"?!0:!(l.message??"").toLowerCase().includes("called people set")&&(!Array.isArray(l.data?.arguments)||!l.data.arguments.some((c=>typeof c=="string"&&c.toLowerCase().includes("called people set"))))&&(Array.isArray(l.data?.arguments)&&(l.data.arguments=l.data.arguments.map((c=>{if(typeof c=="string"&&c.includes("user_roles"))try{const d=c.match(/\{.*\}/s);if(d!==null){const u=JSON.parse(d[0]);if(u.user_roles!=null)return delete u.user_roles,c.replace(d[0],JSON.stringify(u))}}catch{}return c}))),!0)))),s)}),qin("session-id",U7s),(function(){if(nK==null)return;const s=nK;nK=void 0;try{if(window.sessionStorage.getItem(uwt)!=null)return;window.sessionStorage.setItem(uwt,s)}catch{}Kin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.98-dev-d67c9df2c"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function Rin(){uln.createRoot(document.getElementById("root")).render(tn.jsx(B.StrictMode,{children:tn.jsx(pon,{children:tn.jsx(j7s,{})})})),W7s()}let nK;function X9e(e){nK=e}const uwt="zeni:env-keys-rejection-reported";function Q7s(){const e=(function(){try{const i=window.localStorage.getItem(dee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return j5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(j5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Fin(e);return n==null?(X9e("untrusted-or-unreadable"),j5e(),!1):(Nnn(n),Rin(),!0)}var LC;window.addEventListener("vite:preloadError",(e=>{const n=e;swt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return V7s.some((r=>i.includes(r)))})(e.reason)&&swt(e.reason)})),(async function(){try{if(Q7s())return void(async function(){const i=await B8t();typeof i=="string"&&i.length>0&&!rwt(i)&&X9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await B8t(),n=Fnn(e,Rnn+Nl);Nnn(JSON.parse(n)),rwt(e)||X9e("network-untrusted-payload"),Rin()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):lwt!==null||(lwt=new Promise((e=>{if($5e)return void e(!0);const n=()=>{$5e?e(!0):($5e=!0,new Promise(((r,s)=>{if(document.getElementById(dwt))return void r();const l=document.createElement("script");l.id=dwt,l.src=cwt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${cwt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;E7s?(e=twt,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):nwt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):nwt(twt)}))}})(),(LC=console.log)&&LC instanceof Function&&Cd((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(LC),n(LC),i(LC),r(LC),s(LC)}));export{yl as $,Z5s as A,Gke as B,exs as C,lvs as D,o as E,c0 as F,ae as G,FWi as H,Nl as I,Hve as J,c7s as K,oin as L,Fi as M,S6s as N,q8t as O,JCs as P,pys as Q,iLi as R,Xys as S,Qs as T,hys as U,Ln as V,k6s as W,i6s as X,Kn as Y,sys as Z,ge as _,Fke as a,d8s as a$,R9s as a0,Z2i as a1,ZCs as a2,z9s as a3,N9s as a4,xxs as a5,Eve as a6,u7s as a7,dWo as a8,R as a9,NCo as aA,j6s as aB,x9s as aC,f9s as aD,Q5 as aE,VQt as aF,y9s as aG,cys as aH,cee as aI,q5s as aJ,h8s as aK,m8s as aL,Jys as aM,Y9s as aN,t9s as aO,o9s as aP,GAe as aQ,K9s as aR,q9s as aS,i9s as aT,n9s as aU,Zys as aV,MPt as aW,LCs as aX,p8s as aY,c8s as aZ,u8s as a_,_9s as aa,ECs as ab,z5 as ac,P as ad,lys as ae,A9s as af,s6s as ag,w9s as ah,A6s as ai,GCs as aj,E6s as ak,R5s as al,Cin as am,evs as an,_5s as ao,z5s as ap,tvs as aq,g6s as ar,Ip as as,Pke as at,N8t as au,Tws as av,U8s as aw,Ei as ax,Jbs as ay,Zbs as az,Ixs as b,Ybs as b$,Gbs as b0,g9s as b1,zi as b2,aNn as b3,C9s as b4,Dbo as b5,$6s as b6,l$i as b7,xzt as b8,W9s as b9,Cys as bA,vys as bB,wys as bC,UI as bD,G9s as bE,mbs as bF,fbs as bG,gbs as bH,ubs as bI,dbs as bJ,xbs as bK,V9s as bL,pbs as bM,hbs as bN,bbs as bO,Es as bP,f8s as bQ,H9s as bR,$bs as bS,kbs as bT,VCs as bU,h9s as bV,OCs as bW,Tbs as bX,Dbs as bY,Hbs as bZ,Vbs as b_,U9s as ba,Q9s as bb,o6s as bc,In as bd,ya as be,yin as bf,H5 as bg,KCs as bh,lxs as bi,m6s as bj,f6s as bk,y8s as bl,Oke as bm,g5s as bn,e6s as bo,pPi as bp,hLt as bq,I6s as br,Q5s as bs,Ebs as bt,yys as bu,Ays as bv,RCe as bw,bys as bx,Lws as by,e9s as bz,b7s as c,r9s as c$,Qbs as c0,wbs as c1,Cbs as c2,b9s as c3,v9s as c4,vbs as c5,Abs as c6,Sbs as c7,Wbs as c8,Ubs as c9,vCs as cA,Gws as cB,st as cC,_ws as cD,Zi as cE,gCs as cF,Hws as cG,Yws as cH,fCs as cI,rCs as cJ,aCs as cK,sCs as cL,oCs as cM,lCs as cN,iCs as cO,x7s as cP,$ys as cQ,qbs as cR,Kbs as cS,Bws as cT,jbs as cU,QCs as cV,FCs as cW,s9s as cX,d9s as cY,l9s as cZ,uys as c_,ACs as ca,CCs as cb,Uws as cc,Jws as cd,Wws as ce,Ows as cf,zws as cg,xCs as ch,qws as ci,uCs as cj,pCs as ck,dCs as cl,Nws as cm,Qws as cn,jCs as co,SCs as cp,kCs as cq,yCs as cr,Kws as cs,wCs as ct,bCs as cu,Zws as cv,cCs as cw,Fws as cx,$Cs as cy,Vws as cz,Qke as d,Ibs as d$,a9s as d0,Ive as d1,u9s as d2,m9s as d3,K1s as d4,l0s as d5,K4e as d6,HCs as d7,UCs as d8,WCs as d9,kys as dA,jys as dB,R8s as dC,P8s as dD,B8s as dE,C8s as dF,M8s as dG,g8s as dH,Wpa as dI,$ws as dJ,Dws as dK,Mws as dL,Pws as dM,ICs as dN,Ios as dO,gys as dP,PCs as dQ,BCs as dR,uvs as dS,_Gi as dT,Xbs as dU,cci as dV,LS as dW,qJt as dX,YCs as dY,Afo as dZ,TCs as d_,_Cs as da,r6s as db,JYt as dc,T8s as dd,D8s as de,E8s as df,L8s as dg,I8s as dh,RCs as di,$8s as dj,j8s as dk,F8s as dl,w8s as dm,A8s as dn,Sys as dp,c9s as dq,cr as dr,ZUr as ds,v8s as dt,vin as du,x8s as dv,k8s as dw,b8s as dx,S8s as dy,O8s as dz,dvs as e,MCs as e0,Sws as e1,H8s as e2,V8s as e3,_8s as e4,j5s as e5,$5s as e6,AR as e7,Y5s as e8,txs as e9,Unn as ea,cxs as eb,n7e as ec,mnn as ed,hnn as ee,mys as ef,A5s as eg,k5s as eh,S5s as ei,u5s as ej,w5s as ek,Vnn as el,XCs as em,cvs as f,Ut as g,U0 as h,ivs as i,svs as j,lOt as k,avs as l,A as m,rvs as n,fma as o,qD as p,gs as q,Usi as r,X5s as s,nb as t,Nke as u,nvs as v,Sin as w,qCs as x,ovs as y,Ir as z};
|
|
91932
|
+
Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const AG=new Lsn,ewt=()=>{const e=Tp(),n=Ir.getSignedInUser(),i=zr((L=>Fp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:O}=gs(),{configValue:N,isDynamicConfigLoading:_}=O(iCe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return kW;const T=Rut(N.users_disabled_for_auto_logout),M=Rut(N.users_enabled_for_auto_logout),F=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),V=!H&&M.includes(L);return{heartbeatIntervalMinutes:Fge(N.heartbeat_interval_minutes,kW.heartbeatIntervalMinutes),idleTimeoutMinutes:Fge(N.idle_timeout_minutes,kW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||F),warningDurationSeconds:Fge(N.warning_duration_seconds,kW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(O){try{sessionStorage.setItem(Tve,"auto-logout"),sessionStorage.setItem(Lve,String(O.idleTimeoutMinutes)),sessionStorage.setItem(Bve,String(Date.now())),cF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(LFt(),cF=void 0),s(null),AG.stop(),e(Msn()),e(Osn(!1)),Ir.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return AG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(Fsn()),onWarningStart:L=>{U0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{U0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>AG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=zr((L=>Rsn(L,i.companyId))),u=Vd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(xje())}),[]);const h=zr((L=>zsn(L)));(()=>{const L=cee(),O=Tp(),{useFeatureGate:N}=gs(),{isFeatureEnabled:_}=N(yl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Ir.getSignedInUser()?.userId;if(z==null)return;const T=WI(L,z),M=F=>{O(Isn({batchId:F.batch_id,progress:F.progress,status:F.status.toLowerCase()}))};return T.bind(K8t,M),()=>{T.unbind(K8t,M)}}),[L,O,_])})(),(()=>{const L=cee(),O=Tp(),{useFeatureGate:N}=gs(),{isFeatureEnabled:_}=N(yl.isReconV3Enabled),{isFeatureEnabled:z}=N(yl.isReconciliationCombinedStatementEnabled),T=zr((Y=>Fp(Y)?.companyId)),M=zr((Y=>vCt(Y))),F=M?.selectedPeriod,H=M?.reconciliation,V=F?.month,W=F?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||V==null||W==null)return;const Y={month:V,year:W},q=WI(L,T),K=ee=>{v7s(O,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{A7s(O,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(Z8t,K),q.bind(J8t,K),q.bind(X8t,J),()=>{q.unbind(Z8t,K),q.unbind(J8t,K),q.unbind(X8t,J)}}),[L,O,_,z,T,V,W])})(),w7s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>Nsn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,O)=>{var N;N=O,N?.data!=null&&e(_sn(O))}},y=m.useMemo((()=>Ir.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=gs(),{isFeatureEnabled:C}=w(yl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(yl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(yl.isInvoicingFeatureEnabled),k=fma(),$=i?.userRole!=null&&ms(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Nl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&Twt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>l7s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:U0,sentry:Uin,authParams:b,resolveDeepLink:E})),[b,E]);return tn.jsxs(mNn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[tn.jsx(aNn,{toolkit:D,children:tn.jsxs(fzn,{endPoint:{url:Pke},children:[tn.jsx(xir,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(xje())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),tn.jsx(Xxs,{...x})]})}),r!=null&&n!=null?tn.jsx(q4s,{secondsRemaining:r,onContinueSession:()=>{U0.trackSessionTimeoutClicked("continue",r),AG.continueSession()},onSignOut:()=>{U0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},k7s=()=>{const e=Ir.isSignedIn(),n=zr((c=>Fp(c))).companyId,i=zr((c=>Bsn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=b7s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:L8t,featureClientSecret:Qs.featureClientSecret,providerEndPoint:hz.statsigBaseUrl})),[L8t,Qs.featureClientSecret,hz.statsigBaseUrl]);return n?tn.jsx(YHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:tn.jsx(ewt,{})}):tn.jsx(ewt,{})},j7s=Vin((function(){const e=m.useMemo((()=>S7s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{L5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),tn.jsx(e7s,{children:tn.jsx(uon,{store:e,children:tn.jsx(d7s,{value:n,children:tn.jsxs(b5s,{children:[tn.jsx(y7s,{}),tn.jsx(jyn,{children:tn.jsx(G5s,{children:tn.jsxs(oNn,{children:[r?tn.jsx(dli,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,tn.jsx(k7s,{})]})})})]})})})})}));function $7s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const E7s=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),twt=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function nwt(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const Min="zeni:env-keys:",dee=`${Min}${Nl}:5.3.98-qa-072e8adb2`,iwt="zeni.ai";function I7s(e){return Oin(e)}function owt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(I7s)}const k5e="o4504609050525696",D7s={SENTRY_DSN:[`${k5e}.ingest.sentry.io`,`${k5e}.ingest.us.sentry.io`,`${k5e}.ingest.de.sentry.io`],QBO_URL:["app.qbo.intuit.com","app.sandbox.qbo.intuit.com"],MIXPANEL_URL:["mixpanel.com","api.mixpanel.com"],MIXPANEL_HM_URL:["mixpanel.com","api.mixpanel.com"]},T7s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,L7s=["WEB_ENDPOINT"];function Oin(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===iwt||n.hostname.endsWith(`.${iwt}`))}const B7s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],P7s=/^[A-Za-z0-9_-]+$/,M7s=Object.keys({accountMicroServiceBaseUrl:!0,agentPerfBaseUrl:!0,aiCfoMicroServiceBaseUrl:!0,approvalMicroServiceBaseUrl:!0,authMicroServiceBaseUrl:!0,bankingMicroServiceBaseUrl:!0,cardMicroServiceBaseUrl:!0,communicationAgentMicroServiceBaseUrl:!0,documentAIMicroServiceBaseUrl:!0,fileMicroServiceBaseUrl:!0,insightsMicroServiceBaseUrl:!0,invoicingMicroServiceBaseUrl:!0,noAuthMicroServiceBaseUrl:!0,notificationMicroServiceBaseUrl:!0,payMicroServiceBaseUrl:!0,reconciliationMicroServiceBaseUrl:!0,searchMicroServiceBaseUrl:!0,spendManagementMicroServiceBaseUrl:!0,taskMicroServiceBaseUrl:!0,tenantMicroServiceBaseUrl:!0}),O7s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),F7s=/^pk_(live|test)_[A-Za-z0-9]+$/,R7s=/^[A-Za-z0-9_.-]+$/,z7s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function N7s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!owt(n.apiEndPoints)||!owt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(M7s.some((h=>i[h]==null))||O7s.some((h=>r[h]==null)))return!1;const s=n.keys;if(typeof s!="object"||s==null||Array.isArray(s))return!1;const l=s,c=Object.entries(D7s).every((([h,g])=>{const f=l[h];return f==null||(function(x,y){if(typeof x!="string"||x.length===0)return!1;let b;try{b=new URL(x)}catch{return!1}return b.protocol==="https:"&&y.includes(b.hostname)})(f,g)})),d=B7s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&P7s.test(g)})),u=L7s.every((h=>{const g=l[h];return g==null||(function(f){if(Oin(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&T7s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&F7s.test(l.STRIPE_KEY))&&z7s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&R7s.test(g)}));return c&&d&&u&&p}function j5e(){try{window.localStorage.removeItem(dee)}catch{}}function _7s(e){try{window.localStorage.setItem(dee,JSON.stringify({payload:e,storedAt:Date.now()})),(function(){try{const n=[];for(let i=0;i<window.localStorage.length;i+=1){const r=window.localStorage.key(i);r!=null&&r.startsWith(Min)&&r!==dee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function Fin(e){if(e==null||e==="")return null;try{const n=JSON.parse(Fnn(e,Rnn+Nl));return N7s(n)?n:null}catch{return null}}function rwt(e){return Fin(e)!=null&&(_7s(e),!0)}const awt="zeni-chunk-reload-at",V7s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function swt(e){try{const n=Number(sessionStorage.getItem(awt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(awt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let $5e=!1,lwt=null;const cwt="//js.hs-scripts.com/5991084.js",dwt="hs-script-loader",H7s=Ir.getSignedInUser(),U7s=H7s?.zeniSessionId;function W7s(){const e=()=>{const n=Qs.sentryDsn?.trim();if(!n)return;const i=Qs.sentryProfileSamplingRate>0,r=Nl==="PROD";Win({dsn:n,environment:d5s,tracesSampleRate:Qs.sentryTraceSamplingRate,profilesSampleRate:i?Qs.sentryProfileSamplingRate:0,integrations:[Qin(),...i?[Yin()]:[],...r?[Gin({maskAllText:!0,blockAllMedia:!0})]:[]],replaysSessionSampleRate:0,replaysOnErrorSampleRate:r?1:0,beforeSendTransaction:s=>(s.breadcrumbs&&(s.breadcrumbs=s.breadcrumbs.filter((l=>l.category!=="console"?!0:!(l.message??"").toLowerCase().includes("called people set")&&(!Array.isArray(l.data?.arguments)||!l.data.arguments.some((c=>typeof c=="string"&&c.toLowerCase().includes("called people set"))))&&(Array.isArray(l.data?.arguments)&&(l.data.arguments=l.data.arguments.map((c=>{if(typeof c=="string"&&c.includes("user_roles"))try{const d=c.match(/\{.*\}/s);if(d!==null){const u=JSON.parse(d[0]);if(u.user_roles!=null)return delete u.user_roles,c.replace(d[0],JSON.stringify(u))}}catch{}return c}))),!0)))),s)}),qin("session-id",U7s),(function(){if(nK==null)return;const s=nK;nK=void 0;try{if(window.sessionStorage.getItem(uwt)!=null)return;window.sessionStorage.setItem(uwt,s)}catch{}Kin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.98-qa-072e8adb2"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function Rin(){uln.createRoot(document.getElementById("root")).render(tn.jsx(B.StrictMode,{children:tn.jsx(pon,{children:tn.jsx(j7s,{})})})),W7s()}let nK;function X9e(e){nK=e}const uwt="zeni:env-keys-rejection-reported";function Q7s(){const e=(function(){try{const i=window.localStorage.getItem(dee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return j5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(j5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=Fin(e);return n==null?(X9e("untrusted-or-unreadable"),j5e(),!1):(Nnn(n),Rin(),!0)}var LC;window.addEventListener("vite:preloadError",(e=>{const n=e;swt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return V7s.some((r=>i.includes(r)))})(e.reason)&&swt(e.reason)})),(async function(){try{if(Q7s())return void(async function(){const i=await B8t();typeof i=="string"&&i.length>0&&!rwt(i)&&X9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await B8t(),n=Fnn(e,Rnn+Nl);Nnn(JSON.parse(n)),rwt(e)||X9e("network-untrusted-payload"),Rin()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):lwt!==null||(lwt=new Promise((e=>{if($5e)return void e(!0);const n=()=>{$5e?e(!0):($5e=!0,new Promise(((r,s)=>{if(document.getElementById(dwt))return void r();const l=document.createElement("script");l.id=dwt,l.src=cwt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${cwt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;E7s?(e=twt,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):nwt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):nwt(twt)}))}})(),(LC=console.log)&&LC instanceof Function&&Cd((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(LC),n(LC),i(LC),r(LC),s(LC)}));export{yl as $,Z5s as A,Gke as B,exs as C,lvs as D,o as E,c0 as F,ae as G,FWi as H,Nl as I,Hve as J,c7s as K,oin as L,Fi as M,S6s as N,q8t as O,JCs as P,pys as Q,iLi as R,Xys as S,Qs as T,hys as U,Ln as V,k6s as W,i6s as X,Kn as Y,sys as Z,ge as _,Fke as a,d8s as a$,R9s as a0,Z2i as a1,ZCs as a2,z9s as a3,N9s as a4,xxs as a5,Eve as a6,u7s as a7,dWo as a8,R as a9,NCo as aA,j6s as aB,x9s as aC,f9s as aD,Q5 as aE,VQt as aF,y9s as aG,cys as aH,cee as aI,q5s as aJ,h8s as aK,m8s as aL,Jys as aM,Y9s as aN,t9s as aO,o9s as aP,GAe as aQ,K9s as aR,q9s as aS,i9s as aT,n9s as aU,Zys as aV,MPt as aW,LCs as aX,p8s as aY,c8s as aZ,u8s as a_,_9s as aa,ECs as ab,z5 as ac,P as ad,lys as ae,A9s as af,s6s as ag,w9s as ah,A6s as ai,GCs as aj,E6s as ak,R5s as al,Cin as am,evs as an,_5s as ao,z5s as ap,tvs as aq,g6s as ar,Ip as as,Pke as at,N8t as au,Tws as av,U8s as aw,Ei as ax,Jbs as ay,Zbs as az,Ixs as b,Ybs as b$,Gbs as b0,g9s as b1,zi as b2,aNn as b3,C9s as b4,Dbo as b5,$6s as b6,l$i as b7,xzt as b8,W9s as b9,Cys as bA,vys as bB,wys as bC,UI as bD,G9s as bE,mbs as bF,fbs as bG,gbs as bH,ubs as bI,dbs as bJ,xbs as bK,V9s as bL,pbs as bM,hbs as bN,bbs as bO,Es as bP,f8s as bQ,H9s as bR,$bs as bS,kbs as bT,VCs as bU,h9s as bV,OCs as bW,Tbs as bX,Dbs as bY,Hbs as bZ,Vbs as b_,U9s as ba,Q9s as bb,o6s as bc,In as bd,ya as be,yin as bf,H5 as bg,KCs as bh,lxs as bi,m6s as bj,f6s as bk,y8s as bl,Oke as bm,g5s as bn,e6s as bo,pPi as bp,hLt as bq,I6s as br,Q5s as bs,Ebs as bt,yys as bu,Ays as bv,RCe as bw,bys as bx,Lws as by,e9s as bz,b7s as c,r9s as c$,Qbs as c0,wbs as c1,Cbs as c2,b9s as c3,v9s as c4,vbs as c5,Abs as c6,Sbs as c7,Wbs as c8,Ubs as c9,vCs as cA,Gws as cB,st as cC,_ws as cD,Zi as cE,gCs as cF,Hws as cG,Yws as cH,fCs as cI,rCs as cJ,aCs as cK,sCs as cL,oCs as cM,lCs as cN,iCs as cO,x7s as cP,$ys as cQ,qbs as cR,Kbs as cS,Bws as cT,jbs as cU,QCs as cV,FCs as cW,s9s as cX,d9s as cY,l9s as cZ,uys as c_,ACs as ca,CCs as cb,Uws as cc,Jws as cd,Wws as ce,Ows as cf,zws as cg,xCs as ch,qws as ci,uCs as cj,pCs as ck,dCs as cl,Nws as cm,Qws as cn,jCs as co,SCs as cp,kCs as cq,yCs as cr,Kws as cs,wCs as ct,bCs as cu,Zws as cv,cCs as cw,Fws as cx,$Cs as cy,Vws as cz,Qke as d,Ibs as d$,a9s as d0,Ive as d1,u9s as d2,m9s as d3,K1s as d4,l0s as d5,K4e as d6,HCs as d7,UCs as d8,WCs as d9,kys as dA,jys as dB,R8s as dC,P8s as dD,B8s as dE,C8s as dF,M8s as dG,g8s as dH,Wpa as dI,$ws as dJ,Dws as dK,Mws as dL,Pws as dM,ICs as dN,Ios as dO,gys as dP,PCs as dQ,BCs as dR,uvs as dS,_Gi as dT,Xbs as dU,cci as dV,LS as dW,qJt as dX,YCs as dY,Afo as dZ,TCs as d_,_Cs as da,r6s as db,JYt as dc,T8s as dd,D8s as de,E8s as df,L8s as dg,I8s as dh,RCs as di,$8s as dj,j8s as dk,F8s as dl,w8s as dm,A8s as dn,Sys as dp,c9s as dq,cr as dr,ZUr as ds,v8s as dt,vin as du,x8s as dv,k8s as dw,b8s as dx,S8s as dy,O8s as dz,dvs as e,MCs as e0,Sws as e1,H8s as e2,V8s as e3,_8s as e4,j5s as e5,$5s as e6,AR as e7,Y5s as e8,txs as e9,Unn as ea,cxs as eb,n7e as ec,mnn as ed,hnn as ee,mys as ef,A5s as eg,k5s as eh,S5s as ei,u5s as ej,w5s as ek,Vnn as el,XCs as em,cvs as f,Ut as g,U0 as h,ivs as i,svs as j,lOt as k,avs as l,A as m,rvs as n,fma as o,qD as p,gs as q,Usi as r,X5s as s,nb as t,Nke as u,nvs as v,Sin as w,qCs as x,ovs as y,Ir as z};
|