@zeniai/web-app-ui 5.1.57-dev → 5.1.57-prod
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/package.json +1 -1
- package/dist/assets/AddressRoutes-Btsu-Pr2.js +0 -1
- package/dist/assets/AddressScreen-uQ5DG6RP.js +0 -9
- package/dist/assets/AiCfoScreen-C79maxqZ.js +0 -22
- package/dist/assets/BillPayApprovalRoutes-Diu_Qczl.js +0 -1
- package/dist/assets/BillPayRoutes-DomFtcrh.js +0 -119
- package/dist/assets/BusinessVerificationPageScreen-CTU28kRu.js +0 -9
- package/dist/assets/ChargeCardRoutes-B_Xq4AX2.js +0 -71
- package/dist/assets/CompanyPassportScreen-CNZfdpGE.js +0 -1
- package/dist/assets/ConnectionAuthScreen-9uLQVh7r.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-DxID2vZg.js +0 -1
- package/dist/assets/CustomerOnboardingRoutes-CtEh9ZQ3.js +0 -23
- package/dist/assets/DashboardRoutes-C0VrIF3t.js +0 -20
- package/dist/assets/DefaultTenantHome-DV2g1Cag.js +0 -1
- package/dist/assets/DomesticWireDetailScreen-WAgZ5MVK.js +0 -18
- package/dist/assets/DrawerScreen-p0fVIC2O.js +0 -1
- package/dist/assets/EntityDetailRoutes-BZiwq_x8.js +0 -1
- package/dist/assets/ExpenseAutomationRoutes-C13mP6Ld.js +0 -25
- package/dist/assets/FeaturePreviewScreen-vqWA1iAu.js +0 -1
- package/dist/assets/HubSpotOAuthCallbackScreen-DRJFxPVL.js +0 -1
- package/dist/assets/MagicLinkRoutes-CCHMK5nR.js +0 -72
- package/dist/assets/MagicLinkSignInScreen-DxG_4feq.js +0 -12
- package/dist/assets/MobileAppDrawer-DfGezxMQ.js +0 -1
- package/dist/assets/NotFoundScreen-DGu_qIhZ.js +0 -1
- package/dist/assets/NotificationRoutes-uMWrErpy.js +0 -1
- package/dist/assets/OAuthConsentScreen-DOqYjznz.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-x4jJOk7g.js +0 -1
- package/dist/assets/PeopleRoutes-DtjJ5ui_.js +0 -22
- package/dist/assets/PerformanceRoutes-BloPT0Gr.js +0 -1
- package/dist/assets/Preview-DUJTupxJ.js +0 -1
- package/dist/assets/QBOConnectionScreen-DqtdpzBM.js +0 -100
- package/dist/assets/ReferralListScreen-CmiBzw21.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-Bi4gR0EY.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailScreen-DAMceMDV.js +0 -1
- package/dist/assets/ReimbursementRoutes-LVhtQ1QR.js +0 -68
- package/dist/assets/ReportsRoutes-hERwKlR6.js +0 -1
- package/dist/assets/RewardsRoutes-CCP5Ycwd.js +0 -1
- package/dist/assets/ScreenRoutes-Dkx6t2M6.js +0 -2
- package/dist/assets/SettingsRoutes-iDdQWuGR.js +0 -57
- package/dist/assets/SetupPagesScreen-CykvAPwk.js +0 -29
- package/dist/assets/SignInScreen-C1AbxNiZ.js +0 -1
- package/dist/assets/SignOutScreen-ZWnRWBaT.js +0 -9
- package/dist/assets/TaskListScreen-eAFg78l5.js +0 -9
- package/dist/assets/TaskRoutes-C_sRnJzp.js +0 -9
- package/dist/assets/TransactionDetailRoutes-yKry3lon.js +0 -1
- package/dist/assets/TransactionDetailScreen-H4gr8jU7.js +0 -5
- package/dist/assets/TransactionListRoutes-C9jwZ51n.js +0 -1
- package/dist/assets/TreasuryRoutes-DzUIIbIL.js +0 -37
- package/dist/assets/VendorsRoutes-BAxfd2en.js +0 -112
- package/dist/assets/WiseConfirmationScreen-Dj60kDPw.js +0 -12
- package/dist/assets/ZeniAccountRoutes-a5E3OMoh.js +0 -57
- package/dist/assets/ZeniAccountStatementScreen-gH7pO1hx.js +0 -9
- package/dist/assets/accountMappingHelper-CQ-cPZ2Q.js +0 -1
- package/dist/assets/analytics-Dp5zEMRl.js +0 -68
- package/dist/assets/analyticsHelper-Dgpf5RH0.js +0 -1
- package/dist/assets/core-Bz75oBBS.js +0 -12
- package/dist/assets/decodeURIComponentSafe-C4sdX50I.js +0 -1
- package/dist/assets/dnd-CZ-V7Opk.js +0 -6
- package/dist/assets/empty-7OUXq_pa.js +0 -1
- package/dist/assets/empty-BOJvSC1K.js +0 -1
- package/dist/assets/emptyVideoElement-B7aN1P9v.js +0 -1
- package/dist/assets/epic-BcqgfxS9.js +0 -2
- package/dist/assets/favicon-D56XvgAH.ico +0 -0
- package/dist/assets/getLocaleForTenant-1kUhHovP.js +0 -1
- package/dist/assets/index-6BzK0FJL.js +0 -1
- package/dist/assets/index-B580fqwk.js +0 -1
- package/dist/assets/index-BQTqLUth.js +0 -2
- package/dist/assets/index-Bs6X6A75.js +0 -2
- package/dist/assets/index-C6CKWv1Y.js +0 -75478
- package/dist/assets/index-DqlK4s6f.js +0 -3385
- package/dist/assets/index-PPRJ7txt.js +0 -1
- package/dist/assets/index-R6GjjTB3.css +0 -1
- package/dist/assets/index-uPeOzU7i.js +0 -1
- package/dist/assets/lexical-BhoV9klE.js +0 -21
- package/dist/assets/liveblocks-Dtw-cIpm.js +0 -54
- package/dist/assets/logo192-CqcTe-t4.png +0 -0
- package/dist/assets/lottie-DCGoGDCc.js +0 -2
- package/dist/assets/manifest-icT4lOF5.json +0 -49
- package/dist/assets/mui-XIlJ9bNw.js +0 -109
- package/dist/assets/pathToGoBack-DF7meFK5.js +0 -1
- package/dist/assets/pdf-DY4XXQdH.js +0 -13
- package/dist/assets/pdf-lib-BwfYoiDb.js +0 -39
- package/dist/assets/plaid-HhKeWLGl.js +0 -2
- package/dist/assets/pusher-yKpXr-6q.js +0 -1
- package/dist/assets/react-4ndjzott.js +0 -19
- package/dist/assets/react-5mDvcVHb.js +0 -17
- package/dist/assets/react-B27fDKOl.js +0 -21
- package/dist/assets/react-BU60ZCxp.js +0 -19
- package/dist/assets/react-BihThLEf.js +0 -34
- package/dist/assets/react-PQlAUPJl.js +0 -22
- package/dist/assets/recharts-P1XbTErv.js +0 -65
- package/dist/assets/routePaths-qyRAZ1-v.js +0 -1
- package/dist/assets/sentry-CcjRjG-d.js +0 -500
- package/dist/assets/stripe-DMRn4zHo.js +0 -1
- package/dist/assets/url-CywC97He.js +0 -1
- package/dist/assets/url-t5z6Dd8t.js +0 -6
- package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips--tZ2M5qy.js +0 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-DltkBD6G.js +0 -1
- package/dist/assets/useDeviceId-iq2z2ZGf.js +0 -13
- package/dist/assets/useInitialThreadRequest-DQr5vayF.js +0 -1
- package/dist/assets/utils-CSFJzIqP.js +0 -36
- package/dist/assets/web-vitals-D_vxw1oG.js +0 -1
- package/dist/assets/withTransactionSidePanel-CnttXHns.js +0 -21
- package/dist/assets/zeni-epic-state-qHZitSu9.js +0 -13
- package/dist/index.html +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import"./sentry-CcjRjG-d.js";import{L as zt}from"./zeni-epic-state-qHZitSu9.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="467de697-3b88-44ea-8779-7557fb71e6e2",t._sentryDebugIdIdentifier="sentry-dbid-467de697-3b88-44ea-8779-7557fb71e6e2")}catch{}})();var os,as,ss={},Ir={},ir={};function cs(){return os||(os=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.EVENTS_WITHOUT_SUPER_PROPERTIES=ir.Event=void 0,function(n){n.dashboard="Dashboard",n.cashBalance="Cash Balance",n.cardBalance="Card Balance",n.cashPosition="Cash Position",n.revenues="Revenues",n.operatingExpenses="Operating Expenses",n.topExpenses="Top Expenses",n.burnRate="Burn Rate",n.cashInCashOut="Cash In, Cash Out",n.howItWorks="How It Works",n.insights="Insights",n.brexAd="Brex Ad",n.companyPassport="Company Passport",n.addAddress="Add Address",n.editAddress="Edit Address",n.saveAddressClicked="Save Address Clicked",n.reports="Reports",n.profitAndLoss="Profit & Loss",n.balanceSheet="Balance Sheet",n.cashFlow="Cash Flow",n.profitAndLossWithForecast="Profit & Loss with Forecast",n.balanceSheetWithForecast="Balance Sheet with Forecast",n.cashFlowWithForecast="Cash Flow with Forecast",n.sidePanelClicked="Side Panel Clicked",n.transactionList="Transaction List",n.transactionDetails="Transaction Details",n.transactionDetailsSave="Transaction Details Save",n.transactionDetailReceiptOpened="Transaction Details Receipt Opened",n.transactionDetailReceiptDeleted="Attachment Deleted",n.transactionDetailReceiptAdded="Transaction Details Receipt Added",n.compareMode="Compare Mode",n.compareFilterChange="Compare Filter Change",n.compareFilterTimeframe="Compare Filter Timeframe",n.dateRangeFilter="Date Range Filter",n.timeframeSwitch="Timeframe Switch",n.graphBar="Graph Bar",n.cardStatementCloseDateClicked="Card Statement Close Date Clicked",n.cardStatementCloseDateSaved="Card Statement Close Date Saved",n.forecast="Forecast",n.forecastSwitch="Forecast Switch",n.forecastVsActualMode="Forecast vs Actual Mode",n.members="Members",n.inviteSent="Invite Sent",n.roleChanged="Role Changed",n.removeUserAccess="Remove User Access",n.resendInvite="Resend Invite",n.companySwitch="Company Switch",n.download="Download",n.sort="Sort",n.incomeTrend="Income Trend",n.spendTrend="Spend Trend",n.search="Search",n.login="Login",n.loginButton="Login Button",n.signInClick="Sign In click",n.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",n.signInViaEmail="Sign In Via Email",n.signInLinkSent="Sign In Link Sent",n.loginSuccess="Login Success",n.loginFailure="Login Fail",n.logoutButton="Logout Button",n.logoutSuccess="Logout Success",n.logoutFailure="Logout Fail",n.sessionTimeoutPopupShown="Session Timeout Popup Shown",n.sessionTimeoutClicked="Session Timeout Clicked",n.sessionTimeoutAutoLogout="Session Timeout Auto Logout",n.reportGenerated="Report Generated",n.aiCFOPage="AI CFO Page",n.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",n.aiCFOChatSessionChanged="AI CFO Chat Session Changed",n.aiCFOChatSubmitted="AI CFO Chat Submitted",n.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",n.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",n.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",n.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",n.onboardingLinkClicked="Onboarding Invite Link Click",n.onboardingNeedHelp="Onboarding Need Help",n.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",n.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",n.onboardingPage="Onboarding Page",n.onboardingInterimPage="Onboarding Interim Page",n.onboardingLandingPage="Onboarding Landing Page",n.onboardingQBOConnect="Onboarding QBO Connect Clicked",n.onboardingSaveQBOConnection="Onboarding Save QBO Connection",n.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",n.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",n.onboardingCompanyOfficerSave="Onboarding Company Officer Save",n.onboardingCompanyDetailsSave="Onboarding Company Details Save",n.onboardingDashboardActivation="Onboarding Dashboard Activation",n.onboardingConnectBank="Onboarding Connect Bank",n.onboardingConnectBankSuccess="Onboarding Connect Bank Success",n.onboardingConnectBankFailure="Onboarding Connect Bank Failure",n.onboardingConnectBankLink="Onboarding Connect Bank Link",n.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",n.onboardingNewCustomerStarted="Onboarding New Customer Started",n.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",n.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",n.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",n.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",n.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",n.onboardingSendInvite="Onboarding Send Invite",n.onboardingResendInvite="Onboarding Resend Invite",n.onboardingSave="Onboarding Save",n.onboardingBillingAddress="Onboarding Billing Address Clicked",n.onboardingBillingAddressSave="Onboarding Billing Address Save",n.onboardingNext="Onboarding Next",n.onboardingBack="Onboarding Back",n.onboardingActiveStep="Onboarding Active Step",n.onboardingLinkBankAccount="Onboarding Link A Bank Account",n.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",n.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",n.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",n.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",n.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",n.onboardingLinkCreditCard="Onboarding Link Credit Card",n.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",n.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",n.onboardingLinkNewCard="Onboarding Link a New Credit Card",n.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",n.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",n.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",n.onboardingBankAccountVerified="Onboarding Bank Account Verified",n.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",n.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",n.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",n.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",n.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",n.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",n.onboardingInterimCardClick="Onboarding Interim Page Card Click",n.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",n.billingLinkNewBankAccount="Billing Link a New Bank Account",n.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",n.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",n.billingSwitchToCreditCard="Billing Switch To Credit Card",n.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",n.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",n.billingSwitchToBankAccount="Billing Switch To Bank Account",n.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",n.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",n.billingLinkNewCard="Billing Link a New Card",n.billingLinkNewCardSuccess="Billing Link a New Card Success",n.billingLinkNewCardFailure="Billing Link a New Card Failure",n.billPayHome="Bill Pay Home",n.billPaySetup="Bill Pay Setup",n.billPayPromoPage="Bill Pay Promo",n.billPayNeedHelp="Bill Pay Need Help",n.billPayBusinessVerification="Bill Pay Business Verification",n.billPayBusinessVerificationSave="Bill Pay Business Verification Save",n.billPayBusinessVerificationSend="Bill Pay Business Verification Send",n.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",n.billPayConnectBank="Bill Pay Connect Bank",n.billPayConnectBankSuccess="Bill Pay Connect Bank Success",n.billPayConnectBankFailure="Bill Pay Connect Bank Failure",n.billPayConnectBankLink="Bill Pay Connect Bank Link",n.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",n.enableBillPay="Enable Bill Pay",n.billPayDrafts="Bill Pay Drafts",n.billPayDraftsOverdue="Bill Pay Drafts Overdue",n.billPayApprovals="Bill Pay Approvals",n.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",n.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",n.billPayApprovalsOverdue="Bill Pay Approvals Overdue",n.billPayApprovalsRejected="Bill Pay Approvals Rejected",n.billPayApprovalsDeleted="Bill Pay Approvals Deleted",n.billPayScheduled="Bill Pay Scheduled",n.billPayScheduledFailed="Bill Pay Scheduled Failed",n.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",n.billPayScheduledDeleted="Bill Pay Scheduled Deleted",n.billPayPaid="Bill Pay Paid",n.billPayPaidACH="Bill Pay Paid ACH",n.billPayPaidWire="Bill Pay Paid Wire",n.billPayPaidDeleted="Bill Pay Paid Deleted",n.billPayPaidOffline="Bill Pay Paid Offline",n.billPayNewBill="Bill Pay New Bill",n.billPayInvoiceUpload="Bill Pay Invoice Upload",n.billPaySkipAutofill="Bill Pay Skip Autofill",n.billPayInvoiceActionClick="Bill Pay Invoice Action Click",n.billPayBillDetails="Bill Pay Bill Details",n.billPayEditBill="Bill Pay Edit Bill",n.billPayDeleteBill="Bill Pay Delete Bill",n.billPayCancelBill="Bill Pay Cancel Bill",n.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",n.billPayReviewBill="Bill Pay Review Bill",n.billPaySendForApproval="Bill Pay Send For Approval",n.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",n.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",n.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",n.billPayFilterClick="Bill Pay Filter Click",n.billPayFilterChange="Bill Pay Filter Change",n.billPayDownloadClick="Bill Pay Download Click",n.billPayNewVendor="Bill Pay New Vendor",n.billPayEditVendor="Bill Pay Edit Vendor",n.billPayExpandVendor="Bill Pay Expand Vendor",n.billPayChooseNewVendor="Bill Pay Choose New Vendor",n.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",n.billPayAutoDateChange="Book Close - Auto Date Change",n.billPayPrivacyPolicy="Bill Pay Privacy Policy",n.billPayAgreement="Bill Pay Agreement",n.billPayPromoSchedule="Bill Pay Schedule Demo",n.billPayPromoVideo="Bill Pay Promo Video",n.billPayTaskCard="Bill Pay Task Card",n.billPayCard="Bill Pay Card",n.enableIntlWire="Enable International Wire",n.submitIntlWire="International Wire Submit",n.intlWirePaymentMethod="International Wire Payment Method",n.zeniAssistClick="Zeni Assist Click",n.retryClick="Retry Click",n.retryConfirmClick="Retry Confirm Click",n.refundClick="Refund Click",n.refundConfirmClick="Refund Confirm Click",n.billPayBulkSelectAll="Bill Pay Bulk Select All",n.billPayBulkDeleted="Bill Pay Bulk Deleted",n.billPayBulkSubmit="Bill Pay Bulk Submit",n.billPayBulkSelection="Bill Pay Bulk Selection",n.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",n.billPayMarkAsPaid="Mark As Paid",n.billPayMarkAsPaidSubmit="Mark As Paid Submit",n.lowBalanceAccountSelected="Low Balance Account Selected",n.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",n.lowBalanceAccountApprove="Low Balance Account Approve",n.lowBalanceAccountReject="Low Balance Account Reject",n.lowBalanceAccountChange="Low Balance Account Change",n.lowBalanceAccountSchedule="Low Balance Account Schedule",n.cockpitTabClicked="Cockpit Tab Clicked",n.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",n.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",n.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",n.reimbursementHome="Reimbursement Home",n.reimbursementSetup="Reimbursement Setup",n.reimbursementPromoPage="Reimbursement Promo",n.reimbursementTaskCard="Reimbursement Task Card",n.reimbursementFilterClick="Reimbursement Filter Click",n.reimbursementFilterChange="Reimbursement Filter Change",n.reimbursementDownloadClick="Reimbursement Download Click",n.reimbursementBulkSelectAll="Reimbursement Bulk Select All",n.reimbursementBulkDeleted="Reimbursement Bulk Deleted",n.reimbursementBulkSubmit="Reimbursement Bulk Submit",n.reimbursementBulkSelection="Reimbursement Bulk Selection",n.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",n.accountsListPageViewed="Accounts List Page Viewed",n.zeniAccountsSetup="Zeni Accounts Setup",n.accountsPromoPageViewed="Accounts Promo Page Viewed",n.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",n.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",n.zeniAccountsNeedHelp="Zeni Accounts Need Help",n.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",n.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",n.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",n.plgPromoActionTaken="Promo Action Taken",n.cardsPromoPage="Cards Promo Page Viewed",n.cardsPromoPageClick="Cards Promo Page Clicked",n.cardsListPage="Cards List Page Viewed",n.cardsListPageClick="Cards List Page Clicked",n.cardsIssueNewCardFormClick="Issue New Card Form Clicked",n.cardsListRowClick="Cards List Row Clicked",n.cardsDetailPage="Cards Detail Page Viewed",n.cardsDetailPageClick="Cards Detail Page Clicked",n.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",n.cardsSetupVisited="Cards Setup Page Visited",n.cardsPromoView="Cards Promo View",n.cardsSetupCardsClick="Cards Set Up Cards Click",n.cardsEnableCardsClick="Cards Enable Cards Click",n.cardsScheduleDemoClick="Cards Schedule Demo Click",n.cardsCardListView="Cards Card List View",n.cardsCardListSearchClick="Cards Card List Search Click",n.cardsCardListMoreMenuClick="Cards Card List More Menu Click",n.cardsSettingsClick="Cards Settings Click",n.cardsCardSetupView="Cards Card Setup View",n.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",n.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",n.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",n.cardsStatementsClick="Cards Statements Click",n.cardsCreditCardStatementsView="Cards Credit Card Statements View",n.cardsDownloadClick="Cards Download Click",n.cardsNewCardClick="Cards New Card Click",n.cardsCashbackOverviewClick="Cards Cashback Overview Click",n.cardsCardListRowClick="Cards Card List Row Click",n.cardsCopyIconClick="Cards Copy Icon Click",n.cardsCardListSortClick="Cards Card List Sort Click",n.cardsCardDetailView="Cards Card Detail View",n.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",n.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",n.cardsAddToWalletClick="Cards Add to Wallet Click",n.cardsNeedHelp="Cards Need Help",n.cardsBusinessVerification="Cards Business Verification",n.cardsBusinessVerificationSave="Cards Business Verification Save",n.cardsBusinessVerificationSend="Cards Business Verification Send",n.cardsConnectBank="Cards Connect Bank",n.cardsConnectBankSuccess="Cards Connect Bank Success",n.cardsConnectBankFailure="Cards Connect Bank Failure",n.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",n.cardsConnectBankLink="Cards Connect Bank Link",n.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",n.cardsPayEarlyClick="Cards Pay Early Click",n.cardsPayEarlyFormView="Cards Pay Early Form View",n.cardsPayEarlyFormClick="Cards Pay Early Form Click",n.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",n.accountsListPageClicked="Accounts List Page Clicked",n.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",n.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",n.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",n.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",n.accountsPromoPageClicked="Accounts Promo Page Clicked",n.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",n.zeniAccountsConnectBank="Zeni Accounts Connect Bank",n.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",n.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",n.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",n.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",n.enableZeniAccounts="Enable Zeni Accounts",n.reimbursementNeedHelp="Reimbursement Need Help",n.reimbursementBusinessVerification="Reimbursement Business Verification",n.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",n.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",n.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",n.reimbursementConnectBank="Reimbursement Connect Bank",n.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",n.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",n.reimbursementConnectBankLink="Reimbursement Connect Bank Link",n.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",n.enableReimbursement="Enable Reimbursement",n.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",n.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",n.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",n.reimbursementAgreement="Reimbursement Agreement",n.reimbursementPromoSchedule="Reimbursement Schedule Demo",n.reimbursementPromoVideo="Reimbursement Promo Video",n.reimbursementCard="Reimbursement Card",n.reimbursementDrafts="Reimbursement Drafts",n.reimbursementMyDrafts="Reimbursement My Drafts",n.reimbursementApprovals="Reimbursement Approvals",n.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",n.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",n.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",n.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",n.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",n.reimbursementScheduled="Reimbursement Scheduled",n.reimbursementScheduledFailed="Reimbursement Scheduled Failed",n.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",n.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",n.reimbursementPaid="Reimbursement Paid",n.reimbursementPaidACH="Reimbursement Paid ACH",n.reimbursementPaidDeleted="Reimbursement Paid Deleted",n.reimbursementListSort="Reimbursement List Sort",n.reimbursementNewReimbursement="Reimbursement New Reimbursement",n.reimbursementInvoiceUpload="Reimbursement Invoice Upload",n.reimbursementSkipAutofill="Reimbursement Skip Autofill",n.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",n.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",n.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",n.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",n.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",n.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",n.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",n.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",n.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",n.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",n.groupBySwitch="Group By Switch",n.burnRateCalculatorSettings="Burn Rate Calculator Settings",n.vendorList="Vendor List",n.vendorListSort="Vendor List Sort",n.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",n.vendorListSearch="Vendor List Search",n.vendorDetails="Vendor Details",n.vendorDetailsSave="Vendor Details Save",n.vendorDetailsCancel="Vendor Details Cancel",n.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",n.vendorOperatingExpenses="Operating Expenses By Vendor",n.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",n.agingReport="Aging Report",n.agingReportDateChange="Aging Report Date Change",n.apAgingDetail="AP Aging Detail",n.arAgingDetail="AR Aging Detail",n.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",n.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",n.vendorReviewList="Vendor Dedupe Review List Loaded",n.vendorReviewTenantSave="Vendor Dedupe First Review",n.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",n.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",n.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",n.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",n.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",n.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",n.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",n.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",n.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",n.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",n.vendor1099ListPage="Vendors 1099",n.vendor1099TabSettingsSave="1099 Settings Save",n.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",n.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",n.vendor1099DetailsSave="1099 Vendor Save",n.vendor1099ReportDownload="1099 Download",n.scheduleReviewList="Schedule Review List Loaded",n.scheduleReviewListDownload="Schedule Review List Download",n.scheduleDetailsPage="Schedule Details Loaded",n.scheduleDetailsNewRequested="Schedule Details New Requested",n.scheduleDetailsPreview="Schedule Details Previewed",n.scheduleDetailsSave="Schedule Details Saved",n.scheduleDetailsCancel="Schedule Details Canceled",n.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",n.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",n.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",n.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",n.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",n.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",n.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",n.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",n.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",n.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",n.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",n.scheduleDetailsDelete="Schedule Details Deleted",n.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",n.taskListPage="Task List Page",n.taskDetailPage="Task Detail Page",n.cockpitTaskCardClicked="Cockpit Task Card Clicked",n.taskEdited="Task Edited",n.newTaskRequested="New Task Requested",n.healthMonitorFilterApplied="Health Monitor Filter Applied",n.error="Error",n.rewardsPageViewed="Rewards Page Viewed",n.rewardsPageClicked="Rewards Page Clicked",n.dashboardCardClicked="Dashboard Card Clicked",n.inviteEmailViewed="Rewards Invite Email Viewed",n.inviteEmailClicked="Rewards Invite Email Clicked",n.getAuditScore="Get Score",n.auditScorePercentage="Score %",n.auditIssueType="Issue Type",n.auditIssuesClicked="Issue Clicked",n.commentAdded="Comment Added",n.commentActivity="Comment Activity",n.monthCloseClicked="Month Close Clicked",n.monthCloseAuditPage="Month Close: Audit Page",n.transactionsReview="Transactions: Review",n.transactionsAutoCategorised="Transactions: Autocategorised",n.monthCloseScheduleList="Month Close: Schedule List",n.fluxAnalysis="Flux Analysis",n.fluxAnalysisReviewed="Flux Analysis: Reviewed",n.missingReceipts="Missing Receipts",n.receiptsAttached="Receipt Attached",n.insightsEmail="Insights Email",n.sendMoneyClick="Send Money Click",n.expressPayNextClick="Express Pay Next Click",n.expressPayScheduleClick="Express Pay Schedule Click",n.aiCFOPrivacyPolicy="AI CFO Privacy Policy",n.aiCFOAgreement="AI CFO Agreement",n.treasuryNavPromoClick="Treasury Nav Promo Click",n.treasuryPromoView="Treasury Promo View",n.treasurySetupActionClick="Treasury Setup Action Click",n.treasuryProspectusClick="Treasury Prospectus Click",n.treasuryCalculatorClick="Treasury Calculator Click",n.treasuryAgreementView="Treasury Agreement View",n.treasuryAllocationAction="Treasury Allocation Action",n.treasuryRiskAction="Treasury Risk Action",n.treasuryVerificationNavigation="Treasury Verification Navigation",n.treasuryTransferAction="Treasury Transfer Action",n.treasuryDashboardInteraction="Treasury Dashboard Interaction",n.treasuryPortfolioConfirm="Treasury Portfolio Confirm",n.treasuryPromoCards="Treasury Promo Cards",n.treasuryPromoVideo="Treasury Promo Video",n.transactionCotView="Transaction Cot View",n.transactionCotDropdownView="Transaction Cot Dropdown View",n.transactionCotViewAlternative="Transaction Cot View Alternative",n.transactionCotViewRecommended="Transaction Cot View Recommended",n.aiPerfHome="AI Perf Home",n.aiPerfRefresh="AI Perf Refresh",n.aiPerfTimePeriodSelect="AI Perf Time Period Select",n.otherConnectionConnectBank="Other Connection Connect Bank",n.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",n.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",n.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",n.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance",n.autoTransferRuleIconClick="Auto Transfer Rule Icon Click",n.autoTransferRuleClick="Auto Transfer Rule Click",n.autoTransferRuleReviewClick="Auto Transfer Rule Review Click",n.autoTransferRuleCreateClick="Auto Transfer Rule Create Click",n.autoTransferRuleMoreClick="Auto Transfer Rule More Click",n.autoTransferRuleActionClick="Auto Transfer Rule Action Click",n.autoTransferRuleActionConfirm="Auto Transfer Rule Action Confirm",n.autoTransferRuleActionCancel="Auto Transfer Rule Action Cancel"}(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 n=function(){if(as)return Ir;as=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.Analytics=void 0;const i=cs();class s{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=s.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=u.userProperties,this.superProperties=u.superProperties,this.provider.identify(o,this.userProperties)}identifyUserAndCompany(o,a,c,u,d){const h=u??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,h,{$distinct_id:o==="company"?c:a,user_id:a,company_id:c,profile_type:o});const m=s.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=m.userProperties,this.superProperties=m.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,h){this.fireTrack(i.Event.transactionList,{account_id:o,account_name:a,referrer_card:c,referrer_account:u,referrer_account_group:d,load_more:h})}trackTransactionDetails(o,a,c,u,d,h,m,_,f,g,k){this.fireTrack(i.Event.transactionDetails,{account_id:o,account_name:a,transaction_id:c,transaction_name:u,category:d,class:h,transaction_type:m,transaction_amount:_,transaction_memo:f,line_item_count:g,receipt_file_names:k})}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,h,m,_,f,g){this.fireTrack(o,{referrer_card:a,transaction_id:c,transaction_type:u,transaction_name:d,account_ids:h,account_names:m,class_ids:_,class_names:f,bar_name:g})}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,h,m){this.fireTrack(o,{attachment_id:a,transaction_id:c,transaction_name:u,transaction_type:d,account_ids:h,account_names:m})}trackTransactionDetailReceiptUpload(o,a,c,u,d,h,m,_){this.fireTrack(i.Event.transactionDetailReceiptAdded,{account_id:o,account_name:a,transaction_id:c,transaction_name:u,transaction_type:d,transaction_memo:h,file_name:m,file_type:_})}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,h,m,_){const f={report_id:o,file_type:a,time_taken_rest_api:c,time_taken_data_transform:u,time_taken_rendering:d,time_taken_total:h};Object.assign(f,m!=null?{time_taken_pdf_merge:m}:{}),Object.assign(f,_!=null?{time_taken_sub_report_total_max:_}:{}),this.fireTrack(i.Event.reportGenerated,f)}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)}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(){this.fireTrack(i.Event.onboardingQBOConnect)}trackOnboardingSaveQBOConnection(o,a){const c={qbo_realm_id:o,qbo_connection_id:a};this.fireTrack(i.Event.onboardingSaveQBOConnection,c)}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)}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)}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};u.isSendInvite?u.isInviteAlreadySent?this.fireTrack(i.Event.onboardingResendInvite,d):this.fireTrack(i.Event.onboardingSendInvite,d):this.fireTrack(i.Event.onboardingSave,d)}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 h={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,h);break;case"reimbursement":this.fireTrack(i.Event.reimbursementBusinessVerificationSave,h);break;case"onboarding":this.fireTrack(i.Event.onboardingSkipAndSave,h);break;case"charge_cards":this.fireTrack(i.Event.cardsBusinessVerification,h);break;default:this.fireTrack(i.Event.billPayBusinessVerificationSave,h)}}trackBusinessVerificationSend(o,a,c,u,d){const h={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,h);break;case"reimbursement":this.fireTrack(i.Event.reimbursementBusinessVerificationSend,h);break;case"charge_cards":this.fireTrack(i.Event.cardsBusinessVerificationSend,h);break;default:this.fireTrack(i.Event.billPayBusinessVerificationSend,h)}}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,h){if(h!=null&&d!=null)switch(h){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,h,m){if(m!=null&&h!=null)switch(m){case"link_bank_account":this.fireTrack(i.Event.onboardingLinkBankAccountFailure,{referrer_card:h,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:h,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:h,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.onboardingLinkANewBankAccountFailure,{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,h,m){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,h??null,m??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,h,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,h??null,m??null,_??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,h,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:h,split_days_count:m,APY_slider_moved:_})}trackAccountsDepositCheckFormClicked(o,a,c,u,d,h){this.fireTrack(i.Event.accountsDepositCheckFormClicked,{click_type:o,amount:a,source_of_deposit:c,deposited_to:u,front_photo:d,back_photo:h})}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,h,m){this.fireTrack(i.Event.cardsListRowClick,{card_owner:o,card_name:a,department:c,utilisation:u,limit:d,frequency:h,is_self_card:m})}trackCardsDetailPageViewed(o,a,c,u,d,h,m,_){this.fireTrack(i.Event.cardsDetailPage,{card_id:o,is_self_card:_,card_owner:a,card_name:c,utilisation:u,limit:d,frequency:h,card_color:m})}trackCardsVerifyPopUpClick(o,a,c,u,d,h,m,_,f){this.fireTrack(i.Event.cardsVerifyPopUpClick,{cards_click_type:m,is_self_card:_,card_owner:a,card_name:c,utilisation:u,limit:d,frequency:h,card_id:o,selected_color:f})}trackCardsDetailPageClicked(o,a,c,u,d,h,m,_,f){this.fireTrack(i.Event.cardsDetailPageClick,{cards_click_type:m,is_self_card:_,card_owner:a,card_name:c,utilisation:u,limit:d,frequency:h,card_id:o,selected_color:f})}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,h,m,_){this.fireTrack(i.Event.cardsDownloadClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,_),page_name:d,position:h,file_category:u.fileCategory,file_type:u.fileType,file_name:u.fileName,file_month_year:u.fileMonthYear})}trackCardsNewCardClick(o,a,c,u,d,h,m,_){this.fireTrack(i.Event.cardsNewCardClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,_),click_item:u,action:d,page_name:h})}trackCardsCashbackOverviewClick(o,a,c,u,d,h,m){this.fireTrack(i.Event.cardsCashbackOverviewClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,h,m),click_item:u,action:d})}trackCardsCardListRowClick(o,a,c,u,d,h,m,_,f){this.fireTrack(i.Event.cardsCardListRowClick,{...this.getBaseCardPropertiesWithCashback(o,a,m,_,f),click_item:c,action:u,position:d,card_name:h.cardName,card_owner:h.cardOwner,card_type:h.cardType,card_status:h.cardStatus,card_utilization_amount:h.cardUtilizationAmount,card_utilization_percent:h.cardUtilizationPercent,card_limit:h.cardLimit})}trackCardsCopyIconClick(o,a,c,u,d,h,m,_,f,g){this.fireTrack(i.Event.cardsCopyIconClick,{...this.getBaseCardPropertiesWithCashback(o,a,_,f,g),click_item:u,action:d,action_field:h,action_details:m,page_name:c})}trackCardsCardListSortClick(o,a,c,u,d,h,m,_,f,g){this.fireTrack(i.Event.cardsCardListSortClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,f,g),click_item:u,action:d,action_field:h,action_details:m,page_name:_})}trackCardsCardDetailView(o,a,c,u,d,h,m){this.fireTrack(i.Event.cardsCardDetailView,{...this.getBaseCardProperties(o,a,h,m),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,h,m,_,f,g){this.fireTrack(i.Event.cardsUpdateSpendLimitInitiated,{...this.getBaseCardProperties(o,a,f,g),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:h,source:m,recommended_limits:_})}trackCardsUpdateSpendLimitClick(o,a,c,u,d,h,m,_,f,g,k,y,b){this.fireTrack(i.Event.cardsUpdateSpendLimitClick,{...this.getBaseCardProperties(o,a,y,b),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:m,current_limit:_,new_limit:k,recommended_limits:f,was_recommended_limit_selected:g,card_limit_updated_by_name:h.cardLimitUpdatedByName,card_limit_updated_by_email:h.cardLimitUpdatedByEmail,card_limit_updated_by_role:h.cardLimitUpdatedByRole,card_limit_updated_by_user_id:h.cardLimitUpdatedByUserId})}trackCardsAddToWalletClick(o,a,c,u,d,h,m,_,f){this.fireTrack(i.Event.cardsAddToWalletClick,{...this.getBaseCardProperties(o,a,_,f),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:h,click_item:m})}trackCardsPayEarlyClick(o,a,c,u,d,h,m,_,f){this.fireTrack(i.Event.cardsPayEarlyClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,_,f),...this.getPaymentSourceProperties(m),click_item:h,page_name:u,source:d})}trackCardsPayEarlyFormView(o,a,c,u,d,h,m,_,f){this.fireTrack(i.Event.cardsPayEarlyFormView,{...this.getBaseCardPropertiesWithCashback(o,a,c,_,f),...this.getPaymentSourceProperties(m),is_autopay_selected:d,payment_amount:h,page_name:u})}trackCardsPayEarlyFormClick(o,a,c,u,d,h,m,_,f){this.fireTrack(i.Event.cardsPayEarlyFormClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,_,f),...this.getPaymentSourceProperties(m),is_autopay_selected:d,...this.getCardPaymentProperties(h),click_item:u})}trackCardsPayEarlyPayNowClick(o,a,c,u,d,h,m,_){this.fireTrack(i.Event.cardsPayEarlyPayNowClick,{...this.getBaseCardPropertiesWithCashback(o,a,c,m,_),...this.getPaymentSourceProperties(h),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,h,m,_,f,g,k,y,b,A){const S={final_vendor_name:h,zeni_rec_vendor_name:m,document_ai_rec_vendor_name:_,bill_id:f,invoice_number:g,invoice_date:a,bill_due_date:k,memo:y,currency:c,collect_from_vendor:u,international_transfer_fee_bearer_payment_method:b,is_recurring_bill:d,payment_method:o};d&&A!=null&&(S.recurring_bill_config={bill_value:A.totalAmount,start_date:A.startDate,end_date:A.endDate,frequency:A.frequency,total_payment_cycles:A.totalPaymentCycles,is_approval_required:A.isApprovalRequired}),this.fireTrack(i.Event.billPayReviewBill,S)}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,h,m){const _={bill_id:d,payment_method:o,scheduled_date:a,collect_from_vendor:c,international_transfer_fee_bearer_payment_method:h,is_recurring_bill:u};u&&m!=null&&(_.recurring_bill_config={bill_value:m.totalAmount,start_date:m.startDate,end_date:m.endDate,frequency:m.frequency,total_payment_cycles:m.totalPaymentCycles,is_approval_required:m.isApprovalRequired,is_update_current_bill:m.updateCurrentBill,is_update_future_bills:m.updateFutureRecurringBills}),this.fireTrack(i.Event.billPaySendForApproval,_)}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,h,m){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:h,vendor_contact_phone:m})}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,h,m){this.fireTrack(i.Event.billPayMagicLinkPageLoad,{tenant_email_domain:o,vendor_id:a,company_name:c,bill_id:u,payment_method:d,currency:h,total_amount:m})}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,h,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:h,transaction_memo:m,receipt_file_names:_})}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,h,m,_,f,g){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:m,vendor_spend_last_30days:_,vendor_spend_last_90days:f,vendor_spend_ytd:g,vendor_owner:h})}trackVendorDetailsSave(o,a,c,u,d,h,m,_,f,g,k,y){this.fireTrack(i.Event.vendorDetailsSave,{vendor_id:o,vendor_name:a,vendor_category:c,vendor_class_name:u,vendor_owner:d,saved_vendor_category:h,saved_vendor_class:m,saved_vendor_owner:_,is_recommended_category_selected:f,is_recommended_class_selected:g,category_recommendation_used:k,class_recommendation_used:y})}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:h,approveVendorReason:m,isGlobalVendorRequested:_,isNewCreatedVendorRequested:f,isVendorNameRecommendationSelected:g,isVendorNameChangedAndSelected:k,wasRecommendationAvailable:y,recommendedVendorName:b,recommendedVendorReason:A}){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:m,approve_vendor_name_selection_source:h,vendor_name_recommendation:b,vendor_name_recommendation_reason:A,is_vendor_recommended:y,is_recommended_vendor_name_selected:g,is_vendor_renamed:k,is_global_vendor_selected:_,is_vendor_name_new_created_and_selected:f})}trackVendorReviewNewVendorRequested({reviewSource:o,tenantName:a,newRequestedVendorName:c,newRequestedVendorNameSource:u,isVendorNameRecommendationSelected:d,recommendedVendorName:h,recommendedVendorReason:m}){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:h,new_vendor_recommendation_vendor_name_reason:m,is_recommended_vendor_name_selected:d})}trackVendorReviewNewVendorSaved({reviewSource:o,saveRequestedVendorName:a,saveRequestedVendorSource:c,isVendorNameRecommendationSelected:u,tenantName:d,recommendedVendorName:h,recommendedVendorReason:m}){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:h,new_vendor_recommendation_vendor_name_reason:m,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:h,isGlobalVendorRequested:m,isVendorNameRetainSelected:_,isVendorNameRecommendationSelected:f,isVendorNameChangedAndSelected:g,wasRecommendationAvailable:k,isVendorNameMarkedAsEmployee:y,isVendorNameMarkedAsLocalContractor:b,recommendedVendorName:A,recommendedVendorReason:S}){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:h,vendor_name_recommendation:A,vendor_name_recommendation_reason:S,is_vendor_name_retain_selected:_,is_recommended_vendor_name_selected:f,is_global_vendor_selected:m,is_vendor_renamed:g,is_vendor_recommended:k,is_vendor_employee:y,is_vendor_contractor:b})}trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:o,event:a,vendorName:c,vendorReviewStatus:u,saveRequestedVendorName:d,saveRequestedVendorReason:h,saveRequestedVendorSource:m,isVendorNameRetainSelected:_,isVendorNameRecommendationSelected:f,isVendorNameChangedAndSelected:g,wasRecommendationAvailable:k,recommendedVendorName:y,recommendedVendorReason:b}){this.fireTrack(a,{vendor_review_source:o,old_vendor_name:c,review_status:u,saved_vendor_name:d,save_vendor_name_recommendation_reason:h,saved_vendor_name_source:m,vendor_name_recommendation:y,vendor_name_recommendation_reason:b,is_vendor_name_retain_selected:_,is_recommended_vendor_name_selected:f,is_vendor_renamed:g,is_vendor_recommended:k})}trackVendorReviewRecommendationUpdateContinuedOrCanceled({reviewSource:o,event:a,vendorName:c,vendorReviewStatus:u,saveRequestedVendorName:d,saveRequestedVendorReason:h,saveRequestedVendorSource:m,isVendorNameRetainSelected:_,isVendorNameRecommendationSelected:f,isVendorNameChangedAndSelected:g,wasRecommendationAvailable:k,updatedRecommendedVendorName:y,updatedRecommendedVendorReason:b,recommendedVendorName:A,recommendedVendorReason:S}){this.fireTrack(a,{vendor_review_source:o,old_vendor_name:c,review_status:u,saved_vendor_name:d,save_vendor_name_recommendation_reason:h,saved_vendor_name_source:m,updated_recommendation_vendor_name:y,updated_recommendation_vendor_name_reason:b,vendor_name_recommendation:A,vendor_name_recommendation_reason:S,is_vendor_name_retain_selected:_,is_recommended_vendor_name_selected:f,is_vendor_renamed:g,is_vendor_recommended:k})}trackVendorReviewUpdateVendorCanceled({reviewSource:o,vendorName:a,vendorReviewStatus:c,wasRecommendationAvailable:u,recommendedVendorName:d,recommendedVendorReason:h}){this.fireTrack(i.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:o,old_vendor_name:a,review_status:c,vendor_name_recommendation:d,vendor_name_recommendation_reason:h,is_vendor_recommended:u})}trackVendorReviewWebsiteOpened({reviewSource:o,vendorName:a,wasRecommendationAvailable:c,recommendedVendorName:u,recommendedVendorReason:d,vendorWebsite:h}){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:h})}trackCockpitTabClicked(o){const a={tab_name:o};this.fireTrack(i.Event.cockpitTabClicked,a)}trackCockpitHealthMonitorRowClicked(o,a,c,u,d,h){const m={company_id:o,company_name:a,churn_percent:h,controller_name:c,nps:u,csat:d};this.fireTrack(i.Event.cockpitHealthMonitorRowClicked,m)}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:h,startMonth:m,endMonth:_,controllerEmails:f,controllerUserIds:g}){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:h,schedule_period_start_month:m,schedule_period_end_month:_,controller_emails:f,controller_user_ids:g})}trackScheduleDetailsLoaded({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g,scheduleCategory:k,scheduleClass:y,description:b}=a,{currentBalance:A,currentStatus:S,startMonth:w,endMonth:R,period:O}=u,{expenseCategory:v,expenseClass:I}=c;this.fireTrack(i.Event.scheduleDetailsPage,{schedule_type:o,vendor_name:d,transaction_date:f,transaction_amount:g,schedule_current_balance:A,schedule_category:k,schedule_class:y,schedule_description:b,schedule_current_status:S,schedule_start_month:w,schedule_end_month:R,schedule_number_of_months:O,expense_category:v,expense_class:I,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleDetailsSaved({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g,scheduleCategory:k,scheduleClass:y,description:b}=a,{currentBalance:A,currentStatus:S,startMonth:w,endMonth:R,period:O}=u,{expenseCategory:v,expenseClass:I}=c;this.fireTrack(i.Event.scheduleDetailsSave,{schedule_type:o,vendor_name:d,transaction_date:f,transaction_amount:g,schedule_current_balance:A,schedule_category:k,schedule_class:y,schedule_description:b,schedule_current_status:S,schedule_start_month:w,schedule_end_month:R,schedule_number_of_months:O,expense_category:v,expense_class:I,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleDetailsCanceled({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g,scheduleCategory:k,scheduleClass:y,description:b}=a,{currentBalance:A,currentStatus:S,startMonth:w,endMonth:R,period:O}=u,{expenseCategory:v,expenseClass:I}=c;this.fireTrack(i.Event.scheduleDetailsCancel,{schedule_type:o,vendor_name:d??"",transaction_date:f,transaction_amount:g,schedule_current_balance:A,schedule_category:k,schedule_class:y,schedule_description:b,schedule_current_status:S,schedule_start_month:w,schedule_end_month:R,schedule_number_of_months:O,expense_category:v,expense_class:I,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleDetailsLinkJournalEntry({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g,scheduleCategory:k,scheduleClass:y}=a,{journalEntryMonth:b,journalEntryPostingDate:A,journalEntryTransactionAmount:S,journalEntryPostingStatus:w,journalEntryMemo:R}=u,{expenseCategory:O,expenseClass:v}=c;this.fireTrack(i.Event.scheduleDetailsLinkJournalEntry,{schedule_type:o,vendor_name:d,transaction_date:f,transaction_amount:g,schedule_category:k,schedule_class:y,journal_entry_month:b,journal_entry_posting_date:A,journal_entry_transaction_amount:S,journal_entry_posting_status:w,journal_entry_memo:R,expense_category:O,expense_class:v,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleDetailsViewJournalEntry({scheduleType:o,scheduleExpenseCategoryAndClass:a,journalEntryDetails:c,fixedAssetsDetails:u,controllerEmails:d,controllerUserIds:h}){const{journalEntryMonth:m,journalEntryPostingDate:_,journalEntryTransactionAmount:f,journalEntryPostingStatus:g,journalEntryMemo:k}=c,{expenseCategory:y,expenseClass:b}=a;this.fireTrack(i.Event.scheduleDetailsViewJournalEntry,{schedule_type:o,journal_entry_month:m,journal_entry_posting_date:_,journal_entry_transaction_amount:f,journal_entry_posting_status:g,journal_entry_memo:k,expense_category:y,expense_class:b,accumulated_depreciation_category:u?.accumulatedDepreciationCategory??null,asset_id:u?.assetId??null,controller_emails:d,controller_user_ids:h})}trackScheduleDetailsDeleted({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,scheduledTransaction:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g,scheduleCategory:k,scheduleClass:y,description:b}=a,{currentBalance:A,currentStatus:S,startMonth:w,endMonth:R,period:O}=u,{expenseCategory:v,expenseClass:I}=c;this.fireTrack(i.Event.scheduleDetailsDelete,{schedule_type:o,vendor_name:d,transaction_date:f,transaction_amount:g,schedule_current_balance:A,schedule_category:k,schedule_class:y,schedule_description:b,schedule_current_status:S,schedule_start_month:w,schedule_end_month:R,schedule_number_of_months:O,expense_category:v,expense_class:I,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleDetailsMarkedAsCompleted({scheduleType:o,transaction:a,scheduledTransaction:c,scheduleExpenseCategoryAndClass:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g,scheduleCategory:k,scheduleClass:y,description:b}=a,{currentBalance:A,currentStatus:S,startMonth:w,endMonth:R,period:O}=c,{expenseCategory:v,expenseClass:I}=u;this.fireTrack(i.Event.scheduleDetailsMarkComplete,{schedule_type:o,vendor_name:d,transaction_date:f,transaction_amount:g,schedule_current_balance:A,schedule_category:k,schedule_class:y,schedule_description:b,schedule_current_status:S,schedule_start_month:w,schedule_end_month:R,schedule_number_of_months:O,expense_category:v,expense_class:I,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g}=a,{journalEntryMonth:k,journalEntryPostingDate:y,journalEntryTransactionAmount:b,journalEntryPostingStatus:A,journalEntryMemo:S,journalEntryQBOLink:w,wasRecommendationAvailable:R,wasRecommendationSelected:O}=u,{expenseCategory:v,expenseClass:I}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:o,vendor_name:d,transaction_date:f,transaction_amount:g,journal_entry_month:k,journal_entry_posting_date:y,journal_entry_transaction_amount:b,journal_entry_posting_status:A,journal_entry_qbo_link:w,journal_entry_memo:S,is_vendor_recommended:R,was_recommendation_selected:O,expense_category:v,expense_class:I,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleDetailsJournalEntryQBOFetched({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g}=a,{journalEntryMonth:k,journalEntryPostingDate:y,journalEntryTransactionAmount:b,journalEntryPostingStatus:A,journalEntryMemo:S,wasRecommendationAvailable:w,wasRecommendationSelected:R,journalEntryQBOLink:O}=u,{expenseCategory:v,expenseClass:I}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:o,vendor_name:d,transaction_date:f,transaction_amount:g,journal_entry_month:k,journal_entry_posting_date:y,journal_entry_transaction_amount:b,journal_entry_posting_status:A,journal_entry_qbo_link:O,journal_entry_memo:S,is_vendor_recommended:w,was_recommendation_selected:R,expense_category:v,expense_class:I,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:o,transaction:a,scheduleExpenseCategoryAndClass:c,journalEntryDetails:u,vendorName:d,fixedAssetsDetails:h,controllerEmails:m,controllerUserIds:_}){const{transactionDate:f,transactionAmount:g}=a,{journalEntryMonth:k,journalEntryPostingDate:y,journalEntryTransactionAmount:b,journalEntryPostingStatus:A,journalEntryMemo:S,wasRecommendationAvailable:w,wasRecommendationSelected:R,journalEntryQBOLink:O}=u,{expenseCategory:v,expenseClass:I}=c;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:o,vendor_name:d,transaction_date:f,transaction_amount:g,journal_entry_month:k,journal_entry_posting_date:y,journal_entry_transaction_amount:b,journal_entry_posting_status:A,journal_entry_qbo_link:O,journal_entry_memo:S,is_vendor_recommended:w,was_recommendation_selected:R,expense_category:v,expense_class:I,accumulated_depreciation_category:h?.accumulatedDepreciationCategory??null,asset_id:h?.assetId??null,controller_emails:m,controller_user_ids:_})}trackScheduleAccruedDetailsNewRequested({scheduleType:o}){this.fireTrack(i.Event.scheduleDetailsNewRequested,{schedule_type:o})}trackScheduleAccruedDetailsLoaded({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:d,controllerUserIds:h}){const{startingBalance:m,scheduleAccountCategory:_,description:f,scheduleCreateDate:g,scheduleMonthlyAmount:k,runningBalance:y,currentStatus:b,startMonth:A,endMonth:S,period:w}=d,{expenseCategory:R,expenseClass:O}=a;this.fireTrack(i.Event.scheduleDetailsPage,{schedule_type:o,controller_emails:u,controller_user_ids:h,schedule_expense_category:R,schedule_expense_class:O,schedule_account_category:_,schedule_create_date:g,schedule_current_balance:y,schedule_current_status:b,schedule_description:f,schedule_end_month:S,schedule_monthly_amount:k,schedule_number_of_months:w,schedule_start_month:A,schedule_starting_balance:m,vendor_name:c})}trackScheduleAccruedDetailsSaved({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:d,controllerUserIds:h}){const{startingBalance:m,scheduleAccountCategory:_,description:f,scheduleCreateDate:g,scheduleMonthlyAmount:k,runningBalance:y,currentStatus:b,startMonth:A,endMonth:S,period:w}=d,{expenseCategory:R,expenseClass:O}=a;this.fireTrack(i.Event.scheduleDetailsSave,{schedule_type:o,controller_emails:u,controller_user_ids:h,schedule_expense_category:R,schedule_expense_class:O,schedule_account_category:_,schedule_create_date:g,schedule_current_balance:y,schedule_current_status:b,schedule_description:f,schedule_end_month:S,schedule_monthly_amount:k,schedule_number_of_months:w,schedule_start_month:A,schedule_starting_balance:m,vendor_name:c})}trackScheduleAccruedDetailsCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:d,controllerUserIds:h,lastPostedScheduleMonth:m}){const{startingBalance:_,scheduleAccountCategory:f,description:g,scheduleCreateDate:k,scheduleMonthlyAmount:y,runningBalance:b,currentStatus:A,startMonth:S,endMonth:w,period:R}=d,{expenseCategory:O,expenseClass:v}=a;this.fireTrack(i.Event.scheduleDetailsCancel,{schedule_type:o,controller_emails:u,controller_user_ids:h,schedule_expense_category:O,schedule_expense_class:v,schedule_account_category:f,schedule_create_date:k,schedule_current_balance:b,schedule_current_status:A,schedule_description:g,schedule_end_month:w,schedule_monthly_amount:y,schedule_number_of_months:R,schedule_start_month:S,schedule_starting_balance:_,vendor_name:c,schedule_last_month_with_posted_status:m})}trackScheduleAccruedDetailsDeleted({scheduleType:o,scheduleExpenseCategoryAndClass:a,vendorName:c,controllerEmails:u,schedule:d,controllerUserIds:h,scheduleNonPendingLastMonth:m,scheduleNonPendingLastMonthStatus:_}){const{startingBalance:f,scheduleAccountCategory:g,description:k,scheduleCreateDate:y,scheduleMonthlyAmount:b,runningBalance:A,currentStatus:S,startMonth:w,endMonth:R,period:O}=d,{expenseCategory:v,expenseClass:I}=a;this.fireTrack(i.Event.scheduleDetailsDelete,{schedule_type:o,controller_emails:u,controller_user_ids:h,schedule_expense_category:v,schedule_expense_class:I,schedule_account_category:g,schedule_create_date:y,schedule_current_balance:A,schedule_current_status:S,schedule_description:k,schedule_end_month:R,schedule_monthly_amount:b,schedule_number_of_months:O,schedule_start_month:w,schedule_starting_balance:f,vendor_name:c,schedule_non_pending_last_month:m,schedule_non_pending_last_month_status:_})}trackScheduleAccruedDetailsLinkJournalEntry({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:h,controllerUserIds:m}){const{journalEntryMonth:_,journalEntryAmount:f,journalEntryBalance:g,journalEntryPostingStatus:k}=d,{scheduleCreateDate:y,scheduleMonthlyAmount:b,currentStatus:A,description:S,endMonth:w,period:R,runningBalance:O,scheduleAccountCategory:v,startMonth:I,startingBalance:N}=c,{expenseCategory:V,expenseClass:z}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:o,schedule_create_date:y,vendor_name:u,schedule_monthly_amount:b,schedule_description:S,schedule_current_status:A,schedule_start_month:I,schedule_end_month:w,schedule_number_of_months:R,schedule_current_balance:O,schedule_starting_balance:N,schedule_account_category:v,schedule_entry_expense_link_amount:f,schedule_entry_expense_link_balance:g,schedule_entry_expense_link_month:_,schedule_entry_current_status:k,schedule_expense_category:V,schedule_expense_class:z,controller_emails:h,controller_user_ids:m})}trackScheduleAccruedDetailsViewJournalEntry({scheduleType:o,scheduleJournalEntryType:a,scheduleExpenseCategoryAndClass:c,schedule:u,vendorName:d,journalEntryDetails:h,controllerEmails:m,controllerUserIds:_}){const{journalEntryMonth:f,journalEntryAmount:g,journalEntryBalance:k,journalEntryPostingStatus:y}=h,{scheduleCreateDate:b,scheduleMonthlyAmount:A,currentStatus:S,description:w,endMonth:R,period:O,runningBalance:v,scheduleAccountCategory:I,startMonth:N,startingBalance:V}=u,{expenseCategory:z,expenseClass:M}=c;this.fireTrack(i.Event.scheduleDetailsViewJournalEntry,{schedule_type:o,schedule_journal_entry_type:a,schedule_create_date:b,vendor_name:d,schedule_monthly_amount:A,schedule_account_category:I,schedule_description:w,schedule_current_status:S,schedule_start_month:N,schedule_end_month:R,schedule_number_of_months:O,schedule_expense_category:z,schedule_expense_class:M,schedule_current_balance:v,schedule_starting_balance:V,schedule_entry_current_status:y,schedule_entry_expense_link_amount:g,schedule_entry_expense_link_balance:k,schedule_entry_expense_link_month:f,controller_emails:m,controller_user_ids:_})}trackScheduleAccruedDetailsJournalEntryViewLinkedExpense({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:h,controllerUserIds:m}){const{journalEntryMonth:_,journalEntryAmount:f,journalEntryBalance:g,journalEntryPostingStatus:k}=d,{scheduleCreateDate:y,scheduleMonthlyAmount:b,currentStatus:A,description:S,endMonth:w,period:R,runningBalance:O,scheduleAccountCategory:v,startMonth:I,startingBalance:N}=c,{expenseCategory:V,expenseClass:z}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:o,schedule_create_date:y,vendor_name:u,schedule_monthly_amount:b,schedule_account_category:v,schedule_description:S,schedule_current_status:A,schedule_start_month:I,schedule_end_month:w,schedule_number_of_months:R,schedule_expense_category:V,schedule_expense_class:z,schedule_current_balance:O,schedule_starting_balance:N,schedule_entry_current_status:k,schedule_entry_expense_link_amount:f,schedule_entry_expense_link_balance:g,schedule_entry_expense_link_month:_,controller_emails:h,controller_user_ids:m})}trackScheduleAccruedDetailsJournalEntryLinkCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:h,controllerUserIds:m}){const{journalEntryMonth:_,journalEntryAmount:f,journalEntryBalance:g,journalEntryPostingStatus:k}=d,{scheduleCreateDate:y,scheduleMonthlyAmount:b,currentStatus:A,description:S,endMonth:w,period:R,runningBalance:O,scheduleAccountCategory:v,startMonth:I,startingBalance:N}=c,{expenseCategory:V,expenseClass:z}=a;this.fireTrack(i.Event.scheduleDetailsEntryCanceled,{schedule_type:o,schedule_create_date:y,vendor_name:u,schedule_monthly_amount:b,schedule_description:S,schedule_current_status:A,schedule_start_month:I,schedule_end_month:w,schedule_number_of_months:R,schedule_current_balance:O,schedule_starting_balance:N,schedule_account_category:v,schedule_entry_expense_link_month:_,schedule_expense_category:V,schedule_expense_class:z,schedule_entry_current_status:k,schedule_entry_expense_link_amount:f,schedule_entry_expense_link_balance:g,controller_emails:h,controller_user_ids:m})}trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:h,controllerUserIds:m}){const{currentStatus:_,description:f,endMonth:g,period:k,runningBalance:y,scheduleAccountCategory:b,scheduleCreateDate:A,scheduleMonthlyAmount:S,startMonth:w,startingBalance:R}=c,{wasRecommendationAvailable:O,journalEntryPostingStatus:v}=d,{expenseCategory:I,expenseClass:N}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:o,vendor_name:u,schedule_create_date:A,schedule_monthly_amount:S,schedule_description:f,schedule_current_status:_,schedule_start_month:w,schedule_end_month:g,schedule_number_of_months:k,schedule_current_balance:y,schedule_starting_balance:R,schedule_account_category:b,schedule_expense_category:I,schedule_expense_class:N,controller_emails:h,schedule_entry_current_status:v,controller_user_ids:m,is_vendor_recommended:O})}trackScheduleAccruedDetailsJournalEntryLinkedSaved({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,transactionDetails:d,journalEntryDetails:h,controllerEmails:m,controllerUserIds:_}){const{currentStatus:f,description:g,endMonth:k,period:y,runningBalance:b,scheduleAccountCategory:A,scheduleCreateDate:S,scheduleMonthlyAmount:w,startMonth:R,startingBalance:O}=c,{wasRecommendationAvailable:v,wasRecommendationSelected:I,journalEntryPostingStatus:N}=h,{linkedTransactionAmount:V,linkedTransactionDate:z,linkedTransactionDescription:M,linkedTransactionType:Z}=d,{expenseCategory:G,expenseClass:U}=a;this.fireTrack(i.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:o,vendor_name:u,schedule_create_date:S,schedule_monthly_amount:w,schedule_description:g,schedule_current_status:f,schedule_start_month:R,schedule_end_month:k,schedule_number_of_months:y,schedule_current_balance:b,schedule_starting_balance:O,schedule_account_category:A,schedule_expense_category:G,schedule_expense_class:U,controller_emails:m,controller_user_ids:_,is_vendor_recommended:v,was_recommendation_selected:I,linked_transaction_amount:V,linked_transaction_date:z,schedule_entry_current_status:N,linked_transaction_description:M,linked_transaction_type:Z})}trackScheduleAccruedDetailsJournalEntryLinkedCanceled({scheduleType:o,scheduleExpenseCategoryAndClass:a,schedule:c,vendorName:u,journalEntryDetails:d,controllerEmails:h,controllerUserIds:m}){const{currentStatus:_,description:f,endMonth:g,period:k,runningBalance:y,scheduleAccountCategory:b,scheduleCreateDate:A,scheduleMonthlyAmount:S,startMonth:w,startingBalance:R}=c,{wasRecommendationAvailable:O,journalEntryPostingStatus:v}=d,{expenseCategory:I,expenseClass:N}=a;this.fireTrack(i.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:o,vendor_name:u,schedule_create_date:A,schedule_monthly_amount:S,schedule_description:f,schedule_current_status:_,schedule_start_month:w,schedule_end_month:g,schedule_number_of_months:k,schedule_current_balance:y,schedule_starting_balance:R,schedule_account_category:b,schedule_expense_category:I,schedule_expense_class:N,controller_emails:h,controller_user_ids:m,schedule_entry_current_status:v,is_vendor_recommended:O})}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:h,description:m,status:_,priority:f,assignees:g,numberOfAttachments:k,tags:y,dueDate:b}=c.details;this.fireTrack(i.Event.taskEdited,{tenant_name:o,task_id:a,created_by:u,activity_count:c.count,activity_type:{name:h,description:m,status:_,priority:f,assignees:g,file_attached_count:k,tags:y,due_date:b},activity_by_user:c.byUser,comment_created:d})}trackTaskCreated({tenantName:o,taskId:a,newButtonClicked:c,activity:u,createdBy:d}){const{name:h,description:m,status:_,priority:f,assignees:g,numberOfAttachments:k,tags:y,dueDate:b}=u.details;this.fireTrack(i.Event.newTaskRequested,{tenant_name:o,task_id:a,created_by:d,new_task_button_clicked:c,file_attached_count:k,assignees:g,priority_set:f,task_name:h,task_description:m,task_status:_,tag_name:y?y.join(","):null,task_due_date:b})}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,h,m,_){this.fireTrack(i.Event.auditScorePercentage,{report_timestamp:o,report_month:a,score_percentage:c,issue_type:d,tenant:u,controller_name:m,customer_group:_,no_of_issues:h})}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,h){this.fireTrack(i.Event.monthCloseAuditPage,{month_year:`${o}-${a}`,audit_score:u,refresh_clicked:d,status:c,source:h})}trackTransactionsReviewPage(o,a,c,u,d,h){this.fireTrack(i.Event.transactionsReview,{month_year:`${o}-${a}`,refresh_clicked:d,number_of_transactions:c,transaction_updates:u,source:h})}trackTransactionsAutoCategorisedPage(o,a,c,u,d,h){this.fireTrack(i.Event.transactionsAutoCategorised,{month_year:`${o}-${a}`,refresh_clicked:d,number_of_transactions:c,transaction_updates:u,source:h})}trackMonthCloseScheduleListPage(o,a,c,u,d,h){this.fireTrack(i.Event.monthCloseScheduleList,{month_year:`${o}-${a}`,refresh_clicked:c,number_of_recommendations:u,failed_postings:d,source:h})}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,h,m){this.fireTrack(i.Event.insightsEmail,{month_year:`${o}-${a}`,refresh_clicked:c,email_status:u,audit_score:d,date:h,source:m})}trackCommentAdded(o,a,c,u,d,h){this.fireTrack(i.Event.commentAdded,{page_name:o,commented_on:a,comment_type:c,tenant:u,controller_name:d,created_by:h})}trackCommentActivity(o,a,c,u,d,h,m){this.fireTrack(i.Event.commentActivity,{page_name:o,comment_activity_type:a,tenant:c,controller_name:u,status:d,created_by:h,comment_activity_source:m})}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,h){this.fireTrack(i.Event.lowBalanceAccountSelected,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:h})}trackLowBalanceAccountSentForApproval(o,a,c,u,d,h){this.fireTrack(i.Event.lowBalanceAccountSentForApproval,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:h})}trackLowBalanceAccountApprove(o,a,c,u,d,h){this.fireTrack(i.Event.lowBalanceAccountApprove,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:h})}trackLowBalanceAccountReject(o,a,c,u,d,h){this.fireTrack(i.Event.lowBalanceAccountReject,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:h})}trackLowBalanceAccountChange(o,a,c,u,d,h){this.fireTrack(i.Event.lowBalanceAccountChange,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:h})}trackLowBalanceAccountSchedule(o,a,c,u,d,h){this.fireTrack(i.Event.lowBalanceAccountSchedule,{bill_stage:o,bill_status:a,bill_type:c,invoice_number:u,user_name:d,account_type:h})}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,h){this.fireTrack(i.Event.aiCFOChatSubmitted,{question_text:o,chat_source:a,chat_session_id:c,chat_message_id:d,chat_session_title:u,index:h})}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,h){this.fireTrack(i.Event.aiCFOChatResponseGenerated,{response_type:o,question_text:a,response_text:c,chat_session_id:u,chat_message_id:h,chat_session_title:d})}trackAICFOChatAnswerGenerated(o,a,c,u,d,h,m,_,f,g){this.fireTrack(i.Event.aiCFOChatAnswerGenerated,{has_visualization:h,visualization_type:m,has_follow_up_questions:c,has_assumptions:u,response_text:o,has_insights:d,question_text:a,chat_session_id:_,chat_message_id:g,chat_session_title:f})}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,h){this.fireTrack(i.Event.treasuryTransferAction,{clicked_on:o,from_account:a,to_account:c,amount:u,fund_percentage:d,page_name:h})}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})}trackTransactionCotView({recommendationFor:o,currentValue:a,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:d,recommendationReason:h,recommendationConfidenceLevel:m,alternativeRecommendation:_,alternativeRecommendationCot:f,isAlternativeRecommendationCotAvailable:g,alternativeRecommendationReason:k,alternativeRecommendationConfidenceLevel:y,transactionPage:b,transactionCurrentStatus:A,recommendationConfidencePercentage:S,alternativeRecommendationConfidencePercentage:w}){this.fireTrack(i.Event.transactionCotView,{recommendation_for:o,current_value:a,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:d,recommendation_reason:h,recommendation_confidence_percentage:S,recommendation_confidence_level:m,alternative_recommendation:_,alternative_recommendation_cot:f,is_alternative_recommendation_cot_available:g,alternative_recommendation_reason:k,alternative_recommendation_confidence_percentage:w,alternative_recommendation_confidence_level:y,transaction_page:b,transaction_current_status:A})}trackTransactionCotDropdownView({recommendationType:o,recommendationFor:a,currentValue:c,recommendation:u,recommendationCot:d,isRecommendationCotAvailable:h,recommendationReason:m,recommendationConfidenceLevel:_,transactionPage:f,transactionCurrentStatus:g,recommendationConfidencePercentage:k}){this.fireTrack(i.Event.transactionCotDropdownView,{recommendation_type:o,recommendation_for:a,current_value:c,recommendation:u,recommendation_cot:d,is_recommendation_cot_available:h,recommendation_reason:m,recommendation_confidence_percentage:k,recommendation_confidence_level:_,transaction_current_status:g,transaction_page:f})}trackTransactionCotViewAlternative({alternativeRecommendationFor:o,alternativeRecommendation:a,alternativeRecommendationCot:c,isAlternativeRecommendationCotAvailable:u,alternativeRecommendationReason:d,alternativeRecommendationConfidenceLevel:h,transactionPage:m,transactionCurrentStatus:_,alternativeRecommendationConfidencePercentage:f}){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:f,alternative_recommendation_confidence_level:h,transaction_current_status:_,transaction_page:m})}trackTransactionCotViewRecommended({recommendationFor:o,currentValue:a,recommendation:c,recommendationCot:u,isRecommendationCotAvailable:d,recommendationReason:h,recommendationConfidenceLevel:m,recommendationConfidencePercentage:_}){this.fireTrack(i.Event.transactionCotViewRecommended,{recommendation_for:o,current_value:a,recommendation:c,recommendation_cot:u,is_recommendation_cot_available:d,recommendation_reason:h,recommendation_confidence_percentage:_,recommendation_confidence_level: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,h){this.fireTrack(i.Event.autoTransferRuleActionClick,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:d,frequency:h})}trackAutoTransferRuleActionConfirm(o,a,c,u,d,h,m){this.fireTrack(i.Event.autoTransferRuleActionConfirm,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:d,frequency:h,update_log:m})}trackAutoTransferRuleActionCancel(o,a,c,u,d,h){this.fireTrack(i.Event.autoTransferRuleActionCancel,{rule_name:o,action_clicked:a,amount:c,withdrawal_bank:u,deposit_bank:d,frequency:h})}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 Ir.Analytics=s,Ir}();Object.defineProperty(t,"Analytics",{enumerable:!0,get:function(){return n.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 r=(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[o,a]of s.entries())o.startsWith("utm_")&&(l[o]=a);return l}),Ui);Object.defineProperty(t,"extractUtmParamsFromUrl",{enumerable:!0,get:function(){return r.extractUtmParamsFromUrl}})}(ss)),ss}var x,di={};if(typeof window>"u"){var ds={hostname:""};x={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 x=window;function hs(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ps(t,n,e,r,i,s,l){try{var o=t[s](l),a=o.value}catch(c){return void e(c)}o.done?n(a):Promise.resolve(a).then(r,i)}function Ca(t){return function(){var n=this,e=arguments;return new Promise(function(r,i){var s=t.apply(n,e);function l(a){ps(s,r,i,l,o,"next",a)}function o(a){ps(s,r,i,l,o,"throw",a)}l(void 0)})}}function dl(t,n,e){return(dl=pl()?Reflect.construct:function(r,i,s){var l=[null];l.push.apply(l,i);var o=new(Function.bind.apply(r,l));return s&&Si(o,s.prototype),o}).apply(null,arguments)}function Ue(t,n,e){return n&&function(r,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(r,l.key,l)}}(t.prototype,n),t}function pe(){return pe=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},pe.apply(this,arguments)}function hl(t){return(hl=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(t)}function $e(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Si(t,n)}function J(t,n){return n!=null&&typeof Symbol<"u"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Yr(t,n){if(t==null)return{};var e,r,i={},s=Object.keys(t);for(r=0;r<s.length;r++)e=s[r],n.indexOf(e)>=0||(i[e]=t[e]);return i}function Si(t,n){return(Si=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(t,n)}function ne(t){return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function hi(t){var n=typeof Map=="function"?new Map:void 0;return hi=function(e){if(e===null||(r=e,Function.toString.call(r).indexOf("[native code]")===-1))return e;var r;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(e))return n.get(e);n.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,n){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))||n){e&&(t=e);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}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,n){var e,r,i,s,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(a){return function(c){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;l;)try{if(e=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,r=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(i=l.trys,!((i=i.length>0&&i[i.length-1])||u[0]!==6&&u[0]!==2)){l=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){l.label=u[1];break}if(u[0]===6&&l.label<i[1]){l.label=i[1],i=u;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(u);break}i[2]&&l.ops.pop(),l.trys.pop();continue}u=n.call(t,l)}catch(d){u=[6,d],r=0}finally{e=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([a,c])}}}function fl(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var fs,Nd=Object.defineProperty,B=function(t,n,e){return function(r,i,s){return i in r?Nd(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s}(t,(n===void 0?"undefined":ne(n))!=="symbol"?n+"":n,e)},Fd=Object.defineProperty,ms=function(t,n,e){return function(r,i,s){return i in r?Fd(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s}(t,(n===void 0?"undefined":ne(n))!=="symbol"?n+"":n,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 n=globalThis[t],e=n.prototype,r=t in _s?_s[t]:void 0,i=!!(r&&r.every(function(u){var d,h;return!!((h=(d=Object.getOwnPropertyDescriptor(e,u))==null?void 0:d.get)!=null&&h.toString().includes("[native code]"))})),s=t in gs?gs[t]:void 0,l=!!(s&&s.every(function(u){var d;return typeof e[u]=="function"&&((d=e[u])==null?void 0:d.toString().includes("[native code]"))}));if(i&&l&&!globalThis.Zone)return hn[t]=n.prototype,n.prototype;try{var o=document.createElement("iframe");document.body.appendChild(o);var a=o.contentWindow;if(!a)return n.prototype;var c=a[t].prototype;return document.body.removeChild(o),c?hn[t]=c:e}catch{return e}}var ji={};function Ot(t,n,e){var r,i=t+"."+String(e);if(ji[i])return ji[i].call(n);var s=wa(t),l=(r=Object.getOwnPropertyDescriptor(s,e))==null?void 0:r.get;return l?(ji[i]=l,l.call(n)):n[e]}var qi={};function vs(t,n,e){var r=t+"."+String(e);if(qi[r])return qi[r].bind(n);var i=wa(t)[e];return typeof i!="function"?n[e]:(qi[r]=i,i.bind(n))}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,n){return vs("Node",t,"contains")(n)},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,n){return Ot("Element",t,"querySelector")(n)},querySelectorAll:function(t,n){return Ot("Element",t,"querySelectorAll")(n)},mutationObserver:function(){return wa("MutationObserver").constructor},patch:function(t,n,e){try{if(!(n in t))return function(){};var r=t[n],i=e(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[n]=i,function(){t[n]=r}}catch{return function(){}}}};function ml(t){return t.nodeType===t.ELEMENT_NODE}function Wr(t){var n=t&&"host"in t&&"mode"in t&&Ge.host(t)||null;return!!(n&&"shadowRoot"in n&&Ge.shadowRoot(n)===t)}function Gr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function _o(t){try{var n=t.rules||t.cssRules;if(!n)return null;var e=t.href;!e&&t.ownerNode&&t.ownerNode.ownerDocument&&(e=t.ownerNode.ownerDocument.location.href);var r=Array.from(n,function(s){return _l(s,e)}).join("");return(i=r).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,n){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 o=["@import","url("+JSON.stringify(s.href)+")"];return s.layerName===""?o.push("layer"):s.layerName&&o.push("layer("+s.layerName+")"),s.supportsText&&o.push("supports("+s.supportsText+")"),s.media.length&&o.push(s.media.mediaText),o.join(" ")+";"}(t)}catch{e=t.cssText}return t.styleSheet.href?mi(e,t.styleSheet.href):e}var r,i=t.cssText;return function(s){return"selectorText"in s}(t)&&t.selectorText.includes(":")&&(r=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(r,"$1\\$2")),n?mi(i,n):i}var gl=function(){function t(){ms(this,"idNodeMap",new Map),ms(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var i=(r=this.getMeta(e))==null?void 0:r.id;return i??-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e){var r=this,i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var i=r.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var i=this.getNode(e);if(i){var s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t}();function pi(t){var n=t.element,e=t.maskInputOptions,r=t.tagName,i=t.type,s=t.value,l=t.maskInputFn,o=s||"",a=i&&Yt(i);return(e[r.toLowerCase()]||a&&e[a])&&(o=l?l(o,n):"*".repeat(o.length)),o}function Yt(t){return t.toLowerCase()}var ys="__rrweb_original__";function fi(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Yt(n):null}function bs(t,n){var e;try{e=new URL(t,n??window.location.href)}catch{return null}var r,i=e.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(r=i?.[1])!=null?r:null}var Vd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ud=/^(?:[a-z+]+:)?\/\//i,jd=/^www\..*/i,qd=/^(data:)([^,]*),(.*)/i;function mi(t,n){return(t||"").replace(Vd,function(e,r,i,s,l,o){var a,c=i||l||o,u=r||s||"";if(!c)return e;if(Ud.test(c)||jd.test(c)||qd.test(c))return"url("+u+c+u+")";if(c[0]==="/")return"url("+u+(((a=n).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var d=n.split("/"),h=c.split("/");d.pop();for(var m,_=F(h);!(m=_()).done;){var f=m.value;f!=="."&&(f===".."?d.pop():d.push(f))}return"url("+u+d.join("/")+u+")"})}function pn(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function zd(t,n){return function(e,r,i){i===void 0&&(i=!1);var s=Array.from(r.childNodes),l=[],o=0;if(s.length>1&&e&&typeof e=="string"){for(var a=pn(e,i),c=a.length/e.length,u=1;u<s.length;u++)if(s[u].textContent&&typeof s[u].textContent=="string"){for(var d=pn(s[u].textContent,i),h=3;h<d.length&&(d[h].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,h),1)!==-1);h++);for(;h<d.length;h++){var m=d.substring(0,h),_=a.split(m),f=-1;if(_.length===2)f=_[0].length;else if(_.length>2&&_[0]===""&&s[u-1].textContent!=="")f=a.indexOf(m,1);else if(_.length===1){if(m=m.substring(0,m.length-1),(_=a.split(m)).length<=1)return l.push(e),l;h=101}else h===d.length-1&&(f=a.indexOf(m));if(_.length>=2&&h>100){var g=s[u-1].textContent;if(g&&typeof g=="string"){var k=pn(g).length;f=a.indexOf(m,k)}f===-1&&(f=_[0].length)}if(f!==-1){for(var y=Math.floor(f/c);y>0&&y<e.length;){if((o+=1)>50*s.length)return l.push(e),l;var b=pn(e.substring(0,y),i);if(b.length===f){l.push(e.substring(0,y)),e=e.substring(y),a=a.substring(f);break}b.length<f?y+=Math.max(1,Math.floor((f-b.length)/c)):y-=Math.max(1,Math.floor((b.length-f)*c))}break}}}}return l.push(e),l}(t,n).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 xr(t,n){return n&&n.trim()!==""?Sa(t,n):n}function Zd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Sa(t,n){var e=Cs.get(t);if(e||(e=t.createElement("a"),Cs.set(t,e)),n){if(n.startsWith("blob:")||n.startsWith("data:"))return n}else n="";return e.setAttribute("href",n),e.href}function yl(t,n,e,r){return r&&(e==="src"||e==="href"&&(n!=="use"||r[0]!=="#")||e==="xlink:href"&&r[0]!=="#"?xr(t,r):e!=="background"||n!=="table"&&n!=="td"&&n!=="th"?e==="srcset"?function(i,s){if(s.trim()==="")return s;var l=0;function o(m){var _,f=m.exec(s.substring(l));return f?(_=f[0],l+=_.length,_):""}for(var a=[];o(Hd),!(l>=s.length);){var c=o($d);if(c.slice(-1)===",")c=xr(i,c.substring(0,c.length-1)),a.push(c);else{var u="";c=xr(i,c);for(var d=!1;;){var h=s.charAt(l);if(h===""){a.push((c+u).trim());break}if(d)h===")"&&(d=!1);else{if(h===","){l+=1,a.push((c+u).trim());break}h==="("&&(d=!0)}u+=h,l+=1}}}return a.join(", ")}(t,r):e==="style"?mi(r,Sa(t)):n==="object"&&e==="data"?xr(t,r):r:xr(t,r))}function bl(t,n,e){return(t==="video"||t==="audio")&&n==="autoplay"}function _i(t,n,e){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&_i(Ge.parentNode(t),n,e);for(var r=t.classList.length;r--;){var i=t.classList[r];if(n.test(i))return!0}return!!e&&_i(Ge.parentNode(t),n,e)}function kl(t,n,e,r){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 n=="string"){if(r){if(i.closest("."+n))return!0}else if(i.classList.contains(n))return!0}else if(_i(i,n,r))return!0;if(e){if(r){if(i.closest(e))return!0}else if(i.matches(e))return!0}}catch{}return!1}function Jd(t,n){var e=n.doc,r=n.mirror,i=n.blockClass,s=n.blockSelector,l=n.needsMask,o=n.inlineStylesheet,a=n.maskInputOptions,c=a===void 0?{}:a,u=n.maskTextFn,d=n.maskInputFn,h=n.dataURLOptions,m=h===void 0?{}:h,_=n.inlineImages,f=n.recordCanvas,g=n.keepIframeSrcFn,k=n.newlyAddedElement,y=k!==void 0&&k,b=n.cssCaptured,A=b!==void 0&&b,S=function(w,R){if(R.hasNode(w)){var O=R.getId(w);return O===1?void 0:O}}(e,r);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:S};case t.ELEMENT_NODE:return function(w,R){for(var O,v=R.doc,I=R.blockClass,N=R.blockSelector,V=R.inlineStylesheet,z=R.maskInputOptions,M=z===void 0?{}:z,Z=R.maskInputFn,G=R.dataURLOptions,U=G===void 0?{}:G,ie=R.inlineImages,ee=R.recordCanvas,$=R.keepIframeSrcFn,j=R.newlyAddedElement,W=j!==void 0&&j,q=R.rootId,P=function(Te,Ve,Ye){try{if(typeof Ve=="string"){if(Te.classList.contains(Ve))return!0}else for(var bt=Te.classList.length;bt--;){var Pt=Te.classList[bt];if(Ve.test(Pt))return!0}if(Ye)return Te.matches(Ye)}catch{}return!1}(w,I,N),E=function(Te){if(J(Te,HTMLFormElement))return"form";var Ve=Yt(Te.tagName);return Gd.test(Ve)?"div":Ve}(w),T={},L=w.attributes.length,oe=0;oe<L;oe++){var te=w.attributes[oe];bl(E,te.name,te.value)||(T[te.name]=yl(v,E,Yt(te.name),te.value))}if(E==="link"&&V){var Ae=Array.from(v.styleSheets).find(function(Te){return Te.href===w.href}),Re=null;Ae&&(Re=_o(Ae)),Re&&(delete T.rel,delete T.href,T._cssText=Re)}if(E==="style"&&w.sheet){var He=_o(w.sheet);He&&(w.childNodes.length>1&&(He=zd(He,w)),T._cssText=He)}if(E==="input"||E==="textarea"||E==="select"){var et=w.value,Ze=w.checked;T.type!=="radio"&&T.type!=="checkbox"&&T.type!=="submit"&&T.type!=="button"&&et?T.value=pi({element:w,type:fi(w),tagName:E,value:et,maskInputOptions:M,maskInputFn:Z}):Ze&&(T.checked=Ze)}if(E==="option"&&(w.selected&&!M.select?T.selected=!0:delete T.selected),E==="dialog"&&w.open&&(T.rr_open_mode=w.matches("dialog:modal")?"modal":"non-modal"),E==="canvas"&&ee){if(w.__context==="2d")(function(Te){var Ve=Te.getContext("2d");if(!Ve)return!0;for(var Ye=0;Ye<Te.width;Ye+=50)for(var bt=0;bt<Te.height;bt+=50){var Pt=Ve.getImageData,rr=ys in Pt?Pt[ys]:Pt;if(new Uint32Array(rr.call(Ve,Ye,bt,Math.min(50,Te.width-Ye),Math.min(50,Te.height-bt)).data.buffer).some(function(nr){return nr!==0}))return!1}return!0})(w)||(T.rr_dataURL=w.toDataURL(U.type,U.quality));else if(!("__context"in w)){var Je=w.toDataURL(U.type,U.quality),Be=v.createElement("canvas");Be.width=w.width,Be.height=w.height,Je!==Be.toDataURL(U.type,U.quality)&&(T.rr_dataURL=Je)}}if(E==="img"&&ie){or||(or=v.createElement("canvas"),ks=or.getContext("2d"));var D=w,ge=D.currentSrc||D.getAttribute("src")||"<unknown-src>",ut=D.crossOrigin,je=function(){D.removeEventListener("load",je);try{or.width=D.naturalWidth,or.height=D.naturalHeight,ks.drawImage(D,0,0),T.rr_dataURL=or.toDataURL(U.type,U.quality)}catch(Te){if(D.crossOrigin!=="anonymous")return D.crossOrigin="anonymous",void(D.complete&&D.naturalWidth!==0?je():D.addEventListener("load",je));console.warn("Cannot inline img src="+ge+"! Error: "+Te)}D.crossOrigin==="anonymous"&&(ut?T.crossOrigin=ut:D.removeAttribute("crossorigin"))};D.complete&&D.naturalWidth!==0?je():D.addEventListener("load",je)}if(E==="audio"||E==="video"){var qe=T;qe.rr_mediaState=w.paused?"paused":"played",qe.rr_mediaCurrentTime=w.currentTime,qe.rr_mediaPlaybackRate=w.playbackRate,qe.rr_mediaMuted=w.muted,qe.rr_mediaLoop=w.loop,qe.rr_mediaVolume=w.volume}if(W||(w.scrollLeft&&(T.rr_scrollLeft=w.scrollLeft),w.scrollTop&&(T.rr_scrollTop=w.scrollTop)),P){var at=w.getBoundingClientRect(),dt=at.width,tr=at.height;T={class:T.class,rr_width:dt+"px",rr_height:tr+"px"}}E!=="iframe"||$(T.src)||(w.contentDocument||(T.rr_src=T.src),delete T.src);try{customElements.get(E)&&(O=!0)}catch{}return{type:Fe.Element,tagName:E,attributes:T,childNodes:[],isSVG:Zd(w)||void 0,needBlock:P,rootId:q,isCustom:O}}(t,{doc:e,blockClass:i,blockSelector:s,inlineStylesheet:o,maskInputOptions:c,maskInputFn:d,dataURLOptions:m,inlineImages:_,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:y,rootId:S});case t.TEXT_NODE:return function(w,R){var O=R.needsMask,v=R.maskTextFn,I=R.rootId,N=R.cssCaptured,V=Ge.parentNode(w),z=V&&V.tagName,M="",Z=z==="STYLE"||void 0,G=z==="SCRIPT"||void 0;return G?M="SCRIPT_PLACEHOLDER":N||(M=Ge.textContent(w),Z&&M&&(M=mi(M,Sa(R.doc)))),!Z&&!G&&M&&O&&(M=v?v(M,Ge.parentElement(w)):M.replace(/[\S]/g,"*")),{type:Fe.Text,textContent:M||"",rootId:I}}(t,{doc:e,needsMask:l,maskTextFn:u,rootId:S,cssCaptured:A});case t.CDATA_SECTION_NODE:return{type:Fe.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:Fe.Comment,textContent:Ge.textContent(t)||"",rootId:S};default:return!1}}function ve(t){return t==null?"":t.toLowerCase()}function yr(t,n){var e=n.doc,r=n.mirror,i=n.blockClass,s=n.blockSelector,l=n.maskTextClass,o=n.maskTextSelector,a=n.skipChild,c=a!==void 0&&a,u=n.inlineStylesheet,d=u===void 0||u,h=n.maskInputOptions,m=h===void 0?{}:h,_=n.maskTextFn,f=n.maskInputFn,g=n.slimDOMOptions,k=n.dataURLOptions,y=k===void 0?{}:k,b=n.inlineImages,A=b!==void 0&&b,S=n.recordCanvas,w=S!==void 0&&S,R=n.onSerialize,O=n.onIframeLoad,v=n.iframeLoadTimeout,I=v===void 0?5e3:v,N=n.onStylesheetLoad,V=n.stylesheetLoadTimeout,z=V===void 0?5e3:V,M=n.keepIframeSrcFn,Z=M===void 0?function(){return!1}:M,G=n.newlyAddedElement,U=G!==void 0&&G,ie=n.cssCaptured,ee=ie!==void 0&&ie,$=n.needsMask,j=n.preserveWhiteSpace,W=j===void 0||j;$||($=kl(t,l,o,$===void 0));var q,P=Jd(t,{doc:e,mirror:r,blockClass:i,blockSelector:s,needsMask:$,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:f,dataURLOptions:y,inlineImages:A,recordCanvas:w,keepIframeSrcFn:Z,newlyAddedElement:U,cssCaptured:ee});if(!P)return console.warn(t,"not serialized"),null;q=r.hasNode(t)?r.getId(t):function(D,ge){return!!(ge.comment&&D.type===Fe.Comment||D.type===Fe.Element&&(ge.script&&(D.tagName==="script"||D.tagName==="link"&&(D.attributes.rel==="preload"&&D.attributes.as==="script"||D.attributes.rel==="modulepreload")||D.tagName==="link"&&D.attributes.rel==="prefetch"&&typeof D.attributes.href=="string"&&bs(D.attributes.href)==="js")||ge.headFavicon&&(D.tagName==="link"&&D.attributes.rel==="shortcut icon"||D.tagName==="meta"&&(ve(D.attributes.name).match(/^msapplication-tile(image|color)$/)||ve(D.attributes.name)==="application-name"||ve(D.attributes.rel)==="icon"||ve(D.attributes.rel)==="apple-touch-icon"||ve(D.attributes.rel)==="shortcut icon"))||D.tagName==="meta"&&(ge.headMetaDescKeywords&&ve(D.attributes.name).match(/^description|keywords$/)||ge.headMetaSocial&&(ve(D.attributes.property).match(/^(og|twitter|fb):/)||ve(D.attributes.name).match(/^(og|twitter):/)||ve(D.attributes.name)==="pinterest")||ge.headMetaRobots&&(ve(D.attributes.name)==="robots"||ve(D.attributes.name)==="googlebot"||ve(D.attributes.name)==="bingbot")||ge.headMetaHttpEquiv&&D.attributes["http-equiv"]!==void 0||ge.headMetaAuthorship&&(ve(D.attributes.name)==="author"||ve(D.attributes.name)==="generator"||ve(D.attributes.name)==="framework"||ve(D.attributes.name)==="publisher"||ve(D.attributes.name)==="progid"||ve(D.attributes.property).match(/^article:/)||ve(D.attributes.property).match(/^product:/))||ge.headMetaVerification&&(ve(D.attributes.name)==="google-site-verification"||ve(D.attributes.name)==="yandex-verification"||ve(D.attributes.name)==="csrf-token"||ve(D.attributes.name)==="p:domain_verify"||ve(D.attributes.name)==="verify-v1"||ve(D.attributes.name)==="verification"||ve(D.attributes.name)==="shopify-checkout-api-token"))))}(P,g)||!W&&P.type===Fe.Text&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?-2:vl();var E=Object.assign(P,{id:q});if(r.add(t,E),q===-2)return null;R&&R(t);var T=!c;if(E.type===Fe.Element){T=T&&!E.needBlock,delete E.needBlock;var L=Ge.shadowRoot(t);L&&Gr(L)&&(E.isShadowHost=!0)}if((E.type===Fe.Document||E.type===Fe.Element)&&T){g.headWhitespace&&E.type===Fe.Element&&E.tagName==="head"&&(W=!1);var oe={doc:e,mirror:r,blockClass:i,blockSelector:s,needsMask:$,maskTextClass:l,maskTextSelector:o,skipChild:c,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:f,slimDOMOptions:g,dataURLOptions:y,inlineImages:A,recordCanvas:w,preserveWhiteSpace:W,onSerialize:R,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:N,stylesheetLoadTimeout:z,keepIframeSrcFn:Z,cssCaptured:!1};if(!(E.type===Fe.Element&&E.tagName==="textarea"&&E.attributes.value!==void 0)){E.type===Fe.Element&&E.attributes._cssText!==void 0&&typeof E.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&&E.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),E.childNodes.push(Je))}}var Be=Ge.parentNode(t);return Be&&Wr(Be)&&Gr(Be)&&(E.isShadow=!0),E.type===Fe.Element&&E.tagName==="iframe"&&function(D,ge,ut){var je=D.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||D.src===dt||D.src==="")return setTimeout(ge,0),D.addEventListener("load",ge);D.addEventListener("load",ge)}else{var tr=setTimeout(function(){at||(ge(),at=!0)},ut);D.addEventListener("load",function(){clearTimeout(tr),at=!0,ge()})}}}(t,function(){var D=t.contentDocument;if(D&&O){var ge=yr(D,{doc:D,mirror:r,blockClass:i,blockSelector:s,needsMask:$,maskTextClass:l,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:f,slimDOMOptions:g,dataURLOptions:y,inlineImages:A,recordCanvas:w,preserveWhiteSpace:W,onSerialize:R,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:N,stylesheetLoadTimeout:z,keepIframeSrcFn:Z});ge&&O(t,ge)}},I),E.type===Fe.Element&&E.tagName==="link"&&typeof E.attributes.rel=="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href=="string"&&bs(E.attributes.href)==="css")&&function(D,ge,ut){var je,qe=!1;try{je=D.sheet}catch{return}if(!je){var at=setTimeout(function(){qe||(ge(),qe=!0)},ut);D.addEventListener("load",function(){clearTimeout(at),qe=!0,ge()})}}(t,function(){if(N){var D=yr(t,{doc:e,mirror:r,blockClass:i,blockSelector:s,needsMask:$,maskTextClass:l,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:f,slimDOMOptions:g,dataURLOptions:y,inlineImages:A,recordCanvas:w,preserveWhiteSpace:W,onSerialize:R,onIframeLoad:O,iframeLoadTimeout:I,onStylesheetLoad:N,stylesheetLoadTimeout:z,keepIframeSrcFn:Z});D&&N(t,D)}},z),E}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 n=t.default;if(typeof n=="function"){var e=function r(){return J(this,r)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),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 Kd=go.exports,Oe=Xd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ss=Kd,Es=Oe,vo=function(t){function n(r,i,s,l,o,a){var c;return(c=t.call(this,r)||this).name="CssSyntaxError",c.reason=r,o&&(c.file=o),l&&(c.source=l),a&&(c.plugin=a),i!==void 0&&s!==void 0&&(typeof i=="number"?(c.line=i,c.column=s):(c.line=i.line,c.column=i.column,c.endLine=s.line,c.endColumn=s.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}$e(n,t);var e=n.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(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Ss.isColorSupported),Es&&r&&(s=Es(s));var l,o,a=s.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,a.length),d=String(u).length;if(r){var h=Ss.createColors(!0),m=h.bold,_=h.gray,f=h.red;l=function(g){return m(f(g))},o=function(g){return _(g)}}else l=o=function(g){return g};return a.slice(c,u).map(function(g,k){var y=c+1+k,b=" "+(" "+y).slice(-d)+" | ";if(y===i.line){var A=o(b.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return l(">")+o(b)+g+`
|
|
2
|
-
`+A+l("^")}return" "+o(b)+g}).join(`
|
|
3
|
-
`)},e.toString=function(){var r=this.showSourceCode();return r&&(r=`
|
|
4
|
-
|
|
5
|
-
`+r+`
|
|
6
|
-
`),this.name+": "+this.message+r},n}(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 n=t.prototype;return n.atrule=function(e,r){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||"")+(r?";":"");this.builder(i+s+l,e)}},n.beforeAfter=function(e,r){var i;i=e.type==="decl"?this.raw(e,null,"beforeDecl"):e.type==="comment"?this.raw(e,null,"beforeComment"):r==="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 o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<l;a++)i+=o}return i},n.block=function(e,r){var i,s=this.raw(e,"between","beforeOpen");this.builder(r+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")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var l=e.nodes[s],o=this.raw(l,"before");o&&this.builder(o),this.stringify(l,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r])!==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 o=e.root();if(o.rawCache||(o.rawCache={}),o.rawCache[i]!==void 0)return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var a,c="raw"+((a=i)[0].toUpperCase()+a.slice(1));return this[c]?s=this[c](o,e):o.walk(function(u){if((s=u.raws[r])!==void 0)return!1}),s===void 0&&(s=As[i]),o.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&i.raws.after!==void 0)return(r=i.raws.after).includes(`
|
|
13
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){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(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){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(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk(function(i){if(i.type!=="decl"&&(r=i.raws.between)!==void 0)return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&i.raws.before!==void 0)return(r=i.raws.before).includes(`
|
|
16
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(i){if(i.raws.between!==void 0)return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after)!==void 0)return!1}),r},n.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 r=(r=l[l.length-1]).replace(/\S/g,""),!1}}),r);var r},n.rawSemicolon=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon)!==void 0)return!1}),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),Cl=yo;yo.default=yo;var Qd=Cl;function bo(t,n){new Qd(n).stringify(t)}var Ei=bo;bo.default=bo;var fn=Wt.isClean,eh=Wt.my,th=Ea,rh=Cl,nh=Ei;function ko(t,n){var e=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r!=="proxyCache"){var i=t[r],s=i===void 0?"undefined":ne(i);r==="parent"&&s==="object"?n&&(e[r]=n):r==="source"?e[r]=i:Array.isArray(i)?e[r]=i.map(function(l){return ko(l,e)}):(s==="object"&&i!==null&&(i=ko(i)),e[r]=i)}return e}var Co=function(){function t(e){for(var r in e===void 0&&(e={}),this.raws={},this[fn]=!1,this[eh]=!0,e)if(r==="nodes"){this.nodes=[];for(var i,s=F(e[r]);!(i=s()).done;){var l=i.value;typeof l.clone=="function"?this.append(l.clone()):this.append(l)}}else this[r]=e[r]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){for(var r in e===void 0&&(e={}),e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ko(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,l=i.start;return this.source.input.error(e,{column:l.column,line:l.line},{column:s.column,line:s.line},r)}return new th(e)},n.getProxyProcessor=function(){return{get:function(e,r){return r==="proxyOf"?e:r==="root"?function(){return e.root().toProxy()}:e[r]},set:function(e,r,i){return e[r]===i||(e[r]=i,r!=="prop"&&r!=="value"&&r!=="name"&&r!=="params"&&r!=="important"&&r!=="text"||e.markDirty()),!0}}},n.markDirty=function(){if(this[fn]){this[fn]=!1;for(var e=this;e=e.parent;)e[fn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){var s=(r=this.toString()).indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||this.toString(),s=this.source.start.column,l=this.source.start.line,o=0;o<e;o++)i[o]===`
|
|
18
|
-
`?(s=1,l+=1):s+=1;return{column:s,line:l}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={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:r.column+1,line:r.line};if(e.word){var s=this.toString(),l=s.indexOf(e.word);l!==-1&&(r=this.positionInside(l,s),i=this.positionInside(l+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=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<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){return new rh().raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s,l=this,o=!1,a=F(r);!(s=a()).done;){var c=s.value;c===this?o=!0:o?(this.parent.insertAfter(l,c),l=c):this.parent.insertBefore(l,c)}o||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||new Map;var l=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&o!=="parent"&&o!=="proxyCache"){var a=this[o];if(Array.isArray(a))i[o]=a.map(function(u){return(u===void 0?"undefined":ne(u))==="object"&&u.toJSON?u.toJSON(null,r):u});else if((a===void 0?"undefined":ne(a))==="object"&&a.toJSON)i[o]=a.toJSON(null,r);else if(o==="source"){var c=r.get(a.input);c==null&&(c=l,r.set(a.input,l),l++),i[o]={end:a.end,inputId:c,start:a.start}}else i[o]=a}return s&&(i.inputs=[].concat(r.keys()).map(function(u){return u.toJSON()})),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=nh),e.stringify&&(e=e.stringify);var r="";return e(this,function(i){r+=i}),r},n.warn=function(e,r,i){var s={node:this};for(var l in i)s[l]=i[l];return e.warn(r,s)},Ue(t,[{key:"proxyOf",get:function(){return this}}]),t}(),Ai=Co;Co.default=Co;var wo=function(t){function n(e){var r;return e&&e.value!==void 0&&typeof e.value!="string"&&(e=pe({},e,{value:String(e.value)})),(r=t.call(this,e)||this).type="decl",r}return $e(n,t),Ue(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Ai),Ti=wo;wo.default=wo;var ih=function(t){t===void 0&&(t=21);for(var n="",e=t;e--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return n},Ts=Oe.SourceMapConsumer,Is=Oe.SourceMapGenerator,oh=Oe.existsSync,ah=Oe.readFileSync,zi=Oe.dirname,sh=Oe.join,So=function(){function t(e,r){if(r.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var i=r.map?r.map.prev:void 0,s=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=zi(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ts(this.text)),this.consumerCache},n.decodeInline=function(e){var r;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 r=e.substr(RegExp.lastMatch.length),zt?zt.from(r,"base64").toString():window.atob(r);var i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(e===void 0?"undefined":ne(e))==="object"&&(typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections))},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=zi(e),oh(e))return this.mapFile=e,ah(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r!="function"){if(J(r,Ts))return Is.fromSourceMap(r).toString();if(J(r,Is))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}var i=r(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)}}},n.startWith=function(e,r){return!!e&&e.substr(0,r.length)===r},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),wl=So;So.default=So;var ch=Oe.SourceMapConsumer,lh=Oe.SourceMapGenerator,xs=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),Ps=!!(Ao&&Eo),qn=function(){function t(e,r){if(r===void 0&&(r={}),e==null||(e===void 0?"undefined":ne(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,r.from&&(!Ps||/^\w+:\/\//.test(r.from)||Eo(r.from)?this.file=r.from:this.file=Ao(r.from)),Ps&&hh){var i=new dh(this.css,r);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 n=t.prototype;return n.error=function(e,r,i,s){var l,o,a;if(s===void 0&&(s={}),r&&(r===void 0?"undefined":ne(r))==="object"){var c=r,u=i;if(typeof c.offset=="number"){var d=this.fromOffset(c.offset);r=d.line,i=d.col}else r=c.line,i=c.column;if(typeof u.offset=="number"){var h=this.fromOffset(u.offset);o=h.line,a=h.col}else o=u.line,a=u.column}else if(!i){var m=this.fromOffset(r);r=m.line,i=m.col}var _=this.origin(r,i,o,a);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,o===void 0?r:{column:i,line:r},o===void 0?i:{column:a,line:o},this.css,this.file,s.plugin)).input={column:i,endColumn:a,endLine:o,line:r,source:this.css},this.file&&(mn&&(l.input.url=mn(this.file).toString()),l.input.file=this.file),l},n.fromOffset=function(e){var r;if(this[Gi])r=this[Gi];else{var i=this.css.split(`
|
|
19
|
-
`);r=new Array(i.length);for(var s=0,l=0,o=i.length;l<o;l++)r[l]=s,s+=i[l].length+1;this[Gi]=r}var a=0;if(e>=r[r.length-1])a=r.length-1;else for(var c,u=r.length-2;a<u;)if(e<r[c=a+(u-a>>1)])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}return{col:e-r[a]+1,line:a+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ao(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var l,o,a=this.map.consumer(),c=a.originalPositionFor({column:r,line:e});if(!c.source)return!1;typeof i=="number"&&(l=a.originalPositionFor({column:s,line:i})),o=Eo(c.source)?mn(c.source):new URL(c.source,this.map.consumer().sourceRoot||mn(this.map.mapFile));var u={column:c.column,endColumn:l&&l.column,endLine:l&&l.line,line:c.line,url:o.toString()};if(o.protocol==="file:"){if(!xs)throw new Error("file: protocol is not available in this PostCSS build");u.file=xs(o)}var d=a.sourceContentFor(c.source);return d&&(u.source=d),u},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];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}(),Ii=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,Tl=Oe.sep,Os=Oe.pathToFileURL,ph=Ii,fh=!!(Sl&&zn),mh=!!(Wn&&Al&&El&&Tl),Il=function(){function t(e,r,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=r,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 n=t.prototype;return n.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 r=`
|
|
20
|
-
`;this.css.includes(`\r
|
|
21
|
-
`)&&(r=`\r
|
|
22
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e,r=F(this.previous());!(e=r()).done;){var i=e.value,s=this.toUrl(this.path(i.file)),l=i.root||Wn(i.file),o=void 0;this.mapOpts.sourcesContent===!1?(o=new Sl(i.text)).sourcesContent&&(o.sourcesContent=null):o=i.consumer(),this.map.applySourceMap(o,s,this.toUrl(this.path(l)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)(e=this.root.nodes[r]).type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),mh&&fh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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]},n.generateString=function(){var e=this;this.css="",this.map=new zn({file:this.outputFile(),ignoreInvalidMapping:!0});var r,i,s=1,l=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(c,u,d){if(e.css+=c,u&&d!=="end"&&(a.generated.line=s,a.generated.column=l-1,u.source&&u.source.start?(a.source=e.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(r=c.match(/\n/g))?(s+=r.length,i=c.lastIndexOf(`
|
|
23
|
-
`),l=c.length-i):l+=c.length,u&&d!=="start"){var h=u.parent||{raws:{}};(u.type==="decl"||u.type==="atrule"&&!u.nodes)&&u===h.last&&!h.raws.semicolon||(u.source&&u.source.end?(a.source=e.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=s,a.generated.column=l-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=s,a.generated.column=l-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},n.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(r){return r.inline}))},n.isMap=function(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;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},n.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 r=new ph(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var l=s.source.input.from;if(l&&!r[l]){r[l]=!0;var o=e.usesFileUrls?e.toFileUrl(l):e.toUrl(e.path(l));e.map.setSourceContent(o,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)}},n.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))},n.toBase64=function(e){return zt?zt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;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")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Tl==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),To=function(t){function n(e){var r;return(r=t.call(this,e)||this).type="comment",r}return $e(n,t),n}(Ai),xi=To;To.default=To;var xl,Aa,Ta,Rl,Pl=Wt.isClean,Ol=Wt.my,Dl=Ti,Bl=xi;function Ml(t){return t.map(function(n){return n.nodes&&(n.nodes=Ml(n.nodes)),delete n.source,n})}function Ll(t){if(t[Pl]=!1,t.proxyOf.nodes)for(var n,e=F(t.proxyOf.nodes);!(n=e()).done;)Ll(n.value)}var It=function(t){function n(){return t.apply(this,arguments)||this}$e(n,t);var e=n.prototype;return e.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var l,o=F(i);!(l=o()).done;)for(var a,c=l.value,u=F(this.normalize(c,this.last));!(a=u()).done;){var d=a.value;this.proxyOf.nodes.push(d)}return this.markDirty(),this},e.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i,s=F(this.nodes);!(i=s()).done;)i.value.cleanRaws(r)},e.each=function(r){if(this.proxyOf.nodes){for(var i,s,l=this.getIterator();this.indexes[l]<this.proxyOf.nodes.length&&(i=this.indexes[l],(s=r(this.proxyOf.nodes[i],i))!==!1);)this.indexes[l]+=1;return delete this.indexes[l],s}},e.every=function(r){return this.nodes.every(r)},e.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},e.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:r[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?function(){for(var s=arguments.length,l=new Array(s),o=0;o<s;o++)l[o]=arguments[o];var a;return(a=r)[i].apply(a,[].concat(l.map(function(c){return typeof c=="function"?function(u,d){return c(u.toProxy(),d)}:c})))}:i==="every"||i==="some"?function(s){return r[i](function(l){for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];return s.apply(void 0,[].concat([l.toProxy()],a))})}:i==="root"?function(){return r.root().toProxy()}:i==="nodes"?r.nodes.map(function(s){return s.toProxy()}):i==="first"||i==="last"?r[i].toProxy():r[i]:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,i!=="name"&&i!=="params"&&i!=="selector"||r.markDirty()),!0}}},e.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},e.insertAfter=function(r,i){var s,l=this.index(r),o=this.normalize(i,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(var a,c=F(o);!(a=c()).done;){var u=a.value;this.proxyOf.nodes.splice(l+1,0,u)}for(var d in this.indexes)l<(s=this.indexes[d])&&(this.indexes[d]=s+o.length);return this.markDirty(),this},e.insertBefore=function(r,i){var s,l=this.index(r),o=l===0&&"prepend",a=this.normalize(i,this.proxyOf.nodes[l],o).reverse();l=this.index(r);for(var c,u=F(a);!(c=u()).done;){var d=c.value;this.proxyOf.nodes.splice(l,0,d)}for(var h in this.indexes)l<=(s=this.indexes[h])&&(this.indexes[h]=s+a.length);return this.markDirty(),this},e.normalize=function(r,i){var s=this;if(typeof r=="string")r=Ml(xl(r).nodes);else if(r===void 0)r=[];else if(Array.isArray(r))for(var l,o=F(r=r.slice(0));!(l=o()).done;){var a=l.value;a.parent&&a.parent.removeChild(a,"ignore")}else if(r.type==="root"&&this.type!=="document")for(var c,u=F(r=r.nodes.slice(0));!(c=u()).done;){var d=c.value;d.parent&&d.parent.removeChild(d,"ignore")}else if(r.type)r=[r];else if(r.prop){if(r.value===void 0)throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Dl(r)]}else if(r.selector)r=[new Aa(r)];else if(r.name)r=[new Ta(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new Bl(r)]}return r.map(function(h){return h[Ol]||n.rebuild(h),(h=h.proxyOf).parent&&h.parent.removeChild(h),h[Pl]&&Ll(h),h.raws.before===void 0&&i&&i.raws.before!==void 0&&(h.raws.before=i.raws.before.replace(/\S/g,"")),h.parent=s.proxyOf,h})},e.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var l,o=F(i=i.reverse());!(l=o()).done;){for(var a,c=l.value,u=this.normalize(c,this.first,"prepend").reverse(),d=F(u);!(a=d()).done;){var h=a.value;this.proxyOf.nodes.unshift(h)}for(var m in this.indexes)this.indexes[m]=this.indexes[m]+u.length}return this.markDirty(),this},e.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},e.removeAll=function(){for(var r,i=F(this.proxyOf.nodes);!(r=i()).done;)r.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},e.removeChild=function(r){var i;for(var s in r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1),this.indexes)(i=this.indexes[s])>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},e.replaceValues=function(r,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(r,s))}),this.markDirty(),this},e.some=function(r){return this.nodes.some(r)},e.walk=function(r){return this.each(function(i,s){var l;try{l=r(i,s)}catch(o){throw i.addToError(o)}return l!==!1&&i.walk&&(l=i.walk(r)),l})},e.walkAtRules=function(r,i){return i?J(r,RegExp)?this.walk(function(s,l){if(s.type==="atrule"&&r.test(s.name))return i(s,l)}):this.walk(function(s,l){if(s.type==="atrule"&&s.name===r)return i(s,l)}):(i=r,this.walk(function(s,l){if(s.type==="atrule")return i(s,l)}))},e.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},e.walkDecls=function(r,i){return i?J(r,RegExp)?this.walk(function(s,l){if(s.type==="decl"&&r.test(s.prop))return i(s,l)}):this.walk(function(s,l){if(s.type==="decl"&&s.prop===r)return i(s,l)}):(i=r,this.walk(function(s,l){if(s.type==="decl")return i(s,l)}))},e.walkRules=function(r,i){return i?J(r,RegExp)?this.walk(function(s,l){if(s.type==="rule"&&r.test(s.selector))return i(s,l)}):this.walk(function(s,l){if(s.type==="rule"&&s.selector===r)return i(s,l)}):(i=r,this.walk(function(s,l){if(s.type==="rule")return i(s,l)}))},Ue(n,[{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]}}]),n}(Ai);It.registerParse=function(t){xl=t},It.registerRule=function(t){Aa=t},It.registerAtRule=function(t){Ta=t},It.registerRoot=function(t){Rl=t};var Kt=It;It.default=It,It.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ta.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(n){It.rebuild(n)})};var Nl,Fl,Kr=function(t){function n(e){var r;return(r=t.call(this,pe({type:"document"},e))||this).nodes||(r.nodes=[]),r}return $e(n,t),n.prototype.toResult=function(e){return e===void 0&&(e={}),new Nl(new Fl,this,e).stringify()},n}(Kt);Kr.registerLazyResult=function(t){Nl=t},Kr.registerProcessor=function(t){Fl=t};var Ia=Kr;Kr.default=Kr;var Io=function(){function t(n,e){if(e===void 0&&(e={}),this.type="warning",this.text=n,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.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=Io;Io.default=Io;var _h=Vl,xo=function(){function t(e,r,i){this.processor=e,this.messages=[],this.root=r,this.opts=i,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new _h(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Ue(t,[{key:"content",get:function(){return this.css}}]),t}(),xa=xo;xo.default=xo;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,Th=/.[\r\n"'(/\\]/,Ms=/[\da-f]/i,Ul=Kt,Gn=function(t){function n(r){var i;return(i=t.call(this,r)||this).type="atrule",i}$e(n,t);var e=n.prototype;return e.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;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 r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.prepend).call.apply(l,[].concat([this],i))},n}(Ul),Ra=Gn;Gn.default=Gn,Ul.registerAtRule(Gn);var jl,ql,zl=Kt,Cr=function(t){function n(r){var i;return(i=t.call(this,r)||this).type="root",i.nodes||(i.nodes=[]),i}$e(n,t);var e=n.prototype;return e.normalize=function(r,i,s){var l=t.prototype.normalize.call(this,r);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 o,a=F(l);!(o=a()).done;)o.value.raws.before=i.raws.before}return l},e.removeChild=function(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},e.toResult=function(r){return r===void 0&&(r={}),new jl(new ql,this,r).stringify()},n}(zl);Cr.registerLazyResult=function(t){jl=t},Cr.registerProcessor=function(t){ql=t};var cn=Cr;Cr.default=Cr,zl.registerRoot(Cr);var Qr={comma:function(t){return Qr.split(t,[","],!0)},space:function(t){return Qr.split(t,[" ",`
|
|
24
|
-
`," "])},split:function(t,n,e){for(var r,i=[],s="",l=!1,o=0,a=!1,c="",u=!1,d=F(t);!(r=d()).done;){var h=r.value;u?u=!1:h==="\\"?u=!0:a?h===c&&(a=!1):h==='"'||h==="'"?(a=!0,c=h):h==="("?o+=1:h===")"?o>0&&(o-=1):o===0&&n.includes(h)&&(l=!0),l?(s!==""&&i.push(s.trim()),s="",l=!1):s+=h}return(e||s!=="")&&i.push(s.trim()),i}},Wl=Qr;Qr.default=Qr;var Gl=Kt,Ih=Wl,$n=function(t){function n(e){var r;return(r=t.call(this,e)||this).type="rule",r.nodes||(r.nodes=[]),r}return $e(n,t),Ue(n,[{key:"selectors",get:function(){return Ih.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n}(Gl),Pa=$n;$n.default=$n,Gl.registerRule($n);var xh=Ti,Rh=function(t,n){n===void 0&&(n={});var e,r,i,s,l,o,a,c,u,d,h=t.css.valueOf(),m=n.ignoreErrors,_=h.length,f=0,g=[],k=[];function y(b){throw t.error("Unclosed "+b,f)}return{back:function(b){k.push(b)},endOfFile:function(){return k.length===0&&f>=_},nextToken:function(b){if(k.length)return k.pop();if(!(f>=_)){var A=!!b&&b.ignoreUnclosed;switch(e=h.charCodeAt(f)){case gn:case Rr:case yn:case bn:case vn:r=f;do r+=1,e=h.charCodeAt(r);while(e===Rr||e===gn||e===yn||e===bn||e===vn);d=["space",h.slice(f,r)],f=r-1;break;case gh:case vh:case kh:case Ch:case Eh:case wh:case bh:var S=String.fromCharCode(e);d=[S,S,f];break;case yh:if(c=g.length?g.pop()[1]:"",u=h.charCodeAt(f+1),c==="url"&&u!==$i&&u!==Ds&&u!==Rr&&u!==gn&&u!==yn&&u!==vn&&u!==bn){r=f;do{if(o=!1,(r=h.indexOf(")",r+1))===-1){if(m||A){r=f;break}y("bracket")}for(a=r;h.charCodeAt(a-1)===_n;)a-=1,o=!o}while(o);d=["brackets",h.slice(f,r+1),f,r],f=r}else r=h.indexOf(")",f+1),s=h.slice(f,r+1),r===-1||Th.test(s)?d=["(","(",f]:(d=["brackets",s,f,r],f=r);break;case $i:case Ds:i=e===$i?"'":'"',r=f;do{if(o=!1,(r=h.indexOf(i,r+1))===-1){if(m||A){r=f+1;break}y("string")}for(a=r;h.charCodeAt(a-1)===_n;)a-=1,o=!o}while(o);d=["string",h.slice(f,r+1),f,r],f=r;break;case Ah:kn.lastIndex=f+1,kn.test(h),r=kn.lastIndex===0?h.length-1:kn.lastIndex-2,d=["at-word",h.slice(f,r+1),f,r],f=r;break;case _n:for(r=f,l=!0;h.charCodeAt(r+1)===_n;)r+=1,l=!l;if(e=h.charCodeAt(r+1),l&&e!==Bs&&e!==Rr&&e!==gn&&e!==yn&&e!==bn&&e!==vn&&(r+=1,Ms.test(h.charAt(r)))){for(;Ms.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Rr&&(r+=1)}d=["word",h.slice(f,r+1),f,r],f=r;break;default:e===Bs&&h.charCodeAt(f+1)===Sh?((r=h.indexOf("*/",f+2)+1)===0&&(m||A?r=h.length:y("comment")),d=["comment",h.slice(f,r+1),f,r],f=r):(Cn.lastIndex=f+1,Cn.test(h),r=Cn.lastIndex===0?h.length-1:Cn.lastIndex-2,d=["word",h.slice(f,r+1),f,r],g.push(d),f=r)}return f++,d}},position:function(){return f}}},Ph=xi,Oh=Ra,Dh=cn,Ls=Pa,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 n=t.prototype;return n.atrule=function(e){var r,i,s,l=new Oh;l.name=e[1].slice(1),l.name===""&&this.unnamedAtrule(l,e),this.init(l,e[2]);for(var o=!1,a=!1,c=[],u=[];!this.tokenizer.endOfFile();){if((r=(e=this.tokenizer.nextToken())[0])==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0){if(r===";"){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if(r==="{"){a=!0;break}if(r==="}"){if(c.length>0){for(i=c[s=c.length-1];i&&i[0]==="space";)i=c[--s];i&&(l.source.end=this.getPosition(i[3]||i[2]),l.source.end.offset++)}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(l.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(l,"params",c),o&&(e=c[c.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=""),a&&(l.nodes=[],this.current=l)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i,s=0,l=r-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])}},n.colon=function(e){for(var r,i,s,l,o=0,a=F(e.entries());!(l=a()).done;){var c=l.value,u=c[0];if((i=(r=c[1])[0])==="("&&(o+=1),i===")"&&(o-=1),o===0&&i===":"){if(s){if(s[0]==="word"&&s[1]==="progid")continue;return u}this.doubleColon(r)}s=r}return!1},n.comment=function(e){var r=new Ph;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Rh(this.input)},n.decl=function(e,r){var i=new xh;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 k=g.length-1;k>=0;k--){var y=g[k],b=y[3]||y[2];if(b)return b}}(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 o=e[0][0];if(o===":"||o==="space"||o==="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 a,c=[];e.length&&((a=e[0][0])==="space"||a==="comment");)c.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if((s=e[u])[1].toLowerCase()==="!important"){i.important=!0;var d=this.stringFrom(e,u);(d=this.spacesFromEnd(e)+d)!==" !important"&&(i.raws.important=d);break}if(s[1].toLowerCase()==="important"){for(var h=e.slice(0),m="",_=u;_>0;_--){var f=h[_][0];if(m.trim().indexOf("!")===0&&f!=="space")break;m=h.pop()[1]+m}m.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=m,e=h)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(function(g){return g[0]!=="space"&&g[0]!=="comment"})&&(i.raws.between+=c.map(function(g){return g[1]}).join(""),c=[]),this.raw(i,"value",c.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new Ls;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,i=null,s=!1,l=null,o=[],a=e[1].startsWith("--"),c=[],u=e;u;){if(i=u[0],c.push(u),i==="("||i==="[")l||(l=u),o.push(i==="("?")":"]");else if(a&&s&&i==="{")l||(l=u),o.push("}");else if(o.length===0){if(i===";"){if(s)return void this.decl(c,a);break}if(i==="{")return void this.rule(c);if(i==="}"){this.tokenizer.back(c.pop()),r=!0;break}i===":"&&(s=!0)}else i===o[o.length-1]&&(o.pop(),o.length===0&&(l=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(l),r&&s){if(!a)for(;c.length&&((u=c[c.length-1][0])==="space"||u==="comment");)this.tokenizer.back(c.pop());this.decl(c,a)}else this.unknownWord(c)},n.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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var l,o,a,c,u=i.length,d="",h=!0,m=0;m<u;m+=1)(o=(l=i[m])[0])!=="space"||m!==u-1||s?o==="comment"?(c=i[m-1]?i[m-1][0]:"empty",a=i[m+1]?i[m+1][0]:"empty",Ns[c]||Ns[a]||d.slice(-1)===","?h=!1:d+=l[1]):d+=l[1]:h=!1;if(!h){var _=i.reduce(function(f,g){return f+g[1]},"");e.raws[r]={raw:_,value:d}}e[r]=d},n.rule=function(e){e.pop();var r=new Ls;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&((r=e[e.length-1][0])==="space"||r==="comment");)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&((r=e[0][0])==="space"||r==="comment");)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r="";e.length&&e[e.length-1][0]==="space";)r=e.pop()[1]+r;return r},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t}(),Mh=Kt,Lh=Bh,Nh=Ii;function Hn(t,n){var e=new Nh(t,n),r=new Lh(e);try{r.parse()}catch(i){throw i}return r.root}var Oa=Hn;Hn.default=Hn,Mh.registerParse(Hn);var pt=Wt.isClean,Fh=Wt.my,Vh=Il,Uh=Ei,jh=Kt,qh=Ia,Fs=xa,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 Pr(t){return(t===void 0?"undefined":ne(t))==="object"&&typeof t.then=="function"}function $l(t){var n=!1,e=Gh[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[e,e+"-"+n,0,e+"Exit",e+"Exit-"+n]:n?[e,e+"-"+n,e+"Exit",e+"Exit-"+n]: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(n){return Ro(n)}),t}var Po={},br=function(){function t(e,r,i){var s,l=this;if(this.stringified=!1,this.processed=!1,(r===void 0?"undefined":ne(r))!=="object"||r===null||r.type!=="root"&&r.type!=="document")if(J(r,t)||J(r,Fs))s=Ro(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{var o=zh;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(r,i)}catch(a){this.processed=!0,this.error=a}s&&!s[Fh]&&jh.rebuild(s)}else s=Ro(r);this.result=new Fs(e,s,i),this.helpers=pe({},Po,{postcss:Po,result:this.result}),this.plugins=this.processor.plugins.map(function(a){return(a===void 0?"undefined":ne(a))==="object"&&a.prepare?pe({},a,a.prepare(l.result)):a})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{r&&r.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},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r,i=function(c,u,d){e.listeners[u]||(e.listeners[u]=[]),e.listeners[u].push([c,d])},s=F(this.plugins);!(r=s()).done;){var l=r.value;if((l===void 0?"undefined":ne(l))==="object")for(var o in l){if(!$h[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+l.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Hh[o])if(ne(l[o])==="object")for(var a in l[o])i(l,a==="*"?o:o+"-"+a.toLowerCase(),l[o][a]);else typeof l[o]=="function"&&i(l,o,l[o])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return Ca(function(){var r,i,s,l,o,a,c,u,d,h,m,_;return Xr(this,function(f){switch(f.label){case 0:e.plugin=0,r=0,f.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],!Pr(s=e.runOnRoot(i)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,s];case 3:return f.sent(),[3,5];case 4:throw l=f.sent(),e.handleError(l);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[pt])return[3,14];o[pt]=!0,a=[Vs(o)],f.label=8;case 8:if(!(a.length>0))return[3,13];if(!Pr(c=e.visitTick(a)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,c];case 10:return f.sent(),[3,12];case 11:throw u=f.sent(),d=a[a.length-1].node,e.handleError(u,d);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];h=function(){var g,k,y,b,A;return Xr(this,function(S){switch(S.label){case 0:g=_.value,k=g[0],y=g[1],e.result.lastPlugin=k,S.label=1;case 1:return S.trys.push([1,6,,7]),o.type!=="document"?[3,3]:(b=o.nodes.map(function(w){return y(w,e.helpers)}),[4,Promise.all(b)]);case 2:return S.sent(),[3,5];case 3:return[4,y(o,e.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw A=S.sent(),e.handleError(A);case 7:return[2]}})},m=F(e.listeners.OnceExit),f.label=15;case 15:return(_=m()).done?[3,18]:[5,fl(h())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((e===void 0?"undefined":ne(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Pr(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)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Uh;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new Vh(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result},n.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,r=F(this.plugins);!(e=r()).done;){var i=e.value;if(Pr(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,o=F(s.nodes);!(l=o()).done;){var a=l.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var i,s=F(e);!(i=s()).done;){var l=i.value,o=l[0],a=l[1];this.result.lastPlugin=o;var c=void 0;try{c=a(r,this.helpers)}catch(u){throw this.handleError(u,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Pr(c))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type==="root"||i.type==="document"||i.parent){if(s.length>0&&r.visitorIndex<s.length){var l=s[r.visitorIndex],o=l[0],a=l[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(i.toProxy(),this.helpers)}catch(m){throw this.handleError(m,i)}}if(r.iterator!==0){for(var c,u=r.iterator;c=i.nodes[i.indexes[u]];)if(i.indexes[u]+=1,!c[pt])return c[pt]=!0,void e.push(Vs(c));r.iterator=0,delete i.indexes[u]}for(var d=r.events;r.eventIndex<d.length;){var h=d[r.eventIndex];if(r.eventIndex+=1,h===0)return void(i.nodes&&i.nodes.length&&(i[pt]=!0,r.iterator=i.getIterator()));if(this.listeners[h])return void(r.visitors=this.listeners[h])}e.pop()}else e.pop()},n.walkSync=function(e){var r=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(a){a[pt]||r.walkSync(a)});else{var o=this.listeners[l];if(o&&this.visitSync(o,e.toProxy()))return}}},n.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){Po=t};var Hl=br;br.default=br,Wh.registerLazyResult(br),qh.registerLazyResult(br);var Zh=Il,Jh=Ei,Yh=Oa,Xh=xa,Oo=function(){function t(e,r,i){var s;r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=i,this._map=void 0;var l=Jh;this.result=new Xh(this._processor,s,this._opts),this.result.css=r;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var a=new Zh(l,s,this._opts,r);if(a.isMap()){var c=a.generate(),u=c[0],d=c[1];u&&(this.result.css=u),d&&(this.result.map=d)}else a.clearAnnotation(),this.result.css=a.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this._css},n.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,r=Yh;try{e=r(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}(),Kh=Oo;Oo.default=Oo;var Qh=Kh,ep=Hl,tp=Ia,rp=cn,Nr=function(){function t(e){e===void 0&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var n=t.prototype;return n.normalize=function(e){for(var r,i=[],s=F(e);!(r=s()).done;){var l=r.value;if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),(l===void 0?"undefined":ne(l))==="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if((l===void 0?"undefined":ne(l))==="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if((l===void 0?"undefined":ne(l))!=="object"||!l.parse&&!l.stringify)throw new Error(l+" is not a PostCSS plugin")}return i},n.process=function(e,r){return r===void 0&&(r={}),this.plugins.length||r.parser||r.stringifier||r.syntax?new ep(this,e,r):new Qh(this,e,r)},n.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=Ti,op=wl,ap=xi,sp=Ra,cp=Ii,lp=cn,up=Pa;function en(t,n){if(Array.isArray(t))return t.map(function(u){return en(u)});var e=t.inputs,r=Yr(t,["inputs"]);if(e){n=[];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})),n.push(l)}}if(r.nodes&&(r.nodes=t.nodes.map(function(u){return en(u,n)})),r.source){var o=r.source,a=o.inputId,c=Yr(o,["inputId"]);r.source=c,a!=null&&(r.source.input=n[a])}if(r.type==="root")return new lp(r);if(r.type==="decl")return new ip(r);if(r.type==="rule")return new up(r);if(r.type==="comment")return new ap(r);if(r.type==="atrule")return new sp(r);throw new Error("Unknown node type: "+t.type)}var dp=en;en.default=en;var hp=Ea,Us=Ti,pp=Hl,fp=Kt,Do=np,mp=Ei,_p=dp,js=Ia,gp=Vl,qs=xi,zs=Ra,vp=xa,yp=Ii,bp=Oa,kp=Wl,Ws=Pa,Gs=cn,Cp=Ai;function me(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Do(n)}me.plugin=function(t,n){var e,r=!1;function i(){for(var s=arguments.length,l=new Array(s),o=0;o<s;o++)l[o]=arguments[o];console&&console.warn&&!r&&(r=!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 a=n.apply(void 0,[].concat(l));return a.postcssPlugin=t,a.postcssVersion=new Do().version,a}return Object.defineProperty(i,"postcss",{get:function(){return e||(e=i()),e}}),i.process=function(s,l,o){return me([i(o)]).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,n,e){return function(r,i,s){return i in r?Sp(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s}(t,(n===void 0?"undefined":ne(n))!=="symbol"?n+"":n,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 n=t.default;if(typeof n=="function"){var e=function r(){return J(this,r)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};e.prototype=n.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),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 Tp=Bo.exports,De=Ap(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Hs=Tp,Zs=De,Mo=function(t){function n(r,i,s,l,o,a){var c;return(c=t.call(this,r)||this).name="CssSyntaxError",c.reason=r,o&&(c.file=o),l&&(c.source=l),a&&(c.plugin=a),i!==void 0&&s!==void 0&&(typeof i=="number"?(c.line=i,c.column=s):(c.line=i.line,c.column=i.column,c.endLine=s.line,c.endColumn=s.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}$e(n,t);var e=n.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(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Hs.isColorSupported),Zs&&r&&(s=Zs(s));var l,o,a=s.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,a.length),d=String(u).length;if(r){var h=Hs.createColors(!0),m=h.bold,_=h.gray,f=h.red;l=function(g){return m(f(g))},o=function(g){return _(g)}}else l=o=function(g){return g};return a.slice(c,u).map(function(g,k){var y=c+1+k,b=" "+(" "+y).slice(-d)+" | ";if(y===i.line){var A=o(b.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return l(">")+o(b)+g+`
|
|
27
|
-
`+A+l("^")}return" "+o(b)+g}).join(`
|
|
28
|
-
`)},e.toString=function(){var r=this.showSourceCode();return r&&(r=`
|
|
29
|
-
|
|
30
|
-
`+r+`
|
|
31
|
-
`),this.name+": "+this.message+r},n}(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 n=t.prototype;return n.atrule=function(e,r){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||"")+(r?";":"");this.builder(i+s+l,e)}},n.beforeAfter=function(e,r){var i;i=e.type==="decl"?this.raw(e,null,"beforeDecl"):e.type==="comment"?this.raw(e,null,"beforeComment"):r==="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 o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<l;a++)i+=o}return i},n.block=function(e,r){var i,s=this.raw(e,"between","beforeOpen");this.builder(r+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")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var l=e.nodes[s],o=this.raw(l,"before");o&&this.builder(o),this.stringify(l,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r])!==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 o=e.root();if(o.rawCache||(o.rawCache={}),o.rawCache[i]!==void 0)return o.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var a,c="raw"+((a=i)[0].toUpperCase()+a.slice(1));return this[c]?s=this[c](o,e):o.walk(function(u){if((s=u.raws[r])!==void 0)return!1}),s===void 0&&(s=Js[i]),o.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&i.raws.after!==void 0)return(r=i.raws.after).includes(`
|
|
38
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){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(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){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(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk(function(i){if(i.type!=="decl"&&(r=i.raws.between)!==void 0)return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&i.raws.before!==void 0)return(r=i.raws.before).includes(`
|
|
41
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(i){if(i.raws.between!==void 0)return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after)!==void 0)return!1}),r},n.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 r=(r=l[l.length-1]).replace(/\S/g,""),!1}}),r);var r},n.rawSemicolon=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon)!==void 0)return!1}),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),Zl=Lo;Lo.default=Lo;var Ip=Zl;function No(t,n){new Ip(n).stringify(t)}var Ri=No;No.default=No;var wn=Gt.isClean,xp=Gt.my,Rp=Da,Pp=Zl,Op=Ri;function Fo(t,n){var e=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r!=="proxyCache"){var i=t[r],s=i===void 0?"undefined":ne(i);r==="parent"&&s==="object"?n&&(e[r]=n):r==="source"?e[r]=i:Array.isArray(i)?e[r]=i.map(function(l){return Fo(l,e)}):(s==="object"&&i!==null&&(i=Fo(i)),e[r]=i)}return e}var Vo=function(){function t(e){for(var r in e===void 0&&(e={}),this.raws={},this[wn]=!1,this[xp]=!0,e)if(r==="nodes"){this.nodes=[];for(var i,s=F(e[r]);!(i=s()).done;){var l=i.value;typeof l.clone=="function"?this.append(l.clone()):this.append(l)}}else this[r]=e[r]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){for(var r in e===void 0&&(e={}),e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Fo(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,l=i.start;return this.source.input.error(e,{column:l.column,line:l.line},{column:s.column,line:s.line},r)}return new Rp(e)},n.getProxyProcessor=function(){return{get:function(e,r){return r==="proxyOf"?e:r==="root"?function(){return e.root().toProxy()}:e[r]},set:function(e,r,i){return e[r]===i||(e[r]=i,r!=="prop"&&r!=="value"&&r!=="name"&&r!=="params"&&r!=="important"&&r!=="text"||e.markDirty()),!0}}},n.markDirty=function(){if(this[wn]){this[wn]=!1;for(var e=this;e=e.parent;)e[wn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){var s=(r=this.toString()).indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||this.toString(),s=this.source.start.column,l=this.source.start.line,o=0;o<e;o++)i[o]===`
|
|
43
|
-
`?(s=1,l+=1):s+=1;return{column:s,line:l}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={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:r.column+1,line:r.line};if(e.word){var s=this.toString(),l=s.indexOf(e.word);l!==-1&&(r=this.positionInside(l,s),i=this.positionInside(l+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=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<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){return new Pp().raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s,l=this,o=!1,a=F(r);!(s=a()).done;){var c=s.value;c===this?o=!0:o?(this.parent.insertAfter(l,c),l=c):this.parent.insertBefore(l,c)}o||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||new Map;var l=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&o!=="parent"&&o!=="proxyCache"){var a=this[o];if(Array.isArray(a))i[o]=a.map(function(u){return(u===void 0?"undefined":ne(u))==="object"&&u.toJSON?u.toJSON(null,r):u});else if((a===void 0?"undefined":ne(a))==="object"&&a.toJSON)i[o]=a.toJSON(null,r);else if(o==="source"){var c=r.get(a.input);c==null&&(c=l,r.set(a.input,l),l++),i[o]={end:a.end,inputId:c,start:a.start}}else i[o]=a}return s&&(i.inputs=[].concat(r.keys()).map(function(u){return u.toJSON()})),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Op),e.stringify&&(e=e.stringify);var r="";return e(this,function(i){r+=i}),r},n.warn=function(e,r,i){var s={node:this};for(var l in i)s[l]=i[l];return e.warn(r,s)},Ue(t,[{key:"proxyOf",get:function(){return this}}]),t}(),Pi=Vo;Vo.default=Vo;var Uo=function(t){function n(e){var r;return e&&e.value!==void 0&&typeof e.value!="string"&&(e=pe({},e,{value:String(e.value)})),(r=t.call(this,e)||this).type="decl",r}return $e(n,t),Ue(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Pi),Oi=Uo;Uo.default=Uo;var Dp=function(t){t===void 0&&(t=21);for(var n="",e=t;e--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return n},Ys=De.SourceMapConsumer,Xs=De.SourceMapGenerator,Bp=De.existsSync,Mp=De.readFileSync,Hi=De.dirname,Lp=De.join,jo=function(){function t(e,r){if(r.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var i=r.map?r.map.prev:void 0,s=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Hi(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ys(this.text)),this.consumerCache},n.decodeInline=function(e){var r;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 r=e.substr(RegExp.lastMatch.length),zt?zt.from(r,"base64").toString():window.atob(r);var i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(e===void 0?"undefined":ne(e))==="object"&&(typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections))},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=Hi(e),Bp(e))return this.mapFile=e,Mp(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r!="function"){if(J(r,Ys))return Xs.fromSourceMap(r).toString();if(J(r,Xs))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}var i=r(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)}}},n.startWith=function(e,r){return!!e&&e.substr(0,r.length)===r},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),Jl=jo;jo.default=jo;var Np=De.SourceMapConsumer,Fp=De.SourceMapGenerator,Ks=De.fileURLToPath,Sn=De.pathToFileURL,qo=De.isAbsolute,zo=De.resolve,Vp=Dp,Zi=De,Qs=Da,Up=Jl,Ji=Symbol("fromOffsetCache"),jp=!!(Np&&Fp),ec=!!(zo&&qo),Zn=function(){function t(e,r){if(r===void 0&&(r={}),e==null||(e===void 0?"undefined":ne(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,r.from&&(!ec||/^\w+:\/\//.test(r.from)||qo(r.from)?this.file=r.from:this.file=zo(r.from)),ec&&jp){var i=new Up(this.css,r);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 n=t.prototype;return n.error=function(e,r,i,s){var l,o,a;if(s===void 0&&(s={}),r&&(r===void 0?"undefined":ne(r))==="object"){var c=r,u=i;if(typeof c.offset=="number"){var d=this.fromOffset(c.offset);r=d.line,i=d.col}else r=c.line,i=c.column;if(typeof u.offset=="number"){var h=this.fromOffset(u.offset);o=h.line,a=h.col}else o=u.line,a=u.column}else if(!i){var m=this.fromOffset(r);r=m.line,i=m.col}var _=this.origin(r,i,o,a);return(l=_?new Qs(e,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,s.plugin):new Qs(e,o===void 0?r:{column:i,line:r},o===void 0?i:{column:a,line:o},this.css,this.file,s.plugin)).input={column:i,endColumn:a,endLine:o,line:r,source:this.css},this.file&&(Sn&&(l.input.url=Sn(this.file).toString()),l.input.file=this.file),l},n.fromOffset=function(e){var r;if(this[Ji])r=this[Ji];else{var i=this.css.split(`
|
|
44
|
-
`);r=new Array(i.length);for(var s=0,l=0,o=i.length;l<o;l++)r[l]=s,s+=i[l].length+1;this[Ji]=r}var a=0;if(e>=r[r.length-1])a=r.length-1;else for(var c,u=r.length-2;a<u;)if(e<r[c=a+(u-a>>1)])u=c-1;else{if(!(e>=r[c+1])){a=c;break}a=c+1}return{col:e-r[a]+1,line:a+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:zo(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var l,o,a=this.map.consumer(),c=a.originalPositionFor({column:r,line:e});if(!c.source)return!1;typeof i=="number"&&(l=a.originalPositionFor({column:s,line:i})),o=qo(c.source)?Sn(c.source):new URL(c.source,this.map.consumer().sourceRoot||Sn(this.map.mapFile));var u={column:c.column,endColumn:l&&l.column,endLine:l&&l.line,line:c.line,url:o.toString()};if(o.protocol==="file:"){if(!Ks)throw new Error("file: protocol is not available in this PostCSS build");u.file=Ks(o)}var d=a.sourceContentFor(c.source);return d&&(u.source=d),u},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];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,Kl=De.resolve,Ql=De.sep,tc=De.pathToFileURL,qp=Di,zp=!!(Yl&&Jn),Wp=!!(Yn&&Kl&&Xl&&Ql),eu=function(){function t(e,r,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=r,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 n=t.prototype;return n.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 r=`
|
|
45
|
-
`;this.css.includes(`\r
|
|
46
|
-
`)&&(r=`\r
|
|
47
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e,r=F(this.previous());!(e=r()).done;){var i=e.value,s=this.toUrl(this.path(i.file)),l=i.root||Yn(i.file),o=void 0;this.mapOpts.sourcesContent===!1?(o=new Yl(i.text)).sourcesContent&&(o.sourcesContent=null):o=i.consumer(),this.map.applySourceMap(o,s,this.toUrl(this.path(l)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)(e=this.root.nodes[r]).type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Wp&&zp&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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]},n.generateString=function(){var e=this;this.css="",this.map=new Jn({file:this.outputFile(),ignoreInvalidMapping:!0});var r,i,s=1,l=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(c,u,d){if(e.css+=c,u&&d!=="end"&&(a.generated.line=s,a.generated.column=l-1,u.source&&u.source.start?(a.source=e.sourcePath(u),a.original.line=u.source.start.line,a.original.column=u.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(r=c.match(/\n/g))?(s+=r.length,i=c.lastIndexOf(`
|
|
48
|
-
`),l=c.length-i):l+=c.length,u&&d!=="start"){var h=u.parent||{raws:{}};(u.type==="decl"||u.type==="atrule"&&!u.nodes)&&u===h.last&&!h.raws.semicolon||(u.source&&u.source.end?(a.source=e.sourcePath(u),a.original.line=u.source.end.line,a.original.column=u.source.end.column-1,a.generated.line=s,a.generated.column=l-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=s,a.generated.column=l-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},n.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(r){return r.inline}))},n.isMap=function(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Yn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Yn(Kl(i,this.mapOpts.annotation)));var s=Xl(i,e);return this.memoizedPaths.set(e,s),s},n.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 r=new qp(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var l=s.source.input.from;if(l&&!r[l]){r[l]=!0;var o=e.usesFileUrls?e.toFileUrl(l):e.toUrl(e.path(l));e.map.setSourceContent(o,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)}},n.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))},n.toBase64=function(e){return zt?zt.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;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")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Ql==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),Wo=function(t){function n(e){var r;return(r=t.call(this,e)||this).type="comment",r}return $e(n,t),n}(Pi),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(n){return n.nodes&&(n.nodes=su(n.nodes)),delete n.source,n})}function cu(t){if(t[nu]=!1,t.proxyOf.nodes)for(var n,e=F(t.proxyOf.nodes);!(n=e()).done;)cu(n.value)}var xt=function(t){function n(){return t.apply(this,arguments)||this}$e(n,t);var e=n.prototype;return e.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var l,o=F(i);!(l=o()).done;)for(var a,c=l.value,u=F(this.normalize(c,this.last));!(a=u()).done;){var d=a.value;this.proxyOf.nodes.push(d)}return this.markDirty(),this},e.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i,s=F(this.nodes);!(i=s()).done;)i.value.cleanRaws(r)},e.each=function(r){if(this.proxyOf.nodes){for(var i,s,l=this.getIterator();this.indexes[l]<this.proxyOf.nodes.length&&(i=this.indexes[l],(s=r(this.proxyOf.nodes[i],i))!==!1);)this.indexes[l]+=1;return delete this.indexes[l],s}},e.every=function(r){return this.nodes.every(r)},e.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},e.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:r[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?function(){for(var s=arguments.length,l=new Array(s),o=0;o<s;o++)l[o]=arguments[o];var a;return(a=r)[i].apply(a,[].concat(l.map(function(c){return typeof c=="function"?function(u,d){return c(u.toProxy(),d)}:c})))}:i==="every"||i==="some"?function(s){return r[i](function(l){for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];return s.apply(void 0,[].concat([l.toProxy()],a))})}:i==="root"?function(){return r.root().toProxy()}:i==="nodes"?r.nodes.map(function(s){return s.toProxy()}):i==="first"||i==="last"?r[i].toProxy():r[i]:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,i!=="name"&&i!=="params"&&i!=="selector"||r.markDirty()),!0}}},e.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},e.insertAfter=function(r,i){var s,l=this.index(r),o=this.normalize(i,this.proxyOf.nodes[l]).reverse();l=this.index(r);for(var a,c=F(o);!(a=c()).done;){var u=a.value;this.proxyOf.nodes.splice(l+1,0,u)}for(var d in this.indexes)l<(s=this.indexes[d])&&(this.indexes[d]=s+o.length);return this.markDirty(),this},e.insertBefore=function(r,i){var s,l=this.index(r),o=l===0&&"prepend",a=this.normalize(i,this.proxyOf.nodes[l],o).reverse();l=this.index(r);for(var c,u=F(a);!(c=u()).done;){var d=c.value;this.proxyOf.nodes.splice(l,0,d)}for(var h in this.indexes)l<=(s=this.indexes[h])&&(this.indexes[h]=s+a.length);return this.markDirty(),this},e.normalize=function(r,i){var s=this;if(typeof r=="string")r=su(tu(r).nodes);else if(r===void 0)r=[];else if(Array.isArray(r))for(var l,o=F(r=r.slice(0));!(l=o()).done;){var a=l.value;a.parent&&a.parent.removeChild(a,"ignore")}else if(r.type==="root"&&this.type!=="document")for(var c,u=F(r=r.nodes.slice(0));!(c=u()).done;){var d=c.value;d.parent&&d.parent.removeChild(d,"ignore")}else if(r.type)r=[r];else if(r.prop){if(r.value===void 0)throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new ou(r)]}else if(r.selector)r=[new Ba(r)];else if(r.name)r=[new Ma(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new au(r)]}return r.map(function(h){return h[iu]||n.rebuild(h),(h=h.proxyOf).parent&&h.parent.removeChild(h),h[nu]&&cu(h),h.raws.before===void 0&&i&&i.raws.before!==void 0&&(h.raws.before=i.raws.before.replace(/\S/g,"")),h.parent=s.proxyOf,h})},e.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var l,o=F(i=i.reverse());!(l=o()).done;){for(var a,c=l.value,u=this.normalize(c,this.first,"prepend").reverse(),d=F(u);!(a=d()).done;){var h=a.value;this.proxyOf.nodes.unshift(h)}for(var m in this.indexes)this.indexes[m]=this.indexes[m]+u.length}return this.markDirty(),this},e.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},e.removeAll=function(){for(var r,i=F(this.proxyOf.nodes);!(r=i()).done;)r.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},e.removeChild=function(r){var i;for(var s in r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1),this.indexes)(i=this.indexes[s])>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},e.replaceValues=function(r,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(r,s))}),this.markDirty(),this},e.some=function(r){return this.nodes.some(r)},e.walk=function(r){return this.each(function(i,s){var l;try{l=r(i,s)}catch(o){throw i.addToError(o)}return l!==!1&&i.walk&&(l=i.walk(r)),l})},e.walkAtRules=function(r,i){return i?J(r,RegExp)?this.walk(function(s,l){if(s.type==="atrule"&&r.test(s.name))return i(s,l)}):this.walk(function(s,l){if(s.type==="atrule"&&s.name===r)return i(s,l)}):(i=r,this.walk(function(s,l){if(s.type==="atrule")return i(s,l)}))},e.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},e.walkDecls=function(r,i){return i?J(r,RegExp)?this.walk(function(s,l){if(s.type==="decl"&&r.test(s.prop))return i(s,l)}):this.walk(function(s,l){if(s.type==="decl"&&s.prop===r)return i(s,l)}):(i=r,this.walk(function(s,l){if(s.type==="decl")return i(s,l)}))},e.walkRules=function(r,i){return i?J(r,RegExp)?this.walk(function(s,l){if(s.type==="rule"&&r.test(s.selector))return i(s,l)}):this.walk(function(s,l){if(s.type==="rule"&&s.selector===r)return i(s,l)}):(i=r,this.walk(function(s,l){if(s.type==="rule")return i(s,l)}))},Ue(n,[{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]}}]),n}(Pi);xt.registerParse=function(t){tu=t},xt.registerRule=function(t){Ba=t},xt.registerAtRule=function(t){Ma=t},xt.registerRoot=function(t){ru=t};var Qt=xt;xt.default=xt,xt.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(n){xt.rebuild(n)})};var lu,uu,tn=function(t){function n(e){var r;return(r=t.call(this,pe({type:"document"},e))||this).nodes||(r.nodes=[]),r}return $e(n,t),n.prototype.toResult=function(e){return e===void 0&&(e={}),new lu(new uu,this,e).stringify()},n}(Qt);tn.registerLazyResult=function(t){lu=t},tn.registerProcessor=function(t){uu=t};var La=tn;tn.default=tn;var Go=function(){function t(n,e){if(e===void 0&&(e={}),this.type="warning",this.text=n,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.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,r,i){this.processor=e,this.messages=[],this.root=r,this.opts=i,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new Gp(e,r);return this.messages.push(i),i},n.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,Tn=12,In=9,xn=13,$p=91,Hp=93,Zp=40,Jp=41,Yp=123,Xp=125,Kp=59,Qp=42,ef=58,tf=64,Rn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Pn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rf=/.[\r\n"'(/\\]/,ic=/[\da-f]/i,hu=Qt,Xn=function(t){function n(r){var i;return(i=t.call(this,r)||this).type="atrule",i}$e(n,t);var e=n.prototype;return e.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;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 r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var l;return this.proxyOf.nodes||(this.nodes=[]),(l=t.prototype.prepend).call.apply(l,[].concat([this],i))},n}(hu),Fa=Xn;Xn.default=Xn,hu.registerAtRule(Xn);var pu,fu,mu=Qt,wr=function(t){function n(r){var i;return(i=t.call(this,r)||this).type="root",i.nodes||(i.nodes=[]),i}$e(n,t);var e=n.prototype;return e.normalize=function(r,i,s){var l=t.prototype.normalize.call(this,r);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 o,a=F(l);!(o=a()).done;)o.value.raws.before=i.raws.before}return l},e.removeChild=function(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},e.toResult=function(r){return r===void 0&&(r={}),new pu(new fu,this,r).stringify()},n}(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,n,e){for(var r,i=[],s="",l=!1,o=0,a=!1,c="",u=!1,d=F(t);!(r=d()).done;){var h=r.value;u?u=!1:h==="\\"?u=!0:a?h===c&&(a=!1):h==='"'||h==="'"?(a=!0,c=h):h==="("?o+=1:h===")"?o>0&&(o-=1):o===0&&n.includes(h)&&(l=!0),l?(s!==""&&i.push(s.trim()),s="",l=!1):s+=h}return(e||s!=="")&&i.push(s.trim()),i}},_u=rn;rn.default=rn;var gu=Qt,nf=_u,Kn=function(t){function n(e){var r;return(r=t.call(this,e)||this).type="rule",r.nodes||(r.nodes=[]),r}return $e(n,t),Ue(n,[{key:"selectors",get:function(){return nf.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n}(gu),Va=Kn;Kn.default=Kn,gu.registerRule(Kn);var of=Oi,af=function(t,n){n===void 0&&(n={});var e,r,i,s,l,o,a,c,u,d,h=t.css.valueOf(),m=n.ignoreErrors,_=h.length,f=0,g=[],k=[];function y(b){throw t.error("Unclosed "+b,f)}return{back:function(b){k.push(b)},endOfFile:function(){return k.length===0&&f>=_},nextToken:function(b){if(k.length)return k.pop();if(!(f>=_)){var A=!!b&&b.ignoreUnclosed;switch(e=h.charCodeAt(f)){case An:case Or:case In:case xn:case Tn:r=f;do r+=1,e=h.charCodeAt(r);while(e===Or||e===An||e===In||e===xn||e===Tn);d=["space",h.slice(f,r)],f=r-1;break;case $p:case Hp:case Yp:case Xp:case ef:case Kp:case Jp:var S=String.fromCharCode(e);d=[S,S,f];break;case Zp:if(c=g.length?g.pop()[1]:"",u=h.charCodeAt(f+1),c==="url"&&u!==Yi&&u!==rc&&u!==Or&&u!==An&&u!==In&&u!==Tn&&u!==xn){r=f;do{if(o=!1,(r=h.indexOf(")",r+1))===-1){if(m||A){r=f;break}y("bracket")}for(a=r;h.charCodeAt(a-1)===En;)a-=1,o=!o}while(o);d=["brackets",h.slice(f,r+1),f,r],f=r}else r=h.indexOf(")",f+1),s=h.slice(f,r+1),r===-1||rf.test(s)?d=["(","(",f]:(d=["brackets",s,f,r],f=r);break;case Yi:case rc:i=e===Yi?"'":'"',r=f;do{if(o=!1,(r=h.indexOf(i,r+1))===-1){if(m||A){r=f+1;break}y("string")}for(a=r;h.charCodeAt(a-1)===En;)a-=1,o=!o}while(o);d=["string",h.slice(f,r+1),f,r],f=r;break;case tf:Rn.lastIndex=f+1,Rn.test(h),r=Rn.lastIndex===0?h.length-1:Rn.lastIndex-2,d=["at-word",h.slice(f,r+1),f,r],f=r;break;case En:for(r=f,l=!0;h.charCodeAt(r+1)===En;)r+=1,l=!l;if(e=h.charCodeAt(r+1),l&&e!==nc&&e!==Or&&e!==An&&e!==In&&e!==xn&&e!==Tn&&(r+=1,ic.test(h.charAt(r)))){for(;ic.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Or&&(r+=1)}d=["word",h.slice(f,r+1),f,r],f=r;break;default:e===nc&&h.charCodeAt(f+1)===Qp?((r=h.indexOf("*/",f+2)+1)===0&&(m||A?r=h.length:y("comment")),d=["comment",h.slice(f,r+1),f,r],f=r):(Pn.lastIndex=f+1,Pn.test(h),r=Pn.lastIndex===0?h.length-1:Pn.lastIndex-2,d=["word",h.slice(f,r+1),f,r],g.push(d),f=r)}return f++,d}},position:function(){return f}}},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 n=t.prototype;return n.atrule=function(e){var r,i,s,l=new cf;l.name=e[1].slice(1),l.name===""&&this.unnamedAtrule(l,e),this.init(l,e[2]);for(var o=!1,a=!1,c=[],u=[];!this.tokenizer.endOfFile();){if((r=(e=this.tokenizer.nextToken())[0])==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0){if(r===";"){l.source.end=this.getPosition(e[2]),l.source.end.offset++,this.semicolon=!0;break}if(r==="{"){a=!0;break}if(r==="}"){if(c.length>0){for(i=c[s=c.length-1];i&&i[0]==="space";)i=c[--s];i&&(l.source.end=this.getPosition(i[3]||i[2]),l.source.end.offset++)}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(l.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(l,"params",c),o&&(e=c[c.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=""),a&&(l.nodes=[],this.current=l)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i,s=0,l=r-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])}},n.colon=function(e){for(var r,i,s,l,o=0,a=F(e.entries());!(l=a()).done;){var c=l.value,u=c[0];if((i=(r=c[1])[0])==="("&&(o+=1),i===")"&&(o-=1),o===0&&i===":"){if(s){if(s[0]==="word"&&s[1]==="progid")continue;return u}this.doubleColon(r)}s=r}return!1},n.comment=function(e){var r=new sf;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=af(this.input)},n.decl=function(e,r){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 k=g.length-1;k>=0;k--){var y=g[k],b=y[3]||y[2];if(b)return b}}(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 o=e[0][0];if(o===":"||o==="space"||o==="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 a,c=[];e.length&&((a=e[0][0])==="space"||a==="comment");)c.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if((s=e[u])[1].toLowerCase()==="!important"){i.important=!0;var d=this.stringFrom(e,u);(d=this.spacesFromEnd(e)+d)!==" !important"&&(i.raws.important=d);break}if(s[1].toLowerCase()==="important"){for(var h=e.slice(0),m="",_=u;_>0;_--){var f=h[_][0];if(m.trim().indexOf("!")===0&&f!=="space")break;m=h.pop()[1]+m}m.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=m,e=h)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(function(g){return g[0]!=="space"&&g[0]!=="comment"})&&(i.raws.between+=c.map(function(g){return g[1]}).join(""),c=[]),this.raw(i,"value",c.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new oc;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,i=null,s=!1,l=null,o=[],a=e[1].startsWith("--"),c=[],u=e;u;){if(i=u[0],c.push(u),i==="("||i==="[")l||(l=u),o.push(i==="("?")":"]");else if(a&&s&&i==="{")l||(l=u),o.push("}");else if(o.length===0){if(i===";"){if(s)return void this.decl(c,a);break}if(i==="{")return void this.rule(c);if(i==="}"){this.tokenizer.back(c.pop()),r=!0;break}i===":"&&(s=!0)}else i===o[o.length-1]&&(o.pop(),o.length===0&&(l=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(l),r&&s){if(!a)for(;c.length&&((u=c[c.length-1][0])==="space"||u==="comment");)this.tokenizer.back(c.pop());this.decl(c,a)}else this.unknownWord(c)},n.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()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var l,o,a,c,u=i.length,d="",h=!0,m=0;m<u;m+=1)(o=(l=i[m])[0])!=="space"||m!==u-1||s?o==="comment"?(c=i[m-1]?i[m-1][0]:"empty",a=i[m+1]?i[m+1][0]:"empty",ac[c]||ac[a]||d.slice(-1)===","?h=!1:d+=l[1]):d+=l[1]:h=!1;if(!h){var _=i.reduce(function(f,g){return f+g[1]},"");e.raws[r]={raw:_,value:d}}e[r]=d},n.rule=function(e){e.pop();var r=new oc;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&((r=e[e.length-1][0])==="space"||r==="comment");)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&((r=e[0][0])==="space"||r==="comment");)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r="";e.length&&e[e.length-1][0]==="space";)r=e.pop()[1]+r;return r},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t}(),df=Qt,hf=uf,pf=Di;function Qn(t,n){var e=new pf(t,n),r=new hf(e);try{r.parse()}catch(i){throw i}return r.root}var Ua=Qn;Qn.default=Qn,df.registerParse(Qn);var ft=Gt.isClean,ff=Gt.my,mf=eu,_f=Ri,gf=Qt,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":ne(t))==="object"&&typeof t.then=="function"}function vu(t){var n=!1,e=kf[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[e,e+"-"+n,0,e+"Exit",e+"Exit-"+n]:n?[e,e+"-"+n,e+"Exit",e+"Exit-"+n]: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(n){return Ho(n)}),t}var Zo={},kr=function(){function t(e,r,i){var s,l=this;if(this.stringified=!1,this.processed=!1,(r===void 0?"undefined":ne(r))!=="object"||r===null||r.type!=="root"&&r.type!=="document")if(J(r,t)||J(r,sc))s=Ho(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{var o=yf;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(r,i)}catch(a){this.processed=!0,this.error=a}s&&!s[ff]&&gf.rebuild(s)}else s=Ho(r);this.result=new sc(e,s,i),this.helpers=pe({},Zo,{postcss:Zo,result:this.result}),this.plugins=this.processor.plugins.map(function(a){return(a===void 0?"undefined":ne(a))==="object"&&a.prepare?pe({},a,a.prepare(l.result)):a})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{r&&r.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},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r,i=function(c,u,d){e.listeners[u]||(e.listeners[u]=[]),e.listeners[u].push([c,d])},s=F(this.plugins);!(r=s()).done;){var l=r.value;if((l===void 0?"undefined":ne(l))==="object")for(var o in l){if(!Cf[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+l.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!wf[o])if(ne(l[o])==="object")for(var a in l[o])i(l,a==="*"?o:o+"-"+a.toLowerCase(),l[o][a]);else typeof l[o]=="function"&&i(l,o,l[o])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return Ca(function(){var r,i,s,l,o,a,c,u,d,h,m,_;return Xr(this,function(f){switch(f.label){case 0:e.plugin=0,r=0,f.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],!Dr(s=e.runOnRoot(i)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,s];case 3:return f.sent(),[3,5];case 4:throw l=f.sent(),e.handleError(l);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[ft])return[3,14];o[ft]=!0,a=[cc(o)],f.label=8;case 8:if(!(a.length>0))return[3,13];if(!Dr(c=e.visitTick(a)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,c];case 10:return f.sent(),[3,12];case 11:throw u=f.sent(),d=a[a.length-1].node,e.handleError(u,d);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];h=function(){var g,k,y,b,A;return Xr(this,function(S){switch(S.label){case 0:g=_.value,k=g[0],y=g[1],e.result.lastPlugin=k,S.label=1;case 1:return S.trys.push([1,6,,7]),o.type!=="document"?[3,3]:(b=o.nodes.map(function(w){return y(w,e.helpers)}),[4,Promise.all(b)]);case 2:return S.sent(),[3,5];case 3:return[4,y(o,e.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw A=S.sent(),e.handleError(A);case 7:return[2]}})},m=F(e.listeners.OnceExit),f.label=15;case 15:return(_=m()).done?[3,18]:[5,fl(h())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((e===void 0?"undefined":ne(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(s){return e.Once(s,r.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)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=_f;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new mf(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result},n.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,r=F(this.plugins);!(e=r()).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,o=F(s.nodes);!(l=o()).done;){var a=l.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var i,s=F(e);!(i=s()).done;){var l=i.value,o=l[0],a=l[1];this.result.lastPlugin=o;var c=void 0;try{c=a(r,this.helpers)}catch(u){throw this.handleError(u,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Dr(c))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type==="root"||i.type==="document"||i.parent){if(s.length>0&&r.visitorIndex<s.length){var l=s[r.visitorIndex],o=l[0],a=l[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(i.toProxy(),this.helpers)}catch(m){throw this.handleError(m,i)}}if(r.iterator!==0){for(var c,u=r.iterator;c=i.nodes[i.indexes[u]];)if(i.indexes[u]+=1,!c[ft])return c[ft]=!0,void e.push(cc(c));r.iterator=0,delete i.indexes[u]}for(var d=r.events;r.eventIndex<d.length;){var h=d[r.eventIndex];if(r.eventIndex+=1,h===0)return void(i.nodes&&i.nodes.length&&(i[ft]=!0,r.iterator=i.getIterator()));if(this.listeners[h])return void(r.visitors=this.listeners[h])}e.pop()}else e.pop()},n.walkSync=function(e){var r=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(a){a[ft]||r.walkSync(a)});else{var o=this.listeners[l];if(o&&this.visitSync(o,e.toProxy()))return}}},n.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,Tf=Na,Jo=function(){function t(e,r,i){var s;r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=i,this._map=void 0;var l=Ef;this.result=new Tf(this._processor,s,this._opts),this.result.css=r;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var a=new Sf(l,s,this._opts,r);if(a.isMap()){var c=a.generate(),u=c[0],d=c[1];u&&(this.result.css=u),d&&(this.result.map=d)}else a.clearAnnotation(),this.result.css=a.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return this.async().then(e,r)},n.toString=function(){return this._css},n.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,r=Af;try{e=r(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}(),If=Jo;Jo.default=Jo;var xf=If,Rf=yu,Pf=La,Of=ln,Fr=function(){function t(e){e===void 0&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var n=t.prototype;return n.normalize=function(e){for(var r,i=[],s=F(e);!(r=s()).done;){var l=r.value;if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),(l===void 0?"undefined":ne(l))==="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if((l===void 0?"undefined":ne(l))==="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if((l===void 0?"undefined":ne(l))!=="object"||!l.parse&&!l.stringify)throw new Error(l+" is not a PostCSS plugin")}return i},n.process=function(e,r){return r===void 0&&(r={}),this.plugins.length||r.parser||r.stringifier||r.syntax?new Rf(this,e,r):new xf(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),Df=Fr;Fr.default=Fr,Of.registerProcessor(Fr),Pf.registerProcessor(Fr);var Bf=Oi,Mf=Jl,Lf=Bi,Nf=Fa,Ff=Di,Vf=ln,Uf=Va;function nn(t,n){if(Array.isArray(t))return t.map(function(u){return nn(u)});var e=t.inputs,r=Yr(t,["inputs"]);if(e){n=[];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})),n.push(l)}}if(r.nodes&&(r.nodes=t.nodes.map(function(u){return nn(u,n)})),r.source){var o=r.source,a=o.inputId,c=Yr(o,["inputId"]);r.source=c,a!=null&&(r.source.input=n[a])}if(r.type==="root")return new Vf(r);if(r.type==="decl")return new Bf(r);if(r.type==="rule")return new Uf(r);if(r.type==="comment")return new Lf(r);if(r.type==="atrule")return new Nf(r);throw new Error("Unknown node type: "+t.type)}var jf=nn;nn.default=nn;var qf=Da,lc=Oi,zf=yu,Wf=Qt,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,Kf=Pi;function _e(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Yo(n)}_e.plugin=function(t,n){var e,r=!1;function i(){for(var s=arguments.length,l=new Array(s),o=0;o<s;o++)l[o]=arguments[o];console&&console.warn&&!r&&(r=!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 a=n.apply(void 0,[].concat(l));return a.postcssPlugin=t,a.postcssVersion=new Yo().version,a}return Object.defineProperty(i,"postcss",{get:function(){return e||(e=i()),e}}),i.process=function(s,l,o){return _e([i(o)]).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=Kf,zf.registerPostcss(_e);var Qf=_e;_e.default=_e;var Ee=Ep(Qf);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,r=new Array(e),i=0;i<e;i++)r[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 n=t.prototype;return n.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},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},Ue(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.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 n=globalThis[t],e=n.prototype,r=t in mc?mc[t]:void 0,i=!!(r&&r.every(function(u){var d,h;return!!((h=(d=Object.getOwnPropertyDescriptor(e,u))==null?void 0:d.get)!=null&&h.toString().includes("[native code]"))})),s=t in _c?_c[t]:void 0,l=!!(s&&s.every(function(u){var d;return typeof e[u]=="function"&&((d=e[u])==null?void 0:d.toString().includes("[native code]"))}));if(i&&l&&!globalThis.Zone)return On[t]=n.prototype,n.prototype;try{var o=document.createElement("iframe");document.body.appendChild(o);var a=o.contentWindow;if(!a)return n.prototype;var c=a[t].prototype;return document.body.removeChild(o),c?On[t]=c:e}catch{return e}}var Xi={};function Dt(t,n,e){var r,i=t+"."+String(e);if(Xi[i])return Xi[i].call(n);var s=ja(t),l=(r=Object.getOwnPropertyDescriptor(s,e))==null?void 0:r.get;return l?(Xi[i]=l,l.call(n)):n[e]}var Ki={};function gc(t,n,e){var r=t+"."+String(e);if(Ki[r])return Ki[r].bind(n);var i=ja(t)[e];return typeof i!="function"?n[e]:(Ki[r]=i,i.bind(n))}function bu(){return ja("MutationObserver").constructor}function Xt(t,n,e){try{if(!(n in t))return function(){};var r=t[n],i=e(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[n]=i,function(){t[n]=r}}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,n){return gc("Node",t,"contains")(n)},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,n){return Dt("Element",t,"querySelector")(n)},querySelectorAll:function(t,n){return Dt("Element",t,"querySelectorAll")(n)},mutationObserver:bu,patch:Xt};function Ke(t,n,e){e===void 0&&(e=document);var r={capture:!0,passive:!0};return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}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,n,e){e===void 0&&(e={});var r=null,i=0;return function(){for(var s=arguments.length,l=new Array(s),o=0;o<s;o++)l[o]=arguments[o];var a=Date.now();i||e.leading!==!1||(i=a);var c=n-(a-i),u=this;c<=0||c>n?(r&&(clearTimeout(r),r=null),i=a,t.apply(u,l)):r||e.trailing===!1||(r=setTimeout(function(){i=e.leading===!1?0:Date.now(),r=null,t.apply(u,l)},c))}}function Mi(t,n,e,r,i){i===void 0&&(i=window);var s=i.Object.getOwnPropertyDescriptor(t,n);return i.Object.defineProperty(t,n,r?e:{set:function(l){var o=this;setTimeout(function(){e.set.call(o,l)},0),s&&s.set&&s.set.call(this,l)}}),function(){return Mi(t,n,s||{},!0)}}typeof window<"u"&&window.Proxy&&window.Reflect&&(vc=new Proxy(vc,{get:function(t,n,e){return n==="map"&&console.error(dr),Reflect.get(t,n,e)}}));var gi=Date.now;function ku(t){var n,e,r,i,s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((n=ce.parentElement(s.body))==null?void 0:n.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&&((r=ce.parentElement(s.body))==null?void 0:r.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 Qe(t,n,e,r){if(!t)return!1;var i=Su(t);if(!i)return!1;try{if(typeof n=="string"){if(i.classList.contains(n)||r&&i.closest("."+n)!==null)return!0}else if(_i(i,n,r))return!0}catch{}return!!(e&&(i.matches(e)||r&&i.closest(e)!==null))}function Qi(t,n,e){return!(t.tagName!=="TITLE"||!e.headTitleMutations)||n.getId(t)===-2}function Eu(t,n){if(Wr(t))return!1;var e=n.getId(t);if(!n.has(e))return!0;var r=ce.parentNode(t);return(!r||r.nodeType!==t.DOCUMENT_NODE)&&(!r||Eu(r,n))}function Xo(t){return!!t.changedTouches}function Au(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Tu(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Ko(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(){B(this,"id",1),B(this,"styleIDMap",new WeakMap),B(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){return this.has(e)?this.getId(e):(i=r===void 0?this.id++:r,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i);var i},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},t}();function Iu(t){var n,e=null;return"getRootNode"in t&&((n=ce.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ce.host(ce.getRootNode(t))&&(e=ce.host(ce.getRootNode(t))),e}function rm(t){var n=t.ownerDocument;if(!n)return!1;var e=function(r){for(var i,s=r;i=Iu(s);)s=i;return s}(t);return ce.contains(n,e)}function xu(t){var n=t.ownerDocument;return!!n&&(ce.contains(n,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(){B(this,"length",0),B(this,"head",null),B(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,i=0;i<e;i++)r=r?.next||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&yc(e.previousSibling)){var i=e.previousSibling.__ln.next;r.next=i,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,i&&(i.previous=r)}else if(e.nextSibling&&yc(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;r.previous=s,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t}(),bc=function(t,n){return t+"@"+n},im=function(){function t(){var e=this;B(this,"frozen",!1),B(this,"locked",!1),B(this,"texts",[]),B(this,"attributes",[]),B(this,"attributeMap",new WeakMap),B(this,"removes",[]),B(this,"mapRemoves",[]),B(this,"movedMap",{}),B(this,"addedSet",new Set),B(this,"movedSet",new Set),B(this,"droppedSet",new Set),B(this,"removesSubTreeCache",new Set),B(this,"mutationCb"),B(this,"blockClass"),B(this,"blockSelector"),B(this,"maskTextClass"),B(this,"maskTextSelector"),B(this,"inlineStylesheet"),B(this,"maskInputOptions"),B(this,"maskTextFn"),B(this,"maskInputFn"),B(this,"keepIframeSrcFn"),B(this,"recordCanvas"),B(this,"inlineImages"),B(this,"slimDOMOptions"),B(this,"dataURLOptions"),B(this,"doc"),B(this,"mirror"),B(this,"iframeManager"),B(this,"stylesheetManager"),B(this,"shadowDomManager"),B(this,"canvasManager"),B(this,"processedNodeManager"),B(this,"unattachedDoc"),B(this,"processMutations",function(r){r.forEach(e.processMutation),e.emit()}),B(this,"emit",function(){if(!e.frozen&&!e.locked){for(var r=[],i=new Set,s=new nm,l=function(v){for(var I=v,N=-2;N===-2;)N=(I=I&&I.nextSibling)&&e.mirror.getId(I);return N},o=function(v){var I=ce.parentNode(v);if(I&&xu(v)){var N=!1;if(v.nodeType===Node.TEXT_NODE){var V=I.tagName;if(V==="TEXTAREA")return;V==="STYLE"&&e.addedSet.has(I)&&(N=!0)}var z=Wr(I)?e.mirror.getId(Iu(v)):e.mirror.getId(I),M=l(v);if(z===-1||M===-1)return s.addNode(v);var Z=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),Tu(G,e.mirror)&&e.stylesheetManager.trackLinkElement(G),Ko(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:N});Z&&(r.push({parentId:z,nextId:M,node:Z}),i.add(Z.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var a,c=F(e.movedSet);!(a=c()).done;){var u=a.value;kc(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(ce.parentNode(u))||o(u)}for(var d,h=F(e.addedSet);!(d=h()).done;){var m=d.value;Cc(e.droppedSet,m)||kc(e.removesSubTreeCache,m,e.mirror)?Cc(e.movedSet,m)?o(m):e.droppedSet.add(m):o(m)}for(var _=null;s.length;){var f=null;if(_){var g=e.mirror.getId(ce.parentNode(_.value)),k=l(_.value);g!==-1&&k!==-1&&(f=_)}if(!f)for(var y=s.tail;y;){var b=y;if(y=y.previous,b){var A=e.mirror.getId(ce.parentNode(b.value));if(l(b.value)===-1)continue;if(A!==-1){f=b;break}var S=b.value,w=ce.parentNode(S);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var R=ce.host(w);if(e.mirror.getId(R)!==-1){f=b;break}}}}if(!f){for(;s.head;)s.removeNode(s.head.value);break}_=f.previous,s.removeNode(f.value),o(f.value)}var O={texts:e.texts.map(function(v){var I=v.node,N=ce.parentNode(I);return N&&N.tagName==="TEXTAREA"&&e.genTextAreaValueMutation(N),{id:e.mirror.getId(I),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 I=v.attributes;if(typeof I.style=="string"){var N=JSON.stringify(v.styleDiff),V=JSON.stringify(v._unchangedStyles);N.length<I.style.length&&(N+V).split("var(").length===I.style.split("var(").length&&(I.style=v.styleDiff)}return{id:e.mirror.getId(v.node),attributes:I}}).filter(function(v){return!i.has(v.id)}).filter(function(v){return e.mirror.has(v.id)}),removes:e.removes,adds:r};(O.texts.length||O.attributes.length||O.removes.length||O.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(O))}}),B(this,"genTextAreaValueMutation",function(r){var i=e.attributeMap.get(r);i||(i={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(i),e.attributeMap.set(r,i));var s=Array.from(ce.childNodes(r),function(l){return ce.textContent(l)||""}).join("");i.attributes.value=pi({element:r,maskInputOptions:e.maskInputOptions,tagName:r.tagName,type:fi(r),value:s,maskInputFn:e.maskInputFn})}),B(this,"processMutation",function(r){if(!Qi(r.target,e.mirror,e.slimDOMOptions))switch(r.type){case"characterData":var i=ce.textContent(r.target);Qe(r.target,e.blockClass,e.blockSelector,!1)||i===r.oldValue||e.texts.push({value:kl(r.target,e.maskTextClass,e.maskTextSelector,!0)&&i?e.maskTextFn?e.maskTextFn(i,Su(r.target)):i.replace(/[\S]/g,"*"):i,node:r.target});break;case"attributes":var s=r.target,l=r.attributeName,o=r.target.getAttribute(l);if(l==="value"){var a=fi(s);o=pi({element:s,maskInputOptions:e.maskInputOptions,tagName:s.tagName,type:a,value:o,maskInputFn:e.maskInputFn})}if(Qe(r.target,e.blockClass,e.blockSelector,!1)||o===r.oldValue)return;var c=e.attributeMap.get(r.target);if(s.tagName==="IFRAME"&&l==="src"&&!e.keepIframeSrcFn(o)){if(s.contentDocument)return;l="rr_src"}if(c||(c={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(c),e.attributeMap.set(r.target,c)),l==="type"&&s.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!bl(s.tagName,l))if(c.attributes[l]=yl(e.doc,Yt(s.tagName),Yt(l),o),l==="style"){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch{e.unattachedDoc=e.doc}var u=e.unattachedDoc.createElement("span");r.oldValue&&u.setAttribute("style",r.oldValue);for(var d,h=F(Array.from(s.style));!(d=h()).done;){var m=d.value,_=s.style.getPropertyValue(m),f=s.style.getPropertyPriority(m);_!==u.style.getPropertyValue(m)||f!==u.style.getPropertyPriority(m)?c.styleDiff[m]=f===""?_:[_,f]:c._unchangedStyles[m]=[_,f]}for(var g,k=F(Array.from(u.style));!(g=k()).done;){var y=g.value;s.style.getPropertyValue(y)===""&&(c.styleDiff[y]=!1)}}else l==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break;case"childList":if(Qe(r.target,e.blockClass,e.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA")return void e.genTextAreaValueMutation(r.target);r.addedNodes.forEach(function(b){return e.genAdds(b,r.target)}),r.removedNodes.forEach(function(b){var A=e.mirror.getId(b),S=Wr(r.target)?e.mirror.getId(ce.host(r.target)):e.mirror.getId(r.target);Qe(r.target,e.blockClass,e.blockSelector,!1)||Qi(b,e.mirror,e.slimDOMOptions)||!function(w,R){return R.getId(w)!==-1}(b,e.mirror)||(e.addedSet.has(b)?(Qo(e.addedSet,b),e.droppedSet.add(b)):e.addedSet.has(r.target)&&A===-1||Eu(r.target,e.mirror)||(e.movedSet.has(b)&&e.movedMap[bc(A,S)]?Qo(e.movedSet,b):(e.removes.push({parentId:S,id:A,isShadow:!(!Wr(r.target)||!Gr(r.target))||void 0}),function(w,R){for(var O=[w];O.length;){var v=O.pop();R.has(v)||(R.add(v),ce.childNodes(v).forEach(function(I){return O.push(I)}))}}(b,e.removesSubTreeCache))),e.mapRemoves.push(b))})}}),B(this,"genAdds",function(r,i){if(!e.processedNodeManager.inOtherBuffer(r,e)&&!e.addedSet.has(r)&&!e.movedSet.has(r)){if(e.mirror.hasNode(r)){if(Qi(r,e.mirror,e.slimDOMOptions))return;e.movedSet.add(r);var s=null;i&&e.mirror.hasNode(i)&&(s=e.mirror.getId(i)),s&&s!==-1&&(e.movedMap[bc(e.mirror.getId(r),s)]=!0)}else e.addedSet.add(r),e.droppedSet.delete(r);Qe(r,e.blockClass,e.blockSelector,!1)||(ce.childNodes(r).forEach(function(l){return e.genAdds(l)}),Ko(r)&&ce.childNodes(ce.shadowRoot(r)).forEach(function(l){e.processedNodeManager.add(l,e),e.genAdds(l,r)}))}})}var n=t.prototype;return n.init=function(e){var r=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){r[i]=e[i]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t}();function Qo(t,n){t.delete(n),ce.childNodes(n).forEach(function(e){return Qo(t,e)})}function kc(t,n,e){return t.size!==0&&function(r,i){var s=ce.parentNode(i);return!!s&&r.has(s)}(t,n)}function Cc(t,n){return t.size!==0&&Pu(t,n)}function Pu(t,n){var e=ce.parentNode(n);return!!e&&(!!t.has(e)||Pu(t,e))}var de=function(t){return $r?function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];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 n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function Ou(t,n){var e=new im;Ht.push(e),e.init(t);var r=new(bu())(de(e.processMutations.bind(e)));return r.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function om(t){var n=t.mouseInteractionCb,e=t.doc,r=t.mirror,i=t.blockClass,s=t.blockSelector,l=t.sampling;if(l.mouseInteraction===!1)return function(){};var o=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,a=[],c=null;return Object.keys(tt).filter(function(u){return Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&o[u]!==!1}).forEach(function(u){var d=Yt(u),h=function(m){return function(_){var f=Hr(_);if(!Qe(f,i,s,!0)){var g=null,k=m;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[m]===tt.MouseDown?k="TouchStart":tt[m]===tt.MouseUp&&(k="TouchEnd"):wt.Pen}else Xo(_)&&(g=wt.Touch);g!==null?(c=g,(k.startsWith("Touch")&&g===wt.Touch||k.startsWith("Mouse")&&g===wt.Mouse)&&(g=null)):tt[m]===tt.Click&&(g=c,c=null);var y=Xo(_)?_.changedTouches[0]:_;if(y){var b=r.getId(f),A=y.clientX,S=y.clientY;de(n)(pe({type:tt[k],id:b,x:A,y:S},g!==null&&{pointerType:g}))}}}}(u);if(window.PointerEvent)switch(tt[u]){case tt.MouseDown:case tt.MouseUp:d=d.replace("mouse","pointer");break;case tt.TouchStart:case tt.TouchEnd:return}a.push(Ke(d,h,e))}),de(function(){a.forEach(function(u){return u()})})}function Du(t){var n=t.scrollCb,e=t.doc,r=t.mirror,i=t.blockClass,s=t.blockSelector,l=t.sampling;return Ke("scroll",de(Vr(de(function(o){var a=Hr(o);if(a&&!Qe(a,i,s,!0)){var c=r.getId(a);if(a===e&&e.defaultView){var u=ku(e.defaultView);n({id:c,x:u.left,y:u.top})}else n({id:c,x:a.scrollLeft,y:a.scrollTop})}}),l.scroll||100)),e)}var am=["INPUT","TEXTAREA","SELECT"],wc=new WeakMap;function Dn(t){return function(n,e){if(Bn("CSSGroupingRule")&&J(n.parentRule,CSSGroupingRule)||Bn("CSSMediaRule")&&J(n.parentRule,CSSMediaRule)||Bn("CSSSupportsRule")&&J(n.parentRule,CSSSupportsRule)||Bn("CSSConditionRule")&&J(n.parentRule,CSSConditionRule)){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r)}else if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);e.unshift(i)}return e}(t,[])}function Bt(t,n,e){var r,i;return t?(t.ownerNode?r=n.getId(t.ownerNode):i=e.getId(t),{styleId:i,id:r}):{}}function Bu(t,n){var e,r,i,s=t.mirror,l=t.stylesheetManager,o=null;o=n.nodeName==="#document"?s.getId(n):s.getId(ce.host(n));var a=n.nodeName==="#document"?(e=n.defaultView)==null?void 0:e.Document:(i=(r=n.ownerDocument)==null?void 0:r.defaultView)==null?void 0:i.ShadowRoot,c=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return o!==null&&o!==-1&&a&&c?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var u;return(u=c.get)==null?void 0:u.call(this)},set:function(u){var d,h=(d=c.set)==null?void 0:d.call(this,u);if(o!==null&&o!==-1)try{l.adoptStyleSheets(u,o)}catch{}return h}}),de(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function sm(t,n){n===void 0&&(n={});var e,r=t.doc.defaultView;if(!r)return function(){};(function(v,I){var N=v.mutationCb,V=v.mousemoveCb,z=v.mouseInteractionCb,M=v.scrollCb,Z=v.viewportResizeCb,G=v.inputCb,U=v.mediaInteractionCb,ie=v.styleSheetRuleCb,ee=v.styleDeclarationCb,$=v.canvasMutationCb,j=v.fontCb,W=v.selectionCb,q=v.customElementCb;v.mutationCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.mutation&&(L=I).mutation.apply(L,[].concat(E)),N.apply(void 0,[].concat(E))},v.mousemoveCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.mousemove&&(L=I).mousemove.apply(L,[].concat(E)),V.apply(void 0,[].concat(E))},v.mouseInteractionCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.mouseInteraction&&(L=I).mouseInteraction.apply(L,[].concat(E)),z.apply(void 0,[].concat(E))},v.scrollCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.scroll&&(L=I).scroll.apply(L,[].concat(E)),M.apply(void 0,[].concat(E))},v.viewportResizeCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.viewportResize&&(L=I).viewportResize.apply(L,[].concat(E)),Z.apply(void 0,[].concat(E))},v.inputCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.input&&(L=I).input.apply(L,[].concat(E)),G.apply(void 0,[].concat(E))},v.mediaInteractionCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.mediaInteaction&&(L=I).mediaInteaction.apply(L,[].concat(E)),U.apply(void 0,[].concat(E))},v.styleSheetRuleCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.styleSheetRule&&(L=I).styleSheetRule.apply(L,[].concat(E)),ie.apply(void 0,[].concat(E))},v.styleDeclarationCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.styleDeclaration&&(L=I).styleDeclaration.apply(L,[].concat(E)),ee.apply(void 0,[].concat(E))},v.canvasMutationCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.canvasMutation&&(L=I).canvasMutation.apply(L,[].concat(E)),$.apply(void 0,[].concat(E))},v.fontCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.font&&(L=I).font.apply(L,[].concat(E)),j.apply(void 0,[].concat(E))},v.selectionCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.selection&&(L=I).selection.apply(L,[].concat(E)),W.apply(void 0,[].concat(E))},v.customElementCb=function(){for(var P=arguments.length,E=new Array(P),T=0;T<P;T++)E[T]=arguments[T];var L;I.customElement&&(L=I).customElement.apply(L,[].concat(E)),q.apply(void 0,[].concat(E))}})(t,n),t.recordDOM&&(e=Ou(t,t.doc));var i,s,l,o,a,c=function(v){var I=v.mousemoveCb,N=v.sampling,V=v.doc,z=v.mirror;if(N.mousemove===!1)return function(){};var M,Z=typeof N.mousemove=="number"?N.mousemove:50,G=typeof N.mousemoveCallback=="number"?N.mousemoveCallback:500,U=[],ie=Vr(de(function(j){var W=Date.now()-M;I(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,P=q.clientX,E=q.clientY;M||(M=gi()),U.push({x:P,y:E,id:z.getId(W),timeOffset:gi()-M}),ie(typeof DragEvent<"u"&&J(j,DragEvent)?X.Drag:J(j,MouseEvent)?X.MouseMove:X.TouchMove)}),Z,{trailing:!1})),$=[Ke("mousemove",ee,V),Ke("touchmove",ee,V),Ke("drag",ee,V)];return de(function(){$.forEach(function(j){return j()})})}(t),u=om(t),d=Du(t),h=(i={win:r},s=t.viewportResizeCb,l=i.win,o=-1,a=-1,Ke("resize",de(Vr(de(function(){var v=Cu(),I=wu();o===v&&a===I||(s({width:Number(I),height:Number(v)}),o=v,a=I)}),200)),l)),m=function(v){var I=v.inputCb,N=v.doc,V=v.mirror,z=v.blockClass,M=v.blockSelector,Z=v.ignoreClass,G=v.ignoreSelector,U=v.maskInputOptions,ie=v.maskInputFn,ee=v.sampling,$=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)&&!Qe(te,z,M,!0)&&!(te.classList.contains(Z)||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:ie})),W(te,$?{text:He,isChecked:et,userTriggered:Ae}:{text:He,isChecked:et});var Je=te.name;Ze==="radio"&&Je&&et&&N.querySelectorAll('input[type="radio"][name="'+Je+'"]').forEach(function(Be){if(Be!==te){var D=Be.value;W(Be,$?{text:D,isChecked:!et,userTriggered:!1}:{text:D,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(I)(pe({},te,{id:Re}))}}var q=(ee.input==="last"?["change"]:["input","change"]).map(function(oe){return Ke(oe,de(j),N)}),P=N.defaultView;if(!P)return function(){q.forEach(function(oe){return oe()})};var E,T=P.Object.getOwnPropertyDescriptor(P.HTMLInputElement.prototype,"value"),L=[[P.HTMLInputElement.prototype,"value"],[P.HTMLInputElement.prototype,"checked"],[P.HTMLSelectElement.prototype,"value"],[P.HTMLTextAreaElement.prototype,"value"],[P.HTMLSelectElement.prototype,"selectedIndex"],[P.HTMLOptionElement.prototype,"selected"]];return T&&T.set&&(E=q).push.apply(E,[].concat(L.map(function(oe){return Mi(oe[0],oe[1],{set:function(){de(j)({target:this,isTrusted:!1})}},!1,P)}))),de(function(){q.forEach(function(oe){return oe()})})}(t),_=function(v){var I=v.mediaInteractionCb,N=v.blockClass,V=v.blockSelector,z=v.mirror,M=v.sampling,Z=v.doc,G=de(function(ie){return Vr(de(function(ee){var $=Hr(ee);if($&&!Qe($,N,V,!0)){var j=$.currentTime,W=$.volume,q=$.muted,P=$.playbackRate,E=$.loop;I({type:ie,id:z.getId($),currentTime:j,volume:W,muted:q,playbackRate:P,loop:E})}}),M.media||500)}),U=[Ke("play",G(pr.Play),Z),Ke("pause",G(pr.Pause),Z),Ke("seeked",G(pr.Seeked),Z),Ke("volumechange",G(pr.VolumeChange),Z),Ke("ratechange",G(pr.RateChange),Z)];return de(function(){U.forEach(function(ie){return ie()})})}(t),f=function(){},g=function(){},k=function(){},y=function(){};t.recordDOM&&(f=function(v,I){var N=v.styleSheetRuleCb,V=v.mirror,z=v.stylesheetManager,M=I.win;if(!M.CSSStyleSheet||!M.CSSStyleSheet.prototype)return function(){};var Z=M.CSSStyleSheet.prototype.insertRule;M.CSSStyleSheet.prototype.insertRule=new Proxy(Z,{apply:de(function(j,W,q){var P=q[0],E=q[1],T=Bt(W,V,z.styleMirror),L=T.id,oe=T.styleId;return(L&&L!==-1||oe&&oe!==-1)&&N({id:L,styleId:oe,adds:[{rule:P,index:E}]}),j.apply(W,q)})}),M.CSSStyleSheet.prototype.addRule=function(j,W,q){q===void 0&&(q=this.cssRules.length);var P=j+" { "+W+" }";return M.CSSStyleSheet.prototype.insertRule.apply(this,[P,q])};var G,U,ie=M.CSSStyleSheet.prototype.deleteRule;M.CSSStyleSheet.prototype.deleteRule=new Proxy(ie,{apply:de(function(j,W,q){var P=q[0],E=Bt(W,V,z.styleMirror),T=E.id,L=E.styleId;return(T&&T!==-1||L&&L!==-1)&&N({id:T,styleId:L,removes:[{index:P}]}),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 P=q[0],E=Bt(W,V,z.styleMirror),T=E.id,L=E.styleId;return(T&&T!==-1||L&&L!==-1)&&N({id:T,styleId:L,replace:P}),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 P=q[0],E=Bt(W,V,z.styleMirror),T=E.id,L=E.styleId;return(T&&T!==-1||L&&L!==-1)&&N({id:T,styleId:L,replaceSync:P}),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 $={};return Object.entries(ee).forEach(function(j){var W=j[0],q=j[1];$[W]={insertRule:q.prototype.insertRule,deleteRule:q.prototype.deleteRule},q.prototype.insertRule=new Proxy($[W].insertRule,{apply:de(function(P,E,T){var L=T[0],oe=T[1],te=Bt(E.parentStyleSheet,V,z.styleMirror),Ae=te.id,Re=te.styleId;return(Ae&&Ae!==-1||Re&&Re!==-1)&&N({id:Ae,styleId:Re,adds:[{rule:L,index:[].concat(Dn(E),[oe||0])}]}),P.apply(E,T)})}),q.prototype.deleteRule=new Proxy($[W].deleteRule,{apply:de(function(P,E,T){var L=T[0],oe=Bt(E.parentStyleSheet,V,z.styleMirror),te=oe.id,Ae=oe.styleId;return(te&&te!==-1||Ae&&Ae!==-1)&&N({id:te,styleId:Ae,removes:[{index:[].concat(Dn(E),[L])}]}),P.apply(E,T)})})}),de(function(){M.CSSStyleSheet.prototype.insertRule=Z,M.CSSStyleSheet.prototype.deleteRule=ie,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=$[W].insertRule,q.prototype.deleteRule=$[W].deleteRule})})}(t,{win:r}),g=Bu(t,t.doc),k=function(v,I){var N=v.styleDeclarationCb,V=v.mirror,z=v.ignoreCSSAttributes,M=v.stylesheetManager,Z=I.win,G=Z.CSSStyleDeclaration.prototype.setProperty;Z.CSSStyleDeclaration.prototype.setProperty=new Proxy(G,{apply:de(function(ie,ee,$){var j,W=$[0],q=$[1],P=$[2];if(z.has(W))return G.apply(ee,[W,q,P]);var E=Bt((j=ee.parentRule)==null?void 0:j.parentStyleSheet,V,M.styleMirror),T=E.id,L=E.styleId;return(T&&T!==-1||L&&L!==-1)&&N({id:T,styleId:L,set:{property:W,value:q,priority:P},index:Dn(ee.parentRule)}),ie.apply(ee,$)})});var U=Z.CSSStyleDeclaration.prototype.removeProperty;return Z.CSSStyleDeclaration.prototype.removeProperty=new Proxy(U,{apply:de(function(ie,ee,$){var j,W=$[0];if(z.has(W))return U.apply(ee,[W]);var q=Bt((j=ee.parentRule)==null?void 0:j.parentStyleSheet,V,M.styleMirror),P=q.id,E=q.styleId;return(P&&P!==-1||E&&E!==-1)&&N({id:P,styleId:E,remove:{property:W},index:Dn(ee.parentRule)}),ie.apply(ee,$)})}),de(function(){Z.CSSStyleDeclaration.prototype.setProperty=G,Z.CSSStyleDeclaration.prototype.removeProperty=U})}(t,{win:r}),t.collectFonts&&(y=function(v){var I=v.fontCb,N=v.doc,V=N.defaultView;if(!V)return function(){};var z=[],M=new WeakMap,Z=V.FontFace;V.FontFace=function(U,ie,ee){var $=new Z(U,ie,ee);return M.set($,{family:U,buffer:typeof ie!="string",descriptors:ee,fontSource:typeof ie=="string"?ie:JSON.stringify(Array.from(new Uint8Array(ie)))}),$};var G=Xt(N.fonts,"add",function(U){return function(ie){return setTimeout(de(function(){var ee=M.get(ie);ee&&(I(ee),M.delete(ie))}),0),U.apply(this,[ie])}});return z.push(function(){V.FontFace=Z}),z.push(G),de(function(){z.forEach(function(U){return U()})})}(t)));for(var b,A=function(v){var I=v.doc,N=v.mirror,V=v.blockClass,z=v.blockSelector,M=v.selectionCb,Z=!0,G=de(function(){var U=I.getSelection();if(!(!U||Z&&U?.isCollapsed)){Z=U.isCollapsed||!1;for(var ie=[],ee=U.rangeCount||0,$=0;$<ee;$++){var j=U.getRangeAt($),W=j.startContainer,q=j.startOffset,P=j.endContainer,E=j.endOffset;Qe(W,V,z,!0)||Qe(P,V,z,!0)||ie.push({start:N.getId(W),startOffset:q,end:N.getId(P),endOffset:E})}M({ranges:ie})}});return G(),Ke("selectionchange",G)}(t),S=function(v){var I=v.doc,N=v.customElementCb,V=I.defaultView;return V&&V.customElements?Xt(V.customElements,"define",function(z){return function(M,Z,G){try{N({define:{name:M}})}catch{console.warn("Custom element callback failed for "+M)}return z.apply(this,[M,Z,G])}}):function(){}}(t),w=[],R=F(t.plugins);!(b=R()).done;){var O=b.value;w.push(O.observer(O.callback,r,O.options))}return de(function(){Ht.forEach(function(v){return v.reset()}),e?.disconnect(),c(),u(),d(),h(),m(),_(),f(),g(),k(),y(),A(),S(),w.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){B(this,"iframeIdToRemoteIdMap",new WeakMap),B(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var n=t.prototype;return n.getId=function(e,r,i,s){var l=i||this.getIdToRemoteIdMap(e),o=s||this.getRemoteIdToIdMap(e),a=l.get(r);return a||(a=this.generateIdFn(),l.set(r,a),o.set(a,r)),a},n.getIds=function(e,r){var i=this,s=this.getIdToRemoteIdMap(e),l=this.getRemoteIdToIdMap(e);return r.map(function(o){return i.getId(e,o,s,l)})},n.getRemoteId=function(e,r,i){var s=i||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var l=s.get(r);return l||-1},n.getRemoteIds=function(e,r){var i=this,s=this.getRemoteIdToIdMap(e);return r.map(function(l){return i.getRemoteId(e,l,s)})},n.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t}(),cm=function(){function t(e){B(this,"iframes",new WeakMap),B(this,"crossOriginIframeMap",new WeakMap),B(this,"crossOriginIframeMirror",new Sc(vl)),B(this,"crossOriginIframeStyleMirror"),B(this,"crossOriginIframeRootIdMap",new WeakMap),B(this,"mirror"),B(this,"mutationCb"),B(this,"wrappedEmit"),B(this,"loadListener"),B(this,"stylesheetManager"),B(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 n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],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))},n.handleMessage=function(e){var r=e;if(r.data.type==="rrweb"&&r.origin===r.data.origin&&e.source){var i=this.crossOriginIframeMap.get(e.source);if(i){var s=this.transformCrossOriginEvent(i,r.data.event);s&&this.wrappedEmit(s,r.data.isCheckout)}}},n.transformCrossOriginEvent=function(e,r){var i,s=this;switch(r.type){case le.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var l=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,l),this.patchRootIdOnNode(r.data.node,l),{timestamp:r.timestamp,type:le.IncrementalSnapshot,data:{source:X.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case le.Meta:case le.Load:case le.DomContentLoaded:return!1;case le.Plugin:return r;case le.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case le.IncrementalSnapshot:switch(r.data.source){case X.Mutation:return r.data.adds.forEach(function(o){s.replaceIds(o,e,["parentId","nextId","previousId"]),s.replaceIdOnNode(o.node,e);var a=s.crossOriginIframeRootIdMap.get(e);a&&s.patchRootIdOnNode(o.node,a)}),r.data.removes.forEach(function(o){s.replaceIds(o,e,["parentId","id"])}),r.data.attributes.forEach(function(o){s.replaceIds(o,e,["id"])}),r.data.texts.forEach(function(o){s.replaceIds(o,e,["id"])}),r;case X.Drag:case X.TouchMove:case X.MouseMove:return r.data.positions.forEach(function(o){s.replaceIds(o,e,["id"])}),r;case X.ViewportResize:return!1;case X.MediaInteraction:case X.MouseInteraction:case X.Scroll:case X.CanvasMutation:case X.Input:return this.replaceIds(r.data,e,["id"]),r;case X.StyleSheetRule:case X.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case X.Font:return r;case X.Selection:return r.data.ranges.forEach(function(o){s.replaceIds(o,e,["start","end"])}),r;case X.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(i=r.data.styles)==null||i.forEach(function(o){s.replaceStyleIds(o,e,["styleId"])}),r}}return!1},n.replace=function(e,r,i,s){for(var l,o=F(s);!(l=o()).done;){var a=l.value;(Array.isArray(r[a])||typeof r[a]=="number")&&(Array.isArray(r[a])?r[a]=e.getIds(i,r[a]):r[a]=e.getId(i,r[a]))}return r},n.replaceIds=function(e,r,i){return this.replace(this.crossOriginIframeMirror,e,r,i)},n.replaceStyleIds=function(e,r,i){return this.replace(this.crossOriginIframeStyleMirror,e,r,i)},n.replaceIdOnNode=function(e,r){var i=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){i.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(e,r){var i=this;e.type===Ru.Document||e.rootId||(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){i.patchRootIdOnNode(s,r)})},t}(),lm=function(){function t(e){B(this,"shadowDoms",new WeakSet),B(this,"mutationCb"),B(this,"scrollCb"),B(this,"bypassOptions"),B(this,"mirror"),B(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var i=this;if(Gr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Ou(pe({},this.bypassOptions,{doc:r,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)}},n.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var i=this;this.restoreHandlers.push(Xt(e.prototype,"attachShadow",function(s){return function(l){var o=s.call(this,l),a=ce.shadowRoot(this);return a&&xu(this)&&i.addShadowRoot(a,r),o}}))},n.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,n,e){if(t&&(Nu(t,n)||(t===void 0?"undefined":ne(t))==="object")){var r=function(s,l){var o=Ec.get(s);return o||(o=new Map,Ec.set(s,o)),o.has(l)||o.set(l,[]),o.get(l)}(e,t.constructor.name),i=r.indexOf(t);return i===-1&&(i=r.length,r.push(t)),i}};function ei(t,n,e){return J(t,Array)?t.map(function(r){return ei(r,n,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(r){var i,s=new Uint8Array(r),l=s.length,o="";for(i=0;i<l;i+=3)o+=Ur[s[i]>>2],o+=Ur[(3&s[i])<<4|s[i+1]>>4],o+=Ur[(15&s[i+1])<<2|s[i+2]>>6],o+=Ur[63&s[i+2]];return l%3==2?o=o.substring(0,o.length-1)+"=":l%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(t)}:J(t,DataView)?{rr_type:t.constructor.name,args:[ei(t.buffer,n,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,n,e),t.width,t.height]}:Nu(t,n)||(t===void 0?"undefined":ne(t))==="object"?{rr_type:t.constructor.name,index:Mu(t,n,e)}:t}var Lu=function(t,n,e){return t.map(function(r){return ei(r,n,e)})},Nu=function(t,n){var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return J(t,n[r])})};function Ac(t,n,e,r){var i=[];try{var s=Xt(t.HTMLCanvasElement.prototype,"getContext",function(l){return function(o){for(var a=arguments.length,c=new Array(a>1?a-1:0),u=1;u<a;u++)c[u-1]=arguments[u];if(!Qe(this,n,e,!0)){var d=function(m){return m==="experimental-webgl"?"webgl":m}(o);if("__context"in this||(this.__context=d),r&&["webgl","webgl2"].includes(d))if(c[0]&&ne(c[0])==="object"){var h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return l.apply(this,[].concat([o],c))}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(l){return l()})}}function Tc(t,n,e,r,i,s){for(var l,o=function(){var u=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))return"continue";try{if(typeof t[u]!="function")return"continue";var d=Xt(t,u,function(m){return function(){for(var _=arguments.length,f=new Array(_),g=0;g<_;g++)f[g]=arguments[g];var k=m.apply(this,f);if(Mu(k,s,this),"tagName"in this.canvas&&!Qe(this.canvas,r,i,!0)){var y=Lu(f,s,this),b={type:n,property:u,args:y};e(this.canvas,b)}return k}});a.push(d)}catch{var h=Mi(t,u,{set:function(_){e(this.canvas,{type:n,property:u,args:[_],setter:!0})}});a.push(h)}},a=[],c=F(Object.getOwnPropertyNames(t));!(l=c()).done;)o();return a}var Ic,Fu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",xc=typeof window<"u"&&window.Blob&&new Blob([(Ic=Fu,Uint8Array.from(atob(Ic),function(t){return t.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function dm(t){var n;try{if(!(n=xc&&(window.URL||window.webkitURL).createObjectURL(xc)))throw"";var e=new Worker(n,{name:t?.name});return e.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),e}catch{return new Worker("data:text/javascript;base64,"+Fu,{name:t?.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var xe,ti,eo,hm=function(){function t(e){var r=this;B(this,"pendingCanvasMutations",new Map),B(this,"rafStamps",{latestId:0,invokeId:null}),B(this,"mirror"),B(this,"mutationCb"),B(this,"resetObservers"),B(this,"frozen",!1),B(this,"locked",!1),B(this,"processMutation",function(d,h){!(r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId)&&r.rafStamps.invokeId||(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(d)||r.pendingCanvasMutations.set(d,[]),r.pendingCanvasMutations.get(d).push(h)});var i=e.sampling,s=i===void 0?"all":i,l=e.win,o=e.blockClass,a=e.blockSelector,c=e.recordCanvas,u=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,c&&s==="all"&&this.initCanvasMutationObserver(l,o,a),c&&typeof s=="number"&&this.initCanvasFPSObserver(s,l,o,a,{dataURLOptions:u})}var n=t.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(e,r,i,s,l){var o=this,a=Ac(r,i,s,!0),c=new Map,u=new dm;u.onmessage=function(f){var g=f.data.id;if(c.set(g,!1),"base64"in f.data){var k=f.data,y=k.base64,b=k.type,A=k.width,S=k.height;o.mutationCb({id:g,type:hr["2D"],commands:[{property:"clearRect",args:[0,0,A,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:b}]},0,0]}]})}};var d,h=1e3/e,m=0,_=function(f){if(m&&f-m<h)d=requestAnimationFrame(_);else{m=f;var g,k=o;(g=[],r.document.querySelectorAll("canvas").forEach(function(y){Qe(y,i,s,!0)||g.push(y)}),g).forEach(Ca(function(y){var b,A,S,w;return Xr(this,function(R){switch(R.label){case 0:return A=k.mirror.getId(y),c.get(A)?[2]:y.width===0||y.height===0?[2]:(c.set(A,!0),["webgl","webgl2"].includes(y.__context)&&(S=y.getContext(y.__context),((b=S?.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)),[4,createImageBitmap(y)]);case 1:return w=R.sent(),u.postMessage({id:A,bitmap:w,width:y.width,height:y.height,dataURLOptions:l.dataURLOptions},[w]),[2]}})})),d=requestAnimationFrame(_)}};d=requestAnimationFrame(_),this.resetObservers=function(){a(),cancelAnimationFrame(d)}},n.initCanvasMutationObserver=function(e,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Ac(e,r,i,!1),l=function(a,c,u,d){for(var h,m=function(){var g=h.value;try{if(typeof c.CanvasRenderingContext2D.prototype[g]!="function")return"continue";var k=Xt(c.CanvasRenderingContext2D.prototype,g,function(b){return function(){for(var A=this,S=arguments.length,w=new Array(S),R=0;R<S;R++)w[R]=arguments[R];return Qe(this.canvas,u,d,!0)||setTimeout(function(){var O=Lu(w,c,A);a(A.canvas,{type:hr["2D"],property:g,args:O})},0),b.apply(this,w)}});_.push(k)}catch{var y=Mi(c.CanvasRenderingContext2D.prototype,g,{set:function(A){a(this.canvas,{type:hr["2D"],property:g,args:[A],setter:!0})}});_.push(y)}},_=[],f=F(Object.getOwnPropertyNames(c.CanvasRenderingContext2D.prototype));!(h=f()).done;)m();return function(){_.forEach(function(g){return g()})}}(this.processMutation.bind(this),e,r,i),o=function(a,c,u,d){var h,m,_=[];return(h=_).push.apply(h,[].concat(Tc(c.WebGLRenderingContext.prototype,hr.WebGL,a,u,d,c))),c.WebGL2RenderingContext!==void 0&&(m=_).push.apply(m,[].concat(Tc(c.WebGL2RenderingContext.prototype,hr.WebGL2,a,u,d,c))),function(){_.forEach(function(f){return f()})}}(this.processMutation.bind(this),e,r,i);this.resetObservers=function(){s(),l(),o()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(i){e.rafStamps.latestId=i,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,i){var s=e.mirror.getId(i);e.flushPendingCanvasMutationFor(i,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!this.frozen&&!this.locked){var i=this.pendingCanvasMutations.get(e);if(i&&r!==-1){var s=i.map(function(o){return o.type,Yr(o,["type"])}),l=i[0].type;this.mutationCb({id:r,type:l,commands:s}),this.pendingCanvasMutations.delete(e)}}},t}(),pm=function(){function t(e){B(this,"trackedLinkElements",new WeakSet),B(this,"mutationCb"),B(this,"adoptedStyleSheetCb"),B(this,"styleMirror",new tm),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var i,s=function(){var u=l.value,d=void 0;i.styleMirror.has(u)?d=i.styleMirror.getId(u):(d=i.styleMirror.add(u),a.push({styleId:d,rules:Array.from(u.rules||CSSRule,function(h,m){return{rule:_l(h,u.href),index:m}})})),o.styleIds.push(d)};if(e.length!==0){for(var l,o={id:r,styleIds:[]},a=[],c=F(e);!(l=c()).done;)i=this,s();a.length>0&&(o.styles=a),this.adoptedStyleSheetCb(o)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(e){},t}(),fm=function(){function t(){B(this,"nodeMap",new WeakMap),B(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var i=this.nodeMap.get(e);return i&&Array.from(i).some(function(s){return s!==r})},n.add=function(e,r){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(r))},n.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 n=t.emit,e=t.checkoutEveryNms,r=t.checkoutEveryNth,i=t.blockClass,s=i===void 0?"rr-block":i,l=t.blockSelector,o=l===void 0?null:l,a=t.ignoreClass,c=a===void 0?"rr-ignore":a,u=t.ignoreSelector,d=u===void 0?null:u,h=t.maskTextClass,m=h===void 0?"rr-mask":h,_=t.maskTextSelector,f=_===void 0?null:_,g=t.inlineStylesheet,k=g===void 0||g,y=t.maskAllInputs,b=t.maskInputOptions,A=t.slimDOMOptions,S=t.maskInputFn,w=t.maskTextFn,R=t.hooks,O=t.packFn,v=t.sampling,I=v===void 0?{}:v,N=t.dataURLOptions,V=N===void 0?{}:N,z=t.mousemoveWait,M=t.recordDOM,Z=M===void 0||M,G=t.recordCanvas,U=G!==void 0&&G,ie=t.recordCrossOriginIframes,ee=ie!==void 0&&ie,$=t.recordAfter,j=$===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":$,W=t.userTriggeredOnInput,q=W!==void 0&&W,P=t.collectFonts,E=P!==void 0&&P,T=t.inlineImages,L=T!==void 0&&T,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&&!n)throw new Error("emit function is required");if(!Ze&&!Je)return function(){};z!==void 0&&I.mousemove===void 0&&(I.mousemove=z),st.reset();var Be,D,ge=y===!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}:b!==void 0?b:{password:!0},ut=A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:A==="all",headMetaDescKeywords:A==="all",headTitleMutations:A==="all"}:A||{};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,H=F(oe||[]);!(ze=H()).done;){var be=ze.value;be.eventProcessor&&(fe=be.eventProcessor(fe))}return O&&!Je&&(fe=O(fe)),fe};xe=function(fe,ze){var H,be=fe;if(be.timestamp=gi(),!((H=Ht[0])!=null&&H.isFrozen())||be.type===le.FullSnapshot||be.type===le.IncrementalSnapshot&&be.data.source===X.Mutation||Ht.forEach(function(dn){return dn.unfreeze()}),Ze)n?.(qe(be),ze);else if(Je){var Ie={type:"rrweb",event:qe(be),origin:window.location.origin,isCheckout:ze};window.parent.postMessage(Ie,"*")}if(be.type===le.FullSnapshot)D=be,je=0;else if(be.type===le.IncrementalSnapshot){if(be.data.source===X.Mutation&&be.data.isAttachIframe)return;je++;var un=r&&je>=r,Fi=e&&be.timestamp-D.timestamp>e;(un||Fi)&&ti(!0)}};for(var at,dt=function(fe){xe({type:le.IncrementalSnapshot,data:pe({source:X.Mutation},fe)})},tr=function(fe){return xe({type:le.IncrementalSnapshot,data:pe({source:X.Scroll},fe)})},Te=function(fe){return xe({type:le.IncrementalSnapshot,data:pe({source:X.CanvasMutation},fe)})},Ve=new pm({mutationCb:dt,adoptedStyleSheetCb:function(fe){return xe({type:le.IncrementalSnapshot,data:pe({source:X.AdoptedStyleSheet},fe)})}}),Ye=new cm({mirror:st,mutationCb:dt,stylesheetManager:Ve,recordCrossOriginIframes:ee,wrappedEmit:xe}),bt=F(oe||[]);!(at=bt()).done;){var Pt=at.value;Pt.getMirror&&Pt.getMirror({nodeMirror:st,crossOriginIframeMirror:Ye.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ye.crossOriginIframeStyleMirror})}var rr=new fm;eo=new hm({recordCanvas:U,mutationCb:Te,win:window,blockClass:s,blockSelector:o,mirror:st,sampling:I.canvas,dataURLOptions:V});var nr=new lm({mutationCb:dt,scrollCb:tr,bypassOptions:{blockClass:s,blockSelector:o,maskTextClass:m,maskTextSelector:f,inlineStylesheet:k,maskInputOptions:ge,dataURLOptions:V,maskTextFn:w,maskInputFn:S,recordCanvas:U,inlineImages:L,sampling:I,slimDOMOptions:ut,iframeManager:Ye,stylesheetManager:Ve,canvasManager:eo,keepIframeSrcFn:Ae,processedNodeManager:rr},mirror:st});ti=function(fe){if(fe===void 0&&(fe=!1),Z){xe({type:le.Meta,data:{href:window.location.href,width:wu(),height:Cu()}},fe),Ve.reset(),nr.init(),Ht.forEach(function(H){return H.lock()});var ze=function(H,be){var Ie=be||{},un=Ie.mirror,Fi=un===void 0?new gl:un,dn=Ie.blockClass,kd=dn===void 0?"rr-block":dn,Ya=Ie.blockSelector,Cd=Ya===void 0?null:Ya,Xa=Ie.maskTextClass,wd=Xa===void 0?"rr-mask":Xa,Ka=Ie.maskTextSelector,Sd=Ka===void 0?null:Ka,Qa=Ie.inlineStylesheet,Ed=Qa===void 0||Qa,es=Ie.inlineImages,Ad=es!==void 0&&es,ts=Ie.recordCanvas,Td=ts!==void 0&&ts,rs=Ie.maskAllInputs,Vi=rs!==void 0&&rs,Id=Ie.maskTextFn,xd=Ie.maskInputFn,ns=Ie.slimDOM,Tr=ns!==void 0&&ns,Rd=Ie.dataURLOptions,Pd=Ie.preserveWhiteSpace,Od=Ie.onSerialize,Dd=Ie.onIframeLoad,Bd=Ie.iframeLoadTimeout,Md=Ie.onStylesheetLoad,Ld=Ie.stylesheetLoadTimeout,is=Ie.keepIframeSrcFn;return yr(H,{doc:H,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:Id,maskInputFn:xd,slimDOMOptions:Tr===!0||Tr==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Tr==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:Tr===!1?{}:Tr,dataURLOptions:Rd,inlineImages:Ad,recordCanvas:Td,preserveWhiteSpace:Pd,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:o,maskTextClass:m,maskTextSelector:f,inlineStylesheet:k,maskAllInputs:ge,maskTextFn:w,maskInputFn:S,slimDOM:ut,dataURLOptions:V,recordCanvas:U,inlineImages:L,onSerialize:function(H){Au(H,st)&&Ye.addIframe(H),Tu(H,st)&&Ve.trackLinkElement(H),Ko(H)&&nr.addShadowRoot(ce.shadowRoot(H),document)},onIframeLoad:function(H,be){Ye.attachIframe(H,be),nr.observeAttachShadow(H)},onStylesheetLoad:function(H,be){Ve.attachLinkElement(H,be)},keepIframeSrcFn:Ae});if(!ze)return console.warn("Failed to snapshot the document");xe({type:le.FullSnapshot,data:{node:ze,initialOffset:ku(window)}},fe),Ht.forEach(function(H){return H.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(H,be){return xe({type:le.IncrementalSnapshot,data:{source:be,positions:H}})},mouseInteractionCb:function(H){return xe({type:le.IncrementalSnapshot,data:pe({source:X.MouseInteraction},H)})},scrollCb:tr,viewportResizeCb:function(H){return xe({type:le.IncrementalSnapshot,data:pe({source:X.ViewportResize},H)})},inputCb:function(H){return xe({type:le.IncrementalSnapshot,data:pe({source:X.Input},H)})},mediaInteractionCb:function(H){return xe({type:le.IncrementalSnapshot,data:pe({source:X.MediaInteraction},H)})},styleSheetRuleCb:function(H){return xe({type:le.IncrementalSnapshot,data:pe({source:X.StyleSheetRule},H)})},styleDeclarationCb:function(H){return xe({type:le.IncrementalSnapshot,data:pe({source:X.StyleDeclaration},H)})},canvasMutationCb:Te,fontCb:function(H){return xe({type:le.IncrementalSnapshot,data:pe({source:X.Font},H)})},selectionCb:function(H){xe({type:le.IncrementalSnapshot,data:pe({source:X.Selection},H)})},customElementCb:function(H){xe({type:le.IncrementalSnapshot,data:pe({source:X.CustomElement},H)})},blockClass:s,ignoreClass:c,ignoreSelector:d,maskTextClass:m,maskTextSelector:f,maskInputOptions:ge,inlineStylesheet:k,sampling:I,recordDOM:Z,recordCanvas:U,inlineImages:L,userTriggeredOnInput:q,collectFonts:E,doc:fe,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:Ae,blockSelector:o,slimDOMOptions:ut,dataURLOptions:V,mirror:st,iframeManager:Ye,stylesheetManager:Ve,shadowDomManager:nr,processedNodeManager:rr,canvasManager:eo,ignoreCSSAttributes:He,plugins:((ze=oe?.filter(function(H){return H.observer}))==null?void 0:ze.map(function(H){return{observer:H.observer,options:H.options,callback:function(be){return xe({type:le.Plugin,data:{plugin:H.name,payload:be}})}}}))||[]},R)};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(Ke("DOMContentLoaded",function(){xe({type:le.DomContentLoaded,data:{}}),j==="DOMContentLoaded"&&Ni()})),Ar.push(Ke("load",function(){xe({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,n){if(!vi)throw new Error("please add custom event after start recording");xe({type:le.Custom,data:{tag:t,payload:n}})},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,n,e){return function(r,i,s){return i in r?mm(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s}(t,(n===void 0?"undefined":ne(n))!=="symbol"?n+"":n,e)},sr=function(){function t(n){Nn(this,"fileName"),Nn(this,"functionName"),Nn(this,"lineNumber"),Nn(this,"columnNumber"),this.fileName=n.fileName||"",this.functionName=n.functionName||"",this.lineNumber=n.lineNumber,this.columnNumber=n.columnNumber}return t.prototype.toString=function(){var n=this.lineNumber||"",e=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+n+":"+e+")":this.fileName+":"+n+":"+e},t}(),_m=/(^|@)\S+:\d+/,Pc=/^\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(Pc)?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 n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));if(!n)throw new Error("Cannot parse given url: "+t);return[n[1],n[2]||void 0,n[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(`
|
|
54
|
-
`).filter(function(n){return!!n.match(Pc)},this).map(function(n){n.indexOf("(eval ")>-1&&(n=n.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var e=n.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=e.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(e=r?e.replace(r[0],""):e).split(/\s+/).slice(1),s=this.extractLocation(r?r[1]:i.pop()),l=i.join(" ")||void 0,o=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new sr({functionName:l,fileName:o,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(t){return t.stack.split(`
|
|
55
|
-
`).filter(function(n){return!n.match(gm)},this).map(function(n){if(n.indexOf(" > eval")>-1&&(n=n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),n.indexOf("@")===-1&&n.indexOf(":")===-1)return new sr({functionName:n});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=n.match(e),i=r&&r[1]?r[1]:void 0,s=this.extractLocation(n.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 n=/Line (\d+).*script (?:in )?(\S+)/i,e=t.message.split(`
|
|
59
|
-
`),r=[],i=2,s=e.length;i<s;i+=2){var l=n.exec(e[i]);l&&r.push(new sr({fileName:l[2],lineNumber:parseFloat(l[1])}))}return r},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=t.stacktrace.split(`
|
|
60
|
-
`),r=[],i=0,s=e.length;i<s;i+=2){var l=n.exec(e[i]);l&&r.push(new sr({functionName:l[3]||void 0,fileName:l[2],lineNumber:parseFloat(l[1])}))}return r},parseOpera11:function(t){return t.stack.split(`
|
|
61
|
-
`).filter(function(n){return!!n.match(_m)&&!n.match(/^Error created at/)},this).map(function(n){var e=n.split("@"),r=this.extractLocation(e.pop()),i=(e.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new sr({functionName:i,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function vm(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var e=t.localName;if(!e)break;e=e.toLowerCase();var r=t.parentElement,i=[];if(r.children&&r.children.length>0)for(var s=0;s<r.children.length;s++){var l=r.children[s];l.localName&&l.localName.toLowerCase&&l.localName.toLowerCase()===e&&i.push(l)}i.length>1&&(e+=":eq("+i.indexOf(t)+")"),n=e+(n?">"+n:""),t=r}return n}function ea(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vu(t,n){if(n===0)return!0;for(var e,r=F(Object.keys(t));!(e=r()).done;){var i=e.value;if(ea(t[i])&&Vu(t[i],n-1))return!0}return!1}function cr(t,n){var e={numOfKeysLimit:50,depthOfLimit:4};Object.assign(e,n);var r=[],i=[];return JSON.stringify(t,function(s,l){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?i.splice(o,1/0,s):i.push(s),~r.indexOf(l)&&(l=r[0]===l?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(l)).join(".")+"]")}else r.push(l);if(l===null)return l;if(l===void 0)return"undefined";if(function(d){return!!(ea(d)&&Object.keys(d).length>e.numOfKeysLimit||typeof d=="function"||ea(d)&&Vu(d,e.depthOfLimit))}(l))return function(d){var h=d.toString();return e.stringLengthLimit&&h.length>e.stringLengthLimit&&(h=h.slice(0,e.stringLengthLimit)+"..."),h}(l);if((l===void 0?"undefined":ne(l))==="bigint")return l.toString()+"n";if(J(l,Event)){var a={};for(var c in l){var u=l[c];Array.isArray(u)?a[c]=vm(u.length?u[0]:null):a[c]=u}return a}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,n,e){var r,i=e?Object.assign({},Oc,e):Oc,s=i.logger;if(!s)return function(){};r=typeof s=="string"?n[s]:s;var l=0,o=!1,a=[];if(i.level.includes("error")){var c=function(f){var g=f.message,k=f.error,y=ro.parse(k).map(function(A){return A.toString()}),b=[cr(g,i.stringifyOptions)];t({level:"error",trace:y,payload:b})};n.addEventListener("error",c),a.push(function(){n.removeEventListener("error",c)});var u=function(f){var g,k;J(f.reason,Error)?k=[cr("Uncaught (in promise) "+(g=f.reason).name+": "+g.message,i.stringifyOptions)]:(g=new Error,k=[cr("Uncaught (in promise)",i.stringifyOptions),cr(f.reason,i.stringifyOptions)]);var y=ro.parse(g).map(function(b){return b.toString()});t({level:"error",trace:y,payload:k})};n.addEventListener("unhandledrejection",u),a.push(function(){n.removeEventListener("unhandledrejection",u)})}for(var d,h=F(i.level);!(d=h()).done;){var m=d.value;a.push(_(r,m))}return function(){a.forEach(function(f){return f()})};function _(f,g){var k=this;return f[g]?function(y,b,A){try{if(!(b in y))return function(){};var S=y[b],w=A(S);return typeof w=="function"&&(w.prototype=w.prototype||{},Object.defineProperties(w,{__rrweb_original__:{enumerable:!1,value:S}})),y[b]=w,function(){y[b]=S}}catch{return function(){}}}(f,g,function(y){var b=k;return function(){for(var A=arguments.length,S=new Array(A),w=0;w<A;w++)S[w]=arguments[w];if(y.apply(b,S),!(g==="assert"&&S[0]||o)){o=!0;try{var R=ro.parse(new Error).map(function(v){return v.toString()}).splice(1),O=(g==="assert"?S.slice(1):S).map(function(v){return cr(v,i.stringifyOptions)});++l<i.lengthThreshold?t({level:g,trace:R,payload:O}):l===i.lengthThreshold&&t({level:"warn",trace:[],payload:[cr("The number of log records reached the threshold.")]})}catch(v){y.apply(void 0,[].concat(["rrweb logger error:",v],S))}finally{o=!1}}}}):function(){}}}var Ut,ta,ra,Dc=x.setImmediate,Bc=Object.prototype.toString,bm=Dc!==void 0?function(t){return Dc(t)}:setTimeout;try{Object.defineProperty({},"x",{}),Ut=function(t,n,e,r){return Object.defineProperty(t,n,{value:e,writable:!0,configurable:r!==!1})}}catch{Ut=function(n,e,r){return n[e]=r,n}}function yi(t,n){ra.add(t,n),ta||(ta=bm(ra.drain))}function Uu(t){var n,e=typeof t;return t===null||e!=="object"&&e!=="function"||(n=t.then),typeof n=="function"&&n}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,n,e){var r,i;try{n===!1?e.reject(t.msg):(r=n===!0?t.msg:n.call(void 0,t.msg))===e.promise?e.reject(TypeError("Promise-chain cycle")):(i=Uu(r))?i.call(r,e.resolve,e.reject):e.resolve(r)}catch(s){e.reject(s)}}function ju(t){var n,e=this;if(!e.triggered){e.triggered=!0,e.def&&(e=e.def);try{(n=Uu(t))?yi(function(){var r=new Lc(e);try{n.call(t,function(){ju.apply(r,arguments)},function(){Zr.apply(r,arguments)})}catch(i){Zr.call(r,i)}}):(e.msg=t,e.state=1,e.chain.length>0&&yi(qa,e))}catch(r){Zr.call(new Lc(e),r)}}}function Zr(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&yi(qa,n))}function Mc(t,n,e,r){for(var i=0;i<n.length;i++)(function(s){t.resolve(n[s]).then(function(l){e(s,l)},r)})(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 n=new Cm(this);this.then=function(e,r){var i={success:typeof e!="function"||e,failure:typeof r=="function"&&r};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}),n.chain.push(i),n.state!==0&&yi(qa,n),i.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){ju.call(n,e)},function(e){Zr.call(n,e)})}catch(e){Zr.call(n,e)}}ra=function(){var t,n,e;function r(i,s){this.fn=i,this.self=s,this.next=void 0}return{add:function(i,s){e=new r(i,s),n?n.next=e:t=e,n=e,e=void 0},drain:function(){var i=t;for(t=n=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(n,e){if(typeof n!="function"||typeof e!="function")throw TypeError("Not a function");n(t)})}),Ut(Vt,"reject",function(t){return new this(function(n,e){if(typeof n!="function"||typeof e!="function")throw TypeError("Not a function");e(t)})}),Ut(Vt,"all",function(t){var n=this;return Bc.call(t)!=="[object Array]"?n.reject(TypeError("Not an array")):t.length===0?n.resolve([]):new n(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");var i=t.length,s=Array(i),l=0;Mc(n,t,function(o,a){s[o]=a,++l===i&&e(s)},r)})}),Ut(Vt,"race",function(t){var n=this;return Bc.call(t)!=="[object Array]"?n.reject(TypeError("Not an array")):new n(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");Mc(n,t,function(i,s){e(s)},r)})}),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=x.console,Rt=x.navigator,K=x.document,jr=x.opera,Vc=x.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(n){Me.log(n)})}},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,n){return function(){return arguments[0]="["+n+"] "+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(n){se.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),ot.DEBUG&&se.critical(n)}}},zu=function(t){var n=t.prototype;for(var e in n)typeof n[e]=="function"&&(n[e]=on(n[e]))};p.bind=function(t,n){var e,r;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),r=function(){if(!(this instanceof r))return t.apply(n,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},r},p.each=function(t,n,e){if(t!=null){if(Uc&&t.forEach===Uc)t.forEach(n,e);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&n.call(e,t[r],r,t)===co)return}else for(var s in t)if(Un.call(t,s)&&n.call(e,t[s],s,t)===co)return}},p.extend=function(t){return p.each($t.call(arguments,1),function(n){for(var e in n)n[e]!==void 0&&(t[e]=n[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,n,e){if(qc&&t.map===qc)return t.map(n,e);var r=[];return p.each(t,function(i){r.push(n.call(e,i))}),r},p.keys=function(t){var n=[];return t===null||p.each(t,function(e,r){n[n.length]=r}),n},p.values=function(t){var n=[];return t===null||p.each(t,function(e){n[n.length]=e}),n},p.include=function(t,n){var e=!1;return t===null?e:jc&&t.indexOf===jc?t.indexOf(n)!=-1:(p.each(t,function(r){if(e||(e=r===n))return co}),e)},p.includes=function(t,n){return t.indexOf(n)!==-1},p.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},p.isObject=function(t){return t===Object(t)&&!p.isArray(t)},p.isEmptyObject=function(t){if(p.isObject(t)){for(var n in t)if(Un.call(t,n))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(n,e){p.isDate(n)?t[e]=p.formatDate(n):p.isObject(n)&&(t[e]=p.encodeDates(n))}),t},p.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},p.formatDate=function(t){function n(e){return e<10?"0"+e:e}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},p.strip_empty_properties=function(t){var n={};return p.each(t,function(e,r){p.isString(e)&&e.length>0&&(n[r]=e)}),n},p.truncate=function(t,n){var e;return typeof t=="string"?e=t.slice(0,n):p.isArray(t)?(e=[],p.each(t,function(r){e.push(p.truncate(r,n))})):p.isObject(t)?(e={},p.each(t,function(r,i){e[i]=p.truncate(r,n)})):e=t,e},p.JSONEncode=function(){return function(t){var n=function(r){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(r)?'"'+r.replace(i,function(l){var o=s[l];return typeof o=="string"?o:"\\u"+("0000"+l.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,i){var s="",l=0,o="",a="",c=0,u=s,d=[],h=i[r];switch(h&&typeof h=="object"&&typeof h.toJSON=="function"&&(h=h.toJSON(r)),typeof h){case"string":return n(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(s+=" ",d=[],Br.apply(h)==="[object Array]"){for(c=h.length,l=0;l<c;l+=1)d[l]=e(l,h)||"null";return a=d.length===0?"[]":s?`[
|
|
63
|
-
`+s+d.join(`,
|
|
64
|
-
`+s)+`
|
|
65
|
-
`+u+"]":"["+d.join(",")+"]",s=u,a}for(o in h)Un.call(h,o)&&(a=e(o,h))&&d.push(n(o)+(s?": ":":")+a);return a=d.length===0?"{}":s?"{"+d.join(",")+u+"}":"{"+d.join(",")+"}",s=u,a}};return e("",{"":t})}}(),p.JSONDecode=(io={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
66
|
-
`,r:"\r",t:" "},kt=function(t){var n=new SyntaxError(t);throw n.at=Fn,n.text=no,n},ue=function(t){return t&&t!==Y&&kt("Expected '"+t+"' instead of '"+Y+"'"),Y=no.charAt(Fn),Fn+=1,Y},oo=function(){var t,n="";for(Y==="-"&&(n="-",ue("-"));Y>="0"&&Y<="9";)n+=Y,ue();if(Y===".")for(n+=".";ue()&&Y>="0"&&Y<="9";)n+=Y;if(Y==="e"||Y==="E")for(n+=Y,ue(),Y!=="-"&&Y!=="+"||(n+=Y,ue());Y>="0"&&Y<="9";)n+=Y,ue();if(t=+n,isFinite(t))return t;kt("Bad number")},ao=function(){var t,n,e,r="";if(Y==='"')for(;ue();){if(Y==='"')return ue(),r;if(Y==="\\")if(ue(),Y==="u"){for(e=0,n=0;n<4&&(t=parseInt(ue(),16),isFinite(t));n+=1)e=16*e+t;r+=String.fromCharCode(e)}else{if(typeof io[Y]!="string")break;r+=io[Y]}else r+=Y}kt("Bad string")},ht=function(){for(;Y&&Y<=" ";)ue()},Vn=function(){switch(ht(),Y){case"{":return function(){var t,n={};if(Y==="{"){if(ue("{"),ht(),Y==="}")return ue("}"),n;for(;Y;){if(t=ao(),ht(),ue(":"),Object.hasOwnProperty.call(n,t)&&kt('Duplicate key "'+t+'"'),n[t]=Vn(),ht(),Y==="}")return ue("}"),n;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 n;return no=t,Fn=0,Y=" ",n=Vn(),ht(),Y&&kt("Syntax error"),n}),p.base64Encode=function(t){var n,e,r,i,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,a=0,c="",u=[];if(!t)return t;t=p.utf8Encode(t);do n=(s=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,e=s>>12&63,r=s>>6&63,i=63&s,u[a++]=l.charAt(n)+l.charAt(e)+l.charAt(r)+l.charAt(i);while(o<t.length);switch(c=u.join(""),t.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},p.utf8Encode=function(t){var n,e,r,i,s="";for(n=e=0,r=(t=(t+"").replace(/\r\n/g,`
|
|
67
|
-
`).replace(/\r/g,`
|
|
68
|
-
`)).length,i=0;i<r;i++){var l=t.charCodeAt(i),o=null;l<128?e++:o=l>127&&l<2048?String.fromCharCode(l>>6|192,63&l|128):String.fromCharCode(l>>12|224,l>>6&63|128,63&l|128),o!==null&&(e>n&&(s+=t.substring(n,e)),s+=o,n=e=i+1)}return e>n&&(s+=t.substring(n,t.length)),s},p.UUID=function(){try{return x.crypto.randomUUID()}catch{for(var t=new Array(36),n=0;n<36;n++)t[n]=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(r){return r.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 n;for(t=t.toLowerCase(),n=0;n<zc.length;n++)if(t.indexOf(zc[n])!==-1)return!0;return!1},p.HTTPBuildQuery=function(t,n){var e,r,i=[];return p.isUndefined(n)&&(n="&"),p.each(t,function(s,l){e=encodeURIComponent(s.toString()),r=encodeURIComponent(l),i[i.length]=r+"="+e}),i.join(n)},p.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var e=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(t);if(e===null||e&&typeof e[1]!="string"&&e[1].length)return"";var r=e[1];try{r=decodeURIComponent(r)}catch{se.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},p.cookie={get:function(t){for(var n=t+"=",e=K.cookie.split(";"),r=0;r<e.length;r++){for(var i=e[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(n)===0)return decodeURIComponent(i.substring(n.length,i.length))}return null},parse:function(t){var n;try{n=p.JSONDecode(p.cookie.get(t))||{}}catch{}return n},set_seconds:function(t,n,e,r,i,s,l){var o="",a="",c="";if(l)o="; domain="+l;else if(r){var u=Gc(K.location.hostname);o=u?"; domain=."+u:""}if(e){var d=new Date;d.setTime(d.getTime()+1e3*e),a="; expires="+d.toGMTString()}s&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),K.cookie=t+"="+encodeURIComponent(n)+a+"; path=/"+o+c},set:function(t,n,e,r,i,s,l){var o="",a="",c="";if(l)o="; domain="+l;else if(r){var u=Gc(K.location.hostname);o=u?"; domain=."+u:""}if(e){var d=new Date;d.setTime(d.getTime()+24*e*60*60*1e3),a="; expires="+d.toGMTString()}s&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var h=t+"="+encodeURIComponent(n)+a+"; path=/"+o+c;return K.cookie=h,h},remove:function(t,n,e){p.cookie.set(t,"",-1,n,!1,!1,e)}};var Wu=function(t){var n=!0;try{var e="__mplss_"+za(8);t.setItem(e,"xyz"),t.getItem(e)!=="xyz"&&(n=!1),t.removeItem(e)}catch{n=!1}return n},uo=null,an=function(t,n){return uo===null||n?uo=Wu(t||x.localStorage):uo},ho=null;function Wc(t,n,e){var r=function(i){se.error(n+" error: "+i)};return{is_supported:function(i){var s=e(t,i);return s||se.error(n+" unsupported"),s},error:r,get:function(i){try{return t.getItem(i)}catch(s){r(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){r(l)}},remove:function(i){try{t.removeItem(i)}catch(s){r(s)}}}}p.localStorage=Wc(x.localStorage,"localStorage",an),p.sessionStorage=Wc(x.sessionStorage,"sessionStorage",function(t,n){return ho===null||n?ho=Wu(t||x.sessionStorage):ho}),p.register_event=function(){function t(n){return n&&(n.preventDefault=t.preventDefault,n.stopPropagation=t.stopPropagation),n}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(n,e,r,i,s){if(n)if(n.addEventListener&&!i)n.addEventListener(e,r,!!s);else{var l="on"+e,o=n[l];n[l]=function(a,c,u){var d=function(h){if(h=h||t(x.event)){var m,_,f=!0;return p.isFunction(u)&&(m=u(h)),_=c.call(a,h),m!==!1&&_!==!1||(f=!1),f}};return d}(n,r,o)}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 n=/[\t\r\n]/g;function e(i,s){var l=" "+s+" ";return(" "+i.className+" ").replace(n," ").indexOf(l)>=0}function r(i){if(!K.getElementsByTagName)return[];var s,l,o,a,c,u,d,h,m,_,f=i.split(" "),g=[K];for(u=0;u<f.length;u++)if((s=f[u].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(l=s.split("#"))[0];var k=l[1],y=K.getElementById(k);if(!y||o&&y.nodeName.toLowerCase()!=o)return[];g=[y]}else if(s.indexOf(".")>-1){o=(l=s.split("."))[0];var b=l[1];for(o||(o="*"),a=[],c=0,d=0;d<g.length;d++)for(m=o=="*"?t(g[d]):g[d].getElementsByTagName(o),h=0;h<m.length;h++)a[c++]=m[h];for(g=[],_=0,d=0;d<a.length;d++)a[d].className&&p.isString(a[d].className)&&e(a[d],b)&&(g[_++]=a[d])}else{var A=s.match(Em);if(A){o=A[1];var S,w=A[2],R=A[3],O=A[4];for(o||(o="*"),a=[],c=0,d=0;d<g.length;d++)for(m=o=="*"?t(g[d]):g[d].getElementsByTagName(o),h=0;h<m.length;h++)a[c++]=m[h];switch(g=[],_=0,R){case"=":S=function(v){return v.getAttribute(w)==O};break;case"~":S=function(v){return v.getAttribute(w).match(new RegExp("\\b"+O+"\\b"))};break;case"|":S=function(v){return v.getAttribute(w).match(new RegExp("^"+O+"-?"))};break;case"^":S=function(v){return v.getAttribute(w).indexOf(O)===0};break;case"$":S=function(v){return v.getAttribute(w).lastIndexOf(O)==v.getAttribute(w).length-O.length};break;case"*":S=function(v){return v.getAttribute(w).indexOf(O)>-1};break;default:S=function(v){return v.getAttribute(w)}}for(g=[],_=0,d=0;d<a.length;d++)S(a[d])&&(g[_++]=a[d])}else{for(o=s,a=[],c=0,d=0;d<g.length;d++)for(m=g[d].getElementsByTagName(o),h=0;h<m.length;h++)a[c++]=m[h];g=a}}return g}return function(i){return p.isElement(i)?[i]:p.isObject(i)&&!p.isUndefined(i.length)?i:r.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"],Tm=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];p.info={campaignParams:function(t){var n="",e={};return p.each(Am,function(r){(n=p.getQueryParam(K.URL,r)).length?e[r]=n:t!==void 0&&(e[r]=t)}),e},clickParams:function(){var t="",n={};return p.each(Tm,function(e){(t=p.getQueryParam(K.URL,e)).length&&(n[e]=t)}),n},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 n=p.info.searchEngine(t),e=n!="yahoo"?"q":"p",r={};if(n!==null){r.$search_engine=n;var i=p.getQueryParam(t,e);i.length&&(r.mp_keyword=i)}return r},browser:function(t,n,e){return n=n||"",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(n,"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,n,e){var r={"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,n,e)];if(r===void 0)return null;var i=t.match(r);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 n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return x.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:K.referrer,$referring_domain:p.info.referringDomain(K.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:K.title,current_domain:x.location.hostname,current_url_path:x.location.pathname,current_url_protocol:x.location.protocol,current_url_search:x.location.search})}};var za=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},Im=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,xm=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Gc=function(t){var n=xm,e=t.split("."),r=e[e.length-1];(r.length>4||r==="com"||r==="org")&&(n=Im);var i=t.match(n);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,n){var e=x.indexedDB.open("mixpanelBrowserDb",1);e.onerror=function(){n(e.error)},e.onsuccess=function(){t(e.result)},e.onupgradeneeded=function(r){var i=r.target.result;Rm.forEach(function(s){i.createObjectStore(s)})}})},ct.prototype.init=function(){return x.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof x.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,n){var e=this.storeName,r=function(i){return new he(function(s,l){var o=i.transaction(e,t);o.oncomplete=function(){s(o)},o.onabort=o.onerror=function(){l(o.error)},n(o.objectStore(e))})};return this.dbPromise.then(r).catch((function(i){return i&&i.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):he.reject(i)}).bind(this))},ct.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(e){e.put(n,t)})},ct.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(e){n=e.get(t)}).then(function(){return n.result})},ct.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},ct.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};function Pm(t,n){Zu(!0,t,n)}function Om(t,n){Zu(!1,t,n)}function Dm(t,n){return Hu(t,n)==="1"}function $u(t,n){if(function(r){if(r&&r.ignoreDnt)return!1;var i=r&&r.window||x,s=i.navigator||{},l=!1;return p.each([s.doNotTrack,s.msDoNotTrack,i.doNotTrack],function(o){p.includes([!0,1,"1","yes"],o)&&(l=!0)}),l}(n))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,n)==="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(n){return this.get_config(n)})}function Mt(t){return Ha(t,function(n){return this._get_config(n)})}function lr(t){return Ha(t,function(n){return this._get_config(n)})}function Bm(t,n){Ga(n=n||{}).remove($a(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Ga(t){return(t=t||{}).persistenceType==="localStorage"?p.localStorage:p.cookie}function $a(t,n){return((n=n||{}).persistencePrefix||"__mp_opt_in_out_")+t}function Hu(t,n){return Ga(n).get($a(t,n))}function Zu(t,n,e){p.isString(n)&&n.length?(Ga(e=e||{}).set($a(n,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,n){return function(){var e=!1;try{var r=n.call(this,"token"),i=n.call(this,"ignore_dnt"),s=n.call(this,"opt_out_tracking_persistence_type"),l=n.call(this,"opt_out_tracking_cookie_prefix"),o=n.call(this,"window");r&&(e=$u(r,{ignoreDnt:i,persistenceType:s,persistencePrefix:l,window:o}))}catch(c){se.error("Unexpected error when checking tracking opt-out status: "+c)}if(!e)return t.apply(this,arguments);var a=arguments[arguments.length-1];typeof a=="function"&&a(0)}}var Mm=er("lock"),Ju=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||x.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||he};Ju.prototype.withLock=function(t,n){return new this.promiseImpl(p.bind(function(e,r){var i=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),l=this.storageKey,o=this.pollIntervalMS,a=this.timeoutMS,c=this.storage,u=l+":X",d=l+":Y",h=l+":Z",m=function(y){if(new Date().getTime()-s>a)return Mm.error("Timeout waiting for mutex on "+l+"; clearing lock. ["+i+"]"),c.removeItem(h),c.removeItem(d),void g();setTimeout(function(){try{y()}catch(b){r(b)}},o*(Math.random()+.1))},_=function(y,b){y()?b():m(function(){_(y,b)})},f=function(){var y=c.getItem(d);return(!y||y===i)&&(c.setItem(d,i),c.getItem(d)===i||(an(c,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){c.setItem(u,i),_(f,function(){c.getItem(u)!==i?m(function(){c.getItem(d)===i?_(function(){return!c.getItem(h)},k):g()}):k()})},k=function(){c.setItem(h,"1");var y=function(){c.removeItem(h),c.getItem(d)===i&&c.removeItem(d),c.getItem(u)===i&&c.removeItem(u)};t().then(function(b){y(),e(b)}).catch(function(b){y(),r(b)})};try{if(!an(c,!0))throw new Error("localStorage support check failed");g()}catch(y){r(y)}},this))};var fr=function(t){this.storage=t||x.localStorage};fr.prototype.init=function(){return he.resolve()},fr.prototype.isInitialized=function(){return!0},fr.prototype.setItem=function(t,n){return new he(p.bind(function(e,r){try{this.storage.setItem(t,Sr(n))}catch(i){r(i)}e()},this))},fr.prototype.getItem=function(t){return new he(p.bind(function(n,e){var r;try{r=ri(this.storage.getItem(t))}catch(i){e(i)}n(r)},this))},fr.prototype.removeItem=function(t){return new he(p.bind(function(n,e){try{this.storage.removeItem(t)}catch(r){e(r)}n()},this))};var $c=er("batch"),yt=function(t,n){var e,r,i,s;n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new fr,this.lock=new Ju(t,{storage:n.sharedLockStorage||x.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||p.bind($c.error,$c),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=(e=p.bind(this._enqueuePersisted,this),r=n.enqueueThrottleMs,i=null,s=[],function(l){var o=this;return s.push(l),i||(i=new he(function(a){setTimeout(function(){var c=e.apply(o,[s]);i=null,s=[],a(c)},r)})),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,n){var e={id:za(),flushAfter:new Date().getTime()+2*n,payload:t};return this.usePersistence?this.enqueuePersisted(e):(this.memQueue.push(e),he.resolve(!0))},yt.prototype._enqueuePersisted=function(t){var n=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(n,this.pid).catch(p.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},yt.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(e){if(e.length){var r={};p.each(n,function(l){r[l.id]=!0});for(var i=0;i<e.length;i++){var s=e[i];if(new Date().getTime()>s.flushAfter&&!r[s.id]&&(s.orphaned=!0,n.push(s),n.length>=t))break}}return n},this)):he.resolve(n)};var Hc=function(t,n){var e=[];return p.each(t,function(r){r.id&&!n[r.id]&&e.push(r)}),e};yt.prototype.removeItemsByID=function(t){var n={};if(p.each(t,function(r){n[r]=!0}),this.memQueue=Hc(this.memQueue,n),this.usePersistence){var e=p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(r){return r=Hc(r,n),this.saveToStorage(r)},this)).then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(r){for(var i=0;i<r.length;i++){var s=r[i];if(s.id&&n[s.id])throw new Error("Item not removed from storage")}return!0},this)).catch(p.bind(function(r){return this.reportError("Error removing items",r,t),!1},this))},this);return this.lock.withLock(e,this.pid).catch(p.bind(function(r){return this.reportError("Error acquiring storage lock",r),!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,n){var e=[];return p.each(t,function(r){var i=r.id;if(i in n){var s=n[i];s!==null&&(r.payload=s,e.push(r))}else e.push(r)}),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(n){return n=Zc(n,t),this.saveToStorage(n)},this)).catch(p.bind(function(n){return this.reportError("Error updating items",t,n),!1},this))},this),this.pid).catch(p.bind(function(n){return this.reportError("Error acquiring storage lock",n),!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(n){return this.reportError("Error saving queue",n),!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,n){this.errorReporter=n.errorReporter,this.queue=new yt(t,{errorReporter:p.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.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,n){return new he(p.bind(function(e){this.sendRequest(t,n,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 n=this.libConfig.batch_request_timeout_ms,e=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(p.bind(function(i){var s=i.length===r,l=[],o={};if(p.each(i,function(d){var h=d.payload;if(this.beforeSendHook&&!d.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=p.extend({},h.properties,{mp_sent_by_lib_version:ot.LIB_VERSION}));var m=!0,_=d.id;_?(this.itemIdsSentSuccessfully[_]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:d,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[_]}),m=!1):this.reportError("[dupe] found item with no ID",{item:d}),m&&l.push(h)}o[d.id]=h},this),l.length<1)return this.requestInProgress=!1,this.resetFlush(),he.resolve();var a=p.bind(function(){return this.queue.removeItemsByID(p.map(i,function(d){return d.id})).then(p.bind(function(d){return p.each(i,p.bind(function(h){var m=h.id;m?(this.itemIdsSentSuccessfully[m]=this.itemIdsSentSuccessfully[m]||0,this.itemIdsSentSuccessfully[m]++,this.itemIdsSentSuccessfully[m]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[m]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),d?(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),c=p.bind(function(d){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(o);if(p.isObject(d)&&d.error==="timeout"&&new Date().getTime()-e>=n)return this.reportError("Network timeout; retrying"),this.flush();if(p.isObject(d)&&(d.httpStatusCode>=500||d.httpStatusCode===429||d.httpStatusCode<=0&&(_=x.navigator.onLine,!p.isUndefined(_)&&!_)||d.error==="timeout")){var h=2*this.flushInterval;return d.retryAfter&&(h=1e3*parseInt(d.retryAfter,10)||h),h=Math.min(6e5,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),he.resolve()}if(p.isObject(d)&&d.httpStatusCode===413){if(i.length>1){var m=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,m,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(),a()}return a()}catch(f){this.reportError("Error handling API response",f),this.resetFlush()}var _},this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(u.transport="sendBeacon"),Mr.log("MIXPANEL REQUEST:",l),this.sendRequestPromise(l,u).then(c)},this)).catch(p.bind(function(i){this.reportError("Error flushing request queue",i),this.resetFlush()},this))},nt.prototype.reportError=function(t,n){if(Mr.error.apply(Mr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(e){Mr.error(e)}};var na=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},ur=er("recorder"),Lm=x.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 n=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:n,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())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);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 n=(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);n();var e,r=this.getConfig("record_block_selector");r!==""&&r!==null||(r=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(),n()),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:r,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 n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},Ne.prototype.isRrwebStopped=function(){return this._stopRecording===null},Ne.prototype.flushEventsWithOptOut=function(t,n,e){var r=(function(i){i===0&&(this.stopRecording(),e({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(t,n,e,r)},Ne.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),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,n){return new Ne(p.extend({},n,{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:n.sharedLockStorage}))},Ne.prototype._sendRequest=function(t,n,e,r){var i=(function(l,o){l.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=p.info.currentUrl()),this._onBatchSent(),r({status:0,httpStatusCode:l.status,responseBody:o,retryAfter:l.headers.get("Retry-After")})}).bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");x.fetch(s+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:e}).then(function(l){l.json().then(function(o){i(l,o)}).catch(function(o){r({error:o})})}).catch(function(l){r({error:l,httpStatusCode:0})})},Ne.prototype._flushEvents=Ft(function(t,n,e){var r=t.length;if(r>0){for(var i=this.replayId,s=1/0,l=-1/0,o=!1,a=0;a<r;a++)s=Math.min(s,t[a].timestamp),l=Math.max(l,t[a].timestamp),t[a].type===le.FullSnapshot&&(o=!0);if(this.seqNo===0){if(!o)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 c=l-this.replayStartTime,u={$current_url:this.batchStartUrl,$lib_version:ot.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(t);if(Object.assign(u,this.getUserIdInfo()),function(m,_,f){if(!x.CompressionStream)return!1;var g=p.info.browser(m,_,f),k=p.info.browserVersion(m,_,f);return!((g==="Safari"||g==="Mobile Safari")&&k>=16.4&&k<16.6)}(_t,Rt.vendor,jr)){var h=new Blob([d],{type:"application/json"}).stream().pipeThrough(new Lm("gzip"));new Response(h).blob().then((function(m){u.format="gzip",this._sendRequest(i,u,m,e)}).bind(this))}else u.format="body",this._sendRequest(i,u,d,e)}}),Ne.prototype.reportError=function(t,n){ur.error.apply(ur.error,arguments);try{n||t instanceof Error||(t=new Error(t)),this.getConfig("error_reporter")(t,n)}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 n=t.tabId;return n?this.idb.init().then((function(){return this.idb.setItem(n,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 n=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(n)}).bind(this)).catch(this.handleError.bind(this)):he.resolve([])};var qr=er("recorder"),Ct=function(t,n,e){this.mixpanelInstance=t,this.rrwebRecord=n||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 n=(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),r=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:n,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,n){if(this.activeRecording){var e=this.activeRecording.stopRecording(t);return n&&(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(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):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()}}),x.__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"],Kc=["mp-include"],aa=["mp-no-track"],Qc=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 n={},e=Yu(t).split(" "),r=0;r<e.length;r++){var i=e[r];i&&(n[i]=!0)}return n}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,n,e,r,i,s){var l={$classes:Yu(t).split(" "),$tag_name:t.tagName.toLowerCase()},o=t.id;o&&(l.$id=o),Za(t,n,i,s)&&p.each(Um.concat(r),function(d){if(t.hasAttribute(d)&&!e[d]){var h=t.getAttribute(d);Ci(h)&&(l["$attr-"+d]=h)}});for(var a=1,c=1,u=t;u=Wm(u);)a++,u.tagName===t.tagName&&c++;return l.$nth_child=a,l.$nth_of_type=c,l}function Gm(t,n){var e=n.allowElementCallback,r=n.allowSelectors||[],i=n.blockAttrs||[],s=n.blockElementCallback,l=n.blockSelectors||[],o=n.captureTextContent||!1,a=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,u={};p.each(i,function(S){u[S]=!0});var d=null,h=t.target===void 0?t.srcElement:t.target;if(Ku(h)&&(h=h.parentNode),function(S,w){if(!S||gt(S,"html")||!Xu(S))return!1;switch(S.tagName.toLowerCase()){case"form":return w.type===ki;case"input":return["button","submit"].indexOf(S.getAttribute("type"))===-1?w.type===sn:w.type===At;case"select":case"textarea":return w.type===sn;default:return w.type===At}}(h,t)&&ca(h,t,e,r)&&!po(h,t,s,l)){for(var m=[h],_=h;_.parentNode&&!gt(_,"body");)m.push(_.parentNode),_=_.parentNode;var f,g=[],k=!1;if(p.each(m,function(S){var w=Za(S,t,e,r);u.href||S.tagName.toLowerCase()!=="a"||(f=S.getAttribute("href"),f=w&&Ci(f)&&f),po(S,t,s,l)&&(k=!0),g.push(tl(S,t,u,a,e,r))},this),!k){var y=K.documentElement;if(d={$event_type:t.type,$host:x.location.host,$pathname:x.location.pathname,$elements:g,$el_attr__href:f,$viewportHeight:Math.max(y.clientHeight,x.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,x.innerWidth||0),$pageHeight:K.body.offsetHeight||0,$pageWidth:K.body.offsetWidth||0},p.each(a,function(S){if(!u[S]&&h.hasAttribute(S)){var w=h.getAttribute(S);Ci(w)&&(d["$el_attr__"+S]=w)}}),o&&(b=rl(h,t,e,r))&&b.length&&(d.$el_text=b),t.type===At&&(p.each(Vm,function(S){S in t&&(d["$"+S]=t[S])}),c&&(d.$captured_for_heatmap=!0),h=function(S){for(var w=S.target,R=S.composedPath(),O=0;O<R.length;O++){var v=R[O];if(gt(v,"a")||gt(v,"button")||gt(v,"input")||gt(v,"select")||v.getAttribute&&v.getAttribute("role")==="button"){w=v;break}if(v===w)break}return w}(t)),o){var b=rl(h,t,e,r);b&&b.length&&(d.$el_text=b)}if(h){if(!ca(h,t,e,r)||po(h,t,s,l))return null;var A=tl(h,t,u,a,e,r);d.$target=A,d.$el_classes=A.$classes,p.extend(d,p.strip_empty_properties({$el_id:A.$id,$el_tag_name:A.$tag_name}))}}}return d}function rl(t,n,e,r){var i="";return Za(t,n,e,r)&&t.childNodes&&t.childNodes.length&&p.each(t.childNodes,function(s){Ku(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,n,e,r){if(e)try{if(!e(t,n))return!1}catch(l){return ye.critical("Error while checking element in allowElementCallback",l),!1}if(!r.length)return!0;for(var i=0;i<r.length;i++){var s=r[i];try{if(t.matches(s))return!0}catch(l){ye.critical("Error while checking selector: "+s,l)}}return!1}function po(t,n,e,r){var i;if(e)try{if(e(t,n))return!0}catch(o){return ye.critical("Error while checking element in blockElementCallback",o),!0}if(r&&r.length)for(i=0;i<r.length;i++){var s=r[i];try{if(t.matches(s))return!0}catch(o){ye.critical("Error while checking selector: "+s,o)}}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,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function Ku(t){return t&&t.nodeType===3}function Za(t,n,e,r){var i;if(!ca(t,n,e,r))return!1;for(var s=t;s.parentNode&&!gt(s,"body");s=s.parentNode){var l=sa(s);for(i=0;i<Qc.length;i++)if(l[Qc[i]])return!1}var o=sa(t);for(i=0;i<Kc.length;i++)if(o[Kc[i]])return!0;if(gt(t,"input")||gt(t,"select")||gt(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var a=t.type||"";if(typeof a=="string")switch(a.toLowerCase()){case"hidden":case"password":return!1}var c=t.name||t.id||"";return!(typeof c=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(c.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 n="onscrollend"in x,e=on(t),r=bi;if(!n){var i=null;e=on(function(){clearTimeout(i),i=setTimeout(t,100)}),r=oa}return{listener:e,eventType:r}}function fo(t){var n=t.tagName.toLowerCase();return n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||!!t.isContentEditable||!!(t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend)||!!function(e){for(var r=0;r<el.length;r++)if(e.hasAttribute(el[r]))return!0;return!1}(t)||!!function(e){var r=e.getAttribute("role");if(!r)return!1;var i=r.trim().split(/\s+/)[0].toLowerCase();return jm[i]}(t)||!(n!=="a"||!t.hasAttribute("href"))||!!t.hasAttribute("tabindex")}function Qu(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(qm[n])return!0;if(fo(t))return!1;for(var e=t.parentElement,r=0;e&&r<5;){if(fo(e))return!1;if(e.getRootNode&&e.getRootNode()!==K){var i=e.getRootNode();if(i.host&&fo(i.host))return!1}e=e.parentElement,r++}return!!zm[n]}function ed(t){return"composedPath"in t?t.composedPath():[]}function il(t){var n=ed(t);return n&&n.length>0?n[0]:t.target||t.srcElement}function td(){this.clicks=[]}function mr(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}td.prototype.isRageClick=function(t,n){var e=(n=n||{}).threshold_px||30,r=n.timeout_ms||1e3,i=n.click_count||4;if(n.interactive_elements_only){var s=il(t);if(!s||Qu(s))return!1}var l=Date.now(),o=t.pageX,a=t.pageY,c=this.clicks[this.clicks.length-1];if(c&&l-c.timestamp<r&&Math.sqrt(Math.pow(o-c.x,2)+Math.pow(a-c.y,2))<e){if(this.clicks.push({x:o,y:a,timestamp:l}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:o,y:a,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 n=ed(t),e=0;e<n.length;e++){var r=n[e];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}},mr.prototype.observeShadowRoot=function(t){if(this.observedShadowRoots&&!this.observedShadowRoots.has(t)){var n=this;try{this.observedShadowRoots.add(t);var e=new window.MutationObserver(function(){n.changeCallback()});e.observe(t,this.observerConfig),this.shadowObservers.push(e)}catch(r){ye.critical("Error while observing shadow root",r)}}},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(n){ye.critical("Error while disconnecting shadow DOM observer",n)}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 n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!(!n||Qu(n))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)},mt.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var e=this.addClick(t);return e&&this.triggerProcessing(n),e},mt.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,e=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],s=0;s<r.length;s++){var l=r[s];e-l.timestamp>=n?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 n=t.timeout_ms,e=this;this.processingTimeout=setTimeout(function(){if(e.processingActive){for(var r=e.getDeadClicks(t),i=0;i<r.length;i++)e.onDeadClickCallback(r[i].event);e.pendingClicks.length>0?e.processRecursively(t):e.processingActive=!1}},n)}else this.processingActive=!1},mt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;$m.forEach(function(e){var r=function(){t.recordChangeEvent()};document.addEventListener(e,r,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:e,handler:r,options:{capture:!0,passive:!0}})}),Zm.forEach(function(e){var r=function(){t.recordChangeEvent()};window.addEventListener(e,r),t.eventListeners.push({target:window,event:e,handler:r})}),Hm.forEach(function(e){var r=function(){t.recordChangeEvent()};window.addEventListener(e,r,{passive:!0}),t.eventListeners.push({target:window,event:e,handler:r,options:{passive:!0}})});var n=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",n),t.eventListeners.push({target:document,event:"selectionchange",handler:n}),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 n=this.eventListeners[t];try{n.target.removeEventListener(n.event,n.handler,n.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",Pe=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Pe.prototype.init=function(){(function(){try{return!!K.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")},Pe.prototype.getFullConfig=function(){var t=this.mp.get_config(al);return t?p.isObject(t)?p.extend({},Le,t):Le:{}},Pe.prototype.getConfig=function(t){return this.getFullConfig()[t]},Pe.prototype.currentUrlBlocked=function(){var t,n=p.info.currentUrl(),e=this.getConfig(id)||[];if(e.length){var r=!1;for(t=0;t<e.length;t++){var i=e[t];try{if(n.match(i)){r=!0;break}}catch(l){return ye.critical("Error while checking block URL regex: "+i,l),!0}}if(!r)return!0}var s=this.getConfig(cd)||[];if(!s||!s.length)return!1;for(t=0;t<s.length;t++)try{if(n.match(s[t]))return!0}catch(l){return ye.critical("Error while checking block URL regex: "+s[t],l),!0}return!1},Pe.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(al)?this.getConfig(pd):this.mp.get_config("track_pageview")},Pe.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var e=this.mp.is_recording_heatmap_data()&&(n===sl&&!this.getConfig(ni)||n===ll&&!this._getClickTrackingConfig(oi)||n===cl&&!this._getClickTrackingConfig(ii)),r=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});r&&(p.extend(r,Lr),this.mp.track(n,r))}},Pe.prototype.initPageListeners=function(){if(x.removeEventListener(Yc,this.listenerPopstate),x.removeEventListener(ia,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(ai)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){x.dispatchEvent(new Event(Lt))},this.listenerHashchange=function(){x.dispatchEvent(new Event(Lt))},x.addEventListener(Yc,this.listenerPopstate),x.addEventListener(ia,this.listenerHashchange);var t=x.history.pushState;typeof t=="function"&&(x.history.pushState=function(e,r,i){t.call(x.history,e,r,i),x.dispatchEvent(new Event(Lt))});var n=x.history.replaceState;typeof n=="function"&&(x.history.replaceState=function(e,r,i){n.call(x.history,e,r,i),x.dispatchEvent(new Event(Lt))})}},Pe.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null},Pe.prototype._trackPageLeave=function(t,n,e){if(!this.hasTrackedScrollSession&&(this.getConfig(ai)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var r=Math.max(K.documentElement.clientHeight,x.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-r,0)/(e-r)*100),s=Math.round(r/e*100);e<=r&&(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:n||p.info.currentUrl(),$viewportHeight:r,$viewportWidth:Math.max(K.documentElement.clientWidth,x.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Lr);this.mp.track("$mp_page_leave",l,{transport:"sendBeacon"})}},Pe.prototype._initScrollDepthTracking=function(){if(x.removeEventListener(oa,this.listenerScrollDepth),x.removeEventListener(bi,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){ye.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(K.documentElement.clientHeight,x.innerHeight||0);var t=nl((function(){if(!this.currentUrlBlocked()){var n=Math.max(K.documentElement.clientHeight,x.innerHeight||0)+x.scrollY;n>this.maxScrollViewDepth&&(this.maxScrollViewDepth=n),this.previousScrollHeight=K.body.scrollHeight}}).bind(this));this.listenerScrollDepth=t.listener,x.addEventListener(t.eventType,this.listenerScrollDepth)}},Pe.prototype.initClickTracking=function(){x.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),x.addEventListener(At,this.listenerClick))},Pe.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 n=this._getClickTrackingConfig(ii);if((n||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=n||{};e.timeout_ms||(e.timeout_ms=500),this._deadClickTracker.trackClick(t,e)}}).bind(this),x.addEventListener(At,this.listenerDeadClick))):this.stopDeadClickTracking()},Pe.prototype.initInputTracking=function(){x.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),x.addEventListener(sn,this.listenerChange))},Pe.prototype.initPageviewTracking=function(){if(x.removeEventListener(Lt,this.listenerLocationchange),this.pageviewTrackingConfig()){ye.log("Initializing pageview tracking");var t="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(Lr)),n&&(t=p.info.currentUrl()),this.listenerLocationchange=on((function(){if(!this.currentUrlBlocked()){var e=p.info.currentUrl(),r=!1,i=e.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();s===rd?r=e!==t:s==="url-with-path-and-query-string"?r=e.split("#")[0]!==t.split("#")[0]:s==="url-with-path"&&(r=i),r&&(this.mp.track_pageview(Lr)&&(t=e),i&&(this.lastScrollCheckpoint=0,ye.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),x.addEventListener(Lt,this.listenerLocationchange)}},Pe.prototype.initRageClickTracking=function(){x.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 n=this._getClickTrackingConfig(oi);(n||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,n)&&this.trackDomEvent(t,ll))}).bind(this),x.addEventListener(At,this.listenerRageClick))},Pe.prototype.initScrollTracking=function(){if(x.removeEventListener(bi,this.listenerScroll),x.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 n=this.getConfig(dd),e=(this.getConfig(hd)||[]).slice().sort(function(c,u){return c-u}),r=x.scrollY,i=p.extend({$scroll_top:r},Lr);try{var s=K.body.scrollHeight,l=Math.round(r/(s-x.innerHeight)*100);if(i.$scroll_height=s,i.$scroll_percentage=l,l>this.lastScrollCheckpoint)for(var o=0;o<e.length;o++){var a=e[o];l>=a&&this.lastScrollCheckpoint<a&&(i.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,n=!0)}}catch(c){ye.critical("Error while calculating scroll percentage",c)}n&&this.mp.track("$mp_scroll",i)}}).bind(this));this.listenerScroll=t.listener,x.addEventListener(t.eventType,this.listenerScroll)}},Pe.prototype.initSubmitTracking=function(){x.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),x.addEventListener(ki,this.listenerSubmit))},Pe.prototype.initPageLeaveTracking=function(){if(K.removeEventListener(Xc,this.listenerPageLeaveVisibilitychange),x.removeEventListener(Lt,this.listenerPageLeaveLocationchange),x.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=K.body.scrollHeight}).bind(this),x.addEventListener(Jc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=on((function(n){if(!this.currentUrlBlocked()){var e=p.info.currentUrl();e!==t&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=e,this.maxScrollViewDepth=Math.max(K.documentElement.clientHeight,x.innerHeight||0),this.previousScrollHeight=K.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),x.addEventListener(Lt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(n){K.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}).bind(this),K.addEventListener(Xc,this.listenerPageLeaveVisibilitychange)}},Pe.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(x.removeEventListener(At,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},zu(Pe);var Xe=er("flags"),jn="flags",si="context",ha={};ha[si]={};var ae=function(t){this.fetch=x.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,n){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 r=n&&n.replace?{}:this.getConfig(si);return e[si]=p.extend({},r,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"),n=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 r=p.extend({distinct_id:t,device_id:n},this.getConfig(si)),i=new URLSearchParams;i.set("context",JSON.stringify(r)),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(x,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:e}}).then((function(l){return this.markFetchComplete(),l.json().then((function(o){var a=o.flags;if(!a)throw new Error("No flags in API response");var c=new Map;p.each(a,function(u,d){c.set(d,{key:u.variant_key,value:u.variant_value,experiment_id:u.experiment_id,is_experiment_active:u.is_experiment_active,is_qa_tester:u.is_qa_tester})}),this.flags=c,this._traceparent=e}).bind(this)).catch((function(o){this.markFetchComplete(),Xe.error(o)}).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,n){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(t,n)}).bind(this)).catch(function(e){return Xe.error(e),n}):new Promise(function(e){Xe.critical("Feature Flags not initialized"),e(n)})},ae.prototype.getVariantSync=function(t,n){if(!this.areFlagsReady())return Xe.log("Flags not loaded yet"),n;var e=this.flags.get(t);return e?(this.trackFeatureCheck(t,e),e):(Xe.log('No flag found: "'+t+'"'),n)},ae.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(e){return e.value}).catch(function(e){return Xe.error(e),n})},ae.prototype.getFeatureData=function(t,n){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,n)},ae.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value},ae.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then((function(){return this.isEnabledSync(t,n)}).bind(this)).catch(function(e){return Xe.error(e),n})},ae.prototype.isEnabledSync=function(t,n){n=n||!1;var e=this.getVariantValueSync(t,n);return e!==!0&&e!==!1&&(Xe.error('Feature flag "'+t+'" value: '+e+" is not a boolean; returning fallback value: "+n),e=n),e},ae.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var e={"Experiment name":t,"Variant name":n.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};n.experiment_id!=="undefined"&&(e.$experiment_id=n.experiment_id),n.is_experiment_active!=="undefined"&&(e.$is_experiment_active=n.is_experiment_active),n.is_qa_tester!=="undefined"&&(e.$is_qa_tester=n.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,n,e,r){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(o){var a={},c=i.create_properties(e,this),u=i.mp.get_config("track_links_timeout");i.event_handler(o,this,a),window.setTimeout(i.track_callback(r,c,a,!0),u),i.mp.track(n,c,i.track_callback(r,c,a))})},this),!0;se.error("The DOM query ("+t+") returned 0 elements")},Et.prototype.track_callback=function(t,n,e,r){r=r||!1;var i=this;return function(){e.callback_fired||(e.callback_fired=!0,t&&t(r,n)===!1||i.after_track_handler(n,e,r))}},Et.prototype.create_properties=function(t,n){return typeof t=="function"?t(n):p.extend({},t)};var _r=function(){this.override_event="click"};p.inherit(_r,Et),_r.prototype.create_properties=function(t,n){var e=_r.superclass.create_properties.apply(this,arguments);return n.href&&(e.url=n.href),e},_r.prototype.event_handler=function(t,n,e){e.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",e.href=n.href,e.new_tab||t.preventDefault()},_r.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var ci=function(){this.override_event="submit"};p.inherit(ci,Et),ci.prototype.event_handler=function(t,n,e){e.element=n,t.preventDefault()},ci.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var jt="$set",Er="$set_once",lt="$unset",Zt="$add",vt="$append",Jt="$union",Tt="$remove",fd={set_action:function(t,n){var e={},r={};return p.isObject(t)?p.each(t,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[t]=n,e[jt]=r,e},unset_action:function(t){var n={},e=[];return p.isArray(t)||(t=[t]),p.each(t,function(r){this._is_reserved_property(r)||e.push(r)},this),n[lt]=e,n},set_once_action:function(t,n){var e={},r={};return p.isObject(t)?p.each(t,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[t]=n,e[Er]=r,e},union_action:function(t,n){var e={},r={};return p.isObject(t)?p.each(t,function(i,s){this._is_reserved_property(s)||(r[s]=p.isArray(i)?i:[i])},this):r[t]=p.isArray(n)?n:[n],e[Jt]=r,e},append_action:function(t,n){var e={},r={};return p.isObject(t)?p.each(t,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[t]=n,e[vt]=r,e},remove_action:function(t,n){var e={},r={};return p.isObject(t)?p.each(t,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[t]=n,e[Tt]=r,e},delete_action:function(){var t={$delete:""};return t}},we=function(){};p.extend(we.prototype,fd),we.prototype._init=function(t,n,e){this._mixpanel=t,this._group_key=n,this._group_id=e},we.prototype.set=lr(function(t,n,e){var r=this.set_action(t,n);return p.isObject(t)&&(e=n),this._send_request(r,e)}),we.prototype.set_once=lr(function(t,n,e){var r=this.set_once_action(t,n);return p.isObject(t)&&(e=n),this._send_request(r,e)}),we.prototype.unset=lr(function(t,n){var e=this.unset_action(t);return this._send_request(e,n)}),we.prototype.union=lr(function(t,n,e){p.isObject(t)&&(e=n);var r=this.union_action(t,n);return this._send_request(r,e)}),we.prototype.delete=lr(function(t){var n=this.delete_action();return this._send_request(n,t)}),we.prototype.remove=lr(function(t,n,e){var r=this.remove_action(t,n);return this._send_request(r,e)}),we.prototype._send_request=function(t,n){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},n)},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 Q=function(){};p.extend(Q.prototype,fd),Q.prototype._init=function(t){this._mixpanel=t},Q.prototype.set=Mt(function(t,n,e){var r=this.set_action(t,n);return p.isObject(t)&&(e=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[jt]=p.extend({},p.info.people_properties(),r[jt]),this._send_request(r,e)}),Q.prototype.set_once=Mt(function(t,n,e){var r=this.set_once_action(t,n);return p.isObject(t)&&(e=n),this._send_request(r,e)}),Q.prototype.unset=Mt(function(t,n){var e=this.unset_action(t);return this._send_request(e,n)}),Q.prototype.increment=Mt(function(t,n,e){var r={},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=n):(p.isUndefined(n)&&(n=1),i[t]=n),r[Zt]=i,this._send_request(r,e)}),Q.prototype.append=Mt(function(t,n,e){p.isObject(t)&&(e=n);var r=this.append_action(t,n);return this._send_request(r,e)}),Q.prototype.remove=Mt(function(t,n,e){p.isObject(t)&&(e=n);var r=this.remove_action(t,n);return this._send_request(r,e)}),Q.prototype.union=Mt(function(t,n,e){p.isObject(t)&&(e=n);var r=this.union_action(t,n);return this._send_request(r,e)}),Q.prototype.track_charge=Mt(function(){se.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Q.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},Q.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")},Q.prototype.toString=function(){return this._mixpanel.toString()+".people"},Q.prototype._send_request=function(t,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var e=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");e&&(t.$device_id=e),r&&(t.$user_id=r),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},n):(this._enqueue(t),p.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),p.truncate(s,255))},Q.prototype._get_config=function(t){return this._mixpanel.get_config(t)},Q.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},Q.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):Tt in t?this._mixpanel.persistence._add_to_people_queue(Tt,t):Jt in t?this._mixpanel.persistence._add_to_people_queue(Jt,t):se.error("Invalid call to _enqueue():",t)},Q.prototype._flush_one_queue=function(t,n,e,r){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(),r&&(l=r(s)),n.call(i,l,function(o,a){o===0&&i._mixpanel.persistence._add_to_people_queue(t,s),p.isUndefined(e)||e(o,a)}))},Q.prototype._flush=function(t,n,e,r,i,s,l){var o=this;this._flush_one_queue(jt,this.set,t),this._flush_one_queue(Er,this.set_once,r),this._flush_one_queue(lt,this.unset,s,function(g){return p.keys(g)}),this._flush_one_queue(Zt,this.increment,n),this._flush_one_queue(Jt,this.union,i);var a=this._mixpanel.persistence.load_queue(vt);if(!p.isUndefined(a)&&p.isArray(a)&&a.length)for(var c,u=function(g,k){g===0&&o._mixpanel.persistence._add_to_people_queue(vt,c),p.isUndefined(e)||e(g,k)},d=a.length-1;d>=0;d--)a=this._mixpanel.persistence.load_queue(vt),c=a.pop(),o._mixpanel.persistence.save(),p.isEmptyObject(c)||o.append(c,u);var h=this._mixpanel.persistence.load_queue(Tt);if(!p.isUndefined(h)&&p.isArray(h)&&h.length)for(var m,_=function(g,k){g===0&&o._mixpanel.persistence._add_to_people_queue(Tt,m),p.isUndefined(l)||l(g,k)},f=h.length-1;f>=0;f--)h=this._mixpanel.persistence.load_queue(Tt),m=h.pop(),o._mixpanel.persistence.save(),p.isEmptyObject(m)||o.remove(m,_)},Q.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},Q.prototype.set=Q.prototype.set,Q.prototype.set_once=Q.prototype.set_once,Q.prototype.unset=Q.prototype.unset,Q.prototype.increment=Q.prototype.increment,Q.prototype.append=Q.prototype.append,Q.prototype.remove=Q.prototype.remove,Q.prototype.union=Q.prototype.union,Q.prototype.track_charge=Q.prototype.track_charge,Q.prototype.clear_charges=Q.prototype.clear_charges,Q.prototype.delete_user=Q.prototype.delete_user,Q.prototype.toString=Q.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],re=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 n=t.persistence;n!=="cookie"&&n!=="localStorage"&&(se.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&p.localStorage.is_supported()?this.storage=p.localStorage:this.storage=p.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};re.prototype.properties=function(){var t={};return this.load(),p.each(this.props,function(n,e){p.include(Jm,e)||(t[e]=n)}),t},re.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=p.extend({},t))}},re.prototype.upgrade=function(){var t,n;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&&(n=p.localStorage.parse(this.name),p.localStorage.remove(this.name),n&&this.register_once(n))},re.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)},re.prototype.load_prop=function(t){return this.load(),this.props[t]},re.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},re.prototype.clear=function(){this.remove(),this.props={}},re.prototype.register_once=function(t,n,e){return!!p.isObject(t)&&(n===void 0&&(n="None"),this.expire_days=e===void 0?this.default_expiry:e,this.load(),p.each(t,function(r,i){this.props.hasOwnProperty(i)&&this.props[i]!==n||(this.props[i]=r)},this),this.save(),!0)},re.prototype.register=function(t,n){return!!p.isObject(t)&&(this.expire_days=n===void 0?this.default_expiry:n,this.load(),p.extend(this.props,t),this.save(),!0)},re.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},re.prototype.update_search_keyword=function(t){this.register(p.info.searchInfo(t))},re.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:p.info.referringDomain(t)||"$direct"},"")},re.prototype.get_referrer_info=function(){return p.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},re.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)},re.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},re.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},re.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},re.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},re.prototype.get_cross_subdomain=function(){return this.cross_subdomain},re.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},re.prototype._add_to_people_queue=function(t,n){var e=this._get_queue_key(t),r=n[t],i=this._get_or_create_queue(jt),s=this._get_or_create_queue(Er),l=this._get_or_create_queue(lt),o=this._get_or_create_queue(Zt),a=this._get_or_create_queue(Jt),c=this._get_or_create_queue(Tt,[]),u=this._get_or_create_queue(vt,[]);e===pa?(p.extend(i,r),this._pop_from_people_queue(Zt,r),this._pop_from_people_queue(Jt,r),this._pop_from_people_queue(lt,r)):e===fa?(p.each(r,function(d,h){h in s||(s[h]=d)}),this._pop_from_people_queue(lt,r)):e===ma?p.each(r,function(d){p.each([i,s,o,a],function(h){d in h&&delete h[d]}),p.each(u,function(h){d in h&&delete h[d]}),l[d]=!0}):e===_a?(p.each(r,function(d,h){h in i?i[h]+=d:(h in o||(o[h]=0),o[h]+=d)},this),this._pop_from_people_queue(lt,r)):e===ya?(p.each(r,function(d,h){p.isArray(d)&&(h in a||(a[h]=[]),p.each(d,function(m){p.include(a[h],m)||a[h].push(m)}))}),this._pop_from_people_queue(lt,r)):e===va?(c.push(r),this._pop_from_people_queue(vt,r)):e===ga&&(u.push(r),this._pop_from_people_queue(lt,r)),se.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),se.log(n),this.save()},re.prototype._pop_from_people_queue=function(t,n){var e=this.props[this._get_queue_key(t)];p.isUndefined(e)||p.each(n,function(r,i){t===vt||t===Tt?p.each(e,function(s){s[i]===r&&delete s[i]}):delete e[i]},this)},re.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},re.prototype._get_queue_key=function(t){return t===jt?pa:t===Er?fa:t===lt?ma:t===Zt?_a:t===vt?ga:t===Tt?va:t===Jt?ya:void se.error("Invalid queue:",t)},re.prototype._get_or_create_queue=function(t,n){var e=this._get_queue_key(t);return n=p.isUndefined(n)?{}:n,this.props[e]||(this.props[e]=n)},re.prototype.set_event_timer=function(t,n){var e=this.load_prop(zr)||{};e[t]=n,this.props[zr]=e,this.save()},re.prototype.remove_event_timer=function(t){var n=(this.load_prop(zr)||{})[t];return p.isUndefined(n)||(delete this.props[zr][t],this.save()),n};var We,_d=function(t,n){throw new Error(t+" not available in this build.")},it="mixpanel",gd="base64",ba="$device:",gr=x.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,C=function(){},ka=function(t,n,e){var r,i=e===it?We:We[e];if(i&&wi===0)r=i;else{if(i&&!p.isArray(i))return void se.error("You have already initialized "+e);r=new C}if(r._cached_groups={},r._init(t,n,e),r.people=new Q,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var s=p.info.campaignParams(null),l={},o=!1;p.each(s,function(c,u){l["initial_"+u]=c,c&&(o=!0)}),o&&r.people.set_once(l)}ot.DEBUG=ot.DEBUG||r.get_config("debug");var a=wi===0?"module":"snippet";return x.dispatchEvent(new x.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:r,source:a,token:t,name:e,info:p.info}})),!p.isUndefined(i)&&p.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};C.prototype.init=function(t,n,e){if(p.isUndefined(e))this.report_error("You must name your new library: init(token, config, name)");else{if(e!==it){var r=ka(t,n,e);return We[e]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},C.prototype._init=function(t,n,e){n=n||{},this.__loaded=!0,this.config={};var r={};if("api_payload_format"in n||(n.api_host||ul.api_host).match(/\.mixpanel\.com/)&&(r.api_payload_format="json"),this.hooks={},this.set_config(p.extend({},ul,r,n,{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&&x.addEventListener){var i=p.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);x.addEventListener("pagehide",function(l){l.persisted&&i()}),x.addEventListener("visibilitychange",function(){K.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 re(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 Pe(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},C.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"),n="mp_tab_id_"+t,e="mp_gen_new_tab_id_"+t;!p.sessionStorage.get(e)&&p.sessionStorage.get(n)||p.sessionStorage.set(n,"$tab-"+p.UUID()),p.sessionStorage.set(e,"1"),this.tab_id=p.sessionStorage.get(n),x.addEventListener("beforeunload",function(){p.sessionStorage.remove(e)})}catch(r){this.report_error("Error initializing tab id",r)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},C.prototype.get_tab_id=function(){return this.tab_id||null},C.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),n=this.get_tab_id();return t.init().then(function(){return t.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(na(e[r])||e[r].tabId===n)return!0;return!1}).catch(p.bind(function(e){this.report_error("Error checking recording registry",e)},this))},C.prototype._check_and_start_session_recording=Ft(function(t){if(x.MutationObserver){var n=p.bind(function(r){var i=p.bind(function(){this._recorder=this._recorder||new x.__mp_recorder(this),this._recorder.resumeRecording(r)},this);p.isUndefined(x.__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?n(!0):this._should_load_recorder().then(function(r){r&&n(!1)})}else se.critical("Browser does not support MutationObserver; skipping session recording")}),C.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},C.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},C.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},C.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},C.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},C.prototype.get_session_recording_properties=function(){var t={},n=this._get_session_replay_id();return n&&(t.$mp_replay_id=n),t},C.prototype.get_session_replay_url=function(){var t=null,n=this._get_session_replay_id();return n&&(t="https://mixpanel.com/projects/replay-redirect?"+p.HTTPBuildQuery({replay_id:n,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),t},C.prototype._get_session_replay_id=function(){var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},C.prototype.__get_recorder=function(){return this._recorder},C.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(n,e){this.unregister(e)}).bind(this))}},C.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(K.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(K.referrer)},C.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},C.prototype._track_dom=function(t,n){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,n]),!1;var e=new t().init(this);return e.track.apply(e,n)},C.prototype._prepare_callback=function(t,n){if(p.isUndefined(t))return null;if(gr)return function(s){t(s,n)};var e=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(s){delete e[r],t(s,n)},i},C.prototype._send_request=function(t,n,e,r){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;r||!p.isFunction(e)&&typeof e!="string"||(r=e,e=null),e=p.extend(s,e||{}),gr||(e.method="GET");var o=e.method==="POST",a=ui&&o&&e.transport.toLowerCase()==="sendbeacon",c=e.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),gr||(r?n.callback=r:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),o&&(l="data="+encodeURIComponent(n.data),delete n.data),p.extend(n,this.get_config("api_extra_query_params")),t+="?"+p.HTTPBuildQuery(n);var u=this;if("img"in n){var d=K.createElement("img");d.src=t,K.body.appendChild(d)}else if(a){try{i=ui(t,l)}catch(k){u.report_error(k),i=!1}try{r&&r(i?1:0)}catch(k){u.report_error(k)}}else if(gr)try{var h=new XMLHttpRequest;h.open(e.method,t,!0);var m=this.get_config("xhr_headers");if(o&&(m["Content-Type"]="application/x-www-form-urlencoded"),p.each(m,function(k,y){h.setRequestHeader(y,k)}),e.timeout_ms&&h.timeout!==void 0){h.timeout=e.timeout_ms;var _=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){var k;if(h.readyState===4){if(h.status===200){if(r)if(c){var y;try{y=p.JSONDecode(h.responseText)}catch(A){if(u.report_error(A),!e.ignore_json_errors)return;y=h.responseText}r(y)}else r(Number(h.responseText))}else if(k=h.timeout&&!h.status&&new Date().getTime()-_>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(k),r)if(c){var b=h.responseHeaders||{};r({status:0,httpStatusCode:h.status,error:k,retryAfter:b["Retry-After"]})}else r(0)}},h.send(l)}catch(k){u.report_error(k),i=!1}else{var f=K.createElement("script");f.type="text/javascript",f.async=!0,f.defer=!0,f.src=t;var g=K.getElementsByTagName("script")[0];g.parentNode.insertBefore(f,g)}return i},C.prototype._execute_array=function(t){var n,e=[],r=[],i=[];p.each(t,function(l){l&&(n=l[0],p.isArray(n)?i.push(l):typeof l=="function"?l.call(this):p.isArray(l)&&n==="alias"?e.push(l):p.isArray(l)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?i.push(l):r.push(l))},this);var s=function(l,o){p.each(l,function(a){if(p.isArray(a[0])){var c=o;p.each(a,function(u){c=c[u[0]].apply(c,u.slice(1))})}else this[a[0]].apply(this,a.slice(1))},o)};s(e,this),s(r,this),s(i,this)},C.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},C.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},C.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(r,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(r),i,this._prepare_callback(s,r))},this),beforeSendHook:p.bind(function(r){var i=this._run_hook("before_send_"+e.type,r);return i?i[0]:null},this),stopAllBatchingFunc:p.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:t(n.events),people:t(n.people),groups:t(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},C.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()}))},C.prototype.stop_batch_senders=function(){this._batch_requests=!1,p.each(this.request_batchers,function(t){t.stop(),t.clear()})},C.prototype.push=function(t){this._execute_array([t])},C.prototype.disable=function(t){t===void 0?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},C.prototype._encode_data_for_request=function(t){var n=Sr(t);return this.get_config("api_payload_format")===gd&&(n=p.base64Encode(n)),{data:n}},C.prototype._track_or_batch=function(t,n){var e=p.truncate(t.data,255),r=t.endpoint,i=t.batcher,s=t.should_send_immediately,l=t.send_request_options||{};n=n||qt;var o=!0,a=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(r,this._encode_data_for_request(e),l,this._prepare_callback(n,e))):null},this);return this._batch_requests&&!s?i.enqueue(e).then(function(c){c?n(1,e):a()}):o=a(),o&&e},C.prototype.track=Ft(function(t,n,e,r){var i;if(!e||!e.skip_hooks){if((i=this._run_hook("before_track",t,n))===null)return;t=i[0],n=i[1]}r||typeof e!="function"||(r=e,e=null);var s=(e=e||{}).transport;s&&(e.transport=s);var l=e.send_immediately;if(typeof r!="function"&&(r=qt),p.isUndefined(t))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(t)){(n=p.extend({},n)).token=this.get_config("token");var o=this.persistence.remove_event_timer(t);if(!p.isUndefined(o)){var a=new Date().getTime()-o;n.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?p.info.marketingParams():{};n=p.extend({},p.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var u=this.get_config("property_blacklist");p.isArray(u)?p.each(u,function(h){delete n[h]}):this.report_error("Invalid value for property_blacklist config: "+u);var d={event:t,properties:n};return i=this._track_or_batch({type:"events",data:d,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},r)}r(0)}}),C.prototype.set_group=Ft(function(t,n,e){p.isArray(n)||(n=[n]);var r={};return r[t]=n,this.register(r),this.people.set(t,n,e)}),C.prototype.add_group=Ft(function(t,n,e){var r=this.get_property(t),i={};return r===void 0?(i[t]=[n],this.register(i)):r.indexOf(n)===-1&&(r.push(n),i[t]=r,this.register(i)),this.people.union(t,n,e)}),C.prototype.remove_group=Ft(function(t,n,e){var r=this.get_property(t);if(r!==void 0){var i=r.indexOf(n);i>-1&&(r.splice(i,1),this.register({group_key:r})),r.length===0&&this.unregister(t)}return this.people.remove(t,n,e)}),C.prototype.track_with_groups=Ft(function(t,n,e,r){var i=p.extend({},n||{});return p.each(e,function(s,l){s!=null&&(i[l]=s)}),this.track(t,i,r)}),C.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)},C.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]},C.prototype.get_group=function(t,n){var e=this._create_map_key(t,n),r=this._cached_groups[e];return r!==void 0&&r._group_key===t&&r._group_id===n||((r=new we)._init(this,t,n),this._cached_groups[e]=r),r},C.prototype.track_pageview=Ft(function(t,n){typeof t!="object"&&(t={});var e=(n=n||{}).event_name||"$mp_web_page_view",r=p.extend(p.info.mpPageViewProperties(),p.info.campaignParams(),p.info.clickParams()),i=p.extend({},r,t);return this.track(e,i)}),C.prototype.track_links=function(){return this._track_dom.call(this,_r,arguments)},C.prototype.track_forms=function(){return this._track_dom.call(this,ci,arguments)},C.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 n;return n=p.isObject(t)?t:p.isUndefined(t)?{}:{days:t},p.extend({},Ym,n)};C.prototype.register=function(t,n){var e=this._run_hook("before_register",t,n);if(e!==null){t=e[0],n=e[1];var r=mo(n);r.persistent?this.persistence.register(t,r.days):p.extend(this.unpersisted_superprops,t)}},C.prototype.register_once=function(t,n,e){var r=this._run_hook("before_register_once",t,n,e);if(r!==null){t=r[0],n=r[1],e=r[2];var i=mo(e);i.persistent?this.persistence.register_once(t,n,i.days):(n===void 0&&(n="None"),p.each(t,function(s,l){this.unpersisted_superprops.hasOwnProperty(l)&&this.unpersisted_superprops[l]!==n||(this.unpersisted_superprops[l]=s)},this))}},C.prototype.unregister=function(t,n){var e=this._run_hook("before_unregister",t,n);e!==null&&(t=e[0],n=e[1],(n=mo(n)).persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},C.prototype._register_single=function(t,n){var e={};e[t]=n,this.register(e)},C.prototype.identify=function(t,n,e,r,i,s,l,o){var a=this._run_hook("before_identify",t);if(a===null)return-1;t=a[0];var c=this.get_distinct_id();if(t&&c!==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 u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}t!==c&&t!==this.get_property(li)&&(this.unregister(li),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(n,e,r,i,s,l,o),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0}),t!==c&&this.flags.fetchFlags()},C.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()},C.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},C.prototype.alias=function(t,n){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(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(li,t),this.track("$create_alias",{alias:t,distinct_id:n},{skip_hooks:!0},function(){e.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},C.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},C.prototype.set_config=function(t){p.isObject(t)&&(p.extend(this.config,t),t.batch_size&&p.each(this.request_batchers,function(n){n.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(n,e){if(p.isFunction(n))this.hooks[e]=[n];else if(p.isArray(n)){this.hooks[e]=[];for(var r=0;r<n.length;r++)p.isFunction(n[r])||se.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(n[r])}else se.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},C.prototype.get_config=function(t){return this.config[t]},C.prototype._run_hook=function(t){var n=$t.call(arguments,1);return p.each(this.hooks[t],function(e){if(n===null)return null;var r=e.apply(this,n);r===void 0?(this.report_error(t+" hook did not return a valid value"),n=null):(p.isArray(r)||(r=[r]),n.splice.apply(n,[0,r.length].concat(r)))},this),n},C.prototype.get_property=function(t){return this.persistence.load_prop([t])},C.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")},C.prototype.toString=function(){var t=this.get_config("name");return t!==it&&(t=it+"."+t),t},C.prototype._event_is_disabled=function(t){return p.isBlockedUA(_t)||this._flags.disable_all_events||p.include(this.__disabled_events,t)},C.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")}))},C.prototype._gdpr_update_persistence=function(t){var n;if(t&&t.clear_persistence)n=!0;else{if(!t||!t.enable_persistence)return;n=!1}this.get_config("disable_persistence")||this.persistence.disabled===n||this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},C.prototype._gdpr_call_func=function(t,n){return n=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")},n),p.localStorage.is_supported()||(n.persistence_type="cookie"),t(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},C.prototype.opt_in_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(Pm,t),this._gdpr_update_persistence(t)},C.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)},C.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(Dm,t)},C.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func($u,t)},C.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)},C.prototype.report_error=function(t,n){se.error.apply(se.error,arguments);try{n||t instanceof Error||(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(e){se.error(e)}},C.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)},C.prototype.remove_hook=function(t,n){var e;this.hooks[t]&&((e=this.hooks[t].indexOf(n))!==-1?this.hooks[t].splice(e,1):se.log("remove_hook failed. Matching hook was not found"))},C.prototype.init=C.prototype.init,C.prototype.reset=C.prototype.reset,C.prototype.disable=C.prototype.disable,C.prototype.time_event=C.prototype.time_event,C.prototype.track=C.prototype.track,C.prototype.track_links=C.prototype.track_links,C.prototype.track_forms=C.prototype.track_forms,C.prototype.track_pageview=C.prototype.track_pageview,C.prototype.register=C.prototype.register,C.prototype.register_once=C.prototype.register_once,C.prototype.unregister=C.prototype.unregister,C.prototype.identify=C.prototype.identify,C.prototype.alias=C.prototype.alias,C.prototype.name_tag=C.prototype.name_tag,C.prototype.set_config=C.prototype.set_config,C.prototype.get_config=C.prototype.get_config,C.prototype.get_api_host=C.prototype.get_api_host,C.prototype.get_property=C.prototype.get_property,C.prototype.get_distinct_id=C.prototype.get_distinct_id,C.prototype.toString=C.prototype.toString,C.prototype.opt_out_tracking=C.prototype.opt_out_tracking,C.prototype.opt_in_tracking=C.prototype.opt_in_tracking,C.prototype.has_opted_out_tracking=C.prototype.has_opted_out_tracking,C.prototype.has_opted_in_tracking=C.prototype.has_opted_in_tracking,C.prototype.clear_opt_in_out_tracking=C.prototype.clear_opt_in_out_tracking,C.prototype.get_group=C.prototype.get_group,C.prototype.set_group=C.prototype.set_group,C.prototype.add_group=C.prototype.add_group,C.prototype.remove_group=C.prototype.remove_group,C.prototype.add_hook=C.prototype.add_hook,C.prototype.remove_hook=C.prototype.remove_hook,C.prototype.track_with_groups=C.prototype.track_with_groups,C.prototype.start_batch_senders=C.prototype.start_batch_senders,C.prototype.stop_batch_senders=C.prototype.stop_batch_senders,C.prototype.start_session_recording=C.prototype.start_session_recording,C.prototype.stop_session_recording=C.prototype.stop_session_recording,C.prototype.pause_session_recording=C.prototype.pause_session_recording,C.prototype.resume_session_recording=C.prototype.resume_session_recording,C.prototype.get_session_recording_properties=C.prototype.get_session_recording_properties,C.prototype.get_session_replay_url=C.prototype.get_session_replay_url,C.prototype.get_tab_id=C.prototype.get_tab_id,C.prototype.DEFAULT_API_ROUTES=yd,C.prototype.__get_recorder=C.prototype.__get_recorder,re.prototype.properties=re.prototype.properties,re.prototype.update_search_keyword=re.prototype.update_search_keyword,re.prototype.update_referrer_info=re.prototype.update_referrer_info,re.prototype.get_cross_subdomain=re.prototype.get_cross_subdomain,re.prototype.clear=re.prototype.clear;var vr={},Xm=function(){We.init=function(t,n,e){if(e)return We[e]||(We[e]=vr[e]=ka(t,n,e),We[e]._loaded()),We[e];var r=We;vr[it]?r=vr[it]:t&&((r=ka(t,n,it))._loaded(),vr[it]=r),We=r,wi===1&&(x[it]=We),p.each(vr,function(i,s){s!==it&&(We[s]=i)}),We._=p}},t_=(_d=function(t,n){n()},wi=0,We=new C,Xm(),We.init(),function(){function t(){t.done||(t.done=!0,bd=!0,vd=!1,p.each(vr,function(e){e._dom_loaded()}))}if(K.addEventListener)K.readyState==="complete"?t():K.addEventListener("DOMContentLoaded",t,!1);else if(K.attachEvent){K.attachEvent("onreadystatechange",t);var n=!1;try{n=x.frameElement===null}catch{}K.documentElement.doScroll&&n&&function e(){try{K.documentElement.doScroll("left")}catch{return void setTimeout(e,1)}t()}()}p.register_event(x,"load",t,!0)}(),We);export{t_ as m,e_ as r};
|