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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/assets/{AccountMappingScreen-9MHulU9s.js → AccountMappingScreen-DwvuPxiG.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-Db6bbB6u.js → ActualMatchingMatchDetailScreen-DB2vt93l.js} +1 -1
  3. package/dist/assets/{AddressRoutes-DHraPu2z.js → AddressRoutes-U-Igjb0g.js} +1 -1
  4. package/dist/assets/{AddressScreen-BOTH_mRu.js → AddressScreen-B2Yw497g.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-bjaeBeb9.js → AiCfoScreen-Dt-1vw-l.js} +1 -1
  6. package/dist/assets/{AppDrawer-UbqqLXJe.js → AppDrawer-DpiXvF-5.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-CYDv31qk.js → BillPayApprovalRoutes-D69ETszS.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-C4GXOC5A.js → BillPayRoutes-CPds1BD0.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-CqSHzLo6.js → BusinessVerificationPageScreen-Bj5HS2YE.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-DZorjbaf.js → CardsAiCfoScreen-DmL-gajW.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-C7tzEoGV.js → ChargeCardRoutes-B_zR29aP.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-DViAGsze.js → CompanyPassportScreen-DGb6Yq6z.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-yW3T26AI.js → ConnectionAuthScreen-Scq1RAZX.js} +1 -1
  14. package/dist/assets/{CustomerOnboardingAuthScreen-CEs020qJ.js → CustomerOnboardingAuthScreen-DBPwD9T8.js} +1 -1
  15. package/dist/assets/{CustomerOnboardingRoutes-B2flxgjR.js → CustomerOnboardingRoutes-Bj1GCVXL.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-D6igUQ_c.js → DashboardRoutes-BCTZA9mN.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-CMpQllfi.js → DefaultTenantHome-CSjiBXma.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-D-XdJZt2.js → DomesticWireDetailScreen-B7VBfU-3.js} +1 -1
  19. package/dist/assets/{DrawerScreen-DquM7PdJ.js → DrawerScreen-ClrdVCCO.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-B7vzEsHl.js → EntityDetailRoutes-D7Bqe8BM.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-o1rALTgt.js → ExpenseAutomationRoutes-igRkAnbp.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-B0SxkBd3.js → FeaturePreviewScreen-DhTxH7hT.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-CYGRU6le.js → HubSpotOAuthCallbackScreen-BfArfDqI.js} +1 -1
  24. package/dist/assets/{InvoicingRoutes-BroIFZYm.js → InvoicingRoutes-CjRz4cvO.js} +1 -1
  25. package/dist/assets/{MagicLinkRoutes-BYZevXyH.js → MagicLinkRoutes-ClEmimUi.js} +1 -1
  26. package/dist/assets/{MagicLinkSignInScreen-DqgSvyNq.js → MagicLinkSignInScreen-2NCXrWHu.js} +1 -1
  27. package/dist/assets/{MobileAppDrawer-C6gfQS8M.js → MobileAppDrawer-CkAqUMcV.js} +1 -1
  28. package/dist/assets/{NotFoundScreen-0hF8kIyY.js → NotFoundScreen-E3epqX_z.js} +1 -1
  29. package/dist/assets/{NotificationRoutes-BRYauJLR.js → NotificationRoutes-DEXWCADI.js} +1 -1
  30. package/dist/assets/{OAuthConsentScreen-B_ncopNh.js → OAuthConsentScreen-HzQDmJ8X.js} +1 -1
  31. package/dist/assets/{PandLWithForecastRoutes-BU_XWD0n.js → PandLWithForecastRoutes-D73H40mU.js} +1 -1
  32. package/dist/assets/{PaymentLinkScreen-6qwvkVJe.js → PaymentLinkScreen-bt7t9bCe.js} +1 -1
  33. package/dist/assets/{PeopleRoutes-BT10_5ZZ.js → PeopleRoutes-D9tzSJsY.js} +1 -1
  34. package/dist/assets/{PerformanceRoutes-DEM0F09k.js → PerformanceRoutes-fuuCPMn7.js} +1 -1
  35. package/dist/assets/{QBOConnectionScreen-CPdRdNFp.js → QBOConnectionScreen-Bsh-fBsy.js} +1 -1
  36. package/dist/assets/{ReimbursementApprovalRoutes-kSFV0KaQ.js → ReimbursementApprovalRoutes-9DFfV2re.js} +1 -1
  37. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CD8m8c7W.js → ReimbursementApprovalRuleDetailScreen-vcFOelkD.js} +1 -1
  38. package/dist/assets/{ReimbursementRoutes-B7HRPmdv.js → ReimbursementRoutes-BCUAr5_X.js} +1 -1
  39. package/dist/assets/{ReportsRoutes-CkYyyTje.js → ReportsRoutes-DGJiwRrg.js} +1 -1
  40. package/dist/assets/{RewardsRoutes-kEA_DefW.js → RewardsRoutes-De3wbLQM.js} +1 -1
  41. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DH-G2ABB.js → ScheduleDetailsPrepaidExpensesScreen-BnOWY_At.js} +1 -1
  42. package/dist/assets/{ScreenRoutes-C72NzSAe.js → ScreenRoutes-DuGsfGk3.js} +2 -2
  43. package/dist/assets/{SettingsRoutes-gBgMK1MW.js → SettingsRoutes-Da0oY1iY.js} +1 -1
  44. package/dist/assets/{SetupPagesScreen-CIrP22mo.js → SetupPagesScreen-D-KqJVmQ.js} +1 -1
  45. package/dist/assets/{SignInScreen-DAl9_AVs.js → SignInScreen-BkMf-gZx.js} +1 -1
  46. package/dist/assets/{SignOutScreen-CvQRUG30.js → SignOutScreen-YqR-y0va.js} +1 -1
  47. package/dist/assets/{TaskListScreen-DI37lN7R.js → TaskListScreen-yc0ik1BX.js} +1 -1
  48. package/dist/assets/{TaskRoutes-Sr-eq5Xy.js → TaskRoutes-Dmg5J-hH.js} +1 -1
  49. package/dist/assets/{TransactionDetailRoutes-DHOAhb5X.js → TransactionDetailRoutes-CCfJFKEC.js} +1 -1
  50. package/dist/assets/{TransactionDetailScreen-BfwmFu4d.js → TransactionDetailScreen-DVH3Sqx4.js} +1 -1
  51. package/dist/assets/{TransactionListRoutes-CcqGcmw0.js → TransactionListRoutes-CO1Z8Nhf.js} +1 -1
  52. package/dist/assets/{TreasuryRoutes-S1BfnYGO.js → TreasuryRoutes-BqR-enUS.js} +1 -1
  53. package/dist/assets/{VendorsRoutes-D9wt7kTI.js → VendorsRoutes-DiPBwoTy.js} +1 -1
  54. package/dist/assets/{WiseConfirmationScreen-CBCiP645.js → WiseConfirmationScreen-PejmXFnW.js} +1 -1
  55. package/dist/assets/{ZeniAccountRoutes-CgUN5fCf.js → ZeniAccountRoutes-Chc3BKlF.js} +1 -1
  56. package/dist/assets/{ZeniAccountStatementScreen-jmmjZcA9.js → ZeniAccountStatementScreen-PtkEj0Eh.js} +1 -1
  57. package/dist/assets/{analyticsHelper-nRPDDcpi.js → analyticsHelper-DCmyXC2R.js} +1 -1
  58. package/dist/assets/{getLocaleForTenant-B07LkoV2.js → getLocaleForTenant-CdD68od5.js} +1 -1
  59. package/dist/assets/{index-Ch-ATQTq.js → index-B3cZA6Rv.js} +5 -5
  60. package/dist/assets/{routePaths-D0-Tropc.js → routePaths-BTeBz6WY.js} +1 -1
  61. package/dist/assets/{useActualMatchingMatchDetail-BNN20aCx.js → useActualMatchingMatchDetail-BPbNHYPT.js} +1 -1
  62. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DOmg3jmM.js → useAiCfoDashboardSuggestedQuestionsChips-8y5hZjMQ.js} +1 -1
  63. package/dist/assets/{useAskAiCfoHostNavButtonProps-CBSVhkeG.js → useAskAiCfoHostNavButtonProps-BawmMtW4.js} +1 -1
  64. package/dist/assets/{useChargeCardPusherEvents-WOovjOqT.js → useChargeCardPusherEvents-21LbFLnc.js} +1 -1
  65. package/dist/assets/{useEmailConnectResultRefresh-27P04Izm.js → useEmailConnectResultRefresh-DxKMzD_z.js} +1 -1
  66. package/dist/assets/{useInitialThreadRequest-Da3K5Ksw.js → useInitialThreadRequest-BVMbIgEm.js} +1 -1
  67. package/dist/assets/{useTaskManagerAccess-CX5toJpg.js → useTaskManagerAccess-Br2XTEWY.js} +1 -1
  68. package/dist/assets/{useTaskManagerPusherEvents-BiZinOaM.js → useTaskManagerPusherEvents-tiFhZfyR.js} +1 -1
  69. package/dist/assets/{withTransactionSidePanel-CCvid0cv.js → withTransactionSidePanel-D_J17Erd.js} +1 -1
  70. package/dist/index.html +1 -1
  71. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-Bl3gAQPi.js","assets/sentry-DB4rU-NW.js","assets/core-D4EC26kf.js","assets/index-Cjagh0U7.js","assets/DefaultTenantHome-CMpQllfi.js","assets/mui-BCH_ILdb.js","assets/getLocaleForTenant-B07LkoV2.js","assets/analytics-UPQyZr49.js","assets/utils-CU_Pr3K6.js","assets/AppDrawer-UbqqLXJe.js","assets/InboxNotificationsProvider-DPgK9Ai7.js","assets/useTaskManagerAccess-CX5toJpg.js","assets/expenseAutomationHelper-DLTA8kBq.js","assets/ScreenRoutes-C72NzSAe.js","assets/analyticsHelper-nRPDDcpi.js","assets/ConnectionAuthScreen-yW3T26AI.js","assets/AccountMappingScreen-9MHulU9s.js","assets/MobileAppDrawer-C6gfQS8M.js","assets/QBOConnectionScreen-CPdRdNFp.js","assets/empty-CI6RvMsS.js","assets/index-CEVAJ-IM.js","assets/url-C0P0ff3A.js","assets/index-CllzBMQZ.js","assets/decodeURIComponentSafe-CDB32jt8.js","assets/accountMappingHelper-BYw-4sqP.js","assets/SignInScreen-DAl9_AVs.js","assets/useDeviceId-Dy35NfBh.js","assets/MagicLinkSignInScreen-DqgSvyNq.js","assets/NotFoundScreen-0hF8kIyY.js","assets/MagicLinkRoutes-BYZevXyH.js","assets/PaymentLinkScreen-6qwvkVJe.js","assets/WiseConfirmationScreen-CBCiP645.js","assets/HubSpotOAuthCallbackScreen-CYGRU6le.js","assets/CustomerOnboardingAuthScreen-CEs020qJ.js","assets/SignOutScreen-CvQRUG30.js","assets/OAuthConsentScreen-B_ncopNh.js"])))=>i.map(i=>d[i]);
2
- import{R as B,b as f5e,a as m,r as Kh,g as z8t,p as sre,d as Oke,f as sin,s as Fke,i as lin,w as cin,j as din,S as uin,k as pin,l as hin,m as min,n as gin,o as fin,q as xin}from"./sentry-DB4rU-NW.js";import{L as yin,C as Rke,_ as Fp,a as bin,b as sz,c as win,d as oee,e as lz,u as N8t,T as Cin,f as vin,g as Ain,h as Sin,i as kin,k as _8t,l as jin,m as $in,j as en}from"./liveblocks-DcDE-V-o.js";import{f as V8t,r as Aa,P as Dl,R as Ein,O as Iin,N as H8t,u as Sp,g as Lg,h as ree,i as U8t,j as Rr,m as N9e,s as Kq,k as W8t,l as Din,n as Tin,o as R1,p as Lin,B as Bin}from"./core-D4EC26kf.js";import{L as zke,bl as Pin,bm as Min,bn as cz,bo as Oin,bp as Fin,bq as ps,br as Yt,bs as UD,bt as Q8t,bu as P3,bv as Rin,bw as ty,bx as Ss,by as zin,bz as Nin,bA as _in,bB as L1,bC as Ip,bD as qF,bE as u9,bF as fn,bG as Y8t,bH as S1,bI as va,bJ as _I,bK as G8t,bL as q8t,bM as _9e,bN as A5,bO as Pu,bP as w7,bQ as Vin,bR as wc,bS as Hin,bT as WD,bU as Uin,bV as Win,bW as Zq,bX as Qin,bY as Yin,bZ as Jq,b_ as Gin,b$ as qin,c0 as p9,c1 as Nke,c2 as Kin,c3 as Zin,c4 as Jin,c5 as Xin,c6 as eon,c7 as ton,c8 as non,c9 as C7,ca as aee,cb as ion,cc as see,cd as lee,ce as cee,cf as V9e,cg as fA,ch as xA,ci as dz,cj as VI,ck as HI,cl as yA,cm as dee,cn as Vv,co as oon,cp as _ke,cq as ron,cr as aon,cs as son,ct as lon,cu as K8t,cv as con,cw as don,cx as q8,cy as Vke,cz as uon,cA as pon,cB as hon,cC as JA,cD as XA,cE as Z8t,cF as J8t,cG as H9e,cH as mon,cI as X8t,cJ as gon,cK as Xq,cL as ewt,cM as fon,cN as twt,cO as xon,cP as kM,cQ as yon,cR as bon,cS as Hke,cT as won,cU as U9e,cV as W9e,cW as Con,cX as von,cY as Aon,cZ as Son,c_ as XN,c$ as UI,d0 as e_,d1 as kon,d2 as jon,d3 as nwt,d4 as $on,d5 as Eon,d6 as Ion,d7 as Don,d8 as Ton,d9 as iwt,da as Uke,db as Lon,dc as Q9e,dd as Bon,de as Pon,df as Mon,dg as owt,dh as qd,di as Bl,dj as uee,dk as Oon,dl as Fon,dm as f1,dn as rwt,dp as Ron,dq as KF,dr as Hv,ds as Ts,dt as Wke,du as zon,dv as Non,dw as _on,dx as awt,dy as Y9e,dz as t_,dA as swt,dB as Von,dC as Hon,dD as Uon,dE as Won,dF as Qon,dG as sg,dH as Yon,dI as Gon,dJ as qon,dK as Kon,dL as n_,dM as bA,dN as pee,dO as Zon,dP as Jon,dQ as eS,dR as k1,dS as lwt,dT as cwt,dU as Xon,dV as dwt,dW as ern,dX as trn,dY as nrn,dZ as irn,d_ as QD,d$ as G9e,e0 as q9e,e1 as orn,e2 as K9e,e3 as uwt,e4 as pwt,e5 as hwt,e6 as mwt,e7 as gwt,e8 as fwt,e9 as rrn,_ as bd,ea as YD,eb as arn,ec as Qke,ed as hee,ee as srn,ef as lrn,eg as xwt,eh as crn,ei as $O,ej as s0,ek as v7,el as ywt,em as bwt,en as drn,eo as wwt,ep as x5e,eq as urn,er as xG,es as prn,et as hrn,eu as mrn,ev as grn,ew as frn,ex as Cwt,ey as vwt,ez as xrn,eA as yrn,eB as Awt,eC as EO,eD as IO,eE as Swt,eF as brn,eG as wrn,eH as Z9e,eI as Crn,eJ as vrn,eK as Arn,eL as J9e,eM as kwt,eN as jwt,eO as X9e,eP as GD,eQ as mee,eR as e8e,eS as t8e,eT as n8e,eU as i8e,eV as Srn,eW as krn,eX as $wt,eY as Yke,eZ as jrn,e_ as $rn,e$ as j1,f0 as Ern,f1 as gee,f2 as Ewt,f3 as Iwt,f4 as Irn,f5 as o8e,f6 as r8e,f7 as Drn,f8 as Trn,f9 as Lrn,fa as Brn,fb as Prn,fc as Mrn,fd as Cg,fe as Gke,ff as Dwt,fg as Orn,fh as Frn,fi as Rrn,fj as Twt,fk as Lwt,fl as Bwt,fm as Pwt,fn as Mwt,fo as Owt,fp as zrn,fq as WI,fr as Nrn,fs as _rn,ft as Vrn,fu as Hrn,fv as Fwt,fw as Rwt,fx as qke,fy as Kke,fz as Urn,fA as Wrn,fB as Zke,fC as Jke,fD as Qrn,fE as Yrn,fF as y5e,fG as Grn,v as qrn,fH as fee,fI as Dp,fJ as zwt,fK as Nwt,fL as Krn,fM as Zrn,fN as Xke,fO as Jrn,fP as Xrn,fQ as ean,fR as tan,fS as nan,fT as ian,fU as oan,fV as ran,fW as aan,fX as san,fY as lan,fZ as can,f_ as dan,f$ as uan,g0 as pan,g1 as han,g2 as man,g3 as gan,g4 as fan,g5 as eje,g6 as xan,g7 as yan,g8 as ban,g9 as wan,ga as Can,gb as _wt,gc as xee,gd as a8e,ge as Vwt,gf as van,gg as Aan,gh as San,gi as Hwt,gj as tje,gk as Uwt,gl as Wwt,gm as kan,gn as Qwt,go as Ywt,gp as jan,gq as $an,gr as b5e,gs as Ean,gt as DO,gu as Ian,gv as Dan,gw as Tan,gx as Lan,gy as Ban,gz as Pan,gA as Man,gB as Oan,gC as Fan,gD as Ran,gE as zan,gF as Nan,gG as Gwt,gH as _an,gI as Van,gJ as Han,gK as nje,gL as Uan,gM as Wan,gN as Qan,gO as Yan,gP as Gan,gQ as qan,gR as Kan,gS as qwt,gT as Kwt,gU as Zan,gV as Zwt,gW as Jan,gX as Xan,gY as w5e,gZ as esn,g_ as tsn,g$ as nsn,h0 as isn,h1 as osn,h2 as rsn,h3 as ije,h4 as asn,h5 as ssn,h6 as lsn}from"./zeni-epic-state-Bl3gAQPi.js";import{j as Lo,c as Ee,k as di,a as oje,b as Jwt,C as Xwt,T as csn,M as dsn,n as a,u as Pe,d as li,e as eCt,G as yee,A as rje,R as usn,D as Vc,F as psn,f as eK,g as C5e,P as M3,h as hsn,S as bee,i as msn,l as gsn,m as ZF,o as fsn,s as tS,p as xsn}from"./mui-BCH_ILdb.js";import{r as ysn,m as eg}from"./analytics-UPQyZr49.js";import{u as P1}from"./plaid-a-pmhWdo.js";import{D as s8e,H as wee,g as bsn,O as wsn,S as Csn,T as vsn,u as l8e,a as c8e,b as Asn}from"./dnd-CQ9igkkh.js";import{l as d8e}from"./stripe-cKAAJElX.js";import{L as iI}from"./lottie-DBrmrNFb.js";import{r as Hc}from"./lexical-DvwBeJWJ.js";import{D as v5e,P as A5e,_ as tCt,a as nCt}from"./pdf-zGCHYG6q.js";import{R as wA,G as h9,H as Tp,X as zl,Y as yl,I as gd,J as m9,K as N9,L as Uv,M as D1,N as qD,O as iCt,P as Ssn,Q as ksn,S as Cee,U as jsn,V as u8e,W as $sn,Z as Esn,_ as Isn,d as Dsn}from"./recharts-BRIJ8RH5.js";import{r as Tsn,n as aje}from"./utils-CU_Pr3K6.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]="d043a94e-0210-4d5c-9798-0a4680b9d842",e._sentryDebugIdIdentifier="sentry-dbid-d043a94e-0210-4d5c-9798-0a4680b9d842")}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 sje,i_={},Lsn=(function(){if(sje)return i_;sje=1;var e=V8t();return i_.createRoot=e.createRoot,i_.hydrateRoot=e.hydrateRoot,i_})(),Rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof f5e<"u"?f5e:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lje,cje,dje={exports:{}},tL={};function oCt(){return cje||(cje=1,dje.exports=(function(){if(lje)return tL;lje=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 tL.Fragment=i,tL.jsx=c,tL.jsxs=c,tL})()),dje.exports}var t=oCt();const Bsn=m.createContext(null),lre={didCatch:!1,error:null};let Psn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=lre}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(lre)}}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(lre))}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(Bsn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var uje,pje,hje,cre,mje,gje,fje,xje,yje,dre={exports:{}};function Msn(){return uje||(uje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(dre.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,ve=G.length;for(pe=0;pe<ve;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 ve,$e=0,Oe=[];switch(pe){case"int16":case"uint8c":ve=1;break;default:ve=1.1}for($e=0;$e<xe;$e+=1)Oe.push(ve);return Oe}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 F(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 V(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 O(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function _(G,X,pe){var xe,ve,$e,Oe,Ue,We,Mt,Kt;switch(We=pe*(1-X),Mt=pe*(1-(Ue=6*G-(Oe=Math.floor(6*G)))*X),Kt=pe*(1-(1-Ue)*X),Oe%6){case 0:xe=pe,ve=Kt,$e=We;break;case 1:xe=Mt,ve=pe,$e=We;break;case 2:xe=We,ve=pe,$e=Kt;break;case 3:xe=We,ve=Mt,$e=pe;break;case 4:xe=Kt,ve=We,$e=pe;break;case 5:xe=pe,ve=We,$e=Mt}return[xe,ve,$e]}function W(G,X,pe){var xe,ve=Math.max(G,X,pe),$e=Math.min(G,X,pe),Oe=ve-$e,Ue=ve===0?0:Oe/ve,We=ve/255;switch(ve){case $e:xe=0;break;case G:xe=X-pe+Oe*(X<pe?6:0),xe/=6*Oe;break;case X:xe=pe-G+2*Oe,xe/=6*Oe;break;case pe:xe=G-X+4*Oe,xe/=6*Oe}return[xe,Ue,We]}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),_(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),_(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),_(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},oe=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=[],ve={onmessage:function(){},postMessage:function(ut){G({data:ut})}},$e={postMessage:function(ut){ve.onmessage({data:ut})}};function Oe(ut){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",ut.toString()],{type:"text/javascript"}),Et=URL.createObjectURL(Ct);return new Worker(Et)}return G=ut,ve}function Ue(){X||(X=Oe((function(ut){function Ct(){function qt(Nt,gn){var ft,st,Re,pt,bt,mi,qo=Nt.length;for(st=0;st<qo;st+=1)if("ks"in(ft=Nt[st])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var To=ft.masksProperties;for(pt=To.length,Re=0;Re<pt;Re+=1)if(To[Re].pt.k.i)qe(To[Re].pt.k);else for(mi=To[Re].pt.k.length,bt=0;bt<mi;bt+=1)To[Re].pt.k[bt].s&&qe(To[Re].pt.k[bt].s[0]),To[Re].pt.k[bt].e&&qe(To[Re].pt.k[bt].e[0])}ft.ty===0?(ft.layers=Ve(ft.refId,gn),qt(ft.layers,gn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Go(ft)}}function Jt(Nt,gn){if(Nt){var ft=0,st=Nt.length;for(ft=0;ft<st;ft+=1)Nt[ft].t===1&&(Nt[ft].data.layers=Ve(Nt[ft].data.refId,gn),qt(Nt[ft].data.layers,gn))}}function Xe(Nt,gn){for(var ft=0,st=gn.length;ft<st;){if(gn[ft].id===Nt)return gn[ft];ft+=1}return null}function Ve(Nt,gn){var ft=Xe(Nt,gn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(Nt){var gn,ft,st;for(gn=Nt.length-1;gn>=0;gn-=1)if(Nt[gn].ty==="sh")if(Nt[gn].ks.k.i)qe(Nt[gn].ks.k);else for(st=Nt[gn].ks.k.length,ft=0;ft<st;ft+=1)Nt[gn].ks.k[ft].s&&qe(Nt[gn].ks.k[ft].s[0]),Nt[gn].ks.k[ft].e&&qe(Nt[gn].ks.k[ft].e[0]);else Nt[gn].ty==="gr"&&Ne(Nt[gn].it)}function qe(Nt){var gn,ft=Nt.i.length;for(gn=0;gn<ft;gn+=1)Nt.i[gn][0]+=Nt.v[gn][0],Nt.i[gn][1]+=Nt.v[gn][1],Nt.o[gn][0]+=Nt.v[gn][0],Nt.o[gn][1]+=Nt.v[gn][1]}function gt(Nt,gn){var ft=gn?gn.split("."):[100,100,100];return Nt[0]>ft[0]||!(ft[0]>Nt[0])&&(Nt[1]>ft[1]||!(ft[1]>Nt[1])&&(Nt[2]>ft[2]||!(ft[2]>Nt[2])&&null))}var rn=(function(){var Nt=[4,4,14];function gn(st){var Re=st.t.d;st.t.d={k:[{s:Re,t:0}]}}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&gn(st[Re])}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),ln=(function(){var Nt=[4,7,99];return function(gn){if(gn.chars&&!gt(Nt,gn.v)){var ft,st=gn.chars.length;for(ft=0;ft<st;ft+=1){var Re=gn.chars[ft];Re.data&&Re.data.shapes&&(Ne(Re.data.shapes),Re.data.ip=0,Re.data.op=99999,Re.data.st=0,Re.data.sr=1,Re.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[ft].t||(Re.data.shapes.push({ty:"no"}),Re.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"})))}}}})(),Ot=(function(){var Nt=[5,7,15];function gn(st){var Re=st.t.p;typeof Re.a=="number"&&(Re.a={a:0,k:Re.a}),typeof Re.p=="number"&&(Re.p={a:0,k:Re.p}),typeof Re.r=="number"&&(Re.r={a:0,k:Re.r})}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&gn(st[Re])}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),co=(function(){var Nt=[4,1,9];function gn(st){var Re,pt,bt,mi=st.length;for(Re=0;Re<mi;Re+=1)if(st[Re].ty==="gr")gn(st[Re].it);else if(st[Re].ty==="fl"||st[Re].ty==="st")if(st[Re].c.k&&st[Re].c.k[0].i)for(bt=st[Re].c.k.length,pt=0;pt<bt;pt+=1)st[Re].c.k[pt].s&&(st[Re].c.k[pt].s[0]/=255,st[Re].c.k[pt].s[1]/=255,st[Re].c.k[pt].s[2]/=255,st[Re].c.k[pt].s[3]/=255),st[Re].c.k[pt].e&&(st[Re].c.k[pt].e[0]/=255,st[Re].c.k[pt].e[1]/=255,st[Re].c.k[pt].e[2]/=255,st[Re].c.k[pt].e[3]/=255);else st[Re].c.k[0]/=255,st[Re].c.k[1]/=255,st[Re].c.k[2]/=255,st[Re].c.k[3]/=255}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===4&&gn(st[Re].shapes)}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),So=(function(){var Nt=[4,4,18];function gn(st){var Re,pt,bt;for(Re=st.length-1;Re>=0;Re-=1)if(st[Re].ty==="sh")if(st[Re].ks.k.i)st[Re].ks.k.c=st[Re].closed;else for(bt=st[Re].ks.k.length,pt=0;pt<bt;pt+=1)st[Re].ks.k[pt].s&&(st[Re].ks.k[pt].s[0].c=st[Re].closed),st[Re].ks.k[pt].e&&(st[Re].ks.k[pt].e[0].c=st[Re].closed);else st[Re].ty==="gr"&&gn(st[Re].it)}function ft(st){var Re,pt,bt,mi,qo,To,ya=st.length;for(pt=0;pt<ya;pt+=1){if((Re=st[pt]).hasMask){var Ko=Re.masksProperties;for(mi=Ko.length,bt=0;bt<mi;bt+=1)if(Ko[bt].pt.k.i)Ko[bt].pt.k.c=Ko[bt].cl;else for(To=Ko[bt].pt.k.length,qo=0;qo<To;qo+=1)Ko[bt].pt.k[qo].s&&(Ko[bt].pt.k[qo].s[0].c=Ko[bt].cl),Ko[bt].pt.k[qo].e&&(Ko[bt].pt.k[qo].e[0].c=Ko[bt].cl)}Re.ty===4&&gn(Re.shapes)}}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})();function si(Nt){Nt.__complete||(co(Nt),rn(Nt),ln(Nt),Ot(Nt),So(Nt),qt(Nt.layers,Nt.assets),Jt(Nt.chars,Nt.assets),Nt.__complete=!0)}function Go(Nt){Nt.t.a.length===0&&Nt.t.p}var oo={};return oo.completeData=si,oo.checkColors=co,oo.checkChars=ln,oo.checkPathProperties=Ot,oo.checkShapes=So,oo.completeLayers=qt,oo}if($e.dataManager||($e.dataManager=Ct()),$e.assetLoader||($e.assetLoader=(function(){function qt(Xe){var Ve=Xe.getResponseHeader("content-type");return Ve&&Xe.responseType==="json"&&Ve.indexOf("json")!==-1||Xe.response&&me(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function Jt(Xe,Ve,Ne,qe){var gt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)gt=qt(rn),Ne(gt);else try{gt=qt(rn),Ne(gt)}catch(ln){qe&&qe(ln)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),Ve+"/"+Xe,!0)}rn.send()}return{load:Jt}})()),ut.data.type==="loadAnimation")$e.assetLoader.load(ut.data.path,ut.data.fullPath,(function(qt){$e.dataManager.completeData(qt),$e.postMessage({id:ut.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ut.data.id,status:"error"})}));else if(ut.data.type==="complete"){var Et=ut.data.animation;$e.dataManager.completeData(Et),$e.postMessage({id:ut.data.id,payload:Et,status:"success"})}else ut.data.type==="loadData"&&$e.assetLoader.load(ut.data.path,ut.data.fullPath,(function(qt){$e.postMessage({id:ut.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ut.data.id,status:"error"})}))})),X.onmessage=function(ut){var Ct=ut.data,Et=Ct.id,qt=xe[Et];xe[Et]=null,Ct.status==="success"?qt.onComplete(Ct.payload):qt.onError&&qt.onError()})}function We(ut,Ct){var Et="processId_"+(pe+=1);return xe[Et]={onComplete:ut,onError:Ct},Et}function Mt(ut,Ct,Et){Ue();var qt=We(Ct,Et);X.postMessage({type:"loadAnimation",path:ut,fullPath:window.location.origin+window.location.pathname,id:qt})}function Kt(ut,Ct,Et){Ue();var qt=We(Ct,Et);X.postMessage({type:"loadData",path:ut,fullPath:window.location.origin+window.location.pathname,id:qt})}function et(ut,Ct,Et){Ue();var qt=We(Ct,Et);X.postMessage({type:"complete",animation:ut,id:qt})}return{loadAnimation:Mt,loadData:Kt,completeAnimation:et}})(),re=(function(){var G=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var Ve=Xe.getContext("2d");return Ve.fillStyle="rgba(0,0,0,0)",Ve.fillRect(0,0,1,1),Xe})();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(Xe,Ve,Ne){var qe="";if(Xe.e)qe=Xe.p;else if(Ve){var gt=Xe.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),qe=Ve+gt}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function ve(Xe){var Ve=0,Ne=setInterval((function(){(Xe.getBBox().width||Ve>500)&&(this._imageLoaded(),clearInterval(Ne)),Ve+=1}).bind(this),50)}function $e(Xe){var Ve=xe(Xe,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:Xe};return qe}function Oe(Xe){var Ve=xe(Xe,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:Xe};return qe}function Ue(Xe){var Ve={assetData:Xe},Ne=xe(Xe,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 We(Xe,Ve){this.imagesLoadedCb=Ve;var Ne,qe=Xe.length;for(Ne=0;Ne<qe;Ne+=1)Xe[Ne].layers||(Xe[Ne].t&&Xe[Ne].t!=="seq"?Xe[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Xe[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Xe[Ne]))))}function Mt(Xe){this.path=Xe||""}function Kt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var Ve=0,Ne=this.images.length;Ve<Ne;){if(this.images[Ve].assetData===Xe)return this.images[Ve].img;Ve+=1}return null}function ut(){this.imagesLoadedCb=null,this.images.length=0}function Ct(){return this.totalImages===this.loadedAssets}function Et(){return this.totalFootages===this.loadedFootagesCount}function qt(Xe,Ve){Xe==="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=ve.bind(this),this.createFootageData=Ue.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:We,setAssetsPath:Kt,setPath:Mt,loadedImages:Ct,loadedFootages:Et,destroy:ut,getAsset:et,createImgData:Oe,createImageData:$e,imageLoaded:X,footageLoaded:pe,setCacheType:qt},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-Bl3gAQPi.js","assets/sentry-DB4rU-NW.js","assets/core-D4EC26kf.js","assets/index-Cjagh0U7.js","assets/DefaultTenantHome-CSjiBXma.js","assets/mui-BCH_ILdb.js","assets/getLocaleForTenant-CdD68od5.js","assets/analytics-UPQyZr49.js","assets/utils-CU_Pr3K6.js","assets/AppDrawer-DpiXvF-5.js","assets/InboxNotificationsProvider-DPgK9Ai7.js","assets/useTaskManagerAccess-Br2XTEWY.js","assets/expenseAutomationHelper-DLTA8kBq.js","assets/ScreenRoutes-DuGsfGk3.js","assets/analyticsHelper-DCmyXC2R.js","assets/ConnectionAuthScreen-Scq1RAZX.js","assets/AccountMappingScreen-DwvuPxiG.js","assets/MobileAppDrawer-CkAqUMcV.js","assets/QBOConnectionScreen-Bsh-fBsy.js","assets/empty-CI6RvMsS.js","assets/index-CEVAJ-IM.js","assets/url-C0P0ff3A.js","assets/index-CllzBMQZ.js","assets/decodeURIComponentSafe-CDB32jt8.js","assets/accountMappingHelper-BYw-4sqP.js","assets/SignInScreen-BkMf-gZx.js","assets/useDeviceId-Dy35NfBh.js","assets/MagicLinkSignInScreen-2NCXrWHu.js","assets/NotFoundScreen-E3epqX_z.js","assets/MagicLinkRoutes-ClEmimUi.js","assets/PaymentLinkScreen-bt7t9bCe.js","assets/WiseConfirmationScreen-PejmXFnW.js","assets/HubSpotOAuthCallbackScreen-BfArfDqI.js","assets/CustomerOnboardingAuthScreen-DBPwD9T8.js","assets/SignOutScreen-YqR-y0va.js","assets/OAuthConsentScreen-HzQDmJ8X.js"])))=>i.map(i=>d[i]);
2
+ import{R as B,b as f5e,a as m,r as Kh,g as z8t,p as sre,d as Oke,f as sin,s as Fke,i as lin,w as cin,j as din,S as uin,k as pin,l as hin,m as min,n as gin,o as fin,q as xin}from"./sentry-DB4rU-NW.js";import{L as yin,C as Rke,_ as Fp,a as bin,b as sz,c as win,d as oee,e as lz,u as N8t,T as Cin,f as vin,g as Ain,h as Sin,i as kin,k as _8t,l as jin,m as $in,j as en}from"./liveblocks-DcDE-V-o.js";import{f as V8t,r as Aa,P as Dl,R as Ein,O as Iin,N as H8t,u as Sp,g as Lg,h as ree,i as U8t,j as Rr,m as N9e,s as Kq,k as W8t,l as Din,n as Tin,o as R1,p as Lin,B as Bin}from"./core-D4EC26kf.js";import{L as zke,bl as Pin,bm as Min,bn as cz,bo as Oin,bp as Fin,bq as ps,br as Yt,bs as UD,bt as Q8t,bu as P3,bv as Rin,bw as ty,bx as Ss,by as zin,bz as Nin,bA as _in,bB as L1,bC as Ip,bD as qF,bE as u9,bF as fn,bG as Y8t,bH as S1,bI as va,bJ as _I,bK as G8t,bL as q8t,bM as _9e,bN as A5,bO as Pu,bP as w7,bQ as Vin,bR as wc,bS as Hin,bT as WD,bU as Uin,bV as Win,bW as Zq,bX as Qin,bY as Yin,bZ as Jq,b_ as Gin,b$ as qin,c0 as p9,c1 as Nke,c2 as Kin,c3 as Zin,c4 as Jin,c5 as Xin,c6 as eon,c7 as ton,c8 as non,c9 as C7,ca as aee,cb as ion,cc as see,cd as lee,ce as cee,cf as V9e,cg as fA,ch as xA,ci as dz,cj as VI,ck as HI,cl as yA,cm as dee,cn as Vv,co as oon,cp as _ke,cq as ron,cr as aon,cs as son,ct as lon,cu as K8t,cv as con,cw as don,cx as q8,cy as Vke,cz as uon,cA as pon,cB as hon,cC as JA,cD as XA,cE as Z8t,cF as J8t,cG as H9e,cH as mon,cI as X8t,cJ as gon,cK as Xq,cL as ewt,cM as fon,cN as twt,cO as xon,cP as kM,cQ as yon,cR as bon,cS as Hke,cT as won,cU as U9e,cV as W9e,cW as Con,cX as von,cY as Aon,cZ as Son,c_ as XN,c$ as UI,d0 as e_,d1 as kon,d2 as jon,d3 as nwt,d4 as $on,d5 as Eon,d6 as Ion,d7 as Don,d8 as Ton,d9 as iwt,da as Uke,db as Lon,dc as Q9e,dd as Bon,de as Pon,df as Mon,dg as owt,dh as qd,di as Bl,dj as uee,dk as Oon,dl as Fon,dm as f1,dn as rwt,dp as Ron,dq as KF,dr as Hv,ds as Ts,dt as Wke,du as zon,dv as Non,dw as _on,dx as awt,dy as Y9e,dz as t_,dA as swt,dB as Von,dC as Hon,dD as Uon,dE as Won,dF as Qon,dG as sg,dH as Yon,dI as Gon,dJ as qon,dK as Kon,dL as n_,dM as bA,dN as pee,dO as Zon,dP as Jon,dQ as eS,dR as k1,dS as lwt,dT as cwt,dU as Xon,dV as dwt,dW as ern,dX as trn,dY as nrn,dZ as irn,d_ as QD,d$ as G9e,e0 as q9e,e1 as orn,e2 as K9e,e3 as uwt,e4 as pwt,e5 as hwt,e6 as mwt,e7 as gwt,e8 as fwt,e9 as rrn,_ as bd,ea as YD,eb as arn,ec as Qke,ed as hee,ee as srn,ef as lrn,eg as xwt,eh as crn,ei as $O,ej as s0,ek as v7,el as ywt,em as bwt,en as drn,eo as wwt,ep as x5e,eq as urn,er as xG,es as prn,et as hrn,eu as mrn,ev as grn,ew as frn,ex as Cwt,ey as vwt,ez as xrn,eA as yrn,eB as Awt,eC as EO,eD as IO,eE as Swt,eF as brn,eG as wrn,eH as Z9e,eI as Crn,eJ as vrn,eK as Arn,eL as J9e,eM as kwt,eN as jwt,eO as X9e,eP as GD,eQ as mee,eR as e8e,eS as t8e,eT as n8e,eU as i8e,eV as Srn,eW as krn,eX as $wt,eY as Yke,eZ as jrn,e_ as $rn,e$ as j1,f0 as Ern,f1 as gee,f2 as Ewt,f3 as Iwt,f4 as Irn,f5 as o8e,f6 as r8e,f7 as Drn,f8 as Trn,f9 as Lrn,fa as Brn,fb as Prn,fc as Mrn,fd as Cg,fe as Gke,ff as Dwt,fg as Orn,fh as Frn,fi as Rrn,fj as Twt,fk as Lwt,fl as Bwt,fm as Pwt,fn as Mwt,fo as Owt,fp as zrn,fq as WI,fr as Nrn,fs as _rn,ft as Vrn,fu as Hrn,fv as Fwt,fw as Rwt,fx as qke,fy as Kke,fz as Urn,fA as Wrn,fB as Zke,fC as Jke,fD as Qrn,fE as Yrn,fF as y5e,fG as Grn,v as qrn,fH as fee,fI as Dp,fJ as zwt,fK as Nwt,fL as Krn,fM as Zrn,fN as Xke,fO as Jrn,fP as Xrn,fQ as ean,fR as tan,fS as nan,fT as ian,fU as oan,fV as ran,fW as aan,fX as san,fY as lan,fZ as can,f_ as dan,f$ as uan,g0 as pan,g1 as han,g2 as man,g3 as gan,g4 as fan,g5 as eje,g6 as xan,g7 as yan,g8 as ban,g9 as wan,ga as Can,gb as _wt,gc as xee,gd as a8e,ge as Vwt,gf as van,gg as Aan,gh as San,gi as Hwt,gj as tje,gk as Uwt,gl as Wwt,gm as kan,gn as Qwt,go as Ywt,gp as jan,gq as $an,gr as b5e,gs as Ean,gt as DO,gu as Ian,gv as Dan,gw as Tan,gx as Lan,gy as Ban,gz as Pan,gA as Man,gB as Oan,gC as Fan,gD as Ran,gE as zan,gF as Nan,gG as Gwt,gH as _an,gI as Van,gJ as Han,gK as nje,gL as Uan,gM as Wan,gN as Qan,gO as Yan,gP as Gan,gQ as qan,gR as Kan,gS as qwt,gT as Kwt,gU as Zan,gV as Zwt,gW as Jan,gX as Xan,gY as w5e,gZ as esn,g_ as tsn,g$ as nsn,h0 as isn,h1 as osn,h2 as rsn,h3 as ije,h4 as asn,h5 as ssn,h6 as lsn}from"./zeni-epic-state-Bl3gAQPi.js";import{j as Lo,c as Ee,k as di,a as oje,b as Jwt,C as Xwt,T as csn,M as dsn,n as a,u as Pe,d as li,e as eCt,G as yee,A as rje,R as usn,D as Vc,F as psn,f as eK,g as C5e,P as M3,h as hsn,S as bee,i as msn,l as gsn,m as ZF,o as fsn,s as tS,p as xsn}from"./mui-BCH_ILdb.js";import{r as ysn,m as eg}from"./analytics-UPQyZr49.js";import{u as P1}from"./plaid-a-pmhWdo.js";import{D as s8e,H as wee,g as bsn,O as wsn,S as Csn,T as vsn,u as l8e,a as c8e,b as Asn}from"./dnd-CQ9igkkh.js";import{l as d8e}from"./stripe-cKAAJElX.js";import{L as iI}from"./lottie-DBrmrNFb.js";import{r as Hc}from"./lexical-DvwBeJWJ.js";import{D as v5e,P as A5e,_ as tCt,a as nCt}from"./pdf-zGCHYG6q.js";import{R as wA,G as h9,H as Tp,X as zl,Y as yl,I as gd,J as m9,K as N9,L as Uv,M as D1,N as qD,O as iCt,P as Ssn,Q as ksn,S as Cee,U as jsn,V as u8e,W as $sn,Z as Esn,_ as Isn,d as Dsn}from"./recharts-BRIJ8RH5.js";import{r as Tsn,n as aje}from"./utils-CU_Pr3K6.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]="43d245da-55cd-44e8-a60a-bc95efe1d73c",e._sentryDebugIdIdentifier="sentry-dbid-43d245da-55cd-44e8-a60a-bc95efe1d73c")}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 sje,i_={},Lsn=(function(){if(sje)return i_;sje=1;var e=V8t();return i_.createRoot=e.createRoot,i_.hydrateRoot=e.hydrateRoot,i_})(),Rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof f5e<"u"?f5e:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lje,cje,dje={exports:{}},tL={};function oCt(){return cje||(cje=1,dje.exports=(function(){if(lje)return tL;lje=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 tL.Fragment=i,tL.jsx=c,tL.jsxs=c,tL})()),dje.exports}var t=oCt();const Bsn=m.createContext(null),lre={didCatch:!1,error:null};let Psn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=lre}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(lre)}}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(lre))}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(Bsn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var uje,pje,hje,cre,mje,gje,fje,xje,yje,dre={exports:{}};function Msn(){return uje||(uje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(dre.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,ve=G.length;for(pe=0;pe<ve;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 ve,$e=0,Oe=[];switch(pe){case"int16":case"uint8c":ve=1;break;default:ve=1.1}for($e=0;$e<xe;$e+=1)Oe.push(ve);return Oe}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 F(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 V(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 O(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function _(G,X,pe){var xe,ve,$e,Oe,Ue,We,Mt,Kt;switch(We=pe*(1-X),Mt=pe*(1-(Ue=6*G-(Oe=Math.floor(6*G)))*X),Kt=pe*(1-(1-Ue)*X),Oe%6){case 0:xe=pe,ve=Kt,$e=We;break;case 1:xe=Mt,ve=pe,$e=We;break;case 2:xe=We,ve=pe,$e=Kt;break;case 3:xe=We,ve=Mt,$e=pe;break;case 4:xe=Kt,ve=We,$e=pe;break;case 5:xe=pe,ve=We,$e=Mt}return[xe,ve,$e]}function W(G,X,pe){var xe,ve=Math.max(G,X,pe),$e=Math.min(G,X,pe),Oe=ve-$e,Ue=ve===0?0:Oe/ve,We=ve/255;switch(ve){case $e:xe=0;break;case G:xe=X-pe+Oe*(X<pe?6:0),xe/=6*Oe;break;case X:xe=pe-G+2*Oe,xe/=6*Oe;break;case pe:xe=G-X+4*Oe,xe/=6*Oe}return[xe,Ue,We]}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),_(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),_(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),_(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},oe=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=[],ve={onmessage:function(){},postMessage:function(ut){G({data:ut})}},$e={postMessage:function(ut){ve.onmessage({data:ut})}};function Oe(ut){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",ut.toString()],{type:"text/javascript"}),Et=URL.createObjectURL(Ct);return new Worker(Et)}return G=ut,ve}function Ue(){X||(X=Oe((function(ut){function Ct(){function qt(Nt,gn){var ft,st,Re,pt,bt,mi,qo=Nt.length;for(st=0;st<qo;st+=1)if("ks"in(ft=Nt[st])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var To=ft.masksProperties;for(pt=To.length,Re=0;Re<pt;Re+=1)if(To[Re].pt.k.i)qe(To[Re].pt.k);else for(mi=To[Re].pt.k.length,bt=0;bt<mi;bt+=1)To[Re].pt.k[bt].s&&qe(To[Re].pt.k[bt].s[0]),To[Re].pt.k[bt].e&&qe(To[Re].pt.k[bt].e[0])}ft.ty===0?(ft.layers=Ve(ft.refId,gn),qt(ft.layers,gn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Go(ft)}}function Jt(Nt,gn){if(Nt){var ft=0,st=Nt.length;for(ft=0;ft<st;ft+=1)Nt[ft].t===1&&(Nt[ft].data.layers=Ve(Nt[ft].data.refId,gn),qt(Nt[ft].data.layers,gn))}}function Xe(Nt,gn){for(var ft=0,st=gn.length;ft<st;){if(gn[ft].id===Nt)return gn[ft];ft+=1}return null}function Ve(Nt,gn){var ft=Xe(Nt,gn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(Nt){var gn,ft,st;for(gn=Nt.length-1;gn>=0;gn-=1)if(Nt[gn].ty==="sh")if(Nt[gn].ks.k.i)qe(Nt[gn].ks.k);else for(st=Nt[gn].ks.k.length,ft=0;ft<st;ft+=1)Nt[gn].ks.k[ft].s&&qe(Nt[gn].ks.k[ft].s[0]),Nt[gn].ks.k[ft].e&&qe(Nt[gn].ks.k[ft].e[0]);else Nt[gn].ty==="gr"&&Ne(Nt[gn].it)}function qe(Nt){var gn,ft=Nt.i.length;for(gn=0;gn<ft;gn+=1)Nt.i[gn][0]+=Nt.v[gn][0],Nt.i[gn][1]+=Nt.v[gn][1],Nt.o[gn][0]+=Nt.v[gn][0],Nt.o[gn][1]+=Nt.v[gn][1]}function gt(Nt,gn){var ft=gn?gn.split("."):[100,100,100];return Nt[0]>ft[0]||!(ft[0]>Nt[0])&&(Nt[1]>ft[1]||!(ft[1]>Nt[1])&&(Nt[2]>ft[2]||!(ft[2]>Nt[2])&&null))}var rn=(function(){var Nt=[4,4,14];function gn(st){var Re=st.t.d;st.t.d={k:[{s:Re,t:0}]}}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&gn(st[Re])}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),ln=(function(){var Nt=[4,7,99];return function(gn){if(gn.chars&&!gt(Nt,gn.v)){var ft,st=gn.chars.length;for(ft=0;ft<st;ft+=1){var Re=gn.chars[ft];Re.data&&Re.data.shapes&&(Ne(Re.data.shapes),Re.data.ip=0,Re.data.op=99999,Re.data.st=0,Re.data.sr=1,Re.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[ft].t||(Re.data.shapes.push({ty:"no"}),Re.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"})))}}}})(),Ot=(function(){var Nt=[5,7,15];function gn(st){var Re=st.t.p;typeof Re.a=="number"&&(Re.a={a:0,k:Re.a}),typeof Re.p=="number"&&(Re.p={a:0,k:Re.p}),typeof Re.r=="number"&&(Re.r={a:0,k:Re.r})}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===5&&gn(st[Re])}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),co=(function(){var Nt=[4,1,9];function gn(st){var Re,pt,bt,mi=st.length;for(Re=0;Re<mi;Re+=1)if(st[Re].ty==="gr")gn(st[Re].it);else if(st[Re].ty==="fl"||st[Re].ty==="st")if(st[Re].c.k&&st[Re].c.k[0].i)for(bt=st[Re].c.k.length,pt=0;pt<bt;pt+=1)st[Re].c.k[pt].s&&(st[Re].c.k[pt].s[0]/=255,st[Re].c.k[pt].s[1]/=255,st[Re].c.k[pt].s[2]/=255,st[Re].c.k[pt].s[3]/=255),st[Re].c.k[pt].e&&(st[Re].c.k[pt].e[0]/=255,st[Re].c.k[pt].e[1]/=255,st[Re].c.k[pt].e[2]/=255,st[Re].c.k[pt].e[3]/=255);else st[Re].c.k[0]/=255,st[Re].c.k[1]/=255,st[Re].c.k[2]/=255,st[Re].c.k[3]/=255}function ft(st){var Re,pt=st.length;for(Re=0;Re<pt;Re+=1)st[Re].ty===4&&gn(st[Re].shapes)}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})(),So=(function(){var Nt=[4,4,18];function gn(st){var Re,pt,bt;for(Re=st.length-1;Re>=0;Re-=1)if(st[Re].ty==="sh")if(st[Re].ks.k.i)st[Re].ks.k.c=st[Re].closed;else for(bt=st[Re].ks.k.length,pt=0;pt<bt;pt+=1)st[Re].ks.k[pt].s&&(st[Re].ks.k[pt].s[0].c=st[Re].closed),st[Re].ks.k[pt].e&&(st[Re].ks.k[pt].e[0].c=st[Re].closed);else st[Re].ty==="gr"&&gn(st[Re].it)}function ft(st){var Re,pt,bt,mi,qo,To,ya=st.length;for(pt=0;pt<ya;pt+=1){if((Re=st[pt]).hasMask){var Ko=Re.masksProperties;for(mi=Ko.length,bt=0;bt<mi;bt+=1)if(Ko[bt].pt.k.i)Ko[bt].pt.k.c=Ko[bt].cl;else for(To=Ko[bt].pt.k.length,qo=0;qo<To;qo+=1)Ko[bt].pt.k[qo].s&&(Ko[bt].pt.k[qo].s[0].c=Ko[bt].cl),Ko[bt].pt.k[qo].e&&(Ko[bt].pt.k[qo].e[0].c=Ko[bt].cl)}Re.ty===4&&gn(Re.shapes)}}return function(st){if(gt(Nt,st.v)&&(ft(st.layers),st.assets)){var Re,pt=st.assets.length;for(Re=0;Re<pt;Re+=1)st.assets[Re].layers&&ft(st.assets[Re].layers)}}})();function si(Nt){Nt.__complete||(co(Nt),rn(Nt),ln(Nt),Ot(Nt),So(Nt),qt(Nt.layers,Nt.assets),Jt(Nt.chars,Nt.assets),Nt.__complete=!0)}function Go(Nt){Nt.t.a.length===0&&Nt.t.p}var oo={};return oo.completeData=si,oo.checkColors=co,oo.checkChars=ln,oo.checkPathProperties=Ot,oo.checkShapes=So,oo.completeLayers=qt,oo}if($e.dataManager||($e.dataManager=Ct()),$e.assetLoader||($e.assetLoader=(function(){function qt(Xe){var Ve=Xe.getResponseHeader("content-type");return Ve&&Xe.responseType==="json"&&Ve.indexOf("json")!==-1||Xe.response&&me(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function Jt(Xe,Ve,Ne,qe){var gt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)gt=qt(rn),Ne(gt);else try{gt=qt(rn),Ne(gt)}catch(ln){qe&&qe(ln)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),Ve+"/"+Xe,!0)}rn.send()}return{load:Jt}})()),ut.data.type==="loadAnimation")$e.assetLoader.load(ut.data.path,ut.data.fullPath,(function(qt){$e.dataManager.completeData(qt),$e.postMessage({id:ut.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ut.data.id,status:"error"})}));else if(ut.data.type==="complete"){var Et=ut.data.animation;$e.dataManager.completeData(Et),$e.postMessage({id:ut.data.id,payload:Et,status:"success"})}else ut.data.type==="loadData"&&$e.assetLoader.load(ut.data.path,ut.data.fullPath,(function(qt){$e.postMessage({id:ut.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ut.data.id,status:"error"})}))})),X.onmessage=function(ut){var Ct=ut.data,Et=Ct.id,qt=xe[Et];xe[Et]=null,Ct.status==="success"?qt.onComplete(Ct.payload):qt.onError&&qt.onError()})}function We(ut,Ct){var Et="processId_"+(pe+=1);return xe[Et]={onComplete:ut,onError:Ct},Et}function Mt(ut,Ct,Et){Ue();var qt=We(Ct,Et);X.postMessage({type:"loadAnimation",path:ut,fullPath:window.location.origin+window.location.pathname,id:qt})}function Kt(ut,Ct,Et){Ue();var qt=We(Ct,Et);X.postMessage({type:"loadData",path:ut,fullPath:window.location.origin+window.location.pathname,id:qt})}function et(ut,Ct,Et){Ue();var qt=We(Ct,Et);X.postMessage({type:"complete",animation:ut,id:qt})}return{loadAnimation:Mt,loadData:Kt,completeAnimation:et}})(),re=(function(){var G=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var Ve=Xe.getContext("2d");return Ve.fillStyle="rgba(0,0,0,0)",Ve.fillRect(0,0,1,1),Xe})();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(Xe,Ve,Ne){var qe="";if(Xe.e)qe=Xe.p;else if(Ve){var gt=Xe.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),qe=Ve+gt}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function ve(Xe){var Ve=0,Ne=setInterval((function(){(Xe.getBBox().width||Ve>500)&&(this._imageLoaded(),clearInterval(Ne)),Ve+=1}).bind(this),50)}function $e(Xe){var Ve=xe(Xe,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:Xe};return qe}function Oe(Xe){var Ve=xe(Xe,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:Xe};return qe}function Ue(Xe){var Ve={assetData:Xe},Ne=xe(Xe,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 We(Xe,Ve){this.imagesLoadedCb=Ve;var Ne,qe=Xe.length;for(Ne=0;Ne<qe;Ne+=1)Xe[Ne].layers||(Xe[Ne].t&&Xe[Ne].t!=="seq"?Xe[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Xe[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Xe[Ne]))))}function Mt(Xe){this.path=Xe||""}function Kt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var Ve=0,Ne=this.images.length;Ve<Ne;){if(this.images[Ve].assetData===Xe)return this.images[Ve].img;Ve+=1}return null}function ut(){this.imagesLoadedCb=null,this.images.length=0}function Ct(){return this.totalImages===this.loadedAssets}function Et(){return this.totalFootages===this.loadedFootagesCount}function qt(Xe,Ve){Xe==="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=ve.bind(this),this.createFootageData=Ue.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:We,setAssetsPath:Kt,setPath:Mt,loadedImages:Ct,loadedFootages:Et,destroy:ut,getAsset:et,createImgData:Oe,createImageData:$e,imageLoaded:X,footageLoaded:pe,setCacheType:qt},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
  `),ve={},$e=0,Oe=0;Oe<xe.length;Oe+=1)(pe=xe[Oe].split(":")).length===2&&(ve[pe[0]]=pe[1].trim(),$e+=1);if($e===0)throw new Error;return ve}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var ve=X[xe],$e={time:ve.tm,duration:ve.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,ve=this.compositions.length;xe<ve;){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}})(),ge={},he=function(G,X){ge[G]=X};function ye(G){return ge[G]}function Ae(){if(ge.canvas)return"canvas";for(var G in ge)if(ge[G])return G;return""}function Ce(G){return Ce=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},Ce(G)}var be=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 re,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 F("drawnFrame",0,0,0),this.expressionsPlugin=te()};g([ie],be),be.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))},be.prototype.onSetupError=function(){this.trigger("data_failed")},be.prototype.setupAnimation=function(G){ue.completeAnimation(G,this.configAnimation)},be.prototype.setData=function(G,X){X&&Ce(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:Ae()||"canvas";var ve=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:"";ve==="false"?pe.loop=!1:ve==="true"?pe.loop=!0:ve!==""&&(pe.loop=parseInt(ve,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")},be.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,ve=xe.length,$e=G.layers,Oe=$e.length;for(pe=0;pe<Oe;pe+=1)for(X=0;X<ve;){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(ve=G.assets.length,X=0;X<ve;X+=1)this.animationData.assets.push(G.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},be.prototype.onSegmentComplete=function(G){this.animationData=G;var X=te();X&&X.initExpressions(this),this.loadNextSegment()},be.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))},be.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},be.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},be.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},be.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)}},be.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},be.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()}},be.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)},be.prototype.setSubframe=function(G){this.isSubframeEnabled=!!G},be.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")},be.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)}},be.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")))},be.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())},be.prototype.togglePause=function(G){G&&this.name!==G||(this.isPaused===!0?this.play():this.pause())},be.prototype.stop=function(G){G&&this.name!==G||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},be.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},be.prototype.goToAndStop=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var ve=this.getMarkerData(G);ve&&this.goToAndStop(ve.time,!0)}else X?this.setCurrentRawFrameValue(G):this.setCurrentRawFrameValue(G*this.frameModifier);this.pause()}},be.prototype.goToAndPlay=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var ve=this.getMarkerData(G);ve&&(ve.duration?this.playSegments([ve.time,ve.time+ve.duration],!0):this.goToAndStop(ve.time,!0))}else this.goToAndStop(xe,X,pe);this.play()}},be.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"))}},be.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")},be.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)},be.prototype.playSegments=function(G,X){if(X&&(this.segments.length=0),Ce(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()},be.prototype.resetSegments=function(G){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),G&&this.checkSegments(0)},be.prototype.checkSegments=function(G){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),G),!0)},be.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)},be.prototype.setCurrentRawFrameValue=function(G){this.currentRawFrame=G,this.gotoFrame()},be.prototype.setSpeed=function(G){this.playSpeed=G,this.updaFrameModifier()},be.prototype.setDirection=function(G){this.playDirection=G<0?-1:1,this.updaFrameModifier()},be.prototype.setLoop=function(G){this.loop=G},be.prototype.setVolume=function(G,X){X&&this.name!==X||this.audioController.setVolume(G)},be.prototype.getVolume=function(){return this.audioController.getVolume()},be.prototype.mute=function(G){G&&this.name!==G||this.audioController.mute()},be.prototype.unmute=function(G){G&&this.name!==G||this.audioController.unmute()},be.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},be.prototype.getPath=function(){return this.path},be.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},be.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},be.prototype.hide=function(){this.renderer.hide()},be.prototype.show=function(){this.renderer.show()},be.prototype.getDuration=function(G){return G?this.totalFrames:this.totalFrames/this.frameRate},be.prototype.updateDocumentData=function(G,X,pe){try{this.renderer.getElementByPath(G).updateDocumentData(X,pe)}catch{}},be.prototype.trigger=function(G){if(this._cbs&&this._cbs[G])switch(G){case"enterFrame":this.triggerEvent(G,new F(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 V(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 F(G,this.currentFrame,this.totalFrames,this.frameMult)),G==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new V(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))},be.prototype.triggerRenderFrameError=function(G){var X=new M(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},be.prototype.triggerConfigError=function(G){var X=new O(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)};var Be=(function(){var G={},X=[],pe=0,xe=0,ve=0,$e=!0,Oe=!1;function Ue(ft){for(var st=0,Re=ft.target;st<xe;)X[st].animation===Re&&(X.splice(st,1),st-=1,xe-=1,Re.isPaused||et()),st+=1}function We(ft,st){if(!ft)return null;for(var Re=0;Re<xe;){if(X[Re].elem===ft&&X[Re].elem!==null)return X[Re].animation;Re+=1}var pt=new be;return ut(pt,ft),pt.setData(ft,st),pt}function Mt(){var ft,st=X.length,Re=[];for(ft=0;ft<st;ft+=1)Re.push(X[ft].animation);return Re}function Kt(){ve+=1,So()}function et(){ve-=1}function ut(ft,st){ft.addEventListener("destroy",Ue),ft.addEventListener("_active",Kt),ft.addEventListener("_idle",et),X.push({elem:st,animation:ft}),xe+=1}function Ct(ft){var st=new be;return ut(st,null),st.setParams(ft),st}function Et(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setSpeed(ft,st)}function qt(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setDirection(ft,st)}function Jt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.play(ft)}function Xe(ft){var st,Re=ft-pe;for(st=0;st<xe;st+=1)X[st].animation.advanceTime(Re);pe=ft,ve&&!Oe?window.requestAnimationFrame(Xe):$e=!0}function Ve(ft){pe=ft,window.requestAnimationFrame(Xe)}function Ne(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.pause(ft)}function qe(ft,st,Re){var pt;for(pt=0;pt<xe;pt+=1)X[pt].animation.goToAndStop(ft,st,Re)}function gt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.stop(ft)}function rn(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.togglePause(ft)}function ln(ft){var st;for(st=xe-1;st>=0;st-=1)X[st].animation.destroy(ft)}function Ot(ft,st,Re){var pt,bt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),mi=bt.length;for(pt=0;pt<mi;pt+=1)Re&&bt[pt].setAttribute("data-bm-type",Re),We(bt[pt],ft);if(st&&mi===0){Re||(Re="svg");var qo=document.getElementsByTagName("body")[0];qo.innerText="";var To=h("div");To.style.width="100%",To.style.height="100%",To.setAttribute("data-bm-type",Re),qo.appendChild(To),We(To,ft)}}function co(){var ft;for(ft=0;ft<xe;ft+=1)X[ft].animation.resize()}function So(){!Oe&&ve&&$e&&(window.requestAnimationFrame(Ve),$e=!1)}function si(){Oe=!0}function Go(){Oe=!1,So()}function oo(ft,st){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setVolume(ft,st)}function Nt(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.mute(ft)}function gn(ft){var st;for(st=0;st<xe;st+=1)X[st].animation.unmute(ft)}return G.registerAnimation=We,G.loadAnimation=Ct,G.setSpeed=Et,G.setDirection=qt,G.play=Jt,G.pause=Ne,G.stop=gt,G.togglePause=rn,G.searchAnimations=Ot,G.resize=co,G.goToAndStop=qe,G.destroy=ln,G.freeze=si,G.unfreeze=Go,G.setVolume=oo,G.mute=Nt,G.unmute=gn,G.getRegisteredAnimations=Mt,G})(),Le=(function(){var G={};G.getBezierEasing=pe;var X={};function pe(Ve,Ne,qe,gt,rn){var ln=rn||("bez_"+Ve+"_"+Ne+"_"+qe+"_"+gt).replace(/\./g,"p");if(X[ln])return X[ln];var Ot=new Xe([Ve,Ne,qe,gt]);return X[ln]=Ot,Ot}var xe=4,ve=.001,$e=1e-7,Oe=10,Ue=11,We=1/(Ue-1),Mt=typeof Float32Array=="function";function Kt(Ve,Ne){return 1-3*Ne+3*Ve}function et(Ve,Ne){return 3*Ne-6*Ve}function ut(Ve){return 3*Ve}function Ct(Ve,Ne,qe){return((Kt(Ne,qe)*Ve+et(Ne,qe))*Ve+ut(Ne))*Ve}function Et(Ve,Ne,qe){return 3*Kt(Ne,qe)*Ve*Ve+2*et(Ne,qe)*Ve+ut(Ne)}function qt(Ve,Ne,qe,gt,rn){var ln,Ot,co=0;do(ln=Ct(Ot=Ne+(qe-Ne)/2,gt,rn)-Ve)>0?qe=Ot:Ne=Ot;while(Math.abs(ln)>$e&&++co<Oe);return Ot}function Jt(Ve,Ne,qe,gt){for(var rn=0;rn<xe;++rn){var ln=Et(Ne,qe,gt);if(ln===0)return Ne;Ne-=(Ct(Ne,qe,gt)-Ve)/ln}return Ne}function Xe(Ve){this._p=Ve,this._mSampleValues=Mt?new Float32Array(Ue):new Array(Ue),this._precomputed=!1,this.get=this.get.bind(this)}return Xe.prototype={get:function(Ve){var Ne=this._p[0],qe=this._p[1],gt=this._p[2],rn=this._p[3];return this._precomputed||this._precompute(),Ne===qe&&gt===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],gt=this._p[3];this._precomputed=!0,(Ve!==Ne||qe!==gt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var Ve=this._p[0],Ne=this._p[2],qe=0;qe<Ue;++qe)this._mSampleValues[qe]=Ct(qe*We,Ve,Ne)},_getTForX:function(Ve){for(var Ne=this._p[0],qe=this._p[2],gt=this._mSampleValues,rn=0,ln=1,Ot=Ue-1;ln!==Ot&&gt[ln]<=Ve;++ln)rn+=We;var co=rn+(Ve-gt[--ln])/(gt[ln+1]-gt[ln])*We,So=Et(co,Ne,qe);return So>=ve?Jt(Ve,co,Ne,qe):So===0?co:qt(Ve,rn,rn+We,Ne,qe)}},G})(),De=(function(){function G(X){return X.concat(b(X.length))}return{double:G}})(),Fe=(function(){return function(G,X,pe){var xe=0,ve=G,$e=b(ve);function Oe(){return xe?$e[xe-=1]:X()}function Ue(We){xe===ve&&($e=De.double($e),ve*=2),pe&&pe(We),$e[xe]=We,xe+=1}return{newElement:Oe,release:Ue}}})(),Me=(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,ve=pe.lengths.length;for(xe=0;xe<ve;xe+=1)Me.release(pe.lengths[xe]);pe.lengths.length=0}return Fe(8,G,X)})();function we(){var G=Math;function X(ut,Ct,Et,qt,Jt,Xe){var Ve=ut*qt+Ct*Jt+Et*Xe-Jt*qt-Xe*ut-Et*Ct;return Ve>-.001&&Ve<.001}function pe(ut,Ct,Et,qt,Jt,Xe,Ve,Ne,qe){if(Et===0&&Xe===0&&qe===0)return X(ut,Ct,qt,Jt,Ve,Ne);var gt,rn=G.sqrt(G.pow(qt-ut,2)+G.pow(Jt-Ct,2)+G.pow(Xe-Et,2)),ln=G.sqrt(G.pow(Ve-ut,2)+G.pow(Ne-Ct,2)+G.pow(qe-Et,2)),Ot=G.sqrt(G.pow(Ve-qt,2)+G.pow(Ne-Jt,2)+G.pow(qe-Xe,2));return(gt=rn>ln?rn>Ot?rn-ln-Ot:Ot-ln-rn:Ot>ln?Ot-ln-rn:ln-rn-Ot)>-1e-4&&gt<1e-4}var xe=(function(){return function(ut,Ct,Et,qt){var Jt,Xe,Ve,Ne,qe,gt,rn=se(),ln=0,Ot=[],co=[],So=Me.newElement();for(Ve=Et.length,Jt=0;Jt<rn;Jt+=1){for(qe=Jt/(rn-1),gt=0,Xe=0;Xe<Ve;Xe+=1)Ne=k(1-qe,3)*ut[Xe]+3*k(1-qe,2)*qe*Et[Xe]+3*(1-qe)*k(qe,2)*qt[Xe]+k(qe,3)*Ct[Xe],Ot[Xe]=Ne,co[Xe]!==null&&(gt+=k(Ot[Xe]-co[Xe],2)),co[Xe]=Ot[Xe];gt&&(ln+=gt=$(gt)),So.percents[Jt]=qe,So.lengths[Jt]=ln}return So.addedLength=ln,So}})();function ve(ut){var Ct,Et=Se.newElement(),qt=ut.c,Jt=ut.v,Xe=ut.o,Ve=ut.i,Ne=ut._length,qe=Et.lengths,gt=0;for(Ct=0;Ct<Ne-1;Ct+=1)qe[Ct]=xe(Jt[Ct],Jt[Ct+1],Xe[Ct],Ve[Ct+1]),gt+=qe[Ct].addedLength;return qt&&Ne&&(qe[Ct]=xe(Jt[Ct],Jt[0],Xe[Ct],Ve[0]),gt+=qe[Ct].addedLength),Et.totalLength=gt,Et}function $e(ut){this.segmentLength=0,this.points=new Array(ut)}function Oe(ut,Ct){this.partialLength=ut,this.point=Ct}var Ue=(function(){var ut={};return function(Ct,Et,qt,Jt){var Xe=(Ct[0]+"_"+Ct[1]+"_"+Et[0]+"_"+Et[1]+"_"+qt[0]+"_"+qt[1]+"_"+Jt[0]+"_"+Jt[1]).replace(/\./g,"p");if(!ut[Xe]){var Ve,Ne,qe,gt,rn,ln,Ot,co=se(),So=0,si=null;Ct.length===2&&(Ct[0]!==Et[0]||Ct[1]!==Et[1])&&X(Ct[0],Ct[1],Et[0],Et[1],Ct[0]+qt[0],Ct[1]+qt[1])&&X(Ct[0],Ct[1],Et[0],Et[1],Et[0]+Jt[0],Et[1]+Jt[1])&&(co=2);var Go=new $e(co);for(qe=qt.length,Ve=0;Ve<co;Ve+=1){for(Ot=b(qe),rn=Ve/(co-1),ln=0,Ne=0;Ne<qe;Ne+=1)gt=k(1-rn,3)*Ct[Ne]+3*k(1-rn,2)*rn*(Ct[Ne]+qt[Ne])+3*(1-rn)*k(rn,2)*(Et[Ne]+Jt[Ne])+k(rn,3)*Et[Ne],Ot[Ne]=gt,si!==null&&(ln+=k(Ot[Ne]-si[Ne],2));So+=ln=$(ln),Go.points[Ve]=new Oe(ln,Ot),si=Ot}Go.segmentLength=So,ut[Xe]=Go}return ut[Xe]}})();function We(ut,Ct){var Et=Ct.percents,qt=Ct.lengths,Jt=Et.length,Xe=j((Jt-1)*ut),Ve=ut*Ct.addedLength,Ne=0;if(Xe===Jt-1||Xe===0||Ve===qt[Xe])return Et[Xe];for(var qe=qt[Xe]>Ve?-1:1,gt=!0;gt;)if(qt[Xe]<=Ve&&qt[Xe+1]>Ve?(Ne=(Ve-qt[Xe])/(qt[Xe+1]-qt[Xe]),gt=!1):Xe+=qe,Xe<0||Xe>=Jt-1){if(Xe===Jt-1)return Et[Xe];gt=!1}return Et[Xe]+(Et[Xe+1]-Et[Xe])*Ne}function Mt(ut,Ct,Et,qt,Jt,Xe){var Ve=We(Jt,Xe),Ne=1-Ve;return[G.round(1e3*(Ne*Ne*Ne*ut[0]+(Ve*Ne*Ne+Ne*Ve*Ne+Ne*Ne*Ve)*Et[0]+(Ve*Ve*Ne+Ne*Ve*Ve+Ve*Ne*Ve)*qt[0]+Ve*Ve*Ve*Ct[0]))/1e3,G.round(1e3*(Ne*Ne*Ne*ut[1]+(Ve*Ne*Ne+Ne*Ve*Ne+Ne*Ne*Ve)*Et[1]+(Ve*Ve*Ne+Ne*Ve*Ve+Ve*Ne*Ve)*qt[1]+Ve*Ve*Ve*Ct[1]))/1e3]}var Kt=y("float32",8);function et(ut,Ct,Et,qt,Jt,Xe,Ve){Jt<0?Jt=0:Jt>1&&(Jt=1);var Ne,qe=We(Jt,Ve),gt=We(Xe=Xe>1?1:Xe,Ve),rn=ut.length,ln=1-qe,Ot=1-gt,co=ln*ln*ln,So=qe*ln*ln*3,si=qe*qe*ln*3,Go=qe*qe*qe,oo=ln*ln*Ot,Nt=qe*ln*Ot+ln*qe*Ot+ln*ln*gt,gn=qe*qe*Ot+ln*qe*gt+qe*ln*gt,ft=qe*qe*gt,st=ln*Ot*Ot,Re=qe*Ot*Ot+ln*gt*Ot+ln*Ot*gt,pt=qe*gt*Ot+ln*gt*gt+qe*Ot*gt,bt=qe*gt*gt,mi=Ot*Ot*Ot,qo=gt*Ot*Ot+Ot*gt*Ot+Ot*Ot*gt,To=gt*gt*Ot+Ot*gt*gt+gt*Ot*gt,ya=gt*gt*gt;for(Ne=0;Ne<rn;Ne+=1)Kt[4*Ne]=G.round(1e3*(co*ut[Ne]+So*Et[Ne]+si*qt[Ne]+Go*Ct[Ne]))/1e3,Kt[4*Ne+1]=G.round(1e3*(oo*ut[Ne]+Nt*Et[Ne]+gn*qt[Ne]+ft*Ct[Ne]))/1e3,Kt[4*Ne+2]=G.round(1e3*(st*ut[Ne]+Re*Et[Ne]+pt*qt[Ne]+bt*Ct[Ne]))/1e3,Kt[4*Ne+3]=G.round(1e3*(mi*ut[Ne]+qo*Et[Ne]+To*qt[Ne]+ya*Ct[Ne]))/1e3;return Kt}return{getSegmentsLength:ve,getNewSegment:et,getPointInSegment:Mt,buildBezierData:Ue,pointOnLine2D:X,pointOnLine3D:pe}}var Ie=we(),Te=l,ze=Math.abs;function it(G,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var ve,$e,Oe,Ue=X.lastIndex,We=Ue,Mt=this.keyframes.length-1,Kt=!0;Kt;){if(ve=this.keyframes[We],$e=this.keyframes[We+1],We===Mt-1&&G>=$e.t-xe){ve.h&&(ve=$e),Ue=0;break}if($e.t-xe>G){Ue=We;break}We<Mt-1?We+=1:(Ue=0,Kt=!1)}Oe=this.keyframesMetadata[We]||{};var et,ut,Ct,Et,qt,Jt,Xe,Ve=$e.t-xe,Ne=ve.t-xe;if(ve.to){Oe.bezierData||(Oe.bezierData=Ie.buildBezierData(ve.s,$e.s||ve.e,ve.to,ve.ti));var qe=Oe.bezierData;if(G>=Ve||G<Ne){var gt=G>=Ve?qe.points.length-1:0;for(ut=qe.points[gt].point.length,et=0;et<ut;et+=1)pe[et]=qe.points[gt].point[et]}else{Oe.__fnct?Jt=Oe.__fnct:(Jt=Le.getBezierEasing(ve.o.x,ve.o.y,ve.i.x,ve.i.y,ve.n).get,Oe.__fnct=Jt),Ct=Jt((G-Ne)/(Ve-Ne));var rn,ln=qe.segmentLength*Ct,Ot=X.lastFrame<G&&X._lastKeyframeIndex===We?X._lastAddedLength:0;for(qt=X.lastFrame<G&&X._lastKeyframeIndex===We?X._lastPoint:0,Kt=!0,Et=qe.points.length;Kt;){if(Ot+=qe.points[qt].partialLength,ln===0||Ct===0||qt===qe.points.length-1){for(ut=qe.points[qt].point.length,et=0;et<ut;et+=1)pe[et]=qe.points[qt].point[et];break}if(ln>=Ot&&ln<Ot+qe.points[qt+1].partialLength){for(rn=(ln-Ot)/qe.points[qt+1].partialLength,ut=qe.points[qt].point.length,et=0;et<ut;et+=1)pe[et]=qe.points[qt].point[et]+(qe.points[qt+1].point[et]-qe.points[qt].point[et])*rn;break}qt<Et-1?qt+=1:Kt=!1}X._lastPoint=qt,X._lastAddedLength=Ot-qe.points[qt].partialLength,X._lastKeyframeIndex=We}}else{var co,So,si,Go,oo;if(Mt=ve.s.length,Xe=$e.s||ve.e,this.sh&&ve.h!==1)G>=Ve?(pe[0]=Xe[0],pe[1]=Xe[1],pe[2]=Xe[2]):G<=Ne?(pe[0]=ve.s[0],pe[1]=ve.s[1],pe[2]=ve.s[2]):Ge(pe,Qe(mt(ve.s),mt(Xe),(G-Ne)/(Ve-Ne)));else for(We=0;We<Mt;We+=1)ve.h!==1&&(G>=Ve?Ct=1:G<Ne?Ct=0:(ve.o.x.constructor===Array?(Oe.__fnct||(Oe.__fnct=[]),Oe.__fnct[We]?Jt=Oe.__fnct[We]:(co=ve.o.x[We]===void 0?ve.o.x[0]:ve.o.x[We],So=ve.o.y[We]===void 0?ve.o.y[0]:ve.o.y[We],si=ve.i.x[We]===void 0?ve.i.x[0]:ve.i.x[We],Go=ve.i.y[We]===void 0?ve.i.y[0]:ve.i.y[We],Jt=Le.getBezierEasing(co,So,si,Go).get,Oe.__fnct[We]=Jt)):Oe.__fnct?Jt=Oe.__fnct:(co=ve.o.x,So=ve.o.y,si=ve.i.x,Go=ve.i.y,Jt=Le.getBezierEasing(co,So,si,Go).get,ve.keyframeMetadata=Jt),Ct=Jt((G-Ne)/(Ve-Ne)))),Xe=$e.s||ve.e,oo=ve.h===1?ve.s[We]:ve.s[We]+(Xe[We]-ve.s[We])*Ct,this.propType==="multidimensional"?pe[We]=oo:pe=oo}return X.lastIndex=Ue,pe}function Qe(G,X,pe){var xe,ve,$e,Oe,Ue,We=[],Mt=G[0],Kt=G[1],et=G[2],ut=G[3],Ct=X[0],Et=X[1],qt=X[2],Jt=X[3];return(ve=Mt*Ct+Kt*Et+et*qt+ut*Jt)<0&&(ve=-ve,Ct=-Ct,Et=-Et,qt=-qt,Jt=-Jt),1-ve>1e-6?(xe=Math.acos(ve),$e=Math.sin(xe),Oe=Math.sin((1-pe)*xe)/$e,Ue=Math.sin(pe*xe)/$e):(Oe=1-pe,Ue=pe),We[0]=Oe*Mt+Ue*Ct,We[1]=Oe*Kt+Ue*Et,We[2]=Oe*et+Ue*qt,We[3]=Oe*ut+Ue*Jt,We}function Ge(G,X){var pe=X[0],xe=X[1],ve=X[2],$e=X[3],Oe=Math.atan2(2*xe*$e-2*pe*ve,1-2*xe*xe-2*ve*ve),Ue=Math.asin(2*pe*xe+2*ve*$e),We=Math.atan2(2*pe*$e-2*xe*ve,1-2*pe*pe-2*ve*ve);G[0]=Oe/D,G[1]=Ue/D,G[2]=We/D}function mt(G){var X=G[0]*D,pe=G[1]*D,xe=G[2]*D,ve=Math.cos(X/2),$e=Math.cos(pe/2),Oe=Math.cos(xe/2),Ue=Math.sin(X/2),We=Math.sin(pe/2),Mt=Math.sin(xe/2);return[Ue*We*Oe+ve*$e*Mt,Ue*$e*Oe+ve*We*Mt,ve*We*Oe-Ue*$e*Mt,ve*$e*Oe-Ue*We*Mt]}function Ft(){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!==Te&&(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 dt(G){var X;if(this.propType==="unidimensional")X=G*this.mult,ze(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,ze(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function St(){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 Ye(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}function at(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=St,this.setVValue=dt,this.addEffect=Ye}function Dt(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 ve,$e=X.k.length;for(this.v=y("float32",$e),this.pv=y("float32",$e),this.vel=y("float32",$e),ve=0;ve<$e;ve+=1)this.v[ve]=X.k[ve]*this.mult,this.pv[ve]=X.k[ve];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=St,this.setVValue=dt,this.addEffect=Ye}function Ut(G,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.frameId=-1,this._caching={lastFrame:Te,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=Te,this.pv=Te,this._isFirstFrame=!0,this.getValue=St,this.setVValue=dt,this.interpolateValue=it,this.effectsSequence=[Ft.bind(this)],this.addEffect=Ye}function vt(G,X,pe,xe){this.propType="multidimensional";var ve,$e,Oe,Ue,We,Mt=X.k.length;for(ve=0;ve<Mt-1;ve+=1)X.k[ve].to&&X.k[ve].s&&X.k[ve+1]&&X.k[ve+1].s&&($e=X.k[ve].s,Oe=X.k[ve+1].s,Ue=X.k[ve].to,We=X.k[ve].ti,($e.length===2&&!($e[0]===Oe[0]&&$e[1]===Oe[1])&&Ie.pointOnLine2D($e[0],$e[1],Oe[0],Oe[1],$e[0]+Ue[0],$e[1]+Ue[1])&&Ie.pointOnLine2D($e[0],$e[1],Oe[0],Oe[1],Oe[0]+We[0],Oe[1]+We[1])||$e.length===3&&!($e[0]===Oe[0]&&$e[1]===Oe[1]&&$e[2]===Oe[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Oe[0],Oe[1],Oe[2],$e[0]+Ue[0],$e[1]+Ue[1],$e[2]+Ue[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Oe[0],Oe[1],Oe[2],Oe[0]+We[0],Oe[1]+We[1],Oe[2]+We[2]))&&(X.k[ve].to=null,X.k[ve].ti=null),$e[0]===Oe[0]&&$e[1]===Oe[1]&&Ue[0]===0&&Ue[1]===0&&We[0]===0&&We[1]===0&&($e.length===2||$e[2]===Oe[2]&&Ue[2]===0&&We[2]===0)&&(X.k[ve].to=null,X.k[ve].ti=null));this.effectsSequence=[Ft.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=St,this.setVValue=dt,this.interpolateValue=it,this.frameId=-1;var Kt=X.k[0].s.length;for(this.v=y("float32",Kt),this.pv=y("float32",Kt),ve=0;ve<Kt;ve+=1)this.v[ve]=Te,this.pv[ve]=Te;this._caching={lastFrame:Te,lastIndex:0,value:y("float32",Kt)},this.addEffect=Ye}var Ke=(function(){function G(X,pe,xe,ve,$e){var Oe;if(pe.sid&&(pe=X.globalData.slotManager.getProp(pe)),pe.k.length)if(typeof pe.k[0]=="number")Oe=new Dt(X,pe,ve,$e);else switch(xe){case 0:Oe=new Ut(X,pe,ve,$e);break;case 1:Oe=new vt(X,pe,ve,$e)}else Oe=new at(X,pe,ve,$e);return Oe.effectsSequence.length&&$e.addDynamicProperty(Oe),Oe}return{getProp:G}})();function Pt(){}Pt.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 Qt=(function(){function G(){return y("float32",2)}return Fe(8,G)})();function xt(){this.c=!1,this._length=0,this._maxLength=8,this.v=b(this._maxLength),this.o=b(this._maxLength),this.i=b(this._maxLength)}xt.prototype.setPathData=function(G,X){this.c=G,this.setLength(X);for(var pe=0;pe<X;)this.v[pe]=Qt.newElement(),this.o[pe]=Qt.newElement(),this.i[pe]=Qt.newElement(),pe+=1},xt.prototype.setLength=function(G){for(;this._maxLength<G;)this.doubleArrayLength();this._length=G},xt.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},xt.prototype.setXYAt=function(G,X,pe,xe,ve){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]&&!ve)&&($e[xe]=Qt.newElement()),$e[xe][0]=G,$e[xe][1]=X},xt.prototype.setTripleAt=function(G,X,pe,xe,ve,$e,Oe,Ue){this.setXYAt(G,X,"v",Oe,Ue),this.setXYAt(pe,xe,"o",Oe,Ue),this.setXYAt(ve,$e,"i",Oe,Ue)},xt.prototype.reverse=function(){var G=new xt;G.setPathData(this.c,this._length);var X=this.v,pe=this.o,xe=this.i,ve=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),ve=1);var $e,Oe=this._length-1,Ue=this._length;for($e=ve;$e<Ue;$e+=1)G.setTripleAt(X[Oe][0],X[Oe][1],xe[Oe][0],xe[Oe][1],pe[Oe][0],pe[Oe][1],$e,!1),Oe-=1;return G},xt.prototype.length=function(){return this._length};var It=(function(){function G(){return new xt}function X(ve){var $e,Oe=ve._length;for($e=0;$e<Oe;$e+=1)Qt.release(ve.v[$e]),Qt.release(ve.i[$e]),Qt.release(ve.o[$e]),ve.v[$e]=null,ve.i[$e]=null,ve.o[$e]=null;ve._length=0,ve.c=!1}function pe(ve){var $e,Oe=xe.newElement(),Ue=ve._length===void 0?ve.v.length:ve._length;for(Oe.setLength(Ue),Oe.c=ve.c,$e=0;$e<Ue;$e+=1)Oe.setTripleAt(ve.v[$e][0],ve.v[$e][1],ve.o[$e][0],ve.o[$e][1],ve.i[$e][0],ve.i[$e][1],$e);return Oe}var xe=Fe(4,G,X);return xe.clone=pe,xe})();function Wt(){this._length=0,this._maxLength=4,this.shapes=b(this._maxLength)}Wt.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},Wt.prototype.releaseShapes=function(){var G;for(G=0;G<this._length;G+=1)It.release(this.shapes[G]);this._length=0};var Zt=(function(){var G={newShapeCollection:ve,release:$e},X=0,pe=4,xe=b(pe);function ve(){return X?xe[X-=1]:new Wt}function $e(Oe){var Ue,We=Oe._length;for(Ue=0;Ue<We;Ue+=1)It.release(Oe.shapes[Ue]);Oe._length=0,X===pe&&(xe=De.double(xe),pe*=2),xe[X]=Oe,X+=1}return G})(),Ze=(function(){var G=-999999;function X(Xe,Ve,Ne){var qe,gt,rn,ln,Ot,co,So,si,Go,oo=Ne.lastIndex,Nt=this.keyframes;if(Xe<Nt[0].t-this.offsetTime)qe=Nt[0].s[0],rn=!0,oo=0;else if(Xe>=Nt[Nt.length-1].t-this.offsetTime)qe=Nt[Nt.length-1].s?Nt[Nt.length-1].s[0]:Nt[Nt.length-2].e[0],rn=!0;else{for(var gn,ft,st,Re=oo,pt=Nt.length-1,bt=!0;bt&&(gn=Nt[Re],!((ft=Nt[Re+1]).t-this.offsetTime>Xe));)Re<pt-1?Re+=1:bt=!1;if(st=this.keyframesMetadata[Re]||{},oo=Re,!(rn=gn.h===1)){if(Xe>=ft.t-this.offsetTime)si=1;else if(Xe<gn.t-this.offsetTime)si=0;else{var mi;st.__fnct?mi=st.__fnct:(mi=Le.getBezierEasing(gn.o.x,gn.o.y,gn.i.x,gn.i.y).get,st.__fnct=mi),si=mi((Xe-(gn.t-this.offsetTime))/(ft.t-this.offsetTime-(gn.t-this.offsetTime)))}gt=ft.s?ft.s[0]:gn.e[0]}qe=gn.s[0]}for(co=Ve._length,So=qe.i[0].length,Ne.lastIndex=oo,ln=0;ln<co;ln+=1)for(Ot=0;Ot<So;Ot+=1)Go=rn?qe.i[ln][Ot]:qe.i[ln][Ot]+(gt.i[ln][Ot]-qe.i[ln][Ot])*si,Ve.i[ln][Ot]=Go,Go=rn?qe.o[ln][Ot]:qe.o[ln][Ot]+(gt.o[ln][Ot]-qe.o[ln][Ot])*si,Ve.o[ln][Ot]=Go,Go=rn?qe.v[ln][Ot]:qe.v[ln][Ot]+(gt.v[ln][Ot]-qe.v[ln][Ot])*si,Ve.v[ln][Ot]=Go}function pe(){var Xe=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&&Xe<Ve||qe>Ne&&Xe>Ne)||(this._caching.lastIndex=qe<Xe?this._caching.lastIndex:0,this.interpolateShape(Xe,this.pv,this._caching)),this._caching.lastFrame=Xe,this.pv}function xe(){this.paths=this.localShapeCollection}function ve(Xe,Ve){if(Xe._length!==Ve._length||Xe.c!==Ve.c)return!1;var Ne,qe=Xe._length;for(Ne=0;Ne<qe;Ne+=1)if(Xe.v[Ne][0]!==Ve.v[Ne][0]||Xe.v[Ne][1]!==Ve.v[Ne][1]||Xe.o[Ne][0]!==Ve.o[Ne][0]||Xe.o[Ne][1]!==Ve.o[Ne][1]||Xe.i[Ne][0]!==Ve.i[Ne][0]||Xe.i[Ne][1]!==Ve.i[Ne][1])return!1;return!0}function $e(Xe){ve(this.v,Xe)||(this.v=It.clone(Xe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Oe(){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 Xe;this.lock=!0,this._mdf=!1,Xe=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)Xe=this.effectsSequence[Ve](Xe);this.setVValue(Xe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Ue(Xe,Ve,Ne){this.propType="shape",this.comp=Xe.comp,this.container=Xe,this.elem=Xe,this.data=Ve,this.k=!1,this.kf=!1,this._mdf=!1;var qe=Ne===3?Ve.pt.k:Ve.ks.k;this.v=It.clone(qe),this.pv=It.clone(this.v),this.localShapeCollection=Zt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function We(Xe){this.effectsSequence.push(Xe),this.container.addDynamicProperty(this)}function Mt(Xe,Ve,Ne){this.propType="shape",this.comp=Xe.comp,this.elem=Xe,this.container=Xe,this.offsetTime=Xe.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=It.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,qe),this.pv=It.clone(this.v),this.localShapeCollection=Zt.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)]}Ue.prototype.interpolateShape=X,Ue.prototype.getValue=Oe,Ue.prototype.setVValue=$e,Ue.prototype.addEffect=We,Mt.prototype.getValue=Oe,Mt.prototype.interpolateShape=X,Mt.prototype.setVValue=$e,Mt.prototype.addEffect=We;var Kt=(function(){var Xe=L;function Ve(Ne,qe){this.v=It.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Zt.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],gt=this.s.v[0]/2,rn=this.s.v[1]/2,ln=this.d!==3,Ot=this.v;Ot.v[0][0]=Ne,Ot.v[0][1]=qe-rn,Ot.v[1][0]=ln?Ne+gt:Ne-gt,Ot.v[1][1]=qe,Ot.v[2][0]=Ne,Ot.v[2][1]=qe+rn,Ot.v[3][0]=ln?Ne-gt:Ne+gt,Ot.v[3][1]=qe,Ot.i[0][0]=ln?Ne-gt*Xe:Ne+gt*Xe,Ot.i[0][1]=qe-rn,Ot.i[1][0]=ln?Ne+gt:Ne-gt,Ot.i[1][1]=qe-rn*Xe,Ot.i[2][0]=ln?Ne+gt*Xe:Ne-gt*Xe,Ot.i[2][1]=qe+rn,Ot.i[3][0]=ln?Ne-gt:Ne+gt,Ot.i[3][1]=qe+rn*Xe,Ot.o[0][0]=ln?Ne+gt*Xe:Ne-gt*Xe,Ot.o[0][1]=qe-rn,Ot.o[1][0]=ln?Ne+gt:Ne-gt,Ot.o[1][1]=qe+rn*Xe,Ot.o[2][0]=ln?Ne-gt*Xe:Ne+gt*Xe,Ot.o[2][1]=qe+rn,Ot.o[3][0]=ln?Ne-gt:Ne+gt,Ot.o[3][1]=qe-rn*Xe}},g([Pt],Ve),Ve})(),et=(function(){function Xe(Ve,Ne){this.v=It.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=Zt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Xe.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,gt,rn=2*Math.floor(this.pt.v),ln=2*Math.PI/rn,Ot=!0,co=this.or.v,So=this.ir.v,si=this.os.v,Go=this.is.v,oo=2*Math.PI*co/(2*rn),Nt=2*Math.PI*So/(2*rn),gn=-Math.PI/2;gn+=this.r.v;var ft=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<rn;Ve+=1){qe=Ot?si:Go,gt=Ot?oo:Nt;var st=(Ne=Ot?co:So)*Math.cos(gn),Re=Ne*Math.sin(gn),pt=st===0&&Re===0?0:Re/Math.sqrt(st*st+Re*Re),bt=st===0&&Re===0?0:-st/Math.sqrt(st*st+Re*Re);st+=+this.p.v[0],Re+=+this.p.v[1],this.v.setTripleAt(st,Re,st-pt*gt*qe*ft,Re-bt*gt*qe*ft,st+pt*gt*qe*ft,Re+bt*gt*qe*ft,Ve,!0),Ot=!Ot,gn+=ln*ft}},convertPolygonToPath:function(){var Ve,Ne=Math.floor(this.pt.v),qe=2*Math.PI/Ne,gt=this.or.v,rn=this.os.v,ln=2*Math.PI*gt/(4*Ne),Ot=.5*-Math.PI,co=this.data.d===3?-1:1;for(Ot+=this.r.v,this.v._length=0,Ve=0;Ve<Ne;Ve+=1){var So=gt*Math.cos(Ot),si=gt*Math.sin(Ot),Go=So===0&&si===0?0:si/Math.sqrt(So*So+si*si),oo=So===0&&si===0?0:-So/Math.sqrt(So*So+si*si);So+=+this.p.v[0],si+=+this.p.v[1],this.v.setTripleAt(So,si,So-Go*ln*rn*co,si-oo*ln*rn*co,So+Go*ln*rn*co,si+oo*ln*rn*co,Ve,!0),Ot+=qe*co}this.paths.length=0,this.paths[0]=this.v}},g([Pt],Xe),Xe})(),ut=(function(){function Xe(Ve,Ne){this.v=It.newElement(),this.v.c=!0,this.localShapeCollection=Zt.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 Xe.prototype={convertRectToPath:function(){var Ve=this.p.v[0],Ne=this.p.v[1],qe=this.s.v[0]/2,gt=this.s.v[1]/2,rn=I(qe,gt,this.r.v),ln=rn*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(Ve+qe,Ne-gt+rn,Ve+qe,Ne-gt+rn,Ve+qe,Ne-gt+ln,0,!0),this.v.setTripleAt(Ve+qe,Ne+gt-rn,Ve+qe,Ne+gt-ln,Ve+qe,Ne+gt-rn,1,!0),rn!==0?(this.v.setTripleAt(Ve+qe-rn,Ne+gt,Ve+qe-rn,Ne+gt,Ve+qe-ln,Ne+gt,2,!0),this.v.setTripleAt(Ve-qe+rn,Ne+gt,Ve-qe+ln,Ne+gt,Ve-qe+rn,Ne+gt,3,!0),this.v.setTripleAt(Ve-qe,Ne+gt-rn,Ve-qe,Ne+gt-rn,Ve-qe,Ne+gt-ln,4,!0),this.v.setTripleAt(Ve-qe,Ne-gt+rn,Ve-qe,Ne-gt+ln,Ve-qe,Ne-gt+rn,5,!0),this.v.setTripleAt(Ve-qe+rn,Ne-gt,Ve-qe+rn,Ne-gt,Ve-qe+ln,Ne-gt,6,!0),this.v.setTripleAt(Ve+qe-rn,Ne-gt,Ve+qe-ln,Ne-gt,Ve+qe-rn,Ne-gt,7,!0)):(this.v.setTripleAt(Ve-qe,Ne+gt,Ve-qe+ln,Ne+gt,Ve-qe,Ne+gt,2),this.v.setTripleAt(Ve-qe,Ne-gt,Ve-qe,Ne-gt+ln,Ve-qe,Ne-gt,3))):(this.v.setTripleAt(Ve+qe,Ne-gt+rn,Ve+qe,Ne-gt+ln,Ve+qe,Ne-gt+rn,0,!0),rn!==0?(this.v.setTripleAt(Ve+qe-rn,Ne-gt,Ve+qe-rn,Ne-gt,Ve+qe-ln,Ne-gt,1,!0),this.v.setTripleAt(Ve-qe+rn,Ne-gt,Ve-qe+ln,Ne-gt,Ve-qe+rn,Ne-gt,2,!0),this.v.setTripleAt(Ve-qe,Ne-gt+rn,Ve-qe,Ne-gt+rn,Ve-qe,Ne-gt+ln,3,!0),this.v.setTripleAt(Ve-qe,Ne+gt-rn,Ve-qe,Ne+gt-ln,Ve-qe,Ne+gt-rn,4,!0),this.v.setTripleAt(Ve-qe+rn,Ne+gt,Ve-qe+rn,Ne+gt,Ve-qe+ln,Ne+gt,5,!0),this.v.setTripleAt(Ve+qe-rn,Ne+gt,Ve+qe-ln,Ne+gt,Ve+qe-rn,Ne+gt,6,!0),this.v.setTripleAt(Ve+qe,Ne+gt-rn,Ve+qe,Ne+gt-rn,Ve+qe,Ne+gt-ln,7,!0)):(this.v.setTripleAt(Ve-qe,Ne-gt,Ve-qe+ln,Ne-gt,Ve-qe,Ne-gt,1,!0),this.v.setTripleAt(Ve-qe,Ne+gt,Ve-qe,Ne+gt-ln,Ve-qe,Ne+gt,2,!0),this.v.setTripleAt(Ve+qe,Ne+gt,Ve+qe-ln,Ne+gt,Ve+qe,Ne+gt,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([Pt],Xe),Xe})();function Ct(Xe,Ve,Ne){var qe;return Ne===3||Ne===4?qe=(Ne===3?Ve.pt:Ve.ks).k.length?new Mt(Xe,Ve,Ne):new Ue(Xe,Ve,Ne):Ne===5?qe=new ut(Xe,Ve):Ne===6?qe=new Kt(Xe,Ve):Ne===7&&(qe=new et(Xe,Ve)),qe.k&&Xe.addDynamicProperty(qe),qe}function Et(){return Ue}function qt(){return Mt}var Jt={};return Jt.getShapeProp=Ct,Jt.getConstructorFunction=Et,Jt.getKeyframedConstructorFunction=qt,Jt})(),$t=(function(){var G=Math.cos,X=Math.sin,pe=Math.tan,xe=Math.round;function ve(){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(Re){if(Re===0)return this;var pt=G(Re),bt=X(Re);return this._t(pt,-bt,0,0,bt,pt,0,0,0,0,1,0,0,0,0,1)}function Oe(Re){if(Re===0)return this;var pt=G(Re),bt=X(Re);return this._t(1,0,0,0,0,pt,-bt,0,0,bt,pt,0,0,0,0,1)}function Ue(Re){if(Re===0)return this;var pt=G(Re),bt=X(Re);return this._t(pt,0,bt,0,0,1,0,0,-bt,0,pt,0,0,0,0,1)}function We(Re){if(Re===0)return this;var pt=G(Re),bt=X(Re);return this._t(pt,-bt,0,0,bt,pt,0,0,0,0,1,0,0,0,0,1)}function Mt(Re,pt){return this._t(1,pt,Re,1,0,0)}function Kt(Re,pt){return this.shear(pe(Re),pe(pt))}function et(Re,pt){var bt=G(pt),mi=X(pt);return this._t(bt,mi,0,0,-mi,bt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,pe(Re),1,0,0,0,0,1,0,0,0,0,1)._t(bt,-mi,0,0,mi,bt,0,0,0,0,1,0,0,0,0,1)}function ut(Re,pt,bt){return!bt&&bt!==0&&(bt=1),Re===1&&pt===1&&bt===1?this:this._t(Re,0,0,0,0,pt,0,0,0,0,bt,0,0,0,0,1)}function Ct(Re,pt,bt,mi,qo,To,ya,Ko,dl,ha,Ua,wm,l2,Cm,vm,Gp){return this.props[0]=Re,this.props[1]=pt,this.props[2]=bt,this.props[3]=mi,this.props[4]=qo,this.props[5]=To,this.props[6]=ya,this.props[7]=Ko,this.props[8]=dl,this.props[9]=ha,this.props[10]=Ua,this.props[11]=wm,this.props[12]=l2,this.props[13]=Cm,this.props[14]=vm,this.props[15]=Gp,this}function Et(Re,pt,bt){return bt=bt||0,Re!==0||pt!==0||bt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Re,pt,bt,1):this}function qt(Re,pt,bt,mi,qo,To,ya,Ko,dl,ha,Ua,wm,l2,Cm,vm,Gp){var cr=this.props;if(Re===1&&pt===0&&bt===0&&mi===0&&qo===0&&To===1&&ya===0&&Ko===0&&dl===0&&ha===0&&Ua===1&&wm===0)return cr[12]=cr[12]*Re+cr[15]*l2,cr[13]=cr[13]*To+cr[15]*Cm,cr[14]=cr[14]*Ua+cr[15]*vm,cr[15]*=Gp,this._identityCalculated=!1,this;var JS=cr[0],XS=cr[1],Y8=cr[2],Pf=cr[3],nx=cr[4],qp=cr[5],$y=cr[6],Ey=cr[7],c2=cr[8],Iy=cr[9],d2=cr[10],G8=cr[11],qN=cr[12],KN=cr[13],ZN=cr[14],JN=cr[15];return cr[0]=JS*Re+XS*qo+Y8*dl+Pf*l2,cr[1]=JS*pt+XS*To+Y8*ha+Pf*Cm,cr[2]=JS*bt+XS*ya+Y8*Ua+Pf*vm,cr[3]=JS*mi+XS*Ko+Y8*wm+Pf*Gp,cr[4]=nx*Re+qp*qo+$y*dl+Ey*l2,cr[5]=nx*pt+qp*To+$y*ha+Ey*Cm,cr[6]=nx*bt+qp*ya+$y*Ua+Ey*vm,cr[7]=nx*mi+qp*Ko+$y*wm+Ey*Gp,cr[8]=c2*Re+Iy*qo+d2*dl+G8*l2,cr[9]=c2*pt+Iy*To+d2*ha+G8*Cm,cr[10]=c2*bt+Iy*ya+d2*Ua+G8*vm,cr[11]=c2*mi+Iy*Ko+d2*wm+G8*Gp,cr[12]=qN*Re+KN*qo+ZN*dl+JN*l2,cr[13]=qN*pt+KN*To+ZN*ha+JN*Cm,cr[14]=qN*bt+KN*ya+ZN*Ua+JN*vm,cr[15]=qN*mi+KN*Ko+ZN*wm+JN*Gp,this._identityCalculated=!1,this}function Jt(Re){var pt=Re.props;return this.transform(pt[0],pt[1],pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],pt[8],pt[9],pt[10],pt[11],pt[12],pt[13],pt[14],pt[15])}function Xe(){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(Re){for(var pt=0;pt<16;){if(Re.props[pt]!==this.props[pt])return!1;pt+=1}return!0}function Ne(Re){var pt;for(pt=0;pt<16;pt+=1)Re.props[pt]=this.props[pt];return Re}function qe(Re){var pt;for(pt=0;pt<16;pt+=1)this.props[pt]=Re[pt]}function gt(Re,pt,bt){return{x:Re*this.props[0]+pt*this.props[4]+bt*this.props[8]+this.props[12],y:Re*this.props[1]+pt*this.props[5]+bt*this.props[9]+this.props[13],z:Re*this.props[2]+pt*this.props[6]+bt*this.props[10]+this.props[14]}}function rn(Re,pt,bt){return Re*this.props[0]+pt*this.props[4]+bt*this.props[8]+this.props[12]}function ln(Re,pt,bt){return Re*this.props[1]+pt*this.props[5]+bt*this.props[9]+this.props[13]}function Ot(Re,pt,bt){return Re*this.props[2]+pt*this.props[6]+bt*this.props[10]+this.props[14]}function co(){var Re=this.props[0]*this.props[5]-this.props[1]*this.props[4],pt=this.props[5]/Re,bt=-this.props[1]/Re,mi=-this.props[4]/Re,qo=this.props[0]/Re,To=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/Re,ya=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/Re,Ko=new $t;return Ko.props[0]=pt,Ko.props[1]=bt,Ko.props[4]=mi,Ko.props[5]=qo,Ko.props[12]=To,Ko.props[13]=ya,Ko}function So(Re){return this.getInverseMatrix().applyToPointArray(Re[0],Re[1],Re[2]||0)}function si(Re){var pt,bt=Re.length,mi=[];for(pt=0;pt<bt;pt+=1)mi[pt]=So(Re[pt]);return mi}function Go(Re,pt,bt){var mi=y("float32",6);if(this.isIdentity())mi[0]=Re[0],mi[1]=Re[1],mi[2]=pt[0],mi[3]=pt[1],mi[4]=bt[0],mi[5]=bt[1];else{var qo=this.props[0],To=this.props[1],ya=this.props[4],Ko=this.props[5],dl=this.props[12],ha=this.props[13];mi[0]=Re[0]*qo+Re[1]*ya+dl,mi[1]=Re[0]*To+Re[1]*Ko+ha,mi[2]=pt[0]*qo+pt[1]*ya+dl,mi[3]=pt[0]*To+pt[1]*Ko+ha,mi[4]=bt[0]*qo+bt[1]*ya+dl,mi[5]=bt[0]*To+bt[1]*Ko+ha}return mi}function oo(Re,pt,bt){return this.isIdentity()?[Re,pt,bt]:[Re*this.props[0]+pt*this.props[4]+bt*this.props[8]+this.props[12],Re*this.props[1]+pt*this.props[5]+bt*this.props[9]+this.props[13],Re*this.props[2]+pt*this.props[6]+bt*this.props[10]+this.props[14]]}function Nt(Re,pt){if(this.isIdentity())return Re+","+pt;var bt=this.props;return Math.round(100*(Re*bt[0]+pt*bt[4]+bt[12]))/100+","+Math.round(100*(Re*bt[1]+pt*bt[5]+bt[13]))/100}function gn(){for(var Re=0,pt=this.props,bt="matrix3d(",mi=1e4;Re<16;)bt+=xe(pt[Re]*mi)/mi,bt+=Re===15?")":",",Re+=1;return bt}function ft(Re){var pt=1e4;return Re<1e-6&&Re>0||Re>-1e-6&&Re<0?xe(Re*pt)/pt:Re}function st(){var Re=this.props;return"matrix("+ft(Re[0])+","+ft(Re[1])+","+ft(Re[4])+","+ft(Re[5])+","+ft(Re[12])+","+ft(Re[13])+")"}return function(){this.reset=ve,this.rotate=$e,this.rotateX=Oe,this.rotateY=Ue,this.rotateZ=We,this.skew=Kt,this.skewFromAxis=et,this.shear=Mt,this.scale=ut,this.setTransform=Ct,this.translate=Et,this.transform=qt,this.multiply=Jt,this.applyToPoint=gt,this.applyToX=rn,this.applyToY=ln,this.applyToZ=Ot,this.applyToPointArray=oo,this.applyToTriplePoints=Go,this.applyToPointStringified=Nt,this.toCSS=gn,this.to2dCSS=st,this.clone=Ne,this.cloneFromProps=qe,this.equals=Ve,this.inversePoints=si,this.inversePoint=So,this.getInverseMatrix=co,this._t=this.transform,this.isIdentity=Xe,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function xn(G){return xn=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},xn(G)}var Vt={};function nn(G){u(G)}function on(){Be.searchAnimations()}function ot(G){K(G)}function In(G){oe(G)}function $n(G){return Be.loadAnimation(G)}function Ci(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 Ki(){return typeof navigator<"u"}function ui(G,X){G==="expressions"&&ee(X)}function tn(G){switch(G){case"propertyFactory":return Ke;case"shapePropertyFactory":return Ze;case"matrix":return $t;default:return null}}function Mn(){document.readyState==="complete"&&(clearInterval(ti),on())}function Wn(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}Vt.play=Be.play,Vt.pause=Be.pause,Vt.setLocationHref=nn,Vt.togglePause=Be.togglePause,Vt.setSpeed=Be.setSpeed,Vt.setDirection=Be.setDirection,Vt.stop=Be.stop,Vt.searchAnimations=on,Vt.registerAnimation=Be.registerAnimation,Vt.loadAnimation=$n,Vt.setSubframeRendering=ot,Vt.resize=Be.resize,Vt.goToAndStop=Be.goToAndStop,Vt.destroy=Be.destroy,Vt.setQuality=Ci,Vt.inBrowser=Ki,Vt.installPlugin=ui,Vt.freeze=Be.freeze,Vt.unfreeze=Be.unfreeze,Vt.setVolume=Be.setVolume,Vt.mute=Be.mute,Vt.unmute=Be.unmute,Vt.getRegisteredAnimations=Be.getRegisteredAnimations,Vt.useWebWorker=c,Vt.setIDPrefix=In,Vt.__getFactory=tn,Vt.version="5.13.0";var Zn="",Gn=document.getElementsByTagName("script"),fi=Gn.length-1,Ln=Gn[fi]||{src:""};Zn=Ln.src?Ln.src.replace(/^[^\?]+\??/,""):"",Wn("renderer");var ti=setInterval(Mn,100);try{xn(n)!=="object"&&(window.bodymovin=Vt)}catch{}var mn=(function(){var G={},X={};function pe(ve,$e){X[ve]||(X[ve]=$e)}function xe(ve,$e,Oe){return new X[ve]($e,Oe)}return G.registerModifier=pe,G.getModifier=xe,G})();function jn(){}function yt(){}function Bt(){}jn.prototype.initModifierProperties=function(){},jn.prototype.addShapeToModifier=function(){},jn.prototype.addShape=function(G){if(!this.closed){G.sh.container.addDynamicProperty(G.sh);var X={shape:G.sh,data:G,localShapeCollection:Zt.newShapeCollection()};this.shapes.push(X),this.addShapeToModifier(X),this._isAnimated&&G.setAsAnimated()}},jn.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)},jn.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},g([Pt],jn),g([jn],yt),yt.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},yt.prototype.addShapeToModifier=function(G){G.pathsData=[]},yt.prototype.calculateShapeEdges=function(G,X,pe,xe,ve){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 Oe,Ue,We=[],Mt=$e.length;for(Oe=0;Oe<Mt;Oe+=1)if(!((Ue=$e[Oe]).e*ve<xe||Ue.s*ve>xe+pe)){var Kt,et;Kt=Ue.s*ve<=xe?0:(Ue.s*ve-xe)/pe,et=Ue.e*ve>=xe+pe?1:(Ue.e*ve-xe)/pe,We.push([Kt,et])}return We.length||We.push([0,0]),We},yt.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},yt.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 ve=X;X=pe,pe=ve}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,Oe,Ue,We,Mt,Kt,et,ut=this.shapes.length,Ct=0;if(pe===X)for(Oe=0;Oe<ut;Oe+=1)this.shapes[Oe].localShapeCollection.releaseShapes(),this.shapes[Oe].shape._mdf=!0,this.shapes[Oe].shape.paths=this.shapes[Oe].localShapeCollection,this._mdf&&(this.shapes[Oe].pathsData.length=0);else if(pe===1&&X===0||pe===0&&X===1){if(this._mdf)for(Oe=0;Oe<ut;Oe+=1)this.shapes[Oe].pathsData.length=0,this.shapes[Oe].shape._mdf=!0}else{var Et,qt,Jt=[];for(Oe=0;Oe<ut;Oe+=1)if((Et=this.shapes[Oe]).shape._mdf||this._mdf||G||this.m===2){if(We=($e=Et.shape.paths)._length,et=0,!Et.shape._mdf&&Et.pathsData.length)et=Et.totalShapeLength;else{for(Mt=this.releasePathsData(Et.pathsData),Ue=0;Ue<We;Ue+=1)Kt=Ie.getSegmentsLength($e.shapes[Ue]),Mt.push(Kt),et+=Kt.totalLength;Et.totalShapeLength=et,Et.pathsData=Mt}Ct+=et,Et.shape._mdf=!0}else Et.shape.paths=Et.localShapeCollection;var Xe,Ve=X,Ne=pe,qe=0;for(Oe=ut-1;Oe>=0;Oe-=1)if((Et=this.shapes[Oe]).shape._mdf){for((qt=Et.localShapeCollection).releaseShapes(),this.m===2&&ut>1?(Xe=this.calculateShapeEdges(X,pe,Et.totalShapeLength,qe,Ct),qe+=Et.totalShapeLength):Xe=[[Ve,Ne]],We=Xe.length,Ue=0;Ue<We;Ue+=1){Ve=Xe[Ue][0],Ne=Xe[Ue][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 gt=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=gt.pop();this.addPaths(gt,qt),gt=this.addShapes(Et,Jt[1],rn)}else this.addPaths(gt,qt),gt=this.addShapes(Et,Jt[1]);this.addPaths(gt,qt)}}Et.shape.paths=qt}}},yt.prototype.addPaths=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)X.addShape(G[pe])},yt.prototype.addSegment=function(G,X,pe,xe,ve,$e,Oe){ve.setXYAt(X[0],X[1],"o",$e),ve.setXYAt(pe[0],pe[1],"i",$e+1),Oe&&ve.setXYAt(G[0],G[1],"v",$e),ve.setXYAt(xe[0],xe[1],"v",$e+1)},yt.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)},yt.prototype.addShapes=function(G,X,pe){var xe,ve,$e,Oe,Ue,We,Mt,Kt,et=G.pathsData,ut=G.shape.paths.shapes,Ct=G.shape.paths._length,Et=0,qt=[],Jt=!0;for(pe?(Ue=pe._length,Kt=pe._length):(pe=It.newElement(),Ue=0,Kt=0),qt.push(pe),xe=0;xe<Ct;xe+=1){for(We=et[xe].lengths,pe.c=ut[xe].c,$e=ut[xe].c?We.length:We.length+1,ve=1;ve<$e;ve+=1)if(Et+(Oe=We[ve-1]).addedLength<X.s)Et+=Oe.addedLength,pe.c=!1;else{if(Et>X.e){pe.c=!1;break}X.s<=Et&&X.e>=Et+Oe.addedLength?(this.addSegment(ut[xe].v[ve-1],ut[xe].o[ve-1],ut[xe].i[ve],ut[xe].v[ve],pe,Ue,Jt),Jt=!1):(Mt=Ie.getNewSegment(ut[xe].v[ve-1],ut[xe].v[ve],ut[xe].o[ve-1],ut[xe].i[ve],(X.s-Et)/Oe.addedLength,(X.e-Et)/Oe.addedLength,We[ve-1]),this.addSegmentFromArray(Mt,pe,Ue,Jt),Jt=!1,pe.c=!1),Et+=Oe.addedLength,Ue+=1}if(ut[xe].c&&We.length){if(Oe=We[ve-1],Et<=X.e){var Xe=We[ve-1].addedLength;X.s<=Et&&X.e>=Et+Xe?(this.addSegment(ut[xe].v[ve-1],ut[xe].o[ve-1],ut[xe].i[0],ut[xe].v[0],pe,Ue,Jt),Jt=!1):(Mt=Ie.getNewSegment(ut[xe].v[ve-1],ut[xe].v[0],ut[xe].o[ve-1],ut[xe].i[0],(X.s-Et)/Xe,(X.e-Et)/Xe,We[ve-1]),this.addSegmentFromArray(Mt,pe,Ue,Jt),Jt=!1,pe.c=!1)}else pe.c=!1;Et+=Oe.addedLength,Ue+=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=It.newElement(),Jt=!0,qt.push(pe),Ue=0)}return qt},g([jn],Bt),Bt.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},Bt.prototype.processPath=function(G,X){var pe=X/100,xe=[0,0],ve=G._length,$e=0;for($e=0;$e<ve;$e+=1)xe[0]+=G.v[$e][0],xe[1]+=G.v[$e][1];xe[0]/=ve,xe[1]/=ve;var Oe,Ue,We,Mt,Kt,et,ut=It.newElement();for(ut.c=G.c,$e=0;$e<ve;$e+=1)Oe=G.v[$e][0]+(xe[0]-G.v[$e][0])*pe,Ue=G.v[$e][1]+(xe[1]-G.v[$e][1])*pe,We=G.o[$e][0]+(xe[0]-G.o[$e][0])*-pe,Mt=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,ut.setTripleAt(Oe,Ue,We,Mt,Kt,et,$e);return ut},Bt.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,Ue=this.shapes.length,We=this.amount.v;if(We!==0)for(pe=0;pe<Ue;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,ve=$e.shape.paths._length,xe=0;xe<ve;xe+=1)Oe.addShape(this.processPath(X[xe],We));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var On=(function(){var G=[0,0];function X(We){var Mt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Mt,this.a&&We.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&We.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&We.skewFromAxis(-this.sk.v,this.sa.v),this.r?We.rotate(-this.r.v):We.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?We.translate(this.px.v,this.py.v,-this.pz.v):We.translate(this.px.v,this.py.v,0):We.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(We){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||We){var Mt;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(Mt=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)/Mt,0),et=this.p.getValueAtTime(this.p.keyframes[0].t/Mt,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/Mt,0),et=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Mt,0)):(Kt=this.p.pv,et=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Mt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Kt=[],et=[];var ut=this.px,Ct=this.py;ut._caching.lastFrame+ut.offsetTime<=ut.keyframes[0].t?(Kt[0]=ut.getValueAtTime((ut.keyframes[0].t+.01)/Mt,0),Kt[1]=Ct.getValueAtTime((Ct.keyframes[0].t+.01)/Mt,0),et[0]=ut.getValueAtTime(ut.keyframes[0].t/Mt,0),et[1]=Ct.getValueAtTime(Ct.keyframes[0].t/Mt,0)):ut._caching.lastFrame+ut.offsetTime>=ut.keyframes[ut.keyframes.length-1].t?(Kt[0]=ut.getValueAtTime(ut.keyframes[ut.keyframes.length-1].t/Mt,0),Kt[1]=Ct.getValueAtTime(Ct.keyframes[Ct.keyframes.length-1].t/Mt,0),et[0]=ut.getValueAtTime((ut.keyframes[ut.keyframes.length-1].t-.01)/Mt,0),et[1]=Ct.getValueAtTime((Ct.keyframes[Ct.keyframes.length-1].t-.01)/Mt,0)):(Kt=[ut.pv,Ct.pv],et[0]=ut.getValueAtTime((ut._caching.lastFrame+ut.offsetTime-.01)/Mt,ut.offsetTime),et[1]=Ct.getValueAtTime((Ct._caching.lastFrame+Ct.offsetTime-.01)/Mt,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 ve(){}function $e(We){this._addDynamicProperty(We),this.elem.addDynamicProperty(We),this._isDirty=!0}function Oe(We,Mt,Kt){if(this.elem=We,this.frameId=-1,this.propType="transform",this.data=Mt,this.v=new $t,this.pre=new $t,this.appliedTransformations=0,this.initDynamicPropertyContainer(Kt||We),Mt.p&&Mt.p.s?(this.px=Ke.getProp(We,Mt.p.x,0,0,this),this.py=Ke.getProp(We,Mt.p.y,0,0,this),Mt.p.z&&(this.pz=Ke.getProp(We,Mt.p.z,0,0,this))):this.p=Ke.getProp(We,Mt.p||{k:[0,0,0]},1,0,this),Mt.rx){if(this.rx=Ke.getProp(We,Mt.rx,0,D,this),this.ry=Ke.getProp(We,Mt.ry,0,D,this),this.rz=Ke.getProp(We,Mt.rz,0,D,this),Mt.or.k[0].ti){var et,ut=Mt.or.k.length;for(et=0;et<ut;et+=1)Mt.or.k[et].to=null,Mt.or.k[et].ti=null}this.or=Ke.getProp(We,Mt.or,1,D,this),this.or.sh=!0}else this.r=Ke.getProp(We,Mt.r||{k:0},0,D,this);Mt.sk&&(this.sk=Ke.getProp(We,Mt.sk,0,D,this),this.sa=Ke.getProp(We,Mt.sa,0,D,this)),this.a=Ke.getProp(We,Mt.a||{k:[0,0,0]},1,0,this),this.s=Ke.getProp(We,Mt.s||{k:[100,100,100]},1,.01,this),Mt.o?this.o=Ke.getProp(We,Mt.o,0,.01,We):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function Ue(We,Mt,Kt){return new Oe(We,Mt,Kt)}return Oe.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:ve},g([Pt],Oe),Oe.prototype.addDynamicProperty=$e,Oe.prototype._addDynamicProperty=Pt.prototype.addDynamicProperty,{getTransformProperty:Ue}})();function ei(){}function Jn(){}function sn(G,X){return 1e5*Math.abs(G-X)<=Math.min(Math.abs(G),Math.abs(X))}function Vi(G){return Math.abs(G)<=1e-5}function xi(G,X,pe){return G*(1-pe)+X*pe}function Do(G,X,pe){return[xi(G[0],X[0],pe),xi(G[1],X[1],pe)]}function wo(G,X,pe){if(G===0)return[];var xe=X*X-4*G*pe;if(xe<0)return[];var ve=-X/(2*G);if(xe===0)return[ve];var $e=Math.sqrt(xe)/(2*G);return[ve-$e,ve+$e]}function pi(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 pn(G,G,G,G,!1)}function pn(G,X,pe,xe,ve){ve&&lo(G,X)&&(X=Do(G,xe,1/3)),ve&&lo(pe,xe)&&(pe=Do(G,xe,2/3));var $e=pi(G[0],X[0],pe[0],xe[0]),Oe=pi(G[1],X[1],pe[1],xe[1]);this.a=[$e[0],Oe[0]],this.b=[$e[1],Oe[1]],this.c=[$e[2],Oe[2]],this.d=[$e[3],Oe[3]],this.points=[G,X,pe,xe]}function _t(G,X){var pe=G.points[0][X],xe=G.points[G.points.length-1][X];if(pe>xe){var ve=xe;xe=pe,pe=ve}for(var $e=wo(3*G.a[X],2*G.b[X],G.c[X]),Oe=0;Oe<$e.length;Oe+=1)if($e[Oe]>0&&$e[Oe]<1){var Ue=G.point($e[Oe])[X];Ue<pe?pe=Ue:Ue>xe&&(xe=Ue)}return{min:pe,max:xe}}function yn(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 Bn(G){var X=G.bez.split(.5);return[yn(X[0],G.t1,G.t),yn(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 Gt(G,X,pe,xe,ve,$e){if(vn(G,X)){if(pe>=$e||G.width<=xe&&G.height<=xe&&X.width<=xe&&X.height<=xe)return void ve.push([G.t,X.t]);var Oe=Bn(G),Ue=Bn(X);Gt(Oe[0],Ue[0],pe+1,xe,ve,$e),Gt(Oe[0],Ue[1],pe+1,xe,ve,$e),Gt(Oe[1],Ue[0],pe+1,xe,ve,$e),Gt(Oe[1],Ue[1],pe+1,xe,ve,$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 so(G,X,pe,xe){var ve=[G[0],G[1],1],$e=[X[0],X[1],1],Oe=[pe[0],pe[1],1],Ue=[xe[0],xe[1],1],We=zn(zn(ve,$e),zn(Oe,Ue));return Vi(We[2])?null:[We[0]/We[2],We[1]/We[2]]}function Zi(G,X,pe){return[G[0]+Math.cos(X)*pe,G[1]-Math.sin(X)*pe]}function No(G,X){return Math.hypot(G[0]-X[0],G[1]-X[1])}function lo(G,X){return sn(G[0],X[0])&&sn(G[1],X[1])}function ua(){}function gr(G,X,pe,xe,ve,$e,Oe){var Ue=pe-Math.PI/2,We=pe+Math.PI/2,Mt=X[0]+Math.cos(pe)*xe*ve,Kt=X[1]-Math.sin(pe)*xe*ve;G.setTripleAt(Mt,Kt,Mt+Math.cos(Ue)*$e,Kt-Math.sin(Ue)*$e,Mt+Math.cos(We)*Oe,Kt-Math.sin(We)*Oe,G.length())}function $a(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 jt(G,X){var pe=X===0?G.length()-1:X-1,xe=(X+1)%G.length(),ve=$a(G.v[pe],G.v[xe]);return Math.atan2(0,1)-Math.atan2(ve[1],ve[0])}function cn(G,X,pe,xe,ve,$e,Oe){var Ue=jt(X,pe),We=X.v[pe%X._length],Mt=X.v[pe===0?X._length-1:pe-1],Kt=X.v[(pe+1)%X._length],et=$e===2?Math.sqrt(Math.pow(We[0]-Mt[0],2)+Math.pow(We[1]-Mt[1],2)):0,ut=$e===2?Math.sqrt(Math.pow(We[0]-Kt[0],2)+Math.pow(We[1]-Kt[1],2)):0;gr(G,X.v[pe%X._length],Ue,Oe,xe,ut/(2*(ve+1)),et/(2*(ve+1)))}function Vn(G,X,pe,xe,ve,$e){for(var Oe=0;Oe<xe;Oe+=1){var Ue=(Oe+1)/(xe+1),We=ve===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,Mt=X.normalAngle(Ue);gr(G,X.point(Ue),Mt,$e,pe,We/(2*(xe+1)),We/(2*(xe+1))),$e=-$e}return $e}function no(G,X,pe){var xe=Math.atan2(X[0]-G[0],X[1]-G[1]);return[Zi(G,xe,pe),Zi(X,xe,pe)]}function io(G,X){var pe,xe,ve,$e,Oe,Ue,We;pe=(We=no(G.points[0],G.points[1],X))[0],xe=We[1],ve=(We=no(G.points[1],G.points[2],X))[0],$e=We[1],Oe=(We=no(G.points[2],G.points[3],X))[0],Ue=We[1];var Mt=so(pe,xe,ve,$e);Mt===null&&(Mt=xe);var Kt=so(Oe,Ue,ve,$e);return Kt===null&&(Kt=Oe),new pn(pe,Mt,Kt,Ue)}function Ti(G,X,pe,xe,ve){var $e=X.points[3],Oe=pe.points[0];if(xe===3||lo($e,Oe))return $e;if(xe===2){var Ue=-X.tangentAngle(1),We=-pe.tangentAngle(0)+Math.PI,Mt=so($e,Zi($e,Ue+Math.PI/2,100),Oe,Zi(Oe,Ue+Math.PI/2,100)),Kt=Mt?No(Mt,$e):No($e,Oe)/2,et=Zi($e,Ue,2*Kt*L);return G.setXYAt(et[0],et[1],"o",G.length()-1),et=Zi(Oe,We,2*Kt*L),G.setTripleAt(Oe[0],Oe[1],Oe[0],Oe[1],et[0],et[1],G.length()),Oe}var ut=so(lo($e,X.points[2])?X.points[0]:X.points[2],$e,Oe,lo(Oe,pe.points[1])?pe.points[3]:pe.points[1]);return ut&&No(ut,$e)<ve?(G.setTripleAt(ut[0],ut[1],ut[0],ut[1],ut[0],ut[1],G.length()),ut):$e}function Ii(G,X){var pe=G.intersections(X);return pe.length&&sn(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Wo(G,X){var pe=G.slice(),xe=X.slice(),ve=Ii(G[G.length-1],X[0]);return ve&&(pe[G.length-1]=G[G.length-1].split(ve[0])[0],xe[0]=X[0].split(ve[1])[1]),G.length>1&&X.length>1&&(ve=Ii(G[0],X[X.length-1]))?[[G[0].split(ve[0])[0]],[X[X.length-1].split(ve[1])[1]]]:[pe,xe]}function hi(G){for(var X,pe=1;pe<G.length;pe+=1)X=Wo(G[pe-1],G[pe]),G[pe-1]=X[0],G[pe]=X[1];return G.length>1&&(X=Wo(G[G.length-1],G[0]),G[G.length-1]=X[0],G[0]=X[1]),G}function mo(G,X){var pe,xe,ve,$e,Oe=G.inflectionPoints();if(Oe.length===0)return[io(G,X)];if(Oe.length===1||sn(Oe[1],1))return pe=(ve=G.split(Oe[0]))[0],xe=ve[1],[io(pe,X),io(xe,X)];pe=(ve=G.split(Oe[0]))[0];var Ue=(Oe[1]-Oe[0])/(1-Oe[0]);return $e=(ve=ve[1].split(Ue))[0],xe=ve[1],[io(pe,X),io($e,X),io(xe,X)]}function fr(){}function Rt(G){for(var X,pe=G.fStyle?G.fStyle.split(" "):[],xe="normal",ve="normal",$e=pe.length,Oe=0;Oe<$e;Oe+=1)switch(X=pe[Oe].toLowerCase(),X){case"italic":ve="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:ve,weight:G.fWeight||xe}}g([jn],ei),ei.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=On.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 $t,this.rMatrix=new $t,this.sMatrix=new $t,this.tMatrix=new $t,this.matrix=new $t},ei.prototype.applyTransforms=function(G,X,pe,xe,ve,$e){var Oe=$e?-1:1,Ue=xe.s.v[0]+(1-xe.s.v[0])*(1-ve),We=xe.s.v[1]+(1-xe.s.v[1])*(1-ve);G.translate(xe.p.v[0]*Oe*ve,xe.p.v[1]*Oe*ve,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Oe*ve),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/Ue:Ue,$e?1/We:We),pe.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2])},ei.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)},ei.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)},ei.prototype.cloneElements=function(G){var X=JSON.parse(JSON.stringify(G));return this.resetElements(X),X},ei.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)},ei.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe=!1;if(this._mdf||G){var Ue,We=Math.ceil(this.c.v);if(this._groups.length<We){for(;this._groups.length<We;){var Mt={it:this.cloneElements(this._elements),ty:"gr"};Mt.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,Mt),this._groups.splice(0,0,Mt),this._currentCopies+=1}this.elem.reloadShapes(),Oe=!0}for($e=0,xe=0;xe<=this._groups.length-1;xe+=1){if(Ue=$e<We,this._groups[xe]._render=Ue,this.changeGroupRender(this._groups[xe].it,Ue),!Ue){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=We;var ut=this.o.v,Ct=ut%1,Et=ut>0?Math.floor(ut):Math.ceil(ut),qt=this.pMatrix.props,Jt=this.rMatrix.props,Xe=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Ve,Ne,qe=0;if(ut>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(ut<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,ve=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&&ve===1||xe!==this._currentCopies-1&&ve===-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(Xe[0],Xe[1],Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],Xe[8],Xe[9],Xe[10],Xe[11],Xe[12],Xe[13],Xe[14],Xe[15]),this.matrix.transform(qt[0],qt[1],qt[2],qt[3],qt[4],qt[5],qt[6],qt[7],qt[8],qt[9],qt[10],qt[11],qt[12],qt[13],qt[14],qt[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+=ve}}else for($e=this._currentCopies,xe=0,ve=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+=ve;return Oe},ei.prototype.addShape=function(){},g([jn],Jn),Jn.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},Jn.prototype.processPath=function(G,X){var pe=It.newElement();pe.c=G.c;var xe,ve,$e,Oe,Ue,We,Mt,Kt,et,ut,Ct,Et,qt,Jt=G._length,Xe=0;for(xe=0;xe<Jt;xe+=1)ve=G.v[xe],Oe=G.o[xe],$e=G.i[xe],ve[0]===Oe[0]&&ve[1]===Oe[1]&&ve[0]===$e[0]&&ve[1]===$e[1]?xe!==0&&xe!==Jt-1||G.c?(Ue=xe===0?G.v[Jt-1]:G.v[xe-1],Mt=(We=Math.sqrt(Math.pow(ve[0]-Ue[0],2)+Math.pow(ve[1]-Ue[1],2)))?Math.min(We/2,X)/We:0,Kt=Et=ve[0]+(Ue[0]-ve[0])*Mt,et=qt=ve[1]-(ve[1]-Ue[1])*Mt,ut=Kt-(Kt-ve[0])*L,Ct=et-(et-ve[1])*L,pe.setTripleAt(Kt,et,ut,Ct,Et,qt,Xe),Xe+=1,Ue=xe===Jt-1?G.v[0]:G.v[xe+1],Mt=(We=Math.sqrt(Math.pow(ve[0]-Ue[0],2)+Math.pow(ve[1]-Ue[1],2)))?Math.min(We/2,X)/We:0,Kt=ut=ve[0]+(Ue[0]-ve[0])*Mt,et=Ct=ve[1]+(Ue[1]-ve[1])*Mt,Et=Kt-(Kt-ve[0])*L,qt=et-(et-ve[1])*L,pe.setTripleAt(Kt,et,ut,Ct,Et,qt,Xe),Xe+=1):(pe.setTripleAt(ve[0],ve[1],Oe[0],Oe[1],$e[0],$e[1],Xe),Xe+=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],Xe),Xe+=1);return pe},Jn.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,Ue=this.shapes.length,We=this.rd.v;if(We!==0)for(pe=0;pe<Ue;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,ve=$e.shape.paths._length,xe=0;xe<ve;xe+=1)Oe.addShape(this.processPath(X[xe],We));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},pn.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]]},pn.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]]},pn.prototype.tangentAngle=function(G){var X=this.derivative(G);return Math.atan2(X[1],X[0])},pn.prototype.normalAngle=function(G){var X=this.derivative(G);return Math.atan2(X[0],X[1])},pn.prototype.inflectionPoints=function(){var G=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Vi(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 Vi(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(ve){return ve>0&&ve<1}))},pn.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=Do(this.points[0],this.points[1],G),pe=Do(this.points[1],this.points[2],G),xe=Do(this.points[2],this.points[3],G),ve=Do(X,pe,G),$e=Do(pe,xe,G),Oe=Do(ve,$e,G);return[new pn(this.points[0],X,ve,Oe,!0),new pn(Oe,$e,xe,this.points[3],!0)]},pn.prototype.bounds=function(){return{x:_t(this,0),y:_t(this,1)}},pn.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}},pn.prototype.intersections=function(G,X,pe){X===void 0&&(X=2),pe===void 0&&(pe=7);var xe=[];return Gt(yn(this,0,1),yn(G,0,1),0,X,xe,pe),xe},pn.shapeSegment=function(G,X){var pe=(X+1)%G.length();return new pn(G.v[X],G.o[X],G.i[pe],G.v[pe],!0)},pn.shapeSegmentInverted=function(G,X){var pe=(X+1)%G.length();return new pn(G.v[pe],G.i[pe],G.o[X],G.v[X],!0)},g([jn],ua),ua.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},ua.prototype.processPath=function(G,X,pe,xe){var ve=G._length,$e=It.newElement();if($e.c=G.c,G.c||(ve-=1),ve===0)return $e;var Oe=-1,Ue=pn.shapeSegment(G,0);cn($e,G,0,X,pe,xe,Oe);for(var We=0;We<ve;We+=1)Oe=Vn($e,Ue,X,pe,xe,-Oe),Ue=We!==ve-1||G.c?pn.shapeSegment(G,(We+1)%ve):null,cn($e,G,We+1,X,pe,xe,Oe);return $e},ua.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,Ue=this.shapes.length,We=this.amplitude.v,Mt=Math.max(0,Math.round(this.frequency.v)),Kt=this.pointsType.v;if(We!==0)for(pe=0;pe<Ue;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,ve=$e.shape.paths._length,xe=0;xe<ve;xe+=1)Oe.addShape(this.processPath(X[xe],We,Mt,Kt));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([jn],fr),fr.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},fr.prototype.processPath=function(G,X,pe,xe){var ve=It.newElement();ve.c=G.c;var $e=G.length();G.c||($e-=1);var Oe,Ue,We,Mt=[];for(Oe=0;Oe<$e;Oe+=1)We=pn.shapeSegment(G,Oe),Mt.push(mo(We,X));if(!G.c)for(Oe=$e-1;Oe>=0;Oe-=1)We=pn.shapeSegmentInverted(G,Oe),Mt.push(mo(We,X));Mt=hi(Mt);var Kt=null,et=null;for(Oe=0;Oe<Mt.length;Oe+=1){var ut=Mt[Oe];for(et&&(Kt=Ti(ve,et,ut[0],pe,xe)),et=ut[ut.length-1],Ue=0;Ue<ut.length;Ue+=1)We=ut[Ue],Kt&&lo(We.points[0],Kt)?ve.setXYAt(We.points[1][0],We.points[1][1],"o",ve.length()-1):ve.setTripleAt(We.points[0][0],We.points[0][1],We.points[1][0],We.points[1][1],We.points[0][0],We.points[0][1],ve.length()),ve.setTripleAt(We.points[3][0],We.points[3][1],We.points[3][0],We.points[3][1],We.points[2][0],We.points[2][1],ve.length()),Kt=We.points[3]}return Mt.length&&Ti(ve,et,Mt[0][0],pe,xe),ve},fr.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,Ue=this.shapes.length,We=this.amount.v,Mt=this.miterLimit.v,Kt=this.lineJoin;if(We!==0)for(pe=0;pe<Ue;pe+=1){if(Oe=($e=this.shapes[pe]).localShapeCollection,$e.shape._mdf||this._mdf||G)for(Oe.releaseShapes(),$e.shape._mdf=!0,X=$e.shape.paths.shapes,ve=$e.shape.paths._length,xe=0;xe<ve;xe+=1)Oe.addShape(this.processPath(X[xe],We,Kt,Mt));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var dn=(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,ve=917631,$e=917601,Oe=917626,Ue=65039,We=8205,Mt=127462,Kt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function ut(ft){var st,Re=ft.split(","),pt=Re.length,bt=[];for(st=0;st<pt;st+=1)Re[st]!=="sans-serif"&&Re[st]!=="monospace"&&bt.push(Re[st]);return bt.join(",")}function Ct(ft,st){var Re=h("span");Re.setAttribute("aria-hidden",!0),Re.style.fontFamily=st;var pt=h("span");pt.innerText="giItT1WQy@!-/#",Re.style.position="absolute",Re.style.left="-10000px",Re.style.top="-10000px",Re.style.fontSize="300px",Re.style.fontVariant="normal",Re.style.fontStyle="normal",Re.style.fontWeight="normal",Re.style.letterSpacing="0",Re.appendChild(pt),document.body.appendChild(Re);var bt=pt.offsetWidth;return pt.style.fontFamily=ut(ft)+", "+st,{node:pt,w:bt,parent:Re}}function Et(){var ft,st,Re,pt=this.fonts.length,bt=pt;for(ft=0;ft<pt;ft+=1)this.fonts[ft].loaded?bt-=1:this.fonts[ft].fOrigin==="n"||this.fonts[ft].origin===0?this.fonts[ft].loaded=!0:(st=this.fonts[ft].monoCase.node,Re=this.fonts[ft].monoCase.w,st.offsetWidth!==Re?(bt-=1,this.fonts[ft].loaded=!0):(st=this.fonts[ft].sansCase.node,Re=this.fonts[ft].sansCase.w,st.offsetWidth!==Re&&(bt-=1,this.fonts[ft].loaded=!0)),this.fonts[ft].loaded&&(this.fonts[ft].sansCase.parent.parentNode.removeChild(this.fonts[ft].sansCase.parent),this.fonts[ft].monoCase.parent.parentNode.removeChild(this.fonts[ft].monoCase.parent)));bt!==0&&Date.now()-this.initTime<G?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function qt(ft,st){var Re,pt=document.body&&st?"svg":"canvas",bt=Rt(ft);if(pt==="svg"){var mi=le("text");mi.style.fontSize="100px",mi.setAttribute("font-family",ft.fFamily),mi.setAttribute("font-style",bt.style),mi.setAttribute("font-weight",bt.weight),mi.textContent="1",ft.fClass?(mi.style.fontFamily="inherit",mi.setAttribute("class",ft.fClass)):mi.style.fontFamily=ft.fFamily,st.appendChild(mi),Re=mi}else{var qo=new OffscreenCanvas(500,500).getContext("2d");qo.font=bt.style+" "+bt.weight+" 100px "+ft.fFamily,Re=qo}function To(ya){return pt==="svg"?(Re.textContent=ya,Re.getComputedTextLength()):Re.measureText(ya).width}return{measureText:To}}function Jt(ft,st){if(ft){if(this.chars)return this.isLoaded=!0,void(this.fonts=ft.list);if(!document.body)return this.isLoaded=!0,ft.list.forEach((function(Ua){Ua.helper=qt(Ua),Ua.cache={}})),void(this.fonts=ft.list);var Re,pt=ft.list,bt=pt.length,mi=bt;for(Re=0;Re<bt;Re+=1){var qo,To,ya=!0;if(pt[Re].loaded=!1,pt[Re].monoCase=Ct(pt[Re].fFamily,"monospace"),pt[Re].sansCase=Ct(pt[Re].fFamily,"sans-serif"),pt[Re].fPath){if(pt[Re].fOrigin==="p"||pt[Re].origin===3){if((qo=document.querySelectorAll('style[f-forigin="p"][f-family="'+pt[Re].fFamily+'"], style[f-origin="3"][f-family="'+pt[Re].fFamily+'"]')).length>0&&(ya=!1),ya){var Ko=h("style");Ko.setAttribute("f-forigin",pt[Re].fOrigin),Ko.setAttribute("f-origin",pt[Re].origin),Ko.setAttribute("f-family",pt[Re].fFamily),Ko.type="text/css",Ko.innerText="@font-face {font-family: "+pt[Re].fFamily+"; font-style: normal; src: url('"+pt[Re].fPath+"');}",st.appendChild(Ko)}}else if(pt[Re].fOrigin==="g"||pt[Re].origin===1){for(qo=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),To=0;To<qo.length;To+=1)qo[To].href.indexOf(pt[Re].fPath)!==-1&&(ya=!1);if(ya){var dl=h("link");dl.setAttribute("f-forigin",pt[Re].fOrigin),dl.setAttribute("f-origin",pt[Re].origin),dl.type="text/css",dl.rel="stylesheet",dl.href=pt[Re].fPath,document.body.appendChild(dl)}}else if(pt[Re].fOrigin==="t"||pt[Re].origin===2){for(qo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),To=0;To<qo.length;To+=1)pt[Re].fPath===qo[To].src&&(ya=!1);if(ya){var ha=h("link");ha.setAttribute("f-forigin",pt[Re].fOrigin),ha.setAttribute("f-origin",pt[Re].origin),ha.setAttribute("rel","stylesheet"),ha.setAttribute("href",pt[Re].fPath),st.appendChild(ha)}}}else pt[Re].loaded=!0,mi-=1;pt[Re].helper=qt(pt[Re],st),pt[Re].cache={},this.fonts.push(pt[Re])}mi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Xe(ft){if(ft){this.chars||(this.chars=[]);var st,Re,pt,bt=ft.length,mi=this.chars.length;for(st=0;st<bt;st+=1){for(Re=0,pt=!1;Re<mi;)this.chars[Re].style===ft[st].style&&this.chars[Re].fFamily===ft[st].fFamily&&this.chars[Re].ch===ft[st].ch&&(pt=!0),Re+=1;pt||(this.chars.push(ft[st]),mi+=1)}}}function Ve(ft,st,Re){for(var pt=0,bt=this.chars.length;pt<bt;){if(this.chars[pt].ch===ft&&this.chars[pt].style===st&&this.chars[pt].fFamily===Re)return this.chars[pt];pt+=1}return(typeof ft=="string"&&ft.charCodeAt(0)!==13||!ft)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",ft,st,Re)),X}function Ne(ft,st,Re){var pt=this.getFontByName(st),bt=ft;if(!pt.cache[bt]){var mi=pt.helper;if(ft===" "){var qo=mi.measureText("|"+ft+"|"),To=mi.measureText("||");pt.cache[bt]=(qo-To)/100}else pt.cache[bt]=mi.measureText(ft)/100}return pt.cache[bt]*Re}function qe(ft){for(var st=0,Re=this.fonts.length;st<Re;){if(this.fonts[st].fName===ft)return this.fonts[st];st+=1}return this.fonts[0]}function gt(ft){var st=0,Re=ft.charCodeAt(0);if(Re>=55296&&Re<=56319){var pt=ft.charCodeAt(1);pt>=56320&&pt<=57343&&(st=1024*(Re-55296)+pt-56320+65536)}return st}function rn(ft,st){var Re=ft.toString(16)+st.toString(16);return et.indexOf(Re)!==-1}function ln(ft){return ft===We}function Ot(ft){return ft===Ue}function co(ft){var st=gt(ft);return st>=Mt&&st<=Kt}function So(ft){return co(ft.substr(0,2))&&co(ft.substr(2,2))}function si(ft){return pe.indexOf(ft)!==-1}function Go(ft,st){var Re=gt(ft.substr(st,2));if(Re!==xe)return!1;var pt=0;for(st+=2;pt<5;){if((Re=gt(ft.substr(st,2)))<$e||Re>Oe)return!1;pt+=1,st+=2}return gt(ft.substr(st,2))===ve}function oo(){this.isLoaded=!0}var Nt=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)};Nt.isModifier=rn,Nt.isZeroWidthJoiner=ln,Nt.isFlagEmoji=So,Nt.isRegionalCode=co,Nt.isCombinedCharacter=si,Nt.isRegionalFlag=Go,Nt.isVariationSelector=Ot,Nt.BLACK_FLAG_CODE_POINT=xe;var gn={addChars:Xe,addFonts:Jt,getCharData:Ve,getFontByName:qe,measureText:Ne,checkLoadedFonts:Et,setIsLoaded:oo};return Nt.prototype=gn,Nt})();function Xt(G){this.animationData=G}function ci(G){return new Xt(G)}function Sn(){}Xt.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 Di(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 Hi(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function Xi(G,X,pe){this.p=Ke.getProp(X,G.v,1,0,pe)}function Tt(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function gi(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function go(G,X,pe){this.p=Ke.getProp(X,G.v,0,0,pe)}function _r(){this.p={}}function xr(G,X){var pe=G.ef||[];this.effectElements=[];var xe,ve,$e=pe.length;for(xe=0;xe<$e;xe+=1)ve=new yr(pe[xe],X),this.effectElements.push(ve)}function yr(G,X){this.init(G,X)}function Rn(){}function bi(){}function nr(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 pa(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 Js(){}g([Pt],yr),yr.prototype.getValue=yr.prototype.iterateDynamicProperties,yr.prototype.init=function(G,X){this.data=G,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,ve=this.data.ef.length,$e=this.data.ef;for(pe=0;pe<ve;pe+=1){switch(xe=null,$e[pe].ty){case 0:xe=new Di($e[pe],X,this);break;case 1:xe=new xo($e[pe],X,this);break;case 2:xe=new Hi($e[pe],X,this);break;case 3:xe=new Xi($e[pe],X,this);break;case 4:case 7:xe=new go($e[pe],X,this);break;case 10:xe=new Tt($e[pe],X,this);break;case 11:xe=new gi($e[pe],X,this);break;case 5:xe=new xr($e[pe],X);break;default:xe=new _r($e[pe])}xe&&this.effectElements.push(xe)}},Rn.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 xr(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},bi.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)}},nr.prototype.prepareFrame=function(){},g([Sn,Rn,bi],nr),nr.prototype.getBaseElement=function(){return null},nr.prototype.renderFrame=function(){},nr.prototype.destroy=function(){},nr.prototype.initExpressions=function(){},nr.prototype.getFootageData=function(){return this.footageData},pa.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,Rn,bi],pa),pa.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))},pa.prototype.show=function(){},pa.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},pa.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},pa.prototype.resume=function(){this._canPlay=!0},pa.prototype.setRate=function(G){this.audio.rate(G)},pa.prototype.volume=function(G){this._volumeMultiplier=G,this._previousVolume=G*this._volume,this.audio.volume(this._previousVolume)},pa.prototype.getBaseElement=function(){return null},pa.prototype.destroy=function(){},pa.prototype.sourceRectAtTime=function(){},pa.prototype.initExpressions=function(){},Js.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()},Js.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)}},Js.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Js.prototype.createAudio=function(G){return new pa(G,this.globalData,this)},Js.prototype.createFootage=function(G){return new nr(G,this.globalData,this)},Js.prototype.buildAllItems=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.buildItem(G);this.checkPendingElements()},Js.prototype.includeLayers=function(G){this.completeLayers=!1;var X,pe,xe=G.length,ve=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<ve;){if(this.layers[pe].id===G[X].id){this.layers[pe]=G[X];break}pe+=1}},Js.prototype.setProjectInterface=function(G){this.globalData.projectInterface=G},Js.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Js.prototype.buildElementParenting=function(G,X,pe){for(var xe=this.elements,ve=this.layers,$e=0,Oe=ve.length;$e<Oe;)ve[$e].ind==X&&(xe[$e]&&xe[$e]!==!0?(pe.push(xe[$e]),xe[$e].setAsParent(),ve[$e].parent!==void 0?this.buildElementParenting(G,ve[$e].parent,pe):G.setHierarchy(pe)):(this.buildItem($e),this.addPendingElement(G))),$e+=1},Js.prototype.addPendingElement=function(G){this.pendingElements.push(G)},Js.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)}},Js.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},Js.prototype.getElementByPath=function(G){var X,pe=G.shift();if(typeof pe=="number")X=this.elements[pe];else{var xe,ve=this.elements.length;for(xe=0;xe<ve;xe+=1)if(this.elements[xe].data.nm===pe){X=this.elements[xe];break}}return G.length===0?X:X.getElementByPath(G)},Js.prototype.setupGlobalData=function(G,X){this.globalData.fontManager=new dn,this.globalData.slotManager=ci(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 ZT={TRANSFORM_EFFECT:"transformEFfect"};function a2(){}function xm(G,X,pe){this.data=G,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,ve=this.globalData.defs,$e=this.masksProperties?this.masksProperties.length:0;this.viewData=b($e),this.solidPath="";var Oe,Ue,We,Mt,Kt,et,ut,Ct=this.masksProperties,Et=0,qt=[],Jt=H(),Xe="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)&&(Xe="mask",Ve="mask"),Ct[xe].mode!=="s"&&Ct[xe].mode!=="i"||Et!==0?Mt=null:((Mt=le("rect")).setAttribute("fill","#ffffff"),Mt.setAttribute("width",this.element.comp.data.w||0),Mt.setAttribute("height",this.element.comp.data.h||0),qt.push(Mt)),Oe=le("path"),Ct[xe].mode==="n")this.viewData[xe]={op:Ke.getProp(this.element,Ct[xe].o,0,.01,this.element),prop:Ze.getShapeProp(this.element,Ct[xe],3),elem:Oe,lastPath:""},ve.appendChild(Oe);else{var Ne;if(Et+=1,Oe.setAttribute("fill",Ct[xe].mode==="s"?"#000000":"#ffffff"),Oe.setAttribute("clip-rule","nonzero"),Ct[xe].x.k!==0?(Xe="mask",Ve="mask",ut=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),ve.appendChild(Kt),Oe.setAttribute("stroke",Ct[xe].mode==="s"?"#000000":"#ffffff")):(et=null,ut=null),this.storedData[xe]={elem:Oe,x:ut,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},Ct[xe].mode==="i"){We=qt.length;var qe=le("g");for(Ue=0;Ue<We;Ue+=1)qe.appendChild(qt[Ue]);var gt=le("mask");gt.setAttribute("mask-type","alpha"),gt.setAttribute("id",Jt+"_"+Et),gt.appendChild(Oe),ve.appendChild(gt),qe.setAttribute("mask","url("+p()+"#"+Jt+"_"+Et+")"),qt.length=0,qt.push(qe)}else qt.push(Oe);Ct[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Oe,lastPath:"",op:Ke.getProp(this.element,Ct[xe].o,0,.01,this.element),prop:Ze.getShapeProp(this.element,Ct[xe],3),invRect:Mt},this.viewData[xe].prop.k||this.drawPath(Ct[xe],this.viewData[xe].prop.v,this.viewData[xe])}for(this.maskElement=le(Xe),$e=qt.length,xe=0;xe<$e;xe+=1)this.maskElement.appendChild(qt[xe]);Et>0&&(this.maskElement.setAttribute("id",Jt),this.element.maskedElement.setAttribute(Ve,"url("+p()+"#"+Jt+")"),ve.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}a2.prototype={initTransform:function(){var G=new $t;this.finalTransform={mProp:this.data.ks?On.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 ve=this.finalTransform.localOpacity;for(G=0;G<X;G+=1)ve*=.01*this.localTransforms[G].opacity;this.finalTransform.localOpacity=ve}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var G=this.renderableEffectsManager.getEffects(ZT.TRANSFORM_EFFECT);if(G.length){this.localTransforms=[],this.finalTransform.localMat=new $t;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 ve,$e,Oe=X.length;for(ve=0;ve<Oe;ve+=1)$e=X[ve].mat.applyToPointArray(0,0,0),G=[G[0]-$e[0],G[1]-$e[1],0];return G},mHelper:new $t},xm.prototype.getMaskProperty=function(G){return this.viewData[G].prop},xm.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 ve=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+")")),ve.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))}},xm.prototype.getMaskelement=function(){return this.maskElement},xm.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+" "},xm.prototype.drawPath=function(G,X,pe){var xe,ve,$e=" M"+X.v[0][0]+","+X.v[0][1];for(ve=X._length,xe=1;xe<ve;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&&ve>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 Oe="";pe.elem&&(X.c&&(Oe=G.inv?this.solidPath+$e:$e),pe.elem.setAttribute("d",Oe)),pe.lastPath=$e}},xm.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Sy=(function(){var G={};function X(xe,ve){var $e=le("filter");return $e.setAttribute("id",xe),ve!==!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})(),JT=(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})(),XT={},zN="filter_result_";function KS(G){var X,pe,xe="SourceGraphic",ve=G.data.ef?G.data.ef.length:0,$e=H(),Oe=Sy.createFilter($e,!0),Ue=0;for(this.filters=[],X=0;X<ve;X+=1){pe=null;var We=G.data.ef[X].ty;XT[We]&&(pe=new XT[We].effect(Oe,G.effectsManager.effectElements[X],G,zN+Ue,xe),xe=zN+Ue,XT[We].countsAsEffect&&(Ue+=1)),pe&&this.filters.push(pe)}Ue&&(G.globalData.defs.appendChild(Oe),G.layerElement.setAttribute("filter","url("+p()+"#"+$e+")")),this.filters.length&&G.addRenderableComponent(this)}function H8(){}function ky(){}function X5(){}function U8(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 tre(G,X){this.elem=G,this.pos=X}function NN(){}KS.prototype.renderFrame=function(G){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(G)},KS.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},H8.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 ve=H();if(pe.setAttribute("id",ve),pe.appendChild(xe),this.globalData.defs.appendChild(pe),this.checkMasks()){var $e=le("g");$e.setAttribute("clip-path","url("+p()+"#"+ve+")"),$e.appendChild(this.layerElement),this.transformedElement=$e,G?G.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+p()+"#"+ve+")")}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 xm(this.data,this,this.globalData),this.renderableEffectsManager=new KS(this),this.searchEffectTransforms()},getMatte:function(G){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[G]){var X,pe,xe,ve,$e=this.layerId+"_"+G;if(G===1||G===3){var Oe=le("mask");Oe.setAttribute("id",$e),Oe.setAttribute("mask-type",G===3?"luminance":"alpha"),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Oe.appendChild(xe),this.globalData.defs.appendChild(Oe),!JT.maskType&&G===1&&(Oe.setAttribute("mask-type","luminance"),X=H(),pe=Sy.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild(Sy.createAlphaToLuminanceFilter()),(ve=le("g")).appendChild(xe),Oe.appendChild(ve),ve.setAttribute("filter","url("+p()+"#"+X+")"))}else if(G===2){var Ue=le("mask");Ue.setAttribute("id",$e),Ue.setAttribute("mask-type","alpha");var We=le("g");Ue.appendChild(We),X=H(),pe=Sy.createFilter(X);var Mt=le("feComponentTransfer");Mt.setAttribute("in","SourceGraphic"),pe.appendChild(Mt);var Kt=le("feFuncA");Kt.setAttribute("type","table"),Kt.setAttribute("tableValues","1.0 0.0"),Mt.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"),We.setAttribute("filter","url("+p()+"#"+X+")"),We.appendChild(et),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),We.appendChild(xe),JT.maskType||(Ue.setAttribute("mask-type","luminance"),pe.appendChild(Sy.createAlphaToLuminanceFilter()),ve=le("g"),We.appendChild(et),ve.appendChild(this.layerElement),We.appendChild(ve)),this.globalData.defs.appendChild(Ue)}this.matteMasks[G]=$e}return this.matteMasks[G]},setMatte:function(G){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+G+")")}},ky.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)],X5)})(),g([Rn,a2,H8,ky,bi,X5],U8),U8.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)},U8.prototype.sourceRectAtTime=function(){return this.sourceRect},NN.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 tre(G,X))},prepareFrame:function(G){this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)}};var _N={1:"butt",2:"round",3:"square"},VN={1:"miter",2:"round",3:"bevel"};function HN(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,ve=G.length;xe<ve;){if(G[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function UN(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 ZS(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 ve,$e,Oe=X.length||0;for(ve=0;ve<Oe;ve+=1)$e=Ke.getProp(G,X[ve].v,0,0,this),this.k=$e.k||this.k,this.dataProps[ve]={n:X[ve].n,p:$e};this.k||this.getValue(!0),this._isAnimated=this.k}function WN(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 ZS(G,X.d||{},"svg",this),this.c=Ke.getProp(G,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function QN(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 YN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.style=pe}function W8(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 ym(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.initGradientData(G,X,pe)}function GN(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.w=Ke.getProp(G,X.w,0,null,this),this.d=new ZS(G,X.d||{},"svg",this),this.initGradientData(G,X,pe),this._isAnimated=!!this._isAnimated}function nre(){this.it=[],this.prevViewData=[],this.gr=le("g")}function ire(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}HN.prototype.setAsAnimated=function(){this._isAnimated=!0},UN.prototype.reset=function(){this.d="",this._mdf=!1},ZS.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([Pt],ZS),g([Pt],WN),g([Pt],QN),g([Pt],YN),W8.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},W8.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},W8.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,ve=4*this.data.p;for(X=0;X<ve;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(ve=this.prop.v.length,X=4*this.data.p;X<ve;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([Pt],W8),ym.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 W8(G,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},ym.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 ve,$e,Oe,Ue=[];for(Oe=4*X.g.p,$e=0;$e<Oe;$e+=4)ve=le("stop"),xe.appendChild(ve),Ue.push(ve);G.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=Ue},ym.prototype.setGradientOpacity=function(G,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,ve,$e=le("mask"),Oe=le("path");$e.appendChild(Oe);var Ue=H(),We=H();$e.setAttribute("id",We);var Mt=le(G.t===1?"linearGradient":"radialGradient");Mt.setAttribute("id",Ue),Mt.setAttribute("spreadMethod","pad"),Mt.setAttribute("gradientUnits","userSpaceOnUse"),ve=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<ve;xe+=2)(pe=le("stop")).setAttribute("stop-color","rgb(255,255,255)"),Mt.appendChild(pe),Kt.push(pe);Oe.setAttribute(G.ty==="gf"?"fill":"stroke","url("+p()+"#"+Ue+")"),G.ty==="gs"&&(Oe.setAttribute("stroke-linecap",_N[G.lc||2]),Oe.setAttribute("stroke-linejoin",VN[G.lj||2]),G.lj===1&&Oe.setAttribute("stroke-miterlimit",G.ml)),this.of=Mt,this.ms=$e,this.ost=Kt,this.maskId=We,X.msElem=Oe}},g([Pt],ym),g([ym,Pt],GN);var Qn=function(G,X,pe,xe){if(X===0)return"";var ve,$e=G.o,Oe=G.i,Ue=G.v,We=" M"+xe.applyToPointStringified(Ue[0][0],Ue[0][1]);for(ve=1;ve<X;ve+=1)We+=" C"+xe.applyToPointStringified($e[ve-1][0],$e[ve-1][1])+" "+xe.applyToPointStringified(Oe[ve][0],Oe[ve][1])+" "+xe.applyToPointStringified(Ue[ve][0],Ue[ve][1]);return pe&&X&&(We+=" C"+xe.applyToPointStringified($e[ve-1][0],$e[ve-1][1])+" "+xe.applyToPointStringified(Oe[0][0],Oe[0][1])+" "+xe.applyToPointStringified(Ue[0][0],Ue[0][1]),We+="z"),We},wr=(function(){var G=new $t,X=new $t;function pe(Kt){switch(Kt.ty){case"fl":return Oe;case"gf":return We;case"gs":return Ue;case"st":return Mt;case"sh":case"el":case"rc":case"sr":return $e;case"tr":return xe;case"no":return ve;default:return null}}function xe(Kt,et,ut){(ut||et.transform.op._mdf)&&et.transform.container.setAttribute("opacity",et.transform.op.v),(ut||et.transform.mProps._mdf)&&et.transform.container.setAttribute("transform",et.transform.mProps.v.to2dCSS())}function ve(){}function $e(Kt,et,ut){var Ct,Et,qt,Jt,Xe,Ve,Ne,qe,gt,rn,ln=et.styles.length,Ot=et.lvl;for(Ve=0;Ve<ln;Ve+=1){if(Jt=et.sh._mdf||ut,et.styles[Ve].lvl<Ot){for(qe=X.reset(),gt=Ot-et.styles[Ve].lvl,rn=et.transformers.length-1;!Jt&&gt>0;)Jt=et.transformers[rn].mProps._mdf||Jt,gt-=1,rn-=1;if(Jt)for(gt=Ot-et.styles[Ve].lvl,rn=et.transformers.length-1;gt>0;)qe.multiply(et.transformers[rn].mProps.v),gt-=1,rn-=1}else qe=G;if(Et=(Ne=et.sh.paths)._length,Jt){for(qt="",Ct=0;Ct<Et;Ct+=1)(Xe=Ne.shapes[Ct])&&Xe._length&&(qt+=Qn(Xe,Xe._length,Xe.c,qe));et.caches[Ve]=qt}else qt=et.caches[Ve];et.styles[Ve].d+=Kt.hd===!0?"":qt,et.styles[Ve]._mdf=Jt||et.styles[Ve]._mdf}}function Oe(Kt,et,ut){var Ct=et.style;(et.c._mdf||ut)&&Ct.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||ut)&&Ct.pElem.setAttribute("fill-opacity",et.o.v)}function Ue(Kt,et,ut){We(Kt,et,ut),Mt(Kt,et,ut)}function We(Kt,et,ut){var Ct,Et,qt,Jt,Xe,Ve=et.gf,Ne=et.g._hasOpacity,qe=et.s.v,gt=et.e.v;if(et.o._mdf||ut){var rn=Kt.ty==="gf"?"fill-opacity":"stroke-opacity";et.style.pElem.setAttribute(rn,et.o.v)}if(et.s._mdf||ut){var ln=Kt.t===1?"x1":"cx",Ot=ln==="x1"?"y1":"cy";Ve.setAttribute(ln,qe[0]),Ve.setAttribute(Ot,qe[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute(ln,qe[0]),et.of.setAttribute(Ot,qe[1]))}if(et.g._cmdf||ut){Ct=et.cst;var co=et.g.c;for(qt=Ct.length,Et=0;Et<qt;Et+=1)(Jt=Ct[Et]).setAttribute("offset",co[4*Et]+"%"),Jt.setAttribute("stop-color","rgb("+co[4*Et+1]+","+co[4*Et+2]+","+co[4*Et+3]+")")}if(Ne&&(et.g._omdf||ut)){var So=et.g.o;for(qt=(Ct=et.g._collapsable?et.cst:et.ost).length,Et=0;Et<qt;Et+=1)Jt=Ct[Et],et.g._collapsable||Jt.setAttribute("offset",So[2*Et]+"%"),Jt.setAttribute("stop-opacity",So[2*Et+1])}if(Kt.t===1)(et.e._mdf||ut)&&(Ve.setAttribute("x2",gt[0]),Ve.setAttribute("y2",gt[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",gt[0]),et.of.setAttribute("y2",gt[1])));else if((et.s._mdf||et.e._mdf||ut)&&(Xe=Math.sqrt(Math.pow(qe[0]-gt[0],2)+Math.pow(qe[1]-gt[1],2)),Ve.setAttribute("r",Xe),Ne&&!et.g._collapsable&&et.of.setAttribute("r",Xe)),et.s._mdf||et.e._mdf||et.h._mdf||et.a._mdf||ut){Xe||(Xe=Math.sqrt(Math.pow(qe[0]-gt[0],2)+Math.pow(qe[1]-gt[1],2)));var si=Math.atan2(gt[1]-qe[1],gt[0]-qe[0]),Go=et.h.v;Go>=1?Go=.99:Go<=-1&&(Go=-.99);var oo=Xe*Go,Nt=Math.cos(si+et.a.v)*oo+qe[0],gn=Math.sin(si+et.a.v)*oo+qe[1];Ve.setAttribute("fx",Nt),Ve.setAttribute("fy",gn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",Nt),et.of.setAttribute("fy",gn))}}function Mt(Kt,et,ut){var Ct=et.style,Et=et.d;Et&&(Et._mdf||ut)&&Et.dashStr&&(Ct.pElem.setAttribute("stroke-dasharray",Et.dashStr),Ct.pElem.setAttribute("stroke-dashoffset",Et.dashoffset[0])),et.c&&(et.c._mdf||ut)&&Ct.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||ut)&&Ct.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||ut)&&(Ct.pElem.setAttribute("stroke-width",et.w.v),Ct.msElem&&Ct.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function Xo(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 Yp(G,X,pe,xe,ve,$e){this.o=G,this.sw=X,this.sc=pe,this.fc=xe,this.m=ve,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([Rn,a2,H8,NN,ky,bi,X5],Xo),Xo.prototype.initSecondaryElement=function(){},Xo.prototype.identityMatrix=new $t,Xo.prototype.buildExpressionInterface=function(){},Xo.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Xo.prototype.filterUniqueShapes=function(){var G,X,pe,xe,ve=this.shapes.length,$e=this.stylesList.length,Oe=[],Ue=!1;for(pe=0;pe<$e;pe+=1){for(xe=this.stylesList[pe],Ue=!1,Oe.length=0,G=0;G<ve;G+=1)(X=this.shapes[G]).styles.indexOf(xe)!==-1&&(Oe.push(X),Ue=X._isAnimated||Ue);Oe.length>1&&Ue&&this.setShapesAsAnimated(Oe)}},Xo.prototype.setShapesAsAnimated=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X].setAsAnimated()},Xo.prototype.createStyleElement=function(G,X){var pe,xe=new UN(G,X),ve=xe.pElem;return G.ty==="st"?pe=new WN(this,G,xe):G.ty==="fl"?pe=new QN(this,G,xe):G.ty==="gf"||G.ty==="gs"?(pe=new(G.ty==="gf"?ym:GN)(this,G,xe),this.globalData.defs.appendChild(pe.gf),pe.maskId&&(this.globalData.defs.appendChild(pe.ms),this.globalData.defs.appendChild(pe.of),ve.setAttribute("mask","url("+p()+"#"+pe.maskId+")"))):G.ty==="no"&&(pe=new YN(this,G,xe)),(G.ty==="st"||G.ty==="gs")&&(ve.setAttribute("stroke-linecap",_N[G.lc||2]),ve.setAttribute("stroke-linejoin",VN[G.lj||2]),ve.setAttribute("fill-opacity","0"),G.lj===1&&ve.setAttribute("stroke-miterlimit",G.ml)),G.r===2&&ve.setAttribute("fill-rule","evenodd"),G.ln&&ve.setAttribute("id",G.ln),G.cl&&ve.setAttribute("class",G.cl),G.bm&&(ve.style["mix-blend-mode"]=ni(G.bm)),this.stylesList.push(xe),this.addToAnimatedContents(G,pe),pe},Xo.prototype.createGroupElement=function(G){var X=new nre;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},Xo.prototype.createTransformElement=function(G,X){var pe=On.getTransformProperty(this,G,this),xe=new ire(pe,pe.o,X);return this.addToAnimatedContents(G,xe),xe},Xo.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 ve=new HN(X,pe,Ze.getShapeProp(this,G,xe,this));return this.shapes.push(ve),this.addShapeToModifiers(ve),this.addToAnimatedContents(G,ve),ve},Xo.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:wr.createRenderFunction(G),element:X,data:G})},Xo.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])},Xo.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()},Xo.prototype.searchShapes=function(G,X,pe,xe,ve,$e,Oe){var Ue,We,Mt,Kt,et,ut,Ct=[].concat($e),Et=G.length-1,qt=[],Jt=[];for(Ue=Et;Ue>=0;Ue-=1){if((ut=this.searchProcessedElement(G[Ue]))?X[Ue]=pe[ut-1]:G[Ue]._render=Oe,G[Ue].ty==="fl"||G[Ue].ty==="st"||G[Ue].ty==="gf"||G[Ue].ty==="gs"||G[Ue].ty==="no")ut?X[Ue].style.closed=G[Ue].hd:X[Ue]=this.createStyleElement(G[Ue],ve),G[Ue]._render&&X[Ue].style.pElem.parentNode!==xe&&xe.appendChild(X[Ue].style.pElem),qt.push(X[Ue].style);else if(G[Ue].ty==="gr"){if(ut)for(Mt=X[Ue].it.length,We=0;We<Mt;We+=1)X[Ue].prevViewData[We]=X[Ue].it[We];else X[Ue]=this.createGroupElement(G[Ue]);this.searchShapes(G[Ue].it,X[Ue].it,X[Ue].prevViewData,X[Ue].gr,ve+1,Ct,Oe),G[Ue]._render&&X[Ue].gr.parentNode!==xe&&xe.appendChild(X[Ue].gr)}else G[Ue].ty==="tr"?(ut||(X[Ue]=this.createTransformElement(G[Ue],xe)),Kt=X[Ue].transform,Ct.push(Kt)):G[Ue].ty==="sh"||G[Ue].ty==="rc"||G[Ue].ty==="el"||G[Ue].ty==="sr"?(ut||(X[Ue]=this.createShapeElement(G[Ue],Ct,ve)),this.setElementStyles(X[Ue])):G[Ue].ty==="tm"||G[Ue].ty==="rd"||G[Ue].ty==="ms"||G[Ue].ty==="pb"||G[Ue].ty==="zz"||G[Ue].ty==="op"?(ut?(et=X[Ue]).closed=!1:((et=mn.getModifier(G[Ue].ty)).init(this,G[Ue]),X[Ue]=et,this.shapeModifiers.push(et)),Jt.push(et)):G[Ue].ty==="rp"&&(ut?(et=X[Ue]).closed=!0:(et=mn.getModifier(G[Ue].ty),X[Ue]=et,et.init(this,G,Ue,X),this.shapeModifiers.push(et),Oe=!1),Jt.push(et));this.addProcessedElement(G[Ue],Ue+1)}for(Et=qt.length,Ue=0;Ue<Et;Ue+=1)qt[Ue].closed=!0;for(Et=Jt.length,Ue=0;Ue<Et;Ue+=1)Jt[Ue].closed=!0},Xo.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"))},Xo.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)},Xo.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},Yp.prototype.update=function(G,X,pe,xe,ve,$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 Oe=!1;return this.o!==G&&(this.o=G,this._mdf.o=!0,Oe=!0),this.sw!==X&&(this.sw=X,this._mdf.sw=!0,Oe=!0),this.sc!==pe&&(this.sc=pe,this._mdf.sc=!0,Oe=!0),this.fc!==xe&&(this.fc=xe,this._mdf.fc=!0,Oe=!0),this.m!==ve&&(this.m=ve,this._mdf.m=!0,Oe=!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,Oe=!0),Oe},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,ve=this.effectsSequence.length,$e=G||this.data.d.k[this.keysIndex].s;for(xe=0;xe<ve;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=[],ve=0,$e=G.length,Oe=!1,Ue=!1,We="";ve<$e;)Oe=Ue,Ue=!1,X=G.charCodeAt(ve),We=G.charAt(ve),dn.isCombinedCharacter(X)?Oe=!0:X>=55296&&X<=56319?dn.isRegionalFlag(G,ve)?We=G.substr(ve,14):(pe=G.charCodeAt(ve+1))>=56320&&pe<=57343&&(dn.isModifier(X,pe)?(We=G.substr(ve,2),Oe=!0):We=dn.isFlagEmoji(G.substr(ve,4))?G.substr(ve,4):G.substr(ve,2)):X>56319?(pe=G.charCodeAt(ve+1),dn.isVariationSelector(X)&&(Oe=!0)):dn.isZeroWidthJoiner(X)&&(Oe=!0,Ue=!0),Oe?(xe[xe.length-1]+=We,Oe=!1):xe.push(We),ve+=We.length;return xe},Qc.prototype.completeTextData=function(G){G.__complete=!0;var X,pe,xe,ve,$e,Oe,Ue,We=this.elem.globalData.fontManager,Mt=this.data,Kt=[],et=0,ut=Mt.m.g,Ct=0,Et=0,qt=0,Jt=[],Xe=0,Ve=0,Ne=We.getFontByName(G.f),qe=0,gt=Rt(Ne);G.fWeight=gt.weight,G.fStyle=gt.style,G.finalSize=G.s,G.finalText=this.buildFinalText(G.t),pe=G.finalText.length,G.finalLineHeight=G.lh;var rn,ln=G.tr/1e3*G.finalSize;if(G.sz)for(var Ot,co,So=!0,si=G.sz[0],Go=G.sz[1];So;){Ot=0,Xe=0,pe=(co=this.buildFinalText(G.t)).length,ln=G.tr/1e3*G.finalSize;var oo=-1;for(X=0;X<pe;X+=1)rn=co[X].charCodeAt(0),xe=!1,co[X]===" "?oo=X:(rn===13||rn===3)&&(Xe=0,xe=!0,Ot+=G.finalLineHeight||1.2*G.finalSize),We.chars?(Ue=We.getCharData(co[X],Ne.fStyle,Ne.fFamily),qe=xe?0:Ue.w*G.finalSize/100):qe=We.measureText(co[X],G.f,G.finalSize),Xe+qe>si&&co[X]!==" "?(oo===-1?pe+=1:X=oo,Ot+=G.finalLineHeight||1.2*G.finalSize,co.splice(X,oo===X?1:0,"\r"),oo=-1,Xe=0):(Xe+=qe,Xe+=ln);Ot+=Ne.ascent*G.finalSize/100,this.canResize&&G.finalSize>this.minimumFontSize&&Go<Ot?(G.finalSize-=1,G.finalLineHeight=G.finalSize*G.lh/G.s):(G.finalText=co,pe=G.finalText.length,So=!1)}Xe=-ln,qe=0;var Nt,gn=0;for(X=0;X<pe;X+=1)if(xe=!1,(rn=(Nt=G.finalText[X]).charCodeAt(0))===13||rn===3?(gn=0,Jt.push(Xe),Ve=Xe>Ve?Xe:Ve,Xe=-2*ln,ve="",xe=!0,qt+=1):ve=Nt,We.chars?(Ue=We.getCharData(Nt,Ne.fStyle,We.getFontByName(G.f).fFamily),qe=xe?0:Ue.w*G.finalSize/100):qe=We.measureText(ve,G.f,G.finalSize),Nt===" "?gn+=qe+ln:(Xe+=qe+ln+gn,gn=0),Kt.push({l:qe,an:qe,add:Ct,n:xe,anIndexes:[],val:ve,line:qt,animatorJustifyOffset:0}),ut==2){if(Ct+=qe,ve===""||ve===" "||X===pe-1){for((ve===""||ve===" ")&&(Ct-=qe);Et<=X;)Kt[Et].an=Ct,Kt[Et].ind=et,Kt[Et].extra=qe,Et+=1;et+=1,Ct=0}}else if(ut==3){if(Ct+=qe,ve===""||X===pe-1){for(ve===""&&(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=Xe>Ve?Xe:Ve,Jt.push(Xe),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 ft,st,Re=Mt.a;Oe=Re.length;var pt,bt,mi=[];for($e=0;$e<Oe;$e+=1){for((ft=Re[$e]).a.sc&&(G.strokeColorAnim=!0),ft.a.sw&&(G.strokeWidthAnim=!0),(ft.a.fc||ft.a.fh||ft.a.fs||ft.a.fb)&&(G.fillColorAnim=!0),bt=0,pt=ft.s.b,X=0;X<pe;X+=1)(st=Kt[X]).anIndexes[$e]=bt,(pt==1&&st.val!==""||pt==2&&st.val!==""&&st.val!==" "||pt==3&&(st.n||st.val==" "||X==pe-1)||pt==4&&(st.n||X==pe-1))&&(ft.s.rn===1&&mi.push(bt),bt+=1);Mt.a[$e].s.totalChars=bt;var qo,To=-1;if(ft.s.rn===1)for(X=0;X<pe;X+=1)To!=(st=Kt[X]).anIndexes[$e]&&(To=st.anIndexes[$e],qo=mi.splice(Math.floor(Math.random()*mi.length),1)[0]),st.anIndexes[$e]=qo}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 Q8=(function(){var G=Math.max,X=Math.min,pe=Math.floor;function xe($e,Oe){this._currentTextLength=-1,this.k=!1,this.data=Oe,this.elem=$e,this.comp=$e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer($e),this.s=Ke.getProp($e,Oe.s||{k:0},0,0,this),this.e="e"in Oe?Ke.getProp($e,Oe.e,0,0,this):{v:100},this.o=Ke.getProp($e,Oe.o||{k:0},0,0,this),this.xe=Ke.getProp($e,Oe.xe||{k:0},0,0,this),this.ne=Ke.getProp($e,Oe.ne||{k:0},0,0,this),this.sm=Ke.getProp($e,Oe.sm||{k:100},0,0,this),this.a=Ke.getProp($e,Oe.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function ve($e,Oe,Ue){return new xe($e,Oe)}return xe.prototype={getMult:function($e){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Oe=0,Ue=0,We=1,Mt=1;this.ne.v>0?Oe=this.ne.v/100:Ue=-this.ne.v/100,this.xe.v>0?We=1-this.xe.v/100:Mt=1+this.xe.v/100;var Kt=Le.getBezierEasing(Oe,Ue,We,Mt).get,et=0,ut=this.finalS,Ct=this.finalE,Et=this.data.sh;if(Et===2)et=Kt(et=Ct===ut?$e>=Ct?1:0:G(0,X(.5/(Ct-ut)+($e-ut)/(Ct-ut),1)));else if(Et===3)et=Kt(et=Ct===ut?$e>=Ct?0:1:1-G(0,X(.5/(Ct-ut)+($e-ut)/(Ct-ut),1)));else if(Et===4)Ct===ut?et=0:(et=G(0,X(.5/(Ct-ut)+($e-ut)/(Ct-ut),1)))<.5?et*=2:et=1-2*(et-.5),et=Kt(et);else if(Et===5){if(Ct===ut)et=0;else{var qt=Ct-ut,Jt=-qt/2+($e=X(G(0,$e+.5-ut),Ct-ut)),Xe=qt/2;et=Math.sqrt(1-Jt*Jt/(Xe*Xe))}et=Kt(et)}else Et===6?(Ct===ut?et=0:($e=X(G(0,$e+.5-ut),Ct-ut),et=(1+Math.cos(Math.PI+2*Math.PI*$e/(Ct-ut)))/2),et=Kt(et)):($e>=pe(ut)&&(et=G(0,X($e-ut<0?X(Ct,1)-(ut-$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 Oe=this.data.r===2?1:100/this.data.totalChars,Ue=this.o.v/Oe,We=this.s.v/Oe+Ue,Mt=this.e.v/Oe+Ue;if(We>Mt){var Kt=We;We=Mt,Mt=Kt}this.finalS=We,this.finalE=Mt}},g([Pt],xe),{getTextSelectorProp:ve}})();function ore(G,X,pe){var xe={propType:!1},ve=Ke.getProp,$e=X.a;this.a={r:$e.r?ve(G,$e.r,0,D,pe):xe,rx:$e.rx?ve(G,$e.rx,0,D,pe):xe,ry:$e.ry?ve(G,$e.ry,0,D,pe):xe,sk:$e.sk?ve(G,$e.sk,0,D,pe):xe,sa:$e.sa?ve(G,$e.sa,0,D,pe):xe,s:$e.s?ve(G,$e.s,1,.01,pe):xe,a:$e.a?ve(G,$e.a,1,0,pe):xe,o:$e.o?ve(G,$e.o,0,.01,pe):xe,p:$e.p?ve(G,$e.p,1,0,pe):xe,sw:$e.sw?ve(G,$e.sw,0,0,pe):xe,sc:$e.sc?ve(G,$e.sc,1,0,pe):xe,fc:$e.fc?ve(G,$e.fc,1,0,pe):xe,fh:$e.fh?ve(G,$e.fh,0,0,pe):xe,fs:$e.fs?ve(G,$e.fs,0,.01,pe):xe,fb:$e.fb?ve(G,$e.fb,0,.01,pe):xe,t:$e.t?ve(G,$e.t,0,0,pe):xe},this.s=Q8.getTextSelectorProp(G,X.s,pe),this.s.t=X.s.t}function s2(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 bm(){}s2.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 ore(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)},s2.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,ve,$e,Oe,Ue,We,Mt,Kt,et,ut,Ct,Et,qt,Jt,Xe,Ve,Ne,qe,gt=this._moreOptions.alignment.v,rn=this._animatorsData,ln=this._textData,Ot=this.mHelper,co=this._renderType,So=this.renderedLetters.length,si=G.l;if(this._hasMaskedPath){if(qe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Go,oo=qe.v;for(this._pathData.r.v&&(oo=oo.reverse()),Oe={tLength:0,segments:[]},$e=oo._length-1,Xe=0,ve=0;ve<$e;ve+=1)Go=Ie.buildBezierData(oo.v[ve],oo.v[ve+1],[oo.o[ve][0]-oo.v[ve][0],oo.o[ve][1]-oo.v[ve][1]],[oo.i[ve+1][0]-oo.v[ve+1][0],oo.i[ve+1][1]-oo.v[ve+1][1]]),Oe.tLength+=Go.segmentLength,Oe.segments.push(Go),Xe+=Go.segmentLength;ve=$e,qe.v.c&&(Go=Ie.buildBezierData(oo.v[ve],oo.v[0],[oo.o[ve][0]-oo.v[ve][0],oo.o[ve][1]-oo.v[ve][1]],[oo.i[0][0]-oo.v[0][0],oo.i[0][1]-oo.v[0][1]]),Oe.tLength+=Go.segmentLength,Oe.segments.push(Go),Xe+=Go.segmentLength),this._pathData.pi=Oe}if(Oe=this._pathData.pi,Ue=this._pathData.f.v,ut=0,et=1,Mt=0,Kt=!0,qt=Oe.segments,Ue<0&&qe.v.c)for(Oe.tLength<Math.abs(Ue)&&(Ue=-Math.abs(Ue)%Oe.tLength),et=(Et=qt[ut=qt.length-1].points).length-1;Ue<0;)Ue+=Et[et].partialLength,(et-=1)<0&&(et=(Et=qt[ut-=1].points).length-1);Ct=(Et=qt[ut].points)[et-1],Jt=(We=Et[et]).partialLength}$e=si.length,pe=0,xe=0;var Nt,gn,ft,st,Re=1.2*G.finalSize*.714,pt=!0;ft=rn.length;var bt,mi,qo,To,ya,Ko,dl,ha,Ua,wm,l2,Cm,vm,Gp=-1,cr=Ue,JS=ut,XS=et,Y8=-1,Pf="",nx=this.defaultPropsArray;if(G.j===2||G.j===1){var qp=0,$y=0,Ey=G.j===2?-.5:-1,c2=0,Iy=!0;for(ve=0;ve<$e;ve+=1)if(si[ve].n){for(qp&&(qp+=$y);c2<ve;)si[c2].animatorJustifyOffset=qp,c2+=1;qp=0,Iy=!0}else{for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).t.propType&&(Iy&&G.j===2&&($y+=Nt.t.v*Ey),(bt=rn[gn].s.getMult(si[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?qp+=Nt.t.v*bt[0]*Ey:qp+=Nt.t.v*bt*Ey);Iy=!1}for(qp&&(qp+=$y);c2<ve;)si[c2].animatorJustifyOffset=qp,c2+=1}for(ve=0;ve<$e;ve+=1){if(Ot.reset(),ya=1,si[ve].n)pe=0,xe+=G.yOffset,xe+=pt?1:0,Ue=cr,pt=!1,this._hasMaskedPath&&(et=XS,Ct=(Et=qt[ut=JS].points)[et-1],Jt=(We=Et[et]).partialLength,Mt=0),Pf="",Cm="",wm="",vm="",nx=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Y8!==si[ve].line){switch(G.j){case 1:Ue+=Xe-G.lineWidths[si[ve].line];break;case 2:Ue+=(Xe-G.lineWidths[si[ve].line])/2}Y8=si[ve].line}Gp!==si[ve].ind&&(si[Gp]&&(Ue+=si[Gp].extra),Ue+=si[ve].an/2,Gp=si[ve].ind),Ue+=gt[0]*si[ve].an*.005;var d2=0;for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).p.propType&&((bt=rn[gn].s.getMult(si[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?d2+=Nt.p.v[0]*bt[0]:d2+=Nt.p.v[0]*bt),Nt.a.propType&&((bt=rn[gn].s.getMult(si[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?d2+=Nt.a.v[0]*bt[0]:d2+=Nt.a.v[0]*bt);for(Kt=!0,this._pathData.a.v&&(Ue=.5*si[0].an+(Xe-this._pathData.f.v-.5*si[0].an-.5*si[si.length-1].an)*Gp/($e-1),Ue+=this._pathData.f.v);Kt;)Mt+Jt>=Ue+d2||!Et?(Ve=(Ue+d2-Mt)/We.partialLength,qo=Ct.point[0]+(We.point[0]-Ct.point[0])*Ve,To=Ct.point[1]+(We.point[1]-Ct.point[1])*Ve,Ot.translate(-gt[0]*si[ve].an*.005,-gt[1]*Re*.01),Kt=!1):Et&&(Mt+=We.partialLength,(et+=1)>=Et.length&&(et=0,qt[ut+=1]?Et=qt[ut].points:qe.v.c?(et=0,Et=qt[ut=0].points):(Mt-=We.partialLength,Et=null)),Et&&(Ct=We,Jt=(We=Et[et]).partialLength));mi=si[ve].an/2-si[ve].add,Ot.translate(-mi,0,0)}else mi=si[ve].an/2-si[ve].add,Ot.translate(-mi,0,0),Ot.translate(-gt[0]*si[ve].an*.005,-gt[1]*Re*.01,0);for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).t.propType&&(bt=rn[gn].s.getMult(si[ve].anIndexes[gn],ln.a[gn].s.totalChars),(pe!==0||G.j!==0)&&(this._hasMaskedPath?bt.length?Ue+=Nt.t.v*bt[0]:Ue+=Nt.t.v*bt:bt.length?pe+=Nt.t.v*bt[0]:pe+=Nt.t.v*bt));for(G.strokeWidthAnim&&(dl=G.sw||0),G.strokeColorAnim&&(Ko=G.sc?[G.sc[0],G.sc[1],G.sc[2]]:[0,0,0]),G.fillColorAnim&&G.fc&&(ha=[G.fc[0],G.fc[1],G.fc[2]]),gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).a.propType&&((bt=rn[gn].s.getMult(si[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?Ot.translate(-Nt.a.v[0]*bt[0],-Nt.a.v[1]*bt[1],Nt.a.v[2]*bt[2]):Ot.translate(-Nt.a.v[0]*bt,-Nt.a.v[1]*bt,Nt.a.v[2]*bt));for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).s.propType&&((bt=rn[gn].s.getMult(si[ve].anIndexes[gn],ln.a[gn].s.totalChars)).length?Ot.scale(1+(Nt.s.v[0]-1)*bt[0],1+(Nt.s.v[1]-1)*bt[1],1):Ot.scale(1+(Nt.s.v[0]-1)*bt,1+(Nt.s.v[1]-1)*bt,1));for(gn=0;gn<ft;gn+=1){if(Nt=rn[gn].a,bt=rn[gn].s.getMult(si[ve].anIndexes[gn],ln.a[gn].s.totalChars),Nt.sk.propType&&(bt.length?Ot.skewFromAxis(-Nt.sk.v*bt[0],Nt.sa.v*bt[1]):Ot.skewFromAxis(-Nt.sk.v*bt,Nt.sa.v*bt)),Nt.r.propType&&(bt.length?Ot.rotateZ(-Nt.r.v*bt[2]):Ot.rotateZ(-Nt.r.v*bt)),Nt.ry.propType&&(bt.length?Ot.rotateY(Nt.ry.v*bt[1]):Ot.rotateY(Nt.ry.v*bt)),Nt.rx.propType&&(bt.length?Ot.rotateX(Nt.rx.v*bt[0]):Ot.rotateX(Nt.rx.v*bt)),Nt.o.propType&&(bt.length?ya+=(Nt.o.v*bt[0]-ya)*bt[0]:ya+=(Nt.o.v*bt-ya)*bt),G.strokeWidthAnim&&Nt.sw.propType&&(bt.length?dl+=Nt.sw.v*bt[0]:dl+=Nt.sw.v*bt),G.strokeColorAnim&&Nt.sc.propType)for(Ua=0;Ua<3;Ua+=1)bt.length?Ko[Ua]+=(Nt.sc.v[Ua]-Ko[Ua])*bt[0]:Ko[Ua]+=(Nt.sc.v[Ua]-Ko[Ua])*bt;if(G.fillColorAnim&&G.fc){if(Nt.fc.propType)for(Ua=0;Ua<3;Ua+=1)bt.length?ha[Ua]+=(Nt.fc.v[Ua]-ha[Ua])*bt[0]:ha[Ua]+=(Nt.fc.v[Ua]-ha[Ua])*bt;Nt.fh.propType&&(ha=bt.length?q(ha,Nt.fh.v*bt[0]):q(ha,Nt.fh.v*bt)),Nt.fs.propType&&(ha=bt.length?U(ha,Nt.fs.v*bt[0]):U(ha,Nt.fs.v*bt)),Nt.fb.propType&&(ha=bt.length?Y(ha,Nt.fb.v*bt[0]):Y(ha,Nt.fb.v*bt))}}for(gn=0;gn<ft;gn+=1)(Nt=rn[gn].a).p.propType&&(bt=rn[gn].s.getMult(si[ve].anIndexes[gn],ln.a[gn].s.totalChars),this._hasMaskedPath?bt.length?Ot.translate(0,Nt.p.v[1]*bt[0],-Nt.p.v[2]*bt[1]):Ot.translate(0,Nt.p.v[1]*bt,-Nt.p.v[2]*bt):bt.length?Ot.translate(Nt.p.v[0]*bt[0],Nt.p.v[1]*bt[1],-Nt.p.v[2]*bt[2]):Ot.translate(Nt.p.v[0]*bt,Nt.p.v[1]*bt,-Nt.p.v[2]*bt));if(G.strokeWidthAnim&&(wm=dl<0?0:dl),G.strokeColorAnim&&(l2="rgb("+Math.round(255*Ko[0])+","+Math.round(255*Ko[1])+","+Math.round(255*Ko[2])+")"),G.fillColorAnim&&G.fc&&(Cm="rgb("+Math.round(255*ha[0])+","+Math.round(255*ha[1])+","+Math.round(255*ha[2])+")"),this._hasMaskedPath){if(Ot.translate(0,-G.ls),Ot.translate(0,gt[1]*Re*.01+xe,0),this._pathData.p.v){Ne=(We.point[1]-Ct.point[1])/(We.point[0]-Ct.point[0]);var G8=180*Math.atan(Ne)/Math.PI;We.point[0]<Ct.point[0]&&(G8+=180),Ot.rotate(-G8*Math.PI/180)}Ot.translate(qo,To,0),Ue-=gt[0]*si[ve].an*.005,si[ve+1]&&Gp!==si[ve+1].ind&&(Ue+=si[ve].an/2,Ue+=.001*G.tr*G.finalSize)}else{switch(Ot.translate(pe,xe,0),G.ps&&Ot.translate(G.ps[0],G.ps[1]+G.ascent,0),G.j){case 1:Ot.translate(si[ve].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[si[ve].line]),0,0);break;case 2:Ot.translate(si[ve].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[si[ve].line])/2,0,0)}Ot.translate(0,-G.ls),Ot.translate(mi,0,0),Ot.translate(gt[0]*si[ve].an*.005,gt[1]*Re*.01,0),pe+=si[ve].l+.001*G.tr*G.finalSize}co==="html"?Pf=Ot.toCSS():co==="svg"?Pf=Ot.to2dCSS():nx=[Ot.props[0],Ot.props[1],Ot.props[2],Ot.props[3],Ot.props[4],Ot.props[5],Ot.props[6],Ot.props[7],Ot.props[8],Ot.props[9],Ot.props[10],Ot.props[11],Ot.props[12],Ot.props[13],Ot.props[14],Ot.props[15]],vm=ya}So<=ve?(st=new Yp(vm,wm,l2,Cm,Pf,nx),this.renderedLetters.push(st),So+=1,this.lettersChangedFlag=!0):(st=this.renderedLetters[ve],this.lettersChangedFlag=st.update(vm,wm,l2,Cm,Pf,nx)||this.lettersChangedFlag)}}},s2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},s2.prototype.mHelper=new $t,s2.prototype.defaultPropsArray=[],g([Pt],s2),bm.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 s2(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)},bm.prototype.prepareFrame=function(G){this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)},bm.prototype.createPathShape=function(G,X){var pe,xe,ve=X.length,$e="";for(pe=0;pe<ve;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,$e+=Qn(xe,xe.i.length,!0,G));return $e},bm.prototype.updateDocumentData=function(G,X){this.textProperty.updateDocumentData(G,X)},bm.prototype.canResizeFont=function(G){this.textProperty.canResizeFont(G)},bm.prototype.setMinimumFontSize=function(G){this.textProperty.setMinimumFontSize(G)},bm.prototype.applyTextPropertiesToMatrix=function(G,X,pe,xe,ve){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,ve,0)},bm.prototype.buildColor=function(G){return"rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"},bm.prototype.emptyProp=new Yp,bm.prototype.destroy=function(){},bm.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var ain={shapes:[]};function ex(G,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(G,X,pe)}function rre(G,X,pe){this.initElement(G,X,pe)}function jy(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initFrame(),this.initTransform(G,X,pe),this.initHierarchy()}function jd(){}function tx(){}function eL(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 are(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"),ve=H();xe.setAttribute("id",ve),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=ve}if(X&&X.description){var $e=le("desc"),Oe=H();$e.setAttribute("id",Oe),$e.textContent=X.description,this.svgElement.appendChild($e),pe+=" "+Oe}pe&&this.svgElement.setAttribute("aria-labelledby",pe);var Ue=le("defs");this.svgElement.appendChild(Ue);var We=le("g");this.svgElement.appendChild(We),this.layerElement=We,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:Ue,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([Rn,a2,H8,ky,bi,X5,bm],ex),ex.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=le("text"))},ex.prototype.buildTextContents=function(G){for(var X=0,pe=G.length,xe=[],ve="";X<pe;)G[X]==="\r"||G[X]===""?(xe.push(ve),ve=""):ve+=G[X],X+=1;return xe.push(ve),xe},ex.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},ex.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 ve=pe.fWeight,$e=pe.fStyle;this.layerElement.setAttribute("font-style",$e),this.layerElement.setAttribute("font-weight",ve)}this.layerElement.setAttribute("aria-label",pe.t);var Oe=pe.l||[],Ue=!!this.globalData.fontManager.chars;X=Oe.length;var We,Mt=this.mHelper,Kt="",et=this.data.singleShape,ut=0,Ct=0,Et=!0,qt=.001*pe.tr*pe.finalSize;if(!et||Ue||pe.sz){var Jt,Xe=this.textSpans.length;for(G=0;G<X;G+=1){if(this.textSpans[G]||(this.textSpans[G]={span:null,childSpan:null,glyph:null}),!Ue||!et||G===0){if(We=Xe>G?this.textSpans[G].span:le(Ue?"g":"text"),Xe<=G){if(We.setAttribute("stroke-linecap","butt"),We.setAttribute("stroke-linejoin","round"),We.setAttribute("stroke-miterlimit","4"),this.textSpans[G].span=We,Ue){var Ve=le("g");We.appendChild(Ve),this.textSpans[G].childSpan=Ve}this.textSpans[G].span=We,this.layerElement.appendChild(We)}We.style.display="inherit"}if(Mt.reset(),et&&(Oe[G].n&&(ut=-qt,Ct+=pe.yOffset,Ct+=Et?1:0,Et=!1),this.applyTextPropertiesToMatrix(pe,Mt,Oe[G].line,ut,Ct),ut+=Oe[G].l||0,ut+=qt),Ue){var Ne;if((Jt=this.globalData.fontManager.getCharData(pe.finalText[G],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new eL(Jt.data,this.globalData,this);else{var qe=ain;Jt.data&&Jt.data.shapes&&(qe=this.buildShapeData(Jt.data,pe.finalSize)),Ne=new Xo(qe,this.globalData,this)}if(this.textSpans[G].glyph){var gt=this.textSpans[G].glyph;this.textSpans[G].childSpan.removeChild(gt.layerElement),gt.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&&We.setAttribute("transform","translate("+Mt.props[12]+","+Mt.props[13]+")"),We.textContent=Oe[G].val,We.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&We&&We.setAttribute("d",Kt)}else{var rn=this.textContainer,ln="start";switch(pe.j){case 1:ln="end";break;case 2:ln="middle";break;default:ln="start"}rn.setAttribute("text-anchor",ln),rn.setAttribute("letter-spacing",qt);var Ot=this.buildTextContents(pe.finalText);for(X=Ot.length,Ct=pe.ps?pe.ps[1]+pe.ascent:0,G=0;G<X;G+=1)(We=this.textSpans[G].span||le("tspan")).textContent=Ot[G],We.setAttribute("x",0),We.setAttribute("y",Ct),We.style.display="inherit",rn.appendChild(We),this.textSpans[G]||(this.textSpans[G]={span:null,glyph:null}),this.textSpans[G].span=We,Ct+=pe.finalLineHeight;this.layerElement.appendChild(rn)}for(;G<this.textSpans.length;)this.textSpans[G].span.style.display="none",G+=1;this._sizeChanged=!0},ex.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},ex.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))},ex.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,ve,$e=this.textAnimator.renderedLetters,Oe=this.textProperty.currentData.l;for(X=Oe.length,G=0;G<X;G+=1)Oe[G].n||(pe=$e[G],xe=this.textSpans[G].span,(ve=this.textSpans[G].glyph)&&ve.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([U8],rre),rre.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)},jy.prototype.prepareFrame=function(G){this.prepareProperties(G,!0)},jy.prototype.renderFrame=function(){},jy.prototype.getBaseElement=function(){return null},jy.prototype.destroy=function(){},jy.prototype.sourceRectAtTime=function(){},jy.prototype.hide=function(){},g([Rn,a2,ky,bi],jy),g([Js],jd),jd.prototype.createNull=function(G){return new jy(G,this.globalData,this)},jd.prototype.createShape=function(G){return new Xo(G,this.globalData,this)},jd.prototype.createText=function(G){return new ex(G,this.globalData,this)},jd.prototype.createImage=function(G){return new U8(G,this.globalData,this)},jd.prototype.createSolid=function(G){return new rre(G,this.globalData,this)},jd.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 ve=H();pe.setAttribute("id",ve),pe.appendChild(xe),this.layerElement.setAttribute("clip-path","url("+p()+"#"+ve+")"),X.appendChild(pe),this.layers=G.layers,this.elements=b(G.layers.length)},jd.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},jd.prototype.updateContainerSize=function(){},jd.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},jd.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 ve=X[xe].getMatte(this.layers[G].tt);pe.setMatte(ve)}else this.buildItem(xe),this.addPendingElement(pe)}}},jd.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,ve=this.elements[xe].getMatte(this.layers[X].tt);G.setMatte(ve);break}X+=1}}},jd.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()}},jd.prototype.appendElementInPos=function(G,X){var pe=G.getBaseElement();if(pe){for(var xe,ve=0;ve<X;)this.elements[ve]&&this.elements[ve]!==!0&&this.elements[ve].getBaseElement()&&(xe=this.elements[ve].getBaseElement()),ve+=1;xe?this.layerElement.insertBefore(pe,xe):this.layerElement.appendChild(pe)}},jd.prototype.hide=function(){this.layerElement.style.display="none"},jd.prototype.show=function(){this.layerElement.style.display="block"},g([Rn,a2,ky,bi,X5],tx),tx.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()},tx.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))}},tx.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()},tx.prototype.setElements=function(G){this.elements=G},tx.prototype.getElements=function(){return this.elements},tx.prototype.destroyElements=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy()},tx.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([jd,tx,H8],eL),eL.prototype.createComp=function(G){return new eL(G,this.globalData,this)},g([jd],are),are.prototype.createComp=function(G){return new eL(G,this.globalData,this)},he("svg",are),mn.registerModifier("tm",yt),mn.registerModifier("pb",Bt),mn.registerModifier("rp",ei),mn.registerModifier("rd",Jn),mn.registerModifier("zz",ua),mn.registerModifier("op",fr),Vt})())})(0,dre.exports)),dre.exports}function Osn(){if(mje)return cre;function e(n){return n instanceof zke?zke.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return mje=1,cre=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}},cre}var Fsn=(function(){if(yje)return xje;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}yje=1;var n=e(Msn()),i=B,r=e(i),s=e((hje||(hje=1,pje=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}),pje)),l=e((fje||(fje=1,gje=Osn()()),gje));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,F=L===void 0?null:L,N=y.useSubframes,V=N===void 0||N,z=y.renderer,T=z===void 0?"svg":z,M=y.loop,O=M===void 0||M,H=y.rendererSettings,_=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,oe=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 re=le;C=re.path,me=d(re,["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}),[]),ge=i.useState(!1),he=ge[0],ye=ge[1],Ae=i.useState(D),Ce=Ae[0],be=Ae[1];i.useEffect((function(){s(Ce,D)||be(D)}),[D,Ce]);var Be=i.useState(_),Le=Be[0],De=Be[1];i.useEffect((function(){s(Le,_)||De(_)}),[_,Le]),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",oe)}}),[de,oe]),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:Le},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)}}),[O,T,Le,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",oe)}),[de,oe]),i.useEffect((function(){he&&(de().loop=O)}),[he,O,de]);var Me=i.useRef(!1);return i.useEffect((function(){if(he)if(S===!0){var Se=!0;Ce?(de().playSegments(Ce,Se),Me.current=!0,I===-1&&we(typeof Ce[1]=="number"?Ce[1]:Ce[1][1])):(Me.current&&de().resetSegments(Se),Me.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,Ce,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&&F!=null){var Se=!0;S?de().goToAndPlay(F,Se):de().goToAndStop(F,Se)}}),[de,F,S,he]),i.useEffect((function(){de().setSubframe&&de().setSubframe(V)}),[de,V]),r.createElement("div",c({},me,{ref:ie}))})));return x})(n);return xje=h})();const Ps=ur(Fsn);var bje,wje,ure,Cje,pre,vje,hre,Aje,mre,Sje,gre,kje,fre,jje,$je,Eje,Ije,Dje,Tje,Lje,Bje,Pje,Mje,Oje,Fje,Rje,zje,Nje,_je,Vje,xre,Hje,yre,Uje,bre,Wje,wre,Qje,Cre,Yje,Gje,qje,vre,Kje,Are,Zje,Sre,Jje,Xje,e$e,kre,t$e,n$e,i$e,o$e,r$e,a$e,s$e,l$e,c$e,jre,d$e,$re,u$e,Ere,p$e,h$e,m$e,g$e,f$e,x$e,y$e,Ire,b$e,Dre,w$e,Tre,C$e,Lre,v$e,Bre,A$e,S$e,k$e,Pre,j$e,$$e,E$e,I$e,D$e,T$e,L$e,B$e,P$e,M$e,O$e,Mre,F$e,Ore,R$e,z$e,N$e,_$e,V$e,Fre,H$e,Rre,U$e,zre,W$e,Q$e,Y$e,Nre,G$e,_re,q$e,K$e,Z$e,J$e,X$e,Vre,eEe,Hre,tEe,Ure,nEe,iEe,oEe;function vee(){return Cje||(Cje=1,ure=function(e,n){return e===n||e!=e&&n!=n}),ure}function o_(){if(vje)return pre;vje=1;var e=vee();return pre=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},pre}function yG(){if(Eje)return $je;Eje=1;var e=wje?bje:(wje=1,bje=function(){this.__data__=[],this.size=0}),n=(function(){if(Aje)return hre;Aje=1;var c=o_(),d=Array.prototype.splice;return hre=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))},hre})(),i=(function(){if(Sje)return mre;Sje=1;var c=o_();return mre=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},mre})(),r=(function(){if(kje)return gre;kje=1;var c=o_();return gre=function(d){return c(this.__data__,d)>-1},gre})(),s=(function(){if(jje)return fre;jje=1;var c=o_();return fre=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},fre})();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 rCt(){if(Rje)return Fje;Rje=1;var e=typeof Rh=="object"&&Rh&&Rh.Object===Object&&Rh;return Fje=e}function b3(){if(Nje)return zje;Nje=1;var e=rCt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return zje=i}function QI(){if(Vje)return _je;Vje=1;var e=b3().Symbol;return _je=e}function KD(){if(Wje)return bre;Wje=1;var e=QI(),n=(function(){if(Hje)return xre;Hje=1;var s=QI(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return xre=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},xre})(),i=(function(){if(Uje)return yre;Uje=1;var s=Object.prototype.toString;return yre=function(l){return s.call(l)},yre})(),r=e?e.toStringTag:void 0;return bre=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},bre}function O3(){return Qje||(Qje=1,wre=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),wre}function aCt(){if(Yje)return Cre;Yje=1;var e=KD(),n=O3();return Cre=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},Cre}function Rsn(){if(Kje)return vre;Kje=1;var e=(function(){if(qje)return Gje;qje=1;var i=b3()["__core-js_shared__"];return Gje=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return vre=function(i){return!!n&&n in i},vre}function sCt(){if(Zje)return Are;Zje=1;var e=Function.prototype.toString;return Are=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},Are}function Wv(){if(t$e)return kre;t$e=1;var e=(function(){if(Jje)return Sre;Jje=1;var i=aCt(),r=Rsn(),s=O3(),l=sCt(),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 Sre=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},Sre})(),n=(e$e||(e$e=1,Xje=function(i,r){return i?.[r]}),Xje);return kre=function(i,r){var s=n(i,r);return e(s)?s:void 0},kre}function p8e(){if(i$e)return n$e;i$e=1;var e=Wv()(b3(),"Map");return n$e=e}function r_(){if(r$e)return o$e;r$e=1;var e=Wv()(Object,"create");return o$e=e}function zsn(){if(m$e)return h$e;m$e=1;var e=(function(){if(s$e)return a$e;s$e=1;var c=r_();return a$e=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(c$e||(c$e=1,l$e=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),l$e),i=(function(){if(d$e)return jre;d$e=1;var c=r_(),d=Object.prototype.hasOwnProperty;return jre=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},jre})(),r=(function(){if(u$e)return $re;u$e=1;var c=r_(),d=Object.prototype.hasOwnProperty;return $re=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},$re})(),s=(function(){if(p$e)return Ere;p$e=1;var c=r_();return Ere=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},Ere})();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,h$e=l}function a_(){if(b$e)return Ire;b$e=1;var e=(y$e||(y$e=1,x$e=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),x$e);return Ire=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},Ire}function h8e(){if(k$e)return S$e;k$e=1;var e=(function(){if(f$e)return g$e;f$e=1;var c=zsn(),d=yG(),u=p8e();return g$e=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(w$e)return Dre;w$e=1;var c=a_();return Dre=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},Dre})(),i=(function(){if(C$e)return Tre;C$e=1;var c=a_();return Tre=function(d){return c(this,d).get(d)},Tre})(),r=(function(){if(v$e)return Lre;v$e=1;var c=a_();return Lre=function(d){return c(this,d).has(d)},Lre})(),s=(function(){if(A$e)return Bre;A$e=1;var c=a_();return Bre=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},Bre})();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,S$e=l}function m8e(){if(E$e)return $$e;E$e=1;var e=yG(),n=(function(){if(Dje)return Ije;Dje=1;var d=yG();return Ije=function(){this.__data__=new d,this.size=0}})(),i=(Lje||(Lje=1,Tje=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),Tje),r=(Pje||(Pje=1,Bje=function(d){return this.__data__.get(d)}),Bje),s=(Oje||(Oje=1,Mje=function(d){return this.__data__.has(d)}),Mje),l=(function(){if(j$e)return Pre;j$e=1;var d=yG(),u=p8e(),p=h8e();return Pre=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},Pre})();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 lCt(){if(P$e)return B$e;P$e=1;var e=h8e(),n=(D$e||(D$e=1,I$e=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),I$e),i=(L$e||(L$e=1,T$e=function(s){return this.__data__.has(s)}),T$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,B$e=r}function cCt(){return F$e||(F$e=1,Mre=function(e,n){return e.has(n)}),Mre}function dCt(){if(R$e)return Ore;R$e=1;var e=lCt(),n=(O$e||(O$e=1,M$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}),M$e),i=cCt();return Ore=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},Ore}function uCt(){if(N$e)return z$e;N$e=1;var e=b3().Uint8Array;return z$e=e}function S5e(){return H$e||(H$e=1,Fre=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Fre}function Nsn(){if(U$e)return Rre;U$e=1;var e=QI(),n=uCt(),i=vee(),r=dCt(),s=(V$e||(V$e=1,_$e=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),_$e),l=S5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Rre=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},Rre}function g8e(){return W$e||(W$e=1,zre=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),zre}function Wu(){if(Y$e)return Q$e;Y$e=1;var e=Array.isArray;return Q$e=e}function pCt(){if(G$e)return Nre;G$e=1;var e=g8e(),n=Wu();return Nre=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Nre}function f8e(){return q$e||(q$e=1,_re=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}),_re}function hCt(){return Z$e?K$e:(Z$e=1,K$e=function(){return[]})}function x8e(){if(X$e)return J$e;X$e=1;var e=f8e(),n=hCt(),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 J$e=s}function mCt(){return eEe||(eEe=1,Vre=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),Vre}function U7(){return tEe||(tEe=1,Hre=function(e){return e!=null&&typeof e=="object"}),Hre}function y8e(){if(oEe)return iEe;oEe=1;var e=(function(){if(nEe)return Ure;nEe=1;var c=KD(),d=U7();return Ure=function(u){return d(u)&&c(u)=="[object Arguments]"},Ure})(),n=U7(),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 iEe=l}var rEe,aEe,sEe,Wre,lEe,Qre,cEe,Yre,dEe,Gre,uEe,qre={exports:{}};function b8e(){return sEe||(sEe=1,(function(e,n){var i=b3(),r=aEe?rEe:(aEe=1,rEe=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})(qre,qre.exports)),qre.exports}function uz(){if(lEe)return Wre;lEe=1;var e=/^(?:0|[1-9]\d*)$/;return Wre=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},Wre}function w8e(){return cEe?Qre:(cEe=1,Qre=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Qre)}function Aee(){return uEe||(uEe=1,Gre=function(e){return function(n){return e(n)}}),Gre}var pEe,hEe,mEe,Kre,gEe,Zre,fEe,Jre,xEe,yEe,bEe,Xre,wEe,eae,CEe,tae,vEe,nae,AEe,iae,SEe,kEe,jEe,$Ee,EEe,IEe,DEe,TEe,LEe,BEe,PEe,oae,MEe,rae,OEe,aae,FEe,sae={exports:{}};function C8e(){return pEe||(pEe=1,(function(e,n){var i=rCt(),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})(sae,sae.exports)),sae.exports}function gCt(){if(mEe)return hEe;mEe=1;var e=(function(){if(dEe)return Yre;dEe=1;var l=KD(),c=w8e(),d=U7(),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,Yre=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},Yre})(),n=Aee(),i=C8e(),r=i&&i.isTypedArray,s=r?n(r):e;return hEe=s}function fCt(){if(gEe)return Kre;gEe=1;var e=mCt(),n=y8e(),i=Wu(),r=b8e(),s=uz(),l=gCt(),c=Object.prototype.hasOwnProperty;return Kre=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},Kre}function v8e(){if(fEe)return Zre;fEe=1;var e=Object.prototype;return Zre=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},Zre}function xCt(){return xEe||(xEe=1,Jre=function(e,n){return function(i){return e(n(i))}}),Jre}function _sn(){if(wEe)return Xre;wEe=1;var e=v8e(),n=(function(){if(bEe)return yEe;bEe=1;var r=xCt()(Object.keys,Object);return yEe=r})(),i=Object.prototype.hasOwnProperty;return Xre=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},Xre}function ZD(){if(CEe)return eae;CEe=1;var e=aCt(),n=w8e();return eae=function(i){return i!=null&&n(i.length)&&!e(i)},eae}function JF(){if(vEe)return tae;vEe=1;var e=fCt(),n=_sn(),i=ZD();return tae=function(r){return i(r)?e(r):n(r)},tae}function yCt(){if(AEe)return nae;AEe=1;var e=pCt(),n=x8e(),i=JF();return nae=function(r){return e(r,i,n)},nae}function bCt(){if(DEe)return IEe;DEe=1;var e=Wv()(b3(),"Set");return IEe=e}function See(){if(PEe)return BEe;PEe=1;var e=(function(){if(jEe)return kEe;jEe=1;var v=Wv()(b3(),"DataView");return kEe=v})(),n=p8e(),i=(function(){if(EEe)return $Ee;EEe=1;var v=Wv()(b3(),"Promise");return $Ee=v})(),r=bCt(),s=(function(){if(LEe)return TEe;LEe=1;var v=Wv()(b3(),"WeakMap");return TEe=v})(),l=KD(),c=sCt(),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}),BEe=C}function Vsn(){if(MEe)return oae;MEe=1;var e=m8e(),n=dCt(),i=Nsn(),r=(function(){if(SEe)return iae;SEe=1;var f=yCt(),x=Object.prototype.hasOwnProperty;return iae=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 F=!0;S.set(y,b),S.set(b,y);for(var N=k;++I<j;){var V=y[E=$[I]],z=b[E];if(C)var T=k?C(z,V,E,b,y,S):C(V,z,E,y,b,S);if(!(T===void 0?V===z||v(V,z,w,C,S):T)){F=!1;break}N||(N=E=="constructor")}if(F&&!N){var M=y.constructor,O=b.constructor;M!=O&&"constructor"in y&&"constructor"in b&&!(typeof M=="function"&&M instanceof M&&typeof O=="function"&&O instanceof O)&&(F=!1)}return S.delete(y),S.delete(b),F},iae})(),s=See(),l=Wu(),c=b8e(),d=gCt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return oae=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 F=D?f.value():f,N=L?x.value():x;return C||(C=new e),w(F,N,y,b,C)}}return!!E&&(C||(C=new e),r(f,x,y,b,w,C))},oae}function A8e(){if(OEe)return rae;OEe=1;var e=Vsn(),n=U7();return rae=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))},rae}var Hsn=(function(){if(FEe)return aae;FEe=1;var e=A8e();return aae=function(n,i){return e(n,i)},aae})();const eo=ur(Hsn);var REe,zEe,lae,NEe,cae,_Ee,dae,VEe,uae,HEe,pae,UEe;function Usn(){if(_Ee)return cae;_Ee=1;var e=(function(){if(NEe)return lae;NEe=1;var i=/\s/;return lae=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},lae})(),n=/^\s+/;return cae=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},cae}function pz(){if(VEe)return dae;VEe=1;var e=KD(),n=U7();return dae=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},dae}function wCt(){if(HEe)return uae;HEe=1;var e=Usn(),n=O3(),i=pz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return uae=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},uae}function CCt(){if(UEe)return pae;UEe=1;var e=O3(),n=(function(){if(zEe)return REe;zEe=1;var l=b3();return REe=function(){return l.Date.now()}})(),i=wCt(),r=Math.max,s=Math.min;return pae=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},pae}const $s=ur(CCt());var WEe,QEe;function vCt(){return QEe?WEe:(QEe=1,WEe=function(){})}const S8e=ur(vCt());var hae,YEe,GEe,qEe,mae,KEe,gae,ZEe,fae,JEe,xae,XEe,eIe,tIe,yae,nIe,bae,iIe,wae,oIe;function ACt(){return YEe||(YEe=1,hae=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),hae}function SCt(){if(qEe)return GEe;qEe=1;var e=Wv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return GEe=n}function k8e(){if(KEe)return mae;KEe=1;var e=SCt();return mae=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},mae}function j8e(){if(ZEe)return gae;ZEe=1;var e=k8e(),n=vee(),i=Object.prototype.hasOwnProperty;return gae=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)},gae}function jM(){if(JEe)return fae;JEe=1;var e=j8e(),n=k8e();return fae=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},fae}function Wsn(){if(nIe)return yae;nIe=1;var e=O3(),n=v8e(),i=(tIe||(tIe=1,eIe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),eIe),r=Object.prototype.hasOwnProperty;return yae=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},yae}function k5e(){if(iIe)return bae;iIe=1;var e=fCt(),n=Wsn(),i=ZD();return bae=function(r){return i(r)?e(r,!0):n(r)},bae}var rIe,aIe,sIe,Cae,lIe,cIe,dIe,uIe,pIe,vae,hIe,Aae,mIe,Sae,gIe,kae,fIe,jae,xIe,$ae,yIe,Eae,bIe,Iae,wIe,Dae,CIe,vIe,AIe,Tae,SIe,Lae,kIe,jIe,$Ie,Bae,EIe,IIe,DIe,Pae,TIe,Mae,LIe,Oae={exports:{}};function $8e(){if(dIe)return cIe;dIe=1;var e=xCt()(Object.getPrototypeOf,Object);return cIe=e}function kCt(){if(pIe)return uIe;pIe=1;var e=g8e(),n=$8e(),i=x8e(),r=hCt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return uIe=s}function E8e(){if(mIe)return Aae;mIe=1;var e=pCt(),n=kCt(),i=k5e();return Aae=function(r){return e(r,i,n)},Aae}function Fae(){if(fIe)return kae;fIe=1;var e=uCt();return kae=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},kae}function Qsn(){if(CIe)return Dae;CIe=1;var e=Fae(),n=(function(){if(xIe)return jae;xIe=1;var l=Fae();return jae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},jae})(),i=(function(){if(yIe)return $ae;yIe=1;var l=/\w*$/;return $ae=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},$ae})(),r=(function(){if(bIe)return Eae;bIe=1;var l=QI(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return Eae=function(u){return d?Object(d.call(u)):{}},Eae})(),s=(function(){if(wIe)return Iae;wIe=1;var l=Fae();return Iae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},Iae})();return Dae=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)}},Dae}function Ysn(){if(SIe)return Tae;SIe=1;var e=(function(){if(AIe)return vIe;AIe=1;var r=O3(),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 vIe=l})(),n=$8e(),i=v8e();return Tae=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},Tae}function Gsn(){if($Ie)return jIe;$Ie=1;var e=(function(){if(kIe)return Lae;kIe=1;var l=See(),c=U7();return Lae=function(d){return c(d)&&l(d)=="[object Map]"},Lae})(),n=Aee(),i=C8e(),r=i&&i.isMap,s=r?n(r):e;return jIe=s}function qsn(){if(DIe)return IIe;DIe=1;var e=(function(){if(EIe)return Bae;EIe=1;var l=See(),c=U7();return Bae=function(d){return c(d)&&l(d)=="[object Set]"},Bae})(),n=Aee(),i=C8e(),r=i&&i.isSet,s=r?n(r):e;return IIe=s}function jCt(){if(TIe)return Pae;TIe=1;var e=m8e(),n=ACt(),i=j8e(),r=(function(){if(XEe)return xae;XEe=1;var L=jM(),F=JF();return xae=function(N,V){return N&&L(V,F(V),N)},xae})(),s=(function(){if(oIe)return wae;oIe=1;var L=jM(),F=k5e();return wae=function(N,V){return N&&L(V,F(V),N)},wae})(),l=(rIe||(rIe=1,(function(L,F){var N=b3(),V=F&&!F.nodeType&&F,z=V&&L&&!L.nodeType&&L,T=z&&z.exports===V?N.Buffer:void 0,M=T?T.allocUnsafe:void 0;L.exports=function(O,H){if(H)return O.slice();var _=O.length,W=M?M(_):new O.constructor(_);return O.copy(W),W}})(Oae,Oae.exports)),Oae.exports),c=(sIe||(sIe=1,aIe=function(L,F){var N=-1,V=L.length;for(F||(F=Array(V));++N<V;)F[N]=L[N];return F}),aIe),d=(function(){if(lIe)return Cae;lIe=1;var L=jM(),F=x8e();return Cae=function(N,V){return L(N,F(N),V)},Cae})(),u=(function(){if(hIe)return vae;hIe=1;var L=jM(),F=kCt();return vae=function(N,V){return L(N,F(N),V)},vae})(),p=yCt(),h=E8e(),g=See(),f=(function(){if(gIe)return Sae;gIe=1;var L=Object.prototype.hasOwnProperty;return Sae=function(F){var N=F.length,V=new F.constructor(N);return N&&typeof F[0]=="string"&&L.call(F,"index")&&(V.index=F.index,V.input=F.input),V},Sae})(),x=Qsn(),y=Ysn(),b=Wu(),w=b8e(),C=Gsn(),v=O3(),S=qsn(),k=JF(),$=k5e(),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,Pae=function L(F,N,V,z,T,M){var O,H=1&N,_=2&N,W=4&N;if(V&&(O=T?V(F,z,T,M):V(F)),O!==void 0)return O;if(!v(F))return F;var U=b(F);if(U){if(O=f(F),!H)return c(F,O)}else{var Y=g(F),q=Y==I||Y=="[object GeneratorFunction]";if(w(F))return l(F,H);if(Y==E||Y==j||q&&!T){if(O=_||q?{}:y(F),!H)return _?u(F,s(O,F)):d(F,r(O,F))}else{if(!D[Y])return T?F:{};O=x(F,Y,H)}}M||(M=new e);var K=M.get(F);if(K)return K;M.set(F,O),S(F)?F.forEach((function(ee){O.add(L(ee,N,V,ee,F,M))})):C(F)&&F.forEach((function(ee,te){O.set(te,L(ee,N,V,te,F,M))}));var J=U?void 0:(W?_?h:p:_?$:k)(F);return n(J||F,(function(ee,te){J&&(ee=F[te=ee]),i(O,te,L(ee,N,V,te,F,M))})),O},Pae}var Ksn=(function(){if(LIe)return Mae;LIe=1;var e=jCt();return Mae=function(n){return e(n,5)},Mae})();const es=ur(Ksn);var Rae,BIe,zae,PIe,MIe,OIe,Nae,FIe,RIe,zIe,_ae,NIe,Vae,_Ie,Hae,VIe,Uae,HIe,Wae,UIe,Qae,WIe,Yae,QIe;function I8e(){if(PIe)return zae;PIe=1;var e=Wu(),n=pz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return zae=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)},zae}function Zsn(){if(FIe)return Nae;FIe=1;var e=(function(){if(OIe)return MIe;OIe=1;var n=h8e();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,MIe=i})();return Nae=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Nae}function nS(){return NIe||(NIe=1,_ae=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}),_ae}function $Ct(){if(_Ie)return Vae;_Ie=1;var e=QI(),n=nS(),i=Wu(),r=pz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return Vae=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},Vae}function ECt(){if(VIe)return Hae;VIe=1;var e=$Ct();return Hae=function(n){return n==null?"":e(n)},Hae}function YI(){if(HIe)return Uae;HIe=1;var e=Wu(),n=I8e(),i=(function(){if(zIe)return RIe;zIe=1;var s=Zsn(),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 RIe=d})(),r=ECt();return Uae=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},Uae}function JD(){if(UIe)return Wae;UIe=1;var e=pz();return Wae=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Wae}function ICt(){if(WIe)return Qae;WIe=1;var e=YI(),n=y8e(),i=Wu(),r=uz(),s=w8e(),l=JD();return Qae=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))},Qae}var Jsn=(function(){if(QIe)return Yae;QIe=1;var e=(function(){if(BIe)return Rae;BIe=1;var i=Object.prototype.hasOwnProperty;return Rae=function(r,s){return r!=null&&i.call(r,s)},Rae})(),n=ICt();return Yae=function(i,r){return i!=null&&n(i,r,e)},Yae})();const hn=ur(Jsn);var YIe,GIe,Gae,qIe,qae,KIe,Kae,ZIe,JIe,XIe,eDe,tDe,Zae,nDe,iDe,oDe,Jae,rDe,aDe,sDe;function XD(){return qIe||(qIe=1,Gae=function(e){return e}),Gae}function DCt(){return KIe||(KIe=1,qae=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)}),qae}function TCt(){if(ZIe)return Kae;ZIe=1;var e=DCt(),n=Math.max;return Kae=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)}},Kae}function Xsn(){if(tDe)return eDe;tDe=1;var e=(XIe||(XIe=1,JIe=function(s){return function(){return s}}),JIe),n=SCt(),i=XD(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return eDe=r}function LCt(){if(oDe)return iDe;oDe=1;var e=Xsn(),n=(function(){if(nDe)return Zae;nDe=1;var r=Date.now;return Zae=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)}},Zae})(),i=n(e);return iDe=i}function BCt(){if(rDe)return Jae;rDe=1;var e=XD(),n=TCt(),i=LCt();return Jae=function(r,s){return i(n(r,s,e),r+"")},Jae}var eln=(function(){if(sDe)return aDe;sDe=1;var e=(GIe||(GIe=1,YIe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),YIe),n=BCt()((function(i,r){return e(i,1,r)}));return aDe=n})();const Ni=ur(eln);var Xae,lDe,ese,cDe;function hz(){if(lDe)return Xae;lDe=1;var e=YI(),n=JD();return Xae=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},Xae}function PCt(){if(cDe)return ese;cDe=1;var e=hz();return ese=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},ese}const j3=ur(PCt());var tse,dDe,nse,uDe,ise,pDe,ose,hDe;function MCt(){if(dDe)return tse;dDe=1;var e=m8e(),n=A8e();return tse=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},tse}function OCt(){if(uDe)return nse;uDe=1;var e=O3();return nse=function(n){return n==n&&!e(n)},nse}function FCt(){if(pDe)return ise;pDe=1;var e=OCt(),n=JF();return ise=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},ise}var tln=(function(){if(hDe)return ose;hDe=1;var e=MCt(),n=FCt();return ose=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},ose})();const nln=ur(tln);var mDe,gDe,iln=(gDe||(gDe=1,mDe=function(e){return e==null}),mDe);const fDe=ur(iln);var xDe,yDe,rse,bDe,oln=(function(){if(bDe)return rse;bDe=1;var e=(yDe||(yDe=1,xDe=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}),xDe),n=XD();return rse=function(i){return i&&i.length?e(i,n):0},rse})();const rln=ur(oln);var ase,wDe,sse,CDe,lse,vDe,cse,ADe,dse,SDe;function D8e(){return wDe||(wDe=1,ase=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}),ase}function RCt(){if(CDe)return sse;CDe=1;var e=vee(),n=ZD(),i=uz(),r=O3();return sse=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)},sse}function kee(){if(ADe)return cse;ADe=1;var e=(function(){if(vDe)return lse;vDe=1;var n=wCt(),i=1/0;return lse=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},lse})();return cse=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},cse}var aln=(function(){if(SDe)return dse;SDe=1;var e=D8e(),n=RCt(),i=kee(),r=Math.ceil,s=Math.max;return dse=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},dse})();const sln=ur(aln);var kDe,jDe,lln=(jDe||(jDe=1,kDe=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}),kDe);const cln=ur(lln);var $De,EDe,IDe,DDe,use,TDe,pse,LDe,BDe,PDe,hse,MDe,mse,ODe,FDe,RDe;function dln(){if(DDe)return IDe;DDe=1;var e=(EDe||(EDe=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 IDe=n}function zCt(){if(TDe)return use;TDe=1;var e=dln(),n=JF();return use=function(i,r){return i&&e(i,r,n)},use}function mz(){if(PDe)return BDe;PDe=1;var e=zCt(),n=(function(){if(LDe)return pse;LDe=1;var r=ZD();return pse=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}},pse})(),i=n(e);return BDe=i}function NCt(){if(MDe)return hse;MDe=1;var e=XD();return hse=function(n){return typeof n=="function"?n:e},hse}var uln=(RDe||(RDe=1,FDe=(function(){if(ODe)return mse;ODe=1;var e=ACt(),n=mz(),i=NCt(),r=Wu();return mse=function(s,l){return(r(s)?e:n)(s,i(l))},mse})()),FDe);const pln=ur(uln);var zDe,NDe,gse,_De,fse,VDe,HDe,UDe,xse,WDe,yse,QDe,bse,YDe,wse,GDe,Cse,qDe,vse,KDe,ZDe,JDe,Ase,XDe;function eTe(){return _De||(_De=1,gse=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),gse}function hln(){if(WDe)return xse;WDe=1;var e=(UDe||(UDe=1,HDe=function(i,r){return i!=null&&r in Object(i)}),HDe),n=ICt();return xse=function(i,r){return i!=null&&n(i,r,e)},xse}function T8e(){return YDe||(YDe=1,bse=function(e){return function(n){return n?.[e]}}),bse}function mln(){if(qDe)return Cse;qDe=1;var e=T8e(),n=(function(){if(GDe)return wse;GDe=1;var s=hz();return wse=function(l){return function(c){return s(c,l)}},wse})(),i=I8e(),r=JD();return Cse=function(s){return i(s)?e(r(s)):n(s)},Cse}function _9(){if(KDe)return vse;KDe=1;var e=(function(){if(VDe)return fse;VDe=1;var l=MCt(),c=FCt(),d=eTe();return fse=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)}},fse})(),n=(function(){if(QDe)return yse;QDe=1;var l=A8e(),c=PCt(),d=hln(),u=I8e(),p=OCt(),h=eTe(),g=JD();return yse=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)}},yse})(),i=XD(),r=Wu(),s=mln();return vse=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},vse}var gln=(function(){if(XDe)return Ase;XDe=1;var e=(NDe||(NDe=1,zDe=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}),zDe),n=mz(),i=_9(),r=(JDe||(JDe=1,ZDe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),ZDe),s=Wu();return Ase=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},Ase})();const j5e=ur(gln);var Sse,tTe,kse,nTe,jse,iTe,oTe,rTe;function fln(){if(nTe)return kse;nTe=1;var e=f8e(),n=nS(),i=T8e(),r=mCt(),s=(function(){if(tTe)return Sse;tTe=1;var c=ZD(),d=U7();return Sse=function(u){return d(u)&&c(u)},Sse})(),l=Math.max;return kse=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))}))},kse}var xln=(function(){if(rTe)return oTe;rTe=1;var e=BCt(),n=(function(){if(iTe)return jse;iTe=1;var r=DCt(),s=nS(),l=fln();return jse=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)}))},jse})(),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 oTe=i})();const yln=ur(xln);var $se,aTe,bln=(function(){if(aTe)return $se;aTe=1;var e=zCt(),n=NCt();return $se=function(i,r){return i&&e(i,n(r))},$se})();const _Ct=ur(bln);var Ese,sTe,Ise,lTe;function VCt(){if(sTe)return Ese;sTe=1;var e=mz(),n=ZD();return Ese=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},Ese}function HCt(){if(lTe)return Ise;lTe=1;var e=nS(),n=_9(),i=VCt(),r=Wu();return Ise=function(s,l){return(r(s)?e:i)(s,n(l,3))},Ise}const jee=ur(HCt());var Dse,cTe,Tse,dTe,Lse,uTe;function wln(){if(dTe)return Tse;dTe=1;var e=hz(),n=(function(){if(cTe)return Dse;cTe=1;var r=j8e(),s=YI(),l=uz(),c=O3(),d=JD();return Dse=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},Dse})(),i=YI();return Tse=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},Tse}var Cln=(function(){if(uTe)return Lse;uTe=1;var e=nS(),n=_9(),i=wln(),r=E8e();return Lse=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])}))},Lse})();const tK=ur(Cln);var Bse,pTe,vln=(function(){if(pTe)return Bse;pTe=1;var e=CCt(),n=O3();return Bse=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})},Bse})();const Aln=ur(vln);var Pse,hTe,Mse,mTe,Sln=(function(){if(mTe)return Mse;mTe=1;var e=f8e(),n=(function(){if(hTe)return Pse;hTe=1;var s=mz();return Pse=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},Pse})(),i=_9(),r=Wu();return Mse=function(s,l){return(r(s)?e:n)(s,i(l,3))},Mse})();const kln=ur(Sln);var gTe,fTe,Ose,xTe,Fse,yTe,bTe,wTe;function jln(){if(yTe)return Fse;yTe=1;var e=(fTe||(fTe=1,gTe=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}),gTe),n=(function(){if(xTe)return Ose;xTe=1;var s=mz();return Ose=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Ose})(),i=_9(),r=Wu();return Fse=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Fse}var $ln=(function(){if(wTe)return bTe;wTe=1;var e=k8e(),n=jln(),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 Eln=ur($ln);var CTe,vTe,Rse,ATe,zse,STe,Nse,kTe,_se,jTe;function Iln(){if(STe)return zse;STe=1;var e=(function(){if(ATe)return Rse;ATe=1;var n=pz();return Rse=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},Rse})();return zse=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},zse}function Dln(){if(kTe)return Nse;kTe=1;var e=nS(),n=hz(),i=_9(),r=VCt(),s=(vTe||(vTe=1,CTe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),CTe),l=Aee(),c=Iln(),d=XD(),u=Wu();return Nse=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)}))},Nse}var Tln=(function(){if(jTe)return _se;jTe=1;var e=Dln(),n=Wu();return _se=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))},_se})();const $ee=ur(Tln);var $Te,ETe,Vse,ITe,Hse,DTe,Use,TTe;function Lln(){if(ITe)return Vse;ITe=1;var e=(ETe||(ETe=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=kee();return Vse=function(i){return i?e(n(i),0,4294967295):0},Vse}var Bln=(function(){if(TTe)return Use;TTe=1;var e=(function(){if(DTe)return Hse;DTe=1;var i=kee(),r=Lln();return Hse=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},Hse})(),n=RCt();return Use=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)):[]},Use})();const UCt=ur(Bln);var LTe,BTe,Wse,PTe,Qse,MTe,Yse,OTe,Gse,FTe;function WCt(){if(MTe)return Qse;MTe=1;var e=YI(),n=(BTe||(BTe=1,LTe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),LTe),i=(function(){if(PTe)return Wse;PTe=1;var l=hz(),c=D8e();return Wse=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Wse})(),r=JD(),s=Object.prototype.hasOwnProperty;return Qse=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))]},Qse}var Pln=(function(){if(FTe)return Gse;FTe=1;var e=_9(),n=(function(){if(OTe)return Yse;OTe=1;var i=WCt(),r=uz(),s=Array.prototype.splice;return Yse=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},Yse})();return Gse=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},Gse})();const nK=ur(Pln);var qse,RTe,Kse,zTe,Zse,NTe,Jse,_Te,Xse,VTe,ele,HTe,UTe,WTe;function Mln(){if(zTe)return Kse;zTe=1;var e=(function(){if(RTe)return qse;RTe=1;var n=KD(),i=$8e(),r=U7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return qse=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},qse})();return Kse=function(n){return e(n)?void 0:n},Kse}function QCt(){if(_Te)return Jse;_Te=1;var e=g8e(),n=(function(){if(NTe)return Zse;NTe=1;var i=QI(),r=y8e(),s=Wu(),l=i?i.isConcatSpreadable:void 0;return Zse=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},Zse})();return Jse=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},Jse}function YCt(){if(VTe)return Xse;VTe=1;var e=QCt();return Xse=function(n){return n!=null&&n.length?e(n,1):[]},Xse}var Oln=(function(){if(WTe)return UTe;WTe=1;var e=nS(),n=jCt(),i=WCt(),r=YI(),s=jM(),l=Mln(),c=(function(){if(HTe)return ele;HTe=1;var p=YCt(),h=TCt(),g=LCt();return ele=function(f){return g(h(f,void 0,p),f+"")},ele})(),d=E8e(),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 UTe=u})();const L8e=ur(Oln);var tle,QTe,Fln=(function(){if(QTe)return tle;QTe=1;var e=QCt(),n=HCt();return tle=function(i,r){return e(n(i,r),1)},tle})();const GCt=ur(Fln);var YTe,GTe,qTe,KTe,ZTe,JTe,nle,XTe,ile,eLe,tLe,nLe,iLe,oLe,ole,rLe,rle,aLe;function Rln(){if(XTe)return nle;XTe=1;var e=(GTe||(GTe=1,YTe=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}),YTe),n=(KTe||(KTe=1,qTe=function(r){return r!=r}),qTe),i=(JTe||(JTe=1,ZTe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),ZTe);return nle=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},nle}function qCt(){if(rLe)return ole;rLe=1;var e=lCt(),n=(function(){if(eLe)return ile;eLe=1;var c=Rln();return ile=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},ile})(),i=(nLe||(nLe=1,tLe=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}),tLe),r=cCt(),s=(function(){if(oLe)return iLe;oLe=1;var c=bCt(),d=vCt(),u=S5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return iLe=p})(),l=S5e();return ole=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},ole}var zln=(function(){if(aLe)return rle;aLe=1;var e=_9(),n=qCt();return rle=function(i,r){return i&&i.length?n(i,e(r,2)):[]},rle})();const Nln=ur(zln),_ln=ur(YCt());var ale,sLe,Vln=(function(){if(sLe)return ale;sLe=1;var e=qCt();return ale=function(n){return n&&n.length?e(n):[]},ale})();const Hln=ur(Vln);var sle,lLe,lle,cLe,cle,dLe,uLe,pLe,dle,hLe,ule,mLe,gLe,fLe,ple,xLe,hle,yLe,mle,bLe,wLe,CLe;function B8e(){if(dLe)return cle;dLe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return cle=function(n){return e.test(n)},cle}function KCt(){if(mLe)return ule;mLe=1;var e=(function(){if(pLe)return uLe;pLe=1;var r=T8e()("length");return uLe=r})(),n=B8e(),i=(function(){if(hLe)return dle;hLe=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 dle=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},dle})();return ule=function(r){return n(r)?i(r):e(r)},ule}function Uln(){if(yLe)return hle;yLe=1;var e=(fLe||(fLe=1,gLe=function(r){return r.split("")}),gLe),n=B8e(),i=(function(){if(xLe)return ple;xLe=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 ple=function(b){return b.match(y)||[]},ple})();return hle=function(r){return n(r)?i(r):e(r)},hle}function Wln(){if(bLe)return mle;bLe=1;var e=(function(){if(lLe)return sle;lLe=1;var d=Math.floor;return sle=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},sle})(),n=$Ct(),i=(function(){if(cLe)return lle;cLe=1;var d=D8e();return lle=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},lle})(),r=B8e(),s=KCt(),l=Uln(),c=Math.ceil;return mle=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)},mle}(function(){if(CLe)return wLe;CLe=1;var e=Wln(),n=KCt(),i=kee(),r=ECt();wLe=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 XF=e=>e.type==="checkbox",fE=e=>e instanceof Date,gp=e=>e==null;const ZCt=e=>typeof e=="object";var wd=e=>!gp(e)&&!Array.isArray(e)&&ZCt(e)&&!fE(e),JCt=e=>wd(e)&&e.target?XF(e.target)?e.target.checked:e.target.value:e,XCt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),P8e=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Th(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(P8e&&(e instanceof Blob||e instanceof FileList)||!i&&!wd(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return wd(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Th(e[r]);else n=e}return n}var GI=e=>Array.isArray(e)?e.filter(Boolean):[],al=e=>e===void 0,Si=(e,n,i)=>{if(!n||!wd(e))return i;const r=GI(n.split(/[,[\].]+?/)).reduce(((s,l)=>gp(s)?s:s[l]),e);return al(r)||r===e?al(e[n])?i:e[n]:r};const evt="blur",Qln="focusout",Yln="change",Gln="onBlur",tvt="onChange",nvt="onSubmit",qln="onTouched",qI="all",Kln="max",Zln="min",Jln="maxLength",Xln="minLength",vLe="pattern",ALe="required",ecn="validate",ivt=B.createContext(null),At=()=>B.useContext(ivt),En=e=>{const{children:n,...i}=e;return B.createElement(ivt.Provider,{value:i},n)};var ovt=(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]!==qI&&(n._proxyFormState[c]=!r||qI),i&&(i[c]=!0),e[c]}});return s},L0=e=>wd(e)&&!Object.keys(e).length,rvt=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return L0(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||qI)))},V0=e=>Array.isArray(e)?e:[e],avt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||V0(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function Eee(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 l5=e=>typeof e=="string",svt=(e,n,i,r,s)=>l5(e)?(r&&n.watch.add(e),Si(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),Si(i,l)))):(r&&(n.watchAll=!0),i);function Qa(e){const n=At(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,Eee({disabled:l,subject:i._subjects.values,next:h=>{avt(d.current,h.name,c)&&p(Th(svt(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 M8e=e=>/^\w*$/.test(e),lvt=e=>GI(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Is(e,n,i){let r=-1;const s=M8e(n)?[n]:lvt(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=wd(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function tcn(e){const n=At(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=XCt(r._names.array,i),c=Qa({control:r,name:i,defaultValue:Si(r._formValues,i,Si(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,Eee({disabled:f,next:k=>C.current&&avt(S.current,k.name,y)&&rvt(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]),ovt(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=Si(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Th(Si(r._options.defaultValues,i));Is(r._defaultValues,i,g),al(Si(r._formValues,i))&&Is(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:JCt(p),name:i},type:Yln})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:Si(r._formValues,i),name:i},type:evt})),[i,r]),ref:p=>{const h=Si(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:()=>!!Si(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!Si(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!Si(d.touchedFields,i)},error:{enumerable:!0,get:()=>Si(d.errors,i)}})}}const zi=e=>e.render(tcn(e));var ncn=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const iK=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=Si(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 wd(c)&&iK(c,n)}}};var Dy=()=>{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)}))},gle=(e,n,i={})=>i.shouldFocus||al(i.shouldFocus)?i.focusName||`${e}.${al(i.focusIndex)?n:i.focusIndex}.`:"",$5e=e=>({isOnSubmit:!e||e===nvt,isOnBlur:e===Gln,isOnChange:e===tvt,isOnAll:e===qI,isOnTouch:e===qln}),E5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),cvt=(e,n,i)=>{const r=GI(Si(e,i));return Is(r,"root",n[i]),Is(e,i,r),e},oI=e=>typeof e=="boolean",O8e=e=>e.type==="file",Ob=e=>typeof e=="function",oK=e=>{if(!P8e)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},bG=e=>l5(e),F8e=e=>e.type==="radio",rK=e=>e instanceof RegExp;const SLe={value:!1,isValid:!1},kLe={value:!0,isValid:!0};var dvt=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&&!al(e[0].attributes.value)?al(e[0].value)||e[0].value===""?kLe:{value:e[0].value,isValid:!0}:kLe:SLe}return SLe};const jLe={isValid:!1,value:null};var uvt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),jLe):jLe;function $Le(e,n,i="validate"){if(bG(e)||Array.isArray(e)&&e.every(bG)||oI(e)&&!e)return{type:i,message:bG(e)?e:"",ref:n}}var ek=e=>wd(e)&&!rK(e)?e:{value:e,message:""},I5e=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=Si(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(oI(N)?"":N||""),S.reportValidity())},$={},j=F8e(l),I=XF(l),E=j||I,D=(b||O8e(l))&&al(l.value)&&al(v)||oK(l)&&l.value===""||v===""||Array.isArray(v)&&!v.length,L=ncn.bind(null,y,i,$),F=(N,V,z,T=Jln,M=Xln)=>{const O=N?V:z;$[y]={type:N?T:M,message:O,ref:l,...L(N?T:M,O)}};if(s?!Array.isArray(v)||!v.length:d&&(!E&&(D||gp(v))||oI(v)&&!v||I&&!dvt(c).isValid||j&&!uvt(c).isValid)){const{value:N,message:V}=bG(d)?{value:!!d,message:d}:ek(d);if(N&&($[y]={type:ALe,message:V,ref:S,...L(ALe,V)},!i))return k(V),$}if(!(D||gp(h)&&gp(g))){let N,V;const z=ek(g),T=ek(h);if(gp(v)||isNaN(v)){const M=l.valueAsDate||new Date(v),O=W=>new Date(new Date().toDateString()+" "+W),H=l.type=="time",_=l.type=="week";l5(z.value)&&v&&(N=H?O(v)>O(z.value):_?v>z.value:M>new Date(z.value)),l5(T.value)&&v&&(V=H?O(v)<O(T.value):_?v<T.value:M<new Date(T.value))}else{const M=l.valueAsNumber||v&&+v;gp(z.value)||(N=M>z.value),gp(T.value)||(V=M<T.value)}if((N||V)&&(F(!!N,z.message,T.message,Kln,Zln),!i))return k($[y].message),$}if((u||p)&&!D&&(l5(v)||s&&Array.isArray(v))){const N=ek(u),V=ek(p),z=!gp(N.value)&&v.length>+N.value,T=!gp(V.value)&&v.length<+V.value;if((z||T)&&(F(z,N.message,V.message),!i))return k($[y].message),$}if(f&&!D&&l5(v)){const{value:N,message:V}=ek(f);if(rK(N)&&!v.match(N)&&($[y]={type:vLe,message:V,ref:l,...L(vLe,V)},!i))return k(V),$}if(x){if(Ob(x)){const N=$Le(await x(v,n),S);if(N&&($[y]={...N,...L(ecn,N.message)},!i))return k(N.message),$}else if(wd(x)){let N={};for(const V in x){if(!L0(N)&&!i)break;const z=$Le(await x[V](v,n),S,V);z&&(N={...z,...L(V,z.message)},k(z.message),i&&($[y]=N))}if(!L0(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function fle(e,n){return[...e,...V0(n)]}var xle=e=>Array.isArray(e)?e.map((()=>{})):void 0;function yle(e,n,i){return[...e.slice(0,n),...V0(i),...e.slice(n)]}var ble=(e,n,i)=>Array.isArray(e)?(al(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function wle(e,n){return[...V0(n),...V0(e)]}var Cle=(e,n)=>al(n)?[]:(function(i,r){let s=0;const l=[...i];for(const c of r)l.splice(c-s,1),s++;return GI(l).length?l:[]})(e,V0(n).sort(((i,r)=>i-r))),vle=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Md(e,n){const i=Array.isArray(n)?n:M8e(n)?[n]:lvt(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=al(c)?p++:c[d[p++]];return c})(e,i),s=i.length-1,l=i[s];return r&&delete r[l],s!==0&&(wd(r)&&L0(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!al(c[d]))return!1;return!0})(r))&&Md(e,i.slice(0,-1)),e}var ELe=(e,n,i)=>(e[n]=i,e);function bl(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(Dy)),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),Eee({next:({values:x,name:y})=>{if(y===h.current||!y){const b=Si(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(Dy))}},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,E5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!$5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=Si(x.errors,r),b=Si(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Is(i._formState.errors,r,y):Md(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=Si(i._fields,r);x&&x._f&&I5e(x,i._formValues,i._options.criteriaMode===qI,i._options.shouldUseNativeValidation,!0).then((y=>!L0(y)&&i._subjects.state.next({errors:cvt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&iK(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!Si(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);vle(b,x,y),vle(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,vle,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);ble(b,x,y),ble(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,ble,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=V0(Th(x)),w=wle(i._getFieldArray(r),b);i._names.focus=gle(r,0,y),u.current=wle(u.current,b.map(Dy)),f(w),d(w),i._updateFieldArray(r,w,wle,{argA:xle(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=V0(Th(x)),w=fle(i._getFieldArray(r),b);i._names.focus=gle(r,w.length-1,y),u.current=fle(u.current,b.map(Dy)),f(w),d(w),i._updateFieldArray(r,w,fle,{argA:xle(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=Cle(i._getFieldArray(r),x);u.current=Cle(u.current,x),f(y),d(y),i._updateFieldArray(r,y,Cle,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=V0(Th(y)),C=yle(i._getFieldArray(r),x,w);i._names.focus=gle(r,x,b),u.current=yle(u.current,x,w.map(Dy)),f(C),d(C),i._updateFieldArray(r,C,yle,{argA:x,argB:xle(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Th(y),w=ELe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,v)=>C&&v!==x?u.current[v]:Dy())),f(w),d([...w]),i._updateFieldArray(r,w,ELe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=V0(Th(x));u.current=y.map(Dy),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]||Dy()})))),[c,s])}}function Ale(){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 aK=e=>gp(e)||!ZCt(e);function uv(e,n){if(aK(e)||aK(n))return e===n;if(fE(e)&&fE(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(fE(l)&&fE(c)||wd(l)&&wd(c)||Array.isArray(l)&&Array.isArray(c)?!uv(l,c):l!==c)return!1}}return!0}var pvt=e=>e.type==="select-multiple",Sle=e=>oK(e)&&e.isConnected,hvt=e=>{for(const n in e)if(Ob(e[n]))return!0;return!1};function sK(e,n={}){const i=Array.isArray(e);if(wd(e)||i)for(const r in e)Array.isArray(e[r])||wd(e[r])&&!hvt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},sK(e[r],n[r])):gp(e[r])||(n[r]=!0);return n}function mvt(e,n,i){const r=Array.isArray(e);if(wd(e)||r)for(const s in e)Array.isArray(e[s])||wd(e[s])&&!hvt(e[s])?al(n)||aK(i[s])?i[s]=Array.isArray(e[s])?sK(e[s],[]):{...sK(e[s])}:mvt(e[s],gp(n)?{}:n[s],i[s]):i[s]=!uv(e[s],n[s]);return i}var kle=(e,n)=>mvt(e,n,sK(n)),gvt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>al(e)?e:n?e===""?NaN:e&&+e:i&&l5(e)?new Date(e):r?r(e):e;function jle(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return O8e(n)?n.files:F8e(n)?uvt(e.refs).value:pvt(n)?[...n.selectedOptions].map((({value:i})=>i)):XF(n)?dvt(e.refs).value:gvt(al(n.value)?e.ref.value:n.value,e)}var nL=e=>al(e)?e:rK(e)?e.source:wd(e)?rK(e.value)?e.value.source:e.value:e;function ILe(e,n,i){const r=Si(e,i);if(r||M8e(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=Si(n,l),d=Si(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 icn={mode:nvt,reValidateMode:tvt,shouldFocusError:!0};function ocn(e={},n){let i,r={...icn,...e},s={submitCount:0,isDirty:!1,isLoading:Ob(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=(wd(r.defaultValues)||wd(r.values))&&Th(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Th(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:Ale(),array:Ale(),state:Ale()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=$5e(r.mode),b=$5e(r.reValidateMode),w=r.criteriaMode===qI,C=async Y=>{if(g.isValid||Y){const q=r.resolver?L0((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=Si(l,Y);if(ee){const te=Si(d,Y,al(K)?Si(c,Y):K);al(te)||J&&J.defaultChecked||q?Is(d,Y,q?te:jle(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 oe=uv(Si(c,Y),q);ne=Si(s.dirtyFields,Y),oe?Md(s.dirtyFields,Y):Is(s.dirtyFields,Y,!0),se.dirtyFields=s.dirtyFields,te=te||g.dirtyFields&&ne!==!oe}if(K){const oe=Si(s.touchedFields,Y);oe||(Is(s.touchedFields,Y,K),se.touchedFields=s.touchedFields,te=te||g.touchedFields&&oe!==K)}return te&&ee&&f.state.next(se),te?se:{}},$=(Y,q,K,J)=>{const ee=Si(s.errors,Y),te=g.isValid&&oI(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>se=>{clearTimeout(h),h=setTimeout(ne,se)})((()=>((ne,se)=>{Is(s.errors,ne,se),f.state.next({errors:s.errors})})(Y,K))),i(e.delayError)):(clearTimeout(h),i=null,K?Is(s.errors,Y,K):Md(s.errors,Y)),(K?!uv(ee,K):ee)||!L0(J)||te){const ne={...J,...te&&oI(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=Si(K,ne);se&&Is(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),oe=await I5e(ee,d,w,r.shouldUseNativeValidation&&!q,se);if(oe[te.name]&&(K.valid=!1,q))break;!q&&(Si(oe,te.name)?se?cvt(s.errors,oe,te.name):Is(s.errors,te.name,oe[te.name]):Md(s.errors,te.name))}ne&&await I(ne,q,K)}}return K.valid},E=(Y,q)=>(Y&&q&&Is(d,Y,q),!uv(T(),c)),D=(Y,q,K)=>svt(Y,p,{...u.mount?d:al(q)?c:l5(Y)?{[Y]:q}:q},K,q),L=(Y,q,K={})=>{const J=Si(l,Y);let ee=q;if(J){const te=J._f;te&&(!te.disabled&&Is(d,Y,gvt(q,te)),ee=oK(te.ref)&&gp(q)?"":q,pvt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?XF(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)):O8e(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)},F=(Y,q,K)=>{for(const J in q){const ee=q[J],te=`${Y}.${J}`,ne=Si(l,te);!p.array.has(Y)&&aK(ee)&&(!ne||ne._f)||fE(ee)?L(te,ee,K):F(te,ee,K)}},N=(Y,q,K={})=>{const J=Si(l,Y),ee=p.array.has(Y),te=Th(q);Is(d,Y,te),ee?(f.array.next({name:Y,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:Y,dirtyFields:kle(c,d),isDirty:E(Y,te)})):!J||J._f||gp(te)?L(Y,te,K):F(Y,te,K),E5e(Y,p)&&f.state.next({...s}),f.values.next({name:Y,values:{...d}}),!u.mount&&n()},V=async Y=>{const q=Y.target;let K=q.name,J=!0;const ee=Si(l,K);if(ee){let te,ne;const se=q.type?jle(ee._f):JCt(Y),oe=Y.type===evt||Y.type===Qln,le=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(ee._f)&&!r.resolver&&!Si(s.errors,K)&&!ee._f.deps||((ie,ce,de,ge,he)=>!he.isOnAll&&(!de&&he.isOnTouch?!(ce||ie):(de?ge.isOnBlur:he.isOnBlur)?!ie:!(de?ge.isOnChange:he.isOnChange)||ie))(oe,Si(s.touchedFields,K),s.isSubmitted,b,y),me=E5e(K,p,oe);Is(d,K,se),oe?(ee._f.onBlur&&ee._f.onBlur(Y),i&&i(0)):ee._f.onChange&&ee._f.onChange(Y);const ue=k(K,se,oe,!1),re=!L0(ue)||me;if(!oe&&f.values.next({name:K,type:Y.type,values:{...d}}),le)return g.isValid&&C(),re&&f.state.next({name:K,...me?{}:ue});if(!oe&&me&&f.state.next({...s}),v(!0),r.resolver){const{errors:ie}=await j([K]),ce=ILe(s.errors,l,K),de=ILe(ie,l,ce.name||K);te=de.error,K=de.name,ne=L0(ie)}else te=(await I5e(ee,d,w,r.shouldUseNativeValidation))[K],J=isNaN(se)||se===Si(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=V0(Y);if(v(!0),r.resolver){const te=await(async ne=>{const{errors:se}=await j();if(ne)for(const oe of ne){const le=Si(se,oe);le?Is(s.errors,oe,le):Md(s.errors,oe)}else s.errors=se;return se})(al(Y)?Y:ee);K=L0(te),J=Y?!ee.some((ne=>Si(te,ne))):K}else Y?(J=(await Promise.all(ee.map((async te=>{const ne=Si(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({...!l5(Y)||g.isValid&&K!==s.isValid?{}:{name:Y},...r.resolver||!Y?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&iK(l,(te=>te&&Si(s.errors,te)),Y?ee:p.mount),J},T=Y=>{const q={...c,...u.mount?d:{}};return al(Y)?q:l5(Y)?Si(q,Y):Y.map((K=>Si(q,K)))},M=(Y,q)=>({invalid:!!Si((q||s).errors,Y),isDirty:!!Si((q||s).dirtyFields,Y),isTouched:!!Si((q||s).touchedFields,Y),error:Si((q||s).errors,Y)}),O=(Y,q={})=>{for(const K of Y?V0(Y):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Md(l,K),Md(d,K)),!q.keepError&&Md(s.errors,K),!q.keepDirty&&Md(s.dirtyFields,K),!q.keepTouched&&Md(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Md(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(Y,q={})=>{let K=Si(l,Y);const J=oI(q.disabled);return Is(l,Y,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:Y}},name:Y,mount:!0,...q}}),p.mount.add(Y),K?J&&Is(d,Y,q.disabled?void 0:Si(d,Y,jle(K._f))):S(Y,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:nL(q.min),max:nL(q.max),minLength:nL(q.minLength),maxLength:nL(q.maxLength),pattern:nL(q.pattern)}:{},name:Y,onChange:V,onBlur:V,ref:ee=>{if(ee){H(Y,q),K=Si(l,Y);const te=al(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=(oe=>F8e(oe)||XF(oe))(te),se=K._f.refs||[];if(ne?se.find((oe=>oe===te)):te===K._f.ref)return;Is(l,Y,{_f:{...K._f,...ne?{refs:[...se.filter(Sle),te,...Array.isArray(Si(c,Y))?[{}]:[]],ref:{type:te.type,name:Y}}:{ref:te}}}),S(Y,!1,void 0,te)}else K=Si(l,Y,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!XCt(p.array,Y)||!u.action)&&p.unMount.add(Y)}}},_=()=>r.shouldFocusError&&iK(l,(Y=>Y&&Si(s.errors,Y)),p.mount),W=(Y,q={})=>{const K=Y||c,J=Th(K),ee=Y&&!L0(Y)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const te of p.mount)Si(s.dirtyFields,te)?Is(ee,te,Si(d,te)):N(te,Si(ee,te));else{if(P8e&&al(Y))for(const te of p.mount){const ne=Si(l,te);if(ne&&ne._f){const se=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(oK(se)){const oe=se.closest("form");if(oe){oe.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Th(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||uv(Y,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&Y?kle(c,Y):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(Y,q)=>W(Ob(Y)?Y(d):Y,q);return{control:{register:H,unregister:O,getFieldState:M,_executeSchema:j,_getWatch:D,_getDirty:E,_updateValid:C,_removeUnmounted:()=>{for(const Y of p.unMount){const q=Si(l,Y);q&&(q._f.refs?q._f.refs.every((K=>!Sle(K))):!Sle(q._f.ref))&&O(Y)}p.unMount=new Set},_updateFieldArray:(Y,q=[],K,J,ee=!0,te=!0)=>{if(J&&K){if(u.action=!0,te&&Array.isArray(Si(l,Y))){const ne=K(Si(l,Y),J.argA,J.argB);ee&&Is(l,Y,ne)}if(te&&Array.isArray(Si(s.errors,Y))){const ne=K(Si(s.errors,Y),J.argA,J.argB);ee&&Is(s.errors,Y,ne),((se,oe)=>{!GI(Si(se,oe)).length&&Md(se,oe)})(s.errors,Y)}if(g.touchedFields&&te&&Array.isArray(Si(s.touchedFields,Y))){const ne=K(Si(s.touchedFields,Y),J.argA,J.argB);ee&&Is(s.touchedFields,Y,ne)}g.dirtyFields&&(s.dirtyFields=kle(c,d)),f.state.next({name:Y,isDirty:E(Y,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Is(d,Y,q)},_getFieldArray:Y=>GI(Si(u.mount?d:c,Y,e.shouldUnregister?Si(c,Y,[]):[])),_reset:W,_resetDefaultValues:()=>Ob(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=Th(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);Md(s.errors,"root"),L0(s.errors)?(f.state.next({errors:{}}),await Y(J,K)):(q&&await q({...s.errors},K),_(),setTimeout(_)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:L0(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(Y,q)=>Ob(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={})=>{Si(l,Y)&&(al(q.defaultValue)?N(Y,Si(c,Y)):(N(Y,q.defaultValue),Is(c,Y,q.defaultValue)),q.keepTouched||Md(s.touchedFields,Y),q.keepDirty||(Md(s.dirtyFields,Y),s.isDirty=q.defaultValue?E(Y,Si(c,Y)):E()),q.keepError||(Md(s.errors,Y),g.isValid&&C()),f.state.next({...s}))},clearErrors:Y=>{Y&&V0(Y).forEach((q=>Md(s.errors,q))),f.state.next({errors:Y?s.errors:{}})},unregister:O,setError:(Y,q,K)=>{const J=(Si(l,Y,{_f:{}})._f||{}).ref;Is(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=Si(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:Ob(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Ob(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...ocn(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,Eee({subject:s._subjects.state,next:l=>{rvt(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!uv(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=ovt(i,s),n.current}let m5;m5=typeof window<"u"?window:typeof self<"u"?self:f5e;let D5e=null,T5e=null;const $le=m5.clearTimeout,DLe=m5.setTimeout,Ele=m5.cancelAnimationFrame||m5.mozCancelAnimationFrame||m5.webkitCancelAnimationFrame,TLe=m5.requestAnimationFrame||m5.mozRequestAnimationFrame||m5.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__&&D5e(this.__resizeRAF__),this.__resizeRAF__=T5e((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=m5.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{}}}}}Ele==null||TLe==null?(D5e=$le,T5e=function(e){return DLe(e,20)}):(D5e=function([e,n]){Ele(e),$le(n)},T5e=function(e){const n=TLe((function(){$le(i),e()})),i=DLe((function(){Ele(n),e()}),20);return[n,i]});let $o=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 q0(e){return q0=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},q0(e)}function L5e(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 R8e(e,n){if(e){if(typeof e=="string")return L5e(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)?L5e(e,n):void 0}}function LLe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=R8e(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 Ei(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lK(e,n){return lK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},lK(e,n)}function ka(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&&lK(e,n)}function cK(e){return cK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cK(e)}function fvt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(fvt=function(){return!!e})()}function ja(e){var n=fvt();return function(){var i,r=cK(e);if(n){var s=cK(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(q0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ei(l)})(this,i)}}function la(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function xvt(e){var n=(function(i,r){if(q0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(q0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return q0(n)=="symbol"?n:n+""}function BLe(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,xvt(r.key),r)}}function ca(e,n,i){return n&&BLe(e.prototype,n),i&&BLe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function wi(e,n,i){return(n=xvt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function PLe(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 fo(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?PLe(Object(i),!0).forEach((function(r){wi(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):PLe(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)||R8e(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 dK(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 g3(e,n){if(e==null)return{};var i,r,s=dK(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 Ao(){return Ao=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},Ao.apply(null,arguments)}function rI(e){return(function(n){if(Array.isArray(n))return L5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||R8e(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -91309,7 +91309,7 @@ ${uM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
91309
91309
  padding: ${o.sp3} ${o.sp0};
91310
91310
  `,o8t=a(lt)`
91311
91311
  min-width: 140px;
91312
- `,GF=z8t(Tsn()),pfs=["sandbox","production"],hfs=["development","staging","production"],mfs=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],RI=()=>Fl==="DEV"||Fl==="QA"||Fl==="PUNE"||Fl==="SUNNYVALE"||Fl==="DELHI"||Fl==="MOHALI",wke="https://zeni-webapp-dev.uc.r.appspot.com",Fl=(e=>ty(e,mfs))("DEV"),J8s=(e=>ty(e,pfs))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Fl)),r8t=(e=>ty(e,hfs))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Fl)),gfs=(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"}})(Fl);function onn(e,n){return GF.AES.decrypt(e,n).toString(GF.enc.Utf8)}const rnn="ZENI-WEB-APP-",Cke=Fl==="DEV"||Fl==="QA"?.2:.8,ann=Cke,_s={sentryDsn:"",sentryTraceSamplingRate:Cke,sentryProfileSamplingRate:ann,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let F5,az;function ffs(){return F5?.aiCfoMicroServiceBaseUrl!=null?`${F5.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function snn(e){_s.sentryDsn=e.keys.SENTRY_DSN,_s.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):Cke,_s.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):ann,_s.googleClientId=e.keys.GOOGLE_CLIENT_ID,_s.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,_s.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,_s.mixpanelToken=e.keys.MIXPANEL_TOKEN,_s.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,_s.pusherCluster=e.keys.PUSHER_CLUSTER,_s.quickbooksKey=e.keys.QUICKBOOK_TOKEN,_s.appUrl=e.keys.WEB_ENDPOINT,_s.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,_s.cardVaultId=e.keys.UNIT_VAULT_ID,_s.stripeKey=e.keys.STRIPE_KEY,_s.qboRedirectionUrl=e.keys.QBO_URL,_s.mixpanelUrl=e.keys.MIXPANEL_URL,_s.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,az=e.externalEndPoints,F5=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)}})(F5,az)}async function a8t(){const e={environment:Fl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${wke}/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 s8t=!1;function gE(){s8t||(eg.init("63d3a2406505a5737a2b4debdb513f20",{api_host:az.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),s8t=!0)}const xfs=new Set(Array.from(Mi.EVENTS_WITHOUT_SUPER_PROPERTIES));let l8t=!1,c8t=!1;function L9e(){if(l8t)return;l8t=!0,gE();const e=Mi.extractUtmParamsFromUrl();Object.keys(e).length>0&&eg.register(e),RI()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const yfs=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function bfs(){const e=(function(){return eg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||yfs.has(i)));for(const i of n)eg.unregister(i);RI()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function d8t(){c8t||(c8t=!0,bfs())}class nI{identify(n,i){if(gE(),this.#t=n,n!=null&&i!=null&&(nI.#e==null||!qrn({userId:n,traits:i},nI.#e))){const{$email:r,...s}={...i};eg.identify(n),r&&r!=null&&eg.people.set_once({$email:r}),eg.people.set(s),nI.#e={userId:n,traits:i},RI()&&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){gE();const r=xfs.has(n);if(this.#t!=null||r){if(L9e(),this.#t!=null){const s={distinct_id:this.#t,...i};eg.track(n,s)}else eg.track(n,i);if(d8t(),RI()){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){gE(),L9e(),eg.track(n,i),d8t(),RI()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){gE(),eg.alias(n,i)}reset(){gE(),eg.identify(void 0),this.#t=void 0,nI.#e=void 0}static#e;#t}const B9e=new nI,lnn=new Mi.Analytics(B9e);lnn.trackWithoutUserId=B9e.trackWithoutUserId.bind(B9e);const _0=lnn,wfs="openAiCfoScope",P9e="openAiCfoScopeOnDashboard";function X8s(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[P9e]:!0,...r}})}function ews(e){const n=fee(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 vke(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 cnn(e,n){return(e||n?.chatSessionSummary)??null}const dnn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",tee="zeni-ai-cfo-upload-promo-storage-changed",Er=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(tee)),!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(tee))}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 GF.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=GF.AES.decrypt(e,n).toString(GF.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:fn(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=dnn;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]},HD=(e,n)=>{const i=[...e??[]];return i.push(n),i},tws=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},nws=({state:e})=>Er.isSignedIn()===!0?en.jsx(Iin,{}):en.jsx(H8t,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),Cfs=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function unn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of Cfs)delete n[i];return n}function vfs(){const e=Sp(),n=Lg(),i=ree(),{tenantEmailDomain:r}=U8t(),[s,l]=m.useState(!1),c=Rr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?Dp(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=Rr((v=>fee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[P9e]!==!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),[P9e]: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=HD(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=Ht(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=HD(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(zwt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return en.jsx(Mtn,{open:s,onClose:w,children:en.jsxs(Ptn,{children:[s&&!h?en.jsx(mve,{analytics:_0,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,en.jsx(Uxe,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const M9e=m.createContext(void 0);function Ake(){const e=m.useContext(M9e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Ske=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],kke=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],pnn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],hnn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],mnn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],gnn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],fnn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],xnn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],ynn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function bnn(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 wnn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Cnn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],vnn=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Afs=[...pnn,...Ske,...kke,"/: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",...wnn,...Cnn,...vnn,...hnn,...mnn,...gnn,...fnn,...xnn,...ynn];function Ann(){const{pathname:e}=Lg(),n=e??"";return Afs.some((i=>N9e(i,n)!=null))||bnn(e)}function zd(e){const{pathname:n}=Lg(),i=n??"";return e.some((r=>N9e(r,i)!=null))}const iws=27.22,Snn=m.createContext(null),knn={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Sfs({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 en.jsx(Snn.Provider,{value:c,children:e})}function jke(){const e=m.useContext(Snn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function kfs(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(nan(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Xrn(c);u.length!==0&&(e(ean(u)),e(tan({sourceChatSessionId:n})),n!=null&&e(Xke({chatSessionId:n,id:aje(),kind:"creating_cards",createdAt:fn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Jrn(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Jta(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,...Zta(v)}}const y=dX(p.vendorPolicy,"allow"),b=dX(p.vendorPolicy,"block"),w=uX(p.categoryPolicy,"allow"),C=uX(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:pX(p.limits,wSe),spendLimits:{transaction:pX(p.limits,bSe)}}})({values:c});e(Zrn({templates:[u],sourceChatSessionId:n})),n!=null&&e(Xke({chatSessionId:n,id:aje(),kind:"creating_policy",createdAt:fn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Krn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(Nwt())}:void 0}}const jfs=e=>pan(e,!1),$fs=e=>uan(e.name,!1);function Efs(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=ian(r),l=oan(r),c=ran(r),{creditAccount:d}=aan(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(jfs),cardPolicyVendorSearchOptions:l.map($fs),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:dan(r),cardPolicyUploadedFileName:can(r),cardPolicyFormDraft:lan(e.createCardPolicyState),cardsCreationFormDraft:san(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const Ifs=e=>{const n=ae.currencyFormatter(0);return i=>{const r=man(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}}},Dfs=e=>n=>{const i=han(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 Tfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoAnswerExportEnabled);return n&&F5?.aiCfoMicroServiceBaseUrl!=null?`${F5.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function Lfs({isHydrationEnabled:e=!0}={}){const n=Sp(),{useFeatureGate:i}=hs(),{isFeatureEnabled:r}=i(gl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(gl.isCardPolicyEnabled),l=Rr((x=>Dp(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=Rr((x=>{const y=Dp(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),Kq),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(fan()),n(eje()),n(xan("cardHolderCandidate",!1)),n(yan(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(ban())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(Nwt())}),[n,l]);const h=m.useMemo((()=>Dsn((x=>{n(eje(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Rr((x=>wan(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),Kq);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const jnn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],$nn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],Bfs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],Pfs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],Mfs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Ofs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Ffs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Enn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Inn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],Rfs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function $ke(e){const n=Fh(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":Rfs.includes(r)?r:null}const zfs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),Nfs=new Set(["setup","verification","promo","approval-rules"]);function Fh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Eke(e){const n=Fh(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 Dnn(e,n,i){const r=Fh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Tnn(e,n,i){return Dnn(e,n,(r=>!i.has(r)))}function Lnn(e){return Tnn(e,"bills",zfs)}function Bnn(e){return Tnn(e,"reimbursements",Nfs)}function Ike(e){return Dnn(e,"tasks",(n=>n==="group"))}const _fs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),Vfs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Dke(e){const n=Fh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return _fs.has(i)?"checking":"checking_details"}function Tke(e){const n=Fh(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 Vfs.has(i)?"cards":"cards_detail"}function Pnn(e){const n=Fh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Mnn(e){return Fh(e)[1]==="performance"?"performance":void 0}function Onn(e){const n=Fh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Fnn(e){const n=Fh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function T2(e,n){return n.some((i=>N9e(i,e)!=null))}function Hfs(e){return T2(e,Ske)?"reports":T2(e,jnn)?"ap_aging":T2(e,$nn)?"ar_aging":Eke(e)!=null?"vendors_tab":T2(e,kke)?"forecast":$ke(e)!=null?"month_end_close_review":T2(e,Enn)?"cash_balance":T2(e,Inn)?"card_balance":Ike(e)?"task_checklist":Pnn(e)!=null?"transaction_detail":Mnn(e)!=null?"performance":Onn(e)!=null?"bills_detail":Fnn(e)!=null?"reimbursement_detail":Lnn(e)?"bills_list":Bnn(e)?"reimbursement_list":T2(e,Bfs)?"cash_in_cash_out":T2(e,Pfs)?"operating_expenses":T2(e,Mfs)?"revenue":T2(e,Ofs)?"net_burn_or_income":T2(e,Ffs)?"cash_position":(function(n){const i=Fh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Dke(e)!=null?"checking":(function(n){return Fh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Tke(e)!=null?"cards":(function(n){return Fh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Fh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Fh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function Rnn(e,n){switch(Hfs(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 Eke(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 Dke(e);case"treasury":return"treasury";case"cards":return Tke(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function znn(){const{pathname:e}=Lg(),n=e??"",i=Rr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>Rnn(n,{selectedReportId:i})),[n,i])}function Lke(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoEnabled),i=Rr((s=>Dp(s))),r=Er.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function Ufs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoNavButtonEnabled),i=Lke();return n&&i}const Nnn=m.createContext(void 0),Wfs=({children:e})=>{const{tenantEmailDomain:n}=U8t(),i=n!=null?Er.getSignedInUserTenant(n):void 0,r=Rr((u=>Dp(u))),s=xee().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return en.jsx(Nnn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},Qfs=()=>{const e=m.useContext(Nnn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function _nn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Vnn(e){const{areTenantIdsInSync:n}=Qfs(),i=Lke(),r=Ufs();return n&&e&&r&&i}function ows(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Sp(),s=W8t(),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=a8e(s.getState(),d)?.fetchState;_nn(u,c)&&r(Vwt({pageContext:d}))}}),[i,r,n,s])}function Hnn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Sp(),c=W8t(),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=a8e(c.getState(),i)?.fetchState;_nn(g,p||h)&&l(Vwt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Vnn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function rws(e){Hnn({pageContext:znn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Yfs,sampleQuestion2:Gfs,sampleQuestion3:qfs}}=ae.getLocalizedStrings().aiCfo,Kfs=[Yfs,Gfs,qfs];function Zfs(e,n=!1){Hnn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Vnn(!0),r=Rr((g=>e!=null&&e!==""?a8e(g,e):void 0)),{useDynamicConfig:s}=hs(),{configValue:l}=s(_5.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:[...Kfs]),[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 Jfs({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Er.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(tee,l);const c=d=>{d.key===dnn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(tee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Er.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Unn=m.createContext(void 0),nee=()=>m.useContext(Unn),u8t=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},Xfs=e=>{const n=Er.isSignedIn(),i=Er.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=Rr((h=>Dp(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){u8t(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 kan(_s.pusherClientSecret,{cluster:_s.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&&zI(C,u),f!=null&&zI(C,f),p!=null&&zI(C,p)))},w=()=>{const C=xee();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),Wwt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),u8t(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),en.jsx(Unn.Provider,{value:c,children:e.children})};function zI(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 e4s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Wnn=e=>n=>{const i=nee(),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]=e4s(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]),en.jsx(e,{...n})},aws=210;function sws(e){return e?.data.unread!=null&&e?.mode!=null}const Bke=e=>psi.includes(e),Pke=e=>sPt.includes(e),Mke=e=>hsi.includes(e),t4s={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"},n4s=e=>{if(Mke(e)){const n=t4s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return Bke(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Ive(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Pke(e)?`ai-cfo/${e}`:e},i4s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],lws=e=>{if(Bke(e)||Pke(e)||Mke(e))return!0;const n=n4s(e).split("/")[0];return!i4s.includes(n)},p8t=(e,n)=>e.includes(n),h8t=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(p8t(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&&Ive(s)?usi(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of sPt)if(p8t(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function o4s(e){let n=h8t(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=h8t(i[r])}return n??"home"}function cws(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function dws(e){return e.pathname.split("/")[2]==="invoicing"}function uws(e){return e.pathname.includes("ai-cfo")}function pws(e,n){const i=o4s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":Mke(i)?`invoicing/${i.replace("invoicing_","")}`:Bke(i)?"settings/my_profile":Pke(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Ive(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function r4s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(Qwt(r.tenantId)),e(Ywt(s.userId,r.tenantId,s.zeniSessionId))),_0.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function a4s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Sp(),u=ree(),p=Lg(),{setLoading:h}=jke(),g=Er.getSignedInUser(),f=cz(g),{useDynamicConfig:x}=hs(),{configValue:y}=x(_5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=Rr((O=>O.tenantState)),S=Rr((O=>v.fetchState==="Completed"?jan(O):[])),k=Rr((O=>e?.tenantId!=null?$an(O,e.tenantId):void 0)),$=m.useCallback((()=>C(!0)),[]),j=m.useCallback((()=>C(!1)),[]),I=m.useCallback((()=>{j(),s?.()}),[j,s]),E=m.useCallback((O=>{if(I(),O.type!=="skills"&&l?.(),O.type==="new_chat"){n!=null&&d(b5e());const H=HD(p.state?.pathnameStackToGoBack,p.pathname);u(`/${e.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:H.slice(0,-1),referrer:"Sidebar"}})}else O.type==="skills"?c?.():O.type==="explore"&&(n!=null&&d(b5e()),u(`/${e.tenantEmailDomain}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}}))}),[I,n,e.tenantEmailDomain,d,p,u,l,c]),D=m.useCallback((O=>{I(),d(_wt({sessionId:O,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${O}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),F=m.useCallback((()=>{I();const O=HD(p.state?.pathnameStackToGoBack,p.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:O,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]),V=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((O=>{h(knn.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;r4s({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=en.jsx(Vc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:en.jsxs(s4s,{children:[en.jsxs(l4s,{children:[en.jsx(kRt,{}),en.jsx(NRt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),en.jsx(c4s,{children:en.jsx(ERt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),en.jsxs(d4s,{children:[g!=null&&en.jsx(Zz,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:V}),en.jsx(u4s,{onClick:z,children:en.jsx(p4s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const s4s=a.div`
91312
+ `,GF=z8t(Tsn()),pfs=["sandbox","production"],hfs=["development","staging","production"],mfs=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],RI=()=>Fl==="DEV"||Fl==="QA"||Fl==="PUNE"||Fl==="SUNNYVALE"||Fl==="DELHI"||Fl==="MOHALI",wke="https://zeni-webapp-qa.uc.r.appspot.com",Fl=(e=>ty(e,mfs))("QA"),J8s=(e=>ty(e,pfs))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Fl)),r8t=(e=>ty(e,hfs))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Fl)),gfs=(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"}})(Fl);function onn(e,n){return GF.AES.decrypt(e,n).toString(GF.enc.Utf8)}const rnn="ZENI-WEB-APP-",Cke=Fl==="DEV"||Fl==="QA"?.2:.8,ann=Cke,_s={sentryDsn:"",sentryTraceSamplingRate:Cke,sentryProfileSamplingRate:ann,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let F5,az;function ffs(){return F5?.aiCfoMicroServiceBaseUrl!=null?`${F5.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function snn(e){_s.sentryDsn=e.keys.SENTRY_DSN,_s.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):Cke,_s.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):ann,_s.googleClientId=e.keys.GOOGLE_CLIENT_ID,_s.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,_s.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,_s.mixpanelToken=e.keys.MIXPANEL_TOKEN,_s.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,_s.pusherCluster=e.keys.PUSHER_CLUSTER,_s.quickbooksKey=e.keys.QUICKBOOK_TOKEN,_s.appUrl=e.keys.WEB_ENDPOINT,_s.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,_s.cardVaultId=e.keys.UNIT_VAULT_ID,_s.stripeKey=e.keys.STRIPE_KEY,_s.qboRedirectionUrl=e.keys.QBO_URL,_s.mixpanelUrl=e.keys.MIXPANEL_URL,_s.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,az=e.externalEndPoints,F5=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)}})(F5,az)}async function a8t(){const e={environment:Fl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${wke}/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 s8t=!1;function gE(){s8t||(eg.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:az.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),s8t=!0)}const xfs=new Set(Array.from(Mi.EVENTS_WITHOUT_SUPER_PROPERTIES));let l8t=!1,c8t=!1;function L9e(){if(l8t)return;l8t=!0,gE();const e=Mi.extractUtmParamsFromUrl();Object.keys(e).length>0&&eg.register(e),RI()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const yfs=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function bfs(){const e=(function(){return eg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||yfs.has(i)));for(const i of n)eg.unregister(i);RI()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function d8t(){c8t||(c8t=!0,bfs())}class nI{identify(n,i){if(gE(),this.#t=n,n!=null&&i!=null&&(nI.#e==null||!qrn({userId:n,traits:i},nI.#e))){const{$email:r,...s}={...i};eg.identify(n),r&&r!=null&&eg.people.set_once({$email:r}),eg.people.set(s),nI.#e={userId:n,traits:i},RI()&&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){gE();const r=xfs.has(n);if(this.#t!=null||r){if(L9e(),this.#t!=null){const s={distinct_id:this.#t,...i};eg.track(n,s)}else eg.track(n,i);if(d8t(),RI()){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){gE(),L9e(),eg.track(n,i),d8t(),RI()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){gE(),eg.alias(n,i)}reset(){gE(),eg.identify(void 0),this.#t=void 0,nI.#e=void 0}static#e;#t}const B9e=new nI,lnn=new Mi.Analytics(B9e);lnn.trackWithoutUserId=B9e.trackWithoutUserId.bind(B9e);const _0=lnn,wfs="openAiCfoScope",P9e="openAiCfoScopeOnDashboard";function X8s(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[P9e]:!0,...r}})}function ews(e){const n=fee(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 vke(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 cnn(e,n){return(e||n?.chatSessionSummary)??null}const dnn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",tee="zeni-ai-cfo-upload-promo-storage-changed",Er=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(tee)),!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(tee))}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 GF.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=GF.AES.decrypt(e,n).toString(GF.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:fn(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=dnn;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]},HD=(e,n)=>{const i=[...e??[]];return i.push(n),i},tws=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},nws=({state:e})=>Er.isSignedIn()===!0?en.jsx(Iin,{}):en.jsx(H8t,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),Cfs=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function unn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of Cfs)delete n[i];return n}function vfs(){const e=Sp(),n=Lg(),i=ree(),{tenantEmailDomain:r}=U8t(),[s,l]=m.useState(!1),c=Rr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?Dp(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=Rr((v=>fee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[P9e]!==!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),[P9e]: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=HD(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=Ht(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=HD(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(zwt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return en.jsx(Mtn,{open:s,onClose:w,children:en.jsxs(Ptn,{children:[s&&!h?en.jsx(mve,{analytics:_0,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,en.jsx(Uxe,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const M9e=m.createContext(void 0);function Ake(){const e=m.useContext(M9e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Ske=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],kke=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],pnn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],hnn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],mnn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],gnn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],fnn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],xnn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],ynn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function bnn(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 wnn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Cnn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],vnn=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Afs=[...pnn,...Ske,...kke,"/: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",...wnn,...Cnn,...vnn,...hnn,...mnn,...gnn,...fnn,...xnn,...ynn];function Ann(){const{pathname:e}=Lg(),n=e??"";return Afs.some((i=>N9e(i,n)!=null))||bnn(e)}function zd(e){const{pathname:n}=Lg(),i=n??"";return e.some((r=>N9e(r,i)!=null))}const iws=27.22,Snn=m.createContext(null),knn={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Sfs({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 en.jsx(Snn.Provider,{value:c,children:e})}function jke(){const e=m.useContext(Snn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function kfs(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(nan(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=Xrn(c);u.length!==0&&(e(ean(u)),e(tan({sourceChatSessionId:n})),n!=null&&e(Xke({chatSessionId:n,id:aje(),kind:"creating_cards",createdAt:fn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Jrn(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Jta(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,...Zta(v)}}const y=dX(p.vendorPolicy,"allow"),b=dX(p.vendorPolicy,"block"),w=uX(p.categoryPolicy,"allow"),C=uX(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:pX(p.limits,wSe),spendLimits:{transaction:pX(p.limits,bSe)}}})({values:c});e(Zrn({templates:[u],sourceChatSessionId:n})),n!=null&&e(Xke({chatSessionId:n,id:aje(),kind:"creating_policy",createdAt:fn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Krn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(Nwt())}:void 0}}const jfs=e=>pan(e,!1),$fs=e=>uan(e.name,!1);function Efs(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=ian(r),l=oan(r),c=ran(r),{creditAccount:d}=aan(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(jfs),cardPolicyVendorSearchOptions:l.map($fs),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:dan(r),cardPolicyUploadedFileName:can(r),cardPolicyFormDraft:lan(e.createCardPolicyState),cardsCreationFormDraft:san(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const Ifs=e=>{const n=ae.currencyFormatter(0);return i=>{const r=man(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}}},Dfs=e=>n=>{const i=han(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 Tfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoAnswerExportEnabled);return n&&F5?.aiCfoMicroServiceBaseUrl!=null?`${F5.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function Lfs({isHydrationEnabled:e=!0}={}){const n=Sp(),{useFeatureGate:i}=hs(),{isFeatureEnabled:r}=i(gl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(gl.isCardPolicyEnabled),l=Rr((x=>Dp(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=Rr((x=>{const y=Dp(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),Kq),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(fan()),n(eje()),n(xan("cardHolderCandidate",!1)),n(yan(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(ban())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(Nwt())}),[n,l]);const h=m.useMemo((()=>Dsn((x=>{n(eje(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Rr((x=>wan(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),Kq);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const jnn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],$nn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],Bfs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],Pfs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],Mfs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Ofs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Ffs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Enn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Inn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],Rfs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function $ke(e){const n=Fh(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":Rfs.includes(r)?r:null}const zfs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),Nfs=new Set(["setup","verification","promo","approval-rules"]);function Fh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Eke(e){const n=Fh(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 Dnn(e,n,i){const r=Fh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Tnn(e,n,i){return Dnn(e,n,(r=>!i.has(r)))}function Lnn(e){return Tnn(e,"bills",zfs)}function Bnn(e){return Tnn(e,"reimbursements",Nfs)}function Ike(e){return Dnn(e,"tasks",(n=>n==="group"))}const _fs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),Vfs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Dke(e){const n=Fh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return _fs.has(i)?"checking":"checking_details"}function Tke(e){const n=Fh(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 Vfs.has(i)?"cards":"cards_detail"}function Pnn(e){const n=Fh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Mnn(e){return Fh(e)[1]==="performance"?"performance":void 0}function Onn(e){const n=Fh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Fnn(e){const n=Fh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function T2(e,n){return n.some((i=>N9e(i,e)!=null))}function Hfs(e){return T2(e,Ske)?"reports":T2(e,jnn)?"ap_aging":T2(e,$nn)?"ar_aging":Eke(e)!=null?"vendors_tab":T2(e,kke)?"forecast":$ke(e)!=null?"month_end_close_review":T2(e,Enn)?"cash_balance":T2(e,Inn)?"card_balance":Ike(e)?"task_checklist":Pnn(e)!=null?"transaction_detail":Mnn(e)!=null?"performance":Onn(e)!=null?"bills_detail":Fnn(e)!=null?"reimbursement_detail":Lnn(e)?"bills_list":Bnn(e)?"reimbursement_list":T2(e,Bfs)?"cash_in_cash_out":T2(e,Pfs)?"operating_expenses":T2(e,Mfs)?"revenue":T2(e,Ofs)?"net_burn_or_income":T2(e,Ffs)?"cash_position":(function(n){const i=Fh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Dke(e)!=null?"checking":(function(n){return Fh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Tke(e)!=null?"cards":(function(n){return Fh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Fh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Fh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function Rnn(e,n){switch(Hfs(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 Eke(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 Dke(e);case"treasury":return"treasury";case"cards":return Tke(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function znn(){const{pathname:e}=Lg(),n=e??"",i=Rr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>Rnn(n,{selectedReportId:i})),[n,i])}function Lke(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoEnabled),i=Rr((s=>Dp(s))),r=Er.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function Ufs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoNavButtonEnabled),i=Lke();return n&&i}const Nnn=m.createContext(void 0),Wfs=({children:e})=>{const{tenantEmailDomain:n}=U8t(),i=n!=null?Er.getSignedInUserTenant(n):void 0,r=Rr((u=>Dp(u))),s=xee().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return en.jsx(Nnn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},Qfs=()=>{const e=m.useContext(Nnn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function _nn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Vnn(e){const{areTenantIdsInSync:n}=Qfs(),i=Lke(),r=Ufs();return n&&e&&r&&i}function ows(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Sp(),s=W8t(),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=a8e(s.getState(),d)?.fetchState;_nn(u,c)&&r(Vwt({pageContext:d}))}}),[i,r,n,s])}function Hnn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Sp(),c=W8t(),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=a8e(c.getState(),i)?.fetchState;_nn(g,p||h)&&l(Vwt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Vnn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function rws(e){Hnn({pageContext:znn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Yfs,sampleQuestion2:Gfs,sampleQuestion3:qfs}}=ae.getLocalizedStrings().aiCfo,Kfs=[Yfs,Gfs,qfs];function Zfs(e,n=!1){Hnn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Vnn(!0),r=Rr((g=>e!=null&&e!==""?a8e(g,e):void 0)),{useDynamicConfig:s}=hs(),{configValue:l}=s(_5.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:[...Kfs]),[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 Jfs({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Er.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(tee,l);const c=d=>{d.key===dnn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(tee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Er.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Unn=m.createContext(void 0),nee=()=>m.useContext(Unn),u8t=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},Xfs=e=>{const n=Er.isSignedIn(),i=Er.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=Rr((h=>Dp(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){u8t(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 kan(_s.pusherClientSecret,{cluster:_s.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&&zI(C,u),f!=null&&zI(C,f),p!=null&&zI(C,p)))},w=()=>{const C=xee();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),Wwt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),u8t(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),en.jsx(Unn.Provider,{value:c,children:e.children})};function zI(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 e4s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Wnn=e=>n=>{const i=nee(),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]=e4s(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]),en.jsx(e,{...n})},aws=210;function sws(e){return e?.data.unread!=null&&e?.mode!=null}const Bke=e=>psi.includes(e),Pke=e=>sPt.includes(e),Mke=e=>hsi.includes(e),t4s={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"},n4s=e=>{if(Mke(e)){const n=t4s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return Bke(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Ive(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Pke(e)?`ai-cfo/${e}`:e},i4s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],lws=e=>{if(Bke(e)||Pke(e)||Mke(e))return!0;const n=n4s(e).split("/")[0];return!i4s.includes(n)},p8t=(e,n)=>e.includes(n),h8t=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(p8t(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&&Ive(s)?usi(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of sPt)if(p8t(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function o4s(e){let n=h8t(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=h8t(i[r])}return n??"home"}function cws(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function dws(e){return e.pathname.split("/")[2]==="invoicing"}function uws(e){return e.pathname.includes("ai-cfo")}function pws(e,n){const i=o4s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":Mke(i)?`invoicing/${i.replace("invoicing_","")}`:Bke(i)?"settings/my_profile":Pke(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Ive(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function r4s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(Qwt(r.tenantId)),e(Ywt(s.userId,r.tenantId,s.zeniSessionId))),_0.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function a4s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Sp(),u=ree(),p=Lg(),{setLoading:h}=jke(),g=Er.getSignedInUser(),f=cz(g),{useDynamicConfig:x}=hs(),{configValue:y}=x(_5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=Rr((O=>O.tenantState)),S=Rr((O=>v.fetchState==="Completed"?jan(O):[])),k=Rr((O=>e?.tenantId!=null?$an(O,e.tenantId):void 0)),$=m.useCallback((()=>C(!0)),[]),j=m.useCallback((()=>C(!1)),[]),I=m.useCallback((()=>{j(),s?.()}),[j,s]),E=m.useCallback((O=>{if(I(),O.type!=="skills"&&l?.(),O.type==="new_chat"){n!=null&&d(b5e());const H=HD(p.state?.pathnameStackToGoBack,p.pathname);u(`/${e.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:H.slice(0,-1),referrer:"Sidebar"}})}else O.type==="skills"?c?.():O.type==="explore"&&(n!=null&&d(b5e()),u(`/${e.tenantEmailDomain}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}}))}),[I,n,e.tenantEmailDomain,d,p,u,l,c]),D=m.useCallback((O=>{I(),d(_wt({sessionId:O,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${O}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),F=m.useCallback((()=>{I();const O=HD(p.state?.pathnameStackToGoBack,p.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:O,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]),V=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((O=>{h(knn.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;r4s({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=en.jsx(Vc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:en.jsxs(s4s,{children:[en.jsxs(l4s,{children:[en.jsx(kRt,{}),en.jsx(NRt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),en.jsx(c4s,{children:en.jsx(ERt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),en.jsxs(d4s,{children:[g!=null&&en.jsx(Zz,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:V}),en.jsx(u4s,{onClick:z,children:en.jsx(p4s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const s4s=a.div`
91313
91313
  display: flex;
91314
91314
  flex: 1 1 auto;
91315
91315
  flex-direction: column;
@@ -91397,7 +91397,7 @@ ${uM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
91397
91397
  display: flex;
91398
91398
  min-height: 100%;
91399
91399
  flex-direction: column;
91400
- `,$4s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser())),i=Sp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Rr((g=>Gwt(g).fetchState)),u=Rr((g=>Dp(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=Er.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(Uan(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return en.jsxs(m.Fragment,{children:[l&&en.jsx(gve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?en.jsx(k4s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},g8t="init-enter",E4s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||g8t);I4s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||g8t,c=D4s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),I4s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),D4s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},a0=e=>m.lazy((async()=>{const n=e.toString(),i=Er.getForceRefreshedComponents(),r=new Set(i),s=Er.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),hws=(e,n,i)=>{const r=G9e(e),s=uee(e),l=q9e(i,e);return(n||i||s||r||l)&&Q9e(e.company)},qnn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Knn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Znn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Jnn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function mc(...e){const n=Fl==="DEV"||Fl==="QA";if(qnn||Knn||Znn||Jnn)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 NI(...e){const n=Fl==="DEV"||Fl==="QA";if(qnn||Knn||Znn||Jnn)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 M$=null,SM=!1;const gc=Fl==="PROD"?"https://api.zeni.ai":Fl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function f8t(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:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const T4s={dashboard:function(e){return[...f8t()]},reports:f8t,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:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${gc}/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:`${gc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${gc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${gc}/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:`${gc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${gc}/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:`${gc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${gc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function x8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,T4s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return mc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function y8t(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?(mc("[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 NI("[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);mc("[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)=>{mc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),mc(` URL: ${u.url}`)}));const c=xee(),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}}),mc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){NI("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else NI("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function L4s({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=Lg(),S=Er.getSignedInUser(),{useFeatureGate:k}=hs(),{isFeatureEnabled:$}=k(gl.isReferralFeatureEnabled),j=Tn(),I=C7(j?.loggedInUserRole??[]),E=Rr((V=>Dp(V))),{isFeatureEnabled:D}=k(gl.isDebitCardFeatureEnabled),L=q9e(D,E),F=G9e(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const V=x8t({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(V.length===0)return void mc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);mc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${V.length} URLs to prefetch`);const T=setTimeout((()=>{y8t(V,r,s).catch((M=>{NI(`[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;mc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const V=(function(z){const{timeout:T=2e3,onIdle:M}=z;mc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{SM&&(mc("[Idle Detection - Service Worker] 🏃 User became active again"),SM=!1),M$&&clearTimeout(M$),M$=setTimeout((()=>{SM||(mc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),SM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((_=>{document.addEventListener(_,O,!0)})),O(),()=>{mc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),M$&&(clearTimeout(M$),M$=null),H.forEach((_=>{document.removeEventListener(_,O,!0)})),SM=!1}})({timeout:h,onIdle:()=>{if(b)return;mc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=x8t({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?(mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),y8t(z,r,s).catch((M=>{NI(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=V,()=>{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 V=performance.getEntriesByType("navigation");if(V.length>0)return V[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(mc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const V=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||V.active;if(!z)return;mc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(V){NI("[Prefetch Provider] Failed to notify service worker of refresh:",V)}})())}),[]),en.jsx(en.Fragment,{children:e})}function B4s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Lg(),u=Rr((y=>Dp(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}=hs(),{isFeatureEnabled:x}=f(gl.isServiceWorkerPrefetchingEnabled);return g&&p?en.jsx(L4s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):en.jsx(en.Fragment,{children:e})}function P4s(e,n){const i=Mi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const M4s=a0((()=>bd((()=>import("./DefaultTenantHome-CMpQllfi.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),O4s=a0((()=>bd((()=>import("./AppDrawer-UbqqLXJe.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),b8t=a0((()=>bd((()=>import("./ScreenRoutes-C72NzSAe.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),F4s=a0((()=>bd((()=>import("./ConnectionAuthScreen-yW3T26AI.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),R4s=a0((()=>bd((()=>import("./SignInScreen-DAl9_AVs.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),z4s=a0((()=>bd((()=>import("./MagicLinkSignInScreen-DqgSvyNq.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),w8t=a0((()=>bd((()=>import("./NotFoundScreen-0hF8kIyY.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),N4s=a0((()=>bd((()=>import("./MagicLinkRoutes-BYZevXyH.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),_4s=a0((()=>bd((()=>import("./PaymentLinkScreen-6qwvkVJe.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),V4s=a0((()=>bd((()=>import("./WiseConfirmationScreen-CBCiP645.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),H4s=a0((()=>bd((()=>import("./HubSpotOAuthCallbackScreen-CYGRU6le.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),U4s=a0((()=>bd((()=>import("./CustomerOnboardingAuthScreen-CEs020qJ.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),W4s=a0((()=>bd((()=>import("./SignOutScreen-CvQRUG30.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),Q4s=a0((()=>bd((()=>import("./OAuthConsentScreen-B_ncopNh.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),Y4s=()=>{const e=Lg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=P4s("/",n);return en.jsx(H8t,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function G4s(){const{isOpen:e}=$S(),n=Dli(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Ake(),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 q4s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Er.isSignedIn(),r=Rr((j=>Dp(j))),s=Er.getSignedInUser(),l=i&&cz(s),c=Rr((j=>Wan(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Sp(),p=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Ann(),g=Lke(),[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}=hs(),{isFeatureEnabled:v}=C(gl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(Qan())}),[u,h]);const S=Lg().pathname.includes("/collect-payment/"),k=en.jsx(K4s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return en.jsx(pUe,{children:en.jsx(Kgt,{children:en.jsx(M9e.Provider,{value:w,children:k})})});const $=en.jsxs(M9e.Provider,{value:w,children:[en.jsx(G4s,{}),en.jsxs(X4s,{children:[en.jsx(O4s,{tenantEmailDomain:e}),en.jsx(Z4s,{children:k})]})]});return en.jsx(pUe,{children:r.tenantId!=null?en.jsx(gpa,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${F5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${F5.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):en.jsx(Kgt,{children:$})})},K4s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Rr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=hs(),{configValue:c}=l(_5.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}=jke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Ake();return m.useEffect((()=>{h(knn.APP_INITIALIZATION)}),[h]),en.jsx(m.Suspense,{fallback:null,children:en.jsx(B4s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:en.jsxs(Tin,{children:[en.jsx(R1,{path:"/magic_links/*",element:en.jsx(N4s,{})}),en.jsx(R1,{path:"/collect-payment/:namespace/:token",element:en.jsx(_4s,{})}),en.jsx(R1,{path:"/wise/callback/link-account/*",element:en.jsx(V4s,{})}),en.jsx(R1,{path:"/page-not-found",element:en.jsx(w8t,{})}),en.jsx(R1,{path:"/",element:en.jsx(M4s,{})}),en.jsx(R1,{path:"/aicfo",element:en.jsx(Y4s,{})}),en.jsx(R1,{path:"/onboarding/auth",element:en.jsx(U4s,{})}),en.jsx(R1,{path:"/:tenantEmailDomain/*",element:en.jsx(t5s,{children:en.jsxs(Wfs,{children:[en.jsxs(n5s,{children:[s!=null?en.jsx($4s,{}):null,n?en.jsx(b8t,{setTenantEmailDomain:e}):en.jsx(p5e,{children:en.jsx(b8t,{setTenantEmailDomain:e})})]}),i?en.jsxs(en.Fragment,{children:[en.jsx(vfs,{}),en.jsx(i5s,{isOpen:g,children:en.jsx(x4s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),en.jsx(R1,{path:"/signin/auth",element:en.jsx(p5e,{children:en.jsx(R4s,{setTenantEmailDomain:e})})}),en.jsx(R1,{path:"/signin/magic-link",element:en.jsx(p5e,{children:en.jsx(z4s,{})})}),en.jsx(R1,{path:"/signout",element:en.jsx(W4s,{})}),en.jsx(R1,{path:"/connection/auth",element:en.jsx(F4s,{})}),en.jsx(R1,{path:"/oauth/hubspot/callback",element:en.jsx(H4s,{})}),en.jsx(R1,{path:"/oauth/authorize",element:en.jsx(Q4s,{})}),en.jsx(R1,{path:"*",element:en.jsx(w8t,{})})]})})})},Z4s=({children:e})=>{const{isOpen:n,width:i}=$S();return en.jsx(e5s,{commentsDrawerWidth:n?i:0,children:e})},J4s=tS("div")`
91400
+ `,$4s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser())),i=Sp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Rr((g=>Gwt(g).fetchState)),u=Rr((g=>Dp(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=Er.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(Uan(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return en.jsxs(m.Fragment,{children:[l&&en.jsx(gve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?en.jsx(k4s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},g8t="init-enter",E4s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||g8t);I4s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||g8t,c=D4s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),I4s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),D4s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},a0=e=>m.lazy((async()=>{const n=e.toString(),i=Er.getForceRefreshedComponents(),r=new Set(i),s=Er.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Er.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),hws=(e,n,i)=>{const r=G9e(e),s=uee(e),l=q9e(i,e);return(n||i||s||r||l)&&Q9e(e.company)},qnn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Knn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Znn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Jnn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function mc(...e){const n=Fl==="DEV"||Fl==="QA";if(qnn||Knn||Znn||Jnn)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 NI(...e){const n=Fl==="DEV"||Fl==="QA";if(qnn||Knn||Znn||Jnn)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 M$=null,SM=!1;const gc=Fl==="PROD"?"https://api.zeni.ai":Fl==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function f8t(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:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${gc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const T4s={dashboard:function(e){return[...f8t()]},reports:f8t,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:`${gc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${gc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${gc}/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:`${gc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${gc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${gc}/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:`${gc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${gc}/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:`${gc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${gc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${gc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function x8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,T4s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(mc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return mc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function y8t(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?(mc("[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 NI("[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);mc("[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)=>{mc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),mc(` URL: ${u.url}`)}));const c=xee(),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}}),mc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){NI("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else NI("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function L4s({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=Lg(),S=Er.getSignedInUser(),{useFeatureGate:k}=hs(),{isFeatureEnabled:$}=k(gl.isReferralFeatureEnabled),j=Tn(),I=C7(j?.loggedInUserRole??[]),E=Rr((V=>Dp(V))),{isFeatureEnabled:D}=k(gl.isDebitCardFeatureEnabled),L=q9e(D,E),F=G9e(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const V=x8t({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(V.length===0)return void mc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);mc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${V.length} URLs to prefetch`);const T=setTimeout((()=>{y8t(V,r,s).catch((M=>{NI(`[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;mc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const V=(function(z){const{timeout:T=2e3,onIdle:M}=z;mc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{SM&&(mc("[Idle Detection - Service Worker] 🏃 User became active again"),SM=!1),M$&&clearTimeout(M$),M$=setTimeout((()=>{SM||(mc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),SM=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((_=>{document.addEventListener(_,O,!0)})),O(),()=>{mc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),M$&&(clearTimeout(M$),M$=null),H.forEach((_=>{document.removeEventListener(_,O,!0)})),SM=!1}})({timeout:h,onIdle:()=>{if(b)return;mc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=x8t({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?(mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),y8t(z,r,s).catch((M=>{NI(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):mc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=V,()=>{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 V=performance.getEntriesByType("navigation");if(V.length>0)return V[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(mc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const V=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||V.active;if(!z)return;mc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(V){NI("[Prefetch Provider] Failed to notify service worker of refresh:",V)}})())}),[]),en.jsx(en.Fragment,{children:e})}function B4s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Lg(),u=Rr((y=>Dp(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}=hs(),{isFeatureEnabled:x}=f(gl.isServiceWorkerPrefetchingEnabled);return g&&p?en.jsx(L4s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):en.jsx(en.Fragment,{children:e})}function P4s(e,n){const i=Mi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const M4s=a0((()=>bd((()=>import("./DefaultTenantHome-CSjiBXma.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),O4s=a0((()=>bd((()=>import("./AppDrawer-DpiXvF-5.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),b8t=a0((()=>bd((()=>import("./ScreenRoutes-DuGsfGk3.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),F4s=a0((()=>bd((()=>import("./ConnectionAuthScreen-Scq1RAZX.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),R4s=a0((()=>bd((()=>import("./SignInScreen-BkMf-gZx.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),z4s=a0((()=>bd((()=>import("./MagicLinkSignInScreen-2NCXrWHu.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),w8t=a0((()=>bd((()=>import("./NotFoundScreen-E3epqX_z.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),N4s=a0((()=>bd((()=>import("./MagicLinkRoutes-ClEmimUi.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),_4s=a0((()=>bd((()=>import("./PaymentLinkScreen-bt7t9bCe.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),V4s=a0((()=>bd((()=>import("./WiseConfirmationScreen-PejmXFnW.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),H4s=a0((()=>bd((()=>import("./HubSpotOAuthCallbackScreen-BfArfDqI.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),U4s=a0((()=>bd((()=>import("./CustomerOnboardingAuthScreen-DBPwD9T8.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),W4s=a0((()=>bd((()=>import("./SignOutScreen-YqR-y0va.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),Q4s=a0((()=>bd((()=>import("./OAuthConsentScreen-HzQDmJ8X.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),Y4s=()=>{const e=Lg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=P4s("/",n);return en.jsx(H8t,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function G4s(){const{isOpen:e}=$S(),n=Dli(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Ake(),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 q4s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Er.isSignedIn(),r=Rr((j=>Dp(j))),s=Er.getSignedInUser(),l=i&&cz(s),c=Rr((j=>Wan(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Sp(),p=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Ann(),g=Lke(),[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}=hs(),{isFeatureEnabled:v}=C(gl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(Qan())}),[u,h]);const S=Lg().pathname.includes("/collect-payment/"),k=en.jsx(K4s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return en.jsx(pUe,{children:en.jsx(Kgt,{children:en.jsx(M9e.Provider,{value:w,children:k})})});const $=en.jsxs(M9e.Provider,{value:w,children:[en.jsx(G4s,{}),en.jsxs(X4s,{children:[en.jsx(O4s,{tenantEmailDomain:e}),en.jsx(Z4s,{children:k})]})]});return en.jsx(pUe,{children:r.tenantId!=null?en.jsx(gpa,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${F5.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${F5.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):en.jsx(Kgt,{children:$})})},K4s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Rr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=hs(),{configValue:c}=l(_5.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}=jke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Ake();return m.useEffect((()=>{h(knn.APP_INITIALIZATION)}),[h]),en.jsx(m.Suspense,{fallback:null,children:en.jsx(B4s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:en.jsxs(Tin,{children:[en.jsx(R1,{path:"/magic_links/*",element:en.jsx(N4s,{})}),en.jsx(R1,{path:"/collect-payment/:namespace/:token",element:en.jsx(_4s,{})}),en.jsx(R1,{path:"/wise/callback/link-account/*",element:en.jsx(V4s,{})}),en.jsx(R1,{path:"/page-not-found",element:en.jsx(w8t,{})}),en.jsx(R1,{path:"/",element:en.jsx(M4s,{})}),en.jsx(R1,{path:"/aicfo",element:en.jsx(Y4s,{})}),en.jsx(R1,{path:"/onboarding/auth",element:en.jsx(U4s,{})}),en.jsx(R1,{path:"/:tenantEmailDomain/*",element:en.jsx(t5s,{children:en.jsxs(Wfs,{children:[en.jsxs(n5s,{children:[s!=null?en.jsx($4s,{}):null,n?en.jsx(b8t,{setTenantEmailDomain:e}):en.jsx(p5e,{children:en.jsx(b8t,{setTenantEmailDomain:e})})]}),i?en.jsxs(en.Fragment,{children:[en.jsx(vfs,{}),en.jsx(i5s,{isOpen:g,children:en.jsx(x4s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),en.jsx(R1,{path:"/signin/auth",element:en.jsx(p5e,{children:en.jsx(R4s,{setTenantEmailDomain:e})})}),en.jsx(R1,{path:"/signin/magic-link",element:en.jsx(p5e,{children:en.jsx(z4s,{})})}),en.jsx(R1,{path:"/signout",element:en.jsx(W4s,{})}),en.jsx(R1,{path:"/connection/auth",element:en.jsx(F4s,{})}),en.jsx(R1,{path:"/oauth/hubspot/callback",element:en.jsx(H4s,{})}),en.jsx(R1,{path:"/oauth/authorize",element:en.jsx(Q4s,{})}),en.jsx(R1,{path:"*",element:en.jsx(w8t,{})})]})})})},Z4s=({children:e})=>{const{isOpen:n,width:i}=$S();return en.jsx(e5s,{commentsDrawerWidth:n?i:0,children:e})},J4s=tS("div")`
91401
91401
  display:flex;
91402
91402
  `,X4s=tS("div")`
91403
91403
  display: flex;
@@ -91519,4 +91519,4 @@ ${uM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(ji
91519
91519
  }
91520
91520
  `,v5s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?en.jsxs(x5s,{style:n,children:[en.jsxs(y5s,{children:[en.jsx(gG,{children:en.jsx(Mm,{width:96,height:20})}),en.jsxs(gG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:78,height:16}),en.jsx(Mm,{width:46,height:16})]}),en.jsxs(gG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:110,height:16}),en.jsx(Mm,{width:84,height:16})]}),en.jsxs(gG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:84,height:16}),en.jsx(Mm,{width:64,height:16})]})]}),en.jsxs(b5s,{children:[en.jsxs(w5s,{children:[en.jsx(Mm,{width:106,height:27}),en.jsx(Mm,{width:111,height:32})]}),en.jsx(C5s,{children:en.jsx(f5s,{width:96,height:96})})]})]}):null;function A5s({minDisplayTime:e=0}){const{isLoading:n}=jke(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),Er.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:en.jsx(v5s,{fetchState:"In-Progress"})}const S5s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(Er.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},A8t="missing-receipts-batch-completed";let F9e=null,R9e=!1;function gws(e,n){if(!n)return F9e=null,void(R9e=!1);F9e=e,R9e=!0}const k5s=()=>{const e=Sp(),{useFeatureGate:n}=hs(),{isFeatureEnabled:i}=n(gl.isReconV3Enabled),r=Rr((l=>qwt(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 R9e&&F9e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(Uwt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:Xis(c)},{variableName:"_transaction_count_",variableValue:String(eos(c))}]})),s.current[l]=d}))}),[r,e,i])},S8t="reconciliation-status-updated",k8t="statement-status-updated",j8t="combined-statement-group-updated";function j5s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function $5s(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(Kwt(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(Zan({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(Zwt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function E5s(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(j5s(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(Kwt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Jan({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):Zwt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function I5s(){let e=v8t();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(F5)}`);const n=Er.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=Er.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return Er.getActiveTenantForUser()?.tenantId})():void 0,r=tsn(F5,n?.userId,n?.zeniSessionId,i,RI(),L5s);w5e();const s=xee();return s.userId!=null&&_0.identify(s.userId,{tenant_id:s.tenantId}),r})(),ein=e,w5e().then((()=>{const n=v8t();n!=null&&(Z6.reset(),m5s(n))})).catch((n=>{console.error("Failed to load feature epics:",n),din(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
91521
91521
 
91522
- Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const fG=new Xan,$8t=()=>{const e=Sp(),n=Er.getSignedInUser(),i=Rr((L=>Dp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=hs(),{configValue:N,isDynamicConfigLoading:V}=F(Hwe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(V||L==null||!z)return wW;const T=Sut(N.users_disabled_for_auto_logout),M=Sut(N.users_enabled_for_auto_logout),O=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),_=!H&&M.includes(L);return{heartbeatIntervalMinutes:Dge(N.heartbeat_interval_minutes,wW.heartbeatIntervalMinutes),idleTimeoutMinutes:Dge(N.idle_timeout_minutes,wW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(_||O),warningDurationSeconds:Dge(N.warning_duration_seconds,wW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(xve,"auto-logout"),sessionStorage.setItem(yve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(bve,String(Date.now())),iF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(rFt(),iF=void 0),s(null),fG.stop(),e(nsn()),e(isn(!1)),Er.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return fG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(osn()),onWarningStart:L=>{_0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{_0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>fG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Rr((L=>rsn(L,i.companyId))),u=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(ije())}),[]);const h=Rr((L=>asn(L)));(()=>{const L=nee(),F=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(V!==!0||L==null)return;const z=Er.getSignedInUser()?.userId;if(z==null)return;const T=zI(L,z),M=O=>{F(Kan({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(A8t,M),()=>{T.unbind(A8t,M)}}),[L,F,V])})(),(()=>{const L=nee(),F=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isReconV3Enabled),{isFeatureEnabled:z}=N(gl.isReconciliationCombinedStatementEnabled),T=Rr((Y=>Dp(Y)?.companyId)),M=Rr((Y=>qwt(Y))),O=M?.selectedPeriod,H=M?.reconciliation,_=O?.month,W=O?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||_==null||W==null)return;const Y={month:_,year:W},q=zI(L,T),K=ee=>{$5s(F,Y,ee??{},V===!0,z===!0,U.current)},J=ee=>{E5s(F,Y,ee??{},V===!0,z===!0,U.current)};return q.bind(S8t,K),q.bind(k8t,K),q.bind(j8t,J),()=>{q.unbind(S8t,K),q.unbind(k8t,K),q.unbind(j8t,J)}}),[L,F,V,z,T,_,W])})(),k5s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>ssn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,F)=>{var N;N=F,N?.data!=null&&e(lsn(F))}},y=m.useMemo((()=>Er.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=hs(),{isFeatureEnabled:C}=w(gl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(gl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(gl.isInvoicingFeatureEnabled),k=R0a(),$=i?.userRole!=null&&ps(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Fl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&owt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>h5s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:_0,sentry:uin,authParams:b,resolveDeepLink:E})),[b,E]);return en.jsxs(Mzn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[en.jsx($zn,{toolkit:D,children:en.jsxs(FRn,{endPoint:{url:wke},children:[en.jsx(znr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(ije())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),en.jsx(o5s,{...x})]})}),r!=null&&n!=null?en.jsx(efs,{secondsRemaining:r,onContinueSession:()=>{_0.trackSessionTimeoutClicked("continue",r),fG.continueSession()},onSignOut:()=>{_0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},D5s=()=>{const e=Er.isSignedIn(),n=Rr((c=>Dp(c))).companyId,i=Rr((c=>esn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=S5s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:r8t,featureClientSecret:_s.featureClientSecret,providerEndPoint:az.statsigBaseUrl})),[r8t,_s.featureClientSecret,az.statsigBaseUrl]);return n?en.jsx(mHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:en.jsx($8t,{})}):en.jsx($8t,{})},T5s=cin((function(){const e=m.useMemo((()=>I5s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{w5e().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]),en.jsx(r5s,{children:en.jsx(Lin,{store:e,children:en.jsx(g5s,{value:n,children:en.jsxs(Sfs,{children:[en.jsx(A5s,{}),en.jsx(Y7n,{children:en.jsx(Xfs,{children:en.jsxs(kzn,{children:[r?en.jsx(Tsi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,en.jsx(D5s,{})]})})})]})})})})}));function L5s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const B5s=!!(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}$/)),E8t=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function I8t(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 nin="zeni:env-keys:",iee=`${nin}${Fl}:5.3.87-dev-3bb13c26b`,D8t="zeni.ai";function P5s(e){return iin(e)}function T8t(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(P5s)}const h5e="o4504609050525696",M5s={SENTRY_DSN:[`${h5e}.ingest.sentry.io`,`${h5e}.ingest.us.sentry.io`,`${h5e}.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"]},O5s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,F5s=["WEB_ENDPOINT"];function iin(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===D8t||n.hostname.endsWith(`.${D8t}`))}const R5s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],z5s=/^[A-Za-z0-9_-]+$/,N5s=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}),_5s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),V5s=/^pk_(live|test)_[A-Za-z0-9]+$/,H5s=/^[A-Za-z0-9_.-]+$/,U5s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function W5s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!T8t(n.apiEndPoints)||!T8t(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(N5s.some((h=>i[h]==null))||_5s.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(M5s).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=R5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&z5s.test(g)})),u=F5s.every((h=>{const g=l[h];return g==null||(function(f){if(iin(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&O5s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&V5s.test(l.STRIPE_KEY))&&U5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&H5s.test(g)}));return c&&d&&u&&p}function m5e(){try{window.localStorage.removeItem(iee)}catch{}}function Q5s(e){try{window.localStorage.setItem(iee,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(nin)&&r!==iee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function oin(e){if(e==null||e==="")return null;try{const n=JSON.parse(onn(e,rnn+Fl));return W5s(n)?n:null}catch{return null}}function L8t(e){return oin(e)!=null&&(Q5s(e),!0)}const B8t="zeni-chunk-reload-at",Y5s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function P8t(e){try{const n=Number(sessionStorage.getItem(B8t))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(B8t,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let g5e=!1,M8t=null;const O8t="//js.hs-scripts.com/5991084.js",F8t="hs-script-loader",G5s=Er.getSignedInUser(),q5s=G5s?.zeniSessionId;function K5s(){const e=()=>{const n=_s.sentryDsn?.trim();if(!n)return;const i=_s.sentryProfileSamplingRate>0,r=Fl==="PROD";pin({dsn:n,environment:gfs,tracesSampleRate:_s.sentryTraceSamplingRate,profilesSampleRate:i?_s.sentryProfileSamplingRate:0,integrations:[hin(),...i?[min()]:[],...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)}),fin("session-id",q5s),(function(){if(qq==null)return;const s=qq;qq=void 0;try{if(window.sessionStorage.getItem(R8t)!=null)return;window.sessionStorage.setItem(R8t,s)}catch{}xin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.87-dev-3bb13c26b"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function rin(){Lsn.createRoot(document.getElementById("root")).render(en.jsx(B.StrictMode,{children:en.jsx(Bin,{children:en.jsx(T5s,{})})})),K5s()}let qq;function z9e(e){qq=e}const R8t="zeni:env-keys-rejection-reported";function Z5s(){const e=(function(){try{const i=window.localStorage.getItem(iee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return m5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(m5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=oin(e);return n==null?(z9e("untrusted-or-unreadable"),m5e(),!1):(snn(n),rin(),!0)}var kC;window.addEventListener("vite:preloadError",(e=>{const n=e;P8t(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return Y5s.some((r=>i.includes(r)))})(e.reason)&&P8t(e.reason)})),(async function(){try{if(Z5s())return void(async function(){const i=await a8t();typeof i=="string"&&i.length>0&&!L8t(i)&&z9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await a8t(),n=onn(e,rnn+Fl);snn(JSON.parse(n)),L8t(e)||z9e("network-untrusted-payload"),rin()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):M8t!==null||(M8t=new Promise((e=>{if(g5e)return void e(!0);const n=()=>{g5e?e(!0):(g5e=!0,new Promise(((r,s)=>{if(document.getElementById(F8t))return void r();const l=document.createElement("script");l.id=F8t,l.src=O8t,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${O8t}`)),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;B5s?(e=E8t,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()))})):I8t(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):I8t(E8t)}))}})(),(kC=console.log)&&kC instanceof Function&&bd((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(kC),n(kC),i(kC),r(kC),s(kC)}));export{fe as $,gl as A,Pke as B,r4s as C,pws as D,o as E,Ive as F,ae as G,yxs as H,a0 as I,oWi as J,Fl as K,knn as L,m5s as M,Mi as N,I7s as O,nws as P,usi as Q,v8t as R,o7s as S,_s as T,D7s as U,Tn as V,hs as W,R0a as X,Kn as Y,pxs as Z,xxs as _,Ake as a,gbs as a$,H6s as a0,y2i as a1,tws as a2,U6s as a3,W6s as a4,v4s as a5,mve as a6,f5s as a7,LUo as a8,R as a9,sCo as aA,T7s as aB,v6s as aC,C6s as aD,U5 as aE,mQt as aF,A6s as aG,mxs as aH,nee as aI,e4s as aJ,ybs as aK,bbs as aL,i7s as aM,J6s as aN,a6s as aO,c6s as aP,PAe as aQ,tbs as aR,ebs as aS,l6s as aT,s6s as aU,n7s as aV,lPt as aW,F8s as aX,xbs as aY,mbs as aZ,fbs as a_,Q6s as aa,B8s as ab,F5 as ac,P as ad,hxs as ae,E6s as af,p7s as ag,k6s as ah,E7s as ai,J8s as aj,B7s as ak,Hfs as al,Vnn as am,ows as an,Qfs as ao,Ufs as ap,rws as aq,w7s as ar,vp as as,wke as at,h8t as au,O9s as av,qbs as aw,ji as ax,i6s as ay,n6s as az,P4s as b,Jys as b$,Xys as b0,w6s as b1,Oi as b2,$zn as b3,j6s as b4,Z6o as b5,L7s as b6,Iji as b7,URt as b8,K6s as b9,jxs as bA,$xs as bB,kxs as bC,RI as bD,X6s as bE,bys as bF,Cys as bG,wys as bH,fys as bI,gys as bJ,vys as bK,Y6s as bL,xys as bM,yys as bN,Sys as bO,ks as bP,Cbs as bQ,G6s as bR,Lys as bS,Dys as bT,Q8s as bU,y6s as bV,N8s as bW,Oys as bX,Mys as bY,Gys as bZ,Yys as b_,q6s as ba,Z6s as bb,c7s as bc,Dn as bd,Sa as be,znn as bf,_5 as bg,ews as bh,h4s as bi,b7s as bj,C7s as bk,Abs as bl,vke as bm,wfs as bn,r7s as bo,BBi as bp,NTt as bq,P7s as br,Zfs as bs,Bys as bt,Axs as bu,Exs as bv,SCe as bw,Sxs as bx,F9s as by,r6s as bz,S5s as c,d6s as c$,Zys as c0,kys as c1,jys as c2,S6s as c3,$6s as c4,$ys as c5,Eys as c6,Iys as c7,Kys as c8,qys as c9,$8s as cA,X9s as cB,ct as cC,Q9s as cD,Gi as cE,w8s as cF,G9s as cG,J9s as cH,C8s as cI,d8s as cJ,u8s as cK,p8s as cL,c8s as cM,h8s as cN,l8s as cO,v5s as cP,Lxs as cQ,e6s as cR,t6s as cS,R9s as cT,Tys as cU,K8s as cV,_8s as cW,p6s as cX,g6s as cY,h6s as cZ,fxs as c_,E8s as ca,j8s as cb,q9s as cc,i8s as cd,K9s as ce,_9s as cf,U9s as cg,v8s as ch,e8s as ci,f8s as cj,x8s as ck,g8s as cl,W9s as cm,Z9s as cn,T8s as co,I8s as cp,D8s as cq,A8s as cr,t8s as cs,k8s as ct,S8s as cu,n8s as cv,m8s as cw,V9s as cx,L8s as cy,Y9s as cz,Lke as d,Pys as d$,u6s as d0,gve as d1,f6s as d2,b6s as d3,tus as d4,hps as d5,R4e as d6,Y8s as d7,G8s as d8,q8s as d9,Dxs as dA,Txs as dB,Hbs as dC,zbs as dD,Rbs as dE,jbs as dF,Nbs as dG,wbs as dH,hpa as dI,L9s as dJ,M9s as dK,N9s as dL,z9s as dM,P8s as dN,Xis as dO,wxs as dP,z8s as dQ,R8s as dR,gws as dS,lGi as dT,o6s as dU,Dli as dV,$S as dW,CJt as dX,Z8s as dY,U3o as dZ,O8s as d_,W8s as da,d7s as db,SYt as dc,Obs as dd,Mbs as de,Bbs as df,Fbs as dg,Pbs as dh,V8s as di,Lbs as dj,Tbs as dk,Vbs as dl,kbs as dm,Ebs as dn,Ixs as dp,m6s as dq,lr as dr,bUr as ds,$bs as dt,Hnn as du,vbs as dv,Dbs as dw,Sbs as dx,Ibs as dy,_bs as dz,MMt as e,I9s as e0,Gbs as e1,Ybs as e2,Qbs as e3,Tfs as e4,Lfs as e5,fR as e6,Jfs as e7,a4s as e8,unn as e9,m4s as ea,Uxe as eb,Mtn as ec,Ptn as ed,bxs as ee,Efs as ef,Dfs as eg,Ifs as eh,ffs as ei,kfs as ej,cnn as ek,iws as el,mws as f,hws as g,Ht as h,sws as i,_0 as j,uws as k,dws as l,A as m,cws as n,o4s as o,HD as p,l7s as q,STi as r,aws as s,Z6 as t,jke as u,X8s as v,Wnn as w,lws as x,n4s as y,Er as z};
91522
+ Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const fG=new Xan,$8t=()=>{const e=Sp(),n=Er.getSignedInUser(),i=Rr((L=>Dp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=hs(),{configValue:N,isDynamicConfigLoading:V}=F(Hwe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(V||L==null||!z)return wW;const T=Sut(N.users_disabled_for_auto_logout),M=Sut(N.users_enabled_for_auto_logout),O=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),_=!H&&M.includes(L);return{heartbeatIntervalMinutes:Dge(N.heartbeat_interval_minutes,wW.heartbeatIntervalMinutes),idleTimeoutMinutes:Dge(N.idle_timeout_minutes,wW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(_||O),warningDurationSeconds:Dge(N.warning_duration_seconds,wW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(xve,"auto-logout"),sessionStorage.setItem(yve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(bve,String(Date.now())),iF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(rFt(),iF=void 0),s(null),fG.stop(),e(nsn()),e(isn(!1)),Er.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return fG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(osn()),onWarningStart:L=>{_0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{_0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>fG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Rr((L=>rsn(L,i.companyId))),u=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(ije())}),[]);const h=Rr((L=>asn(L)));(()=>{const L=nee(),F=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(V!==!0||L==null)return;const z=Er.getSignedInUser()?.userId;if(z==null)return;const T=zI(L,z),M=O=>{F(Kan({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(A8t,M),()=>{T.unbind(A8t,M)}}),[L,F,V])})(),(()=>{const L=nee(),F=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isReconV3Enabled),{isFeatureEnabled:z}=N(gl.isReconciliationCombinedStatementEnabled),T=Rr((Y=>Dp(Y)?.companyId)),M=Rr((Y=>qwt(Y))),O=M?.selectedPeriod,H=M?.reconciliation,_=O?.month,W=O?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||_==null||W==null)return;const Y={month:_,year:W},q=zI(L,T),K=ee=>{$5s(F,Y,ee??{},V===!0,z===!0,U.current)},J=ee=>{E5s(F,Y,ee??{},V===!0,z===!0,U.current)};return q.bind(S8t,K),q.bind(k8t,K),q.bind(j8t,J),()=>{q.unbind(S8t,K),q.unbind(k8t,K),q.unbind(j8t,J)}}),[L,F,V,z,T,_,W])})(),k5s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>ssn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,F)=>{var N;N=F,N?.data!=null&&e(lsn(F))}},y=m.useMemo((()=>Er.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=hs(),{isFeatureEnabled:C}=w(gl.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(gl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(gl.isInvoicingFeatureEnabled),k=R0a(),$=i?.userRole!=null&&ps(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Fl==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&owt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>h5s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:_0,sentry:uin,authParams:b,resolveDeepLink:E})),[b,E]);return en.jsxs(Mzn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[en.jsx($zn,{toolkit:D,children:en.jsxs(FRn,{endPoint:{url:wke},children:[en.jsx(znr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(ije())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),en.jsx(o5s,{...x})]})}),r!=null&&n!=null?en.jsx(efs,{secondsRemaining:r,onContinueSession:()=>{_0.trackSessionTimeoutClicked("continue",r),fG.continueSession()},onSignOut:()=>{_0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},D5s=()=>{const e=Er.isSignedIn(),n=Rr((c=>Dp(c))).companyId,i=Rr((c=>esn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=S5s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:r8t,featureClientSecret:_s.featureClientSecret,providerEndPoint:az.statsigBaseUrl})),[r8t,_s.featureClientSecret,az.statsigBaseUrl]);return n?en.jsx(mHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:en.jsx($8t,{})}):en.jsx($8t,{})},T5s=cin((function(){const e=m.useMemo((()=>I5s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{w5e().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]),en.jsx(r5s,{children:en.jsx(Lin,{store:e,children:en.jsx(g5s,{value:n,children:en.jsxs(Sfs,{children:[en.jsx(A5s,{}),en.jsx(Y7n,{children:en.jsx(Xfs,{children:en.jsxs(kzn,{children:[r?en.jsx(Tsi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,en.jsx(D5s,{})]})})})]})})})})}));function L5s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const B5s=!!(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}$/)),E8t=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function I8t(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 nin="zeni:env-keys:",iee=`${nin}${Fl}:5.3.87-qa-3bb13c26b`,D8t="zeni.ai";function P5s(e){return iin(e)}function T8t(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(P5s)}const h5e="o4504609050525696",M5s={SENTRY_DSN:[`${h5e}.ingest.sentry.io`,`${h5e}.ingest.us.sentry.io`,`${h5e}.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"]},O5s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,F5s=["WEB_ENDPOINT"];function iin(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===D8t||n.hostname.endsWith(`.${D8t}`))}const R5s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],z5s=/^[A-Za-z0-9_-]+$/,N5s=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}),_5s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),V5s=/^pk_(live|test)_[A-Za-z0-9]+$/,H5s=/^[A-Za-z0-9_.-]+$/,U5s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function W5s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!T8t(n.apiEndPoints)||!T8t(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(N5s.some((h=>i[h]==null))||_5s.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(M5s).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=R5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&z5s.test(g)})),u=F5s.every((h=>{const g=l[h];return g==null||(function(f){if(iin(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&O5s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&V5s.test(l.STRIPE_KEY))&&U5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&H5s.test(g)}));return c&&d&&u&&p}function m5e(){try{window.localStorage.removeItem(iee)}catch{}}function Q5s(e){try{window.localStorage.setItem(iee,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(nin)&&r!==iee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function oin(e){if(e==null||e==="")return null;try{const n=JSON.parse(onn(e,rnn+Fl));return W5s(n)?n:null}catch{return null}}function L8t(e){return oin(e)!=null&&(Q5s(e),!0)}const B8t="zeni-chunk-reload-at",Y5s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function P8t(e){try{const n=Number(sessionStorage.getItem(B8t))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(B8t,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let g5e=!1,M8t=null;const O8t="//js.hs-scripts.com/5991084.js",F8t="hs-script-loader",G5s=Er.getSignedInUser(),q5s=G5s?.zeniSessionId;function K5s(){const e=()=>{const n=_s.sentryDsn?.trim();if(!n)return;const i=_s.sentryProfileSamplingRate>0,r=Fl==="PROD";pin({dsn:n,environment:gfs,tracesSampleRate:_s.sentryTraceSamplingRate,profilesSampleRate:i?_s.sentryProfileSamplingRate:0,integrations:[hin(),...i?[min()]:[],...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)}),fin("session-id",q5s),(function(){if(qq==null)return;const s=qq;qq=void 0;try{if(window.sessionStorage.getItem(R8t)!=null)return;window.sessionStorage.setItem(R8t,s)}catch{}xin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.87-qa-3bb13c26b"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function rin(){Lsn.createRoot(document.getElementById("root")).render(en.jsx(B.StrictMode,{children:en.jsx(Bin,{children:en.jsx(T5s,{})})})),K5s()}let qq;function z9e(e){qq=e}const R8t="zeni:env-keys-rejection-reported";function Z5s(){const e=(function(){try{const i=window.localStorage.getItem(iee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return m5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(m5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=oin(e);return n==null?(z9e("untrusted-or-unreadable"),m5e(),!1):(snn(n),rin(),!0)}var kC;window.addEventListener("vite:preloadError",(e=>{const n=e;P8t(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return Y5s.some((r=>i.includes(r)))})(e.reason)&&P8t(e.reason)})),(async function(){try{if(Z5s())return void(async function(){const i=await a8t();typeof i=="string"&&i.length>0&&!L8t(i)&&z9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await a8t(),n=onn(e,rnn+Fl);snn(JSON.parse(n)),L8t(e)||z9e("network-untrusted-payload"),rin()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):M8t!==null||(M8t=new Promise((e=>{if(g5e)return void e(!0);const n=()=>{g5e?e(!0):(g5e=!0,new Promise(((r,s)=>{if(document.getElementById(F8t))return void r();const l=document.createElement("script");l.id=F8t,l.src=O8t,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${O8t}`)),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;B5s?(e=E8t,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()))})):I8t(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):I8t(E8t)}))}})(),(kC=console.log)&&kC instanceof Function&&bd((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(kC),n(kC),i(kC),r(kC),s(kC)}));export{fe as $,gl as A,Pke as B,r4s as C,pws as D,o as E,Ive as F,ae as G,yxs as H,a0 as I,oWi as J,Fl as K,knn as L,m5s as M,Mi as N,I7s as O,nws as P,usi as Q,v8t as R,o7s as S,_s as T,D7s as U,Tn as V,hs as W,R0a as X,Kn as Y,pxs as Z,xxs as _,Ake as a,gbs as a$,H6s as a0,y2i as a1,tws as a2,U6s as a3,W6s as a4,v4s as a5,mve as a6,f5s as a7,LUo as a8,R as a9,sCo as aA,T7s as aB,v6s as aC,C6s as aD,U5 as aE,mQt as aF,A6s as aG,mxs as aH,nee as aI,e4s as aJ,ybs as aK,bbs as aL,i7s as aM,J6s as aN,a6s as aO,c6s as aP,PAe as aQ,tbs as aR,ebs as aS,l6s as aT,s6s as aU,n7s as aV,lPt as aW,F8s as aX,xbs as aY,mbs as aZ,fbs as a_,Q6s as aa,B8s as ab,F5 as ac,P as ad,hxs as ae,E6s as af,p7s as ag,k6s as ah,E7s as ai,J8s as aj,B7s as ak,Hfs as al,Vnn as am,ows as an,Qfs as ao,Ufs as ap,rws as aq,w7s as ar,vp as as,wke as at,h8t as au,O9s as av,qbs as aw,ji as ax,i6s as ay,n6s as az,P4s as b,Jys as b$,Xys as b0,w6s as b1,Oi as b2,$zn as b3,j6s as b4,Z6o as b5,L7s as b6,Iji as b7,URt as b8,K6s as b9,jxs as bA,$xs as bB,kxs as bC,RI as bD,X6s as bE,bys as bF,Cys as bG,wys as bH,fys as bI,gys as bJ,vys as bK,Y6s as bL,xys as bM,yys as bN,Sys as bO,ks as bP,Cbs as bQ,G6s as bR,Lys as bS,Dys as bT,Q8s as bU,y6s as bV,N8s as bW,Oys as bX,Mys as bY,Gys as bZ,Yys as b_,q6s as ba,Z6s as bb,c7s as bc,Dn as bd,Sa as be,znn as bf,_5 as bg,ews as bh,h4s as bi,b7s as bj,C7s as bk,Abs as bl,vke as bm,wfs as bn,r7s as bo,BBi as bp,NTt as bq,P7s as br,Zfs as bs,Bys as bt,Axs as bu,Exs as bv,SCe as bw,Sxs as bx,F9s as by,r6s as bz,S5s as c,d6s as c$,Zys as c0,kys as c1,jys as c2,S6s as c3,$6s as c4,$ys as c5,Eys as c6,Iys as c7,Kys as c8,qys as c9,$8s as cA,X9s as cB,ct as cC,Q9s as cD,Gi as cE,w8s as cF,G9s as cG,J9s as cH,C8s as cI,d8s as cJ,u8s as cK,p8s as cL,c8s as cM,h8s as cN,l8s as cO,v5s as cP,Lxs as cQ,e6s as cR,t6s as cS,R9s as cT,Tys as cU,K8s as cV,_8s as cW,p6s as cX,g6s as cY,h6s as cZ,fxs as c_,E8s as ca,j8s as cb,q9s as cc,i8s as cd,K9s as ce,_9s as cf,U9s as cg,v8s as ch,e8s as ci,f8s as cj,x8s as ck,g8s as cl,W9s as cm,Z9s as cn,T8s as co,I8s as cp,D8s as cq,A8s as cr,t8s as cs,k8s as ct,S8s as cu,n8s as cv,m8s as cw,V9s as cx,L8s as cy,Y9s as cz,Lke as d,Pys as d$,u6s as d0,gve as d1,f6s as d2,b6s as d3,tus as d4,hps as d5,R4e as d6,Y8s as d7,G8s as d8,q8s as d9,Dxs as dA,Txs as dB,Hbs as dC,zbs as dD,Rbs as dE,jbs as dF,Nbs as dG,wbs as dH,hpa as dI,L9s as dJ,M9s as dK,N9s as dL,z9s as dM,P8s as dN,Xis as dO,wxs as dP,z8s as dQ,R8s as dR,gws as dS,lGi as dT,o6s as dU,Dli as dV,$S as dW,CJt as dX,Z8s as dY,U3o as dZ,O8s as d_,W8s as da,d7s as db,SYt as dc,Obs as dd,Mbs as de,Bbs as df,Fbs as dg,Pbs as dh,V8s as di,Lbs as dj,Tbs as dk,Vbs as dl,kbs as dm,Ebs as dn,Ixs as dp,m6s as dq,lr as dr,bUr as ds,$bs as dt,Hnn as du,vbs as dv,Dbs as dw,Sbs as dx,Ibs as dy,_bs as dz,MMt as e,I9s as e0,Gbs as e1,Ybs as e2,Qbs as e3,Tfs as e4,Lfs as e5,fR as e6,Jfs as e7,a4s as e8,unn as e9,m4s as ea,Uxe as eb,Mtn as ec,Ptn as ed,bxs as ee,Efs as ef,Dfs as eg,Ifs as eh,ffs as ei,kfs as ej,cnn as ek,iws as el,mws as f,hws as g,Ht as h,sws as i,_0 as j,uws as k,dws as l,A as m,cws as n,o4s as o,HD as p,l7s as q,STi as r,aws as s,Z6 as t,jke as u,X8s as v,Wnn as w,lws as x,n4s as y,Er as z};