@zeniai/web-app-ui 5.3.34-qa → 5.3.35-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AccountMappingScreen-B3gERMwb.js → AccountMappingScreen-Cstuqkm7.js} +1 -1
- package/dist/assets/AddressRoutes-BzPUFFtF.js +1 -0
- package/dist/assets/AddressScreen-QJAFiZG_.js +9 -0
- package/dist/assets/{AiCfoScreen-DMq_5n3A.js → AiCfoScreen-DPeqmWFb.js} +1 -1
- package/dist/assets/{AppDrawer-CmIwyYxA.js → AppDrawer-BlydUldz.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-iNqdFuHr.js → BillPayApprovalRoutes-CkTXMOBL.js} +1 -1
- package/dist/assets/{BillPayRoutes-CxVV20eB.js → BillPayRoutes-DUJINxXM.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CcdlEk-F.js → BusinessVerificationPageScreen-CcoSDt9H.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-CY8kuFBn.js → CardsAiCfoScreen-u0VpRiFW.js} +2 -2
- package/dist/assets/{ChargeCardRoutes-2l1CO_ZB.js → ChargeCardRoutes-BETe7cXe.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-D0iwvjvi.js → CompanyPassportScreen-C6qEEMwh.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-DA45ryKf.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-CXysDBns.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-DNGip8nR.js → CustomerOnboardingRoutes-D3ibVMNE.js} +3 -3
- package/dist/assets/{DashboardRoutes-WausKTZN.js → DashboardRoutes-DqBJNROk.js} +3 -3
- package/dist/assets/{DefaultTenantHome-DYJZWIVJ.js → DefaultTenantHome-3q80hQe7.js} +1 -1
- package/dist/assets/DomesticWireDetailScreen-nU_rLvRW.js +18 -0
- package/dist/assets/{DrawerScreen-BGFLKjZ4.js → DrawerScreen-J3wIMzJi.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-dIhIGS0K.js → EntityDetailRoutes-Bs0Wld5V.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-2mQsPUHf.js → ExpenseAutomationRoutes-BAPJl7fK.js} +1 -1
- package/dist/assets/FeaturePreviewScreen-BhXxEutM.js +1 -0
- package/dist/assets/{HubSpotOAuthCallbackScreen-BAmofeTw.js → HubSpotOAuthCallbackScreen-DZPl-16d.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-C5ikUDhJ.js → InboxNotificationsProvider-B8bw_q0G.js} +1 -1
- package/dist/assets/{InvoicingRoutes-CCMsRJbo.js → InvoicingRoutes-5JvdRY8J.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CtU6Muc9.js → MagicLinkRoutes-CsQvAWAd.js} +5 -5
- package/dist/assets/MagicLinkSignInScreen-C6mdv4Cd.js +12 -0
- package/dist/assets/{MobileAppDrawer-CRL9dcOy.js → MobileAppDrawer-BAR65ADr.js} +1 -1
- package/dist/assets/NotFoundScreen-BkQQJnCX.js +1 -0
- package/dist/assets/{NotificationRoutes-YdUDNMEO.js → NotificationRoutes-DWTYgcPC.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-dseY-frv.js → OAuthConsentScreen-rE7QFgmv.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-fo_acE-Y.js → PandLWithForecastRoutes-BJdBoqtG.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-Dmzw63Ry.js → PaymentLinkScreen-C-EPLfkH.js} +8 -8
- package/dist/assets/{PeopleRoutes-DYjiVo9L.js → PeopleRoutes-B9KZfXlk.js} +3 -3
- package/dist/assets/{PerformanceRoutes-Blu7VWI0.js → PerformanceRoutes-nuCcT1KG.js} +1 -1
- package/dist/assets/{Preview-DGkUqHej.js → Preview-Cx8KRaHy.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-B3L0biVT.js → QBOConnectionScreen-C-_Bc9aD.js} +23 -23
- package/dist/assets/{ReimbursementApprovalRoutes-BPS61Q6U.js → ReimbursementApprovalRoutes-DUDrQYUH.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-B4_P7371.js → ReimbursementApprovalRuleDetailScreen-TislSzXU.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-JKmd-RDh.js → ReimbursementRoutes-CThyOTqb.js} +1 -1
- package/dist/assets/{ReportsRoutes-CXTwauUR.js → ReportsRoutes-BUPOvhS1.js} +1 -1
- package/dist/assets/RewardsRoutes-DWovQii4.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DiGMBAm5.js → ScheduleDetailsPrepaidExpensesScreen-VjNep7ac.js} +1 -1
- package/dist/assets/ScreenRoutes-BBziyvzo.js +2 -0
- package/dist/assets/{SettingsRoutes-BuKUGcQL.js → SettingsRoutes-D0ZHopo2.js} +6 -6
- package/dist/assets/{SetupPagesScreen-C5BRh3XH.js → SetupPagesScreen-D464KhP2.js} +1 -1
- package/dist/assets/SignInScreen-I08IFPEY.js +1 -0
- package/dist/assets/SignOutScreen-qomjx9ip.js +9 -0
- package/dist/assets/{TaskListScreen-DY7UxmTl.js → TaskListScreen-DLU0EqVo.js} +1 -1
- package/dist/assets/{TaskRoutes-D9jm3Vx3.js → TaskRoutes-CzMzk7IA.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-eMTqZPTp.js +1 -0
- package/dist/assets/TransactionDetailScreen-D_QMd7J1.js +5 -0
- package/dist/assets/{TransactionListRoutes-DlF9D1gA.js → TransactionListRoutes-BkyScEnr.js} +1 -1
- package/dist/assets/{TreasuryRoutes-B-vADZSw.js → TreasuryRoutes-DvNRUs_f.js} +1 -1
- package/dist/assets/{VendorsRoutes-BB7CHJb3.js → VendorsRoutes-D7mCPP8E.js} +7 -7
- package/dist/assets/{WiseConfirmationScreen-Un25bELv.js → WiseConfirmationScreen-D3NoMVAj.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-C4VQUVN_.js → ZeniAccountRoutes-Bf98cPGA.js} +9 -9
- package/dist/assets/{ZeniAccountStatementScreen-CX0ZvWif.js → ZeniAccountStatementScreen-CbAb9son.js} +1 -1
- package/dist/assets/{accountMappingHelper-CJL-kxIR.js → accountMappingHelper-DiD6kuzS.js} +1 -1
- package/dist/assets/analytics-qutbJJuo.js +68 -0
- package/dist/assets/{analyticsHelper-C7PuiJR9.js → analyticsHelper-Cioa7dQ6.js} +1 -1
- package/dist/assets/{core-CqflqGv9.js → core-cL-h_S3o.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-Bw5_joHN.js → decodeURIComponentSafe-DiZsTtnQ.js} +1 -1
- package/dist/assets/{dnd-OUjwZlfC.js → dnd-CvWVwn67.js} +1 -1
- package/dist/assets/{empty-BaQDcuze.js → empty-DSAj_JMj.js} +1 -1
- package/dist/assets/{empty-D2Qv8UjS.js → empty-Djzj0dHk.js} +1 -1
- package/dist/assets/{emptyVideoElement-CRjToyxO.js → emptyVideoElement-CeA_CN58.js} +1 -1
- package/dist/assets/{epic-6r2G7Ljw.js → epic-B0n7joLL.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-BTi1SBkX.js → expenseAutomationHelper-DBhDJoc-.js} +1 -1
- package/dist/assets/{getLocaleForTenant-frknbVW9.js → getLocaleForTenant-DALQ36LB.js} +1 -1
- package/dist/assets/{index-BWWz0Sm7.js → index-B-uE4TWW.js} +1 -1
- package/dist/assets/{index-DjGdOTXi.js → index-BMzYYdV-.js} +1 -1
- package/dist/assets/{index-C-1mKpRP.js → index-Bme2F7Z-.js} +1 -1
- package/dist/assets/{index-CNoRQUH7.js → index-Bn5lBj-O.js} +1 -1
- package/dist/assets/{index-6X2hJC9C.js → index-D4ChxRFU.js} +6983 -6983
- package/dist/assets/{index-DFz0hCrW.js → index-DqoiIKM_.js} +1 -1
- package/dist/assets/{index-i9f1kxGC.js → index-RGg62zU1.js} +1 -1
- package/dist/assets/{index-B8Cs9uSY.js → index-YXuAyHdu.js} +2 -2
- package/dist/assets/{lexical-BHqkUsiS.js → lexical-fOKQwNUZ.js} +1 -1
- package/dist/assets/{liveblocks-B0EpRifM.js → liveblocks-DVe3Eena.js} +1 -1
- package/dist/assets/{lottie-x3DIllPk.js → lottie-MSaCuPby.js} +1 -1
- package/dist/assets/{mui-Splhybhe.js → mui-a6BeA4JD.js} +1 -1
- package/dist/assets/{pathToGoBack-LnL-ovI6.js → pathToGoBack-g9S0YvmK.js} +1 -1
- package/dist/assets/{pdf-BZfLFbU_.js → pdf-CurGQkyb.js} +3 -3
- package/dist/assets/{pdf-lib-CpxtL5pi.js → pdf-lib-D4BCwttf.js} +1 -1
- package/dist/assets/{plaid-D5Rs2Xbn.js → plaid-C5X1WR-a.js} +1 -1
- package/dist/assets/{pusher-9E3ynLMf.js → pusher-BAEnXzer.js} +1 -1
- package/dist/assets/{react-_LAOK0QT.js → react-BM46mFnY.js} +1 -1
- package/dist/assets/{react-Cdqh8MuG.js → react-BYcgSbTE.js} +1 -1
- package/dist/assets/{react-BHgTygpo.js → react-CtJLNNcb.js} +1 -1
- package/dist/assets/{react-BWMsOlMm.js → react-D5GF-zB3.js} +1 -1
- package/dist/assets/{react-bYlWEvlR.js → react-DFRbAeBc.js} +1 -1
- package/dist/assets/{react-DPAdkb-c.js → react-dqICH6I-.js} +1 -1
- package/dist/assets/{recharts-C-DOhwH-.js → recharts-BPDamcen.js} +1 -1
- package/dist/assets/{routePaths-vIHY-V28.js → routePaths-Dn5fef1Z.js} +1 -1
- package/dist/assets/{sentry-BefEASz6.js → sentry-DqMiDAOv.js} +1 -1
- package/dist/assets/{url-DGJ2AapT.js → url-Bog1JfMa.js} +1 -1
- package/dist/assets/{url-DWw1bUBN.js → url-DLaGwo5M.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-DCkiFTBp.js → useAiCfoDashboardSuggestedQuestionsChips-CkMy0l60.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-0oF2VYBt.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-CextOSJa.js → useChargeCardPusherEvents-B27Oy8LI.js} +1 -1
- package/dist/assets/{useDeviceId-C-MNChOb.js → useDeviceId-u80nXpjK.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BNpn3T_H.js → useEmailConnectResultRefresh-CLBpIk_t.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-Ocoxr05G.js → useInitialThreadRequest-T-M769mk.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-BTngy8S4.js → useTaskManagerAccess-BtoWhuis.js} +1 -1
- package/dist/assets/{utils-JmZUGXv-.js → utils-jUBXEI4l.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-C1SRvhe2.js → withTransactionSidePanel-CghfULxy.js} +1 -1
- package/dist/assets/{zeni-epic-state-Sf5HhdfR.js → zeni-epic-state-DMwHYs-L.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-ofjUZj67.js +0 -1
- package/dist/assets/AddressScreen-2Ll0sIt2.js +0 -9
- package/dist/assets/ConnectionAuthScreen-DISa934v.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-endMBMm7.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-ClypaxS0.js +0 -18
- package/dist/assets/FeaturePreviewScreen-Bw_lynVj.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-Dmx8QuEo.js +0 -12
- package/dist/assets/NotFoundScreen-yHXIfv3c.js +0 -1
- package/dist/assets/RewardsRoutes-CrvPTVJy.js +0 -1
- package/dist/assets/ScreenRoutes-B9tAK3Rz.js +0 -2
- package/dist/assets/SignInScreen-Boe9M9a6.js +0 -1
- package/dist/assets/SignOutScreen-u27_Ol9O.js +0 -9
- package/dist/assets/TransactionDetailRoutes-D704rpNa.js +0 -1
- package/dist/assets/TransactionDetailScreen-3kh7GhKV.js +0 -5
- package/dist/assets/analytics-Bg9sHj4I.js +0 -68
- package/dist/assets/useAskAiCfoHostNavButtonProps-_aV90QuU.js +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import"./sentry-BefEASz6.js";import{L as zt}from"./zeni-epic-state-Sf5HhdfR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="d8c274b8-7aa7-4fd9-8b41-11d8106f1f87",t._sentryDebugIdIdentifier="sentry-dbid-d8c274b8-7aa7-4fd9-8b41-11d8106f1f87")}catch{}})();var os,as,ss={},Tr={},ir={};function cs(){return os||(os=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.EVENTS_WITHOUT_SUPER_PROPERTIES=ir.Event=void 0,(function(r){r.dashboard="Dashboard",r.cashBalance="Cash Balance",r.cardBalance="Card Balance",r.cashPosition="Cash Position",r.revenues="Revenues",r.operatingExpenses="Operating Expenses",r.topExpenses="Top Expenses",r.burnRate="Burn Rate",r.cashInCashOut="Cash In, Cash Out",r.howItWorks="How It Works",r.insights="Insights",r.brexAd="Brex Ad",r.companyPassport="Company Passport",r.addAddress="Add Address",r.editAddress="Edit Address",r.saveAddressClicked="Save Address Clicked",r.reports="Reports",r.profitAndLoss="Profit & Loss",r.balanceSheet="Balance Sheet",r.cashFlow="Cash Flow",r.profitAndLossWithForecast="Profit & Loss with Forecast",r.balanceSheetWithForecast="Balance Sheet with Forecast",r.cashFlowWithForecast="Cash Flow with Forecast",r.sidePanelClicked="Side Panel Clicked",r.transactionList="Transaction List",r.transactionDetails="Transaction Details",r.transactionDetailsSave="Transaction Details Save",r.transactionTypeUpdateTriggered="Transaction Type Update Triggered",r.transactionDetailReceiptOpened="Transaction Details Receipt Opened",r.transactionDetailReceiptDeleted="Attachment Deleted",r.transactionDetailReceiptAdded="Transaction Details Receipt Added",r.compareMode="Compare Mode",r.compareFilterChange="Compare Filter Change",r.compareFilterTimeframe="Compare Filter Timeframe",r.dateRangeFilter="Date Range Filter",r.timeframeSwitch="Timeframe Switch",r.graphBar="Graph Bar",r.cardStatementCloseDateClicked="Card Statement Close Date Clicked",r.cardStatementCloseDateSaved="Card Statement Close Date Saved",r.forecast="Forecast",r.forecastSwitch="Forecast Switch",r.forecastVsActualMode="Forecast vs Actual Mode",r.members="Members",r.inviteSent="Invite Sent",r.roleChanged="Role Changed",r.removeUserAccess="Remove User Access",r.resendInvite="Resend Invite",r.companySwitch="Company Switch",r.download="Download",r.sort="Sort",r.incomeTrend="Income Trend",r.spendTrend="Spend Trend",r.search="Search",r.login="Login",r.loginButton="Login Button",r.signInClick="Sign In click",r.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",r.signInViaEmail="Sign In Via Email",r.signInLinkSent="Sign In Link Sent",r.loginSuccess="Login Success",r.loginFailure="Login Fail",r.logoutButton="Logout Button",r.logoutSuccess="Logout Success",r.logoutFailure="Logout Fail",r.sessionTimeoutPopupShown="Session Timeout Popup Shown",r.sessionTimeoutClicked="Session Timeout Clicked",r.sessionTimeoutAutoLogout="Session Timeout Auto Logout",r.reportGenerated="Report Generated",r.aiCFOPage="AI CFO Page",r.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",r.aiCFOChatSessionChanged="AI CFO Chat Session Changed",r.aiCFOChatSubmitted="AI CFO Chat Submitted",r.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",r.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",r.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",r.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",r.onboardingLinkClicked="Onboarding Invite Link Click",r.onboardingNeedHelp="Onboarding Need Help",r.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",r.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",r.onboardingPage="Onboarding Page",r.onboardingInterimPage="Onboarding Interim Page",r.onboardingLandingPage="Onboarding Landing Page",r.onboardingQBOConnect="Onboarding QBO Connect Clicked",r.onboardingSaveQBOConnection="Onboarding Save QBO Connection",r.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",r.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",r.onboardingCompanyOfficerSave="Onboarding Company Officer Save",r.onboardingCompanyDetailsSave="Onboarding Company Details Save",r.onboardingBusinessVerificationCompleted="Onboarding Business Verification Completed",r.onboardingDashboardActivation="Onboarding Dashboard Activation",r.onboardingAiFinanceTeamAcknowledged="Onboarding AI Finance Team Acknowledged",r.onboardingAiFinanceTeamViewed="Onboarding AI Finance Team Viewed",r.onboardingQBOConnectionSuccess="Onboarding QBO Connection Success",r.onboardingQBOConnectionFailed="Onboarding QBO Connection Failed",r.onboardingAddressClicked="Onboarding Address Clicked",r.onboardingDocumentUploaded="Onboarding Document Uploaded",r.onboardingPhoneVerified="Onboarding Phone Verified",r.onboardingStepSkipped="Onboarding Step Skipped",r.onboardingFlowExited="Onboarding Flow Exited",r.onboardingButtonClicked="Onboarding Button Clicked",r.onboardingConnectBank="Onboarding Connect Bank",r.onboardingConnectBankSuccess="Onboarding Connect Bank Success",r.onboardingConnectBankFailure="Onboarding Connect Bank Failure",r.onboardingConnectBankLink="Onboarding Connect Bank Link",r.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",r.onboardingBankConnectAbandoned="Onboarding Bank Connect Abandoned",r.onboardingNewCustomerStarted="Onboarding New Customer Started",r.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",r.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",r.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",r.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",r.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",r.onboardingSendInvite="Onboarding Send Invite",r.onboardingResendInvite="Onboarding Resend Invite",r.onboardingSave="Onboarding Save",r.onboardingBillingAddress="Onboarding Billing Address Clicked",r.onboardingBillingAddressSave="Onboarding Billing Address Save",r.onboardingNext="Onboarding Next",r.onboardingBack="Onboarding Back",r.onboardingActiveStep="Onboarding Active Step",r.onboardingLinkBankAccount="Onboarding Link A Bank Account",r.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",r.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",r.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",r.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",r.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",r.onboardingLinkCreditCard="Onboarding Link Credit Card",r.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",r.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",r.onboardingLinkNewCard="Onboarding Link a New Credit Card",r.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",r.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",r.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",r.onboardingBankAccountVerified="Onboarding Bank Account Verified",r.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",r.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",r.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",r.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",r.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",r.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",r.onboardingInterimCardClick="Onboarding Interim Page Card Click",r.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",r.billingLinkNewBankAccount="Billing Link a New Bank Account",r.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",r.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",r.billingSwitchToCreditCard="Billing Switch To Credit Card",r.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",r.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",r.billingSwitchToBankAccount="Billing Switch To Bank Account",r.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",r.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",r.billingLinkNewCard="Billing Link a New Card",r.billingLinkNewCardSuccess="Billing Link a New Card Success",r.billingLinkNewCardFailure="Billing Link a New Card Failure",r.billPayHome="Bill Pay Home",r.billPaySetup="Bill Pay Setup",r.billPayPromoPage="Bill Pay Promo",r.billPayNeedHelp="Bill Pay Need Help",r.billPayBusinessVerification="Bill Pay Business Verification",r.billPayBusinessVerificationSave="Bill Pay Business Verification Save",r.billPayBusinessVerificationSend="Bill Pay Business Verification Send",r.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",r.billPayConnectBank="Bill Pay Connect Bank",r.billPayConnectBankSuccess="Bill Pay Connect Bank Success",r.billPayConnectBankFailure="Bill Pay Connect Bank Failure",r.billPayConnectBankLink="Bill Pay Connect Bank Link",r.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",r.enableBillPay="Enable Bill Pay",r.billPayDrafts="Bill Pay Drafts",r.billPayDraftsOverdue="Bill Pay Drafts Overdue",r.billPayApprovals="Bill Pay Approvals",r.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",r.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",r.billPayApprovalsOverdue="Bill Pay Approvals Overdue",r.billPayApprovalsRejected="Bill Pay Approvals Rejected",r.billPayApprovalsDeleted="Bill Pay Approvals Deleted",r.billPayScheduled="Bill Pay Scheduled",r.billPayScheduledFailed="Bill Pay Scheduled Failed",r.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",r.billPayScheduledDeleted="Bill Pay Scheduled Deleted",r.billPayPaid="Bill Pay Paid",r.billPayPaidACH="Bill Pay Paid ACH",r.billPayPaidWire="Bill Pay Paid Wire",r.billPayPaidDeleted="Bill Pay Paid Deleted",r.billPayPaidOffline="Bill Pay Paid Offline",r.billPayNewBill="Bill Pay New Bill",r.billPayInvoiceUpload="Bill Pay Invoice Upload",r.billPaySkipAutofill="Bill Pay Skip Autofill",r.billPayInvoiceActionClick="Bill Pay Invoice Action Click",r.billPayBillDetails="Bill Pay Bill Details",r.billPayEditBill="Bill Pay Edit Bill",r.billPayDeleteBill="Bill Pay Delete Bill",r.billPayCancelBill="Bill Pay Cancel Bill",r.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",r.billPayReviewBill="Bill Pay Review Bill",r.billPaySendForApproval="Bill Pay Send For Approval",r.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",r.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",r.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",r.billPayFilterClick="Bill Pay Filter Click",r.billPayFilterChange="Bill Pay Filter Change",r.billPayDownloadClick="Bill Pay Download Click",r.billPayNewVendor="Bill Pay New Vendor",r.billPayEditVendor="Bill Pay Edit Vendor",r.billPayExpandVendor="Bill Pay Expand Vendor",r.billPayChooseNewVendor="Bill Pay Choose New Vendor",r.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",r.billPayAutoDateChange="Book Close - Auto Date Change",r.billPayPrivacyPolicy="Bill Pay Privacy Policy",r.billPayAgreement="Bill Pay Agreement",r.billPayPromoSchedule="Bill Pay Schedule Demo",r.billPayPromoVideo="Bill Pay Promo Video",r.billPayTaskCard="Bill Pay Task Card",r.billPayCard="Bill Pay Card",r.enableIntlWire="Enable International Wire",r.submitIntlWire="International Wire Submit",r.intlWirePaymentMethod="International Wire Payment Method",r.zeniAssistClick="Zeni Assist Click",r.retryClick="Retry Click",r.retryConfirmClick="Retry Confirm Click",r.refundClick="Refund Click",r.refundConfirmClick="Refund Confirm Click",r.billPayBulkSelectAll="Bill Pay Bulk Select All",r.billPayBulkDeleted="Bill Pay Bulk Deleted",r.billPayBulkSubmit="Bill Pay Bulk Submit",r.billPayBulkSelection="Bill Pay Bulk Selection",r.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",r.billPayMarkAsPaid="Mark As Paid",r.billPayMarkAsPaidSubmit="Mark As Paid Submit",r.lowBalanceAccountSelected="Low Balance Account Selected",r.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",r.lowBalanceAccountApprove="Low Balance Account Approve",r.lowBalanceAccountReject="Low Balance Account Reject",r.lowBalanceAccountChange="Low Balance Account Change",r.lowBalanceAccountSchedule="Low Balance Account Schedule",r.cockpitTabClicked="Cockpit Tab Clicked",r.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",r.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",r.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",r.reimbursementHome="Reimbursement Home",r.reimbursementSetup="Reimbursement Setup",r.reimbursementPromoPage="Reimbursement Promo",r.reimbursementTaskCard="Reimbursement Task Card",r.reimbursementFilterClick="Reimbursement Filter Click",r.reimbursementFilterChange="Reimbursement Filter Change",r.reimbursementDownloadClick="Reimbursement Download Click",r.reimbursementBulkSelectAll="Reimbursement Bulk Select All",r.reimbursementBulkDeleted="Reimbursement Bulk Deleted",r.reimbursementBulkSubmit="Reimbursement Bulk Submit",r.reimbursementBulkSelection="Reimbursement Bulk Selection",r.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",r.accountsListPageViewed="Accounts List Page Viewed",r.zeniAccountsSetup="Zeni Accounts Setup",r.accountsPromoPageViewed="Accounts Promo Page Viewed",r.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",r.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",r.zeniAccountsNeedHelp="Zeni Accounts Need Help",r.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",r.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",r.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",r.plgPromoActionTaken="Promo Action Taken",r.cardsPromoPage="Cards Promo Page Viewed",r.cardsPromoPageClick="Cards Promo Page Clicked",r.cardsListPage="Cards List Page Viewed",r.cardsListPageClick="Cards List Page Clicked",r.cardsIssueNewCardFormClick="Issue New Card Form Clicked",r.cardsListRowClick="Cards List Row Clicked",r.cardsDetailPage="Cards Detail Page Viewed",r.cardsDetailPageClick="Cards Detail Page Clicked",r.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",r.cardsSetupVisited="Cards Setup Page Visited",r.cardsPromoView="Cards Promo View",r.cardsSetupCardsClick="Cards Set Up Cards Click",r.cardsEnableCardsClick="Cards Enable Cards Click",r.cardsScheduleDemoClick="Cards Schedule Demo Click",r.cardsCardListView="Cards Card List View",r.cardsCardListSearchClick="Cards Card List Search Click",r.cardsCardListMoreMenuClick="Cards Card List More Menu Click",r.cardsSettingsClick="Cards Settings Click",r.cardsCardSetupView="Cards Card Setup View",r.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",r.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",r.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",r.cardsStatementsClick="Cards Statements Click",r.cardsCreditCardStatementsView="Cards Credit Card Statements View",r.cardsDownloadClick="Cards Download Click",r.cardsNewCardClick="Cards New Card Click",r.cardsCashbackOverviewClick="Cards Cashback Overview Click",r.cardsCardListRowClick="Cards Card List Row Click",r.cardsCopyIconClick="Cards Copy Icon Click",r.cardsCardListSortClick="Cards Card List Sort Click",r.cardsCardDetailView="Cards Card Detail View",r.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",r.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",r.cardsAddToWalletClick="Cards Add to Wallet Click",r.cardsNeedHelp="Cards Need Help",r.cardsBusinessVerification="Cards Business Verification",r.cardsBusinessVerificationSave="Cards Business Verification Save",r.cardsBusinessVerificationSend="Cards Business Verification Send",r.cardsConnectBank="Cards Connect Bank",r.cardsConnectBankSuccess="Cards Connect Bank Success",r.cardsConnectBankFailure="Cards Connect Bank Failure",r.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",r.cardsConnectBankLink="Cards Connect Bank Link",r.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",r.cardsPayEarlyClick="Cards Pay Early Click",r.cardsPayEarlyFormView="Cards Pay Early Form View",r.cardsPayEarlyFormClick="Cards Pay Early Form Click",r.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",r.accountsListPageClicked="Accounts List Page Clicked",r.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",r.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",r.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",r.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",r.accountsPromoPageClicked="Accounts Promo Page Clicked",r.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",r.zeniAccountsConnectBank="Zeni Accounts Connect Bank",r.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",r.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",r.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",r.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",r.enableZeniAccounts="Enable Zeni Accounts",r.reimbursementNeedHelp="Reimbursement Need Help",r.reimbursementBusinessVerification="Reimbursement Business Verification",r.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",r.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",r.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",r.reimbursementConnectBank="Reimbursement Connect Bank",r.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",r.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",r.reimbursementConnectBankLink="Reimbursement Connect Bank Link",r.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",r.enableReimbursement="Enable Reimbursement",r.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",r.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",r.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",r.reimbursementAgreement="Reimbursement Agreement",r.reimbursementPromoSchedule="Reimbursement Schedule Demo",r.reimbursementPromoVideo="Reimbursement Promo Video",r.reimbursementCard="Reimbursement Card",r.reimbursementDrafts="Reimbursement Drafts",r.reimbursementMyDrafts="Reimbursement My Drafts",r.reimbursementApprovals="Reimbursement Approvals",r.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",r.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",r.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",r.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",r.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",r.reimbursementScheduled="Reimbursement Scheduled",r.reimbursementScheduledFailed="Reimbursement Scheduled Failed",r.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",r.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",r.reimbursementPaid="Reimbursement Paid",r.reimbursementPaidACH="Reimbursement Paid ACH",r.reimbursementPaidDeleted="Reimbursement Paid Deleted",r.reimbursementListSort="Reimbursement List Sort",r.reimbursementNewReimbursement="Reimbursement New Reimbursement",r.reimbursementInvoiceUpload="Reimbursement Invoice Upload",r.reimbursementSkipAutofill="Reimbursement Skip Autofill",r.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",r.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",r.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",r.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",r.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",r.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",r.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",r.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",r.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",r.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",r.groupBySwitch="Group By Switch",r.burnRateCalculatorSettings="Burn Rate Calculator Settings",r.vendorList="Vendor List",r.vendorListSort="Vendor List Sort",r.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",r.vendorListSearch="Vendor List Search",r.vendorDetails="Vendor Details",r.vendorDetailsSave="Vendor Details Save",r.vendorDetailsCancel="Vendor Details Cancel",r.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",r.vendorOperatingExpenses="Operating Expenses By Vendor",r.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",r.agingReport="Aging Report",r.agingReportDateChange="Aging Report Date Change",r.apAgingDetail="AP Aging Detail",r.arAgingDetail="AR Aging Detail",r.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",r.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",r.vendorReviewList="Vendor Dedupe Review List Loaded",r.vendorReviewTenantSave="Vendor Dedupe First Review",r.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",r.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",r.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",r.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",r.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",r.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",r.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",r.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",r.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",r.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",r.vendor1099ListPage="Vendors 1099",r.vendor1099TabSettingsSave="1099 Settings Save",r.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",r.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",r.vendor1099DetailsSave="1099 Vendor Save",r.vendor1099ReportDownload="1099 Download",r.scheduleReviewList="Schedule Review List Loaded",r.scheduleReviewListDownload="Schedule Review List Download",r.scheduleDetailsPage="Schedule Details Loaded",r.scheduleDetailsNewRequested="Schedule Details New Requested",r.scheduleDetailsPreview="Schedule Details Previewed",r.scheduleDetailsSave="Schedule Details Saved",r.scheduleDetailsCancel="Schedule Details Canceled",r.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",r.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",r.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",r.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",r.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",r.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",r.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",r.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",r.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",r.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",r.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",r.scheduleDetailsDelete="Schedule Details Deleted",r.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",r.taskListPage="Task List Page",r.taskDetailPage="Task Detail Page",r.cockpitTaskCardClicked="Cockpit Task Card Clicked",r.taskEdited="Task Edited",r.newTaskRequested="New Task Requested",r.healthMonitorFilterApplied="Health Monitor Filter Applied",r.error="Error",r.rewardsPageViewed="Rewards Page Viewed",r.rewardsPageClicked="Rewards Page Clicked",r.dashboardCardClicked="Dashboard Card Clicked",r.inviteEmailViewed="Rewards Invite Email Viewed",r.inviteEmailClicked="Rewards Invite Email Clicked",r.getAuditScore="Get Score",r.auditScorePercentage="Score %",r.auditIssueType="Issue Type",r.auditIssuesClicked="Issue Clicked",r.commentAdded="Comment Added",r.commentActivity="Comment Activity",r.monthCloseClicked="Month Close Clicked",r.monthCloseAuditPage="Month Close: Audit Page",r.transactionsReview="Transactions: Review",r.transactionsAutoCategorised="Transactions: Autocategorised",r.monthCloseScheduleList="Month Close: Schedule List",r.fluxAnalysis="Flux Analysis",r.fluxAnalysisReviewed="Flux Analysis: Reviewed",r.missingReceipts="Missing Receipts",r.receiptsAttached="Receipt Attached",r.insightsEmail="Insights Email",r.monthEndEmailSentFromCockpit="Month End Email Sent From Cockpit",r.sendMoneyClick="Send Money Click",r.expressPayNextClick="Express Pay Next Click",r.expressPayScheduleClick="Express Pay Schedule Click",r.aiCFOPrivacyPolicy="AI CFO Privacy Policy",r.aiCFOAgreement="AI CFO Agreement",r.treasuryNavPromoClick="Treasury Nav Promo Click",r.treasuryPromoView="Treasury Promo View",r.treasurySetupActionClick="Treasury Setup Action Click",r.treasuryProspectusClick="Treasury Prospectus Click",r.treasuryCalculatorClick="Treasury Calculator Click",r.treasuryAgreementView="Treasury Agreement View",r.treasuryAllocationAction="Treasury Allocation Action",r.treasuryRiskAction="Treasury Risk Action",r.treasuryVerificationNavigation="Treasury Verification Navigation",r.treasuryTransferAction="Treasury Transfer Action",r.treasuryDashboardInteraction="Treasury Dashboard Interaction",r.treasuryPortfolioConfirm="Treasury Portfolio Confirm",r.treasuryPromoCards="Treasury Promo Cards",r.treasuryPromoVideo="Treasury Promo Video",r.transactionCotView="Transaction Cot View",r.transactionCotDropdownView="Transaction Cot Dropdown View",r.transactionCotViewAlternative="Transaction Cot View Alternative",r.transactionCotViewRecommended="Transaction Cot View Recommended",r.recommendationAccepted="Recommendation Accepted",r.recommendationFeedbackSubmitted="Recommendation Feedback Submitted",r.recommendationFeedbackSkipped="Recommendation Feedback Skipped",r.recommendationFeedbackRetracted="Recommendation Feedback Retracted",r.aiPerfHome="AI Perf Home",r.aiPerfRefresh="AI Perf Refresh",r.aiPerfTimePeriodSelect="AI Perf Time Period Select",r.otherConnectionConnectBank="Other Connection Connect Bank",r.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",r.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",r.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",r.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance",r.autoTransferRuleIconClick="Auto Transfer Rule Icon Click",r.autoTransferRuleClick="Auto Transfer Rule Click",r.autoTransferRuleReviewClick="Auto Transfer Rule Review Click",r.autoTransferRuleCreateClick="Auto Transfer Rule Create Click",r.autoTransferRuleMoreClick="Auto Transfer Rule More Click",r.autoTransferRuleActionClick="Auto Transfer Rule Action Click",r.autoTransferRuleActionConfirm="Auto Transfer Rule Action Confirm",r.autoTransferRuleActionCancel="Auto Transfer Rule Action Cancel",r.integrationsNotifyMeClicked="Integrations Notify Me Clicked",r.invoicingOverviewPage="Invoicing Overview Page",r.invoicingInvoicesListPage="Invoicing Invoices List Page",r.invoicingCreateInvoicePage="Invoicing Create Invoice Page",r.invoicingInvoiceDetailPage="Invoicing Invoice Detail Page",r.invoicingCustomersListPage="Invoicing Customers List Page",r.invoicingCustomerFormPage="Invoicing Customer Form Page",r.invoicingCustomerDetailPage="Invoicing Customer Detail Page",r.invoicingSubscriptionsListPage="Invoicing Subscriptions List Page",r.invoicingSubscriptionFormPage="Invoicing Subscription Form Page",r.invoicingSubscriptionDetailPage="Invoicing Subscription Detail Page",r.invoicingPaymentsListPage="Invoicing Payments List Page",r.invoicingRecordPaymentPage="Invoicing Record Payment Page",r.invoicingTransactionDetailPage="Invoicing Transaction Detail Page",r.invoicingCreditsListPage="Invoicing Credits List Page",r.invoicingCreditDetailPage="Invoicing Credit Detail Page",r.invoicingDiscountsListPage="Invoicing Discounts List Page",r.invoicingCouponFormPage="Invoicing Coupon Form Page",r.invoicingDiscountDetailPage="Invoicing Discount Detail Page",r.invoicingDunningListPage="Invoicing Dunning List Page",r.invoicingDunningDetailPage="Invoicing Dunning Detail Page",r.invoicingCatalogPage="Invoicing Catalog Page",r.invoicingCatalogItemFormPage="Invoicing Catalog Item Form Page",r.invoicingCatalogItemDetailPage="Invoicing Catalog Item Detail Page",r.invoicingSettingsPage="Invoicing Settings Page",r.invoicingAuditLogPage="Invoicing Audit Log Page",r.invoicingApprovalsPage="Invoicing Approvals Page",r.invoicingDataImportHubPage="Invoicing Data Import Hub Page",r.invoicingDataImportMigratePage="Invoicing Data Import Migrate Page",r.invoicingViewInvoicesClicked="Invoicing View Invoices Clicked",r.invoicingViewPaymentsClicked="Invoicing View Payments Clicked",r.invoicingSubscriptionTileClicked="Invoicing Subscription Tile Clicked",r.invoicingCreateInvoiceClicked="Invoicing Create Invoice Clicked",r.invoicingInvoiceRowClicked="Invoicing Invoice Row Clicked",r.invoicingImportCsvClicked="Invoicing Import CSV Clicked",r.invoicingInvoiceCreated="Invoicing Invoice Created",r.invoicingCreateInvoiceCancelled="Invoicing Create Invoice Cancelled",r.invoicingInvoiceEdited="Invoicing Invoice Edited",r.invoicingInvoicePdfDownloaded="Invoicing Invoice PDF Downloaded",r.invoicingInvoiceReminderSent="Invoicing Invoice Reminder Sent",r.invoicingRecordPaymentClicked="Invoicing Record Payment Clicked",r.invoicingCreditNoteIssued="Invoicing Credit Note Issued",r.invoicingInvoiceVoided="Invoicing Invoice Voided",r.invoicingInvoiceRegenerated="Invoicing Invoice Regenerated",r.invoicingAddCustomerClicked="Invoicing Add Customer Clicked",r.invoicingCustomerRowClicked="Invoicing Customer Row Clicked",r.invoicingCustomerSaved="Invoicing Customer Saved",r.invoicingCustomerFormCancelled="Invoicing Customer Form Cancelled",r.invoicingCustomerEdited="Invoicing Customer Edited",r.invoicingAddSubscriptionClicked="Invoicing Add Subscription Clicked",r.invoicingSubscriptionRowClicked="Invoicing Subscription Row Clicked",r.invoicingSubscriptionLifecycleAction="Invoicing Subscription Lifecycle Action",r.invoicingSubscriptionSaved="Invoicing Subscription Saved",r.invoicingSubscriptionFormCancelled="Invoicing Subscription Form Cancelled",r.invoicingSubscriptionEdited="Invoicing Subscription Edited",r.invoicingPaymentRowClicked="Invoicing Payment Row Clicked",r.invoicingPaymentRecorded="Invoicing Payment Recorded",r.invoicingRecordPaymentCancelled="Invoicing Record Payment Cancelled",r.invoicingTransactionCaptured="Invoicing Transaction Captured",r.invoicingCreditNoteRowClicked="Invoicing Credit Note Row Clicked",r.invoicingCreateCouponClicked="Invoicing Create Coupon Clicked",r.invoicingDiscountRowClicked="Invoicing Discount Row Clicked",r.invoicingCouponSaved="Invoicing Coupon Saved",r.invoicingCouponFormCancelled="Invoicing Coupon Form Cancelled",r.invoicingCouponEdited="Invoicing Coupon Edited",r.invoicingDunningCaseRowClicked="Invoicing Dunning Case Row Clicked",r.invoicingDunningAction="Invoicing Dunning Action",r.invoicingAddCatalogItemClicked="Invoicing Add Catalog Item Clicked",r.invoicingCatalogItemRowClicked="Invoicing Catalog Item Row Clicked",r.invoicingCatalogItemSaved="Invoicing Catalog Item Saved",r.invoicingCatalogItemFormCancelled="Invoicing Catalog Item Form Cancelled",r.invoicingCatalogItemEdited="Invoicing Catalog Item Edited",r.invoicingSettingsSaved="Invoicing Settings Saved",r.invoicingBankAccountConnectClicked="Invoicing Bank Account Connect Clicked",r.invoicingLogoUploaded="Invoicing Logo Uploaded",r.invoicingApprovalAction="Invoicing Approval Action",r.invoicingNewImportClicked="Invoicing New Import Clicked",r.invoicingImportSessionAction="Invoicing Import Session Action",r.invoicingChargebeeConnectClicked="Invoicing Chargebee Connect Clicked",r.invoicingImportTemplatesDownloaded="Invoicing Import Templates Downloaded",r.invoicingImportFileUploaded="Invoicing Import File Uploaded",r.invoicingImportStarted="Invoicing Import Started",r.invoicingImportSavedForLater="Invoicing Import Saved For Later",r.invoicingEntityLinkClicked="Invoicing Entity Link Clicked",r.invoicingPromoSchedule="Invoicing Schedule Demo",r.integrationConnectClicked="Integration Connect Clicked",r.integrationCredentialsSubmitted="Integration Credentials Submitted",r.integrationConnected="Integration Connected",r.integrationConnectFailed="Integration Connect Failed",r.integrationConnectDismissed="Integration Connect Dismissed",r.integrationDisconnected="Integration Disconnected",r.aiCloseTransactionSearch="AI Close Transaction Search"})(t||(ir.Event=t={})),ir.EVENTS_WITHOUT_SUPER_PROPERTIES=new Set([t.signInClick,t.signInViaGoogleMicrosoft,t.signInViaEmail,t.signInLinkSent])),ir;var t}var ls,us,Ui={};function e_(){return us||(us=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extractUtmParamsFromUrl=t.EVENTS_WITHOUT_SUPER_PROPERTIES=t.Event=t.Analytics=void 0;const r=(function(){if(as)return Tr;as=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.Analytics=void 0;const i=cs(),s=(h,o)=>{const a=(c=>{if(c==null)return null;if(!c.includes(":"))return c;const u=c.split(":")[1];return u!==""?u:null})(h);return{transaction_id:a,line_item_id:o,transaction_id_and_line_item_id:a!=null&&o!=null?`${a}:${o}`:null}};class l{constructor(o){this.provider=o,this.superProperties={},this.userProperties={},this.userAndSuperProperties={}}static splitUserAndSuperProperties(o){return{userProperties:{$distinct_id:o.$distinct_id??"",user_id:o.user_id??"",role_at_company:o.role_at_company??"",$email:o.$email??"",user_email_domain:o.user_email_domain??"",$first_name:o.$first_name??"",$last_name:o.$last_name??"",company_ids:o.company_ids??[],company_names:o.company_names??[],user_roles:o.user_roles??[],app_type:o.app_type??"web",app_version:o.app_version??"",app_short_version:o.app_short_version??"",profile_type:o.profile_type??void 0,chargebee_customer_id:o.chargebee_customer_id??"",is_zeni:o.is_zeni??void 0},superProperties:{appearance:o.appearance??void 0,company_id:o.company_id??"",company_name:o.company_name??"",user_role:o.user_role??[],tenant_id:o.tenant_id??"",tenant_email_domain:o.tenant_email_domain??""}}}identify(o,a){const c=a??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,c,{$distinct_id:o,profile_type:"user"});const u=l.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=u.userProperties,this.superProperties=u.superProperties,this.provider.identify(o,this.userProperties)}identifyUserAndCompany(o,a,c,u,d){const f=u??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,f,{$distinct_id:o==="company"?c:a,user_id:a,company_id:c,profile_type:o});const _=l.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=_.userProperties,this.superProperties=_.superProperties,this.provider.identifyUserAndCompany(o,a,c,this.userProperties,d)}resetUserIdentity(){console.warn("Resetting user identity"),this.superProperties={},this.userProperties={},this.userAndSuperProperties={},this.provider.reset()}track(o){this.fireTrack(o)}trackLogin(o,a,c){this.fireTrack(o,{login_type:a,customer_type:c})}trackSignInClick(o){const a={login_type:o.charAt(0).toUpperCase()+o.slice(1)};this.fireTrack(i.Event.signInClick,a)}trackSignInViaGoogleMicrosoft(){this.fireTrack(i.Event.signInViaGoogleMicrosoft)}trackSignInViaEmail(){this.fireTrack(i.Event.signInViaEmail)}trackSignInLinkSent(){this.fireTrack(i.Event.signInLinkSent)}trackError(o,a,c,u){this.fireTrack(o,{error_referrer:a,error_description:c,error_code:u})}trackSidePanelClicked(o,a){this.fireTrack(i.Event.sidePanelClicked,{sidepanel_click_type:o,sidepanel_click_group_type:a})}trackLogout(o){this.fireTrack(o)}trackSessionTimeoutPopupShown(o){const a={seconds_remaining:o};this.fireTrack(i.Event.sessionTimeoutPopupShown,a)}trackSessionTimeoutClicked(o,a){const c={click_type:o,seconds_remaining:a};this.fireTrack(i.Event.sessionTimeoutClicked,c)}trackSessionTimeoutAutoLogout(){this.fireTrack(i.Event.sessionTimeoutAutoLogout)}trackPageLoaded(o,a,c){this.fireTrack(o,{referrer_card:a,customer_type:c})}trackTransactionList(o,a,c,u,d,f){this.fireTrack(i.Event.transactionList,{account_id:o,account_name:a,referrer_card:c,referrer_account:u,referrer_account_group:d,load_more:f})}trackTransactionDetails(o,a,c,u,d,f,_,m,g,y,b,k,E,w,C){this.fireTrack(i.Event.transactionDetails,{account_id:o,account_name:a,transaction_id:c,transaction_name:u,category:d,class:f,transaction_type:_,transaction_amount:m,transaction_memo:g,line_item_count:y,receipt_file_names:b,referrer_card:k,search_term:E,result_position:w,results_count:C})}trackCompareMode(o,a,c){this.fireTrack(i.Event.compareMode,{is_turned_on:o,referrer_card:a,graph_filter:c})}trackCompareFilterChange(o,a,c,u){this.fireTrack(i.Event.compareFilterChange,{value:o,referrer_card:a,graph_filter:c,clicked_on:u})}trackCompareFilterTimeFrame(o,a,c,u){this.fireTrack(i.Event.compareFilterTimeframe,{referrer_card:o,graph_filter:a,clicked_on:c,value:u})}trackDateRangeFilterChange(o,a,c,u,d){this.fireTrack(i.Event.dateRangeFilter,{parent_card:o,clicked_on:a,compare_mode:c,value:u,bar_name:d})}trackTimeframeSwitch(o,a,c){this.fireTrack(i.Event.timeframeSwitch,{value:o,parent_card:a,referrer_card:c})}trackGraphBar(o,a,c,u){this.fireTrack(i.Event.graphBar,{referrer_card:o,graph_filter:a,compare_mode:c,bar_name:u})}trackInviteSent(o,a,c){this.fireTrack(i.Event.inviteSent,{role:o,count:a,emails:c})}trackRoleChanged(o,a,c){this.fireTrack(i.Event.roleChanged,{old_role:o,new_role:a,member_email:c})}trackRemoveUserAccess(o,a){this.fireTrack(i.Event.removeUserAccess,{role:o,member_email:a})}trackResendInvite(o,a){this.fireTrack(i.Event.resendInvite,{role:o,member_email:a})}trackCompanySwitch(o,a,c){this.fireTrack(i.Event.companySwitch,{new_company_id:o,new_company_name:a,new_user_role:c})}trackDownload(o,a,c,u){this.fireTrack(i.Event.download,{referrer_card:o,graph_filter:a,file_type:c,compare_mode:u})}trackSpendIncomeTrendForTransaction(o,a,c,u,d,f,_,m,g,y){this.fireTrack(o,{referrer_card:a,transaction_id:c,transaction_type:u,transaction_name:d,account_ids:f,account_names:_,class_ids:m,class_names:g,bar_name:y})}trackSpendIncomeTrend(o,a,c,u,d){this.fireTrack(o,{referrer_card:a,bar_name:d,entity_name:u,entity_type:c})}trackSearch(o,a,c,u,d){this.fireTrack(o,{referrer_card:a,entity_type:c,entity_name:u,search_term:d})}trackTransactionDetailReceipt(o,a,c,u,d,f,_){this.fireTrack(o,{attachment_id:a,transaction_id:c,transaction_name:u,transaction_type:d,account_ids:f,account_names:_})}trackTransactionDetailReceiptUpload(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.transactionDetailReceiptAdded,{account_id:o,account_name:a,transaction_id:c,transaction_name:u,transaction_type:d,transaction_memo:f,file_name:_,file_type:m})}trackCardStatementCloseDate(o,a,c,u,d){this.fireTrack(o,{referrer_card:u,account_id:a,account_name:c,value:d})}trackReportGenerated(o,a,c,u,d,f,_,m){const g={report_id:o,file_type:a,time_taken_rest_api:c,time_taken_data_transform:u,time_taken_rendering:d,time_taken_total:f};Object.assign(g,_!=null?{time_taken_pdf_merge:_}:{}),Object.assign(g,m!=null?{time_taken_sub_report_total_max:m}:{}),this.fireTrack(i.Event.reportGenerated,g)}trackInsightsNavigation(o,a){this.fireTrack(o,{referrer_view:a})}trackForecast(){this.fireTrack(i.Event.forecast)}trackForecastSwitch(o,a){this.fireTrack(i.Event.forecastSwitch,{parent_card:o,forecast_name:a})}trackForecastVsActualMode(o,a,c){this.fireTrack(i.Event.forecastVsActualMode,{parent_card:o,forecast_name:a,is_turned_on:c})}trackSpendManagmentFilterClick(o){switch(o){case"bill_pay":this.fireTrack(i.Event.billPayFilterClick);break;case"reimbursement":this.fireTrack(i.Event.reimbursementFilterClick)}}trackSpendManagmentFilterChange(o,a){switch(o){case"bill_pay":this.fireTrack(i.Event.billPayFilterChange,{filter_categories:a});break;case"reimbursement":this.fireTrack(i.Event.reimbursementFilterChange,{filter_categories:a})}}trackSpendManagementDownloadClick(o){switch(o){case"bill_pay":this.fireTrack(i.Event.billPayDownloadClick);break;case"reimbursement":this.fireTrack(i.Event.reimbursementDownloadClick)}}trackBillPayPrivacyPolicy(){this.fireTrack(i.Event.billPayPrivacyPolicy)}trackBillPayAgreement(){this.fireTrack(i.Event.billPayAgreement)}trackReimbursementPrivacyPolicy(){this.fireTrack(i.Event.reimbursementPrivacyPolicy)}trackReimbursementAgreement(){this.fireTrack(i.Event.reimbursementAgreement)}trackReimbursementMileageRateSave(o){const a={mileage_unit_amount:o};this.fireTrack(i.Event.reimbursementMileageRateSave,a)}trackReimbursementMileageRateEdit(){this.fireTrack(i.Event.reimbursementMileageRateEdit)}trackReimbursementPromoScheduleDemo(){this.fireTrack(i.Event.reimbursementPromoSchedule)}trackReimbursementPromoVideo(){this.fireTrack(i.Event.reimbursementPromoVideo)}trackBillPayPromoScheduleDemo(){this.fireTrack(i.Event.billPayPromoSchedule)}trackInvoicingPromoScheduleDemo(){this.fireTrack(i.Event.invoicingPromoSchedule)}trackBillPayPromoVideo(){this.fireTrack(i.Event.billPayPromoVideo)}trackBillPayTaskCard(o){const a={count:o};this.fireTrack(i.Event.billPayTaskCard,a)}trackBillPayCard(o,a){const c={transaction_amount:a,bill_pay_tab_subtab:o};this.fireTrack(i.Event.billPayCard,c)}trackReimbursementCard(o,a){const c={transaction_amount:a,reimbursement_tab_subtab:o};this.fireTrack(i.Event.reimbursementCard,c)}trackReimbursementTaskCard(o){const a={count:o};this.fireTrack(i.Event.reimbursementTaskCard,a)}trackOnboardingConnectQBO(o=!1){const a={is_reconnect:o};this.fireTrack(i.Event.onboardingQBOConnect,a)}trackIntegrationsNotifyMeClicked(o,a){const c={referrer_card:o,connector:a};this.fireTrack(i.Event.integrationsNotifyMeClicked,c)}trackOnboardingSaveQBOConnection(o,a){const c={qbo_realm_id:o,qbo_connection_id:a};this.fireTrack(i.Event.onboardingSaveQBOConnection,c)}trackOnboardingQBOConnectionSuccess(o,a){const c={qbo_realm_id:o,qbo_connection_id:a};this.fireTrack(i.Event.onboardingQBOConnectionSuccess,c)}trackOnboardingQBOConnectionFailed(o,a,c){const u={qbo_realm_id:o,qbo_connection_id:a,qbo_connection_response_message:c};this.fireTrack(i.Event.onboardingQBOConnectionFailed,u)}trackOnboardingAiFinanceTeamViewed(){this.fireTrack(i.Event.onboardingAiFinanceTeamViewed)}trackOnboardingAddressClicked(o){const a={address_type:o};this.fireTrack(i.Event.onboardingAddressClicked,a)}trackOnboardingDocumentUploaded(o,a){const c={document_kind:o,document_type:a};this.fireTrack(i.Event.onboardingDocumentUploaded,c)}trackOnboardingPhoneVerified(){this.fireTrack(i.Event.onboardingPhoneVerified)}trackOnboardingStepSkipped(o){const a={skipped_step:o};this.fireTrack(i.Event.onboardingStepSkipped,a)}trackOnboardingFlowExited(o){const a={exit_destination:o};this.fireTrack(i.Event.onboardingFlowExited,a)}trackOnboardingButtonClicked(o,a,c,u){const d={onboarding_button:o,onboarding_current_step:a,triggered_action:c,action_name:u};this.fireTrack(i.Event.onboardingButtonClicked,d)}buildIntegrationConnectionProps(o,a,c,u=null){return{referrer_card:a,connector:o,connection_type:c,error_message:u}}trackIntegrationConnectClicked(o,a,c){this.fireTrack(i.Event.integrationConnectClicked,this.buildIntegrationConnectionProps(o,a,c))}trackIntegrationCredentialsSubmitted(o,a,c){this.fireTrack(i.Event.integrationCredentialsSubmitted,this.buildIntegrationConnectionProps(o,a,c))}trackIntegrationConnected(o,a,c){this.fireTrack(i.Event.integrationConnected,this.buildIntegrationConnectionProps(o,a,c))}trackIntegrationConnectFailed(o,a,c,u){this.fireTrack(i.Event.integrationConnectFailed,this.buildIntegrationConnectionProps(o,a,c,u))}trackIntegrationDisconnected(o,a,c){this.fireTrack(i.Event.integrationDisconnected,this.buildIntegrationConnectionProps(o,a,c))}trackIntegrationConnectDismissed(o,a,c){this.fireTrack(i.Event.integrationConnectDismissed,this.buildIntegrationConnectionProps(o,a,c))}trackConnectBankAbandoned(o,a){o==="onboarding"&&this.fireTrack(i.Event.onboardingBankConnectAbandoned,{referrer_card:a})}trackOnboardingClickUpdatePaymentDetails(o,a){const c={payment_method:o,customer_type:a};this.fireTrack(i.Event.onboardingClickUpdatePaymentDetails,c)}trackOnboardingCurrentStep(o,a){const c={onboarding_current_step:o,onboarding_previous_step:a};this.fireTrack(i.Event.onboardingActiveStep,c)}trackOnboardingBankAccountPendingVerification(o,a){const c={verification_type:o,plaid_session_id:a};this.fireTrack(i.Event.onboardingBankAccountPendingVerification,c)}trackOnboardingBankAccountVerified(o){const a={verification_type:o};this.fireTrack(i.Event.onboardingBankAccountVerified,a)}trackOnboardingBusinessVerificationCompleted(o,a){const c={document_kind:o,verification_type:a};this.fireTrack(i.Event.onboardingBusinessVerificationCompleted,c)}trackOnboardingBillingAddress(o){const a={billing_address_field:o};this.fireTrack(i.Event.onboardingBillingAddress,a)}trackOnboardingBillingAddressSave(o){const a={address:{street:o.street,suite:o.suite,city:o.city,state:o.state,country:o.country,postal_code:o.postalCode,secondary_info:o.secondaryInfo}};this.fireTrack(i.Event.onboardingBillingAddressSave,a)}trackOnboardingBack(o,a){const c={onboarding_current_step:o,onboarding_previous_step:a};this.fireTrack(i.Event.onboardingBack,c)}trackOnboardingNext(o,a){const c={onboarding_current_step:a,onboarding_previous_step:o};this.fireTrack(i.Event.onboardingNext,c)}trackSaveAddressClicked(o,a){const c={address:{street:a?.street??"",suite:a?.suite??"",city:a?.city??"",state:a?.state??"",country:a?.country??"",postal_code:a?.postalCode??"",secondary_info:a?.secondaryInfo??""}};this.fireTrack(o,c)}trackOnboardingCompanyOfficerSave(o,a,c){const u={company_officer_email:o.email,company_officer_birthday:o.birthday,company_officer_ownership:o.companyOwnership,company_officer_first_name:o.firstName,company_officer_last_name:o.lastName,company_officer_role:o.companyRole,company_officer_document_type_for_verification:o.documentTypeForVerification,company_officer_phone:o.phone,company_officer_address:o.formattedAddress,company_legal_name:a.legalName,completed_fields:c?.completedFields??[],completed_fields_status:c?.status??"not_started"};this.fireTrack(i.Event.onboardingCompanyOfficerSave,u)}trackOnboardingCompanyDetailsSave(o,a,c){const u={company_description:o.companyDescription,company_legal_name:o.legalName,company_industry:o.industry,company_phone:o.phone,company_website:o.website,company_address:o.formattedAddress,inc_date:o.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,completed_fields:a.completedFields,completed_fields_status:a.status};this.fireTrack(i.Event.onboardingCompanyDetailsSave,u)}trackOnboardingDashboardActivation(o){const a={time_since_quote_sign:o.timeSinceQuoteSign,time_since_quote_sign_in_minutes:o.timeSinceQuoteSignInMinutes,is_kyc_done:o.isKycDone,is_kyb_done:o.isKybDone,payment_type:o.paymentType,payment_source:o.paymentSource,qbo_connection_source:o.qboConnectionSource};this.fireTrack(i.Event.onboardingDashboardActivation,a)}trackOnboardingNewCustomerStarted(){this.fireTrack(i.Event.onboardingNewCustomerStarted)}trackOnboardingAiFinanceTeamAcknowledged(){this.fireTrack(i.Event.onboardingAiFinanceTeamAcknowledged)}trackOnboardingNewCustomerGroupCreationCheck(o,a){const c={company_email_domain:o.companyEmailDomain,primary_contact_email:o.primaryContactEmail,group_name:a.groupName,group_email:a.groupEmail,group_description:a.groupDescription,is_company_email_domain_available:a.isCompanyEmailDomainAvailable};this.fireTrack(i.Event.onboardingNewCustomerGroupCreationCheck,c)}trackOnboardingQBOConnectionSelected(o){const a={first_name:o.firstName,last_name:o.lastName,customer_email:o.customerEmail};o.isZeniOrCustomer==="customer"?this.fireTrack(i.Event.onboardingCustomerManagedQBOConnectionSelected,a):this.fireTrack(i.Event.onboardingZeniManagedQBOConnectionSelected,a)}trackOnboardingZeniManagedQBOConnection(o){const a={first_name:o.firstName,last_name:o.lastName,customer_email:o.customerEmail,qbo_connection_response_message:o.qboConnectionResponseMessage};o.isSuccess?this.fireTrack(i.Event.onboardingZeniManagedQBOConnectionSuccess,a):this.fireTrack(i.Event.onboardingZeniManagedQBOConnectionUnsuccess,a)}trackOnboardingSaveOrSendInvite(o,a,c,u){const d={company_domain:o.companyDomain,primary_contact_email:o.primaryContactEmail,group_name:a.groupName,group_email:a.groupEmail,group_description:a.groupDescription,first_name:c.firstName,last_name:c.lastName,customer_email:c.customerEmail,company_name:c.companyName,entitty_type:c.entittyType,qbo_realm_id:c.qboRealmId,hubspot_id:c.hubSpotId,chargebee_id:c.chargebeeId,products:c.products,is_zeni_managed_qbo_connection_selected:u.isZeniManagedQboConnectionSelected,is_customer_managed_qbo_connection_selected:u.isCustomerManagedQboConnectionSelected,qbo_connection_status:u.qboConnectionStatus,referrer_card:"Cockpit - Onboarding"};u.isSendInvite?u.isInviteAlreadySent?this.fireTrack(i.Event.onboardingResendInvite,d):this.fireTrack(i.Event.onboardingSendInvite,d):this.fireTrack(i.Event.onboardingSave,d)}trackOnboardingSendInvite(o,a,c){const u={company_id:o,company_name:c.companyName,company_domain:c.companyEmailDomain,customer_email:c.customerEmail,referrer_card:"Cockpit - Onboarding List"};this.fireTrack(a?i.Event.onboardingResendInvite:i.Event.onboardingSendInvite,u)}trackOnboardingInterimCard(o){const a={card_click:o};this.fireTrack(i.Event.onboardingInterimCardClick,a)}trackOnboardingLandingPageCardClick(o){const a={card_click:o};this.fireTrack(i.Event.onboardingLandingPageCardClick,a)}trackBusinessVerificationSave(o,a,c,u,d){const f={company_officer_email:o.email,company_officer_birthday:o.birthday,company_officer_ownership:o.companyOwnership,company_officer_first_name:o.firstName,company_officer_last_name:o.lastName,company_officer_role:o.companyRole,company_officer_document_type_for_verification:o.documentTypeForVerification,company_officer_phone:o.phone,company_officer_address:o.formattedAddress,company_description:a.companyDescription,company_legal_name:a.legalName,company_industry:a.industry,company_phone:a.phone,company_website:a.website,company_address:a.formattedAddress,inc_date:a.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,referrer_card:d};switch(u){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsBusinessVerificationSave,f);break;case"reimbursement":this.fireTrack(i.Event.reimbursementBusinessVerificationSave,f);break;case"onboarding":this.fireTrack(i.Event.onboardingSkipAndSave,f);break;case"charge_cards":this.fireTrack(i.Event.cardsBusinessVerification,f);break;default:this.fireTrack(i.Event.billPayBusinessVerificationSave,f)}}trackBusinessVerificationSend(o,a,c,u,d){const f={company_officer_email:o.email,company_officer_birthday:o.birthday,company_officer_ownership:o.companyOwnership,company_officer_first_name:o.firstName,company_officer_last_name:o.lastName,company_officer_role:o.companyRole,company_officer_document_type_for_verification:o.documentTypeForVerification,company_officer_phone:o.phone,company_officer_address:o.formattedAddress,company_description:a.companyDescription,company_legal_name:a.legalName,company_industry:a.industry,company_phone:a.phone,company_website:a.website,company_address:a.formattedAddress,inc_date:a.incDate,primary_contact_first_name:c.firstName,primary_contact_last_name:c.lastName,primary_contact_email:c.email,referrer_card:d};switch(u){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsBusinessVerificationSend,f);break;case"reimbursement":this.fireTrack(i.Event.reimbursementBusinessVerificationSend,f);break;case"charge_cards":this.fireTrack(i.Event.cardsBusinessVerificationSend,f);break;default:this.fireTrack(i.Event.billPayBusinessVerificationSend,f)}}onboardingConnectBankEventsByEventSource(o,a){if(a!=null&&o!=null)switch(a){case"link_bank_account":this.fireTrack(i.Event.onboardingLinkBankAccount,{referrer_card:o});break;case"switch_to_bank_account":this.fireTrack(i.Event.onboardingSwitchToBankAccount,{referrer_card:o});break;case"link_new_bank_account":this.fireTrack(i.Event.onboardingLinkANewBankAccount,{referrer_card:o})}}onboardingConnectBankEventsByEventSourceSuccess(o,a,c,u,d,f){if(f!=null&&d!=null)switch(f){case"link_bank_account":this.fireTrack(i.Event.onboardingLinkBankAccountSuccess,{referrer_card:d,plaid_session_id:o,plaid_account_id:a,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u});break;case"switch_to_bank_account":this.fireTrack(i.Event.onboardingSwitchToBankAccountSuccess,{referrer_card:d,plaid_session_id:o,plaid_account_id:a,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u});break;case"link_new_bank_account":this.fireTrack(i.Event.onboardingLinkANewBankAccountSuccess,{referrer_card:d,plaid_session_id:o,plaid_account_id:a,is_micro_deposit_verification_done:c??!1,plaid_institution_name:u})}}onboardingConnectBankEventsByEventSourceFailure(o,a,c,u,d,f,_){if(_!=null&&f!=null)switch(_){case"link_bank_account":this.fireTrack(i.Event.onboardingLinkBankAccountFailure,{referrer_card:f,error_description:o,error_code:d,plaid_session_id:a,plaid_request_id:c,plaid_institution_name:u});break;case"switch_to_bank_account":this.fireTrack(i.Event.onboardingSwitchToBankAccountFailure,{referrer_card:f,error_description:o,error_code:d,plaid_session_id:a,plaid_request_id:c,plaid_institution_name:u});break;case"link_new_bank_account":this.fireTrack(i.Event.onboardingLinkANewBankAccountFailure,{referrer_card:f,error_description:o,error_code:d,plaid_session_id:a,plaid_request_id:c,plaid_institution_name:u})}}onboardingCreditCardEventsConnectByEventSource(o,a){if(a!=null&&o!=null)switch(a){case"switch_to_credit_card":this.fireTrack(i.Event.onboardingSwitchToCreditCard,{referrer_card:o});break;case"link_new_credit_card":this.fireTrack(i.Event.onboardingLinkNewCard,{referrer_card:o});break;case"link_credit_card":this.fireTrack(i.Event.onboardingLinkCreditCard,{referrer_card:o})}}onboardingCreditCardConnectEventsByEventSourceSuccess(o,a){if(a!=null&&o!=null)switch(a){case"switch_to_credit_card":this.fireTrack(i.Event.onboardingSwitchToCreditCardSuccess,{referrer_card:o});break;case"link_new_credit_card":this.fireTrack(i.Event.onboardingLinkNewCardSuccess,{referrer_card:o});break;case"link_credit_card":this.fireTrack(i.Event.onboardingLinkCreditCardSuccess,{referrer_card:o})}}onboardingCreditCardConnectEventsByEventSourceFailure(o,a,c,u){if(u!=null&&c!=null)switch(u){case"switch_to_credit_card":this.fireTrack(i.Event.onboardingSwitchToCreditCardFailure,{referrer_card:c,error_description:o,error_code:a});break;case"link_new_credit_card":this.fireTrack(i.Event.onboardingLinkNewCardFailure,{referrer_card:c,error_description:o,error_code:a});break;case"link_credit_card":this.fireTrack(i.Event.onboardingLinkCreditCardFailure,{referrer_card:c,error_description:o,error_code:a})}}billingConnectBankEventsByEventSource(o,a){if(a!=null&&o!=null)switch(a){case"link_new_bank_account":this.fireTrack(i.Event.billingLinkNewBankAccount,{referrer_card:o});break;case"switch_to_bank_account":this.fireTrack(i.Event.billingSwitchToBankAccount,{referrer_card:o})}}billingConnectBankEventsByEventSourceSuccess(o,a){if(a!=null&&o!=null)switch(a){case"link_new_bank_account":this.fireTrack(i.Event.billingLinkNewBankAccountSuccess,{referrer_card:o});break;case"switch_to_bank_account":this.fireTrack(i.Event.billingSwitchToBankAccountSuccess,{referrer_card:o})}}billingConnectBankEventsByEventSourceFailure(o,a,c,u){if(u!=null&&c!=null)switch(u){case"link_new_bank_account":this.fireTrack(i.Event.billingLinkNewBankAccountFailure,{referrer_card:c,error_description:o,error_code:a});break;case"switch_to_bank_account":this.fireTrack(i.Event.billingSwitchToBankAccountFailure,{referrer_card:c,error_description:o,error_code:a})}}billingConnectCreditCardEventsByEventSource(o,a){if(a!=null&&o!=null)switch(a){case"switch_to_credit_card":this.fireTrack(i.Event.billingSwitchToCreditCard,{referrer_card:o});break;case"link_new_credit_card":this.fireTrack(i.Event.billingLinkNewCard,{referrer_card:o})}}billingConnectCreditCardEventsByEventSourceSuccess(o,a){if(a!=null&&o!=null)switch(a){case"switch_to_credit_card":this.fireTrack(i.Event.billingSwitchToCreditCardSuccess,{referrer_card:o});break;case"link_new_credit_card":this.fireTrack(i.Event.billingLinkNewCardSuccess,{referrer_card:o})}}billingConnectCreditCardEventsByEventSourceFailure(o,a,c,u){if(u!=null&&c!=null)switch(u){case"switch_to_credit_card":this.fireTrack(i.Event.billingSwitchToCreditCardFailure,{referrer_card:c,error_description:o,error_code:a});break;case"link_new_credit_card":this.fireTrack(i.Event.billingLinkNewCardFailure,{referrer_card:c,error_description:o,error_code:a})}}trackConnectBank(o,a,c){switch(o){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBank,{referrer_card:a});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBank,{referrer_card:a});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBank,{referrer_card:a});break;case"onboarding":this.onboardingConnectBankEventsByEventSource(a,c);break;case"billing":this.billingConnectBankEventsByEventSource(a,c);break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBank,{referrer_card:a});break;default:this.fireTrack(i.Event.otherConnectionConnectBank,{referrer_card:a})}}trackConnectBankSuccess(o,a,c,u,d,f,_){switch(o){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBankSuccess,{referrer_card:a});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBankSuccess,{referrer_card:a});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBankSuccess,{referrer_card:a});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceSuccess(u??null,d??null,f??null,_??null,a,c);break;case"billing":this.billingConnectBankEventsByEventSourceSuccess(a,c);break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBankSuccess,{referrer_card:a});break;default:this.fireTrack(i.Event.otherConnectionConnectBankSuccess,{referrer_card:a})}}trackConnectBankFailure(o,a,c,u,d,f,_,m){switch(o){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBankFailure,{error_code:d,error_description:a,referrer_card:c});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBankFailure,{error_code:d,error_description:a,referrer_card:c});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBankFailure,{error_code:d,error_description:a,referrer_card:c});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceFailure(a,f??null,_??null,m??null,d,c,u);break;case"billing":this.billingConnectBankEventsByEventSourceFailure(a,d,c,u);break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBankFailure,{error_code:d,error_description:a,referrer_card:c});break;default:this.fireTrack(i.Event.otherConnectionConnectBankFailure,{error_code:d,error_description:a,referrer_card:c})}}trackCreditCardConnect(o,a,c){if(c!=null&&a!=null)switch(o){case"onboarding":this.onboardingCreditCardEventsConnectByEventSource(c,a);break;case"billing":this.billingConnectCreditCardEventsByEventSource(c,a)}}trackCreditCardConnectSuccess(o,a,c){if(a!=null&&c!=null)switch(o){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceSuccess(a,c);break;case"billing":this.billingConnectCreditCardEventsByEventSourceSuccess(a,c)}}trackCreditCardConnectFailure(o,a,c,u,d){if(c!=null&&u!=null)switch(o){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceFailure(a,d,c,u);break;case"billing":this.billingConnectCreditCardEventsByEventSourceFailure(a,d,c,u)}}trackConnectBankLink(o,a,c,u){switch(c){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;case"onboarding":this.fireTrack(i.Event.onboardingConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBankLink,{account_name:a,account_id:o,referrer_card:u});break;default:this.fireTrack(i.Event.otherConnectionsConnectBankLink,{account_name:a,account_id:o,referrer_card:u})}}trackConnectBankGetBalance(o,a){switch(o){case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsConnectBankGetBalance,{referrer_card:a});break;case"charge_cards":this.fireTrack(i.Event.cardsConnectBankGetBalance,{referrer_card:a});break;case"reimbursement":this.fireTrack(i.Event.reimbursementConnectBankGetBalance,{referrer_card:a});break;case"onboarding":this.fireTrack(i.Event.onboardingConnectBankGetBalance,{referrer_card:a});break;case"bill_pay":this.fireTrack(i.Event.billPayConnectBankGetBalance,{referrer_card:a});break;default:this.fireTrack(i.Event.otherConnectionConnectBankGetBalance,{referrer_card:a})}}trackNeedHelp(o){switch(o){case"onboarding":this.fireTrack(i.Event.onboardingNeedHelp,{});break;case"onboarding_interim":this.fireTrack(i.Event.onboardingInterimNeedHelp,{});break;case"onboarding_landing":this.fireTrack(i.Event.onboardingLandingNeedHelp,{});break;case"zeni_accounts":this.fireTrack(i.Event.zeniAccountsNeedHelp,{});break;case"charge_cards":this.fireTrack(i.Event.cardsNeedHelp,{});break;case"reimbursement":this.fireTrack(i.Event.reimbursementNeedHelp,{});break;default:this.fireTrack(i.Event.billPayNeedHelp,{})}}trackAccountsListPageViewed(o,a,c,u,d){this.fireTrack(i.Event.accountsListPageViewed,{zeni_accounts_count:o,external_accounts_count:a,zeni_accounts_available_balance:c,total_yield_earned:u,current_average_yield:d})}trackAccountsListPageClicked(o,a,c){this.fireTrack(i.Event.accountsListPageClicked,{click_type:o,account_name:a,account_status:c})}trackAccountsPromoPageClicked(o){this.fireTrack(i.Event.accountsPromoPageClicked,{click_type:o})}trackTransferBetweenAccountsFormClicked(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.zeniAccountsTransferFormClicked,{click_type:o,current_screen:a,transfer_from_bank_name:c,transfer_to_bank_name:u,amount:d,is_split_transfer:f,split_days_count:_,APY_slider_moved:m})}trackAccountsDepositCheckFormClicked(o,a,c,u,d,f){this.fireTrack(i.Event.accountsDepositCheckFormClicked,{click_type:o,amount:a,source_of_deposit:c,deposited_to:u,front_photo:d,back_photo:f})}trackAccountsDepositCheckFormViewed(){this.fireTrack(i.Event.accountsDepositCheckFormViewed)}trackZeniTransferBetweenAccountsFormViewed(){this.fireTrack(i.Event.zeniAccountsTransferFormViewed)}trackEnableZeniAccounts(){this.fireTrack(i.Event.enableZeniAccounts)}trackZeniAccountsPromoCardClick(o,a){this.fireTrack(i.Event.zeniAccountsPromoCardClick,{card_position:o,click_type:a})}trackZeniAccountsCashBalancePromoClicked(o){this.fireTrack(i.Event.zeniAccountsCashBalancePromoClicked,{click_type:o})}trackPlgPromoClicked(o,a){this.fireTrack(i.Event.plgPromoActionTaken,{page_name:o,clicked_on:a})}getBaseCardProperties(o,a,c,u){return{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,credit_account_id:c?.creditAccountId,credit_account_limit:c?.creditAccountLimit,credit_account_available_amount:c?.creditAccountAvailableAmount,credit_account_spent_amount:c?.creditAccountSpentAmount,credit_account_status:c?.creditAccountStatus,credit_account_outstanding_balance:c?.outstandingBalance,deposit_account_id:u?.debitAccountId,deposit_account_name:u?.debitAccountName,deposit_account_balance:u?.debitAccountBalance,debit_cards_spend:u?.debitCardsSpend,deposit_account_status:u?.debitAccountStatus}}getBaseCardPropertiesWithCashback(o,a,c,u,d){return{...this.getBaseCardProperties(o,a,u,d),credit_card_cashback_offer:c?.creditCardCashbackOffer,debit_card_cashback_offer:c?.debitCardCashbackOffer,total_earned_cashback:c?.totalEarnedCashback,redeemed_cashback:c?.redeemedCashback,available_cashback:c?.availableCashback,credit_card_cashback_redemption_mode:c?.creditCardCashbackRedemptionMode,debit_card_cashback_redemption_mode:c?.debitCardCashbackRedemptionMode}}getPaymentSourceProperties(o){return{is_zeni_checking_enabled:o.isZeniCheckingEnabled,is_zeni_checking_payment_source:o.isZeniCheckingPaymentSource,credit_card_payment_source_account_name:o.creditCardPaymentSourceAccountName,credit_card_payment_source_account_type:o.creditCardPaymentSourceAccountType,credit_card_payment_source_last_four_digits:o.creditCardPaymentSourceLastFourDigits,credit_card_payment_source_balance:o.creditCardPaymentSourceBalance}}getCardPaymentProperties(o){return{payment_amount:o.paymentAmount,payment_account_name:o.paymentAccountName,payment_account_type:o.paymentAccountType,payment_account_last_four_digits:o.paymentAccountLastFourDigits,payment_complete_eta:o.paymentCompleteEta,payment_initiated_date:o.paymentInitiatedDate}}trackCardsPromoPageClicked(o){this.fireTrack(i.Event.cardsPromoPageClick,{cards_click_type:o})}trackCardsListPageClicked(o){this.fireTrack(i.Event.cardsListPageClick,{cards_click_type:o})}trackCardsNewCardFormClicked(o,a,c,u,d){this.fireTrack(i.Event.cardsIssueNewCardFormClick,{cards_click_type:d,card_owner:o,card_name:a,amount:u,frequency:c})}trackCardsListRowClicked(o,a,c,u,d,f,_){this.fireTrack(i.Event.cardsListRowClick,{card_owner:o,card_name:a,department:c,utilisation:u,limit:d,frequency:f,is_self_card:_})}trackCardsDetailPageViewed(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.cardsDetailPage,{card_id:o,is_self_card:m,card_owner:a,card_name:c,utilisation:u,limit:d,frequency:f,card_color:_})}trackCardsVerifyPopUpClick(o,a,c,u,d,f,_,m,g){this.fireTrack(i.Event.cardsVerifyPopUpClick,{cards_click_type:_,is_self_card:m,card_owner:a,card_name:c,utilisation:u,limit:d,frequency:f,card_id:o,selected_color:g})}trackCardsDetailPageClicked(o,a,c,u,d,f,_,m,g){this.fireTrack(i.Event.cardsDetailPageClick,{cards_click_type:_,is_self_card:m,card_owner:a,card_name:c,utilisation:u,limit:d,frequency:f,card_id:o,selected_color:g})}trackZeniCardsPromoCardClicked(o,a,c,u,d){this.fireTrack(i.Event.zeniCardsPromoCardClicked,{card_position:c,click_type:a,is_cards_setup:o,user_name:u,credit_limit:d??"NA"})}trackCardsSetupCardsClick(o,a,c){this.fireTrack(i.Event.cardsSetupCardsClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,page_name:c})}trackCardsPromoView(o,a,c,u,d){this.fireTrack(i.Event.cardsPromoView,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,promo_format:c,promo_product:u,page_name:d})}trackCardsEnableCardsClick(o,a,c){this.fireTrack(i.Event.cardsEnableCardsClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,page_name:c})}trackCardsScheduleDemoClick(o,a,c){this.fireTrack(i.Event.cardsScheduleDemoClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,page_name:c})}trackCardsCardListView(o,a,c,u,d){this.fireTrack(i.Event.cardsCardListView,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,d)})}trackCardsCardListSearchClick(o,a,c,u,d){this.fireTrack(i.Event.cardsCardListSearchClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,d)})}trackCardsCardListMoreMenuClick(o,a,c,u,d){this.fireTrack(i.Event.cardsCardListMoreMenuClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,d)})}trackCardsSettingsClick(o,a,c,u,d){this.fireTrack(i.Event.cardsSettingsClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,d)})}trackCardsCardSetupView(o,a,c){this.fireTrack(i.Event.cardsCardSetupView,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,source:c})}trackCardsVerifyIdentityCompanyDetailsClick(o,a,c){this.fireTrack(i.Event.cardsVerifyIdentityCompanyDetailsClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,status:c})}trackCardsPaymentAccountChangeClick(o,a,c){this.fireTrack(i.Event.cardsPaymentAccountChangeClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,old_payment_account_name:c.oldPaymentAccountName,old_payment_account_balance:c.oldPaymentAccountBalance,new_payment_account_name:c.newPaymentAccountName,new_payment_account_balance:c.newPaymentAccountBalance,is_old_payment_account_recommended:c.isOldPaymentAccountRecommended,is_new_payment_account_recommended:c.isNewPaymentAccountRecommended,old_payment_account_position:c.oldPaymentAccountPosition,new_payment_account_position:c.newPaymentAccountPosition,number_of_payment_accounts:c.numberOfPaymentAccounts})}trackCardsZeniCashAccountChangeClick(o,a,c){this.fireTrack(i.Event.cardsZeniCashAccountChangeClick,{controller_emails:o,is_credit_card_offered:a.isCreditCardOffered,is_debit_card_offered:a.isDebitCardOffered,is_debit_card_enabled:a.isDebitCardEnabled,is_credit_card_enabled:a.isCreditCardEnabled,old_zeni_cash_account:c.oldZeniCashAccount,new_zeni_cash_account:c.newZeniCashAccount,old_zeni_cash_account_position:c.oldZeniCashAccountPosition,new_zeni_cash_account_position:c.newZeniCashAccountPosition,number_of_cash_accounts:c.numberOfCashAccounts})}trackCardsStatementsClick(o,a,c,u,d){this.fireTrack(i.Event.cardsStatementsClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,u,d)})}trackCardsCreditCardStatementsView(o,a,c,u,d){this.fireTrack(i.Event.cardsCreditCardStatementsView,{...this.getBaseCardProperties(o,a,u,d),number_of_statements:c.numberOfStatements,oldest_statement_month_year:c.oldestStatementMonthYear,latest_statement_month_year:c.latestStatementMonthYear})}trackCardsDownloadClick(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.cardsDownloadClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,_,m),page_name:d,position:f,file_category:u.fileCategory,file_type:u.fileType,file_name:u.fileName,file_month_year:u.fileMonthYear})}trackCardsNewCardClick(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.cardsNewCardClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,_,m),click_item:u,action:d,page_name:f})}trackCardsCashbackOverviewClick(o,a,c,u,d,f,_){this.fireTrack(i.Event.cardsCashbackOverviewClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,f,_),click_item:u,action:d})}trackCardsCardListRowClick(o,a,c,u,d,f,_,m,g){this.fireTrack(i.Event.cardsCardListRowClick,{...this.getBaseCardPropertiesWithCashback(o,a,_,m,g),click_item:c,action:u,position:d,card_name:f.cardName,card_owner:f.cardOwner,card_type:f.cardType,card_status:f.cardStatus,card_utilization_amount:f.cardUtilizationAmount,card_utilization_percent:f.cardUtilizationPercent,card_limit:f.cardLimit})}trackCardsCopyIconClick(o,a,c,u,d,f,_,m,g,y){this.fireTrack(i.Event.cardsCopyIconClick,{...this.getBaseCardPropertiesWithCashback(o,a,m,g,y),click_item:u,action:d,action_field:f,action_details:_,page_name:c})}trackCardsCardListSortClick(o,a,c,u,d,f,_,m,g,y){this.fireTrack(i.Event.cardsCardListSortClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,g,y),click_item:u,action:d,action_field:f,action_details:_,page_name:m})}trackCardsCardDetailView(o,a,c,u,d,f,_){this.fireTrack(i.Event.cardsCardDetailView,{...this.getBaseCardProperties(o,a,f,_),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,card_utilization_amount:c.cardUtilizationAmount,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:d.cardholderName,cardholder_email:d.cardholderEmail,cardholder_role:d.cardholderRole,cardholder_user_id:d.cardholderUserId,cardholder_department:d.cardholderDepartment})}trackCardsUpdateSpendLimitInitiated(o,a,c,u,d,f,_,m,g,y){this.fireTrack(i.Event.cardsUpdateSpendLimitInitiated,{...this.getBaseCardProperties(o,a,g,y),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_amount:c.cardUtilizationAmount,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:d.cardholderName,cardholder_email:d.cardholderEmail,cardholder_role:d.cardholderRole,cardholder_user_id:d.cardholderUserId,cardholder_department:d.cardholderDepartment,page_name:f,source:_,recommended_limits:m})}trackCardsUpdateSpendLimitClick(o,a,c,u,d,f,_,m,g,y,b,k,E){this.fireTrack(i.Event.cardsUpdateSpendLimitClick,{...this.getBaseCardProperties(o,a,k,E),card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_utilization_amount:c.cardUtilizationAmount,card_utilization_percent:c.cardUtilizationPercent,card_id:c.cardId,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_activated_date:c.cardActivatedDate,card_limit_frequency:c.cardLimitFrequency,card_spent_amount:c.cardSpentAmount,card_available_limit:c.cardAvailableLimit,total_number_of_declined_transactions:c.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:c.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:c.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:c.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:c.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:c.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:c.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:c.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:c.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:c.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:d.cardholderName,cardholder_email:d.cardholderEmail,cardholder_role:d.cardholderRole,cardholder_user_id:d.cardholderUserId,cardholder_department:d.cardholderDepartment,click_item:_,current_limit:m,new_limit:b,recommended_limits:g,was_recommended_limit_selected:y,card_limit_updated_by_name:f.cardLimitUpdatedByName,card_limit_updated_by_email:f.cardLimitUpdatedByEmail,card_limit_updated_by_role:f.cardLimitUpdatedByRole,card_limit_updated_by_user_id:f.cardLimitUpdatedByUserId})}trackCardsAddToWalletClick(o,a,c,u,d,f,_,m,g){this.fireTrack(i.Event.cardsAddToWalletClick,{...this.getBaseCardProperties(o,a,m,g),card_id:c.cardId,card_name:c.cardName,card_type:c.cardType,card_category:c.cardCategory,card_limit:c.cardLimit,card_last_four_digits:c.cardLastFourDigits,card_status:c.cardStatus,card_assigned_date:c.cardAssignedDate,card_issued_date:c.cardIssuedDate,card_limit_frequency:c.cardLimitFrequency,card_issued_by_name:u.cardIssuedByName,card_issued_by_email:u.cardIssuedByEmail,card_issued_by_user_id:u.cardIssuedByUserId,card_issued_by_role:u.cardIssuedByRole,card_issued_by_department:u.cardIssuedByDepartment,cardholder_name:d.cardholderName,cardholder_email:d.cardholderEmail,cardholder_role:d.cardholderRole,cardholder_user_id:d.cardholderUserId,cardholder_department:d.cardholderDepartment,page_name:f,click_item:_})}trackCardsPayEarlyClick(o,a,c,u,d,f,_,m,g){this.fireTrack(i.Event.cardsPayEarlyClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,g),...this.getPaymentSourceProperties(_),click_item:f,page_name:u,source:d})}trackCardsPayEarlyFormView(o,a,c,u,d,f,_,m,g){this.fireTrack(i.Event.cardsPayEarlyFormView,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,g),...this.getPaymentSourceProperties(_),is_autopay_selected:d,payment_amount:f,page_name:u})}trackCardsPayEarlyFormClick(o,a,c,u,d,f,_,m,g){this.fireTrack(i.Event.cardsPayEarlyFormClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,g),...this.getPaymentSourceProperties(_),is_autopay_selected:d,...this.getCardPaymentProperties(f),click_item:u})}trackCardsPayEarlyPayNowClick(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.cardsPayEarlyPayNowClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,_,m),...this.getPaymentSourceProperties(f),is_autopay_selected:u,...this.getCardPaymentProperties(d)})}trackEnableBillPay(){this.fireTrack(i.Event.enableBillPay)}trackEnableReimbursement(){this.fireTrack(i.Event.enableReimbursement)}trackUploadInvoice(o,a,c){switch(a){case"w9":this.fireTrack(i.Event.vendor1099W9DocumentUpload,{invoice_upload_method:o,vendor_legal_name:c??""});break;case"reimbursement":this.fireTrack(i.Event.reimbursementInvoiceUpload,{invoice_upload_method:o});break;default:this.fireTrack(i.Event.billPayInvoiceUpload,{invoice_upload_method:o})}}trackInvoiceActionClick(o,a,c,u){this.fireTrack(i.Event.billPayInvoiceActionClick,{bill_stage:o,action_clicked:a,user_name:c,override_data_click:u})}trackBillPaySkipAutofill(){this.fireTrack(i.Event.billPaySkipAutofill)}trackReimbursementSkipAutofill(){this.fireTrack(i.Event.reimbursementSkipAutofill)}trackBillPayNewBill(){this.fireTrack(i.Event.billPayNewBill)}trackReimbursementNewReimbursement(){this.fireTrack(i.Event.reimbursementNewReimbursement)}trackBillPayEditBill(o,a){this.fireTrack(i.Event.billPayEditBill,{bill_id:o,is_recurring_bill:a})}trackReimbursementEditReimbursement(o){this.fireTrack(i.Event.reimbursementEditReimbursement,{reimbursement_id:o})}trackBillPayBillDetails(o,a){this.fireTrack(i.Event.billPayBillDetails,{bill_id:o,is_recurring_bill:a})}trackReimbursementReimbursementDetails(o){this.fireTrack(i.Event.reimbursementReimbursementDetails,{reimbursement_id:o})}trackBillPayReviewBill(o,a,c,u,d,f,_,m,g,y,b,k,E,w){const C={final_vendor_name:f,zeni_rec_vendor_name:_,document_ai_rec_vendor_name:m,bill_id:g,invoice_number:y,invoice_date:a,bill_due_date:b,memo:k,currency:c,collect_from_vendor:u,international_transfer_fee_bearer_payment_method:E,is_recurring_bill:d,payment_method:o};d&&w!=null&&(C.recurring_bill_config={bill_value:w.totalAmount,start_date:w.startDate,end_date:w.endDate,frequency:w.frequency,total_payment_cycles:w.totalPaymentCycles,is_approval_required:w.isApprovalRequired}),this.fireTrack(i.Event.billPayReviewBill,C)}trackReimbursementSubmitReimbursement(o,a,c,u){this.fireTrack(i.Event.reimbursementSubmitReimbursement,{create_date:o,currency:a,total_amount:c,reimbursement_id:u})}trackBillPaySendForApproval(o,a,c,u,d,f,_){const m={bill_id:d,payment_method:o,scheduled_date:a,collect_from_vendor:c,international_transfer_fee_bearer_payment_method:f,is_recurring_bill:u};u&&_!=null&&(m.recurring_bill_config={bill_value:_.totalAmount,start_date:_.startDate,end_date:_.endDate,frequency:_.frequency,total_payment_cycles:_.totalPaymentCycles,is_approval_required:_.isApprovalRequired,is_update_current_bill:_.updateCurrentBill,is_update_future_bills:_.updateFutureRecurringBills}),this.fireTrack(i.Event.billPaySendForApproval,m)}trackBillPayDeleteBill(o,a){this.fireTrack(i.Event.billPayDeleteBill,{bill_id:o,is_recurring_bill:a})}trackBillPayCancelBill(o){this.fireTrack(i.Event.billPayCancelBill,{bill_id:o})}trackBillPayCancelAndDeleteBill(o,a){this.fireTrack(i.Event.billPayCancelAndDeleteBill,{bill_id:o,is_recurring_bill:a})}trackReimbursementListSort(o,a){this.fireTrack(i.Event.reimbursementListSort,{sort_key:o,sort_order:a})}trackReimbursementDeleteReimbursement(o){this.fireTrack(i.Event.reimbursementDeleteReimbursement,{reimbursement_id:o})}trackReimbursementCancelReimbursement(o){this.fireTrack(i.Event.reimbursementCancelReimbursement,{reimbursement_id:o})}trackReimbursementCancelAndDeleteReimbursement(o){this.fireTrack(i.Event.reimbursementCancelAndDeleteReimbursement,{reimbursement_id:o})}trackReimbursementDeleteReimbursementLine(o,a){this.fireTrack(i.Event.reimbursementDeleteReimbursementLine,{reimbursement_id:a,line_id:o})}trackReimbursementSubmitAnywayDuplicateReimbursement(o,a){this.fireTrack(i.Event.reimbursementSubmitAnywayDuplicateReimbursement,{reimbursement_id:a,number_of_duplicate_expenses:o})}trackReimbursementViewDuplicateExpense(o,a){this.fireTrack(i.Event.reimbursementViewDuplicateExpense,{reimbursement_id:a,is_duplicate_within_transaction:o})}trackReimbursementReviewDuplicateReportReimbursement(o,a){this.fireTrack(i.Event.reimbursementReviewDuplicateReportReimbursement,{reimbursement_id:a,number_of_duplicate_expenses:o})}trackReimbursementBulkSelectAll(o,a,c){this.fireTrack(i.Event.reimbursementBulkSelectAll,{report_stage:o,report_status:a,report_type:c})}trackReimbursementBulkDeleted(o,a,c,u){this.fireTrack(i.Event.reimbursementBulkDeleted,{total_reports_deleted:o,report_stage:a,report_status:c,report_type:u})}trackReimbursementBulkSubmit(o,a,c){this.fireTrack(i.Event.reimbursementBulkSubmit,{operation_type:o,report_stage:a,report_status:c})}trackReimbursementBulkSelection(o,a,c,u){this.fireTrack(i.Event.reimbursementBulkSelection,{total_reports_selected:o,report_stage:a,report_status:c,report_type:u})}trackReimbursementBulkPopupConfirm(o,a,c,u){this.fireTrack(i.Event.reimbursementBulkPopupConfirm,{operation_type:o,report_stage:a,report_status:c,report_type:u})}trackBillPayNewVendor(o,a,c,u,d,f,_){this.fireTrack(i.Event.billPayNewVendor,{vendor_name:o,vendor_category:a,vendor_class_name:c,vendor_type:u,vendor_contact_email:d,venfor_contact_name:f,vendor_contact_phone:_})}trackBillPayEditVendor(o){this.fireTrack(i.Event.billPayEditVendor,{vendor_id:o})}trackBillPayExpandVendor(o){this.fireTrack(i.Event.billPayExpandVendor,{vendor_id:o})}trackBillPayChooseNewVendor(){this.fireTrack(i.Event.billPayChooseNewVendor)}trackBillPayCreateNewVendorFromRecDropdown(o){this.fireTrack(i.Event.billPayCreateNewVendorFromDropdown,{vendor_name:o})}trackBillPayMagicLinkPreviewEmail(o){this.fireTrack(i.Event.billPayMagicLinkPreviewEmail,{on_page:o})}trackBillPayMagicLinkSubmitBankAccountDetails(o){this.fireTrack(i.Event.billPayMagicLinkSubmitBankAccountDetails,{bill_id:o})}trackBillPayMagicLinkPageLoad(o,a,c,u,d,f,_){this.fireTrack(i.Event.billPayMagicLinkPageLoad,{tenant_email_domain:o,vendor_id:a,company_name:c,bill_id:u,payment_method:d,currency:f,total_amount:_})}trackBillPayAutoDateChange(o){this.fireTrack(i.Event.billPayAutoDateChange,{bill_id:o})}trackBillPayBulkSelectAll(o,a,c){this.fireTrack(i.Event.billPayBulkSelectAll,{bill_stage:o,bill_status:a,bill_type:c})}trackBillPayBulkDeleted(o,a,c,u){this.fireTrack(i.Event.billPayBulkDeleted,{total_bills_deleted:o,bill_stage:a,bill_status:c,bill_type:u})}trackBillPayBulkSubmit(o,a,c){this.fireTrack(i.Event.billPayBulkSubmit,{operation_type:o,bill_stage:a,bill_status:c})}trackBillPayBulkSelection(o,a,c,u){this.fireTrack(i.Event.billPayBulkSelection,{total_bills_selected:o,bill_stage:a,bill_status:c,bill_type:u})}trackBillPayBulkPopupConfirm(o,a,c,u){this.fireTrack(i.Event.billPayBulkPopupConfirm,{operation_type:o,bill_stage:a,bill_status:c,bill_type:u})}trackBillPayMarkAsPaid(o,a){this.fireTrack(i.Event.billPayMarkAsPaid,{bill_stage:o,bill_status:a})}trackBillPayMarkAsPaidSubmit(o,a,c){this.fireTrack(i.Event.billPayMarkAsPaidSubmit,{payment_mode:o,bill_stage:a,bill_status:c})}trackGroupBySwitch(o,a){this.fireTrack(i.Event.groupBySwitch,{view:o,parent_card:a})}trackUpdateBurnRateCalculatorSettings(o,a,c){this.fireTrack(i.Event.burnRateCalculatorSettings,{accounting_method:o,time_span_id_for_avg_net_burn:a,number_of_months_for_average:c})}trackTransactionDetailsSave(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.transactionDetailsSave,{account_id:o,account_name:a,transaction_id:c,transaction_name:u,transaction_type:d,changed_line_item_count:f,transaction_memo:_,receipt_file_names:m})}trackTransactionTypeUpdateTriggered({amount:o,creditAccountGroup:a,creditAccountId:c,creditAccountName:u,creditAccountType:d,currentTransactionType:f,debitAccountGroup:_,debitAccountId:m,debitAccountName:g,debitAccountType:y,previousTransactionMemo:b,previousTransactionType:k,transactionId:E,updatedTransactionMemo:w}){this.fireTrack(i.Event.transactionTypeUpdateTriggered,{previous_transaction_type:k,current_transaction_type:f,previous_transaction_memo:b,updated_transaction_memo:w,debit_account_name:g,debit_account_id:m,debit_account_type:y,debit_account_group:_,credit_account_name:u,credit_account_id:c,credit_account_type:d,credit_account_group:a,amount:o,transaction_id:E})}trackVendorList(o,a,c,u,d){this.fireTrack(i.Event.vendorList,{vendor_count:c,sort_key:u,spend_trend_key:d,current_tab:o,previous_tab:a})}trackVendorListSort(o,a,c){this.fireTrack(i.Event.vendorListSort,{vendor_count:o,sort_key:a,spend_trend_key:c})}trackVendorListSearch(o){this.fireTrack(i.Event.vendorListSearch,{search_term:o})}trackVendorListSpendTrendSelection(o,a,c){this.fireTrack(i.Event.vendorListSpendTrendSelection,{vendor_count:o,sort_key:a,spend_trend_key:c})}trackVendorDetails(o,a,c,u,d,f,_,m,g,y){this.fireTrack(i.Event.vendorDetails,{vendor_id:o,vendor_name:a,referrer_card:c,vendor_category:u,vendor_class_name:d,spend_trend_indicator_value:_,vendor_spend_last_30days:m,vendor_spend_last_90days:g,vendor_spend_ytd:y,vendor_owner:f})}trackVendorDetailsSave(o,a,c,u,d,f,_,m,g,y,b,k){this.fireTrack(i.Event.vendorDetailsSave,{vendor_id:o,vendor_name:a,vendor_category:c,vendor_class_name:u,vendor_owner:d,saved_vendor_category:f,saved_vendor_class:_,saved_vendor_owner:m,is_recommended_category_selected:g,is_recommended_class_selected:y,category_recommendation_used:b,class_recommendation_used:k})}trackVendorDetailsCancel(o,a,c,u,d){this.fireTrack(i.Event.vendorDetailsCancel,{vendor_id:o,vendor_name:a,vendor_category:c,vendor_class_name:u,vendor_owner:d})}trackVendorDetailsSpendTrendHotlinkClicked(o,a,c,u,d){this.fireTrack(i.Event.vendorDetailsSpendTrendHotlinkClicked,{vendor_id:o,vendor_name:a,vendor_category:c,vendor_class_name:u,vendor_owner:d})}trackAgingReportDownloadClick(o,a,c){this.fireTrack(i.Event.download,{referrer_card:o,sort_key:a,sort_order:c})}trackAgingReportDateChange(o,a,c,u){this.fireTrack(i.Event.agingReportDateChange,{referrer_card:o,current_report_date:a,new_report_date:c,new_report_date_selection:u})}trackAgingReportSortChange(o,a,c){this.fireTrack(i.Event.sort,{referrer_card:o,sort_key:a,sort_order:c})}trackApAgingDetail(o,a,c,u){this.fireTrack(i.Event.apAgingDetail,{referrer_card:o,vendor_id:c,vendor_name:u,current_report_date:a})}trackArAgingDetail(o,a,c,u){this.fireTrack(i.Event.arAgingDetail,{referrer_card:o,customer_id:c,customer_name:u,current_report_date:a})}trackApAgingDetailReportSortChange(o,a,c,u,d){this.fireTrack(i.Event.sort,{referrer_card:"AP Aging Detail",sort_key:o,sort_order:a,vendor_id:u,vendor_name:d,current_report_date:c})}trackArAgingDetailReportSortChange(o,a,c,u,d){this.fireTrack(i.Event.sort,{referrer_card:"AR Aging Detail",sort_key:o,sort_order:a,customer_id:u,customer_name:d,current_report_date:c})}trackApAgingDetailReportDownload(o,a,c,u,d){this.fireTrack(i.Event.download,{referrer_card:"AP Aging Detail",sort_key:o,sort_order:a,vendor_id:u,vendor_name:d,current_report_date:c})}trackArAgingDetailReportDownload(o,a,c,u,d){this.fireTrack(i.Event.download,{referrer_card:"AR Aging Detail",sort_key:o,sort_order:a,customer_id:u,customer_name:d,current_report_date:c})}trackVendorReviewPage(o,a){this.fireTrack(i.Event.vendorReviewList,{vendor_review_source:o,vendor_review_count_total:a})}trackVendorReviewApproveRequested({reviewSource:o,tenantName:a,requestedVendorName:c,originalVendorName:u,approveVendorName:d,approveVendorNameSelectionSource:f,approveVendorReason:_,isGlobalVendorRequested:m,isNewCreatedVendorRequested:g,isVendorNameRecommendationSelected:y,isVendorNameChangedAndSelected:b,wasRecommendationAvailable:k,recommendedVendorName:E,recommendedVendorReason:w}){this.fireTrack(i.Event.vendorReviewGlobalApproveRequest,{vendor_review_source:o,vendor_review_tenant_name:a,old_vendor_name_requested:c,old_vendor_name_original:u,approve_vendor_name_requested:d,approve_vendor_name_recommendation_reason:_,approve_vendor_name_selection_source:f,vendor_name_recommendation:E,vendor_name_recommendation_reason:w,is_vendor_recommended:k,is_recommended_vendor_name_selected:y,is_vendor_renamed:b,is_global_vendor_selected:m,is_vendor_name_new_created_and_selected:g})}trackVendorReviewNewVendorRequested({reviewSource:o,tenantName:a,newRequestedVendorName:c,newRequestedVendorNameSource:u,isVendorNameRecommendationSelected:d,recommendedVendorName:f,recommendedVendorReason:_}){this.fireTrack(i.Event.vendorReviewGlobalNewVendorRequest,{vendor_review_source:o,vendor_review_tenant_name:a,new_vendor_name_requested:c,new_vendor_name_selection_source:u,new_vendor_recommendation_vendor_name:f,new_vendor_recommendation_vendor_name_reason:_,is_recommended_vendor_name_selected:d})}trackVendorReviewNewVendorSaved({reviewSource:o,saveRequestedVendorName:a,saveRequestedVendorSource:c,isVendorNameRecommendationSelected:u,tenantName:d,recommendedVendorName:f,recommendedVendorReason:_}){this.fireTrack(i.Event.vendorReviewGlobalNewVendorSave,{vendor_review_source:o,vendor_review_tenant_name:d,saved_vendor_name:a,saved_vendor_name_selection_source:c,new_vendor_recommendation_vendor_name:f,new_vendor_recommendation_vendor_name_reason:_,is_recommended_vendor_name_selected:u})}trackVendorReviewNewVendorCanceled({reviewSource:o,newRequestedVendorName:a,tenantName:c,recommendedVendorName:u,recommendedVendorReason:d}){this.fireTrack(i.Event.vendorReviewGlobalNewVendorCancel,{vendor_review_source:o,vendor_review_tenant_name:c,new_vendor_name_requested:a,new_vendor_recommendation_vendor_name:u,new_vendor_recommendation_vendor_name_reason:d})}trackVendorReviewSaveVendorRequested({reviewSource:o,vendorName:a,vendorReviewStatus:c,saveRequestedVendorName:u,saveRequestedVendorReason:d,saveRequestedVendorSource:f,isGlobalVendorRequested:_,isVendorNameRetainSelected:m,isVendorNameRecommendationSelected:g,isVendorNameChangedAndSelected:y,wasRecommendationAvailable:b,isVendorNameMarkedAsEmployee:k,isVendorNameMarkedAsLocalContractor:E,recommendedVendorName:w,recommendedVendorReason:C}){this.fireTrack(i.Event.vendorReviewTenantSave,{vendor_review_source:o,old_vendor_name:a,review_status:c,saved_vendor_name:u,save_vendor_name_recommendation_reason:d,saved_vendor_name_source:f,vendor_name_recommendation:w,vendor_name_recommendation_reason:C,is_vendor_name_retain_selected:m,is_recommended_vendor_name_selected:g,is_global_vendor_selected:_,is_vendor_renamed:y,is_vendor_recommended:b,is_vendor_employee:k,is_vendor_contractor:E})}trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:o,event:a,vendorName:c,vendorReviewStatus:u,saveRequestedVendorName:d,saveRequestedVendorReason:f,saveRequestedVendorSource:_,isVendorNameRetainSelected:m,isVendorNameRecommendationSelected:g,isVendorNameChangedAndSelected:y,wasRecommendationAvailable:b,recommendedVendorName:k,recommendedVendorReason:E}){this.fireTrack(a,{vendor_review_source:o,old_vendor_name:c,review_status:u,saved_vendor_name:d,save_vendor_name_recommendation_reason:f,saved_vendor_name_source:_,vendor_name_recommendation:k,vendor_name_recommendation_reason:E,is_vendor_name_retain_selected:m,is_recommended_vendor_name_selected:g,is_vendor_renamed:y,is_vendor_recommended:b})}trackVendorReviewRecommendationUpdateContinuedOrCanceled({reviewSource:o,event:a,vendorName:c,vendorReviewStatus:u,saveRequestedVendorName:d,saveRequestedVendorReason:f,saveRequestedVendorSource:_,isVendorNameRetainSelected:m,isVendorNameRecommendationSelected:g,isVendorNameChangedAndSelected:y,wasRecommendationAvailable:b,updatedRecommendedVendorName:k,updatedRecommendedVendorReason:E,recommendedVendorName:w,recommendedVendorReason:C}){this.fireTrack(a,{vendor_review_source:o,old_vendor_name:c,review_status:u,saved_vendor_name:d,save_vendor_name_recommendation_reason:f,saved_vendor_name_source:_,updated_recommendation_vendor_name:k,updated_recommendation_vendor_name_reason:E,vendor_name_recommendation:w,vendor_name_recommendation_reason:C,is_vendor_name_retain_selected:m,is_recommended_vendor_name_selected:g,is_vendor_renamed:y,is_vendor_recommended:b})}trackVendorReviewUpdateVendorCanceled({reviewSource:o,vendorName:a,vendorReviewStatus:c,wasRecommendationAvailable:u,recommendedVendorName:d,recommendedVendorReason:f}){this.fireTrack(i.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:o,old_vendor_name:a,review_status:c,vendor_name_recommendation:d,vendor_name_recommendation_reason:f,is_vendor_recommended:u})}trackVendorReviewWebsiteOpened({reviewSource:o,vendorName:a,wasRecommendationAvailable:c,recommendedVendorName:u,recommendedVendorReason:d,vendorWebsite:f}){this.fireTrack(i.Event.vendorReviewTenantWebsiteOpened,{vendor_review_source:o,old_vendor_name:a,vendor_name_recommendation:u,vendor_name_recommendation_reason:d,is_vendor_recommended:c,vendor_website:f})}trackCockpitTabClicked(o){const a={tab_name:o};this.fireTrack(i.Event.cockpitTabClicked,a)}trackCockpitHealthMonitorRowClicked(o,a,c,u,d,f){const _={company_id:o,company_name:a,churn_percent:f,controller_name:c,nps:u,csat:d};this.fireTrack(i.Event.cockpitHealthMonitorRowClicked,_)}trackHealthMonitorFiltersApplied({filterSelection:o}){this.fireTrack(i.Event.healthMonitorFilterApplied,{parameter:o.parameter,condition:o.condition,logic:o.logic})}trackCockpitHealthMonitorNotificationAlertClicked(o){const a={company_id:o.companyId,company_name:o.companyName,churn_percent:o.churnProbability};this.fireTrack(i.Event.cockpitHealthMonitorNotificationAlertClicked,a)}trackCockpitHealthMonitorChurnFormClicked(o,a){const c={click_type:o,company_id:a.companyId,company_name:a.companyName,zeni_products_and_services:a.zeniProductAndServicesCount,days_to_renewal:a.daysToRenewal,nps:a.netPromoterScore,csat:a.customerSatisfactionScore,external_services_exposure:a.externalServicesExposure,runway_months:a.runwayMonths,dashboard_last_seen:a.dashBoardLastSeen,last_report_sent:a.lastReportSent,churn_percent:a.churnProbability};this.fireTrack(i.Event.cockpitHealthMonitorChurnFormClicked,c)}trackScheduleReviewListLoaded({scheduleType:o,scheduleTab:a,currentTab:c,previousTab:u,scheduleCountTotal:d,categories:f,startMonth:_,endMonth:m,controllerEmails:g,controllerUserIds:y}){this.fireTrack(i.Event.scheduleReviewList,{schedule_type:o,schedule_list_tab:a,schedule_count_total:d,current_tab:c,previous_tab:u,schedule_account_categories_selected:f,schedule_period_start_month:_,schedule_period_end_month:m,controller_emails:g,controller_user_ids:y})}trackScheduleDetailsLoaded({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y,scheduleCategory:b,scheduleClass:k,description:E}=a,{currentBalance:w,currentStatus:C,startMonth:P,endMonth:D,period:v}=u,{expenseCategory:T,expenseClass:x}=c;this.fireTrack(i.Event.scheduleDetailsPage,{schedule_type:o,vendor_name:d,transaction_date:g,transaction_amount:y,schedule_current_balance:w,schedule_category:b,schedule_class:k,schedule_description:E,schedule_current_status:C,schedule_start_month:P,schedule_end_month:D,schedule_number_of_months:v,expense_category:T,expense_class:x,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleDetailsSaved({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y,scheduleCategory:b,scheduleClass:k,description:E}=a,{currentBalance:w,currentStatus:C,startMonth:P,endMonth:D,period:v}=u,{expenseCategory:T,expenseClass:x}=c;this.fireTrack(i.Event.scheduleDetailsSave,{schedule_type:o,vendor_name:d,transaction_date:g,transaction_amount:y,schedule_current_balance:w,schedule_category:b,schedule_class:k,schedule_description:E,schedule_current_status:C,schedule_start_month:P,schedule_end_month:D,schedule_number_of_months:v,expense_category:T,expense_class:x,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleDetailsCanceled({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y,scheduleCategory:b,scheduleClass:k,description:E}=a,{currentBalance:w,currentStatus:C,startMonth:P,endMonth:D,period:v}=u,{expenseCategory:T,expenseClass:x}=c;this.fireTrack(i.Event.scheduleDetailsCancel,{schedule_type:o,vendor_name:d??"",transaction_date:g,transaction_amount:y,schedule_current_balance:w,schedule_category:b,schedule_class:k,schedule_description:E,schedule_current_status:C,schedule_start_month:P,schedule_end_month:D,schedule_number_of_months:v,expense_category:T,expense_class:x,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleDetailsLinkJournalEntry({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y,scheduleCategory:b,scheduleClass:k}=a,{journalEntryMonth:E,journalEntryPostingDate:w,journalEntryTransactionAmount:C,journalEntryPostingStatus:P,journalEntryMemo:D}=u,{expenseCategory:v,expenseClass:T}=c;this.fireTrack(i.Event.scheduleDetailsLinkJournalEntry,{schedule_type:o,vendor_name:d,transaction_date:g,transaction_amount:y,schedule_category:b,schedule_class:k,journal_entry_month:E,journal_entry_posting_date:w,journal_entry_transaction_amount:C,journal_entry_posting_status:P,journal_entry_memo:D,expense_category:v,expense_class:T,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleDetailsViewJournalEntry({scheduleType:o,scheduleExpenseCategoryAndClass:a,journalEntryDetails:c,fixedAssetsDetails:u,controllerEmails:d,controllerUserIds:f}){const{journalEntryMonth:_,journalEntryPostingDate:m,journalEntryTransactionAmount:g,journalEntryPostingStatus:y,journalEntryMemo:b}=c,{expenseCategory:k,expenseClass:E}=a;this.fireTrack(i.Event.scheduleDetailsViewJournalEntry,{schedule_type:o,journal_entry_month:_,journal_entry_posting_date:m,journal_entry_transaction_amount:g,journal_entry_posting_status:y,journal_entry_memo:b,expense_category:k,expense_class:E,accumulated_depreciation_category:u?.accumulatedDepreciationCategory??null,asset_id:u?.assetId??null,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsDeleted({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y,scheduleCategory:b,scheduleClass:k,description:E}=a,{currentBalance:w,currentStatus:C,startMonth:P,endMonth:D,period:v}=u,{expenseCategory:T,expenseClass:x}=c;this.fireTrack(i.Event.scheduleDetailsDelete,{schedule_type:o,vendor_name:d,transaction_date:g,transaction_amount:y,schedule_current_balance:w,schedule_category:b,schedule_class:k,schedule_description:E,schedule_current_status:C,schedule_start_month:P,schedule_end_month:D,schedule_number_of_months:v,expense_category:T,expense_class:x,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleDetailsMarkedAsCompleted({scheduleType:o,transaction:a,scheduledTransaction:c,scheduleExpenseCategoryAndClass:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y,scheduleCategory:b,scheduleClass:k,description:E}=a,{currentBalance:w,currentStatus:C,startMonth:P,endMonth:D,period:v}=c,{expenseCategory:T,expenseClass:x}=u;this.fireTrack(i.Event.scheduleDetailsMarkComplete,{schedule_type:o,vendor_name:d,transaction_date:g,transaction_amount:y,schedule_current_balance:w,schedule_category:b,schedule_class:k,schedule_description:E,schedule_current_status:C,schedule_start_month:P,schedule_end_month:D,schedule_number_of_months:v,expense_category:T,expense_class:x,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y}=a,{journalEntryMonth:b,journalEntryPostingDate:k,journalEntryTransactionAmount:E,journalEntryPostingStatus:w,journalEntryMemo:C,journalEntryQBOLink:P,wasRecommendationAvailable:D,wasRecommendationSelected:v}=u,{expenseCategory:T,expenseClass:x}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:o,vendor_name:d,transaction_date:g,transaction_amount:y,journal_entry_month:b,journal_entry_posting_date:k,journal_entry_transaction_amount:E,journal_entry_posting_status:w,journal_entry_qbo_link:P,journal_entry_memo:C,is_vendor_recommended:D,was_recommendation_selected:v,expense_category:T,expense_class:x,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleDetailsJournalEntryQBOFetched({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y}=a,{journalEntryMonth:b,journalEntryPostingDate:k,journalEntryTransactionAmount:E,journalEntryPostingStatus:w,journalEntryMemo:C,wasRecommendationAvailable:P,wasRecommendationSelected:D,journalEntryQBOLink:v}=u,{expenseCategory:T,expenseClass:x}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:o,vendor_name:d,transaction_date:g,transaction_amount:y,journal_entry_month:b,journal_entry_posting_date:k,journal_entry_transaction_amount:E,journal_entry_posting_status:w,journal_entry_qbo_link:v,journal_entry_memo:C,is_vendor_recommended:P,was_recommendation_selected:D,expense_category:T,expense_class:x,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:d,fixedAssetsDetails:f,controllerEmails:_,controllerUserIds:m}){const{transactionDate:g,transactionAmount:y}=a,{journalEntryMonth:b,journalEntryPostingDate:k,journalEntryTransactionAmount:E,journalEntryPostingStatus:w,journalEntryMemo:C,wasRecommendationAvailable:P,wasRecommendationSelected:D,journalEntryQBOLink:v}=u,{expenseCategory:T,expenseClass:x}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:o,vendor_name:d,transaction_date:g,transaction_amount:y,journal_entry_month:b,journal_entry_posting_date:k,journal_entry_transaction_amount:E,journal_entry_posting_status:w,journal_entry_qbo_link:v,journal_entry_memo:C,is_vendor_recommended:P,was_recommendation_selected:D,expense_category:T,expense_class:x,accumulated_depreciation_category:f?.accumulatedDepreciationCategory??null,asset_id:f?.assetId??null,controller_emails:_,controller_user_ids:m})}trackScheduleAccruedDetailsNewRequested({scheduleType:o}){this.fireTrack(i.Event.scheduleDetailsNewRequested,{schedule_type:o})}trackScheduleAccruedDetailsLoaded({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:d,controllerUserIds:f}){const{startingBalance:_,scheduleAccountCategory:m,description:g,scheduleCreateDate:y,scheduleMonthlyAmount:b,runningBalance:k,currentStatus:E,startMonth:w,endMonth:C,period:P}=d,{expenseCategory:D,expenseClass:v}=a;this.fireTrack(i.Event.scheduleDetailsPage,{schedule_type:o,controller_emails:u,controller_user_ids:f,schedule_expense_category:D,schedule_expense_class:v,schedule_account_category:m,schedule_create_date:y,schedule_current_balance:k,schedule_current_status:E,schedule_description:g,schedule_end_month:C,schedule_monthly_amount:b,schedule_number_of_months:P,schedule_start_month:w,schedule_starting_balance:_,vendor_name:c})}trackScheduleAccruedDetailsSaved({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:d,controllerUserIds:f}){const{startingBalance:_,scheduleAccountCategory:m,description:g,scheduleCreateDate:y,scheduleMonthlyAmount:b,runningBalance:k,currentStatus:E,startMonth:w,endMonth:C,period:P}=d,{expenseCategory:D,expenseClass:v}=a;this.fireTrack(i.Event.scheduleDetailsSave,{schedule_type:o,controller_emails:u,controller_user_ids:f,schedule_expense_category:D,schedule_expense_class:v,schedule_account_category:m,schedule_create_date:y,schedule_current_balance:k,schedule_current_status:E,schedule_description:g,schedule_end_month:C,schedule_monthly_amount:b,schedule_number_of_months:P,schedule_start_month:w,schedule_starting_balance:_,vendor_name:c})}trackScheduleAccruedDetailsCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:d,controllerUserIds:f,lastPostedScheduleMonth:_}){const{startingBalance:m,scheduleAccountCategory:g,description:y,scheduleCreateDate:b,scheduleMonthlyAmount:k,runningBalance:E,currentStatus:w,startMonth:C,endMonth:P,period:D}=d,{expenseCategory:v,expenseClass:T}=a;this.fireTrack(i.Event.scheduleDetailsCancel,{schedule_type:o,controller_emails:u,controller_user_ids:f,schedule_expense_category:v,schedule_expense_class:T,schedule_account_category:g,schedule_create_date:b,schedule_current_balance:E,schedule_current_status:w,schedule_description:y,schedule_end_month:P,schedule_monthly_amount:k,schedule_number_of_months:D,schedule_start_month:C,schedule_starting_balance:m,vendor_name:c,schedule_last_month_with_posted_status:_})}trackScheduleAccruedDetailsDeleted({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:d,controllerUserIds:f,scheduleNonPendingLastMonth:_,scheduleNonPendingLastMonthStatus:m}){const{startingBalance:g,scheduleAccountCategory:y,description:b,scheduleCreateDate:k,scheduleMonthlyAmount:E,runningBalance:w,currentStatus:C,startMonth:P,endMonth:D,period:v}=d,{expenseCategory:T,expenseClass:x}=a;this.fireTrack(i.Event.scheduleDetailsDelete,{schedule_type:o,controller_emails:u,controller_user_ids:f,schedule_expense_category:T,schedule_expense_class:x,schedule_account_category:y,schedule_create_date:k,schedule_current_balance:w,schedule_current_status:C,schedule_description:b,schedule_end_month:D,schedule_monthly_amount:E,schedule_number_of_months:v,schedule_start_month:P,schedule_starting_balance:g,vendor_name:c,schedule_non_pending_last_month:_,schedule_non_pending_last_month_status:m})}trackScheduleAccruedDetailsLinkJournalEntry({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:f,controllerUserIds:_}){const{journalEntryMonth:m,journalEntryAmount:g,journalEntryBalance:y,journalEntryPostingStatus:b}=d,{scheduleCreateDate:k,scheduleMonthlyAmount:E,currentStatus:w,description:C,endMonth:P,period:D,runningBalance:v,scheduleAccountCategory:T,startMonth:x,startingBalance:V}=c,{expenseCategory:z,expenseClass:M}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:o,schedule_create_date:k,vendor_name:u,schedule_monthly_amount:E,schedule_description:C,schedule_current_status:w,schedule_start_month:x,schedule_end_month:P,schedule_number_of_months:D,schedule_current_balance:v,schedule_starting_balance:V,schedule_account_category:T,schedule_entry_expense_link_amount:g,schedule_entry_expense_link_balance:y,schedule_entry_expense_link_month:m,schedule_entry_current_status:b,schedule_expense_category:z,schedule_expense_class:M,controller_emails:f,controller_user_ids:_})}trackScheduleAccruedDetailsViewJournalEntry({scheduleType:o,scheduleJournalEntryType:a,scheduleExpenseCategoryAndClass:c,schedule:u,vendorName:d,journalEntryDetails:f,controllerEmails:_,controllerUserIds:m}){const{journalEntryMonth:g,journalEntryAmount:y,journalEntryBalance:b,journalEntryPostingStatus:k}=f,{scheduleCreateDate:E,scheduleMonthlyAmount:w,currentStatus:C,description:P,endMonth:D,period:v,runningBalance:T,scheduleAccountCategory:x,startMonth:V,startingBalance:z}=u,{expenseCategory:M,expenseClass:$}=c;this.fireTrack(i.Event.scheduleDetailsViewJournalEntry,{schedule_type:o,schedule_journal_entry_type:a,schedule_create_date:E,vendor_name:d,schedule_monthly_amount:w,schedule_account_category:x,schedule_description:P,schedule_current_status:C,schedule_start_month:V,schedule_end_month:D,schedule_number_of_months:v,schedule_expense_category:M,schedule_expense_class:$,schedule_current_balance:T,schedule_starting_balance:z,schedule_entry_current_status:k,schedule_entry_expense_link_amount:y,schedule_entry_expense_link_balance:b,schedule_entry_expense_link_month:g,controller_emails:_,controller_user_ids:m})}trackScheduleAccruedDetailsJournalEntryViewLinkedExpense({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:f,controllerUserIds:_}){const{journalEntryMonth:m,journalEntryAmount:g,journalEntryBalance:y,journalEntryPostingStatus:b}=d,{scheduleCreateDate:k,scheduleMonthlyAmount:E,currentStatus:w,description:C,endMonth:P,period:D,runningBalance:v,scheduleAccountCategory:T,startMonth:x,startingBalance:V}=c,{expenseCategory:z,expenseClass:M}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:o,schedule_create_date:k,vendor_name:u,schedule_monthly_amount:E,schedule_account_category:T,schedule_description:C,schedule_current_status:w,schedule_start_month:x,schedule_end_month:P,schedule_number_of_months:D,schedule_expense_category:z,schedule_expense_class:M,schedule_current_balance:v,schedule_starting_balance:V,schedule_entry_current_status:b,schedule_entry_expense_link_amount:g,schedule_entry_expense_link_balance:y,schedule_entry_expense_link_month:m,controller_emails:f,controller_user_ids:_})}trackScheduleAccruedDetailsJournalEntryLinkCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:f,controllerUserIds:_}){const{journalEntryMonth:m,journalEntryAmount:g,journalEntryBalance:y,journalEntryPostingStatus:b}=d,{scheduleCreateDate:k,scheduleMonthlyAmount:E,currentStatus:w,description:C,endMonth:P,period:D,runningBalance:v,scheduleAccountCategory:T,startMonth:x,startingBalance:V}=c,{expenseCategory:z,expenseClass:M}=a;this.fireTrack(i.Event.scheduleDetailsEntryCanceled,{schedule_type:o,schedule_create_date:k,vendor_name:u,schedule_monthly_amount:E,schedule_description:C,schedule_current_status:w,schedule_start_month:x,schedule_end_month:P,schedule_number_of_months:D,schedule_current_balance:v,schedule_starting_balance:V,schedule_account_category:T,schedule_entry_expense_link_month:m,schedule_expense_category:z,schedule_expense_class:M,schedule_entry_current_status:b,schedule_entry_expense_link_amount:g,schedule_entry_expense_link_balance:y,controller_emails:f,controller_user_ids:_})}trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:f,controllerUserIds:_}){const{currentStatus:m,description:g,endMonth:y,period:b,runningBalance:k,scheduleAccountCategory:E,scheduleCreateDate:w,scheduleMonthlyAmount:C,startMonth:P,startingBalance:D}=c,{wasRecommendationAvailable:v,journalEntryPostingStatus:T}=d,{expenseCategory:x,expenseClass:V}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:o,vendor_name:u,schedule_create_date:w,schedule_monthly_amount:C,schedule_description:g,schedule_current_status:m,schedule_start_month:P,schedule_end_month:y,schedule_number_of_months:b,schedule_current_balance:k,schedule_starting_balance:D,schedule_account_category:E,schedule_expense_category:x,schedule_expense_class:V,controller_emails:f,schedule_entry_current_status:T,controller_user_ids:_,is_vendor_recommended:v})}trackScheduleAccruedDetailsJournalEntryLinkedSaved({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,transactionDetails:d,journalEntryDetails:f,controllerEmails:_,controllerUserIds:m}){const{currentStatus:g,description:y,endMonth:b,period:k,runningBalance:E,scheduleAccountCategory:w,scheduleCreateDate:C,scheduleMonthlyAmount:P,startMonth:D,startingBalance:v}=c,{wasRecommendationAvailable:T,wasRecommendationSelected:x,journalEntryPostingStatus:V}=f,{linkedTransactionAmount:z,linkedTransactionDate:M,linkedTransactionDescription:$,linkedTransactionType:G}=d,{expenseCategory:U,expenseClass:re}=a;this.fireTrack(i.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:o,vendor_name:u,schedule_create_date:C,schedule_monthly_amount:P,schedule_description:y,schedule_current_status:g,schedule_start_month:D,schedule_end_month:b,schedule_number_of_months:k,schedule_current_balance:E,schedule_starting_balance:v,schedule_account_category:w,schedule_expense_category:U,schedule_expense_class:re,controller_emails:_,controller_user_ids:m,is_vendor_recommended:T,was_recommendation_selected:x,linked_transaction_amount:z,linked_transaction_date:M,schedule_entry_current_status:V,linked_transaction_description:$,linked_transaction_type:G})}trackScheduleAccruedDetailsJournalEntryLinkedCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:f,controllerUserIds:_}){const{currentStatus:m,description:g,endMonth:y,period:b,runningBalance:k,scheduleAccountCategory:E,scheduleCreateDate:w,scheduleMonthlyAmount:C,startMonth:P,startingBalance:D}=c,{wasRecommendationAvailable:v,journalEntryPostingStatus:T}=d,{expenseCategory:x,expenseClass:V}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:o,vendor_name:u,schedule_create_date:w,schedule_monthly_amount:C,schedule_description:g,schedule_current_status:m,schedule_start_month:P,schedule_end_month:y,schedule_number_of_months:b,schedule_current_balance:k,schedule_starting_balance:D,schedule_account_category:E,schedule_expense_category:x,schedule_expense_class:V,controller_emails:f,controller_user_ids:_,schedule_entry_current_status:T,is_vendor_recommended:v})}trackCockpitTaskCardClicked({tenantName:o,tenantId:a,user:c,controllerEmails:u}){this.fireTrack(i.Event.cockpitTaskCardClicked,{tenant_name:o,tenant_id:a,user_name:c.name,user_email:c.email,user_role:c.role,controller_emails:u})}trackTaskEdited({tenantName:o,taskId:a,activity:c,createdBy:u,commentsCreated:d}){const{name:f,description:_,status:m,priority:g,assignees:y,numberOfAttachments:b,tags:k,dueDate:E}=c.details;this.fireTrack(i.Event.taskEdited,{tenant_name:o,task_id:a,created_by:u,activity_count:c.count,activity_type:{name:f,description:_,status:m,priority:g,assignees:y,file_attached_count:b,tags:k,due_date:E},activity_by_user:c.byUser,comment_created:d})}trackTaskCreated({tenantName:o,taskId:a,newButtonClicked:c,activity:u,createdBy:d}){const{name:f,description:_,status:m,priority:g,assignees:y,numberOfAttachments:b,tags:k,dueDate:E}=u.details;this.fireTrack(i.Event.newTaskRequested,{tenant_name:o,task_id:a,created_by:d,new_task_button_clicked:c,file_attached_count:b,assignees:y,priority_set:g,task_name:f,task_description:_,task_status:m,tag_name:k?k.join(","):null,task_due_date:E})}trackRewardsPageClicked(o){this.fireTrack(i.Event.rewardsPageClicked,{click_type:o})}trackDashboardCardClicked(o,a){this.fireTrack(i.Event.dashboardCardClicked,{click_type:o,card_position:a})}trackInviteEmailClicked(o,a,c,u){this.fireTrack(i.Event.inviteEmailClicked,{click_type:o,referred_company:a,referred_email:c,invitee_count:u})}trackGetAuditScore(o,a,c,u,d){this.fireTrack(i.Event.getAuditScore,{clicked:o,tenant:a,report_month:c,controller_name:u,report_timestamp:d})}trackAuditScorePercentage(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.auditScorePercentage,{report_timestamp:o,report_month:a,score_percentage:c,issue_type:d,tenant:u,controller_name:_,customer_group:m,no_of_issues:f})}trackAuditIssuesClicked(o,a,c,u){this.fireTrack(i.Event.auditIssuesClicked,{clicked_issue:o,tenant:a,controller_name:c,created_at:u})}trackZeniAssistClick(o,a,c,u,d){this.fireTrack(i.Event.zeniAssistClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:d})}trackRetryClick(o,a,c,u,d){this.fireTrack(i.Event.retryClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:d})}trackRetryConfirmClick(o,a,c,u,d){this.fireTrack(i.Event.retryConfirmClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:d})}trackRefundClick(o,a,c,u,d){this.fireTrack(i.Event.refundClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:d})}trackRefundConfirmClick(o,a,c,u,d){this.fireTrack(i.Event.refundConfirmClick,{bill_stage:a,bill_status:o,bill_type:u,error_description:c,invoice_number:d})}trackVendor1099DetailSave(o){this.fireTrack(i.Event.vendor1099DetailsSave,{vendor_legal_name:o})}trackVendor1099ReportDownload(o){this.fireTrack(i.Event.vendor1099ReportDownload,{report:o.includes("All")?"All":o.toUpperCase()})}trackEnableIntlWire(o){this.fireTrack(i.Event.enableIntlWire,{local_currency_enabled:o})}trackSubmitIntlWire(o){this.fireTrack(i.Event.submitIntlWire,{local_currency_enabled:o})}trackIntlWirePaymentSelect(o,a,c,u,d){this.fireTrack(i.Event.intlWirePaymentMethod,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,local_currency_enabled:d})}trackMonthEndCloseClicked(o,a,c){this.fireTrack(i.Event.monthCloseClicked,{month_year:`${o}-${a}`,source:c})}trackMonthCloseAuditPage(o,a,c,u,d,f){this.fireTrack(i.Event.monthCloseAuditPage,{month_year:`${o}-${a}`,audit_score:u,refresh_clicked:d,status:c,source:f})}trackTransactionsReviewPage(o,a,c,u,d,f){this.fireTrack(i.Event.transactionsReview,{month_year:`${o}-${a}`,refresh_clicked:d,number_of_transactions:c,transaction_updates:u,source:f})}trackTransactionsAutoCategorisedPage(o,a,c,u,d,f){this.fireTrack(i.Event.transactionsAutoCategorised,{month_year:`${o}-${a}`,refresh_clicked:d,number_of_transactions:c,transaction_updates:u,source:f})}trackAiCloseTransactionSearch({filtersApplied:o,hasResults:a,isFiltered:c,resultsCount:u,searchTerm:d,searchType:f}){this.fireTrack(i.Event.aiCloseTransactionSearch,{filters_applied:o,has_results:a,is_filtered:c,results_count:u,search_term:d,search_type:f,section:"ai_close",tab:"transactions"})}trackMonthCloseScheduleListPage(o,a,c,u,d,f,_,m){this.fireTrack(i.Event.monthCloseScheduleList,{month_year:`${o}-${a}`,refresh_clicked:c,number_of_recommendations:u,failed_postings:d,number_of_prepaid:f.prepaidCount,number_of_fixed_assets:f.fixedAssetsCount,number_of_accrued:f.accruedCount,number_of_one_time_accruals:f.oneTimeAccrualCount,tab_name:_,source:m})}trackFluxAnalysisPage(o,a,c,u,d){this.fireTrack(i.Event.fluxAnalysis,{month_year:`${o}-${a}`,refresh_clicked:c,open_items:u,source:d})}trackFluxAnalysisReviewed(o,a,c,u){this.fireTrack(i.Event.fluxAnalysisReviewed,{month_year:`${o}-${a}`,number_of_items_reviewed:u.length,is_bulk_update:c})}trackMissingReceiptsPage(o,a,c,u,d){this.fireTrack(i.Event.missingReceipts,{month_year:`${o}-${a}`,number_of_transactions:u,refresh_clicked:c,source:d})}trackMissingReceiptAttached(o,a){this.fireTrack(i.Event.missingReceipts,{month_year:`${o}-${a}`,is_attached:!0})}trackInsightsEmailPage(o,a,c,u,d,f,_){this.fireTrack(i.Event.insightsEmail,{month_year:`${o}-${a}`,refresh_clicked:c,email_status:u,audit_score:d,date:f,source:_})}trackMonthEndEmailSentFromCockpit(o,a,c){this.fireTrack(i.Event.monthEndEmailSentFromCockpit,{month_year:`${o}-${a}`,recipient_count:c})}trackCommentAdded(o,a,c,u,d,f){this.fireTrack(i.Event.commentAdded,{page_name:o,commented_on:a,comment_type:c,tenant:u,controller_name:d,created_by:f})}trackCommentActivity(o,a,c,u,d,f,_){this.fireTrack(i.Event.commentActivity,{page_name:o,comment_activity_type:a,tenant:c,controller_name:u,status:d,created_by:f,comment_activity_source:_})}trackSendMoneyClick(){this.fireTrack(i.Event.sendMoneyClick)}trackExpressPayNextClick(o){this.fireTrack(i.Event.expressPayNextClick,{stage:o})}trackExpressPayScheduleClick(){this.fireTrack(i.Event.expressPayScheduleClick)}trackLowBalanceAccountSelected(o,a,c,u,d,f){this.fireTrack(i.Event.lowBalanceAccountSelected,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:f})}trackLowBalanceAccountSentForApproval(o,a,c,u,d,f){this.fireTrack(i.Event.lowBalanceAccountSentForApproval,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:f})}trackLowBalanceAccountApprove(o,a,c,u,d,f){this.fireTrack(i.Event.lowBalanceAccountApprove,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:f})}trackLowBalanceAccountReject(o,a,c,u,d,f){this.fireTrack(i.Event.lowBalanceAccountReject,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:f})}trackLowBalanceAccountChange(o,a,c,u,d,f){this.fireTrack(i.Event.lowBalanceAccountChange,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:f})}trackLowBalanceAccountSchedule(o,a,c,u,d,f){this.fireTrack(i.Event.lowBalanceAccountSchedule,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:f})}trackVendorOperatingExpenses(o,a){this.fireTrack(i.Event.vendorOperatingExpenses,{current_tab:o,previous_tab:a})}trackVendorOperatingExpensesPageLoaded(o){this.fireTrack(i.Event.vendorOperatingExpensesPageLoaded,{source:o})}trackAICFOChatScreenStateChanged(o,a,c,u){this.fireTrack(i.Event.aiCFOChatScreenStateChanged,{action:o,chat_source:a,chat_session_id:c,chat_session_title:u})}trackAICFOChatSessionChanged(o,a,c,u){this.fireTrack(i.Event.aiCFOChatSessionChanged,{action:o,chat_source:a,chat_session_id:c,chat_session_title:u})}trackAICFOChatSubmitted(o,a,c,u,d,f){this.fireTrack(i.Event.aiCFOChatSubmitted,{question_text:o,chat_source:a,chat_session_id:c,chat_message_id:d,chat_session_title:u,index:f})}trackAICFOChatFeedbackGiven(o,a,c,u,d){this.fireTrack(i.Event.aiCFOChatFeedbackGiven,{feedback_type:o,question_text:a,chat_session_id:c,chat_message_id:d,chat_session_title:u})}trackAICFOChatResponseGenerated(o,a,c,u,d,f){this.fireTrack(i.Event.aiCFOChatResponseGenerated,{response_type:o,question_text:a,response_text:c,chat_session_id:u,chat_message_id:f,chat_session_title:d})}trackAICFOChatAnswerGenerated(o,a,c,u,d,f,_,m,g,y){this.fireTrack(i.Event.aiCFOChatAnswerGenerated,{has_visualization:f,visualization_type:_,has_follow_up_questions:c,has_assumptions:u,response_text:o,has_insights:d,question_text:a,chat_session_id:m,chat_message_id:y,chat_session_title:g})}trackAICFOOnboardingScreenStateChanged(o,a){this.fireTrack(i.Event.aiCFOOnboardingScreenStateChanged,{action:o,ai_cfo_onboarding_source:a})}trackAICFOPrivacyPolicy(){this.fireTrack(i.Event.aiCFOPrivacyPolicy)}trackAICFOAgreement(){this.fireTrack(i.Event.aiCFOAgreement)}trackTreasuryNavPromoClick(o){this.fireTrack(i.Event.treasuryNavPromoClick,{clicked_on:o})}trackTreasuryPromoView(o){this.fireTrack(i.Event.treasuryPromoView,{page_name:o})}trackTreasurySetupActionClick(o){this.fireTrack(i.Event.treasurySetupActionClick,{action_type:o})}trackTreasuryProspectusClick(o,a,c){this.fireTrack(i.Event.treasuryProspectusClick,{fund_name:o,fund_ticker:a,page_name:c})}trackTreasuryCalculatorClick(o,a){this.fireTrack(i.Event.treasuryCalculatorClick,{page_name:o,amount:a})}trackTreasuryAgreementView(){this.fireTrack(i.Event.treasuryAgreementView)}trackTreasuryAllocationAction(o,a){this.fireTrack(i.Event.treasuryAllocationAction,{action_type:o,fund_percentage:a})}trackTreasuryRiskAction(o,a,c){this.fireTrack(i.Event.treasuryRiskAction,{action_type:o,risk_score:a,fund_percentage:c})}trackTreasuryVerificationNavigation(o,a){this.fireTrack(i.Event.treasuryVerificationNavigation,{clicked_on:o,verification_status:a})}trackTreasuryTransferAction(o,a,c,u,d,f){this.fireTrack(i.Event.treasuryTransferAction,{clicked_on:o,from_account:a,to_account:c,amount:u,fund_percentage:d,page_name:f})}trackTreasuryDashboardInteraction(o){this.fireTrack(i.Event.treasuryDashboardInteraction,{clicked_on:o})}trackTreasuryPortfolioConfirm(o,a){this.fireTrack(i.Event.treasuryPortfolioConfirm,{risk_score:o,fund_percentage:a})}trackTreasuryPromoCards(o){this.fireTrack(i.Event.treasuryPromoCards,{card_clicked:o})}trackTreasuryPromoVideo(o){this.fireTrack(i.Event.treasuryPromoVideo,{page_name:o})}trackInvoicingActionClick(o,a){this.fireTrack(o,{invoicing_invoice_id:a?.invoiceId,invoicing_customer_id:a?.customerId,invoicing_subscription_id:a?.subscriptionId,invoicing_transaction_id:a?.transactionId,invoicing_coupon_id:a?.couponId,invoicing_credit_note_id:a?.creditNoteId,invoicing_case_id:a?.caseId,invoicing_item_id:a?.itemId,invoicing_session_id:a?.sessionId,invoicing_entity_id:a?.entityId,invoicing_action:a?.action,invoicing_mode:a?.mode,invoicing_status:a?.status,invoicing_item_type:a?.itemType,invoicing_entity:a?.entity,invoicing_tab:a?.tab,invoicing_payment_method:a?.paymentMethod,invoicing_amount:a?.amount,invoicing_line_item_count:a?.lineItemCount,invoicing_linked_invoice_count:a?.linkedInvoiceCount,invoicing_is_recurring:a?.isRecurring,invoicing_fields_changed:a?.fieldsChanged,invoicing_from_screen:a?.fromScreen,invoicing_to_screen:a?.toScreen})}trackTransactionCotView({recommendationFor:o,currentValue:a,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:d,recommendationReason:f,recommendationConfidenceLevel:_,alternativeRecommendation:m,alternativeRecommendationCot:g,isAlternativeRecommendationCotAvailable:y,alternativeRecommendationReason:b,alternativeRecommendationConfidenceLevel:k,transactionPage:E,transactionCurrentStatus:w,recommendationConfidencePercentage:C,alternativeRecommendationConfidencePercentage:P,transactionId:D,lineId:v}){this.fireTrack(i.Event.transactionCotView,{recommendation_for:o,current_value:a,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:d,recommendation_reason:f,recommendation_confidence_percentage:C,recommendation_confidence_level:_,alternative_recommendation:m,alternative_recommendation_cot:g,is_alternative_recommendation_cot_available:y,alternative_recommendation_reason:b,alternative_recommendation_confidence_percentage:P,alternative_recommendation_confidence_level:k,transaction_page:E,transaction_current_status:w,...s(D,v)})}trackTransactionCotDropdownView({recommendationType:o,recommendationFor:a,currentValue:c,recommendation:u,recommendationCot:d,isRecommendationCotAvailable:f,recommendationReason:_,recommendationConfidenceLevel:m,transactionPage:g,transactionCurrentStatus:y,recommendationConfidencePercentage:b,transactionId:k,lineId:E}){this.fireTrack(i.Event.transactionCotDropdownView,{recommendation_type:o,recommendation_for:a,current_value:c,recommendation:u,recommendation_cot:d,is_recommendation_cot_available:f,recommendation_reason:_,recommendation_confidence_percentage:b,recommendation_confidence_level:m,transaction_current_status:y,transaction_page:g,...s(k,E)})}trackTransactionCotViewAlternative({alternativeRecommendationFor:o,alternativeRecommendation:a,alternativeRecommendationCot:c,isAlternativeRecommendationCotAvailable:u,alternativeRecommendationReason:d,alternativeRecommendationConfidenceLevel:f,transactionPage:_,transactionCurrentStatus:m,alternativeRecommendationConfidencePercentage:g,transactionId:y,lineId:b}){this.fireTrack(i.Event.transactionCotViewAlternative,{alternative_recommendation_for:o,alternative_recommendation:a,alternative_recommendation_cot:c,is_alternative_recommendation_cot_available:u,alternative_recommendation_reason:d,alternative_recommendation_confidence_percentage:g,alternative_recommendation_confidence_level:f,transaction_current_status:m,transaction_page:_,...s(y,b)})}trackTransactionCotViewRecommended({recommendationFor:o,currentValue:a,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:d,recommendationReason:f,recommendationConfidenceLevel:_,recommendationConfidencePercentage:m,transactionId:g,lineId:y}){this.fireTrack(i.Event.transactionCotViewRecommended,{recommendation_for:o,current_value:a,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:d,recommendation_reason:f,recommendation_confidence_percentage:m,recommendation_confidence_level:_,...s(g,y)})}trackRecommendationAccepted({recommendationFor:o,recommendationSetId:a,selectedSource:c,selectedRank:u,topPickSource:d,recommendationConfidencePercentage:f,numberOfRecommendations:_,transactionId:m,lineId:g}){this.fireTrack(i.Event.recommendationAccepted,{recommendation_for:o,recommendation_set_id:a,selected_source:c,selected_rank:u,top_pick_source:d,recommendation_confidence_percentage:f,number_of_recommendations:_,feedback_outcome:"accepted",...s(m,g)})}trackRecommendationFeedbackSubmitted({recommendationFor:o,recommendationSetId:a,selectedSource:c,selectedRank:u,topPickSource:d,feedbackOutcome:f,feedbackReasonLength:_,isNewEntitySelected:m,numberOfRecommendations:g,transactionId:y,lineId:b}){this.fireTrack(i.Event.recommendationFeedbackSubmitted,{recommendation_for:o,recommendation_set_id:a,selected_source:c,selected_rank:u,top_pick_source:d,feedback_outcome:f,feedback_reason_length:_,is_new_entity_selected:m,number_of_recommendations:g,feedback_skipped:!1,...s(y,b)})}trackRecommendationFeedbackSkipped({recommendationFor:o,recommendationSetId:a,selectedSource:c,selectedRank:u,topPickSource:d,feedbackOutcome:f,isNewEntitySelected:_,numberOfRecommendations:m,transactionId:g,lineId:y}){this.fireTrack(i.Event.recommendationFeedbackSkipped,{recommendation_for:o,recommendation_set_id:a,selected_source:c,selected_rank:u,top_pick_source:d,feedback_outcome:f,is_new_entity_selected:_,number_of_recommendations:m,feedback_skipped:!0,feedback_reason_length:0,...s(g,y)})}trackRecommendationFeedbackRetracted({recommendationFor:o,recommendationSetId:a,selectedSource:c,selectedRank:u,topPickSource:d,numberOfRecommendations:f,transactionId:_,lineId:m}){this.fireTrack(i.Event.recommendationFeedbackRetracted,{recommendation_for:o,recommendation_set_id:a,selected_source:c,selected_rank:u,top_pick_source:d,feedback_outcome:"retracted",is_new_entity_selected:!1,number_of_recommendations:f,feedback_skipped:!1,feedback_reason_length:0,...s(_,m)})}trackAIPerfHome(o){this.fireTrack(i.Event.aiPerfHome,{perf_snapshot:o})}trackAIPerfRefresh(o){this.fireTrack(i.Event.aiPerfRefresh,{perf_snapshot:o})}trackAIPerfTimePeriodSelect(o){this.fireTrack(i.Event.aiPerfTimePeriodSelect,{perf_snapshot:o})}trackAutoTransferRuleIconClick(o){this.fireTrack(i.Event.autoTransferRuleIconClick,{page_name:o})}trackAutoTransferRuleClick(o){this.fireTrack(i.Event.autoTransferRuleClick,{rule_name:o})}trackAutoTransferRuleReviewClick(o,a,c,u,d){this.fireTrack(i.Event.autoTransferRuleReviewClick,{rule_name:o,amount:a,withdrawal_bank:c,deposit_bank:u,frequency:d})}trackAutoTransferRuleCreateClick(o,a,c,u,d){this.fireTrack(i.Event.autoTransferRuleCreateClick,{rule_name:o,amount:a,withdrawal_bank:c,deposit_bank:u,frequency:d})}trackAutoTransferRuleMoreClick(o,a,c,u,d){this.fireTrack(i.Event.autoTransferRuleMoreClick,{rule_name:o,amount:a,withdrawal_bank:c,deposit_bank:u,frequency:d})}trackAutoTransferRuleActionClick(o,a,c,u,d,f){this.fireTrack(i.Event.autoTransferRuleActionClick,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:d,frequency:f})}trackAutoTransferRuleActionConfirm(o,a,c,u,d,f,_){this.fireTrack(i.Event.autoTransferRuleActionConfirm,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:d,frequency:f,update_log:_})}trackAutoTransferRuleActionCancel(o,a,c,u,d,f){this.fireTrack(i.Event.autoTransferRuleActionCancel,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:d,frequency:f})}fireTrack(o,a){if(i.EVENTS_WITHOUT_SUPER_PROPERTIES.has(o)===!0)return void this.provider.track(o,a);const c=Object.assign({},this.superProperties,a);this.provider.track(o,c)}}return Tr.Analytics=l,Tr})();Object.defineProperty(t,"Analytics",{enumerable:!0,get:function(){return r.Analytics}});const e=cs();Object.defineProperty(t,"EVENTS_WITHOUT_SUPER_PROPERTIES",{enumerable:!0,get:function(){return e.EVENTS_WITHOUT_SUPER_PROPERTIES}}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return e.Event}});const n=(ls||(ls=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.extractUtmParamsFromUrl=function(i){if(i==null&&typeof window>"u")return{};const s=i??new URLSearchParams(window.location.search),l={};for(const[h,o]of s.entries())h.startsWith("utm_")&&(l[h]=o);return l}),Ui);Object.defineProperty(t,"extractUtmParamsFromUrl",{enumerable:!0,get:function(){return n.extractUtmParamsFromUrl}})})(ss)),ss}var R,di={};if(typeof window>"u"){var ds={hostname:""};R={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ds,referrer:""},screen:{width:0,height:0},location:ds,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else R=window;function hs(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ps(t,r,e,n,i,s,l){try{var h=t[s](l),o=h.value}catch(a){return void e(a)}h.done?r(o):Promise.resolve(o).then(n,i)}function Ca(t){return function(){var r=this,e=arguments;return new Promise((function(n,i){var s=t.apply(r,e);function l(o){ps(s,n,i,l,h,"next",o)}function h(o){ps(s,n,i,l,h,"throw",o)}l(void 0)}))}}function dl(t,r,e){return(dl=pl()?Reflect.construct:function(n,i,s){var l=[null];l.push.apply(l,i);var h=new(Function.bind.apply(n,l));return s&&Si(h,s.prototype),h}).apply(null,arguments)}function Ue(t,r,e){return r&&(function(n,i){for(var s=0;s<i.length;s++){var l=i[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}})(t.prototype,r),t}function pe(){return pe=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},pe.apply(this,arguments)}function hl(t){return(hl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(t)}function $e(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Si(t,r)}function J(t,r){return r!=null&&typeof Symbol<"u"&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](t):t instanceof r}function Yr(t,r){if(t==null)return{};var e,n,i={},s=Object.keys(t);for(n=0;n<s.length;n++)e=s[n],r.indexOf(e)>=0||(i[e]=t[e]);return i}function Si(t,r){return(Si=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(t,r)}function ie(t){return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function hi(t){var r=typeof Map=="function"?new Map:void 0;return hi=function(e){if(e===null||(n=e,Function.toString.call(n).indexOf("[native code]")===-1))return e;var n;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(e))return r.get(e);r.set(e,i)}function i(){return dl(e,arguments,hl(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Si(i,e)},hi(t)}function pl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(pl=function(){return!!t})()}function F(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=(function(i,s){if(i){if(typeof i=="string")return hs(i,s);var l=Object.prototype.toString.call(i).slice(8,-1);return l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set"?Array.from(l):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?hs(i,s):void 0}})(t))||r){e&&(t=e);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xr(t,r){var e,n,i,s,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function h(o){return function(a){return(function(c){if(e)throw new TypeError("Generator is already executing.");for(;l;)try{if(e=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){l=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){l.label=c[1];break}if(c[0]===6&&l.label<i[1]){l.label=i[1],i=c;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(c);break}i[2]&&l.ops.pop(),l.trys.pop();continue}c=r.call(t,l)}catch(u){c=[6,u],n=0}finally{e=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([o,a])}}}function fl(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}var fs,Nd=Object.defineProperty,L=function(t,r,e){return(function(n,i,s){return i in n?Nd(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s})(t,(r===void 0?"undefined":ie(r))!=="symbol"?r+"":r,e)},Fd=Object.defineProperty,ms=function(t,r,e){return(function(n,i,s){return i in n?Fd(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s})(t,(r===void 0?"undefined":ie(r))!=="symbol"?r+"":r,e)},Fe=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Fe||{}),_s={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},gs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},hn={};function wa(t){if(hn[t])return hn[t];var r=globalThis[t],e=r.prototype,n=t in _s?_s[t]:void 0,i=!!(n&&n.every((function(c){var u,d;return!!((d=(u=Object.getOwnPropertyDescriptor(e,c))==null?void 0:u.get)!=null&&d.toString().includes("[native code]"))}))),s=t in gs?gs[t]:void 0,l=!!(s&&s.every((function(c){var u;return typeof e[c]=="function"&&((u=e[c])==null?void 0:u.toString().includes("[native code]"))})));if(i&&l&&!globalThis.Zone)return hn[t]=r.prototype,r.prototype;try{var h=document.createElement("iframe");document.body.appendChild(h);var o=h.contentWindow;if(!o)return r.prototype;var a=o[t].prototype;return document.body.removeChild(h),a?hn[t]=a:e}catch{return e}}var ji={};function Ot(t,r,e){var n,i=t+"."+String(e);if(ji[i])return ji[i].call(r);var s=wa(t),l=(n=Object.getOwnPropertyDescriptor(s,e))==null?void 0:n.get;return l?(ji[i]=l,l.call(r)):r[e]}var qi={};function vs(t,r,e){var n=t+"."+String(e);if(qi[n])return qi[n].bind(r);var i=wa(t)[e];return typeof i!="function"?r[e]:(qi[n]=i,i.bind(r))}var Ge={childNodes:function(t){return Ot("Node",t,"childNodes")},parentNode:function(t){return Ot("Node",t,"parentNode")},parentElement:function(t){return Ot("Node",t,"parentElement")},textContent:function(t){return Ot("Node",t,"textContent")},contains:function(t,r){return vs("Node",t,"contains")(r)},getRootNode:function(t){return vs("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Ot("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Ot("Element",t,"shadowRoot"):null},querySelector:function(t,r){return Ot("Element",t,"querySelector")(r)},querySelectorAll:function(t,r){return Ot("Element",t,"querySelectorAll")(r)},mutationObserver:function(){return wa("MutationObserver").constructor},patch:function(t,r,e){try{if(!(r in t))return function(){};var n=t[r],i=e(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),t[r]=i,function(){t[r]=n}}catch{return function(){}}}};function ml(t){return t.nodeType===t.ELEMENT_NODE}function Wr(t){var r=t&&"host"in t&&"mode"in t&&Ge.host(t)||null;return!!(r&&"shadowRoot"in r&&Ge.shadowRoot(r)===t)}function Gr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function _o(t){try{var r=t.rules||t.cssRules;if(!r)return null;var e=t.href;!e&&t.ownerNode&&t.ownerNode.ownerDocument&&(e=t.ownerNode.ownerDocument.location.href);var n=Array.from(r,(function(s){return _l(s,e)})).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch{return null}var i}function _l(t,r){if((function(s){return"styleSheet"in s})(t)){var e;try{e=_o(t.styleSheet)||(function(s){var l=s.cssText;if(l.split('"').length<3)return l;var h=["@import","url("+JSON.stringify(s.href)+")"];return s.layerName===""?h.push("layer"):s.layerName&&h.push("layer("+s.layerName+")"),s.supportsText&&h.push("supports("+s.supportsText+")"),s.media.length&&h.push(s.media.mediaText),h.join(" ")+";"})(t)}catch{e=t.cssText}return t.styleSheet.href?mi(e,t.styleSheet.href):e}var n,i=t.cssText;return(function(s){return"selectorText"in s})(t)&&t.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),r?mi(i,r):i}var gl=(function(){function t(){ms(this,"idNodeMap",new Map),ms(this,"nodeMetaMap",new WeakMap)}var r=t.prototype;return r.getId=function(e){var n;if(!e)return-1;var i=(n=this.getMeta(e))==null?void 0:n.id;return i??-1},r.getNode=function(e){return this.idNodeMap.get(e)||null},r.getIds=function(){return Array.from(this.idNodeMap.keys())},r.getMeta=function(e){return this.nodeMetaMap.get(e)||null},r.removeNodeFromMap=function(e){var n=this,i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach((function(s){return n.removeNodeFromMap(s)}))},r.has=function(e){return this.idNodeMap.has(e)},r.hasNode=function(e){return this.nodeMetaMap.has(e)},r.add=function(e,n){var i=n.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,n)},r.replace=function(e,n){var i=this.getNode(e);if(i){var s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(e,n)},r.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function pi(t){var r=t.element,e=t.maskInputOptions,n=t.tagName,i=t.type,s=t.value,l=t.maskInputFn,h=s||"",o=i&&Yt(i);return(e[n.toLowerCase()]||o&&e[o])&&(h=l?l(h,r):"*".repeat(h.length)),h}function Yt(t){return t.toLowerCase()}var ys="__rrweb_original__";function fi(t){var r=t.type;return t.hasAttribute("data-rr-is-password")?"password":r?Yt(r):null}function bs(t,r){var e;try{e=new URL(t,r??window.location.href)}catch{return null}var n,i=e.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(n=i?.[1])!=null?n:null}var Vd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ud=/^(?:[a-z+]+:)?\/\//i,jd=/^www\..*/i,qd=/^(data:)([^,]*),(.*)/i;function mi(t,r){return(t||"").replace(Vd,(function(e,n,i,s,l,h){var o,a=i||l||h,c=n||s||"";if(!a)return e;if(Ud.test(a)||jd.test(a)||qd.test(a))return"url("+c+a+c+")";if(a[0]==="/")return"url("+c+(((o=r).indexOf("//")>-1?o.split("/").slice(0,3).join("/"):o.split("/")[0]).split("?")[0]+a)+c+")";var u=r.split("/"),d=a.split("/");u.pop();for(var f,_=F(d);!(f=_()).done;){var m=f.value;m!=="."&&(m===".."?u.pop():u.push(m))}return"url("+c+u.join("/")+c+")"}))}function pn(t,r){return r===void 0&&(r=!1),r?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function zd(t,r){return(function(e,n,i){i===void 0&&(i=!1);var s=Array.from(n.childNodes),l=[],h=0;if(s.length>1&&e&&typeof e=="string"){for(var o=pn(e,i),a=o.length/e.length,c=1;c<s.length;c++)if(s[c].textContent&&typeof s[c].textContent=="string"){for(var u=pn(s[c].textContent,i),d=3;d<u.length&&(u[d].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,d),1)!==-1);d++);for(;d<u.length;d++){var f=u.substring(0,d),_=o.split(f),m=-1;if(_.length===2)m=_[0].length;else if(_.length>2&&_[0]===""&&s[c-1].textContent!=="")m=o.indexOf(f,1);else if(_.length===1){if(f=f.substring(0,f.length-1),(_=o.split(f)).length<=1)return l.push(e),l;d=101}else d===u.length-1&&(m=o.indexOf(f));if(_.length>=2&&d>100){var g=s[c-1].textContent;if(g&&typeof g=="string"){var y=pn(g).length;m=o.indexOf(f,y)}m===-1&&(m=_[0].length)}if(m!==-1){for(var b=Math.floor(m/a);b>0&&b<e.length;){if((h+=1)>50*s.length)return l.push(e),l;var k=pn(e.substring(0,b),i);if(k.length===m){l.push(e.substring(0,b)),e=e.substring(b),o=o.substring(m);break}k.length<m?b+=Math.max(1,Math.floor((m-k.length)/a)):b-=Math.max(1,Math.floor((k.length-m)*a))}break}}}}return l.push(e),l})(t,r).join("/* rr_split */")}var or,ks,Wd=1,Gd=new RegExp("[^a-z0-9-_:]");function vl(){return Wd++}var $d=/^[^ \t\n\r\u000c]+/,Hd=/^[, \t\n\r\u000c]+/,Cs=new WeakMap;function Pr(t,r){return r&&r.trim()!==""?Sa(t,r):r}function Zd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Sa(t,r){var e=Cs.get(t);if(e||(e=t.createElement("a"),Cs.set(t,e)),r){if(r.startsWith("blob:")||r.startsWith("data:"))return r}else r="";return e.setAttribute("href",r),e.href}function yl(t,r,e,n){return n&&(e==="src"||e==="href"&&(r!=="use"||n[0]!=="#")||e==="xlink:href"&&n[0]!=="#"?Pr(t,n):e!=="background"||r!=="table"&&r!=="td"&&r!=="th"?e==="srcset"?(function(i,s){if(s.trim()==="")return s;var l=0;function h(f){var _,m=f.exec(s.substring(l));return m?(_=m[0],l+=_.length,_):""}for(var o=[];h(Hd),!(l>=s.length);){var a=h($d);if(a.slice(-1)===",")a=Pr(i,a.substring(0,a.length-1)),o.push(a);else{var c="";a=Pr(i,a);for(var u=!1;;){var d=s.charAt(l);if(d===""){o.push((a+c).trim());break}if(u)d===")"&&(u=!1);else{if(d===","){l+=1,o.push((a+c).trim());break}d==="("&&(u=!0)}c+=d,l+=1}}}return o.join(", ")})(t,n):e==="style"?mi(n,Sa(t)):r==="object"&&e==="data"?Pr(t,n):n:Pr(t,n))}function bl(t,r,e){return(t==="video"||t==="audio")&&r==="autoplay"}function _i(t,r,e){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&_i(Ge.parentNode(t),r,e);for(var n=t.classList.length;n--;){var i=t.classList[n];if(r.test(i))return!0}return!!e&&_i(Ge.parentNode(t),r,e)}function kl(t,r,e,n){var i;if(ml(t)){if(i=t,!Ge.childNodes(i).length)return!1}else{if(Ge.parentElement(t)===null)return!1;i=Ge.parentElement(t)}try{if(typeof r=="string"){if(n){if(i.closest("."+r))return!0}else if(i.classList.contains(r))return!0}else if(_i(i,r,n))return!0;if(e){if(n){if(i.closest(e))return!0}else if(i.matches(e))return!0}}catch{}return!1}function Jd(t,r){var e=r.doc,n=r.mirror,i=r.blockClass,s=r.blockSelector,l=r.needsMask,h=r.inlineStylesheet,o=r.maskInputOptions,a=o===void 0?{}:o,c=r.maskTextFn,u=r.maskInputFn,d=r.dataURLOptions,f=d===void 0?{}:d,_=r.inlineImages,m=r.recordCanvas,g=r.keepIframeSrcFn,y=r.newlyAddedElement,b=y!==void 0&&y,k=r.cssCaptured,E=k!==void 0&&k,w=(function(C,P){if(P.hasNode(C)){var D=P.getId(C);return D===1?void 0:D}})(e,n);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Fe.Document,childNodes:[],compatMode:t.compatMode}:{type:Fe.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Fe.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return(function(C,P){for(var D,v=P.doc,T=P.blockClass,x=P.blockSelector,V=P.inlineStylesheet,z=P.maskInputOptions,M=z===void 0?{}:z,$=P.maskInputFn,G=P.dataURLOptions,U=G===void 0?{}:G,re=P.inlineImages,ee=P.recordCanvas,H=P.keepIframeSrcFn,j=P.newlyAddedElement,W=j!==void 0&&j,q=P.rootId,O=(function(Ie,Ve,Ye){try{if(typeof Ve=="string"){if(Ie.classList.contains(Ve))return!0}else for(var bt=Ie.classList.length;bt--;){var xt=Ie.classList[bt];if(Ve.test(xt))return!0}if(Ye)return Ie.matches(Ye)}catch{}return!1})(C,T,x),A=(function(Ie){if(J(Ie,HTMLFormElement))return"form";var Ve=Yt(Ie.tagName);return Gd.test(Ve)?"div":Ve})(C),I={},N=C.attributes.length,oe=0;oe<N;oe++){var te=C.attributes[oe];bl(A,te.name,te.value)||(I[te.name]=yl(v,A,Yt(te.name),te.value))}if(A==="link"&&V){var Ae=Array.from(v.styleSheets).find((function(Ie){return Ie.href===C.href})),Re=null;Ae&&(Re=_o(Ae)),Re&&(delete I.rel,delete I.href,I._cssText=Re)}if(A==="style"&&C.sheet){var He=_o(C.sheet);He&&(C.childNodes.length>1&&(He=zd(He,C)),I._cssText=He)}if(A==="input"||A==="textarea"||A==="select"){var et=C.value,Ze=C.checked;I.type!=="radio"&&I.type!=="checkbox"&&I.type!=="submit"&&I.type!=="button"&&et?I.value=pi({element:C,type:fi(C),tagName:A,value:et,maskInputOptions:M,maskInputFn:$}):Ze&&(I.checked=Ze)}if(A==="option"&&(C.selected&&!M.select?I.selected=!0:delete I.selected),A==="dialog"&&C.open&&(I.rr_open_mode=C.matches("dialog:modal")?"modal":"non-modal"),A==="canvas"&&ee){if(C.__context==="2d")(function(Ie){var Ve=Ie.getContext("2d");if(!Ve)return!0;for(var Ye=0;Ye<Ie.width;Ye+=50)for(var bt=0;bt<Ie.height;bt+=50){var xt=Ve.getImageData,rr=ys in xt?xt[ys]:xt;if(new Uint32Array(rr.call(Ve,Ye,bt,Math.min(50,Ie.width-Ye),Math.min(50,Ie.height-bt)).data.buffer).some((function(nr){return nr!==0})))return!1}return!0})(C)||(I.rr_dataURL=C.toDataURL(U.type,U.quality));else if(!("__context"in C)){var Je=C.toDataURL(U.type,U.quality),Be=v.createElement("canvas");Be.width=C.width,Be.height=C.height,Je!==Be.toDataURL(U.type,U.quality)&&(I.rr_dataURL=Je)}}if(A==="img"&&re){or||(or=v.createElement("canvas"),ks=or.getContext("2d"));var B=C,ge=B.currentSrc||B.getAttribute("src")||"<unknown-src>",ut=B.crossOrigin,je=function(){B.removeEventListener("load",je);try{or.width=B.naturalWidth,or.height=B.naturalHeight,ks.drawImage(B,0,0),I.rr_dataURL=or.toDataURL(U.type,U.quality)}catch(Ie){if(B.crossOrigin!=="anonymous")return B.crossOrigin="anonymous",void(B.complete&&B.naturalWidth!==0?je():B.addEventListener("load",je));console.warn("Cannot inline img src="+ge+"! Error: "+Ie)}B.crossOrigin==="anonymous"&&(ut?I.crossOrigin=ut:B.removeAttribute("crossorigin"))};B.complete&&B.naturalWidth!==0?je():B.addEventListener("load",je)}if(A==="audio"||A==="video"){var qe=I;qe.rr_mediaState=C.paused?"paused":"played",qe.rr_mediaCurrentTime=C.currentTime,qe.rr_mediaPlaybackRate=C.playbackRate,qe.rr_mediaMuted=C.muted,qe.rr_mediaLoop=C.loop,qe.rr_mediaVolume=C.volume}if(W||(C.scrollLeft&&(I.rr_scrollLeft=C.scrollLeft),C.scrollTop&&(I.rr_scrollTop=C.scrollTop)),O){var at=C.getBoundingClientRect(),dt=at.width,tr=at.height;I={class:I.class,rr_width:dt+"px",rr_height:tr+"px"}}A!=="iframe"||H(I.src)||(C.contentDocument||(I.rr_src=I.src),delete I.src);try{customElements.get(A)&&(D=!0)}catch{}return{type:Fe.Element,tagName:A,attributes:I,childNodes:[],isSVG:Zd(C)||void 0,needBlock:O,rootId:q,isCustom:D}})(t,{doc:e,blockClass:i,blockSelector:s,inlineStylesheet:h,maskInputOptions:a,maskInputFn:u,dataURLOptions:f,inlineImages:_,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:b,rootId:w});case t.TEXT_NODE:return(function(C,P){var D=P.needsMask,v=P.maskTextFn,T=P.rootId,x=P.cssCaptured,V=Ge.parentNode(C),z=V&&V.tagName,M="",$=z==="STYLE"||void 0,G=z==="SCRIPT"||void 0;return G?M="SCRIPT_PLACEHOLDER":x||(M=Ge.textContent(C),$&&M&&(M=mi(M,Sa(P.doc)))),!$&&!G&&M&&D&&(M=v?v(M,Ge.parentElement(C)):M.replace(/[\S]/g,"*")),{type:Fe.Text,textContent:M||"",rootId:T}})(t,{doc:e,needsMask:l,maskTextFn:c,rootId:w,cssCaptured:E});case t.CDATA_SECTION_NODE:return{type:Fe.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:Fe.Comment,textContent:Ge.textContent(t)||"",rootId:w};default:return!1}}function ve(t){return t==null?"":t.toLowerCase()}function yr(t,r){var e=r.doc,n=r.mirror,i=r.blockClass,s=r.blockSelector,l=r.maskTextClass,h=r.maskTextSelector,o=r.skipChild,a=o!==void 0&&o,c=r.inlineStylesheet,u=c===void 0||c,d=r.maskInputOptions,f=d===void 0?{}:d,_=r.maskTextFn,m=r.maskInputFn,g=r.slimDOMOptions,y=r.dataURLOptions,b=y===void 0?{}:y,k=r.inlineImages,E=k!==void 0&&k,w=r.recordCanvas,C=w!==void 0&&w,P=r.onSerialize,D=r.onIframeLoad,v=r.iframeLoadTimeout,T=v===void 0?5e3:v,x=r.onStylesheetLoad,V=r.stylesheetLoadTimeout,z=V===void 0?5e3:V,M=r.keepIframeSrcFn,$=M===void 0?function(){return!1}:M,G=r.newlyAddedElement,U=G!==void 0&&G,re=r.cssCaptured,ee=re!==void 0&&re,H=r.needsMask,j=r.preserveWhiteSpace,W=j===void 0||j;H||(H=kl(t,l,h,H===void 0));var q,O=Jd(t,{doc:e,mirror:n,blockClass:i,blockSelector:s,needsMask:H,inlineStylesheet:u,maskInputOptions:f,maskTextFn:_,maskInputFn:m,dataURLOptions:b,inlineImages:E,recordCanvas:C,keepIframeSrcFn:$,newlyAddedElement:U,cssCaptured:ee});if(!O)return console.warn(t,"not serialized"),null;q=n.hasNode(t)?n.getId(t):(function(B,ge){return!!(ge.comment&&B.type===Fe.Comment||B.type===Fe.Element&&(ge.script&&(B.tagName==="script"||B.tagName==="link"&&(B.attributes.rel==="preload"&&B.attributes.as==="script"||B.attributes.rel==="modulepreload")||B.tagName==="link"&&B.attributes.rel==="prefetch"&&typeof B.attributes.href=="string"&&bs(B.attributes.href)==="js")||ge.headFavicon&&(B.tagName==="link"&&B.attributes.rel==="shortcut icon"||B.tagName==="meta"&&(ve(B.attributes.name).match(/^msapplication-tile(image|color)$/)||ve(B.attributes.name)==="application-name"||ve(B.attributes.rel)==="icon"||ve(B.attributes.rel)==="apple-touch-icon"||ve(B.attributes.rel)==="shortcut icon"))||B.tagName==="meta"&&(ge.headMetaDescKeywords&&ve(B.attributes.name).match(/^description|keywords$/)||ge.headMetaSocial&&(ve(B.attributes.property).match(/^(og|twitter|fb):/)||ve(B.attributes.name).match(/^(og|twitter):/)||ve(B.attributes.name)==="pinterest")||ge.headMetaRobots&&(ve(B.attributes.name)==="robots"||ve(B.attributes.name)==="googlebot"||ve(B.attributes.name)==="bingbot")||ge.headMetaHttpEquiv&&B.attributes["http-equiv"]!==void 0||ge.headMetaAuthorship&&(ve(B.attributes.name)==="author"||ve(B.attributes.name)==="generator"||ve(B.attributes.name)==="framework"||ve(B.attributes.name)==="publisher"||ve(B.attributes.name)==="progid"||ve(B.attributes.property).match(/^article:/)||ve(B.attributes.property).match(/^product:/))||ge.headMetaVerification&&(ve(B.attributes.name)==="google-site-verification"||ve(B.attributes.name)==="yandex-verification"||ve(B.attributes.name)==="csrf-token"||ve(B.attributes.name)==="p:domain_verify"||ve(B.attributes.name)==="verify-v1"||ve(B.attributes.name)==="verification"||ve(B.attributes.name)==="shopify-checkout-api-token"))))})(O,g)||!W&&O.type===Fe.Text&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?-2:vl();var A=Object.assign(O,{id:q});if(n.add(t,A),q===-2)return null;P&&P(t);var I=!a;if(A.type===Fe.Element){I=I&&!A.needBlock,delete A.needBlock;var N=Ge.shadowRoot(t);N&&Gr(N)&&(A.isShadowHost=!0)}if((A.type===Fe.Document||A.type===Fe.Element)&&I){g.headWhitespace&&A.type===Fe.Element&&A.tagName==="head"&&(W=!1);var oe={doc:e,mirror:n,blockClass:i,blockSelector:s,needsMask:H,maskTextClass:l,maskTextSelector:h,skipChild:a,inlineStylesheet:u,maskInputOptions:f,maskTextFn:_,maskInputFn:m,slimDOMOptions:g,dataURLOptions:b,inlineImages:E,recordCanvas:C,preserveWhiteSpace:W,onSerialize:P,onIframeLoad:D,iframeLoadTimeout:T,onStylesheetLoad:x,stylesheetLoadTimeout:z,keepIframeSrcFn:$,cssCaptured:!1};if(!(A.type===Fe.Element&&A.tagName==="textarea"&&A.attributes.value!==void 0)){A.type===Fe.Element&&A.attributes._cssText!==void 0&&typeof A.attributes._cssText=="string"&&(oe.cssCaptured=!0);for(var te,Ae=F(Array.from(Ge.childNodes(t)));!(te=Ae()).done;){var Re=yr(te.value,oe);Re&&A.childNodes.push(Re)}}var He=null;if(ml(t)&&(He=Ge.shadowRoot(t)))for(var et,Ze=F(Array.from(Ge.childNodes(He)));!(et=Ze()).done;){var Je=yr(et.value,oe);Je&&(Gr(He)&&(Je.isShadow=!0),A.childNodes.push(Je))}}var Be=Ge.parentNode(t);return Be&&Wr(Be)&&Gr(Be)&&(A.isShadow=!0),A.type===Fe.Element&&A.tagName==="iframe"&&(function(B,ge,ut){var je=B.contentWindow;if(je){var qe,at=!1;try{qe=je.document.readyState}catch{return}if(qe==="complete"){var dt="about:blank";if(je.location.href!==dt||B.src===dt||B.src==="")return setTimeout(ge,0),B.addEventListener("load",ge);B.addEventListener("load",ge)}else{var tr=setTimeout((function(){at||(ge(),at=!0)}),ut);B.addEventListener("load",(function(){clearTimeout(tr),at=!0,ge()}))}}})(t,(function(){var B=t.contentDocument;if(B&&D){var ge=yr(B,{doc:B,mirror:n,blockClass:i,blockSelector:s,needsMask:H,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:u,maskInputOptions:f,maskTextFn:_,maskInputFn:m,slimDOMOptions:g,dataURLOptions:b,inlineImages:E,recordCanvas:C,preserveWhiteSpace:W,onSerialize:P,onIframeLoad:D,iframeLoadTimeout:T,onStylesheetLoad:x,stylesheetLoadTimeout:z,keepIframeSrcFn:$});ge&&D(t,ge)}}),T),A.type===Fe.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&bs(A.attributes.href)==="css")&&(function(B,ge,ut){var je,qe=!1;try{je=B.sheet}catch{return}if(!je){var at=setTimeout((function(){qe||(ge(),qe=!0)}),ut);B.addEventListener("load",(function(){clearTimeout(at),qe=!0,ge()}))}})(t,(function(){if(x){var B=yr(t,{doc:e,mirror:n,blockClass:i,blockSelector:s,needsMask:H,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:u,maskInputOptions:f,maskTextFn:_,maskInputFn:m,slimDOMOptions:g,dataURLOptions:b,inlineImages:E,recordCanvas:C,preserveWhiteSpace:W,onSerialize:P,onIframeLoad:D,iframeLoadTimeout:T,onStylesheetLoad:x,stylesheetLoadTimeout:z,keepIframeSrcFn:$});B&&x(t,B)}}),z),A}function Yd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xd(t){if(t.__esModule)return t;var r=t.default;if(typeof r=="function"){var e=function n(){return J(this,n)?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};e.prototype=r.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})})),e}var go={exports:{}},ke=String,ws=function(){return{isColorSupported:!1,reset:ke,bold:ke,dim:ke,italic:ke,underline:ke,inverse:ke,hidden:ke,strikethrough:ke,black:ke,red:ke,green:ke,yellow:ke,blue:ke,magenta:ke,cyan:ke,white:ke,gray:ke,bgBlack:ke,bgRed:ke,bgGreen:ke,bgYellow:ke,bgBlue:ke,bgMagenta:ke,bgCyan:ke,bgWhite:ke}};go.exports=ws(),go.exports.createColors=ws;var Qd=go.exports,Oe=Xd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ss=Qd,Es=Oe,vo=(function(t){function r(n,i,s,l,h,o){var a;return(a=t.call(this,n)||this).name="CssSyntaxError",a.reason=n,h&&(a.file=h),l&&(a.source=l),o&&(a.plugin=o),i!==void 0&&s!==void 0&&(typeof i=="number"?(a.line=i,a.column=s):(a.line=i.line,a.column=i.column,a.endLine=s.line,a.endColumn=s.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,r),a}$e(r,t);var e=r.prototype;return e.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",this.line!==void 0&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.showSourceCode=function(n){var i=this;if(!this.source)return"";var s=this.source;n==null&&(n=Ss.isColorSupported),Es&&n&&(s=Es(s));var l,h,o=s.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,o.length),u=String(c).length;if(n){var d=Ss.createColors(!0),f=d.bold,_=d.gray,m=d.red;l=function(g){return f(m(g))},h=function(g){return _(g)}}else l=h=function(g){return g};return o.slice(a,c).map((function(g,y){var b=a+1+y,k=" "+(" "+b).slice(-u)+" | ";if(b===i.line){var E=h(k.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return l(">")+h(k)+g+`
|
|
2
|
-
`+E+l("^")}return" "+h(k)+g})).join(`
|
|
3
|
-
`)},e.toString=function(){var n=this.showSourceCode();return n&&(n=`
|
|
4
|
-
|
|
5
|
-
`+n+`
|
|
6
|
-
`),this.name+": "+this.message+n},r})(hi(Error)),Ea=vo;vo.default=vo;var Wt={};Wt.isClean=Symbol("isClean"),Wt.my=Symbol("my");var As={after:`
|
|
7
|
-
`,beforeClose:`
|
|
8
|
-
`,beforeComment:`
|
|
9
|
-
`,beforeDecl:`
|
|
10
|
-
`,beforeOpen:" ",beforeRule:`
|
|
11
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},yo=(function(){function t(e){this.builder=e}var r=t.prototype;return r.atrule=function(e,n){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(e.raws.afterName!==void 0?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var l=(e.raws.between||"")+(n?";":"");this.builder(i+s+l,e)}},r.beforeAfter=function(e,n){var i;i=e.type==="decl"?this.raw(e,null,"beforeDecl"):e.type==="comment"?this.raw(e,null,"beforeComment"):n==="before"?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var s=e.parent,l=0;s&&s.type!=="root";)l+=1,s=s.parent;if(i.includes(`
|
|
12
|
-
`)){var h=this.raw(e,null,"indent");if(h.length)for(var o=0;o<l;o++)i+=h}return i},r.block=function(e,n){var i,s=this.raw(e,"between","beforeOpen");this.builder(n+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")},r.body=function(e){for(var n=e.nodes.length-1;n>0&&e.nodes[n].type==="comment";)n-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var l=e.nodes[s],h=this.raw(l,"before");h&&this.builder(h),this.stringify(l,n!==s||i)}},r.comment=function(e){var n=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+i+"*/",e)},r.decl=function(e,n){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),n&&(s+=";"),this.builder(s,e)},r.document=function(e){this.body(e)},r.raw=function(e,n,i){var s;if(i||(i=n),n&&(s=e.raws[n])!==void 0)return s;var l=e.parent;if(i==="before"&&(!l||l.type==="root"&&l.first===e||l&&l.type==="document"))return"";if(!l)return As[i];var h=e.root();if(h.rawCache||(h.rawCache={}),h.rawCache[i]!==void 0)return h.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var o,a="raw"+((o=i)[0].toUpperCase()+o.slice(1));return this[a]?s=this[a](h,e):h.walk((function(c){if((s=c.raws[n])!==void 0)return!1})),s===void 0&&(s=As[i]),h.rawCache[i]=s,s},r.rawBeforeClose=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length>0&&i.raws.after!==void 0)return(n=i.raws.after).includes(`
|
|
13
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1})),n&&(n=n.replace(/\S/g,"")),n},r.rawBeforeComment=function(e,n){var i;return e.walkComments((function(s){if(s.raws.before!==void 0)return(i=s.raws.before).includes(`
|
|
14
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1})),i===void 0?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},r.rawBeforeDecl=function(e,n){var i;return e.walkDecls((function(s){if(s.raws.before!==void 0)return(i=s.raws.before).includes(`
|
|
15
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1})),i===void 0?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},r.rawBeforeOpen=function(e){var n;return e.walk((function(i){if(i.type!=="decl"&&(n=i.raws.between)!==void 0)return!1})),n},r.rawBeforeRule=function(e){var n;return e.walk((function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&i.raws.before!==void 0)return(n=i.raws.before).includes(`
|
|
16
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1})),n&&(n=n.replace(/\S/g,"")),n},r.rawColon=function(e){var n;return e.walkDecls((function(i){if(i.raws.between!==void 0)return n=i.raws.between.replace(/[^\s:]/g,""),!1})),n},r.rawEmptyBody=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length===0&&(n=i.raws.after)!==void 0)return!1})),n},r.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&i.raws.before!==void 0){var l=i.raws.before.split(`
|
|
17
|
-
`);return n=(n=l[l.length-1]).replace(/\S/g,""),!1}})),n);var n},r.rawSemicolon=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon)!==void 0)return!1})),n},r.rawValue=function(e,n){var i=e[n],s=e.raws[n];return s&&s.value===i?s.raw:i},r.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},r.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},r.stringify=function(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)},t})(),Cl=yo;yo.default=yo;var Kd=Cl;function bo(t,r){new Kd(r).stringify(t)}var Ei=bo;bo.default=bo;var fn=Wt.isClean,eh=Wt.my,th=Ea,rh=Cl,nh=Ei;function ko(t,r){var e=new t.constructor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n!=="proxyCache"){var i=t[n],s=i===void 0?"undefined":ie(i);n==="parent"&&s==="object"?r&&(e[n]=r):n==="source"?e[n]=i:Array.isArray(i)?e[n]=i.map((function(l){return ko(l,e)})):(s==="object"&&i!==null&&(i=ko(i)),e[n]=i)}return e}var Co=(function(){function t(e){for(var n in e===void 0&&(e={}),this.raws={},this[fn]=!1,this[eh]=!0,e)if(n==="nodes"){this.nodes=[];for(var i,s=F(e[n]);!(i=s()).done;){var l=i.value;typeof l.clone=="function"?this.append(l.clone()):this.append(l)}}else this[n]=e[n]}var r=t.prototype;return r.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+n.input.from+":"+n.start.line+":"+n.start.column+"$&")}return e},r.after=function(e){return this.parent.insertAfter(this,e),this},r.assign=function(e){for(var n in e===void 0&&(e={}),e)this[n]=e[n];return this},r.before=function(e){return this.parent.insertBefore(this,e),this},r.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},r.clone=function(e){e===void 0&&(e={});var n=ko(this);for(var i in e)n[i]=e[i];return n},r.cloneAfter=function(e){e===void 0&&(e={});var n=this.clone(e);return this.parent.insertAfter(this,n),n},r.cloneBefore=function(e){e===void 0&&(e={});var n=this.clone(e);return this.parent.insertBefore(this,n),n},r.error=function(e,n){if(n===void 0&&(n={}),this.source){var i=this.rangeBy(n),s=i.end,l=i.start;return this.source.input.error(e,{column:l.column,line:l.line},{column:s.column,line:s.line},n)}return new th(e)},r.getProxyProcessor=function(){return{get:function(e,n){return n==="proxyOf"?e:n==="root"?function(){return e.root().toProxy()}:e[n]},set:function(e,n,i){return e[n]===i||(e[n]=i,n!=="prop"&&n!=="value"&&n!=="name"&&n!=="params"&&n!=="important"&&n!=="text"||e.markDirty()),!0}}},r.markDirty=function(){if(this[fn]){this[fn]=!1;for(var e=this;e=e.parent;)e[fn]=!1}},r.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},r.positionBy=function(e,n){var i=this.source.start;if(e.index)i=this.positionInside(e.index,n);else if(e.word){var s=(n=this.toString()).indexOf(e.word);s!==-1&&(i=this.positionInside(s,n))}return i},r.positionInside=function(e,n){for(var i=n||this.toString(),s=this.source.start.column,l=this.source.start.line,h=0;h<e;h++)i[h]===`
|
|
18
|
-
`?(s=1,l+=1):s+=1;return{column:s,line:l}},r.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},r.rangeBy=function(e){var n={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(e.word){var s=this.toString(),l=s.indexOf(e.word);l!==-1&&(n=this.positionInside(l,s),i=this.positionInside(l+e.word.length,s))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line}),{end:i,start:n}},r.raw=function(e,n){return new rh().raw(this,e,n)},r.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},r.replaceWith=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(this.parent){for(var s,l=this,h=!1,o=F(n);!(s=o()).done;){var a=s.value;a===this?h=!0:h?(this.parent.insertAfter(l,a),l=a):this.parent.insertBefore(l,a)}h||this.remove()}return this},r.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},r.toJSON=function(e,n){var i={},s=n==null;n=n||new Map;var l=0;for(var h in this)if(Object.prototype.hasOwnProperty.call(this,h)&&h!=="parent"&&h!=="proxyCache"){var o=this[h];if(Array.isArray(o))i[h]=o.map((function(c){return(c===void 0?"undefined":ie(c))==="object"&&c.toJSON?c.toJSON(null,n):c}));else if((o===void 0?"undefined":ie(o))==="object"&&o.toJSON)i[h]=o.toJSON(null,n);else if(h==="source"){var a=n.get(o.input);a==null&&(a=l,n.set(o.input,l),l++),i[h]={end:o.end,inputId:a,start:o.start}}else i[h]=o}return s&&(i.inputs=[].concat(n.keys()).map((function(c){return c.toJSON()}))),i},r.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},r.toString=function(e){e===void 0&&(e=nh),e.stringify&&(e=e.stringify);var n="";return e(this,(function(i){n+=i})),n},r.warn=function(e,n,i){var s={node:this};for(var l in i)s[l]=i[l];return e.warn(n,s)},Ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Ai=Co;Co.default=Co;var wo=(function(t){function r(e){var n;return e&&e.value!==void 0&&typeof e.value!="string"&&(e=pe({},e,{value:String(e.value)})),(n=t.call(this,e)||this).type="decl",n}return $e(r,t),Ue(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),r})(Ai),Ii=wo;wo.default=wo;var ih=function(t){t===void 0&&(t=21);for(var r="",e=t;e--;)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return r},Is=Oe.SourceMapConsumer,Ts=Oe.SourceMapGenerator,oh=Oe.existsSync,ah=Oe.readFileSync,zi=Oe.dirname,sh=Oe.join,So=(function(){function t(e,n){if(n.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var i=n.map?n.map.prev:void 0,s=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=zi(this.mapFile)),s&&(this.text=s)}}var r=t.prototype;return r.consumer=function(){return this.consumerCache||(this.consumerCache=new Is(this.text)),this.consumerCache},r.decodeInline=function(e){var n;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),zt?zt.from(n,"base64").toString():window.atob(n);var i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},r.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},r.isMap=function(e){return(e===void 0?"undefined":ie(e))==="object"&&(typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections))},r.loadAnnotation=function(e){var n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(n){var i=e.lastIndexOf(n.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},r.loadFile=function(e){if(this.root=zi(e),oh(e))return this.mapFile=e,ah(e,"utf-8").toString().trim()},r.loadMap=function(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n!="function"){if(J(n,Is))return Ts.fromSourceMap(n).toString();if(J(n,Ts))return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}var i=n(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var l=this.annotation;return e&&(l=sh(zi(e),l)),this.loadFile(l)}}},r.startWith=function(e,n){return!!e&&e.substr(0,n.length)===n},r.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),wl=So;So.default=So;var ch=Oe.SourceMapConsumer,lh=Oe.SourceMapGenerator,Ps=Oe.fileURLToPath,mn=Oe.pathToFileURL,Eo=Oe.isAbsolute,Ao=Oe.resolve,uh=ih,Wi=Oe,Rs=Ea,dh=wl,Gi=Symbol("fromOffsetCache"),hh=!!(ch&&lh),xs=!!(Ao&&Eo),qn=(function(){function t(e,n){if(n===void 0&&(n={}),e==null||(e===void 0?"undefined":ie(e))==="object"&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!xs||/^\w+:\/\//.test(n.from)||Eo(n.from)?this.file=n.from:this.file=Ao(n.from)),xs&&hh){var i=new dh(this.css,n);if(i.text){this.map=i;var s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+uh(6)+">"),this.map&&(this.map.file=this.from)}var r=t.prototype;return r.error=function(e,n,i,s){var l,h,o;if(s===void 0&&(s={}),n&&(n===void 0?"undefined":ie(n))==="object"){var a=n,c=i;if(typeof a.offset=="number"){var u=this.fromOffset(a.offset);n=u.line,i=u.col}else n=a.line,i=a.column;if(typeof c.offset=="number"){var d=this.fromOffset(c.offset);h=d.line,o=d.col}else h=c.line,o=c.column}else if(!i){var f=this.fromOffset(n);n=f.line,i=f.col}var _=this.origin(n,i,h,o);return(l=_?new Rs(e,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,s.plugin):new Rs(e,h===void 0?n:{column:i,line:n},h===void 0?i:{column:o,line:h},this.css,this.file,s.plugin)).input={column:i,endColumn:o,endLine:h,line:n,source:this.css},this.file&&(mn&&(l.input.url=mn(this.file).toString()),l.input.file=this.file),l},r.fromOffset=function(e){var n;if(this[Gi])n=this[Gi];else{var i=this.css.split(`
|
|
19
|
-
`);n=new Array(i.length);for(var s=0,l=0,h=i.length;l<h;l++)n[l]=s,s+=i[l].length+1;this[Gi]=n}var o=0;if(e>=n[n.length-1])o=n.length-1;else for(var a,c=n.length-2;o<c;)if(e<n[a=o+(c-o>>1)])c=a-1;else{if(!(e>=n[a+1])){o=a;break}o=a+1}return{col:e-n[o]+1,line:o+1}},r.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ao(this.map.consumer().sourceRoot||this.map.root||".",e)},r.origin=function(e,n,i,s){if(!this.map)return!1;var l,h,o=this.map.consumer(),a=o.originalPositionFor({column:n,line:e});if(!a.source)return!1;typeof i=="number"&&(l=o.originalPositionFor({column:s,line:i})),h=Eo(a.source)?mn(a.source):new URL(a.source,this.map.consumer().sourceRoot||mn(this.map.mapFile));var c={column:a.column,endColumn:l&&l.column,endLine:l&&l.line,line:a.line,url:h.toString()};if(h.protocol==="file:"){if(!Ps)throw new Error("file: protocol is not available in this PostCSS build");c.file=Ps(h)}var u=o.sourceContentFor(a.source);return u&&(c.source=u),c},r.toJSON=function(){for(var e={},n=0,i=["hasBOM","css","file","id"];n<i.length;n++){var s=i[n];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=pe({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ue(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Ti=qn;qn.default=qn,Wi&&Wi.registerInput&&Wi.registerInput(qn);var Sl=Oe.SourceMapConsumer,zn=Oe.SourceMapGenerator,Wn=Oe.dirname,El=Oe.relative,Al=Oe.resolve,Il=Oe.sep,Os=Oe.pathToFileURL,ph=Ti,fh=!!(Sl&&zn),mh=!!(Wn&&Al&&El&&Il),Tl=(function(){function t(e,n,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var r=t.prototype;return r.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var n=`
|
|
20
|
-
`;this.css.includes(`\r
|
|
21
|
-
`)&&(n=`\r
|
|
22
|
-
`),this.css+=n+"/*# sourceMappingURL="+e+" */"},r.applyPrevMaps=function(){for(var e,n=F(this.previous());!(e=n()).done;){var i=e.value,s=this.toUrl(this.path(i.file)),l=i.root||Wn(i.file),h=void 0;this.mapOpts.sourcesContent===!1?(h=new Sl(i.text)).sourcesContent&&(h.sourcesContent=null):h=i.consumer(),this.map.applySourceMap(h,s,this.toUrl(this.path(l)))}},r.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,n=this.root.nodes.length-1;n>=0;n--)(e=this.root.nodes[n]).type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},r.generate=function(){if(this.clearAnnotation(),mh&&fh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(n){e+=n})),[e]},r.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=zn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new zn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},r.generateString=function(){var e=this;this.css="",this.map=new zn({file:this.outputFile(),ignoreInvalidMapping:!0});var n,i,s=1,l=1,h="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&u!=="end"&&(o.generated.line=s,o.generated.column=l-1,c.source&&c.source.start?(o.source=e.sourcePath(c),o.original.line=c.source.start.line,o.original.column=c.source.start.column-1,e.map.addMapping(o)):(o.source=h,o.original.line=1,o.original.column=0,e.map.addMapping(o))),(n=a.match(/\n/g))?(s+=n.length,i=a.lastIndexOf(`
|
|
23
|
-
`),l=a.length-i):l+=a.length,c&&u!=="start"){var d=c.parent||{raws:{}};(c.type==="decl"||c.type==="atrule"&&!c.nodes)&&c===d.last&&!d.raws.semicolon||(c.source&&c.source.end?(o.source=e.sourcePath(c),o.original.line=c.source.end.line,o.original.column=c.source.end.column-1,o.generated.line=s,o.generated.column=l-2,e.map.addMapping(o)):(o.source=h,o.original.line=1,o.original.column=0,o.generated.line=s,o.generated.column=l-1,e.map.addMapping(o)))}}))},r.isAnnotation=function(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},r.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(e===void 0||e===!0)&&(!this.previous().length||this.previous().some((function(n){return n.inline})))},r.isMap=function(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0},r.isSourcesContent=function(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},r.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},r.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var n=this.memoizedPaths.get(e);if(n)return n;var i=this.opts.to?Wn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Wn(Al(i,this.mapOpts.annotation)));var s=El(i,e);return this.memoizedPaths.set(e,s),s},r.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}}));else{var n=new ph(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps},r.setSourcesContent=function(){var e=this,n={};if(this.root)this.root.walk((function(s){if(s.source){var l=s.source.input.from;if(l&&!n[l]){n[l]=!0;var h=e.usesFileUrls?e.toFileUrl(l):e.toUrl(e.path(l));e.map.setSourceContent(h,s.source.input.css)}}}));else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},r.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},r.toBase64=function(e){return zt?zt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},r.toFileUrl=function(e){var n=this.memoizedFileURLs.get(e);if(n)return n;if(Os){var i=Os(e).toString();return this.memoizedFileURLs.set(e,i),i}throw new Error("`map.absolute` option is not available in this PostCSS build")},r.toUrl=function(e){var n=this.memoizedURLs.get(e);if(n)return n;Il==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t})(),Io=(function(t){function r(e){var n;return(n=t.call(this,e)||this).type="comment",n}return $e(r,t),r})(Ai),Pi=Io;Io.default=Io;var Pl,Aa,Ia,Rl,xl=Wt.isClean,Ol=Wt.my,Dl=Ii,Bl=Pi;function Ml(t){return t.map((function(r){return r.nodes&&(r.nodes=Ml(r.nodes)),delete r.source,r}))}function Ll(t){if(t[xl]=!1,t.proxyOf.nodes)for(var r,e=F(t.proxyOf.nodes);!(r=e()).done;)Ll(r.value)}var Tt=(function(t){function r(){return t.apply(this,arguments)||this}$e(r,t);var e=r.prototype;return e.append=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(var l,h=F(i);!(l=h()).done;)for(var o,a=l.value,c=F(this.normalize(a,this.last));!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},e.cleanRaws=function(n){if(t.prototype.cleanRaws.call(this,n),this.nodes)for(var i,s=F(this.nodes);!(i=s()).done;)i.value.cleanRaws(n)},e.each=function(n){if(this.proxyOf.nodes){for(var i,s,l=this.getIterator();this.indexes[l]<this.proxyOf.nodes.length&&(i=this.indexes[l],(s=n(this.proxyOf.nodes[i],i))!==!1);)this.indexes[l]+=1;return delete this.indexes[l],s}},e.every=function(n){return this.nodes.every(n)},e.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var n=this.lastEach;return this.indexes[n]=0,n},e.getProxyProcessor=function(){return{get:function(n,i){return i==="proxyOf"?n:n[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?function(){for(var s=arguments.length,l=new Array(s),h=0;h<s;h++)l[h]=arguments[h];var o;return(o=n)[i].apply(o,[].concat(l.map((function(a){return typeof a=="function"?function(c,u){return a(c.toProxy(),u)}:a}))))}:i==="every"||i==="some"?function(s){return n[i]((function(l){for(var h=arguments.length,o=new Array(h>1?h-1:0),a=1;a<h;a++)o[a-1]=arguments[a];return s.apply(void 0,[].concat([l.toProxy()],o))}))}:i==="root"?function(){return n.root().toProxy()}:i==="nodes"?n.nodes.map((function(s){return s.toProxy()})):i==="first"||i==="last"?n[i].toProxy():n[i]:n[i]},set:function(n,i,s){return n[i]===s||(n[i]=s,i!=="name"&&i!=="params"&&i!=="selector"||n.markDirty()),!0}}},e.index=function(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))},e.insertAfter=function(n,i){var s,l=this.index(n),h=this.normalize(i,this.proxyOf.nodes[l]).reverse();l=this.index(n);for(var o,a=F(h);!(o=a()).done;){var c=o.value;this.proxyOf.nodes.splice(l+1,0,c)}for(var u in this.indexes)l<(s=this.indexes[u])&&(this.indexes[u]=s+h.length);return this.markDirty(),this},e.insertBefore=function(n,i){var s,l=this.index(n),h=l===0&&"prepend",o=this.normalize(i,this.proxyOf.nodes[l],h).reverse();l=this.index(n);for(var a,c=F(o);!(a=c()).done;){var u=a.value;this.proxyOf.nodes.splice(l,0,u)}for(var d in this.indexes)l<=(s=this.indexes[d])&&(this.indexes[d]=s+o.length);return this.markDirty(),this},e.normalize=function(n,i){var s=this;if(typeof n=="string")n=Ml(Pl(n).nodes);else if(n===void 0)n=[];else if(Array.isArray(n))for(var l,h=F(n=n.slice(0));!(l=h()).done;){var o=l.value;o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type==="root"&&this.type!=="document")for(var a,c=F(n=n.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(n.type)n=[n];else if(n.prop){if(n.value===void 0)throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new Dl(n)]}else if(n.selector)n=[new Aa(n)];else if(n.name)n=[new Ia(n)];else{if(!n.text)throw new Error("Unknown node type in node creation");n=[new Bl(n)]}return n.map((function(d){return d[Ol]||r.rebuild(d),(d=d.proxyOf).parent&&d.parent.removeChild(d),d[xl]&&Ll(d),d.raws.before===void 0&&i&&i.raws.before!==void 0&&(d.raws.before=i.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d}))},e.prepend=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(var l,h=F(i=i.reverse());!(l=h()).done;){for(var o,a=l.value,c=this.normalize(a,this.first,"prepend").reverse(),u=F(c);!(o=u()).done;){var d=o.value;this.proxyOf.nodes.unshift(d)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+c.length}return this.markDirty(),this},e.push=function(n){return n.parent=this,this.proxyOf.nodes.push(n),this},e.removeAll=function(){for(var n,i=F(this.proxyOf.nodes);!(n=i()).done;)n.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},e.removeChild=function(n){var i;for(var s in n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1),this.indexes)(i=this.indexes[s])>=n&&(this.indexes[s]=i-1);return this.markDirty(),this},e.replaceValues=function(n,i,s){return s||(s=i,i={}),this.walkDecls((function(l){i.props&&!i.props.includes(l.prop)||i.fast&&!l.value.includes(i.fast)||(l.value=l.value.replace(n,s))})),this.markDirty(),this},e.some=function(n){return this.nodes.some(n)},e.walk=function(n){return this.each((function(i,s){var l;try{l=n(i,s)}catch(h){throw i.addToError(h)}return l!==!1&&i.walk&&(l=i.walk(n)),l}))},e.walkAtRules=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="atrule"&&n.test(s.name))return i(s,l)})):this.walk((function(s,l){if(s.type==="atrule"&&s.name===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="atrule")return i(s,l)})))},e.walkComments=function(n){return this.walk((function(i,s){if(i.type==="comment")return n(i,s)}))},e.walkDecls=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="decl"&&n.test(s.prop))return i(s,l)})):this.walk((function(s,l){if(s.type==="decl"&&s.prop===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="decl")return i(s,l)})))},e.walkRules=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="rule"&&n.test(s.selector))return i(s,l)})):this.walk((function(s,l){if(s.type==="rule"&&s.selector===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="rule")return i(s,l)})))},Ue(r,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),r})(Ai);Tt.registerParse=function(t){Pl=t},Tt.registerRule=function(t){Aa=t},Tt.registerAtRule=function(t){Ia=t},Tt.registerRoot=function(t){Rl=t};var Qt=Tt;Tt.default=Tt,Tt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ia.prototype):t.type==="rule"?Object.setPrototypeOf(t,Aa.prototype):t.type==="decl"?Object.setPrototypeOf(t,Dl.prototype):t.type==="comment"?Object.setPrototypeOf(t,Bl.prototype):t.type==="root"&&Object.setPrototypeOf(t,Rl.prototype),t[Ol]=!0,t.nodes&&t.nodes.forEach((function(r){Tt.rebuild(r)}))};var Nl,Fl,Qr=(function(t){function r(e){var n;return(n=t.call(this,pe({type:"document"},e))||this).nodes||(n.nodes=[]),n}return $e(r,t),r.prototype.toResult=function(e){return e===void 0&&(e={}),new Nl(new Fl,this,e).stringify()},r})(Qt);Qr.registerLazyResult=function(t){Nl=t},Qr.registerProcessor=function(t){Fl=t};var Ta=Qr;Qr.default=Qr;var To=(function(){function t(r,e){if(e===void 0&&(e={}),this.type="warning",this.text=r,e.node&&e.node.source){var n=e.node.rangeBy(e);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var i in e)this[i]=e[i]}return t.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},t})(),Vl=To;To.default=To;var _h=Vl,Po=(function(){function t(e,n,i){this.processor=e,this.messages=[],this.root=n,this.opts=i,this.css=void 0,this.map=void 0}var r=t.prototype;return r.toString=function(){return this.css},r.warn=function(e,n){n===void 0&&(n={}),n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);var i=new _h(e,n);return this.messages.push(i),i},r.warnings=function(){return this.messages.filter((function(e){return e.type==="warning"}))},Ue(t,[{key:"content",get:function(){return this.css}}]),t})(),Pa=Po;Po.default=Po;var $i=39,Ds=34,_n=92,Bs=47,gn=10,Rr=32,vn=12,yn=9,bn=13,gh=91,vh=93,yh=40,bh=41,kh=123,Ch=125,wh=59,Sh=42,Eh=58,Ah=64,kn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ih=/.[\r\n"'(/\\]/,Ms=/[\da-f]/i,Ul=Qt,Gn=(function(t){function r(n){var i;return(i=t.call(this,n)||this).type="atrule",i}$e(r,t);var e=r.prototype;return e.append=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.append).call.apply(l,[].concat([this],i))},e.prepend=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.prepend).call.apply(l,[].concat([this],i))},r})(Ul),Ra=Gn;Gn.default=Gn,Ul.registerAtRule(Gn);var jl,ql,zl=Qt,Cr=(function(t){function r(n){var i;return(i=t.call(this,n)||this).type="root",i.nodes||(i.nodes=[]),i}$e(r,t);var e=r.prototype;return e.normalize=function(n,i,s){var l=t.prototype.normalize.call(this,n);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var h,o=F(l);!(h=o()).done;)h.value.raws.before=i.raws.before}return l},e.removeChild=function(n,i){var s=this.index(n);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,n)},e.toResult=function(n){return n===void 0&&(n={}),new jl(new ql,this,n).stringify()},r})(zl);Cr.registerLazyResult=function(t){jl=t},Cr.registerProcessor=function(t){ql=t};var cn=Cr;Cr.default=Cr,zl.registerRoot(Cr);var Kr={comma:function(t){return Kr.split(t,[","],!0)},space:function(t){return Kr.split(t,[" ",`
|
|
24
|
-
`," "])},split:function(t,r,e){for(var n,i=[],s="",l=!1,h=0,o=!1,a="",c=!1,u=F(t);!(n=u()).done;){var d=n.value;c?c=!1:d==="\\"?c=!0:o?d===a&&(o=!1):d==='"'||d==="'"?(o=!0,a=d):d==="("?h+=1:d===")"?h>0&&(h-=1):h===0&&r.includes(d)&&(l=!0),l?(s!==""&&i.push(s.trim()),s="",l=!1):s+=d}return(e||s!=="")&&i.push(s.trim()),i}},Wl=Kr;Kr.default=Kr;var Gl=Qt,Th=Wl,$n=(function(t){function r(e){var n;return(n=t.call(this,e)||this).type="rule",n.nodes||(n.nodes=[]),n}return $e(r,t),Ue(r,[{key:"selectors",get:function(){return Th.comma(this.selector)},set:function(e){var n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),r})(Gl),xa=$n;$n.default=$n,Gl.registerRule($n);var Ph=Ii,Rh=function(t,r){r===void 0&&(r={});var e,n,i,s,l,h,o,a,c,u,d=t.css.valueOf(),f=r.ignoreErrors,_=d.length,m=0,g=[],y=[];function b(k){throw t.error("Unclosed "+k,m)}return{back:function(k){y.push(k)},endOfFile:function(){return y.length===0&&m>=_},nextToken:function(k){if(y.length)return y.pop();if(!(m>=_)){var E=!!k&&k.ignoreUnclosed;switch(e=d.charCodeAt(m)){case gn:case Rr:case yn:case bn:case vn:n=m;do n+=1,e=d.charCodeAt(n);while(e===Rr||e===gn||e===yn||e===bn||e===vn);u=["space",d.slice(m,n)],m=n-1;break;case gh:case vh:case kh:case Ch:case Eh:case wh:case bh:var w=String.fromCharCode(e);u=[w,w,m];break;case yh:if(a=g.length?g.pop()[1]:"",c=d.charCodeAt(m+1),a==="url"&&c!==$i&&c!==Ds&&c!==Rr&&c!==gn&&c!==yn&&c!==vn&&c!==bn){n=m;do{if(h=!1,(n=d.indexOf(")",n+1))===-1){if(f||E){n=m;break}b("bracket")}for(o=n;d.charCodeAt(o-1)===_n;)o-=1,h=!h}while(h);u=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),s=d.slice(m,n+1),n===-1||Ih.test(s)?u=["(","(",m]:(u=["brackets",s,m,n],m=n);break;case $i:case Ds:i=e===$i?"'":'"',n=m;do{if(h=!1,(n=d.indexOf(i,n+1))===-1){if(f||E){n=m+1;break}b("string")}for(o=n;d.charCodeAt(o-1)===_n;)o-=1,h=!h}while(h);u=["string",d.slice(m,n+1),m,n],m=n;break;case Ah:kn.lastIndex=m+1,kn.test(d),n=kn.lastIndex===0?d.length-1:kn.lastIndex-2,u=["at-word",d.slice(m,n+1),m,n],m=n;break;case _n:for(n=m,l=!0;d.charCodeAt(n+1)===_n;)n+=1,l=!l;if(e=d.charCodeAt(n+1),l&&e!==Bs&&e!==Rr&&e!==gn&&e!==yn&&e!==bn&&e!==vn&&(n+=1,Ms.test(d.charAt(n)))){for(;Ms.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===Rr&&(n+=1)}u=["word",d.slice(m,n+1),m,n],m=n;break;default:e===Bs&&d.charCodeAt(m+1)===Sh?((n=d.indexOf("*/",m+2)+1)===0&&(f||E?n=d.length:b("comment")),u=["comment",d.slice(m,n+1),m,n],m=n):(Cn.lastIndex=m+1,Cn.test(d),n=Cn.lastIndex===0?d.length-1:Cn.lastIndex-2,u=["word",d.slice(m,n+1),m,n],g.push(u),m=n)}return m++,u}},position:function(){return m}}},xh=Pi,Oh=Ra,Dh=cn,Ls=xa,Ns={empty:!0,space:!0},Bh=(function(){function t(e){this.input=e,this.root=new Dh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var r=t.prototype;return r.atrule=function(e){var n,i,s,l=new Oh;l.name=e[1].slice(1),l.name===""&&this.unnamedAtrule(l,e),this.init(l,e[2]);for(var h=!1,o=!1,a=[],c=[];!this.tokenizer.endOfFile();){if((n=(e=this.tokenizer.nextToken())[0])==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0){if(n===";"){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if(n==="{"){o=!0;break}if(n==="}"){if(a.length>0){for(i=a[s=a.length-1];i&&i[0]==="space";)i=a[--s];i&&(l.source.end=this.getPosition(i[3]||i[2]),l.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){h=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(l.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(l,"params",a),h&&(e=a[a.length-1],l.source.end=this.getPosition(e[3]||e[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),o&&(l.nodes=[],this.current=l)},r.checkMissedSemicolon=function(e){var n=this.colon(e);if(n!==!1){for(var i,s=0,l=n-1;l>=0&&((i=e[l])[0]==="space"||(s+=1)!==2);l--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}},r.colon=function(e){for(var n,i,s,l,h=0,o=F(e.entries());!(l=o()).done;){var a=l.value,c=a[0];if((i=(n=a[1])[0])==="("&&(h+=1),i===")"&&(h-=1),h===0&&i===":"){if(s){if(s[0]==="word"&&s[1]==="progid")continue;return c}this.doubleColon(n)}s=n}return!1},r.comment=function(e){var n=new xh;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=s[2],n.raws.left=s[1],n.raws.right=s[3]}},r.createTokenizer=function(){this.tokenizer=Rh(this.input)},r.decl=function(e,n){var i=new Ph;this.init(i,e[0][2]);var s,l=e[e.length-1];for(l[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(l[3]||l[2]||(function(g){for(var y=g.length-1;y>=0;y--){var b=g[y],k=b[3]||b[2];if(k)return k}})(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var h=e[0][0];if(h===":"||h==="space"||h==="comment")break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if((s=e.shift())[0]===":"){i.raws.between+=s[1];break}s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1]}i.prop[0]!=="_"&&i.prop[0]!=="*"||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var o,a=[];e.length&&((o=e[0][0])==="space"||o==="comment");)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if((s=e[c])[1].toLowerCase()==="!important"){i.important=!0;var u=this.stringFrom(e,c);(u=this.spacesFromEnd(e)+u)!==" !important"&&(i.raws.important=u);break}if(s[1].toLowerCase()==="important"){for(var d=e.slice(0),f="",_=c;_>0;_--){var m=d[_][0];if(f.trim().indexOf("!")===0&&m!=="space")break;f=d.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=d)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some((function(g){return g[0]!=="space"&&g[0]!=="comment"}))&&(i.raws.between+=a.map((function(g){return g[1]})).join(""),a=[]),this.raw(i,"value",a.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)},r.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},r.emptyRule=function(e){var n=new Ls;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n},r.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},r.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},r.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}},r.getPosition=function(e){var n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}},r.init=function(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},r.other=function(e){for(var n=!1,i=null,s=!1,l=null,h=[],o=e[1].startsWith("--"),a=[],c=e;c;){if(i=c[0],a.push(c),i==="("||i==="[")l||(l=c),h.push(i==="("?")":"]");else if(o&&s&&i==="{")l||(l=c),h.push("}");else if(h.length===0){if(i===";"){if(s)return void this.decl(a,o);break}if(i==="{")return void this.rule(a);if(i==="}"){this.tokenizer.back(a.pop()),n=!0;break}i===":"&&(s=!0)}else i===h[h.length-1]&&(h.pop(),h.length===0&&(l=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),h.length>0&&this.unclosedBracket(l),n&&s){if(!o)for(;a.length&&((c=a[a.length-1][0])==="space"||c==="comment");)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)},r.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},r.precheckMissedSemicolon=function(){},r.raw=function(e,n,i,s){for(var l,h,o,a,c=i.length,u="",d=!0,f=0;f<c;f+=1)(h=(l=i[f])[0])!=="space"||f!==c-1||s?h==="comment"?(a=i[f-1]?i[f-1][0]:"empty",o=i[f+1]?i[f+1][0]:"empty",Ns[a]||Ns[o]||u.slice(-1)===","?d=!1:u+=l[1]):u+=l[1]:d=!1;if(!d){var _=i.reduce((function(m,g){return m+g[1]}),"");e.raws[n]={raw:_,value:u}}e[n]=u},r.rule=function(e){e.pop();var n=new Ls;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n},r.spacesAndCommentsFromEnd=function(e){for(var n,i="";e.length&&((n=e[e.length-1][0])==="space"||n==="comment");)i=e.pop()[1]+i;return i},r.spacesAndCommentsFromStart=function(e){for(var n,i="";e.length&&((n=e[0][0])==="space"||n==="comment");)i+=e.shift()[1];return i},r.spacesFromEnd=function(e){for(var n="";e.length&&e[e.length-1][0]==="space";)n=e.pop()[1]+n;return n},r.stringFrom=function(e,n){for(var i="",s=n;s<e.length;s++)i+=e[s][1];return e.splice(n,e.length-n),i},r.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},r.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},r.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},r.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},r.unnamedAtrule=function(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})},t})(),Mh=Qt,Lh=Bh,Nh=Ti;function Hn(t,r){var e=new Nh(t,r),n=new Lh(e);try{n.parse()}catch(i){throw i}return n.root}var Oa=Hn;Hn.default=Hn,Mh.registerParse(Hn);var pt=Wt.isClean,Fh=Wt.my,Vh=Tl,Uh=Ei,jh=Qt,qh=Ta,Fs=Pa,zh=Oa,Wh=cn,Gh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},$h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Hh={Once:!0,postcssPlugin:!0,prepare:!0};function xr(t){return(t===void 0?"undefined":ie(t))==="object"&&typeof t.then=="function"}function $l(t){var r=!1,e=Gh[t.type];return t.type==="decl"?r=t.prop.toLowerCase():t.type==="atrule"&&(r=t.name.toLowerCase()),r&&t.append?[e,e+"-"+r,0,e+"Exit",e+"Exit-"+r]:r?[e,e+"-"+r,e+"Exit",e+"Exit-"+r]:t.append?[e,0,e+"Exit"]:[e,e+"Exit"]}function Vs(t){return{eventIndex:0,events:t.type==="document"?["Document",0,"DocumentExit"]:t.type==="root"?["Root",0,"RootExit"]:$l(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ro(t){return t[pt]=!1,t.nodes&&t.nodes.forEach((function(r){return Ro(r)})),t}var xo={},br=(function(){function t(e,n,i){var s,l=this;if(this.stringified=!1,this.processed=!1,(n===void 0?"undefined":ie(n))!=="object"||n===null||n.type!=="root"&&n.type!=="document")if(J(n,t)||J(n,Fs))s=Ro(n.root),n.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{var h=zh;i.syntax&&(h=i.syntax.parse),i.parser&&(h=i.parser),h.parse&&(h=h.parse);try{s=h(n,i)}catch(o){this.processed=!0,this.error=o}s&&!s[Fh]&&jh.rebuild(s)}else s=Ro(n);this.result=new Fs(e,s,i),this.helpers=pe({},xo,{postcss:xo,result:this.result}),this.plugins=this.processor.plugins.map((function(o){return(o===void 0?"undefined":ie(o))==="object"&&o.prepare?pe({},o,o.prepare(l.result)):o}))}var r=t.prototype;return r.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},r.catch=function(e){return this.async().catch(e)},r.finally=function(e){return this.async().then(e,e)},r.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},r.handleError=function(e,n){var i=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name!=="CssSyntaxError"||e.plugin?i.postcssVersion:(e.plugin=i.postcssPlugin,e.setMessage())}catch(s){console&&console.error&&console.error(s)}return e},r.prepareVisitors=function(){var e=this;this.listeners={};for(var n,i=function(a,c,u){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([a,u])},s=F(this.plugins);!(n=s()).done;){var l=n.value;if((l===void 0?"undefined":ie(l))==="object")for(var h in l){if(!$h[h]&&/^[A-Z]/.test(h))throw new Error("Unknown event "+h+" in "+l.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Hh[h])if(ie(l[h])==="object")for(var o in l[h])i(l,o==="*"?h:h+"-"+o.toLowerCase(),l[h][o]);else typeof l[h]=="function"&&i(l,h,l[h])}}this.hasListener=Object.keys(this.listeners).length>0},r.runAsync=function(){var e=this;return Ca((function(){var n,i,s,l,h,o,a,c,u,d,f,_;return Xr(this,(function(m){switch(m.label){case 0:e.plugin=0,n=0,m.label=1;case 1:if(!(n<e.plugins.length))return[3,6];if(i=e.plugins[n],!xr(s=e.runOnRoot(i)))return[3,5];m.label=2;case 2:return m.trys.push([2,4,,5]),[4,s];case 3:return m.sent(),[3,5];case 4:throw l=m.sent(),e.handleError(l);case 5:return n++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];h=e.result.root,m.label=7;case 7:if(h[pt])return[3,14];h[pt]=!0,o=[Vs(h)],m.label=8;case 8:if(!(o.length>0))return[3,13];if(!xr(a=e.visitTick(o)))return[3,12];m.label=9;case 9:return m.trys.push([9,11,,12]),[4,a];case 10:return m.sent(),[3,12];case 11:throw c=m.sent(),u=o[o.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];d=function(){var g,y,b,k,E;return Xr(this,(function(w){switch(w.label){case 0:g=_.value,y=g[0],b=g[1],e.result.lastPlugin=y,w.label=1;case 1:return w.trys.push([1,6,,7]),h.type!=="document"?[3,3]:(k=h.nodes.map((function(C){return b(C,e.helpers)})),[4,Promise.all(k)]);case 2:return w.sent(),[3,5];case 3:return[4,b(h,e.helpers)];case 4:w.sent(),w.label=5;case 5:return[3,7];case 6:throw E=w.sent(),e.handleError(E);case 7:return[2]}}))},f=F(e.listeners.OnceExit),m.label=15;case 15:return(_=f()).done?[3,18]:[5,fl(d())];case 16:m.sent(),m.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},r.runOnRoot=function(e){var n=this;this.result.lastPlugin=e;try{if((e===void 0?"undefined":ie(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map((function(s){return e.Once(s,n.helpers)}));return xr(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},r.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,n=Uh;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);var i=new Vh(n,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result},r.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,n=F(this.plugins);!(e=n()).done;){var i=e.value;if(xr(this.runOnRoot(i)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[pt];)s[pt]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var l,h=F(s.nodes);!(l=h()).done;){var o=l.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},r.then=function(e,n){return this.async().then(e,n)},r.toString=function(){return this.css},r.visitSync=function(e,n){for(var i,s=F(e);!(i=s()).done;){var l=i.value,h=l[0],o=l[1];this.result.lastPlugin=h;var a=void 0;try{a=o(n,this.helpers)}catch(c){throw this.handleError(c,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(xr(a))throw this.getAsyncError()}},r.visitTick=function(e){var n=e[e.length-1],i=n.node,s=n.visitors;if(i.type==="root"||i.type==="document"||i.parent){if(s.length>0&&n.visitorIndex<s.length){var l=s[n.visitorIndex],h=l[0],o=l[1];n.visitorIndex+=1,n.visitorIndex===s.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=h;try{return o(i.toProxy(),this.helpers)}catch(f){throw this.handleError(f,i)}}if(n.iterator!==0){for(var a,c=n.iterator;a=i.nodes[i.indexes[c]];)if(i.indexes[c]+=1,!a[pt])return a[pt]=!0,void e.push(Vs(a));n.iterator=0,delete i.indexes[c]}for(var u=n.events;n.eventIndex<u.length;){var d=u[n.eventIndex];if(n.eventIndex+=1,d===0)return void(i.nodes&&i.nodes.length&&(i[pt]=!0,n.iterator=i.getIterator()));if(this.listeners[d])return void(n.visitors=this.listeners[d])}e.pop()}else e.pop()},r.walkSync=function(e){var n=this;e[pt]=!0;for(var i,s=F($l(e));!(i=s()).done;){var l=i.value;if(l===0)e.nodes&&e.each((function(o){o[pt]||n.walkSync(o)}));else{var h=this.listeners[l];if(h&&this.visitSync(h,e.toProxy()))return}}},r.warnings=function(){return this.sync().warnings()},Ue(t,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),t})();br.registerPostcss=function(t){xo=t};var Hl=br;br.default=br,Wh.registerLazyResult(br),qh.registerLazyResult(br);var Zh=Tl,Jh=Ei,Yh=Oa,Xh=Pa,Oo=(function(){function t(e,n,i){var s;n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;var l=Jh;this.result=new Xh(this._processor,s,this._opts),this.result.css=n;var h=this;Object.defineProperty(this.result,"root",{get:function(){return h.root}});var o=new Zh(l,s,this._opts,n);if(o.isMap()){var a=o.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}var r=t.prototype;return r.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},r.catch=function(e){return this.async().catch(e)},r.finally=function(e){return this.async().then(e,e)},r.sync=function(){if(this.error)throw this.error;return this.result},r.then=function(e,n){return this.async().then(e,n)},r.toString=function(){return this._css},r.warnings=function(){return[]},Ue(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,n=Yh;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Qh=Oo;Oo.default=Oo;var Kh=Qh,ep=Hl,tp=Ta,rp=cn,Nr=(function(){function t(e){e===void 0&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var r=t.prototype;return r.normalize=function(e){for(var n,i=[],s=F(e);!(n=s()).done;){var l=n.value;if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),(l===void 0?"undefined":ie(l))==="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if((l===void 0?"undefined":ie(l))==="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if((l===void 0?"undefined":ie(l))!=="object"||!l.parse&&!l.stringify)throw new Error(l+" is not a PostCSS plugin")}return i},r.process=function(e,n){return n===void 0&&(n={}),this.plugins.length||n.parser||n.stringifier||n.syntax?new ep(this,e,n):new Kh(this,e,n)},r.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),np=Nr;Nr.default=Nr,rp.registerProcessor(Nr),tp.registerProcessor(Nr);var ip=Ii,op=wl,ap=Pi,sp=Ra,cp=Ti,lp=cn,up=xa;function en(t,r){if(Array.isArray(t))return t.map((function(c){return en(c)}));var e=t.inputs,n=Yr(t,["inputs"]);if(e){r=[];for(var i,s=F(e);!(i=s()).done;){var l=pe({},i.value,{__proto__:cp.prototype});l.map&&(l.map=pe({},l.map,{__proto__:op.prototype})),r.push(l)}}if(n.nodes&&(n.nodes=t.nodes.map((function(c){return en(c,r)}))),n.source){var h=n.source,o=h.inputId,a=Yr(h,["inputId"]);n.source=a,o!=null&&(n.source.input=r[o])}if(n.type==="root")return new lp(n);if(n.type==="decl")return new ip(n);if(n.type==="rule")return new up(n);if(n.type==="comment")return new ap(n);if(n.type==="atrule")return new sp(n);throw new Error("Unknown node type: "+t.type)}var dp=en;en.default=en;var hp=Ea,Us=Ii,pp=Hl,fp=Qt,Do=np,mp=Ei,_p=dp,js=Ta,gp=Vl,qs=Pi,zs=Ra,vp=Pa,yp=Ti,bp=Oa,kp=Wl,Ws=xa,Gs=cn,Cp=Ai;function me(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Do(r)}me.plugin=function(t,r){var e,n=!1;function i(){for(var s=arguments.length,l=new Array(s),h=0;h<s;h++)l[h]=arguments[h];console&&console.warn&&!n&&(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),di.LANG&&di.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
26
|
-
https://www.w3ctech.com/topic/2226`));var o=r.apply(void 0,[].concat(l));return o.postcssPlugin=t,o.postcssVersion=new Do().version,o}return Object.defineProperty(i,"postcss",{get:function(){return e||(e=i()),e}}),i.process=function(s,l,h){return me([i(h)]).process(s,l)},i},me.stringify=mp,me.parse=bp,me.fromJSON=_p,me.list=kp,me.comment=function(t){return new qs(t)},me.atRule=function(t){return new zs(t)},me.decl=function(t){return new Us(t)},me.rule=function(t){return new Ws(t)},me.root=function(t){return new Gs(t)},me.document=function(t){return new js(t)},me.CssSyntaxError=hp,me.Declaration=Us,me.Container=fp,me.Processor=Do,me.Document=js,me.Comment=qs,me.Warning=gp,me.AtRule=zs,me.Result=vp,me.Input=yp,me.Rule=Ws,me.Root=Gs,me.Node=Cp,pp.registerPostcss(me);var wp=me;me.default=me;var Se=Yd(wp);Se.stringify,Se.fromJSON,Se.plugin,Se.parse,Se.list,Se.document,Se.comment,Se.atRule,Se.rule,Se.decl,Se.root,Se.CssSyntaxError,Se.Declaration,Se.Container,Se.Processor,Se.Document,Se.Comment,Se.Warning,Se.AtRule,Se.Result,Se.Input,Se.Rule,Se.Root,Se.Node;var Sp=Object.defineProperty,rt=function(t,r,e){return(function(n,i,s){return i in n?Sp(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s})(t,(r===void 0?"undefined":ie(r))!=="symbol"?r+"":r,e)};function Ep(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ap(t){if(t.__esModule)return t;var r=t.default;if(typeof r=="function"){var e=function n(){return J(this,n)?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};e.prototype=r.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})})),e}var Bo={exports:{}},Ce=String,$s=function(){return{isColorSupported:!1,reset:Ce,bold:Ce,dim:Ce,italic:Ce,underline:Ce,inverse:Ce,hidden:Ce,strikethrough:Ce,black:Ce,red:Ce,green:Ce,yellow:Ce,blue:Ce,magenta:Ce,cyan:Ce,white:Ce,gray:Ce,bgBlack:Ce,bgRed:Ce,bgGreen:Ce,bgYellow:Ce,bgBlue:Ce,bgMagenta:Ce,bgCyan:Ce,bgWhite:Ce}};Bo.exports=$s(),Bo.exports.createColors=$s;var Ip=Bo.exports,De=Ap(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Hs=Ip,Zs=De,Mo=(function(t){function r(n,i,s,l,h,o){var a;return(a=t.call(this,n)||this).name="CssSyntaxError",a.reason=n,h&&(a.file=h),l&&(a.source=l),o&&(a.plugin=o),i!==void 0&&s!==void 0&&(typeof i=="number"?(a.line=i,a.column=s):(a.line=i.line,a.column=i.column,a.endLine=s.line,a.endColumn=s.column)),a.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(a,r),a}$e(r,t);var e=r.prototype;return e.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",this.line!==void 0&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.showSourceCode=function(n){var i=this;if(!this.source)return"";var s=this.source;n==null&&(n=Hs.isColorSupported),Zs&&n&&(s=Zs(s));var l,h,o=s.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,o.length),u=String(c).length;if(n){var d=Hs.createColors(!0),f=d.bold,_=d.gray,m=d.red;l=function(g){return f(m(g))},h=function(g){return _(g)}}else l=h=function(g){return g};return o.slice(a,c).map((function(g,y){var b=a+1+y,k=" "+(" "+b).slice(-u)+" | ";if(b===i.line){var E=h(k.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return l(">")+h(k)+g+`
|
|
27
|
-
`+E+l("^")}return" "+h(k)+g})).join(`
|
|
28
|
-
`)},e.toString=function(){var n=this.showSourceCode();return n&&(n=`
|
|
29
|
-
|
|
30
|
-
`+n+`
|
|
31
|
-
`),this.name+": "+this.message+n},r})(hi(Error)),Da=Mo;Mo.default=Mo;var Gt={};Gt.isClean=Symbol("isClean"),Gt.my=Symbol("my");var Js={after:`
|
|
32
|
-
`,beforeClose:`
|
|
33
|
-
`,beforeComment:`
|
|
34
|
-
`,beforeDecl:`
|
|
35
|
-
`,beforeOpen:" ",beforeRule:`
|
|
36
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Lo=(function(){function t(e){this.builder=e}var r=t.prototype;return r.atrule=function(e,n){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(e.raws.afterName!==void 0?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var l=(e.raws.between||"")+(n?";":"");this.builder(i+s+l,e)}},r.beforeAfter=function(e,n){var i;i=e.type==="decl"?this.raw(e,null,"beforeDecl"):e.type==="comment"?this.raw(e,null,"beforeComment"):n==="before"?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var s=e.parent,l=0;s&&s.type!=="root";)l+=1,s=s.parent;if(i.includes(`
|
|
37
|
-
`)){var h=this.raw(e,null,"indent");if(h.length)for(var o=0;o<l;o++)i+=h}return i},r.block=function(e,n){var i,s=this.raw(e,"between","beforeOpen");this.builder(n+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")},r.body=function(e){for(var n=e.nodes.length-1;n>0&&e.nodes[n].type==="comment";)n-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var l=e.nodes[s],h=this.raw(l,"before");h&&this.builder(h),this.stringify(l,n!==s||i)}},r.comment=function(e){var n=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+i+"*/",e)},r.decl=function(e,n){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),n&&(s+=";"),this.builder(s,e)},r.document=function(e){this.body(e)},r.raw=function(e,n,i){var s;if(i||(i=n),n&&(s=e.raws[n])!==void 0)return s;var l=e.parent;if(i==="before"&&(!l||l.type==="root"&&l.first===e||l&&l.type==="document"))return"";if(!l)return Js[i];var h=e.root();if(h.rawCache||(h.rawCache={}),h.rawCache[i]!==void 0)return h.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var o,a="raw"+((o=i)[0].toUpperCase()+o.slice(1));return this[a]?s=this[a](h,e):h.walk((function(c){if((s=c.raws[n])!==void 0)return!1})),s===void 0&&(s=Js[i]),h.rawCache[i]=s,s},r.rawBeforeClose=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length>0&&i.raws.after!==void 0)return(n=i.raws.after).includes(`
|
|
38
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1})),n&&(n=n.replace(/\S/g,"")),n},r.rawBeforeComment=function(e,n){var i;return e.walkComments((function(s){if(s.raws.before!==void 0)return(i=s.raws.before).includes(`
|
|
39
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1})),i===void 0?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},r.rawBeforeDecl=function(e,n){var i;return e.walkDecls((function(s){if(s.raws.before!==void 0)return(i=s.raws.before).includes(`
|
|
40
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1})),i===void 0?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},r.rawBeforeOpen=function(e){var n;return e.walk((function(i){if(i.type!=="decl"&&(n=i.raws.between)!==void 0)return!1})),n},r.rawBeforeRule=function(e){var n;return e.walk((function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&i.raws.before!==void 0)return(n=i.raws.before).includes(`
|
|
41
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1})),n&&(n=n.replace(/\S/g,"")),n},r.rawColon=function(e){var n;return e.walkDecls((function(i){if(i.raws.between!==void 0)return n=i.raws.between.replace(/[^\s:]/g,""),!1})),n},r.rawEmptyBody=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length===0&&(n=i.raws.after)!==void 0)return!1})),n},r.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&i.raws.before!==void 0){var l=i.raws.before.split(`
|
|
42
|
-
`);return n=(n=l[l.length-1]).replace(/\S/g,""),!1}})),n);var n},r.rawSemicolon=function(e){var n;return e.walk((function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon)!==void 0)return!1})),n},r.rawValue=function(e,n){var i=e[n],s=e.raws[n];return s&&s.value===i?s.raw:i},r.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},r.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},r.stringify=function(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)},t})(),Zl=Lo;Lo.default=Lo;var Tp=Zl;function No(t,r){new Tp(r).stringify(t)}var Ri=No;No.default=No;var wn=Gt.isClean,Pp=Gt.my,Rp=Da,xp=Zl,Op=Ri;function Fo(t,r){var e=new t.constructor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n!=="proxyCache"){var i=t[n],s=i===void 0?"undefined":ie(i);n==="parent"&&s==="object"?r&&(e[n]=r):n==="source"?e[n]=i:Array.isArray(i)?e[n]=i.map((function(l){return Fo(l,e)})):(s==="object"&&i!==null&&(i=Fo(i)),e[n]=i)}return e}var Vo=(function(){function t(e){for(var n in e===void 0&&(e={}),this.raws={},this[wn]=!1,this[Pp]=!0,e)if(n==="nodes"){this.nodes=[];for(var i,s=F(e[n]);!(i=s()).done;){var l=i.value;typeof l.clone=="function"?this.append(l.clone()):this.append(l)}}else this[n]=e[n]}var r=t.prototype;return r.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+n.input.from+":"+n.start.line+":"+n.start.column+"$&")}return e},r.after=function(e){return this.parent.insertAfter(this,e),this},r.assign=function(e){for(var n in e===void 0&&(e={}),e)this[n]=e[n];return this},r.before=function(e){return this.parent.insertBefore(this,e),this},r.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},r.clone=function(e){e===void 0&&(e={});var n=Fo(this);for(var i in e)n[i]=e[i];return n},r.cloneAfter=function(e){e===void 0&&(e={});var n=this.clone(e);return this.parent.insertAfter(this,n),n},r.cloneBefore=function(e){e===void 0&&(e={});var n=this.clone(e);return this.parent.insertBefore(this,n),n},r.error=function(e,n){if(n===void 0&&(n={}),this.source){var i=this.rangeBy(n),s=i.end,l=i.start;return this.source.input.error(e,{column:l.column,line:l.line},{column:s.column,line:s.line},n)}return new Rp(e)},r.getProxyProcessor=function(){return{get:function(e,n){return n==="proxyOf"?e:n==="root"?function(){return e.root().toProxy()}:e[n]},set:function(e,n,i){return e[n]===i||(e[n]=i,n!=="prop"&&n!=="value"&&n!=="name"&&n!=="params"&&n!=="important"&&n!=="text"||e.markDirty()),!0}}},r.markDirty=function(){if(this[wn]){this[wn]=!1;for(var e=this;e=e.parent;)e[wn]=!1}},r.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},r.positionBy=function(e,n){var i=this.source.start;if(e.index)i=this.positionInside(e.index,n);else if(e.word){var s=(n=this.toString()).indexOf(e.word);s!==-1&&(i=this.positionInside(s,n))}return i},r.positionInside=function(e,n){for(var i=n||this.toString(),s=this.source.start.column,l=this.source.start.line,h=0;h<e;h++)i[h]===`
|
|
43
|
-
`?(s=1,l+=1):s+=1;return{column:s,line:l}},r.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},r.rangeBy=function(e){var n={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(e.word){var s=this.toString(),l=s.indexOf(e.word);l!==-1&&(n=this.positionInside(l,s),i=this.positionInside(l+e.word.length,s))}else e.start?n={column:e.start.column,line:e.start.line}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line}),{end:i,start:n}},r.raw=function(e,n){return new xp().raw(this,e,n)},r.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},r.replaceWith=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(this.parent){for(var s,l=this,h=!1,o=F(n);!(s=o()).done;){var a=s.value;a===this?h=!0:h?(this.parent.insertAfter(l,a),l=a):this.parent.insertBefore(l,a)}h||this.remove()}return this},r.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},r.toJSON=function(e,n){var i={},s=n==null;n=n||new Map;var l=0;for(var h in this)if(Object.prototype.hasOwnProperty.call(this,h)&&h!=="parent"&&h!=="proxyCache"){var o=this[h];if(Array.isArray(o))i[h]=o.map((function(c){return(c===void 0?"undefined":ie(c))==="object"&&c.toJSON?c.toJSON(null,n):c}));else if((o===void 0?"undefined":ie(o))==="object"&&o.toJSON)i[h]=o.toJSON(null,n);else if(h==="source"){var a=n.get(o.input);a==null&&(a=l,n.set(o.input,l),l++),i[h]={end:o.end,inputId:a,start:o.start}}else i[h]=o}return s&&(i.inputs=[].concat(n.keys()).map((function(c){return c.toJSON()}))),i},r.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},r.toString=function(e){e===void 0&&(e=Op),e.stringify&&(e=e.stringify);var n="";return e(this,(function(i){n+=i})),n},r.warn=function(e,n,i){var s={node:this};for(var l in i)s[l]=i[l];return e.warn(n,s)},Ue(t,[{key:"proxyOf",get:function(){return this}}]),t})(),xi=Vo;Vo.default=Vo;var Uo=(function(t){function r(e){var n;return e&&e.value!==void 0&&typeof e.value!="string"&&(e=pe({},e,{value:String(e.value)})),(n=t.call(this,e)||this).type="decl",n}return $e(r,t),Ue(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),r})(xi),Oi=Uo;Uo.default=Uo;var Dp=function(t){t===void 0&&(t=21);for(var r="",e=t;e--;)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return r},Ys=De.SourceMapConsumer,Xs=De.SourceMapGenerator,Bp=De.existsSync,Mp=De.readFileSync,Hi=De.dirname,Lp=De.join,jo=(function(){function t(e,n){if(n.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var i=n.map?n.map.prev:void 0,s=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=Hi(this.mapFile)),s&&(this.text=s)}}var r=t.prototype;return r.consumer=function(){return this.consumerCache||(this.consumerCache=new Ys(this.text)),this.consumerCache},r.decodeInline=function(e){var n;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),zt?zt.from(n,"base64").toString():window.atob(n);var i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},r.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},r.isMap=function(e){return(e===void 0?"undefined":ie(e))==="object"&&(typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections))},r.loadAnnotation=function(e){var n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(n){var i=e.lastIndexOf(n.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},r.loadFile=function(e){if(this.root=Hi(e),Bp(e))return this.mapFile=e,Mp(e,"utf-8").toString().trim()},r.loadMap=function(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n!="function"){if(J(n,Ys))return Xs.fromSourceMap(n).toString();if(J(n,Xs))return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}var i=n(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var l=this.annotation;return e&&(l=Lp(Hi(e),l)),this.loadFile(l)}}},r.startWith=function(e,n){return!!e&&e.substr(0,n.length)===n},r.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Jl=jo;jo.default=jo;var Np=De.SourceMapConsumer,Fp=De.SourceMapGenerator,Qs=De.fileURLToPath,Sn=De.pathToFileURL,qo=De.isAbsolute,zo=De.resolve,Vp=Dp,Zi=De,Ks=Da,Up=Jl,Ji=Symbol("fromOffsetCache"),jp=!!(Np&&Fp),ec=!!(zo&&qo),Zn=(function(){function t(e,n){if(n===void 0&&(n={}),e==null||(e===void 0?"undefined":ie(e))==="object"&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!ec||/^\w+:\/\//.test(n.from)||qo(n.from)?this.file=n.from:this.file=zo(n.from)),ec&&jp){var i=new Up(this.css,n);if(i.text){this.map=i;var s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+Vp(6)+">"),this.map&&(this.map.file=this.from)}var r=t.prototype;return r.error=function(e,n,i,s){var l,h,o;if(s===void 0&&(s={}),n&&(n===void 0?"undefined":ie(n))==="object"){var a=n,c=i;if(typeof a.offset=="number"){var u=this.fromOffset(a.offset);n=u.line,i=u.col}else n=a.line,i=a.column;if(typeof c.offset=="number"){var d=this.fromOffset(c.offset);h=d.line,o=d.col}else h=c.line,o=c.column}else if(!i){var f=this.fromOffset(n);n=f.line,i=f.col}var _=this.origin(n,i,h,o);return(l=_?new Ks(e,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,s.plugin):new Ks(e,h===void 0?n:{column:i,line:n},h===void 0?i:{column:o,line:h},this.css,this.file,s.plugin)).input={column:i,endColumn:o,endLine:h,line:n,source:this.css},this.file&&(Sn&&(l.input.url=Sn(this.file).toString()),l.input.file=this.file),l},r.fromOffset=function(e){var n;if(this[Ji])n=this[Ji];else{var i=this.css.split(`
|
|
44
|
-
`);n=new Array(i.length);for(var s=0,l=0,h=i.length;l<h;l++)n[l]=s,s+=i[l].length+1;this[Ji]=n}var o=0;if(e>=n[n.length-1])o=n.length-1;else for(var a,c=n.length-2;o<c;)if(e<n[a=o+(c-o>>1)])c=a-1;else{if(!(e>=n[a+1])){o=a;break}o=a+1}return{col:e-n[o]+1,line:o+1}},r.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:zo(this.map.consumer().sourceRoot||this.map.root||".",e)},r.origin=function(e,n,i,s){if(!this.map)return!1;var l,h,o=this.map.consumer(),a=o.originalPositionFor({column:n,line:e});if(!a.source)return!1;typeof i=="number"&&(l=o.originalPositionFor({column:s,line:i})),h=qo(a.source)?Sn(a.source):new URL(a.source,this.map.consumer().sourceRoot||Sn(this.map.mapFile));var c={column:a.column,endColumn:l&&l.column,endLine:l&&l.line,line:a.line,url:h.toString()};if(h.protocol==="file:"){if(!Qs)throw new Error("file: protocol is not available in this PostCSS build");c.file=Qs(h)}var u=o.sourceContentFor(a.source);return u&&(c.source=u),c},r.toJSON=function(){for(var e={},n=0,i=["hasBOM","css","file","id"];n<i.length;n++){var s=i[n];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=pe({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Ue(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Di=Zn;Zn.default=Zn,Zi&&Zi.registerInput&&Zi.registerInput(Zn);var Yl=De.SourceMapConsumer,Jn=De.SourceMapGenerator,Yn=De.dirname,Xl=De.relative,Ql=De.resolve,Kl=De.sep,tc=De.pathToFileURL,qp=Di,zp=!!(Yl&&Jn),Wp=!!(Yn&&Ql&&Xl&&Kl),eu=(function(){function t(e,n,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var r=t.prototype;return r.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var n=`
|
|
45
|
-
`;this.css.includes(`\r
|
|
46
|
-
`)&&(n=`\r
|
|
47
|
-
`),this.css+=n+"/*# sourceMappingURL="+e+" */"},r.applyPrevMaps=function(){for(var e,n=F(this.previous());!(e=n()).done;){var i=e.value,s=this.toUrl(this.path(i.file)),l=i.root||Yn(i.file),h=void 0;this.mapOpts.sourcesContent===!1?(h=new Yl(i.text)).sourcesContent&&(h.sourcesContent=null):h=i.consumer(),this.map.applySourceMap(h,s,this.toUrl(this.path(l)))}},r.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,n=this.root.nodes.length-1;n>=0;n--)(e=this.root.nodes[n]).type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},r.generate=function(){if(this.clearAnnotation(),Wp&&zp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(n){e+=n})),[e]},r.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Jn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Jn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},r.generateString=function(){var e=this;this.css="",this.map=new Jn({file:this.outputFile(),ignoreInvalidMapping:!0});var n,i,s=1,l=1,h="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&u!=="end"&&(o.generated.line=s,o.generated.column=l-1,c.source&&c.source.start?(o.source=e.sourcePath(c),o.original.line=c.source.start.line,o.original.column=c.source.start.column-1,e.map.addMapping(o)):(o.source=h,o.original.line=1,o.original.column=0,e.map.addMapping(o))),(n=a.match(/\n/g))?(s+=n.length,i=a.lastIndexOf(`
|
|
48
|
-
`),l=a.length-i):l+=a.length,c&&u!=="start"){var d=c.parent||{raws:{}};(c.type==="decl"||c.type==="atrule"&&!c.nodes)&&c===d.last&&!d.raws.semicolon||(c.source&&c.source.end?(o.source=e.sourcePath(c),o.original.line=c.source.end.line,o.original.column=c.source.end.column-1,o.generated.line=s,o.generated.column=l-2,e.map.addMapping(o)):(o.source=h,o.original.line=1,o.original.column=0,o.generated.line=s,o.generated.column=l-1,e.map.addMapping(o)))}}))},r.isAnnotation=function(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},r.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(e===void 0||e===!0)&&(!this.previous().length||this.previous().some((function(n){return n.inline})))},r.isMap=function(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0},r.isSourcesContent=function(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},r.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},r.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var n=this.memoizedPaths.get(e);if(n)return n;var i=this.opts.to?Yn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Yn(Ql(i,this.mapOpts.annotation)));var s=Xl(i,e);return this.memoizedPaths.set(e,s),s},r.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}}));else{var n=new qp(this.originalCSS,this.opts);n.map&&this.previousMaps.push(n.map)}return this.previousMaps},r.setSourcesContent=function(){var e=this,n={};if(this.root)this.root.walk((function(s){if(s.source){var l=s.source.input.from;if(l&&!n[l]){n[l]=!0;var h=e.usesFileUrls?e.toFileUrl(l):e.toUrl(e.path(l));e.map.setSourceContent(h,s.source.input.css)}}}));else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},r.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},r.toBase64=function(e){return zt?zt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},r.toFileUrl=function(e){var n=this.memoizedFileURLs.get(e);if(n)return n;if(tc){var i=tc(e).toString();return this.memoizedFileURLs.set(e,i),i}throw new Error("`map.absolute` option is not available in this PostCSS build")},r.toUrl=function(e){var n=this.memoizedURLs.get(e);if(n)return n;Kl==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t})(),Wo=(function(t){function r(e){var n;return(n=t.call(this,e)||this).type="comment",n}return $e(r,t),r})(xi),Bi=Wo;Wo.default=Wo;var tu,Ba,Ma,ru,nu=Gt.isClean,iu=Gt.my,ou=Oi,au=Bi;function su(t){return t.map((function(r){return r.nodes&&(r.nodes=su(r.nodes)),delete r.source,r}))}function cu(t){if(t[nu]=!1,t.proxyOf.nodes)for(var r,e=F(t.proxyOf.nodes);!(r=e()).done;)cu(r.value)}var Pt=(function(t){function r(){return t.apply(this,arguments)||this}$e(r,t);var e=r.prototype;return e.append=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(var l,h=F(i);!(l=h()).done;)for(var o,a=l.value,c=F(this.normalize(a,this.last));!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},e.cleanRaws=function(n){if(t.prototype.cleanRaws.call(this,n),this.nodes)for(var i,s=F(this.nodes);!(i=s()).done;)i.value.cleanRaws(n)},e.each=function(n){if(this.proxyOf.nodes){for(var i,s,l=this.getIterator();this.indexes[l]<this.proxyOf.nodes.length&&(i=this.indexes[l],(s=n(this.proxyOf.nodes[i],i))!==!1);)this.indexes[l]+=1;return delete this.indexes[l],s}},e.every=function(n){return this.nodes.every(n)},e.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var n=this.lastEach;return this.indexes[n]=0,n},e.getProxyProcessor=function(){return{get:function(n,i){return i==="proxyOf"?n:n[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?function(){for(var s=arguments.length,l=new Array(s),h=0;h<s;h++)l[h]=arguments[h];var o;return(o=n)[i].apply(o,[].concat(l.map((function(a){return typeof a=="function"?function(c,u){return a(c.toProxy(),u)}:a}))))}:i==="every"||i==="some"?function(s){return n[i]((function(l){for(var h=arguments.length,o=new Array(h>1?h-1:0),a=1;a<h;a++)o[a-1]=arguments[a];return s.apply(void 0,[].concat([l.toProxy()],o))}))}:i==="root"?function(){return n.root().toProxy()}:i==="nodes"?n.nodes.map((function(s){return s.toProxy()})):i==="first"||i==="last"?n[i].toProxy():n[i]:n[i]},set:function(n,i,s){return n[i]===s||(n[i]=s,i!=="name"&&i!=="params"&&i!=="selector"||n.markDirty()),!0}}},e.index=function(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))},e.insertAfter=function(n,i){var s,l=this.index(n),h=this.normalize(i,this.proxyOf.nodes[l]).reverse();l=this.index(n);for(var o,a=F(h);!(o=a()).done;){var c=o.value;this.proxyOf.nodes.splice(l+1,0,c)}for(var u in this.indexes)l<(s=this.indexes[u])&&(this.indexes[u]=s+h.length);return this.markDirty(),this},e.insertBefore=function(n,i){var s,l=this.index(n),h=l===0&&"prepend",o=this.normalize(i,this.proxyOf.nodes[l],h).reverse();l=this.index(n);for(var a,c=F(o);!(a=c()).done;){var u=a.value;this.proxyOf.nodes.splice(l,0,u)}for(var d in this.indexes)l<=(s=this.indexes[d])&&(this.indexes[d]=s+o.length);return this.markDirty(),this},e.normalize=function(n,i){var s=this;if(typeof n=="string")n=su(tu(n).nodes);else if(n===void 0)n=[];else if(Array.isArray(n))for(var l,h=F(n=n.slice(0));!(l=h()).done;){var o=l.value;o.parent&&o.parent.removeChild(o,"ignore")}else if(n.type==="root"&&this.type!=="document")for(var a,c=F(n=n.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(n.type)n=[n];else if(n.prop){if(n.value===void 0)throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new ou(n)]}else if(n.selector)n=[new Ba(n)];else if(n.name)n=[new Ma(n)];else{if(!n.text)throw new Error("Unknown node type in node creation");n=[new au(n)]}return n.map((function(d){return d[iu]||r.rebuild(d),(d=d.proxyOf).parent&&d.parent.removeChild(d),d[nu]&&cu(d),d.raws.before===void 0&&i&&i.raws.before!==void 0&&(d.raws.before=i.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d}))},e.prepend=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];for(var l,h=F(i=i.reverse());!(l=h()).done;){for(var o,a=l.value,c=this.normalize(a,this.first,"prepend").reverse(),u=F(c);!(o=u()).done;){var d=o.value;this.proxyOf.nodes.unshift(d)}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+c.length}return this.markDirty(),this},e.push=function(n){return n.parent=this,this.proxyOf.nodes.push(n),this},e.removeAll=function(){for(var n,i=F(this.proxyOf.nodes);!(n=i()).done;)n.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},e.removeChild=function(n){var i;for(var s in n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1),this.indexes)(i=this.indexes[s])>=n&&(this.indexes[s]=i-1);return this.markDirty(),this},e.replaceValues=function(n,i,s){return s||(s=i,i={}),this.walkDecls((function(l){i.props&&!i.props.includes(l.prop)||i.fast&&!l.value.includes(i.fast)||(l.value=l.value.replace(n,s))})),this.markDirty(),this},e.some=function(n){return this.nodes.some(n)},e.walk=function(n){return this.each((function(i,s){var l;try{l=n(i,s)}catch(h){throw i.addToError(h)}return l!==!1&&i.walk&&(l=i.walk(n)),l}))},e.walkAtRules=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="atrule"&&n.test(s.name))return i(s,l)})):this.walk((function(s,l){if(s.type==="atrule"&&s.name===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="atrule")return i(s,l)})))},e.walkComments=function(n){return this.walk((function(i,s){if(i.type==="comment")return n(i,s)}))},e.walkDecls=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="decl"&&n.test(s.prop))return i(s,l)})):this.walk((function(s,l){if(s.type==="decl"&&s.prop===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="decl")return i(s,l)})))},e.walkRules=function(n,i){return i?J(n,RegExp)?this.walk((function(s,l){if(s.type==="rule"&&n.test(s.selector))return i(s,l)})):this.walk((function(s,l){if(s.type==="rule"&&s.selector===n)return i(s,l)})):(i=n,this.walk((function(s,l){if(s.type==="rule")return i(s,l)})))},Ue(r,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),r})(xi);Pt.registerParse=function(t){tu=t},Pt.registerRule=function(t){Ba=t},Pt.registerAtRule=function(t){Ma=t},Pt.registerRoot=function(t){ru=t};var Kt=Pt;Pt.default=Pt,Pt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ma.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ba.prototype):t.type==="decl"?Object.setPrototypeOf(t,ou.prototype):t.type==="comment"?Object.setPrototypeOf(t,au.prototype):t.type==="root"&&Object.setPrototypeOf(t,ru.prototype),t[iu]=!0,t.nodes&&t.nodes.forEach((function(r){Pt.rebuild(r)}))};var lu,uu,tn=(function(t){function r(e){var n;return(n=t.call(this,pe({type:"document"},e))||this).nodes||(n.nodes=[]),n}return $e(r,t),r.prototype.toResult=function(e){return e===void 0&&(e={}),new lu(new uu,this,e).stringify()},r})(Kt);tn.registerLazyResult=function(t){lu=t},tn.registerProcessor=function(t){uu=t};var La=tn;tn.default=tn;var Go=(function(){function t(r,e){if(e===void 0&&(e={}),this.type="warning",this.text=r,e.node&&e.node.source){var n=e.node.rangeBy(e);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var i in e)this[i]=e[i]}return t.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},t})(),du=Go;Go.default=Go;var Gp=du,$o=(function(){function t(e,n,i){this.processor=e,this.messages=[],this.root=n,this.opts=i,this.css=void 0,this.map=void 0}var r=t.prototype;return r.toString=function(){return this.css},r.warn=function(e,n){n===void 0&&(n={}),n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);var i=new Gp(e,n);return this.messages.push(i),i},r.warnings=function(){return this.messages.filter((function(e){return e.type==="warning"}))},Ue(t,[{key:"content",get:function(){return this.css}}]),t})(),Na=$o;$o.default=$o;var Yi=39,rc=34,En=92,nc=47,An=10,Or=32,In=12,Tn=9,Pn=13,$p=91,Hp=93,Zp=40,Jp=41,Yp=123,Xp=125,Qp=59,Kp=42,ef=58,tf=64,Rn=/[\t\n\f\r "#'()/;[\\\]{}]/g,xn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rf=/.[\r\n"'(/\\]/,ic=/[\da-f]/i,hu=Kt,Xn=(function(t){function r(n){var i;return(i=t.call(this,n)||this).type="atrule",i}$e(r,t);var e=r.prototype;return e.append=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.append).call.apply(l,[].concat([this],i))},e.prepend=function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.prepend).call.apply(l,[].concat([this],i))},r})(hu),Fa=Xn;Xn.default=Xn,hu.registerAtRule(Xn);var pu,fu,mu=Kt,wr=(function(t){function r(n){var i;return(i=t.call(this,n)||this).type="root",i.nodes||(i.nodes=[]),i}$e(r,t);var e=r.prototype;return e.normalize=function(n,i,s){var l=t.prototype.normalize.call(this,n);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var h,o=F(l);!(h=o()).done;)h.value.raws.before=i.raws.before}return l},e.removeChild=function(n,i){var s=this.index(n);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,n)},e.toResult=function(n){return n===void 0&&(n={}),new pu(new fu,this,n).stringify()},r})(mu);wr.registerLazyResult=function(t){pu=t},wr.registerProcessor=function(t){fu=t};var ln=wr;wr.default=wr,mu.registerRoot(wr);var rn={comma:function(t){return rn.split(t,[","],!0)},space:function(t){return rn.split(t,[" ",`
|
|
49
|
-
`," "])},split:function(t,r,e){for(var n,i=[],s="",l=!1,h=0,o=!1,a="",c=!1,u=F(t);!(n=u()).done;){var d=n.value;c?c=!1:d==="\\"?c=!0:o?d===a&&(o=!1):d==='"'||d==="'"?(o=!0,a=d):d==="("?h+=1:d===")"?h>0&&(h-=1):h===0&&r.includes(d)&&(l=!0),l?(s!==""&&i.push(s.trim()),s="",l=!1):s+=d}return(e||s!=="")&&i.push(s.trim()),i}},_u=rn;rn.default=rn;var gu=Kt,nf=_u,Qn=(function(t){function r(e){var n;return(n=t.call(this,e)||this).type="rule",n.nodes||(n.nodes=[]),n}return $e(r,t),Ue(r,[{key:"selectors",get:function(){return nf.comma(this.selector)},set:function(e){var n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),r})(gu),Va=Qn;Qn.default=Qn,gu.registerRule(Qn);var of=Oi,af=function(t,r){r===void 0&&(r={});var e,n,i,s,l,h,o,a,c,u,d=t.css.valueOf(),f=r.ignoreErrors,_=d.length,m=0,g=[],y=[];function b(k){throw t.error("Unclosed "+k,m)}return{back:function(k){y.push(k)},endOfFile:function(){return y.length===0&&m>=_},nextToken:function(k){if(y.length)return y.pop();if(!(m>=_)){var E=!!k&&k.ignoreUnclosed;switch(e=d.charCodeAt(m)){case An:case Or:case Tn:case Pn:case In:n=m;do n+=1,e=d.charCodeAt(n);while(e===Or||e===An||e===Tn||e===Pn||e===In);u=["space",d.slice(m,n)],m=n-1;break;case $p:case Hp:case Yp:case Xp:case ef:case Qp:case Jp:var w=String.fromCharCode(e);u=[w,w,m];break;case Zp:if(a=g.length?g.pop()[1]:"",c=d.charCodeAt(m+1),a==="url"&&c!==Yi&&c!==rc&&c!==Or&&c!==An&&c!==Tn&&c!==In&&c!==Pn){n=m;do{if(h=!1,(n=d.indexOf(")",n+1))===-1){if(f||E){n=m;break}b("bracket")}for(o=n;d.charCodeAt(o-1)===En;)o-=1,h=!h}while(h);u=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),s=d.slice(m,n+1),n===-1||rf.test(s)?u=["(","(",m]:(u=["brackets",s,m,n],m=n);break;case Yi:case rc:i=e===Yi?"'":'"',n=m;do{if(h=!1,(n=d.indexOf(i,n+1))===-1){if(f||E){n=m+1;break}b("string")}for(o=n;d.charCodeAt(o-1)===En;)o-=1,h=!h}while(h);u=["string",d.slice(m,n+1),m,n],m=n;break;case tf:Rn.lastIndex=m+1,Rn.test(d),n=Rn.lastIndex===0?d.length-1:Rn.lastIndex-2,u=["at-word",d.slice(m,n+1),m,n],m=n;break;case En:for(n=m,l=!0;d.charCodeAt(n+1)===En;)n+=1,l=!l;if(e=d.charCodeAt(n+1),l&&e!==nc&&e!==Or&&e!==An&&e!==Tn&&e!==Pn&&e!==In&&(n+=1,ic.test(d.charAt(n)))){for(;ic.test(d.charAt(n+1));)n+=1;d.charCodeAt(n+1)===Or&&(n+=1)}u=["word",d.slice(m,n+1),m,n],m=n;break;default:e===nc&&d.charCodeAt(m+1)===Kp?((n=d.indexOf("*/",m+2)+1)===0&&(f||E?n=d.length:b("comment")),u=["comment",d.slice(m,n+1),m,n],m=n):(xn.lastIndex=m+1,xn.test(d),n=xn.lastIndex===0?d.length-1:xn.lastIndex-2,u=["word",d.slice(m,n+1),m,n],g.push(u),m=n)}return m++,u}},position:function(){return m}}},sf=Bi,cf=Fa,lf=ln,oc=Va,ac={empty:!0,space:!0},uf=(function(){function t(e){this.input=e,this.root=new lf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var r=t.prototype;return r.atrule=function(e){var n,i,s,l=new cf;l.name=e[1].slice(1),l.name===""&&this.unnamedAtrule(l,e),this.init(l,e[2]);for(var h=!1,o=!1,a=[],c=[];!this.tokenizer.endOfFile();){if((n=(e=this.tokenizer.nextToken())[0])==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0){if(n===";"){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if(n==="{"){o=!0;break}if(n==="}"){if(a.length>0){for(i=a[s=a.length-1];i&&i[0]==="space";)i=a[--s];i&&(l.source.end=this.getPosition(i[3]||i[2]),l.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){h=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(l.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(l,"params",a),h&&(e=a[a.length-1],l.source.end=this.getPosition(e[3]||e[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),o&&(l.nodes=[],this.current=l)},r.checkMissedSemicolon=function(e){var n=this.colon(e);if(n!==!1){for(var i,s=0,l=n-1;l>=0&&((i=e[l])[0]==="space"||(s+=1)!==2);l--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}},r.colon=function(e){for(var n,i,s,l,h=0,o=F(e.entries());!(l=o()).done;){var a=l.value,c=a[0];if((i=(n=a[1])[0])==="("&&(h+=1),i===")"&&(h-=1),h===0&&i===":"){if(s){if(s[0]==="word"&&s[1]==="progid")continue;return c}this.doubleColon(n)}s=n}return!1},r.comment=function(e){var n=new sf;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=s[2],n.raws.left=s[1],n.raws.right=s[3]}},r.createTokenizer=function(){this.tokenizer=af(this.input)},r.decl=function(e,n){var i=new of;this.init(i,e[0][2]);var s,l=e[e.length-1];for(l[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(l[3]||l[2]||(function(g){for(var y=g.length-1;y>=0;y--){var b=g[y],k=b[3]||b[2];if(k)return k}})(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var h=e[0][0];if(h===":"||h==="space"||h==="comment")break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if((s=e.shift())[0]===":"){i.raws.between+=s[1];break}s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),i.raws.between+=s[1]}i.prop[0]!=="_"&&i.prop[0]!=="*"||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var o,a=[];e.length&&((o=e[0][0])==="space"||o==="comment");)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if((s=e[c])[1].toLowerCase()==="!important"){i.important=!0;var u=this.stringFrom(e,c);(u=this.spacesFromEnd(e)+u)!==" !important"&&(i.raws.important=u);break}if(s[1].toLowerCase()==="important"){for(var d=e.slice(0),f="",_=c;_>0;_--){var m=d[_][0];if(f.trim().indexOf("!")===0&&m!=="space")break;f=d.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=d)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some((function(g){return g[0]!=="space"&&g[0]!=="comment"}))&&(i.raws.between+=a.map((function(g){return g[1]})).join(""),a=[]),this.raw(i,"value",a.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)},r.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},r.emptyRule=function(e){var n=new oc;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n},r.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},r.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},r.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}},r.getPosition=function(e){var n=this.input.fromOffset(e);return{column:n.col,line:n.line,offset:e}},r.init=function(e,n){this.current.push(e),e.source={input:this.input,start:this.getPosition(n)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},r.other=function(e){for(var n=!1,i=null,s=!1,l=null,h=[],o=e[1].startsWith("--"),a=[],c=e;c;){if(i=c[0],a.push(c),i==="("||i==="[")l||(l=c),h.push(i==="("?")":"]");else if(o&&s&&i==="{")l||(l=c),h.push("}");else if(h.length===0){if(i===";"){if(s)return void this.decl(a,o);break}if(i==="{")return void this.rule(a);if(i==="}"){this.tokenizer.back(a.pop()),n=!0;break}i===":"&&(s=!0)}else i===h[h.length-1]&&(h.pop(),h.length===0&&(l=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),h.length>0&&this.unclosedBracket(l),n&&s){if(!o)for(;a.length&&((c=a[a.length-1][0])==="space"||c==="comment");)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)},r.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},r.precheckMissedSemicolon=function(){},r.raw=function(e,n,i,s){for(var l,h,o,a,c=i.length,u="",d=!0,f=0;f<c;f+=1)(h=(l=i[f])[0])!=="space"||f!==c-1||s?h==="comment"?(a=i[f-1]?i[f-1][0]:"empty",o=i[f+1]?i[f+1][0]:"empty",ac[a]||ac[o]||u.slice(-1)===","?d=!1:u+=l[1]):u+=l[1]:d=!1;if(!d){var _=i.reduce((function(m,g){return m+g[1]}),"");e.raws[n]={raw:_,value:u}}e[n]=u},r.rule=function(e){e.pop();var n=new oc;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n},r.spacesAndCommentsFromEnd=function(e){for(var n,i="";e.length&&((n=e[e.length-1][0])==="space"||n==="comment");)i=e.pop()[1]+i;return i},r.spacesAndCommentsFromStart=function(e){for(var n,i="";e.length&&((n=e[0][0])==="space"||n==="comment");)i+=e.shift()[1];return i},r.spacesFromEnd=function(e){for(var n="";e.length&&e[e.length-1][0]==="space";)n=e.pop()[1]+n;return n},r.stringFrom=function(e,n){for(var i="",s=n;s<e.length;s++)i+=e[s][1];return e.splice(n,e.length-n),i},r.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},r.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},r.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},r.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},r.unnamedAtrule=function(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})},t})(),df=Kt,hf=uf,pf=Di;function Kn(t,r){var e=new pf(t,r),n=new hf(e);try{n.parse()}catch(i){throw i}return n.root}var Ua=Kn;Kn.default=Kn,df.registerParse(Kn);var ft=Gt.isClean,ff=Gt.my,mf=eu,_f=Ri,gf=Kt,vf=La,sc=Na,yf=Ua,bf=ln,kf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Cf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},wf={Once:!0,postcssPlugin:!0,prepare:!0};function Dr(t){return(t===void 0?"undefined":ie(t))==="object"&&typeof t.then=="function"}function vu(t){var r=!1,e=kf[t.type];return t.type==="decl"?r=t.prop.toLowerCase():t.type==="atrule"&&(r=t.name.toLowerCase()),r&&t.append?[e,e+"-"+r,0,e+"Exit",e+"Exit-"+r]:r?[e,e+"-"+r,e+"Exit",e+"Exit-"+r]:t.append?[e,0,e+"Exit"]:[e,e+"Exit"]}function cc(t){return{eventIndex:0,events:t.type==="document"?["Document",0,"DocumentExit"]:t.type==="root"?["Root",0,"RootExit"]:vu(t),iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ho(t){return t[ft]=!1,t.nodes&&t.nodes.forEach((function(r){return Ho(r)})),t}var Zo={},kr=(function(){function t(e,n,i){var s,l=this;if(this.stringified=!1,this.processed=!1,(n===void 0?"undefined":ie(n))!=="object"||n===null||n.type!=="root"&&n.type!=="document")if(J(n,t)||J(n,sc))s=Ho(n.root),n.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{var h=yf;i.syntax&&(h=i.syntax.parse),i.parser&&(h=i.parser),h.parse&&(h=h.parse);try{s=h(n,i)}catch(o){this.processed=!0,this.error=o}s&&!s[ff]&&gf.rebuild(s)}else s=Ho(n);this.result=new sc(e,s,i),this.helpers=pe({},Zo,{postcss:Zo,result:this.result}),this.plugins=this.processor.plugins.map((function(o){return(o===void 0?"undefined":ie(o))==="object"&&o.prepare?pe({},o,o.prepare(l.result)):o}))}var r=t.prototype;return r.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},r.catch=function(e){return this.async().catch(e)},r.finally=function(e){return this.async().then(e,e)},r.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},r.handleError=function(e,n){var i=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name!=="CssSyntaxError"||e.plugin?i.postcssVersion:(e.plugin=i.postcssPlugin,e.setMessage())}catch(s){console&&console.error&&console.error(s)}return e},r.prepareVisitors=function(){var e=this;this.listeners={};for(var n,i=function(a,c,u){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([a,u])},s=F(this.plugins);!(n=s()).done;){var l=n.value;if((l===void 0?"undefined":ie(l))==="object")for(var h in l){if(!Cf[h]&&/^[A-Z]/.test(h))throw new Error("Unknown event "+h+" in "+l.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!wf[h])if(ie(l[h])==="object")for(var o in l[h])i(l,o==="*"?h:h+"-"+o.toLowerCase(),l[h][o]);else typeof l[h]=="function"&&i(l,h,l[h])}}this.hasListener=Object.keys(this.listeners).length>0},r.runAsync=function(){var e=this;return Ca((function(){var n,i,s,l,h,o,a,c,u,d,f,_;return Xr(this,(function(m){switch(m.label){case 0:e.plugin=0,n=0,m.label=1;case 1:if(!(n<e.plugins.length))return[3,6];if(i=e.plugins[n],!Dr(s=e.runOnRoot(i)))return[3,5];m.label=2;case 2:return m.trys.push([2,4,,5]),[4,s];case 3:return m.sent(),[3,5];case 4:throw l=m.sent(),e.handleError(l);case 5:return n++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];h=e.result.root,m.label=7;case 7:if(h[ft])return[3,14];h[ft]=!0,o=[cc(h)],m.label=8;case 8:if(!(o.length>0))return[3,13];if(!Dr(a=e.visitTick(o)))return[3,12];m.label=9;case 9:return m.trys.push([9,11,,12]),[4,a];case 10:return m.sent(),[3,12];case 11:throw c=m.sent(),u=o[o.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];d=function(){var g,y,b,k,E;return Xr(this,(function(w){switch(w.label){case 0:g=_.value,y=g[0],b=g[1],e.result.lastPlugin=y,w.label=1;case 1:return w.trys.push([1,6,,7]),h.type!=="document"?[3,3]:(k=h.nodes.map((function(C){return b(C,e.helpers)})),[4,Promise.all(k)]);case 2:return w.sent(),[3,5];case 3:return[4,b(h,e.helpers)];case 4:w.sent(),w.label=5;case 5:return[3,7];case 6:throw E=w.sent(),e.handleError(E);case 7:return[2]}}))},f=F(e.listeners.OnceExit),m.label=15;case 15:return(_=f()).done?[3,18]:[5,fl(d())];case 16:m.sent(),m.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},r.runOnRoot=function(e){var n=this;this.result.lastPlugin=e;try{if((e===void 0?"undefined":ie(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map((function(s){return e.Once(s,n.helpers)}));return Dr(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},r.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,n=_f;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);var i=new mf(n,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result},r.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,n=F(this.plugins);!(e=n()).done;){var i=e.value;if(Dr(this.runOnRoot(i)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[ft];)s[ft]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var l,h=F(s.nodes);!(l=h()).done;){var o=l.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},r.then=function(e,n){return this.async().then(e,n)},r.toString=function(){return this.css},r.visitSync=function(e,n){for(var i,s=F(e);!(i=s()).done;){var l=i.value,h=l[0],o=l[1];this.result.lastPlugin=h;var a=void 0;try{a=o(n,this.helpers)}catch(c){throw this.handleError(c,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(Dr(a))throw this.getAsyncError()}},r.visitTick=function(e){var n=e[e.length-1],i=n.node,s=n.visitors;if(i.type==="root"||i.type==="document"||i.parent){if(s.length>0&&n.visitorIndex<s.length){var l=s[n.visitorIndex],h=l[0],o=l[1];n.visitorIndex+=1,n.visitorIndex===s.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=h;try{return o(i.toProxy(),this.helpers)}catch(f){throw this.handleError(f,i)}}if(n.iterator!==0){for(var a,c=n.iterator;a=i.nodes[i.indexes[c]];)if(i.indexes[c]+=1,!a[ft])return a[ft]=!0,void e.push(cc(a));n.iterator=0,delete i.indexes[c]}for(var u=n.events;n.eventIndex<u.length;){var d=u[n.eventIndex];if(n.eventIndex+=1,d===0)return void(i.nodes&&i.nodes.length&&(i[ft]=!0,n.iterator=i.getIterator()));if(this.listeners[d])return void(n.visitors=this.listeners[d])}e.pop()}else e.pop()},r.walkSync=function(e){var n=this;e[ft]=!0;for(var i,s=F(vu(e));!(i=s()).done;){var l=i.value;if(l===0)e.nodes&&e.each((function(o){o[ft]||n.walkSync(o)}));else{var h=this.listeners[l];if(h&&this.visitSync(h,e.toProxy()))return}}},r.warnings=function(){return this.sync().warnings()},Ue(t,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),t})();kr.registerPostcss=function(t){Zo=t};var yu=kr;kr.default=kr,bf.registerLazyResult(kr),vf.registerLazyResult(kr);var Sf=eu,Ef=Ri,Af=Ua,If=Na,Jo=(function(){function t(e,n,i){var s;n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;var l=Ef;this.result=new If(this._processor,s,this._opts),this.result.css=n;var h=this;Object.defineProperty(this.result,"root",{get:function(){return h.root}});var o=new Sf(l,s,this._opts,n);if(o.isMap()){var a=o.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}var r=t.prototype;return r.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},r.catch=function(e){return this.async().catch(e)},r.finally=function(e){return this.async().then(e,e)},r.sync=function(){if(this.error)throw this.error;return this.result},r.then=function(e,n){return this.async().then(e,n)},r.toString=function(){return this._css},r.warnings=function(){return[]},Ue(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,n=Af;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Tf=Jo;Jo.default=Jo;var Pf=Tf,Rf=yu,xf=La,Of=ln,Fr=(function(){function t(e){e===void 0&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var r=t.prototype;return r.normalize=function(e){for(var n,i=[],s=F(e);!(n=s()).done;){var l=n.value;if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),(l===void 0?"undefined":ie(l))==="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if((l===void 0?"undefined":ie(l))==="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if((l===void 0?"undefined":ie(l))!=="object"||!l.parse&&!l.stringify)throw new Error(l+" is not a PostCSS plugin")}return i},r.process=function(e,n){return n===void 0&&(n={}),this.plugins.length||n.parser||n.stringifier||n.syntax?new Rf(this,e,n):new Pf(this,e,n)},r.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Df=Fr;Fr.default=Fr,Of.registerProcessor(Fr),xf.registerProcessor(Fr);var Bf=Oi,Mf=Jl,Lf=Bi,Nf=Fa,Ff=Di,Vf=ln,Uf=Va;function nn(t,r){if(Array.isArray(t))return t.map((function(c){return nn(c)}));var e=t.inputs,n=Yr(t,["inputs"]);if(e){r=[];for(var i,s=F(e);!(i=s()).done;){var l=pe({},i.value,{__proto__:Ff.prototype});l.map&&(l.map=pe({},l.map,{__proto__:Mf.prototype})),r.push(l)}}if(n.nodes&&(n.nodes=t.nodes.map((function(c){return nn(c,r)}))),n.source){var h=n.source,o=h.inputId,a=Yr(h,["inputId"]);n.source=a,o!=null&&(n.source.input=r[o])}if(n.type==="root")return new Vf(n);if(n.type==="decl")return new Bf(n);if(n.type==="rule")return new Uf(n);if(n.type==="comment")return new Lf(n);if(n.type==="atrule")return new Nf(n);throw new Error("Unknown node type: "+t.type)}var jf=nn;nn.default=nn;var qf=Da,lc=Oi,zf=yu,Wf=Kt,Yo=Df,Gf=Ri,$f=jf,uc=La,Hf=du,dc=Bi,hc=Fa,Zf=Na,Jf=Di,Yf=Ua,Xf=_u,pc=Va,fc=ln,Qf=xi;function _e(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Yo(r)}_e.plugin=function(t,r){var e,n=!1;function i(){for(var s=arguments.length,l=new Array(s),h=0;h<s;h++)l[h]=arguments[h];console&&console.warn&&!n&&(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
50
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),di.LANG&&di.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
51
|
-
https://www.w3ctech.com/topic/2226`));var o=r.apply(void 0,[].concat(l));return o.postcssPlugin=t,o.postcssVersion=new Yo().version,o}return Object.defineProperty(i,"postcss",{get:function(){return e||(e=i()),e}}),i.process=function(s,l,h){return _e([i(h)]).process(s,l)},i},_e.stringify=Gf,_e.parse=Yf,_e.fromJSON=$f,_e.list=Xf,_e.comment=function(t){return new dc(t)},_e.atRule=function(t){return new hc(t)},_e.decl=function(t){return new lc(t)},_e.rule=function(t){return new pc(t)},_e.root=function(t){return new fc(t)},_e.document=function(t){return new uc(t)},_e.CssSyntaxError=qf,_e.Declaration=lc,_e.Container=Wf,_e.Processor=Yo,_e.Document=uc,_e.Comment=dc,_e.Warning=Hf,_e.AtRule=hc,_e.Result=Zf,_e.Input=Jf,_e.Rule=pc,_e.Root=fc,_e.Node=Qf,zf.registerPostcss(_e);var Kf=_e;_e.default=_e;var Ee=Ep(Kf);Ee.stringify,Ee.fromJSON,Ee.plugin,Ee.parse,Ee.list,Ee.document,Ee.comment,Ee.atRule,Ee.rule,Ee.decl,Ee.root,Ee.CssSyntaxError,Ee.Declaration,Ee.Container,Ee.Processor,Ee.Document,Ee.Comment,Ee.Warning,Ee.AtRule,Ee.Result,Ee.Input,Ee.Rule,Ee.Root,Ee.Node;var em=(function(){function t(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];rt(this,"parentElement",null),rt(this,"parentNode",null),rt(this,"ownerDocument"),rt(this,"firstChild",null),rt(this,"lastChild",null),rt(this,"previousSibling",null),rt(this,"nextSibling",null),rt(this,"ELEMENT_NODE",1),rt(this,"TEXT_NODE",3),rt(this,"nodeType"),rt(this,"nodeName"),rt(this,"RRNodeType")}var r=t.prototype;return r.contains=function(e){if(!J(e,t)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},r.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},r.insertBefore=function(e,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},r.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},r.toString=function(){return"RRNode"},Ue(t,[{key:"childNodes",get:function(){for(var e=[],n=this.firstChild;n;)e.push(n),n=n.nextSibling;return e}}]),t})(),mc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_c={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},On={};function ja(t){if(On[t])return On[t];var r=globalThis[t],e=r.prototype,n=t in mc?mc[t]:void 0,i=!!(n&&n.every((function(c){var u,d;return!!((d=(u=Object.getOwnPropertyDescriptor(e,c))==null?void 0:u.get)!=null&&d.toString().includes("[native code]"))}))),s=t in _c?_c[t]:void 0,l=!!(s&&s.every((function(c){var u;return typeof e[c]=="function"&&((u=e[c])==null?void 0:u.toString().includes("[native code]"))})));if(i&&l&&!globalThis.Zone)return On[t]=r.prototype,r.prototype;try{var h=document.createElement("iframe");document.body.appendChild(h);var o=h.contentWindow;if(!o)return r.prototype;var a=o[t].prototype;return document.body.removeChild(h),a?On[t]=a:e}catch{return e}}var Xi={};function Dt(t,r,e){var n,i=t+"."+String(e);if(Xi[i])return Xi[i].call(r);var s=ja(t),l=(n=Object.getOwnPropertyDescriptor(s,e))==null?void 0:n.get;return l?(Xi[i]=l,l.call(r)):r[e]}var Qi={};function gc(t,r,e){var n=t+"."+String(e);if(Qi[n])return Qi[n].bind(r);var i=ja(t)[e];return typeof i!="function"?r[e]:(Qi[n]=i,i.bind(r))}function bu(){return ja("MutationObserver").constructor}function Xt(t,r,e){try{if(!(r in t))return function(){};var n=t[r],i=e(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),t[r]=i,function(){t[r]=n}}catch{return function(){}}}var ce={childNodes:function(t){return Dt("Node",t,"childNodes")},parentNode:function(t){return Dt("Node",t,"parentNode")},parentElement:function(t){return Dt("Node",t,"parentElement")},textContent:function(t){return Dt("Node",t,"textContent")},contains:function(t,r){return gc("Node",t,"contains")(r)},getRootNode:function(t){return gc("Node",t,"getRootNode")()},host:function(t){return t&&"host"in t?Dt("ShadowRoot",t,"host"):null},styleSheets:function(t){return t.styleSheets},shadowRoot:function(t){return t&&"shadowRoot"in t?Dt("Element",t,"shadowRoot"):null},querySelector:function(t,r){return Dt("Element",t,"querySelector")(r)},querySelectorAll:function(t,r){return Dt("Element",t,"querySelectorAll")(r)},mutationObserver:bu,patch:Xt};function Qe(t,r,e){e===void 0&&(e=document);var n={capture:!0,passive:!0};return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}var dr=`Please stop import mirror directly. Instead of that,\r
|
|
52
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
53
|
-
or you can use record.mirror to access the mirror instance during recording.`,vc={map:{},getId:function(){return console.error(dr),-1},getNode:function(){return console.error(dr),null},removeNodeFromMap:function(){console.error(dr)},has:function(){return console.error(dr),!1},reset:function(){console.error(dr)}};function Vr(t,r,e){e===void 0&&(e={});var n=null,i=0;return function(){for(var s=arguments.length,l=new Array(s),h=0;h<s;h++)l[h]=arguments[h];var o=Date.now();i||e.leading!==!1||(i=o);var a=r-(o-i),c=this;a<=0||a>r?(n&&(clearTimeout(n),n=null),i=o,t.apply(c,l)):n||e.trailing===!1||(n=setTimeout((function(){i=e.leading===!1?0:Date.now(),n=null,t.apply(c,l)}),a))}}function Mi(t,r,e,n,i){i===void 0&&(i=window);var s=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,n?e:{set:function(l){var h=this;setTimeout((function(){e.set.call(h,l)}),0),s&&s.set&&s.set.call(this,l)}}),function(){return Mi(t,r,s||{},!0)}}typeof window<"u"&&window.Proxy&&window.Reflect&&(vc=new Proxy(vc,{get:function(t,r,e){return r==="map"&&console.error(dr),Reflect.get(t,r,e)}}));var gi=Date.now;function ku(t){var r,e,n,i,s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((r=ce.parentElement(s.body))==null?void 0:r.scrollLeft)||((e=s?.body)==null?void 0:e.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:s?.documentElement.scrollTop||s?.body&&((n=ce.parentElement(s.body))==null?void 0:n.scrollTop)||((i=s?.body)==null?void 0:i.scrollTop)||0}}function Cu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function wu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Su(t){return t?t.nodeType===t.ELEMENT_NODE?t:ce.parentElement(t):null}function Ke(t,r,e,n){if(!t)return!1;var i=Su(t);if(!i)return!1;try{if(typeof r=="string"){if(i.classList.contains(r)||n&&i.closest("."+r)!==null)return!0}else if(_i(i,r,n))return!0}catch{}return!!(e&&(i.matches(e)||n&&i.closest(e)!==null))}function Ki(t,r,e){return!(t.tagName!=="TITLE"||!e.headTitleMutations)||r.getId(t)===-2}function Eu(t,r){if(Wr(t))return!1;var e=r.getId(t);if(!r.has(e))return!0;var n=ce.parentNode(t);return(!n||n.nodeType!==t.DOCUMENT_NODE)&&(!n||Eu(n,r))}function Xo(t){return!!t.changedTouches}function Au(t,r){return!!(t.nodeName==="IFRAME"&&r.getMeta(t))}function Iu(t,r){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&r.getMeta(t))}function Qo(t){return!!t&&(J(t,em)&&"shadowRoot"in t?!!t.shadowRoot:!!ce.shadowRoot(t))}/[1-9][0-9]{12}/.test(Date.now().toString())||(gi=function(){return new Date().getTime()});var tm=(function(){function t(){L(this,"id",1),L(this,"styleIDMap",new WeakMap),L(this,"idStyleMap",new Map)}var r=t.prototype;return r.getId=function(e){var n;return(n=this.styleIDMap.get(e))!=null?n:-1},r.has=function(e){return this.styleIDMap.has(e)},r.add=function(e,n){return this.has(e)?this.getId(e):(i=n===void 0?this.id++:n,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i);var i},r.getStyle=function(e){return this.idStyleMap.get(e)||null},r.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},r.generateId=function(){return this.id++},t})();function Tu(t){var r,e=null;return"getRootNode"in t&&((r=ce.getRootNode(t))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ce.host(ce.getRootNode(t))&&(e=ce.host(ce.getRootNode(t))),e}function rm(t){var r=t.ownerDocument;if(!r)return!1;var e=(function(n){for(var i,s=n;i=Tu(s);)s=i;return s})(t);return ce.contains(r,e)}function Pu(t){var r=t.ownerDocument;return!!r&&(ce.contains(r,t)||rm(t))}var le=(function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t})(le||{}),X=(function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t})(X||{}),tt=(function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t})(tt||{}),wt=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(wt||{}),hr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(hr||{}),pr=(function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t})(pr||{}),Ru=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Ru||{});function yc(t){return"__ln"in t}var $r,nm=(function(){function t(){L(this,"length",0),L(this,"head",null),L(this,"tail",null)}var r=t.prototype;return r.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var n=this.head,i=0;i<e;i++)n=n?.next||null;return n},r.addNode=function(e){var n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&yc(e.previousSibling)){var i=e.previousSibling.__ln.next;n.next=i,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,i&&(i.previous=n)}else if(e.nextSibling&&yc(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;n.previous=s,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,s&&(s.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++},r.removeNode=function(e){var n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t})(),bc=function(t,r){return t+"@"+r},im=(function(){function t(){var e=this;L(this,"frozen",!1),L(this,"locked",!1),L(this,"texts",[]),L(this,"attributes",[]),L(this,"attributeMap",new WeakMap),L(this,"removes",[]),L(this,"mapRemoves",[]),L(this,"movedMap",{}),L(this,"addedSet",new Set),L(this,"movedSet",new Set),L(this,"droppedSet",new Set),L(this,"removesSubTreeCache",new Set),L(this,"mutationCb"),L(this,"blockClass"),L(this,"blockSelector"),L(this,"maskTextClass"),L(this,"maskTextSelector"),L(this,"inlineStylesheet"),L(this,"maskInputOptions"),L(this,"maskTextFn"),L(this,"maskInputFn"),L(this,"keepIframeSrcFn"),L(this,"recordCanvas"),L(this,"inlineImages"),L(this,"slimDOMOptions"),L(this,"dataURLOptions"),L(this,"doc"),L(this,"mirror"),L(this,"iframeManager"),L(this,"stylesheetManager"),L(this,"shadowDomManager"),L(this,"canvasManager"),L(this,"processedNodeManager"),L(this,"unattachedDoc"),L(this,"processMutations",(function(n){n.forEach(e.processMutation),e.emit()})),L(this,"emit",(function(){if(!e.frozen&&!e.locked){for(var n=[],i=new Set,s=new nm,l=function(v){for(var T=v,x=-2;x===-2;)x=(T=T&&T.nextSibling)&&e.mirror.getId(T);return x},h=function(v){var T=ce.parentNode(v);if(T&&Pu(v)){var x=!1;if(v.nodeType===Node.TEXT_NODE){var V=T.tagName;if(V==="TEXTAREA")return;V==="STYLE"&&e.addedSet.has(T)&&(x=!0)}var z=Wr(T)?e.mirror.getId(Tu(v)):e.mirror.getId(T),M=l(v);if(z===-1||M===-1)return s.addNode(v);var $=yr(v,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(G){Au(G,e.mirror)&&e.iframeManager.addIframe(G),Iu(G,e.mirror)&&e.stylesheetManager.trackLinkElement(G),Qo(v)&&e.shadowDomManager.addShadowRoot(ce.shadowRoot(v),e.doc)},onIframeLoad:function(G,U){e.iframeManager.attachIframe(G,U),e.shadowDomManager.observeAttachShadow(G)},onStylesheetLoad:function(G,U){e.stylesheetManager.attachLinkElement(G,U)},cssCaptured:x});$&&(n.push({parentId:z,nextId:M,node:$}),i.add($.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var o,a=F(e.movedSet);!(o=a()).done;){var c=o.value;kc(e.removesSubTreeCache,c,e.mirror)&&!e.movedSet.has(ce.parentNode(c))||h(c)}for(var u,d=F(e.addedSet);!(u=d()).done;){var f=u.value;Cc(e.droppedSet,f)||kc(e.removesSubTreeCache,f,e.mirror)?Cc(e.movedSet,f)?h(f):e.droppedSet.add(f):h(f)}for(var _=null;s.length;){var m=null;if(_){var g=e.mirror.getId(ce.parentNode(_.value)),y=l(_.value);g!==-1&&y!==-1&&(m=_)}if(!m)for(var b=s.tail;b;){var k=b;if(b=b.previous,k){var E=e.mirror.getId(ce.parentNode(k.value));if(l(k.value)===-1)continue;if(E!==-1){m=k;break}var w=k.value,C=ce.parentNode(w);if(C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var P=ce.host(C);if(e.mirror.getId(P)!==-1){m=k;break}}}}if(!m){for(;s.head;)s.removeNode(s.head.value);break}_=m.previous,s.removeNode(m.value),h(m.value)}var D={texts:e.texts.map((function(v){var T=v.node,x=ce.parentNode(T);return x&&x.tagName==="TEXTAREA"&&e.genTextAreaValueMutation(x),{id:e.mirror.getId(T),value:v.value}})).filter((function(v){return!i.has(v.id)})).filter((function(v){return e.mirror.has(v.id)})),attributes:e.attributes.map((function(v){var T=v.attributes;if(typeof T.style=="string"){var x=JSON.stringify(v.styleDiff),V=JSON.stringify(v._unchangedStyles);x.length<T.style.length&&(x+V).split("var(").length===T.style.split("var(").length&&(T.style=v.styleDiff)}return{id:e.mirror.getId(v.node),attributes:T}})).filter((function(v){return!i.has(v.id)})).filter((function(v){return e.mirror.has(v.id)})),removes:e.removes,adds:n};(D.texts.length||D.attributes.length||D.removes.length||D.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(D))}})),L(this,"genTextAreaValueMutation",(function(n){var i=e.attributeMap.get(n);i||(i={node:n,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(i),e.attributeMap.set(n,i));var s=Array.from(ce.childNodes(n),(function(l){return ce.textContent(l)||""})).join("");i.attributes.value=pi({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:fi(n),value:s,maskInputFn:e.maskInputFn})})),L(this,"processMutation",(function(n){if(!Ki(n.target,e.mirror,e.slimDOMOptions))switch(n.type){case"characterData":var i=ce.textContent(n.target);Ke(n.target,e.blockClass,e.blockSelector,!1)||i===n.oldValue||e.texts.push({value:kl(n.target,e.maskTextClass,e.maskTextSelector,!0)&&i?e.maskTextFn?e.maskTextFn(i,Su(n.target)):i.replace(/[\S]/g,"*"):i,node:n.target});break;case"attributes":var s=n.target,l=n.attributeName,h=n.target.getAttribute(l);if(l==="value"){var o=fi(s);h=pi({element:s,maskInputOptions:e.maskInputOptions,tagName:s.tagName,type:o,value:h,maskInputFn:e.maskInputFn})}if(Ke(n.target,e.blockClass,e.blockSelector,!1)||h===n.oldValue)return;var a=e.attributeMap.get(n.target);if(s.tagName==="IFRAME"&&l==="src"&&!e.keepIframeSrcFn(h)){if(s.contentDocument)return;l="rr_src"}if(a||(a={node:n.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(n.target,a)),l==="type"&&s.tagName==="INPUT"&&(n.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!bl(s.tagName,l))if(a.attributes[l]=yl(e.doc,Yt(s.tagName),Yt(l),h),l==="style"){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch{e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");n.oldValue&&c.setAttribute("style",n.oldValue);for(var u,d=F(Array.from(s.style));!(u=d()).done;){var f=u.value,_=s.style.getPropertyValue(f),m=s.style.getPropertyPriority(f);_!==c.style.getPropertyValue(f)||m!==c.style.getPropertyPriority(f)?a.styleDiff[f]=m===""?_:[_,m]:a._unchangedStyles[f]=[_,m]}for(var g,y=F(Array.from(c.style));!(g=y()).done;){var b=g.value;s.style.getPropertyValue(b)===""&&(a.styleDiff[b]=!1)}}else l==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(Ke(n.target,e.blockClass,e.blockSelector,!0))return;if(n.target.tagName==="TEXTAREA")return void e.genTextAreaValueMutation(n.target);n.addedNodes.forEach((function(k){return e.genAdds(k,n.target)})),n.removedNodes.forEach((function(k){var E=e.mirror.getId(k),w=Wr(n.target)?e.mirror.getId(ce.host(n.target)):e.mirror.getId(n.target);Ke(n.target,e.blockClass,e.blockSelector,!1)||Ki(k,e.mirror,e.slimDOMOptions)||!(function(C,P){return P.getId(C)!==-1})(k,e.mirror)||(e.addedSet.has(k)?(Ko(e.addedSet,k),e.droppedSet.add(k)):e.addedSet.has(n.target)&&E===-1||Eu(n.target,e.mirror)||(e.movedSet.has(k)&&e.movedMap[bc(E,w)]?Ko(e.movedSet,k):(e.removes.push({parentId:w,id:E,isShadow:!(!Wr(n.target)||!Gr(n.target))||void 0}),(function(C,P){for(var D=[C];D.length;){var v=D.pop();P.has(v)||(P.add(v),ce.childNodes(v).forEach((function(T){return D.push(T)})))}})(k,e.removesSubTreeCache))),e.mapRemoves.push(k))}))}})),L(this,"genAdds",(function(n,i){if(!e.processedNodeManager.inOtherBuffer(n,e)&&!e.addedSet.has(n)&&!e.movedSet.has(n)){if(e.mirror.hasNode(n)){if(Ki(n,e.mirror,e.slimDOMOptions))return;e.movedSet.add(n);var s=null;i&&e.mirror.hasNode(i)&&(s=e.mirror.getId(i)),s&&s!==-1&&(e.movedMap[bc(e.mirror.getId(n),s)]=!0)}else e.addedSet.add(n),e.droppedSet.delete(n);Ke(n,e.blockClass,e.blockSelector,!1)||(ce.childNodes(n).forEach((function(l){return e.genAdds(l)})),Qo(n)&&ce.childNodes(ce.shadowRoot(n)).forEach((function(l){e.processedNodeManager.add(l,e),e.genAdds(l,n)})))}}))}var r=t.prototype;return r.init=function(e){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((function(i){n[i]=e[i]}))},r.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},r.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},r.isFrozen=function(){return this.frozen},r.lock=function(){this.locked=!0,this.canvasManager.lock()},r.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},r.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t})();function Ko(t,r){t.delete(r),ce.childNodes(r).forEach((function(e){return Ko(t,e)}))}function kc(t,r,e){return t.size!==0&&(function(n,i){var s=ce.parentNode(i);return!!s&&n.has(s)})(t,r)}function Cc(t,r){return t.size!==0&&xu(t,r)}function xu(t,r){var e=ce.parentNode(r);return!!e&&(!!t.has(e)||xu(t,e))}var de=function(t){return $r?function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];try{return t.apply(void 0,[].concat(e))}catch(i){if($r&&$r(i)===!0)return;throw i}}:t},Ht=[];function Hr(t){try{if("composedPath"in t){var r=t.composedPath();if(r.length)return r[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function Ou(t,r){var e=new im;Ht.push(e),e.init(t);var n=new(bu())(de(e.processMutations.bind(e)));return n.observe(r,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function om(t){var r=t.mouseInteractionCb,e=t.doc,n=t.mirror,i=t.blockClass,s=t.blockSelector,l=t.sampling;if(l.mouseInteraction===!1)return function(){};var h=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,o=[],a=null;return Object.keys(tt).filter((function(c){return Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&h[c]!==!1})).forEach((function(c){var u=Yt(c),d=(function(f){return function(_){var m=Hr(_);if(!Ke(m,i,s,!0)){var g=null,y=f;if("pointerType"in _){switch(_.pointerType){case"mouse":g=wt.Mouse;break;case"touch":g=wt.Touch;break;case"pen":g=wt.Pen}g===wt.Touch?tt[f]===tt.MouseDown?y="TouchStart":tt[f]===tt.MouseUp&&(y="TouchEnd"):wt.Pen}else Xo(_)&&(g=wt.Touch);g!==null?(a=g,(y.startsWith("Touch")&&g===wt.Touch||y.startsWith("Mouse")&&g===wt.Mouse)&&(g=null)):tt[f]===tt.Click&&(g=a,a=null);var b=Xo(_)?_.changedTouches[0]:_;if(b){var k=n.getId(m),E=b.clientX,w=b.clientY;de(r)(pe({type:tt[y],id:k,x:E,y:w},g!==null&&{pointerType:g}))}}}})(c);if(window.PointerEvent)switch(tt[c]){case tt.MouseDown:case tt.MouseUp:u=u.replace("mouse","pointer");break;case tt.TouchStart:case tt.TouchEnd:return}o.push(Qe(u,d,e))})),de((function(){o.forEach((function(c){return c()}))}))}function Du(t){var r=t.scrollCb,e=t.doc,n=t.mirror,i=t.blockClass,s=t.blockSelector,l=t.sampling;return Qe("scroll",de(Vr(de((function(h){var o=Hr(h);if(o&&!Ke(o,i,s,!0)){var a=n.getId(o);if(o===e&&e.defaultView){var c=ku(e.defaultView);r({id:a,x:c.left,y:c.top})}else r({id:a,x:o.scrollLeft,y:o.scrollTop})}})),l.scroll||100)),e)}var am=["INPUT","TEXTAREA","SELECT"],wc=new WeakMap;function Dn(t){return(function(r,e){if(Bn("CSSGroupingRule")&&J(r.parentRule,CSSGroupingRule)||Bn("CSSMediaRule")&&J(r.parentRule,CSSMediaRule)||Bn("CSSSupportsRule")&&J(r.parentRule,CSSSupportsRule)||Bn("CSSConditionRule")&&J(r.parentRule,CSSConditionRule)){var n=Array.from(r.parentRule.cssRules).indexOf(r);e.unshift(n)}else if(r.parentStyleSheet){var i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);e.unshift(i)}return e})(t,[])}function Bt(t,r,e){var n,i;return t?(t.ownerNode?n=r.getId(t.ownerNode):i=e.getId(t),{styleId:i,id:n}):{}}function Bu(t,r){var e,n,i,s=t.mirror,l=t.stylesheetManager,h=null;h=r.nodeName==="#document"?s.getId(r):s.getId(ce.host(r));var o=r.nodeName==="#document"?(e=r.defaultView)==null?void 0:e.Document:(i=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:i.ShadowRoot,a=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return h!==null&&h!==-1&&o&&a?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:function(){var c;return(c=a.get)==null?void 0:c.call(this)},set:function(c){var u,d=(u=a.set)==null?void 0:u.call(this,c);if(h!==null&&h!==-1)try{l.adoptStyleSheets(c,h)}catch{}return d}}),de((function(){Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))):function(){}}function sm(t,r){r===void 0&&(r={});var e,n=t.doc.defaultView;if(!n)return function(){};(function(v,T){var x=v.mutationCb,V=v.mousemoveCb,z=v.mouseInteractionCb,M=v.scrollCb,$=v.viewportResizeCb,G=v.inputCb,U=v.mediaInteractionCb,re=v.styleSheetRuleCb,ee=v.styleDeclarationCb,H=v.canvasMutationCb,j=v.fontCb,W=v.selectionCb,q=v.customElementCb;v.mutationCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.mutation&&(N=T).mutation.apply(N,[].concat(A)),x.apply(void 0,[].concat(A))},v.mousemoveCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.mousemove&&(N=T).mousemove.apply(N,[].concat(A)),V.apply(void 0,[].concat(A))},v.mouseInteractionCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.mouseInteraction&&(N=T).mouseInteraction.apply(N,[].concat(A)),z.apply(void 0,[].concat(A))},v.scrollCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.scroll&&(N=T).scroll.apply(N,[].concat(A)),M.apply(void 0,[].concat(A))},v.viewportResizeCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.viewportResize&&(N=T).viewportResize.apply(N,[].concat(A)),$.apply(void 0,[].concat(A))},v.inputCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.input&&(N=T).input.apply(N,[].concat(A)),G.apply(void 0,[].concat(A))},v.mediaInteractionCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.mediaInteaction&&(N=T).mediaInteaction.apply(N,[].concat(A)),U.apply(void 0,[].concat(A))},v.styleSheetRuleCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.styleSheetRule&&(N=T).styleSheetRule.apply(N,[].concat(A)),re.apply(void 0,[].concat(A))},v.styleDeclarationCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.styleDeclaration&&(N=T).styleDeclaration.apply(N,[].concat(A)),ee.apply(void 0,[].concat(A))},v.canvasMutationCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.canvasMutation&&(N=T).canvasMutation.apply(N,[].concat(A)),H.apply(void 0,[].concat(A))},v.fontCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.font&&(N=T).font.apply(N,[].concat(A)),j.apply(void 0,[].concat(A))},v.selectionCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.selection&&(N=T).selection.apply(N,[].concat(A)),W.apply(void 0,[].concat(A))},v.customElementCb=function(){for(var O=arguments.length,A=new Array(O),I=0;I<O;I++)A[I]=arguments[I];var N;T.customElement&&(N=T).customElement.apply(N,[].concat(A)),q.apply(void 0,[].concat(A))}})(t,r),t.recordDOM&&(e=Ou(t,t.doc));var i,s,l,h,o,a=(function(v){var T=v.mousemoveCb,x=v.sampling,V=v.doc,z=v.mirror;if(x.mousemove===!1)return function(){};var M,$=typeof x.mousemove=="number"?x.mousemove:50,G=typeof x.mousemoveCallback=="number"?x.mousemoveCallback:500,U=[],re=Vr(de((function(j){var W=Date.now()-M;T(U.map((function(q){return q.timeOffset-=W,q})),j),U=[],M=null})),G),ee=de(Vr(de((function(j){var W=Hr(j),q=Xo(j)?j.changedTouches[0]:j,O=q.clientX,A=q.clientY;M||(M=gi()),U.push({x:O,y:A,id:z.getId(W),timeOffset:gi()-M}),re(typeof DragEvent<"u"&&J(j,DragEvent)?X.Drag:J(j,MouseEvent)?X.MouseMove:X.TouchMove)})),$,{trailing:!1})),H=[Qe("mousemove",ee,V),Qe("touchmove",ee,V),Qe("drag",ee,V)];return de((function(){H.forEach((function(j){return j()}))}))})(t),c=om(t),u=Du(t),d=(i={win:n},s=t.viewportResizeCb,l=i.win,h=-1,o=-1,Qe("resize",de(Vr(de((function(){var v=Cu(),T=wu();h===v&&o===T||(s({width:Number(T),height:Number(v)}),h=v,o=T)})),200)),l)),f=(function(v){var T=v.inputCb,x=v.doc,V=v.mirror,z=v.blockClass,M=v.blockSelector,$=v.ignoreClass,G=v.ignoreSelector,U=v.maskInputOptions,re=v.maskInputFn,ee=v.sampling,H=v.userTriggeredOnInput;function j(oe){var te=Hr(oe),Ae=oe.isTrusted,Re=te&&te.tagName;if(te&&Re==="OPTION"&&(te=ce.parentElement(te)),te&&Re&&!(am.indexOf(Re)<0)&&!Ke(te,z,M,!0)&&!(te.classList.contains($)||G&&te.matches(G))){var He=te.value,et=!1,Ze=fi(te)||"";Ze==="radio"||Ze==="checkbox"?et=te.checked:(U[Re.toLowerCase()]||U[Ze])&&(He=pi({element:te,maskInputOptions:U,tagName:Re,type:Ze,value:He,maskInputFn:re})),W(te,H?{text:He,isChecked:et,userTriggered:Ae}:{text:He,isChecked:et});var Je=te.name;Ze==="radio"&&Je&&et&&x.querySelectorAll('input[type="radio"][name="'+Je+'"]').forEach((function(Be){if(Be!==te){var B=Be.value;W(Be,H?{text:B,isChecked:!et,userTriggered:!1}:{text:B,isChecked:!et})}}))}}function W(oe,te){var Ae=wc.get(oe);if(!Ae||Ae.text!==te.text||Ae.isChecked!==te.isChecked){wc.set(oe,te);var Re=V.getId(oe);de(T)(pe({},te,{id:Re}))}}var q=(ee.input==="last"?["change"]:["input","change"]).map((function(oe){return Qe(oe,de(j),x)})),O=x.defaultView;if(!O)return function(){q.forEach((function(oe){return oe()}))};var A,I=O.Object.getOwnPropertyDescriptor(O.HTMLInputElement.prototype,"value"),N=[[O.HTMLInputElement.prototype,"value"],[O.HTMLInputElement.prototype,"checked"],[O.HTMLSelectElement.prototype,"value"],[O.HTMLTextAreaElement.prototype,"value"],[O.HTMLSelectElement.prototype,"selectedIndex"],[O.HTMLOptionElement.prototype,"selected"]];return I&&I.set&&(A=q).push.apply(A,[].concat(N.map((function(oe){return Mi(oe[0],oe[1],{set:function(){de(j)({target:this,isTrusted:!1})}},!1,O)})))),de((function(){q.forEach((function(oe){return oe()}))}))})(t),_=(function(v){var T=v.mediaInteractionCb,x=v.blockClass,V=v.blockSelector,z=v.mirror,M=v.sampling,$=v.doc,G=de((function(re){return Vr(de((function(ee){var H=Hr(ee);if(H&&!Ke(H,x,V,!0)){var j=H.currentTime,W=H.volume,q=H.muted,O=H.playbackRate,A=H.loop;T({type:re,id:z.getId(H),currentTime:j,volume:W,muted:q,playbackRate:O,loop:A})}})),M.media||500)})),U=[Qe("play",G(pr.Play),$),Qe("pause",G(pr.Pause),$),Qe("seeked",G(pr.Seeked),$),Qe("volumechange",G(pr.VolumeChange),$),Qe("ratechange",G(pr.RateChange),$)];return de((function(){U.forEach((function(re){return re()}))}))})(t),m=function(){},g=function(){},y=function(){},b=function(){};t.recordDOM&&(m=(function(v,T){var x=v.styleSheetRuleCb,V=v.mirror,z=v.stylesheetManager,M=T.win;if(!M.CSSStyleSheet||!M.CSSStyleSheet.prototype)return function(){};var $=M.CSSStyleSheet.prototype.insertRule;M.CSSStyleSheet.prototype.insertRule=new Proxy($,{apply:de((function(j,W,q){var O=q[0],A=q[1],I=Bt(W,V,z.styleMirror),N=I.id,oe=I.styleId;return(N&&N!==-1||oe&&oe!==-1)&&x({id:N,styleId:oe,adds:[{rule:O,index:A}]}),j.apply(W,q)}))}),M.CSSStyleSheet.prototype.addRule=function(j,W,q){q===void 0&&(q=this.cssRules.length);var O=j+" { "+W+" }";return M.CSSStyleSheet.prototype.insertRule.apply(this,[O,q])};var G,U,re=M.CSSStyleSheet.prototype.deleteRule;M.CSSStyleSheet.prototype.deleteRule=new Proxy(re,{apply:de((function(j,W,q){var O=q[0],A=Bt(W,V,z.styleMirror),I=A.id,N=A.styleId;return(I&&I!==-1||N&&N!==-1)&&x({id:I,styleId:N,removes:[{index:O}]}),j.apply(W,q)}))}),M.CSSStyleSheet.prototype.removeRule=function(j){return M.CSSStyleSheet.prototype.deleteRule.apply(this,[j])},M.CSSStyleSheet.prototype.replace&&(G=M.CSSStyleSheet.prototype.replace,M.CSSStyleSheet.prototype.replace=new Proxy(G,{apply:de((function(j,W,q){var O=q[0],A=Bt(W,V,z.styleMirror),I=A.id,N=A.styleId;return(I&&I!==-1||N&&N!==-1)&&x({id:I,styleId:N,replace:O}),j.apply(W,q)}))})),M.CSSStyleSheet.prototype.replaceSync&&(U=M.CSSStyleSheet.prototype.replaceSync,M.CSSStyleSheet.prototype.replaceSync=new Proxy(U,{apply:de((function(j,W,q){var O=q[0],A=Bt(W,V,z.styleMirror),I=A.id,N=A.styleId;return(I&&I!==-1||N&&N!==-1)&&x({id:I,styleId:N,replaceSync:O}),j.apply(W,q)}))}));var ee={};Mn("CSSGroupingRule")?ee.CSSGroupingRule=M.CSSGroupingRule:(Mn("CSSMediaRule")&&(ee.CSSMediaRule=M.CSSMediaRule),Mn("CSSConditionRule")&&(ee.CSSConditionRule=M.CSSConditionRule),Mn("CSSSupportsRule")&&(ee.CSSSupportsRule=M.CSSSupportsRule));var H={};return Object.entries(ee).forEach((function(j){var W=j[0],q=j[1];H[W]={insertRule:q.prototype.insertRule,deleteRule:q.prototype.deleteRule},q.prototype.insertRule=new Proxy(H[W].insertRule,{apply:de((function(O,A,I){var N=I[0],oe=I[1],te=Bt(A.parentStyleSheet,V,z.styleMirror),Ae=te.id,Re=te.styleId;return(Ae&&Ae!==-1||Re&&Re!==-1)&&x({id:Ae,styleId:Re,adds:[{rule:N,index:[].concat(Dn(A),[oe||0])}]}),O.apply(A,I)}))}),q.prototype.deleteRule=new Proxy(H[W].deleteRule,{apply:de((function(O,A,I){var N=I[0],oe=Bt(A.parentStyleSheet,V,z.styleMirror),te=oe.id,Ae=oe.styleId;return(te&&te!==-1||Ae&&Ae!==-1)&&x({id:te,styleId:Ae,removes:[{index:[].concat(Dn(A),[N])}]}),O.apply(A,I)}))})})),de((function(){M.CSSStyleSheet.prototype.insertRule=$,M.CSSStyleSheet.prototype.deleteRule=re,G&&(M.CSSStyleSheet.prototype.replace=G),U&&(M.CSSStyleSheet.prototype.replaceSync=U),Object.entries(ee).forEach((function(j){var W=j[0],q=j[1];q.prototype.insertRule=H[W].insertRule,q.prototype.deleteRule=H[W].deleteRule}))}))})(t,{win:n}),g=Bu(t,t.doc),y=(function(v,T){var x=v.styleDeclarationCb,V=v.mirror,z=v.ignoreCSSAttributes,M=v.stylesheetManager,$=T.win,G=$.CSSStyleDeclaration.prototype.setProperty;$.CSSStyleDeclaration.prototype.setProperty=new Proxy(G,{apply:de((function(re,ee,H){var j,W=H[0],q=H[1],O=H[2];if(z.has(W))return G.apply(ee,[W,q,O]);var A=Bt((j=ee.parentRule)==null?void 0:j.parentStyleSheet,V,M.styleMirror),I=A.id,N=A.styleId;return(I&&I!==-1||N&&N!==-1)&&x({id:I,styleId:N,set:{property:W,value:q,priority:O},index:Dn(ee.parentRule)}),re.apply(ee,H)}))});var U=$.CSSStyleDeclaration.prototype.removeProperty;return $.CSSStyleDeclaration.prototype.removeProperty=new Proxy(U,{apply:de((function(re,ee,H){var j,W=H[0];if(z.has(W))return U.apply(ee,[W]);var q=Bt((j=ee.parentRule)==null?void 0:j.parentStyleSheet,V,M.styleMirror),O=q.id,A=q.styleId;return(O&&O!==-1||A&&A!==-1)&&x({id:O,styleId:A,remove:{property:W},index:Dn(ee.parentRule)}),re.apply(ee,H)}))}),de((function(){$.CSSStyleDeclaration.prototype.setProperty=G,$.CSSStyleDeclaration.prototype.removeProperty=U}))})(t,{win:n}),t.collectFonts&&(b=(function(v){var T=v.fontCb,x=v.doc,V=x.defaultView;if(!V)return function(){};var z=[],M=new WeakMap,$=V.FontFace;V.FontFace=function(U,re,ee){var H=new $(U,re,ee);return M.set(H,{family:U,buffer:typeof re!="string",descriptors:ee,fontSource:typeof re=="string"?re:JSON.stringify(Array.from(new Uint8Array(re)))}),H};var G=Xt(x.fonts,"add",(function(U){return function(re){return setTimeout(de((function(){var ee=M.get(re);ee&&(T(ee),M.delete(re))})),0),U.apply(this,[re])}}));return z.push((function(){V.FontFace=$})),z.push(G),de((function(){z.forEach((function(U){return U()}))}))})(t)));for(var k,E=(function(v){var T=v.doc,x=v.mirror,V=v.blockClass,z=v.blockSelector,M=v.selectionCb,$=!0,G=de((function(){var U=T.getSelection();if(!(!U||$&&U?.isCollapsed)){$=U.isCollapsed||!1;for(var re=[],ee=U.rangeCount||0,H=0;H<ee;H++){var j=U.getRangeAt(H),W=j.startContainer,q=j.startOffset,O=j.endContainer,A=j.endOffset;Ke(W,V,z,!0)||Ke(O,V,z,!0)||re.push({start:x.getId(W),startOffset:q,end:x.getId(O),endOffset:A})}M({ranges:re})}}));return G(),Qe("selectionchange",G)})(t),w=(function(v){var T=v.doc,x=v.customElementCb,V=T.defaultView;return V&&V.customElements?Xt(V.customElements,"define",(function(z){return function(M,$,G){try{x({define:{name:M}})}catch{console.warn("Custom element callback failed for "+M)}return z.apply(this,[M,$,G])}})):function(){}})(t),C=[],P=F(t.plugins);!(k=P()).done;){var D=k.value;C.push(D.observer(D.callback,n,D.options))}return de((function(){Ht.forEach((function(v){return v.reset()})),e?.disconnect(),a(),c(),u(),d(),f(),_(),m(),g(),y(),b(),E(),w(),C.forEach((function(v){return v()}))}))}function Bn(t){return window[t]!==void 0}function Mn(t){return!!(window[t]!==void 0&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var Sc=(function(){function t(e){L(this,"iframeIdToRemoteIdMap",new WeakMap),L(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var r=t.prototype;return r.getId=function(e,n,i,s){var l=i||this.getIdToRemoteIdMap(e),h=s||this.getRemoteIdToIdMap(e),o=l.get(n);return o||(o=this.generateIdFn(),l.set(n,o),h.set(o,n)),o},r.getIds=function(e,n){var i=this,s=this.getIdToRemoteIdMap(e),l=this.getRemoteIdToIdMap(e);return n.map((function(h){return i.getId(e,h,s,l)}))},r.getRemoteId=function(e,n,i){var s=i||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;var l=s.get(n);return l||-1},r.getRemoteIds=function(e,n){var i=this,s=this.getRemoteIdToIdMap(e);return n.map((function(l){return i.getRemoteId(e,l,s)}))},r.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},r.getIdToRemoteIdMap=function(e){var n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n},r.getRemoteIdToIdMap=function(e){var n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n},t})(),cm=(function(){function t(e){L(this,"iframes",new WeakMap),L(this,"crossOriginIframeMap",new WeakMap),L(this,"crossOriginIframeMirror",new Sc(vl)),L(this,"crossOriginIframeStyleMirror"),L(this,"crossOriginIframeRootIdMap",new WeakMap),L(this,"mirror"),L(this,"mutationCb"),L(this,"wrappedEmit"),L(this,"loadListener"),L(this,"stylesheetManager"),L(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Sc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var r=t.prototype;return r.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},r.addLoadListener=function(e){this.loadListener=e},r.attachIframe=function(e,n){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=e.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},r.handleMessage=function(e){var n=e;if(n.data.type==="rrweb"&&n.origin===n.data.origin&&e.source){var i=this.crossOriginIframeMap.get(e.source);if(i){var s=this.transformCrossOriginEvent(i,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}}},r.transformCrossOriginEvent=function(e,n){var i,s=this;switch(n.type){case le.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);var l=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,l),this.patchRootIdOnNode(n.data.node,l),{timestamp:n.timestamp,type:le.IncrementalSnapshot,data:{source:X.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case le.Meta:case le.Load:case le.DomContentLoaded:return!1;case le.Plugin:return n;case le.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case le.IncrementalSnapshot:switch(n.data.source){case X.Mutation:return n.data.adds.forEach((function(h){s.replaceIds(h,e,["parentId","nextId","previousId"]),s.replaceIdOnNode(h.node,e);var o=s.crossOriginIframeRootIdMap.get(e);o&&s.patchRootIdOnNode(h.node,o)})),n.data.removes.forEach((function(h){s.replaceIds(h,e,["parentId","id"])})),n.data.attributes.forEach((function(h){s.replaceIds(h,e,["id"])})),n.data.texts.forEach((function(h){s.replaceIds(h,e,["id"])})),n;case X.Drag:case X.TouchMove:case X.MouseMove:return n.data.positions.forEach((function(h){s.replaceIds(h,e,["id"])})),n;case X.ViewportResize:return!1;case X.MediaInteraction:case X.MouseInteraction:case X.Scroll:case X.CanvasMutation:case X.Input:return this.replaceIds(n.data,e,["id"]),n;case X.StyleSheetRule:case X.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case X.Font:return n;case X.Selection:return n.data.ranges.forEach((function(h){s.replaceIds(h,e,["start","end"])})),n;case X.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(i=n.data.styles)==null||i.forEach((function(h){s.replaceStyleIds(h,e,["styleId"])})),n}}return!1},r.replace=function(e,n,i,s){for(var l,h=F(s);!(l=h()).done;){var o=l.value;(Array.isArray(n[o])||typeof n[o]=="number")&&(Array.isArray(n[o])?n[o]=e.getIds(i,n[o]):n[o]=e.getId(i,n[o]))}return n},r.replaceIds=function(e,n,i){return this.replace(this.crossOriginIframeMirror,e,n,i)},r.replaceStyleIds=function(e,n,i){return this.replace(this.crossOriginIframeStyleMirror,e,n,i)},r.replaceIdOnNode=function(e,n){var i=this;this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((function(s){i.replaceIdOnNode(s,n)}))},r.patchRootIdOnNode=function(e,n){var i=this;e.type===Ru.Document||e.rootId||(e.rootId=n),"childNodes"in e&&e.childNodes.forEach((function(s){i.patchRootIdOnNode(s,n)}))},t})(),lm=(function(){function t(e){L(this,"shadowDoms",new WeakSet),L(this,"mutationCb"),L(this,"scrollCb"),L(this,"bypassOptions"),L(this,"mirror"),L(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var r=t.prototype;return r.init=function(){this.reset(),this.patchAttachShadow(Element,document)},r.addShadowRoot=function(e,n){var i=this;if(Gr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Ou(pe({},this.bypassOptions,{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return s.disconnect()})),this.restoreHandlers.push(Du(pe({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&i.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,i.mirror.getId(ce.host(e))),i.restoreHandlers.push(Bu({mirror:i.mirror,stylesheetManager:i.bypassOptions.stylesheetManager},e))}),0)}},r.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},r.patchAttachShadow=function(e,n){var i=this;this.restoreHandlers.push(Xt(e.prototype,"attachShadow",(function(s){return function(l){var h=s.call(this,l),o=ce.shadowRoot(this);return o&&Pu(this)&&i.addShadowRoot(o,n),h}})))},r.reset=function(){this.restoreHandlers.forEach((function(e){try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),Ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",um=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ln=0;Ln<64;Ln++)um[Ur.charCodeAt(Ln)]=Ln;var Ec=new Map,Mu=function(t,r,e){if(t&&(Nu(t,r)||(t===void 0?"undefined":ie(t))==="object")){var n=(function(s,l){var h=Ec.get(s);return h||(h=new Map,Ec.set(s,h)),h.has(l)||h.set(l,[]),h.get(l)})(e,t.constructor.name),i=n.indexOf(t);return i===-1&&(i=n.length,n.push(t)),i}};function ei(t,r,e){return J(t,Array)?t.map((function(n){return ei(n,r,e)})):t===null?t:J(t,Float32Array)||J(t,Float64Array)||J(t,Int32Array)||J(t,Uint32Array)||J(t,Uint8Array)||J(t,Uint16Array)||J(t,Int16Array)||J(t,Int8Array)||J(t,Uint8ClampedArray)?{rr_type:t.constructor.name,args:[Object.values(t)]}:J(t,ArrayBuffer)?{rr_type:t.constructor.name,base64:(function(n){var i,s=new Uint8Array(n),l=s.length,h="";for(i=0;i<l;i+=3)h+=Ur[s[i]>>2],h+=Ur[(3&s[i])<<4|s[i+1]>>4],h+=Ur[(15&s[i+1])<<2|s[i+2]>>6],h+=Ur[63&s[i+2]];return l%3==2?h=h.substring(0,h.length-1)+"=":l%3==1&&(h=h.substring(0,h.length-2)+"=="),h})(t)}:J(t,DataView)?{rr_type:t.constructor.name,args:[ei(t.buffer,r,e),t.byteOffset,t.byteLength]}:J(t,HTMLImageElement)?{rr_type:t.constructor.name,src:t.src}:J(t,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:t.toDataURL()}:J(t,ImageData)?{rr_type:t.constructor.name,args:[ei(t.data,r,e),t.width,t.height]}:Nu(t,r)||(t===void 0?"undefined":ie(t))==="object"?{rr_type:t.constructor.name,index:Mu(t,r,e)}:t}var Lu=function(t,r,e){return t.map((function(n){return ei(n,r,e)}))},Nu=function(t,r){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(n){return typeof r[n]=="function"}));return!!e.find((function(n){return J(t,r[n])}))};function Ac(t,r,e,n){var i=[];try{var s=Xt(t.HTMLCanvasElement.prototype,"getContext",(function(l){return function(h){for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];if(!Ke(this,r,e,!0)){var u=(function(f){return f==="experimental-webgl"?"webgl":f})(h);if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(a[0]&&ie(a[0])==="object"){var d=a[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return l.apply(this,[].concat([h],a))}}));i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach((function(l){return l()}))}}function Ic(t,r,e,n,i,s){for(var l,h=function(){var c=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))return"continue";try{if(typeof t[c]!="function")return"continue";var u=Xt(t,c,(function(f){return function(){for(var _=arguments.length,m=new Array(_),g=0;g<_;g++)m[g]=arguments[g];var y=f.apply(this,m);if(Mu(y,s,this),"tagName"in this.canvas&&!Ke(this.canvas,n,i,!0)){var b=Lu(m,s,this),k={type:r,property:c,args:b};e(this.canvas,k)}return y}}));o.push(u)}catch{var d=Mi(t,c,{set:function(_){e(this.canvas,{type:r,property:c,args:[_],setter:!0})}});o.push(d)}},o=[],a=F(Object.getOwnPropertyNames(t));!(l=a()).done;)h();return o}var Tc,Fu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Pc=typeof window<"u"&&window.Blob&&new Blob([(Tc=Fu,Uint8Array.from(atob(Tc),(function(t){return t.charCodeAt(0)})))],{type:"text/javascript;charset=utf-8"});function dm(t){var r;try{if(!(r=Pc&&(window.URL||window.webkitURL).createObjectURL(Pc)))throw"";var e=new Worker(r,{name:t?.name});return e.addEventListener("error",(function(){(window.URL||window.webkitURL).revokeObjectURL(r)})),e}catch{return new Worker("data:text/javascript;base64,"+Fu,{name:t?.name})}finally{r&&(window.URL||window.webkitURL).revokeObjectURL(r)}}var Pe,ti,eo,hm=(function(){function t(e){var n=this;L(this,"pendingCanvasMutations",new Map),L(this,"rafStamps",{latestId:0,invokeId:null}),L(this,"mirror"),L(this,"mutationCb"),L(this,"resetObservers"),L(this,"frozen",!1),L(this,"locked",!1),L(this,"processMutation",(function(u,d){!(n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId)&&n.rafStamps.invokeId||(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(u)||n.pendingCanvasMutations.set(u,[]),n.pendingCanvasMutations.get(u).push(d)}));var i=e.sampling,s=i===void 0?"all":i,l=e.win,h=e.blockClass,o=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&s==="all"&&this.initCanvasMutationObserver(l,h,o),a&&typeof s=="number"&&this.initCanvasFPSObserver(s,l,h,o,{dataURLOptions:c})}var r=t.prototype;return r.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},r.freeze=function(){this.frozen=!0},r.unfreeze=function(){this.frozen=!1},r.lock=function(){this.locked=!0},r.unlock=function(){this.locked=!1},r.initCanvasFPSObserver=function(e,n,i,s,l){var h=this,o=Ac(n,i,s,!0),a=new Map,c=new dm;c.onmessage=function(m){var g=m.data.id;if(a.set(g,!1),"base64"in m.data){var y=m.data,b=y.base64,k=y.type,E=y.width,w=y.height;h.mutationCb({id:g,type:hr["2D"],commands:[{property:"clearRect",args:[0,0,E,w]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:k}]},0,0]}]})}};var u,d=1e3/e,f=0,_=function(m){if(f&&m-f<d)u=requestAnimationFrame(_);else{f=m;var g,y=h;(g=[],n.document.querySelectorAll("canvas").forEach((function(b){Ke(b,i,s,!0)||g.push(b)})),g).forEach(Ca((function(b){var k,E,w,C;return Xr(this,(function(P){switch(P.label){case 0:return E=y.mirror.getId(b),a.get(E)?[2]:b.width===0||b.height===0?[2]:(a.set(E,!0),["webgl","webgl2"].includes(b.__context)&&(w=b.getContext(b.__context),((k=w?.getContextAttributes())==null?void 0:k.preserveDrawingBuffer)===!1&&w.clear(w.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return C=P.sent(),c.postMessage({id:E,bitmap:C,width:b.width,height:b.height,dataURLOptions:l.dataURLOptions},[C]),[2]}}))}))),u=requestAnimationFrame(_)}};u=requestAnimationFrame(_),this.resetObservers=function(){o(),cancelAnimationFrame(u)}},r.initCanvasMutationObserver=function(e,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Ac(e,n,i,!1),l=(function(o,a,c,u){for(var d,f=function(){var g=d.value;try{if(typeof a.CanvasRenderingContext2D.prototype[g]!="function")return"continue";var y=Xt(a.CanvasRenderingContext2D.prototype,g,(function(k){return function(){for(var E=this,w=arguments.length,C=new Array(w),P=0;P<w;P++)C[P]=arguments[P];return Ke(this.canvas,c,u,!0)||setTimeout((function(){var D=Lu(C,a,E);o(E.canvas,{type:hr["2D"],property:g,args:D})}),0),k.apply(this,C)}}));_.push(y)}catch{var b=Mi(a.CanvasRenderingContext2D.prototype,g,{set:function(E){o(this.canvas,{type:hr["2D"],property:g,args:[E],setter:!0})}});_.push(b)}},_=[],m=F(Object.getOwnPropertyNames(a.CanvasRenderingContext2D.prototype));!(d=m()).done;)f();return function(){_.forEach((function(g){return g()}))}})(this.processMutation.bind(this),e,n,i),h=(function(o,a,c,u){var d,f,_=[];return(d=_).push.apply(d,[].concat(Ic(a.WebGLRenderingContext.prototype,hr.WebGL,o,c,u,a))),a.WebGL2RenderingContext!==void 0&&(f=_).push.apply(f,[].concat(Ic(a.WebGL2RenderingContext.prototype,hr.WebGL2,o,c,u,a))),function(){_.forEach((function(m){return m()}))}})(this.processMutation.bind(this),e,n,i);this.resetObservers=function(){s(),l(),h()}},r.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},r.startRAFTimestamping=function(){var e=this,n=function(i){e.rafStamps.latestId=i,requestAnimationFrame(n)};requestAnimationFrame(n)},r.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(n,i){var s=e.mirror.getId(i);e.flushPendingCanvasMutationFor(i,s)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},r.flushPendingCanvasMutationFor=function(e,n){if(!this.frozen&&!this.locked){var i=this.pendingCanvasMutations.get(e);if(i&&n!==-1){var s=i.map((function(h){return h.type,Yr(h,["type"])})),l=i[0].type;this.mutationCb({id:n,type:l,commands:s}),this.pendingCanvasMutations.delete(e)}}},t})(),pm=(function(){function t(e){L(this,"trackedLinkElements",new WeakSet),L(this,"mutationCb"),L(this,"adoptedStyleSheetCb"),L(this,"styleMirror",new tm),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var r=t.prototype;return r.attachLinkElement=function(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)},r.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},r.adoptStyleSheets=function(e,n){var i,s=function(){var c=l.value,u=void 0;i.styleMirror.has(c)?u=i.styleMirror.getId(c):(u=i.styleMirror.add(c),o.push({styleId:u,rules:Array.from(c.rules||CSSRule,(function(d,f){return{rule:_l(d,c.href),index:f}}))})),h.styleIds.push(u)};if(e.length!==0){for(var l,h={id:n,styleIds:[]},o=[],a=F(e);!(l=a()).done;)i=this,s();o.length>0&&(h.styles=o),this.adoptedStyleSheetCb(h)}},r.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},r.trackStylesheetInLinkElement=function(e){},t})(),fm=(function(){function t(){L(this,"nodeMap",new WeakMap),L(this,"active",!1)}var r=t.prototype;return r.inOtherBuffer=function(e,n){var i=this.nodeMap.get(e);return i&&Array.from(i).some((function(s){return s!==n}))},r.add=function(e,n){var i=this;this.active||(this.active=!0,requestAnimationFrame((function(){i.nodeMap=new WeakMap,i.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))},r.destroy=function(){},t})(),vi=!1;try{if(Array.from([1],(function(t){return 2*t}))[0]!==2){var to=document.createElement("iframe");document.body.appendChild(to),Array.from=((fs=to.contentWindow)==null?void 0:fs.Array.from)||Array.from,document.body.removeChild(to)}}catch(t){console.debug("Unable to override Array.from",t)}var Rc,ar,st=new gl;function Nt(t){t===void 0&&(t={});var r=t.emit,e=t.checkoutEveryNms,n=t.checkoutEveryNth,i=t.blockClass,s=i===void 0?"rr-block":i,l=t.blockSelector,h=l===void 0?null:l,o=t.ignoreClass,a=o===void 0?"rr-ignore":o,c=t.ignoreSelector,u=c===void 0?null:c,d=t.maskTextClass,f=d===void 0?"rr-mask":d,_=t.maskTextSelector,m=_===void 0?null:_,g=t.inlineStylesheet,y=g===void 0||g,b=t.maskAllInputs,k=t.maskInputOptions,E=t.slimDOMOptions,w=t.maskInputFn,C=t.maskTextFn,P=t.hooks,D=t.packFn,v=t.sampling,T=v===void 0?{}:v,x=t.dataURLOptions,V=x===void 0?{}:x,z=t.mousemoveWait,M=t.recordDOM,$=M===void 0||M,G=t.recordCanvas,U=G!==void 0&&G,re=t.recordCrossOriginIframes,ee=re!==void 0&&re,H=t.recordAfter,j=H===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":H,W=t.userTriggeredOnInput,q=W!==void 0&&W,O=t.collectFonts,A=O!==void 0&&O,I=t.inlineImages,N=I!==void 0&&I,oe=t.plugins,te=t.keepIframeSrcFn,Ae=te===void 0?function(){return!1}:te,Re=t.ignoreCSSAttributes,He=Re===void 0?new Set([]):Re,et=t.errorHandler;$r=et;var Ze=!ee||window.parent===window,Je=!1;if(!Ze)try{window.parent.document&&(Je=!1)}catch{Je=!0}if(Ze&&!r)throw new Error("emit function is required");if(!Ze&&!Je)return function(){};z!==void 0&&T.mousemove===void 0&&(T.mousemove=z),st.reset();var Be,B,ge=b===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:k!==void 0?k:{password:!0},ut=E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:E==="all",headMetaDescKeywords:E==="all",headTitleMutations:E==="all"}:E||{};Be===void 0&&(Be=window),"NodeList"in Be&&!Be.NodeList.prototype.forEach&&(Be.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in Be&&!Be.DOMTokenList.prototype.forEach&&(Be.DOMTokenList.prototype.forEach=Array.prototype.forEach);var je=0,qe=function(fe){for(var ze,Z=F(oe||[]);!(ze=Z()).done;){var be=ze.value;be.eventProcessor&&(fe=be.eventProcessor(fe))}return D&&!Je&&(fe=D(fe)),fe};Pe=function(fe,ze){var Z,be=fe;if(be.timestamp=gi(),!((Z=Ht[0])!=null&&Z.isFrozen())||be.type===le.FullSnapshot||be.type===le.IncrementalSnapshot&&be.data.source===X.Mutation||Ht.forEach((function(dn){return dn.unfreeze()})),Ze)r?.(qe(be),ze);else if(Je){var Te={type:"rrweb",event:qe(be),origin:window.location.origin,isCheckout:ze};window.parent.postMessage(Te,"*")}if(be.type===le.FullSnapshot)B=be,je=0;else if(be.type===le.IncrementalSnapshot){if(be.data.source===X.Mutation&&be.data.isAttachIframe)return;je++;var un=n&&je>=n,Fi=e&&be.timestamp-B.timestamp>e;(un||Fi)&&ti(!0)}};for(var at,dt=function(fe){Pe({type:le.IncrementalSnapshot,data:pe({source:X.Mutation},fe)})},tr=function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.Scroll},fe)})},Ie=function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.CanvasMutation},fe)})},Ve=new pm({mutationCb:dt,adoptedStyleSheetCb:function(fe){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.AdoptedStyleSheet},fe)})}}),Ye=new cm({mirror:st,mutationCb:dt,stylesheetManager:Ve,recordCrossOriginIframes:ee,wrappedEmit:Pe}),bt=F(oe||[]);!(at=bt()).done;){var xt=at.value;xt.getMirror&&xt.getMirror({nodeMirror:st,crossOriginIframeMirror:Ye.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ye.crossOriginIframeStyleMirror})}var rr=new fm;eo=new hm({recordCanvas:U,mutationCb:Ie,win:window,blockClass:s,blockSelector:h,mirror:st,sampling:T.canvas,dataURLOptions:V});var nr=new lm({mutationCb:dt,scrollCb:tr,bypassOptions:{blockClass:s,blockSelector:h,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:ge,dataURLOptions:V,maskTextFn:C,maskInputFn:w,recordCanvas:U,inlineImages:N,sampling:T,slimDOMOptions:ut,iframeManager:Ye,stylesheetManager:Ve,canvasManager:eo,keepIframeSrcFn:Ae,processedNodeManager:rr},mirror:st});ti=function(fe){if(fe===void 0&&(fe=!1),$){Pe({type:le.Meta,data:{href:window.location.href,width:wu(),height:Cu()}},fe),Ve.reset(),nr.init(),Ht.forEach((function(Z){return Z.lock()}));var ze=(function(Z,be){var Te=be||{},un=Te.mirror,Fi=un===void 0?new gl:un,dn=Te.blockClass,kd=dn===void 0?"rr-block":dn,Ya=Te.blockSelector,Cd=Ya===void 0?null:Ya,Xa=Te.maskTextClass,wd=Xa===void 0?"rr-mask":Xa,Qa=Te.maskTextSelector,Sd=Qa===void 0?null:Qa,Ka=Te.inlineStylesheet,Ed=Ka===void 0||Ka,es=Te.inlineImages,Ad=es!==void 0&&es,ts=Te.recordCanvas,Id=ts!==void 0&&ts,rs=Te.maskAllInputs,Vi=rs!==void 0&&rs,Td=Te.maskTextFn,Pd=Te.maskInputFn,ns=Te.slimDOM,Ir=ns!==void 0&&ns,Rd=Te.dataURLOptions,xd=Te.preserveWhiteSpace,Od=Te.onSerialize,Dd=Te.onIframeLoad,Bd=Te.iframeLoadTimeout,Md=Te.onStylesheetLoad,Ld=Te.stylesheetLoadTimeout,is=Te.keepIframeSrcFn;return yr(Z,{doc:Z,mirror:Fi,blockClass:kd,blockSelector:Cd,maskTextClass:wd,maskTextSelector:Sd,skipChild:!1,inlineStylesheet:Ed,maskInputOptions:Vi===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:Vi===!1?{password:!0}:Vi,maskTextFn:Td,maskInputFn:Pd,slimDOMOptions:Ir===!0||Ir==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Ir==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:Ir===!1?{}:Ir,dataURLOptions:Rd,inlineImages:Ad,recordCanvas:Id,preserveWhiteSpace:xd,onSerialize:Od,onIframeLoad:Dd,iframeLoadTimeout:Bd,onStylesheetLoad:Md,stylesheetLoadTimeout:Ld,keepIframeSrcFn:is===void 0?function(){return!1}:is,newlyAddedElement:!1})})(document,{mirror:st,blockClass:s,blockSelector:h,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:ge,maskTextFn:C,maskInputFn:w,slimDOM:ut,dataURLOptions:V,recordCanvas:U,inlineImages:N,onSerialize:function(Z){Au(Z,st)&&Ye.addIframe(Z),Iu(Z,st)&&Ve.trackLinkElement(Z),Qo(Z)&&nr.addShadowRoot(ce.shadowRoot(Z),document)},onIframeLoad:function(Z,be){Ye.attachIframe(Z,be),nr.observeAttachShadow(Z)},onStylesheetLoad:function(Z,be){Ve.attachLinkElement(Z,be)},keepIframeSrcFn:Ae});if(!ze)return console.warn("Failed to snapshot the document");Pe({type:le.FullSnapshot,data:{node:ze,initialOffset:ku(window)}},fe),Ht.forEach((function(Z){return Z.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ve.adoptStyleSheets(document.adoptedStyleSheets,st.getId(document))}};try{var Ar=[],Ja=function(fe){var ze;return de(sm)({mutationCb:dt,mousemoveCb:function(Z,be){return Pe({type:le.IncrementalSnapshot,data:{source:be,positions:Z}})},mouseInteractionCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.MouseInteraction},Z)})},scrollCb:tr,viewportResizeCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.ViewportResize},Z)})},inputCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.Input},Z)})},mediaInteractionCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.MediaInteraction},Z)})},styleSheetRuleCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.StyleSheetRule},Z)})},styleDeclarationCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.StyleDeclaration},Z)})},canvasMutationCb:Ie,fontCb:function(Z){return Pe({type:le.IncrementalSnapshot,data:pe({source:X.Font},Z)})},selectionCb:function(Z){Pe({type:le.IncrementalSnapshot,data:pe({source:X.Selection},Z)})},customElementCb:function(Z){Pe({type:le.IncrementalSnapshot,data:pe({source:X.CustomElement},Z)})},blockClass:s,ignoreClass:a,ignoreSelector:u,maskTextClass:f,maskTextSelector:m,maskInputOptions:ge,inlineStylesheet:y,sampling:T,recordDOM:$,recordCanvas:U,inlineImages:N,userTriggeredOnInput:q,collectFonts:A,doc:fe,maskInputFn:w,maskTextFn:C,keepIframeSrcFn:Ae,blockSelector:h,slimDOMOptions:ut,dataURLOptions:V,mirror:st,iframeManager:Ye,stylesheetManager:Ve,shadowDomManager:nr,processedNodeManager:rr,canvasManager:eo,ignoreCSSAttributes:He,plugins:((ze=oe?.filter((function(Z){return Z.observer})))==null?void 0:ze.map((function(Z){return{observer:Z.observer,options:Z.options,callback:function(be){return Pe({type:le.Plugin,data:{plugin:Z.name,payload:be}})}}})))||[]},P)};Ye.addLoadListener((function(fe){try{Ar.push(Ja(fe.contentDocument))}catch(ze){console.warn(ze)}}));var Ni=function(){ti(),Ar.push(Ja(document)),vi=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ni():(Ar.push(Qe("DOMContentLoaded",(function(){Pe({type:le.DomContentLoaded,data:{}}),j==="DOMContentLoaded"&&Ni()}))),Ar.push(Qe("load",(function(){Pe({type:le.Load,data:{}}),j==="load"&&Ni()}),window))),function(){Ar.forEach((function(fe){try{fe()}catch(ze){String(ze).toLowerCase().includes("cross-origin")||console.warn(ze)}})),rr.destroy(),vi=!1,$r=void 0}}catch(fe){console.warn(fe)}}Nt.addCustomEvent=function(t,r){if(!vi)throw new Error("please add custom event after start recording");Pe({type:le.Custom,data:{tag:t,payload:r}})},Nt.freezePage=function(){Ht.forEach((function(t){return t.freeze()}))},Nt.takeFullSnapshot=function(t){if(!vi)throw new Error("please take full snapshot after start recording");ti(t)},Nt.mirror=st,(ar=Rc||(Rc={}))[ar.NotStarted=0]="NotStarted",ar[ar.Running=1]="Running",ar[ar.Stopped=2]="Stopped",Nt.addCustomEvent,Nt.freezePage,Nt.takeFullSnapshot;var mm=Object.defineProperty,Nn=function(t,r,e){return(function(n,i,s){return i in n?mm(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s})(t,(r===void 0?"undefined":ie(r))!=="symbol"?r+"":r,e)},sr=(function(){function t(r){Nn(this,"fileName"),Nn(this,"functionName"),Nn(this,"lineNumber"),Nn(this,"columnNumber"),this.fileName=r.fileName||"",this.functionName=r.functionName||"",this.lineNumber=r.lineNumber,this.columnNumber=r.columnNumber}return t.prototype.toString=function(){var r=this.lineNumber||"",e=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+r+":"+e+")":this.fileName+":"+r+":"+e},t})(),_m=/(^|@)\S+:\d+/,xc=/^\s*at .*(\S+:\d+|\(native\))/m,gm=/^(eval@)?(\[native code])?$/,ro={parse:function(t){return t?t.stacktrace!==void 0||t["opera#sourceloc"]!==void 0?this.parseOpera(t):t.stack&&t.stack.match(xc)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(t.indexOf(":")===-1)return[t];var r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+t);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(`
|
|
54
|
-
`).filter((function(r){return!!r.match(xc)}),this).map((function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var e=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=e.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(e=n?e.replace(n[0],""):e).split(/\s+/).slice(1),s=this.extractLocation(n?n[1]:i.pop()),l=i.join(" ")||void 0,h=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new sr({functionName:l,fileName:h,lineNumber:s[1],columnNumber:s[2]})}),this)},parseFFOrSafari:function(t){return t.stack.split(`
|
|
55
|
-
`).filter((function(r){return!r.match(gm)}),this).map((function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),r.indexOf("@")===-1&&r.indexOf(":")===-1)return new sr({functionName:r});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=r.match(e),i=n&&n[1]?n[1]:void 0,s=this.extractLocation(r.replace(e,""));return new sr({functionName:i,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})}),this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf(`
|
|
56
|
-
`)>-1&&t.message.split(`
|
|
57
|
-
`).length>t.stacktrace.split(`
|
|
58
|
-
`).length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,e=t.message.split(`
|
|
59
|
-
`),n=[],i=2,s=e.length;i<s;i+=2){var l=r.exec(e[i]);l&&n.push(new sr({fileName:l[2],lineNumber:parseFloat(l[1])}))}return n},parseOpera10:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=t.stacktrace.split(`
|
|
60
|
-
`),n=[],i=0,s=e.length;i<s;i+=2){var l=r.exec(e[i]);l&&n.push(new sr({functionName:l[3]||void 0,fileName:l[2],lineNumber:parseFloat(l[1])}))}return n},parseOpera11:function(t){return t.stack.split(`
|
|
61
|
-
`).filter((function(r){return!!r.match(_m)&&!r.match(/^Error created at/)}),this).map((function(r){var e=r.split("@"),n=this.extractLocation(e.pop()),i=(e.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new sr({functionName:i,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})}),this)}};function vm(t){if(!t||!t.outerHTML)return"";for(var r="";t.parentElement;){var e=t.localName;if(!e)break;e=e.toLowerCase();var n=t.parentElement,i=[];if(n.children&&n.children.length>0)for(var s=0;s<n.children.length;s++){var l=n.children[s];l.localName&&l.localName.toLowerCase&&l.localName.toLowerCase()===e&&i.push(l)}i.length>1&&(e+=":eq("+i.indexOf(t)+")"),r=e+(r?">"+r:""),t=n}return r}function ea(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vu(t,r){if(r===0)return!0;for(var e,n=F(Object.keys(t));!(e=n()).done;){var i=e.value;if(ea(t[i])&&Vu(t[i],r-1))return!0}return!1}function cr(t,r){var e={numOfKeysLimit:50,depthOfLimit:4};Object.assign(e,r);var n=[],i=[];return JSON.stringify(t,(function(s,l){if(n.length>0){var h=n.indexOf(this);~h?n.splice(h+1):n.push(this),~h?i.splice(h,1/0,s):i.push(s),~n.indexOf(l)&&(l=n[0]===l?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(l)).join(".")+"]")}else n.push(l);if(l===null)return l;if(l===void 0)return"undefined";if((function(u){return!!(ea(u)&&Object.keys(u).length>e.numOfKeysLimit||typeof u=="function"||ea(u)&&Vu(u,e.depthOfLimit))})(l))return(function(u){var d=u.toString();return e.stringLengthLimit&&d.length>e.stringLengthLimit&&(d=d.slice(0,e.stringLengthLimit)+"..."),d})(l);if((l===void 0?"undefined":ie(l))==="bigint")return l.toString()+"n";if(J(l,Event)){var o={};for(var a in l){var c=l[a];Array.isArray(c)?o[a]=vm(c.length?c[0]:null):o[a]=c}return o}return J(l,Node)?J(l,HTMLElement)?l?l.outerHTML:"":l.nodeName:J(l,Error)?l.stack?l.stack+`
|
|
62
|
-
End of stack for Error object`:l.name+": "+l.message:l}))}var Oc={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function ym(t,r,e){var n,i=e?Object.assign({},Oc,e):Oc,s=i.logger;if(!s)return function(){};n=typeof s=="string"?r[s]:s;var l=0,h=!1,o=[];if(i.level.includes("error")){var a=function(m){var g=m.message,y=m.error,b=ro.parse(y).map((function(E){return E.toString()})),k=[cr(g,i.stringifyOptions)];t({level:"error",trace:b,payload:k})};r.addEventListener("error",a),o.push((function(){r.removeEventListener("error",a)}));var c=function(m){var g,y;J(m.reason,Error)?y=[cr("Uncaught (in promise) "+(g=m.reason).name+": "+g.message,i.stringifyOptions)]:(g=new Error,y=[cr("Uncaught (in promise)",i.stringifyOptions),cr(m.reason,i.stringifyOptions)]);var b=ro.parse(g).map((function(k){return k.toString()}));t({level:"error",trace:b,payload:y})};r.addEventListener("unhandledrejection",c),o.push((function(){r.removeEventListener("unhandledrejection",c)}))}for(var u,d=F(i.level);!(u=d()).done;){var f=u.value;o.push(_(n,f))}return function(){o.forEach((function(m){return m()}))};function _(m,g){var y=this;return m[g]?(function(b,k,E){try{if(!(k in b))return function(){};var w=b[k],C=E(w);return typeof C=="function"&&(C.prototype=C.prototype||{},Object.defineProperties(C,{__rrweb_original__:{enumerable:!1,value:w}})),b[k]=C,function(){b[k]=w}}catch{return function(){}}})(m,g,(function(b){var k=y;return function(){for(var E=arguments.length,w=new Array(E),C=0;C<E;C++)w[C]=arguments[C];if(b.apply(k,w),!(g==="assert"&&w[0]||h)){h=!0;try{var P=ro.parse(new Error).map((function(v){return v.toString()})).splice(1),D=(g==="assert"?w.slice(1):w).map((function(v){return cr(v,i.stringifyOptions)}));++l<i.lengthThreshold?t({level:g,trace:P,payload:D}):l===i.lengthThreshold&&t({level:"warn",trace:[],payload:[cr("The number of log records reached the threshold.")]})}catch(v){b.apply(void 0,[].concat(["rrweb logger error:",v],w))}finally{h=!1}}}})):function(){}}}var Ut,ta,ra,Dc=R.setImmediate,Bc=Object.prototype.toString,bm=Dc!==void 0?function(t){return Dc(t)}:setTimeout;try{Object.defineProperty({},"x",{}),Ut=function(t,r,e,n){return Object.defineProperty(t,r,{value:e,writable:!0,configurable:n!==!1})}}catch{Ut=function(r,e,n){return r[e]=n,r}}function yi(t,r){ra.add(t,r),ta||(ta=bm(ra.drain))}function Uu(t){var r,e=typeof t;return t===null||e!=="object"&&e!=="function"||(r=t.then),typeof r=="function"&&r}function qa(){for(var t=0;t<this.chain.length;t++)km(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function km(t,r,e){var n,i;try{r===!1?e.reject(t.msg):(n=r===!0?t.msg:r.call(void 0,t.msg))===e.promise?e.reject(TypeError("Promise-chain cycle")):(i=Uu(n))?i.call(n,e.resolve,e.reject):e.resolve(n)}catch(s){e.reject(s)}}function ju(t){var r,e=this;if(!e.triggered){e.triggered=!0,e.def&&(e=e.def);try{(r=Uu(t))?yi((function(){var n=new Lc(e);try{r.call(t,(function(){ju.apply(n,arguments)}),(function(){Zr.apply(n,arguments)}))}catch(i){Zr.call(n,i)}})):(e.msg=t,e.state=1,e.chain.length>0&&yi(qa,e))}catch(n){Zr.call(new Lc(e),n)}}}function Zr(t){var r=this;r.triggered||(r.triggered=!0,r.def&&(r=r.def),r.msg=t,r.state=2,r.chain.length>0&&yi(qa,r))}function Mc(t,r,e,n){for(var i=0;i<r.length;i++)(function(s){t.resolve(r[s]).then((function(l){e(s,l)}),n)})(i)}function Lc(t){this.def=t,this.triggered=!1}function Cm(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Vt(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var r=new Cm(this);this.then=function(e,n){var i={success:typeof e!="function"||e,failure:typeof n=="function"&&n};return i.promise=new this.constructor((function(s,l){if(typeof s!="function"||typeof l!="function")throw TypeError("Not a function");i.resolve=s,i.reject=l})),r.chain.push(i),r.state!==0&&yi(qa,r),i.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,(function(e){ju.call(r,e)}),(function(e){Zr.call(r,e)}))}catch(e){Zr.call(r,e)}}ra=(function(){var t,r,e;function n(i,s){this.fn=i,this.self=s,this.next=void 0}return{add:function(i,s){e=new n(i,s),r?r.next=e:t=e,r=e,e=void 0},drain:function(){var i=t;for(t=r=ta=void 0;i;)i.fn.call(i.self),i=i.next}}})();var he,Nc=Ut({},"constructor",Vt,!1);Vt.prototype=Nc,Ut(Nc,"__NPO__",0,!1),Ut(Vt,"resolve",(function(t){return t&&typeof t=="object"&&t.__NPO__===1?t:new this((function(r,e){if(typeof r!="function"||typeof e!="function")throw TypeError("Not a function");r(t)}))})),Ut(Vt,"reject",(function(t){return new this((function(r,e){if(typeof r!="function"||typeof e!="function")throw TypeError("Not a function");e(t)}))})),Ut(Vt,"all",(function(t){var r=this;return Bc.call(t)!=="[object Array]"?r.reject(TypeError("Not an array")):t.length===0?r.resolve([]):new r((function(e,n){if(typeof e!="function"||typeof n!="function")throw TypeError("Not a function");var i=t.length,s=Array(i),l=0;Mc(r,t,(function(h,o){s[h]=o,++l===i&&e(s)}),n)}))})),Ut(Vt,"race",(function(t){var r=this;return Bc.call(t)!=="[object Array]"?r.reject(TypeError("Not an array")):new r((function(e,n){if(typeof e!="function"||typeof n!="function")throw TypeError("Not a function");Mc(r,t,(function(i,s){e(s)}),n)}))})),he=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?Promise:Vt;var Fn,Y,no,Vn,io,kt,ue,oo,ao,ht,ot={DEBUG:!1,LIB_VERSION:"2.73.0"},Jr=864e5,Fc=8e3,Li=Array.prototype,wm=Function.prototype,qu=Object.prototype,$t=Li.slice,Br=qu.toString,Un=qu.hasOwnProperty,Me=R.console,Rt=R.navigator,Q=R.document,jr=R.opera,Vc=R.screen,_t=Rt.userAgent,so=wm.bind,Uc=Li.forEach,jc=Li.indexOf,qc=Li.map,Sm=Array.isArray,co={},p={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},se={log:function(){if(ot.DEBUG&&!p.isUndefined(Me)&&Me)try{Me.log.apply(Me,arguments)}catch{p.each(arguments,(function(r){Me.log(r)}))}},warn:function(){if(ot.DEBUG&&!p.isUndefined(Me)&&Me){var t=["Mixpanel warning:"].concat(p.toArray(arguments));try{Me.warn.apply(Me,t)}catch{p.each(t,(function(e){Me.warn(e)}))}}},error:function(){if(ot.DEBUG&&!p.isUndefined(Me)&&Me){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Me.error.apply(Me,t)}catch{p.each(t,(function(e){Me.error(e)}))}}},critical:function(){if(!p.isUndefined(Me)&&Me){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Me.error.apply(Me,t)}catch{p.each(t,(function(e){Me.error(e)}))}}}},lo=function(t,r){return function(){return arguments[0]="["+r+"] "+arguments[0],t.apply(se,arguments)}},er=function(t){return{log:lo(se.log,t),error:lo(se.error,t),critical:lo(se.critical,t)}},on=function(t){return function(){try{return t.apply(this,arguments)}catch(r){se.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),ot.DEBUG&&se.critical(r)}}},zu=function(t){var r=t.prototype;for(var e in r)typeof r[e]=="function"&&(r[e]=on(r[e]))};p.bind=function(t,r){var e,n;if(so&&t.bind===so)return so.apply(t,$t.call(arguments,1));if(!p.isFunction(t))throw new TypeError;return e=$t.call(arguments,2),n=function(){if(!(this instanceof n))return t.apply(r,e.concat($t.call(arguments)));var i={};i.prototype=t.prototype;var s=new i;i.prototype=null;var l=t.apply(s,e.concat($t.call(arguments)));return Object(l)===l?l:s},n},p.each=function(t,r,e){if(t!=null){if(Uc&&t.forEach===Uc)t.forEach(r,e);else if(t.length===+t.length){for(var n=0,i=t.length;n<i;n++)if(n in t&&r.call(e,t[n],n,t)===co)return}else for(var s in t)if(Un.call(t,s)&&r.call(e,t[s],s,t)===co)return}},p.extend=function(t){return p.each($t.call(arguments,1),(function(r){for(var e in r)r[e]!==void 0&&(t[e]=r[e])})),t},p.isArray=Sm||function(t){return Br.call(t)==="[object Array]"},p.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch{return!1}},p.isArguments=function(t){return!(!t||!Un.call(t,"callee"))},p.toArray=function(t){return t?t.toArray?t.toArray():p.isArray(t)||p.isArguments(t)?$t.call(t):p.values(t):[]},p.map=function(t,r,e){if(qc&&t.map===qc)return t.map(r,e);var n=[];return p.each(t,(function(i){n.push(r.call(e,i))})),n},p.keys=function(t){var r=[];return t===null||p.each(t,(function(e,n){r[r.length]=n})),r},p.values=function(t){var r=[];return t===null||p.each(t,(function(e){r[r.length]=e})),r},p.include=function(t,r){var e=!1;return t===null?e:jc&&t.indexOf===jc?t.indexOf(r)!=-1:(p.each(t,(function(n){if(e||(e=n===r))return co})),e)},p.includes=function(t,r){return t.indexOf(r)!==-1},p.inherit=function(t,r){return t.prototype=new r,t.prototype.constructor=t,t.superclass=r.prototype,t},p.isObject=function(t){return t===Object(t)&&!p.isArray(t)},p.isEmptyObject=function(t){if(p.isObject(t)){for(var r in t)if(Un.call(t,r))return!1;return!0}return!1},p.isUndefined=function(t){return t===void 0},p.isString=function(t){return Br.call(t)=="[object String]"},p.isDate=function(t){return Br.call(t)=="[object Date]"},p.isNumber=function(t){return Br.call(t)=="[object Number]"},p.isElement=function(t){return!(!t||t.nodeType!==1)},p.encodeDates=function(t){return p.each(t,(function(r,e){p.isDate(r)?t[e]=p.formatDate(r):p.isObject(r)&&(t[e]=p.encodeDates(r))})),t},p.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},p.formatDate=function(t){function r(e){return e<10?"0"+e:e}return t.getUTCFullYear()+"-"+r(t.getUTCMonth()+1)+"-"+r(t.getUTCDate())+"T"+r(t.getUTCHours())+":"+r(t.getUTCMinutes())+":"+r(t.getUTCSeconds())},p.strip_empty_properties=function(t){var r={};return p.each(t,(function(e,n){p.isString(e)&&e.length>0&&(r[n]=e)})),r},p.truncate=function(t,r){var e;return typeof t=="string"?e=t.slice(0,r):p.isArray(t)?(e=[],p.each(t,(function(n){e.push(p.truncate(n,r))}))):p.isObject(t)?(e={},p.each(t,(function(n,i){e[i]=p.truncate(n,r)}))):e=t,e},p.JSONEncode=(function(){return function(t){var r=function(n){var i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return i.lastIndex=0,i.test(n)?'"'+n.replace(i,(function(l){var h=s[l];return typeof h=="string"?h:"\\u"+("0000"+l.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+n+'"'},e=function(n,i){var s="",l=0,h="",o="",a=0,c=s,u=[],d=i[n];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(n)),typeof d){case"string":return r(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=" ",u=[],Br.apply(d)==="[object Array]"){for(a=d.length,l=0;l<a;l+=1)u[l]=e(l,d)||"null";return o=u.length===0?"[]":s?`[
|
|
63
|
-
`+s+u.join(`,
|
|
64
|
-
`+s)+`
|
|
65
|
-
`+c+"]":"["+u.join(",")+"]",s=c,o}for(h in d)Un.call(d,h)&&(o=e(h,d))&&u.push(r(h)+(s?": ":":")+o);return o=u.length===0?"{}":s?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",s=c,o}};return e("",{"":t})}})(),p.JSONDecode=(io={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
66
|
-
`,r:"\r",t:" "},kt=function(t){var r=new SyntaxError(t);throw r.at=Fn,r.text=no,r},ue=function(t){return t&&t!==Y&&kt("Expected '"+t+"' instead of '"+Y+"'"),Y=no.charAt(Fn),Fn+=1,Y},oo=function(){var t,r="";for(Y==="-"&&(r="-",ue("-"));Y>="0"&&Y<="9";)r+=Y,ue();if(Y===".")for(r+=".";ue()&&Y>="0"&&Y<="9";)r+=Y;if(Y==="e"||Y==="E")for(r+=Y,ue(),Y!=="-"&&Y!=="+"||(r+=Y,ue());Y>="0"&&Y<="9";)r+=Y,ue();if(t=+r,isFinite(t))return t;kt("Bad number")},ao=function(){var t,r,e,n="";if(Y==='"')for(;ue();){if(Y==='"')return ue(),n;if(Y==="\\")if(ue(),Y==="u"){for(e=0,r=0;r<4&&(t=parseInt(ue(),16),isFinite(t));r+=1)e=16*e+t;n+=String.fromCharCode(e)}else{if(typeof io[Y]!="string")break;n+=io[Y]}else n+=Y}kt("Bad string")},ht=function(){for(;Y&&Y<=" ";)ue()},Vn=function(){switch(ht(),Y){case"{":return(function(){var t,r={};if(Y==="{"){if(ue("{"),ht(),Y==="}")return ue("}"),r;for(;Y;){if(t=ao(),ht(),ue(":"),Object.hasOwnProperty.call(r,t)&&kt('Duplicate key "'+t+'"'),r[t]=Vn(),ht(),Y==="}")return ue("}"),r;ue(","),ht()}}kt("Bad object")})();case"[":return(function(){var t=[];if(Y==="["){if(ue("["),ht(),Y==="]")return ue("]"),t;for(;Y;){if(t.push(Vn()),ht(),Y==="]")return ue("]"),t;ue(","),ht()}}kt("Bad array")})();case'"':return ao();case"-":return oo();default:return Y>="0"&&Y<="9"?oo():(function(){switch(Y){case"t":return ue("t"),ue("r"),ue("u"),ue("e"),!0;case"f":return ue("f"),ue("a"),ue("l"),ue("s"),ue("e"),!1;case"n":return ue("n"),ue("u"),ue("l"),ue("l"),null}kt('Unexpected "'+Y+'"')})()}},function(t){var r;return no=t,Fn=0,Y=" ",r=Vn(),ht(),Y&&kt("Syntax error"),r}),p.base64Encode=function(t){var r,e,n,i,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h=0,o=0,a="",c=[];if(!t)return t;t=p.utf8Encode(t);do r=(s=t.charCodeAt(h++)<<16|t.charCodeAt(h++)<<8|t.charCodeAt(h++))>>18&63,e=s>>12&63,n=s>>6&63,i=63&s,c[o++]=l.charAt(r)+l.charAt(e)+l.charAt(n)+l.charAt(i);while(h<t.length);switch(a=c.join(""),t.length%3){case 1:a=a.slice(0,-2)+"==";break;case 2:a=a.slice(0,-1)+"="}return a},p.utf8Encode=function(t){var r,e,n,i,s="";for(r=e=0,n=(t=(t+"").replace(/\r\n/g,`
|
|
67
|
-
`).replace(/\r/g,`
|
|
68
|
-
`)).length,i=0;i<n;i++){var l=t.charCodeAt(i),h=null;l<128?e++:h=l>127&&l<2048?String.fromCharCode(l>>6|192,63&l|128):String.fromCharCode(l>>12|224,l>>6&63|128,63&l|128),h!==null&&(e>r&&(s+=t.substring(r,e)),s+=h,r=e=i+1)}return e>r&&(s+=t.substring(r,t.length)),s},p.UUID=function(){try{return R.crypto.randomUUID()}catch{for(var t=new Array(36),r=0;r<36;r++)t[r]=Math.floor(16*Math.random());return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",p.map(t,(function(n){return n.toString(16)})).join("")}};var zc=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];p.isBlockedUA=function(t){var r;for(t=t.toLowerCase(),r=0;r<zc.length;r++)if(t.indexOf(zc[r])!==-1)return!0;return!1},p.HTTPBuildQuery=function(t,r){var e,n,i=[];return p.isUndefined(r)&&(r="&"),p.each(t,(function(s,l){e=encodeURIComponent(s.toString()),n=encodeURIComponent(l),i[i.length]=n+"="+e})),i.join(r)},p.getQueryParam=function(t,r){r=r.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var e=new RegExp("[\\?&]"+r+"=([^&#]*)").exec(t);if(e===null||e&&typeof e[1]!="string"&&e[1].length)return"";var n=e[1];try{n=decodeURIComponent(n)}catch{se.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},p.cookie={get:function(t){for(var r=t+"=",e=Q.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(r)===0)return decodeURIComponent(i.substring(r.length,i.length))}return null},parse:function(t){var r;try{r=p.JSONDecode(p.cookie.get(t))||{}}catch{}return r},set_seconds:function(t,r,e,n,i,s,l){var h="",o="",a="";if(l)h="; domain="+l;else if(n){var c=Gc(Q.location.hostname);h=c?"; domain=."+c:""}if(e){var u=new Date;u.setTime(u.getTime()+1e3*e),o="; expires="+u.toGMTString()}s&&(i=!0,a="; SameSite=None"),i&&(a+="; secure"),Q.cookie=t+"="+encodeURIComponent(r)+o+"; path=/"+h+a},set:function(t,r,e,n,i,s,l){var h="",o="",a="";if(l)h="; domain="+l;else if(n){var c=Gc(Q.location.hostname);h=c?"; domain=."+c:""}if(e){var u=new Date;u.setTime(u.getTime()+24*e*60*60*1e3),o="; expires="+u.toGMTString()}s&&(i=!0,a="; SameSite=None"),i&&(a+="; secure");var d=t+"="+encodeURIComponent(r)+o+"; path=/"+h+a;return Q.cookie=d,d},remove:function(t,r,e){p.cookie.set(t,"",-1,r,!1,!1,e)}};var Wu=function(t){var r=!0;try{var e="__mplss_"+za(8);t.setItem(e,"xyz"),t.getItem(e)!=="xyz"&&(r=!1),t.removeItem(e)}catch{r=!1}return r},uo=null,an=function(t,r){return uo===null||r?uo=Wu(t||R.localStorage):uo},ho=null;function Wc(t,r,e){var n=function(i){se.error(r+" error: "+i)};return{is_supported:function(i){var s=e(t,i);return s||se.error(r+" unsupported"),s},error:n,get:function(i){try{return t.getItem(i)}catch(s){n(s)}return null},parse:function(i){try{return p.JSONDecode(t.getItem(i))||{}}catch{}return null},set:function(i,s){try{t.setItem(i,s)}catch(l){n(l)}},remove:function(i){try{t.removeItem(i)}catch(s){n(s)}}}}p.localStorage=Wc(R.localStorage,"localStorage",an),p.sessionStorage=Wc(R.sessionStorage,"sessionStorage",(function(t,r){return ho===null||r?ho=Wu(t||R.sessionStorage):ho})),p.register_event=(function(){function t(r){return r&&(r.preventDefault=t.preventDefault,r.stopPropagation=t.stopPropagation),r}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(r,e,n,i,s){if(r)if(r.addEventListener&&!i)r.addEventListener(e,n,!!s);else{var l="on"+e,h=r[l];r[l]=(function(o,a,c){var u=function(d){if(d=d||t(R.event)){var f,_,m=!0;return p.isFunction(c)&&(f=c(d)),_=a.call(o,d),f!==!1&&_!==!1||(m=!1),m}};return u})(r,n,h)}else se.error("No valid element provided to register_event")}})();var Em=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');p.dom_query=(function(){function t(i){return i.all?i.all:i.getElementsByTagName("*")}var r=/[\t\r\n]/g;function e(i,s){var l=" "+s+" ";return(" "+i.className+" ").replace(r," ").indexOf(l)>=0}function n(i){if(!Q.getElementsByTagName)return[];var s,l,h,o,a,c,u,d,f,_,m=i.split(" "),g=[Q];for(c=0;c<m.length;c++)if((s=m[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){h=(l=s.split("#"))[0];var y=l[1],b=Q.getElementById(y);if(!b||h&&b.nodeName.toLowerCase()!=h)return[];g=[b]}else if(s.indexOf(".")>-1){h=(l=s.split("."))[0];var k=l[1];for(h||(h="*"),o=[],a=0,u=0;u<g.length;u++)for(f=h=="*"?t(g[u]):g[u].getElementsByTagName(h),d=0;d<f.length;d++)o[a++]=f[d];for(g=[],_=0,u=0;u<o.length;u++)o[u].className&&p.isString(o[u].className)&&e(o[u],k)&&(g[_++]=o[u])}else{var E=s.match(Em);if(E){h=E[1];var w,C=E[2],P=E[3],D=E[4];for(h||(h="*"),o=[],a=0,u=0;u<g.length;u++)for(f=h=="*"?t(g[u]):g[u].getElementsByTagName(h),d=0;d<f.length;d++)o[a++]=f[d];switch(g=[],_=0,P){case"=":w=function(v){return v.getAttribute(C)==D};break;case"~":w=function(v){return v.getAttribute(C).match(new RegExp("\\b"+D+"\\b"))};break;case"|":w=function(v){return v.getAttribute(C).match(new RegExp("^"+D+"-?"))};break;case"^":w=function(v){return v.getAttribute(C).indexOf(D)===0};break;case"$":w=function(v){return v.getAttribute(C).lastIndexOf(D)==v.getAttribute(C).length-D.length};break;case"*":w=function(v){return v.getAttribute(C).indexOf(D)>-1};break;default:w=function(v){return v.getAttribute(C)}}for(g=[],_=0,u=0;u<o.length;u++)w(o[u])&&(g[_++]=o[u])}else{for(h=s,o=[],a=0,u=0;u<g.length;u++)for(f=g[u].getElementsByTagName(h),d=0;d<f.length;d++)o[a++]=f[d];g=o}}return g}return function(i){return p.isElement(i)?[i]:p.isObject(i)&&!p.isUndefined(i.length)?i:n.call(this,i)}})();var Am=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Im=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];p.info={campaignParams:function(t){var r="",e={};return p.each(Am,(function(n){(r=p.getQueryParam(Q.URL,n)).length?e[n]=r:t!==void 0&&(e[n]=t)})),e},clickParams:function(){var t="",r={};return p.each(Im,(function(e){(t=p.getQueryParam(Q.URL,e)).length&&(r[e]=t)})),r},marketingParams:function(){return p.extend(p.info.campaignParams(),p.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var r=p.info.searchEngine(t),e=r!="yahoo"?"q":"p",n={};if(r!==null){n.$search_engine=r;var i=p.getQueryParam(t,e);i.length&&(n.mp_keyword=i)}return n},browser:function(t,r,e){return r=r||"",e||p.includes(t," OPR/")?p.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":p.includes(t,"IEMobile")||p.includes(t,"WPDesktop")?"Internet Explorer Mobile":p.includes(t,"SamsungBrowser/")?"Samsung Internet":p.includes(t,"Edge")||p.includes(t,"Edg/")?"Microsoft Edge":p.includes(t,"FBIOS")?"Facebook Mobile":p.includes(t,"Whale/")?"Whale Browser":p.includes(t,"Chrome")?"Chrome":p.includes(t,"CriOS")?"Chrome iOS":p.includes(t,"UCWEB")||p.includes(t,"UCBrowser")?"UC Browser":p.includes(t,"FxiOS")?"Firefox iOS":p.includes(r,"Apple")?p.includes(t,"Mobile")?"Mobile Safari":"Safari":p.includes(t,"Android")?"Android Mobile":p.includes(t,"Konqueror")?"Konqueror":p.includes(t,"Firefox")?"Firefox":p.includes(t,"MSIE")||p.includes(t,"Trident/")?"Internet Explorer":p.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,r,e){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[p.info.browser(t,r,e)];if(n===void 0)return null;var i=t.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var t=_t;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var r=t.split("/");return r.length>=3?r[2]:""},currentUrl:function(){return R.location.href},properties:function(t){return typeof t!="object"&&(t={}),p.extend(p.strip_empty_properties({$os:p.info.os(),$browser:p.info.browser(_t,Rt.vendor,jr),$referrer:Q.referrer,$referring_domain:p.info.referringDomain(Q.referrer),$device:p.info.device(_t)}),{$current_url:p.info.currentUrl(),$browser_version:p.info.browserVersion(_t,Rt.vendor,jr),$screen_height:Vc.height,$screen_width:Vc.width,mp_lib:"web",$lib_version:ot.LIB_VERSION,$insert_id:za(),time:p.timestamp()/1e3},p.strip_empty_properties(t))},people_properties:function(){return p.extend(p.strip_empty_properties({$os:p.info.os(),$browser:p.info.browser(_t,Rt.vendor,jr)}),{$browser_version:p.info.browserVersion(_t,Rt.vendor,jr)})},mpPageViewProperties:function(){return p.strip_empty_properties({current_page_title:Q.title,current_domain:R.location.hostname,current_url_path:R.location.pathname,current_url_protocol:R.location.protocol,current_url_search:R.location.search})}};var za=function(t){var r=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?r.substring(0,t):r},Tm=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Pm=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Gc=function(t){var r=Pm,e=t.split("."),n=e[e.length-1];(n.length>4||n==="com"||n==="org")&&(r=Tm);var i=t.match(r);return i?i[0]:""},qt=function(){},Sr=null,ri=null;typeof JSON<"u"&&(Sr=JSON.stringify,ri=JSON.parse),Sr=Sr||p.JSONEncode,ri=ri||p.JSONDecode;p.info=p.info,p.info.browser=p.info.browser,p.info.browserVersion=p.info.browserVersion,p.info.device=p.info.device,p.info.properties=p.info.properties,p.isBlockedUA=p.isBlockedUA,p.isEmptyObject=p.isEmptyObject,p.isObject=p.isObject,p.JSONDecode=p.JSONDecode,p.JSONEncode=p.JSONEncode,p.toArray=p.toArray,p.NPO=Vt;var Gu="mixpanelRecordingEvents",Wa="mixpanelRecordingRegistry",Rm=[Gu,Wa],ct=function(t){this.dbPromise=null,this.storeName=t};ct.prototype._openDb=function(){return new he((function(t,r){var e=R.indexedDB.open("mixpanelBrowserDb",1);e.onerror=function(){r(e.error)},e.onsuccess=function(){t(e.result)},e.onupgradeneeded=function(n){var i=n.target.result;Rm.forEach((function(s){i.createObjectStore(s)}))}}))},ct.prototype.init=function(){return R.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then((function(t){return t instanceof R.IDBDatabase?he.resolve():he.reject(t)}))):he.reject("indexedDB is not supported in this browser")},ct.prototype.isInitialized=function(){return!!this.dbPromise},ct.prototype.makeTransaction=function(t,r){var e=this.storeName,n=function(i){return new he((function(s,l){var h=i.transaction(e,t);h.oncomplete=function(){s(h)},h.onabort=h.onerror=function(){l(h.error)},r(h.objectStore(e))}))};return this.dbPromise.then(n).catch((function(i){return i&&i.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):he.reject(i)}).bind(this))},ct.prototype.setItem=function(t,r){return this.makeTransaction("readwrite",(function(e){e.put(r,t)}))},ct.prototype.getItem=function(t){var r;return this.makeTransaction("readonly",(function(e){r=e.get(t)})).then((function(){return r.result}))},ct.prototype.removeItem=function(t){return this.makeTransaction("readwrite",(function(r){r.delete(t)}))},ct.prototype.getAll=function(){var t;return this.makeTransaction("readonly",(function(r){t=r.getAll()})).then((function(){return t.result}))};function xm(t,r){Zu(!0,t,r)}function Om(t,r){Zu(!1,t,r)}function Dm(t,r){return Hu(t,r)==="1"}function $u(t,r){if((function(n){if(n&&n.ignoreDnt)return!1;var i=n&&n.window||R,s=i.navigator||{},l=!1;return p.each([s.doNotTrack,s.msDoNotTrack,i.doNotTrack],(function(h){p.includes([!0,1,"1","yes"],h)&&(l=!0)})),l})(r))return se.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var e=Hu(t,r)==="0";return e&&se.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),e}function Ft(t){return Ha(t,(function(r){return this.get_config(r)}))}function Mt(t){return Ha(t,(function(r){return this._get_config(r)}))}function lr(t){return Ha(t,(function(r){return this._get_config(r)}))}function Bm(t,r){Ga(r=r||{}).remove($a(t,r),!!r.crossSubdomainCookie,r.cookieDomain)}function Ga(t){return(t=t||{}).persistenceType==="localStorage"?p.localStorage:p.cookie}function $a(t,r){return((r=r||{}).persistencePrefix||"__mp_opt_in_out_")+t}function Hu(t,r){return Ga(r).get($a(t,r))}function Zu(t,r,e){p.isString(r)&&r.length?(Ga(e=e||{}).set($a(r,e),t?1:0,p.isNumber(e.cookieExpiration)?e.cookieExpiration:null,!!e.crossSubdomainCookie,!!e.secureCookie,!!e.crossSiteCookie,e.cookieDomain),e.track&&t&&e.track(e.trackEventName||"$opt_in",e.trackProperties,{send_immediately:!0})):se.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}function Ha(t,r){return function(){var e=!1;try{var n=r.call(this,"token"),i=r.call(this,"ignore_dnt"),s=r.call(this,"opt_out_tracking_persistence_type"),l=r.call(this,"opt_out_tracking_cookie_prefix"),h=r.call(this,"window");n&&(e=$u(n,{ignoreDnt:i,persistenceType:s,persistencePrefix:l,window:h}))}catch(a){se.error("Unexpected error when checking tracking opt-out status: "+a)}if(!e)return t.apply(this,arguments);var o=arguments[arguments.length-1];typeof o=="function"&&o(0)}}var Mm=er("lock"),Ju=function(t,r){r=r||{},this.storageKey=t,this.storage=r.storage||R.localStorage,this.pollIntervalMS=r.pollIntervalMS||100,this.timeoutMS=r.timeoutMS||2e3,this.promiseImpl=r.promiseImpl||he};Ju.prototype.withLock=function(t,r){return new this.promiseImpl(p.bind((function(e,n){var i=r||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),l=this.storageKey,h=this.pollIntervalMS,o=this.timeoutMS,a=this.storage,c=l+":X",u=l+":Y",d=l+":Z",f=function(b){if(new Date().getTime()-s>o)return Mm.error("Timeout waiting for mutex on "+l+"; clearing lock. ["+i+"]"),a.removeItem(d),a.removeItem(u),void g();setTimeout((function(){try{b()}catch(k){n(k)}}),h*(Math.random()+.1))},_=function(b,k){b()?k():f((function(){_(b,k)}))},m=function(){var b=a.getItem(u);return(!b||b===i)&&(a.setItem(u,i),a.getItem(u)===i||(an(a,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){a.setItem(c,i),_(m,(function(){a.getItem(c)!==i?f((function(){a.getItem(u)===i?_((function(){return!a.getItem(d)}),y):g()})):y()}))},y=function(){a.setItem(d,"1");var b=function(){a.removeItem(d),a.getItem(u)===i&&a.removeItem(u),a.getItem(c)===i&&a.removeItem(c)};t().then((function(k){b(),e(k)})).catch((function(k){b(),n(k)}))};try{if(!an(a,!0))throw new Error("localStorage support check failed");g()}catch(b){n(b)}}),this))};var fr=function(t){this.storage=t||R.localStorage};fr.prototype.init=function(){return he.resolve()},fr.prototype.isInitialized=function(){return!0},fr.prototype.setItem=function(t,r){return new he(p.bind((function(e,n){try{this.storage.setItem(t,Sr(r))}catch(i){n(i)}e()}),this))},fr.prototype.getItem=function(t){return new he(p.bind((function(r,e){var n;try{n=ri(this.storage.getItem(t))}catch(i){e(i)}r(n)}),this))},fr.prototype.removeItem=function(t){return new he(p.bind((function(r,e){try{this.storage.removeItem(t)}catch(n){e(n)}r()}),this))};var $c=er("batch"),yt=function(t,r){var e,n,i,s;r=r||{},this.storageKey=t,this.usePersistence=r.usePersistence,this.usePersistence&&(this.queueStorage=r.queueStorage||new fr,this.lock=new Ju(t,{storage:r.sharedLockStorage||R.localStorage,timeoutMS:r.sharedLockTimeoutMS})),this.reportError=r.errorReporter||p.bind($c.error,$c),this.pid=r.pid||null,this.memQueue=[],this.initialized=!1,r.enqueueThrottleMs?this.enqueuePersisted=(e=p.bind(this._enqueuePersisted,this),n=r.enqueueThrottleMs,i=null,s=[],function(l){var h=this;return s.push(l),i||(i=new he((function(o){setTimeout((function(){var a=e.apply(h,[s]);i=null,s=[],o(a)}),n)}))),i}):this.enqueuePersisted=p.bind((function(l){return this._enqueuePersisted([l])}),this)};yt.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?he.resolve():this.queueStorage.init().then(p.bind((function(){this.initialized=!0}),this)).catch(p.bind((function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1}),this))},yt.prototype.enqueue=function(t,r){var e={id:za(),flushAfter:new Date().getTime()+2*r,payload:t};return this.usePersistence?this.enqueuePersisted(e):(this.memQueue.push(e),he.resolve(!0))},yt.prototype._enqueuePersisted=function(t){var r=p.bind((function(){return this.ensureInit().then(p.bind((function(){return this.readFromStorage()}),this)).then(p.bind((function(e){return this.saveToStorage(e.concat(t))}),this)).then(p.bind((function(e){return e&&(this.memQueue=this.memQueue.concat(t)),e}),this)).catch(p.bind((function(e){return this.reportError("Error enqueueing items",e,t),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(p.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))},yt.prototype.fillBatch=function(t){var r=this.memQueue.slice(0,t);return this.usePersistence&&r.length<t?this.ensureInit().then(p.bind((function(){return this.readFromStorage()}),this)).then(p.bind((function(e){if(e.length){var n={};p.each(r,(function(l){n[l.id]=!0}));for(var i=0;i<e.length;i++){var s=e[i];if(new Date().getTime()>s.flushAfter&&!n[s.id]&&(s.orphaned=!0,r.push(s),r.length>=t))break}}return r}),this)):he.resolve(r)};var Hc=function(t,r){var e=[];return p.each(t,(function(n){n.id&&!r[n.id]&&e.push(n)})),e};yt.prototype.removeItemsByID=function(t){var r={};if(p.each(t,(function(n){r[n]=!0})),this.memQueue=Hc(this.memQueue,r),this.usePersistence){var e=p.bind((function(){return this.ensureInit().then(p.bind((function(){return this.readFromStorage()}),this)).then(p.bind((function(n){return n=Hc(n,r),this.saveToStorage(n)}),this)).then(p.bind((function(){return this.readFromStorage()}),this)).then(p.bind((function(n){for(var i=0;i<n.length;i++){var s=n[i];if(s.id&&r[s.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(p.bind((function(n){return this.reportError("Error removing items",n,t),!1}),this))}),this);return this.lock.withLock(e,this.pid).catch(p.bind((function(n){return this.reportError("Error acquiring storage lock",n),!an(this.lock.storage,!0)&&e().then(p.bind((function(i){return i||this.queueStorage.removeItem(this.storageKey).then((function(){return i}))}),this)).catch(p.bind((function(i){return this.reportError("Error clearing queue",i),!1}),this))}),this))}return he.resolve(!0)};var Zc=function(t,r){var e=[];return p.each(t,(function(n){var i=n.id;if(i in r){var s=r[i];s!==null&&(n.payload=s,e.push(n))}else e.push(n)})),e};yt.prototype.updatePayloads=function(t){return this.memQueue=Zc(this.memQueue,t),this.usePersistence?this.lock.withLock(p.bind((function(){return this.ensureInit().then(p.bind((function(){return this.readFromStorage()}),this)).then(p.bind((function(r){return r=Zc(r,t),this.saveToStorage(r)}),this)).catch(p.bind((function(r){return this.reportError("Error updating items",t,r),!1}),this))}),this),this.pid).catch(p.bind((function(r){return this.reportError("Error acquiring storage lock",r),!1}),this)):he.resolve(!0)},yt.prototype.readFromStorage=function(){return this.ensureInit().then(p.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(p.bind((function(t){return t&&(p.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]}),this)).catch(p.bind((function(t){return this.reportError("Error retrieving queue",t),[]}),this))},yt.prototype.saveToStorage=function(t){return this.ensureInit().then(p.bind((function(){return this.queueStorage.setItem(this.storageKey,t)}),this)).then((function(){return!0})).catch(p.bind((function(r){return this.reportError("Error saving queue",r),!1}),this))},yt.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(p.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):he.resolve()};var Mr=er("batch"),nt=function(t,r){this.errorReporter=r.errorReporter,this.queue=new yt(t,{errorReporter:p.bind(this.reportError,this),queueStorage:r.queueStorage,sharedLockStorage:r.sharedLockStorage,sharedLockTimeoutMS:r.sharedLockTimeoutMS,usePersistence:r.usePersistence,enqueueThrottleMs:r.enqueueThrottleMs}),this.libConfig=r.libConfig,this.sendRequest=r.sendRequestFunc,this.beforeSendHook=r.beforeSendHook,this.stopAllBatching=r.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=r.flushOnlyOnInterval||!1,this._flushPromise=null};nt.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},nt.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},nt.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},nt.prototype.clear=function(){return this.queue.clear()},nt.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},nt.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},nt.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(p.bind((function(){this.stopped||(this._flushPromise=this.flush())}),this),this.flushInterval))},nt.prototype.sendRequestPromise=function(t,r){return new he(p.bind((function(e){this.sendRequest(t,r,e)}),this))},nt.prototype.flush=function(t){if(this.requestInProgress)return Mr.log("Flush: Request already in progress"),he.resolve();this.requestInProgress=!0,t=t||{};var r=this.libConfig.batch_request_timeout_ms,e=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(p.bind((function(i){var s=i.length===n,l=[],h={};if(p.each(i,(function(u){var d=u.payload;if(this.beforeSendHook&&!u.orphaned&&(d=this.beforeSendHook(d)),d){d.event&&d.properties&&(d.properties=p.extend({},d.properties,{mp_sent_by_lib_version:ot.LIB_VERSION}));var f=!0,_=u.id;_?(this.itemIdsSentSuccessfully[_]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:u,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[_]}),f=!1):this.reportError("[dupe] found item with no ID",{item:u}),f&&l.push(d)}h[u.id]=d}),this),l.length<1)return this.requestInProgress=!1,this.resetFlush(),he.resolve();var o=p.bind((function(){return this.queue.removeItemsByID(p.map(i,(function(u){return u.id}))).then(p.bind((function(u){return p.each(i,p.bind((function(d){var f=d.id;f?(this.itemIdsSentSuccessfully[f]=this.itemIdsSentSuccessfully[f]||0,this.itemIdsSentSuccessfully[f]++,this.itemIdsSentSuccessfully[f]>5&&this.reportError("[dupe] item ID sent too many times",{item:d,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[f]})):this.reportError("[dupe] found item with no ID while removing",{item:d})}),this)),u?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?(this.resetFlush(),he.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),he.resolve())}),this))}),this),a=p.bind((function(u){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(h);if(p.isObject(u)&&u.error==="timeout"&&new Date().getTime()-e>=r)return this.reportError("Network timeout; retrying"),this.flush();if(p.isObject(u)&&(u.httpStatusCode>=500||u.httpStatusCode===429||u.httpStatusCode<=0&&(_=R.navigator.onLine,!p.isUndefined(_)&&!_)||u.error==="timeout")){var d=2*this.flushInterval;return u.retryAfter&&(d=1e3*parseInt(u.retryAfter,10)||d),d=Math.min(6e5,d),this.reportError("Error; retry in "+d+" ms"),this.scheduleFlush(d),he.resolve()}if(p.isObject(u)&&u.httpStatusCode===413){if(i.length>1){var f=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,f,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),he.resolve()}return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),o()}return o()}catch(m){this.reportError("Error handling API response",m),this.resetFlush()}var _}),this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:r};return t.unloading&&(c.transport="sendBeacon"),Mr.log("MIXPANEL REQUEST:",l),this.sendRequestPromise(l,c).then(a)}),this)).catch(p.bind((function(i){this.reportError("Error flushing request queue",i),this.resetFlush()}),this))},nt.prototype.reportError=function(t,r){if(Mr.error.apply(Mr.error,arguments),this.errorReporter)try{r instanceof Error||(r=new Error(t)),this.errorReporter(t,r)}catch(e){Mr.error(e)}};var na=function(t){var r=Date.now();return!t||r>t.maxExpires||r>t.idleExpires},ur=er("recorder"),Lm=R.CompressionStream,Nm={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Fm=new Set([X.MouseMove,X.MouseInteraction,X.Scroll,X.ViewportResize,X.Input,X.TouchMove,X.MediaInteraction,X.Drag,X.Selection]),Ne=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||qt,this._onMaxLengthReached=t.onMaxLengthReached||qt,this._onBatchSent=t.onBatchSent||qt,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Jr,this.recordMinMs=0;var r=an(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ct(Gu),this.batcher=new nt(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Nm,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:r,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Ne.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},r=this._mixpanel.get_property("$device_id");r&&(t.$device_id=r);var e=this._mixpanel.get_property("$user_id");return e&&(t.$user_id=e),t},Ne.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))},Ne.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},Ne.prototype.get_config=function(t){return this.getConfig(t)},Ne.prototype.startRecording=function(t){if(this._rrwebRecord!==null)if(this._stopRecording===null){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Jr&&(this.recordMaxMs=Jr,ur.critical("record_max_ms cannot be greater than "+Jr+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=p.info.currentUrl(),this.replayStartUrl=p.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var r=(function(){clearTimeout(this.idleTimeoutId);var s=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,s),this.idleExpires=new Date().getTime()+s}).bind(this);r();var e,n=this.getConfig("record_block_selector");n!==""&&n!==null||(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(s){this.idleExpires&&this.idleExpires<s.timestamp?this._onIdleTimeout():((function(l){return l.type===le.IncrementalSnapshot&&Fm.has(l.data.source)})(s)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),r()),this.__enqueuePromise=this.batcher.enqueue(s),(this.lastEventTimestamp===null||s.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=s.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(e={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:ym,options:e})]:[]})}catch(s){this.reportError("Unexpected error when starting rrweb recording.",s)}if(typeof this._stopRecording!="function")return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var i=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)}else ur.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Ne.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var r;return this.batcher.stopped?r=this.batcher.clear():t||(r=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),r},Ne.prototype.isRrwebStopped=function(){return this._stopRecording===null},Ne.prototype.flushEventsWithOptOut=function(t,r,e){var n=(function(i){i===0&&(this.stopRecording(),e({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(t,r,e,n)},Ne.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(r){this.reportError("Error getting tab ID for serialization ",r),t=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:t}},Ne.deserialize=function(t,r){return new Ne(p.extend({},r,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:r.sharedLockStorage}))},Ne.prototype._sendRequest=function(t,r,e,n){var i=(function(l,h){l.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=p.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:l.status,responseBody:h,retryAfter:l.headers.get("Retry-After")})}).bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");R.fetch(s+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(r),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:e}).then((function(l){l.json().then((function(h){i(l,h)})).catch((function(h){n({error:h})}))})).catch((function(l){n({error:l,httpStatusCode:0})}))},Ne.prototype._flushEvents=Ft((function(t,r,e){var n=t.length;if(n>0){for(var i=this.replayId,s=1/0,l=-1/0,h=!1,o=0;o<n;o++)s=Math.min(s,t[o].timestamp),l=Math.max(l,t[o].timestamp),t[o].type===le.FullSnapshot&&(h=!0);if(this.seqNo===0){if(!h)return e({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=s}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var a=l-this.replayStartTime,c={$current_url:this.batchStartUrl,$lib_version:ot.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:i,replay_length_ms:a,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},u=JSON.stringify(t);if(Object.assign(c,this.getUserIdInfo()),(function(f,_,m){if(!R.CompressionStream)return!1;var g=p.info.browser(f,_,m),y=p.info.browserVersion(f,_,m);return!((g==="Safari"||g==="Mobile Safari")&&y>=16.4&&y<16.6)})(_t,Rt.vendor,jr)){var d=new Blob([u],{type:"application/json"}).stream().pipeThrough(new Lm("gzip"));new Response(d).blob().then((function(f){c.format="gzip",this._sendRequest(i,c,f,e)}).bind(this))}else c.format="body",this._sendRequest(i,c,u,e)}})),Ne.prototype.reportError=function(t,r){ur.error.apply(ur.error,arguments);try{r||t instanceof Error||(t=new Error(t)),this.getConfig("error_reporter")(t,r)}catch(e){ur.error(e)}},Ne.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Ne.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Fc?(ur.critical("record_min_ms cannot be greater than 8000ms. Capping value."),Fc):t};var St=function(t){this.idb=new ct(Wa),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};St.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},St.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},St.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return he.resolve();var r=t.tabId;return r?this.idb.init().then((function(){return this.idb.setItem(r,t)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),he.resolve())},St.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(t){return na(t)?null:t}).bind(this)).catch(this.handleError.bind(this)):he.resolve(null)},St.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},St.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}).bind(this)).catch(this.handleError.bind(this))},St.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):he.resolve()},St.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(t){var r=t.filter((function(e){return na(e)})).map((function(e){return Ne.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return he.all(r)}).bind(this)).catch(this.handleError.bind(this)):he.resolve([])};var qr=er("recorder"),Ct=function(t,r,e){this.mixpanelInstance=t,this.rrwebRecord=r||Nt,this.sharedLockStorage=e,this.recordingRegistry=new St({mixpanelInstance:this.mixpanelInstance,errorReporter:qr.error,sharedLockStorage:e}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ct.prototype.startRecording=function(t){if(t=t||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var r=(function(){qr.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),e=(function(){qr.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:r,onMaxLengthReached:e,replayId:p.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=Ne.deserialize(t.activeSerializedRecording,i):this.activeRecording=new Ne(i),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}qr.log("Recording already in progress, skipping startRecording.")},Ct.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},Ct.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ct.prototype._stopCurrentRecording=function(t,r){if(this.activeRecording){var e=this.activeRecording.stopRecording(t);return r&&(this.activeRecording=null),e}return he.resolve()},Ct.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),he.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(r){return r&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:r}):t?this.startRecording({shouldStopBatcher:!1}):(qr.log("No resumable recording found."),null)}).bind(this))},Ct.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ct.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ct.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),R.__mp_recorder=Ct;var sn="change",At="click",ia="hashchange",Jc="load",Lt="mp_locationchange",Yc="popstate",bi="scrollend",oa="scroll",ki="submit",Xc="visibilitychange",Vm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Qc=["mp-include"],aa=["mp-no-track"],Kc=aa.concat(["mp-sensitive"]),Um=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],jm={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},qm={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},zm={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},el=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],ye=er("autocapture");function sa(t){for(var r={},e=Yu(t).split(" "),n=0;n<e.length;n++){var i=e[n];i&&(r[i]=!0)}return r}function Yu(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function Wm(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!Xu(t));return t}function tl(t,r,e,n,i,s){var l={$classes:Yu(t).split(" "),$tag_name:t.tagName.toLowerCase()},h=t.id;h&&(l.$id=h),Za(t,r,i,s)&&p.each(Um.concat(n),(function(u){if(t.hasAttribute(u)&&!e[u]){var d=t.getAttribute(u);Ci(d)&&(l["$attr-"+u]=d)}}));for(var o=1,a=1,c=t;c=Wm(c);)o++,c.tagName===t.tagName&&a++;return l.$nth_child=o,l.$nth_of_type=a,l}function Gm(t,r){var e=r.allowElementCallback,n=r.allowSelectors||[],i=r.blockAttrs||[],s=r.blockElementCallback,l=r.blockSelectors||[],h=r.captureTextContent||!1,o=r.captureExtraAttrs||[],a=r.capturedForHeatMap||!1,c={};p.each(i,(function(w){c[w]=!0}));var u=null,d=t.target===void 0?t.srcElement:t.target;if(Qu(d)&&(d=d.parentNode),(function(w,C){if(!w||gt(w,"html")||!Xu(w))return!1;switch(w.tagName.toLowerCase()){case"form":return C.type===ki;case"input":return["button","submit"].indexOf(w.getAttribute("type"))===-1?C.type===sn:C.type===At;case"select":case"textarea":return C.type===sn;default:return C.type===At}})(d,t)&&ca(d,t,e,n)&&!po(d,t,s,l)){for(var f=[d],_=d;_.parentNode&&!gt(_,"body");)f.push(_.parentNode),_=_.parentNode;var m,g=[],y=!1;if(p.each(f,(function(w){var C=Za(w,t,e,n);c.href||w.tagName.toLowerCase()!=="a"||(m=w.getAttribute("href"),m=C&&Ci(m)&&m),po(w,t,s,l)&&(y=!0),g.push(tl(w,t,c,o,e,n))}),this),!y){var b=Q.documentElement;if(u={$event_type:t.type,$host:R.location.host,$pathname:R.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(b.clientHeight,R.innerHeight||0),$viewportWidth:Math.max(b.clientWidth,R.innerWidth||0),$pageHeight:Q.body.offsetHeight||0,$pageWidth:Q.body.offsetWidth||0},p.each(o,(function(w){if(!c[w]&&d.hasAttribute(w)){var C=d.getAttribute(w);Ci(C)&&(u["$el_attr__"+w]=C)}})),h&&(k=rl(d,t,e,n))&&k.length&&(u.$el_text=k),t.type===At&&(p.each(Vm,(function(w){w in t&&(u["$"+w]=t[w])})),a&&(u.$captured_for_heatmap=!0),d=(function(w){for(var C=w.target,P=w.composedPath(),D=0;D<P.length;D++){var v=P[D];if(gt(v,"a")||gt(v,"button")||gt(v,"input")||gt(v,"select")||v.getAttribute&&v.getAttribute("role")==="button"){C=v;break}if(v===C)break}return C})(t)),h){var k=rl(d,t,e,n);k&&k.length&&(u.$el_text=k)}if(d){if(!ca(d,t,e,n)||po(d,t,s,l))return null;var E=tl(d,t,c,o,e,n);u.$target=E,u.$el_classes=E.$classes,p.extend(u,p.strip_empty_properties({$el_id:E.$id,$el_tag_name:E.$tag_name}))}}}return u}function rl(t,r,e,n){var i="";return Za(t,r,e,n)&&t.childNodes&&t.childNodes.length&&p.each(t.childNodes,(function(s){Qu(s)&&s.textContent&&(i+=p.trim(s.textContent).split(/(\s+)/).filter(Ci).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),p.trim(i)}function ca(t,r,e,n){if(e)try{if(!e(t,r))return!1}catch(l){return ye.critical("Error while checking element in allowElementCallback",l),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var s=n[i];try{if(t.matches(s))return!0}catch(l){ye.critical("Error while checking selector: "+s,l)}}return!1}function po(t,r,e,n){var i;if(e)try{if(e(t,r))return!0}catch(h){return ye.critical("Error while checking element in blockElementCallback",h),!0}if(n&&n.length)for(i=0;i<n.length;i++){var s=n[i];try{if(t.matches(s))return!0}catch(h){ye.critical("Error while checking selector: "+s,h)}}var l=sa(t);for(i=0;i<aa.length;i++)if(l[aa[i]])return!0;return!1}function Xu(t){return t&&t.nodeType===1}function gt(t,r){return t&&t.tagName&&t.tagName.toLowerCase()===r.toLowerCase()}function Qu(t){return t&&t.nodeType===3}function Za(t,r,e,n){var i;if(!ca(t,r,e,n))return!1;for(var s=t;s.parentNode&&!gt(s,"body");s=s.parentNode){var l=sa(s);for(i=0;i<Kc.length;i++)if(l[Kc[i]])return!1}var h=sa(t);for(i=0;i<Qc.length;i++)if(h[Qc[i]])return!0;if(gt(t,"input")||gt(t,"select")||gt(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var o=t.type||"";if(typeof o=="string")switch(o.toLowerCase()){case"hidden":case"password":return!1}var a=t.name||t.id||"";return!(typeof a=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,"")))}function Ci(t){return!(t===null||p.isUndefined(t)||typeof t=="string"&&(t=p.trim(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(t)))}function nl(t){var r="onscrollend"in R,e=on(t),n=bi;if(!r){var i=null;e=on((function(){clearTimeout(i),i=setTimeout(t,100)})),n=oa}return{listener:e,eventType:n}}function fo(t){var r=t.tagName.toLowerCase();return r==="button"||r==="input"||r==="select"||r==="textarea"||r==="details"||r==="dialog"||!!t.isContentEditable||!!(t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend)||!!(function(e){for(var n=0;n<el.length;n++)if(e.hasAttribute(el[n]))return!0;return!1})(t)||!!(function(e){var n=e.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return jm[i]})(t)||!(r!=="a"||!t.hasAttribute("href"))||!!t.hasAttribute("tabindex")}function Ku(t){if(!t||!t.tagName)return!0;var r=t.tagName.toLowerCase();if(qm[r])return!0;if(fo(t))return!1;for(var e=t.parentElement,n=0;e&&n<5;){if(fo(e))return!1;if(e.getRootNode&&e.getRootNode()!==Q){var i=e.getRootNode();if(i.host&&fo(i.host))return!1}e=e.parentElement,n++}return!!zm[r]}function ed(t){return"composedPath"in t?t.composedPath():[]}function il(t){var r=ed(t);return r&&r.length>0?r[0]:t.target||t.srcElement}function td(){this.clicks=[]}function mr(t,r){this.changeCallback=t||function(){},this.observerConfig=r,this.observedShadowRoots=null,this.shadowObservers=[]}td.prototype.isRageClick=function(t,r){var e=(r=r||{}).threshold_px||30,n=r.timeout_ms||1e3,i=r.click_count||4;if(r.interactive_elements_only){var s=il(t);if(!s||Ku(s))return!1}var l=Date.now(),h=t.pageX,o=t.pageY,a=this.clicks[this.clicks.length-1];if(a&&l-a.timestamp<n&&Math.sqrt(Math.pow(h-a.x,2)+Math.pow(o-a.y,2))<e){if(this.clicks.push({x:h,y:o,timestamp:l}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:h,y:o,timestamp:l}];return!1},mr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return il(t)},mr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var r=ed(t),e=0;e<r.length;e++){var n=r[e];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},mr.prototype.observeShadowRoot=function(t){if(this.observedShadowRoots&&!this.observedShadowRoots.has(t)){var r=this;try{this.observedShadowRoots.add(t);var e=new window.MutationObserver((function(){r.changeCallback()}));e.observe(t,this.observerConfig),this.shadowObservers.push(e)}catch(n){ye.critical("Error while observing shadow root",n)}}},mr.prototype.start=function(){this.observedShadowRoots||(typeof WeakSet<"u"?this.observedShadowRoots=new WeakSet:ye.critical("Shadow DOM observation unavailable: WeakSet not supported"))},mr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(r){ye.critical("Error while disconnecting shadow DOM observer",r)}this.shadowObservers=[],this.observedShadowRoots=null}};var $m=[sn,"input",ki,"select","toggle"],Hm=[bi],Zm=[ia],ol={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function mt(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}mt.prototype.addClick=function(t){var r=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return r||(r=t.target||t.srcElement),!(!r||Ku(r))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:r,event:t,timestamp:Date.now()}),!0)},mt.prototype.trackClick=function(t,r){if(!this.isTracking)return!1;var e=this.addClick(t);return e&&this.triggerProcessing(r),e},mt.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var r=t.timeout_ms,e=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],s=0;s<n.length;s++){var l=n[s];e-l.timestamp>=r?this.hasChangesAfter(l.timestamp)||i.push(l):this.pendingClicks.push(l)}return i},mt.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100},mt.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},mt.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))},mt.prototype.processRecursively=function(t){if(this.isTracking&&this.onDeadClickCallback){var r=t.timeout_ms,e=this;this.processingTimeout=setTimeout((function(){if(e.processingActive){for(var n=e.getDeadClicks(t),i=0;i<n.length;i++)e.onDeadClickCallback(n[i].event);e.pendingClicks.length>0?e.processRecursively(t):e.processingActive=!1}}),r)}else this.processingActive=!1},mt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;$m.forEach((function(e){var n=function(){t.recordChangeEvent()};document.addEventListener(e,n,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:e,handler:n,options:{capture:!0,passive:!0}})})),Zm.forEach((function(e){var n=function(){t.recordChangeEvent()};window.addEventListener(e,n),t.eventListeners.push({target:window,event:e,handler:n})})),Hm.forEach((function(e){var n=function(){t.recordChangeEvent()};window.addEventListener(e,n,{passive:!0}),t.eventListeners.push({target:window,event:e,handler:n,options:{passive:!0}})}));var r=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",r),t.eventListeners.push({target:document,event:"selectionchange",handler:r}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver((function(){t.recordChangeEvent()})),this.mutationObserver.observe(document.body||document.documentElement,ol)}catch(e){ye.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new mr((function(){t.recordChangeEvent()}),ol),this.shadowDOMObserver.start()}catch(e){ye.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},mt.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var t=0;t<this.eventListeners.length;t++){var r=this.eventListeners[t];try{r.target.removeEventListener(r.event,r.handler,r.options)}catch(e){ye.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){ye.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){ye.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var al="autocapture",rd="full-url",nd="allow_selectors",id="allow_url_regexes",od="block_attrs",ad="block_element_callback",sd="block_selectors",cd="block_url_regexes",ld="capture_extra_attrs",ud="capture_text_content",dd="scroll_capture_all",hd="scroll_depth_percent_checkpoints",ni="click",ii="dead_click",la="input",pd="pageview",oi="rage_click",ua="scroll",ai="page_leave",da="submit",Le={};Le[nd]=[],Le[id]=[],Le[od]=[],Le[ad]=null,Le[sd]=[],Le[cd]=[],Le[ld]=[],Le[ud]=!1,Le[dd]=!1,Le[hd]=[25,50,75,100],Le[ni]=!0,Le[ii]=!0,Le[la]=!0,Le[pd]=rd,Le[oi]=!0,Le[ua]=!0,Le[ai]=!1,Le[da]=!0;var Lr={$mp_autocapture:!0},sl="$mp_click",cl="$mp_dead_click",ll="$mp_rage_click",xe=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};xe.prototype.init=function(){(function(){try{return!!Q.createElement("div").matches}catch{return!1}})()?(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()):ye.critical("Autocapture unavailable: missing required DOM APIs")},xe.prototype.getFullConfig=function(){var t=this.mp.get_config(al);return t?p.isObject(t)?p.extend({},Le,t):Le:{}},xe.prototype.getConfig=function(t){return this.getFullConfig()[t]},xe.prototype.currentUrlBlocked=function(){var t,r=p.info.currentUrl(),e=this.getConfig(id)||[];if(e.length){var n=!1;for(t=0;t<e.length;t++){var i=e[t];try{if(r.match(i)){n=!0;break}}catch(l){return ye.critical("Error while checking block URL regex: "+i,l),!0}}if(!n)return!0}var s=this.getConfig(cd)||[];if(!s||!s.length)return!1;for(t=0;t<s.length;t++)try{if(r.match(s[t]))return!0}catch(l){return ye.critical("Error while checking block URL regex: "+s[t],l),!0}return!1},xe.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(al)?this.getConfig(pd):this.mp.get_config("track_pageview")},xe.prototype.trackDomEvent=function(t,r){if(!this.currentUrlBlocked()){var e=this.mp.is_recording_heatmap_data()&&(r===sl&&!this.getConfig(ni)||r===ll&&!this._getClickTrackingConfig(oi)||r===cl&&!this._getClickTrackingConfig(ii)),n=Gm(t,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(nd),blockAttrs:this.getConfig(od),blockElementCallback:this.getConfig(ad),blockSelectors:this.getConfig(sd),captureExtraAttrs:this.getConfig(ld),captureTextContent:this.getConfig(ud),capturedForHeatMap:e});n&&(p.extend(n,Lr),this.mp.track(r,n))}},xe.prototype.initPageListeners=function(){if(R.removeEventListener(Yc,this.listenerPopstate),R.removeEventListener(ia,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(ai)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){R.dispatchEvent(new Event(Lt))},this.listenerHashchange=function(){R.dispatchEvent(new Event(Lt))},R.addEventListener(Yc,this.listenerPopstate),R.addEventListener(ia,this.listenerHashchange);var t=R.history.pushState;typeof t=="function"&&(R.history.pushState=function(e,n,i){t.call(R.history,e,n,i),R.dispatchEvent(new Event(Lt))});var r=R.history.replaceState;typeof r=="function"&&(R.history.replaceState=function(e,n,i){r.call(R.history,e,n,i),R.dispatchEvent(new Event(Lt))})}},xe.prototype._getClickTrackingConfig=function(t){var r=this.getConfig(t);return r?r===!0?{}:typeof r=="object"?r:{}:null},xe.prototype._trackPageLeave=function(t,r,e){if(!this.hasTrackedScrollSession&&(this.getConfig(ai)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(Q.documentElement.clientHeight,R.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(e-n)*100),s=Math.round(n/e*100);e<=n&&(i=100,s=100);var l=p.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:s,$scroll_height:e,$event_type:t.type,$current_url:r||p.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(Q.documentElement.clientWidth,R.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Lr);this.mp.track("$mp_page_leave",l,{transport:"sendBeacon"})}},xe.prototype._initScrollDepthTracking=function(){if(R.removeEventListener(oa,this.listenerScrollDepth),R.removeEventListener(bi,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){ye.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(Q.documentElement.clientHeight,R.innerHeight||0);var t=nl((function(){if(!this.currentUrlBlocked()){var r=Math.max(Q.documentElement.clientHeight,R.innerHeight||0)+R.scrollY;r>this.maxScrollViewDepth&&(this.maxScrollViewDepth=r),this.previousScrollHeight=Q.body.scrollHeight}}).bind(this));this.listenerScrollDepth=t.listener,R.addEventListener(t.eventType,this.listenerScrollDepth)}},xe.prototype.initClickTracking=function(){R.removeEventListener(At,this.listenerClick),(this.getConfig(ni)||this.mp.get_config("record_heatmap_data"))&&(ye.log("Initializing click tracking"),this.listenerClick=(function(t){(this.getConfig(ni)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(t,sl)}).bind(this),R.addEventListener(At,this.listenerClick))},xe.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(ii)||this.mp.get_config("record_heatmap_data")?(ye.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new mt((function(t){this.trackDomEvent(t,cl)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(t){var r=this._getClickTrackingConfig(ii);if((r||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=r||{};e.timeout_ms||(e.timeout_ms=500),this._deadClickTracker.trackClick(t,e)}}).bind(this),R.addEventListener(At,this.listenerDeadClick))):this.stopDeadClickTracking()},xe.prototype.initInputTracking=function(){R.removeEventListener(sn,this.listenerChange),this.getConfig(la)&&(ye.log("Initializing input tracking"),this.listenerChange=(function(t){this.getConfig(la)&&this.trackDomEvent(t,"$mp_input_change")}).bind(this),R.addEventListener(sn,this.listenerChange))},xe.prototype.initPageviewTracking=function(){if(R.removeEventListener(Lt,this.listenerLocationchange),this.pageviewTrackingConfig()){ye.log("Initializing pageview tracking");var t="",r=!1;this.currentUrlBlocked()||(r=this.mp.track_pageview(Lr)),r&&(t=p.info.currentUrl()),this.listenerLocationchange=on((function(){if(!this.currentUrlBlocked()){var e=p.info.currentUrl(),n=!1,i=e.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();s===rd?n=e!==t:s==="url-with-path-and-query-string"?n=e.split("#")[0]!==t.split("#")[0]:s==="url-with-path"&&(n=i),n&&(this.mp.track_pageview(Lr)&&(t=e),i&&(this.lastScrollCheckpoint=0,ye.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),R.addEventListener(Lt,this.listenerLocationchange)}},xe.prototype.initRageClickTracking=function(){R.removeEventListener(At,this.listenerRageClick),(this._getClickTrackingConfig(oi)||this.mp.get_config("record_heatmap_data"))&&(ye.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new td),this.listenerRageClick=(function(t){var r=this._getClickTrackingConfig(oi);(r||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,r)&&this.trackDomEvent(t,ll))}).bind(this),R.addEventListener(At,this.listenerRageClick))},xe.prototype.initScrollTracking=function(){if(R.removeEventListener(bi,this.listenerScroll),R.removeEventListener(oa,this.listenerScroll),this.getConfig(ua)){ye.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=nl((function(){if(this.getConfig(ua)&&!this.currentUrlBlocked()){var r=this.getConfig(dd),e=(this.getConfig(hd)||[]).slice().sort((function(a,c){return a-c})),n=R.scrollY,i=p.extend({$scroll_top:n},Lr);try{var s=Q.body.scrollHeight,l=Math.round(n/(s-R.innerHeight)*100);if(i.$scroll_height=s,i.$scroll_percentage=l,l>this.lastScrollCheckpoint)for(var h=0;h<e.length;h++){var o=e[h];l>=o&&this.lastScrollCheckpoint<o&&(i.$scroll_checkpoint=o,this.lastScrollCheckpoint=o,r=!0)}}catch(a){ye.critical("Error while calculating scroll percentage",a)}r&&this.mp.track("$mp_scroll",i)}}).bind(this));this.listenerScroll=t.listener,R.addEventListener(t.eventType,this.listenerScroll)}},xe.prototype.initSubmitTracking=function(){R.removeEventListener(ki,this.listenerSubmit),this.getConfig(da)&&(ye.log("Initializing submit tracking"),this.listenerSubmit=(function(t){this.getConfig(da)&&this.trackDomEvent(t,"$mp_submit")}).bind(this),R.addEventListener(ki,this.listenerSubmit))},xe.prototype.initPageLeaveTracking=function(){if(Q.removeEventListener(Xc,this.listenerPageLeaveVisibilitychange),R.removeEventListener(Lt,this.listenerPageLeaveLocationchange),R.removeEventListener(Jc,this.listenerPageLoad),this.getConfig(ai)||this.mp.get_config("record_heatmap_data")){ye.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=p.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=Q.body.scrollHeight}).bind(this),R.addEventListener(Jc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=on((function(r){if(!this.currentUrlBlocked()){var e=p.info.currentUrl();e!==t&&(this._trackPageLeave(r,t,this.previousScrollHeight),t=e,this.maxScrollViewDepth=Math.max(Q.documentElement.clientHeight,R.innerHeight||0),this.previousScrollHeight=Q.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),R.addEventListener(Lt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(r){Q.hidden&&this._trackPageLeave(r,t,this.previousScrollHeight)}).bind(this),Q.addEventListener(Xc,this.listenerPageLeaveVisibilitychange)}},xe.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(R.removeEventListener(At,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},zu(xe);var Xe=er("flags"),jn="flags",si="context",ha={};ha[si]={};var ae=function(t){this.fetch=R.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc};ae.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):Xe.critical("Feature Flags unavailable: missing minimum required APIs")},ae.prototype.getFullConfig=function(){var t=this.getMpConfig(jn);return t?p.isObject(t)?p.extend({},ha,t):ha:{}},ae.prototype.getConfig=function(t){return this.getFullConfig()[t]},ae.prototype.isSystemEnabled=function(){return!!this.getMpConfig(jn)},ae.prototype.updateContext=function(t,r){if(!this.isSystemEnabled())return Xe.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var e=this.getMpConfig(jn);p.isObject(e)||(e={});var n=r&&r.replace?{}:this.getConfig(si);return e[si]=p.extend({},n,t),this.setMpConfig(jn,e),this.fetchFlags()},ae.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Xe.error("Feature Flags not enabled"),!!this.flags},ae.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),r=this.getMpProperty("$device_id"),e="00-"+p.UUID().replace(/-/g,"")+"-"+p.UUID().replace(/-/g,"").substring(0,16)+"-01";Xe.log("Fetching flags for distinct ID: "+t);var n=p.extend({distinct_id:t,device_id:r},this.getConfig(si)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",ot.LIB_VERSION);var s=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(R,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:e}}).then((function(l){return this.markFetchComplete(),l.json().then((function(h){var o=h.flags;if(!o)throw new Error("No flags in API response");var a=new Map;p.each(o,(function(c,u){a.set(u,{key:c.variant_key,value:c.variant_value,experiment_id:c.experiment_id,is_experiment_active:c.is_experiment_active,is_qa_tester:c.is_qa_tester})})),this.flags=a,this._traceparent=e}).bind(this)).catch((function(h){this.markFetchComplete(),Xe.error(h)}).bind(this))}).bind(this)).catch((function(l){this.markFetchComplete(),Xe.error(l)}).bind(this)),this.fetchPromise},ae.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Xe.error("Fetch in progress started time not set, cannot mark fetch complete")},ae.prototype.getVariant=function(t,r){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(t,r)}).bind(this)).catch((function(e){return Xe.error(e),r})):new Promise((function(e){Xe.critical("Feature Flags not initialized"),e(r)}))},ae.prototype.getVariantSync=function(t,r){if(!this.areFlagsReady())return Xe.log("Flags not loaded yet"),r;var e=this.flags.get(t);return e?(this.trackFeatureCheck(t,e),e):(Xe.log('No flag found: "'+t+'"'),r)},ae.prototype.getVariantValue=function(t,r){return this.getVariant(t,{value:r}).then((function(e){return e.value})).catch((function(e){return Xe.error(e),r}))},ae.prototype.getFeatureData=function(t,r){return Xe.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(t,r)},ae.prototype.getVariantValueSync=function(t,r){return this.getVariantSync(t,{value:r}).value},ae.prototype.isEnabled=function(t,r){return this.getVariantValue(t).then((function(){return this.isEnabledSync(t,r)}).bind(this)).catch((function(e){return Xe.error(e),r}))},ae.prototype.isEnabledSync=function(t,r){r=r||!1;var e=this.getVariantValueSync(t,r);return e!==!0&&e!==!1&&(Xe.error('Feature flag "'+t+'" value: '+e+" is not a boolean; returning fallback value: "+r),e=r),e},ae.prototype.trackFeatureCheck=function(t,r){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var e={"Experiment name":t,"Variant name":r.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};r.experiment_id!=="undefined"&&(e.$experiment_id=r.experiment_id),r.is_experiment_active!=="undefined"&&(e.$is_experiment_active=r.is_experiment_active),r.is_qa_tester!=="undefined"&&(e.$is_qa_tester=r.is_qa_tester),this.track("$experiment_started",e)}},ae.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"},zu(ae),ae.prototype.are_flags_ready=ae.prototype.areFlagsReady,ae.prototype.get_variant=ae.prototype.getVariant,ae.prototype.get_variant_sync=ae.prototype.getVariantSync,ae.prototype.get_variant_value=ae.prototype.getVariantValue,ae.prototype.get_variant_value_sync=ae.prototype.getVariantValueSync,ae.prototype.is_enabled=ae.prototype.isEnabled,ae.prototype.is_enabled_sync=ae.prototype.isEnabledSync,ae.prototype.update_context=ae.prototype.updateContext,ae.prototype.get_feature_data=ae.prototype.getFeatureData;var Et=function(){};Et.prototype.create_properties=function(){},Et.prototype.event_handler=function(){},Et.prototype.after_track_handler=function(){},Et.prototype.init=function(t){return this.mp=t,this},Et.prototype.track=function(t,r,e,n){var i=this,s=p.dom_query(t);if(s.length!==0)return p.each(s,(function(l){p.register_event(l,this.override_event,(function(h){var o={},a=i.create_properties(e,this),c=i.mp.get_config("track_links_timeout");i.event_handler(h,this,o),window.setTimeout(i.track_callback(n,a,o,!0),c),i.mp.track(r,a,i.track_callback(n,a,o))}))}),this),!0;se.error("The DOM query ("+t+") returned 0 elements")},Et.prototype.track_callback=function(t,r,e,n){n=n||!1;var i=this;return function(){e.callback_fired||(e.callback_fired=!0,t&&t(n,r)===!1||i.after_track_handler(r,e,n))}},Et.prototype.create_properties=function(t,r){return typeof t=="function"?t(r):p.extend({},t)};var _r=function(){this.override_event="click"};p.inherit(_r,Et),_r.prototype.create_properties=function(t,r){var e=_r.superclass.create_properties.apply(this,arguments);return r.href&&(e.url=r.href),e},_r.prototype.event_handler=function(t,r,e){e.new_tab=t.which===2||t.metaKey||t.ctrlKey||r.target==="_blank",e.href=r.href,e.new_tab||t.preventDefault()},_r.prototype.after_track_handler=function(t,r){r.new_tab||setTimeout((function(){window.location=r.href}),0)};var ci=function(){this.override_event="submit"};p.inherit(ci,Et),ci.prototype.event_handler=function(t,r,e){e.element=r,t.preventDefault()},ci.prototype.after_track_handler=function(t,r){setTimeout((function(){r.element.submit()}),0)};var jt="$set",Er="$set_once",lt="$unset",Zt="$add",vt="$append",Jt="$union",It="$remove",fd={set_action:function(t,r){var e={},n={};return p.isObject(t)?p.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=i)}),this):n[t]=r,e[jt]=n,e},unset_action:function(t){var r={},e=[];return p.isArray(t)||(t=[t]),p.each(t,(function(n){this._is_reserved_property(n)||e.push(n)}),this),r[lt]=e,r},set_once_action:function(t,r){var e={},n={};return p.isObject(t)?p.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=i)}),this):n[t]=r,e[Er]=n,e},union_action:function(t,r){var e={},n={};return p.isObject(t)?p.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=p.isArray(i)?i:[i])}),this):n[t]=p.isArray(r)?r:[r],e[Jt]=n,e},append_action:function(t,r){var e={},n={};return p.isObject(t)?p.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=i)}),this):n[t]=r,e[vt]=n,e},remove_action:function(t,r){var e={},n={};return p.isObject(t)?p.each(t,(function(i,s){this._is_reserved_property(s)||(n[s]=i)}),this):n[t]=r,e[It]=n,e},delete_action:function(){var t={$delete:""};return t}},we=function(){};p.extend(we.prototype,fd),we.prototype._init=function(t,r,e){this._mixpanel=t,this._group_key=r,this._group_id=e},we.prototype.set=lr((function(t,r,e){var n=this.set_action(t,r);return p.isObject(t)&&(e=r),this._send_request(n,e)})),we.prototype.set_once=lr((function(t,r,e){var n=this.set_once_action(t,r);return p.isObject(t)&&(e=r),this._send_request(n,e)})),we.prototype.unset=lr((function(t,r){var e=this.unset_action(t);return this._send_request(e,r)})),we.prototype.union=lr((function(t,r,e){p.isObject(t)&&(e=r);var n=this.union_action(t,r);return this._send_request(n,e)})),we.prototype.delete=lr((function(t){var r=this.delete_action();return this._send_request(r,t)})),we.prototype.remove=lr((function(t,r,e){var n=this.remove_action(t,r);return this._send_request(n,e)})),we.prototype._send_request=function(t,r){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var e=p.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:e,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},r)},we.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"},we.prototype._get_config=function(t){return this._mixpanel.get_config(t)},we.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},we.prototype.remove=we.prototype.remove,we.prototype.set=we.prototype.set,we.prototype.set_once=we.prototype.set_once,we.prototype.union=we.prototype.union,we.prototype.unset=we.prototype.unset,we.prototype.toString=we.prototype.toString;var K=function(){};p.extend(K.prototype,fd),K.prototype._init=function(t){this._mixpanel=t},K.prototype.set=Mt((function(t,r,e){var n=this.set_action(t,r);return p.isObject(t)&&(e=r),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[jt]=p.extend({},p.info.people_properties(),n[jt]),this._send_request(n,e)})),K.prototype.set_once=Mt((function(t,r,e){var n=this.set_once_action(t,r);return p.isObject(t)&&(e=r),this._send_request(n,e)})),K.prototype.unset=Mt((function(t,r){var e=this.unset_action(t);return this._send_request(e,r)})),K.prototype.increment=Mt((function(t,r,e){var n={},i={};return p.isObject(t)?(p.each(t,(function(s,l){if(!this._is_reserved_property(l)){if(isNaN(parseFloat(s)))return void se.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[l]=s}}),this),e=r):(p.isUndefined(r)&&(r=1),i[t]=r),n[Zt]=i,this._send_request(n,e)})),K.prototype.append=Mt((function(t,r,e){p.isObject(t)&&(e=r);var n=this.append_action(t,r);return this._send_request(n,e)})),K.prototype.remove=Mt((function(t,r,e){p.isObject(t)&&(e=r);var n=this.remove_action(t,r);return this._send_request(n,e)})),K.prototype.union=Mt((function(t,r,e){p.isObject(t)&&(e=r);var n=this.union_action(t,r);return this._send_request(n,e)})),K.prototype.track_charge=Mt((function(){se.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")})),K.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},K.prototype.delete_user=function(){if(this._identify_called()){var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)}se.error("mixpanel.people.delete_user() requires you to call identify() first")},K.prototype.toString=function(){return this._mixpanel.toString()+".people"},K.prototype._send_request=function(t,r){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var e=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");e&&(t.$device_id=e),n&&(t.$user_id=n),i&&(t.$had_persisted_distinct_id=i);var s=p.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},r):(this._enqueue(t),p.isUndefined(r)||(this._get_config("verbose")?r({status:-1,error:null}):r(-1)),p.truncate(s,255))},K.prototype._get_config=function(t){return this._mixpanel.get_config(t)},K.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},K.prototype._enqueue=function(t){jt in t?this._mixpanel.persistence._add_to_people_queue(jt,t):Er in t?this._mixpanel.persistence._add_to_people_queue(Er,t):lt in t?this._mixpanel.persistence._add_to_people_queue(lt,t):Zt in t?this._mixpanel.persistence._add_to_people_queue(Zt,t):vt in t?this._mixpanel.persistence._add_to_people_queue(vt,t):It in t?this._mixpanel.persistence._add_to_people_queue(It,t):Jt in t?this._mixpanel.persistence._add_to_people_queue(Jt,t):se.error("Invalid call to _enqueue():",t)},K.prototype._flush_one_queue=function(t,r,e,n){var i=this,s=p.extend({},this._mixpanel.persistence.load_queue(t)),l=s;p.isUndefined(s)||!p.isObject(s)||p.isEmptyObject(s)||(i._mixpanel.persistence._pop_from_people_queue(t,s),i._mixpanel.persistence.save(),n&&(l=n(s)),r.call(i,l,(function(h,o){h===0&&i._mixpanel.persistence._add_to_people_queue(t,s),p.isUndefined(e)||e(h,o)})))},K.prototype._flush=function(t,r,e,n,i,s,l){var h=this;this._flush_one_queue(jt,this.set,t),this._flush_one_queue(Er,this.set_once,n),this._flush_one_queue(lt,this.unset,s,(function(g){return p.keys(g)})),this._flush_one_queue(Zt,this.increment,r),this._flush_one_queue(Jt,this.union,i);var o=this._mixpanel.persistence.load_queue(vt);if(!p.isUndefined(o)&&p.isArray(o)&&o.length)for(var a,c=function(g,y){g===0&&h._mixpanel.persistence._add_to_people_queue(vt,a),p.isUndefined(e)||e(g,y)},u=o.length-1;u>=0;u--)o=this._mixpanel.persistence.load_queue(vt),a=o.pop(),h._mixpanel.persistence.save(),p.isEmptyObject(a)||h.append(a,c);var d=this._mixpanel.persistence.load_queue(It);if(!p.isUndefined(d)&&p.isArray(d)&&d.length)for(var f,_=function(g,y){g===0&&h._mixpanel.persistence._add_to_people_queue(It,f),p.isUndefined(l)||l(g,y)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue(It),f=d.pop(),h._mixpanel.persistence.save(),p.isEmptyObject(f)||h.remove(f,_)},K.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},K.prototype.set=K.prototype.set,K.prototype.set_once=K.prototype.set_once,K.prototype.unset=K.prototype.unset,K.prototype.increment=K.prototype.increment,K.prototype.append=K.prototype.append,K.prototype.remove=K.prototype.remove,K.prototype.union=K.prototype.union,K.prototype.track_charge=K.prototype.track_charge,K.prototype.clear_charges=K.prototype.clear_charges,K.prototype.delete_user=K.prototype.delete_user,K.prototype.toString=K.prototype.toString;var wi,pa="__mps",fa="__mpso",ma="__mpus",_a="__mpa",ga="__mpap",va="__mpr",ya="__mpu",md="$people_distinct_id",li="__alias",zr="__timers",Jm=[pa,fa,ma,_a,ga,va,ya,md,li,zr],ne=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var r=t.persistence;r!=="cookie"&&r!=="localStorage"&&(se.critical("Unknown persistence type "+r+"; falling back to cookie"),r=t.persistence="cookie"),r==="localStorage"&&p.localStorage.is_supported()?this.storage=p.localStorage:this.storage=p.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};ne.prototype.properties=function(){var t={};return this.load(),p.each(this.props,(function(r,e){p.include(Jm,e)||(t[e]=r)})),t},ne.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=p.extend({},t))}},ne.prototype.upgrade=function(){var t,r;this.storage===p.localStorage?(t=p.cookie.parse(this.name),p.cookie.remove(this.name),p.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===p.cookie&&(r=p.localStorage.parse(this.name),p.localStorage.remove(this.name),r&&this.register_once(r))},ne.prototype.save=function(){this.disabled||this.storage.set(this.name,Sr(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ne.prototype.load_prop=function(t){return this.load(),this.props[t]},ne.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ne.prototype.clear=function(){this.remove(),this.props={}},ne.prototype.register_once=function(t,r,e){return!!p.isObject(t)&&(r===void 0&&(r="None"),this.expire_days=e===void 0?this.default_expiry:e,this.load(),p.each(t,(function(n,i){this.props.hasOwnProperty(i)&&this.props[i]!==r||(this.props[i]=n)}),this),this.save(),!0)},ne.prototype.register=function(t,r){return!!p.isObject(t)&&(this.expire_days=r===void 0?this.default_expiry:r,this.load(),p.extend(this.props,t),this.save(),!0)},ne.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},ne.prototype.update_search_keyword=function(t){this.register(p.info.searchInfo(t))},ne.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:p.info.referringDomain(t)||"$direct"},"")},ne.prototype.get_referrer_info=function(){return p.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ne.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},ne.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},ne.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},ne.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},ne.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},ne.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ne.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},ne.prototype._add_to_people_queue=function(t,r){var e=this._get_queue_key(t),n=r[t],i=this._get_or_create_queue(jt),s=this._get_or_create_queue(Er),l=this._get_or_create_queue(lt),h=this._get_or_create_queue(Zt),o=this._get_or_create_queue(Jt),a=this._get_or_create_queue(It,[]),c=this._get_or_create_queue(vt,[]);e===pa?(p.extend(i,n),this._pop_from_people_queue(Zt,n),this._pop_from_people_queue(Jt,n),this._pop_from_people_queue(lt,n)):e===fa?(p.each(n,(function(u,d){d in s||(s[d]=u)})),this._pop_from_people_queue(lt,n)):e===ma?p.each(n,(function(u){p.each([i,s,h,o],(function(d){u in d&&delete d[u]})),p.each(c,(function(d){u in d&&delete d[u]})),l[u]=!0})):e===_a?(p.each(n,(function(u,d){d in i?i[d]+=u:(d in h||(h[d]=0),h[d]+=u)}),this),this._pop_from_people_queue(lt,n)):e===ya?(p.each(n,(function(u,d){p.isArray(u)&&(d in o||(o[d]=[]),p.each(u,(function(f){p.include(o[d],f)||o[d].push(f)})))})),this._pop_from_people_queue(lt,n)):e===va?(a.push(n),this._pop_from_people_queue(vt,n)):e===ga&&(c.push(n),this._pop_from_people_queue(lt,n)),se.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),se.log(r),this.save()},ne.prototype._pop_from_people_queue=function(t,r){var e=this.props[this._get_queue_key(t)];p.isUndefined(e)||p.each(r,(function(n,i){t===vt||t===It?p.each(e,(function(s){s[i]===n&&delete s[i]})):delete e[i]}),this)},ne.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},ne.prototype._get_queue_key=function(t){return t===jt?pa:t===Er?fa:t===lt?ma:t===Zt?_a:t===vt?ga:t===It?va:t===Jt?ya:void se.error("Invalid queue:",t)},ne.prototype._get_or_create_queue=function(t,r){var e=this._get_queue_key(t);return r=p.isUndefined(r)?{}:r,this.props[e]||(this.props[e]=r)},ne.prototype.set_event_timer=function(t,r){var e=this.load_prop(zr)||{};e[t]=r,this.props[zr]=e,this.save()},ne.prototype.remove_event_timer=function(t){var r=(this.load_prop(zr)||{})[t];return p.isUndefined(r)||(delete this.props[zr][t],this.save()),r};var We,_d=function(t,r){throw new Error(t+" not available in this build.")},it="mixpanel",gd="base64",ba="$device:",gr=R.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,vd=!gr&&_t.indexOf("MSIE")===-1&&_t.indexOf("Mozilla")===-1,ui=null;Rt.sendBeacon&&(ui=function(){return Rt.sendBeacon.apply(Rt,arguments)});var yd={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},ul={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:yd,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:gd,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:qt,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:qt,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Jr,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},bd=!1,S=function(){},ka=function(t,r,e){var n,i=e===it?We:We[e];if(i&&wi===0)n=i;else{if(i&&!p.isArray(i))return void se.error("You have already initialized "+e);n=new S}if(n._cached_groups={},n._init(t,r,e),n.people=new K,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var s=p.info.campaignParams(null),l={},h=!1;p.each(s,(function(a,c){l["initial_"+c]=a,a&&(h=!0)})),h&&n.people.set_once(l)}ot.DEBUG=ot.DEBUG||n.get_config("debug");var o=wi===0?"module":"snippet";return R.dispatchEvent(new R.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:o,token:t,name:e,info:p.info}})),!p.isUndefined(i)&&p.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};S.prototype.init=function(t,r,e){if(p.isUndefined(e))this.report_error("You must name your new library: init(token, config, name)");else{if(e!==it){var n=ka(t,r,e);return We[e]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},S.prototype._init=function(t,r,e){r=r||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in r||(r.api_host||ul.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(p.extend({},ul,n,r,{name:e,token:t,callback_fn:(e===it?e:it+"."+e)+"._jsc"})),this._jsc=qt,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(p.localStorage.is_supported(!0)&&gr){if(this.init_batchers(),ui&&R.addEventListener){var i=p.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);R.addEventListener("pagehide",(function(l){l.persisted&&i()})),R.addEventListener("visibilitychange",(function(){Q.visibilityState==="hidden"&&i()}))}}else this._batch_requests=!1,se.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),p.each(this.get_batcher_configs(),(function(l){se.log("Clearing batch queue "+l.queue_key),p.localStorage.remove(l.queue_key)}));this.persistence=this.cookie=new ne(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=p.UUID();this.get_distinct_id()||this.register_once({distinct_id:ba+s,$device_id:s},""),this.flags=new ae({getFullApiRoute:p.bind((function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags}),this),getConfigFunc:p.bind(this.get_config,this),setConfigFunc:p.bind(this.set_config,this),getPropertyFunc:p.bind(this.get_property,this),trackingFunc:p.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new xe(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},S.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))se.log("Tab ID initialization skipped due to disable_persistence config");else if(p.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),r="mp_tab_id_"+t,e="mp_gen_new_tab_id_"+t;!p.sessionStorage.get(e)&&p.sessionStorage.get(r)||p.sessionStorage.set(r,"$tab-"+p.UUID()),p.sessionStorage.set(e,"1"),this.tab_id=p.sessionStorage.get(r),R.addEventListener("beforeunload",(function(){p.sessionStorage.remove(e)}))}catch(n){this.report_error("Error initializing tab id",n)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},S.prototype.get_tab_id=function(){return this.tab_id||null},S.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return se.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var t=new ct(Wa),r=this.get_tab_id();return t.init().then((function(){return t.getAll()})).then((function(e){for(var n=0;n<e.length;n++)if(na(e[n])||e[n].tabId===r)return!0;return!1})).catch(p.bind((function(e){this.report_error("Error checking recording registry",e)}),this))},S.prototype._check_and_start_session_recording=Ft((function(t){if(R.MutationObserver){var r=p.bind((function(n){var i=p.bind((function(){this._recorder=this._recorder||new R.__mp_recorder(this),this._recorder.resumeRecording(n)}),this);p.isUndefined(R.__mp_recorder)?_d(this.get_config("recorder_src"),i):i()}),this),e=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");t||e?r(!0):this._should_load_recorder().then((function(n){n&&r(!1)}))}else se.critical("Browser does not support MutationObserver; skipping session recording")})),S.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},S.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},S.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},S.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},S.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},S.prototype.get_session_recording_properties=function(){var t={},r=this._get_session_replay_id();return r&&(t.$mp_replay_id=r),t},S.prototype.get_session_replay_url=function(){var t=null,r=this._get_session_replay_id();return r&&(t="https://mixpanel.com/projects/replay-redirect?"+p.HTTPBuildQuery({replay_id:r,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),t},S.prototype._get_session_replay_id=function(){var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},S.prototype.__get_recorder=function(){return this._recorder},S.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var t=p.info.campaignParams(null);p.each(t,(function(r,e){this.unregister(e)}).bind(this))}},S.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Q.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(p.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Q.referrer)},S.prototype._dom_loaded=function(){p.each(this.__dom_loaded_queue,(function(t){this._track_dom.apply(this,t)}),this),this.has_opted_out_tracking()||p.each(this.__request_queue,(function(t){this._send_request.apply(this,t)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},S.prototype._track_dom=function(t,r){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!bd)return this.__dom_loaded_queue.push([t,r]),!1;var e=new t().init(this);return e.track.apply(e,r)},S.prototype._prepare_callback=function(t,r){if(p.isUndefined(t))return null;if(gr)return function(s){t(s,r)};var e=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return e[n]=function(s){delete e[n],t(s,r)},i},S.prototype._send_request=function(t,r,e,n){var i=!0;if(vd)return this.__request_queue.push(arguments),i;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},l=null;n||!p.isFunction(e)&&typeof e!="string"||(n=e,e=null),e=p.extend(s,e||{}),gr||(e.method="GET");var h=e.method==="POST",o=ui&&h&&e.transport.toLowerCase()==="sendbeacon",a=e.verbose;r.verbose&&(a=!0),this.get_config("test")&&(r.test=1),a&&(r.verbose=1),this.get_config("img")&&(r.img=1),gr||(n?r.callback=n:(a||this.get_config("test"))&&(r.callback="(function(){})")),r.ip=this.get_config("ip")?1:0,r._=new Date().getTime().toString(),h&&(l="data="+encodeURIComponent(r.data),delete r.data),p.extend(r,this.get_config("api_extra_query_params")),t+="?"+p.HTTPBuildQuery(r);var c=this;if("img"in r){var u=Q.createElement("img");u.src=t,Q.body.appendChild(u)}else if(o){try{i=ui(t,l)}catch(y){c.report_error(y),i=!1}try{n&&n(i?1:0)}catch(y){c.report_error(y)}}else if(gr)try{var d=new XMLHttpRequest;d.open(e.method,t,!0);var f=this.get_config("xhr_headers");if(h&&(f["Content-Type"]="application/x-www-form-urlencoded"),p.each(f,(function(y,b){d.setRequestHeader(b,y)})),e.timeout_ms&&d.timeout!==void 0){d.timeout=e.timeout_ms;var _=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var y;if(d.readyState===4){if(d.status===200){if(n)if(a){var b;try{b=p.JSONDecode(d.responseText)}catch(E){if(c.report_error(E),!e.ignore_json_errors)return;b=d.responseText}n(b)}else n(Number(d.responseText))}else if(y=d.timeout&&!d.status&&new Date().getTime()-_>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,c.report_error(y),n)if(a){var k=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:y,retryAfter:k["Retry-After"]})}else n(0)}},d.send(l)}catch(y){c.report_error(y),i=!1}else{var m=Q.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=t;var g=Q.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},S.prototype._execute_array=function(t){var r,e=[],n=[],i=[];p.each(t,(function(l){l&&(r=l[0],p.isArray(r)?i.push(l):typeof l=="function"?l.call(this):p.isArray(l)&&r==="alias"?e.push(l):p.isArray(l)&&r.indexOf("track")!==-1&&typeof this[r]=="function"?i.push(l):n.push(l))}),this);var s=function(l,h){p.each(l,(function(o){if(p.isArray(o[0])){var a=h;p.each(o,(function(c){a=a[c[0]].apply(a,c.slice(1))}))}else this[o[0]].apply(this,o.slice(1))}),h)};s(e,this),s(n,this),s(i,this)},S.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},S.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs},S.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=p.bind((function(e){return new nt(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:p.bind((function(n,i,s){var l=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+l[e.api_name],this._encode_data_for_request(n),i,this._prepare_callback(s,n))}),this),beforeSendHook:p.bind((function(n){var i=this._run_hook("before_send_"+e.type,n);return i?i[0]:null}),this),stopAllBatchingFunc:p.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),r=this.get_batcher_configs();this.request_batchers={events:t(r.events),people:t(r.people),groups:t(r.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},S.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,p.each(this.request_batchers,(function(t){t.start()})))},S.prototype.stop_batch_senders=function(){this._batch_requests=!1,p.each(this.request_batchers,(function(t){t.stop(),t.clear()}))},S.prototype.push=function(t){this._execute_array([t])},S.prototype.disable=function(t){t===void 0?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},S.prototype._encode_data_for_request=function(t){var r=Sr(t);return this.get_config("api_payload_format")===gd&&(r=p.base64Encode(r)),{data:r}},S.prototype._track_or_batch=function(t,r){var e=p.truncate(t.data,255),n=t.endpoint,i=t.batcher,s=t.should_send_immediately,l=t.send_request_options||{};r=r||qt;var h=!0,o=p.bind((function(){return l.skip_hooks||(e=this._run_hook("before_send_"+t.type,e))&&(e=e[0]),e?(se.log("MIXPANEL REQUEST:"),se.log(e),this._send_request(n,this._encode_data_for_request(e),l,this._prepare_callback(r,e))):null}),this);return this._batch_requests&&!s?i.enqueue(e).then((function(a){a?r(1,e):o()})):h=o(),h&&e},S.prototype.track=Ft((function(t,r,e,n){var i;if(!e||!e.skip_hooks){if((i=this._run_hook("before_track",t,r))===null)return;t=i[0],r=i[1]}n||typeof e!="function"||(n=e,e=null);var s=(e=e||{}).transport;s&&(e.transport=s);var l=e.send_immediately;if(typeof n!="function"&&(n=qt),p.isUndefined(t))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(t)){(r=p.extend({},r)).token=this.get_config("token");var h=this.persistence.remove_event_timer(t);if(!p.isUndefined(h)){var o=new Date().getTime()-h;r.$duration=parseFloat((o/1e3).toFixed(3))}this._set_default_superprops();var a=this.get_config("track_marketing")?p.info.marketingParams():{};r=p.extend({},p.info.properties({mp_loader:this.get_config("mp_loader")}),a,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),r);var c=this.get_config("property_blacklist");p.isArray(c)?p.each(c,(function(d){delete r[d]})):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:t,properties:r};return i=this._track_or_batch({type:"events",data:u,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:l,send_request_options:e},n)}n(0)}})),S.prototype.set_group=Ft((function(t,r,e){p.isArray(r)||(r=[r]);var n={};return n[t]=r,this.register(n),this.people.set(t,r,e)})),S.prototype.add_group=Ft((function(t,r,e){var n=this.get_property(t),i={};return n===void 0?(i[t]=[r],this.register(i)):n.indexOf(r)===-1&&(n.push(r),i[t]=n,this.register(i)),this.people.union(t,r,e)})),S.prototype.remove_group=Ft((function(t,r,e){var n=this.get_property(t);if(n!==void 0){var i=n.indexOf(r);i>-1&&(n.splice(i,1),this.register({group_key:n})),n.length===0&&this.unregister(t)}return this.people.remove(t,r,e)})),S.prototype.track_with_groups=Ft((function(t,r,e,n){var i=p.extend({},r||{});return p.each(e,(function(s,l){s!=null&&(i[l]=s)})),this.track(t,i,n)})),S.prototype._create_map_key=function(t,r){return t+"_"+JSON.stringify(r)},S.prototype._remove_group_from_cache=function(t,r){delete this._cached_groups[this._create_map_key(t,r)]},S.prototype.get_group=function(t,r){var e=this._create_map_key(t,r),n=this._cached_groups[e];return n!==void 0&&n._group_key===t&&n._group_id===r||((n=new we)._init(this,t,r),this._cached_groups[e]=n),n},S.prototype.track_pageview=Ft((function(t,r){typeof t!="object"&&(t={});var e=(r=r||{}).event_name||"$mp_web_page_view",n=p.extend(p.info.mpPageViewProperties(),p.info.campaignParams(),p.info.clickParams()),i=p.extend({},n,t);return this.track(e,i)})),S.prototype.track_links=function(){return this._track_dom.call(this,_r,arguments)},S.prototype.track_forms=function(){return this._track_dom.call(this,ci,arguments)},S.prototype.time_event=function(t){p.isUndefined(t)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var Ym={persistent:!0},mo=function(t){var r;return r=p.isObject(t)?t:p.isUndefined(t)?{}:{days:t},p.extend({},Ym,r)};S.prototype.register=function(t,r){var e=this._run_hook("before_register",t,r);if(e!==null){t=e[0],r=e[1];var n=mo(r);n.persistent?this.persistence.register(t,n.days):p.extend(this.unpersisted_superprops,t)}},S.prototype.register_once=function(t,r,e){var n=this._run_hook("before_register_once",t,r,e);if(n!==null){t=n[0],r=n[1],e=n[2];var i=mo(e);i.persistent?this.persistence.register_once(t,r,i.days):(r===void 0&&(r="None"),p.each(t,(function(s,l){this.unpersisted_superprops.hasOwnProperty(l)&&this.unpersisted_superprops[l]!==r||(this.unpersisted_superprops[l]=s)}),this))}},S.prototype.unregister=function(t,r){var e=this._run_hook("before_unregister",t,r);e!==null&&(t=e[0],r=e[1],(r=mo(r)).persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},S.prototype._register_single=function(t,r){var e={};e[t]=r,this.register(e)},S.prototype.identify=function(t,r,e,n,i,s,l,h){var o=this._run_hook("before_identify",t);if(o===null)return-1;t=o[0];var a=this.get_distinct_id();if(t&&a!==t){if(typeof t=="string"&&t.indexOf(ba)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var c=a;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}t!==a&&t!==this.get_property(li)&&(this.unregister(li),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(r,e,n,i,s,l,h),t!==a&&this.track("$identify",{distinct_id:t,$anon_distinct_id:a},{skip_hooks:!0}),t!==a&&this.flags.fetchFlags()},S.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=p.UUID();this.register_once({distinct_id:ba+t,$device_id:t},""),this._check_and_start_session_recording()},S.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},S.prototype.alias=function(t,r){if(t===this.get_property(md))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var e=this;return p.isUndefined(r)&&(r=this.get_distinct_id()),t!==r?(this._register_single(li,t),this.track("$create_alias",{alias:t,distinct_id:r},{skip_hooks:!0},(function(){e.identify(t)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},S.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},S.prototype.set_config=function(t){p.isObject(t)&&(p.extend(this.config,t),t.batch_size&&p.each(this.request_batchers,(function(r){r.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),ot.DEBUG=ot.DEBUG||this.get_config("debug"),("autocapture"in t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),p.isObject(t.hooks)&&(this.hooks={},p.each(t.hooks,(function(r,e){if(p.isFunction(r))this.hooks[e]=[r];else if(p.isArray(r)){this.hooks[e]=[];for(var n=0;n<r.length;n++)p.isFunction(r[n])||se.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(r[n])}else se.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")}),this)))},S.prototype.get_config=function(t){return this.config[t]},S.prototype._run_hook=function(t){var r=$t.call(arguments,1);return p.each(this.hooks[t],(function(e){if(r===null)return null;var n=e.apply(this,r);n===void 0?(this.report_error(t+" hook did not return a valid value"),r=null):(p.isArray(n)||(n=[n]),r.splice.apply(r,[0,n.length].concat(n)))}),this),r},S.prototype.get_property=function(t){return this.persistence.load_prop([t])},S.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")},S.prototype.toString=function(){var t=this.get_config("name");return t!==it&&(t=it+"."+t),t},S.prototype._event_is_disabled=function(t){return p.isBlockedUA(_t)||this._flags.disable_all_events||p.include(this.__disabled_events,t)},S.prototype._gdpr_init=function(){this.get_config("opt_out_tracking_persistence_type")==="localStorage"&&p.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!p.cookie.get("mp_optout")||(p.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},S.prototype._gdpr_update_persistence=function(t){var r;if(t&&t.clear_persistence)r=!0;else{if(!t||!t.enable_persistence)return;r=!1}this.get_config("disable_persistence")||this.persistence.disabled===r||this.persistence.set_disabled(r),r?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},S.prototype._gdpr_call_func=function(t,r){return r=p.extend({track:p.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},r),p.localStorage.is_supported()||(r.persistence_type="cookie"),t(this.get_config("token"),{track:r.track,trackEventName:r.track_event_name,trackProperties:r.track_properties,persistenceType:r.persistence_type,persistencePrefix:r.cookie_prefix,cookieDomain:r.cookie_domain,cookieExpiration:r.cookie_expiration,crossSiteCookie:r.cross_site_cookie,crossSubdomainCookie:r.cross_subdomain_cookie,secureCookie:r.secure_cookie,ignoreDnt:r.ignore_dnt})},S.prototype.opt_in_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(xm,t),this._gdpr_update_persistence(t)},S.prototype.opt_out_tracking=function(t){(t=p.extend({clear_persistence:!0,delete_user:!0},t)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Om,t),this._gdpr_update_persistence(t)},S.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(Dm,t)},S.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func($u,t)},S.prototype.clear_opt_in_out_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(Bm,t),this._gdpr_update_persistence(t)},S.prototype.report_error=function(t,r){se.error.apply(se.error,arguments);try{r||t instanceof Error||(t=new Error(t)),this.get_config("error_reporter")(t,r)}catch(e){se.error(e)}},S.prototype.add_hook=function(t,r){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(r)},S.prototype.remove_hook=function(t,r){var e;this.hooks[t]&&((e=this.hooks[t].indexOf(r))!==-1?this.hooks[t].splice(e,1):se.log("remove_hook failed. Matching hook was not found"))},S.prototype.init=S.prototype.init,S.prototype.reset=S.prototype.reset,S.prototype.disable=S.prototype.disable,S.prototype.time_event=S.prototype.time_event,S.prototype.track=S.prototype.track,S.prototype.track_links=S.prototype.track_links,S.prototype.track_forms=S.prototype.track_forms,S.prototype.track_pageview=S.prototype.track_pageview,S.prototype.register=S.prototype.register,S.prototype.register_once=S.prototype.register_once,S.prototype.unregister=S.prototype.unregister,S.prototype.identify=S.prototype.identify,S.prototype.alias=S.prototype.alias,S.prototype.name_tag=S.prototype.name_tag,S.prototype.set_config=S.prototype.set_config,S.prototype.get_config=S.prototype.get_config,S.prototype.get_api_host=S.prototype.get_api_host,S.prototype.get_property=S.prototype.get_property,S.prototype.get_distinct_id=S.prototype.get_distinct_id,S.prototype.toString=S.prototype.toString,S.prototype.opt_out_tracking=S.prototype.opt_out_tracking,S.prototype.opt_in_tracking=S.prototype.opt_in_tracking,S.prototype.has_opted_out_tracking=S.prototype.has_opted_out_tracking,S.prototype.has_opted_in_tracking=S.prototype.has_opted_in_tracking,S.prototype.clear_opt_in_out_tracking=S.prototype.clear_opt_in_out_tracking,S.prototype.get_group=S.prototype.get_group,S.prototype.set_group=S.prototype.set_group,S.prototype.add_group=S.prototype.add_group,S.prototype.remove_group=S.prototype.remove_group,S.prototype.add_hook=S.prototype.add_hook,S.prototype.remove_hook=S.prototype.remove_hook,S.prototype.track_with_groups=S.prototype.track_with_groups,S.prototype.start_batch_senders=S.prototype.start_batch_senders,S.prototype.stop_batch_senders=S.prototype.stop_batch_senders,S.prototype.start_session_recording=S.prototype.start_session_recording,S.prototype.stop_session_recording=S.prototype.stop_session_recording,S.prototype.pause_session_recording=S.prototype.pause_session_recording,S.prototype.resume_session_recording=S.prototype.resume_session_recording,S.prototype.get_session_recording_properties=S.prototype.get_session_recording_properties,S.prototype.get_session_replay_url=S.prototype.get_session_replay_url,S.prototype.get_tab_id=S.prototype.get_tab_id,S.prototype.DEFAULT_API_ROUTES=yd,S.prototype.__get_recorder=S.prototype.__get_recorder,ne.prototype.properties=ne.prototype.properties,ne.prototype.update_search_keyword=ne.prototype.update_search_keyword,ne.prototype.update_referrer_info=ne.prototype.update_referrer_info,ne.prototype.get_cross_subdomain=ne.prototype.get_cross_subdomain,ne.prototype.clear=ne.prototype.clear;var vr={},Xm=function(){We.init=function(t,r,e){if(e)return We[e]||(We[e]=vr[e]=ka(t,r,e),We[e]._loaded()),We[e];var n=We;vr[it]?n=vr[it]:t&&((n=ka(t,r,it))._loaded(),vr[it]=n),We=n,wi===1&&(R[it]=We),p.each(vr,(function(i,s){s!==it&&(We[s]=i)})),We._=p}},t_=(_d=function(t,r){r()},wi=0,We=new S,Xm(),We.init(),(function(){function t(){t.done||(t.done=!0,bd=!0,vd=!1,p.each(vr,(function(e){e._dom_loaded()})))}if(Q.addEventListener)Q.readyState==="complete"?t():Q.addEventListener("DOMContentLoaded",t,!1);else if(Q.attachEvent){Q.attachEvent("onreadystatechange",t);var r=!1;try{r=R.frameElement===null}catch{}Q.documentElement.doScroll&&r&&(function e(){try{Q.documentElement.doScroll("left")}catch{return void setTimeout(e,1)}t()})()}p.register_event(R,"load",t,!0)})(),We);export{t_ as m,e_ as r};
|