@zeniai/web-app-ui 5.3.89-dev → 5.3.89-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-Dd-9mkbJ.js → AccountMappingScreen-C32R4V-t.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-CwU0IpO-.js → ActualMatchingMatchDetailScreen-BfDBt1b3.js} +1 -1
  3. package/dist/assets/{AddressRoutes-DkKEg9nJ.js → AddressRoutes-BbSeFhst.js} +1 -1
  4. package/dist/assets/{AddressScreen-NLlV-cSD.js → AddressScreen-Dd1i_Yj_.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-DUNS2Dhv.js → AiCfoScreen-XYJ57z43.js} +1 -1
  6. package/dist/assets/{AppDrawer-t7pXwFsy.js → AppDrawer-D8SXDHW7.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-DOtDJlUD.js → BillPayApprovalRoutes-zr29vPro.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-b2SMWo4z.js → BillPayRoutes-2ylDEsNc.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-BMbooZ9c.js → BusinessVerificationPageScreen-DsSi6_Nq.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-lmBrsGeg.js → CardsAiCfoScreen-qrw2ncr4.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-C9jB_BU5.js → ChargeCardRoutes-s0ULni-Q.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-BslihQWZ.js → CompanyPassportScreen-BKeu-T6z.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-DS5u9yD-.js → ConnectionAuthScreen-cZftaA6r.js} +1 -1
  14. package/dist/assets/{CustomerOnboardingAuthScreen-C7dVHXwO.js → CustomerOnboardingAuthScreen-DxeH12hm.js} +1 -1
  15. package/dist/assets/{CustomerOnboardingRoutes-DmCDi77C.js → CustomerOnboardingRoutes-PXrLKfWK.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-CQAZF0k8.js → DashboardRoutes-C2xiGr8h.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-DSgsISV-.js → DefaultTenantHome-Ce1ikxeJ.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-B1jSUQp2.js → DomesticWireDetailScreen-D5Ig-9_3.js} +1 -1
  19. package/dist/assets/{DrawerScreen-CLNuMP4c.js → DrawerScreen-CKrtwYow.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-Zk-9UMwO.js → EntityDetailRoutes-PxoQHQJr.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-DLqUzGyz.js → ExpenseAutomationRoutes-zF7khL9s.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-D1TH0B4H.js → FeaturePreviewScreen-C9zEjf5r.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-CvYzzQt6.js → HubSpotOAuthCallbackScreen-j43aqaSC.js} +1 -1
  24. package/dist/assets/{InvoicingRoutes-DFf9_vlp.js → InvoicingRoutes-B2u_Ezts.js} +1 -1
  25. package/dist/assets/{MagicLinkRoutes-DPRx78HI.js → MagicLinkRoutes-B0Iu7C-o.js} +1 -1
  26. package/dist/assets/{MagicLinkSignInScreen-Bsg6zj8U.js → MagicLinkSignInScreen-B26pRkoP.js} +1 -1
  27. package/dist/assets/{MobileAppDrawer-C1CX08Nz.js → MobileAppDrawer-CNBabrsi.js} +1 -1
  28. package/dist/assets/{NotFoundScreen-DUP1I-Dh.js → NotFoundScreen-B4NyMy_S.js} +1 -1
  29. package/dist/assets/{NotificationRoutes-b-zZEsBw.js → NotificationRoutes-DBAGS4Eu.js} +1 -1
  30. package/dist/assets/{OAuthConsentScreen-DMeszvcw.js → OAuthConsentScreen-DraMDQV_.js} +1 -1
  31. package/dist/assets/{PandLWithForecastRoutes-Dh0lrJ4b.js → PandLWithForecastRoutes-ITnV7ceC.js} +1 -1
  32. package/dist/assets/{PaymentLinkScreen-DZH3o71q.js → PaymentLinkScreen-cJvP2x_9.js} +1 -1
  33. package/dist/assets/{PeopleRoutes-BXk_l6Ng.js → PeopleRoutes-BTqFtHBk.js} +1 -1
  34. package/dist/assets/{PerformanceRoutes-CuBRzzvZ.js → PerformanceRoutes-DjnMWXrx.js} +1 -1
  35. package/dist/assets/{QBOConnectionScreen-MUHRwejb.js → QBOConnectionScreen-BbV3RbkD.js} +1 -1
  36. package/dist/assets/{ReimbursementApprovalRoutes-BFxtthm2.js → ReimbursementApprovalRoutes-CpfuBtAn.js} +1 -1
  37. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-BXCFB-xI.js → ReimbursementApprovalRuleDetailScreen-sB7-VE3y.js} +1 -1
  38. package/dist/assets/{ReimbursementRoutes-AomTv5z8.js → ReimbursementRoutes-BfSW4Zwf.js} +1 -1
  39. package/dist/assets/{ReportsRoutes-CUQDlOh2.js → ReportsRoutes-9ICfaTdi.js} +1 -1
  40. package/dist/assets/{RewardsRoutes-D6jHcv01.js → RewardsRoutes-Cm_qlxdV.js} +1 -1
  41. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-B2Zz8Q8W.js → ScheduleDetailsPrepaidExpensesScreen-DaK3iJgC.js} +1 -1
  42. package/dist/assets/{ScreenRoutes-BBi6T6TG.js → ScreenRoutes-CRpMT6hK.js} +2 -2
  43. package/dist/assets/{SettingsRoutes-CIKlS7WR.js → SettingsRoutes-0GsgXhPW.js} +1 -1
  44. package/dist/assets/{SetupPagesScreen-Drwip476.js → SetupPagesScreen-DSYveOUd.js} +1 -1
  45. package/dist/assets/{SignInScreen-B2i0uaaw.js → SignInScreen-B1h6fDcZ.js} +1 -1
  46. package/dist/assets/{SignOutScreen-yXoT_vjf.js → SignOutScreen-DpVEH4Us.js} +1 -1
  47. package/dist/assets/{TaskListScreen-BwBbID9Z.js → TaskListScreen-DZ8NcLOm.js} +1 -1
  48. package/dist/assets/{TaskRoutes-DkYij_G4.js → TaskRoutes-C6Z-Z4PQ.js} +1 -1
  49. package/dist/assets/{TransactionDetailRoutes-DmTwl-Oi.js → TransactionDetailRoutes-D2oScn3-.js} +1 -1
  50. package/dist/assets/{TransactionDetailScreen-R1s2Fj0b.js → TransactionDetailScreen-BQOv8pbA.js} +1 -1
  51. package/dist/assets/{TransactionListRoutes-Cc6hdxdW.js → TransactionListRoutes-CouRIsr3.js} +1 -1
  52. package/dist/assets/{TreasuryRoutes-9B6vJLbh.js → TreasuryRoutes-B8Za6S7z.js} +1 -1
  53. package/dist/assets/{VendorsRoutes-m5oaZn9_.js → VendorsRoutes-X2W_ONNJ.js} +1 -1
  54. package/dist/assets/{WiseConfirmationScreen-BEME5pnv.js → WiseConfirmationScreen-yMppxtyO.js} +1 -1
  55. package/dist/assets/{ZeniAccountRoutes-CbOETsfG.js → ZeniAccountRoutes-DX3-i7lA.js} +1 -1
  56. package/dist/assets/{ZeniAccountStatementScreen-CyFrpw1Y.js → ZeniAccountStatementScreen-CTP8GFd3.js} +1 -1
  57. package/dist/assets/{analyticsHelper-BCFnQWXb.js → analyticsHelper-CDgUnuv6.js} +1 -1
  58. package/dist/assets/{getLocaleForTenant-Bn-3jfmk.js → getLocaleForTenant-9I3ntams.js} +1 -1
  59. package/dist/assets/{index-DtDfc4Ly.js → index-CrLif5Ra.js} +5 -5
  60. package/dist/assets/{routePaths-CWDMrD59.js → routePaths-C6wUCH0u.js} +1 -1
  61. package/dist/assets/{useActualMatchingMatchDetail-B3AFBcfZ.js → useActualMatchingMatchDetail-QFeJZw_O.js} +1 -1
  62. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DOb2Yrjn.js → useAiCfoDashboardSuggestedQuestionsChips-CNI9rS4x.js} +1 -1
  63. package/dist/assets/{useAskAiCfoHostNavButtonProps-BH1yPMVh.js → useAskAiCfoHostNavButtonProps-BJW8bIRv.js} +1 -1
  64. package/dist/assets/{useChargeCardPusherEvents-BzP1s6ty.js → useChargeCardPusherEvents-DKJC-IyC.js} +1 -1
  65. package/dist/assets/{useEmailConnectResultRefresh-6HOW2gqB.js → useEmailConnectResultRefresh-BQ1YSf32.js} +1 -1
  66. package/dist/assets/{useInitialThreadRequest-B_GduCEN.js → useInitialThreadRequest-BkLxr48P.js} +1 -1
  67. package/dist/assets/{useTaskManagerAccess-DgmndGpu.js → useTaskManagerAccess-BuXkSjxQ.js} +1 -1
  68. package/dist/assets/{useTaskManagerPusherEvents-BgO_yohE.js → useTaskManagerPusherEvents-ZKSALyII.js} +1 -1
  69. package/dist/assets/{withTransactionSidePanel-CRkrcV_c.js → withTransactionSidePanel-BUmyul7m.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-Cc-xO4DM.js","assets/sentry--FQm-CEz.js","assets/core-DO2aQ9sC.js","assets/index-BpSPKksw.js","assets/DefaultTenantHome-DSgsISV-.js","assets/mui-Beesmy34.js","assets/getLocaleForTenant-Bn-3jfmk.js","assets/analytics-CHOlTFyu.js","assets/utils-9X_P6qcc.js","assets/AppDrawer-t7pXwFsy.js","assets/InboxNotificationsProvider-CmAbaz3a.js","assets/useTaskManagerAccess-DgmndGpu.js","assets/expenseAutomationHelper-Box0P8C-.js","assets/ScreenRoutes-BBi6T6TG.js","assets/analyticsHelper-BCFnQWXb.js","assets/ConnectionAuthScreen-DS5u9yD-.js","assets/AccountMappingScreen-Dd-9mkbJ.js","assets/MobileAppDrawer-C1CX08Nz.js","assets/QBOConnectionScreen-MUHRwejb.js","assets/empty-BEdZehso.js","assets/index-BIf8ZdZy.js","assets/url-CYqslED7.js","assets/index-D8IL39lv.js","assets/decodeURIComponentSafe-BGunfdyb.js","assets/accountMappingHelper-D7kdjZSp.js","assets/SignInScreen-B2i0uaaw.js","assets/useDeviceId-04DUxcYB.js","assets/MagicLinkSignInScreen-Bsg6zj8U.js","assets/NotFoundScreen-DUP1I-Dh.js","assets/MagicLinkRoutes-DPRx78HI.js","assets/PaymentLinkScreen-DZH3o71q.js","assets/WiseConfirmationScreen-BEME5pnv.js","assets/HubSpotOAuthCallbackScreen-CvYzzQt6.js","assets/CustomerOnboardingAuthScreen-C7dVHXwO.js","assets/SignOutScreen-yXoT_vjf.js","assets/OAuthConsentScreen-DMeszvcw.js"])))=>i.map(i=>d[i]);
2
- import{R as B,b as x5e,a as m,r as Kh,g as N8t,p as lre,d as Fke,f as lin,s as Rke,i as cin,w as din,j as uin,S as pin,k as hin,l as min,m as gin,n as fin,o as xin,q as yin}from"./sentry--FQm-CEz.js";import{L as bin,C as zke,_ as Fp,a as win,b as lz,c as Cin,d as ree,e as cz,u as _8t,T as vin,f as Ain,g as Sin,h as kin,i as jin,k as V8t,l as $in,m as Ein,j as en}from"./liveblocks-DCIY2V5W.js";import{f as H8t,r as Aa,P as Dl,R as Iin,O as Din,N as U8t,u as Sp,g as Lg,h as aee,i as W8t,j as Rr,m as _9e,s as Zq,k as Q8t,l as Tin,n as Lin,o as R1,p as Bin,B as Pin}from"./core-DO2aQ9sC.js";import{L as Nke,bl as Min,bm as Oin,bn as dz,bo as Fin,bp as Rin,bq as ps,br as Yt,bs as UD,bt as Y8t,bu as P3,bv as zin,bw as ty,bx as Ss,by as Nin,bz as _in,bA as Vin,bB as L1,bC as Ip,bD as KF,bE as u9,bF as fn,bG as G8t,bH as S1,bI as va,bJ as _I,bK as q8t,bL as K8t,bM as V9e,bN as A5,bO as Pu,bP as w7,bQ as Hin,bR as wc,bS as Uin,bT as WD,bU as Win,bV as Qin,bW as Jq,bX as Yin,bY as Gin,bZ as Xq,b_ as qin,b$ as Kin,c0 as p9,c1 as _ke,c2 as Zin,c3 as Jin,c4 as Xin,c5 as eon,c6 as ton,c7 as non,c8 as ion,c9 as C7,ca as see,cb as oon,cc as lee,cd as cee,ce as dee,cf as H9e,cg as fA,ch as xA,ci as uz,cj as VI,ck as HI,cl as yA,cm as uee,cn as Vv,co as ron,cp as Vke,cq as aon,cr as son,cs as lon,ct as con,cu as Z8t,cv as don,cw as uon,cx as q8,cy as Hke,cz as pon,cA as hon,cB as mon,cC as JA,cD as XA,cE as J8t,cF as X8t,cG as U9e,cH as gon,cI as ewt,cJ as fon,cK as eK,cL as twt,cM as xon,cN as nwt,cO as yon,cP as kM,cQ as bon,cR as won,cS as Uke,cT as Con,cU as W9e,cV as Q9e,cW as von,cX as Aon,cY as Son,cZ as kon,c_ as e_,c$ as UI,d0 as t_,d1 as jon,d2 as $on,d3 as iwt,d4 as Eon,d5 as Ion,d6 as Don,d7 as Ton,d8 as Lon,d9 as owt,da as Wke,db as Bon,dc as Y9e,dd as Pon,de as Mon,df as Oon,dg as rwt,dh as qd,di as Bl,dj as pee,dk as Fon,dl as Ron,dm as f1,dn as awt,dp as zon,dq as ZF,dr as Hv,ds as Ts,dt as Qke,du as Non,dv as _on,dw as Von,dx as swt,dy as G9e,dz as n_,dA as lwt,dB as Hon,dC as Uon,dD as Won,dE as Qon,dF as Yon,dG as sg,dH as Gon,dI as qon,dJ as Kon,dK as Zon,dL as i_,dM as bA,dN as hee,dO as Jon,dP as Xon,dQ as eS,dR as k1,dS as cwt,dT as dwt,dU as ern,dV as uwt,dW as trn,dX as nrn,dY as irn,dZ as orn,d_ as QD,d$ as q9e,e0 as K9e,e1 as rrn,e2 as Z9e,e3 as pwt,e4 as hwt,e5 as mwt,e6 as gwt,e7 as fwt,e8 as xwt,e9 as arn,_ as bd,ea as YD,eb as srn,ec as Yke,ed as mee,ee as lrn,ef as crn,eg as ywt,eh as drn,ei as $O,ej as s0,ek as v7,el as bwt,em as wwt,en as urn,eo as Cwt,ep as y5e,eq as prn,er as yG,es as hrn,et as mrn,eu as grn,ev as frn,ew as xrn,ex as vwt,ey as Awt,ez as yrn,eA as brn,eB as Swt,eC as EO,eD as IO,eE as kwt,eF as wrn,eG as Crn,eH as J9e,eI as vrn,eJ as Arn,eK as Srn,eL as X9e,eM as jwt,eN as $wt,eO as e8e,eP as GD,eQ as gee,eR as t8e,eS as n8e,eT as i8e,eU as o8e,eV as krn,eW as jrn,eX as Ewt,eY as Gke,eZ as $rn,e_ as Ern,e$ as j1,f0 as Irn,f1 as fee,f2 as Iwt,f3 as Dwt,f4 as Drn,f5 as r8e,f6 as a8e,f7 as Trn,f8 as Lrn,f9 as Brn,fa as Prn,fb as Mrn,fc as Orn,fd as Cg,fe as qke,ff as Twt,fg as Frn,fh as Rrn,fi as zrn,fj as Lwt,fk as Bwt,fl as Pwt,fm as Mwt,fn as Owt,fo as Fwt,fp as Nrn,fq as WI,fr as _rn,fs as Vrn,ft as Hrn,fu as Urn,fv as Rwt,fw as zwt,fx as Kke,fy as Zke,fz as Wrn,fA as Qrn,fB as Jke,fC as Xke,fD as Yrn,fE as Grn,fF as b5e,fG as qrn,v as Krn,fH as xee,fI as Dp,fJ as Nwt,fK as _wt,fL as Zrn,fM as Jrn,fN as eje,fO as Xrn,fP as ean,fQ as tan,fR as nan,fS as ian,fT as oan,fU as ran,fV as aan,fW as san,fX as lan,fY as can,fZ as dan,f_ as uan,f$ as pan,g0 as han,g1 as man,g2 as gan,g3 as fan,g4 as xan,g5 as tje,g6 as yan,g7 as ban,g8 as wan,g9 as Can,ga as van,gb as Vwt,gc as yee,gd as s8e,ge as Hwt,gf as Aan,gg as San,gh as kan,gi as Uwt,gj as nje,gk as Wwt,gl as Qwt,gm as jan,gn as Ywt,go as Gwt,gp as $an,gq as Ean,gr as w5e,gs as Ian,gt as DO,gu as Dan,gv as Tan,gw as Lan,gx as Ban,gy as Pan,gz as Man,gA as Oan,gB as Fan,gC as Ran,gD as zan,gE as Nan,gF as _an,gG as qwt,gH as Van,gI as Han,gJ as Uan,gK as ije,gL as Wan,gM as Qan,gN as Yan,gO as Gan,gP as qan,gQ as Kan,gR as Zan,gS as Kwt,gT as Zwt,gU as Jan,gV as Jwt,gW as Xan,gX as esn,gY as C5e,gZ as tsn,g_ as nsn,g$ as isn,h0 as osn,h1 as rsn,h2 as asn,h3 as oje,h4 as ssn,h5 as lsn,h6 as csn}from"./zeni-epic-state-Cc-xO4DM.js";import{j as Lo,c as Ee,k as di,a as rje,b as Xwt,C as eCt,T as dsn,M as usn,n as a,u as Pe,d as li,e as tCt,G as bee,A as aje,R as psn,D as Vc,F as hsn,f as tK,g as v5e,P as M3,h as msn,S as wee,i as gsn,l as fsn,m as JF,o as xsn,s as tS,p as ysn}from"./mui-Beesmy34.js";import{r as bsn,m as eg}from"./analytics-CHOlTFyu.js";import{u as P1}from"./plaid-IFb-JOAW.js";import{D as l8e,H as Cee,g as wsn,O as Csn,S as vsn,T as Asn,u as c8e,a as d8e,b as Ssn}from"./dnd-C6oCteDZ.js";import{l as u8e}from"./stripe-cKAAJElX.js";import{L as iI}from"./lottie-BsiUbd07.js";import{r as Hc}from"./lexical-Dahvp5A4.js";import{D as A5e,P as S5e,_ as nCt,a as iCt}from"./pdf-Bi1FWCM7.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 oCt,P as ksn,Q as jsn,S as vee,U as $sn,V as p8e,W as Esn,Z as Isn,_ as Dsn,d as Tsn}from"./recharts-BFgvJAkx.js";import{r as Lsn,n as sje}from"./utils-9X_P6qcc.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]="510a7233-731d-438e-a531-cfe76d9177f3",e._sentryDebugIdIdentifier="sentry-dbid-510a7233-731d-438e-a531-cfe76d9177f3")}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 lje,o_={},Bsn=(function(){if(lje)return o_;lje=1;var e=H8t();return o_.createRoot=e.createRoot,o_.hydrateRoot=e.hydrateRoot,o_})(),Rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof x5e<"u"?x5e:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cje,dje,uje={exports:{}},tL={};function rCt(){return dje||(dje=1,uje.exports=(function(){if(cje)return tL;cje=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})()),uje.exports}var t=rCt();const Psn=m.createContext(null),cre={didCatch:!1,error:null};let Msn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cre}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(cre)}}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(cre))}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(Psn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var pje,hje,mje,dre,gje,fje,xje,yje,bje,ure={exports:{}};function Osn(){return pje||(pje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(ure.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,We,Qe,Mt,Kt;switch(Qe=pe*(1-X),Mt=pe*(1-(We=6*G-(Oe=Math.floor(6*G)))*X),Kt=pe*(1-(1-We)*X),Oe%6){case 0:xe=pe,ve=Kt,$e=Qe;break;case 1:xe=Mt,ve=pe,$e=Qe;break;case 2:xe=Qe,ve=pe,$e=Kt;break;case 3:xe=Qe,ve=Mt,$e=pe;break;case 4:xe=Kt,ve=Qe,$e=pe;break;case 5:xe=pe,ve=Qe,$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,We=ve===0?0:Oe/ve,Qe=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,We,Qe]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),_(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(ct){G({data:ct})}},$e={postMessage:function(ct){ve.onmessage({data:ct})}};function Oe(ct){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",ct.toString()],{type:"text/javascript"}),It=URL.createObjectURL(Ct);return new Worker(It)}return G=ct,ve}function We(){X||(X=Oe((function(ct){function Ct(){function qt(Nt,gn){var gt,at,Re,dt,bt,mi,qo=Nt.length;for(at=0;at<qo;at+=1)if("ks"in(gt=Nt[at])&&!gt.completed){if(gt.completed=!0,gt.hasMask){var To=gt.masksProperties;for(dt=To.length,Re=0;Re<dt;Re+=1)if(To[Re].pt.k.i)Ge(To[Re].pt.k);else for(mi=To[Re].pt.k.length,bt=0;bt<mi;bt+=1)To[Re].pt.k[bt].s&&Ge(To[Re].pt.k[bt].s[0]),To[Re].pt.k[bt].e&&Ge(To[Re].pt.k[bt].e[0])}gt.ty===0?(gt.layers=He(gt.refId,gn),qt(gt.layers,gn)):gt.ty===4?Ne(gt.shapes):gt.ty===5&&Go(gt)}}function Jt(Nt,gn){if(Nt){var gt=0,at=Nt.length;for(gt=0;gt<at;gt+=1)Nt[gt].t===1&&(Nt[gt].data.layers=He(Nt[gt].data.refId,gn),qt(Nt[gt].data.layers,gn))}}function Xe(Nt,gn){for(var gt=0,at=gn.length;gt<at;){if(gn[gt].id===Nt)return gn[gt];gt+=1}return null}function He(Nt,gn){var gt=Xe(Nt,gn);return gt?gt.layers.__used?JSON.parse(JSON.stringify(gt.layers)):(gt.layers.__used=!0,gt.layers):null}function Ne(Nt){var gn,gt,at;for(gn=Nt.length-1;gn>=0;gn-=1)if(Nt[gn].ty==="sh")if(Nt[gn].ks.k.i)Ge(Nt[gn].ks.k);else for(at=Nt[gn].ks.k.length,gt=0;gt<at;gt+=1)Nt[gn].ks.k[gt].s&&Ge(Nt[gn].ks.k[gt].s[0]),Nt[gn].ks.k[gt].e&&Ge(Nt[gn].ks.k[gt].e[0]);else Nt[gn].ty==="gr"&&Ne(Nt[gn].it)}function Ge(Nt){var gn,gt=Nt.i.length;for(gn=0;gn<gt;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 mt(Nt,gn){var gt=gn?gn.split("."):[100,100,100];return Nt[0]>gt[0]||!(gt[0]>Nt[0])&&(Nt[1]>gt[1]||!(gt[1]>Nt[1])&&(Nt[2]>gt[2]||!(gt[2]>Nt[2])&&null))}var rn=(function(){var Nt=[4,4,14];function gn(at){var Re=at.t.d;at.t.d={k:[{s:Re,t:0}]}}function gt(at){var Re,dt=at.length;for(Re=0;Re<dt;Re+=1)at[Re].ty===5&&gn(at[Re])}return function(at){if(mt(Nt,at.v)&&(gt(at.layers),at.assets)){var Re,dt=at.assets.length;for(Re=0;Re<dt;Re+=1)at.assets[Re].layers&&gt(at.assets[Re].layers)}}})(),ln=(function(){var Nt=[4,7,99];return function(gn){if(gn.chars&&!mt(Nt,gn.v)){var gt,at=gn.chars.length;for(gt=0;gt<at;gt+=1){var Re=gn.chars[gt];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[gt].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(at){var Re=at.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 gt(at){var Re,dt=at.length;for(Re=0;Re<dt;Re+=1)at[Re].ty===5&&gn(at[Re])}return function(at){if(mt(Nt,at.v)&&(gt(at.layers),at.assets)){var Re,dt=at.assets.length;for(Re=0;Re<dt;Re+=1)at.assets[Re].layers&&gt(at.assets[Re].layers)}}})(),co=(function(){var Nt=[4,1,9];function gn(at){var Re,dt,bt,mi=at.length;for(Re=0;Re<mi;Re+=1)if(at[Re].ty==="gr")gn(at[Re].it);else if(at[Re].ty==="fl"||at[Re].ty==="st")if(at[Re].c.k&&at[Re].c.k[0].i)for(bt=at[Re].c.k.length,dt=0;dt<bt;dt+=1)at[Re].c.k[dt].s&&(at[Re].c.k[dt].s[0]/=255,at[Re].c.k[dt].s[1]/=255,at[Re].c.k[dt].s[2]/=255,at[Re].c.k[dt].s[3]/=255),at[Re].c.k[dt].e&&(at[Re].c.k[dt].e[0]/=255,at[Re].c.k[dt].e[1]/=255,at[Re].c.k[dt].e[2]/=255,at[Re].c.k[dt].e[3]/=255);else at[Re].c.k[0]/=255,at[Re].c.k[1]/=255,at[Re].c.k[2]/=255,at[Re].c.k[3]/=255}function gt(at){var Re,dt=at.length;for(Re=0;Re<dt;Re+=1)at[Re].ty===4&&gn(at[Re].shapes)}return function(at){if(mt(Nt,at.v)&&(gt(at.layers),at.assets)){var Re,dt=at.assets.length;for(Re=0;Re<dt;Re+=1)at.assets[Re].layers&&gt(at.assets[Re].layers)}}})(),So=(function(){var Nt=[4,4,18];function gn(at){var Re,dt,bt;for(Re=at.length-1;Re>=0;Re-=1)if(at[Re].ty==="sh")if(at[Re].ks.k.i)at[Re].ks.k.c=at[Re].closed;else for(bt=at[Re].ks.k.length,dt=0;dt<bt;dt+=1)at[Re].ks.k[dt].s&&(at[Re].ks.k[dt].s[0].c=at[Re].closed),at[Re].ks.k[dt].e&&(at[Re].ks.k[dt].e[0].c=at[Re].closed);else at[Re].ty==="gr"&&gn(at[Re].it)}function gt(at){var Re,dt,bt,mi,qo,To,ya=at.length;for(dt=0;dt<ya;dt+=1){if((Re=at[dt]).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(at){if(mt(Nt,at.v)&&(gt(at.layers),at.assets)){var Re,dt=at.assets.length;for(Re=0;Re<dt;Re+=1)at.assets[Re].layers&&gt(at.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 He=Xe.getResponseHeader("content-type");return He&&Xe.responseType==="json"&&He.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,He,Ne,Ge){var mt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)mt=qt(rn),Ne(mt);else try{mt=qt(rn),Ne(mt)}catch(ln){Ge&&Ge(ln)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),He+"/"+Xe,!0)}rn.send()}return{load:Jt}})()),ct.data.type==="loadAnimation")$e.assetLoader.load(ct.data.path,ct.data.fullPath,(function(qt){$e.dataManager.completeData(qt),$e.postMessage({id:ct.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ct.data.id,status:"error"})}));else if(ct.data.type==="complete"){var It=ct.data.animation;$e.dataManager.completeData(It),$e.postMessage({id:ct.data.id,payload:It,status:"success"})}else ct.data.type==="loadData"&&$e.assetLoader.load(ct.data.path,ct.data.fullPath,(function(qt){$e.postMessage({id:ct.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ct.data.id,status:"error"})}))})),X.onmessage=function(ct){var Ct=ct.data,It=Ct.id,qt=xe[It];xe[It]=null,Ct.status==="success"?qt.onComplete(Ct.payload):qt.onError&&qt.onError()})}function Qe(ct,Ct){var It="processId_"+(pe+=1);return xe[It]={onComplete:ct,onError:Ct},It}function Mt(ct,Ct,It){We();var qt=Qe(Ct,It);X.postMessage({type:"loadAnimation",path:ct,fullPath:window.location.origin+window.location.pathname,id:qt})}function Kt(ct,Ct,It){We();var qt=Qe(Ct,It);X.postMessage({type:"loadData",path:ct,fullPath:window.location.origin+window.location.pathname,id:qt})}function et(ct,Ct,It){We();var qt=Qe(Ct,It);X.postMessage({type:"complete",animation:ct,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 He=Xe.getContext("2d");return He.fillStyle="rgba(0,0,0,0)",He.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,He,Ne){var Ge="";if(Xe.e)Ge=Xe.p;else if(He){var mt=Xe.p;mt.indexOf("images/")!==-1&&(mt=mt.split("/")[1]),Ge=He+mt}else Ge=Ne,Ge+=Xe.u?Xe.u:"",Ge+=Xe.p;return Ge}function ve(Xe){var He=0,Ne=setInterval((function(){(Xe.getBBox().width||He>500)&&(this._imageLoaded(),clearInterval(Ne)),He+=1}).bind(this),50)}function $e(Xe){var He=xe(Xe,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){Ge.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",He),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var Ge={img:Ne,assetData:Xe};return Ge}function Oe(Xe){var He=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){Ge.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=He;var Ge={img:Ne,assetData:Xe};return Ge}function We(Xe){var He={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(Ge){He.img=Ge,this._footageLoaded()}).bind(this),(function(){He.img={},this._footageLoaded()}).bind(this)),He}function Qe(Xe,He){this.imagesLoadedCb=He;var Ne,Ge=Xe.length;for(Ne=0;Ne<Ge;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 He=0,Ne=this.images.length;He<Ne;){if(this.images[He].assetData===Xe)return this.images[He].img;He+=1}return null}function ct(){this.imagesLoadedCb=null,this.images.length=0}function Ct(){return this.totalImages===this.loadedAssets}function It(){return this.totalFootages===this.loadedFootagesCount}function qt(Xe,He){Xe==="svg"?(this._elementHelper=He,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=We.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Jt.prototype={loadAssets:Qe,setAssetsPath:Kt,setPath:Mt,loadedImages:Ct,loadedFootages:It,destroy:ct,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-Cc-xO4DM.js","assets/sentry--FQm-CEz.js","assets/core-DO2aQ9sC.js","assets/index-BpSPKksw.js","assets/DefaultTenantHome-Ce1ikxeJ.js","assets/mui-Beesmy34.js","assets/getLocaleForTenant-9I3ntams.js","assets/analytics-CHOlTFyu.js","assets/utils-9X_P6qcc.js","assets/AppDrawer-D8SXDHW7.js","assets/InboxNotificationsProvider-CmAbaz3a.js","assets/useTaskManagerAccess-BuXkSjxQ.js","assets/expenseAutomationHelper-Box0P8C-.js","assets/ScreenRoutes-CRpMT6hK.js","assets/analyticsHelper-CDgUnuv6.js","assets/ConnectionAuthScreen-cZftaA6r.js","assets/AccountMappingScreen-C32R4V-t.js","assets/MobileAppDrawer-CNBabrsi.js","assets/QBOConnectionScreen-BbV3RbkD.js","assets/empty-BEdZehso.js","assets/index-BIf8ZdZy.js","assets/url-CYqslED7.js","assets/index-D8IL39lv.js","assets/decodeURIComponentSafe-BGunfdyb.js","assets/accountMappingHelper-D7kdjZSp.js","assets/SignInScreen-B1h6fDcZ.js","assets/useDeviceId-04DUxcYB.js","assets/MagicLinkSignInScreen-B26pRkoP.js","assets/NotFoundScreen-B4NyMy_S.js","assets/MagicLinkRoutes-B0Iu7C-o.js","assets/PaymentLinkScreen-cJvP2x_9.js","assets/WiseConfirmationScreen-yMppxtyO.js","assets/HubSpotOAuthCallbackScreen-j43aqaSC.js","assets/CustomerOnboardingAuthScreen-DxeH12hm.js","assets/SignOutScreen-DpVEH4Us.js","assets/OAuthConsentScreen-DraMDQV_.js"])))=>i.map(i=>d[i]);
2
+ import{R as B,b as x5e,a as m,r as Kh,g as N8t,p as lre,d as Fke,f as lin,s as Rke,i as cin,w as din,j as uin,S as pin,k as hin,l as min,m as gin,n as fin,o as xin,q as yin}from"./sentry--FQm-CEz.js";import{L as bin,C as zke,_ as Fp,a as win,b as lz,c as Cin,d as ree,e as cz,u as _8t,T as vin,f as Ain,g as Sin,h as kin,i as jin,k as V8t,l as $in,m as Ein,j as en}from"./liveblocks-DCIY2V5W.js";import{f as H8t,r as Aa,P as Dl,R as Iin,O as Din,N as U8t,u as Sp,g as Lg,h as aee,i as W8t,j as Rr,m as _9e,s as Zq,k as Q8t,l as Tin,n as Lin,o as R1,p as Bin,B as Pin}from"./core-DO2aQ9sC.js";import{L as Nke,bl as Min,bm as Oin,bn as dz,bo as Fin,bp as Rin,bq as ps,br as Yt,bs as UD,bt as Y8t,bu as P3,bv as zin,bw as ty,bx as Ss,by as Nin,bz as _in,bA as Vin,bB as L1,bC as Ip,bD as KF,bE as u9,bF as fn,bG as G8t,bH as S1,bI as va,bJ as _I,bK as q8t,bL as K8t,bM as V9e,bN as A5,bO as Pu,bP as w7,bQ as Hin,bR as wc,bS as Uin,bT as WD,bU as Win,bV as Qin,bW as Jq,bX as Yin,bY as Gin,bZ as Xq,b_ as qin,b$ as Kin,c0 as p9,c1 as _ke,c2 as Zin,c3 as Jin,c4 as Xin,c5 as eon,c6 as ton,c7 as non,c8 as ion,c9 as C7,ca as see,cb as oon,cc as lee,cd as cee,ce as dee,cf as H9e,cg as fA,ch as xA,ci as uz,cj as VI,ck as HI,cl as yA,cm as uee,cn as Vv,co as ron,cp as Vke,cq as aon,cr as son,cs as lon,ct as con,cu as Z8t,cv as don,cw as uon,cx as q8,cy as Hke,cz as pon,cA as hon,cB as mon,cC as JA,cD as XA,cE as J8t,cF as X8t,cG as U9e,cH as gon,cI as ewt,cJ as fon,cK as eK,cL as twt,cM as xon,cN as nwt,cO as yon,cP as kM,cQ as bon,cR as won,cS as Uke,cT as Con,cU as W9e,cV as Q9e,cW as von,cX as Aon,cY as Son,cZ as kon,c_ as e_,c$ as UI,d0 as t_,d1 as jon,d2 as $on,d3 as iwt,d4 as Eon,d5 as Ion,d6 as Don,d7 as Ton,d8 as Lon,d9 as owt,da as Wke,db as Bon,dc as Y9e,dd as Pon,de as Mon,df as Oon,dg as rwt,dh as qd,di as Bl,dj as pee,dk as Fon,dl as Ron,dm as f1,dn as awt,dp as zon,dq as ZF,dr as Hv,ds as Ts,dt as Qke,du as Non,dv as _on,dw as Von,dx as swt,dy as G9e,dz as n_,dA as lwt,dB as Hon,dC as Uon,dD as Won,dE as Qon,dF as Yon,dG as sg,dH as Gon,dI as qon,dJ as Kon,dK as Zon,dL as i_,dM as bA,dN as hee,dO as Jon,dP as Xon,dQ as eS,dR as k1,dS as cwt,dT as dwt,dU as ern,dV as uwt,dW as trn,dX as nrn,dY as irn,dZ as orn,d_ as QD,d$ as q9e,e0 as K9e,e1 as rrn,e2 as Z9e,e3 as pwt,e4 as hwt,e5 as mwt,e6 as gwt,e7 as fwt,e8 as xwt,e9 as arn,_ as bd,ea as YD,eb as srn,ec as Yke,ed as mee,ee as lrn,ef as crn,eg as ywt,eh as drn,ei as $O,ej as s0,ek as v7,el as bwt,em as wwt,en as urn,eo as Cwt,ep as y5e,eq as prn,er as yG,es as hrn,et as mrn,eu as grn,ev as frn,ew as xrn,ex as vwt,ey as Awt,ez as yrn,eA as brn,eB as Swt,eC as EO,eD as IO,eE as kwt,eF as wrn,eG as Crn,eH as J9e,eI as vrn,eJ as Arn,eK as Srn,eL as X9e,eM as jwt,eN as $wt,eO as e8e,eP as GD,eQ as gee,eR as t8e,eS as n8e,eT as i8e,eU as o8e,eV as krn,eW as jrn,eX as Ewt,eY as Gke,eZ as $rn,e_ as Ern,e$ as j1,f0 as Irn,f1 as fee,f2 as Iwt,f3 as Dwt,f4 as Drn,f5 as r8e,f6 as a8e,f7 as Trn,f8 as Lrn,f9 as Brn,fa as Prn,fb as Mrn,fc as Orn,fd as Cg,fe as qke,ff as Twt,fg as Frn,fh as Rrn,fi as zrn,fj as Lwt,fk as Bwt,fl as Pwt,fm as Mwt,fn as Owt,fo as Fwt,fp as Nrn,fq as WI,fr as _rn,fs as Vrn,ft as Hrn,fu as Urn,fv as Rwt,fw as zwt,fx as Kke,fy as Zke,fz as Wrn,fA as Qrn,fB as Jke,fC as Xke,fD as Yrn,fE as Grn,fF as b5e,fG as qrn,v as Krn,fH as xee,fI as Dp,fJ as Nwt,fK as _wt,fL as Zrn,fM as Jrn,fN as eje,fO as Xrn,fP as ean,fQ as tan,fR as nan,fS as ian,fT as oan,fU as ran,fV as aan,fW as san,fX as lan,fY as can,fZ as dan,f_ as uan,f$ as pan,g0 as han,g1 as man,g2 as gan,g3 as fan,g4 as xan,g5 as tje,g6 as yan,g7 as ban,g8 as wan,g9 as Can,ga as van,gb as Vwt,gc as yee,gd as s8e,ge as Hwt,gf as Aan,gg as San,gh as kan,gi as Uwt,gj as nje,gk as Wwt,gl as Qwt,gm as jan,gn as Ywt,go as Gwt,gp as $an,gq as Ean,gr as w5e,gs as Ian,gt as DO,gu as Dan,gv as Tan,gw as Lan,gx as Ban,gy as Pan,gz as Man,gA as Oan,gB as Fan,gC as Ran,gD as zan,gE as Nan,gF as _an,gG as qwt,gH as Van,gI as Han,gJ as Uan,gK as ije,gL as Wan,gM as Qan,gN as Yan,gO as Gan,gP as qan,gQ as Kan,gR as Zan,gS as Kwt,gT as Zwt,gU as Jan,gV as Jwt,gW as Xan,gX as esn,gY as C5e,gZ as tsn,g_ as nsn,g$ as isn,h0 as osn,h1 as rsn,h2 as asn,h3 as oje,h4 as ssn,h5 as lsn,h6 as csn}from"./zeni-epic-state-Cc-xO4DM.js";import{j as Lo,c as Ee,k as di,a as rje,b as Xwt,C as eCt,T as dsn,M as usn,n as a,u as Pe,d as li,e as tCt,G as bee,A as aje,R as psn,D as Vc,F as hsn,f as tK,g as v5e,P as M3,h as msn,S as wee,i as gsn,l as fsn,m as JF,o as xsn,s as tS,p as ysn}from"./mui-Beesmy34.js";import{r as bsn,m as eg}from"./analytics-CHOlTFyu.js";import{u as P1}from"./plaid-IFb-JOAW.js";import{D as l8e,H as Cee,g as wsn,O as Csn,S as vsn,T as Asn,u as c8e,a as d8e,b as Ssn}from"./dnd-C6oCteDZ.js";import{l as u8e}from"./stripe-cKAAJElX.js";import{L as iI}from"./lottie-BsiUbd07.js";import{r as Hc}from"./lexical-Dahvp5A4.js";import{D as A5e,P as S5e,_ as nCt,a as iCt}from"./pdf-Bi1FWCM7.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 oCt,P as ksn,Q as jsn,S as vee,U as $sn,V as p8e,W as Esn,Z as Isn,_ as Dsn,d as Tsn}from"./recharts-BFgvJAkx.js";import{r as Lsn,n as sje}from"./utils-9X_P6qcc.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]="2781f106-0c6d-4a7a-889d-f2a34f33de7c",e._sentryDebugIdIdentifier="sentry-dbid-2781f106-0c6d-4a7a-889d-f2a34f33de7c")}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 lje,o_={},Bsn=(function(){if(lje)return o_;lje=1;var e=H8t();return o_.createRoot=e.createRoot,o_.hydrateRoot=e.hydrateRoot,o_})(),Rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof x5e<"u"?x5e:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cje,dje,uje={exports:{}},tL={};function rCt(){return dje||(dje=1,uje.exports=(function(){if(cje)return tL;cje=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})()),uje.exports}var t=rCt();const Psn=m.createContext(null),cre={didCatch:!1,error:null};let Msn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cre}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(cre)}}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(cre))}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(Psn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var pje,hje,mje,dre,gje,fje,xje,yje,bje,ure={exports:{}};function Osn(){return pje||(pje=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(ure.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,We,Qe,Mt,Kt;switch(Qe=pe*(1-X),Mt=pe*(1-(We=6*G-(Oe=Math.floor(6*G)))*X),Kt=pe*(1-(1-We)*X),Oe%6){case 0:xe=pe,ve=Kt,$e=Qe;break;case 1:xe=Mt,ve=pe,$e=Qe;break;case 2:xe=Qe,ve=pe,$e=Kt;break;case 3:xe=Qe,ve=Mt,$e=pe;break;case 4:xe=Kt,ve=Qe,$e=pe;break;case 5:xe=pe,ve=Qe,$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,We=ve===0?0:Oe/ve,Qe=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,We,Qe]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),_(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(ct){G({data:ct})}},$e={postMessage:function(ct){ve.onmessage({data:ct})}};function Oe(ct){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",ct.toString()],{type:"text/javascript"}),It=URL.createObjectURL(Ct);return new Worker(It)}return G=ct,ve}function We(){X||(X=Oe((function(ct){function Ct(){function qt(Nt,gn){var gt,at,Re,dt,bt,mi,qo=Nt.length;for(at=0;at<qo;at+=1)if("ks"in(gt=Nt[at])&&!gt.completed){if(gt.completed=!0,gt.hasMask){var To=gt.masksProperties;for(dt=To.length,Re=0;Re<dt;Re+=1)if(To[Re].pt.k.i)Ge(To[Re].pt.k);else for(mi=To[Re].pt.k.length,bt=0;bt<mi;bt+=1)To[Re].pt.k[bt].s&&Ge(To[Re].pt.k[bt].s[0]),To[Re].pt.k[bt].e&&Ge(To[Re].pt.k[bt].e[0])}gt.ty===0?(gt.layers=He(gt.refId,gn),qt(gt.layers,gn)):gt.ty===4?Ne(gt.shapes):gt.ty===5&&Go(gt)}}function Jt(Nt,gn){if(Nt){var gt=0,at=Nt.length;for(gt=0;gt<at;gt+=1)Nt[gt].t===1&&(Nt[gt].data.layers=He(Nt[gt].data.refId,gn),qt(Nt[gt].data.layers,gn))}}function Xe(Nt,gn){for(var gt=0,at=gn.length;gt<at;){if(gn[gt].id===Nt)return gn[gt];gt+=1}return null}function He(Nt,gn){var gt=Xe(Nt,gn);return gt?gt.layers.__used?JSON.parse(JSON.stringify(gt.layers)):(gt.layers.__used=!0,gt.layers):null}function Ne(Nt){var gn,gt,at;for(gn=Nt.length-1;gn>=0;gn-=1)if(Nt[gn].ty==="sh")if(Nt[gn].ks.k.i)Ge(Nt[gn].ks.k);else for(at=Nt[gn].ks.k.length,gt=0;gt<at;gt+=1)Nt[gn].ks.k[gt].s&&Ge(Nt[gn].ks.k[gt].s[0]),Nt[gn].ks.k[gt].e&&Ge(Nt[gn].ks.k[gt].e[0]);else Nt[gn].ty==="gr"&&Ne(Nt[gn].it)}function Ge(Nt){var gn,gt=Nt.i.length;for(gn=0;gn<gt;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 mt(Nt,gn){var gt=gn?gn.split("."):[100,100,100];return Nt[0]>gt[0]||!(gt[0]>Nt[0])&&(Nt[1]>gt[1]||!(gt[1]>Nt[1])&&(Nt[2]>gt[2]||!(gt[2]>Nt[2])&&null))}var rn=(function(){var Nt=[4,4,14];function gn(at){var Re=at.t.d;at.t.d={k:[{s:Re,t:0}]}}function gt(at){var Re,dt=at.length;for(Re=0;Re<dt;Re+=1)at[Re].ty===5&&gn(at[Re])}return function(at){if(mt(Nt,at.v)&&(gt(at.layers),at.assets)){var Re,dt=at.assets.length;for(Re=0;Re<dt;Re+=1)at.assets[Re].layers&&gt(at.assets[Re].layers)}}})(),ln=(function(){var Nt=[4,7,99];return function(gn){if(gn.chars&&!mt(Nt,gn.v)){var gt,at=gn.chars.length;for(gt=0;gt<at;gt+=1){var Re=gn.chars[gt];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[gt].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(at){var Re=at.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 gt(at){var Re,dt=at.length;for(Re=0;Re<dt;Re+=1)at[Re].ty===5&&gn(at[Re])}return function(at){if(mt(Nt,at.v)&&(gt(at.layers),at.assets)){var Re,dt=at.assets.length;for(Re=0;Re<dt;Re+=1)at.assets[Re].layers&&gt(at.assets[Re].layers)}}})(),co=(function(){var Nt=[4,1,9];function gn(at){var Re,dt,bt,mi=at.length;for(Re=0;Re<mi;Re+=1)if(at[Re].ty==="gr")gn(at[Re].it);else if(at[Re].ty==="fl"||at[Re].ty==="st")if(at[Re].c.k&&at[Re].c.k[0].i)for(bt=at[Re].c.k.length,dt=0;dt<bt;dt+=1)at[Re].c.k[dt].s&&(at[Re].c.k[dt].s[0]/=255,at[Re].c.k[dt].s[1]/=255,at[Re].c.k[dt].s[2]/=255,at[Re].c.k[dt].s[3]/=255),at[Re].c.k[dt].e&&(at[Re].c.k[dt].e[0]/=255,at[Re].c.k[dt].e[1]/=255,at[Re].c.k[dt].e[2]/=255,at[Re].c.k[dt].e[3]/=255);else at[Re].c.k[0]/=255,at[Re].c.k[1]/=255,at[Re].c.k[2]/=255,at[Re].c.k[3]/=255}function gt(at){var Re,dt=at.length;for(Re=0;Re<dt;Re+=1)at[Re].ty===4&&gn(at[Re].shapes)}return function(at){if(mt(Nt,at.v)&&(gt(at.layers),at.assets)){var Re,dt=at.assets.length;for(Re=0;Re<dt;Re+=1)at.assets[Re].layers&&gt(at.assets[Re].layers)}}})(),So=(function(){var Nt=[4,4,18];function gn(at){var Re,dt,bt;for(Re=at.length-1;Re>=0;Re-=1)if(at[Re].ty==="sh")if(at[Re].ks.k.i)at[Re].ks.k.c=at[Re].closed;else for(bt=at[Re].ks.k.length,dt=0;dt<bt;dt+=1)at[Re].ks.k[dt].s&&(at[Re].ks.k[dt].s[0].c=at[Re].closed),at[Re].ks.k[dt].e&&(at[Re].ks.k[dt].e[0].c=at[Re].closed);else at[Re].ty==="gr"&&gn(at[Re].it)}function gt(at){var Re,dt,bt,mi,qo,To,ya=at.length;for(dt=0;dt<ya;dt+=1){if((Re=at[dt]).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(at){if(mt(Nt,at.v)&&(gt(at.layers),at.assets)){var Re,dt=at.assets.length;for(Re=0;Re<dt;Re+=1)at.assets[Re].layers&&gt(at.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 He=Xe.getResponseHeader("content-type");return He&&Xe.responseType==="json"&&He.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,He,Ne,Ge){var mt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)mt=qt(rn),Ne(mt);else try{mt=qt(rn),Ne(mt)}catch(ln){Ge&&Ge(ln)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),He+"/"+Xe,!0)}rn.send()}return{load:Jt}})()),ct.data.type==="loadAnimation")$e.assetLoader.load(ct.data.path,ct.data.fullPath,(function(qt){$e.dataManager.completeData(qt),$e.postMessage({id:ct.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ct.data.id,status:"error"})}));else if(ct.data.type==="complete"){var It=ct.data.animation;$e.dataManager.completeData(It),$e.postMessage({id:ct.data.id,payload:It,status:"success"})}else ct.data.type==="loadData"&&$e.assetLoader.load(ct.data.path,ct.data.fullPath,(function(qt){$e.postMessage({id:ct.data.id,payload:qt,status:"success"})}),(function(){$e.postMessage({id:ct.data.id,status:"error"})}))})),X.onmessage=function(ct){var Ct=ct.data,It=Ct.id,qt=xe[It];xe[It]=null,Ct.status==="success"?qt.onComplete(Ct.payload):qt.onError&&qt.onError()})}function Qe(ct,Ct){var It="processId_"+(pe+=1);return xe[It]={onComplete:ct,onError:Ct},It}function Mt(ct,Ct,It){We();var qt=Qe(Ct,It);X.postMessage({type:"loadAnimation",path:ct,fullPath:window.location.origin+window.location.pathname,id:qt})}function Kt(ct,Ct,It){We();var qt=Qe(Ct,It);X.postMessage({type:"loadData",path:ct,fullPath:window.location.origin+window.location.pathname,id:qt})}function et(ct,Ct,It){We();var qt=Qe(Ct,It);X.postMessage({type:"complete",animation:ct,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 He=Xe.getContext("2d");return He.fillStyle="rgba(0,0,0,0)",He.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,He,Ne){var Ge="";if(Xe.e)Ge=Xe.p;else if(He){var mt=Xe.p;mt.indexOf("images/")!==-1&&(mt=mt.split("/")[1]),Ge=He+mt}else Ge=Ne,Ge+=Xe.u?Xe.u:"",Ge+=Xe.p;return Ge}function ve(Xe){var He=0,Ne=setInterval((function(){(Xe.getBBox().width||He>500)&&(this._imageLoaded(),clearInterval(Ne)),He+=1}).bind(this),50)}function $e(Xe){var He=xe(Xe,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){Ge.img=G,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",He),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var Ge={img:Ne,assetData:Xe};return Ge}function Oe(Xe){var He=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){Ge.img=G,this._imageLoaded()}).bind(this),!1),Ne.src=He;var Ge={img:Ne,assetData:Xe};return Ge}function We(Xe){var He={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(Ge){He.img=Ge,this._footageLoaded()}).bind(this),(function(){He.img={},this._footageLoaded()}).bind(this)),He}function Qe(Xe,He){this.imagesLoadedCb=He;var Ne,Ge=Xe.length;for(Ne=0;Ne<Ge;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 He=0,Ne=this.images.length;He<Ne;){if(this.images[He].assetData===Xe)return this.images[He].img;He+=1}return null}function ct(){this.imagesLoadedCb=null,this.images.length=0}function Ct(){return this.totalImages===this.loadedAssets}function It(){return this.totalFootages===this.loadedFootagesCount}function qt(Xe,He){Xe==="svg"?(this._elementHelper=He,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=We.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return Jt.prototype={loadAssets:Qe,setAssetsPath:Kt,setPath:Mt,loadedImages:Ct,loadedFootages:It,destroy:ct,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 We(gt){for(var at=0,Re=gt.target;at<xe;)X[at].animation===Re&&(X.splice(at,1),at-=1,xe-=1,Re.isPaused||et()),at+=1}function Qe(gt,at){if(!gt)return null;for(var Re=0;Re<xe;){if(X[Re].elem===gt&&X[Re].elem!==null)return X[Re].animation;Re+=1}var dt=new be;return ct(dt,gt),dt.setData(gt,at),dt}function Mt(){var gt,at=X.length,Re=[];for(gt=0;gt<at;gt+=1)Re.push(X[gt].animation);return Re}function Kt(){ve+=1,So()}function et(){ve-=1}function ct(gt,at){gt.addEventListener("destroy",We),gt.addEventListener("_active",Kt),gt.addEventListener("_idle",et),X.push({elem:at,animation:gt}),xe+=1}function Ct(gt){var at=new be;return ct(at,null),at.setParams(gt),at}function It(gt,at){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setSpeed(gt,at)}function qt(gt,at){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setDirection(gt,at)}function Jt(gt){var at;for(at=0;at<xe;at+=1)X[at].animation.play(gt)}function Xe(gt){var at,Re=gt-pe;for(at=0;at<xe;at+=1)X[at].animation.advanceTime(Re);pe=gt,ve&&!Oe?window.requestAnimationFrame(Xe):$e=!0}function He(gt){pe=gt,window.requestAnimationFrame(Xe)}function Ne(gt){var at;for(at=0;at<xe;at+=1)X[at].animation.pause(gt)}function Ge(gt,at,Re){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.goToAndStop(gt,at,Re)}function mt(gt){var at;for(at=0;at<xe;at+=1)X[at].animation.stop(gt)}function rn(gt){var at;for(at=0;at<xe;at+=1)X[at].animation.togglePause(gt)}function ln(gt){var at;for(at=xe-1;at>=0;at-=1)X[at].animation.destroy(gt)}function Ot(gt,at,Re){var dt,bt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),mi=bt.length;for(dt=0;dt<mi;dt+=1)Re&&bt[dt].setAttribute("data-bm-type",Re),Qe(bt[dt],gt);if(at&&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),Qe(To,gt)}}function co(){var gt;for(gt=0;gt<xe;gt+=1)X[gt].animation.resize()}function So(){!Oe&&ve&&$e&&(window.requestAnimationFrame(He),$e=!1)}function si(){Oe=!0}function Go(){Oe=!1,So()}function oo(gt,at){var Re;for(Re=0;Re<xe;Re+=1)X[Re].animation.setVolume(gt,at)}function Nt(gt){var at;for(at=0;at<xe;at+=1)X[at].animation.mute(gt)}function gn(gt){var at;for(at=0;at<xe;at+=1)X[at].animation.unmute(gt)}return G.registerAnimation=Qe,G.loadAnimation=Ct,G.setSpeed=It,G.setDirection=qt,G.play=Jt,G.pause=Ne,G.stop=mt,G.togglePause=rn,G.searchAnimations=Ot,G.resize=co,G.goToAndStop=Ge,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(He,Ne,Ge,mt,rn){var ln=rn||("bez_"+He+"_"+Ne+"_"+Ge+"_"+mt).replace(/\./g,"p");if(X[ln])return X[ln];var Ot=new Xe([He,Ne,Ge,mt]);return X[ln]=Ot,Ot}var xe=4,ve=.001,$e=1e-7,Oe=10,We=11,Qe=1/(We-1),Mt=typeof Float32Array=="function";function Kt(He,Ne){return 1-3*Ne+3*He}function et(He,Ne){return 3*Ne-6*He}function ct(He){return 3*He}function Ct(He,Ne,Ge){return((Kt(Ne,Ge)*He+et(Ne,Ge))*He+ct(Ne))*He}function It(He,Ne,Ge){return 3*Kt(Ne,Ge)*He*He+2*et(Ne,Ge)*He+ct(Ne)}function qt(He,Ne,Ge,mt,rn){var ln,Ot,co=0;do(ln=Ct(Ot=Ne+(Ge-Ne)/2,mt,rn)-He)>0?Ge=Ot:Ne=Ot;while(Math.abs(ln)>$e&&++co<Oe);return Ot}function Jt(He,Ne,Ge,mt){for(var rn=0;rn<xe;++rn){var ln=It(Ne,Ge,mt);if(ln===0)return Ne;Ne-=(Ct(Ne,Ge,mt)-He)/ln}return Ne}function Xe(He){this._p=He,this._mSampleValues=Mt?new Float32Array(We):new Array(We),this._precomputed=!1,this.get=this.get.bind(this)}return Xe.prototype={get:function(He){var Ne=this._p[0],Ge=this._p[1],mt=this._p[2],rn=this._p[3];return this._precomputed||this._precompute(),Ne===Ge&&mt===rn?He:He===0?0:He===1?1:Ct(this._getTForX(He),Ge,rn)},_precompute:function(){var He=this._p[0],Ne=this._p[1],Ge=this._p[2],mt=this._p[3];this._precomputed=!0,(He!==Ne||Ge!==mt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var He=this._p[0],Ne=this._p[2],Ge=0;Ge<We;++Ge)this._mSampleValues[Ge]=Ct(Ge*Qe,He,Ne)},_getTForX:function(He){for(var Ne=this._p[0],Ge=this._p[2],mt=this._mSampleValues,rn=0,ln=1,Ot=We-1;ln!==Ot&&mt[ln]<=He;++ln)rn+=Qe;var co=rn+(He-mt[--ln])/(mt[ln+1]-mt[ln])*Qe,So=It(co,Ne,Ge);return So>=ve?Jt(He,co,Ne,Ge):So===0?co:qt(He,rn,rn+Qe,Ne,Ge)}},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 We(Qe){xe===ve&&($e=De.double($e),ve*=2),pe&&pe(Qe),$e[xe]=Qe,xe+=1}return{newElement:Oe,release:We}}})(),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(ct,Ct,It,qt,Jt,Xe){var He=ct*qt+Ct*Jt+It*Xe-Jt*qt-Xe*ct-It*Ct;return He>-.001&&He<.001}function pe(ct,Ct,It,qt,Jt,Xe,He,Ne,Ge){if(It===0&&Xe===0&&Ge===0)return X(ct,Ct,qt,Jt,He,Ne);var mt,rn=G.sqrt(G.pow(qt-ct,2)+G.pow(Jt-Ct,2)+G.pow(Xe-It,2)),ln=G.sqrt(G.pow(He-ct,2)+G.pow(Ne-Ct,2)+G.pow(Ge-It,2)),Ot=G.sqrt(G.pow(He-qt,2)+G.pow(Ne-Jt,2)+G.pow(Ge-Xe,2));return(mt=rn>ln?rn>Ot?rn-ln-Ot:Ot-ln-rn:Ot>ln?Ot-ln-rn:ln-rn-Ot)>-1e-4&&mt<1e-4}var xe=(function(){return function(ct,Ct,It,qt){var Jt,Xe,He,Ne,Ge,mt,rn=se(),ln=0,Ot=[],co=[],So=Me.newElement();for(He=It.length,Jt=0;Jt<rn;Jt+=1){for(Ge=Jt/(rn-1),mt=0,Xe=0;Xe<He;Xe+=1)Ne=k(1-Ge,3)*ct[Xe]+3*k(1-Ge,2)*Ge*It[Xe]+3*(1-Ge)*k(Ge,2)*qt[Xe]+k(Ge,3)*Ct[Xe],Ot[Xe]=Ne,co[Xe]!==null&&(mt+=k(Ot[Xe]-co[Xe],2)),co[Xe]=Ot[Xe];mt&&(ln+=mt=$(mt)),So.percents[Jt]=Ge,So.lengths[Jt]=ln}return So.addedLength=ln,So}})();function ve(ct){var Ct,It=Se.newElement(),qt=ct.c,Jt=ct.v,Xe=ct.o,He=ct.i,Ne=ct._length,Ge=It.lengths,mt=0;for(Ct=0;Ct<Ne-1;Ct+=1)Ge[Ct]=xe(Jt[Ct],Jt[Ct+1],Xe[Ct],He[Ct+1]),mt+=Ge[Ct].addedLength;return qt&&Ne&&(Ge[Ct]=xe(Jt[Ct],Jt[0],Xe[Ct],He[0]),mt+=Ge[Ct].addedLength),It.totalLength=mt,It}function $e(ct){this.segmentLength=0,this.points=new Array(ct)}function Oe(ct,Ct){this.partialLength=ct,this.point=Ct}var We=(function(){var ct={};return function(Ct,It,qt,Jt){var Xe=(Ct[0]+"_"+Ct[1]+"_"+It[0]+"_"+It[1]+"_"+qt[0]+"_"+qt[1]+"_"+Jt[0]+"_"+Jt[1]).replace(/\./g,"p");if(!ct[Xe]){var He,Ne,Ge,mt,rn,ln,Ot,co=se(),So=0,si=null;Ct.length===2&&(Ct[0]!==It[0]||Ct[1]!==It[1])&&X(Ct[0],Ct[1],It[0],It[1],Ct[0]+qt[0],Ct[1]+qt[1])&&X(Ct[0],Ct[1],It[0],It[1],It[0]+Jt[0],It[1]+Jt[1])&&(co=2);var Go=new $e(co);for(Ge=qt.length,He=0;He<co;He+=1){for(Ot=b(Ge),rn=He/(co-1),ln=0,Ne=0;Ne<Ge;Ne+=1)mt=k(1-rn,3)*Ct[Ne]+3*k(1-rn,2)*rn*(Ct[Ne]+qt[Ne])+3*(1-rn)*k(rn,2)*(It[Ne]+Jt[Ne])+k(rn,3)*It[Ne],Ot[Ne]=mt,si!==null&&(ln+=k(Ot[Ne]-si[Ne],2));So+=ln=$(ln),Go.points[He]=new Oe(ln,Ot),si=Ot}Go.segmentLength=So,ct[Xe]=Go}return ct[Xe]}})();function Qe(ct,Ct){var It=Ct.percents,qt=Ct.lengths,Jt=It.length,Xe=j((Jt-1)*ct),He=ct*Ct.addedLength,Ne=0;if(Xe===Jt-1||Xe===0||He===qt[Xe])return It[Xe];for(var Ge=qt[Xe]>He?-1:1,mt=!0;mt;)if(qt[Xe]<=He&&qt[Xe+1]>He?(Ne=(He-qt[Xe])/(qt[Xe+1]-qt[Xe]),mt=!1):Xe+=Ge,Xe<0||Xe>=Jt-1){if(Xe===Jt-1)return It[Xe];mt=!1}return It[Xe]+(It[Xe+1]-It[Xe])*Ne}function Mt(ct,Ct,It,qt,Jt,Xe){var He=Qe(Jt,Xe),Ne=1-He;return[G.round(1e3*(Ne*Ne*Ne*ct[0]+(He*Ne*Ne+Ne*He*Ne+Ne*Ne*He)*It[0]+(He*He*Ne+Ne*He*He+He*Ne*He)*qt[0]+He*He*He*Ct[0]))/1e3,G.round(1e3*(Ne*Ne*Ne*ct[1]+(He*Ne*Ne+Ne*He*Ne+Ne*Ne*He)*It[1]+(He*He*Ne+Ne*He*He+He*Ne*He)*qt[1]+He*He*He*Ct[1]))/1e3]}var Kt=y("float32",8);function et(ct,Ct,It,qt,Jt,Xe,He){Jt<0?Jt=0:Jt>1&&(Jt=1);var Ne,Ge=Qe(Jt,He),mt=Qe(Xe=Xe>1?1:Xe,He),rn=ct.length,ln=1-Ge,Ot=1-mt,co=ln*ln*ln,So=Ge*ln*ln*3,si=Ge*Ge*ln*3,Go=Ge*Ge*Ge,oo=ln*ln*Ot,Nt=Ge*ln*Ot+ln*Ge*Ot+ln*ln*mt,gn=Ge*Ge*Ot+ln*Ge*mt+Ge*ln*mt,gt=Ge*Ge*mt,at=ln*Ot*Ot,Re=Ge*Ot*Ot+ln*mt*Ot+ln*Ot*mt,dt=Ge*mt*Ot+ln*mt*mt+Ge*Ot*mt,bt=Ge*mt*mt,mi=Ot*Ot*Ot,qo=mt*Ot*Ot+Ot*mt*Ot+Ot*Ot*mt,To=mt*mt*Ot+Ot*mt*mt+mt*Ot*mt,ya=mt*mt*mt;for(Ne=0;Ne<rn;Ne+=1)Kt[4*Ne]=G.round(1e3*(co*ct[Ne]+So*It[Ne]+si*qt[Ne]+Go*Ct[Ne]))/1e3,Kt[4*Ne+1]=G.round(1e3*(oo*ct[Ne]+Nt*It[Ne]+gn*qt[Ne]+gt*Ct[Ne]))/1e3,Kt[4*Ne+2]=G.round(1e3*(at*ct[Ne]+Re*It[Ne]+dt*qt[Ne]+bt*Ct[Ne]))/1e3,Kt[4*Ne+3]=G.round(1e3*(mi*ct[Ne]+qo*It[Ne]+To*qt[Ne]+ya*Ct[Ne]))/1e3;return Kt}return{getSegmentsLength:ve,getNewSegment:et,getPointInSegment:Mt,buildBezierData:We,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,We=X.lastIndex,Qe=We,Mt=this.keyframes.length-1,Kt=!0;Kt;){if(ve=this.keyframes[Qe],$e=this.keyframes[Qe+1],Qe===Mt-1&&G>=$e.t-xe){ve.h&&(ve=$e),We=0;break}if($e.t-xe>G){We=Qe;break}Qe<Mt-1?Qe+=1:(We=0,Kt=!1)}Oe=this.keyframesMetadata[Qe]||{};var et,ct,Ct,It,qt,Jt,Xe,He=$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 Ge=Oe.bezierData;if(G>=He||G<Ne){var mt=G>=He?Ge.points.length-1:0;for(ct=Ge.points[mt].point.length,et=0;et<ct;et+=1)pe[et]=Ge.points[mt].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)/(He-Ne));var rn,ln=Ge.segmentLength*Ct,Ot=X.lastFrame<G&&X._lastKeyframeIndex===Qe?X._lastAddedLength:0;for(qt=X.lastFrame<G&&X._lastKeyframeIndex===Qe?X._lastPoint:0,Kt=!0,It=Ge.points.length;Kt;){if(Ot+=Ge.points[qt].partialLength,ln===0||Ct===0||qt===Ge.points.length-1){for(ct=Ge.points[qt].point.length,et=0;et<ct;et+=1)pe[et]=Ge.points[qt].point[et];break}if(ln>=Ot&&ln<Ot+Ge.points[qt+1].partialLength){for(rn=(ln-Ot)/Ge.points[qt+1].partialLength,ct=Ge.points[qt].point.length,et=0;et<ct;et+=1)pe[et]=Ge.points[qt].point[et]+(Ge.points[qt+1].point[et]-Ge.points[qt].point[et])*rn;break}qt<It-1?qt+=1:Kt=!1}X._lastPoint=qt,X._lastAddedLength=Ot-Ge.points[qt].partialLength,X._lastKeyframeIndex=Qe}}else{var co,So,si,Go,oo;if(Mt=ve.s.length,Xe=$e.s||ve.e,this.sh&&ve.h!==1)G>=He?(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]):qe(pe,Ye(ht(ve.s),ht(Xe),(G-Ne)/(He-Ne)));else for(Qe=0;Qe<Mt;Qe+=1)ve.h!==1&&(G>=He?Ct=1:G<Ne?Ct=0:(ve.o.x.constructor===Array?(Oe.__fnct||(Oe.__fnct=[]),Oe.__fnct[Qe]?Jt=Oe.__fnct[Qe]:(co=ve.o.x[Qe]===void 0?ve.o.x[0]:ve.o.x[Qe],So=ve.o.y[Qe]===void 0?ve.o.y[0]:ve.o.y[Qe],si=ve.i.x[Qe]===void 0?ve.i.x[0]:ve.i.x[Qe],Go=ve.i.y[Qe]===void 0?ve.i.y[0]:ve.i.y[Qe],Jt=Le.getBezierEasing(co,So,si,Go).get,Oe.__fnct[Qe]=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)/(He-Ne)))),Xe=$e.s||ve.e,oo=ve.h===1?ve.s[Qe]:ve.s[Qe]+(Xe[Qe]-ve.s[Qe])*Ct,this.propType==="multidimensional"?pe[Qe]=oo:pe=oo}return X.lastIndex=We,pe}function Ye(G,X,pe){var xe,ve,$e,Oe,We,Qe=[],Mt=G[0],Kt=G[1],et=G[2],ct=G[3],Ct=X[0],It=X[1],qt=X[2],Jt=X[3];return(ve=Mt*Ct+Kt*It+et*qt+ct*Jt)<0&&(ve=-ve,Ct=-Ct,It=-It,qt=-qt,Jt=-Jt),1-ve>1e-6?(xe=Math.acos(ve),$e=Math.sin(xe),Oe=Math.sin((1-pe)*xe)/$e,We=Math.sin(pe*xe)/$e):(Oe=1-pe,We=pe),Qe[0]=Oe*Mt+We*Ct,Qe[1]=Oe*Kt+We*It,Qe[2]=Oe*et+We*qt,Qe[3]=Oe*ct+We*Jt,Qe}function qe(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),We=Math.asin(2*pe*xe+2*ve*$e),Qe=Math.atan2(2*pe*$e-2*xe*ve,1-2*pe*pe-2*ve*ve);G[0]=Oe/D,G[1]=We/D,G[2]=Qe/D}function ht(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),We=Math.sin(X/2),Qe=Math.sin(pe/2),Mt=Math.sin(xe/2);return[We*Qe*Oe+ve*$e*Mt,We*$e*Oe+ve*Qe*Mt,ve*Qe*Oe-We*$e*Mt,ve*$e*Oe-We*Qe*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 ut(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 $t(){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 xt(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}function Ve(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=$t,this.setVValue=ut,this.addEffect=xt}function St(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=$t,this.setVValue=ut,this.addEffect=xt}function _t(G,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.frameId=-1,this._caching={lastFrame: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=$t,this.setVValue=ut,this.interpolateValue=it,this.effectsSequence=[Ft.bind(this)],this.addEffect=xt}function vt(G,X,pe,xe){this.propType="multidimensional";var ve,$e,Oe,We,Qe,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,We=X.k[ve].to,Qe=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]+We[0],$e[1]+We[1])&&Ie.pointOnLine2D($e[0],$e[1],Oe[0],Oe[1],Oe[0]+Qe[0],Oe[1]+Qe[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]+We[0],$e[1]+We[1],$e[2]+We[2])&&Ie.pointOnLine3D($e[0],$e[1],$e[2],Oe[0],Oe[1],Oe[2],Oe[0]+Qe[0],Oe[1]+Qe[1],Oe[2]+Qe[2]))&&(X.k[ve].to=null,X.k[ve].ti=null),$e[0]===Oe[0]&&$e[1]===Oe[1]&&We[0]===0&&We[1]===0&&Qe[0]===0&&Qe[1]===0&&($e.length===2||$e[2]===Oe[2]&&We[2]===0&&Qe[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=$t,this.setVValue=ut,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=xt}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 St(X,pe,ve,$e);else switch(xe){case 0:Oe=new _t(X,pe,ve,$e);break;case 1:Oe=new vt(X,pe,ve,$e)}else Oe=new Ve(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 ft(){this.c=!1,this._length=0,this._maxLength=8,this.v=b(this._maxLength),this.o=b(this._maxLength),this.i=b(this._maxLength)}ft.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},ft.prototype.setLength=function(G){for(;this._maxLength<G;)this.doubleArrayLength();this._length=G},ft.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},ft.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},ft.prototype.setTripleAt=function(G,X,pe,xe,ve,$e,Oe,We){this.setXYAt(G,X,"v",Oe,We),this.setXYAt(pe,xe,"o",Oe,We),this.setXYAt(ve,$e,"i",Oe,We)},ft.prototype.reverse=function(){var G=new ft;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,We=this._length;for($e=ve;$e<We;$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},ft.prototype.length=function(){return this._length};var Dt=(function(){function G(){return new ft}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(),We=ve._length===void 0?ve.v.length:ve._length;for(Oe.setLength(We),Oe.c=ve.c,$e=0;$e<We;$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)Dt.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 We,Qe=Oe._length;for(We=0;We<Qe;We+=1)Dt.release(Oe.shapes[We]);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,He,Ne){var Ge,mt,rn,ln,Ot,co,So,si,Go,oo=Ne.lastIndex,Nt=this.keyframes;if(Xe<Nt[0].t-this.offsetTime)Ge=Nt[0].s[0],rn=!0,oo=0;else if(Xe>=Nt[Nt.length-1].t-this.offsetTime)Ge=Nt[Nt.length-1].s?Nt[Nt.length-1].s[0]:Nt[Nt.length-2].e[0],rn=!0;else{for(var gn,gt,at,Re=oo,dt=Nt.length-1,bt=!0;bt&&(gn=Nt[Re],!((gt=Nt[Re+1]).t-this.offsetTime>Xe));)Re<dt-1?Re+=1:bt=!1;if(at=this.keyframesMetadata[Re]||{},oo=Re,!(rn=gn.h===1)){if(Xe>=gt.t-this.offsetTime)si=1;else if(Xe<gn.t-this.offsetTime)si=0;else{var mi;at.__fnct?mi=at.__fnct:(mi=Le.getBezierEasing(gn.o.x,gn.o.y,gn.i.x,gn.i.y).get,at.__fnct=mi),si=mi((Xe-(gn.t-this.offsetTime))/(gt.t-this.offsetTime-(gn.t-this.offsetTime)))}mt=gt.s?gt.s[0]:gn.e[0]}Ge=gn.s[0]}for(co=He._length,So=Ge.i[0].length,Ne.lastIndex=oo,ln=0;ln<co;ln+=1)for(Ot=0;Ot<So;Ot+=1)Go=rn?Ge.i[ln][Ot]:Ge.i[ln][Ot]+(mt.i[ln][Ot]-Ge.i[ln][Ot])*si,He.i[ln][Ot]=Go,Go=rn?Ge.o[ln][Ot]:Ge.o[ln][Ot]+(mt.o[ln][Ot]-Ge.o[ln][Ot])*si,He.o[ln][Ot]=Go,Go=rn?Ge.v[ln][Ot]:Ge.v[ln][Ot]+(mt.v[ln][Ot]-Ge.v[ln][Ot])*si,He.v[ln][Ot]=Go}function pe(){var Xe=this.comp.renderedFrame-this.offsetTime,He=this.keyframes[0].t-this.offsetTime,Ne=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Ge=this._caching.lastFrame;return Ge!==G&&(Ge<He&&Xe<He||Ge>Ne&&Xe>Ne)||(this._caching.lastIndex=Ge<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,He){if(Xe._length!==He._length||Xe.c!==He.c)return!1;var Ne,Ge=Xe._length;for(Ne=0;Ne<Ge;Ne+=1)if(Xe.v[Ne][0]!==He.v[Ne][0]||Xe.v[Ne][1]!==He.v[Ne][1]||Xe.o[Ne][0]!==He.o[Ne][0]||Xe.o[Ne][1]!==He.o[Ne][1]||Xe.i[Ne][0]!==He.i[Ne][0]||Xe.i[Ne][1]!==He.i[Ne][1])return!1;return!0}function $e(Xe){ve(this.v,Xe)||(this.v=Dt.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 He,Ne=this.effectsSequence.length;for(He=0;He<Ne;He+=1)Xe=this.effectsSequence[He](Xe);this.setVValue(Xe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function We(Xe,He,Ne){this.propType="shape",this.comp=Xe.comp,this.container=Xe,this.elem=Xe,this.data=He,this.k=!1,this.kf=!1,this._mdf=!1;var Ge=Ne===3?He.pt.k:He.ks.k;this.v=Dt.clone(Ge),this.pv=Dt.clone(this.v),this.localShapeCollection=Zt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function Qe(Xe){this.effectsSequence.push(Xe),this.container.addDynamicProperty(this)}function Mt(Xe,He,Ne){this.propType="shape",this.comp=Xe.comp,this.elem=Xe,this.container=Xe,this.offsetTime=Xe.data.st,this.keyframes=Ne===3?He.pt.k:He.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Ge=this.keyframes[0].s[0].i.length;this.v=Dt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Ge),this.pv=Dt.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)]}We.prototype.interpolateShape=X,We.prototype.getValue=Oe,We.prototype.setVValue=$e,We.prototype.addEffect=Qe,Mt.prototype.getValue=Oe,Mt.prototype.interpolateShape=X,Mt.prototype.setVValue=$e,Mt.prototype.addEffect=Qe;var Kt=(function(){var Xe=L;function He(Ne,Ge){this.v=Dt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Zt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Ge.d,this.elem=Ne,this.comp=Ne.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ne),this.p=Ke.getProp(Ne,Ge.p,1,0,this),this.s=Ke.getProp(Ne,Ge.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return He.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],Ge=this.p.v[1],mt=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]=Ge-rn,Ot.v[1][0]=ln?Ne+mt:Ne-mt,Ot.v[1][1]=Ge,Ot.v[2][0]=Ne,Ot.v[2][1]=Ge+rn,Ot.v[3][0]=ln?Ne-mt:Ne+mt,Ot.v[3][1]=Ge,Ot.i[0][0]=ln?Ne-mt*Xe:Ne+mt*Xe,Ot.i[0][1]=Ge-rn,Ot.i[1][0]=ln?Ne+mt:Ne-mt,Ot.i[1][1]=Ge-rn*Xe,Ot.i[2][0]=ln?Ne+mt*Xe:Ne-mt*Xe,Ot.i[2][1]=Ge+rn,Ot.i[3][0]=ln?Ne-mt:Ne+mt,Ot.i[3][1]=Ge+rn*Xe,Ot.o[0][0]=ln?Ne+mt*Xe:Ne-mt*Xe,Ot.o[0][1]=Ge-rn,Ot.o[1][0]=ln?Ne+mt:Ne-mt,Ot.o[1][1]=Ge+rn*Xe,Ot.o[2][0]=ln?Ne-mt*Xe:Ne+mt*Xe,Ot.o[2][1]=Ge+rn,Ot.o[3][0]=ln?Ne-mt:Ne+mt,Ot.o[3][1]=Ge-rn*Xe}},g([Pt],He),He})(),et=(function(){function Xe(He,Ne){this.v=Dt.newElement(),this.v.setPathData(!0,0),this.elem=He,this.comp=He.comp,this.data=Ne,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(He),Ne.sy===1?(this.ir=Ke.getProp(He,Ne.ir,0,0,this),this.is=Ke.getProp(He,Ne.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ke.getProp(He,Ne.pt,0,0,this),this.p=Ke.getProp(He,Ne.p,1,0,this),this.r=Ke.getProp(He,Ne.r,0,D,this),this.or=Ke.getProp(He,Ne.or,0,0,this),this.os=Ke.getProp(He,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 He,Ne,Ge,mt,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 gt=this.data.d===3?-1:1;for(this.v._length=0,He=0;He<rn;He+=1){Ge=Ot?si:Go,mt=Ot?oo:Nt;var at=(Ne=Ot?co:So)*Math.cos(gn),Re=Ne*Math.sin(gn),dt=at===0&&Re===0?0:Re/Math.sqrt(at*at+Re*Re),bt=at===0&&Re===0?0:-at/Math.sqrt(at*at+Re*Re);at+=+this.p.v[0],Re+=+this.p.v[1],this.v.setTripleAt(at,Re,at-dt*mt*Ge*gt,Re-bt*mt*Ge*gt,at+dt*mt*Ge*gt,Re+bt*mt*Ge*gt,He,!0),Ot=!Ot,gn+=ln*gt}},convertPolygonToPath:function(){var He,Ne=Math.floor(this.pt.v),Ge=2*Math.PI/Ne,mt=this.or.v,rn=this.os.v,ln=2*Math.PI*mt/(4*Ne),Ot=.5*-Math.PI,co=this.data.d===3?-1:1;for(Ot+=this.r.v,this.v._length=0,He=0;He<Ne;He+=1){var So=mt*Math.cos(Ot),si=mt*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,He,!0),Ot+=Ge*co}this.paths.length=0,this.paths[0]=this.v}},g([Pt],Xe),Xe})(),ct=(function(){function Xe(He,Ne){this.v=Dt.newElement(),this.v.c=!0,this.localShapeCollection=Zt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=He,this.comp=He.comp,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(He),this.p=Ke.getProp(He,Ne.p,1,0,this),this.s=Ke.getProp(He,Ne.s,1,0,this),this.r=Ke.getProp(He,Ne.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Xe.prototype={convertRectToPath:function(){var He=this.p.v[0],Ne=this.p.v[1],Ge=this.s.v[0]/2,mt=this.s.v[1]/2,rn=I(Ge,mt,this.r.v),ln=rn*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(He+Ge,Ne-mt+rn,He+Ge,Ne-mt+rn,He+Ge,Ne-mt+ln,0,!0),this.v.setTripleAt(He+Ge,Ne+mt-rn,He+Ge,Ne+mt-ln,He+Ge,Ne+mt-rn,1,!0),rn!==0?(this.v.setTripleAt(He+Ge-rn,Ne+mt,He+Ge-rn,Ne+mt,He+Ge-ln,Ne+mt,2,!0),this.v.setTripleAt(He-Ge+rn,Ne+mt,He-Ge+ln,Ne+mt,He-Ge+rn,Ne+mt,3,!0),this.v.setTripleAt(He-Ge,Ne+mt-rn,He-Ge,Ne+mt-rn,He-Ge,Ne+mt-ln,4,!0),this.v.setTripleAt(He-Ge,Ne-mt+rn,He-Ge,Ne-mt+ln,He-Ge,Ne-mt+rn,5,!0),this.v.setTripleAt(He-Ge+rn,Ne-mt,He-Ge+rn,Ne-mt,He-Ge+ln,Ne-mt,6,!0),this.v.setTripleAt(He+Ge-rn,Ne-mt,He+Ge-ln,Ne-mt,He+Ge-rn,Ne-mt,7,!0)):(this.v.setTripleAt(He-Ge,Ne+mt,He-Ge+ln,Ne+mt,He-Ge,Ne+mt,2),this.v.setTripleAt(He-Ge,Ne-mt,He-Ge,Ne-mt+ln,He-Ge,Ne-mt,3))):(this.v.setTripleAt(He+Ge,Ne-mt+rn,He+Ge,Ne-mt+ln,He+Ge,Ne-mt+rn,0,!0),rn!==0?(this.v.setTripleAt(He+Ge-rn,Ne-mt,He+Ge-rn,Ne-mt,He+Ge-ln,Ne-mt,1,!0),this.v.setTripleAt(He-Ge+rn,Ne-mt,He-Ge+ln,Ne-mt,He-Ge+rn,Ne-mt,2,!0),this.v.setTripleAt(He-Ge,Ne-mt+rn,He-Ge,Ne-mt+rn,He-Ge,Ne-mt+ln,3,!0),this.v.setTripleAt(He-Ge,Ne+mt-rn,He-Ge,Ne+mt-ln,He-Ge,Ne+mt-rn,4,!0),this.v.setTripleAt(He-Ge+rn,Ne+mt,He-Ge+rn,Ne+mt,He-Ge+ln,Ne+mt,5,!0),this.v.setTripleAt(He+Ge-rn,Ne+mt,He+Ge-ln,Ne+mt,He+Ge-rn,Ne+mt,6,!0),this.v.setTripleAt(He+Ge,Ne+mt-rn,He+Ge,Ne+mt-rn,He+Ge,Ne+mt-ln,7,!0)):(this.v.setTripleAt(He-Ge,Ne-mt,He-Ge+ln,Ne-mt,He-Ge,Ne-mt,1,!0),this.v.setTripleAt(He-Ge,Ne+mt,He-Ge,Ne+mt-ln,He-Ge,Ne+mt,2,!0),this.v.setTripleAt(He+Ge,Ne+mt,He+Ge-ln,Ne+mt,He+Ge,Ne+mt,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:xe},g([Pt],Xe),Xe})();function Ct(Xe,He,Ne){var Ge;return Ne===3||Ne===4?Ge=(Ne===3?He.pt:He.ks).k.length?new Mt(Xe,He,Ne):new We(Xe,He,Ne):Ne===5?Ge=new ct(Xe,He):Ne===6?Ge=new Kt(Xe,He):Ne===7&&(Ge=new et(Xe,He)),Ge.k&&Xe.addDynamicProperty(Ge),Ge}function It(){return We}function qt(){return Mt}var Jt={};return Jt.getShapeProp=Ct,Jt.getConstructorFunction=It,Jt.getKeyframedConstructorFunction=qt,Jt})(),Et=(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 dt=G(Re),bt=X(Re);return this._t(dt,-bt,0,0,bt,dt,0,0,0,0,1,0,0,0,0,1)}function Oe(Re){if(Re===0)return this;var dt=G(Re),bt=X(Re);return this._t(1,0,0,0,0,dt,-bt,0,0,bt,dt,0,0,0,0,1)}function We(Re){if(Re===0)return this;var dt=G(Re),bt=X(Re);return this._t(dt,0,bt,0,0,1,0,0,-bt,0,dt,0,0,0,0,1)}function Qe(Re){if(Re===0)return this;var dt=G(Re),bt=X(Re);return this._t(dt,-bt,0,0,bt,dt,0,0,0,0,1,0,0,0,0,1)}function Mt(Re,dt){return this._t(1,dt,Re,1,0,0)}function Kt(Re,dt){return this.shear(pe(Re),pe(dt))}function et(Re,dt){var bt=G(dt),mi=X(dt);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 ct(Re,dt,bt){return!bt&&bt!==0&&(bt=1),Re===1&&dt===1&&bt===1?this:this._t(Re,0,0,0,0,dt,0,0,0,0,bt,0,0,0,0,1)}function Ct(Re,dt,bt,mi,qo,To,ya,Ko,dl,ha,Ua,wm,l2,Cm,vm,Gp){return this.props[0]=Re,this.props[1]=dt,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 It(Re,dt,bt){return bt=bt||0,Re!==0||dt!==0||bt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,Re,dt,bt,1):this}function qt(Re,dt,bt,mi,qo,To,ya,Ko,dl,ha,Ua,wm,l2,Cm,vm,Gp){var cr=this.props;if(Re===1&&dt===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],KN=cr[12],ZN=cr[13],JN=cr[14],XN=cr[15];return cr[0]=JS*Re+XS*qo+Y8*dl+Pf*l2,cr[1]=JS*dt+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*dt+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*dt+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]=KN*Re+ZN*qo+JN*dl+XN*l2,cr[13]=KN*dt+ZN*To+JN*ha+XN*Cm,cr[14]=KN*bt+ZN*ya+JN*Ua+XN*vm,cr[15]=KN*mi+ZN*Ko+JN*wm+XN*Gp,this._identityCalculated=!1,this}function Jt(Re){var dt=Re.props;return this.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15])}function 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 He(Re){for(var dt=0;dt<16;){if(Re.props[dt]!==this.props[dt])return!1;dt+=1}return!0}function Ne(Re){var dt;for(dt=0;dt<16;dt+=1)Re.props[dt]=this.props[dt];return Re}function Ge(Re){var dt;for(dt=0;dt<16;dt+=1)this.props[dt]=Re[dt]}function mt(Re,dt,bt){return{x:Re*this.props[0]+dt*this.props[4]+bt*this.props[8]+this.props[12],y:Re*this.props[1]+dt*this.props[5]+bt*this.props[9]+this.props[13],z:Re*this.props[2]+dt*this.props[6]+bt*this.props[10]+this.props[14]}}function rn(Re,dt,bt){return Re*this.props[0]+dt*this.props[4]+bt*this.props[8]+this.props[12]}function ln(Re,dt,bt){return Re*this.props[1]+dt*this.props[5]+bt*this.props[9]+this.props[13]}function Ot(Re,dt,bt){return Re*this.props[2]+dt*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],dt=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 Et;return Ko.props[0]=dt,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 dt,bt=Re.length,mi=[];for(dt=0;dt<bt;dt+=1)mi[dt]=So(Re[dt]);return mi}function Go(Re,dt,bt){var mi=y("float32",6);if(this.isIdentity())mi[0]=Re[0],mi[1]=Re[1],mi[2]=dt[0],mi[3]=dt[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]=dt[0]*qo+dt[1]*ya+dl,mi[3]=dt[0]*To+dt[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,dt,bt){return this.isIdentity()?[Re,dt,bt]:[Re*this.props[0]+dt*this.props[4]+bt*this.props[8]+this.props[12],Re*this.props[1]+dt*this.props[5]+bt*this.props[9]+this.props[13],Re*this.props[2]+dt*this.props[6]+bt*this.props[10]+this.props[14]]}function Nt(Re,dt){if(this.isIdentity())return Re+","+dt;var bt=this.props;return Math.round(100*(Re*bt[0]+dt*bt[4]+bt[12]))/100+","+Math.round(100*(Re*bt[1]+dt*bt[5]+bt[13]))/100}function gn(){for(var Re=0,dt=this.props,bt="matrix3d(",mi=1e4;Re<16;)bt+=xe(dt[Re]*mi)/mi,bt+=Re===15?")":",",Re+=1;return bt}function gt(Re){var dt=1e4;return Re<1e-6&&Re>0||Re>-1e-6&&Re<0?xe(Re*dt)/dt:Re}function at(){var Re=this.props;return"matrix("+gt(Re[0])+","+gt(Re[1])+","+gt(Re[4])+","+gt(Re[5])+","+gt(Re[12])+","+gt(Re[13])+")"}return function(){this.reset=ve,this.rotate=$e,this.rotateX=Oe,this.rotateY=We,this.rotateZ=Qe,this.skew=Kt,this.skewFromAxis=et,this.shear=Mt,this.scale=ct,this.setTransform=Ct,this.translate=It,this.transform=qt,this.multiply=Jt,this.applyToPoint=mt,this.applyToX=rn,this.applyToY=ln,this.applyToZ=Ot,this.applyToPointArray=oo,this.applyToTriplePoints=Go,this.applyToPointStringified=Nt,this.toCSS=gn,this.to2dCSS=at,this.clone=Ne,this.cloneFromProps=Ge,this.equals=He,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 Ht={};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 Et;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}Ht.play=Be.play,Ht.pause=Be.pause,Ht.setLocationHref=nn,Ht.togglePause=Be.togglePause,Ht.setSpeed=Be.setSpeed,Ht.setDirection=Be.setDirection,Ht.stop=Be.stop,Ht.searchAnimations=on,Ht.registerAnimation=Be.registerAnimation,Ht.loadAnimation=$n,Ht.setSubframeRendering=ot,Ht.resize=Be.resize,Ht.goToAndStop=Be.goToAndStop,Ht.destroy=Be.destroy,Ht.setQuality=Ci,Ht.inBrowser=Ki,Ht.installPlugin=ui,Ht.freeze=Be.freeze,Ht.unfreeze=Be.unfreeze,Ht.setVolume=Be.setVolume,Ht.mute=Be.mute,Ht.unmute=Be.unmute,Ht.getRegisteredAnimations=Be.getRegisteredAnimations,Ht.useWebWorker=c,Ht.setIDPrefix=In,Ht.__getFactory=tn,Ht.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=Ht)}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,We,Qe=[],Mt=$e.length;for(Oe=0;Oe<Mt;Oe+=1)if(!((We=$e[Oe]).e*ve<xe||We.s*ve>xe+pe)){var Kt,et;Kt=We.s*ve<=xe?0:(We.s*ve-xe)/pe,et=We.e*ve>=xe+pe?1:(We.e*ve-xe)/pe,Qe.push([Kt,et])}return Qe.length||Qe.push([0,0]),Qe},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,We,Qe,Mt,Kt,et,ct=this.shapes.length,Ct=0;if(pe===X)for(Oe=0;Oe<ct;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<ct;Oe+=1)this.shapes[Oe].pathsData.length=0,this.shapes[Oe].shape._mdf=!0}else{var It,qt,Jt=[];for(Oe=0;Oe<ct;Oe+=1)if((It=this.shapes[Oe]).shape._mdf||this._mdf||G||this.m===2){if(Qe=($e=It.shape.paths)._length,et=0,!It.shape._mdf&&It.pathsData.length)et=It.totalShapeLength;else{for(Mt=this.releasePathsData(It.pathsData),We=0;We<Qe;We+=1)Kt=Ie.getSegmentsLength($e.shapes[We]),Mt.push(Kt),et+=Kt.totalLength;It.totalShapeLength=et,It.pathsData=Mt}Ct+=et,It.shape._mdf=!0}else It.shape.paths=It.localShapeCollection;var Xe,He=X,Ne=pe,Ge=0;for(Oe=ct-1;Oe>=0;Oe-=1)if((It=this.shapes[Oe]).shape._mdf){for((qt=It.localShapeCollection).releaseShapes(),this.m===2&&ct>1?(Xe=this.calculateShapeEdges(X,pe,It.totalShapeLength,Ge,Ct),Ge+=It.totalShapeLength):Xe=[[He,Ne]],Qe=Xe.length,We=0;We<Qe;We+=1){He=Xe[We][0],Ne=Xe[We][1],Jt.length=0,Ne<=1?Jt.push({s:It.totalShapeLength*He,e:It.totalShapeLength*Ne}):He>=1?Jt.push({s:It.totalShapeLength*(He-1),e:It.totalShapeLength*(Ne-1)}):(Jt.push({s:It.totalShapeLength*He,e:It.totalShapeLength}),Jt.push({s:0,e:It.totalShapeLength*(Ne-1)}));var mt=this.addShapes(It,Jt[0]);if(Jt[0].s!==Jt[0].e){if(Jt.length>1)if(It.shape.paths.shapes[It.shape.paths._length-1].c){var rn=mt.pop();this.addPaths(mt,qt),mt=this.addShapes(It,Jt[1],rn)}else this.addPaths(mt,qt),mt=this.addShapes(It,Jt[1]);this.addPaths(mt,qt)}}It.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,We,Qe,Mt,Kt,et=G.pathsData,ct=G.shape.paths.shapes,Ct=G.shape.paths._length,It=0,qt=[],Jt=!0;for(pe?(We=pe._length,Kt=pe._length):(pe=Dt.newElement(),We=0,Kt=0),qt.push(pe),xe=0;xe<Ct;xe+=1){for(Qe=et[xe].lengths,pe.c=ct[xe].c,$e=ct[xe].c?Qe.length:Qe.length+1,ve=1;ve<$e;ve+=1)if(It+(Oe=Qe[ve-1]).addedLength<X.s)It+=Oe.addedLength,pe.c=!1;else{if(It>X.e){pe.c=!1;break}X.s<=It&&X.e>=It+Oe.addedLength?(this.addSegment(ct[xe].v[ve-1],ct[xe].o[ve-1],ct[xe].i[ve],ct[xe].v[ve],pe,We,Jt),Jt=!1):(Mt=Ie.getNewSegment(ct[xe].v[ve-1],ct[xe].v[ve],ct[xe].o[ve-1],ct[xe].i[ve],(X.s-It)/Oe.addedLength,(X.e-It)/Oe.addedLength,Qe[ve-1]),this.addSegmentFromArray(Mt,pe,We,Jt),Jt=!1,pe.c=!1),It+=Oe.addedLength,We+=1}if(ct[xe].c&&Qe.length){if(Oe=Qe[ve-1],It<=X.e){var Xe=Qe[ve-1].addedLength;X.s<=It&&X.e>=It+Xe?(this.addSegment(ct[xe].v[ve-1],ct[xe].o[ve-1],ct[xe].i[0],ct[xe].v[0],pe,We,Jt),Jt=!1):(Mt=Ie.getNewSegment(ct[xe].v[ve-1],ct[xe].v[0],ct[xe].o[ve-1],ct[xe].i[0],(X.s-It)/Xe,(X.e-It)/Xe,Qe[ve-1]),this.addSegmentFromArray(Mt,pe,We,Jt),Jt=!1,pe.c=!1)}else pe.c=!1;It+=Oe.addedLength,We+=1}if(pe._length&&(pe.setXYAt(pe.v[Kt][0],pe.v[Kt][1],"i",Kt),pe.setXYAt(pe.v[pe._length-1][0],pe.v[pe._length-1][1],"o",pe._length-1)),It>X.e)break;xe<Ct-1&&(pe=Dt.newElement(),Jt=!0,qt.push(pe),We=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,We,Qe,Mt,Kt,et,ct=Dt.newElement();for(ct.c=G.c,$e=0;$e<ve;$e+=1)Oe=G.v[$e][0]+(xe[0]-G.v[$e][0])*pe,We=G.v[$e][1]+(xe[1]-G.v[$e][1])*pe,Qe=G.o[$e][0]+(xe[0]-G.o[$e][0])*-pe,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,ct.setTripleAt(Oe,We,Qe,Mt,Kt,et,$e);return ct},Bt.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,We=this.shapes.length,Qe=this.amount.v;if(Qe!==0)for(pe=0;pe<We;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],Qe));$e.shape.paths=$e.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var On=(function(){var G=[0,0];function X(Qe){var Mt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Mt,this.a&&Qe.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Qe.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Qe.skewFromAxis(-this.sk.v,this.sa.v),this.r?Qe.rotate(-this.r.v):Qe.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Qe.translate(this.px.v,this.py.v,-this.pz.v):Qe.translate(this.px.v,this.py.v,0):Qe.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(Qe){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Qe){var 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 ct=this.px,Ct=this.py;ct._caching.lastFrame+ct.offsetTime<=ct.keyframes[0].t?(Kt[0]=ct.getValueAtTime((ct.keyframes[0].t+.01)/Mt,0),Kt[1]=Ct.getValueAtTime((Ct.keyframes[0].t+.01)/Mt,0),et[0]=ct.getValueAtTime(ct.keyframes[0].t/Mt,0),et[1]=Ct.getValueAtTime(Ct.keyframes[0].t/Mt,0)):ct._caching.lastFrame+ct.offsetTime>=ct.keyframes[ct.keyframes.length-1].t?(Kt[0]=ct.getValueAtTime(ct.keyframes[ct.keyframes.length-1].t/Mt,0),Kt[1]=Ct.getValueAtTime(Ct.keyframes[Ct.keyframes.length-1].t/Mt,0),et[0]=ct.getValueAtTime((ct.keyframes[ct.keyframes.length-1].t-.01)/Mt,0),et[1]=Ct.getValueAtTime((Ct.keyframes[Ct.keyframes.length-1].t-.01)/Mt,0)):(Kt=[ct.pv,Ct.pv],et[0]=ct.getValueAtTime((ct._caching.lastFrame+ct.offsetTime-.01)/Mt,ct.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(Qe){this._addDynamicProperty(Qe),this.elem.addDynamicProperty(Qe),this._isDirty=!0}function Oe(Qe,Mt,Kt){if(this.elem=Qe,this.frameId=-1,this.propType="transform",this.data=Mt,this.v=new Et,this.pre=new Et,this.appliedTransformations=0,this.initDynamicPropertyContainer(Kt||Qe),Mt.p&&Mt.p.s?(this.px=Ke.getProp(Qe,Mt.p.x,0,0,this),this.py=Ke.getProp(Qe,Mt.p.y,0,0,this),Mt.p.z&&(this.pz=Ke.getProp(Qe,Mt.p.z,0,0,this))):this.p=Ke.getProp(Qe,Mt.p||{k:[0,0,0]},1,0,this),Mt.rx){if(this.rx=Ke.getProp(Qe,Mt.rx,0,D,this),this.ry=Ke.getProp(Qe,Mt.ry,0,D,this),this.rz=Ke.getProp(Qe,Mt.rz,0,D,this),Mt.or.k[0].ti){var et,ct=Mt.or.k.length;for(et=0;et<ct;et+=1)Mt.or.k[et].to=null,Mt.or.k[et].ti=null}this.or=Ke.getProp(Qe,Mt.or,1,D,this),this.or.sh=!0}else this.r=Ke.getProp(Qe,Mt.r||{k:0},0,D,this);Mt.sk&&(this.sk=Ke.getProp(Qe,Mt.sk,0,D,this),this.sa=Ke.getProp(Qe,Mt.sa,0,D,this)),this.a=Ke.getProp(Qe,Mt.a||{k:[0,0,0]},1,0,this),this.s=Ke.getProp(Qe,Mt.s||{k:[100,100,100]},1,.01,this),Mt.o?this.o=Ke.getProp(Qe,Mt.o,0,.01,Qe):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function We(Qe,Mt,Kt){return new Oe(Qe,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:We}})();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 Vt(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 We=G.point($e[Oe])[X];We<pe?pe=We:We>xe&&(xe=We)}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),We=Bn(X);Gt(Oe[0],We[0],pe+1,xe,ve,$e),Gt(Oe[0],We[1],pe+1,xe,ve,$e),Gt(Oe[1],We[0],pe+1,xe,ve,$e),Gt(Oe[1],We[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],We=[xe[0],xe[1],1],Qe=zn(zn(ve,$e),zn(Oe,We));return Vi(Qe[2])?null:[Qe[0]/Qe[2],Qe[1]/Qe[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 We=pe-Math.PI/2,Qe=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(We)*$e,Kt-Math.sin(We)*$e,Mt+Math.cos(Qe)*Oe,Kt-Math.sin(Qe)*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 We=jt(X,pe),Qe=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(Qe[0]-Mt[0],2)+Math.pow(Qe[1]-Mt[1],2)):0,ct=$e===2?Math.sqrt(Math.pow(Qe[0]-Kt[0],2)+Math.pow(Qe[1]-Kt[1],2)):0;gr(G,X.v[pe%X._length],We,Oe,xe,ct/(2*(ve+1)),et/(2*(ve+1)))}function Vn(G,X,pe,xe,ve,$e){for(var Oe=0;Oe<xe;Oe+=1){var We=(Oe+1)/(xe+1),Qe=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(We);gr(G,X.point(We),Mt,$e,pe,Qe/(2*(xe+1)),Qe/(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,We,Qe;pe=(Qe=no(G.points[0],G.points[1],X))[0],xe=Qe[1],ve=(Qe=no(G.points[1],G.points[2],X))[0],$e=Qe[1],Oe=(Qe=no(G.points[2],G.points[3],X))[0],We=Qe[1];var Mt=so(pe,xe,ve,$e);Mt===null&&(Mt=xe);var Kt=so(Oe,We,ve,$e);return Kt===null&&(Kt=Oe),new pn(pe,Mt,Kt,We)}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 We=-X.tangentAngle(1),Qe=-pe.tangentAngle(0)+Math.PI,Mt=so($e,Zi($e,We+Math.PI/2,100),Oe,Zi(Oe,We+Math.PI/2,100)),Kt=Mt?No(Mt,$e):No($e,Oe)/2,et=Zi($e,We,2*Kt*L);return G.setXYAt(et[0],et[1],"o",G.length()-1),et=Zi(Oe,Qe,2*Kt*L),G.setTripleAt(Oe[0],Oe[1],Oe[0],Oe[1],et[0],et[1],G.length()),Oe}var ct=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 ct&&No(ct,$e)<ve?(G.setTripleAt(ct[0],ct[1],ct[0],ct[1],ct[0],ct[1],G.length()),ct):$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 We=(Oe[1]-Oe[0])/(1-Oe[0]);return $e=(ve=ve[1].split(We))[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 Et,this.rMatrix=new Et,this.sMatrix=new Et,this.tMatrix=new Et,this.matrix=new Et},ei.prototype.applyTransforms=function(G,X,pe,xe,ve,$e){var Oe=$e?-1:1,We=xe.s.v[0]+(1-xe.s.v[0])*(1-ve),Qe=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/We:We,$e?1/Qe:Qe),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 We,Qe=Math.ceil(this.c.v);if(this._groups.length<Qe){for(;this._groups.length<Qe;){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(We=$e<Qe,this._groups[xe]._render=We,this.changeGroupRender(this._groups[xe].it,We),!We){var Kt=this.elemsData[xe].it,et=Kt[Kt.length-1];et.transform.op.v!==0?(et.transform.op._mdf=!0,et.transform.op.v=0):et.transform.op._mdf=!1}$e+=1}this._currentCopies=Qe;var ct=this.o.v,Ct=ct%1,It=ct>0?Math.floor(ct):Math.ceil(ct),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 He,Ne,Ge=0;if(ct>0){for(;Ge<It;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Ge+=1;Ct&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Ct,!1),Ge+=Ct)}else if(ct<0){for(;Ge>It;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Ge-=1;Ct&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Ct,!0),Ge-=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)),Ge!==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]),He=0;He<Ne;He+=1)pe[He]=this.matrix.props[He];this.matrix.reset()}else for(this.matrix.reset(),He=0;He<Ne;He+=1)pe[He]=this.matrix.props[He];Ge+=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=Dt.newElement();pe.c=G.c;var xe,ve,$e,Oe,We,Qe,Mt,Kt,et,ct,Ct,It,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?(We=xe===0?G.v[Jt-1]:G.v[xe-1],Mt=(Qe=Math.sqrt(Math.pow(ve[0]-We[0],2)+Math.pow(ve[1]-We[1],2)))?Math.min(Qe/2,X)/Qe:0,Kt=It=ve[0]+(We[0]-ve[0])*Mt,et=qt=ve[1]-(ve[1]-We[1])*Mt,ct=Kt-(Kt-ve[0])*L,Ct=et-(et-ve[1])*L,pe.setTripleAt(Kt,et,ct,Ct,It,qt,Xe),Xe+=1,We=xe===Jt-1?G.v[0]:G.v[xe+1],Mt=(Qe=Math.sqrt(Math.pow(ve[0]-We[0],2)+Math.pow(ve[1]-We[1],2)))?Math.min(Qe/2,X)/Qe:0,Kt=ct=ve[0]+(We[0]-ve[0])*Mt,et=Ct=ve[1]+(We[1]-ve[1])*Mt,It=Kt-(Kt-ve[0])*L,qt=et-(et-ve[1])*L,pe.setTripleAt(Kt,et,ct,Ct,It,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,We=this.shapes.length,Qe=this.rd.v;if(Qe!==0)for(pe=0;pe<We;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],Qe));$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:Vt(this,0),y:Vt(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=Dt.newElement();if($e.c=G.c,G.c||(ve-=1),ve===0)return $e;var Oe=-1,We=pn.shapeSegment(G,0);cn($e,G,0,X,pe,xe,Oe);for(var Qe=0;Qe<ve;Qe+=1)Oe=Vn($e,We,X,pe,xe,-Oe),We=Qe!==ve-1||G.c?pn.shapeSegment(G,(Qe+1)%ve):null,cn($e,G,Qe+1,X,pe,xe,Oe);return $e},ua.prototype.processShapes=function(G){var X,pe,xe,ve,$e,Oe,We=this.shapes.length,Qe=this.amplitude.v,Mt=Math.max(0,Math.round(this.frequency.v)),Kt=this.pointsType.v;if(Qe!==0)for(pe=0;pe<We;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],Qe,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=Dt.newElement();ve.c=G.c;var $e=G.length();G.c||($e-=1);var Oe,We,Qe,Mt=[];for(Oe=0;Oe<$e;Oe+=1)Qe=pn.shapeSegment(G,Oe),Mt.push(mo(Qe,X));if(!G.c)for(Oe=$e-1;Oe>=0;Oe-=1)Qe=pn.shapeSegmentInverted(G,Oe),Mt.push(mo(Qe,X));Mt=hi(Mt);var Kt=null,et=null;for(Oe=0;Oe<Mt.length;Oe+=1){var ct=Mt[Oe];for(et&&(Kt=Ti(ve,et,ct[0],pe,xe)),et=ct[ct.length-1],We=0;We<ct.length;We+=1)Qe=ct[We],Kt&&lo(Qe.points[0],Kt)?ve.setXYAt(Qe.points[1][0],Qe.points[1][1],"o",ve.length()-1):ve.setTripleAt(Qe.points[0][0],Qe.points[0][1],Qe.points[1][0],Qe.points[1][1],Qe.points[0][0],Qe.points[0][1],ve.length()),ve.setTripleAt(Qe.points[3][0],Qe.points[3][1],Qe.points[3][0],Qe.points[3][1],Qe.points[2][0],Qe.points[2][1],ve.length()),Kt=Qe.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,We=this.shapes.length,Qe=this.amount.v,Mt=this.miterLimit.v,Kt=this.lineJoin;if(Qe!==0)for(pe=0;pe<We;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],Qe,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,We=65039,Qe=8205,Mt=127462,Kt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function ct(gt){var at,Re=gt.split(","),dt=Re.length,bt=[];for(at=0;at<dt;at+=1)Re[at]!=="sans-serif"&&Re[at]!=="monospace"&&bt.push(Re[at]);return bt.join(",")}function Ct(gt,at){var Re=h("span");Re.setAttribute("aria-hidden",!0),Re.style.fontFamily=at;var dt=h("span");dt.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(dt),document.body.appendChild(Re);var bt=dt.offsetWidth;return dt.style.fontFamily=ct(gt)+", "+at,{node:dt,w:bt,parent:Re}}function It(){var gt,at,Re,dt=this.fonts.length,bt=dt;for(gt=0;gt<dt;gt+=1)this.fonts[gt].loaded?bt-=1:this.fonts[gt].fOrigin==="n"||this.fonts[gt].origin===0?this.fonts[gt].loaded=!0:(at=this.fonts[gt].monoCase.node,Re=this.fonts[gt].monoCase.w,at.offsetWidth!==Re?(bt-=1,this.fonts[gt].loaded=!0):(at=this.fonts[gt].sansCase.node,Re=this.fonts[gt].sansCase.w,at.offsetWidth!==Re&&(bt-=1,this.fonts[gt].loaded=!0)),this.fonts[gt].loaded&&(this.fonts[gt].sansCase.parent.parentNode.removeChild(this.fonts[gt].sansCase.parent),this.fonts[gt].monoCase.parent.parentNode.removeChild(this.fonts[gt].monoCase.parent)));bt!==0&&Date.now()-this.initTime<G?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function qt(gt,at){var Re,dt=document.body&&at?"svg":"canvas",bt=Rt(gt);if(dt==="svg"){var mi=le("text");mi.style.fontSize="100px",mi.setAttribute("font-family",gt.fFamily),mi.setAttribute("font-style",bt.style),mi.setAttribute("font-weight",bt.weight),mi.textContent="1",gt.fClass?(mi.style.fontFamily="inherit",mi.setAttribute("class",gt.fClass)):mi.style.fontFamily=gt.fFamily,at.appendChild(mi),Re=mi}else{var qo=new OffscreenCanvas(500,500).getContext("2d");qo.font=bt.style+" "+bt.weight+" 100px "+gt.fFamily,Re=qo}function To(ya){return dt==="svg"?(Re.textContent=ya,Re.getComputedTextLength()):Re.measureText(ya).width}return{measureText:To}}function Jt(gt,at){if(gt){if(this.chars)return this.isLoaded=!0,void(this.fonts=gt.list);if(!document.body)return this.isLoaded=!0,gt.list.forEach((function(Ua){Ua.helper=qt(Ua),Ua.cache={}})),void(this.fonts=gt.list);var Re,dt=gt.list,bt=dt.length,mi=bt;for(Re=0;Re<bt;Re+=1){var qo,To,ya=!0;if(dt[Re].loaded=!1,dt[Re].monoCase=Ct(dt[Re].fFamily,"monospace"),dt[Re].sansCase=Ct(dt[Re].fFamily,"sans-serif"),dt[Re].fPath){if(dt[Re].fOrigin==="p"||dt[Re].origin===3){if((qo=document.querySelectorAll('style[f-forigin="p"][f-family="'+dt[Re].fFamily+'"], style[f-origin="3"][f-family="'+dt[Re].fFamily+'"]')).length>0&&(ya=!1),ya){var Ko=h("style");Ko.setAttribute("f-forigin",dt[Re].fOrigin),Ko.setAttribute("f-origin",dt[Re].origin),Ko.setAttribute("f-family",dt[Re].fFamily),Ko.type="text/css",Ko.innerText="@font-face {font-family: "+dt[Re].fFamily+"; font-style: normal; src: url('"+dt[Re].fPath+"');}",at.appendChild(Ko)}}else if(dt[Re].fOrigin==="g"||dt[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(dt[Re].fPath)!==-1&&(ya=!1);if(ya){var dl=h("link");dl.setAttribute("f-forigin",dt[Re].fOrigin),dl.setAttribute("f-origin",dt[Re].origin),dl.type="text/css",dl.rel="stylesheet",dl.href=dt[Re].fPath,document.body.appendChild(dl)}}else if(dt[Re].fOrigin==="t"||dt[Re].origin===2){for(qo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),To=0;To<qo.length;To+=1)dt[Re].fPath===qo[To].src&&(ya=!1);if(ya){var ha=h("link");ha.setAttribute("f-forigin",dt[Re].fOrigin),ha.setAttribute("f-origin",dt[Re].origin),ha.setAttribute("rel","stylesheet"),ha.setAttribute("href",dt[Re].fPath),at.appendChild(ha)}}}else dt[Re].loaded=!0,mi-=1;dt[Re].helper=qt(dt[Re],at),dt[Re].cache={},this.fonts.push(dt[Re])}mi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Xe(gt){if(gt){this.chars||(this.chars=[]);var at,Re,dt,bt=gt.length,mi=this.chars.length;for(at=0;at<bt;at+=1){for(Re=0,dt=!1;Re<mi;)this.chars[Re].style===gt[at].style&&this.chars[Re].fFamily===gt[at].fFamily&&this.chars[Re].ch===gt[at].ch&&(dt=!0),Re+=1;dt||(this.chars.push(gt[at]),mi+=1)}}}function He(gt,at,Re){for(var dt=0,bt=this.chars.length;dt<bt;){if(this.chars[dt].ch===gt&&this.chars[dt].style===at&&this.chars[dt].fFamily===Re)return this.chars[dt];dt+=1}return(typeof gt=="string"&&gt.charCodeAt(0)!==13||!gt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",gt,at,Re)),X}function Ne(gt,at,Re){var dt=this.getFontByName(at),bt=gt;if(!dt.cache[bt]){var mi=dt.helper;if(gt===" "){var qo=mi.measureText("|"+gt+"|"),To=mi.measureText("||");dt.cache[bt]=(qo-To)/100}else dt.cache[bt]=mi.measureText(gt)/100}return dt.cache[bt]*Re}function Ge(gt){for(var at=0,Re=this.fonts.length;at<Re;){if(this.fonts[at].fName===gt)return this.fonts[at];at+=1}return this.fonts[0]}function mt(gt){var at=0,Re=gt.charCodeAt(0);if(Re>=55296&&Re<=56319){var dt=gt.charCodeAt(1);dt>=56320&&dt<=57343&&(at=1024*(Re-55296)+dt-56320+65536)}return at}function rn(gt,at){var Re=gt.toString(16)+at.toString(16);return et.indexOf(Re)!==-1}function ln(gt){return gt===Qe}function Ot(gt){return gt===We}function co(gt){var at=mt(gt);return at>=Mt&&at<=Kt}function So(gt){return co(gt.substr(0,2))&&co(gt.substr(2,2))}function si(gt){return pe.indexOf(gt)!==-1}function Go(gt,at){var Re=mt(gt.substr(at,2));if(Re!==xe)return!1;var dt=0;for(at+=2;dt<5;){if((Re=mt(gt.substr(at,2)))<$e||Re>Oe)return!1;dt+=1,at+=2}return mt(gt.substr(at,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:He,getFontByName:Ge,measureText:Ne,checkLoadedFonts:It,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,We,Qe,Mt,Kt,et,ct,Ct=this.masksProperties,It=0,qt=[],Jt=H(),Xe="clipPath",He="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",He="mask"),Ct[xe].mode!=="s"&&Ct[xe].mode!=="i"||It!==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(It+=1,Oe.setAttribute("fill",Ct[xe].mode==="s"?"#000000":"#ffffff"),Oe.setAttribute("clip-rule","nonzero"),Ct[xe].x.k!==0?(Xe="mask",He="mask",ct=Ke.getProp(this.element,Ct[xe].x,0,null,this.element),Ne=H(),(Kt=le("filter")).setAttribute("id",Ne),(et=le("feMorphology")).setAttribute("operator","erode"),et.setAttribute("in","SourceGraphic"),et.setAttribute("radius","0"),Kt.appendChild(et),ve.appendChild(Kt),Oe.setAttribute("stroke",Ct[xe].mode==="s"?"#000000":"#ffffff")):(et=null,ct=null),this.storedData[xe]={elem:Oe,x:ct,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},Ct[xe].mode==="i"){Qe=qt.length;var Ge=le("g");for(We=0;We<Qe;We+=1)Ge.appendChild(qt[We]);var mt=le("mask");mt.setAttribute("mask-type","alpha"),mt.setAttribute("id",Jt+"_"+It),mt.appendChild(Oe),ve.appendChild(mt),Ge.setAttribute("mask","url("+p()+"#"+Jt+"_"+It+")"),qt.length=0,qt.push(Ge)}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]);It>0&&(this.maskElement.setAttribute("id",Jt),this.element.maskedElement.setAttribute(He,"url("+p()+"#"+Jt+")"),ve.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}a2.prototype={initTransform:function(){var G=new Et;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 Et;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 Et},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={},NN="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),We=0;for(this.filters=[],X=0;X<ve;X+=1){pe=null;var Qe=G.data.ef[X].ty;XT[Qe]&&(pe=new XT[Qe].effect(Oe,G.effectsManager.effectElements[X],G,NN+We,xe),xe=NN+We,XT[Qe].countsAsEffect&&(We+=1)),pe&&this.filters.push(pe)}We&&(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 nre(G,X){this.elem=G,this.pos=X}function _N(){}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 We=le("mask");We.setAttribute("id",$e),We.setAttribute("mask-type","alpha");var Qe=le("g");We.appendChild(Qe),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"),Qe.setAttribute("filter","url("+p()+"#"+X+")"),Qe.appendChild(et),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Qe.appendChild(xe),JT.maskType||(We.setAttribute("mask-type","luminance"),pe.appendChild(Sy.createAlphaToLuminanceFilter()),ve=le("g"),Qe.appendChild(et),ve.appendChild(this.layerElement),Qe.appendChild(ve)),this.globalData.defs.appendChild(We)}this.matteMasks[G]=$e}return this.matteMasks[G]},setMatte:function(G){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+G+")")}},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},_N.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 nre(G,X))},prepareFrame:function(G){this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)}};var VN={1:"butt",2:"round",3:"square"},HN={1:"miter",2:"round",3:"bevel"};function UN(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 WN(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 QN(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 YN(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 GN(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 qN(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 ire(){this.it=[],this.prevViewData=[],this.gr=le("g")}function ore(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}UN.prototype.setAsAnimated=function(){this._isAnimated=!0},WN.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],QN),g([Pt],YN),g([Pt],GN),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,We=[];for(Oe=4*X.g.p,$e=0;$e<Oe;$e+=4)ve=le("stop"),xe.appendChild(ve),We.push(ve);G.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=We},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 We=H(),Qe=H();$e.setAttribute("id",Qe);var Mt=le(G.t===1?"linearGradient":"radialGradient");Mt.setAttribute("id",We),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()+"#"+We+")"),G.ty==="gs"&&(Oe.setAttribute("stroke-linecap",VN[G.lc||2]),Oe.setAttribute("stroke-linejoin",HN[G.lj||2]),G.lj===1&&Oe.setAttribute("stroke-miterlimit",G.ml)),this.of=Mt,this.ms=$e,this.ost=Kt,this.maskId=Qe,X.msElem=Oe}},g([Pt],ym),g([ym,Pt],qN);var Qn=function(G,X,pe,xe){if(X===0)return"";var ve,$e=G.o,Oe=G.i,We=G.v,Qe=" M"+xe.applyToPointStringified(We[0][0],We[0][1]);for(ve=1;ve<X;ve+=1)Qe+=" C"+xe.applyToPointStringified($e[ve-1][0],$e[ve-1][1])+" "+xe.applyToPointStringified(Oe[ve][0],Oe[ve][1])+" "+xe.applyToPointStringified(We[ve][0],We[ve][1]);return pe&&X&&(Qe+=" C"+xe.applyToPointStringified($e[ve-1][0],$e[ve-1][1])+" "+xe.applyToPointStringified(Oe[0][0],Oe[0][1])+" "+xe.applyToPointStringified(We[0][0],We[0][1]),Qe+="z"),Qe},wr=(function(){var G=new Et,X=new Et;function pe(Kt){switch(Kt.ty){case"fl":return Oe;case"gf":return Qe;case"gs":return We;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,ct){(ct||et.transform.op._mdf)&&et.transform.container.setAttribute("opacity",et.transform.op.v),(ct||et.transform.mProps._mdf)&&et.transform.container.setAttribute("transform",et.transform.mProps.v.to2dCSS())}function ve(){}function $e(Kt,et,ct){var Ct,It,qt,Jt,Xe,He,Ne,Ge,mt,rn,ln=et.styles.length,Ot=et.lvl;for(He=0;He<ln;He+=1){if(Jt=et.sh._mdf||ct,et.styles[He].lvl<Ot){for(Ge=X.reset(),mt=Ot-et.styles[He].lvl,rn=et.transformers.length-1;!Jt&&mt>0;)Jt=et.transformers[rn].mProps._mdf||Jt,mt-=1,rn-=1;if(Jt)for(mt=Ot-et.styles[He].lvl,rn=et.transformers.length-1;mt>0;)Ge.multiply(et.transformers[rn].mProps.v),mt-=1,rn-=1}else Ge=G;if(It=(Ne=et.sh.paths)._length,Jt){for(qt="",Ct=0;Ct<It;Ct+=1)(Xe=Ne.shapes[Ct])&&Xe._length&&(qt+=Qn(Xe,Xe._length,Xe.c,Ge));et.caches[He]=qt}else qt=et.caches[He];et.styles[He].d+=Kt.hd===!0?"":qt,et.styles[He]._mdf=Jt||et.styles[He]._mdf}}function Oe(Kt,et,ct){var Ct=et.style;(et.c._mdf||ct)&&Ct.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||ct)&&Ct.pElem.setAttribute("fill-opacity",et.o.v)}function We(Kt,et,ct){Qe(Kt,et,ct),Mt(Kt,et,ct)}function Qe(Kt,et,ct){var Ct,It,qt,Jt,Xe,He=et.gf,Ne=et.g._hasOpacity,Ge=et.s.v,mt=et.e.v;if(et.o._mdf||ct){var rn=Kt.ty==="gf"?"fill-opacity":"stroke-opacity";et.style.pElem.setAttribute(rn,et.o.v)}if(et.s._mdf||ct){var ln=Kt.t===1?"x1":"cx",Ot=ln==="x1"?"y1":"cy";He.setAttribute(ln,Ge[0]),He.setAttribute(Ot,Ge[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute(ln,Ge[0]),et.of.setAttribute(Ot,Ge[1]))}if(et.g._cmdf||ct){Ct=et.cst;var co=et.g.c;for(qt=Ct.length,It=0;It<qt;It+=1)(Jt=Ct[It]).setAttribute("offset",co[4*It]+"%"),Jt.setAttribute("stop-color","rgb("+co[4*It+1]+","+co[4*It+2]+","+co[4*It+3]+")")}if(Ne&&(et.g._omdf||ct)){var So=et.g.o;for(qt=(Ct=et.g._collapsable?et.cst:et.ost).length,It=0;It<qt;It+=1)Jt=Ct[It],et.g._collapsable||Jt.setAttribute("offset",So[2*It]+"%"),Jt.setAttribute("stop-opacity",So[2*It+1])}if(Kt.t===1)(et.e._mdf||ct)&&(He.setAttribute("x2",mt[0]),He.setAttribute("y2",mt[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",mt[0]),et.of.setAttribute("y2",mt[1])));else if((et.s._mdf||et.e._mdf||ct)&&(Xe=Math.sqrt(Math.pow(Ge[0]-mt[0],2)+Math.pow(Ge[1]-mt[1],2)),He.setAttribute("r",Xe),Ne&&!et.g._collapsable&&et.of.setAttribute("r",Xe)),et.s._mdf||et.e._mdf||et.h._mdf||et.a._mdf||ct){Xe||(Xe=Math.sqrt(Math.pow(Ge[0]-mt[0],2)+Math.pow(Ge[1]-mt[1],2)));var si=Math.atan2(mt[1]-Ge[1],mt[0]-Ge[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+Ge[0],gn=Math.sin(si+et.a.v)*oo+Ge[1];He.setAttribute("fx",Nt),He.setAttribute("fy",gn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",Nt),et.of.setAttribute("fy",gn))}}function Mt(Kt,et,ct){var Ct=et.style,It=et.d;It&&(It._mdf||ct)&&It.dashStr&&(Ct.pElem.setAttribute("stroke-dasharray",It.dashStr),Ct.pElem.setAttribute("stroke-dashoffset",It.dashoffset[0])),et.c&&(et.c._mdf||ct)&&Ct.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||ct)&&Ct.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||ct)&&(Ct.pElem.setAttribute("stroke-width",et.w.v),Ct.msElem&&Ct.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function 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,_N,ky,bi,X5],Xo),Xo.prototype.initSecondaryElement=function(){},Xo.prototype.identityMatrix=new Et,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=[],We=!1;for(pe=0;pe<$e;pe+=1){for(xe=this.stylesList[pe],We=!1,Oe.length=0,G=0;G<ve;G+=1)(X=this.shapes[G]).styles.indexOf(xe)!==-1&&(Oe.push(X),We=X._isAnimated||We);Oe.length>1&&We&&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 WN(G,X),ve=xe.pElem;return G.ty==="st"?pe=new QN(this,G,xe):G.ty==="fl"?pe=new YN(this,G,xe):G.ty==="gf"||G.ty==="gs"?(pe=new(G.ty==="gf"?ym:qN)(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 GN(this,G,xe)),(G.ty==="st"||G.ty==="gs")&&(ve.setAttribute("stroke-linecap",VN[G.lc||2]),ve.setAttribute("stroke-linejoin",HN[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 ire;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 ore(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 UN(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 We,Qe,Mt,Kt,et,ct,Ct=[].concat($e),It=G.length-1,qt=[],Jt=[];for(We=It;We>=0;We-=1){if((ct=this.searchProcessedElement(G[We]))?X[We]=pe[ct-1]:G[We]._render=Oe,G[We].ty==="fl"||G[We].ty==="st"||G[We].ty==="gf"||G[We].ty==="gs"||G[We].ty==="no")ct?X[We].style.closed=G[We].hd:X[We]=this.createStyleElement(G[We],ve),G[We]._render&&X[We].style.pElem.parentNode!==xe&&xe.appendChild(X[We].style.pElem),qt.push(X[We].style);else if(G[We].ty==="gr"){if(ct)for(Mt=X[We].it.length,Qe=0;Qe<Mt;Qe+=1)X[We].prevViewData[Qe]=X[We].it[Qe];else X[We]=this.createGroupElement(G[We]);this.searchShapes(G[We].it,X[We].it,X[We].prevViewData,X[We].gr,ve+1,Ct,Oe),G[We]._render&&X[We].gr.parentNode!==xe&&xe.appendChild(X[We].gr)}else G[We].ty==="tr"?(ct||(X[We]=this.createTransformElement(G[We],xe)),Kt=X[We].transform,Ct.push(Kt)):G[We].ty==="sh"||G[We].ty==="rc"||G[We].ty==="el"||G[We].ty==="sr"?(ct||(X[We]=this.createShapeElement(G[We],Ct,ve)),this.setElementStyles(X[We])):G[We].ty==="tm"||G[We].ty==="rd"||G[We].ty==="ms"||G[We].ty==="pb"||G[We].ty==="zz"||G[We].ty==="op"?(ct?(et=X[We]).closed=!1:((et=mn.getModifier(G[We].ty)).init(this,G[We]),X[We]=et,this.shapeModifiers.push(et)),Jt.push(et)):G[We].ty==="rp"&&(ct?(et=X[We]).closed=!0:(et=mn.getModifier(G[We].ty),X[We]=et,et.init(this,G,We,X),this.shapeModifiers.push(et),Oe=!1),Jt.push(et));this.addProcessedElement(G[We],We+1)}for(It=qt.length,We=0;We<It;We+=1)qt[We].closed=!0;for(It=Jt.length,We=0;We<It;We+=1)Jt[We].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,We=!1,Qe="";ve<$e;)Oe=We,We=!1,X=G.charCodeAt(ve),Qe=G.charAt(ve),dn.isCombinedCharacter(X)?Oe=!0:X>=55296&&X<=56319?dn.isRegionalFlag(G,ve)?Qe=G.substr(ve,14):(pe=G.charCodeAt(ve+1))>=56320&&pe<=57343&&(dn.isModifier(X,pe)?(Qe=G.substr(ve,2),Oe=!0):Qe=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,We=!0),Oe?(xe[xe.length-1]+=Qe,Oe=!1):xe.push(Qe),ve+=Qe.length;return xe},Qc.prototype.completeTextData=function(G){G.__complete=!0;var X,pe,xe,ve,$e,Oe,We,Qe=this.elem.globalData.fontManager,Mt=this.data,Kt=[],et=0,ct=Mt.m.g,Ct=0,It=0,qt=0,Jt=[],Xe=0,He=0,Ne=Qe.getFontByName(G.f),Ge=0,mt=Rt(Ne);G.fWeight=mt.weight,G.fStyle=mt.style,G.finalSize=G.s,G.finalText=this.buildFinalText(G.t),pe=G.finalText.length,G.finalLineHeight=G.lh;var rn,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),Qe.chars?(We=Qe.getCharData(co[X],Ne.fStyle,Ne.fFamily),Ge=xe?0:We.w*G.finalSize/100):Ge=Qe.measureText(co[X],G.f,G.finalSize),Xe+Ge>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+=Ge,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,Ge=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),He=Xe>He?Xe:He,Xe=-2*ln,ve="",xe=!0,qt+=1):ve=Nt,Qe.chars?(We=Qe.getCharData(Nt,Ne.fStyle,Qe.getFontByName(G.f).fFamily),Ge=xe?0:We.w*G.finalSize/100):Ge=Qe.measureText(ve,G.f,G.finalSize),Nt===" "?gn+=Ge+ln:(Xe+=Ge+ln+gn,gn=0),Kt.push({l:Ge,an:Ge,add:Ct,n:xe,anIndexes:[],val:ve,line:qt,animatorJustifyOffset:0}),ct==2){if(Ct+=Ge,ve===""||ve===" "||X===pe-1){for((ve===""||ve===" ")&&(Ct-=Ge);It<=X;)Kt[It].an=Ct,Kt[It].ind=et,Kt[It].extra=Ge,It+=1;et+=1,Ct=0}}else if(ct==3){if(Ct+=Ge,ve===""||X===pe-1){for(ve===""&&(Ct-=Ge);It<=X;)Kt[It].an=Ct,Kt[It].ind=et,Kt[It].extra=Ge,It+=1;Ct=0,et+=1}}else Kt[et].ind=et,Kt[et].extra=0,et+=1;if(G.l=Kt,He=Xe>He?Xe:He,Jt.push(Xe),G.sz)G.boxWidth=G.sz[0],G.justifyOffset=0;else switch(G.boxWidth=He,G.j){case 1:G.justifyOffset=-G.boxWidth;break;case 2:G.justifyOffset=-G.boxWidth/2;break;default:G.justifyOffset=0}G.lineWidths=Jt;var gt,at,Re=Mt.a;Oe=Re.length;var dt,bt,mi=[];for($e=0;$e<Oe;$e+=1){for((gt=Re[$e]).a.sc&&(G.strokeColorAnim=!0),gt.a.sw&&(G.strokeWidthAnim=!0),(gt.a.fc||gt.a.fh||gt.a.fs||gt.a.fb)&&(G.fillColorAnim=!0),bt=0,dt=gt.s.b,X=0;X<pe;X+=1)(at=Kt[X]).anIndexes[$e]=bt,(dt==1&&at.val!==""||dt==2&&at.val!==""&&at.val!==" "||dt==3&&(at.n||at.val==" "||X==pe-1)||dt==4&&(at.n||X==pe-1))&&(gt.s.rn===1&&mi.push(bt),bt+=1);Mt.a[$e].s.totalChars=bt;var qo,To=-1;if(gt.s.rn===1)for(X=0;X<pe;X+=1)To!=(at=Kt[X]).anIndexes[$e]&&(To=at.anIndexes[$e],qo=mi.splice(Math.floor(Math.random()*mi.length),1)[0]),at.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,We){return new xe($e,Oe)}return xe.prototype={getMult:function($e){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Oe=0,We=0,Qe=1,Mt=1;this.ne.v>0?Oe=this.ne.v/100:We=-this.ne.v/100,this.xe.v>0?Qe=1-this.xe.v/100:Mt=1+this.xe.v/100;var Kt=Le.getBezierEasing(Oe,We,Qe,Mt).get,et=0,ct=this.finalS,Ct=this.finalE,It=this.data.sh;if(It===2)et=Kt(et=Ct===ct?$e>=Ct?1:0:G(0,X(.5/(Ct-ct)+($e-ct)/(Ct-ct),1)));else if(It===3)et=Kt(et=Ct===ct?$e>=Ct?0:1:1-G(0,X(.5/(Ct-ct)+($e-ct)/(Ct-ct),1)));else if(It===4)Ct===ct?et=0:(et=G(0,X(.5/(Ct-ct)+($e-ct)/(Ct-ct),1)))<.5?et*=2:et=1-2*(et-.5),et=Kt(et);else if(It===5){if(Ct===ct)et=0;else{var qt=Ct-ct,Jt=-qt/2+($e=X(G(0,$e+.5-ct),Ct-ct)),Xe=qt/2;et=Math.sqrt(1-Jt*Jt/(Xe*Xe))}et=Kt(et)}else It===6?(Ct===ct?et=0:($e=X(G(0,$e+.5-ct),Ct-ct),et=(1+Math.cos(Math.PI+2*Math.PI*$e/(Ct-ct)))/2),et=Kt(et)):($e>=pe(ct)&&(et=G(0,X($e-ct<0?X(Ct,1)-(ct-$e):Ct-$e,1))),et=Kt(et));if(this.sm.v!==100){var He=.01*this.sm.v;He===0&&(He=1e-8);var Ne=.5-.5*He;et<Ne?et=0:(et=(et-Ne)/He)>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,We=this.o.v/Oe,Qe=this.s.v/Oe+We,Mt=this.e.v/Oe+We;if(Qe>Mt){var Kt=Qe;Qe=Mt,Mt=Kt}this.finalS=Qe,this.finalE=Mt}},g([Pt],xe),{getTextSelectorProp:ve}})();function rre(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 rre(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,We,Qe,Mt,Kt,et,ct,Ct,It,qt,Jt,Xe,He,Ne,Ge,mt=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(Ge=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Go,oo=Ge.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,Ge.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,We=this._pathData.f.v,ct=0,et=1,Mt=0,Kt=!0,qt=Oe.segments,We<0&&Ge.v.c)for(Oe.tLength<Math.abs(We)&&(We=-Math.abs(We)%Oe.tLength),et=(It=qt[ct=qt.length-1].points).length-1;We<0;)We+=It[et].partialLength,(et-=1)<0&&(et=(It=qt[ct-=1].points).length-1);Ct=(It=qt[ct].points)[et-1],Jt=(Qe=It[et]).partialLength}$e=si.length,pe=0,xe=0;var Nt,gn,gt,at,Re=1.2*G.finalSize*.714,dt=!0;gt=rn.length;var bt,mi,qo,To,ya,Ko,dl,ha,Ua,wm,l2,Cm,vm,Gp=-1,cr=We,JS=ct,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<gt;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+=dt?1:0,We=cr,dt=!1,this._hasMaskedPath&&(et=XS,Ct=(It=qt[ct=JS].points)[et-1],Jt=(Qe=It[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:We+=Xe-G.lineWidths[si[ve].line];break;case 2:We+=(Xe-G.lineWidths[si[ve].line])/2}Y8=si[ve].line}Gp!==si[ve].ind&&(si[Gp]&&(We+=si[Gp].extra),We+=si[ve].an/2,Gp=si[ve].ind),We+=mt[0]*si[ve].an*.005;var d2=0;for(gn=0;gn<gt;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&&(We=.5*si[0].an+(Xe-this._pathData.f.v-.5*si[0].an-.5*si[si.length-1].an)*Gp/($e-1),We+=this._pathData.f.v);Kt;)Mt+Jt>=We+d2||!It?(He=(We+d2-Mt)/Qe.partialLength,qo=Ct.point[0]+(Qe.point[0]-Ct.point[0])*He,To=Ct.point[1]+(Qe.point[1]-Ct.point[1])*He,Ot.translate(-mt[0]*si[ve].an*.005,-mt[1]*Re*.01),Kt=!1):It&&(Mt+=Qe.partialLength,(et+=1)>=It.length&&(et=0,qt[ct+=1]?It=qt[ct].points:Ge.v.c?(et=0,It=qt[ct=0].points):(Mt-=Qe.partialLength,It=null)),It&&(Ct=Qe,Jt=(Qe=It[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(-mt[0]*si[ve].an*.005,-mt[1]*Re*.01,0);for(gn=0;gn<gt;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?We+=Nt.t.v*bt[0]:We+=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<gt;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<gt;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<gt;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<gt;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,mt[1]*Re*.01+xe,0),this._pathData.p.v){Ne=(Qe.point[1]-Ct.point[1])/(Qe.point[0]-Ct.point[0]);var G8=180*Math.atan(Ne)/Math.PI;Qe.point[0]<Ct.point[0]&&(G8+=180),Ot.rotate(-G8*Math.PI/180)}Ot.translate(qo,To,0),We-=mt[0]*si[ve].an*.005,si[ve+1]&&Gp!==si[ve+1].ind&&(We+=si[ve].an/2,We+=.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(mt[0]*si[ve].an*.005,mt[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?(at=new Yp(vm,wm,l2,Cm,Pf,nx),this.renderedLetters.push(at),So+=1,this.lettersChangedFlag=!0):(at=this.renderedLetters[ve],this.lettersChangedFlag=at.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 Et,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 sin={shapes:[]};function ex(G,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(G,X,pe)}function are(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 sre(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 We=le("defs");this.svgElement.appendChild(We);var Qe=le("g");this.svgElement.appendChild(Qe),this.layerElement=Qe,this.renderConfig={preserveAspectRatio:X&&X.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:X&&X.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:X&&X.contentVisibility||"visible",progressiveLoad:X&&X.progressiveLoad||!1,hideOnTransparent:!(X&&X.hideOnTransparent===!1),viewBoxOnly:X&&X.viewBoxOnly||!1,viewBoxSize:X&&X.viewBoxSize||!1,className:X&&X.className||"",id:X&&X.id||"",focusable:X&&X.focusable,filterSize:{width:X&&X.filterSize&&X.filterSize.width||"100%",height:X&&X.filterSize&&X.filterSize.height||"100%",x:X&&X.filterSize&&X.filterSize.x||"0%",y:X&&X.filterSize&&X.filterSize.y||"0%"},width:X&&X.width,height:X&&X.height,runExpressions:!X||X.runExpressions===void 0||X.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:We,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([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||[],We=!!this.globalData.fontManager.chars;X=Oe.length;var Qe,Mt=this.mHelper,Kt="",et=this.data.singleShape,ct=0,Ct=0,It=!0,qt=.001*pe.tr*pe.finalSize;if(!et||We||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}),!We||!et||G===0){if(Qe=Xe>G?this.textSpans[G].span:le(We?"g":"text"),Xe<=G){if(Qe.setAttribute("stroke-linecap","butt"),Qe.setAttribute("stroke-linejoin","round"),Qe.setAttribute("stroke-miterlimit","4"),this.textSpans[G].span=Qe,We){var He=le("g");Qe.appendChild(He),this.textSpans[G].childSpan=He}this.textSpans[G].span=Qe,this.layerElement.appendChild(Qe)}Qe.style.display="inherit"}if(Mt.reset(),et&&(Oe[G].n&&(ct=-qt,Ct+=pe.yOffset,Ct+=It?1:0,It=!1),this.applyTextPropertiesToMatrix(pe,Mt,Oe[G].line,ct,Ct),ct+=Oe[G].l||0,ct+=qt),We){var Ne;if((Jt=this.globalData.fontManager.getCharData(pe.finalText[G],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new eL(Jt.data,this.globalData,this);else{var Ge=sin;Jt.data&&Jt.data.shapes&&(Ge=this.buildShapeData(Jt.data,pe.finalSize)),Ne=new Xo(Ge,this.globalData,this)}if(this.textSpans[G].glyph){var mt=this.textSpans[G].glyph;this.textSpans[G].childSpan.removeChild(mt.layerElement),mt.destroy()}this.textSpans[G].glyph=Ne,Ne._debug=!0,Ne.prepareFrame(0),Ne.renderFrame(),this.textSpans[G].childSpan.appendChild(Ne.layerElement),Jt.t===1&&this.textSpans[G].childSpan.setAttribute("transform","scale("+pe.finalSize/100+","+pe.finalSize/100+")")}else et&&Qe.setAttribute("transform","translate("+Mt.props[12]+","+Mt.props[13]+")"),Qe.textContent=Oe[G].val,Qe.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&Qe&&Qe.setAttribute("d",Kt)}else{var rn=this.textContainer,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)(Qe=this.textSpans[G].span||le("tspan")).textContent=Ot[G],Qe.setAttribute("x",0),Qe.setAttribute("y",Ct),Qe.style.display="inherit",rn.appendChild(Qe),this.textSpans[G]||(this.textSpans[G]={span:null,glyph:null}),this.textSpans[G].span=Qe,Ct+=pe.finalLineHeight;this.layerElement.appendChild(rn)}for(;G<this.textSpans.length;)this.textSpans[G].span.style.display="none",G+=1;this._sizeChanged=!0},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],are),are.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 are(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],sre),sre.prototype.createComp=function(G){return new eL(G,this.globalData,this)},he("svg",sre),mn.registerModifier("tm",yt),mn.registerModifier("pb",Bt),mn.registerModifier("rp",ei),mn.registerModifier("rd",Jn),mn.registerModifier("zz",ua),mn.registerModifier("op",fr),Ht})())})(0,ure.exports)),ure.exports}function Fsn(){if(gje)return dre;function e(n){return n instanceof Nke?Nke.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return gje=1,dre=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}},dre}var Rsn=(function(){if(bje)return yje;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}bje=1;var n=e(Osn()),i=B,r=e(i),s=e((mje||(mje=1,hje=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}),hje)),l=e((xje||(xje=1,fje=Fsn()()),fje));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 yje=h})();const Ps=ur(Rsn);var wje,Cje,pre,vje,hre,Aje,mre,Sje,gre,kje,fre,jje,xre,$je,Eje,Ije,Dje,Tje,Lje,Bje,Pje,Mje,Oje,Fje,Rje,zje,Nje,_je,Vje,Hje,yre,Uje,bre,Wje,wre,Qje,Cre,Yje,vre,Gje,qje,Kje,Are,Zje,Sre,Jje,kre,Xje,e$e,t$e,jre,n$e,i$e,o$e,r$e,a$e,s$e,l$e,c$e,d$e,$re,u$e,Ere,p$e,Ire,h$e,m$e,g$e,f$e,x$e,y$e,b$e,Dre,w$e,Tre,C$e,Lre,v$e,Bre,A$e,Pre,S$e,k$e,j$e,Mre,$$e,E$e,I$e,D$e,T$e,L$e,B$e,P$e,M$e,O$e,F$e,Ore,R$e,Fre,z$e,N$e,_$e,V$e,H$e,Rre,U$e,zre,W$e,Nre,Q$e,Y$e,G$e,_re,q$e,Vre,K$e,Z$e,J$e,X$e,eEe,Hre,tEe,Ure,nEe,Wre,iEe,oEe,rEe;function Aee(){return vje||(vje=1,pre=function(e,n){return e===n||e!=e&&n!=n}),pre}function r_(){if(Aje)return hre;Aje=1;var e=Aee();return hre=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},hre}function bG(){if(Ije)return Eje;Ije=1;var e=Cje?wje:(Cje=1,wje=function(){this.__data__=[],this.size=0}),n=(function(){if(Sje)return mre;Sje=1;var c=r_(),d=Array.prototype.splice;return mre=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))},mre})(),i=(function(){if(kje)return gre;kje=1;var c=r_();return gre=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},gre})(),r=(function(){if(jje)return fre;jje=1;var c=r_();return fre=function(d){return c(this.__data__,d)>-1},fre})(),s=(function(){if($je)return xre;$je=1;var c=r_();return xre=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},xre})();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,Eje=l}function aCt(){if(zje)return Rje;zje=1;var e=typeof Rh=="object"&&Rh&&Rh.Object===Object&&Rh;return Rje=e}function b3(){if(_je)return Nje;_je=1;var e=aCt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return Nje=i}function QI(){if(Hje)return Vje;Hje=1;var e=b3().Symbol;return Vje=e}function KD(){if(Qje)return wre;Qje=1;var e=QI(),n=(function(){if(Uje)return yre;Uje=1;var s=QI(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return yre=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},yre})(),i=(function(){if(Wje)return bre;Wje=1;var s=Object.prototype.toString;return bre=function(l){return s.call(l)},bre})(),r=e?e.toStringTag:void 0;return wre=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},wre}function O3(){return Yje||(Yje=1,Cre=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),Cre}function sCt(){if(Gje)return vre;Gje=1;var e=KD(),n=O3();return vre=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},vre}function zsn(){if(Zje)return Are;Zje=1;var e=(function(){if(Kje)return qje;Kje=1;var i=b3()["__core-js_shared__"];return qje=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return Are=function(i){return!!n&&n in i},Are}function lCt(){if(Jje)return Sre;Jje=1;var e=Function.prototype.toString;return Sre=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},Sre}function Wv(){if(n$e)return jre;n$e=1;var e=(function(){if(Xje)return kre;Xje=1;var i=sCt(),r=zsn(),s=O3(),l=lCt(),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 kre=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},kre})(),n=(t$e||(t$e=1,e$e=function(i,r){return i?.[r]}),e$e);return jre=function(i,r){var s=n(i,r);return e(s)?s:void 0},jre}function h8e(){if(o$e)return i$e;o$e=1;var e=Wv()(b3(),"Map");return i$e=e}function a_(){if(a$e)return r$e;a$e=1;var e=Wv()(Object,"create");return r$e=e}function Nsn(){if(g$e)return m$e;g$e=1;var e=(function(){if(l$e)return s$e;l$e=1;var c=a_();return s$e=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(d$e||(d$e=1,c$e=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),c$e),i=(function(){if(u$e)return $re;u$e=1;var c=a_(),d=Object.prototype.hasOwnProperty;return $re=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},$re})(),r=(function(){if(p$e)return Ere;p$e=1;var c=a_(),d=Object.prototype.hasOwnProperty;return Ere=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},Ere})(),s=(function(){if(h$e)return Ire;h$e=1;var c=a_();return Ire=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},Ire})();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,m$e=l}function s_(){if(w$e)return Dre;w$e=1;var e=(b$e||(b$e=1,y$e=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),y$e);return Dre=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},Dre}function m8e(){if(j$e)return k$e;j$e=1;var e=(function(){if(x$e)return f$e;x$e=1;var c=Nsn(),d=bG(),u=h8e();return f$e=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(C$e)return Tre;C$e=1;var c=s_();return Tre=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},Tre})(),i=(function(){if(v$e)return Lre;v$e=1;var c=s_();return Lre=function(d){return c(this,d).get(d)},Lre})(),r=(function(){if(A$e)return Bre;A$e=1;var c=s_();return Bre=function(d){return c(this,d).has(d)},Bre})(),s=(function(){if(S$e)return Pre;S$e=1;var c=s_();return Pre=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},Pre})();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,k$e=l}function g8e(){if(I$e)return E$e;I$e=1;var e=bG(),n=(function(){if(Tje)return Dje;Tje=1;var d=bG();return Dje=function(){this.__data__=new d,this.size=0}})(),i=(Bje||(Bje=1,Lje=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),Lje),r=(Mje||(Mje=1,Pje=function(d){return this.__data__.get(d)}),Pje),s=(Fje||(Fje=1,Oje=function(d){return this.__data__.has(d)}),Oje),l=(function(){if($$e)return Mre;$$e=1;var d=bG(),u=h8e(),p=m8e();return Mre=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},Mre})();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$e=c}function cCt(){if(M$e)return P$e;M$e=1;var e=m8e(),n=(T$e||(T$e=1,D$e=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),D$e),i=(B$e||(B$e=1,L$e=function(s){return this.__data__.has(s)}),L$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,P$e=r}function dCt(){return R$e||(R$e=1,Ore=function(e,n){return e.has(n)}),Ore}function uCt(){if(z$e)return Fre;z$e=1;var e=cCt(),n=(F$e||(F$e=1,O$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}),O$e),i=dCt();return Fre=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},Fre}function pCt(){if(_$e)return N$e;_$e=1;var e=b3().Uint8Array;return N$e=e}function k5e(){return U$e||(U$e=1,Rre=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Rre}function _sn(){if(W$e)return zre;W$e=1;var e=QI(),n=pCt(),i=Aee(),r=uCt(),s=(H$e||(H$e=1,V$e=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),V$e),l=k5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return zre=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},zre}function f8e(){return Q$e||(Q$e=1,Nre=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Nre}function Wu(){if(G$e)return Y$e;G$e=1;var e=Array.isArray;return Y$e=e}function hCt(){if(q$e)return _re;q$e=1;var e=f8e(),n=Wu();return _re=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},_re}function x8e(){return K$e||(K$e=1,Vre=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}),Vre}function mCt(){return J$e?Z$e:(J$e=1,Z$e=function(){return[]})}function y8e(){if(eEe)return X$e;eEe=1;var e=x8e(),n=mCt(),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 X$e=s}function gCt(){return tEe||(tEe=1,Hre=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),Hre}function U7(){return nEe||(nEe=1,Ure=function(e){return e!=null&&typeof e=="object"}),Ure}function b8e(){if(rEe)return oEe;rEe=1;var e=(function(){if(iEe)return Wre;iEe=1;var c=KD(),d=U7();return Wre=function(u){return d(u)&&c(u)=="[object Arguments]"},Wre})(),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 oEe=l}var aEe,sEe,lEe,Qre,cEe,Yre,dEe,Gre,uEe,qre,pEe,Kre={exports:{}};function w8e(){return lEe||(lEe=1,(function(e,n){var i=b3(),r=sEe?aEe:(sEe=1,aEe=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})(Kre,Kre.exports)),Kre.exports}function pz(){if(cEe)return Qre;cEe=1;var e=/^(?:0|[1-9]\d*)$/;return Qre=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},Qre}function C8e(){return dEe?Yre:(dEe=1,Yre=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Yre)}function See(){return pEe||(pEe=1,qre=function(e){return function(n){return e(n)}}),qre}var hEe,mEe,gEe,Zre,fEe,Jre,xEe,Xre,yEe,bEe,wEe,eae,CEe,tae,vEe,nae,AEe,iae,SEe,oae,kEe,jEe,$Ee,EEe,IEe,DEe,TEe,LEe,BEe,PEe,MEe,rae,OEe,aae,FEe,sae,REe,lae={exports:{}};function v8e(){return hEe||(hEe=1,(function(e,n){var i=aCt(),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})(lae,lae.exports)),lae.exports}function fCt(){if(gEe)return mEe;gEe=1;var e=(function(){if(uEe)return Gre;uEe=1;var l=KD(),c=C8e(),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,Gre=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},Gre})(),n=See(),i=v8e(),r=i&&i.isTypedArray,s=r?n(r):e;return mEe=s}function xCt(){if(fEe)return Zre;fEe=1;var e=gCt(),n=b8e(),i=Wu(),r=w8e(),s=pz(),l=fCt(),c=Object.prototype.hasOwnProperty;return Zre=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},Zre}function A8e(){if(xEe)return Jre;xEe=1;var e=Object.prototype;return Jre=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},Jre}function yCt(){return yEe||(yEe=1,Xre=function(e,n){return function(i){return e(n(i))}}),Xre}function Vsn(){if(CEe)return eae;CEe=1;var e=A8e(),n=(function(){if(wEe)return bEe;wEe=1;var r=yCt()(Object.keys,Object);return bEe=r})(),i=Object.prototype.hasOwnProperty;return eae=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},eae}function ZD(){if(vEe)return tae;vEe=1;var e=sCt(),n=C8e();return tae=function(i){return i!=null&&n(i.length)&&!e(i)},tae}function XF(){if(AEe)return nae;AEe=1;var e=xCt(),n=Vsn(),i=ZD();return nae=function(r){return i(r)?e(r):n(r)},nae}function bCt(){if(SEe)return iae;SEe=1;var e=hCt(),n=y8e(),i=XF();return iae=function(r){return e(r,i,n)},iae}function wCt(){if(TEe)return DEe;TEe=1;var e=Wv()(b3(),"Set");return DEe=e}function kee(){if(MEe)return PEe;MEe=1;var e=(function(){if($Ee)return jEe;$Ee=1;var v=Wv()(b3(),"DataView");return jEe=v})(),n=h8e(),i=(function(){if(IEe)return EEe;IEe=1;var v=Wv()(b3(),"Promise");return EEe=v})(),r=wCt(),s=(function(){if(BEe)return LEe;BEe=1;var v=Wv()(b3(),"WeakMap");return LEe=v})(),l=KD(),c=lCt(),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}),PEe=C}function Hsn(){if(OEe)return rae;OEe=1;var e=g8e(),n=uCt(),i=_sn(),r=(function(){if(kEe)return oae;kEe=1;var f=bCt(),x=Object.prototype.hasOwnProperty;return oae=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},oae})(),s=kee(),l=Wu(),c=w8e(),d=fCt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return rae=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))},rae}function S8e(){if(FEe)return aae;FEe=1;var e=Hsn(),n=U7();return aae=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))},aae}var Usn=(function(){if(REe)return sae;REe=1;var e=S8e();return sae=function(n,i){return e(n,i)},sae})();const eo=ur(Usn);var zEe,NEe,cae,_Ee,dae,VEe,uae,HEe,pae,UEe,hae,WEe;function Wsn(){if(VEe)return dae;VEe=1;var e=(function(){if(_Ee)return cae;_Ee=1;var i=/\s/;return cae=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},cae})(),n=/^\s+/;return dae=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},dae}function hz(){if(HEe)return uae;HEe=1;var e=KD(),n=U7();return uae=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},uae}function CCt(){if(UEe)return pae;UEe=1;var e=Wsn(),n=O3(),i=hz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return pae=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},pae}function vCt(){if(WEe)return hae;WEe=1;var e=O3(),n=(function(){if(NEe)return zEe;NEe=1;var l=b3();return zEe=function(){return l.Date.now()}})(),i=CCt(),r=Math.max,s=Math.min;return hae=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},hae}const $s=ur(vCt());var QEe,YEe;function ACt(){return YEe?QEe:(YEe=1,QEe=function(){})}const k8e=ur(ACt());var mae,GEe,qEe,KEe,gae,ZEe,fae,JEe,xae,XEe,yae,eIe,tIe,nIe,bae,iIe,wae,oIe,Cae,rIe;function SCt(){return GEe||(GEe=1,mae=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),mae}function kCt(){if(KEe)return qEe;KEe=1;var e=Wv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return qEe=n}function j8e(){if(ZEe)return gae;ZEe=1;var e=kCt();return gae=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},gae}function $8e(){if(JEe)return fae;JEe=1;var e=j8e(),n=Aee(),i=Object.prototype.hasOwnProperty;return fae=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)},fae}function jM(){if(XEe)return xae;XEe=1;var e=$8e(),n=j8e();return xae=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},xae}function Qsn(){if(iIe)return bae;iIe=1;var e=O3(),n=A8e(),i=(nIe||(nIe=1,tIe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),tIe),r=Object.prototype.hasOwnProperty;return bae=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},bae}function j5e(){if(oIe)return wae;oIe=1;var e=xCt(),n=Qsn(),i=ZD();return wae=function(r){return i(r)?e(r,!0):n(r)},wae}var aIe,sIe,lIe,vae,cIe,dIe,uIe,pIe,hIe,Aae,mIe,Sae,gIe,kae,fIe,jae,xIe,$ae,yIe,Eae,bIe,Iae,wIe,Dae,CIe,Tae,vIe,AIe,SIe,Lae,kIe,Bae,jIe,$Ie,EIe,Pae,IIe,DIe,TIe,Mae,LIe,Oae,BIe,Fae={exports:{}};function E8e(){if(uIe)return dIe;uIe=1;var e=yCt()(Object.getPrototypeOf,Object);return dIe=e}function jCt(){if(hIe)return pIe;hIe=1;var e=f8e(),n=E8e(),i=y8e(),r=mCt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return pIe=s}function I8e(){if(gIe)return Sae;gIe=1;var e=hCt(),n=jCt(),i=j5e();return Sae=function(r){return e(r,i,n)},Sae}function Rae(){if(xIe)return jae;xIe=1;var e=pCt();return jae=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},jae}function Ysn(){if(vIe)return Tae;vIe=1;var e=Rae(),n=(function(){if(yIe)return $ae;yIe=1;var l=Rae();return $ae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},$ae})(),i=(function(){if(bIe)return Eae;bIe=1;var l=/\w*$/;return Eae=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},Eae})(),r=(function(){if(wIe)return Iae;wIe=1;var l=QI(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return Iae=function(u){return d?Object(d.call(u)):{}},Iae})(),s=(function(){if(CIe)return Dae;CIe=1;var l=Rae();return Dae=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},Dae})();return Tae=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)}},Tae}function Gsn(){if(kIe)return Lae;kIe=1;var e=(function(){if(SIe)return AIe;SIe=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 AIe=l})(),n=E8e(),i=A8e();return Lae=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},Lae}function qsn(){if(EIe)return $Ie;EIe=1;var e=(function(){if(jIe)return Bae;jIe=1;var l=kee(),c=U7();return Bae=function(d){return c(d)&&l(d)=="[object Map]"},Bae})(),n=See(),i=v8e(),r=i&&i.isMap,s=r?n(r):e;return $Ie=s}function Ksn(){if(TIe)return DIe;TIe=1;var e=(function(){if(IIe)return Pae;IIe=1;var l=kee(),c=U7();return Pae=function(d){return c(d)&&l(d)=="[object Set]"},Pae})(),n=See(),i=v8e(),r=i&&i.isSet,s=r?n(r):e;return DIe=s}function $Ct(){if(LIe)return Mae;LIe=1;var e=g8e(),n=SCt(),i=$8e(),r=(function(){if(eIe)return yae;eIe=1;var L=jM(),F=XF();return yae=function(N,V){return N&&L(V,F(V),N)},yae})(),s=(function(){if(rIe)return Cae;rIe=1;var L=jM(),F=j5e();return Cae=function(N,V){return N&&L(V,F(V),N)},Cae})(),l=(aIe||(aIe=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}})(Fae,Fae.exports)),Fae.exports),c=(lIe||(lIe=1,sIe=function(L,F){var N=-1,V=L.length;for(F||(F=Array(V));++N<V;)F[N]=L[N];return F}),sIe),d=(function(){if(cIe)return vae;cIe=1;var L=jM(),F=y8e();return vae=function(N,V){return L(N,F(N),V)},vae})(),u=(function(){if(mIe)return Aae;mIe=1;var L=jM(),F=jCt();return Aae=function(N,V){return L(N,F(N),V)},Aae})(),p=bCt(),h=I8e(),g=kee(),f=(function(){if(fIe)return kae;fIe=1;var L=Object.prototype.hasOwnProperty;return kae=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},kae})(),x=Ysn(),y=Gsn(),b=Wu(),w=w8e(),C=qsn(),v=O3(),S=Ksn(),k=XF(),$=j5e(),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,Mae=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},Mae}var Zsn=(function(){if(BIe)return Oae;BIe=1;var e=$Ct();return Oae=function(n){return e(n,5)},Oae})();const es=ur(Zsn);var zae,PIe,Nae,MIe,OIe,FIe,_ae,RIe,zIe,NIe,Vae,_Ie,Hae,VIe,Uae,HIe,Wae,UIe,Qae,WIe,Yae,QIe,Gae,YIe;function D8e(){if(MIe)return Nae;MIe=1;var e=Wu(),n=hz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Nae=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)},Nae}function Jsn(){if(RIe)return _ae;RIe=1;var e=(function(){if(FIe)return OIe;FIe=1;var n=m8e();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,OIe=i})();return _ae=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},_ae}function nS(){return _Ie||(_Ie=1,Vae=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}),Vae}function ECt(){if(VIe)return Hae;VIe=1;var e=QI(),n=nS(),i=Wu(),r=hz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return Hae=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},Hae}function ICt(){if(HIe)return Uae;HIe=1;var e=ECt();return Uae=function(n){return n==null?"":e(n)},Uae}function YI(){if(UIe)return Wae;UIe=1;var e=Wu(),n=D8e(),i=(function(){if(NIe)return zIe;NIe=1;var s=Jsn(),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 zIe=d})(),r=ICt();return Wae=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},Wae}function JD(){if(WIe)return Qae;WIe=1;var e=hz();return Qae=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Qae}function DCt(){if(QIe)return Yae;QIe=1;var e=YI(),n=b8e(),i=Wu(),r=pz(),s=C8e(),l=JD();return Yae=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))},Yae}var Xsn=(function(){if(YIe)return Gae;YIe=1;var e=(function(){if(PIe)return zae;PIe=1;var i=Object.prototype.hasOwnProperty;return zae=function(r,s){return r!=null&&i.call(r,s)},zae})(),n=DCt();return Gae=function(i,r){return i!=null&&n(i,r,e)},Gae})();const hn=ur(Xsn);var GIe,qIe,qae,KIe,Kae,ZIe,Zae,JIe,XIe,eDe,tDe,nDe,Jae,iDe,oDe,rDe,Xae,aDe,sDe,lDe;function XD(){return KIe||(KIe=1,qae=function(e){return e}),qae}function TCt(){return ZIe||(ZIe=1,Kae=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)}),Kae}function LCt(){if(JIe)return Zae;JIe=1;var e=TCt(),n=Math.max;return Zae=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)}},Zae}function eln(){if(nDe)return tDe;nDe=1;var e=(eDe||(eDe=1,XIe=function(s){return function(){return s}}),XIe),n=kCt(),i=XD(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return tDe=r}function BCt(){if(rDe)return oDe;rDe=1;var e=eln(),n=(function(){if(iDe)return Jae;iDe=1;var r=Date.now;return Jae=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)}},Jae})(),i=n(e);return oDe=i}function PCt(){if(aDe)return Xae;aDe=1;var e=XD(),n=LCt(),i=BCt();return Xae=function(r,s){return i(n(r,s,e),r+"")},Xae}var tln=(function(){if(lDe)return sDe;lDe=1;var e=(qIe||(qIe=1,GIe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),GIe),n=PCt()((function(i,r){return e(i,1,r)}));return sDe=n})();const Ni=ur(tln);var ese,cDe,tse,dDe;function mz(){if(cDe)return ese;cDe=1;var e=YI(),n=JD();return ese=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},ese}function MCt(){if(dDe)return tse;dDe=1;var e=mz();return tse=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},tse}const j3=ur(MCt());var nse,uDe,ise,pDe,ose,hDe,rse,mDe;function OCt(){if(uDe)return nse;uDe=1;var e=g8e(),n=S8e();return nse=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},nse}function FCt(){if(pDe)return ise;pDe=1;var e=O3();return ise=function(n){return n==n&&!e(n)},ise}function RCt(){if(hDe)return ose;hDe=1;var e=FCt(),n=XF();return ose=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},ose}var nln=(function(){if(mDe)return rse;mDe=1;var e=OCt(),n=RCt();return rse=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},rse})();const iln=ur(nln);var gDe,fDe,oln=(fDe||(fDe=1,gDe=function(e){return e==null}),gDe);const xDe=ur(oln);var yDe,bDe,ase,wDe,rln=(function(){if(wDe)return ase;wDe=1;var e=(bDe||(bDe=1,yDe=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}),yDe),n=XD();return ase=function(i){return i&&i.length?e(i,n):0},ase})();const aln=ur(rln);var sse,CDe,lse,vDe,cse,ADe,dse,SDe,use,kDe;function T8e(){return CDe||(CDe=1,sse=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}),sse}function zCt(){if(vDe)return lse;vDe=1;var e=Aee(),n=ZD(),i=pz(),r=O3();return lse=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)},lse}function jee(){if(SDe)return dse;SDe=1;var e=(function(){if(ADe)return cse;ADe=1;var n=CCt(),i=1/0;return cse=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},cse})();return dse=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},dse}var sln=(function(){if(kDe)return use;kDe=1;var e=T8e(),n=zCt(),i=jee(),r=Math.ceil,s=Math.max;return use=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},use})();const lln=ur(sln);var jDe,$De,cln=($De||($De=1,jDe=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}),jDe);const dln=ur(cln);var EDe,IDe,DDe,TDe,pse,LDe,hse,BDe,PDe,MDe,mse,ODe,gse,FDe,RDe,zDe;function uln(){if(TDe)return DDe;TDe=1;var e=(IDe||(IDe=1,EDe=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}}),EDe),n=e();return DDe=n}function NCt(){if(LDe)return pse;LDe=1;var e=uln(),n=XF();return pse=function(i,r){return i&&e(i,r,n)},pse}function gz(){if(MDe)return PDe;MDe=1;var e=NCt(),n=(function(){if(BDe)return hse;BDe=1;var r=ZD();return hse=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}},hse})(),i=n(e);return PDe=i}function _Ct(){if(ODe)return mse;ODe=1;var e=XD();return mse=function(n){return typeof n=="function"?n:e},mse}var pln=(zDe||(zDe=1,RDe=(function(){if(FDe)return gse;FDe=1;var e=SCt(),n=gz(),i=_Ct(),r=Wu();return gse=function(s,l){return(r(s)?e:n)(s,i(l))},gse})()),RDe);const hln=ur(pln);var NDe,_De,fse,VDe,xse,HDe,UDe,WDe,yse,QDe,bse,YDe,wse,GDe,Cse,qDe,vse,KDe,Ase,ZDe,JDe,XDe,Sse,eTe;function tTe(){return VDe||(VDe=1,fse=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),fse}function mln(){if(QDe)return yse;QDe=1;var e=(WDe||(WDe=1,UDe=function(i,r){return i!=null&&r in Object(i)}),UDe),n=DCt();return yse=function(i,r){return i!=null&&n(i,r,e)},yse}function L8e(){return GDe||(GDe=1,wse=function(e){return function(n){return n?.[e]}}),wse}function gln(){if(KDe)return vse;KDe=1;var e=L8e(),n=(function(){if(qDe)return Cse;qDe=1;var s=mz();return Cse=function(l){return function(c){return s(c,l)}},Cse})(),i=D8e(),r=JD();return vse=function(s){return i(s)?e(r(s)):n(s)},vse}function _9(){if(ZDe)return Ase;ZDe=1;var e=(function(){if(HDe)return xse;HDe=1;var l=OCt(),c=RCt(),d=tTe();return xse=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)}},xse})(),n=(function(){if(YDe)return bse;YDe=1;var l=S8e(),c=MCt(),d=mln(),u=D8e(),p=FCt(),h=tTe(),g=JD();return bse=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)}},bse})(),i=XD(),r=Wu(),s=gln();return Ase=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},Ase}var fln=(function(){if(eTe)return Sse;eTe=1;var e=(_De||(_De=1,NDe=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}),NDe),n=gz(),i=_9(),r=(XDe||(XDe=1,JDe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),JDe),s=Wu();return Sse=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},Sse})();const $5e=ur(fln);var kse,nTe,jse,iTe,$se,oTe,rTe,aTe;function xln(){if(iTe)return jse;iTe=1;var e=x8e(),n=nS(),i=L8e(),r=gCt(),s=(function(){if(nTe)return kse;nTe=1;var c=ZD(),d=U7();return kse=function(u){return d(u)&&c(u)},kse})(),l=Math.max;return jse=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))}))},jse}var yln=(function(){if(aTe)return rTe;aTe=1;var e=PCt(),n=(function(){if(oTe)return $se;oTe=1;var r=TCt(),s=nS(),l=xln();return $se=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)}))},$se})(),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 rTe=i})();const bln=ur(yln);var Ese,sTe,wln=(function(){if(sTe)return Ese;sTe=1;var e=NCt(),n=_Ct();return Ese=function(i,r){return i&&e(i,n(r))},Ese})();const VCt=ur(wln);var Ise,lTe,Dse,cTe;function HCt(){if(lTe)return Ise;lTe=1;var e=gz(),n=ZD();return Ise=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},Ise}function UCt(){if(cTe)return Dse;cTe=1;var e=nS(),n=_9(),i=HCt(),r=Wu();return Dse=function(s,l){return(r(s)?e:i)(s,n(l,3))},Dse}const $ee=ur(UCt());var Tse,dTe,Lse,uTe,Bse,pTe;function Cln(){if(uTe)return Lse;uTe=1;var e=mz(),n=(function(){if(dTe)return Tse;dTe=1;var r=$8e(),s=YI(),l=pz(),c=O3(),d=JD();return Tse=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},Tse})(),i=YI();return Lse=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},Lse}var vln=(function(){if(pTe)return Bse;pTe=1;var e=nS(),n=_9(),i=Cln(),r=I8e();return Bse=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])}))},Bse})();const nK=ur(vln);var Pse,hTe,Aln=(function(){if(hTe)return Pse;hTe=1;var e=vCt(),n=O3();return Pse=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})},Pse})();const Sln=ur(Aln);var Mse,mTe,Ose,gTe,kln=(function(){if(gTe)return Ose;gTe=1;var e=x8e(),n=(function(){if(mTe)return Mse;mTe=1;var s=gz();return Mse=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},Mse})(),i=_9(),r=Wu();return Ose=function(s,l){return(r(s)?e:n)(s,i(l,3))},Ose})();const jln=ur(kln);var fTe,xTe,Fse,yTe,Rse,bTe,wTe,CTe;function $ln(){if(bTe)return Rse;bTe=1;var e=(xTe||(xTe=1,fTe=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}),fTe),n=(function(){if(yTe)return Fse;yTe=1;var s=gz();return Fse=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Fse})(),i=_9(),r=Wu();return Rse=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Rse}var Eln=(function(){if(CTe)return wTe;CTe=1;var e=j8e(),n=$ln(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return wTe=r})();const Iln=ur(Eln);var vTe,ATe,zse,STe,Nse,kTe,_se,jTe,Vse,$Te;function Dln(){if(kTe)return Nse;kTe=1;var e=(function(){if(STe)return zse;STe=1;var n=hz();return zse=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},zse})();return Nse=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},Nse}function Tln(){if(jTe)return _se;jTe=1;var e=nS(),n=mz(),i=_9(),r=HCt(),s=(ATe||(ATe=1,vTe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),vTe),l=See(),c=Dln(),d=XD(),u=Wu();return _se=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)}))},_se}var Lln=(function(){if($Te)return Vse;$Te=1;var e=Tln(),n=Wu();return Vse=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))},Vse})();const Eee=ur(Lln);var ETe,ITe,Hse,DTe,Use,TTe,Wse,LTe;function Bln(){if(DTe)return Hse;DTe=1;var e=(ITe||(ITe=1,ETe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),ETe),n=jee();return Hse=function(i){return i?e(n(i),0,4294967295):0},Hse}var Pln=(function(){if(LTe)return Wse;LTe=1;var e=(function(){if(TTe)return Use;TTe=1;var i=jee(),r=Bln();return Use=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},Use})(),n=zCt();return Wse=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)):[]},Wse})();const WCt=ur(Pln);var BTe,PTe,Qse,MTe,Yse,OTe,Gse,FTe,qse,RTe;function QCt(){if(OTe)return Yse;OTe=1;var e=YI(),n=(PTe||(PTe=1,BTe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),BTe),i=(function(){if(MTe)return Qse;MTe=1;var l=mz(),c=T8e();return Qse=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Qse})(),r=JD(),s=Object.prototype.hasOwnProperty;return Yse=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))]},Yse}var Mln=(function(){if(RTe)return qse;RTe=1;var e=_9(),n=(function(){if(FTe)return Gse;FTe=1;var i=QCt(),r=pz(),s=Array.prototype.splice;return Gse=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},Gse})();return qse=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},qse})();const iK=ur(Mln);var Kse,zTe,Zse,NTe,Jse,_Te,Xse,VTe,ele,HTe,tle,UTe,WTe,QTe;function Oln(){if(NTe)return Zse;NTe=1;var e=(function(){if(zTe)return Kse;zTe=1;var n=KD(),i=E8e(),r=U7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return Kse=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},Kse})();return Zse=function(n){return e(n)?void 0:n},Zse}function YCt(){if(VTe)return Xse;VTe=1;var e=f8e(),n=(function(){if(_Te)return Jse;_Te=1;var i=QI(),r=b8e(),s=Wu(),l=i?i.isConcatSpreadable:void 0;return Jse=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},Jse})();return Xse=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},Xse}function GCt(){if(HTe)return ele;HTe=1;var e=YCt();return ele=function(n){return n!=null&&n.length?e(n,1):[]},ele}var Fln=(function(){if(QTe)return WTe;QTe=1;var e=nS(),n=$Ct(),i=QCt(),r=YI(),s=jM(),l=Oln(),c=(function(){if(UTe)return tle;UTe=1;var p=GCt(),h=LCt(),g=BCt();return tle=function(f){return g(h(f,void 0,p),f+"")},tle})(),d=I8e(),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 WTe=u})();const B8e=ur(Fln);var nle,YTe,Rln=(function(){if(YTe)return nle;YTe=1;var e=YCt(),n=UCt();return nle=function(i,r){return e(n(i,r),1)},nle})();const qCt=ur(Rln);var GTe,qTe,KTe,ZTe,JTe,XTe,ile,eLe,ole,tLe,nLe,iLe,oLe,rLe,rle,aLe,ale,sLe;function zln(){if(eLe)return ile;eLe=1;var e=(qTe||(qTe=1,GTe=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}),GTe),n=(ZTe||(ZTe=1,KTe=function(r){return r!=r}),KTe),i=(XTe||(XTe=1,JTe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),JTe);return ile=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},ile}function KCt(){if(aLe)return rle;aLe=1;var e=cCt(),n=(function(){if(tLe)return ole;tLe=1;var c=zln();return ole=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},ole})(),i=(iLe||(iLe=1,nLe=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}),nLe),r=dCt(),s=(function(){if(rLe)return oLe;rLe=1;var c=wCt(),d=ACt(),u=k5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return oLe=p})(),l=k5e();return rle=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},rle}var Nln=(function(){if(sLe)return ale;sLe=1;var e=_9(),n=KCt();return ale=function(i,r){return i&&i.length?n(i,e(r,2)):[]},ale})();const _ln=ur(Nln),Vln=ur(GCt());var sle,lLe,Hln=(function(){if(lLe)return sle;lLe=1;var e=KCt();return sle=function(n){return n&&n.length?e(n):[]},sle})();const Uln=ur(Hln);var lle,cLe,cle,dLe,dle,uLe,pLe,hLe,ule,mLe,ple,gLe,fLe,xLe,hle,yLe,mle,bLe,gle,wLe,CLe,vLe;function P8e(){if(uLe)return dle;uLe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return dle=function(n){return e.test(n)},dle}function ZCt(){if(gLe)return ple;gLe=1;var e=(function(){if(hLe)return pLe;hLe=1;var r=L8e()("length");return pLe=r})(),n=P8e(),i=(function(){if(mLe)return ule;mLe=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 ule=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},ule})();return ple=function(r){return n(r)?i(r):e(r)},ple}function Wln(){if(bLe)return mle;bLe=1;var e=(xLe||(xLe=1,fLe=function(r){return r.split("")}),fLe),n=P8e(),i=(function(){if(yLe)return hle;yLe=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 hle=function(b){return b.match(y)||[]},hle})();return mle=function(r){return n(r)?i(r):e(r)},mle}function Qln(){if(wLe)return gle;wLe=1;var e=(function(){if(cLe)return lle;cLe=1;var d=Math.floor;return lle=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},lle})(),n=ECt(),i=(function(){if(dLe)return cle;dLe=1;var d=T8e();return cle=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},cle})(),r=P8e(),s=ZCt(),l=Wln(),c=Math.ceil;return gle=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)},gle}(function(){if(vLe)return CLe;vLe=1;var e=Qln(),n=ZCt(),i=jee(),r=ICt();CLe=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 eR=e=>e.type==="checkbox",fE=e=>e instanceof Date,gp=e=>e==null;const JCt=e=>typeof e=="object";var wd=e=>!gp(e)&&!Array.isArray(e)&&JCt(e)&&!fE(e),XCt=e=>wd(e)&&e.target?eR(e.target)?e.target.checked:e.target.value:e,evt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),M8e=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(M8e&&(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 tvt="blur",Yln="focusout",Gln="change",qln="onBlur",nvt="onChange",ivt="onSubmit",Kln="onTouched",qI="all",Zln="max",Jln="min",Xln="maxLength",ecn="minLength",ALe="pattern",SLe="required",tcn="validate",ovt=B.createContext(null),At=()=>B.useContext(ovt),En=e=>{const{children:n,...i}=e;return B.createElement(ovt.Provider,{value:i},n)};var rvt=(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,avt=(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],svt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||V0(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function Iee(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",lvt=(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,Iee({disabled:l,subject:i._subjects.values,next:h=>{svt(d.current,h.name,c)&&p(Th(lvt(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 O8e=e=>/^\w*$/.test(e),cvt=e=>GI(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Is(e,n,i){let r=-1;const s=O8e(n)?[n]:cvt(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 ncn(e){const n=At(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=evt(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,Iee({disabled:f,next:k=>C.current&&svt(S.current,k.name,y)&&avt(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]),rvt(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:XCt(p),name:i},type:Gln})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:Si(r._formValues,i),name:i},type:tvt})),[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(ncn(e));var icn=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const oK=(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)&&oK(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)}))},fle=(e,n,i={})=>i.shouldFocus||al(i.shouldFocus)?i.focusName||`${e}.${al(i.focusIndex)?n:i.focusIndex}.`:"",E5e=e=>({isOnSubmit:!e||e===ivt,isOnBlur:e===qln,isOnChange:e===nvt,isOnAll:e===qI,isOnTouch:e===Kln}),I5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),dvt=(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",F8e=e=>e.type==="file",Ob=e=>typeof e=="function",rK=e=>{if(!M8e)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},wG=e=>l5(e),R8e=e=>e.type==="radio",aK=e=>e instanceof RegExp;const kLe={value:!1,isValid:!1},jLe={value:!0,isValid:!0};var uvt=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===""?jLe:{value:e[0].value,isValid:!0}:jLe:kLe}return kLe};const $Le={isValid:!1,value:null};var pvt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),$Le):$Le;function ELe(e,n,i="validate"){if(wG(e)||Array.isArray(e)&&e.every(wG)||oI(e)&&!e)return{type:i,message:wG(e)?e:"",ref:n}}var ek=e=>wd(e)&&!aK(e)?e:{value:e,message:""},D5e=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=R8e(l),I=eR(l),E=j||I,D=(b||F8e(l))&&al(l.value)&&al(v)||rK(l)&&l.value===""||v===""||Array.isArray(v)&&!v.length,L=icn.bind(null,y,i,$),F=(N,V,z,T=Xln,M=ecn)=>{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&&!uvt(c).isValid||j&&!pvt(c).isValid)){const{value:N,message:V}=wG(d)?{value:!!d,message:d}:ek(d);if(N&&($[y]={type:SLe,message:V,ref:S,...L(SLe,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,Zln,Jln),!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(aK(N)&&!v.match(N)&&($[y]={type:ALe,message:V,ref:l,...L(ALe,V)},!i))return k(V),$}if(x){if(Ob(x)){const N=ELe(await x(v,n),S);if(N&&($[y]={...N,...L(tcn,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=ELe(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 xle(e,n){return[...e,...V0(n)]}var yle=e=>Array.isArray(e)?e.map((()=>{})):void 0;function ble(e,n,i){return[...e.slice(0,n),...V0(i),...e.slice(n)]}var wle=(e,n,i)=>Array.isArray(e)?(al(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function Cle(e,n){return[...V0(n),...V0(e)]}var vle=(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))),Ale=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Md(e,n){const i=Array.isArray(n)?n:O8e(n)?[n]:cvt(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 ILe=(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),Iee({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,I5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!E5e(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&&D5e(x,i._formValues,i._options.criteriaMode===qI,i._options.shouldUseNativeValidation,!0).then((y=>!L0(y)&&i._subjects.state.next({errors:dvt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&oK(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);Ale(b,x,y),Ale(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,Ale,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);wle(b,x,y),wle(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,wle,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=V0(Th(x)),w=Cle(i._getFieldArray(r),b);i._names.focus=fle(r,0,y),u.current=Cle(u.current,b.map(Dy)),f(w),d(w),i._updateFieldArray(r,w,Cle,{argA:yle(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=V0(Th(x)),w=xle(i._getFieldArray(r),b);i._names.focus=fle(r,w.length-1,y),u.current=xle(u.current,b.map(Dy)),f(w),d(w),i._updateFieldArray(r,w,xle,{argA:yle(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=vle(i._getFieldArray(r),x);u.current=vle(u.current,x),f(y),d(y),i._updateFieldArray(r,y,vle,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=V0(Th(y)),C=ble(i._getFieldArray(r),x,w);i._names.focus=fle(r,x,b),u.current=ble(u.current,x,w.map(Dy)),f(C),d(C),i._updateFieldArray(r,C,ble,{argA:x,argB:yle(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Th(y),w=ILe(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,ILe,{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 Sle(){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 sK=e=>gp(e)||!JCt(e);function uv(e,n){if(sK(e)||sK(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 hvt=e=>e.type==="select-multiple",kle=e=>rK(e)&&e.isConnected,mvt=e=>{for(const n in e)if(Ob(e[n]))return!0;return!1};function lK(e,n={}){const i=Array.isArray(e);if(wd(e)||i)for(const r in e)Array.isArray(e[r])||wd(e[r])&&!mvt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},lK(e[r],n[r])):gp(e[r])||(n[r]=!0);return n}function gvt(e,n,i){const r=Array.isArray(e);if(wd(e)||r)for(const s in e)Array.isArray(e[s])||wd(e[s])&&!mvt(e[s])?al(n)||sK(i[s])?i[s]=Array.isArray(e[s])?lK(e[s],[]):{...lK(e[s])}:gvt(e[s],gp(n)?{}:n[s],i[s]):i[s]=!uv(e[s],n[s]);return i}var jle=(e,n)=>gvt(e,n,lK(n)),fvt=(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 $le(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return F8e(n)?n.files:R8e(n)?pvt(e.refs).value:hvt(n)?[...n.selectedOptions].map((({value:i})=>i)):eR(n)?uvt(e.refs).value:fvt(al(n.value)?e.ref.value:n.value,e)}var nL=e=>al(e)?e:aK(e)?e.source:wd(e)?aK(e.value)?e.value.source:e.value:e;function DLe(e,n,i){const r=Si(e,i);if(r||O8e(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 ocn={mode:ivt,reValidateMode:nvt,shouldFocusError:!0};function rcn(e={},n){let i,r={...ocn,...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:Sle(),array:Sle(),state:Sle()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=E5e(r.mode),b=E5e(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:$le(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 D5e(ee,d,w,r.shouldUseNativeValidation&&!q,se);if(oe[te.name]&&(K.valid=!1,q))break;!q&&(Si(oe,te.name)?se?dvt(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)=>lvt(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,fvt(q,te)),ee=rK(te.ref)&&gp(q)?"":q,hvt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?eR(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)):F8e(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)&&sK(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:jle(c,d),isDirty:E(Y,te)})):!J||J._f||gp(te)?L(Y,te,K):F(Y,te,K),I5e(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?$le(ee._f):XCt(Y),oe=Y.type===tvt||Y.type===Yln,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=I5e(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=DLe(s.errors,l,K),de=DLe(ie,l,ce.name||K);te=de.error,K=de.name,ne=L0(ie)}else te=(await D5e(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&&oK(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,$le(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=>R8e(oe)||eR(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(kle),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)&&(!evt(p.array,Y)||!u.action)&&p.unMount.add(Y)}}},_=()=>r.shouldFocusError&&oK(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(M8e&&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(rK(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?jle(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=>!kle(K))):!kle(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=jle(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={...rcn(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,Iee({subject:s._subjects.state,next:l=>{avt(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=rvt(i,s),n.current}let m5;m5=typeof window<"u"?window:typeof self<"u"?self:x5e;let T5e=null,L5e=null;const Ele=m5.clearTimeout,TLe=m5.setTimeout,Ile=m5.cancelAnimationFrame||m5.mozCancelAnimationFrame||m5.webkitCancelAnimationFrame,LLe=m5.requestAnimationFrame||m5.mozRequestAnimationFrame||m5.webkitRequestAnimationFrame;function acn(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__&&T5e(this.__resizeRAF__),this.__resizeRAF__=L5e((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{}}}}}Ile==null||LLe==null?(T5e=Ele,L5e=function(e){return TLe(e,20)}):(T5e=function([e,n]){Ile(e),Ele(n)},L5e=function(e){const n=LLe((function(){Ele(i),e()})),i=TLe((function(){Ile(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=acn(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 B5e(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 z8e(e,n){if(e){if(typeof e=="string")return B5e(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)?B5e(e,n):void 0}}function BLe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=z8e(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 cK(e,n){return cK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},cK(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&&cK(e,n)}function dK(e){return dK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dK(e)}function xvt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(xvt=function(){return!!e})()}function ja(e){var n=xvt();return function(){var i,r=dK(e);if(n){var s=dK(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 yvt(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 PLe(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,yvt(r.key),r)}}function ca(e,n,i){return n&&PLe(e.prototype,n),i&&PLe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function wi(e,n,i){return(n=yvt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function MLe(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?MLe(Object(i),!0).forEach((function(r){wi(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):MLe(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)||z8e(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 uK(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=uK(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 B5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||z8e(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
  `,r8t=a(st)`
91311
91311
  min-width: 140px;
91312
- `,qF=N8t(Lsn()),hfs=["sandbox","production"],mfs=["development","staging","production"],gfs=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],RI=()=>Fl==="DEV"||Fl==="QA"||Fl==="PUNE"||Fl==="SUNNYVALE"||Fl==="DELHI"||Fl==="MOHALI",Cke="https://zeni-webapp-dev.uc.r.appspot.com",Fl=(e=>ty(e,gfs))("DEV"),X8s=(e=>ty(e,hfs))((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)),a8t=(e=>ty(e,mfs))((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)),ffs=(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 rnn(e,n){return qF.AES.decrypt(e,n).toString(qF.enc.Utf8)}const ann="ZENI-WEB-APP-",vke=Fl==="DEV"||Fl==="QA"?.2:.8,snn=vke,_s={sentryDsn:"",sentryTraceSamplingRate:vke,sentryProfileSamplingRate:snn,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let F5,sz;function xfs(){return F5?.aiCfoMicroServiceBaseUrl!=null?`${F5.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function lnn(e){_s.sentryDsn=e.keys.SENTRY_DSN,_s.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):vke,_s.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):snn,_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,sz=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,sz)}async function s8t(){const e={environment:Fl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${Cke}/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 l8t=!1;function gE(){l8t||(eg.init("63d3a2406505a5737a2b4debdb513f20",{api_host:sz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),l8t=!0)}const yfs=new Set(Array.from(Mi.EVENTS_WITHOUT_SUPER_PROPERTIES));let c8t=!1,d8t=!1;function B9e(){if(c8t)return;c8t=!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 bfs=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function wfs(){const e=(function(){return eg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||bfs.has(i)));for(const i of n)eg.unregister(i);RI()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function u8t(){d8t||(d8t=!0,wfs())}class nI{identify(n,i){if(gE(),this.#t=n,n!=null&&i!=null&&(nI.#e==null||!Krn({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=yfs.has(n);if(this.#t!=null||r){if(B9e(),this.#t!=null){const s={distinct_id:this.#t,...i};eg.track(n,s)}else eg.track(n,i);if(u8t(),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(),B9e(),eg.track(n,i),u8t(),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 P9e=new nI,cnn=new Mi.Analytics(P9e);cnn.trackWithoutUserId=P9e.trackWithoutUserId.bind(P9e);const _0=cnn,Cfs="openAiCfoScope",M9e="openAiCfoScopeOnDashboard";function ews(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[M9e]:!0,...r}})}function tws(e){const n=xee(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 Ake(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 dnn(e,n){return(e||n?.chatSessionSummary)??null}const unn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",nee="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(nee)),!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(nee))}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 qF.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=qF.AES.decrypt(e,n).toString(qF.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=unn;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},nws=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},iws=({state:e})=>Er.isSignedIn()===!0?en.jsx(Din,{}):en.jsx(U8t,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),vfs=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function pnn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of vfs)delete n[i];return n}function Afs(){const e=Sp(),n=Lg(),i=aee(),{tenantEmailDomain:r}=W8t(),[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=>xee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[M9e]!==!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:{...pnn(v),[M9e]: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=Ut(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const v=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(Nwt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return en.jsx(Otn,{open:s,onClose:w,children:en.jsxs(Mtn,{children:[s&&!h?en.jsx(gve,{analytics:_0,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,en.jsx(Wxe,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const O9e=m.createContext(void 0);function Ske(){const e=m.useContext(O9e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const kke=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],jke=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],hnn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],mnn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],gnn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],fnn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],xnn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],ynn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],bnn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function wnn(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 Cnn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],vnn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],Ann=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Sfs=[...hnn,...kke,...jke,"/: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",...Cnn,...vnn,...Ann,...mnn,...gnn,...fnn,...xnn,...ynn,...bnn];function Snn(){const{pathname:e}=Lg(),n=e??"";return Sfs.some((i=>_9e(i,n)!=null))||wnn(e)}function zd(e){const{pathname:n}=Lg(),i=n??"";return e.some((r=>_9e(r,i)!=null))}const ows=27.22,knn=m.createContext(null),jnn={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function kfs({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(knn.Provider,{value:c,children:e})}function $ke(){const e=m.useContext(knn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function jfs(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(ian(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=ean(c);u.length!==0&&(e(tan(u)),e(nan({sourceChatSessionId:n})),n!=null&&e(eje({chatSessionId:n,id:sje(),kind:"creating_cards",createdAt:fn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Xrn(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Xta(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,...Jta(v)}}const y=uX(p.vendorPolicy,"allow"),b=uX(p.vendorPolicy,"block"),w=pX(p.categoryPolicy,"allow"),C=pX(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:hX(p.limits,CSe),spendLimits:{transaction:hX(p.limits,wSe)}}})({values:c});e(Jrn({templates:[u],sourceChatSessionId:n})),n!=null&&e(eje({chatSessionId:n,id:sje(),kind:"creating_policy",createdAt:fn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Zrn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(_wt())}:void 0}}const $fs=e=>han(e,!1),Efs=e=>pan(e.name,!1);function Ifs(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=oan(r),l=ran(r),c=aan(r),{creditAccount:d}=san(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map($fs),cardPolicyVendorSearchOptions:l.map(Efs),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:uan(r),cardPolicyUploadedFileName:dan(r),cardPolicyFormDraft:can(e.createCardPolicyState),cardsCreationFormDraft:lan(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const Dfs=e=>{const n=ae.currencyFormatter(0);return i=>{const r=gan(e.chargeCardState,i);if(r==null)return;const s=fan(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}}},Tfs=e=>n=>{const i=man(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 Lfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoAnswerExportEnabled);return n&&F5?.aiCfoMicroServiceBaseUrl!=null?`${F5.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function Bfs({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}}),Zq),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(xan()),n(tje()),n(yan("cardHolderCandidate",!1)),n(ban(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(wan())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(_wt())}),[n,l]);const h=m.useMemo((()=>Tsn((x=>{n(tje(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Rr((x=>Can(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),Zq);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const $nn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],Enn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],Pfs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],Mfs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],Ofs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Ffs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Rfs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Inn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Dnn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],zfs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function Eke(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":zfs.includes(r)?r:null}const Nfs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),_fs=new Set(["setup","verification","promo","approval-rules"]);function Fh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Ike(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 Tnn(e,n,i){const r=Fh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Lnn(e,n,i){return Tnn(e,n,(r=>!i.has(r)))}function Bnn(e){return Lnn(e,"bills",Nfs)}function Pnn(e){return Lnn(e,"reimbursements",_fs)}function Dke(e){return Tnn(e,"tasks",(n=>n==="group"))}const Vfs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),Hfs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Tke(e){const n=Fh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return Vfs.has(i)?"checking":"checking_details"}function Lke(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 Hfs.has(i)?"cards":"cards_detail"}function Mnn(e){const n=Fh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Onn(e){return Fh(e)[1]==="performance"?"performance":void 0}function Fnn(e){const n=Fh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Rnn(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=>_9e(i,e)!=null))}function Ufs(e){return T2(e,kke)?"reports":T2(e,$nn)?"ap_aging":T2(e,Enn)?"ar_aging":Ike(e)!=null?"vendors_tab":T2(e,jke)?"forecast":Eke(e)!=null?"month_end_close_review":T2(e,Inn)?"cash_balance":T2(e,Dnn)?"card_balance":Dke(e)?"task_checklist":Mnn(e)!=null?"transaction_detail":Onn(e)!=null?"performance":Fnn(e)!=null?"bills_detail":Rnn(e)!=null?"reimbursement_detail":Bnn(e)?"bills_list":Pnn(e)?"reimbursement_list":T2(e,Pfs)?"cash_in_cash_out":T2(e,Mfs)?"operating_expenses":T2(e,Ofs)?"revenue":T2(e,Ffs)?"net_burn_or_income":T2(e,Rfs)?"cash_position":(function(n){const i=Fh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Tke(e)!=null?"checking":(function(n){return Fh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Lke(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 znn(e,n){switch(Ufs(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 Ike(e);case"forecast":return"forecast";case"month_end_close_review":{const i=Eke(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 Tke(e);case"treasury":return"treasury";case"cards":return Lke(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Nnn(){const{pathname:e}=Lg(),n=e??"",i=Rr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>znn(n,{selectedReportId:i})),[n,i])}function Bke(){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 Wfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoNavButtonEnabled),i=Bke();return n&&i}const _nn=m.createContext(void 0),Qfs=({children:e})=>{const{tenantEmailDomain:n}=W8t(),i=n!=null?Er.getSignedInUserTenant(n):void 0,r=Rr((u=>Dp(u))),s=yee().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return en.jsx(_nn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},Yfs=()=>{const e=m.useContext(_nn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function Vnn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Hnn(e){const{areTenantIdsInSync:n}=Yfs(),i=Bke(),r=Wfs();return n&&e&&r&&i}function rws(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Sp(),s=Q8t(),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=s8e(s.getState(),d)?.fetchState;Vnn(u,c)&&r(Hwt({pageContext:d}))}}),[i,r,n,s])}function Unn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Sp(),c=Q8t(),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=s8e(c.getState(),i)?.fetchState;Vnn(g,p||h)&&l(Hwt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Hnn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function aws(e){Unn({pageContext:Nnn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Gfs,sampleQuestion2:qfs,sampleQuestion3:Kfs}}=ae.getLocalizedStrings().aiCfo,Zfs=[Gfs,qfs,Kfs];function Jfs(e,n=!1){Unn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Hnn(!0),r=Rr((g=>e!=null&&e!==""?s8e(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:[...Zfs]),[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 Xfs({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(nee,l);const c=d=>{d.key===unn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(nee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Er.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Wnn=m.createContext(void 0),iee=()=>m.useContext(Wnn),p8t=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},e4s=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){p8t(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 jan(_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=yee();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),Qwt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),p8t(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),en.jsx(Wnn.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 t4s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Qnn=e=>n=>{const i=iee(),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]=t4s(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})},sws=210;function lws(e){return e?.data.unread!=null&&e?.mode!=null}const Pke=e=>hsi.includes(e),Mke=e=>lPt.includes(e),Oke=e=>msi.includes(e),n4s={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"},i4s=e=>{if(Oke(e)){const n=n4s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return Pke(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Dve(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Mke(e)?`ai-cfo/${e}`:e},o4s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],cws=e=>{if(Pke(e)||Mke(e)||Oke(e))return!0;const n=i4s(e).split("/")[0];return!o4s.includes(n)},h8t=(e,n)=>e.includes(n),m8t=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(h8t(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&&Dve(s)?psi(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of lPt)if(h8t(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function r4s(e){let n=m8t(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=m8t(i[r])}return n??"home"}function dws(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function uws(e){return e.pathname.split("/")[2]==="invoicing"}function pws(e){return e.pathname.includes("ai-cfo")}function hws(e,n){const i=r4s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":Oke(i)?`invoicing/${i.replace("invoicing_","")}`:Pke(i)?"settings/my_profile":Mke(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Dve(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function a4s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(Ywt(r.tenantId)),e(Gwt(s.userId,r.tenantId,s.zeniSessionId))),_0.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function s4s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Sp(),u=aee(),p=Lg(),{setLoading:h}=$ke(),g=Er.getSignedInUser(),f=dz(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"?$an(O):[])),k=Rr((O=>e?.tenantId!=null?Ean(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(w5e());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(w5e()),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(Vwt({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(jnn.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;a4s({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(l4s,{children:[en.jsxs(c4s,{children:[en.jsx(jRt,{}),en.jsx(_Rt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),en.jsx(d4s,{children:en.jsx(IRt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),en.jsxs(u4s,{children:[g!=null&&en.jsx(Jz,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:V}),en.jsx(p4s,{onClick:z,children:en.jsx(h4s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const l4s=a.div`
91312
+ `,qF=N8t(Lsn()),hfs=["sandbox","production"],mfs=["development","staging","production"],gfs=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],RI=()=>Fl==="DEV"||Fl==="QA"||Fl==="PUNE"||Fl==="SUNNYVALE"||Fl==="DELHI"||Fl==="MOHALI",Cke="https://zeni-webapp-qa.uc.r.appspot.com",Fl=(e=>ty(e,gfs))("QA"),X8s=(e=>ty(e,hfs))((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)),a8t=(e=>ty(e,mfs))((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)),ffs=(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 rnn(e,n){return qF.AES.decrypt(e,n).toString(qF.enc.Utf8)}const ann="ZENI-WEB-APP-",vke=Fl==="DEV"||Fl==="QA"?.2:.8,snn=vke,_s={sentryDsn:"",sentryTraceSamplingRate:vke,sentryProfileSamplingRate:snn,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let F5,sz;function xfs(){return F5?.aiCfoMicroServiceBaseUrl!=null?`${F5.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function lnn(e){_s.sentryDsn=e.keys.SENTRY_DSN,_s.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):vke,_s.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):snn,_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,sz=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,sz)}async function s8t(){const e={environment:Fl},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${Cke}/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 l8t=!1;function gE(){l8t||(eg.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:sz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),l8t=!0)}const yfs=new Set(Array.from(Mi.EVENTS_WITHOUT_SUPER_PROPERTIES));let c8t=!1,d8t=!1;function B9e(){if(c8t)return;c8t=!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 bfs=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function wfs(){const e=(function(){return eg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||bfs.has(i)));for(const i of n)eg.unregister(i);RI()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function u8t(){d8t||(d8t=!0,wfs())}class nI{identify(n,i){if(gE(),this.#t=n,n!=null&&i!=null&&(nI.#e==null||!Krn({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=yfs.has(n);if(this.#t!=null||r){if(B9e(),this.#t!=null){const s={distinct_id:this.#t,...i};eg.track(n,s)}else eg.track(n,i);if(u8t(),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(),B9e(),eg.track(n,i),u8t(),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 P9e=new nI,cnn=new Mi.Analytics(P9e);cnn.trackWithoutUserId=P9e.trackWithoutUserId.bind(P9e);const _0=cnn,Cfs="openAiCfoScope",M9e="openAiCfoScopeOnDashboard";function ews(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[M9e]:!0,...r}})}function tws(e){const n=xee(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 Ake(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 dnn(e,n){return(e||n?.chatSessionSummary)??null}const unn="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",nee="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(nee)),!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(nee))}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 qF.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=qF.AES.decrypt(e,n).toString(qF.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=unn;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},nws=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},iws=({state:e})=>Er.isSignedIn()===!0?en.jsx(Din,{}):en.jsx(U8t,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),vfs=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function pnn(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of vfs)delete n[i];return n}function Afs(){const e=Sp(),n=Lg(),i=aee(),{tenantEmailDomain:r}=W8t(),[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=>xee(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[M9e]!==!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:{...pnn(v),[M9e]: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=Ut(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const v=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(Nwt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return en.jsx(Otn,{open:s,onClose:w,children:en.jsxs(Mtn,{children:[s&&!h?en.jsx(gve,{analytics:_0,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,en.jsx(Wxe,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const O9e=m.createContext(void 0);function Ske(){const e=m.useContext(O9e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const kke=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],jke=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],hnn=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],mnn=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],gnn=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],fnn=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],xnn=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],ynn=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],bnn=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function wnn(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 Cnn=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],vnn=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],Ann=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Sfs=[...hnn,...kke,...jke,"/: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",...Cnn,...vnn,...Ann,...mnn,...gnn,...fnn,...xnn,...ynn,...bnn];function Snn(){const{pathname:e}=Lg(),n=e??"";return Sfs.some((i=>_9e(i,n)!=null))||wnn(e)}function zd(e){const{pathname:n}=Lg(),i=n??"";return e.some((r=>_9e(r,i)!=null))}const ows=27.22,knn=m.createContext(null),jnn={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function kfs({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(knn.Provider,{value:c,children:e})}function $ke(){const e=m.useContext(knn);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function jfs(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(ian(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=ean(c);u.length!==0&&(e(tan(u)),e(nan({sourceChatSessionId:n})),n!=null&&e(eje({chatSessionId:n,id:sje(),kind:"creating_cards",createdAt:fn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(Xrn(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Xta(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,...Jta(v)}}const y=uX(p.vendorPolicy,"allow"),b=uX(p.vendorPolicy,"block"),w=pX(p.categoryPolicy,"allow"),C=pX(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:hX(p.limits,CSe),spendLimits:{transaction:hX(p.limits,wSe)}}})({values:c});e(Jrn({templates:[u],sourceChatSessionId:n})),n!=null&&e(eje({chatSessionId:n,id:sje(),kind:"creating_policy",createdAt:fn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Zrn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(_wt())}:void 0}}const $fs=e=>han(e,!1),Efs=e=>pan(e.name,!1);function Ifs(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=oan(r),l=ran(r),c=aan(r),{creditAccount:d}=san(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map($fs),cardPolicyVendorSearchOptions:l.map(Efs),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:uan(r),cardPolicyUploadedFileName:dan(r),cardPolicyFormDraft:can(e.createCardPolicyState),cardsCreationFormDraft:lan(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const Dfs=e=>{const n=ae.currencyFormatter(0);return i=>{const r=gan(e.chargeCardState,i);if(r==null)return;const s=fan(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}}},Tfs=e=>n=>{const i=man(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 Lfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoAnswerExportEnabled);return n&&F5?.aiCfoMicroServiceBaseUrl!=null?`${F5.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function Bfs({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}}),Zq),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(xan()),n(tje()),n(yan("cardHolderCandidate",!1)),n(ban(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(wan())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(_wt())}),[n,l]);const h=m.useMemo((()=>Tsn((x=>{n(tje(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Rr((x=>Can(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),Zq);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const $nn=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],Enn=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],Pfs=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],Mfs=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],Ofs=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Ffs=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Rfs=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Inn=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Dnn=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],zfs=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function Eke(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":zfs.includes(r)?r:null}const Nfs=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),_fs=new Set(["setup","verification","promo","approval-rules"]);function Fh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Ike(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 Tnn(e,n,i){const r=Fh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Lnn(e,n,i){return Tnn(e,n,(r=>!i.has(r)))}function Bnn(e){return Lnn(e,"bills",Nfs)}function Pnn(e){return Lnn(e,"reimbursements",_fs)}function Dke(e){return Tnn(e,"tasks",(n=>n==="group"))}const Vfs=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),Hfs=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Tke(e){const n=Fh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return Vfs.has(i)?"checking":"checking_details"}function Lke(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 Hfs.has(i)?"cards":"cards_detail"}function Mnn(e){const n=Fh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Onn(e){return Fh(e)[1]==="performance"?"performance":void 0}function Fnn(e){const n=Fh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Rnn(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=>_9e(i,e)!=null))}function Ufs(e){return T2(e,kke)?"reports":T2(e,$nn)?"ap_aging":T2(e,Enn)?"ar_aging":Ike(e)!=null?"vendors_tab":T2(e,jke)?"forecast":Eke(e)!=null?"month_end_close_review":T2(e,Inn)?"cash_balance":T2(e,Dnn)?"card_balance":Dke(e)?"task_checklist":Mnn(e)!=null?"transaction_detail":Onn(e)!=null?"performance":Fnn(e)!=null?"bills_detail":Rnn(e)!=null?"reimbursement_detail":Bnn(e)?"bills_list":Pnn(e)?"reimbursement_list":T2(e,Pfs)?"cash_in_cash_out":T2(e,Mfs)?"operating_expenses":T2(e,Ofs)?"revenue":T2(e,Ffs)?"net_burn_or_income":T2(e,Rfs)?"cash_position":(function(n){const i=Fh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Tke(e)!=null?"checking":(function(n){return Fh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Lke(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 znn(e,n){switch(Ufs(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 Ike(e);case"forecast":return"forecast";case"month_end_close_review":{const i=Eke(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 Tke(e);case"treasury":return"treasury";case"cards":return Lke(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Nnn(){const{pathname:e}=Lg(),n=e??"",i=Rr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>znn(n,{selectedReportId:i})),[n,i])}function Bke(){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 Wfs(){const{useFeatureGate:e}=hs(),{isFeatureEnabled:n}=e(gl.isAiCfoNavButtonEnabled),i=Bke();return n&&i}const _nn=m.createContext(void 0),Qfs=({children:e})=>{const{tenantEmailDomain:n}=W8t(),i=n!=null?Er.getSignedInUserTenant(n):void 0,r=Rr((u=>Dp(u))),s=yee().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return en.jsx(_nn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},Yfs=()=>{const e=m.useContext(_nn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function Vnn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Hnn(e){const{areTenantIdsInSync:n}=Yfs(),i=Bke(),r=Wfs();return n&&e&&r&&i}function rws(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Sp(),s=Q8t(),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=s8e(s.getState(),d)?.fetchState;Vnn(u,c)&&r(Hwt({pageContext:d}))}}),[i,r,n,s])}function Unn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Sp(),c=Q8t(),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=s8e(c.getState(),i)?.fetchState;Vnn(g,p||h)&&l(Hwt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Hnn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function aws(e){Unn({pageContext:Nnn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Gfs,sampleQuestion2:qfs,sampleQuestion3:Kfs}}=ae.getLocalizedStrings().aiCfo,Zfs=[Gfs,qfs,Kfs];function Jfs(e,n=!1){Unn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Hnn(!0),r=Rr((g=>e!=null&&e!==""?s8e(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:[...Zfs]),[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 Xfs({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(nee,l);const c=d=>{d.key===unn&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(nee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Er.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Wnn=m.createContext(void 0),iee=()=>m.useContext(Wnn),p8t=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},e4s=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){p8t(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 jan(_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=yee();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),Qwt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),p8t(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),en.jsx(Wnn.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 t4s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Qnn=e=>n=>{const i=iee(),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]=t4s(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})},sws=210;function lws(e){return e?.data.unread!=null&&e?.mode!=null}const Pke=e=>hsi.includes(e),Mke=e=>lPt.includes(e),Oke=e=>msi.includes(e),n4s={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"},i4s=e=>{if(Oke(e)){const n=n4s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return Pke(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Dve(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Mke(e)?`ai-cfo/${e}`:e},o4s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],cws=e=>{if(Pke(e)||Mke(e)||Oke(e))return!0;const n=i4s(e).split("/")[0];return!o4s.includes(n)},h8t=(e,n)=>e.includes(n),m8t=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(h8t(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&&Dve(s)?psi(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of lPt)if(h8t(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function r4s(e){let n=m8t(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=m8t(i[r])}return n??"home"}function dws(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function uws(e){return e.pathname.split("/")[2]==="invoicing"}function pws(e){return e.pathname.includes("ai-cfo")}function hws(e,n){const i=r4s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":Oke(i)?`invoicing/${i.replace("invoicing_","")}`:Pke(i)?"settings/my_profile":Mke(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Dve(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function a4s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(Ywt(r.tenantId)),e(Gwt(s.userId,r.tenantId,s.zeniSessionId))),_0.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function s4s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Sp(),u=aee(),p=Lg(),{setLoading:h}=$ke(),g=Er.getSignedInUser(),f=dz(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"?$an(O):[])),k=Rr((O=>e?.tenantId!=null?Ean(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(w5e());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(w5e()),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(Vwt({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(jnn.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;a4s({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(l4s,{children:[en.jsxs(c4s,{children:[en.jsx(jRt,{}),en.jsx(_Rt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),en.jsx(d4s,{children:en.jsx(IRt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),en.jsxs(u4s,{children:[g!=null&&en.jsx(Jz,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:V}),en.jsx(p4s,{onClick:z,children:en.jsx(h4s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const l4s=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
- `,E4s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser())),i=Sp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Rr((g=>qwt(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(Wan(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return en.jsxs(m.Fragment,{children:[l&&en.jsx(fve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?en.jsx(j4s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},f8t="init-enter",I4s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||f8t);D4s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||f8t,c=T4s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),D4s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),T4s=()=>{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}})),mws=(e,n,i)=>{const r=q9e(e),s=pee(e),l=K9e(i,e);return(n||i||s||r||l)&&Y9e(e.company)},Knn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Znn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Jnn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Xnn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function mc(...e){const n=Fl==="DEV"||Fl==="QA";if(Knn||Znn||Jnn||Xnn)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(Knn||Znn||Jnn||Xnn)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 x8t(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 L4s={dashboard:function(e){return[...x8t()]},reports:x8t,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 y8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,L4s[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 b8t(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=yee(),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 B4s({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=K9e(D,E),F=q9e(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const V=y8t({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((()=>{b8t(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=y8t({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`),b8t(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 P4s({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(B4s,{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 M4s(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 O4s=a0((()=>bd((()=>import("./DefaultTenantHome-DSgsISV-.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),F4s=a0((()=>bd((()=>import("./AppDrawer-t7pXwFsy.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),w8t=a0((()=>bd((()=>import("./ScreenRoutes-BBi6T6TG.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),R4s=a0((()=>bd((()=>import("./ConnectionAuthScreen-DS5u9yD-.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),z4s=a0((()=>bd((()=>import("./SignInScreen-B2i0uaaw.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),N4s=a0((()=>bd((()=>import("./MagicLinkSignInScreen-Bsg6zj8U.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),C8t=a0((()=>bd((()=>import("./NotFoundScreen-DUP1I-Dh.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),_4s=a0((()=>bd((()=>import("./MagicLinkRoutes-DPRx78HI.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),V4s=a0((()=>bd((()=>import("./PaymentLinkScreen-DZH3o71q.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),H4s=a0((()=>bd((()=>import("./WiseConfirmationScreen-BEME5pnv.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),U4s=a0((()=>bd((()=>import("./HubSpotOAuthCallbackScreen-CvYzzQt6.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),W4s=a0((()=>bd((()=>import("./CustomerOnboardingAuthScreen-C7dVHXwO.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),Q4s=a0((()=>bd((()=>import("./SignOutScreen-yXoT_vjf.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),Y4s=a0((()=>bd((()=>import("./OAuthConsentScreen-DMeszvcw.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),G4s=()=>{const e=Lg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=M4s("/",n);return en.jsx(U8t,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function q4s(){const{isOpen:e}=$S(),n=Tli(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Ske(),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 K4s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Er.isSignedIn(),r=Rr((j=>Dp(j))),s=Er.getSignedInUser(),l=i&&dz(s),c=Rr((j=>Qan(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=Snn(),g=Bke(),[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(Yan())}),[u,h]);const S=Lg().pathname.includes("/collect-payment/"),k=en.jsx(Z4s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return en.jsx(hUe,{children:en.jsx(Zgt,{children:en.jsx(O9e.Provider,{value:w,children:k})})});const $=en.jsxs(O9e.Provider,{value:w,children:[en.jsx(q4s,{}),en.jsxs(e5s,{children:[en.jsx(F4s,{tenantEmailDomain:e}),en.jsx(J4s,{children:k})]})]});return en.jsx(hUe,{children:r.tenantId!=null?en.jsx(fpa,{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(Zgt,{children:$})})},Z4s=({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}=$ke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Ske();return m.useEffect((()=>{h(jnn.APP_INITIALIZATION)}),[h]),en.jsx(m.Suspense,{fallback:null,children:en.jsx(P4s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:en.jsxs(Lin,{children:[en.jsx(R1,{path:"/magic_links/*",element:en.jsx(_4s,{})}),en.jsx(R1,{path:"/collect-payment/:namespace/:token",element:en.jsx(V4s,{})}),en.jsx(R1,{path:"/wise/callback/link-account/*",element:en.jsx(H4s,{})}),en.jsx(R1,{path:"/page-not-found",element:en.jsx(C8t,{})}),en.jsx(R1,{path:"/",element:en.jsx(O4s,{})}),en.jsx(R1,{path:"/aicfo",element:en.jsx(G4s,{})}),en.jsx(R1,{path:"/onboarding/auth",element:en.jsx(W4s,{})}),en.jsx(R1,{path:"/:tenantEmailDomain/*",element:en.jsx(n5s,{children:en.jsxs(Qfs,{children:[en.jsxs(i5s,{children:[s!=null?en.jsx(E4s,{}):null,n?en.jsx(w8t,{setTenantEmailDomain:e}):en.jsx(h5e,{children:en.jsx(w8t,{setTenantEmailDomain:e})})]}),i?en.jsxs(en.Fragment,{children:[en.jsx(Afs,{}),en.jsx(o5s,{isOpen:g,children:en.jsx(y4s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),en.jsx(R1,{path:"/signin/auth",element:en.jsx(h5e,{children:en.jsx(z4s,{setTenantEmailDomain:e})})}),en.jsx(R1,{path:"/signin/magic-link",element:en.jsx(h5e,{children:en.jsx(N4s,{})})}),en.jsx(R1,{path:"/signout",element:en.jsx(Q4s,{})}),en.jsx(R1,{path:"/connection/auth",element:en.jsx(R4s,{})}),en.jsx(R1,{path:"/oauth/hubspot/callback",element:en.jsx(U4s,{})}),en.jsx(R1,{path:"/oauth/authorize",element:en.jsx(Y4s,{})}),en.jsx(R1,{path:"*",element:en.jsx(C8t,{})})]})})})},J4s=({children:e})=>{const{isOpen:n,width:i}=$S();return en.jsx(t5s,{commentsDrawerWidth:n?i:0,children:e})},X4s=tS("div")`
91400
+ `,E4s=()=>{const[e,n]=m.useState((()=>Er.getSignedInUser())),i=Sp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Rr((g=>qwt(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(Wan(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return en.jsxs(m.Fragment,{children:[l&&en.jsx(fve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?en.jsx(j4s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},f8t="init-enter",I4s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||f8t);D4s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||f8t,c=T4s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),D4s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),T4s=()=>{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}})),mws=(e,n,i)=>{const r=q9e(e),s=pee(e),l=K9e(i,e);return(n||i||s||r||l)&&Y9e(e.company)},Knn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Znn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),Jnn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Xnn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function mc(...e){const n=Fl==="DEV"||Fl==="QA";if(Knn||Znn||Jnn||Xnn)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(Knn||Znn||Jnn||Xnn)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 x8t(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 L4s={dashboard:function(e){return[...x8t()]},reports:x8t,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 y8t(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,L4s[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 b8t(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=yee(),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 B4s({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=K9e(D,E),F=q9e(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const V=y8t({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((()=>{b8t(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=y8t({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`),b8t(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 P4s({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(B4s,{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 M4s(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 O4s=a0((()=>bd((()=>import("./DefaultTenantHome-Ce1ikxeJ.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),F4s=a0((()=>bd((()=>import("./AppDrawer-D8SXDHW7.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),w8t=a0((()=>bd((()=>import("./ScreenRoutes-CRpMT6hK.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),R4s=a0((()=>bd((()=>import("./ConnectionAuthScreen-cZftaA6r.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),z4s=a0((()=>bd((()=>import("./SignInScreen-B1h6fDcZ.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),N4s=a0((()=>bd((()=>import("./MagicLinkSignInScreen-B26pRkoP.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),C8t=a0((()=>bd((()=>import("./NotFoundScreen-B4NyMy_S.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),_4s=a0((()=>bd((()=>import("./MagicLinkRoutes-B0Iu7C-o.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),V4s=a0((()=>bd((()=>import("./PaymentLinkScreen-cJvP2x_9.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),H4s=a0((()=>bd((()=>import("./WiseConfirmationScreen-yMppxtyO.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),U4s=a0((()=>bd((()=>import("./HubSpotOAuthCallbackScreen-j43aqaSC.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),W4s=a0((()=>bd((()=>import("./CustomerOnboardingAuthScreen-DxeH12hm.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),Q4s=a0((()=>bd((()=>import("./SignOutScreen-DpVEH4Us.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),Y4s=a0((()=>bd((()=>import("./OAuthConsentScreen-DraMDQV_.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),G4s=()=>{const e=Lg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=M4s("/",n);return en.jsx(U8t,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function q4s(){const{isOpen:e}=$S(),n=Tli(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Ske(),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 K4s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Er.isSignedIn(),r=Rr((j=>Dp(j))),s=Er.getSignedInUser(),l=i&&dz(s),c=Rr((j=>Qan(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=Snn(),g=Bke(),[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(Yan())}),[u,h]);const S=Lg().pathname.includes("/collect-payment/"),k=en.jsx(Z4s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return en.jsx(hUe,{children:en.jsx(Zgt,{children:en.jsx(O9e.Provider,{value:w,children:k})})});const $=en.jsxs(O9e.Provider,{value:w,children:[en.jsx(q4s,{}),en.jsxs(e5s,{children:[en.jsx(F4s,{tenantEmailDomain:e}),en.jsx(J4s,{children:k})]})]});return en.jsx(hUe,{children:r.tenantId!=null?en.jsx(fpa,{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(Zgt,{children:$})})},Z4s=({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}=$ke(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Ske();return m.useEffect((()=>{h(jnn.APP_INITIALIZATION)}),[h]),en.jsx(m.Suspense,{fallback:null,children:en.jsx(P4s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:en.jsxs(Lin,{children:[en.jsx(R1,{path:"/magic_links/*",element:en.jsx(_4s,{})}),en.jsx(R1,{path:"/collect-payment/:namespace/:token",element:en.jsx(V4s,{})}),en.jsx(R1,{path:"/wise/callback/link-account/*",element:en.jsx(H4s,{})}),en.jsx(R1,{path:"/page-not-found",element:en.jsx(C8t,{})}),en.jsx(R1,{path:"/",element:en.jsx(O4s,{})}),en.jsx(R1,{path:"/aicfo",element:en.jsx(G4s,{})}),en.jsx(R1,{path:"/onboarding/auth",element:en.jsx(W4s,{})}),en.jsx(R1,{path:"/:tenantEmailDomain/*",element:en.jsx(n5s,{children:en.jsxs(Qfs,{children:[en.jsxs(i5s,{children:[s!=null?en.jsx(E4s,{}):null,n?en.jsx(w8t,{setTenantEmailDomain:e}):en.jsx(h5e,{children:en.jsx(w8t,{setTenantEmailDomain:e})})]}),i?en.jsxs(en.Fragment,{children:[en.jsx(Afs,{}),en.jsx(o5s,{isOpen:g,children:en.jsx(y4s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),en.jsx(R1,{path:"/signin/auth",element:en.jsx(h5e,{children:en.jsx(z4s,{setTenantEmailDomain:e})})}),en.jsx(R1,{path:"/signin/magic-link",element:en.jsx(h5e,{children:en.jsx(N4s,{})})}),en.jsx(R1,{path:"/signout",element:en.jsx(Q4s,{})}),en.jsx(R1,{path:"/connection/auth",element:en.jsx(R4s,{})}),en.jsx(R1,{path:"/oauth/hubspot/callback",element:en.jsx(U4s,{})}),en.jsx(R1,{path:"/oauth/authorize",element:en.jsx(Y4s,{})}),en.jsx(R1,{path:"*",element:en.jsx(C8t,{})})]})})})},J4s=({children:e})=>{const{isOpen:n,width:i}=$S();return en.jsx(t5s,{commentsDrawerWidth:n?i:0,children:e})},X4s=tS("div")`
91401
91401
  display:flex;
91402
91402
  `,e5s=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
  `,A5s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?en.jsxs(y5s,{style:n,children:[en.jsxs(b5s,{children:[en.jsx(fG,{children:en.jsx(Mm,{width:96,height:20})}),en.jsxs(fG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:78,height:16}),en.jsx(Mm,{width:46,height:16})]}),en.jsxs(fG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:110,height:16}),en.jsx(Mm,{width:84,height:16})]}),en.jsxs(fG,{children:[en.jsx(Mm,{width:55,height:12}),en.jsx(Mm,{width:84,height:16}),en.jsx(Mm,{width:64,height:16})]})]}),en.jsxs(w5s,{children:[en.jsxs(C5s,{children:[en.jsx(Mm,{width:106,height:27}),en.jsx(Mm,{width:111,height:32})]}),en.jsx(v5s,{children:en.jsx(x5s,{width:96,height:96})})]})]}):null;function S5s({minDisplayTime:e=0}){const{isLoading:n}=$ke(),[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(A5s,{fetchState:"In-Progress"})}const k5s=()=>{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},S8t="missing-receipts-batch-completed";let R9e=null,z9e=!1;function fws(e,n){if(!n)return R9e=null,void(z9e=!1);R9e=e,z9e=!0}const j5s=()=>{const e=Sp(),{useFeatureGate:n}=hs(),{isFeatureEnabled:i}=n(gl.isReconV3Enabled),r=Rr((l=>Kwt(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 z9e&&R9e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(Wwt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:eos(c)},{variableName:"_transaction_count_",variableValue:String(tos(c))}]})),s.current[l]=d}))}),[r,e,i])},k8t="reconciliation-status-updated",j8t="statement-status-updated",$8t="combined-statement-group-updated";function $5s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function E5s(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(Zwt(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(Jan({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(Jwt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function I5s(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($5s(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(Zwt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Xan({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):Jwt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function D5s(){let e=A8t();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=nsn(F5,n?.userId,n?.zeniSessionId,i,RI(),B5s);C5e();const s=yee();return s.userId!=null&&_0.identify(s.userId,{tenant_id:s.tenantId}),r})(),tin=e,C5e().then((()=>{const n=A8t();n!=null&&(Z6.reset(),g5s(n))})).catch((n=>{console.error("Failed to load feature epics:",n),uin(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 xG=new esn,E8t=()=>{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(Uwe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(V||L==null||!z)return CW;const T=kut(N.users_disabled_for_auto_logout),M=kut(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:Tge(N.heartbeat_interval_minutes,CW.heartbeatIntervalMinutes),idleTimeoutMinutes:Tge(N.idle_timeout_minutes,CW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(_||O),warningDurationSeconds:Tge(N.warning_duration_seconds,CW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(yve,"auto-logout"),sessionStorage.setItem(bve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(wve,String(Date.now())),iF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(aFt(),iF=void 0),s(null),xG.stop(),e(isn()),e(osn(!1)),Er.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return xG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(rsn()),onWarningStart:L=>{_0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{_0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>xG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Rr((L=>asn(L,i.companyId))),u=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(oje())}),[]);const h=Rr((L=>ssn(L)));(()=>{const L=iee(),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(Zan({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(S8t,M),()=>{T.unbind(S8t,M)}}),[L,F,V])})(),(()=>{const L=iee(),F=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isReconV3Enabled),{isFeatureEnabled:z}=N(gl.isReconciliationCombinedStatementEnabled),T=Rr((Y=>Dp(Y)?.companyId)),M=Rr((Y=>Kwt(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=>{E5s(F,Y,ee??{},V===!0,z===!0,U.current)},J=ee=>{I5s(F,Y,ee??{},V===!0,z===!0,U.current)};return q.bind(k8t,K),q.bind(j8t,K),q.bind($8t,J),()=>{q.unbind(k8t,K),q.unbind(j8t,K),q.unbind($8t,J)}}),[L,F,V,z,T,_,W])})(),j5s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>lsn(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(csn(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=z0a(),$=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&&rwt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>m5s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:_0,sentry:pin,authParams:b,resolveDeepLink:E})),[b,E]);return en.jsxs(Ozn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[en.jsx(Ezn,{toolkit:D,children:en.jsxs(RRn,{endPoint:{url:Cke},children:[en.jsx(Nnr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(oje())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),en.jsx(r5s,{...x})]})}),r!=null&&n!=null?en.jsx(tfs,{secondsRemaining:r,onContinueSession:()=>{_0.trackSessionTimeoutClicked("continue",r),xG.continueSession()},onSignOut:()=>{_0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},T5s=()=>{const e=Er.isSignedIn(),n=Rr((c=>Dp(c))).companyId,i=Rr((c=>tsn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=k5s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:a8t,featureClientSecret:_s.featureClientSecret,providerEndPoint:sz.statsigBaseUrl})),[a8t,_s.featureClientSecret,sz.statsigBaseUrl]);return n?en.jsx(gHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:en.jsx(E8t,{})}):en.jsx(E8t,{})},L5s=din((function(){const e=m.useMemo((()=>D5s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{C5e().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(a5s,{children:en.jsx(Bin,{store:e,children:en.jsx(f5s,{value:n,children:en.jsxs(kfs,{children:[en.jsx(S5s,{}),en.jsx(G7n,{children:en.jsx(e4s,{children:en.jsxs(jzn,{children:[r?en.jsx(Lsi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,en.jsx(T5s,{})]})})})]})})})})}));function B5s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const P5s=!!(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}$/)),I8t=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function D8t(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 iin="zeni:env-keys:",oee=`${iin}${Fl}:5.3.89-dev-0af1ea1c9`,T8t="zeni.ai";function M5s(e){return oin(e)}function L8t(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(M5s)}const m5e="o4504609050525696",O5s={SENTRY_DSN:[`${m5e}.ingest.sentry.io`,`${m5e}.ingest.us.sentry.io`,`${m5e}.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"]},F5s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,R5s=["WEB_ENDPOINT"];function oin(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===T8t||n.hostname.endsWith(`.${T8t}`))}const z5s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],N5s=/^[A-Za-z0-9_-]+$/,_5s=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}),V5s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),H5s=/^pk_(live|test)_[A-Za-z0-9]+$/,U5s=/^[A-Za-z0-9_.-]+$/,W5s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function Q5s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!L8t(n.apiEndPoints)||!L8t(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(_5s.some((h=>i[h]==null))||V5s.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(O5s).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=z5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&N5s.test(g)})),u=R5s.every((h=>{const g=l[h];return g==null||(function(f){if(oin(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&F5s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&H5s.test(l.STRIPE_KEY))&&W5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&U5s.test(g)}));return c&&d&&u&&p}function g5e(){try{window.localStorage.removeItem(oee)}catch{}}function Y5s(e){try{window.localStorage.setItem(oee,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(iin)&&r!==oee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function rin(e){if(e==null||e==="")return null;try{const n=JSON.parse(rnn(e,ann+Fl));return Q5s(n)?n:null}catch{return null}}function B8t(e){return rin(e)!=null&&(Y5s(e),!0)}const P8t="zeni-chunk-reload-at",G5s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function M8t(e){try{const n=Number(sessionStorage.getItem(P8t))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(P8t,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let f5e=!1,O8t=null;const F8t="//js.hs-scripts.com/5991084.js",R8t="hs-script-loader",q5s=Er.getSignedInUser(),K5s=q5s?.zeniSessionId;function Z5s(){const e=()=>{const n=_s.sentryDsn?.trim();if(!n)return;const i=_s.sentryProfileSamplingRate>0,r=Fl==="PROD";hin({dsn:n,environment:ffs,tracesSampleRate:_s.sentryTraceSamplingRate,profilesSampleRate:i?_s.sentryProfileSamplingRate:0,integrations:[min(),...i?[gin()]:[],...r?[fin({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)}),xin("session-id",K5s),(function(){if(Kq==null)return;const s=Kq;Kq=void 0;try{if(window.sessionStorage.getItem(z8t)!=null)return;window.sessionStorage.setItem(z8t,s)}catch{}yin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.89-dev-0af1ea1c9"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function ain(){Bsn.createRoot(document.getElementById("root")).render(en.jsx(B.StrictMode,{children:en.jsx(Pin,{children:en.jsx(L5s,{})})})),Z5s()}let Kq;function N9e(e){Kq=e}const z8t="zeni:env-keys-rejection-reported";function J5s(){const e=(function(){try{const i=window.localStorage.getItem(oee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return g5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(g5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=rin(e);return n==null?(N9e("untrusted-or-unreadable"),g5e(),!1):(lnn(n),ain(),!0)}var kC;window.addEventListener("vite:preloadError",(e=>{const n=e;M8t(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return G5s.some((r=>i.includes(r)))})(e.reason)&&M8t(e.reason)})),(async function(){try{if(J5s())return void(async function(){const i=await s8t();typeof i=="string"&&i.length>0&&!B8t(i)&&N9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await s8t(),n=rnn(e,ann+Fl);lnn(JSON.parse(n)),B8t(e)||N9e("network-untrusted-payload"),ain()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):O8t!==null||(O8t=new Promise((e=>{if(f5e)return void e(!0);const n=()=>{f5e?e(!0):(f5e=!0,new Promise(((r,s)=>{if(document.getElementById(R8t))return void r();const l=document.createElement("script");l.id=R8t,l.src=F8t,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${F8t}`)),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;P5s?(e=I8t,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()))})):D8t(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):D8t(I8t)}))}})(),(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,i4s as B,Mke as C,a4s as D,hws as E,o as F,ae as G,yxs as H,Dve as I,a0 as J,rWi as K,jnn as L,Fl as M,g5s as N,Mi as O,iws as P,D7s as Q,A8t as R,r7s as S,_s as T,psi as U,Tn as V,hs as W,T7s as X,Kn as Y,c7s as Z,hxs as _,Ske as a,fbs as a$,U6s as a0,b2i as a1,nws as a2,W6s as a3,Q6s as a4,A4s as a5,gve as a6,x5s as a7,BUo as a8,R as a9,lCo as aA,L7s as aB,A6s as aC,v6s as aD,U5 as aE,gQt as aF,S6s as aG,gxs as aH,iee as aI,t4s as aJ,bbs as aK,wbs as aL,o7s as aM,X6s as aN,s6s as aO,d6s as aP,MAe as aQ,nbs as aR,tbs as aS,c6s as aT,l6s as aU,i7s as aV,cPt as aW,R8s as aX,ybs as aY,gbs as aZ,xbs as a_,Y6s as aa,P8s as ab,F5 as ac,P as ad,mxs as ae,I6s as af,h7s as ag,j6s as ah,I7s as ai,X8s as aj,P7s as ak,Ufs as al,Hnn as am,rws as an,Yfs as ao,Wfs as ap,aws as aq,C7s as ar,vp as as,Cke as at,m8t as au,F9s as av,Kbs as aw,ji as ax,o6s as ay,i6s as az,M4s as b,Xys as b$,e6s as b0,C6s as b1,Oi as b2,Ezn as b3,$6s as b4,J6o as b5,B7s as b6,Dji as b7,WRt as b8,Z6s as b9,$xs as bA,Exs as bB,jxs as bC,RI as bD,ebs as bE,wys as bF,vys as bG,Cys as bH,xys as bI,fys as bJ,Ays as bK,G6s as bL,yys as bM,bys as bN,kys as bO,ks as bP,vbs as bQ,q6s as bR,Bys as bS,Tys as bT,Y8s as bU,b6s as bV,_8s as bW,Fys as bX,Oys as bY,qys as bZ,Gys as b_,K6s as ba,J6s as bb,d7s as bc,Dn as bd,Sa as be,Nnn as bf,_5 as bg,tws as bh,m4s as bi,w7s as bj,v7s as bk,Sbs as bl,Ake as bm,Cfs as bn,a7s as bo,PBi as bp,_Tt as bq,M7s as br,Jfs as bs,Pys as bt,Sxs as bu,Ixs as bv,kCe as bw,kxs as bx,R9s as by,a6s as bz,OMt as c,u6s as c$,Jys as c0,jys as c1,$ys as c2,k6s as c3,E6s as c4,Eys as c5,Iys as c6,Dys as c7,Zys as c8,Kys as c9,E8s as cA,e8s as cB,lt as cC,Y9s as cD,Gi as cE,C8s as cF,q9s as cG,X9s as cH,v8s as cI,u8s as cJ,p8s as cK,h8s as cL,d8s as cM,m8s as cN,c8s as cO,A5s as cP,Bxs as cQ,t6s as cR,n6s as cS,z9s as cT,Lys as cU,Z8s as cV,V8s as cW,h6s as cX,f6s as cY,m6s as cZ,xxs as c_,I8s as ca,$8s as cb,K9s as cc,o8s as cd,Z9s as ce,V9s as cf,W9s as cg,A8s as ch,t8s as ci,x8s as cj,y8s as ck,f8s as cl,Q9s as cm,J9s as cn,L8s as co,D8s as cp,T8s as cq,S8s as cr,n8s as cs,j8s as ct,k8s as cu,i8s as cv,g8s as cw,H9s as cx,B8s as cy,G9s as cz,k5s as d,Mys as d$,p6s as d0,fve as d1,x6s as d2,w6s as d3,nus as d4,mps as d5,z4e as d6,G8s as d7,q8s as d8,K8s as d9,Txs as dA,Lxs as dB,Ubs as dC,Nbs as dD,zbs as dE,$bs as dF,_bs as dG,Cbs as dH,mpa as dI,B9s as dJ,O9s as dK,_9s as dL,N9s as dM,M8s as dN,eos as dO,Cxs as dP,N8s as dQ,z8s as dR,fws as dS,cGi as dT,r6s as dU,Tli as dV,$S as dW,vJt as dX,J8s as dY,W3o as dZ,F8s as d_,Q8s as da,u7s as db,kYt as dc,Fbs as dd,Obs as de,Pbs as df,Rbs as dg,Mbs as dh,H8s as di,Bbs as dj,Lbs as dk,Hbs as dl,jbs as dm,Ibs as dn,Dxs as dp,g6s as dq,lr as dr,wUr as ds,Ebs as dt,Unn as du,Abs as dv,Tbs as dw,kbs as dx,Dbs as dy,Vbs as dz,Bke as e,D9s as e0,qbs as e1,Gbs as e2,Ybs as e3,Lfs as e4,Bfs as e5,xR as e6,Xfs as e7,s4s as e8,pnn as e9,g4s as ea,Wxe as eb,Otn as ec,Mtn as ed,wxs as ee,Ifs as ef,Tfs as eg,Dfs as eh,xfs as ei,jfs as ej,dnn as ek,ows as el,z0a as f,gws as g,mws as h,lws as i,bxs as j,Ut as k,_0 as l,A as m,pws as n,uws as o,HD as p,dws as q,r4s as r,kTi as s,Z6 as t,$ke as u,sws as v,Qnn as w,ews as x,cws as y,Er as z};
91522
+ Please refresh the page to try again.`)}))),e}ae.updateAppLocaleID("en");const xG=new esn,E8t=()=>{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(Uwe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(V||L==null||!z)return CW;const T=kut(N.users_disabled_for_auto_logout),M=kut(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:Tge(N.heartbeat_interval_minutes,CW.heartbeatIntervalMinutes),idleTimeoutMinutes:Tge(N.idle_timeout_minutes,CW.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(_||O),warningDurationSeconds:Tge(N.warning_duration_seconds,CW.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(yve,"auto-logout"),sessionStorage.setItem(bve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(wve,String(Date.now())),iF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(aFt(),iF=void 0),s(null),xG.stop(),e(isn()),e(osn(!1)),Er.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return xG.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(rsn()),onWarningStart:L=>{_0.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{_0.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>xG.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Rr((L=>asn(L,i.companyId))),u=zd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(oje())}),[]);const h=Rr((L=>ssn(L)));(()=>{const L=iee(),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(Zan({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(S8t,M),()=>{T.unbind(S8t,M)}}),[L,F,V])})(),(()=>{const L=iee(),F=Sp(),{useFeatureGate:N}=hs(),{isFeatureEnabled:V}=N(gl.isReconV3Enabled),{isFeatureEnabled:z}=N(gl.isReconciliationCombinedStatementEnabled),T=Rr((Y=>Dp(Y)?.companyId)),M=Rr((Y=>Kwt(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=>{E5s(F,Y,ee??{},V===!0,z===!0,U.current)},J=ee=>{I5s(F,Y,ee??{},V===!0,z===!0,U.current)};return q.bind(k8t,K),q.bind(j8t,K),q.bind($8t,J),()=>{q.unbind(k8t,K),q.unbind(j8t,K),q.unbind($8t,J)}}),[L,F,V,z,T,_,W])})(),j5s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>lsn(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(csn(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=z0a(),$=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&&rwt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>m5s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:_0,sentry:pin,authParams:b,resolveDeepLink:E})),[b,E]);return en.jsxs(Ozn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[en.jsx(Ezn,{toolkit:D,children:en.jsxs(RRn,{endPoint:{url:Cke},children:[en.jsx(Nnr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(oje())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),en.jsx(r5s,{...x})]})}),r!=null&&n!=null?en.jsx(tfs,{secondsRemaining:r,onContinueSession:()=>{_0.trackSessionTimeoutClicked("continue",r),xG.continueSession()},onSignOut:()=>{_0.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},T5s=()=>{const e=Er.isSignedIn(),n=Rr((c=>Dp(c))).companyId,i=Rr((c=>tsn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=k5s(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:a8t,featureClientSecret:_s.featureClientSecret,providerEndPoint:sz.statsigBaseUrl})),[a8t,_s.featureClientSecret,sz.statsigBaseUrl]);return n?en.jsx(gHn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:en.jsx(E8t,{})}):en.jsx(E8t,{})},L5s=din((function(){const e=m.useMemo((()=>D5s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{C5e().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(a5s,{children:en.jsx(Bin,{store:e,children:en.jsx(f5s,{value:n,children:en.jsxs(kfs,{children:[en.jsx(S5s,{}),en.jsx(G7n,{children:en.jsx(e4s,{children:en.jsxs(jzn,{children:[r?en.jsx(Lsi,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,en.jsx(T5s,{})]})})})]})})})})}));function B5s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const P5s=!!(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}$/)),I8t=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function D8t(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 iin="zeni:env-keys:",oee=`${iin}${Fl}:5.3.89-qa-0af1ea1c9`,T8t="zeni.ai";function M5s(e){return oin(e)}function L8t(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(M5s)}const m5e="o4504609050525696",O5s={SENTRY_DSN:[`${m5e}.ingest.sentry.io`,`${m5e}.ingest.us.sentry.io`,`${m5e}.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"]},F5s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,R5s=["WEB_ENDPOINT"];function oin(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===T8t||n.hostname.endsWith(`.${T8t}`))}const z5s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],N5s=/^[A-Za-z0-9_-]+$/,_5s=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}),V5s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),H5s=/^pk_(live|test)_[A-Za-z0-9]+$/,U5s=/^[A-Za-z0-9_.-]+$/,W5s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function Q5s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!L8t(n.apiEndPoints)||!L8t(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(_5s.some((h=>i[h]==null))||V5s.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(O5s).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=z5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&N5s.test(g)})),u=R5s.every((h=>{const g=l[h];return g==null||(function(f){if(oin(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&F5s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&H5s.test(l.STRIPE_KEY))&&W5s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&U5s.test(g)}));return c&&d&&u&&p}function g5e(){try{window.localStorage.removeItem(oee)}catch{}}function Y5s(e){try{window.localStorage.setItem(oee,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(iin)&&r!==oee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function rin(e){if(e==null||e==="")return null;try{const n=JSON.parse(rnn(e,ann+Fl));return Q5s(n)?n:null}catch{return null}}function B8t(e){return rin(e)!=null&&(Y5s(e),!0)}const P8t="zeni-chunk-reload-at",G5s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function M8t(e){try{const n=Number(sessionStorage.getItem(P8t))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(P8t,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let f5e=!1,O8t=null;const F8t="//js.hs-scripts.com/5991084.js",R8t="hs-script-loader",q5s=Er.getSignedInUser(),K5s=q5s?.zeniSessionId;function Z5s(){const e=()=>{const n=_s.sentryDsn?.trim();if(!n)return;const i=_s.sentryProfileSamplingRate>0,r=Fl==="PROD";hin({dsn:n,environment:ffs,tracesSampleRate:_s.sentryTraceSamplingRate,profilesSampleRate:i?_s.sentryProfileSamplingRate:0,integrations:[min(),...i?[gin()]:[],...r?[fin({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)}),xin("session-id",K5s),(function(){if(Kq==null)return;const s=Kq;Kq=void 0;try{if(window.sessionStorage.getItem(z8t)!=null)return;window.sessionStorage.setItem(z8t,s)}catch{}yin("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.3.89-qa-0af1ea1c9"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function ain(){Bsn.createRoot(document.getElementById("root")).render(en.jsx(B.StrictMode,{children:en.jsx(Pin,{children:en.jsx(L5s,{})})})),Z5s()}let Kq;function N9e(e){Kq=e}const z8t="zeni:env-keys-rejection-reported";function J5s(){const e=(function(){try{const i=window.localStorage.getItem(oee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return g5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(g5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=rin(e);return n==null?(N9e("untrusted-or-unreadable"),g5e(),!1):(lnn(n),ain(),!0)}var kC;window.addEventListener("vite:preloadError",(e=>{const n=e;M8t(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return G5s.some((r=>i.includes(r)))})(e.reason)&&M8t(e.reason)})),(async function(){try{if(J5s())return void(async function(){const i=await s8t();typeof i=="string"&&i.length>0&&!B8t(i)&&N9e("refresh-untrusted-payload")})().catch((()=>{}));const e=await s8t(),n=rnn(e,ann+Fl);lnn(JSON.parse(n)),B8t(e)||N9e("network-untrusted-payload"),ain()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):O8t!==null||(O8t=new Promise((e=>{if(f5e)return void e(!0);const n=()=>{f5e?e(!0):(f5e=!0,new Promise(((r,s)=>{if(document.getElementById(R8t))return void r();const l=document.createElement("script");l.id=R8t,l.src=F8t,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${F8t}`)),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;P5s?(e=I8t,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()))})):D8t(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):D8t(I8t)}))}})(),(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,i4s as B,Mke as C,a4s as D,hws as E,o as F,ae as G,yxs as H,Dve as I,a0 as J,rWi as K,jnn as L,Fl as M,g5s as N,Mi as O,iws as P,D7s as Q,A8t as R,r7s as S,_s as T,psi as U,Tn as V,hs as W,T7s as X,Kn as Y,c7s as Z,hxs as _,Ske as a,fbs as a$,U6s as a0,b2i as a1,nws as a2,W6s as a3,Q6s as a4,A4s as a5,gve as a6,x5s as a7,BUo as a8,R as a9,lCo as aA,L7s as aB,A6s as aC,v6s as aD,U5 as aE,gQt as aF,S6s as aG,gxs as aH,iee as aI,t4s as aJ,bbs as aK,wbs as aL,o7s as aM,X6s as aN,s6s as aO,d6s as aP,MAe as aQ,nbs as aR,tbs as aS,c6s as aT,l6s as aU,i7s as aV,cPt as aW,R8s as aX,ybs as aY,gbs as aZ,xbs as a_,Y6s as aa,P8s as ab,F5 as ac,P as ad,mxs as ae,I6s as af,h7s as ag,j6s as ah,I7s as ai,X8s as aj,P7s as ak,Ufs as al,Hnn as am,rws as an,Yfs as ao,Wfs as ap,aws as aq,C7s as ar,vp as as,Cke as at,m8t as au,F9s as av,Kbs as aw,ji as ax,o6s as ay,i6s as az,M4s as b,Xys as b$,e6s as b0,C6s as b1,Oi as b2,Ezn as b3,$6s as b4,J6o as b5,B7s as b6,Dji as b7,WRt as b8,Z6s as b9,$xs as bA,Exs as bB,jxs as bC,RI as bD,ebs as bE,wys as bF,vys as bG,Cys as bH,xys as bI,fys as bJ,Ays as bK,G6s as bL,yys as bM,bys as bN,kys as bO,ks as bP,vbs as bQ,q6s as bR,Bys as bS,Tys as bT,Y8s as bU,b6s as bV,_8s as bW,Fys as bX,Oys as bY,qys as bZ,Gys as b_,K6s as ba,J6s as bb,d7s as bc,Dn as bd,Sa as be,Nnn as bf,_5 as bg,tws as bh,m4s as bi,w7s as bj,v7s as bk,Sbs as bl,Ake as bm,Cfs as bn,a7s as bo,PBi as bp,_Tt as bq,M7s as br,Jfs as bs,Pys as bt,Sxs as bu,Ixs as bv,kCe as bw,kxs as bx,R9s as by,a6s as bz,OMt as c,u6s as c$,Jys as c0,jys as c1,$ys as c2,k6s as c3,E6s as c4,Eys as c5,Iys as c6,Dys as c7,Zys as c8,Kys as c9,E8s as cA,e8s as cB,lt as cC,Y9s as cD,Gi as cE,C8s as cF,q9s as cG,X9s as cH,v8s as cI,u8s as cJ,p8s as cK,h8s as cL,d8s as cM,m8s as cN,c8s as cO,A5s as cP,Bxs as cQ,t6s as cR,n6s as cS,z9s as cT,Lys as cU,Z8s as cV,V8s as cW,h6s as cX,f6s as cY,m6s as cZ,xxs as c_,I8s as ca,$8s as cb,K9s as cc,o8s as cd,Z9s as ce,V9s as cf,W9s as cg,A8s as ch,t8s as ci,x8s as cj,y8s as ck,f8s as cl,Q9s as cm,J9s as cn,L8s as co,D8s as cp,T8s as cq,S8s as cr,n8s as cs,j8s as ct,k8s as cu,i8s as cv,g8s as cw,H9s as cx,B8s as cy,G9s as cz,k5s as d,Mys as d$,p6s as d0,fve as d1,x6s as d2,w6s as d3,nus as d4,mps as d5,z4e as d6,G8s as d7,q8s as d8,K8s as d9,Txs as dA,Lxs as dB,Ubs as dC,Nbs as dD,zbs as dE,$bs as dF,_bs as dG,Cbs as dH,mpa as dI,B9s as dJ,O9s as dK,_9s as dL,N9s as dM,M8s as dN,eos as dO,Cxs as dP,N8s as dQ,z8s as dR,fws as dS,cGi as dT,r6s as dU,Tli as dV,$S as dW,vJt as dX,J8s as dY,W3o as dZ,F8s as d_,Q8s as da,u7s as db,kYt as dc,Fbs as dd,Obs as de,Pbs as df,Rbs as dg,Mbs as dh,H8s as di,Bbs as dj,Lbs as dk,Hbs as dl,jbs as dm,Ibs as dn,Dxs as dp,g6s as dq,lr as dr,wUr as ds,Ebs as dt,Unn as du,Abs as dv,Tbs as dw,kbs as dx,Dbs as dy,Vbs as dz,Bke as e,D9s as e0,qbs as e1,Gbs as e2,Ybs as e3,Lfs as e4,Bfs as e5,xR as e6,Xfs as e7,s4s as e8,pnn as e9,g4s as ea,Wxe as eb,Otn as ec,Mtn as ed,wxs as ee,Ifs as ef,Tfs as eg,Dfs as eh,xfs as ei,jfs as ej,dnn as ek,ows as el,z0a as f,gws as g,mws as h,lws as i,bxs as j,Ut as k,_0 as l,A as m,pws as n,uws as o,HD as p,dws as q,r4s as r,kTi as s,Z6 as t,$ke as u,sws as v,Qnn as w,ews as x,cws as y,Er as z};