@zeniai/web-cockpit-ui 2.0.33-qa → 2.0.34-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/dist/assets/Preview-ChO5fMgb.js +0 -1
- package/dist/assets/ScreenRoutes-8s3c20CX.js +0 -179
- package/dist/assets/SignInScreen-DBtpf6fC.js +0 -1
- package/dist/assets/analytics-B1Cy_xZA.js +0 -68
- package/dist/assets/analyticsHelper-B8iYOlEe.js +0 -1
- package/dist/assets/core-Cf4O5OrX.js +0 -12
- package/dist/assets/dash.all.min-oXaWZmY5.js +0 -21
- package/dist/assets/empty-BD7y-R5g.js +0 -1
- package/dist/assets/empty-DUnSINEz.js +0 -1
- package/dist/assets/epic-DOgIa3lU.js +0 -2
- package/dist/assets/favicon-D56XvgAH.ico +0 -0
- package/dist/assets/hls-DifHSkbp.js +0 -40
- package/dist/assets/index-BX5bsEWx.js +0 -1
- package/dist/assets/index-BiUKUUHW.js +0 -79276
- package/dist/assets/index-By7XzdcD.js +0 -3304
- package/dist/assets/index-C7X175S7.js +0 -1
- package/dist/assets/index-DHH6gp6t.js +0 -1
- package/dist/assets/index-DTWP8ETV.js +0 -2
- package/dist/assets/index-DeL-iMry.js +0 -1
- package/dist/assets/index-y98xvd7i.css +0 -1
- package/dist/assets/lexical-bjgwiB7u.js +0 -21
- package/dist/assets/liveblocks-Dk8esAkW.js +0 -54
- package/dist/assets/lottie-B_XQ3Mi7.js +0 -2
- package/dist/assets/mixin-BPAPQfSE.js +0 -43
- package/dist/assets/mui-BrjTjvYA.js +0 -9
- package/dist/assets/react-BGCfxk2h.js +0 -6
- package/dist/assets/react-BvhAivwk.js +0 -21
- package/dist/assets/react-CC8kit5w.js +0 -22
- package/dist/assets/react-CLJlvz8A.js +0 -19
- package/dist/assets/react-DCfFVgZZ.js +0 -34
- package/dist/assets/react-DXlDNDrx.js +0 -17
- package/dist/assets/react-Dx5YwMmP.js +0 -19
- package/dist/assets/react-QXFrvPCj.js +0 -7
- package/dist/assets/recharts-CBey8dU2.js +0 -65
- package/dist/assets/sentry-X5fa-B9t.js +0 -500
- package/dist/assets/url-B8FKrq__.js +0 -6
- package/dist/assets/url-DZVJKgs0.js +0 -1
- package/dist/assets/utils-Bm0fIaTq.js +0 -36
- package/dist/assets/zeni-epic-state-DUFwtXMu.js +0 -13
- package/dist/index.html +0 -1
- package/dist/robots.txt +0 -3
- package/dist/service-worker.js +0 -160
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import"./sentry-X5fa-B9t.js";import{H as ct}from"./zeni-epic-state-DUFwtXMu.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]="cb5a3662-a28b-4c97-b89f-935320007d8a",t._sentryDebugIdIdentifier="sentry-dbid-cb5a3662-a28b-4c97-b89f-935320007d8a")}catch{}})();var Ti={},_r={},Rt={},Fs;function pc(){if(Fs)return Rt;Fs=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.EVENTS_WITHOUT_SUPER_PROPERTIES=Rt.Event=void 0;var t;return 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||(Rt.Event=t={})),Rt.EVENTS_WITHOUT_SUPER_PROPERTIES=new Set([t.signInClick,t.signInViaGoogleMicrosoft,t.signInViaEmail,t.signInLinkSent]),Rt}var $s;function rd(){if($s)return _r;$s=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.Analytics=void 0;const t=pc();class n{constructor(e){this.provider=e,this.superProperties={},this.userProperties={},this.userAndSuperProperties={}}static splitUserAndSuperProperties(e){const r={$distinct_id:e.$distinct_id??"",user_id:e.user_id??"",role_at_company:e.role_at_company??"",$email:e.$email??"",user_email_domain:e.user_email_domain??"",$first_name:e.$first_name??"",$last_name:e.$last_name??"",company_ids:e.company_ids??[],company_names:e.company_names??[],user_roles:e.user_roles??[],app_type:e.app_type??"web",app_version:e.app_version??"",app_short_version:e.app_short_version??"",profile_type:e.profile_type??void 0,chargebee_customer_id:e.chargebee_customer_id??"",is_zeni:e.is_zeni??void 0},i={appearance:e.appearance??void 0,company_id:e.company_id??"",company_name:e.company_name??"",user_role:e.user_role??[],tenant_id:e.tenant_id??"",tenant_email_domain:e.tenant_email_domain??""};return{userProperties:r,superProperties:i}}identify(e,r){const i=r??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,i,{$distinct_id:e,profile_type:"user"});const s=n.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=s.userProperties,this.superProperties=s.superProperties,this.provider.identify(e,this.userProperties)}identifyUserAndCompany(e,r,i,s,o){const c=s??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,c,{$distinct_id:e==="company"?i:r,user_id:r,company_id:i,profile_type:e});const u=n.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=u.userProperties,this.superProperties=u.superProperties,this.provider.identifyUserAndCompany(e,r,i,this.userProperties,o)}resetUserIdentity(){console.warn("Resetting user identity"),this.superProperties={},this.userProperties={},this.userAndSuperProperties={},this.provider.reset()}track(e){this.fireTrack(e)}trackLogin(e,r,i){this.fireTrack(e,{login_type:r,customer_type:i})}trackSignInClick(e){const i={login_type:e.charAt(0).toUpperCase()+e.slice(1)};this.fireTrack(t.Event.signInClick,i)}trackSignInViaGoogleMicrosoft(){this.fireTrack(t.Event.signInViaGoogleMicrosoft)}trackSignInViaEmail(){this.fireTrack(t.Event.signInViaEmail)}trackSignInLinkSent(){this.fireTrack(t.Event.signInLinkSent)}trackError(e,r,i,s){this.fireTrack(e,{error_referrer:r,error_description:i,error_code:s})}trackSidePanelClicked(e,r){this.fireTrack(t.Event.sidePanelClicked,{sidepanel_click_type:e,sidepanel_click_group_type:r})}trackLogout(e){this.fireTrack(e)}trackSessionTimeoutPopupShown(e){const r={seconds_remaining:e};this.fireTrack(t.Event.sessionTimeoutPopupShown,r)}trackSessionTimeoutClicked(e,r){const i={click_type:e,seconds_remaining:r};this.fireTrack(t.Event.sessionTimeoutClicked,i)}trackSessionTimeoutAutoLogout(){this.fireTrack(t.Event.sessionTimeoutAutoLogout)}trackPageLoaded(e,r,i){this.fireTrack(e,{referrer_card:r,customer_type:i})}trackTransactionList(e,r,i,s,o,c){this.fireTrack(t.Event.transactionList,{account_id:e,account_name:r,referrer_card:i,referrer_account:s,referrer_account_group:o,load_more:c})}trackTransactionDetails(e,r,i,s,o,c,u,l,d,f,m){this.fireTrack(t.Event.transactionDetails,{account_id:e,account_name:r,transaction_id:i,transaction_name:s,category:o,class:c,transaction_type:u,transaction_amount:l,transaction_memo:d,line_item_count:f,receipt_file_names:m})}trackCompareMode(e,r,i){this.fireTrack(t.Event.compareMode,{is_turned_on:e,referrer_card:r,graph_filter:i})}trackCompareFilterChange(e,r,i,s){this.fireTrack(t.Event.compareFilterChange,{value:e,referrer_card:r,graph_filter:i,clicked_on:s})}trackCompareFilterTimeFrame(e,r,i,s){this.fireTrack(t.Event.compareFilterTimeframe,{referrer_card:e,graph_filter:r,clicked_on:i,value:s})}trackDateRangeFilterChange(e,r,i,s,o){this.fireTrack(t.Event.dateRangeFilter,{parent_card:e,clicked_on:r,compare_mode:i,value:s,bar_name:o})}trackTimeframeSwitch(e,r,i){this.fireTrack(t.Event.timeframeSwitch,{value:e,parent_card:r,referrer_card:i})}trackGraphBar(e,r,i,s){this.fireTrack(t.Event.graphBar,{referrer_card:e,graph_filter:r,compare_mode:i,bar_name:s})}trackInviteSent(e,r,i){this.fireTrack(t.Event.inviteSent,{role:e,count:r,emails:i})}trackRoleChanged(e,r,i){this.fireTrack(t.Event.roleChanged,{old_role:e,new_role:r,member_email:i})}trackRemoveUserAccess(e,r){this.fireTrack(t.Event.removeUserAccess,{role:e,member_email:r})}trackResendInvite(e,r){this.fireTrack(t.Event.resendInvite,{role:e,member_email:r})}trackCompanySwitch(e,r,i){this.fireTrack(t.Event.companySwitch,{new_company_id:e,new_company_name:r,new_user_role:i})}trackDownload(e,r,i,s){this.fireTrack(t.Event.download,{referrer_card:e,graph_filter:r,file_type:i,compare_mode:s})}trackSpendIncomeTrendForTransaction(e,r,i,s,o,c,u,l,d,f){this.fireTrack(e,{referrer_card:r,transaction_id:i,transaction_type:s,transaction_name:o,account_ids:c,account_names:u,class_ids:l,class_names:d,bar_name:f})}trackSpendIncomeTrend(e,r,i,s,o){this.fireTrack(e,{referrer_card:r,bar_name:o,entity_name:s,entity_type:i})}trackSearch(e,r,i,s,o){this.fireTrack(e,{referrer_card:r,entity_type:i,entity_name:s,search_term:o})}trackTransactionDetailReceipt(e,r,i,s,o,c,u){this.fireTrack(e,{attachment_id:r,transaction_id:i,transaction_name:s,transaction_type:o,account_ids:c,account_names:u})}trackTransactionDetailReceiptUpload(e,r,i,s,o,c,u,l){this.fireTrack(t.Event.transactionDetailReceiptAdded,{account_id:e,account_name:r,transaction_id:i,transaction_name:s,transaction_type:o,transaction_memo:c,file_name:u,file_type:l})}trackCardStatementCloseDate(e,r,i,s,o){this.fireTrack(e,{referrer_card:s,account_id:r,account_name:i,value:o})}trackReportGenerated(e,r,i,s,o,c,u,l){const d={report_id:e,file_type:r,time_taken_rest_api:i,time_taken_data_transform:s,time_taken_rendering:o,time_taken_total:c};Object.assign(d,u!=null?{time_taken_pdf_merge:u}:{}),Object.assign(d,l!=null?{time_taken_sub_report_total_max:l}:{}),this.fireTrack(t.Event.reportGenerated,d)}trackInsightsNavigation(e,r){this.fireTrack(e,{referrer_view:r})}trackForecast(){this.fireTrack(t.Event.forecast)}trackForecastSwitch(e,r){this.fireTrack(t.Event.forecastSwitch,{parent_card:e,forecast_name:r})}trackForecastVsActualMode(e,r,i){this.fireTrack(t.Event.forecastVsActualMode,{parent_card:e,forecast_name:r,is_turned_on:i})}trackSpendManagmentFilterClick(e){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayFilterClick);break}case"reimbursement":{this.fireTrack(t.Event.reimbursementFilterClick);break}}}trackSpendManagmentFilterChange(e,r){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayFilterChange,{filter_categories:r});break}case"reimbursement":{this.fireTrack(t.Event.reimbursementFilterChange,{filter_categories:r});break}}}trackSpendManagementDownloadClick(e){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayDownloadClick);break}case"reimbursement":{this.fireTrack(t.Event.reimbursementDownloadClick);break}}}trackBillPayPrivacyPolicy(){this.fireTrack(t.Event.billPayPrivacyPolicy)}trackBillPayAgreement(){this.fireTrack(t.Event.billPayAgreement)}trackReimbursementPrivacyPolicy(){this.fireTrack(t.Event.reimbursementPrivacyPolicy)}trackReimbursementAgreement(){this.fireTrack(t.Event.reimbursementAgreement)}trackReimbursementMileageRateSave(e){const r={mileage_unit_amount:e};this.fireTrack(t.Event.reimbursementMileageRateSave,r)}trackReimbursementMileageRateEdit(){this.fireTrack(t.Event.reimbursementMileageRateEdit)}trackReimbursementPromoScheduleDemo(){this.fireTrack(t.Event.reimbursementPromoSchedule)}trackReimbursementPromoVideo(){this.fireTrack(t.Event.reimbursementPromoVideo)}trackBillPayPromoScheduleDemo(){this.fireTrack(t.Event.billPayPromoSchedule)}trackBillPayPromoVideo(){this.fireTrack(t.Event.billPayPromoVideo)}trackBillPayTaskCard(e){const r={count:e};this.fireTrack(t.Event.billPayTaskCard,r)}trackBillPayCard(e,r){const i={transaction_amount:r,bill_pay_tab_subtab:e};this.fireTrack(t.Event.billPayCard,i)}trackReimbursementCard(e,r){const i={transaction_amount:r,reimbursement_tab_subtab:e};this.fireTrack(t.Event.reimbursementCard,i)}trackReimbursementTaskCard(e){const r={count:e};this.fireTrack(t.Event.reimbursementTaskCard,r)}trackOnboardingConnectQBO(){this.fireTrack(t.Event.onboardingQBOConnect)}trackOnboardingSaveQBOConnection(e,r){const i={qbo_realm_id:e,qbo_connection_id:r};this.fireTrack(t.Event.onboardingSaveQBOConnection,i)}trackOnboardingClickUpdatePaymentDetails(e,r){const i={payment_method:e,customer_type:r};this.fireTrack(t.Event.onboardingClickUpdatePaymentDetails,i)}trackOnboardingCurrentStep(e,r){const i={onboarding_current_step:e,onboarding_previous_step:r};this.fireTrack(t.Event.onboardingActiveStep,i)}trackOnboardingBankAccountPendingVerification(e,r){const i={verification_type:e,plaid_session_id:r};this.fireTrack(t.Event.onboardingBankAccountPendingVerification,i)}trackOnboardingBankAccountVerified(e){const r={verification_type:e};this.fireTrack(t.Event.onboardingBankAccountVerified,r)}trackOnboardingBillingAddress(e){const r={billing_address_field:e};this.fireTrack(t.Event.onboardingBillingAddress,r)}trackOnboardingBillingAddressSave(e){const r={address:{street:e.street,suite:e.suite,city:e.city,state:e.state,country:e.country,postal_code:e.postalCode,secondary_info:e.secondaryInfo}};this.fireTrack(t.Event.onboardingBillingAddressSave,r)}trackOnboardingBack(e,r){const i={onboarding_current_step:e,onboarding_previous_step:r};this.fireTrack(t.Event.onboardingBack,i)}trackOnboardingNext(e,r){const i={onboarding_current_step:r,onboarding_previous_step:e};this.fireTrack(t.Event.onboardingNext,i)}trackSaveAddressClicked(e,r){const i={address:{street:r?.street??"",suite:r?.suite??"",city:r?.city??"",state:r?.state??"",country:r?.country??"",postal_code:r?.postalCode??"",secondary_info:r?.secondaryInfo??""}};this.fireTrack(e,i)}trackOnboardingCompanyOfficerSave(e,r,i){const s={company_officer_email:e.email,company_officer_birthday:e.birthday,company_officer_ownership:e.companyOwnership,company_officer_first_name:e.firstName,company_officer_last_name:e.lastName,company_officer_role:e.companyRole,company_officer_document_type_for_verification:e.documentTypeForVerification,company_officer_phone:e.phone,company_officer_address:e.formattedAddress,company_legal_name:r.legalName,completed_fields:i?.completedFields??[],completed_fields_status:i?.status??"not_started"};this.fireTrack(t.Event.onboardingCompanyOfficerSave,s)}trackOnboardingCompanyDetailsSave(e,r,i){const s={company_description:e.companyDescription,company_legal_name:e.legalName,company_industry:e.industry,company_phone:e.phone,company_website:e.website,company_address:e.formattedAddress,inc_date:e.incDate,primary_contact_first_name:i.firstName,primary_contact_last_name:i.lastName,primary_contact_email:i.email,completed_fields:r.completedFields,completed_fields_status:r.status};this.fireTrack(t.Event.onboardingCompanyDetailsSave,s)}trackOnboardingDashboardActivation(e){const r={time_since_quote_sign:e.timeSinceQuoteSign,time_since_quote_sign_in_minutes:e.timeSinceQuoteSignInMinutes,is_kyc_done:e.isKycDone,is_kyb_done:e.isKybDone,payment_type:e.paymentType,payment_source:e.paymentSource,qbo_connection_source:e.qboConnectionSource};this.fireTrack(t.Event.onboardingDashboardActivation,r)}trackOnboardingNewCustomerStarted(){this.fireTrack(t.Event.onboardingNewCustomerStarted)}trackOnboardingNewCustomerGroupCreationCheck(e,r){const i={company_email_domain:e.companyEmailDomain,primary_contact_email:e.primaryContactEmail,group_name:r.groupName,group_email:r.groupEmail,group_description:r.groupDescription,is_company_email_domain_available:r.isCompanyEmailDomainAvailable};this.fireTrack(t.Event.onboardingNewCustomerGroupCreationCheck,i)}trackOnboardingQBOConnectionSelected(e){const r={first_name:e.firstName,last_name:e.lastName,customer_email:e.customerEmail};switch(e.isZeniOrCustomer){case"customer":this.fireTrack(t.Event.onboardingCustomerManagedQBOConnectionSelected,r);break;default:this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionSelected,r);break}}trackOnboardingZeniManagedQBOConnection(e){const r={first_name:e.firstName,last_name:e.lastName,customer_email:e.customerEmail,qbo_connection_response_message:e.qboConnectionResponseMessage};e.isSuccess?this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionSuccess,r):this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionUnsuccess,r)}trackOnboardingSaveOrSendInvite(e,r,i,s){const o={company_domain:e.companyDomain,primary_contact_email:e.primaryContactEmail,group_name:r.groupName,group_email:r.groupEmail,group_description:r.groupDescription,first_name:i.firstName,last_name:i.lastName,customer_email:i.customerEmail,company_name:i.companyName,entitty_type:i.entittyType,qbo_realm_id:i.qboRealmId,hubspot_id:i.hubSpotId,chargebee_id:i.chargebeeId,products:i.products,is_zeni_managed_qbo_connection_selected:s.isZeniManagedQboConnectionSelected,is_customer_managed_qbo_connection_selected:s.isCustomerManagedQboConnectionSelected,qbo_connection_status:s.qboConnectionStatus};s.isSendInvite?s.isInviteAlreadySent?this.fireTrack(t.Event.onboardingResendInvite,o):this.fireTrack(t.Event.onboardingSendInvite,o):this.fireTrack(t.Event.onboardingSave,o)}trackOnboardingInterimCard(e){const r={card_click:e};this.fireTrack(t.Event.onboardingInterimCardClick,r)}trackOnboardingLandingPageCardClick(e){const r={card_click:e};this.fireTrack(t.Event.onboardingLandingPageCardClick,r)}trackBusinessVerificationSave(e,r,i,s,o){const c={company_officer_email:e.email,company_officer_birthday:e.birthday,company_officer_ownership:e.companyOwnership,company_officer_first_name:e.firstName,company_officer_last_name:e.lastName,company_officer_role:e.companyRole,company_officer_document_type_for_verification:e.documentTypeForVerification,company_officer_phone:e.phone,company_officer_address:e.formattedAddress,company_description:r.companyDescription,company_legal_name:r.legalName,company_industry:r.industry,company_phone:r.phone,company_website:r.website,company_address:r.formattedAddress,inc_date:r.incDate,primary_contact_first_name:i.firstName,primary_contact_last_name:i.lastName,primary_contact_email:i.email,referrer_card:o};switch(s){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsBusinessVerificationSave,c);break;case"reimbursement":this.fireTrack(t.Event.reimbursementBusinessVerificationSave,c);break;case"onboarding":this.fireTrack(t.Event.onboardingSkipAndSave,c);break;case"charge_cards":this.fireTrack(t.Event.cardsBusinessVerification,c);break;case"bill_pay":default:this.fireTrack(t.Event.billPayBusinessVerificationSave,c);break}}trackBusinessVerificationSend(e,r,i,s,o){const c={company_officer_email:e.email,company_officer_birthday:e.birthday,company_officer_ownership:e.companyOwnership,company_officer_first_name:e.firstName,company_officer_last_name:e.lastName,company_officer_role:e.companyRole,company_officer_document_type_for_verification:e.documentTypeForVerification,company_officer_phone:e.phone,company_officer_address:e.formattedAddress,company_description:r.companyDescription,company_legal_name:r.legalName,company_industry:r.industry,company_phone:r.phone,company_website:r.website,company_address:r.formattedAddress,inc_date:r.incDate,primary_contact_first_name:i.firstName,primary_contact_last_name:i.lastName,primary_contact_email:i.email,referrer_card:o};switch(s){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsBusinessVerificationSend,c);break;case"reimbursement":this.fireTrack(t.Event.reimbursementBusinessVerificationSend,c);break;case"charge_cards":this.fireTrack(t.Event.cardsBusinessVerificationSend,c);break;case"bill_pay":default:this.fireTrack(t.Event.billPayBusinessVerificationSend,c);break}}onboardingConnectBankEventsByEventSource(e,r){if(r!=null&&e!=null)switch(r){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccount,{referrer_card:e});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccount,{referrer_card:e});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccount,{referrer_card:e});break}}onboardingConnectBankEventsByEventSourceSuccess(e,r,i,s,o,c){if(c!=null&&o!=null)switch(c){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccountSuccess,{referrer_card:o,plaid_session_id:e,plaid_account_id:r,is_micro_deposit_verification_done:i??!1,plaid_institution_name:s});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccountSuccess,{referrer_card:o,plaid_session_id:e,plaid_account_id:r,is_micro_deposit_verification_done:i??!1,plaid_institution_name:s});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccountSuccess,{referrer_card:o,plaid_session_id:e,plaid_account_id:r,is_micro_deposit_verification_done:i??!1,plaid_institution_name:s});break}}onboardingConnectBankEventsByEventSourceFailure(e,r,i,s,o,c,u){if(u!=null&&c!=null)switch(u){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccountFailure,{referrer_card:c,error_description:e,error_code:o,plaid_session_id:r,plaid_request_id:i,plaid_institution_name:s});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccountFailure,{referrer_card:c,error_description:e,error_code:o,plaid_session_id:r,plaid_request_id:i,plaid_institution_name:s});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccountFailure,{referrer_card:c,error_description:e,error_code:o,plaid_session_id:r,plaid_request_id:i,plaid_institution_name:s});break}}onboardingCreditCardEventsConnectByEventSource(e,r){if(r!=null&&e!=null)switch(r){case"switch_to_credit_card":this.fireTrack(t.Event.onboardingSwitchToCreditCard,{referrer_card:e});break;case"link_new_credit_card":this.fireTrack(t.Event.onboardingLinkNewCard,{referrer_card:e});break;case"link_credit_card":this.fireTrack(t.Event.onboardingLinkCreditCard,{referrer_card:e});break}}onboardingCreditCardConnectEventsByEventSourceSuccess(e,r){if(r!=null&&e!=null)switch(r){case"switch_to_credit_card":this.fireTrack(t.Event.onboardingSwitchToCreditCardSuccess,{referrer_card:e});break;case"link_new_credit_card":this.fireTrack(t.Event.onboardingLinkNewCardSuccess,{referrer_card:e});break;case"link_credit_card":this.fireTrack(t.Event.onboardingLinkCreditCardSuccess,{referrer_card:e});break}}onboardingCreditCardConnectEventsByEventSourceFailure(e,r,i,s){if(s!=null&&i!=null)switch(s){case"switch_to_credit_card":this.fireTrack(t.Event.onboardingSwitchToCreditCardFailure,{referrer_card:i,error_description:e,error_code:r});break;case"link_new_credit_card":this.fireTrack(t.Event.onboardingLinkANewBankAccountFailure,{referrer_card:i,error_description:e,error_code:r});break;case"link_credit_card":this.fireTrack(t.Event.onboardingLinkCreditCardFailure,{referrer_card:i,error_description:e,error_code:r});break}}billingConnectBankEventsByEventSource(e,r){if(r!=null&&e!=null)switch(r){case"link_new_bank_account":this.fireTrack(t.Event.billingLinkNewBankAccount,{referrer_card:e});break;case"switch_to_bank_account":this.fireTrack(t.Event.billingSwitchToBankAccount,{referrer_card:e});break}}billingConnectBankEventsByEventSourceSuccess(e,r){if(r!=null&&e!=null)switch(r){case"link_new_bank_account":this.fireTrack(t.Event.billingLinkNewBankAccountSuccess,{referrer_card:e});break;case"switch_to_bank_account":this.fireTrack(t.Event.billingSwitchToBankAccountSuccess,{referrer_card:e});break}}billingConnectBankEventsByEventSourceFailure(e,r,i,s){if(s!=null&&i!=null)switch(s){case"link_new_bank_account":this.fireTrack(t.Event.billingLinkNewBankAccountFailure,{referrer_card:i,error_description:e,error_code:r});break;case"switch_to_bank_account":this.fireTrack(t.Event.billingSwitchToBankAccountFailure,{referrer_card:i,error_description:e,error_code:r});break}}billingConnectCreditCardEventsByEventSource(e,r){if(r!=null&&e!=null)switch(r){case"switch_to_credit_card":this.fireTrack(t.Event.billingSwitchToCreditCard,{referrer_card:e});break;case"link_new_credit_card":this.fireTrack(t.Event.billingLinkNewCard,{referrer_card:e});break}}billingConnectCreditCardEventsByEventSourceSuccess(e,r){if(r!=null&&e!=null)switch(r){case"switch_to_credit_card":this.fireTrack(t.Event.billingSwitchToCreditCardSuccess,{referrer_card:e});break;case"link_new_credit_card":this.fireTrack(t.Event.billingLinkNewCardSuccess,{referrer_card:e});break}}billingConnectCreditCardEventsByEventSourceFailure(e,r,i,s){if(s!=null&&i!=null)switch(s){case"switch_to_credit_card":this.fireTrack(t.Event.billingSwitchToCreditCardFailure,{referrer_card:i,error_description:e,error_code:r});break;case"link_new_credit_card":this.fireTrack(t.Event.billingLinkNewCardFailure,{referrer_card:i,error_description:e,error_code:r});break}}trackConnectBank(e,r,i){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBank,{referrer_card:r});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBank,{referrer_card:r});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBank,{referrer_card:r});break;case"onboarding":this.onboardingConnectBankEventsByEventSource(r,i);break;case"billing":this.billingConnectBankEventsByEventSource(r,i);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBank,{referrer_card:r});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBank,{referrer_card:r});break}}trackConnectBankSuccess(e,r,i,s,o,c,u){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankSuccess,{referrer_card:r});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankSuccess,{referrer_card:r});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankSuccess,{referrer_card:r});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceSuccess(s??null,o??null,c??null,u??null,r,i);break;case"billing":this.billingConnectBankEventsByEventSourceSuccess(r,i);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankSuccess,{referrer_card:r});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankSuccess,{referrer_card:r});break}}trackConnectBankFailure(e,r,i,s,o,c,u,l){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankFailure,{error_code:o,error_description:r,referrer_card:i});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankFailure,{error_code:o,error_description:r,referrer_card:i});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankFailure,{error_code:o,error_description:r,referrer_card:i});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceFailure(r,c??null,u??null,l??null,o,i,s);break;case"billing":this.billingConnectBankEventsByEventSourceFailure(r,o,i,s);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankFailure,{error_code:o,error_description:r,referrer_card:i});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankFailure,{error_code:o,error_description:r,referrer_card:i});break}}trackCreditCardConnect(e,r,i){if(i!=null&&r!=null)switch(e){case"onboarding":this.onboardingCreditCardEventsConnectByEventSource(i,r);break;case"billing":this.billingConnectCreditCardEventsByEventSource(i,r);break}}trackCreditCardConnectSuccess(e,r,i){if(r!=null&&i!=null)switch(e){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceSuccess(r,i);break;case"billing":this.billingConnectCreditCardEventsByEventSourceSuccess(r,i);break}}trackCreditCardConnectFailure(e,r,i,s,o){if(i!=null&&s!=null)switch(e){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceFailure(r,o,i,s);break;case"billing":this.billingConnectCreditCardEventsByEventSourceFailure(r,o,i,s);break}}trackConnectBankLink(e,r,i,s){switch(i){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankLink,{account_name:r,account_id:e,referrer_card:s});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankLink,{account_name:r,account_id:e,referrer_card:s});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankLink,{account_name:r,account_id:e,referrer_card:s});break;case"onboarding":this.fireTrack(t.Event.onboardingConnectBankLink,{account_name:r,account_id:e,referrer_card:s});break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankLink,{account_name:r,account_id:e,referrer_card:s});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionsConnectBankLink,{account_name:r,account_id:e,referrer_card:s});break}}trackConnectBankGetBalance(e,r){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankGetBalance,{referrer_card:r});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankGetBalance,{referrer_card:r});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankGetBalance,{referrer_card:r});break;case"onboarding":this.fireTrack(t.Event.onboardingConnectBankGetBalance,{referrer_card:r});break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankGetBalance,{referrer_card:r});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankGetBalance,{referrer_card:r});break}}trackNeedHelp(e){switch(e){case"onboarding":this.fireTrack(t.Event.onboardingNeedHelp,{});break;case"onboarding_interim":this.fireTrack(t.Event.onboardingInterimNeedHelp,{});break;case"onboarding_landing":this.fireTrack(t.Event.onboardingLandingNeedHelp,{});break;case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsNeedHelp,{});break;case"charge_cards":this.fireTrack(t.Event.cardsNeedHelp,{});break;case"reimbursement":this.fireTrack(t.Event.reimbursementNeedHelp,{});break;case"bill_pay":default:this.fireTrack(t.Event.billPayNeedHelp,{});break}}trackAccountsListPageViewed(e,r,i,s,o){this.fireTrack(t.Event.accountsListPageViewed,{zeni_accounts_count:e,external_accounts_count:r,zeni_accounts_available_balance:i,total_yield_earned:s,current_average_yield:o})}trackAccountsListPageClicked(e,r,i){this.fireTrack(t.Event.accountsListPageClicked,{click_type:e,account_name:r,account_status:i})}trackAccountsPromoPageClicked(e){this.fireTrack(t.Event.accountsPromoPageClicked,{click_type:e})}trackTransferBetweenAccountsFormClicked(e,r,i,s,o,c,u,l){this.fireTrack(t.Event.zeniAccountsTransferFormClicked,{click_type:e,current_screen:r,transfer_from_bank_name:i,transfer_to_bank_name:s,amount:o,is_split_transfer:c,split_days_count:u,APY_slider_moved:l})}trackAccountsDepositCheckFormClicked(e,r,i,s,o,c){this.fireTrack(t.Event.accountsDepositCheckFormClicked,{click_type:e,amount:r,source_of_deposit:i,deposited_to:s,front_photo:o,back_photo:c})}trackAccountsDepositCheckFormViewed(){this.fireTrack(t.Event.accountsDepositCheckFormViewed)}trackZeniTransferBetweenAccountsFormViewed(){this.fireTrack(t.Event.zeniAccountsTransferFormViewed)}trackEnableZeniAccounts(){this.fireTrack(t.Event.enableZeniAccounts)}trackZeniAccountsPromoCardClick(e,r){this.fireTrack(t.Event.zeniAccountsPromoCardClick,{card_position:e,click_type:r})}trackZeniAccountsCashBalancePromoClicked(e){this.fireTrack(t.Event.zeniAccountsCashBalancePromoClicked,{click_type:e})}trackPlgPromoClicked(e,r){this.fireTrack(t.Event.plgPromoActionTaken,{page_name:e,clicked_on:r})}getBaseCardProperties(e,r,i,s){return{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,credit_account_id:i?.creditAccountId,credit_account_limit:i?.creditAccountLimit,credit_account_available_amount:i?.creditAccountAvailableAmount,credit_account_spent_amount:i?.creditAccountSpentAmount,credit_account_status:i?.creditAccountStatus,credit_account_outstanding_balance:i?.outstandingBalance,deposit_account_id:s?.debitAccountId,deposit_account_name:s?.debitAccountName,deposit_account_balance:s?.debitAccountBalance,debit_cards_spend:s?.debitCardsSpend,deposit_account_status:s?.debitAccountStatus}}getBaseCardPropertiesWithCashback(e,r,i,s,o){return{...this.getBaseCardProperties(e,r,s,o),credit_card_cashback_offer:i?.creditCardCashbackOffer,debit_card_cashback_offer:i?.debitCardCashbackOffer,total_earned_cashback:i?.totalEarnedCashback,redeemed_cashback:i?.redeemedCashback,available_cashback:i?.availableCashback,credit_card_cashback_redemption_mode:i?.creditCardCashbackRedemptionMode,debit_card_cashback_redemption_mode:i?.debitCardCashbackRedemptionMode}}getPaymentSourceProperties(e){return{is_zeni_checking_enabled:e.isZeniCheckingEnabled,is_zeni_checking_payment_source:e.isZeniCheckingPaymentSource,credit_card_payment_source_account_name:e.creditCardPaymentSourceAccountName,credit_card_payment_source_account_type:e.creditCardPaymentSourceAccountType,credit_card_payment_source_last_four_digits:e.creditCardPaymentSourceLastFourDigits,credit_card_payment_source_balance:e.creditCardPaymentSourceBalance}}getCardPaymentProperties(e){return{payment_amount:e.paymentAmount,payment_account_name:e.paymentAccountName,payment_account_type:e.paymentAccountType,payment_account_last_four_digits:e.paymentAccountLastFourDigits,payment_complete_eta:e.paymentCompleteEta,payment_initiated_date:e.paymentInitiatedDate}}trackCardsPromoPageClicked(e){this.fireTrack(t.Event.cardsPromoPageClick,{cards_click_type:e})}trackCardsListPageClicked(e){this.fireTrack(t.Event.cardsListPageClick,{cards_click_type:e})}trackCardsNewCardFormClicked(e,r,i,s,o){this.fireTrack(t.Event.cardsIssueNewCardFormClick,{cards_click_type:o,card_owner:e,card_name:r,amount:s,frequency:i})}trackCardsListRowClicked(e,r,i,s,o,c,u){this.fireTrack(t.Event.cardsListRowClick,{card_owner:e,card_name:r,department:i,utilisation:s,limit:o,frequency:c,is_self_card:u})}trackCardsDetailPageViewed(e,r,i,s,o,c,u,l){this.fireTrack(t.Event.cardsDetailPage,{card_id:e,is_self_card:l,card_owner:r,card_name:i,utilisation:s,limit:o,frequency:c,card_color:u})}trackCardsVerifyPopUpClick(e,r,i,s,o,c,u,l,d){this.fireTrack(t.Event.cardsVerifyPopUpClick,{cards_click_type:u,is_self_card:l,card_owner:r,card_name:i,utilisation:s,limit:o,frequency:c,card_id:e,selected_color:d})}trackCardsDetailPageClicked(e,r,i,s,o,c,u,l,d){this.fireTrack(t.Event.cardsDetailPageClick,{cards_click_type:u,is_self_card:l,card_owner:r,card_name:i,utilisation:s,limit:o,frequency:c,card_id:e,selected_color:d})}trackZeniCardsPromoCardClicked(e,r,i,s,o){this.fireTrack(t.Event.zeniCardsPromoCardClicked,{card_position:i,click_type:r,is_cards_setup:e,user_name:s,credit_limit:o??"NA"})}trackCardsSetupCardsClick(e,r,i){this.fireTrack(t.Event.cardsSetupCardsClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,page_name:i})}trackCardsPromoView(e,r,i,s,o){this.fireTrack(t.Event.cardsPromoView,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,promo_format:i,promo_product:s,page_name:o})}trackCardsEnableCardsClick(e,r,i){this.fireTrack(t.Event.cardsEnableCardsClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,page_name:i})}trackCardsScheduleDemoClick(e,r,i){this.fireTrack(t.Event.cardsScheduleDemoClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,page_name:i})}trackCardsCardListView(e,r,i,s,o){this.fireTrack(t.Event.cardsCardListView,{...this.getBaseCardPropertiesWithCashback(e,r,i,s,o)})}trackCardsCardListSearchClick(e,r,i,s,o){this.fireTrack(t.Event.cardsCardListSearchClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,s,o)})}trackCardsCardListMoreMenuClick(e,r,i,s,o){this.fireTrack(t.Event.cardsCardListMoreMenuClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,s,o)})}trackCardsSettingsClick(e,r,i,s,o){this.fireTrack(t.Event.cardsSettingsClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,s,o)})}trackCardsCardSetupView(e,r,i){this.fireTrack(t.Event.cardsCardSetupView,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,source:i})}trackCardsVerifyIdentityCompanyDetailsClick(e,r,i){this.fireTrack(t.Event.cardsVerifyIdentityCompanyDetailsClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,status:i})}trackCardsPaymentAccountChangeClick(e,r,i){this.fireTrack(t.Event.cardsPaymentAccountChangeClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,old_payment_account_name:i.oldPaymentAccountName,old_payment_account_balance:i.oldPaymentAccountBalance,new_payment_account_name:i.newPaymentAccountName,new_payment_account_balance:i.newPaymentAccountBalance,is_old_payment_account_recommended:i.isOldPaymentAccountRecommended,is_new_payment_account_recommended:i.isNewPaymentAccountRecommended,old_payment_account_position:i.oldPaymentAccountPosition,new_payment_account_position:i.newPaymentAccountPosition,number_of_payment_accounts:i.numberOfPaymentAccounts})}trackCardsZeniCashAccountChangeClick(e,r,i){this.fireTrack(t.Event.cardsZeniCashAccountChangeClick,{controller_emails:e,is_credit_card_offered:r.isCreditCardOffered,is_debit_card_offered:r.isDebitCardOffered,is_debit_card_enabled:r.isDebitCardEnabled,is_credit_card_enabled:r.isCreditCardEnabled,old_zeni_cash_account:i.oldZeniCashAccount,new_zeni_cash_account:i.newZeniCashAccount,old_zeni_cash_account_position:i.oldZeniCashAccountPosition,new_zeni_cash_account_position:i.newZeniCashAccountPosition,number_of_cash_accounts:i.numberOfCashAccounts})}trackCardsStatementsClick(e,r,i,s,o){this.fireTrack(t.Event.cardsStatementsClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,s,o)})}trackCardsCreditCardStatementsView(e,r,i,s,o){this.fireTrack(t.Event.cardsCreditCardStatementsView,{...this.getBaseCardProperties(e,r,s,o),number_of_statements:i.numberOfStatements,oldest_statement_month_year:i.oldestStatementMonthYear,latest_statement_month_year:i.latestStatementMonthYear})}trackCardsDownloadClick(e,r,i,s,o,c,u,l){this.fireTrack(t.Event.cardsDownloadClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,u,l),page_name:o,position:c,file_category:s.fileCategory,file_type:s.fileType,file_name:s.fileName,file_month_year:s.fileMonthYear})}trackCardsNewCardClick(e,r,i,s,o,c,u,l){this.fireTrack(t.Event.cardsNewCardClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,u,l),click_item:s,action:o,page_name:c})}trackCardsCashbackOverviewClick(e,r,i,s,o,c,u){this.fireTrack(t.Event.cardsCashbackOverviewClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,c,u),click_item:s,action:o})}trackCardsCardListRowClick(e,r,i,s,o,c,u,l,d){this.fireTrack(t.Event.cardsCardListRowClick,{...this.getBaseCardPropertiesWithCashback(e,r,u,l,d),click_item:i,action:s,position:o,card_name:c.cardName,card_owner:c.cardOwner,card_type:c.cardType,card_status:c.cardStatus,card_utilization_amount:c.cardUtilizationAmount,card_utilization_percent:c.cardUtilizationPercent,card_limit:c.cardLimit})}trackCardsCopyIconClick(e,r,i,s,o,c,u,l,d,f){this.fireTrack(t.Event.cardsCopyIconClick,{...this.getBaseCardPropertiesWithCashback(e,r,l,d,f),click_item:s,action:o,action_field:c,action_details:u,page_name:i})}trackCardsCardListSortClick(e,r,i,s,o,c,u,l,d,f){this.fireTrack(t.Event.cardsCardListSortClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,d,f),click_item:s,action:o,action_field:c,action_details:u,page_name:l})}trackCardsCardDetailView(e,r,i,s,o,c,u){this.fireTrack(t.Event.cardsCardDetailView,{...this.getBaseCardProperties(e,r,c,u),card_name:i.cardName,card_type:i.cardType,card_category:i.cardCategory,card_limit:i.cardLimit,card_last_four_digits:i.cardLastFourDigits,card_status:i.cardStatus,card_utilization_percent:i.cardUtilizationPercent,card_id:i.cardId,card_assigned_date:i.cardAssignedDate,card_issued_date:i.cardIssuedDate,card_activated_date:i.cardActivatedDate,card_limit_frequency:i.cardLimitFrequency,card_spent_amount:i.cardSpentAmount,card_available_limit:i.cardAvailableLimit,card_utilization_amount:i.cardUtilizationAmount,total_number_of_declined_transactions:i.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:i.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:i.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:i.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:i.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:i.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:i.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:i.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:i.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:i.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:s.cardIssuedByName,card_issued_by_email:s.cardIssuedByEmail,card_issued_by_user_id:s.cardIssuedByUserId,card_issued_by_role:s.cardIssuedByRole,card_issued_by_department:s.cardIssuedByDepartment,cardholder_name:o.cardholderName,cardholder_email:o.cardholderEmail,cardholder_role:o.cardholderRole,cardholder_user_id:o.cardholderUserId,cardholder_department:o.cardholderDepartment})}trackCardsUpdateSpendLimitInitiated(e,r,i,s,o,c,u,l,d,f){this.fireTrack(t.Event.cardsUpdateSpendLimitInitiated,{...this.getBaseCardProperties(e,r,d,f),card_name:i.cardName,card_type:i.cardType,card_category:i.cardCategory,card_limit:i.cardLimit,card_last_four_digits:i.cardLastFourDigits,card_status:i.cardStatus,card_utilization_amount:i.cardUtilizationAmount,card_utilization_percent:i.cardUtilizationPercent,card_id:i.cardId,card_assigned_date:i.cardAssignedDate,card_issued_date:i.cardIssuedDate,card_activated_date:i.cardActivatedDate,card_limit_frequency:i.cardLimitFrequency,card_spent_amount:i.cardSpentAmount,card_available_limit:i.cardAvailableLimit,total_number_of_declined_transactions:i.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:i.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:i.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:i.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:i.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:i.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:i.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:i.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:i.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:i.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:s.cardIssuedByName,card_issued_by_email:s.cardIssuedByEmail,card_issued_by_user_id:s.cardIssuedByUserId,card_issued_by_role:s.cardIssuedByRole,card_issued_by_department:s.cardIssuedByDepartment,cardholder_name:o.cardholderName,cardholder_email:o.cardholderEmail,cardholder_role:o.cardholderRole,cardholder_user_id:o.cardholderUserId,cardholder_department:o.cardholderDepartment,page_name:c,source:u,recommended_limits:l})}trackCardsUpdateSpendLimitClick(e,r,i,s,o,c,u,l,d,f,m,_,g){this.fireTrack(t.Event.cardsUpdateSpendLimitClick,{...this.getBaseCardProperties(e,r,_,g),card_name:i.cardName,card_type:i.cardType,card_category:i.cardCategory,card_limit:i.cardLimit,card_last_four_digits:i.cardLastFourDigits,card_status:i.cardStatus,card_utilization_amount:i.cardUtilizationAmount,card_utilization_percent:i.cardUtilizationPercent,card_id:i.cardId,card_assigned_date:i.cardAssignedDate,card_issued_date:i.cardIssuedDate,card_activated_date:i.cardActivatedDate,card_limit_frequency:i.cardLimitFrequency,card_spent_amount:i.cardSpentAmount,card_available_limit:i.cardAvailableLimit,total_number_of_declined_transactions:i.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:i.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:i.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:i.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:i.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:i.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:i.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:i.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:i.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:i.numberOfTransactionsWithReceiptsCurrentMonth,card_issued_by_name:s.cardIssuedByName,card_issued_by_email:s.cardIssuedByEmail,card_issued_by_user_id:s.cardIssuedByUserId,card_issued_by_role:s.cardIssuedByRole,card_issued_by_department:s.cardIssuedByDepartment,cardholder_name:o.cardholderName,cardholder_email:o.cardholderEmail,cardholder_role:o.cardholderRole,cardholder_user_id:o.cardholderUserId,cardholder_department:o.cardholderDepartment,click_item:u,current_limit:l,new_limit:m,recommended_limits:d,was_recommended_limit_selected:f,card_limit_updated_by_name:c.cardLimitUpdatedByName,card_limit_updated_by_email:c.cardLimitUpdatedByEmail,card_limit_updated_by_role:c.cardLimitUpdatedByRole,card_limit_updated_by_user_id:c.cardLimitUpdatedByUserId})}trackCardsAddToWalletClick(e,r,i,s,o,c,u,l,d){this.fireTrack(t.Event.cardsAddToWalletClick,{...this.getBaseCardProperties(e,r,l,d),card_id:i.cardId,card_name:i.cardName,card_type:i.cardType,card_category:i.cardCategory,card_limit:i.cardLimit,card_last_four_digits:i.cardLastFourDigits,card_status:i.cardStatus,card_assigned_date:i.cardAssignedDate,card_issued_date:i.cardIssuedDate,card_limit_frequency:i.cardLimitFrequency,card_issued_by_name:s.cardIssuedByName,card_issued_by_email:s.cardIssuedByEmail,card_issued_by_user_id:s.cardIssuedByUserId,card_issued_by_role:s.cardIssuedByRole,card_issued_by_department:s.cardIssuedByDepartment,cardholder_name:o.cardholderName,cardholder_email:o.cardholderEmail,cardholder_role:o.cardholderRole,cardholder_user_id:o.cardholderUserId,cardholder_department:o.cardholderDepartment,page_name:c,click_item:u})}trackCardsPayEarlyClick(e,r,i,s,o,c,u,l,d){this.fireTrack(t.Event.cardsPayEarlyClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,l,d),...this.getPaymentSourceProperties(u),click_item:c,page_name:s,source:o})}trackCardsPayEarlyFormView(e,r,i,s,o,c,u,l,d){this.fireTrack(t.Event.cardsPayEarlyFormView,{...this.getBaseCardPropertiesWithCashback(e,r,i,l,d),...this.getPaymentSourceProperties(u),is_autopay_selected:o,payment_amount:c,page_name:s})}trackCardsPayEarlyFormClick(e,r,i,s,o,c,u,l,d){this.fireTrack(t.Event.cardsPayEarlyFormClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,l,d),...this.getPaymentSourceProperties(u),is_autopay_selected:o,...this.getCardPaymentProperties(c),click_item:s})}trackCardsPayEarlyPayNowClick(e,r,i,s,o,c,u,l){this.fireTrack(t.Event.cardsPayEarlyPayNowClick,{...this.getBaseCardPropertiesWithCashback(e,r,i,u,l),...this.getPaymentSourceProperties(c),is_autopay_selected:s,...this.getCardPaymentProperties(o)})}trackEnableBillPay(){this.fireTrack(t.Event.enableBillPay)}trackEnableReimbursement(){this.fireTrack(t.Event.enableReimbursement)}trackUploadInvoice(e,r,i){switch(r){case"w9":this.fireTrack(t.Event.vendor1099W9DocumentUpload,{invoice_upload_method:e,vendor_legal_name:i??""});break;case"reimbursement":this.fireTrack(t.Event.reimbursementInvoiceUpload,{invoice_upload_method:e});break;case"bill_pay":default:this.fireTrack(t.Event.billPayInvoiceUpload,{invoice_upload_method:e});break}}trackInvoiceActionClick(e,r,i,s){this.fireTrack(t.Event.billPayInvoiceActionClick,{bill_stage:e,action_clicked:r,user_name:i,override_data_click:s})}trackBillPaySkipAutofill(){this.fireTrack(t.Event.billPaySkipAutofill)}trackReimbursementSkipAutofill(){this.fireTrack(t.Event.reimbursementSkipAutofill)}trackBillPayNewBill(){this.fireTrack(t.Event.billPayNewBill)}trackReimbursementNewReimbursement(){this.fireTrack(t.Event.reimbursementNewReimbursement)}trackBillPayEditBill(e,r){this.fireTrack(t.Event.billPayEditBill,{bill_id:e,is_recurring_bill:r})}trackReimbursementEditReimbursement(e){this.fireTrack(t.Event.reimbursementEditReimbursement,{reimbursement_id:e})}trackBillPayBillDetails(e,r){this.fireTrack(t.Event.billPayBillDetails,{bill_id:e,is_recurring_bill:r})}trackReimbursementReimbursementDetails(e){this.fireTrack(t.Event.reimbursementReimbursementDetails,{reimbursement_id:e})}trackBillPayReviewBill(e,r,i,s,o,c,u,l,d,f,m,_,g,p){const v={final_vendor_name:c,zeni_rec_vendor_name:u,document_ai_rec_vendor_name:l,bill_id:d,invoice_number:f,invoice_date:r,bill_due_date:m,memo:_,currency:i,collect_from_vendor:s,international_transfer_fee_bearer_payment_method:g,is_recurring_bill:o,payment_method:e};o&&p!=null&&(v.recurring_bill_config={bill_value:p.totalAmount,start_date:p.startDate,end_date:p.endDate,frequency:p.frequency,total_payment_cycles:p.totalPaymentCycles,is_approval_required:p.isApprovalRequired}),this.fireTrack(t.Event.billPayReviewBill,v)}trackReimbursementSubmitReimbursement(e,r,i,s){this.fireTrack(t.Event.reimbursementSubmitReimbursement,{create_date:e,currency:r,total_amount:i,reimbursement_id:s})}trackBillPaySendForApproval(e,r,i,s,o,c,u){const l={bill_id:o,payment_method:e,scheduled_date:r,collect_from_vendor:i,international_transfer_fee_bearer_payment_method:c,is_recurring_bill:s};s&&u!=null&&(l.recurring_bill_config={bill_value:u.totalAmount,start_date:u.startDate,end_date:u.endDate,frequency:u.frequency,total_payment_cycles:u.totalPaymentCycles,is_approval_required:u.isApprovalRequired,is_update_current_bill:u.updateCurrentBill,is_update_future_bills:u.updateFutureRecurringBills}),this.fireTrack(t.Event.billPaySendForApproval,l)}trackBillPayDeleteBill(e,r){this.fireTrack(t.Event.billPayDeleteBill,{bill_id:e,is_recurring_bill:r})}trackBillPayCancelBill(e){this.fireTrack(t.Event.billPayCancelBill,{bill_id:e})}trackBillPayCancelAndDeleteBill(e,r){this.fireTrack(t.Event.billPayCancelAndDeleteBill,{bill_id:e,is_recurring_bill:r})}trackReimbursementListSort(e,r){this.fireTrack(t.Event.reimbursementListSort,{sort_key:e,sort_order:r})}trackReimbursementDeleteReimbursement(e){this.fireTrack(t.Event.reimbursementDeleteReimbursement,{reimbursement_id:e})}trackReimbursementCancelReimbursement(e){this.fireTrack(t.Event.reimbursementCancelReimbursement,{reimbursement_id:e})}trackReimbursementCancelAndDeleteReimbursement(e){this.fireTrack(t.Event.reimbursementCancelAndDeleteReimbursement,{reimbursement_id:e})}trackReimbursementDeleteReimbursementLine(e,r){this.fireTrack(t.Event.reimbursementDeleteReimbursementLine,{reimbursement_id:r,line_id:e})}trackReimbursementSubmitAnywayDuplicateReimbursement(e,r){this.fireTrack(t.Event.reimbursementSubmitAnywayDuplicateReimbursement,{reimbursement_id:r,number_of_duplicate_expenses:e})}trackReimbursementViewDuplicateExpense(e,r){this.fireTrack(t.Event.reimbursementViewDuplicateExpense,{reimbursement_id:r,is_duplicate_within_transaction:e})}trackReimbursementReviewDuplicateReportReimbursement(e,r){this.fireTrack(t.Event.reimbursementReviewDuplicateReportReimbursement,{reimbursement_id:r,number_of_duplicate_expenses:e})}trackReimbursementBulkSelectAll(e,r,i){this.fireTrack(t.Event.reimbursementBulkSelectAll,{report_stage:e,report_status:r,report_type:i})}trackReimbursementBulkDeleted(e,r,i,s){this.fireTrack(t.Event.reimbursementBulkDeleted,{total_reports_deleted:e,report_stage:r,report_status:i,report_type:s})}trackReimbursementBulkSubmit(e,r,i){this.fireTrack(t.Event.reimbursementBulkSubmit,{operation_type:e,report_stage:r,report_status:i})}trackReimbursementBulkSelection(e,r,i,s){this.fireTrack(t.Event.reimbursementBulkSelection,{total_reports_selected:e,report_stage:r,report_status:i,report_type:s})}trackReimbursementBulkPopupConfirm(e,r,i,s){this.fireTrack(t.Event.reimbursementBulkPopupConfirm,{operation_type:e,report_stage:r,report_status:i,report_type:s})}trackBillPayNewVendor(e,r,i,s,o,c,u){this.fireTrack(t.Event.billPayNewVendor,{vendor_name:e,vendor_category:r,vendor_class_name:i,vendor_type:s,vendor_contact_email:o,venfor_contact_name:c,vendor_contact_phone:u})}trackBillPayEditVendor(e){this.fireTrack(t.Event.billPayEditVendor,{vendor_id:e})}trackBillPayExpandVendor(e){this.fireTrack(t.Event.billPayExpandVendor,{vendor_id:e})}trackBillPayChooseNewVendor(){this.fireTrack(t.Event.billPayChooseNewVendor)}trackBillPayCreateNewVendorFromRecDropdown(e){this.fireTrack(t.Event.billPayCreateNewVendorFromDropdown,{vendor_name:e})}trackBillPayMagicLinkPreviewEmail(e){this.fireTrack(t.Event.billPayMagicLinkPreviewEmail,{on_page:e})}trackBillPayMagicLinkSubmitBankAccountDetails(e){this.fireTrack(t.Event.billPayMagicLinkSubmitBankAccountDetails,{bill_id:e})}trackBillPayMagicLinkPageLoad(e,r,i,s,o,c,u){this.fireTrack(t.Event.billPayMagicLinkPageLoad,{tenant_email_domain:e,vendor_id:r,company_name:i,bill_id:s,payment_method:o,currency:c,total_amount:u})}trackBillPayAutoDateChange(e){this.fireTrack(t.Event.billPayAutoDateChange,{bill_id:e})}trackBillPayBulkSelectAll(e,r,i){this.fireTrack(t.Event.billPayBulkSelectAll,{bill_stage:e,bill_status:r,bill_type:i})}trackBillPayBulkDeleted(e,r,i,s){this.fireTrack(t.Event.billPayBulkDeleted,{total_bills_deleted:e,bill_stage:r,bill_status:i,bill_type:s})}trackBillPayBulkSubmit(e,r,i){this.fireTrack(t.Event.billPayBulkSubmit,{operation_type:e,bill_stage:r,bill_status:i})}trackBillPayBulkSelection(e,r,i,s){this.fireTrack(t.Event.billPayBulkSelection,{total_bills_selected:e,bill_stage:r,bill_status:i,bill_type:s})}trackBillPayBulkPopupConfirm(e,r,i,s){this.fireTrack(t.Event.billPayBulkPopupConfirm,{operation_type:e,bill_stage:r,bill_status:i,bill_type:s})}trackBillPayMarkAsPaid(e,r){this.fireTrack(t.Event.billPayMarkAsPaid,{bill_stage:e,bill_status:r})}trackBillPayMarkAsPaidSubmit(e,r,i){this.fireTrack(t.Event.billPayMarkAsPaidSubmit,{payment_mode:e,bill_stage:r,bill_status:i})}trackGroupBySwitch(e,r){this.fireTrack(t.Event.groupBySwitch,{view:e,parent_card:r})}trackUpdateBurnRateCalculatorSettings(e,r,i){this.fireTrack(t.Event.burnRateCalculatorSettings,{accounting_method:e,time_span_id_for_avg_net_burn:r,number_of_months_for_average:i})}trackTransactionDetailsSave(e,r,i,s,o,c,u,l){this.fireTrack(t.Event.transactionDetailsSave,{account_id:e,account_name:r,transaction_id:i,transaction_name:s,transaction_type:o,changed_line_item_count:c,transaction_memo:u,receipt_file_names:l})}trackVendorList(e,r,i,s,o){this.fireTrack(t.Event.vendorList,{vendor_count:i,sort_key:s,spend_trend_key:o,current_tab:e,previous_tab:r})}trackVendorListSort(e,r,i){this.fireTrack(t.Event.vendorListSort,{vendor_count:e,sort_key:r,spend_trend_key:i})}trackVendorListSearch(e){this.fireTrack(t.Event.vendorListSearch,{search_term:e})}trackVendorListSpendTrendSelection(e,r,i){this.fireTrack(t.Event.vendorListSpendTrendSelection,{vendor_count:e,sort_key:r,spend_trend_key:i})}trackVendorDetails(e,r,i,s,o,c,u,l,d,f){this.fireTrack(t.Event.vendorDetails,{vendor_id:e,vendor_name:r,referrer_card:i,vendor_category:s,vendor_class_name:o,spend_trend_indicator_value:u,vendor_spend_last_30days:l,vendor_spend_last_90days:d,vendor_spend_ytd:f,vendor_owner:c})}trackVendorDetailsSave(e,r,i,s,o,c,u,l,d,f,m,_){this.fireTrack(t.Event.vendorDetailsSave,{vendor_id:e,vendor_name:r,vendor_category:i,vendor_class_name:s,vendor_owner:o,saved_vendor_category:c,saved_vendor_class:u,saved_vendor_owner:l,is_recommended_category_selected:d,is_recommended_class_selected:f,category_recommendation_used:m,class_recommendation_used:_})}trackVendorDetailsCancel(e,r,i,s,o){this.fireTrack(t.Event.vendorDetailsCancel,{vendor_id:e,vendor_name:r,vendor_category:i,vendor_class_name:s,vendor_owner:o})}trackVendorDetailsSpendTrendHotlinkClicked(e,r,i,s,o){this.fireTrack(t.Event.vendorDetailsSpendTrendHotlinkClicked,{vendor_id:e,vendor_name:r,vendor_category:i,vendor_class_name:s,vendor_owner:o})}trackAgingReportDownloadClick(e,r,i){this.fireTrack(t.Event.download,{referrer_card:e,sort_key:r,sort_order:i})}trackAgingReportDateChange(e,r,i,s){this.fireTrack(t.Event.agingReportDateChange,{referrer_card:e,current_report_date:r,new_report_date:i,new_report_date_selection:s})}trackAgingReportSortChange(e,r,i){this.fireTrack(t.Event.sort,{referrer_card:e,sort_key:r,sort_order:i})}trackApAgingDetail(e,r,i,s){this.fireTrack(t.Event.apAgingDetail,{referrer_card:e,vendor_id:i,vendor_name:s,current_report_date:r})}trackArAgingDetail(e,r,i,s){this.fireTrack(t.Event.arAgingDetail,{referrer_card:e,customer_id:i,customer_name:s,current_report_date:r})}trackApAgingDetailReportSortChange(e,r,i,s,o){this.fireTrack(t.Event.sort,{referrer_card:"AP Aging Detail",sort_key:e,sort_order:r,vendor_id:s,vendor_name:o,current_report_date:i})}trackArAgingDetailReportSortChange(e,r,i,s,o){this.fireTrack(t.Event.sort,{referrer_card:"AR Aging Detail",sort_key:e,sort_order:r,customer_id:s,customer_name:o,current_report_date:i})}trackApAgingDetailReportDownload(e,r,i,s,o){this.fireTrack(t.Event.download,{referrer_card:"AP Aging Detail",sort_key:e,sort_order:r,vendor_id:s,vendor_name:o,current_report_date:i})}trackArAgingDetailReportDownload(e,r,i,s,o){this.fireTrack(t.Event.download,{referrer_card:"AR Aging Detail",sort_key:e,sort_order:r,customer_id:s,customer_name:o,current_report_date:i})}trackVendorReviewPage(e,r){this.fireTrack(t.Event.vendorReviewList,{vendor_review_source:e,vendor_review_count_total:r})}trackVendorReviewApproveRequested({reviewSource:e,tenantName:r,requestedVendorName:i,originalVendorName:s,approveVendorName:o,approveVendorNameSelectionSource:c,approveVendorReason:u,isGlobalVendorRequested:l,isNewCreatedVendorRequested:d,isVendorNameRecommendationSelected:f,isVendorNameChangedAndSelected:m,wasRecommendationAvailable:_,recommendedVendorName:g,recommendedVendorReason:p}){this.fireTrack(t.Event.vendorReviewGlobalApproveRequest,{vendor_review_source:e,vendor_review_tenant_name:r,old_vendor_name_requested:i,old_vendor_name_original:s,approve_vendor_name_requested:o,approve_vendor_name_recommendation_reason:u,approve_vendor_name_selection_source:c,vendor_name_recommendation:g,vendor_name_recommendation_reason:p,is_vendor_recommended:_,is_recommended_vendor_name_selected:f,is_vendor_renamed:m,is_global_vendor_selected:l,is_vendor_name_new_created_and_selected:d})}trackVendorReviewNewVendorRequested({reviewSource:e,tenantName:r,newRequestedVendorName:i,newRequestedVendorNameSource:s,isVendorNameRecommendationSelected:o,recommendedVendorName:c,recommendedVendorReason:u}){this.fireTrack(t.Event.vendorReviewGlobalNewVendorRequest,{vendor_review_source:e,vendor_review_tenant_name:r,new_vendor_name_requested:i,new_vendor_name_selection_source:s,new_vendor_recommendation_vendor_name:c,new_vendor_recommendation_vendor_name_reason:u,is_recommended_vendor_name_selected:o})}trackVendorReviewNewVendorSaved({reviewSource:e,saveRequestedVendorName:r,saveRequestedVendorSource:i,isVendorNameRecommendationSelected:s,tenantName:o,recommendedVendorName:c,recommendedVendorReason:u}){this.fireTrack(t.Event.vendorReviewGlobalNewVendorSave,{vendor_review_source:e,vendor_review_tenant_name:o,saved_vendor_name:r,saved_vendor_name_selection_source:i,new_vendor_recommendation_vendor_name:c,new_vendor_recommendation_vendor_name_reason:u,is_recommended_vendor_name_selected:s})}trackVendorReviewNewVendorCanceled({reviewSource:e,newRequestedVendorName:r,tenantName:i,recommendedVendorName:s,recommendedVendorReason:o}){this.fireTrack(t.Event.vendorReviewGlobalNewVendorCancel,{vendor_review_source:e,vendor_review_tenant_name:i,new_vendor_name_requested:r,new_vendor_recommendation_vendor_name:s,new_vendor_recommendation_vendor_name_reason:o})}trackVendorReviewSaveVendorRequested({reviewSource:e,vendorName:r,vendorReviewStatus:i,saveRequestedVendorName:s,saveRequestedVendorReason:o,saveRequestedVendorSource:c,isGlobalVendorRequested:u,isVendorNameRetainSelected:l,isVendorNameRecommendationSelected:d,isVendorNameChangedAndSelected:f,wasRecommendationAvailable:m,isVendorNameMarkedAsEmployee:_,isVendorNameMarkedAsLocalContractor:g,recommendedVendorName:p,recommendedVendorReason:v}){this.fireTrack(t.Event.vendorReviewTenantSave,{vendor_review_source:e,old_vendor_name:r,review_status:i,saved_vendor_name:s,save_vendor_name_recommendation_reason:o,saved_vendor_name_source:c,vendor_name_recommendation:p,vendor_name_recommendation_reason:v,is_vendor_name_retain_selected:l,is_recommended_vendor_name_selected:d,is_global_vendor_selected:u,is_vendor_renamed:f,is_vendor_recommended:m,is_vendor_employee:_,is_vendor_contractor:g})}trackVendorReviewMergeInQBORedirectedOrCanceled({reviewSource:e,event:r,vendorName:i,vendorReviewStatus:s,saveRequestedVendorName:o,saveRequestedVendorReason:c,saveRequestedVendorSource:u,isVendorNameRetainSelected:l,isVendorNameRecommendationSelected:d,isVendorNameChangedAndSelected:f,wasRecommendationAvailable:m,recommendedVendorName:_,recommendedVendorReason:g}){this.fireTrack(r,{vendor_review_source:e,old_vendor_name:i,review_status:s,saved_vendor_name:o,save_vendor_name_recommendation_reason:c,saved_vendor_name_source:u,vendor_name_recommendation:_,vendor_name_recommendation_reason:g,is_vendor_name_retain_selected:l,is_recommended_vendor_name_selected:d,is_vendor_renamed:f,is_vendor_recommended:m})}trackVendorReviewRecommendationUpdateContinuedOrCanceled({reviewSource:e,event:r,vendorName:i,vendorReviewStatus:s,saveRequestedVendorName:o,saveRequestedVendorReason:c,saveRequestedVendorSource:u,isVendorNameRetainSelected:l,isVendorNameRecommendationSelected:d,isVendorNameChangedAndSelected:f,wasRecommendationAvailable:m,updatedRecommendedVendorName:_,updatedRecommendedVendorReason:g,recommendedVendorName:p,recommendedVendorReason:v}){this.fireTrack(r,{vendor_review_source:e,old_vendor_name:i,review_status:s,saved_vendor_name:o,save_vendor_name_recommendation_reason:c,saved_vendor_name_source:u,updated_recommendation_vendor_name:_,updated_recommendation_vendor_name_reason:g,vendor_name_recommendation:p,vendor_name_recommendation_reason:v,is_vendor_name_retain_selected:l,is_recommended_vendor_name_selected:d,is_vendor_renamed:f,is_vendor_recommended:m})}trackVendorReviewUpdateVendorCanceled({reviewSource:e,vendorName:r,vendorReviewStatus:i,wasRecommendationAvailable:s,recommendedVendorName:o,recommendedVendorReason:c}){this.fireTrack(t.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:e,old_vendor_name:r,review_status:i,vendor_name_recommendation:o,vendor_name_recommendation_reason:c,is_vendor_recommended:s})}trackVendorReviewWebsiteOpened({reviewSource:e,vendorName:r,wasRecommendationAvailable:i,recommendedVendorName:s,recommendedVendorReason:o,vendorWebsite:c}){this.fireTrack(t.Event.vendorReviewTenantWebsiteOpened,{vendor_review_source:e,old_vendor_name:r,vendor_name_recommendation:s,vendor_name_recommendation_reason:o,is_vendor_recommended:i,vendor_website:c})}trackCockpitTabClicked(e){const r={tab_name:e};this.fireTrack(t.Event.cockpitTabClicked,r)}trackCockpitHealthMonitorRowClicked(e,r,i,s,o,c){const u={company_id:e,company_name:r,churn_percent:c,controller_name:i,nps:s,csat:o};this.fireTrack(t.Event.cockpitHealthMonitorRowClicked,u)}trackHealthMonitorFiltersApplied({filterSelection:e}){this.fireTrack(t.Event.healthMonitorFilterApplied,{parameter:e.parameter,condition:e.condition,logic:e.logic})}trackCockpitHealthMonitorNotificationAlertClicked(e){const r={company_id:e.companyId,company_name:e.companyName,churn_percent:e.churnProbability};this.fireTrack(t.Event.cockpitHealthMonitorNotificationAlertClicked,r)}trackCockpitHealthMonitorChurnFormClicked(e,r){const i={click_type:e,company_id:r.companyId,company_name:r.companyName,zeni_products_and_services:r.zeniProductAndServicesCount,days_to_renewal:r.daysToRenewal,nps:r.netPromoterScore,csat:r.customerSatisfactionScore,external_services_exposure:r.externalServicesExposure,runway_months:r.runwayMonths,dashboard_last_seen:r.dashBoardLastSeen,last_report_sent:r.lastReportSent,churn_percent:r.churnProbability};this.fireTrack(t.Event.cockpitHealthMonitorChurnFormClicked,i)}trackScheduleReviewListLoaded({scheduleType:e,scheduleTab:r,currentTab:i,previousTab:s,scheduleCountTotal:o,categories:c,startMonth:u,endMonth:l,controllerEmails:d,controllerUserIds:f}){this.fireTrack(t.Event.scheduleReviewList,{schedule_type:e,schedule_list_tab:r,schedule_count_total:o,current_tab:i,previous_tab:s,schedule_account_categories_selected:c,schedule_period_start_month:u,schedule_period_end_month:l,controller_emails:d,controller_user_ids:f})}trackScheduleDetailsLoaded({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:i,scheduledTransaction:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:C}=s,{expenseCategory:w,expenseClass:S}=i;this.fireTrack(t.Event.scheduleDetailsPage,{schedule_type:e,vendor_name:o,transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:C,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsSaved({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:i,scheduledTransaction:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:C}=s,{expenseCategory:w,expenseClass:S}=i;this.fireTrack(t.Event.scheduleDetailsSave,{schedule_type:e,vendor_name:o,transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:C,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsCanceled({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:i,scheduledTransaction:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:C}=s,{expenseCategory:w,expenseClass:S}=i;this.fireTrack(t.Event.scheduleDetailsCancel,{schedule_type:e,vendor_name:o??"",transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:C,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsLinkJournalEntry({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:i,journalEntryDetails:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_}=r,{journalEntryMonth:g,journalEntryPostingDate:p,journalEntryTransactionAmount:v,journalEntryPostingStatus:y,journalEntryMemo:b}=s,{expenseCategory:C,expenseClass:w}=i;this.fireTrack(t.Event.scheduleDetailsLinkJournalEntry,{schedule_type:e,vendor_name:o,transaction_date:d,transaction_amount:f,schedule_category:m,schedule_class:_,journal_entry_month:g,journal_entry_posting_date:p,journal_entry_transaction_amount:v,journal_entry_posting_status:y,journal_entry_memo:b,expense_category:C,expense_class:w,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsViewJournalEntry({scheduleType:e,scheduleExpenseCategoryAndClass:r,journalEntryDetails:i,fixedAssetsDetails:s,controllerEmails:o,controllerUserIds:c}){const{journalEntryMonth:u,journalEntryPostingDate:l,journalEntryTransactionAmount:d,journalEntryPostingStatus:f,journalEntryMemo:m}=i,{expenseCategory:_,expenseClass:g}=r;this.fireTrack(t.Event.scheduleDetailsViewJournalEntry,{schedule_type:e,journal_entry_month:u,journal_entry_posting_date:l,journal_entry_transaction_amount:d,journal_entry_posting_status:f,journal_entry_memo:m,expense_category:_,expense_class:g,accumulated_depreciation_category:s?.accumulatedDepreciationCategory??null,asset_id:s?.assetId??null,controller_emails:o,controller_user_ids:c})}trackScheduleDetailsDeleted({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:i,scheduledTransaction:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:C}=s,{expenseCategory:w,expenseClass:S}=i;this.fireTrack(t.Event.scheduleDetailsDelete,{schedule_type:e,vendor_name:o,transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:C,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsMarkedAsCompleted({scheduleType:e,transaction:r,scheduledTransaction:i,scheduleExpenseCategoryAndClass:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f,scheduleCategory:m,scheduleClass:_,description:g}=r,{currentBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:C}=i,{expenseCategory:w,expenseClass:S}=s;this.fireTrack(t.Event.scheduleDetailsMarkComplete,{schedule_type:e,vendor_name:o,transaction_date:d,transaction_amount:f,schedule_current_balance:p,schedule_category:m,schedule_class:_,schedule_description:g,schedule_current_status:v,schedule_start_month:y,schedule_end_month:b,schedule_number_of_months:C,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:i,journalEntryDetails:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f}=r,{journalEntryMonth:m,journalEntryPostingDate:_,journalEntryTransactionAmount:g,journalEntryPostingStatus:p,journalEntryMemo:v,journalEntryQBOLink:y,wasRecommendationAvailable:b,wasRecommendationSelected:C}=s,{expenseCategory:w,expenseClass:S}=i;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:e,vendor_name:o,transaction_date:d,transaction_amount:f,journal_entry_month:m,journal_entry_posting_date:_,journal_entry_transaction_amount:g,journal_entry_posting_status:p,journal_entry_qbo_link:y,journal_entry_memo:v,is_vendor_recommended:b,was_recommendation_selected:C,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsJournalEntryQBOFetched({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:i,journalEntryDetails:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f}=r,{journalEntryMonth:m,journalEntryPostingDate:_,journalEntryTransactionAmount:g,journalEntryPostingStatus:p,journalEntryMemo:v,wasRecommendationAvailable:y,wasRecommendationSelected:b,journalEntryQBOLink:C}=s,{expenseCategory:w,expenseClass:S}=i;this.fireTrack(t.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:e,vendor_name:o,transaction_date:d,transaction_amount:f,journal_entry_month:m,journal_entry_posting_date:_,journal_entry_transaction_amount:g,journal_entry_posting_status:p,journal_entry_qbo_link:C,journal_entry_memo:v,is_vendor_recommended:y,was_recommendation_selected:b,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:e,transaction:r,scheduleExpenseCategoryAndClass:i,journalEntryDetails:s,vendorName:o,fixedAssetsDetails:c,controllerEmails:u,controllerUserIds:l}){const{transactionDate:d,transactionAmount:f}=r,{journalEntryMonth:m,journalEntryPostingDate:_,journalEntryTransactionAmount:g,journalEntryPostingStatus:p,journalEntryMemo:v,wasRecommendationAvailable:y,wasRecommendationSelected:b,journalEntryQBOLink:C}=s,{expenseCategory:w,expenseClass:S}=i;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:e,vendor_name:o,transaction_date:d,transaction_amount:f,journal_entry_month:m,journal_entry_posting_date:_,journal_entry_transaction_amount:g,journal_entry_posting_status:p,journal_entry_qbo_link:C,journal_entry_memo:v,is_vendor_recommended:y,was_recommendation_selected:b,expense_category:w,expense_class:S,accumulated_depreciation_category:c?.accumulatedDepreciationCategory??null,asset_id:c?.assetId??null,controller_emails:u,controller_user_ids:l})}trackScheduleAccruedDetailsNewRequested({scheduleType:e}){this.fireTrack(t.Event.scheduleDetailsNewRequested,{schedule_type:e})}trackScheduleAccruedDetailsLoaded({scheduleType:e,scheduleExpenseCategoryAndClass:r,vendorName:i,controllerEmails:s,schedule:o,controllerUserIds:c}){const{startingBalance:u,scheduleAccountCategory:l,description:d,scheduleCreateDate:f,scheduleMonthlyAmount:m,runningBalance:_,currentStatus:g,startMonth:p,endMonth:v,period:y}=o,{expenseCategory:b,expenseClass:C}=r;this.fireTrack(t.Event.scheduleDetailsPage,{schedule_type:e,controller_emails:s,controller_user_ids:c,schedule_expense_category:b,schedule_expense_class:C,schedule_account_category:l,schedule_create_date:f,schedule_current_balance:_,schedule_current_status:g,schedule_description:d,schedule_end_month:v,schedule_monthly_amount:m,schedule_number_of_months:y,schedule_start_month:p,schedule_starting_balance:u,vendor_name:i})}trackScheduleAccruedDetailsSaved({scheduleType:e,scheduleExpenseCategoryAndClass:r,vendorName:i,controllerEmails:s,schedule:o,controllerUserIds:c}){const{startingBalance:u,scheduleAccountCategory:l,description:d,scheduleCreateDate:f,scheduleMonthlyAmount:m,runningBalance:_,currentStatus:g,startMonth:p,endMonth:v,period:y}=o,{expenseCategory:b,expenseClass:C}=r;this.fireTrack(t.Event.scheduleDetailsSave,{schedule_type:e,controller_emails:s,controller_user_ids:c,schedule_expense_category:b,schedule_expense_class:C,schedule_account_category:l,schedule_create_date:f,schedule_current_balance:_,schedule_current_status:g,schedule_description:d,schedule_end_month:v,schedule_monthly_amount:m,schedule_number_of_months:y,schedule_start_month:p,schedule_starting_balance:u,vendor_name:i})}trackScheduleAccruedDetailsCanceled({scheduleType:e,scheduleExpenseCategoryAndClass:r,vendorName:i,controllerEmails:s,schedule:o,controllerUserIds:c,lastPostedScheduleMonth:u}){const{startingBalance:l,scheduleAccountCategory:d,description:f,scheduleCreateDate:m,scheduleMonthlyAmount:_,runningBalance:g,currentStatus:p,startMonth:v,endMonth:y,period:b}=o,{expenseCategory:C,expenseClass:w}=r;this.fireTrack(t.Event.scheduleDetailsCancel,{schedule_type:e,controller_emails:s,controller_user_ids:c,schedule_expense_category:C,schedule_expense_class:w,schedule_account_category:d,schedule_create_date:m,schedule_current_balance:g,schedule_current_status:p,schedule_description:f,schedule_end_month:y,schedule_monthly_amount:_,schedule_number_of_months:b,schedule_start_month:v,schedule_starting_balance:l,vendor_name:i,schedule_last_month_with_posted_status:u})}trackScheduleAccruedDetailsDeleted({scheduleType:e,scheduleExpenseCategoryAndClass:r,vendorName:i,controllerEmails:s,schedule:o,controllerUserIds:c,scheduleNonPendingLastMonth:u,scheduleNonPendingLastMonthStatus:l}){const{startingBalance:d,scheduleAccountCategory:f,description:m,scheduleCreateDate:_,scheduleMonthlyAmount:g,runningBalance:p,currentStatus:v,startMonth:y,endMonth:b,period:C}=o,{expenseCategory:w,expenseClass:S}=r;this.fireTrack(t.Event.scheduleDetailsDelete,{schedule_type:e,controller_emails:s,controller_user_ids:c,schedule_expense_category:w,schedule_expense_class:S,schedule_account_category:f,schedule_create_date:_,schedule_current_balance:p,schedule_current_status:v,schedule_description:m,schedule_end_month:b,schedule_monthly_amount:g,schedule_number_of_months:C,schedule_start_month:y,schedule_starting_balance:d,vendor_name:i,schedule_non_pending_last_month:u,schedule_non_pending_last_month_status:l})}trackScheduleAccruedDetailsLinkJournalEntry({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:i,vendorName:s,journalEntryDetails:o,controllerEmails:c,controllerUserIds:u}){const{journalEntryMonth:l,journalEntryAmount:d,journalEntryBalance:f,journalEntryPostingStatus:m}=o,{scheduleCreateDate:_,scheduleMonthlyAmount:g,currentStatus:p,description:v,endMonth:y,period:b,runningBalance:C,scheduleAccountCategory:w,startMonth:S,startingBalance:R}=i,{expenseCategory:P,expenseClass:O}=r;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:e,schedule_create_date:_,vendor_name:s,schedule_monthly_amount:g,schedule_description:v,schedule_current_status:p,schedule_start_month:S,schedule_end_month:y,schedule_number_of_months:b,schedule_current_balance:C,schedule_starting_balance:R,schedule_account_category:w,schedule_entry_expense_link_amount:d,schedule_entry_expense_link_balance:f,schedule_entry_expense_link_month:l,schedule_entry_current_status:m,schedule_expense_category:P,schedule_expense_class:O,controller_emails:c,controller_user_ids:u})}trackScheduleAccruedDetailsViewJournalEntry({scheduleType:e,scheduleJournalEntryType:r,scheduleExpenseCategoryAndClass:i,schedule:s,vendorName:o,journalEntryDetails:c,controllerEmails:u,controllerUserIds:l}){const{journalEntryMonth:d,journalEntryAmount:f,journalEntryBalance:m,journalEntryPostingStatus:_}=c,{scheduleCreateDate:g,scheduleMonthlyAmount:p,currentStatus:v,description:y,endMonth:b,period:C,runningBalance:w,scheduleAccountCategory:S,startMonth:R,startingBalance:P}=s,{expenseCategory:O,expenseClass:L}=i;this.fireTrack(t.Event.scheduleDetailsViewJournalEntry,{schedule_type:e,schedule_journal_entry_type:r,schedule_create_date:g,vendor_name:o,schedule_monthly_amount:p,schedule_account_category:S,schedule_description:y,schedule_current_status:v,schedule_start_month:R,schedule_end_month:b,schedule_number_of_months:C,schedule_expense_category:O,schedule_expense_class:L,schedule_current_balance:w,schedule_starting_balance:P,schedule_entry_current_status:_,schedule_entry_expense_link_amount:f,schedule_entry_expense_link_balance:m,schedule_entry_expense_link_month:d,controller_emails:u,controller_user_ids:l})}trackScheduleAccruedDetailsJournalEntryViewLinkedExpense({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:i,vendorName:s,journalEntryDetails:o,controllerEmails:c,controllerUserIds:u}){const{journalEntryMonth:l,journalEntryAmount:d,journalEntryBalance:f,journalEntryPostingStatus:m}=o,{scheduleCreateDate:_,scheduleMonthlyAmount:g,currentStatus:p,description:v,endMonth:y,period:b,runningBalance:C,scheduleAccountCategory:w,startMonth:S,startingBalance:R}=i,{expenseCategory:P,expenseClass:O}=r;this.fireTrack(t.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:e,schedule_create_date:_,vendor_name:s,schedule_monthly_amount:g,schedule_account_category:w,schedule_description:v,schedule_current_status:p,schedule_start_month:S,schedule_end_month:y,schedule_number_of_months:b,schedule_expense_category:P,schedule_expense_class:O,schedule_current_balance:C,schedule_starting_balance:R,schedule_entry_current_status:m,schedule_entry_expense_link_amount:d,schedule_entry_expense_link_balance:f,schedule_entry_expense_link_month:l,controller_emails:c,controller_user_ids:u})}trackScheduleAccruedDetailsJournalEntryLinkCanceled({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:i,vendorName:s,journalEntryDetails:o,controllerEmails:c,controllerUserIds:u}){const{journalEntryMonth:l,journalEntryAmount:d,journalEntryBalance:f,journalEntryPostingStatus:m}=o,{scheduleCreateDate:_,scheduleMonthlyAmount:g,currentStatus:p,description:v,endMonth:y,period:b,runningBalance:C,scheduleAccountCategory:w,startMonth:S,startingBalance:R}=i,{expenseCategory:P,expenseClass:O}=r;this.fireTrack(t.Event.scheduleDetailsEntryCanceled,{schedule_type:e,schedule_create_date:_,vendor_name:s,schedule_monthly_amount:g,schedule_description:v,schedule_current_status:p,schedule_start_month:S,schedule_end_month:y,schedule_number_of_months:b,schedule_current_balance:C,schedule_starting_balance:R,schedule_account_category:w,schedule_entry_expense_link_month:l,schedule_expense_category:P,schedule_expense_class:O,schedule_entry_current_status:m,schedule_entry_expense_link_amount:d,schedule_entry_expense_link_balance:f,controller_emails:c,controller_user_ids:u})}trackScheduleAccruedDetailsJournalEntryLinkedLoaded({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:i,vendorName:s,journalEntryDetails:o,controllerEmails:c,controllerUserIds:u}){const{currentStatus:l,description:d,endMonth:f,period:m,runningBalance:_,scheduleAccountCategory:g,scheduleCreateDate:p,scheduleMonthlyAmount:v,startMonth:y,startingBalance:b}=i,{wasRecommendationAvailable:C,journalEntryPostingStatus:w}=o,{expenseCategory:S,expenseClass:R}=r;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:e,vendor_name:s,schedule_create_date:p,schedule_monthly_amount:v,schedule_description:d,schedule_current_status:l,schedule_start_month:y,schedule_end_month:f,schedule_number_of_months:m,schedule_current_balance:_,schedule_starting_balance:b,schedule_account_category:g,schedule_expense_category:S,schedule_expense_class:R,controller_emails:c,schedule_entry_current_status:w,controller_user_ids:u,is_vendor_recommended:C})}trackScheduleAccruedDetailsJournalEntryLinkedSaved({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:i,vendorName:s,transactionDetails:o,journalEntryDetails:c,controllerEmails:u,controllerUserIds:l}){const{currentStatus:d,description:f,endMonth:m,period:_,runningBalance:g,scheduleAccountCategory:p,scheduleCreateDate:v,scheduleMonthlyAmount:y,startMonth:b,startingBalance:C}=i,{wasRecommendationAvailable:w,wasRecommendationSelected:S,journalEntryPostingStatus:R}=c,{linkedTransactionAmount:P,linkedTransactionDate:O,linkedTransactionDescription:L,linkedTransactionType:x}=o,{expenseCategory:F,expenseClass:J}=r;this.fireTrack(t.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:e,vendor_name:s,schedule_create_date:v,schedule_monthly_amount:y,schedule_description:f,schedule_current_status:d,schedule_start_month:b,schedule_end_month:m,schedule_number_of_months:_,schedule_current_balance:g,schedule_starting_balance:C,schedule_account_category:p,schedule_expense_category:F,schedule_expense_class:J,controller_emails:u,controller_user_ids:l,is_vendor_recommended:w,was_recommendation_selected:S,linked_transaction_amount:P,linked_transaction_date:O,schedule_entry_current_status:R,linked_transaction_description:L,linked_transaction_type:x})}trackScheduleAccruedDetailsJournalEntryLinkedCanceled({scheduleType:e,scheduleExpenseCategoryAndClass:r,schedule:i,vendorName:s,journalEntryDetails:o,controllerEmails:c,controllerUserIds:u}){const{currentStatus:l,description:d,endMonth:f,period:m,runningBalance:_,scheduleAccountCategory:g,scheduleCreateDate:p,scheduleMonthlyAmount:v,startMonth:y,startingBalance:b}=i,{wasRecommendationAvailable:C,journalEntryPostingStatus:w}=o,{expenseCategory:S,expenseClass:R}=r;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:e,vendor_name:s,schedule_create_date:p,schedule_monthly_amount:v,schedule_description:d,schedule_current_status:l,schedule_start_month:y,schedule_end_month:f,schedule_number_of_months:m,schedule_current_balance:_,schedule_starting_balance:b,schedule_account_category:g,schedule_expense_category:S,schedule_expense_class:R,controller_emails:c,controller_user_ids:u,schedule_entry_current_status:w,is_vendor_recommended:C})}trackCockpitTaskCardClicked({tenantName:e,tenantId:r,user:i,controllerEmails:s}){this.fireTrack(t.Event.cockpitTaskCardClicked,{tenant_name:e,tenant_id:r,user_name:i.name,user_email:i.email,user_role:i.role,controller_emails:s})}trackTaskEdited({tenantName:e,taskId:r,activity:i,createdBy:s,commentsCreated:o}){const{name:c,description:u,status:l,priority:d,assignees:f,numberOfAttachments:m,tags:_,dueDate:g}=i.details;this.fireTrack(t.Event.taskEdited,{tenant_name:e,task_id:r,created_by:s,activity_count:i.count,activity_type:{name:c,description:u,status:l,priority:d,assignees:f,file_attached_count:m,tags:_,due_date:g},activity_by_user:i.byUser,comment_created:o})}trackTaskCreated({tenantName:e,taskId:r,newButtonClicked:i,activity:s,createdBy:o}){const{name:c,description:u,status:l,priority:d,assignees:f,numberOfAttachments:m,tags:_,dueDate:g}=s.details;this.fireTrack(t.Event.newTaskRequested,{tenant_name:e,task_id:r,created_by:o,new_task_button_clicked:i,file_attached_count:m,assignees:f,priority_set:d,task_name:c,task_description:u,task_status:l,tag_name:_?_.join(","):null,task_due_date:g})}trackRewardsPageClicked(e){this.fireTrack(t.Event.rewardsPageClicked,{click_type:e})}trackDashboardCardClicked(e,r){this.fireTrack(t.Event.dashboardCardClicked,{click_type:e,card_position:r})}trackInviteEmailClicked(e,r,i,s){this.fireTrack(t.Event.inviteEmailClicked,{click_type:e,referred_company:r,referred_email:i,invitee_count:s})}trackGetAuditScore(e,r,i,s,o){this.fireTrack(t.Event.getAuditScore,{clicked:e,tenant:r,report_month:i,controller_name:s,report_timestamp:o})}trackAuditScorePercentage(e,r,i,s,o,c,u,l){this.fireTrack(t.Event.auditScorePercentage,{report_timestamp:e,report_month:r,score_percentage:i,issue_type:o,tenant:s,controller_name:u,customer_group:l,no_of_issues:c})}trackAuditIssuesClicked(e,r,i,s){this.fireTrack(t.Event.auditIssuesClicked,{clicked_issue:e,tenant:r,controller_name:i,created_at:s})}trackZeniAssistClick(e,r,i,s,o){this.fireTrack(t.Event.zeniAssistClick,{bill_stage:r,bill_status:e,bill_type:s,error_description:i,invoice_number:o})}trackRetryClick(e,r,i,s,o){this.fireTrack(t.Event.retryClick,{bill_stage:r,bill_status:e,bill_type:s,error_description:i,invoice_number:o})}trackRetryConfirmClick(e,r,i,s,o){this.fireTrack(t.Event.retryConfirmClick,{bill_stage:r,bill_status:e,bill_type:s,error_description:i,invoice_number:o})}trackRefundClick(e,r,i,s,o){this.fireTrack(t.Event.refundClick,{bill_stage:r,bill_status:e,bill_type:s,error_description:i,invoice_number:o})}trackRefundConfirmClick(e,r,i,s,o){this.fireTrack(t.Event.refundConfirmClick,{bill_stage:r,bill_status:e,bill_type:s,error_description:i,invoice_number:o})}trackVendor1099DetailSave(e){this.fireTrack(t.Event.vendor1099DetailsSave,{vendor_legal_name:e})}trackVendor1099ReportDownload(e){this.fireTrack(t.Event.vendor1099ReportDownload,{report:e.includes("All")?"All":e.toUpperCase()})}trackEnableIntlWire(e){this.fireTrack(t.Event.enableIntlWire,{local_currency_enabled:e})}trackSubmitIntlWire(e){this.fireTrack(t.Event.submitIntlWire,{local_currency_enabled:e})}trackIntlWirePaymentSelect(e,r,i,s,o){this.fireTrack(t.Event.intlWirePaymentMethod,{bill_stage:e,bill_status:r,bill_type:i,invoice_number:s,local_currency_enabled:o})}trackMonthEndCloseClicked(e,r,i){this.fireTrack(t.Event.monthCloseClicked,{month_year:`${e}-${r}`,source:i})}trackMonthCloseAuditPage(e,r,i,s,o,c){this.fireTrack(t.Event.monthCloseAuditPage,{month_year:`${e}-${r}`,audit_score:s,refresh_clicked:o,status:i,source:c})}trackTransactionsReviewPage(e,r,i,s,o,c){this.fireTrack(t.Event.transactionsReview,{month_year:`${e}-${r}`,refresh_clicked:o,number_of_transactions:i,transaction_updates:s,source:c})}trackTransactionsAutoCategorisedPage(e,r,i,s,o,c){this.fireTrack(t.Event.transactionsAutoCategorised,{month_year:`${e}-${r}`,refresh_clicked:o,number_of_transactions:i,transaction_updates:s,source:c})}trackMonthCloseScheduleListPage(e,r,i,s,o,c){this.fireTrack(t.Event.monthCloseScheduleList,{month_year:`${e}-${r}`,refresh_clicked:i,number_of_recommendations:s,failed_postings:o,source:c})}trackFluxAnalysisPage(e,r,i,s,o){this.fireTrack(t.Event.fluxAnalysis,{month_year:`${e}-${r}`,refresh_clicked:i,open_items:s,source:o})}trackFluxAnalysisReviewed(e,r,i,s){this.fireTrack(t.Event.fluxAnalysisReviewed,{month_year:`${e}-${r}`,number_of_items_reviewed:s.length,is_bulk_update:i})}trackMissingReceiptsPage(e,r,i,s,o){this.fireTrack(t.Event.missingReceipts,{month_year:`${e}-${r}`,number_of_transactions:s,refresh_clicked:i,source:o})}trackMissingReceiptAttached(e,r){this.fireTrack(t.Event.missingReceipts,{month_year:`${e}-${r}`,is_attached:!0})}trackInsightsEmailPage(e,r,i,s,o,c,u){this.fireTrack(t.Event.insightsEmail,{month_year:`${e}-${r}`,refresh_clicked:i,email_status:s,audit_score:o,date:c,source:u})}trackCommentAdded(e,r,i,s,o,c){this.fireTrack(t.Event.commentAdded,{page_name:e,commented_on:r,comment_type:i,tenant:s,controller_name:o,created_by:c})}trackCommentActivity(e,r,i,s,o,c,u){this.fireTrack(t.Event.commentActivity,{page_name:e,comment_activity_type:r,tenant:i,controller_name:s,status:o,created_by:c,comment_activity_source:u})}trackSendMoneyClick(){this.fireTrack(t.Event.sendMoneyClick)}trackExpressPayNextClick(e){this.fireTrack(t.Event.expressPayNextClick,{stage:e})}trackExpressPayScheduleClick(){this.fireTrack(t.Event.expressPayScheduleClick)}trackLowBalanceAccountSelected(e,r,i,s,o,c){this.fireTrack(t.Event.lowBalanceAccountSelected,{bill_stage:e,bill_status:r,bill_type:i,invoice_number:s,user_name:o,account_type:c})}trackLowBalanceAccountSentForApproval(e,r,i,s,o,c){this.fireTrack(t.Event.lowBalanceAccountSentForApproval,{bill_stage:e,bill_status:r,bill_type:i,invoice_number:s,user_name:o,account_type:c})}trackLowBalanceAccountApprove(e,r,i,s,o,c){this.fireTrack(t.Event.lowBalanceAccountApprove,{bill_stage:e,bill_status:r,bill_type:i,invoice_number:s,user_name:o,account_type:c})}trackLowBalanceAccountReject(e,r,i,s,o,c){this.fireTrack(t.Event.lowBalanceAccountReject,{bill_stage:e,bill_status:r,bill_type:i,invoice_number:s,user_name:o,account_type:c})}trackLowBalanceAccountChange(e,r,i,s,o,c){this.fireTrack(t.Event.lowBalanceAccountChange,{bill_stage:e,bill_status:r,bill_type:i,invoice_number:s,user_name:o,account_type:c})}trackLowBalanceAccountSchedule(e,r,i,s,o,c){this.fireTrack(t.Event.lowBalanceAccountSchedule,{bill_stage:e,bill_status:r,bill_type:i,invoice_number:s,user_name:o,account_type:c})}trackVendorOperatingExpenses(e,r){this.fireTrack(t.Event.vendorOperatingExpenses,{current_tab:e,previous_tab:r})}trackVendorOperatingExpensesPageLoaded(e){this.fireTrack(t.Event.vendorOperatingExpensesPageLoaded,{source:e})}trackAICFOChatScreenStateChanged(e,r,i,s){this.fireTrack(t.Event.aiCFOChatScreenStateChanged,{action:e,chat_source:r,chat_session_id:i,chat_session_title:s})}trackAICFOChatSessionChanged(e,r,i,s){this.fireTrack(t.Event.aiCFOChatSessionChanged,{action:e,chat_source:r,chat_session_id:i,chat_session_title:s})}trackAICFOChatSubmitted(e,r,i,s,o,c){this.fireTrack(t.Event.aiCFOChatSubmitted,{question_text:e,chat_source:r,chat_session_id:i,chat_message_id:o,chat_session_title:s,index:c})}trackAICFOChatFeedbackGiven(e,r,i,s,o){this.fireTrack(t.Event.aiCFOChatFeedbackGiven,{feedback_type:e,question_text:r,chat_session_id:i,chat_message_id:o,chat_session_title:s})}trackAICFOChatResponseGenerated(e,r,i,s,o,c){this.fireTrack(t.Event.aiCFOChatResponseGenerated,{response_type:e,question_text:r,response_text:i,chat_session_id:s,chat_message_id:c,chat_session_title:o})}trackAICFOChatAnswerGenerated(e,r,i,s,o,c,u,l,d,f){this.fireTrack(t.Event.aiCFOChatAnswerGenerated,{has_visualization:c,visualization_type:u,has_follow_up_questions:i,has_assumptions:s,response_text:e,has_insights:o,question_text:r,chat_session_id:l,chat_message_id:f,chat_session_title:d})}trackAICFOOnboardingScreenStateChanged(e,r){this.fireTrack(t.Event.aiCFOOnboardingScreenStateChanged,{action:e,ai_cfo_onboarding_source:r})}trackAICFOPrivacyPolicy(){this.fireTrack(t.Event.aiCFOPrivacyPolicy)}trackAICFOAgreement(){this.fireTrack(t.Event.aiCFOAgreement)}trackTreasuryNavPromoClick(e){this.fireTrack(t.Event.treasuryNavPromoClick,{clicked_on:e})}trackTreasuryPromoView(e){this.fireTrack(t.Event.treasuryPromoView,{page_name:e})}trackTreasurySetupActionClick(e){this.fireTrack(t.Event.treasurySetupActionClick,{action_type:e})}trackTreasuryProspectusClick(e,r,i){this.fireTrack(t.Event.treasuryProspectusClick,{fund_name:e,fund_ticker:r,page_name:i})}trackTreasuryCalculatorClick(e,r){this.fireTrack(t.Event.treasuryCalculatorClick,{page_name:e,amount:r})}trackTreasuryAgreementView(){this.fireTrack(t.Event.treasuryAgreementView)}trackTreasuryAllocationAction(e,r){this.fireTrack(t.Event.treasuryAllocationAction,{action_type:e,fund_percentage:r})}trackTreasuryRiskAction(e,r,i){this.fireTrack(t.Event.treasuryRiskAction,{action_type:e,risk_score:r,fund_percentage:i})}trackTreasuryVerificationNavigation(e,r){this.fireTrack(t.Event.treasuryVerificationNavigation,{clicked_on:e,verification_status:r})}trackTreasuryTransferAction(e,r,i,s,o,c){this.fireTrack(t.Event.treasuryTransferAction,{clicked_on:e,from_account:r,to_account:i,amount:s,fund_percentage:o,page_name:c})}trackTreasuryDashboardInteraction(e){this.fireTrack(t.Event.treasuryDashboardInteraction,{clicked_on:e})}trackTreasuryPortfolioConfirm(e,r){this.fireTrack(t.Event.treasuryPortfolioConfirm,{risk_score:e,fund_percentage:r})}trackTreasuryPromoCards(e){this.fireTrack(t.Event.treasuryPromoCards,{card_clicked:e})}trackTreasuryPromoVideo(e){this.fireTrack(t.Event.treasuryPromoVideo,{page_name:e})}trackTransactionCotView({recommendationFor:e,currentValue:r,recommendation:i,recommendationCot:s,isRecommendationCotAvailable:o,recommendationReason:c,recommendationConfidenceLevel:u,alternativeRecommendation:l,alternativeRecommendationCot:d,isAlternativeRecommendationCotAvailable:f,alternativeRecommendationReason:m,alternativeRecommendationConfidenceLevel:_,transactionPage:g,transactionCurrentStatus:p,recommendationConfidencePercentage:v,alternativeRecommendationConfidencePercentage:y}){this.fireTrack(t.Event.transactionCotView,{recommendation_for:e,current_value:r,recommendation:i,recommendation_cot:s,is_recommendation_cot_available:o,recommendation_reason:c,recommendation_confidence_percentage:v,recommendation_confidence_level:u,alternative_recommendation:l,alternative_recommendation_cot:d,is_alternative_recommendation_cot_available:f,alternative_recommendation_reason:m,alternative_recommendation_confidence_percentage:y,alternative_recommendation_confidence_level:_,transaction_page:g,transaction_current_status:p})}trackTransactionCotDropdownView({recommendationType:e,recommendationFor:r,currentValue:i,recommendation:s,recommendationCot:o,isRecommendationCotAvailable:c,recommendationReason:u,recommendationConfidenceLevel:l,transactionPage:d,transactionCurrentStatus:f,recommendationConfidencePercentage:m}){this.fireTrack(t.Event.transactionCotDropdownView,{recommendation_type:e,recommendation_for:r,current_value:i,recommendation:s,recommendation_cot:o,is_recommendation_cot_available:c,recommendation_reason:u,recommendation_confidence_percentage:m,recommendation_confidence_level:l,transaction_current_status:f,transaction_page:d})}trackTransactionCotViewAlternative({alternativeRecommendationFor:e,alternativeRecommendation:r,alternativeRecommendationCot:i,isAlternativeRecommendationCotAvailable:s,alternativeRecommendationReason:o,alternativeRecommendationConfidenceLevel:c,transactionPage:u,transactionCurrentStatus:l,alternativeRecommendationConfidencePercentage:d}){this.fireTrack(t.Event.transactionCotViewAlternative,{alternative_recommendation_for:e,alternative_recommendation:r,alternative_recommendation_cot:i,is_alternative_recommendation_cot_available:s,alternative_recommendation_reason:o,alternative_recommendation_confidence_percentage:d,alternative_recommendation_confidence_level:c,transaction_current_status:l,transaction_page:u})}trackTransactionCotViewRecommended({recommendationFor:e,currentValue:r,recommendation:i,recommendationCot:s,isRecommendationCotAvailable:o,recommendationReason:c,recommendationConfidenceLevel:u,recommendationConfidencePercentage:l}){this.fireTrack(t.Event.transactionCotViewRecommended,{recommendation_for:e,current_value:r,recommendation:i,recommendation_cot:s,is_recommendation_cot_available:o,recommendation_reason:c,recommendation_confidence_percentage:l,recommendation_confidence_level:u})}trackAIPerfHome(e){this.fireTrack(t.Event.aiPerfHome,{perf_snapshot:e})}trackAIPerfRefresh(e){this.fireTrack(t.Event.aiPerfRefresh,{perf_snapshot:e})}trackAIPerfTimePeriodSelect(e){this.fireTrack(t.Event.aiPerfTimePeriodSelect,{perf_snapshot:e})}trackAutoTransferRuleIconClick(e){this.fireTrack(t.Event.autoTransferRuleIconClick,{page_name:e})}trackAutoTransferRuleClick(e){this.fireTrack(t.Event.autoTransferRuleClick,{rule_name:e})}trackAutoTransferRuleReviewClick(e,r,i,s,o){this.fireTrack(t.Event.autoTransferRuleReviewClick,{rule_name:e,amount:r,withdrawal_bank:i,deposit_bank:s,frequency:o})}trackAutoTransferRuleCreateClick(e,r,i,s,o){this.fireTrack(t.Event.autoTransferRuleCreateClick,{rule_name:e,amount:r,withdrawal_bank:i,deposit_bank:s,frequency:o})}trackAutoTransferRuleMoreClick(e,r,i,s,o){this.fireTrack(t.Event.autoTransferRuleMoreClick,{rule_name:e,amount:r,withdrawal_bank:i,deposit_bank:s,frequency:o})}trackAutoTransferRuleActionClick(e,r,i,s,o,c){this.fireTrack(t.Event.autoTransferRuleActionClick,{rule_name:e,action_clicked:r,amount:i,withdrawal_bank:s,deposit_bank:o,frequency:c})}trackAutoTransferRuleActionConfirm(e,r,i,s,o,c,u){this.fireTrack(t.Event.autoTransferRuleActionConfirm,{rule_name:e,action_clicked:r,amount:i,withdrawal_bank:s,deposit_bank:o,frequency:c,update_log:u})}trackAutoTransferRuleActionCancel(e,r,i,s,o,c){this.fireTrack(t.Event.autoTransferRuleActionCancel,{rule_name:e,action_clicked:r,amount:i,withdrawal_bank:s,deposit_bank:o,frequency:c})}fireTrack(e,r){if(t.EVENTS_WITHOUT_SUPER_PROPERTIES.has(e)===!0){this.provider.track(e,r);return}const i=Object.assign({},this.superProperties,r);this.provider.track(e,i)}}return _r.Analytics=n,_r}var Xr={},Us;function nd(){if(Us)return Xr;Us=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.extractUtmParamsFromUrl=t;function t(n){if(n==null&&typeof window>"u")return{};const a=n??new URLSearchParams(window.location.search),e={};for(const[r,i]of a.entries())r.startsWith("utm_")&&(e[r]=i);return e}return Xr}var Vs;function ov(){return Vs||(Vs=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.extractUtmParamsFromUrl=t.EVENTS_WITHOUT_SUPER_PROPERTIES=t.Event=t.Analytics=void 0;const n=rd();Object.defineProperty(t,"Analytics",{enumerable:!0,get:function(){return n.Analytics}});const a=pc();Object.defineProperty(t,"EVENTS_WITHOUT_SUPER_PROPERTIES",{enumerable:!0,get:function(){return a.EVENTS_WITHOUT_SUPER_PROPERTIES}}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return a.Event}});const e=nd();Object.defineProperty(t,"extractUtmParamsFromUrl",{enumerable:!0,get:function(){return e.extractUtmParamsFromUrl}})}(Ti)),Ti}var xn={},A;if(typeof window>"u"){var zs={hostname:""};A={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:zs,referrer:""},screen:{width:0,height:0},location:zs,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else A=window;function Ws(t,n){(n==null||n>t.length)&&(n=t.length);for(var a=0,e=new Array(n);a<n;a++)e[a]=t[a];return e}function qs(t,n,a,e,r,i,s){try{var o=t[i](s),c=o.value}catch(u){a(u);return}o.done?n(c):Promise.resolve(c).then(e,r)}function Ga(t){return function(){var n=this,a=arguments;return new Promise(function(e,r){var i=t.apply(n,a);function s(c){qs(i,e,r,s,o,"next",c)}function o(c){qs(i,e,r,s,o,"throw",c)}s(void 0)})}}function An(t,n,a){return _c()?An=Reflect.construct:An=function(r,i,s){var o=[null];o.push.apply(o,i);var c=Function.bind.apply(r,o),u=new c;return s&&Pr(u,s.prototype),u},An.apply(null,arguments)}function id(t,n){for(var a=0;a<n.length;a++){var e=n[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function ve(t,n,a){return n&&id(t.prototype,n),t}function H(){return H=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(t[e]=a[e])}return t},H.apply(this,arguments)}function Yi(t){return Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},Yi(t)}function ke(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&&Pr(t,n)}function M(t,n){return n!=null&&typeof Symbol<"u"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function ad(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Rr(t,n){if(t==null)return{};var a={},e=Object.keys(t),r,i;for(i=0;i<e.length;i++)r=e[i],!(n.indexOf(r)>=0)&&(a[r]=t[r]);return a}function Pr(t,n){return Pr=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Pr(t,n)}function $(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function sd(t,n){if(t){if(typeof t=="string")return Ws(t,n);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(a);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ws(t,n)}}function Mn(t){var n=typeof Map=="function"?new Map:void 0;return Mn=function(e){if(e===null||!ad(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return An(e,arguments,Yi(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Pr(r,e)},Mn(t)}function _c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_c=function(){return!!t})()}function E(t,n){var a=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a)return(a=a.call(t)).next.bind(a);if(Array.isArray(t)||(a=sd(t))||n){a&&(t=a);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}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 Or(t,n){var a,e,r,i,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(u){return function(l){return c([u,l])}}function c(u){if(a)throw new TypeError("Generator is already executing.");for(;s;)try{if(a=1,e&&(r=u[0]&2?e.return:u[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,u[1])).done)return r;switch(e=0,r&&(u=[u[0]&2,r.value]),u[0]){case 0:case 1:r=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,e=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){s=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){s.label=u[1];break}if(u[0]===6&&s.label<r[1]){s.label=r[1],r=u;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(u);break}r[2]&&s.ops.pop(),s.trys.pop();continue}u=n.call(t,s)}catch(l){u=[6,l],e=0}finally{a=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function mc(t){var n=typeof Symbol=="function"&&Symbol.iterator,a=n&&t[n],e=0;if(a)return a.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var od=Object.defineProperty,cd=function(t,n,a){return n in t?od(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a},T=function(t,n,a){return cd(t,(typeof n>"u"?"undefined":$(n))!=="symbol"?n+"":n,a)},Gs,ud=Object.defineProperty,ld=function(t,n,a){return n in t?ud(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a},js=function(t,n,a){return ld(t,(typeof n>"u"?"undefined":$(n))!=="symbol"?n+"":n,a)},_e=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}(_e||{}),Hs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Js={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qr={},dd=function(){return!!globalThis.Zone};function ja(t){if(Qr[t])return Qr[t];var n=globalThis[t],a=n.prototype,e=t in Hs?Hs[t]:void 0,r=!!(e&&e.every(function(l){var d,f;return!!((f=(d=Object.getOwnPropertyDescriptor(a,l))==null?void 0:d.get)!=null&&f.toString().includes("[native code]"))})),i=t in Js?Js[t]:void 0,s=!!(i&&i.every(function(l){var d;return typeof a[l]=="function"&&((d=a[l])==null?void 0:d.toString().includes("[native code]"))}));if(r&&s&&!dd())return Qr[t]=n.prototype,n.prototype;try{var o=document.createElement("iframe");document.body.appendChild(o);var c=o.contentWindow;if(!c)return n.prototype;var u=c[t].prototype;return document.body.removeChild(o),u?Qr[t]=u:a}catch{return a}}var Ei={};function dt(t,n,a){var e,r=t+"."+String(a);if(Ei[r])return Ei[r].call(n);var i=ja(t),s=(e=Object.getOwnPropertyDescriptor(i,a))==null?void 0:e.get;return s?(Ei[r]=s,s.call(n)):n[a]}var Ri={};function gc(t,n,a){var e=t+"."+String(a);if(Ri[e])return Ri[e].bind(n);var r=ja(t),i=r[a];return typeof i!="function"?n[a]:(Ri[e]=i,i.bind(n))}function fd(t){return dt("Node",t,"childNodes")}function hd(t){return dt("Node",t,"parentNode")}function pd(t){return dt("Node",t,"parentElement")}function _d(t){return dt("Node",t,"textContent")}function md(t,n){return gc("Node",t,"contains")(n)}function gd(t){return gc("Node",t,"getRootNode")()}function vd(t){return!t||!("host"in t)?null:dt("ShadowRoot",t,"host")}function yd(t){return t.styleSheets}function bd(t){return!t||!("shadowRoot"in t)?null:dt("Element",t,"shadowRoot")}function kd(t,n){return dt("Element",t,"querySelector")(n)}function Cd(t,n){return dt("Element",t,"querySelectorAll")(n)}function wd(){return ja("MutationObserver").constructor}function Sd(t,n,a){try{if(!(n in t))return function(){};var e=t[n],r=a(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch{return function(){}}}var be={childNodes:fd,parentNode:hd,parentElement:pd,textContent:_d,contains:md,getRootNode:gd,host:vd,styleSheets:yd,shadowRoot:bd,querySelector:kd,querySelectorAll:Cd,mutationObserver:wd,patch:Sd};function vc(t){return t.nodeType===t.ELEMENT_NODE}function kr(t){var n=t&&"host"in t&&"mode"in t&&be.host(t)||null;return!!(n&&"shadowRoot"in n&&be.shadowRoot(n)===t)}function Cr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Ad(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function Td(t){var n=t.cssText;if(n.split('"').length<3)return n;var a=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?a.push("layer"):t.layerName&&a.push("layer("+t.layerName+")"),t.supportsText&&a.push("supports("+t.supportsText+")"),t.media.length&&a.push(t.media.mediaText),a.join(" ")+";"}function Ki(t){try{var n=t.rules||t.cssRules;if(!n)return null;var a=t.href;!a&&t.ownerNode&&t.ownerNode.ownerDocument&&(a=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return yc(r,a)}).join("");return Ad(e)}catch{return null}}function yc(t,n){if(Rd(t)){var a;try{a=Ki(t.styleSheet)||Td(t)}catch{a=t.cssText}return t.styleSheet.href?Ln(a,t.styleSheet.href):a}else{var e=t.cssText;return Pd(t)&&t.selectorText.includes(":")&&(e=Ed(e)),n?Ln(e,n):e}}function Ed(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function Rd(t){return"styleSheet"in t}function Pd(t){return"selectorText"in t}var bc=function(){function t(){js(this,"idNodeMap",new Map),js(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 Od(){return new bc}function Dn(t){var n=t.element,a=t.maskInputOptions,e=t.tagName,r=t.type,i=t.value,s=t.maskInputFn,o=i||"",c=r&&Ot(r);return(a[e.toLowerCase()]||c&&a[c])&&(s?o=s(o,n):o="*".repeat(o.length)),o}function Ot(t){return t.toLowerCase()}var Zs="__rrweb_original__";function Id(t){var n=t.getContext("2d");if(!n)return!0;for(var a=50,e=0;e<t.width;e+=a)for(var r=0;r<t.height;r+=a){var i=n.getImageData,s=Zs in i?i[Zs]:i,o=new Uint32Array(s.call(n,e,r,Math.min(a,t.width-e),Math.min(a,t.height-r)).data.buffer);if(o.some(function(c){return c!==0}))return!1}return!0}function Bn(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Ot(n):null}function kc(t,n){var a;try{a=new URL(t,n??window.location.href)}catch{return null}var e=/\.([0-9a-z]+)(?:$)/i,r=a.pathname.match(e),i;return(i=r?.[1])!=null?i:null}function xd(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var Md=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Dd=/^(?:[a-z+]+:)?\/\//i,Bd=/^www\..*/i,Ld=/^(data:)([^,]*),(.*)/i;function Ln(t,n){return(t||"").replace(Md,function(a,e,r,i,s,o){var c=r||s||o,u=e||i||"";if(!c)return a;if(Dd.test(c)||Bd.test(c)||Ld.test(c))return"url("+u+c+u+")";if(c[0]==="/")return"url("+u+(xd(n)+c)+u+")";var l=n.split("/"),d=c.split("/");l.pop();for(var f=E(d),m;!(m=f()).done;){var _=m.value;_!=="."&&(_===".."?l.pop():l.push(_))}return"url("+u+l.join("/")+u+")"})}function en(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Nd(t,n,a){a===void 0&&(a=!1);var e=Array.from(n.childNodes),r=[],i=0;if(e.length>1&&t&&typeof t=="string"){for(var s=en(t,a),o=s.length/t.length,c=1;c<e.length;c++)if(e[c].textContent&&typeof e[c].textContent=="string"){for(var u=en(e[c].textContent,a),l=100,d=3;d<u.length&&(u[d].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,d),1)!==-1);d++);for(;d<u.length;d++){var f=u.substring(0,d),m=s.split(f),_=-1;if(m.length===2)_=m[0].length;else if(m.length>2&&m[0]===""&&e[c-1].textContent!=="")_=s.indexOf(f,1);else if(m.length===1){if(f=f.substring(0,f.length-1),m=s.split(f),m.length<=1)return r.push(t),r;d=l+1}else d===u.length-1&&(_=s.indexOf(f));if(m.length>=2&&d>l){var g=e[c-1].textContent;if(g&&typeof g=="string"){var p=en(g).length;_=s.indexOf(f,p)}_===-1&&(_=m[0].length)}if(_!==-1){for(var v=Math.floor(_/o);v>0&&v<t.length;){if(i+=1,i>50*e.length)return r.push(t),r;var y=en(t.substring(0,v),a);if(y.length===_){r.push(t.substring(0,v)),t=t.substring(v),s=s.substring(_);break}else y.length<_?v+=Math.max(1,Math.floor((_-y.length)/o)):v-=Math.max(1,Math.floor((y.length-_)*o))}break}}}}return r.push(t),r}function Fd(t,n){return Nd(t,n).join("/* rr_split */")}var $d=1,Ud=new RegExp("[^a-z0-9-_:]"),Ir=-2;function Cc(){return $d++}function Vd(t){if(M(t,HTMLFormElement))return"form";var n=Ot(t.tagName);return Ud.test(n)?"div":n}var Vt,Ys,zd=/^[^ \t\n\r\u000c]+/,Wd=/^[, \t\n\r\u000c]+/;function qd(t,n){if(n.trim()==="")return n;var a=0;function e(u){var l,d=u.exec(n.substring(a));return d?(l=d[0],a+=l.length,l):""}for(var r=[];e(Wd),!(a>=n.length);){var i=e(zd);if(i.slice(-1)===",")i=jt(t,i.substring(0,i.length-1)),r.push(i);else{var s="";i=jt(t,i);for(var o=!1;;){var c=n.charAt(a);if(c===""){r.push((i+s).trim());break}else if(o)c===")"&&(o=!1);else if(c===","){a+=1,r.push((i+s).trim());break}else c==="("&&(o=!0);s+=c,a+=1}}}return r.join(", ")}var Ks=new WeakMap;function jt(t,n){return!n||n.trim()===""?n:Ha(t,n)}function Gd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Ha(t,n){var a=Ks.get(t);if(a||(a=t.createElement("a"),Ks.set(t,a)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return a.setAttribute("href",n),a.href}function wc(t,n,a,e){return e&&(a==="src"||a==="href"&&!(n==="use"&&e[0]==="#")||a==="xlink:href"&&e[0]!=="#"||a==="background"&&(n==="table"||n==="td"||n==="th")?jt(t,e):a==="srcset"?qd(t,e):a==="style"?Ln(e,Ha(t)):n==="object"&&a==="data"?jt(t,e):e)}function Sc(t,n,a){return(t==="video"||t==="audio")&&n==="autoplay"}function jd(t,n,a){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(a)return t.matches(a)}catch{}return!1}function Nn(t,n,a){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return a?Nn(be.parentNode(t),n,a):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return a?Nn(be.parentNode(t),n,a):!1}function Ac(t,n,a,e){var r;if(vc(t)){if(r=t,!be.childNodes(r).length)return!1}else{if(be.parentElement(t)===null)return!1;r=be.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(Nn(r,n,e))return!0;if(a){if(e){if(r.closest(a))return!0}else if(r.matches(a))return!0}}catch{}return!1}function Hd(t,n,a){var e=t.contentWindow;if(e){var r=!1,i;try{i=e.document.readyState}catch{return}if(i!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},a);t.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var o="about:blank";if(e.location.href!==o||t.src===o||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function Jd(t,n,a){var e=!1,r;try{r=t.sheet}catch{return}if(!r){var i=setTimeout(function(){e||(n(),e=!0)},a);t.addEventListener("load",function(){clearTimeout(i),e=!0,n()})}}function Zd(t,n){var a=n.doc,e=n.mirror,r=n.blockClass,i=n.blockSelector,s=n.needsMask,o=n.inlineStylesheet,c=n.maskInputOptions,u=c===void 0?{}:c,l=n.maskTextFn,d=n.maskInputFn,f=n.dataURLOptions,m=f===void 0?{}:f,_=n.inlineImages,g=n.recordCanvas,p=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,b=n.cssCaptured,C=b===void 0?!1:b,w=Yd(a,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:_e.Document,childNodes:[],compatMode:t.compatMode}:{type:_e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:_e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return Xd(t,{doc:a,blockClass:r,blockSelector:i,inlineStylesheet:o,maskInputOptions:u,maskInputFn:d,dataURLOptions:m,inlineImages:_,recordCanvas:g,keepIframeSrcFn:p,newlyAddedElement:y,rootId:w});case t.TEXT_NODE:return Kd(t,{doc:a,needsMask:s,maskTextFn:l,rootId:w,cssCaptured:C});case t.CDATA_SECTION_NODE:return{type:_e.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:_e.Comment,textContent:be.textContent(t)||"",rootId:w};default:return!1}}function Yd(t,n){if(n.hasNode(t)){var a=n.getId(t);return a===1?void 0:a}}function Kd(t,n){var a=n.needsMask,e=n.maskTextFn,r=n.rootId,i=n.cssCaptured,s=be.parentNode(t),o=s&&s.tagName,c="",u=o==="STYLE"?!0:void 0,l=o==="SCRIPT"?!0:void 0;return l?c="SCRIPT_PLACEHOLDER":i||(c=be.textContent(t),u&&c&&(c=Ln(c,Ha(n.doc)))),!u&&!l&&c&&a&&(c=e?e(c,be.parentElement(t)):c.replace(/[\S]/g,"*")),{type:_e.Text,textContent:c||"",rootId:r}}function Xd(t,n){for(var a=n.doc,e=n.blockClass,r=n.blockSelector,i=n.inlineStylesheet,s=n.maskInputOptions,o=s===void 0?{}:s,c=n.maskInputFn,u=n.dataURLOptions,l=u===void 0?{}:u,d=n.inlineImages,f=n.recordCanvas,m=n.keepIframeSrcFn,_=n.newlyAddedElement,g=_===void 0?!1:_,p=n.rootId,v=jd(t,e,r),y=Vd(t),b={},C=t.attributes.length,w=0;w<C;w++){var S=t.attributes[w];Sc(y,S.name,S.value)||(b[S.name]=wc(a,y,Ot(S.name),S.value))}if(y==="link"&&i){var R=Array.from(a.styleSheets).find(function(Ie){return Ie.href===t.href}),P=null;R&&(P=Ki(R)),P&&(delete b.rel,delete b.href,b._cssText=P)}if(y==="style"&&t.sheet){var O=Ki(t.sheet);O&&(t.childNodes.length>1&&(O=Fd(O,t)),b._cssText=O)}if(y==="input"||y==="textarea"||y==="select"){var L=t.value,x=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&L?b.value=Dn({element:t,type:Bn(t),tagName:y,value:L,maskInputOptions:o,maskInputFn:c}):x&&(b.checked=x)}if(y==="option"&&(t.selected&&!o.select?b.selected=!0:delete b.selected),y==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),y==="canvas"&&f){if(t.__context==="2d")Id(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var F=t.toDataURL(l.type,l.quality),J=a.createElement("canvas");J.width=t.width,J.height=t.height;var Te=J.toDataURL(l.type,l.quality);F!==Te&&(b.rr_dataURL=F)}}if(y==="img"&&d){Vt||(Vt=a.createElement("canvas"),Ys=Vt.getContext("2d"));var Y=t,Pe=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",Ce=Y.crossOrigin,oe=function(){Y.removeEventListener("load",oe);try{Vt.width=Y.naturalWidth,Vt.height=Y.naturalHeight,Ys.drawImage(Y,0,0),b.rr_dataURL=Vt.toDataURL(l.type,l.quality)}catch(Ie){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous",Y.complete&&Y.naturalWidth!==0?oe():Y.addEventListener("load",oe);return}else console.warn("Cannot inline img src="+Pe+"! Error: "+Ie)}Y.crossOrigin==="anonymous"&&(Ce?b.crossOrigin=Ce:Y.removeAttribute("crossorigin"))};Y.complete&&Y.naturalWidth!==0?oe():Y.addEventListener("load",oe)}if(y==="audio"||y==="video"){var ge=b;ge.rr_mediaState=t.paused?"paused":"played",ge.rr_mediaCurrentTime=t.currentTime,ge.rr_mediaPlaybackRate=t.playbackRate,ge.rr_mediaMuted=t.muted,ge.rr_mediaLoop=t.loop,ge.rr_mediaVolume=t.volume}if(g||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),v){var Oe=t.getBoundingClientRect(),yt=Oe.width,$e=Oe.height;b={class:b.class,rr_width:""+yt+"px",rr_height:""+$e+"px"}}y==="iframe"&&!m(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Nt;try{customElements.get(y)&&(Nt=!0)}catch{}return{type:_e.Element,tagName:y,attributes:b,childNodes:[],isSVG:Gd(t)||void 0,needBlock:v,rootId:p,isCustom:Nt}}function ee(t){return t==null?"":t.toLowerCase()}function Qd(t,n){if(n.comment&&t.type===_e.Comment)return!0;if(t.type===_e.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&kc(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(ee(t.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(t.attributes.name)==="application-name"||ee(t.attributes.rel)==="icon"||ee(t.attributes.rel)==="apple-touch-icon"||ee(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&ee(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(t.attributes.property).match(/^(og|twitter|fb):/)||ee(t.attributes.name).match(/^(og|twitter):/)||ee(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(t.attributes.name)==="robots"||ee(t.attributes.name)==="googlebot"||ee(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(t.attributes.name)==="author"||ee(t.attributes.name)==="generator"||ee(t.attributes.name)==="framework"||ee(t.attributes.name)==="publisher"||ee(t.attributes.name)==="progid"||ee(t.attributes.property).match(/^article:/)||ee(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(t.attributes.name)==="google-site-verification"||ee(t.attributes.name)==="yandex-verification"||ee(t.attributes.name)==="csrf-token"||ee(t.attributes.name)==="p:domain_verify"||ee(t.attributes.name)==="verify-v1"||ee(t.attributes.name)==="verification"||ee(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ht(t,n){var a=n.doc,e=n.mirror,r=n.blockClass,i=n.blockSelector,s=n.maskTextClass,o=n.maskTextSelector,c=n.skipChild,u=c===void 0?!1:c,l=n.inlineStylesheet,d=l===void 0?!0:l,f=n.maskInputOptions,m=f===void 0?{}:f,_=n.maskTextFn,g=n.maskInputFn,p=n.slimDOMOptions,v=n.dataURLOptions,y=v===void 0?{}:v,b=n.inlineImages,C=b===void 0?!1:b,w=n.recordCanvas,S=w===void 0?!1:w,R=n.onSerialize,P=n.onIframeLoad,O=n.iframeLoadTimeout,L=O===void 0?5e3:O,x=n.onStylesheetLoad,F=n.stylesheetLoadTimeout,J=F===void 0?5e3:F,Te=n.keepIframeSrcFn,Y=Te===void 0?function(){return!1}:Te,Pe=n.newlyAddedElement,Ce=Pe===void 0?!1:Pe,oe=n.cssCaptured,ge=oe===void 0?!1:oe,Oe=n.needsMask,yt=n.preserveWhiteSpace,$e=yt===void 0?!0:yt;if(!Oe){var Nt=Oe===void 0;Oe=Ac(t,s,o,Nt)}var Ie=Zd(t,{doc:a,mirror:e,blockClass:r,blockSelector:i,needsMask:Oe,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:g,dataURLOptions:y,inlineImages:C,recordCanvas:S,keepIframeSrcFn:Y,newlyAddedElement:Ce,cssCaptured:ge});if(!Ie)return console.warn(t,"not serialized"),null;var bt;e.hasNode(t)?bt=e.getId(t):Qd(Ie,p)||!$e&&Ie.type===_e.Text&&!Ie.textContent.replace(/^\s+|\s+$/gm,"").length?bt=Ir:bt=Cc();var Z=Object.assign(Ie,{id:bt});if(e.add(t,Z),bt===Ir)return null;R&&R(t);var kt=!u;if(Z.type===_e.Element){kt=kt&&!Z.needBlock,delete Z.needBlock;var Ct=be.shadowRoot(t);Ct&&Cr(Ct)&&(Z.isShadowHost=!0)}if((Z.type===_e.Document||Z.type===_e.Element)&&kt){p.headWhitespace&&Z.type===_e.Element&&Z.tagName==="head"&&($e=!1);var Ft={doc:a,mirror:e,blockClass:r,blockSelector:i,needsMask:Oe,maskTextClass:s,maskTextSelector:o,skipChild:u,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:g,slimDOMOptions:p,dataURLOptions:y,inlineImages:C,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:R,onIframeLoad:P,iframeLoadTimeout:L,onStylesheetLoad:x,stylesheetLoadTimeout:J,keepIframeSrcFn:Y,cssCaptured:!1};if(!(Z.type===_e.Element&&Z.tagName==="textarea"&&Z.attributes.value!==void 0)){Z.type===_e.Element&&Z.attributes._cssText!==void 0&&typeof Z.attributes._cssText=="string"&&(Ft.cssCaptured=!0);for(var dr=E(Array.from(be.childNodes(t))),fr;!(fr=dr()).done;){var wi=fr.value,Yr=Ht(wi,Ft);Yr&&Z.childNodes.push(Yr)}}var nt=null;if(vc(t)&&(nt=be.shadowRoot(t)))for(var wt=E(Array.from(be.childNodes(nt))),$t;!($t=wt()).done;){var hr=$t.value,Ut=Ht(hr,Ft);Ut&&(Cr(nt)&&(Ut.isShadow=!0),Z.childNodes.push(Ut))}}var St=be.parentNode(t);return St&&kr(St)&&Cr(St)&&(Z.isShadow=!0),Z.type===_e.Element&&Z.tagName==="iframe"&&Hd(t,function(){var He=t.contentDocument;if(He&&P){var At=Ht(He,{doc:He,mirror:e,blockClass:r,blockSelector:i,needsMask:Oe,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:g,slimDOMOptions:p,dataURLOptions:y,inlineImages:C,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:R,onIframeLoad:P,iframeLoadTimeout:L,onStylesheetLoad:x,stylesheetLoadTimeout:J,keepIframeSrcFn:Y});At&&P(t,At)}},L),Z.type===_e.Element&&Z.tagName==="link"&&typeof Z.attributes.rel=="string"&&(Z.attributes.rel==="stylesheet"||Z.attributes.rel==="preload"&&typeof Z.attributes.href=="string"&&kc(Z.attributes.href)==="css")&&Jd(t,function(){if(x){var He=Ht(t,{doc:a,mirror:e,blockClass:r,blockSelector:i,needsMask:Oe,maskTextClass:s,maskTextSelector:o,skipChild:!1,inlineStylesheet:d,maskInputOptions:m,maskTextFn:_,maskInputFn:g,slimDOMOptions:p,dataURLOptions:y,inlineImages:C,recordCanvas:S,preserveWhiteSpace:$e,onSerialize:R,onIframeLoad:P,iframeLoadTimeout:L,onStylesheetLoad:x,stylesheetLoadTimeout:J,keepIframeSrcFn:Y});He&&x(t,He)}},J),Z}function ef(t,n){var a=n||{},e=a.mirror,r=e===void 0?new bc:e,i=a.blockClass,s=i===void 0?"rr-block":i,o=a.blockSelector,c=o===void 0?null:o,u=a.maskTextClass,l=u===void 0?"rr-mask":u,d=a.maskTextSelector,f=d===void 0?null:d,m=a.inlineStylesheet,_=m===void 0?!0:m,g=a.inlineImages,p=g===void 0?!1:g,v=a.recordCanvas,y=v===void 0?!1:v,b=a.maskAllInputs,C=b===void 0?!1:b,w=a.maskTextFn,S=a.maskInputFn,R=a.slimDOM,P=R===void 0?!1:R,O=a.dataURLOptions,L=a.preserveWhiteSpace,x=a.onSerialize,F=a.onIframeLoad,J=a.iframeLoadTimeout,Te=a.onStylesheetLoad,Y=a.stylesheetLoadTimeout,Pe=a.keepIframeSrcFn,Ce=Pe===void 0?function(){return!1}:Pe,oe=C===!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}:C===!1?{password:!0}:C,ge=P===!0||P==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:P==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:P===!1?{}:P;return Ht(t,{doc:t,mirror:r,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:f,skipChild:!1,inlineStylesheet:_,maskInputOptions:oe,maskTextFn:w,maskInputFn:S,slimDOMOptions:ge,dataURLOptions:O,inlineImages:p,recordCanvas:y,preserveWhiteSpace:L,onSerialize:x,onIframeLoad:F,iframeLoadTimeout:J,onStylesheetLoad:Te,stylesheetLoadTimeout:Y,keepIframeSrcFn:Ce,newlyAddedElement:!1})}function tf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function rf(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var a=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),a}var Ja={exports:{}},re=String,Tc=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re}};Ja.exports=Tc();Ja.exports.createColors=Tc;var nf=Ja.exports,af={},sf=Object.freeze(Object.defineProperty({__proto__:null,default:af},Symbol.toStringTag,{value:"Module"})),le=rf(sf),Xs=nf,Qs=le,Xi=function(t){ke(n,t);function n(e,r,i,s,o,c){var u;return u=t.call(this,e)||this,u.name="CssSyntaxError",u.reason=e,o&&(u.file=o),s&&(u.source=s),c&&(u.plugin=c),typeof r<"u"&&typeof i<"u"&&(typeof r=="number"?(u.line=r,u.column=i):(u.line=r.line,u.column=r.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,n),u}var a=n.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},a.showSourceCode=function(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Xs.isColorSupported),Qs&&r&&(s=Qs(s));var o=s.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,o.length),l=String(u).length,d,f;if(r){var m=Xs.createColors(!0),_=m.bold,g=m.gray,p=m.red;d=function(v){return _(p(v))},f=function(v){return g(v)}}else d=f=function(v){return v};return o.slice(c,u).map(function(v,y){var b=c+1+y,C=" "+(" "+b).slice(-l)+" | ";if(b===i.line){var w=f(C.replace(/\d/g," "))+v.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+f(C)+v+`
|
|
2
|
-
`+w+d("^")}return" "+f(C)+v}).join(`
|
|
3
|
-
`)},a.toString=function(){var r=this.showSourceCode();return r&&(r=`
|
|
4
|
-
|
|
5
|
-
`+r+`
|
|
6
|
-
`),this.name+": "+this.message+r},n}(Mn(Error)),Za=Xi;Xi.default=Xi;var ft={};ft.isClean=Symbol("isClean");ft.my=Symbol("my");var eo={after:`
|
|
7
|
-
`,beforeClose:`
|
|
8
|
-
`,beforeComment:`
|
|
9
|
-
`,beforeDecl:`
|
|
10
|
-
`,beforeOpen:" ",beforeRule:`
|
|
11
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function of(t){return t[0].toUpperCase()+t.slice(1)}var Qi=function(){function t(a){this.builder=a}var n=t.prototype;return n.atrule=function(e,r){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var o=(e.raws.between||"")+(r?";":"");this.builder(i+s+o,e)}},n.beforeAfter=function(e,r){var i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");for(var s=e.parent,o=0;s&&s.type!=="root";)o+=1,s=s.parent;if(i.includes(`
|
|
12
|
-
`)){var c=this.raw(e,null,"indent");if(c.length)for(var u=0;u<o;u++)i+=c}return i},n.block=function(e,r){var i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),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 o=e.nodes[s],c=this.raw(o,"before");c&&this.builder(c),this.stringify(o,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],typeof s<"u"))return s;var o=e.parent;if(i==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return eo[i];var c=e.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[i]<"u")return c.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var u="raw"+of(i);return this[u]?s=this[u](c,e):c.walk(function(l){if(s=l.raws[r],typeof s<"u")return!1}),typeof s>"u"&&(s=eo[i]),c.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return r=i.raws.after,r.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(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
|
|
14
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?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(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
|
|
15
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?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,typeof r<"u"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return r=i.raws.before,r.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(typeof i.raws.between<"u")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,typeof r<"u"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before<"u"){var o=i.raws.before.split(`
|
|
17
|
-
`);return r=o[o.length-1],r=r.replace(/\S/g,""),!1}}),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,typeof r<"u"))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}(),Ec=Qi;Qi.default=Qi;var cf=Ec;function ea(t,n){var a=new cf(n);a.stringify(t)}var oi=ea;ea.default=ea;var tn=ft.isClean,uf=ft.my,lf=Za,df=Ec,ff=oi;function ta(t,n){var a=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],i=typeof r>"u"?"undefined":$(r);e==="parent"&&i==="object"?n&&(a[e]=n):e==="source"?a[e]=r:Array.isArray(r)?a[e]=r.map(function(s){return ta(s,a)}):(i==="object"&&r!==null&&(r=ta(r)),a[e]=r)}return a}var ra=function(){function t(a){a===void 0&&(a={}),this.raws={},this[tn]=!1,this[uf]=!0;for(var e in a)if(e==="nodes"){this.nodes=[];for(var r=E(a[e]),i;!(i=r()).done;){var s=i.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=a[e]}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){e===void 0&&(e={});for(var r in 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=ta(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,o=i.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:s.column,line:s.line},r)}return new lf(e)},n.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:i==="root"?function(){return r.root().toProxy()}:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[tn]){this[tn]=!1;for(var e=this;e=e.parent;)e[tn]=!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){r=this.toString();var s=r.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,o=this.source.start.line,c=0;c<e;c++)i[c]===`
|
|
18
|
-
`?(s=1,o+=1):s+=1;return{column:s,line:o}},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(),o=s.indexOf(e.word);o!==-1&&(r=this.positionInside(o,s),i=this.positionInside(o+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){var i=new df;return i.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=this,o=!1,c=E(r),u;!(u=c()).done;){var l=u.value;l===this?o=!0:o?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}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 o=0;for(var c in this)if(Object.prototype.hasOwnProperty.call(this,c)&&!(c==="parent"||c==="proxyCache")){var u=this[c];if(Array.isArray(u))i[c]=u.map(function(d){return(typeof d>"u"?"undefined":$(d))==="object"&&d.toJSON?d.toJSON(null,r):d});else if((typeof u>"u"?"undefined":$(u))==="object"&&u.toJSON)i[c]=u.toJSON(null,r);else if(c==="source"){var l=r.get(u.input);l==null&&(l=o,r.set(u.input,o),o++),i[c]={end:u.end,inputId:l,start:u.start}}else i[c]=u}return s&&(i.inputs=[].concat(r.keys()).map(function(d){return d.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=ff),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 o in i)s[o]=i[o];return e.warn(r,s)},ve(t,[{key:"proxyOf",get:function(){return this}}]),t}(),ci=ra;ra.default=ra;var hf=ci,na=function(t){ke(n,t);function n(a){var e;return a&&typeof a.value<"u"&&typeof a.value!="string"&&(a=H({},a,{value:String(a.value)})),e=t.call(this,a)||this,e.type="decl",e}return ve(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(hf),ui=na;na.default=na;var pf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_f=function(t){t===void 0&&(t=21);for(var n="",a=t;a--;)n+=pf[Math.random()*64|0];return n},mf={nanoid:_f},to=le.SourceMapConsumer,ro=le.SourceMapGenerator,gf=le.existsSync,vf=le.readFileSync,Pi=le.dirname,yf=le.join;function bf(t){return ct?ct.from(t,"base64").toString():window.atob(t)}var ia=function(){function t(a,e){if(e.map!==!1){this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Pi(this.mapFile)),i&&(this.text=i)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new to(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return bf(e.substr(RegExp.lastMatch.length));var c=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e>"u"?"undefined":$(e))!=="object"?!1: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=Pi(e),gf(e))return this.mapFile=e,vf(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"){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(M(r,to))return ro.fromSourceMap(r).toString();if(M(r,ro))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=yf(Pi(e),o)),this.loadFile(o)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),Rc=ia;ia.default=ia;var kf=le.SourceMapConsumer,Cf=le.SourceMapGenerator,no=le.fileURLToPath,rn=le.pathToFileURL,aa=le.isAbsolute,sa=le.resolve,wf=mf.nanoid,Oi=le,io=Za,Sf=Rc,Ii=Symbol("fromOffsetCache"),Af=!!(kf&&Cf),ao=!!(sa&&aa),Fn=function(){function t(a,e){if(e===void 0&&(e={}),a===null||typeof a>"u"||(typeof a>"u"?"undefined":$(a))==="object"&&!a.toString)throw new Error("PostCSS received "+a+" instead of CSS string");if(this.css=a.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!ao||/^\w+:\/\//.test(e.from)||aa(e.from)?this.file=e.from:this.file=sa(e.from)),ao&&Af){var r=new Sf(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+wf(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,i,s){s===void 0&&(s={});var o,c,u;if(r&&(typeof r>"u"?"undefined":$(r))==="object"){var l=r,d=i;if(typeof l.offset=="number"){var f=this.fromOffset(l.offset);r=f.line,i=f.col}else r=l.line,i=l.column;if(typeof d.offset=="number"){var m=this.fromOffset(d.offset);c=m.line,u=m.col}else c=d.line,u=d.column}else if(!i){var _=this.fromOffset(r);r=_.line,i=_.col}var g=this.origin(r,i,c,u);return g?o=new io(e,g.endLine===void 0?g.line:{column:g.column,line:g.line},g.endLine===void 0?g.column:{column:g.endColumn,line:g.endLine},g.source,g.file,s.plugin):o=new io(e,c===void 0?r:{column:i,line:r},c===void 0?i:{column:u,line:c},this.css,this.file,s.plugin),o.input={column:i,endColumn:u,endLine:c,line:r,source:this.css},this.file&&(rn&&(o.input.url=rn(this.file).toString()),o.input.file=this.file),o},n.fromOffset=function(e){var r,i;if(this[Ii])i=this[Ii];else{var s=this.css.split(`
|
|
19
|
-
`);i=new Array(s.length);for(var o=0,c=0,u=s.length;c<u;c++)i[c]=o,o+=s[c].length+1;this[Ii]=i}r=i[i.length-1];var l=0;if(e>=r)l=i.length-1;else for(var d=i.length-2,f;l<d;)if(f=l+(d-l>>1),e<i[f])d=f-1;else if(e>=i[f+1])l=f+1;else{l=f;break}return{col:e-i[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:sa(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var o=this.map.consumer(),c=o.originalPositionFor({column:r,line:e});if(!c.source)return!1;var u;typeof i=="number"&&(u=o.originalPositionFor({column:s,line:i}));var l;aa(c.source)?l=rn(c.source):l=new URL(c.source,this.map.consumer().sourceRoot||rn(this.map.mapFile));var d={column:c.column,endColumn:u&&u.column,endLine:u&&u.line,line:c.line,url:l.toString()};if(l.protocol==="file:")if(no)d.file=no(l);else throw new Error("file: protocol is not available in this PostCSS build");var f=o.sourceContentFor(c.source);return f&&(d.source=f),d},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=H({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ve(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),li=Fn;Fn.default=Fn;Oi&&Oi.registerInput&&Oi.registerInput(Fn);var Pc=le.SourceMapConsumer,Tn=le.SourceMapGenerator,En=le.dirname,Oc=le.relative,Ic=le.resolve,xc=le.sep,so=le.pathToFileURL,Tf=li,Ef=!!(Pc&&Tn),Rf=!!(En&&Ic&&Oc&&xc),Pf=function(){function t(a,e,r,i){this.stringify=a,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=i,this.originalCSS=i,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;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=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=E(this.previous()),r;!(r=e()).done;){var i=r.value,s=this.toUrl(this.path(i.file)),o=i.root||En(i.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new Pc(i.text),c.sourcesContent&&(c.sourcesContent=null)):c=i.consumer(),this.map.applySourceMap(c,s,this.toUrl(this.path(o)))}},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],e.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(),Rf&&Ef&&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=Tn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Tn({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 Tn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,s="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},c,u;this.stringify(this.root,function(l,d,f){if(e.css+=l,d&&f!=="end"&&(o.generated.line=r,o.generated.column=i-1,d.source&&d.source.start?(o.source=e.sourcePath(d),o.original.line=d.source.start.line,o.original.column=d.source.start.column-1,e.map.addMapping(o)):(o.source=s,o.original.line=1,o.original.column=0,e.map.addMapping(o))),c=l.match(/\n/g),c?(r+=c.length,u=l.lastIndexOf(`
|
|
23
|
-
`),i=l.length-u):i+=l.length,d&&f!=="start"){var m=d.parent||{raws:{}},_=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!_||d!==m.last||m.raws.semicolon)&&(d.source&&d.source.end?(o.source=e.sourcePath(d),o.original.line=d.source.end.line,o.original.column=d.source.end.column-1,o.generated.line=r,o.generated.column=i-2,e.map.addMapping(o)):(o.source=s,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=i-1,e.map.addMapping(o)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},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?En(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=En(Ic(i,this.mapOpts.annotation)));var s=Oc(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 Tf(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 o=s.source.input.from;if(o&&!r[o]){r[o]=!0;var c=e.usesFileUrls?e.toFileUrl(o):e.toUrl(e.path(o));e.map.setSourceContent(c,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 ct?ct.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(so){var i=so(e).toString();return this.memoizedFileURLs.set(e,i),i}else 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;xc==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),Mc=Pf,Of=ci,oa=function(t){ke(n,t);function n(a){var e;return e=t.call(this,a)||this,e.type="comment",e}return n}(Of),di=oa;oa.default=oa;var Dc=ft.isClean,Bc=ft.my,Lc=ui,Nc=di,If=ci,Fc,Ya,Ka,$c;function Uc(t){return t.map(function(n){return n.nodes&&(n.nodes=Uc(n.nodes)),delete n.source,n})}function Vc(t){if(t[Dc]=!1,t.proxyOf.nodes)for(var n=E(t.proxyOf.nodes),a;!(a=n()).done;){var e=a.value;Vc(e)}}var Ke=function(t){ke(n,t);function n(){return t.apply(this,arguments)||this}var a=n.prototype;return a.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var o=E(i),c;!(c=o()).done;)for(var u=c.value,l=this.normalize(u,this.last),d=E(l),f;!(f=d()).done;){var m=f.value;this.proxyOf.nodes.push(m)}return this.markDirty(),this},a.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i=E(this.nodes),s;!(s=i()).done;){var o=s.value;o.cleanRaws(r)}},a.each=function(r){if(this.proxyOf.nodes){for(var i=this.getIterator(),s,o;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],o=r(this.proxyOf.nodes[s],s),o!==!1);)this.indexes[i]+=1;return delete this.indexes[i],o}},a.every=function(r){return this.nodes.every(r)},a.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},a.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:i[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];var l;return(l=i)[s].apply(l,[].concat(c.map(function(d){return typeof d=="function"?function(f,m){return d(f.toProxy(),m)}:d})))}:s==="every"||s==="some"?function(o){return i[s](function(c){for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return o.apply(void 0,[].concat([c.toProxy()],l))})}:s==="root"?function(){return i.root().toProxy()}:s==="nodes"?i.nodes.map(function(o){return o.toProxy()}):s==="first"||s==="last"?i[s].toProxy():i[s]:i[s]},set:function(i,s,o){return i[s]===o||(i[s]=o,(s==="name"||s==="params"||s==="selector")&&i.markDirty()),!0}}},a.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},a.insertAfter=function(r,i){var s=this.index(r),o=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var c=E(o),u;!(u=c()).done;){var l=u.value;this.proxyOf.nodes.splice(s+1,0,l)}var d;for(var f in this.indexes)d=this.indexes[f],s<d&&(this.indexes[f]=d+o.length);return this.markDirty(),this},a.insertBefore=function(r,i){var s=this.index(r),o=s===0?"prepend":!1,c=this.normalize(i,this.proxyOf.nodes[s],o).reverse();s=this.index(r);for(var u=E(c),l;!(l=u()).done;){var d=l.value;this.proxyOf.nodes.splice(s,0,d)}var f;for(var m in this.indexes)f=this.indexes[m],s<=f&&(this.indexes[m]=f+c.length);return this.markDirty(),this},a.normalize=function(r,i){var s=this;if(typeof r=="string")r=Uc(Fc(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var o=E(r),c;!(c=o()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=E(r),d;!(d=l()).done;){var f=d.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Lc(r)]}else if(r.selector)r=[new Ya(r)];else if(r.name)r=[new Ka(r)];else if(r.text)r=[new Nc(r)];else throw new Error("Unknown node type in node creation");var m=r.map(function(_){return _[Bc]||n.rebuild(_),_=_.proxyOf,_.parent&&_.parent.removeChild(_),_[Dc]&&Vc(_),typeof _.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(_.raws.before=i.raws.before.replace(/\S/g,"")),_.parent=s.proxyOf,_});return m},a.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i=i.reverse();for(var o=E(i),c;!(c=o()).done;){for(var u=c.value,l=this.normalize(u,this.first,"prepend").reverse(),d=E(l),f;!(f=d()).done;){var m=f.value;this.proxyOf.nodes.unshift(m)}for(var _ in this.indexes)this.indexes[_]=this.indexes[_]+l.length}return this.markDirty(),this},a.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},a.removeAll=function(){for(var r=E(this.proxyOf.nodes),i;!(i=r()).done;){var s=i.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},a.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var i;for(var s in this.indexes)i=this.indexes[s],i>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},a.replaceValues=function(r,i,s){return s||(s=i,i={}),this.walkDecls(function(o){i.props&&!i.props.includes(o.prop)||i.fast&&!o.value.includes(i.fast)||(o.value=o.value.replace(r,s))}),this.markDirty(),this},a.some=function(r){return this.nodes.some(r)},a.walk=function(r){return this.each(function(i,s){var o;try{o=r(i,s)}catch(c){throw i.addToError(c)}return o!==!1&&i.walk&&(o=i.walk(r)),o})},a.walkAtRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,o){if(s.type==="atrule"&&r.test(s.name))return i(s,o)}):this.walk(function(s,o){if(s.type==="atrule"&&s.name===r)return i(s,o)}):(i=r,this.walk(function(s,o){if(s.type==="atrule")return i(s,o)}))},a.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},a.walkDecls=function(r,i){return i?M(r,RegExp)?this.walk(function(s,o){if(s.type==="decl"&&r.test(s.prop))return i(s,o)}):this.walk(function(s,o){if(s.type==="decl"&&s.prop===r)return i(s,o)}):(i=r,this.walk(function(s,o){if(s.type==="decl")return i(s,o)}))},a.walkRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,o){if(s.type==="rule"&&r.test(s.selector))return i(s,o)}):this.walk(function(s,o){if(s.type==="rule"&&s.selector===r)return i(s,o)}):(i=r,this.walk(function(s,o){if(s.type==="rule")return i(s,o)}))},ve(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}(If);Ke.registerParse=function(t){Fc=t};Ke.registerRule=function(t){Ya=t};Ke.registerAtRule=function(t){Ka=t};Ke.registerRoot=function(t){$c=t};var Mt=Ke;Ke.default=Ke;Ke.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ka.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ya.prototype):t.type==="decl"?Object.setPrototypeOf(t,Lc.prototype):t.type==="comment"?Object.setPrototypeOf(t,Nc.prototype):t.type==="root"&&Object.setPrototypeOf(t,$c.prototype),t[Bc]=!0,t.nodes&&t.nodes.forEach(function(n){Ke.rebuild(n)})};var xf=Mt,zc,Wc,xr=function(t){ke(n,t);function n(e){var r;return r=t.call(this,H({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var a=n.prototype;return a.toResult=function(r){r===void 0&&(r={});var i=new zc(new Wc,this,r);return i.stringify()},n}(xf);xr.registerLazyResult=function(t){zc=t};xr.registerProcessor=function(t){Wc=t};var Xa=xr;xr.default=xr;var ca=function(){function t(a,e){if(e===void 0&&(e={}),this.type="warning",this.text=a,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]}var n=t.prototype;return n.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}(),qc=ca;ca.default=ca;var Mf=qc,ua=function(){function t(a,e,r){this.processor=a,this.messages=[],this.root=e,this.opts=r,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 Mf(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ve(t,[{key:"content",get:function(){return this.css}}]),t}(),Qa=ua;ua.default=ua;var xi=39,oo=34,nn=92,co=47,an=10,mr=32,sn=12,on=9,cn=13,Df=91,Bf=93,Lf=40,Nf=41,Ff=123,$f=125,Uf=59,Vf=42,zf=58,Wf=64,un=/[\t\n\f\r "#'()/;[\\\]{}]/g,ln=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qf=/.[\r\n"'(/\\]/,uo=/[\da-f]/i,Gf=function(n,a){a===void 0&&(a={});var e=n.css.valueOf(),r=a.ignoreErrors,i,s,o,c,u,l,d,f,m,_,g=e.length,p=0,v=[],y=[];function b(){return p}function C(P){throw n.error("Unclosed "+P,p)}function w(){return y.length===0&&p>=g}function S(P){if(y.length)return y.pop();if(!(p>=g)){var O=P?P.ignoreUnclosed:!1;switch(i=e.charCodeAt(p),i){case an:case mr:case on:case cn:case sn:{s=p;do s+=1,i=e.charCodeAt(s);while(i===mr||i===an||i===on||i===cn||i===sn);_=["space",e.slice(p,s)],p=s-1;break}case Df:case Bf:case Ff:case $f:case zf:case Uf:case Nf:{var L=String.fromCharCode(i);_=[L,L,p];break}case Lf:{if(f=v.length?v.pop()[1]:"",m=e.charCodeAt(p+1),f==="url"&&m!==xi&&m!==oo&&m!==mr&&m!==an&&m!==on&&m!==sn&&m!==cn){s=p;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||O){s=p;break}else C("bracket");for(d=s;e.charCodeAt(d-1)===nn;)d-=1,l=!l}while(l);_=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),c=e.slice(p,s+1),s===-1||qf.test(c)?_=["(","(",p]:(_=["brackets",c,p,s],p=s);break}case xi:case oo:{o=i===xi?"'":'"',s=p;do{if(l=!1,s=e.indexOf(o,s+1),s===-1)if(r||O){s=p+1;break}else C("string");for(d=s;e.charCodeAt(d-1)===nn;)d-=1,l=!l}while(l);_=["string",e.slice(p,s+1),p,s],p=s;break}case Wf:{un.lastIndex=p+1,un.test(e),un.lastIndex===0?s=e.length-1:s=un.lastIndex-2,_=["at-word",e.slice(p,s+1),p,s],p=s;break}case nn:{for(s=p,u=!0;e.charCodeAt(s+1)===nn;)s+=1,u=!u;if(i=e.charCodeAt(s+1),u&&i!==co&&i!==mr&&i!==an&&i!==on&&i!==cn&&i!==sn&&(s+=1,uo.test(e.charAt(s)))){for(;uo.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===mr&&(s+=1)}_=["word",e.slice(p,s+1),p,s],p=s;break}default:{i===co&&e.charCodeAt(p+1)===Vf?(s=e.indexOf("*/",p+2)+1,s===0&&(r||O?s=e.length:C("comment")),_=["comment",e.slice(p,s+1),p,s],p=s):(ln.lastIndex=p+1,ln.test(e),ln.lastIndex===0?s=e.length-1:s=ln.lastIndex-2,_=["word",e.slice(p,s+1),p,s],v.push(_),p=s);break}}return p++,_}}function R(P){y.push(P)}return{back:R,endOfFile:w,nextToken:S,position:b}},Gc=Mt,$n=function(t){ke(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var a=n.prototype;return a.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=t.prototype.append).call.apply(o,[].concat([this],i))},a.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=t.prototype.prepend).call.apply(o,[].concat([this],i))},n}(Gc),es=$n;$n.default=$n;Gc.registerAtRule($n);var jc=Mt,Hc,Jc,Xt=function(t){ke(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var a=n.prototype;return a.normalize=function(r,i,s){var o=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 c=E(o),u;!(u=c()).done;){var l=u.value;l.raws.before=i.raws.before}}return o},a.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)},a.toResult=function(r){r===void 0&&(r={});var i=new Hc(new Jc,this,r);return i.stringify()},n}(jc);Xt.registerLazyResult=function(t){Hc=t};Xt.registerProcessor=function(t){Jc=t};var jr=Xt;Xt.default=Xt;jc.registerRoot(Xt);var Mr={comma:function(n){return Mr.split(n,[","],!0)},space:function(n){var a=[" ",`
|
|
24
|
-
`," "];return Mr.split(n,a)},split:function(n,a,e){for(var r=[],i="",s=!1,o=0,c=!1,u="",l=!1,d=E(n),f;!(f=d()).done;){var m=f.value;l?l=!1:m==="\\"?l=!0:c?m===u&&(c=!1):m==='"'||m==="'"?(c=!0,u=m):m==="("?o+=1:m===")"?o>0&&(o-=1):o===0&&a.includes(m)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=m}return(e||i!=="")&&r.push(i.trim()),r}},Zc=Mr;Mr.default=Mr;var Yc=Mt,jf=Zc,Un=function(t){ke(n,t);function n(a){var e;return e=t.call(this,a)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ve(n,[{key:"selectors",get:function(){return jf.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}(Yc),ts=Un;Un.default=Un;Yc.registerRule(Un);var Hf=ui,Jf=Gf,Zf=di,Yf=es,Kf=jr,lo=ts,fo={empty:!0,space:!0};function Xf(t){for(var n=t.length-1;n>=0;n--){var a=t[n],e=a[3]||a[2];if(e)return e}}var Qf=function(){function t(a){this.input=a,this.root=new Kf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Yf;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var i,s,o,c=!1,u=!1,l=[],d=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){u=!0;break}else if(i==="}"){if(l.length>0){for(o=l.length-1,s=l[o];s&&s[0]==="space";)s=l[--o];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){c=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),c&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),u&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i=0,s,o=r-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,i,s,o,c=E(e.entries()),u;!(u=c()).done;){var l=u.value,d=l[0],f=l[1];if(i=f,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return d}o=i}return!1},n.comment=function(e){var r=new Zf;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=Jf(this.input)},n.decl=function(e,r){var i=new Hf;this.init(i,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||Xf(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]}i.raws.between="";for(var c;e.length;)if(c=e.shift(),c[0]===":"){i.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),i.raws.between+=c[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var u=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(var d=e.length-1;d>=0;d--){if(c=e[d],c[1].toLowerCase()==="!important"){i.important=!0;var f=this.stringFrom(e,d);f=this.spacesFromEnd(e)+f,f!==" !important"&&(i.raws.important=f);break}else if(c[1].toLowerCase()==="important"){for(var m=e.slice(0),_="",g=d;g>0;g--){var p=m[g][0];if(_.trim().indexOf("!")===0&&p!=="space")break;_=m.pop()[1]+_}_.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=_,e=m)}if(c[0]!=="space"&&c[0]!=="comment")break}var v=e.some(function(y){return y[0]!=="space"&&y[0]!=="comment"});v&&(i.raws.between+=u.map(function(y){return y[1]}).join(""),u=[]),this.raw(i,"value",u.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 lo;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,o=null,c=[],u=e[1].startsWith("--"),l=[],d=e;d;){if(i=d[0],l.push(d),i==="("||i==="[")o||(o=d),c.push(i==="("?")":"]");else if(u&&s&&i==="{")o||(o=d),c.push("}");else if(c.length===0)if(i===";")if(s){this.decl(l,u);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),r=!0;break}else i===":"&&(s=!0);else i===c[c.length-1]&&(c.pop(),c.length===0&&(o=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),c.length>0&&this.unclosedBracket(o),r&&s){if(!u)for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}else this.unknownWord(l)},n.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[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);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var o,c,u=i.length,l="",d=!0,f,m,_=0;_<u;_+=1)o=i[_],c=o[0],c==="space"&&_===u-1&&!s?d=!1:c==="comment"?(m=i[_-1]?i[_-1][0]:"empty",f=i[_+1]?i[_+1][0]:"empty",!fo[m]&&!fo[f]?l.slice(-1)===","?d=!1:l+=o[1]:d=!1):l+=o[1];if(!d){var g=i.reduce(function(p,v){return p+v[1]},"");e.raws[r]={raw:g,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new lo;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],!(r!=="space"&&r!=="comment"));)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],r==="space");)i=e.pop()[1]+i;return i},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}(),eh=Qf,th=Mt,rh=eh,nh=li;function Vn(t,n){var a=new nh(t,n),e=new rh(a);try{e.parse()}catch(r){throw r}return e.root}var rs=Vn;Vn.default=Vn;th.registerParse(Vn);var Ue=ft.isClean,ih=ft.my,ah=Mc,sh=oi,oh=Mt,ch=Xa,ho=Qa,uh=rs,lh=jr,dh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fh={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},Qt=0;function gr(t){return(typeof t>"u"?"undefined":$(t))==="object"&&typeof t.then=="function"}function Kc(t){var n=!1,a=dh[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[a,a+"-"+n,Qt,a+"Exit",a+"Exit-"+n]:n?[a,a+"-"+n,a+"Exit",a+"Exit-"+n]:t.append?[a,Qt,a+"Exit"]:[a,a+"Exit"]}function po(t){var n;return t.type==="document"?n=["Document",Qt,"DocumentExit"]:t.type==="root"?n=["Root",Qt,"RootExit"]:n=Kc(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function la(t){return t[Ue]=!1,t.nodes&&t.nodes.forEach(function(n){return la(n)}),t}var da={},er=function(){function t(a,e,r){var i=this;this.stringified=!1,this.processed=!1;var s;if((typeof e>"u"?"undefined":$(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=la(e);else if(M(e,t)||M(e,ho))s=la(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var o=uh;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(e,r)}catch(c){this.processed=!0,this.error=c}s&&!s[ih]&&oh.rebuild(s)}this.result=new ho(a,s,r),this.helpers=H({},da,{postcss:da,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":$(c))==="object"&&c.prepare?H({},c,c.prepare(i.result)):c})}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{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion)var s,o,c,u,l}catch(d){console&&console.error&&console.error(d)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,d,f){e.listeners[d]||(e.listeners[d]=[]),e.listeners[d].push([l,f])},i=E(this.plugins),s;!(s=i()).done;){var o=s.value;if((typeof o>"u"?"undefined":$(o))==="object")for(var c in o){if(!fh[c]&&/^[A-Z]/.test(c))throw new Error("Unknown event "+c+" in "+o.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!hh[c])if($(o[c])==="object")for(var u in o[c])u==="*"?r(o,c,o[c][u]):r(o,c+"-"+u.toLowerCase(),o[c][u]);else typeof o[c]=="function"&&r(o,c,o[c])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return Ga(function(){var r,i,s,o,c,u,l,d,f,m,_,g;return Or(this,function(p){switch(p.label){case 0:e.plugin=0,r=0,p.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],s=e.runOnRoot(i),!gr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw o=p.sent(),e.handleError(o);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];c=e.result.root,p.label=7;case 7:if(c[Ue])return[3,14];c[Ue]=!0,u=[po(c)],p.label=8;case 8:if(!(u.length>0))return[3,13];if(l=e.visitTick(u),!gr(l))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,l];case 10:return p.sent(),[3,12];case 11:throw d=p.sent(),f=u[u.length-1].node,e.handleError(d,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];m=function(){var v,y,b,C,w;return Or(this,function(S){switch(S.label){case 0:v=g.value,y=v[0],b=v[1],e.result.lastPlugin=y,S.label=1;case 1:return S.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(C=c.nodes.map(function(R){return b(R,e.helpers)}),[4,Promise.all(C)]);case 2:return S.sent(),[3,5];case 3:return[4,b(c,e.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw w=S.sent(),e.handleError(w);case 7:return[2]}})},_=E(e.listeners.OnceExit),p.label=15;case 15:return(g=_()).done?[3,18]:[5,mc(m())];case 16:p.sent(),p.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((typeof e>"u"?"undefined":$(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 gr(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}else 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=sh;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new ah(r,this.result.root,this.result.opts),s=i.generate();return this.result.css=s[0],this.result.map=s[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=E(this.plugins),r;!(r=e()).done;){var i=r.value,s=this.runOnRoot(i);if(gr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var o=this.result.root;!o[Ue];)o[Ue]=!0,this.walkSync(o);if(this.listeners.OnceExit)if(o.type==="document")for(var c=E(o.nodes),u;!(u=c()).done;){var l=u.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,o)}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=E(e),s;!(s=i()).done;){var o=s.value,c=o[0],u=o[1];this.result.lastPlugin=c;var l=void 0;try{l=u(r,this.helpers)}catch(d){throw this.handleError(d,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(gr(l))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){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var o=s[r.visitorIndex],c=o[0],u=o[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=c;try{return u(i.toProxy(),this.helpers)}catch(_){throw this.handleError(_,i)}}if(r.iterator!==0){for(var l=r.iterator,d;d=i.nodes[i.indexes[l]];)if(i.indexes[l]+=1,!d[Ue]){d[Ue]=!0,e.push(po(d));return}r.iterator=0,delete i.indexes[l]}for(var f=r.events;r.eventIndex<f.length;){var m=f[r.eventIndex];if(r.eventIndex+=1,m===Qt){i.nodes&&i.nodes.length&&(i[Ue]=!0,r.iterator=i.getIterator());return}else if(this.listeners[m]){r.visitors=this.listeners[m];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ue]=!0;for(var i=Kc(e),s=E(i),o;!(o=s()).done;){var c=o.value;if(c===Qt)e.nodes&&e.each(function(l){l[Ue]||r.walkSync(l)});else{var u=this.listeners[c];if(u&&this.visitSync(u,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ve(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}();er.registerPostcss=function(t){da=t};var Xc=er;er.default=er;lh.registerLazyResult(er);ch.registerLazyResult(er);var ph=Mc,_h=oi,mh=rs,gh=Qa,fa=function(){function t(a,e,r){e=e.toString(),this.stringified=!1,this._processor=a,this._css=e,this._opts=r,this._map=void 0;var i,s=_h;this.result=new gh(this._processor,i,this._opts),this.result.css=e;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var c=new ph(s,i,this._opts,e);if(c.isMap()){var u=c.generate(),l=u[0],d=u[1];l&&(this.result.css=l),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.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[]},ve(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=mh;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}(),vh=fa;fa.default=fa;var yh=vh,bh=Xc,kh=Xa,Ch=jr,Dr=function(){function t(a){a===void 0&&(a=[]),this.version="8.4.38",this.plugins=this.normalize(a)}var n=t.prototype;return n.normalize=function(e){for(var r=[],i=E(e),s;!(s=i()).done;){var o=s.value;if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),(typeof o>"u"?"undefined":$(o))==="object"&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if((typeof o>"u"?"undefined":$(o))==="object"&&o.postcssPlugin)r.push(o);else if(typeof o=="function")r.push(o);else if(!((typeof o>"u"?"undefined":$(o))==="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new yh(this,e,r):new bh(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),wh=Dr;Dr.default=Dr;Ch.registerProcessor(Dr);kh.registerProcessor(Dr);var Sh=ui,Ah=Rc,Th=di,Eh=es,Rh=li,Ph=jr,Oh=ts;function Br(t,n){if(Array.isArray(t))return t.map(function(d){return Br(d)});var a=t.inputs,e=Rr(t,["inputs"]);if(a){n=[];for(var r=E(a),i;!(i=r()).done;){var s=i.value,o=H({},s,{__proto__:Rh.prototype});o.map&&(o.map=H({},o.map,{__proto__:Ah.prototype})),n.push(o)}}if(e.nodes&&(e.nodes=t.nodes.map(function(d){return Br(d,n)})),e.source){var c=e.source,u=c.inputId,l=Rr(c,["inputId"]);e.source=l,u!=null&&(e.source.input=n[u])}if(e.type==="root")return new Ph(e);if(e.type==="decl")return new Sh(e);if(e.type==="rule")return new Oh(e);if(e.type==="comment")return new Th(e);if(e.type==="atrule")return new Eh(e);throw new Error("Unknown node type: "+t.type)}var Ih=Br;Br.default=Br;var xh=Za,Qc=ui,Mh=Xc,Dh=Mt,ns=wh,Bh=oi,Lh=Ih,eu=Xa,Nh=qc,tu=di,ru=es,Fh=Qa,$h=li,Uh=rs,Vh=Zc,nu=ts,iu=jr,zh=ci;function X(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ns(n)}X.plugin=function(n,a){var e=!1;function r(){for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];console&&console.warn&&!e&&(e=!0,console.warn(n+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),xn.LANG&&xn.LANG.startsWith("cn")&&console.warn(n+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
26
|
-
https://www.w3ctech.com/topic/2226`));var u=a.apply(void 0,[].concat(o));return u.postcssPlugin=n,u.postcssVersion=new ns().version,u}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||(i=r()),i}}),r.process=function(s,o,c){return X([r(c)]).process(s,o)},r};X.stringify=Bh;X.parse=Uh;X.fromJSON=Lh;X.list=Vh;X.comment=function(t){return new tu(t)};X.atRule=function(t){return new ru(t)};X.decl=function(t){return new Qc(t)};X.rule=function(t){return new nu(t)};X.root=function(t){return new iu(t)};X.document=function(t){return new eu(t)};X.CssSyntaxError=xh;X.Declaration=Qc;X.Container=Dh;X.Processor=ns;X.Document=eu;X.Comment=tu;X.Warning=Nh;X.AtRule=ru;X.Result=Fh;X.Input=$h;X.Rule=nu;X.Root=iu;X.Node=zh;Mh.registerPostcss(X);var Wh=X;X.default=X;var ae=tf(Wh);ae.stringify;ae.fromJSON;ae.plugin;ae.parse;ae.list;ae.document;ae.comment;ae.atRule;ae.rule;ae.decl;ae.root;ae.CssSyntaxError;ae.Declaration;ae.Container;ae.Processor;ae.Document;ae.Comment;ae.Warning;ae.AtRule;ae.Result;ae.Input;ae.Rule;ae.Root;ae.Node;var qh=Object.defineProperty,Gh=function(t,n,a){return n in t?qh(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a},xe=function(t,n,a){return Gh(t,(typeof n>"u"?"undefined":$(n))!=="symbol"?n+"":n,a)};function jh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hh(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var a=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),a}var is={exports:{}},ne=String,au=function(){return{isColorSupported:!1,reset:ne,bold:ne,dim:ne,italic:ne,underline:ne,inverse:ne,hidden:ne,strikethrough:ne,black:ne,red:ne,green:ne,yellow:ne,blue:ne,magenta:ne,cyan:ne,white:ne,gray:ne,bgBlack:ne,bgRed:ne,bgGreen:ne,bgYellow:ne,bgBlue:ne,bgMagenta:ne,bgCyan:ne,bgWhite:ne}};is.exports=au();is.exports.createColors=au;var Jh=is.exports,Zh={},Yh=Object.freeze(Object.defineProperty({__proto__:null,default:Zh},Symbol.toStringTag,{value:"Module"})),de=Hh(Yh),_o=Jh,mo=de,ha=function(t){ke(n,t);function n(e,r,i,s,o,c){var u;return u=t.call(this,e)||this,u.name="CssSyntaxError",u.reason=e,o&&(u.file=o),s&&(u.source=s),c&&(u.plugin=c),typeof r<"u"&&typeof i<"u"&&(typeof r=="number"?(u.line=r,u.column=i):(u.line=r.line,u.column=r.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,n),u}var a=n.prototype;return a.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},a.showSourceCode=function(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=_o.isColorSupported),mo&&r&&(s=mo(s));var o=s.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,o.length),l=String(u).length,d,f;if(r){var m=_o.createColors(!0),_=m.bold,g=m.gray,p=m.red;d=function(v){return _(p(v))},f=function(v){return g(v)}}else d=f=function(v){return v};return o.slice(c,u).map(function(v,y){var b=c+1+y,C=" "+(" "+b).slice(-l)+" | ";if(b===i.line){var w=f(C.replace(/\d/g," "))+v.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+f(C)+v+`
|
|
27
|
-
`+w+d("^")}return" "+f(C)+v}).join(`
|
|
28
|
-
`)},a.toString=function(){var r=this.showSourceCode();return r&&(r=`
|
|
29
|
-
|
|
30
|
-
`+r+`
|
|
31
|
-
`),this.name+": "+this.message+r},n}(Mn(Error)),as=ha;ha.default=ha;var ht={};ht.isClean=Symbol("isClean");ht.my=Symbol("my");var go={after:`
|
|
32
|
-
`,beforeClose:`
|
|
33
|
-
`,beforeComment:`
|
|
34
|
-
`,beforeDecl:`
|
|
35
|
-
`,beforeOpen:" ",beforeRule:`
|
|
36
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Kh(t){return t[0].toUpperCase()+t.slice(1)}var pa=function(){function t(a){this.builder=a}var n=t.prototype;return n.atrule=function(e,r){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var o=(e.raws.between||"")+(r?";":"");this.builder(i+s+o,e)}},n.beforeAfter=function(e,r){var i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");for(var s=e.parent,o=0;s&&s.type!=="root";)o+=1,s=s.parent;if(i.includes(`
|
|
37
|
-
`)){var c=this.raw(e,null,"indent");if(c.length)for(var u=0;u<o;u++)i+=c}return i},n.block=function(e,r){var i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),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 o=e.nodes[s],c=this.raw(o,"before");c&&this.builder(c),this.stringify(o,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],typeof s<"u"))return s;var o=e.parent;if(i==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return go[i];var c=e.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[i]<"u")return c.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var u="raw"+Kh(i);return this[u]?s=this[u](c,e):c.walk(function(l){if(s=l.raws[r],typeof s<"u")return!1}),typeof s>"u"&&(s=go[i]),c.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return r=i.raws.after,r.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(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
|
|
39
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?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(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
|
|
40
|
-
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?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,typeof r<"u"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return r=i.raws.before,r.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(typeof i.raws.between<"u")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,typeof r<"u"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before<"u"){var o=i.raws.before.split(`
|
|
42
|
-
`);return r=o[o.length-1],r=r.replace(/\S/g,""),!1}}),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,typeof r<"u"))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}(),su=pa;pa.default=pa;var Xh=su;function _a(t,n){var a=new Xh(n);a.stringify(t)}var fi=_a;_a.default=_a;var dn=ht.isClean,Qh=ht.my,ep=as,tp=su,rp=fi;function ma(t,n){var a=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],i=typeof r>"u"?"undefined":$(r);e==="parent"&&i==="object"?n&&(a[e]=n):e==="source"?a[e]=r:Array.isArray(r)?a[e]=r.map(function(s){return ma(s,a)}):(i==="object"&&r!==null&&(r=ma(r)),a[e]=r)}return a}var ga=function(){function t(a){a===void 0&&(a={}),this.raws={},this[dn]=!1,this[Qh]=!0;for(var e in a)if(e==="nodes"){this.nodes=[];for(var r=E(a[e]),i;!(i=r()).done;){var s=i.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=a[e]}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){e===void 0&&(e={});for(var r in 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=ma(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,o=i.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:s.column,line:s.line},r)}return new ep(e)},n.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:i==="root"?function(){return r.root().toProxy()}:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[dn]){this[dn]=!1;for(var e=this;e=e.parent;)e[dn]=!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){r=this.toString();var s=r.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,o=this.source.start.line,c=0;c<e;c++)i[c]===`
|
|
43
|
-
`?(s=1,o+=1):s+=1;return{column:s,line:o}},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(),o=s.indexOf(e.word);o!==-1&&(r=this.positionInside(o,s),i=this.positionInside(o+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){var i=new tp;return i.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=this,o=!1,c=E(r),u;!(u=c()).done;){var l=u.value;l===this?o=!0:o?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}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 o=0;for(var c in this)if(Object.prototype.hasOwnProperty.call(this,c)&&!(c==="parent"||c==="proxyCache")){var u=this[c];if(Array.isArray(u))i[c]=u.map(function(d){return(typeof d>"u"?"undefined":$(d))==="object"&&d.toJSON?d.toJSON(null,r):d});else if((typeof u>"u"?"undefined":$(u))==="object"&&u.toJSON)i[c]=u.toJSON(null,r);else if(c==="source"){var l=r.get(u.input);l==null&&(l=o,r.set(u.input,o),o++),i[c]={end:u.end,inputId:l,start:u.start}}else i[c]=u}return s&&(i.inputs=[].concat(r.keys()).map(function(d){return d.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=rp),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 o in i)s[o]=i[o];return e.warn(r,s)},ve(t,[{key:"proxyOf",get:function(){return this}}]),t}(),hi=ga;ga.default=ga;var np=hi,va=function(t){ke(n,t);function n(a){var e;return a&&typeof a.value<"u"&&typeof a.value!="string"&&(a=H({},a,{value:String(a.value)})),e=t.call(this,a)||this,e.type="decl",e}return ve(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(np),pi=va;va.default=va;var ip="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ap=function(t){t===void 0&&(t=21);for(var n="",a=t;a--;)n+=ip[Math.random()*64|0];return n},sp={nanoid:ap},vo=de.SourceMapConsumer,yo=de.SourceMapGenerator,op=de.existsSync,cp=de.readFileSync,Mi=de.dirname,up=de.join;function lp(t){return ct?ct.from(t,"base64").toString():window.atob(t)}var ya=function(){function t(a,e){if(e.map!==!1){this.loadAnnotation(a),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,i=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Mi(this.mapFile)),i&&(this.text=i)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new vo(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return lp(e.substr(RegExp.lastMatch.length));var c=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e>"u"?"undefined":$(e))!=="object"?!1: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=Mi(e),op(e))return this.mapFile=e,cp(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"){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(M(r,vo))return yo.fromSourceMap(r).toString();if(M(r,yo))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=up(Mi(e),o)),this.loadFile(o)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),ou=ya;ya.default=ya;var dp=de.SourceMapConsumer,fp=de.SourceMapGenerator,bo=de.fileURLToPath,fn=de.pathToFileURL,ba=de.isAbsolute,ka=de.resolve,hp=sp.nanoid,Di=de,ko=as,pp=ou,Bi=Symbol("fromOffsetCache"),_p=!!(dp&&fp),Co=!!(ka&&ba),zn=function(){function t(a,e){if(e===void 0&&(e={}),a===null||typeof a>"u"||(typeof a>"u"?"undefined":$(a))==="object"&&!a.toString)throw new Error("PostCSS received "+a+" instead of CSS string");if(this.css=a.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Co||/^\w+:\/\//.test(e.from)||ba(e.from)?this.file=e.from:this.file=ka(e.from)),Co&&_p){var r=new pp(this.css,e);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+hp(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,i,s){s===void 0&&(s={});var o,c,u;if(r&&(typeof r>"u"?"undefined":$(r))==="object"){var l=r,d=i;if(typeof l.offset=="number"){var f=this.fromOffset(l.offset);r=f.line,i=f.col}else r=l.line,i=l.column;if(typeof d.offset=="number"){var m=this.fromOffset(d.offset);c=m.line,u=m.col}else c=d.line,u=d.column}else if(!i){var _=this.fromOffset(r);r=_.line,i=_.col}var g=this.origin(r,i,c,u);return g?o=new ko(e,g.endLine===void 0?g.line:{column:g.column,line:g.line},g.endLine===void 0?g.column:{column:g.endColumn,line:g.endLine},g.source,g.file,s.plugin):o=new ko(e,c===void 0?r:{column:i,line:r},c===void 0?i:{column:u,line:c},this.css,this.file,s.plugin),o.input={column:i,endColumn:u,endLine:c,line:r,source:this.css},this.file&&(fn&&(o.input.url=fn(this.file).toString()),o.input.file=this.file),o},n.fromOffset=function(e){var r,i;if(this[Bi])i=this[Bi];else{var s=this.css.split(`
|
|
44
|
-
`);i=new Array(s.length);for(var o=0,c=0,u=s.length;c<u;c++)i[c]=o,o+=s[c].length+1;this[Bi]=i}r=i[i.length-1];var l=0;if(e>=r)l=i.length-1;else for(var d=i.length-2,f;l<d;)if(f=l+(d-l>>1),e<i[f])d=f-1;else if(e>=i[f+1])l=f+1;else{l=f;break}return{col:e-i[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ka(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var o=this.map.consumer(),c=o.originalPositionFor({column:r,line:e});if(!c.source)return!1;var u;typeof i=="number"&&(u=o.originalPositionFor({column:s,line:i}));var l;ba(c.source)?l=fn(c.source):l=new URL(c.source,this.map.consumer().sourceRoot||fn(this.map.mapFile));var d={column:c.column,endColumn:u&&u.column,endLine:u&&u.line,line:c.line,url:l.toString()};if(l.protocol==="file:")if(bo)d.file=bo(l);else throw new Error("file: protocol is not available in this PostCSS build");var f=o.sourceContentFor(c.source);return f&&(d.source=f),d},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=H({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ve(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),_i=zn;zn.default=zn;Di&&Di.registerInput&&Di.registerInput(zn);var cu=de.SourceMapConsumer,Rn=de.SourceMapGenerator,Pn=de.dirname,uu=de.relative,lu=de.resolve,du=de.sep,wo=de.pathToFileURL,mp=_i,gp=!!(cu&&Rn),vp=!!(Pn&&lu&&uu&&du),yp=function(){function t(a,e,r,i){this.stringify=a,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=i,this.originalCSS=i,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;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=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=E(this.previous()),r;!(r=e()).done;){var i=r.value,s=this.toUrl(this.path(i.file)),o=i.root||Pn(i.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new cu(i.text),c.sourcesContent&&(c.sourcesContent=null)):c=i.consumer(),this.map.applySourceMap(c,s,this.toUrl(this.path(o)))}},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],e.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(),vp&&gp&&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=Rn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Rn({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 Rn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,s="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},c,u;this.stringify(this.root,function(l,d,f){if(e.css+=l,d&&f!=="end"&&(o.generated.line=r,o.generated.column=i-1,d.source&&d.source.start?(o.source=e.sourcePath(d),o.original.line=d.source.start.line,o.original.column=d.source.start.column-1,e.map.addMapping(o)):(o.source=s,o.original.line=1,o.original.column=0,e.map.addMapping(o))),c=l.match(/\n/g),c?(r+=c.length,u=l.lastIndexOf(`
|
|
48
|
-
`),i=l.length-u):i+=l.length,d&&f!=="start"){var m=d.parent||{raws:{}},_=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!_||d!==m.last||m.raws.semicolon)&&(d.source&&d.source.end?(o.source=e.sourcePath(d),o.original.line=d.source.end.line,o.original.column=d.source.end.column-1,o.generated.line=r,o.generated.column=i-2,e.map.addMapping(o)):(o.source=s,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=i-1,e.map.addMapping(o)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},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?Pn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Pn(lu(i,this.mapOpts.annotation)));var s=uu(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 mp(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 o=s.source.input.from;if(o&&!r[o]){r[o]=!0;var c=e.usesFileUrls?e.toFileUrl(o):e.toUrl(e.path(o));e.map.setSourceContent(c,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 ct?ct.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(wo){var i=wo(e).toString();return this.memoizedFileURLs.set(e,i),i}else 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;du==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),fu=yp,bp=hi,Ca=function(t){ke(n,t);function n(a){var e;return e=t.call(this,a)||this,e.type="comment",e}return n}(bp),mi=Ca;Ca.default=Ca;var hu=ht.isClean,pu=ht.my,_u=pi,mu=mi,kp=hi,gu,ss,os,vu;function yu(t){return t.map(function(n){return n.nodes&&(n.nodes=yu(n.nodes)),delete n.source,n})}function bu(t){if(t[hu]=!1,t.proxyOf.nodes)for(var n=E(t.proxyOf.nodes),a;!(a=n()).done;){var e=a.value;bu(e)}}var Xe=function(t){ke(n,t);function n(){return t.apply(this,arguments)||this}var a=n.prototype;return a.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var o=E(i),c;!(c=o()).done;)for(var u=c.value,l=this.normalize(u,this.last),d=E(l),f;!(f=d()).done;){var m=f.value;this.proxyOf.nodes.push(m)}return this.markDirty(),this},a.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i=E(this.nodes),s;!(s=i()).done;){var o=s.value;o.cleanRaws(r)}},a.each=function(r){if(this.proxyOf.nodes){for(var i=this.getIterator(),s,o;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],o=r(this.proxyOf.nodes[s],s),o!==!1);)this.indexes[i]+=1;return delete this.indexes[i],o}},a.every=function(r){return this.nodes.every(r)},a.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},a.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:i[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];var l;return(l=i)[s].apply(l,[].concat(c.map(function(d){return typeof d=="function"?function(f,m){return d(f.toProxy(),m)}:d})))}:s==="every"||s==="some"?function(o){return i[s](function(c){for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return o.apply(void 0,[].concat([c.toProxy()],l))})}:s==="root"?function(){return i.root().toProxy()}:s==="nodes"?i.nodes.map(function(o){return o.toProxy()}):s==="first"||s==="last"?i[s].toProxy():i[s]:i[s]},set:function(i,s,o){return i[s]===o||(i[s]=o,(s==="name"||s==="params"||s==="selector")&&i.markDirty()),!0}}},a.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},a.insertAfter=function(r,i){var s=this.index(r),o=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var c=E(o),u;!(u=c()).done;){var l=u.value;this.proxyOf.nodes.splice(s+1,0,l)}var d;for(var f in this.indexes)d=this.indexes[f],s<d&&(this.indexes[f]=d+o.length);return this.markDirty(),this},a.insertBefore=function(r,i){var s=this.index(r),o=s===0?"prepend":!1,c=this.normalize(i,this.proxyOf.nodes[s],o).reverse();s=this.index(r);for(var u=E(c),l;!(l=u()).done;){var d=l.value;this.proxyOf.nodes.splice(s,0,d)}var f;for(var m in this.indexes)f=this.indexes[m],s<=f&&(this.indexes[m]=f+c.length);return this.markDirty(),this},a.normalize=function(r,i){var s=this;if(typeof r=="string")r=yu(gu(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var o=E(r),c;!(c=o()).done;){var u=c.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=E(r),d;!(d=l()).done;){var f=d.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new _u(r)]}else if(r.selector)r=[new ss(r)];else if(r.name)r=[new os(r)];else if(r.text)r=[new mu(r)];else throw new Error("Unknown node type in node creation");var m=r.map(function(_){return _[pu]||n.rebuild(_),_=_.proxyOf,_.parent&&_.parent.removeChild(_),_[hu]&&bu(_),typeof _.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(_.raws.before=i.raws.before.replace(/\S/g,"")),_.parent=s.proxyOf,_});return m},a.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i=i.reverse();for(var o=E(i),c;!(c=o()).done;){for(var u=c.value,l=this.normalize(u,this.first,"prepend").reverse(),d=E(l),f;!(f=d()).done;){var m=f.value;this.proxyOf.nodes.unshift(m)}for(var _ in this.indexes)this.indexes[_]=this.indexes[_]+l.length}return this.markDirty(),this},a.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},a.removeAll=function(){for(var r=E(this.proxyOf.nodes),i;!(i=r()).done;){var s=i.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},a.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var i;for(var s in this.indexes)i=this.indexes[s],i>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},a.replaceValues=function(r,i,s){return s||(s=i,i={}),this.walkDecls(function(o){i.props&&!i.props.includes(o.prop)||i.fast&&!o.value.includes(i.fast)||(o.value=o.value.replace(r,s))}),this.markDirty(),this},a.some=function(r){return this.nodes.some(r)},a.walk=function(r){return this.each(function(i,s){var o;try{o=r(i,s)}catch(c){throw i.addToError(c)}return o!==!1&&i.walk&&(o=i.walk(r)),o})},a.walkAtRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,o){if(s.type==="atrule"&&r.test(s.name))return i(s,o)}):this.walk(function(s,o){if(s.type==="atrule"&&s.name===r)return i(s,o)}):(i=r,this.walk(function(s,o){if(s.type==="atrule")return i(s,o)}))},a.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},a.walkDecls=function(r,i){return i?M(r,RegExp)?this.walk(function(s,o){if(s.type==="decl"&&r.test(s.prop))return i(s,o)}):this.walk(function(s,o){if(s.type==="decl"&&s.prop===r)return i(s,o)}):(i=r,this.walk(function(s,o){if(s.type==="decl")return i(s,o)}))},a.walkRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,o){if(s.type==="rule"&&r.test(s.selector))return i(s,o)}):this.walk(function(s,o){if(s.type==="rule"&&s.selector===r)return i(s,o)}):(i=r,this.walk(function(s,o){if(s.type==="rule")return i(s,o)}))},ve(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}(kp);Xe.registerParse=function(t){gu=t};Xe.registerRule=function(t){ss=t};Xe.registerAtRule=function(t){os=t};Xe.registerRoot=function(t){vu=t};var Dt=Xe;Xe.default=Xe;Xe.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,os.prototype):t.type==="rule"?Object.setPrototypeOf(t,ss.prototype):t.type==="decl"?Object.setPrototypeOf(t,_u.prototype):t.type==="comment"?Object.setPrototypeOf(t,mu.prototype):t.type==="root"&&Object.setPrototypeOf(t,vu.prototype),t[pu]=!0,t.nodes&&t.nodes.forEach(function(n){Xe.rebuild(n)})};var Cp=Dt,ku,Cu,Lr=function(t){ke(n,t);function n(e){var r;return r=t.call(this,H({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var a=n.prototype;return a.toResult=function(r){r===void 0&&(r={});var i=new ku(new Cu,this,r);return i.stringify()},n}(Cp);Lr.registerLazyResult=function(t){ku=t};Lr.registerProcessor=function(t){Cu=t};var cs=Lr;Lr.default=Lr;var wa=function(){function t(a,e){if(e===void 0&&(e={}),this.type="warning",this.text=a,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]}var n=t.prototype;return n.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}(),wu=wa;wa.default=wa;var wp=wu,Sa=function(){function t(a,e,r){this.processor=a,this.messages=[],this.root=e,this.opts=r,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 wp(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ve(t,[{key:"content",get:function(){return this.css}}]),t}(),us=Sa;Sa.default=Sa;var Li=39,So=34,hn=92,Ao=47,pn=10,vr=32,_n=12,mn=9,gn=13,Sp=91,Ap=93,Tp=40,Ep=41,Rp=123,Pp=125,Op=59,Ip=42,xp=58,Mp=64,vn=/[\t\n\f\r "#'()/;[\\\]{}]/g,yn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Dp=/.[\r\n"'(/\\]/,To=/[\da-f]/i,Bp=function(n,a){a===void 0&&(a={});var e=n.css.valueOf(),r=a.ignoreErrors,i,s,o,c,u,l,d,f,m,_,g=e.length,p=0,v=[],y=[];function b(){return p}function C(P){throw n.error("Unclosed "+P,p)}function w(){return y.length===0&&p>=g}function S(P){if(y.length)return y.pop();if(!(p>=g)){var O=P?P.ignoreUnclosed:!1;switch(i=e.charCodeAt(p),i){case pn:case vr:case mn:case gn:case _n:{s=p;do s+=1,i=e.charCodeAt(s);while(i===vr||i===pn||i===mn||i===gn||i===_n);_=["space",e.slice(p,s)],p=s-1;break}case Sp:case Ap:case Rp:case Pp:case xp:case Op:case Ep:{var L=String.fromCharCode(i);_=[L,L,p];break}case Tp:{if(f=v.length?v.pop()[1]:"",m=e.charCodeAt(p+1),f==="url"&&m!==Li&&m!==So&&m!==vr&&m!==pn&&m!==mn&&m!==_n&&m!==gn){s=p;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||O){s=p;break}else C("bracket");for(d=s;e.charCodeAt(d-1)===hn;)d-=1,l=!l}while(l);_=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),c=e.slice(p,s+1),s===-1||Dp.test(c)?_=["(","(",p]:(_=["brackets",c,p,s],p=s);break}case Li:case So:{o=i===Li?"'":'"',s=p;do{if(l=!1,s=e.indexOf(o,s+1),s===-1)if(r||O){s=p+1;break}else C("string");for(d=s;e.charCodeAt(d-1)===hn;)d-=1,l=!l}while(l);_=["string",e.slice(p,s+1),p,s],p=s;break}case Mp:{vn.lastIndex=p+1,vn.test(e),vn.lastIndex===0?s=e.length-1:s=vn.lastIndex-2,_=["at-word",e.slice(p,s+1),p,s],p=s;break}case hn:{for(s=p,u=!0;e.charCodeAt(s+1)===hn;)s+=1,u=!u;if(i=e.charCodeAt(s+1),u&&i!==Ao&&i!==vr&&i!==pn&&i!==mn&&i!==gn&&i!==_n&&(s+=1,To.test(e.charAt(s)))){for(;To.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===vr&&(s+=1)}_=["word",e.slice(p,s+1),p,s],p=s;break}default:{i===Ao&&e.charCodeAt(p+1)===Ip?(s=e.indexOf("*/",p+2)+1,s===0&&(r||O?s=e.length:C("comment")),_=["comment",e.slice(p,s+1),p,s],p=s):(yn.lastIndex=p+1,yn.test(e),yn.lastIndex===0?s=e.length-1:s=yn.lastIndex-2,_=["word",e.slice(p,s+1),p,s],v.push(_),p=s);break}}return p++,_}}function R(P){y.push(P)}return{back:R,endOfFile:w,nextToken:S,position:b}},Su=Dt,Wn=function(t){ke(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var a=n.prototype;return a.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=t.prototype.append).call.apply(o,[].concat([this],i))},a.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var o;return this.proxyOf.nodes||(this.nodes=[]),(o=t.prototype.prepend).call.apply(o,[].concat([this],i))},n}(Su),ls=Wn;Wn.default=Wn;Su.registerAtRule(Wn);var Au=Dt,Tu,Eu,tr=function(t){ke(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var a=n.prototype;return a.normalize=function(r,i,s){var o=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 c=E(o),u;!(u=c()).done;){var l=u.value;l.raws.before=i.raws.before}}return o},a.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)},a.toResult=function(r){r===void 0&&(r={});var i=new Tu(new Eu,this,r);return i.stringify()},n}(Au);tr.registerLazyResult=function(t){Tu=t};tr.registerProcessor=function(t){Eu=t};var Hr=tr;tr.default=tr;Au.registerRoot(tr);var Nr={comma:function(n){return Nr.split(n,[","],!0)},space:function(n){var a=[" ",`
|
|
49
|
-
`," "];return Nr.split(n,a)},split:function(n,a,e){for(var r=[],i="",s=!1,o=0,c=!1,u="",l=!1,d=E(n),f;!(f=d()).done;){var m=f.value;l?l=!1:m==="\\"?l=!0:c?m===u&&(c=!1):m==='"'||m==="'"?(c=!0,u=m):m==="("?o+=1:m===")"?o>0&&(o-=1):o===0&&a.includes(m)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=m}return(e||i!=="")&&r.push(i.trim()),r}},Ru=Nr;Nr.default=Nr;var Pu=Dt,Lp=Ru,qn=function(t){ke(n,t);function n(a){var e;return e=t.call(this,a)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ve(n,[{key:"selectors",get:function(){return Lp.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}(Pu),ds=qn;qn.default=qn;Pu.registerRule(qn);var Np=pi,Fp=Bp,$p=mi,Up=ls,Vp=Hr,Eo=ds,Ro={empty:!0,space:!0};function zp(t){for(var n=t.length-1;n>=0;n--){var a=t[n],e=a[3]||a[2];if(e)return e}}var Wp=function(){function t(a){this.input=a,this.root=new Vp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Up;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var i,s,o,c=!1,u=!1,l=[],d=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){u=!0;break}else if(i==="}"){if(l.length>0){for(o=l.length-1,s=l[o];s&&s[0]==="space";)s=l[--o];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){c=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),c&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),u&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i=0,s,o=r-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,i,s,o,c=E(e.entries()),u;!(u=c()).done;){var l=u.value,d=l[0],f=l[1];if(i=f,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return d}o=i}return!1},n.comment=function(e){var r=new $p;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=Fp(this.input)},n.decl=function(e,r){var i=new Np;this.init(i,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||zp(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]}i.raws.between="";for(var c;e.length;)if(c=e.shift(),c[0]===":"){i.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),i.raws.between+=c[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var u=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(var d=e.length-1;d>=0;d--){if(c=e[d],c[1].toLowerCase()==="!important"){i.important=!0;var f=this.stringFrom(e,d);f=this.spacesFromEnd(e)+f,f!==" !important"&&(i.raws.important=f);break}else if(c[1].toLowerCase()==="important"){for(var m=e.slice(0),_="",g=d;g>0;g--){var p=m[g][0];if(_.trim().indexOf("!")===0&&p!=="space")break;_=m.pop()[1]+_}_.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=_,e=m)}if(c[0]!=="space"&&c[0]!=="comment")break}var v=e.some(function(y){return y[0]!=="space"&&y[0]!=="comment"});v&&(i.raws.between+=u.map(function(y){return y[1]}).join(""),u=[]),this.raw(i,"value",u.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 Eo;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,o=null,c=[],u=e[1].startsWith("--"),l=[],d=e;d;){if(i=d[0],l.push(d),i==="("||i==="[")o||(o=d),c.push(i==="("?")":"]");else if(u&&s&&i==="{")o||(o=d),c.push("}");else if(c.length===0)if(i===";")if(s){this.decl(l,u);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),r=!0;break}else i===":"&&(s=!0);else i===c[c.length-1]&&(c.pop(),c.length===0&&(o=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),c.length>0&&this.unclosedBracket(o),r&&s){if(!u)for(;l.length&&(d=l[l.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,u)}else this.unknownWord(l)},n.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[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);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var o,c,u=i.length,l="",d=!0,f,m,_=0;_<u;_+=1)o=i[_],c=o[0],c==="space"&&_===u-1&&!s?d=!1:c==="comment"?(m=i[_-1]?i[_-1][0]:"empty",f=i[_+1]?i[_+1][0]:"empty",!Ro[m]&&!Ro[f]?l.slice(-1)===","?d=!1:l+=o[1]:d=!1):l+=o[1];if(!d){var g=i.reduce(function(p,v){return p+v[1]},"");e.raws[r]={raw:g,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new Eo;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],!(r!=="space"&&r!=="comment"));)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],r==="space");)i=e.pop()[1]+i;return i},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}(),qp=Wp,Gp=Dt,jp=qp,Hp=_i;function Gn(t,n){var a=new Hp(t,n),e=new jp(a);try{e.parse()}catch(r){throw r}return e.root}var fs=Gn;Gn.default=Gn;Gp.registerParse(Gn);var Ve=ht.isClean,Jp=ht.my,Zp=fu,Yp=fi,Kp=Dt,Xp=cs,Po=us,Qp=fs,e_=Hr,t_={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r_={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},n_={Once:!0,postcssPlugin:!0,prepare:!0},rr=0;function yr(t){return(typeof t>"u"?"undefined":$(t))==="object"&&typeof t.then=="function"}function Ou(t){var n=!1,a=t_[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[a,a+"-"+n,rr,a+"Exit",a+"Exit-"+n]:n?[a,a+"-"+n,a+"Exit",a+"Exit-"+n]:t.append?[a,rr,a+"Exit"]:[a,a+"Exit"]}function Oo(t){var n;return t.type==="document"?n=["Document",rr,"DocumentExit"]:t.type==="root"?n=["Root",rr,"RootExit"]:n=Ou(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Aa(t){return t[Ve]=!1,t.nodes&&t.nodes.forEach(function(n){return Aa(n)}),t}var Ta={},nr=function(){function t(a,e,r){var i=this;this.stringified=!1,this.processed=!1;var s;if((typeof e>"u"?"undefined":$(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Aa(e);else if(M(e,t)||M(e,Po))s=Aa(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var o=Qp;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(e,r)}catch(c){this.processed=!0,this.error=c}s&&!s[Jp]&&Kp.rebuild(s)}this.result=new Po(a,s,r),this.helpers=H({},Ta,{postcss:Ta,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":$(c))==="object"&&c.prepare?H({},c,c.prepare(i.result)):c})}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{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion)var s,o,c,u,l}catch(d){console&&console.error&&console.error(d)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,d,f){e.listeners[d]||(e.listeners[d]=[]),e.listeners[d].push([l,f])},i=E(this.plugins),s;!(s=i()).done;){var o=s.value;if((typeof o>"u"?"undefined":$(o))==="object")for(var c in o){if(!r_[c]&&/^[A-Z]/.test(c))throw new Error("Unknown event "+c+" in "+o.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!n_[c])if($(o[c])==="object")for(var u in o[c])u==="*"?r(o,c,o[c][u]):r(o,c+"-"+u.toLowerCase(),o[c][u]);else typeof o[c]=="function"&&r(o,c,o[c])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return Ga(function(){var r,i,s,o,c,u,l,d,f,m,_,g;return Or(this,function(p){switch(p.label){case 0:e.plugin=0,r=0,p.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],s=e.runOnRoot(i),!yr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw o=p.sent(),e.handleError(o);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];c=e.result.root,p.label=7;case 7:if(c[Ve])return[3,14];c[Ve]=!0,u=[Oo(c)],p.label=8;case 8:if(!(u.length>0))return[3,13];if(l=e.visitTick(u),!yr(l))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,l];case 10:return p.sent(),[3,12];case 11:throw d=p.sent(),f=u[u.length-1].node,e.handleError(d,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];m=function(){var v,y,b,C,w;return Or(this,function(S){switch(S.label){case 0:v=g.value,y=v[0],b=v[1],e.result.lastPlugin=y,S.label=1;case 1:return S.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(C=c.nodes.map(function(R){return b(R,e.helpers)}),[4,Promise.all(C)]);case 2:return S.sent(),[3,5];case 3:return[4,b(c,e.helpers)];case 4:S.sent(),S.label=5;case 5:return[3,7];case 6:throw w=S.sent(),e.handleError(w);case 7:return[2]}})},_=E(e.listeners.OnceExit),p.label=15;case 15:return(g=_()).done?[3,18]:[5,mc(m())];case 16:p.sent(),p.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((typeof e>"u"?"undefined":$(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 yr(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}else 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=Yp;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new Zp(r,this.result.root,this.result.opts),s=i.generate();return this.result.css=s[0],this.result.map=s[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=E(this.plugins),r;!(r=e()).done;){var i=r.value,s=this.runOnRoot(i);if(yr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var o=this.result.root;!o[Ve];)o[Ve]=!0,this.walkSync(o);if(this.listeners.OnceExit)if(o.type==="document")for(var c=E(o.nodes),u;!(u=c()).done;){var l=u.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,o)}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=E(e),s;!(s=i()).done;){var o=s.value,c=o[0],u=o[1];this.result.lastPlugin=c;var l=void 0;try{l=u(r,this.helpers)}catch(d){throw this.handleError(d,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(yr(l))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){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var o=s[r.visitorIndex],c=o[0],u=o[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=c;try{return u(i.toProxy(),this.helpers)}catch(_){throw this.handleError(_,i)}}if(r.iterator!==0){for(var l=r.iterator,d;d=i.nodes[i.indexes[l]];)if(i.indexes[l]+=1,!d[Ve]){d[Ve]=!0,e.push(Oo(d));return}r.iterator=0,delete i.indexes[l]}for(var f=r.events;r.eventIndex<f.length;){var m=f[r.eventIndex];if(r.eventIndex+=1,m===rr){i.nodes&&i.nodes.length&&(i[Ve]=!0,r.iterator=i.getIterator());return}else if(this.listeners[m]){r.visitors=this.listeners[m];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ve]=!0;for(var i=Ou(e),s=E(i),o;!(o=s()).done;){var c=o.value;if(c===rr)e.nodes&&e.each(function(l){l[Ve]||r.walkSync(l)});else{var u=this.listeners[c];if(u&&this.visitSync(u,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ve(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}();nr.registerPostcss=function(t){Ta=t};var Iu=nr;nr.default=nr;e_.registerLazyResult(nr);Xp.registerLazyResult(nr);var i_=fu,a_=fi,s_=fs,o_=us,Ea=function(){function t(a,e,r){e=e.toString(),this.stringified=!1,this._processor=a,this._css=e,this._opts=r,this._map=void 0;var i,s=a_;this.result=new o_(this._processor,i,this._opts),this.result.css=e;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var c=new i_(s,i,this._opts,e);if(c.isMap()){var u=c.generate(),l=u[0],d=u[1];l&&(this.result.css=l),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.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[]},ve(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=s_;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}(),c_=Ea;Ea.default=Ea;var u_=c_,l_=Iu,d_=cs,f_=Hr,Fr=function(){function t(a){a===void 0&&(a=[]),this.version="8.4.38",this.plugins=this.normalize(a)}var n=t.prototype;return n.normalize=function(e){for(var r=[],i=E(e),s;!(s=i()).done;){var o=s.value;if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),(typeof o>"u"?"undefined":$(o))==="object"&&Array.isArray(o.plugins))r=r.concat(o.plugins);else if((typeof o>"u"?"undefined":$(o))==="object"&&o.postcssPlugin)r.push(o);else if(typeof o=="function")r.push(o);else if(!((typeof o>"u"?"undefined":$(o))==="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new u_(this,e,r):new l_(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),h_=Fr;Fr.default=Fr;f_.registerProcessor(Fr);d_.registerProcessor(Fr);var p_=pi,__=ou,m_=mi,g_=ls,v_=_i,y_=Hr,b_=ds;function $r(t,n){if(Array.isArray(t))return t.map(function(d){return $r(d)});var a=t.inputs,e=Rr(t,["inputs"]);if(a){n=[];for(var r=E(a),i;!(i=r()).done;){var s=i.value,o=H({},s,{__proto__:v_.prototype});o.map&&(o.map=H({},o.map,{__proto__:__.prototype})),n.push(o)}}if(e.nodes&&(e.nodes=t.nodes.map(function(d){return $r(d,n)})),e.source){var c=e.source,u=c.inputId,l=Rr(c,["inputId"]);e.source=l,u!=null&&(e.source.input=n[u])}if(e.type==="root")return new y_(e);if(e.type==="decl")return new p_(e);if(e.type==="rule")return new b_(e);if(e.type==="comment")return new m_(e);if(e.type==="atrule")return new g_(e);throw new Error("Unknown node type: "+t.type)}var k_=$r;$r.default=$r;var C_=as,xu=pi,w_=Iu,S_=Dt,hs=h_,A_=fi,T_=k_,Mu=cs,E_=wu,Du=mi,Bu=ls,R_=us,P_=_i,O_=fs,I_=Ru,Lu=ds,Nu=Hr,x_=hi;function Q(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new hs(n)}Q.plugin=function(n,a){var e=!1;function r(){for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];console&&console.warn&&!e&&(e=!0,console.warn(n+`: postcss.plugin was deprecated. Migration guide:
|
|
50
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),xn.LANG&&xn.LANG.startsWith("cn")&&console.warn(n+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
51
|
-
https://www.w3ctech.com/topic/2226`));var u=a.apply(void 0,[].concat(o));return u.postcssPlugin=n,u.postcssVersion=new hs().version,u}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||(i=r()),i}}),r.process=function(s,o,c){return Q([r(c)]).process(s,o)},r};Q.stringify=A_;Q.parse=O_;Q.fromJSON=T_;Q.list=I_;Q.comment=function(t){return new Du(t)};Q.atRule=function(t){return new Bu(t)};Q.decl=function(t){return new xu(t)};Q.rule=function(t){return new Lu(t)};Q.root=function(t){return new Nu(t)};Q.document=function(t){return new Mu(t)};Q.CssSyntaxError=C_;Q.Declaration=xu;Q.Container=S_;Q.Processor=hs;Q.Document=Mu;Q.Comment=Du;Q.Warning=E_;Q.AtRule=Bu;Q.Result=R_;Q.Input=P_;Q.Rule=Lu;Q.Root=Nu;Q.Node=x_;w_.registerPostcss(Q);var M_=Q;Q.default=Q;var se=jh(M_);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 D_=function(){function t(){for(var a=arguments.length,e=new Array(a),r=0;r<a;r++)e[r]=arguments[r];xe(this,"parentElement",null),xe(this,"parentNode",null),xe(this,"ownerDocument"),xe(this,"firstChild",null),xe(this,"lastChild",null),xe(this,"previousSibling",null),xe(this,"nextSibling",null),xe(this,"ELEMENT_NODE",1),xe(this,"TEXT_NODE",3),xe(this,"nodeType"),xe(this,"nodeName"),xe(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(M(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;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"},ve(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t}(),Io={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},xo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bn={},B_=function(){return!!globalThis.Zone};function ps(t){if(bn[t])return bn[t];var n=globalThis[t],a=n.prototype,e=t in Io?Io[t]:void 0,r=!!(e&&e.every(function(l){var d,f;return!!((f=(d=Object.getOwnPropertyDescriptor(a,l))==null?void 0:d.get)!=null&&f.toString().includes("[native code]"))})),i=t in xo?xo[t]:void 0,s=!!(i&&i.every(function(l){var d;return typeof a[l]=="function"&&((d=a[l])==null?void 0:d.toString().includes("[native code]"))}));if(r&&s&&!B_())return bn[t]=n.prototype,n.prototype;try{var o=document.createElement("iframe");document.body.appendChild(o);var c=o.contentWindow;if(!c)return n.prototype;var u=c[t].prototype;return document.body.removeChild(o),u?bn[t]=u:a}catch{return a}}var Ni={};function pt(t,n,a){var e,r=t+"."+String(a);if(Ni[r])return Ni[r].call(n);var i=ps(t),s=(e=Object.getOwnPropertyDescriptor(i,a))==null?void 0:e.get;return s?(Ni[r]=s,s.call(n)):n[a]}var Fi={};function Fu(t,n,a){var e=t+"."+String(a);if(Fi[e])return Fi[e].bind(n);var r=ps(t),i=r[a];return typeof i!="function"?n[a]:(Fi[e]=i,i.bind(n))}function L_(t){return pt("Node",t,"childNodes")}function N_(t){return pt("Node",t,"parentNode")}function F_(t){return pt("Node",t,"parentElement")}function $_(t){return pt("Node",t,"textContent")}function U_(t,n){return Fu("Node",t,"contains")(n)}function V_(t){return Fu("Node",t,"getRootNode")()}function z_(t){return!t||!("host"in t)?null:pt("ShadowRoot",t,"host")}function W_(t){return t.styleSheets}function q_(t){return!t||!("shadowRoot"in t)?null:pt("Element",t,"shadowRoot")}function G_(t,n){return pt("Element",t,"querySelector")(n)}function j_(t,n){return pt("Element",t,"querySelectorAll")(n)}function $u(){return ps("MutationObserver").constructor}function Bt(t,n,a){try{if(!(n in t))return function(){};var e=t[n],r=a(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch{return function(){}}}var W={childNodes:L_,parentNode:N_,parentElement:F_,textContent:$_,contains:U_,getRootNode:V_,host:z_,styleSheets:W_,shadowRoot:q_,querySelector:G_,querySelectorAll:j_,mutationObserver:$u,patch:Bt};function we(t,n,a){a===void 0&&(a=document);var e={capture:!0,passive:!0};return a.addEventListener(t,n,e),function(){return a.removeEventListener(t,n,e)}}var qt=`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.`,Mo={map:{},getId:function(){return console.error(qt),-1},getNode:function(){return console.error(qt),null},removeNodeFromMap:function(){console.error(qt)},has:function(){return console.error(qt),!1},reset:function(){console.error(qt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Mo=new Proxy(Mo,{get:function(n,a,e){return a==="map"&&console.error(qt),Reflect.get(n,a,e)}}));function Ur(t,n,a){a===void 0&&(a={});var e=null,r=0;return function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var c=Date.now();!r&&a.leading===!1&&(r=c);var u=n-(c-r),l=this;u<=0||u>n?(e&&(clearTimeout(e),e=null),r=c,t.apply(l,s)):!e&&a.trailing!==!1&&(e=setTimeout(function(){r=a.leading===!1?0:Date.now(),e=null,t.apply(l,s)},u))}}function gi(t,n,a,e,r){r===void 0&&(r=window);var i=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?a:{set:function(o){var c=this;setTimeout(function(){a.set.call(c,o)},0),i&&i.set&&i.set.call(this,o)}}),function(){return gi(t,n,i||{},!0)}}var jn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(jn=function(){return new Date().getTime()});function Uu(t){var n,a,e,r,i=t.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:i.documentElement.scrollLeft||i?.body&&((n=W.parentElement(i.body))==null?void 0:n.scrollLeft)||((a=i?.body)==null?void 0:a.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:i?.documentElement.scrollTop||i?.body&&((e=W.parentElement(i.body))==null?void 0:e.scrollTop)||((r=i?.body)==null?void 0:r.scrollTop)||0}}function Vu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function zu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Wu(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:W.parentElement(t);return n}function Se(t,n,a,e){if(!t)return!1;var r=Wu(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(Nn(r,n,e))return!0}catch{}return!!(a&&(r.matches(a)||e&&r.closest(a)!==null))}function H_(t,n){return n.getId(t)!==-1}function $i(t,n,a){return t.tagName==="TITLE"&&a.headTitleMutations?!0:n.getId(t)===Ir}function qu(t,n){if(kr(t))return!1;var a=n.getId(t);if(!n.has(a))return!0;var e=W.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?qu(e,n):!0}function Ra(t){return!!t.changedTouches}function J_(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Gu(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function ju(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Pa(t){return t?M(t,D_)&&"shadowRoot"in t?!!t.shadowRoot:!!W.shadowRoot(t):!1}var Z_=function(){function t(){T(this,"id",1),T(this,"styleIDMap",new WeakMap),T(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){if(this.has(e))return this.getId(e);var i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),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 Hu(t){var n,a=null;return"getRootNode"in t&&((n=W.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&W.host(W.getRootNode(t))&&(a=W.host(W.getRootNode(t))),a}function Y_(t){for(var n=t,a;a=Hu(n);)n=a;return n}function K_(t){var n=t.ownerDocument;if(!n)return!1;var a=Y_(t);return W.contains(n,a)}function Ju(t){var n=t.ownerDocument;return n?W.contains(n,t)||K_(t):!1}var q=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}(q||{}),D=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}(D||{}),Re=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}(Re||{}),Je=function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t}(Je||{}),ir=function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t}(ir||{}),Gt=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}(Gt||{}),Zu=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}(Zu||{});function Do(t){return"__ln"in t}var X_=function(){function t(){T(this,"length",0),T(this,"head",null),T(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&&Do(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&&Do(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}(),Bo=function(t,n){return t+"@"+n},Q_=function(){function t(){var a=this;T(this,"frozen",!1),T(this,"locked",!1),T(this,"texts",[]),T(this,"attributes",[]),T(this,"attributeMap",new WeakMap),T(this,"removes",[]),T(this,"mapRemoves",[]),T(this,"movedMap",{}),T(this,"addedSet",new Set),T(this,"movedSet",new Set),T(this,"droppedSet",new Set),T(this,"removesSubTreeCache",new Set),T(this,"mutationCb"),T(this,"blockClass"),T(this,"blockSelector"),T(this,"maskTextClass"),T(this,"maskTextSelector"),T(this,"inlineStylesheet"),T(this,"maskInputOptions"),T(this,"maskTextFn"),T(this,"maskInputFn"),T(this,"keepIframeSrcFn"),T(this,"recordCanvas"),T(this,"inlineImages"),T(this,"slimDOMOptions"),T(this,"dataURLOptions"),T(this,"doc"),T(this,"mirror"),T(this,"iframeManager"),T(this,"stylesheetManager"),T(this,"shadowDomManager"),T(this,"canvasManager"),T(this,"processedNodeManager"),T(this,"unattachedDoc"),T(this,"processMutations",function(e){e.forEach(a.processMutation),a.emit()}),T(this,"emit",function(){if(!(a.frozen||a.locked)){for(var e=[],r=new Set,i=new X_,s=function(x){for(var F=x,J=Ir;J===Ir;)F=F&&F.nextSibling,J=F&&a.mirror.getId(F);return J},o=function(x){var F=W.parentNode(x);if(!(!F||!Ju(x))){var J=!1;if(x.nodeType===Node.TEXT_NODE){var Te=F.tagName;if(Te==="TEXTAREA")return;Te==="STYLE"&&a.addedSet.has(F)&&(J=!0)}var Y=kr(F)?a.mirror.getId(Hu(x)):a.mirror.getId(F),Pe=s(x);if(Y===-1||Pe===-1)return i.addNode(x);var Ce=Ht(x,{doc:a.doc,mirror:a.mirror,blockClass:a.blockClass,blockSelector:a.blockSelector,maskTextClass:a.maskTextClass,maskTextSelector:a.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:a.inlineStylesheet,maskInputOptions:a.maskInputOptions,maskTextFn:a.maskTextFn,maskInputFn:a.maskInputFn,slimDOMOptions:a.slimDOMOptions,dataURLOptions:a.dataURLOptions,recordCanvas:a.recordCanvas,inlineImages:a.inlineImages,onSerialize:function(oe){Gu(oe,a.mirror)&&a.iframeManager.addIframe(oe),ju(oe,a.mirror)&&a.stylesheetManager.trackLinkElement(oe),Pa(x)&&a.shadowDomManager.addShadowRoot(W.shadowRoot(x),a.doc)},onIframeLoad:function(oe,ge){a.iframeManager.attachIframe(oe,ge),a.shadowDomManager.observeAttachShadow(oe)},onStylesheetLoad:function(oe,ge){a.stylesheetManager.attachLinkElement(oe,ge)},cssCaptured:J});Ce&&(e.push({parentId:Y,nextId:Pe,node:Ce}),r.add(Ce.id))}};a.mapRemoves.length;)a.mirror.removeNodeFromMap(a.mapRemoves.shift());for(var c=E(a.movedSet),u;!(u=c()).done;){var l=u.value;Lo(a.removesSubTreeCache,l,a.mirror)&&!a.movedSet.has(W.parentNode(l))||o(l)}for(var d=E(a.addedSet),f;!(f=d()).done;){var m=f.value;!No(a.droppedSet,m)&&!Lo(a.removesSubTreeCache,m,a.mirror)||No(a.movedSet,m)?o(m):a.droppedSet.add(m)}for(var _=null;i.length;){var g=null;if(_){var p=a.mirror.getId(W.parentNode(_.value)),v=s(_.value);p!==-1&&v!==-1&&(g=_)}if(!g)for(var y=i.tail;y;){var b=y;if(y=y.previous,b){var C=a.mirror.getId(W.parentNode(b.value)),w=s(b.value);if(w===-1)continue;if(C!==-1){g=b;break}else{var S=b.value,R=W.parentNode(S);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var P=W.host(R),O=a.mirror.getId(P);if(O!==-1){g=b;break}}}}}if(!g){for(;i.head;)i.removeNode(i.head.value);break}_=g.previous,i.removeNode(g.value),o(g.value)}var L={texts:a.texts.map(function(x){var F=x.node,J=W.parentNode(F);return J&&J.tagName==="TEXTAREA"&&a.genTextAreaValueMutation(J),{id:a.mirror.getId(F),value:x.value}}).filter(function(x){return!r.has(x.id)}).filter(function(x){return a.mirror.has(x.id)}),attributes:a.attributes.map(function(x){var F=x.attributes;if(typeof F.style=="string"){var J=JSON.stringify(x.styleDiff),Te=JSON.stringify(x._unchangedStyles);J.length<F.style.length&&(J+Te).split("var(").length===F.style.split("var(").length&&(F.style=x.styleDiff)}return{id:a.mirror.getId(x.node),attributes:F}}).filter(function(x){return!r.has(x.id)}).filter(function(x){return a.mirror.has(x.id)}),removes:a.removes,adds:e};!L.texts.length&&!L.attributes.length&&!L.removes.length&&!L.adds.length||(a.texts=[],a.attributes=[],a.attributeMap=new WeakMap,a.removes=[],a.addedSet=new Set,a.movedSet=new Set,a.droppedSet=new Set,a.removesSubTreeCache=new Set,a.movedMap={},a.mutationCb(L))}}),T(this,"genTextAreaValueMutation",function(e){var r=a.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},a.attributes.push(r),a.attributeMap.set(e,r));var i=Array.from(W.childNodes(e),function(s){return W.textContent(s)||""}).join("");r.attributes.value=Dn({element:e,maskInputOptions:a.maskInputOptions,tagName:e.tagName,type:Bn(e),value:i,maskInputFn:a.maskInputFn})}),T(this,"processMutation",function(e){if(!$i(e.target,a.mirror,a.slimDOMOptions))switch(e.type){case"characterData":{var r=W.textContent(e.target);!Se(e.target,a.blockClass,a.blockSelector,!1)&&r!==e.oldValue&&a.texts.push({value:Ac(e.target,a.maskTextClass,a.maskTextSelector,!0)&&r?a.maskTextFn?a.maskTextFn(r,Wu(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var i=e.target,s=e.attributeName,o=e.target.getAttribute(s);if(s==="value"){var c=Bn(i);o=Dn({element:i,maskInputOptions:a.maskInputOptions,tagName:i.tagName,type:c,value:o,maskInputFn:a.maskInputFn})}if(Se(e.target,a.blockClass,a.blockSelector,!1)||o===e.oldValue)return;var u=a.attributeMap.get(e.target);if(i.tagName==="IFRAME"&&s==="src"&&!a.keepIframeSrcFn(o))if(!i.contentDocument)s="rr_src";else return;if(u||(u={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},a.attributes.push(u),a.attributeMap.set(e.target,u)),s==="type"&&i.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&i.setAttribute("data-rr-is-password","true"),!Sc(i.tagName,s))if(u.attributes[s]=wc(a.doc,Ot(i.tagName),Ot(s),o),s==="style"){if(!a.unattachedDoc)try{a.unattachedDoc=document.implementation.createHTMLDocument()}catch{a.unattachedDoc=a.doc}var l=a.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var d=E(Array.from(i.style)),f;!(f=d()).done;){var m=f.value,_=i.style.getPropertyValue(m),g=i.style.getPropertyPriority(m);_!==l.style.getPropertyValue(m)||g!==l.style.getPropertyPriority(m)?g===""?u.styleDiff[m]=_:u.styleDiff[m]=[_,g]:u._unchangedStyles[m]=[_,g]}for(var p=E(Array.from(l.style)),v;!(v=p()).done;){var y=v.value;i.style.getPropertyValue(y)===""&&(u.styleDiff[y]=!1)}}else s==="open"&&i.tagName==="DIALOG"&&(i.matches("dialog:modal")?u.attributes.rr_open_mode="modal":u.attributes.rr_open_mode="non-modal");break}case"childList":{if(Se(e.target,a.blockClass,a.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){a.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return a.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var C=a.mirror.getId(b),w=kr(e.target)?a.mirror.getId(W.host(e.target)):a.mirror.getId(e.target);Se(e.target,a.blockClass,a.blockSelector,!1)||$i(b,a.mirror,a.slimDOMOptions)||!H_(b,a.mirror)||(a.addedSet.has(b)?(Oa(a.addedSet,b),a.droppedSet.add(b)):a.addedSet.has(e.target)&&C===-1||qu(e.target,a.mirror)||(a.movedSet.has(b)&&a.movedMap[Bo(C,w)]?Oa(a.movedSet,b):(a.removes.push({parentId:w,id:C,isShadow:kr(e.target)&&Cr(e.target)?!0:void 0}),em(b,a.removesSubTreeCache))),a.mapRemoves.push(b))});break}}}),T(this,"genAdds",function(e,r){if(!a.processedNodeManager.inOtherBuffer(e,a)&&!(a.addedSet.has(e)||a.movedSet.has(e))){if(a.mirror.hasNode(e)){if($i(e,a.mirror,a.slimDOMOptions))return;a.movedSet.add(e);var i=null;r&&a.mirror.hasNode(r)&&(i=a.mirror.getId(r)),i&&i!==-1&&(a.movedMap[Bo(a.mirror.getId(e),i)]=!0)}else a.addedSet.add(e),a.droppedSet.delete(e);Se(e,a.blockClass,a.blockSelector,!1)||(W.childNodes(e).forEach(function(s){return a.genAdds(s)}),Pa(e)&&W.childNodes(W.shadowRoot(e)).forEach(function(s){a.processedNodeManager.add(s,a),a.genAdds(s,e)}))}})}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 Oa(t,n){t.delete(n),W.childNodes(n).forEach(function(a){return Oa(t,a)})}function em(t,n){for(var a=[t];a.length;){var e=a.pop();n.has(e)||(n.add(e),W.childNodes(e).forEach(function(r){return a.push(r)}))}}function Lo(t,n,a){return t.size===0?!1:tm(t,n)}function tm(t,n,a){var e=W.parentNode(n);return e?t.has(e):!1}function No(t,n){return t.size===0?!1:Yu(t,n)}function Yu(t,n){var a=W.parentNode(n);return a?t.has(a)?!0:Yu(t,a):!1}var wr;function rm(t){wr=t}function nm(){wr=void 0}var j=function(t){if(!wr)return t;var n=function(){for(var a=arguments.length,e=new Array(a),r=0;r<a;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(i){if(wr&&wr(i)===!0)return;throw i}};return n},Pt=[];function Jr(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 Ku(t,n){var a=new Q_;Pt.push(a),a.init(t);var e=new($u())(j(a.processMutations.bind(a)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function im(t){var n=t.mousemoveCb,a=t.sampling,e=t.doc,r=t.mirror;if(a.mousemove===!1)return function(){};var i=typeof a.mousemove=="number"?a.mousemove:50,s=typeof a.mousemoveCallback=="number"?a.mousemoveCallback:500,o=[],c,u=Ur(j(function(f){var m=Date.now()-c;n(o.map(function(_){return _.timeOffset-=m,_}),f),o=[],c=null}),s),l=j(Ur(j(function(f){var m=Jr(f),_=Ra(f)?f.changedTouches[0]:f,g=_.clientX,p=_.clientY;c||(c=jn()),o.push({x:g,y:p,id:r.getId(m),timeOffset:jn()-c}),u(typeof DragEvent<"u"&&M(f,DragEvent)?D.Drag:M(f,MouseEvent)?D.MouseMove:D.TouchMove)}),i,{trailing:!1})),d=[we("mousemove",l,e),we("touchmove",l,e),we("drag",l,e)];return j(function(){d.forEach(function(f){return f()})})}function am(t){var n=t.mouseInteractionCb,a=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.sampling;if(s.mouseInteraction===!1)return function(){};var o=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[],u=null,l=function(d){return function(f){var m=Jr(f);if(!Se(m,r,i,!0)){var _=null,g=d;if("pointerType"in f){switch(f.pointerType){case"mouse":_=Je.Mouse;break;case"touch":_=Je.Touch;break;case"pen":_=Je.Pen;break}_===Je.Touch?Re[d]===Re.MouseDown?g="TouchStart":Re[d]===Re.MouseUp&&(g="TouchEnd"):Je.Pen}else Ra(f)&&(_=Je.Touch);_!==null?(u=_,(g.startsWith("Touch")&&_===Je.Touch||g.startsWith("Mouse")&&_===Je.Mouse)&&(_=null)):Re[d]===Re.Click&&(_=u,u=null);var p=Ra(f)?f.changedTouches[0]:f;if(p){var v=e.getId(m),y=p.clientX,b=p.clientY;j(n)(H({type:Re[g],id:v,x:y,y:b},_!==null&&{pointerType:_}))}}}};return Object.keys(Re).filter(function(d){return Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&o[d]!==!1}).forEach(function(d){var f=Ot(d),m=l(d);if(window.PointerEvent)switch(Re[d]){case Re.MouseDown:case Re.MouseUp:f=f.replace("mouse","pointer");break;case Re.TouchStart:case Re.TouchEnd:return}c.push(we(f,m,a))}),j(function(){c.forEach(function(d){return d()})})}function Xu(t){var n=t.scrollCb,a=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.sampling,o=j(Ur(j(function(c){var u=Jr(c);if(!(!u||Se(u,r,i,!0))){var l=e.getId(u);if(u===a&&a.defaultView){var d=Uu(a.defaultView);n({id:l,x:d.left,y:d.top})}else n({id:l,x:u.scrollLeft,y:u.scrollTop})}}),s.scroll||100));return we("scroll",o,a)}function sm(t,n){var a=t.viewportResizeCb,e=n.win,r=-1,i=-1,s=j(Ur(j(function(){var o=Vu(),c=zu();(r!==o||i!==c)&&(a({width:Number(c),height:Number(o)}),r=o,i=c)}),200));return we("resize",s,e)}var om=["INPUT","TEXTAREA","SELECT"],Fo=new WeakMap;function cm(t){var n=t.inputCb,a=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.ignoreClass,o=t.ignoreSelector,c=t.maskInputOptions,u=t.maskInputFn,l=t.sampling,d=t.userTriggeredOnInput;function f(C){var w=Jr(C),S=C.isTrusted,R=w&&w.tagName;if(w&&R==="OPTION"&&(w=W.parentElement(w)),!(!w||!R||om.indexOf(R)<0||Se(w,r,i,!0))&&!(w.classList.contains(s)||o&&w.matches(o))){var P=w.value,O=!1,L=Bn(w)||"";L==="radio"||L==="checkbox"?O=w.checked:(c[R.toLowerCase()]||c[L])&&(P=Dn({element:w,maskInputOptions:c,tagName:R,type:L,value:P,maskInputFn:u})),m(w,d?{text:P,isChecked:O,userTriggered:S}:{text:P,isChecked:O});var x=w.name;L==="radio"&&x&&O&&a.querySelectorAll('input[type="radio"][name="'+x+'"]').forEach(function(F){if(F!==w){var J=F.value;m(F,d?{text:J,isChecked:!O,userTriggered:!1}:{text:J,isChecked:!O})}})}}function m(C,w){var S=Fo.get(C);if(!S||S.text!==w.text||S.isChecked!==w.isChecked){Fo.set(C,w);var R=e.getId(C);j(n)(H({},w,{id:R}))}}var _=l.input==="last"?["change"]:["input","change"],g=_.map(function(C){return we(C,j(f),a)}),p=a.defaultView;if(!p)return function(){g.forEach(function(C){return C()})};var v=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),y=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];if(v&&v.set){var b;(b=g).push.apply(b,[].concat(y.map(function(C){return gi(C[0],C[1],{set:function(){j(f)({target:this,isTrusted:!1})}},!1,p)})))}return j(function(){g.forEach(function(C){return C()})})}function Hn(t){var n=[];function a(e,r){if(kn("CSSGroupingRule")&&M(e.parentRule,CSSGroupingRule)||kn("CSSMediaRule")&&M(e.parentRule,CSSMediaRule)||kn("CSSSupportsRule")&&M(e.parentRule,CSSSupportsRule)||kn("CSSConditionRule")&&M(e.parentRule,CSSConditionRule)){var i=Array.from(e.parentRule.cssRules),s=i.indexOf(e);r.unshift(s)}else if(e.parentStyleSheet){var o=Array.from(e.parentStyleSheet.cssRules),c=o.indexOf(e);r.unshift(c)}return r}return a(t,n)}function it(t,n,a){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=a.getId(t),{styleId:r,id:e}):{}}function um(t,n){var a=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,i=n.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:j(function(f,m,_){var g=_[0],p=_[1],v=it(m,e,r.styleMirror),y=v.id,b=v.styleId;return(y&&y!==-1||b&&b!==-1)&&a({id:y,styleId:b,adds:[{rule:g,index:p}]}),f.apply(m,_)})}),i.CSSStyleSheet.prototype.addRule=function(f,m,_){_===void 0&&(_=this.cssRules.length);var g=f+" { "+m+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[g,_])};var o=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:j(function(f,m,_){var g=_[0],p=it(m,e,r.styleMirror),v=p.id,y=p.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,removes:[{index:g}]}),f.apply(m,_)})}),i.CSSStyleSheet.prototype.removeRule=function(f){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[f])};var c;i.CSSStyleSheet.prototype.replace&&(c=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:j(function(f,m,_){var g=_[0],p=it(m,e,r.styleMirror),v=p.id,y=p.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,replace:g}),f.apply(m,_)})}));var u;i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:j(function(f,m,_){var g=_[0],p=it(m,e,r.styleMirror),v=p.id,y=p.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,replaceSync:g}),f.apply(m,_)})}));var l={};Cn("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(Cn("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),Cn("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),Cn("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(l).forEach(function(f){var m=f[0],_=f[1];d[m]={insertRule:_.prototype.insertRule,deleteRule:_.prototype.deleteRule},_.prototype.insertRule=new Proxy(d[m].insertRule,{apply:j(function(g,p,v){var y=v[0],b=v[1],C=it(p.parentStyleSheet,e,r.styleMirror),w=C.id,S=C.styleId;return(w&&w!==-1||S&&S!==-1)&&a({id:w,styleId:S,adds:[{rule:y,index:[].concat(Hn(p),[b||0])}]}),g.apply(p,v)})}),_.prototype.deleteRule=new Proxy(d[m].deleteRule,{apply:j(function(g,p,v){var y=v[0],b=it(p.parentStyleSheet,e,r.styleMirror),C=b.id,w=b.styleId;return(C&&C!==-1||w&&w!==-1)&&a({id:C,styleId:w,removes:[{index:[].concat(Hn(p),[y])}]}),g.apply(p,v)})})}),j(function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=o,c&&(i.CSSStyleSheet.prototype.replace=c),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(function(f){var m=f[0],_=f[1];_.prototype.insertRule=d[m].insertRule,_.prototype.deleteRule=d[m].deleteRule})})}function Qu(t,n){var a=t.mirror,e=t.stylesheetManager,r,i,s,o=null;n.nodeName==="#document"?o=a.getId(n):o=a.getId(W.host(n));var c=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(i=n.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.ShadowRoot,u=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!c||!u?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var d;return(d=u.get)==null?void 0:d.call(this)},set:function(d){var f,m=(f=u.set)==null?void 0:f.call(this,d);if(o!==null&&o!==-1)try{e.adoptStyleSheets(d,o)}catch{}return m}}),j(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))}function lm(t,n){var a=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,i=t.stylesheetManager,s=n.win,o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:j(function(u,l,d){var f,m=d[0],_=d[1],g=d[2];if(r.has(m))return o.apply(l,[m,_,g]);var p=it((f=l.parentRule)==null?void 0:f.parentStyleSheet,e,i.styleMirror),v=p.id,y=p.styleId;return(v&&v!==-1||y&&y!==-1)&&a({id:v,styleId:y,set:{property:m,value:_,priority:g},index:Hn(l.parentRule)}),u.apply(l,d)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:j(function(u,l,d){var f,m=d[0];if(r.has(m))return c.apply(l,[m]);var _=it((f=l.parentRule)==null?void 0:f.parentStyleSheet,e,i.styleMirror),g=_.id,p=_.styleId;return(g&&g!==-1||p&&p!==-1)&&a({id:g,styleId:p,remove:{property:m},index:Hn(l.parentRule)}),u.apply(l,d)})}),j(function(){s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=c})}function dm(t){var n=t.mediaInteractionCb,a=t.blockClass,e=t.blockSelector,r=t.mirror,i=t.sampling,s=t.doc,o=j(function(u){return Ur(j(function(l){var d=Jr(l);if(!(!d||Se(d,a,e,!0))){var f=d.currentTime,m=d.volume,_=d.muted,g=d.playbackRate,p=d.loop;n({type:u,id:r.getId(d),currentTime:f,volume:m,muted:_,playbackRate:g,loop:p})}}),i.media||500)}),c=[we("play",o(Gt.Play),s),we("pause",o(Gt.Pause),s),we("seeked",o(Gt.Seeked),s),we("volumechange",o(Gt.VolumeChange),s),we("ratechange",o(Gt.RateChange),s)];return j(function(){c.forEach(function(u){return u()})})}function fm(t){var n=t.fontCb,a=t.doc,e=a.defaultView;if(!e)return function(){};var r=[],i=new WeakMap,s=e.FontFace;e.FontFace=function(u,l,d){var f=new s(u,l,d);return i.set(f,{family:u,buffer:typeof l!="string",descriptors:d,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),f};var o=Bt(a.fonts,"add",function(c){return function(u){return setTimeout(j(function(){var l=i.get(u);l&&(n(l),i.delete(u))}),0),c.apply(this,[u])}});return r.push(function(){e.FontFace=s}),r.push(o),j(function(){r.forEach(function(c){return c()})})}function hm(t){var n=t.doc,a=t.mirror,e=t.blockClass,r=t.blockSelector,i=t.selectionCb,s=!0,o=j(function(){var c=n.getSelection();if(!(!c||s&&c?.isCollapsed)){s=c.isCollapsed||!1;for(var u=[],l=c.rangeCount||0,d=0;d<l;d++){var f=c.getRangeAt(d),m=f.startContainer,_=f.startOffset,g=f.endContainer,p=f.endOffset,v=Se(m,e,r,!0)||Se(g,e,r,!0);v||u.push({start:a.getId(m),startOffset:_,end:a.getId(g),endOffset:p})}i({ranges:u})}});return o(),we("selectionchange",o)}function pm(t){var n=t.doc,a=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=Bt(e.customElements,"define",function(i){return function(s,o,c){try{a({define:{name:s}})}catch{console.warn("Custom element callback failed for "+s)}return i.apply(this,[s,o,c])}});return r}function _m(t,n){var a=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,i=t.scrollCb,s=t.viewportResizeCb,o=t.inputCb,c=t.mediaInteractionCb,u=t.styleSheetRuleCb,l=t.styleDeclarationCb,d=t.canvasMutationCb,f=t.fontCb,m=t.selectionCb,_=t.customElementCb;t.mutationCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.mutation){var y;(y=n).mutation.apply(y,[].concat(p))}a.apply(void 0,[].concat(p))},t.mousemoveCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.mousemove){var y;(y=n).mousemove.apply(y,[].concat(p))}e.apply(void 0,[].concat(p))},t.mouseInteractionCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.mouseInteraction){var y;(y=n).mouseInteraction.apply(y,[].concat(p))}r.apply(void 0,[].concat(p))},t.scrollCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.scroll){var y;(y=n).scroll.apply(y,[].concat(p))}i.apply(void 0,[].concat(p))},t.viewportResizeCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.viewportResize){var y;(y=n).viewportResize.apply(y,[].concat(p))}s.apply(void 0,[].concat(p))},t.inputCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.input){var y;(y=n).input.apply(y,[].concat(p))}o.apply(void 0,[].concat(p))},t.mediaInteractionCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.mediaInteaction){var y;(y=n).mediaInteaction.apply(y,[].concat(p))}c.apply(void 0,[].concat(p))},t.styleSheetRuleCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.styleSheetRule){var y;(y=n).styleSheetRule.apply(y,[].concat(p))}u.apply(void 0,[].concat(p))},t.styleDeclarationCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.styleDeclaration){var y;(y=n).styleDeclaration.apply(y,[].concat(p))}l.apply(void 0,[].concat(p))},t.canvasMutationCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.canvasMutation){var y;(y=n).canvasMutation.apply(y,[].concat(p))}d.apply(void 0,[].concat(p))},t.fontCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.font){var y;(y=n).font.apply(y,[].concat(p))}f.apply(void 0,[].concat(p))},t.selectionCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.selection){var y;(y=n).selection.apply(y,[].concat(p))}m.apply(void 0,[].concat(p))},t.customElementCb=function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];if(n.customElement){var y;(y=n).customElement.apply(y,[].concat(p))}_.apply(void 0,[].concat(p))}}function mm(t,n){n===void 0&&(n={});var a=t.doc.defaultView;if(!a)return function(){};_m(t,n);var e;t.recordDOM&&(e=Ku(t,t.doc));var r=im(t),i=am(t),s=Xu(t),o=sm(t,{win:a}),c=cm(t),u=dm(t),l=function(){},d=function(){},f=function(){},m=function(){};t.recordDOM&&(l=um(t,{win:a}),d=Qu(t,t.doc),f=lm(t,{win:a}),t.collectFonts&&(m=fm(t)));for(var _=hm(t),g=pm(t),p=[],v=E(t.plugins),y;!(y=v()).done;){var b=y.value;p.push(b.observer(b.callback,a,b.options))}return j(function(){Pt.forEach(function(C){return C.reset()}),e?.disconnect(),r(),i(),s(),o(),c(),u(),l(),d(),f(),m(),_(),g(),p.forEach(function(C){return C()})})}function kn(t){return typeof window[t]<"u"}function Cn(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}var $o=function(){function t(a){T(this,"iframeIdToRemoteIdMap",new WeakMap),T(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=a}var n=t.prototype;return n.getId=function(e,r,i,s){var o=i||this.getIdToRemoteIdMap(e),c=s||this.getRemoteIdToIdMap(e),u=o.get(r);return u||(u=this.generateIdFn(),o.set(r,u),c.set(u,r)),u},n.getIds=function(e,r){var i=this,s=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e);return r.map(function(c){return i.getId(e,c,s,o)})},n.getRemoteId=function(e,r,i){var s=i||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var o=s.get(r);return o||-1},n.getRemoteIds=function(e,r){var i=this,s=this.getRemoteIdToIdMap(e);return r.map(function(o){return i.getRemoteId(e,o,s)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}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}(),gm=function(){function t(a){T(this,"iframes",new WeakMap),T(this,"crossOriginIframeMap",new WeakMap),T(this,"crossOriginIframeMirror",new $o(Cc)),T(this,"crossOriginIframeStyleMirror"),T(this,"crossOriginIframeRootIdMap",new WeakMap),T(this,"mirror"),T(this,"mutationCb"),T(this,"wrappedEmit"),T(this,"loadListener"),T(this,"stylesheetManager"),T(this,"recordCrossOriginIframes"),this.mutationCb=a.mutationCb,this.wrappedEmit=a.wrappedEmit,this.stylesheetManager=a.stylesheetManager,this.recordCrossOriginIframes=a.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new $o(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=a.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)){var i=e.source;if(i){var s=this.crossOriginIframeMap.get(e.source);if(s){var o=this.transformCrossOriginEvent(s,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var i=this,s;switch(r.type){case q.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var o=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,o),this.patchRootIdOnNode(r.data.node,o),{timestamp:r.timestamp,type:q.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case q.Meta:case q.Load:case q.DomContentLoaded:return!1;case q.Plugin:return r;case q.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case q.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(function(c){i.replaceIds(c,e,["parentId","nextId","previousId"]),i.replaceIdOnNode(c.node,e);var u=i.crossOriginIframeRootIdMap.get(e);u&&i.patchRootIdOnNode(c.node,u)}),r.data.removes.forEach(function(c){i.replaceIds(c,e,["parentId","id"])}),r.data.attributes.forEach(function(c){i.replaceIds(c,e,["id"])}),r.data.texts.forEach(function(c){i.replaceIds(c,e,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(function(c){i.replaceIds(c,e,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,e,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(function(c){i.replaceIds(c,e,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(c){i.replaceStyleIds(c,e,["styleId"])}),r}}return!1},n.replace=function(e,r,i,s){for(var o=E(s),c;!(c=o()).done;){var u=c.value;!Array.isArray(r[u])&&typeof r[u]!="number"||(Array.isArray(r[u])?r[u]=e.getIds(i,r[u]):r[u]=e.getId(i,r[u]))}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!==Zu.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){i.patchRootIdOnNode(s,r)})},t}(),vm=function(){function t(a){T(this,"shadowDoms",new WeakSet),T(this,"mutationCb"),T(this,"scrollCb"),T(this,"bypassOptions"),T(this,"mirror"),T(this,"restoreHandlers",[]),this.mutationCb=a.mutationCb,this.scrollCb=a.scrollCb,this.bypassOptions=a.bypassOptions,this.mirror=a.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(Cr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Ku(H({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Xu(H({},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(W.host(e))),i.restoreHandlers.push(Qu({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(Bt(e.prototype,"attachShadow",function(s){return function(o){var c=s.call(this,o),u=W.shadowRoot(this);return u&&Ju(this)&&i.addShadowRoot(u,r),c}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t}(),Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ym=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var wn=0;wn<Jt.length;wn++)ym[Jt.charCodeAt(wn)]=wn;var bm=function(n){var a=new Uint8Array(n),e,r=a.length,i="";for(e=0;e<r;e+=3)i+=Jt[a[e]>>2],i+=Jt[(a[e]&3)<<4|a[e+1]>>4],i+=Jt[(a[e+1]&15)<<2|a[e+2]>>6],i+=Jt[a[e+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Uo=new Map;function km(t,n){var a=Uo.get(t);return a||(a=new Map,Uo.set(t,a)),a.has(n)||a.set(n,[]),a.get(n)}var el=function(t,n,a){if(!(!t||!(rl(t,n)||(typeof t>"u"?"undefined":$(t))==="object"))){var e=t.constructor.name,r=km(a,e),i=r.indexOf(t);return i===-1&&(i=r.length,r.push(t)),i}};function On(t,n,a){if(M(t,Array))return t.map(function(_){return On(_,n,a)});if(t===null)return t;if(M(t,Float32Array)||M(t,Float64Array)||M(t,Int32Array)||M(t,Uint32Array)||M(t,Uint8Array)||M(t,Uint16Array)||M(t,Int16Array)||M(t,Int8Array)||M(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(M(t,ArrayBuffer)){var r=t.constructor.name,i=bm(t);return{rr_type:r,base64:i}}else if(M(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[On(t.buffer,n,a),t.byteOffset,t.byteLength]}}else if(M(t,HTMLImageElement)){var o=t.constructor.name,c=t.src;return{rr_type:o,src:c}}else if(M(t,HTMLCanvasElement)){var u="HTMLImageElement",l=t.toDataURL();return{rr_type:u,src:l}}else if(M(t,ImageData)){var d=t.constructor.name;return{rr_type:d,args:[On(t.data,n,a),t.width,t.height]}}else if(rl(t,n)||(typeof t>"u"?"undefined":$(t))==="object"){var f=t.constructor.name,m=el(t,n,a);return{rr_type:f,index:m}}return t}var tl=function(t,n,a){return t.map(function(e){return On(e,n,a)})},rl=function(t,n){var a=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=a.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return M(t,n[r])})};function Cm(t,n,a,e){for(var r=function(){var u=c.value;try{if(typeof n.CanvasRenderingContext2D.prototype[u]!="function")return"continue";var l=Bt(n.CanvasRenderingContext2D.prototype,u,function(f){return function(){for(var m=this,_=arguments.length,g=new Array(_),p=0;p<_;p++)g[p]=arguments[p];return Se(this.canvas,a,e,!0)||setTimeout(function(){var v=tl(g,n,m);t(m.canvas,{type:ir["2D"],property:u,args:v})},0),f.apply(this,g)}});i.push(l)}catch{var d=gi(n.CanvasRenderingContext2D.prototype,u,{set:function(_){t(this.canvas,{type:ir["2D"],property:u,args:[_],setter:!0})}});i.push(d)}},i=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),o=E(s),c;!(c=o()).done;)r();return function(){i.forEach(function(u){return u()})}}function wm(t){return t==="experimental-webgl"?"webgl":t}function Vo(t,n,a,e){var r=[];try{var i=Bt(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(o){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];if(!Se(this,n,a,!0)){var d=wm(o);if("__context"in this||(this.__context=d),e&&["webgl","webgl2"].includes(d))if(u[0]&&$(u[0])==="object"){var f=u[0];f.preserveDrawingBuffer||(f.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([o],u))}});r.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function zo(t,n,a,e,r,i){for(var s=function(){var d=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))return"continue";try{if(typeof t[d]!="function")return"continue";var f=Bt(t,d,function(_){return function(){for(var g=arguments.length,p=new Array(g),v=0;v<g;v++)p[v]=arguments[v];var y=_.apply(this,p);if(el(y,i,this),"tagName"in this.canvas&&!Se(this.canvas,e,r,!0)){var b=tl(p,i,this),C={type:n,property:d,args:b};a(this.canvas,C)}return y}});o.push(f)}catch{var m=gi(t,d,{set:function(p){a(this.canvas,{type:n,property:d,args:[p],setter:!0})}});o.push(m)}},o=[],c=Object.getOwnPropertyNames(t),u=E(c),l;!(l=u()).done;)s();return o}function Sm(t,n,a,e){var r,i=[];if((r=i).push.apply(r,[].concat(zo(n.WebGLRenderingContext.prototype,ir.WebGL,t,a,e,n))),typeof n.WebGL2RenderingContext<"u"){var s;(s=i).push.apply(s,[].concat(zo(n.WebGL2RenderingContext.prototype,ir.WebGL2,t,a,e,n)))}return function(){i.forEach(function(o){return o()})}}var nl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Am=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},Wo=typeof window<"u"&&window.Blob&&new Blob([Am(nl)],{type:"text/javascript;charset=utf-8"});function Tm(t){var n;try{if(n=Wo&&(window.URL||window.webkitURL).createObjectURL(Wo),!n)throw"";var a=new Worker(n,{name:t?.name});return a.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),a}catch{return new Worker("data:text/javascript;base64,"+nl,{name:t?.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Em=function(){function t(a){var e=this;T(this,"pendingCanvasMutations",new Map),T(this,"rafStamps",{latestId:0,invokeId:null}),T(this,"mirror"),T(this,"mutationCb"),T(this,"resetObservers"),T(this,"frozen",!1),T(this,"locked",!1),T(this,"processMutation",function(d,f){var m=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(m||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(d)||e.pendingCanvasMutations.set(d,[]),e.pendingCanvasMutations.get(d).push(f)});var r=a.sampling,i=r===void 0?"all":r,s=a.win,o=a.blockClass,c=a.blockSelector,u=a.recordCanvas,l=a.dataURLOptions;this.mutationCb=a.mutationCb,this.mirror=a.mirror,u&&i==="all"&&this.initCanvasMutationObserver(s,o,c),u&&typeof i=="number"&&this.initCanvasFPSObserver(i,s,o,c,{dataURLOptions:l})}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,o){var c=this,u=Vo(r,i,s,!0),l=new Map,d=new Tm;d.onmessage=function(v){var y=v.data.id;if(l.set(y,!1),"base64"in v.data){var b=v.data,C=b.base64,w=b.type,S=b.width,R=b.height;c.mutationCb({id:y,type:ir["2D"],commands:[{property:"clearRect",args:[0,0,S,R]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:w}]},0,0]}]})}};var f=1e3/e,m=0,_,g=function(){var v=[];return r.document.querySelectorAll("canvas").forEach(function(y){Se(y,i,s,!0)||v.push(y)}),v},p=function(v){if(m&&v-m<f){_=requestAnimationFrame(p);return}m=v;var y=c;g().forEach(Ga(function(b){var C,w,S,R;return Or(this,function(P){switch(P.label){case 0:return w=y.mirror.getId(b),l.get(w)?[2]:b.width===0||b.height===0?[2]:(l.set(w,!0),["webgl","webgl2"].includes(b.__context)&&(S=b.getContext(b.__context),((C=S?.getContextAttributes())==null?void 0:C.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return R=P.sent(),d.postMessage({id:w,bitmap:R,width:b.width,height:b.height,dataURLOptions:o.dataURLOptions},[R]),[2]}})})),_=requestAnimationFrame(p)};_=requestAnimationFrame(p),this.resetObservers=function(){u(),cancelAnimationFrame(_)}},n.initCanvasMutationObserver=function(e,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Vo(e,r,i,!1),o=Cm(this.processMutation.bind(this),e,r,i),c=Sm(this.processMutation.bind(this),e,r,i);this.resetObservers=function(){s(),o(),c()}},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(c){c.type;var u=Rr(c,["type"]);return u}),o=i[0].type;this.mutationCb({id:r,type:o,commands:s}),this.pendingCanvasMutations.delete(e)}}},t}(),Rm=function(){function t(a){T(this,"trackedLinkElements",new WeakSet),T(this,"mutationCb"),T(this,"adoptedStyleSheetCb"),T(this,"styleMirror",new Z_),this.mutationCb=a.mutationCb,this.adoptedStyleSheetCb=a.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 d=l.value,f=void 0;i.styleMirror.has(d)?f=i.styleMirror.getId(d):(f=i.styleMirror.add(d),c.push({styleId:f,rules:Array.from(d.rules||CSSRule,function(m,_){return{rule:yc(m,d.href),index:_}})})),o.styleIds.push(f)};if(e.length!==0){for(var o={id:r,styleIds:[]},c=[],u=E(e),l;!(l=u()).done;)i=this,s();c.length>0&&(o.styles=c),this.adoptedStyleSheetCb(o)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(e){},t}(),Pm=function(){function t(){T(this,"nodeMap",new WeakMap),T(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}(),ue,In,Ui,Jn=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var Vi=document.createElement("iframe");document.body.appendChild(Vi),Array.from=((Gs=Vi.contentWindow)==null?void 0:Gs.Array.from)||Array.from,document.body.removeChild(Vi)}}catch(t){console.debug("Unable to override Array.from",t)}var Le=Od();function _t(t){t===void 0&&(t={});var n=t.emit,a=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,i=r===void 0?"rr-block":r,s=t.blockSelector,o=s===void 0?null:s,c=t.ignoreClass,u=c===void 0?"rr-ignore":c,l=t.ignoreSelector,d=l===void 0?null:l,f=t.maskTextClass,m=f===void 0?"rr-mask":f,_=t.maskTextSelector,g=_===void 0?null:_,p=t.inlineStylesheet,v=p===void 0?!0:p,y=t.maskAllInputs,b=t.maskInputOptions,C=t.slimDOMOptions,w=t.maskInputFn,S=t.maskTextFn,R=t.hooks,P=t.packFn,O=t.sampling,L=O===void 0?{}:O,x=t.dataURLOptions,F=x===void 0?{}:x,J=t.mousemoveWait,Te=t.recordDOM,Y=Te===void 0?!0:Te,Pe=t.recordCanvas,Ce=Pe===void 0?!1:Pe,oe=t.recordCrossOriginIframes,ge=oe===void 0?!1:oe,Oe=t.recordAfter,yt=Oe===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":Oe,$e=t.userTriggeredOnInput,Nt=$e===void 0?!1:$e,Ie=t.collectFonts,bt=Ie===void 0?!1:Ie,Z=t.inlineImages,kt=Z===void 0?!1:Z,Ct=t.plugins,Ft=t.keepIframeSrcFn,dr=Ft===void 0?function(){return!1}:Ft,fr=t.ignoreCSSAttributes,wi=fr===void 0?new Set([]):fr,Yr=t.errorHandler;rm(Yr);var nt=ge?window.parent===window:!0,wt=!1;if(!nt)try{window.parent.document&&(wt=!1)}catch{wt=!0}if(nt&&!n)throw new Error("emit function is required");if(!nt&&!wt)return function(){};J!==void 0&&L.mousemove===void 0&&(L.mousemove=J),Le.reset();var $t=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},hr=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:C||{};J_();var Ut,St=0,He=function(K){for(var Ee=E(Ct||[]),I;!(I=Ee()).done;){var ce=I.value;ce.eventProcessor&&(K=ce.eventProcessor(K))}return P&&!wt&&(K=P(K)),K};ue=function(K,Ee){var I,ce=K;if(ce.timestamp=jn(),(I=Pt[0])!=null&&I.isFrozen()&&ce.type!==q.FullSnapshot&&!(ce.type===q.IncrementalSnapshot&&ce.data.source===D.Mutation)&&Pt.forEach(function(td){return td.unfreeze()}),nt)n?.(He(ce),Ee);else if(wt){var Xl={type:"rrweb",event:He(ce),origin:window.location.origin,isCheckout:Ee};window.parent.postMessage(Xl,"*")}if(ce.type===q.FullSnapshot)Ut=ce,St=0;else if(ce.type===q.IncrementalSnapshot){if(ce.data.source===D.Mutation&&ce.data.isAttachIframe)return;St++;var Ql=e&&St>=e,ed=a&&ce.timestamp-Ut.timestamp>a;(Ql||ed)&&In(!0)}};for(var At=function(K){ue({type:q.IncrementalSnapshot,data:H({source:D.Mutation},K)})},Ms=function(K){return ue({type:q.IncrementalSnapshot,data:H({source:D.Scroll},K)})},Ds=function(K){return ue({type:q.IncrementalSnapshot,data:H({source:D.CanvasMutation},K)})},Yl=function(K){return ue({type:q.IncrementalSnapshot,data:H({source:D.AdoptedStyleSheet},K)})},Tt=new Rm({mutationCb:At,adoptedStyleSheetCb:Yl}),Et=new gm({mirror:Le,mutationCb:At,stylesheetManager:Tt,recordCrossOriginIframes:ge,wrappedEmit:ue}),Kl=E(Ct||[]),Bs;!(Bs=Kl()).done;){var Ls=Bs.value;Ls.getMirror&&Ls.getMirror({nodeMirror:Le,crossOriginIframeMirror:Et.crossOriginIframeMirror,crossOriginIframeStyleMirror:Et.crossOriginIframeStyleMirror})}var Si=new Pm;Ui=new Em({recordCanvas:Ce,mutationCb:Ds,win:window,blockClass:i,blockSelector:o,mirror:Le,sampling:L.canvas,dataURLOptions:F});var Kr=new vm({mutationCb:At,scrollCb:Ms,bypassOptions:{blockClass:i,blockSelector:o,maskTextClass:m,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:$t,dataURLOptions:F,maskTextFn:S,maskInputFn:w,recordCanvas:Ce,inlineImages:kt,sampling:L,slimDOMOptions:hr,iframeManager:Et,stylesheetManager:Tt,canvasManager:Ui,keepIframeSrcFn:dr,processedNodeManager:Si},mirror:Le});In=function(K){if(K===void 0&&(K=!1),!!Y){ue({type:q.Meta,data:{href:window.location.href,width:zu(),height:Vu()}},K),Tt.reset(),Kr.init(),Pt.forEach(function(I){return I.lock()});var Ee=ef(document,{mirror:Le,blockClass:i,blockSelector:o,maskTextClass:m,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:$t,maskTextFn:S,maskInputFn:w,slimDOM:hr,dataURLOptions:F,recordCanvas:Ce,inlineImages:kt,onSerialize:function(I){Gu(I,Le)&&Et.addIframe(I),ju(I,Le)&&Tt.trackLinkElement(I),Pa(I)&&Kr.addShadowRoot(W.shadowRoot(I),document)},onIframeLoad:function(I,ce){Et.attachIframe(I,ce),Kr.observeAttachShadow(I)},onStylesheetLoad:function(I,ce){Tt.attachLinkElement(I,ce)},keepIframeSrcFn:dr});if(!Ee)return console.warn("Failed to snapshot the document");ue({type:q.FullSnapshot,data:{node:Ee,initialOffset:Uu(window)}},K),Pt.forEach(function(I){return I.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Tt.adoptStyleSheets(document.adoptedStyleSheets,Le.getId(document))}};try{var pr=[],Ns=function(K){var Ee;return j(mm)({mutationCb:At,mousemoveCb:function(I,ce){return ue({type:q.IncrementalSnapshot,data:{source:ce,positions:I}})},mouseInteractionCb:function(I){return ue({type:q.IncrementalSnapshot,data:H({source:D.MouseInteraction},I)})},scrollCb:Ms,viewportResizeCb:function(I){return ue({type:q.IncrementalSnapshot,data:H({source:D.ViewportResize},I)})},inputCb:function(I){return ue({type:q.IncrementalSnapshot,data:H({source:D.Input},I)})},mediaInteractionCb:function(I){return ue({type:q.IncrementalSnapshot,data:H({source:D.MediaInteraction},I)})},styleSheetRuleCb:function(I){return ue({type:q.IncrementalSnapshot,data:H({source:D.StyleSheetRule},I)})},styleDeclarationCb:function(I){return ue({type:q.IncrementalSnapshot,data:H({source:D.StyleDeclaration},I)})},canvasMutationCb:Ds,fontCb:function(I){return ue({type:q.IncrementalSnapshot,data:H({source:D.Font},I)})},selectionCb:function(I){ue({type:q.IncrementalSnapshot,data:H({source:D.Selection},I)})},customElementCb:function(I){ue({type:q.IncrementalSnapshot,data:H({source:D.CustomElement},I)})},blockClass:i,ignoreClass:u,ignoreSelector:d,maskTextClass:m,maskTextSelector:g,maskInputOptions:$t,inlineStylesheet:v,sampling:L,recordDOM:Y,recordCanvas:Ce,inlineImages:kt,userTriggeredOnInput:Nt,collectFonts:bt,doc:K,maskInputFn:w,maskTextFn:S,keepIframeSrcFn:dr,blockSelector:o,slimDOMOptions:hr,dataURLOptions:F,mirror:Le,iframeManager:Et,stylesheetManager:Tt,shadowDomManager:Kr,processedNodeManager:Si,canvasManager:Ui,ignoreCSSAttributes:wi,plugins:((Ee=Ct?.filter(function(I){return I.observer}))==null?void 0:Ee.map(function(I){return{observer:I.observer,options:I.options,callback:function(ce){return ue({type:q.Plugin,data:{plugin:I.name,payload:ce}})}}}))||[]},R)};Et.addLoadListener(function(K){try{pr.push(Ns(K.contentDocument))}catch(Ee){console.warn(Ee)}});var Ai=function(){In(),pr.push(Ns(document)),Jn=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ai():(pr.push(we("DOMContentLoaded",function(){ue({type:q.DomContentLoaded,data:{}}),yt==="DOMContentLoaded"&&Ai()})),pr.push(we("load",function(){ue({type:q.Load,data:{}}),yt==="load"&&Ai()},window))),function(){pr.forEach(function(K){try{K()}catch(I){var Ee=String(I).toLowerCase();Ee.includes("cross-origin")||console.warn(I)}}),Si.destroy(),Jn=!1,nm()}}catch(K){console.warn(K)}}_t.addCustomEvent=function(t,n){if(!Jn)throw new Error("please add custom event after start recording");ue({type:q.Custom,data:{tag:t,payload:n}})};_t.freezePage=function(){Pt.forEach(function(t){return t.freeze()})};_t.takeFullSnapshot=function(t){if(!Jn)throw new Error("please take full snapshot after start recording");In(t)};_t.mirror=Le;var qo;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(qo||(qo={}));_t.addCustomEvent;_t.freezePage;_t.takeFullSnapshot;var Om=Object.defineProperty,Im=function(t,n,a){return n in t?Om(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a},Sn=function(t,n,a){return Im(t,(typeof n>"u"?"undefined":$(n))!=="symbol"?n+"":n,a)};function xm(t,n,a){try{if(!(n in t))return function(){};var e=t[n],r=a(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch{return function(){}}}var zt=function(){function t(a){Sn(this,"fileName"),Sn(this,"functionName"),Sn(this,"lineNumber"),Sn(this,"columnNumber"),this.fileName=a.fileName||"",this.functionName=a.functionName||"",this.lineNumber=a.lineNumber,this.columnNumber=a.columnNumber}var n=t.prototype;return n.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t}(),Mm=/(^|@)\S+:\d+/,Go=/^\s*at .*(\S+:\d+|\(native\))/m,Dm=/^(eval@)?(\[native code])?$/,zi={parse:function(n){return n?typeof n.stacktrace<"u"||typeof n["opera#sourceloc"]<"u"?this.parseOpera(n):n.stack&&n.stack.match(Go)?this.parseV8OrIE(n):n.stack?this.parseFFOrSafari(n):(console.warn("[console-record-plugin]: Failed to parse error object:",n),[]):[]},extractLocation:function(n){if(n.indexOf(":")===-1)return[n];var a=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=a.exec(n.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+n);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(n){var a=n.stack.split(`
|
|
54
|
-
`).filter(function(e){return!!e.match(Go)},this);return a.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),i=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=i?r.replace(i[0],""):r;var s=r.split(/\s+/).slice(1),o=this.extractLocation(i?i[1]:s.pop()),c=s.join(" ")||void 0,u=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new zt({functionName:c,fileName:u,lineNumber:o[1],columnNumber:o[2]})},this)},parseFFOrSafari:function(n){var a=n.stack.split(`
|
|
55
|
-
`).filter(function(e){return!e.match(Dm)},this);return a.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new zt({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=e.match(r),s=i&&i[1]?i[1]:void 0,o=this.extractLocation(e.replace(r,""));return new zt({functionName:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf(`
|
|
56
|
-
`)>-1&&n.message.split(`
|
|
57
|
-
`).length>n.stacktrace.split(`
|
|
58
|
-
`).length?this.parseOpera9(n):n.stack?this.parseOpera11(n):this.parseOpera10(n)},parseOpera9:function(n){for(var a=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split(`
|
|
59
|
-
`),r=[],i=2,s=e.length;i<s;i+=2){var o=a.exec(e[i]);o&&r.push(new zt({fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera10:function(n){for(var a=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split(`
|
|
60
|
-
`),r=[],i=0,s=e.length;i<s;i+=2){var o=a.exec(e[i]);o&&r.push(new zt({functionName:o[3]||void 0,fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera11:function(n){var a=n.stack.split(`
|
|
61
|
-
`).filter(function(e){return!!e.match(Mm)&&!e.match(/^Error created at/)},this);return a.map(function(e){var r=e.split("@"),i=this.extractLocation(r.pop()),s=r.shift()||"",o=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new zt({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)}};function Bm(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var a=t.localName;if(!a)break;a=a.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var i=0;i<e.children.length;i++){var s=e.children[i];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===a&&r.push(s)}r.length>1&&(a+=":eq("+r.indexOf(t)+")"),n=a+(n?">"+n:""),t=e}return n}function Ia(t){return Object.prototype.toString.call(t)==="[object Object]"}function il(t,n){if(n===0)return!0;for(var a=Object.keys(t),e=E(a),r;!(r=e()).done;){var i=r.value;if(Ia(t[i])&&il(t[i],n-1))return!0}return!1}function Wt(t,n){var a={numOfKeysLimit:50,depthOfLimit:4};Object.assign(a,n);var e=[],r=[];return JSON.stringify(t,function(o,c){if(e.length>0){var u=e.indexOf(this);~u?e.splice(u+1):e.push(this),~u?r.splice(u,1/0,o):r.push(o),~e.indexOf(c)&&(e[0]===c?c="[Circular ~]":c="[Circular ~."+r.slice(0,e.indexOf(c)).join(".")+"]")}else e.push(c);if(c===null)return c;if(c===void 0)return"undefined";if(i(c))return s(c);if((typeof c>"u"?"undefined":$(c))==="bigint")return c.toString()+"n";if(M(c,Event)){var l={};for(var d in c){var f=c[d];Array.isArray(f)?l[d]=Bm(f.length?f[0]:null):l[d]=f}return l}else{if(M(c,Node))return M(c,HTMLElement)?c?c.outerHTML:"":c.nodeName;if(M(c,Error))return c.stack?c.stack+`
|
|
62
|
-
End of stack for Error object`:c.name+": "+c.message}return c});function i(o){return!!(Ia(o)&&Object.keys(o).length>a.numOfKeysLimit||typeof o=="function"||Ia(o)&&il(o,a.depthOfLimit))}function s(o){var c=o.toString();return a.stringLengthLimit&&c.length>a.stringLengthLimit&&(c=""+c.slice(0,a.stringLengthLimit)+"..."),c}}var jo={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 Lm(t,n,a){var e=a?Object.assign({},jo,a):jo,r=e.logger;if(!r)return function(){};var i;typeof r=="string"?i=n[r]:i=r;var s=0,o=!1,c=[];if(e.level.includes("error")){var u=function(g){var p=g.message,v=g.error,y=zi.parse(v).map(function(C){return C.toString()}),b=[Wt(p,e.stringifyOptions)];t({level:"error",trace:y,payload:b})};n.addEventListener("error",u),c.push(function(){n.removeEventListener("error",u)});var l=function(g){var p,v;M(g.reason,Error)?(p=g.reason,v=[Wt("Uncaught (in promise) "+p.name+": "+p.message,e.stringifyOptions)]):(p=new Error,v=[Wt("Uncaught (in promise)",e.stringifyOptions),Wt(g.reason,e.stringifyOptions)]);var y=zi.parse(p).map(function(b){return b.toString()});t({level:"error",trace:y,payload:v})};n.addEventListener("unhandledrejection",l),c.push(function(){n.removeEventListener("unhandledrejection",l)})}for(var d=E(e.level),f;!(f=d()).done;){var m=f.value;c.push(_(i,m))}return function(){c.forEach(function(g){return g()})};function _(g,p){var v=this;return g[p]?xm(g,p,function(y){var b=v;return function(){for(var C=arguments.length,w=new Array(C),S=0;S<C;S++)w[S]=arguments[S];if(y.apply(b,w),!(p==="assert"&&w[0])&&!o){o=!0;try{var R=zi.parse(new Error).map(function(L){return L.toString()}).splice(1),P=p==="assert"?w.slice(1):w,O=P.map(function(L){return Wt(L,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:p,trace:R,payload:O}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[Wt("The number of log records reached the threshold.")]})}catch(L){y.apply(void 0,[].concat(["rrweb logger error:",L],w))}finally{o=!1}}}}):function(){}}}var Nm="rrweb/console@1",Fm=function(t){return{name:Nm,observer:Lm,options:t}},Ho=A.setImmediate,ut,xa,Ma,al=Object.prototype.toString,$m=typeof Ho<"u"?function(n){return Ho(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ut=function(n,a,e,r){return Object.defineProperty(n,a,{value:e,writable:!0,configurable:r!==!1})}}catch{ut=function(a,e,r){return a[e]=r,a}}Ma=function(){var n,a,e;function r(i,s){this.fn=i,this.self=s,this.next=void 0}return{add:function(s,o){e=new r(s,o),a?a.next=e:n=e,a=e,e=void 0},drain:function(){var s=n;for(n=a=xa=void 0;s;)s.fn.call(s.self),s=s.next}}}();function Zn(t,n){Ma.add(t,n),xa||(xa=$m(Ma.drain))}function sl(t){var n,a=typeof t;return t!==null&&(a==="object"||a==="function")&&(n=t.then),typeof n=="function"?n:!1}function _s(){for(var t=0;t<this.chain.length;t++)Um(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function Um(t,n,a){var e,r;try{n===!1?a.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===a.promise?a.reject(TypeError("Promise-chain cycle")):(r=sl(e))?r.call(e,a.resolve,a.reject):a.resolve(e))}catch(i){a.reject(i)}}function ol(t){var n,a=this;if(!a.triggered){a.triggered=!0,a.def&&(a=a.def);try{(n=sl(t))?Zn(function(){var e=new Jo(a);try{n.call(t,function(){ol.apply(e,arguments)},function(){Sr.apply(e,arguments)})}catch(r){Sr.call(e,r)}}):(a.msg=t,a.state=1,a.chain.length>0&&Zn(_s,a))}catch(e){Sr.call(new Jo(a),e)}}}function Sr(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&Zn(_s,n))}function cl(t,n,a,e){for(var r=0;r<n.length;r++)(function(s){t.resolve(n[s]).then(function(c){a(s,c)},e)})(r)}function Jo(t){this.def=t,this.triggered=!1}function Vm(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function mt(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 Vm(this);this.then=function(e,r){var i={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return i.promise=new this.constructor(function(o,c){if(typeof o!="function"||typeof c!="function")throw TypeError("Not a function");i.resolve=o,i.reject=c}),n.chain.push(i),n.state!==0&&Zn(_s,n),i.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){ol.call(n,e)},function(e){Sr.call(n,e)})}catch(a){Sr.call(n,a)}}var ul=ut({},"constructor",mt,!1);mt.prototype=ul;ut(ul,"__NPO__",0,!1);ut(mt,"resolve",function(n){var a=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new a(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");r(n)})});ut(mt,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})});ut(mt,"all",function(n){var a=this;return al.call(n)!=="[object Array]"?a.reject(TypeError("Not an array")):n.length===0?a.resolve([]):new a(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");var s=n.length,o=Array(s),c=0;cl(a,n,function(l,d){o[l]=d,++c===s&&r(o)},i)})});ut(mt,"race",function(n){var a=this;return al.call(n)!=="[object Array]"?a.reject(TypeError("Not an array")):new a(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");cl(a,n,function(o,c){r(c)},i)})});var G;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?G=Promise:G=mt;var De={DEBUG:!1,LIB_VERSION:"2.73.0"},Ar=24*60*60*1e3,Wi=8*1e3,vi=Array.prototype,zm=Function.prototype,ll=Object.prototype,at=vi.slice,Zr=ll.toString,yi=ll.hasOwnProperty,he=A.console,Ze=A.navigator,B=A.document,br=A.opera,Zo=A.screen,ze=Ze.userAgent,qi=zm.bind,Yo=vi.forEach,Ko=vi.indexOf,Xo=vi.map,Wm=Array.isArray,Da={},h={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},V={log:function(){if(De.DEBUG&&!h.isUndefined(he)&&he)try{he.log.apply(he,arguments)}catch{h.each(arguments,function(n){he.log(n)})}},warn:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var t=["Mixpanel warning:"].concat(h.toArray(arguments));try{he.warn.apply(he,t)}catch{h.each(t,function(a){he.warn(a)})}}},error:function(){if(De.DEBUG&&!h.isUndefined(he)&&he){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,t)}catch{h.each(t,function(a){he.error(a)})}}},critical:function(){if(!h.isUndefined(he)&&he){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{he.error.apply(he,t)}catch{h.each(t,function(a){he.error(a)})}}}},Gi=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(V,arguments)}},Lt=function(t){return{log:Gi(V.log,t),error:Gi(V.error,t),critical:Gi(V.critical,t)}},Vr=function(t){return function(){try{return t.apply(this,arguments)}catch(n){V.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),De.DEBUG&&V.critical(n)}}},dl=function(t){var n=t.prototype;for(var a in n)typeof n[a]=="function"&&(n[a]=Vr(n[a]))};h.bind=function(t,n){var a,e;if(qi&&t.bind===qi)return qi.apply(t,at.call(arguments,1));if(!h.isFunction(t))throw new TypeError;return a=at.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,a.concat(at.call(arguments)));var r={};r.prototype=t.prototype;var i=new r;r.prototype=null;var s=t.apply(i,a.concat(at.call(arguments)));return Object(s)===s?s:i},e};h.each=function(t,n,a){if(t!=null){if(Yo&&t.forEach===Yo)t.forEach(n,a);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(a,t[e],e,t)===Da)return}else for(var i in t)if(yi.call(t,i)&&n.call(a,t[i],i,t)===Da)return}};h.extend=function(t){return h.each(at.call(arguments,1),function(n){for(var a in n)n[a]!==void 0&&(t[a]=n[a])}),t};h.isArray=Wm||function(t){return Zr.call(t)==="[object Array]"};h.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch{return!1}};h.isArguments=function(t){return!!(t&&yi.call(t,"callee"))};h.toArray=function(t){return t?t.toArray?t.toArray():h.isArray(t)||h.isArguments(t)?at.call(t):h.values(t):[]};h.map=function(t,n,a){if(Xo&&t.map===Xo)return t.map(n,a);var e=[];return h.each(t,function(r){e.push(n.call(a,r))}),e};h.keys=function(t){var n=[];return t===null||h.each(t,function(a,e){n[n.length]=e}),n};h.values=function(t){var n=[];return t===null||h.each(t,function(a){n[n.length]=a}),n};h.include=function(t,n){var a=!1;return t===null?a:Ko&&t.indexOf===Ko?t.indexOf(n)!=-1:(h.each(t,function(e){if(a||(a=e===n))return Da}),a)};h.includes=function(t,n){return t.indexOf(n)!==-1};h.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t};h.isObject=function(t){return t===Object(t)&&!h.isArray(t)};h.isEmptyObject=function(t){if(h.isObject(t)){for(var n in t)if(yi.call(t,n))return!1;return!0}return!1};h.isUndefined=function(t){return t===void 0};h.isString=function(t){return Zr.call(t)=="[object String]"};h.isDate=function(t){return Zr.call(t)=="[object Date]"};h.isNumber=function(t){return Zr.call(t)=="[object Number]"};h.isElement=function(t){return!!(t&&t.nodeType===1)};h.encodeDates=function(t){return h.each(t,function(n,a){h.isDate(n)?t[a]=h.formatDate(n):h.isObject(n)&&(t[a]=h.encodeDates(n))}),t};h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};h.formatDate=function(t){function n(a){return a<10?"0"+a:a}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())};h.strip_empty_properties=function(t){var n={};return h.each(t,function(a,e){h.isString(a)&&a.length>0&&(n[e]=a)}),n};h.truncate=function(t,n){var a;return typeof t=="string"?a=t.slice(0,n):h.isArray(t)?(a=[],h.each(t,function(e){a.push(h.truncate(e,n))})):h.isObject(t)?(a={},h.each(t,function(e,r){a[r]=h.truncate(e,n)})):a=t,a};h.JSONEncode=function(){return function(t){var n=t,a=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(o){var c=s[o];return typeof c=="string"?c:"\\u"+("0000"+o.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,i){var s="",o=" ",c=0,u="",l="",d=0,f=s,m=[],_=i[r];switch(_&&typeof _=="object"&&typeof _.toJSON=="function"&&(_=_.toJSON(r)),typeof _){case"string":return a(_);case"number":return isFinite(_)?String(_):"null";case"boolean":case"null":return String(_);case"object":if(!_)return"null";if(s+=o,m=[],Zr.apply(_)==="[object Array]"){for(d=_.length,c=0;c<d;c+=1)m[c]=e(c,_)||"null";return l=m.length===0?"[]":s?`[
|
|
63
|
-
`+s+m.join(`,
|
|
64
|
-
`+s)+`
|
|
65
|
-
`+f+"]":"["+m.join(",")+"]",s=f,l}for(u in _)yi.call(_,u)&&(l=e(u,_),l&&m.push(a(u)+(s?": ":":")+l));return l=m.length===0?"{}":s?"{"+m.join(",")+f+"}":"{"+m.join(",")+"}",s=f,l}};return e("",{"":n})}}();h.JSONDecode=function(){var t,n,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
66
|
-
`,r:"\r",t:" "},e,r=function(m){var _=new SyntaxError(m);throw _.at=t,_.text=e,_},i=function(m){return m&&m!==n&&r("Expected '"+m+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},s=function(){var m,_="";for(n==="-"&&(_="-",i("-"));n>="0"&&n<="9";)_+=n,i();if(n===".")for(_+=".";i()&&n>="0"&&n<="9";)_+=n;if(n==="e"||n==="E")for(_+=n,i(),(n==="-"||n==="+")&&(_+=n,i());n>="0"&&n<="9";)_+=n,i();if(m=+_,!isFinite(m))r("Bad number");else return m},o=function(){var m,_,g="",p;if(n==='"')for(;i();){if(n==='"')return i(),g;if(n==="\\")if(i(),n==="u"){for(p=0,_=0;_<4&&(m=parseInt(i(),16),!!isFinite(m));_+=1)p=p*16+m;g+=String.fromCharCode(p)}else if(typeof a[n]=="string")g+=a[n];else break;else g+=n}r("Bad string")},c=function(){for(;n&&n<=" ";)i()},u=function(){switch(n){case"t":return i("t"),i("r"),i("u"),i("e"),!0;case"f":return i("f"),i("a"),i("l"),i("s"),i("e"),!1;case"n":return i("n"),i("u"),i("l"),i("l"),null}r('Unexpected "'+n+'"')},l,d=function(){var m=[];if(n==="["){if(i("["),c(),n==="]")return i("]"),m;for(;n;){if(m.push(l()),c(),n==="]")return i("]"),m;i(","),c()}}r("Bad array")},f=function(){var m,_={};if(n==="{"){if(i("{"),c(),n==="}")return i("}"),_;for(;n;){if(m=o(),c(),i(":"),Object.hasOwnProperty.call(_,m)&&r('Duplicate key "'+m+'"'),_[m]=l(),c(),n==="}")return i("}"),_;i(","),c()}}r("Bad object")};return l=function(){switch(c(),n){case"{":return f();case"[":return d();case'"':return o();case"-":return s();default:return n>="0"&&n<="9"?s():u()}},function(m){var _;return e=m,t=0,n=" ",_=l(),c(),n&&r("Syntax error"),_}}();h.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a,e,r,i,s,o,c,u,l=0,d=0,f="",m=[];if(!t)return t;t=h.utf8Encode(t);do a=t.charCodeAt(l++),e=t.charCodeAt(l++),r=t.charCodeAt(l++),u=a<<16|e<<8|r,i=u>>18&63,s=u>>12&63,o=u>>6&63,c=u&63,m[d++]=n.charAt(i)+n.charAt(s)+n.charAt(o)+n.charAt(c);while(l<t.length);switch(f=m.join(""),t.length%3){case 1:f=f.slice(0,-2)+"==";break;case 2:f=f.slice(0,-1)+"=";break}return f};h.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,`
|
|
67
|
-
`).replace(/\r/g,`
|
|
68
|
-
`);var n="",a,e,r=0,i;for(a=e=0,r=t.length,i=0;i<r;i++){var s=t.charCodeAt(i),o=null;s<128?e++:s>127&&s<2048?o=String.fromCharCode(s>>6|192,s&63|128):o=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),o!==null&&(e>a&&(n+=t.substring(a,e)),n+=o,a=e=i+1)}return e>a&&(n+=t.substring(a,t.length)),n};h.UUID=function(){try{return A.crypto.randomUUID()}catch{for(var t=new Array(36),n=0;n<36;n++)t[n]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",h.map(t,function(e){return e.toString(16)}).join("")}};var Qo=["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"];h.isBlockedUA=function(t){var n;for(t=t.toLowerCase(),n=0;n<Qo.length;n++)if(t.indexOf(Qo[n])!==-1)return!0;return!1};h.HTTPBuildQuery=function(t,n){var a,e,r=[];return h.isUndefined(n)&&(n="&"),h.each(t,function(i,s){a=encodeURIComponent(i.toString()),e=encodeURIComponent(s),r[r.length]=e+"="+a}),r.join(n)};h.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var a="[\\?&]"+n+"=([^&#]*)",e=new RegExp(a),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch{V.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")};h.cookie={get:function(t){for(var n=t+"=",a=B.cookie.split(";"),e=0;e<a.length;e++){for(var r=a[e];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(t){var n;try{n=h.JSONDecode(h.cookie.get(t))||{}}catch{}return n},set_seconds:function(t,n,a,e,r,i,s){var o="",c="",u="";if(s)o="; domain="+s;else if(e){var l=ec(B.location.hostname);o=l?"; domain=."+l:""}if(a){var d=new Date;d.setTime(d.getTime()+a*1e3),c="; expires="+d.toGMTString()}i&&(r=!0,u="; SameSite=None"),r&&(u+="; secure"),B.cookie=t+"="+encodeURIComponent(n)+c+"; path=/"+o+u},set:function(t,n,a,e,r,i,s){var o="",c="",u="";if(s)o="; domain="+s;else if(e){var l=ec(B.location.hostname);o=l?"; domain=."+l:""}if(a){var d=new Date;d.setTime(d.getTime()+a*24*60*60*1e3),c="; expires="+d.toGMTString()}i&&(r=!0,u="; SameSite=None"),r&&(u+="; secure");var f=t+"="+encodeURIComponent(n)+c+"; path=/"+o+u;return B.cookie=f,f},remove:function(t,n,a){h.cookie.set(t,"",-1,n,!1,!1,a)}};var fl=function(t){var n=!0;try{var a="__mplss_"+ms(8),e="xyz";t.setItem(a,e),t.getItem(a)!==e&&(n=!1),t.removeItem(a)}catch{n=!1}return n},ji=null,zr=function(t,n){return ji!==null&&!n?ji:ji=fl(t||A.localStorage)},Hi=null,qm=function(t,n){return Hi!==null&&!n?Hi:Hi=fl(t||A.sessionStorage)};function hl(t,n,a){var e=function(r){V.error(n+" error: "+r)};return{is_supported:function(r){var i=a(t,r);return i||V.error(n+" unsupported"),i},error:e,get:function(r){try{return t.getItem(r)}catch(i){e(i)}return null},parse:function(r){try{return h.JSONDecode(t.getItem(r))||{}}catch{}return null},set:function(r,i){try{t.setItem(r,i)}catch(s){e(s)}},remove:function(r){try{t.removeItem(r)}catch(i){e(i)}}}}h.localStorage=hl(A.localStorage,"localStorage",zr);h.sessionStorage=hl(A.sessionStorage,"sessionStorage",qm);h.register_event=function(){var t=function(e,r,i,s,o){if(!e){V.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(r,i,!!o);else{var c="on"+r,u=e[c];e[c]=n(e,i,u)}};function n(e,r,i){var s=function(o){if(o=o||a(A.event),!!o){var c=!0,u,l;return h.isFunction(i)&&(u=i(o)),l=r.call(e,o),(u===!1||l===!1)&&(c=!1),c}};return s}function a(e){return e&&(e.preventDefault=a.preventDefault,e.stopPropagation=a.stopPropagation),e}return a.preventDefault=function(){this.returnValue=!1},a.stopPropagation=function(){this.cancelBubble=!0},t}();var Gm=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function a(r,i){var s=" "+i+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function e(r){if(!B.getElementsByTagName)return[];var i=r.split(" "),s,o,c,u,l,d,f,m,_,g,p=[B];for(d=0;d<i.length;d++){if(s=i[d].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){o=s.split("#"),c=o[0];var v=o[1],y=B.getElementById(v);if(!y||c&&y.nodeName.toLowerCase()!=c)return[];p=[y];continue}if(s.indexOf(".")>-1){o=s.split("."),c=o[0];var b=o[1];for(c||(c="*"),u=[],l=0,f=0;f<p.length;f++)for(c=="*"?_=t(p[f]):_=p[f].getElementsByTagName(c),m=0;m<_.length;m++)u[l++]=_[m];for(p=[],g=0,f=0;f<u.length;f++)u[f].className&&h.isString(u[f].className)&&a(u[f],b)&&(p[g++]=u[f]);continue}var C=s.match(Gm);if(C){c=C[1];var w=C[2],S=C[3],R=C[4];for(c||(c="*"),u=[],l=0,f=0;f<p.length;f++)for(c=="*"?_=t(p[f]):_=p[f].getElementsByTagName(c),m=0;m<_.length;m++)u[l++]=_[m];p=[],g=0;var P;switch(S){case"=":P=function(O){return O.getAttribute(w)==R};break;case"~":P=function(O){return O.getAttribute(w).match(new RegExp("\\b"+R+"\\b"))};break;case"|":P=function(O){return O.getAttribute(w).match(new RegExp("^"+R+"-?"))};break;case"^":P=function(O){return O.getAttribute(w).indexOf(R)===0};break;case"$":P=function(O){return O.getAttribute(w).lastIndexOf(R)==O.getAttribute(w).length-R.length};break;case"*":P=function(O){return O.getAttribute(w).indexOf(R)>-1};break;default:P=function(O){return O.getAttribute(w)}}for(p=[],g=0,f=0;f<u.length;f++)P(u[f])&&(p[g++]=u[f]);continue}for(c=s,u=[],l=0,f=0;f<p.length;f++)for(_=p[f].getElementsByTagName(c),m=0;m<_.length;m++)u[l++]=_[m];p=u}return p}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:e.call(this,r)}}();var jm=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Hm=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(t){var n="",a={};return h.each(jm,function(e){n=h.getQueryParam(B.URL,e),n.length?a[e]=n:t!==void 0&&(a[e]=t)}),a},clickParams:function(){var t="",n={};return h.each(Hm,function(a){t=h.getQueryParam(B.URL,a),t.length&&(n[a]=t)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.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=h.info.searchEngine(t),a=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=h.getQueryParam(t,a);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,a){return n=n||"",a||h.includes(t," OPR/")?h.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":h.includes(t,"IEMobile")||h.includes(t,"WPDesktop")?"Internet Explorer Mobile":h.includes(t,"SamsungBrowser/")?"Samsung Internet":h.includes(t,"Edge")||h.includes(t,"Edg/")?"Microsoft Edge":h.includes(t,"FBIOS")?"Facebook Mobile":h.includes(t,"Whale/")?"Whale Browser":h.includes(t,"Chrome")?"Chrome":h.includes(t,"CriOS")?"Chrome iOS":h.includes(t,"UCWEB")||h.includes(t,"UCBrowser")?"UC Browser":h.includes(t,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(t,"Mobile")?"Mobile Safari":"Safari":h.includes(t,"Android")?"Android Mobile":h.includes(t,"Konqueror")?"Konqueror":h.includes(t,"Firefox")?"Firefox":h.includes(t,"MSIE")||h.includes(t,"Trident/")?"Internet Explorer":h.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,a){var e=h.info.browser(t,n,a),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+)?)/},i=r[e];if(i===void 0)return null;var s=t.match(i);return s?parseFloat(s[s.length-2]):null},os:function(){var t=ze;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 A.location.href},properties:function(t){return typeof t!="object"&&(t={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Ze.vendor,br),$referrer:B.referrer,$referring_domain:h.info.referringDomain(B.referrer),$device:h.info.device(ze)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(ze,Ze.vendor,br),$screen_height:Zo.height,$screen_width:Zo.width,mp_lib:"web",$lib_version:De.LIB_VERSION,$insert_id:ms(),time:h.timestamp()/1e3},h.strip_empty_properties(t))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Ze.vendor,br)}),{$browser_version:h.info.browserVersion(ze,Ze.vendor,br)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:B.title,current_domain:A.location.hostname,current_url_path:A.location.pathname,current_url_protocol:A.location.protocol,current_url_search:A.location.search})}};var Jm=function(t,n){var a=null,e=[];return function(r){var i=this;return e.push(r),a||(a=new G(function(s){setTimeout(function(){var o=t.apply(i,[e]);a=null,e=[],s(o)},n)})),a}},ms=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},Zm=function(){var t=h.UUID().replace(/-/g,""),n=h.UUID().replace(/-/g,"").substring(0,16),a="01";return"00-"+t+"-"+n+"-"+a},Ym=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Km=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ec=function(t){var n=Km,a=t.split("."),e=a[a.length-1];(e.length>4||e==="com"||e==="org")&&(n=Ym);var r=t.match(n);return r?r[0]:""},Xm=function(){var t=A.navigator.onLine;return h.isUndefined(t)||t},ot=function(){},ar=null,Yn=null;typeof JSON<"u"&&(ar=JSON.stringify,Yn=JSON.parse);ar=ar||h.JSONEncode;Yn=Yn||h.JSONDecode;var Qm=function(t,n,a){if(!A.CompressionStream)return!1;var e=h.info.browser(t,n,a),r=h.info.browserVersion(t,n,a);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};h.info=h.info;h.info.browser=h.info.browser;h.info.browserVersion=h.info.browserVersion;h.info.device=h.info.device;h.info.properties=h.info.properties;h.isBlockedUA=h.isBlockedUA;h.isEmptyObject=h.isEmptyObject;h.isObject=h.isObject;h.JSONDecode=h.JSONDecode;h.JSONEncode=h.JSONEncode;h.toArray=h.toArray;h.NPO=mt;var eg="mixpanelBrowserDb",pl="mixpanelRecordingEvents",gs="mixpanelRecordingRegistry",tg=1,rg=[pl,gs],Fe=function(t){this.dbPromise=null,this.storeName=t};Fe.prototype._openDb=function(){return new G(function(t,n){var a=A.indexedDB.open(eg,tg);a.onerror=function(){n(a.error)},a.onsuccess=function(){t(a.result)},a.onupgradeneeded=function(e){var r=e.target.result;rg.forEach(function(i){r.createObjectStore(i)})}})};Fe.prototype.init=function(){return A.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof A.IDBDatabase?G.resolve():G.reject(t)})):G.reject("indexedDB is not supported in this browser")};Fe.prototype.isInitialized=function(){return!!this.dbPromise};Fe.prototype.makeTransaction=function(t,n){var a=this.storeName,e=function(r){return new G(function(i,s){var o=r.transaction(a,t);o.oncomplete=function(){i(o)},o.onabort=o.onerror=function(){s(o.error)},n(o.objectStore(a))})};return this.dbPromise.then(e).catch((function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):G.reject(r)}).bind(this))};Fe.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(a){a.put(n,t)})};Fe.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(a){n=a.get(t)}).then(function(){return n.result})};Fe.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})};Fe.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var ng="__mp_opt_in_out_";function ig(t,n){gl(!0,t,n)}function ag(t,n){gl(!1,t,n)}function sg(t,n){return ml(t,n)==="1"}function _l(t,n){if(cg(n))return V.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 a=ml(t,n)==="0";return a&&V.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),a}function gt(t){return bs(t,function(n){return this.get_config(n)})}function vt(t){return bs(t,function(n){return this._get_config(n)})}function cr(t){return bs(t,function(n){return this._get_config(n)})}function og(t,n){n=n||{},vs(n).remove(ys(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function vs(t){return t=t||{},t.persistenceType==="localStorage"?h.localStorage:h.cookie}function ys(t,n){return n=n||{},(n.persistencePrefix||ng)+t}function ml(t,n){return vs(n).get(ys(t,n))}function cg(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||A,a=n.navigator||{},e=!1;return h.each([a.doNotTrack,a.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function gl(t,n,a){if(!h.isString(n)||!n.length){V.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}a=a||{},vs(a).set(ys(n,a),t?1:0,h.isNumber(a.cookieExpiration)?a.cookieExpiration:null,!!a.crossSubdomainCookie,!!a.secureCookie,!!a.crossSiteCookie,a.cookieDomain),a.track&&t&&a.track(a.trackEventName||"$opt_in",a.trackProperties,{send_immediately:!0})}function bs(t,n){return function(){var a=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),i=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),o=n.call(this,"window");e&&(a=_l(e,{ignoreDnt:r,persistenceType:i,persistencePrefix:s,window:o}))}catch(u){V.error("Unexpected error when checking tracking opt-out status: "+u)}if(!a)return t.apply(this,arguments);var c=arguments[arguments.length-1];typeof c=="function"&&c(0)}}var ug=Lt("lock"),vl=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||A.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||G};vl.prototype.withLock=function(t,n){var a=this.promiseImpl;return new a(h.bind(function(e,r){var i=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),o=this.storageKey,c=this.pollIntervalMS,u=this.timeoutMS,l=this.storage,d=o+":X",f=o+":Y",m=o+":Z",_=function(b){if(new Date().getTime()-s>u){ug.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+i+"]"),l.removeItem(m),l.removeItem(f),v();return}setTimeout(function(){try{b()}catch(C){r(C)}},c*(Math.random()+.1))},g=function(b,C){b()?C():_(function(){g(b,C)})},p=function(){var b=l.getItem(f);return b&&b!==i?!1:(l.setItem(f,i),l.getItem(f)===i?!0:(zr(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},v=function(){l.setItem(d,i),g(p,function(){if(l.getItem(d)===i){y();return}_(function(){if(l.getItem(f)!==i){v();return}g(function(){return!l.getItem(m)},y)})})},y=function(){l.setItem(m,"1");var b=function(){l.removeItem(m),l.getItem(f)===i&&l.removeItem(f),l.getItem(d)===i&&l.removeItem(d)};t().then(function(C){b(),e(C)}).catch(function(C){b(),r(C)})};try{if(zr(l,!0))v();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var ur=function(t){this.storage=t||A.localStorage};ur.prototype.init=function(){return G.resolve()};ur.prototype.isInitialized=function(){return!0};ur.prototype.setItem=function(t,n){return new G(h.bind(function(a,e){try{this.storage.setItem(t,ar(n))}catch(r){e(r)}a()},this))};ur.prototype.getItem=function(t){return new G(h.bind(function(n,a){var e;try{e=Yn(this.storage.getItem(t))}catch(r){a(r)}n(e)},this))};ur.prototype.removeItem=function(t){return new G(h.bind(function(n,a){try{this.storage.removeItem(t)}catch(e){a(e)}n()},this))};var tc=Lt("batch"),Ge=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new ur,this.lock=new vl(t,{storage:n.sharedLockStorage||A.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(tc.error,tc),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=Jm(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(a){return this._enqueuePersisted([a])},this)};Ge.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?G.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))};Ge.prototype.enqueue=function(t,n){var a={id:ms(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(a):(this.memQueue.push(a),G.resolve(!0))};Ge.prototype._enqueuePersisted=function(t){var n=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){return this.saveToStorage(a.concat(t))},this)).then(h.bind(function(a){return a&&(this.memQueue=this.memQueue.concat(t)),a},this)).catch(h.bind(function(a){return this.reportError("Error enqueueing items",a,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(a){return this.reportError("Error acquiring storage lock",a),!1},this))};Ge.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){if(a.length){var e={};h.each(n,function(s){e[s.id]=!0});for(var r=0;r<a.length;r++){var i=a[r];if(new Date().getTime()>i.flushAfter&&!e[i.id]&&(i.orphaned=!0,n.push(i),n.length>=t))break}}return n},this)):G.resolve(n)};var rc=function(t,n){var a=[];return h.each(t,function(e){e.id&&!n[e.id]&&a.push(e)}),a};Ge.prototype.removeItemsByID=function(t){var n={};if(h.each(t,function(e){n[e]=!0}),this.memQueue=rc(this.memQueue,n),this.usePersistence){var a=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(e){return e=rc(e,n),this.saveToStorage(e)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(e){for(var r=0;r<e.length;r++){var i=e[r];if(i.id&&n[i.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(a,this.pid).catch(h.bind(function(e){return this.reportError("Error acquiring storage lock",e),zr(this.lock.storage,!0)?!1:a().then(h.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(h.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return G.resolve(!0)};var nc=function(t,n){var a=[];return h.each(t,function(e){var r=e.id;if(r in n){var i=n[r];i!==null&&(e.payload=i,a.push(e))}else a.push(e)}),a};Ge.prototype.updatePayloads=function(t){return this.memQueue=nc(this.memQueue,t),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(a){return a=nc(a,t),this.saveToStorage(a)},this)).catch(h.bind(function(a){return this.reportError("Error updating items",t,a),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):G.resolve(!0)};Ge.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(t){return t&&(h.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(h.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))};Ge.prototype.saveToStorage=function(t){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))};Ge.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):G.resolve()};var lg=10*60*1e3,Tr=Lt("batch"),Be=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Ge(t,{errorReporter:h.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};Be.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)};Be.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};Be.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};Be.prototype.clear=function(){return this.queue.clear()};Be.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};Be.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};Be.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};Be.prototype.sendRequestPromise=function(t,n){return new G(h.bind(function(a){this.sendRequest(t,n,a)},this))};Be.prototype.flush=function(t){if(this.requestInProgress)return Tr.log("Flush: Request already in progress"),G.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,a=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(h.bind(function(r){var i=r.length===e,s=[],o={};if(h.each(r,function(d){var f=d.payload;if(this.beforeSendHook&&!d.orphaned&&(f=this.beforeSendHook(f)),f){f.event&&f.properties&&(f.properties=h.extend({},f.properties,{mp_sent_by_lib_version:De.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:r.length,timesSent:this.itemIdsSentSuccessfully[_]}),m=!1):this.reportError("[dupe] found item with no ID",{item:d}),m&&s.push(f)}o[d.id]=f},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),G.resolve();var c=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(d){return d.id})).then(h.bind(function(d){return h.each(r,h.bind(function(f){var m=f.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:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[m]})):this.reportError("[dupe] found item with no ID while removing",{item:f})},this)),d?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),G.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),G.resolve())},this))},this),u=h.bind(function(d){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(o);if(h.isObject(d)&&d.error==="timeout"&&new Date().getTime()-a>=n)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(d)&&(d.httpStatusCode>=500||d.httpStatusCode===429||d.httpStatusCode<=0&&!Xm()||d.error==="timeout")){var f=this.flushInterval*2;return d.retryAfter&&(f=parseInt(d.retryAfter,10)*1e3||f),f=Math.min(lg,f),this.reportError("Error; retry in "+f+" ms"),this.scheduleFlush(f),G.resolve()}else if(h.isObject(d)&&d.httpStatusCode===413)if(r.length>1){var m=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,m,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),G.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),c();else return c()}catch(_){this.reportError("Error handling API response",_),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(l.transport="sendBeacon"),Tr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(u)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))};Be.prototype.reportError=function(t,n){if(Tr.error.apply(Tr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(a){Tr.error(a)}};var ks=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},dg=250,Yt=Lt("recorder"),fg=A.CompressionStream,hg={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},pg=new Set([D.MouseMove,D.MouseInteraction,D.Scroll,D.ViewportResize,D.Input,D.TouchMove,D.MediaInteraction,D.Drag,D.Selection]);function _g(t){return t.type===q.IncrementalSnapshot&&pg.has(t.data.source)}var me=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||ot,this._onMaxLengthReached=t.onMaxLengthReached||ot,this._onBatchSent=t.onBatchSent||ot,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=Ar,this.recordMinMs=0;var n=zr(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Fe(pl),this.batcher=new Be(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:hg,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:dg,sharedLockTimeoutMS:10*1e3})};me.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 a=this._mixpanel.get_property("$user_id");return a&&(t.$user_id=a),t};me.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))};me.prototype.getConfig=function(t){return this._mixpanel.get_config(t)};me.prototype.get_config=function(t){return this.getConfig(t)};me.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Yt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Ar&&(this.recordMaxMs=Ar,Yt.critical("record_max_ms cannot be greater than "+Ar+"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=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=(function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}).bind(this);n();var a=this.getConfig("record_block_selector");(a===""||a===null)&&(a=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}_g(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(r),(this.lastEventTimestamp===null||r.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=r.timestamp)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:a,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")?[Fm({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var e=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),e)};me.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(a){this.reportError("Error with rrweb stopRecording",a)}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};me.prototype.isRrwebStopped=function(){return this._stopRecording===null};me.prototype.flushEventsWithOptOut=function(t,n,a){var e=(function(r){r===0&&(this.stopRecording(),a({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(t,n,a,e)};me.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}};me.deserialize=function(t,n){var a=new me(h.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}));return a};me.prototype._sendRequest=function(t,n,a,e){var r=(function(s,o){s.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:o,retryAfter:s.headers.get("Retry-After")})}).bind(this),i=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");A.fetch(i+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:a}).then(function(s){s.json().then(function(o){r(s,o)}).catch(function(o){e({error:o})})}).catch(function(s){e({error:s,httpStatusCode:0})})};me.prototype._flushEvents=gt(function(t,n,a){var e=t.length;if(e>0){for(var r=this.replayId,i=1/0,s=-1/0,o=!1,c=0;c<e;c++)i=Math.min(i,t[c].timestamp),s=Math.max(s,t[c].timestamp),t[c].type===q.FullSnapshot&&(o=!0);if(this.seqNo===0){if(!o){a({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=i}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=i);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:De.LIB_VERSION,batch_start_time:i/1e3,mp_lib:"web",replay_id:r,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(t);if(Object.assign(l,this.getUserIdInfo()),Qm(ze,Ze.vendor,br)){var f=new Blob([d],{type:"application/json"}).stream(),m=f.pipeThrough(new fg("gzip"));new Response(m).blob().then((function(_){l.format="gzip",this._sendRequest(r,l,_,a)}).bind(this))}else l.format="body",this._sendRequest(r,l,d,a)}});me.prototype.reportError=function(t,n){Yt.error.apply(Yt.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(a){Yt.error(a)}};me.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime};me.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Wi?(Yt.critical("record_min_ms cannot be greater than "+Wi+"ms. Capping value."),Wi):t};var et=function(t){this.idb=new Fe(gs),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};et.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};et.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)};et.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return G.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."),G.resolve())};et.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 ks(t)?null:t}).bind(this)).catch(this.handleError.bind(this)):G.resolve(null)};et.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()};et.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))};et.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):G.resolve()};et.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(a){return ks(a)}).map((function(a){var e=me.deserialize(a,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then((function(){return this.idb.removeItem(a.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return G.all(n)}).bind(this)).catch(this.handleError.bind(this)):G.resolve([])};var Er=Lt("recorder"),tt=function(t,n,a){this.mixpanelInstance=t,this.rrwebRecord=n||_t,this.sharedLockStorage=a,this.recordingRegistry=new et({mixpanelInstance:this.mixpanelInstance,errorReporter:Er.error,sharedLockStorage:a}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};tt.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Er.log("Recording already in progress, skipping startRecording.");return}var n=(function(){Er.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),a=(function(){Er.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),e=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:a,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=me.deserialize(t.activeSerializedRecording,r):this.activeRecording=new me(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};tt.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))};tt.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};tt.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var a=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),a}return G.resolve()};tt.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),G.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(Er.log("No resumable recording found."),null)}).bind(this))};tt.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};tt.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null};Object.defineProperty(tt.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});A.__mp_recorder=tt;var Wr="change",Qe="click",Ba="hashchange",mg="input",ic="load",st="mp_locationchange",ac="popstate",bi="scrollend",Cs="scroll",gg="select",Kn="submit",vg="toggle",sc="visibilitychange",yg=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],oc=["mp-include"],La=["mp-no-track"],cc=La.concat(["mp-sensitive"]),bg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],kg={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},Cg={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},wg={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},uc=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Sg=5,te=Lt("autocapture");function Na(t){for(var n={},a=yl(t).split(" "),e=0;e<a.length;e++){var r=a[e];r&&(n[r]=!0)}return n}function yl(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function Ag(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!bl(t));return t}function lc(t,n,a,e,r,i){var s={$classes:yl(t).split(" "),$tag_name:t.tagName.toLowerCase()},o=t.id;o&&(s.$id=o),ws(t,n,r,i)&&h.each(bg.concat(e),function(d){if(t.hasAttribute(d)&&!a[d]){var f=t.getAttribute(d);Xn(f)&&(s["$attr-"+d]=f)}});for(var c=1,u=1,l=t;l=Ag(l);)c++,l.tagName===t.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function Tg(t,n){var a=n.allowElementCallback,e=n.allowSelectors||[],r=n.blockAttrs||[],i=n.blockElementCallback,s=n.blockSelectors||[],o=n.captureTextContent||!1,c=n.captureExtraAttrs||[],u=n.capturedForHeatMap||!1,l={};h.each(r,function(w){l[w]=!0});var d=null,f=typeof t.target>"u"?t.srcElement:t.target;if(kl(f)&&(f=f.parentNode),Og(f,t)&&Fa(f,t,a,e)&&!Ji(f,t,i,s)){for(var m=[f],_=f;_.parentNode&&!We(_,"body");)m.push(_.parentNode),_=_.parentNode;var g=[],p,v=!1;if(h.each(m,function(w){var S=ws(w,t,a,e);!l.href&&w.tagName.toLowerCase()==="a"&&(p=w.getAttribute("href"),p=S&&Xn(p)&&p),Ji(w,t,i,s)&&(v=!0),g.push(lc(w,t,l,c,a,e))},this),!v){var y=B.documentElement;if(d={$event_type:t.type,$host:A.location.host,$pathname:A.location.pathname,$elements:g,$el_attr__href:p,$viewportHeight:Math.max(y.clientHeight,A.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,A.innerWidth||0),$pageHeight:B.body.offsetHeight||0,$pageWidth:B.body.offsetWidth||0},h.each(c,function(w){if(!l[w]&&f.hasAttribute(w)){var S=f.getAttribute(w);Xn(S)&&(d["$el_attr__"+w]=S)}}),o&&(b=dc(f,t,a,e),b&&b.length&&(d.$el_text=b)),t.type===Qe&&(h.each(yg,function(w){w in t&&(d["$"+w]=t[w])}),u&&(d.$captured_for_heatmap=!0),f=Eg(t)),o){var b=dc(f,t,a,e);b&&b.length&&(d.$el_text=b)}if(f){if(!Fa(f,t,a,e)||Ji(f,t,i,s))return null;var C=lc(f,t,l,c,a,e);d.$target=C,d.$el_classes=C.$classes,h.extend(d,h.strip_empty_properties({$el_id:C.$id,$el_tag_name:C.$tag_name}))}}}return d}function dc(t,n,a,e){var r="";return ws(t,n,a,e)&&t.childNodes&&t.childNodes.length&&h.each(t.childNodes,function(i){kl(i)&&i.textContent&&(r+=h.trim(i.textContent).split(/(\s+)/).filter(Xn).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function Eg(t){for(var n=t.target,a=t.composedPath(),e=0;e<a.length;e++){var r=a[e];if(We(r,"a")||We(r,"button")||We(r,"input")||We(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Fa(t,n,a,e){if(a)try{if(!a(t,n))return!1}catch(s){return te.critical("Error while checking element in allowElementCallback",s),!1}if(!e.length)return!0;for(var r=0;r<e.length;r++){var i=e[r];try{if(t.matches(i))return!0}catch(s){te.critical("Error while checking selector: "+i,s)}}return!1}function Ji(t,n,a,e){var r;if(a)try{if(a(t,n))return!0}catch(o){return te.critical("Error while checking element in blockElementCallback",o),!0}if(e&&e.length)for(r=0;r<e.length;r++){var i=e[r];try{if(t.matches(i))return!0}catch(o){te.critical("Error while checking selector: "+i,o)}}var s=Na(t);for(r=0;r<La.length;r++)if(s[La[r]])return!0;return!1}function bl(t){return t&&t.nodeType===1}function We(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function kl(t){return t&&t.nodeType===3}function Rg(){try{var t=B.createElement("div");return!!t.matches}catch{return!1}}function Pg(){return typeof WeakSet<"u"}function Og(t,n){if(!t||We(t,"html")||!bl(t))return!1;var a=t.tagName.toLowerCase();switch(a){case"form":return n.type===Kn;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===Wr:n.type===Qe;case"select":case"textarea":return n.type===Wr;default:return n.type===Qe}}function ws(t,n,a,e){var r;if(!Fa(t,n,a,e))return!1;for(var i=t;i.parentNode&&!We(i,"body");i=i.parentNode){var s=Na(i);for(r=0;r<cc.length;r++)if(s[cc[r]])return!1}var o=Na(t);for(r=0;r<oc.length;r++)if(o[oc[r]])return!0;if(We(t,"input")||We(t,"select")||We(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var c=t.type||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}var u=t.name||t.id||"";if(typeof u=="string"){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(u.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function Xn(t){if(t===null||h.isUndefined(t))return!1;if(typeof t=="string"){t=h.trim(t);var n=/^(?:(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}))$/;if(n.test((t||"").replace(/[- ]/g,"")))return!1;var a=/(^\d{3}-?\d{2}-?\d{4}$)/;if(a.test(t))return!1}return!0}function Cl(t){var n="onscrollend"in A,a=Vr(t),e=bi;if(!n){var r=null,i=100;a=Vr(function(){clearTimeout(r),r=setTimeout(t,i)}),e=Cs}return{listener:a,eventType:e}}function Ig(t){for(var n=0;n<uc.length;n++)if(t.hasAttribute(uc[n]))return!0;return!1}function xg(t){var n=t.getAttribute("role");if(!n)return!1;var a=n.trim().split(/\s+/)[0].toLowerCase();return kg[a]}function Zi(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||Ig(t)||xg(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function wl(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(Cg[n])return!0;if(Zi(t))return!1;for(var a=t.parentElement,e=0;a&&e<Sg;){if(Zi(a))return!1;if(a.getRootNode&&a.getRootNode()!==B){var r=a.getRootNode();if(r.host&&Zi(r.host))return!1}a=a.parentElement,e++}return!!wg[n]}function Sl(t){return"composedPath"in t?t.composedPath():[]}function Al(t){var n=Sl(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var Mg=30,Dg=1e3,Bg=4,Lg=!1;function Tl(){this.clicks=[]}Tl.prototype.isRageClick=function(t,n){n=n||{};var a=n.threshold_px||Mg,e=n.timeout_ms||Dg,r=n.click_count||Bg,i=n.interactive_elements_only||Lg;if(i){var s=Al(t);if(!s||wl(s))return!1}var o=Date.now(),c=t.pageX,u=t.pageY,l=this.clicks[this.clicks.length-1];if(l&&o-l.timestamp<e&&Math.sqrt(Math.pow(c-l.x,2)+Math.pow(u-l.y,2))<a){if(this.clicks.push({x:c,y:u,timestamp:o}),this.clicks.length>=r)return this.clicks=[],!0}else this.clicks=[{x:c,y:u,timestamp:o}];return!1};function lr(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}lr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return Al(t)};lr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=Sl(t),a=0;a<n.length;a++){var e=n[a];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}};lr.prototype.observeShadowRoot=function(t){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(t))){var n=this;try{this.observedShadowRoots.add(t);var a=new window.MutationObserver(function(){n.changeCallback()});a.observe(t,this.observerConfig),this.shadowObservers.push(a)}catch(e){te.critical("Error while observing shadow root",e)}}};lr.prototype.start=function(){if(!this.observedShadowRoots){if(!Pg()){te.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};lr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){te.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var Ng=500,Fg=[Wr,mg,Kn,gg,vg],$g=[bi],Ug=[Ba],fc={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function je(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}je.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||wl(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)};je.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var a=this.addClick(t);return a&&this.triggerProcessing(n),a};je.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,a=Date.now(),e=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],i=0;i<e.length;i++){var s=e[i];a-s.timestamp>=n?this.hasChangesAfter(s.timestamp)||r.push(s):this.pendingClicks.push(s)}return r};je.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100};je.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};je.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))};je.prototype.processRecursively=function(t){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=t.timeout_ms,a=this;this.processingTimeout=setTimeout(function(){if(a.processingActive){for(var e=a.getDeadClicks(t),r=0;r<e.length;r++)a.onDeadClickCallback(e[r].event);a.pendingClicks.length>0?a.processRecursively(t):a.processingActive=!1}},n)};je.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;Fg.forEach(function(a){var e=function(){t.recordChangeEvent()};document.addEventListener(a,e,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:a,handler:e,options:{capture:!0,passive:!0}})}),Ug.forEach(function(a){var e=function(){t.recordChangeEvent()};window.addEventListener(a,e),t.eventListeners.push({target:window,event:a,handler:e})}),$g.forEach(function(a){var e=function(){t.recordChangeEvent()};window.addEventListener(a,e,{passive:!0}),t.eventListeners.push({target:window,event:a,handler:e,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,fc)}catch(a){te.critical("Error while setting up mutation observer",a)}if(window.customElements)try{this.shadowDOMObserver=new lr(function(){t.recordChangeEvent()},fc),this.shadowDOMObserver.start()}catch(a){te.critical("Error while setting up shadow DOM observer",a),this.shadowDOMObserver=null}}};je.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(a){te.critical("Error while removing event listener",a)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(a){te.critical("Error while disconnecting mutation observer",a)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(a){te.critical("Error while stopping shadow DOM observer",a)}this.shadowDOMObserver=null}}};var El="autocapture",Vg="track_pageview",Rl="full-url",zg="url-with-path-and-query-string",Wg="url-with-path",qg="allow_element_callback",Pl="allow_selectors",Ol="allow_url_regexes",Il="block_attrs",xl="block_element_callback",Ml="block_selectors",Dl="block_url_regexes",Bl="capture_extra_attrs",Ll="capture_text_content",Nl="scroll_capture_all",Fl="scroll_depth_percent_checkpoints",Qn="click",ei="dead_click",$a="input",$l="pageview",ti="rage_click",Ua="scroll",ki="page_leave",Va="submit",pe={};pe[Pl]=[];pe[Ol]=[];pe[Il]=[];pe[xl]=null;pe[Ml]=[];pe[Dl]=[];pe[Bl]=[];pe[Ll]=!1;pe[Nl]=!1;pe[Fl]=[25,50,75,100];pe[Qn]=!0;pe[ei]=!0;pe[$a]=!0;pe[$l]=Rl;pe[ti]=!0;pe[Ua]=!0;pe[ki]=!1;pe[Va]=!0;var qr={$mp_autocapture:!0},Ul="$mp_click",Vl="$mp_dead_click",Gg="$mp_input_change",zl="$mp_rage_click",jg="$mp_scroll",Hg="$mp_submit",Jg="$mp_page_leave",fe=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};fe.prototype.init=function(){if(!Rg()){te.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()};fe.prototype.getFullConfig=function(){var t=this.mp.get_config(El);return t?h.isObject(t)?h.extend({},pe,t):pe:{}};fe.prototype.getConfig=function(t){return this.getFullConfig()[t]};fe.prototype.currentUrlBlocked=function(){var t,n=h.info.currentUrl(),a=this.getConfig(Ol)||[];if(a.length){var e=!1;for(t=0;t<a.length;t++){var r=a[t];try{if(n.match(r)){e=!0;break}}catch(s){return te.critical("Error while checking block URL regex: "+r,s),!0}}if(!e)return!0}var i=this.getConfig(Dl)||[];if(!i||!i.length)return!1;for(t=0;t<i.length;t++)try{if(n.match(i[t]))return!0}catch(s){return te.critical("Error while checking block URL regex: "+i[t],s),!0}return!1};fe.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(El)?this.getConfig($l):this.mp.get_config(Vg)};fe.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var a=this.mp.is_recording_heatmap_data()&&(n===Ul&&!this.getConfig(Qn)||n===zl&&!this._getClickTrackingConfig(ti)||n===Vl&&!this._getClickTrackingConfig(ei)),e=Tg(t,{allowElementCallback:this.getConfig(qg),allowSelectors:this.getConfig(Pl),blockAttrs:this.getConfig(Il),blockElementCallback:this.getConfig(xl),blockSelectors:this.getConfig(Ml),captureExtraAttrs:this.getConfig(Bl),captureTextContent:this.getConfig(Ll),capturedForHeatMap:a});e&&(h.extend(e,qr),this.mp.track(n,e))}};fe.prototype.initPageListeners=function(){if(A.removeEventListener(ac,this.listenerPopstate),A.removeEventListener(Ba,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(ki)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){A.dispatchEvent(new Event(st))},this.listenerHashchange=function(){A.dispatchEvent(new Event(st))},A.addEventListener(ac,this.listenerPopstate),A.addEventListener(Ba,this.listenerHashchange);var t=A.history.pushState;typeof t=="function"&&(A.history.pushState=function(a,e,r){t.call(A.history,a,e,r),A.dispatchEvent(new Event(st))});var n=A.history.replaceState;typeof n=="function"&&(A.history.replaceState=function(a,e,r){n.call(A.history,a,e,r),A.dispatchEvent(new Event(st))})}};fe.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null};fe.prototype._trackPageLeave=function(t,n,a){if(!this.hasTrackedScrollSession&&!(!this.getConfig(ki)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(B.documentElement.clientHeight,A.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-e,0)/(a-e)*100),i=Math.round(e/a*100);a<=e&&(r=100,i=100);var s=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:i,$scroll_height:a,$event_type:t.type,$current_url:n||h.info.currentUrl(),$viewportHeight:e,$viewportWidth:Math.max(B.documentElement.clientWidth,A.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},qr);this.mp.track(Jg,s,{transport:"sendBeacon"})}};fe.prototype._initScrollDepthTracking=function(){if(A.removeEventListener(Cs,this.listenerScrollDepth),A.removeEventListener(bi,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){te.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(B.documentElement.clientHeight,A.innerHeight||0);var t=(function(){if(!this.currentUrlBlocked()){var a=Math.max(B.documentElement.clientHeight,A.innerHeight||0)+A.scrollY;a>this.maxScrollViewDepth&&(this.maxScrollViewDepth=a),this.previousScrollHeight=B.body.scrollHeight}}).bind(this),n=Cl(t);this.listenerScrollDepth=n.listener,A.addEventListener(n.eventType,this.listenerScrollDepth)}};fe.prototype.initClickTracking=function(){A.removeEventListener(Qe,this.listenerClick),!(!this.getConfig(Qn)&&!this.mp.get_config("record_heatmap_data"))&&(te.log("Initializing click tracking"),this.listenerClick=(function(t){!this.getConfig(Qn)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Ul)}).bind(this),A.addEventListener(Qe,this.listenerClick))};fe.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(ei);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new je((function(n){this.trackDomEvent(n,Vl)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(n){var a=this._getClickTrackingConfig(ei);if(!(!a&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=a||{};e.timeout_ms||(e.timeout_ms=Ng),this._deadClickTracker.trackClick(n,e)}}).bind(this),A.addEventListener(Qe,this.listenerDeadClick))};fe.prototype.initInputTracking=function(){A.removeEventListener(Wr,this.listenerChange),this.getConfig($a)&&(te.log("Initializing input tracking"),this.listenerChange=(function(t){this.getConfig($a)&&this.trackDomEvent(t,Gg)}).bind(this),A.addEventListener(Wr,this.listenerChange))};fe.prototype.initPageviewTracking=function(){if(A.removeEventListener(st,this.listenerLocationchange),!!this.pageviewTrackingConfig()){te.log("Initializing pageview tracking");var t="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(qr)),n&&(t=h.info.currentUrl()),this.listenerLocationchange=Vr((function(){if(!this.currentUrlBlocked()){var a=h.info.currentUrl(),e=!1,r=a.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===Rl?e=a!==t:i===zg?e=a.split("#")[0]!==t.split("#")[0]:i===Wg&&(e=r),e){var s=this.mp.track_pageview(qr);s&&(t=a),r&&(this.lastScrollCheckpoint=0,te.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),A.addEventListener(st,this.listenerLocationchange)}};fe.prototype.initRageClickTracking=function(){A.removeEventListener(Qe,this.listenerRageClick);var t=this._getClickTrackingConfig(ti);!t&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Tl),this.listenerRageClick=(function(n){var a=this._getClickTrackingConfig(ti);!a&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,a)&&this.trackDomEvent(n,zl)}).bind(this),A.addEventListener(Qe,this.listenerRageClick))};fe.prototype.initScrollTracking=function(){if(A.removeEventListener(bi,this.listenerScroll),A.removeEventListener(Cs,this.listenerScroll),!!this.getConfig(Ua)){te.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=(function(){if(this.getConfig(Ua)&&!this.currentUrlBlocked()){var a=this.getConfig(Nl),e=(this.getConfig(Fl)||[]).slice().sort(function(l,d){return l-d}),r=A.scrollY,i=h.extend({$scroll_top:r},qr);try{var s=B.body.scrollHeight,o=Math.round(r/(s-A.innerHeight)*100);if(i.$scroll_height=s,i.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var c=0;c<e.length;c++){var u=e[c];o>=u&&this.lastScrollCheckpoint<u&&(i.$scroll_checkpoint=u,this.lastScrollCheckpoint=u,a=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}a&&this.mp.track(jg,i)}}).bind(this),n=Cl(t);this.listenerScroll=n.listener,A.addEventListener(n.eventType,this.listenerScroll)}};fe.prototype.initSubmitTracking=function(){A.removeEventListener(Kn,this.listenerSubmit),this.getConfig(Va)&&(te.log("Initializing submit tracking"),this.listenerSubmit=(function(t){this.getConfig(Va)&&this.trackDomEvent(t,Hg)}).bind(this),A.addEventListener(Kn,this.listenerSubmit))};fe.prototype.initPageLeaveTracking=function(){if(B.removeEventListener(sc,this.listenerPageLeaveVisibilitychange),A.removeEventListener(st,this.listenerPageLeaveLocationchange),A.removeEventListener(ic,this.listenerPageLoad),!(!this.getConfig(ki)&&!this.mp.get_config("record_heatmap_data"))){te.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=h.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=B.body.scrollHeight}).bind(this),A.addEventListener(ic,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Vr((function(n){if(!this.currentUrlBlocked()){var a=h.info.currentUrl(),e=a!==t;e&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=a,this.maxScrollViewDepth=Math.max(B.documentElement.clientHeight,A.innerHeight||0),this.previousScrollHeight=B.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),A.addEventListener(st,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(n){B.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}).bind(this),B.addEventListener(sc,this.listenerPageLeaveVisibilitychange)}};fe.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(A.removeEventListener(Qe,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)};dl(fe);var Ae=Lt("flags"),ri="flags",ni="context",za={};za[ni]={};var z=function(t){this.fetch=A.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc};z.prototype.init=function(){if(!this.minApisSupported()){Ae.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set};z.prototype.getFullConfig=function(){var t=this.getMpConfig(ri);return t?h.isObject(t)?h.extend({},za,t):za:{}};z.prototype.getConfig=function(t){return this.getFullConfig()[t]};z.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ri)};z.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return Ae.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var a=this.getMpConfig(ri);h.isObject(a)||(a={});var e=n&&n.replace?{}:this.getConfig(ni);return a[ni]=h.extend({},e,t),this.setMpConfig(ri,a),this.fetchFlags()};z.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ae.error("Feature Flags not enabled"),!!this.flags};z.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),a=Zm();Ae.log("Fetching flags for distinct ID: "+t);var e=h.extend({distinct_id:t,device_id:n},this.getConfig(ni)),r=new URLSearchParams;r.set("context",JSON.stringify(e)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",De.LIB_VERSION);var i=this.getFullApiRoute()+"?"+r.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(A,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:a}}).then((function(s){return this.markFetchComplete(),s.json().then((function(o){var c=o.flags;if(!c)throw new Error("No flags in API response");var u=new Map;h.each(c,function(l,d){u.set(d,{key:l.variant_key,value:l.variant_value,experiment_id:l.experiment_id,is_experiment_active:l.is_experiment_active,is_qa_tester:l.is_qa_tester})}),this.flags=u,this._traceparent=a}).bind(this)).catch((function(o){this.markFetchComplete(),Ae.error(o)}).bind(this))}).bind(this)).catch((function(s){this.markFetchComplete(),Ae.error(s)}).bind(this)),this.fetchPromise};z.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Ae.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null};z.prototype.getVariant=function(t,n){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(t,n)}).bind(this)).catch(function(a){return Ae.error(a),n}):new Promise(function(a){Ae.critical("Feature Flags not initialized"),a(n)})};z.prototype.getVariantSync=function(t,n){if(!this.areFlagsReady())return Ae.log("Flags not loaded yet"),n;var a=this.flags.get(t);return a?(this.trackFeatureCheck(t,a),a):(Ae.log('No flag found: "'+t+'"'),n)};z.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(a){return a.value}).catch(function(a){return Ae.error(a),n})};z.prototype.getFeatureData=function(t,n){return Ae.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)};z.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value};z.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then((function(){return this.isEnabledSync(t,n)}).bind(this)).catch(function(a){return Ae.error(a),n})};z.prototype.isEnabledSync=function(t,n){n=n||!1;var a=this.getVariantValueSync(t,n);return a!==!0&&a!==!1&&(Ae.error('Feature flag "'+t+'" value: '+a+" is not a boolean; returning fallback value: "+n),a=n),a};z.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var a={"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"&&(a.$experiment_id=n.experiment_id),n.is_experiment_active!=="undefined"&&(a.$is_experiment_active=n.is_experiment_active),n.is_qa_tester!=="undefined"&&(a.$is_qa_tester=n.is_qa_tester),this.track("$experiment_started",a)}};z.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"};dl(z);z.prototype.are_flags_ready=z.prototype.areFlagsReady;z.prototype.get_variant=z.prototype.getVariant;z.prototype.get_variant_sync=z.prototype.getVariantSync;z.prototype.get_variant_value=z.prototype.getVariantValue;z.prototype.get_variant_value_sync=z.prototype.getVariantValueSync;z.prototype.is_enabled=z.prototype.isEnabled;z.prototype.is_enabled_sync=z.prototype.isEnabledSync;z.prototype.update_context=z.prototype.updateContext;z.prototype.get_feature_data=z.prototype.getFeatureData;var rt=function(){};rt.prototype.create_properties=function(){};rt.prototype.event_handler=function(){};rt.prototype.after_track_handler=function(){};rt.prototype.init=function(t){return this.mp=t,this};rt.prototype.track=function(t,n,a,e){var r=this,i=h.dom_query(t);if(i.length===0){V.error("The DOM query ("+t+") returned 0 elements");return}return h.each(i,function(s){h.register_event(s,this.override_event,function(o){var c={},u=r.create_properties(a,this),l=r.mp.get_config("track_links_timeout");r.event_handler(o,this,c),window.setTimeout(r.track_callback(e,u,c,!0),l),r.mp.track(n,u,r.track_callback(e,u,c))})},this),!0};rt.prototype.track_callback=function(t,n,a,e){e=e||!1;var r=this;return function(){a.callback_fired||(a.callback_fired=!0,!(t&&t(e,n)===!1)&&r.after_track_handler(n,a,e))}};rt.prototype.create_properties=function(t,n){var a;return typeof t=="function"?a=t(n):a=h.extend({},t),a};var sr=function(){this.override_event="click"};h.inherit(sr,rt);sr.prototype.create_properties=function(t,n){var a=sr.superclass.create_properties.apply(this,arguments);return n.href&&(a.url=n.href),a};sr.prototype.event_handler=function(t,n,a){a.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",a.href=n.href,a.new_tab||t.preventDefault()};sr.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var Ci=function(){this.override_event="submit"};h.inherit(Ci,rt);Ci.prototype.event_handler=function(t,n,a){a.element=n,t.preventDefault()};Ci.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var lt="$set",or="$set_once",Ne="$unset",It="$add",qe="$append",xt="$union",Ye="$remove",Zg="$delete",Wl={set_action:function(t,n){var a={},e={};return h.isObject(t)?h.each(t,function(r,i){this._is_reserved_property(i)||(e[i]=r)},this):e[t]=n,a[lt]=e,a},unset_action:function(t){var n={},a=[];return h.isArray(t)||(t=[t]),h.each(t,function(e){this._is_reserved_property(e)||a.push(e)},this),n[Ne]=a,n},set_once_action:function(t,n){var a={},e={};return h.isObject(t)?h.each(t,function(r,i){this._is_reserved_property(i)||(e[i]=r)},this):e[t]=n,a[or]=e,a},union_action:function(t,n){var a={},e={};return h.isObject(t)?h.each(t,function(r,i){this._is_reserved_property(i)||(e[i]=h.isArray(r)?r:[r])},this):e[t]=h.isArray(n)?n:[n],a[xt]=e,a},append_action:function(t,n){var a={},e={};return h.isObject(t)?h.each(t,function(r,i){this._is_reserved_property(i)||(e[i]=r)},this):e[t]=n,a[qe]=e,a},remove_action:function(t,n){var a={},e={};return h.isObject(t)?h.each(t,function(r,i){this._is_reserved_property(i)||(e[i]=r)},this):e[t]=n,a[Ye]=e,a},delete_action:function(){var t={};return t[Zg]="",t}},ie=function(){};h.extend(ie.prototype,Wl);ie.prototype._init=function(t,n,a){this._mixpanel=t,this._group_key=n,this._group_id=a};ie.prototype.set=cr(function(t,n,a){var e=this.set_action(t,n);return h.isObject(t)&&(a=n),this._send_request(e,a)});ie.prototype.set_once=cr(function(t,n,a){var e=this.set_once_action(t,n);return h.isObject(t)&&(a=n),this._send_request(e,a)});ie.prototype.unset=cr(function(t,n){var a=this.unset_action(t);return this._send_request(a,n)});ie.prototype.union=cr(function(t,n,a){h.isObject(t)&&(a=n);var e=this.union_action(t,n);return this._send_request(e,a)});ie.prototype.delete=cr(function(t){var n=this.delete_action();return this._send_request(n,t)});ie.prototype.remove=cr(function(t,n,a){var e=this.remove_action(t,n);return this._send_request(e,a)});ie.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 a=h.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:a,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)};ie.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"};ie.prototype._get_config=function(t){return this._mixpanel.get_config(t)};ie.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};ie.prototype.remove=ie.prototype.remove;ie.prototype.set=ie.prototype.set;ie.prototype.set_once=ie.prototype.set_once;ie.prototype.union=ie.prototype.union;ie.prototype.unset=ie.prototype.unset;ie.prototype.toString=ie.prototype.toString;var N=function(){};h.extend(N.prototype,Wl);N.prototype._init=function(t){this._mixpanel=t};N.prototype.set=vt(function(t,n,a){var e=this.set_action(t,n);return h.isObject(t)&&(a=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),e[lt]=h.extend({},h.info.people_properties(),e[lt]),this._send_request(e,a)});N.prototype.set_once=vt(function(t,n,a){var e=this.set_once_action(t,n);return h.isObject(t)&&(a=n),this._send_request(e,a)});N.prototype.unset=vt(function(t,n){var a=this.unset_action(t);return this._send_request(a,n)});N.prototype.increment=vt(function(t,n,a){var e={},r={};return h.isObject(t)?(h.each(t,function(i,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(i))){V.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=i},this),a=n):(h.isUndefined(n)&&(n=1),r[t]=n),e[It]=r,this._send_request(e,a)});N.prototype.append=vt(function(t,n,a){h.isObject(t)&&(a=n);var e=this.append_action(t,n);return this._send_request(e,a)});N.prototype.remove=vt(function(t,n,a){h.isObject(t)&&(a=n);var e=this.remove_action(t,n);return this._send_request(e,a)});N.prototype.union=vt(function(t,n,a){h.isObject(t)&&(a=n);var e=this.union_action(t,n);return this._send_request(e,a)});N.prototype.track_charge=vt(function(){V.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});N.prototype.clear_charges=function(t){return this.set("$transactions",[],t)};N.prototype.delete_user=function(){if(!this._identify_called()){V.error("mixpanel.people.delete_user() requires you to call identify() first");return}var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)};N.prototype.toString=function(){return this._mixpanel.toString()+".people"};N.prototype._send_request=function(t,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var a=this._mixpanel.get_property("$device_id"),e=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");a&&(t.$device_id=a),e&&(t.$user_id=e),r&&(t.$had_persisted_distinct_id=r);var i=h.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(t),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(i,255))};N.prototype._get_config=function(t){return this._mixpanel.get_config(t)};N.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};N.prototype._enqueue=function(t){lt in t?this._mixpanel.persistence._add_to_people_queue(lt,t):or in t?this._mixpanel.persistence._add_to_people_queue(or,t):Ne in t?this._mixpanel.persistence._add_to_people_queue(Ne,t):It in t?this._mixpanel.persistence._add_to_people_queue(It,t):qe in t?this._mixpanel.persistence._add_to_people_queue(qe,t):Ye in t?this._mixpanel.persistence._add_to_people_queue(Ye,t):xt in t?this._mixpanel.persistence._add_to_people_queue(xt,t):V.error("Invalid call to _enqueue():",t)};N.prototype._flush_one_queue=function(t,n,a,e){var r=this,i=h.extend({},this._mixpanel.persistence.load_queue(t)),s=i;!h.isUndefined(i)&&h.isObject(i)&&!h.isEmptyObject(i)&&(r._mixpanel.persistence._pop_from_people_queue(t,i),r._mixpanel.persistence.save(),e&&(s=e(i)),n.call(r,s,function(o,c){o===0&&r._mixpanel.persistence._add_to_people_queue(t,i),h.isUndefined(a)||a(o,c)}))};N.prototype._flush=function(t,n,a,e,r,i,s){var o=this;this._flush_one_queue(lt,this.set,t),this._flush_one_queue(or,this.set_once,e),this._flush_one_queue(Ne,this.unset,i,function(p){return h.keys(p)}),this._flush_one_queue(It,this.increment,n),this._flush_one_queue(xt,this.union,r);var c=this._mixpanel.persistence.load_queue(qe);if(!h.isUndefined(c)&&h.isArray(c)&&c.length)for(var u,l=function(p,v){p===0&&o._mixpanel.persistence._add_to_people_queue(qe,u),h.isUndefined(a)||a(p,v)},d=c.length-1;d>=0;d--)c=this._mixpanel.persistence.load_queue(qe),u=c.pop(),o._mixpanel.persistence.save(),h.isEmptyObject(u)||o.append(u,l);var f=this._mixpanel.persistence.load_queue(Ye);if(!h.isUndefined(f)&&h.isArray(f)&&f.length)for(var m,_=function(p,v){p===0&&o._mixpanel.persistence._add_to_people_queue(Ye,m),h.isUndefined(s)||s(p,v)},g=f.length-1;g>=0;g--)f=this._mixpanel.persistence.load_queue(Ye),m=f.pop(),o._mixpanel.persistence.save(),h.isEmptyObject(m)||o.remove(m,_)};N.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"};N.prototype.set=N.prototype.set;N.prototype.set_once=N.prototype.set_once;N.prototype.unset=N.prototype.unset;N.prototype.increment=N.prototype.increment;N.prototype.append=N.prototype.append;N.prototype.remove=N.prototype.remove;N.prototype.union=N.prototype.union;N.prototype.track_charge=N.prototype.track_charge;N.prototype.clear_charges=N.prototype.clear_charges;N.prototype.delete_user=N.prototype.delete_user;N.prototype.toString=N.prototype.toString;var Ss="__mps",As="__mpso",Ts="__mpus",Es="__mpa",Rs="__mpap",Ps="__mpr",Os="__mpu",ql="$people_distinct_id",ii="__alias",Gr="__timers",Yg=[Ss,As,Ts,Es,Rs,Ps,Os,ql,ii,Gr],U=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"&&(V.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};U.prototype.properties=function(){var t={};return this.load(),h.each(this.props,function(n,a){h.include(Yg,a)||(t[a]=n)}),t};U.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=h.extend({},t))}};U.prototype.upgrade=function(){var t,n;this.storage===h.localStorage?(t=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))};U.prototype.save=function(){this.disabled||this.storage.set(this.name,ar(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};U.prototype.load_prop=function(t){return this.load(),this.props[t]};U.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};U.prototype.clear=function(){this.remove(),this.props={}};U.prototype.register_once=function(t,n,a){return h.isObject(t)?(typeof n>"u"&&(n="None"),this.expire_days=typeof a>"u"?this.default_expiry:a,this.load(),h.each(t,function(e,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=e)},this),this.save(),!0):!1};U.prototype.register=function(t,n){return h.isObject(t)?(this.expire_days=typeof n>"u"?this.default_expiry:n,this.load(),h.extend(this.props,t),this.save(),!0):!1};U.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())};U.prototype.update_search_keyword=function(t){this.register(h.info.searchInfo(t))};U.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:h.info.referringDomain(t)||"$direct"},"")};U.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};U.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)};U.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()};U.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())};U.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())};U.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())};U.prototype.get_cross_subdomain=function(){return this.cross_subdomain};U.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())};U.prototype._add_to_people_queue=function(t,n){var a=this._get_queue_key(t),e=n[t],r=this._get_or_create_queue(lt),i=this._get_or_create_queue(or),s=this._get_or_create_queue(Ne),o=this._get_or_create_queue(It),c=this._get_or_create_queue(xt),u=this._get_or_create_queue(Ye,[]),l=this._get_or_create_queue(qe,[]);a===Ss?(h.extend(r,e),this._pop_from_people_queue(It,e),this._pop_from_people_queue(xt,e),this._pop_from_people_queue(Ne,e)):a===As?(h.each(e,function(d,f){f in i||(i[f]=d)}),this._pop_from_people_queue(Ne,e)):a===Ts?h.each(e,function(d){h.each([r,i,o,c],function(f){d in f&&delete f[d]}),h.each(l,function(f){d in f&&delete f[d]}),s[d]=!0}):a===Es?(h.each(e,function(d,f){f in r?r[f]+=d:(f in o||(o[f]=0),o[f]+=d)},this),this._pop_from_people_queue(Ne,e)):a===Os?(h.each(e,function(d,f){h.isArray(d)&&(f in c||(c[f]=[]),h.each(d,function(m){h.include(c[f],m)||c[f].push(m)}))}),this._pop_from_people_queue(Ne,e)):a===Ps?(u.push(e),this._pop_from_people_queue(qe,e)):a===Rs&&(l.push(e),this._pop_from_people_queue(Ne,e)),V.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),V.log(n),this.save()};U.prototype._pop_from_people_queue=function(t,n){var a=this.props[this._get_queue_key(t)];h.isUndefined(a)||h.each(n,function(e,r){t===qe||t===Ye?h.each(a,function(i){i[r]===e&&delete i[r]}):delete a[r]},this)};U.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))};U.prototype._get_queue_key=function(t){if(t===lt)return Ss;if(t===or)return As;if(t===Ne)return Ts;if(t===It)return Es;if(t===qe)return Rs;if(t===Ye)return Ps;if(t===xt)return Os;V.error("Invalid queue:",t)};U.prototype._get_or_create_queue=function(t,n){var a=this._get_queue_key(t);return n=h.isUndefined(n)?{}:n,this.props[a]||(this.props[a]=n)};U.prototype.set_event_timer=function(t,n){var a=this.load_prop(Gr)||{};a[t]=n,this.props[Gr]=a,this.save()};U.prototype.remove_event_timer=function(t){var n=this.load_prop(Gr)||{},a=n[t];return h.isUndefined(a)||(delete this.props[Gr][t],this.save()),a};var ai,Gl=function(t,n){throw new Error(t+" not available in this build.")},ye,Wa=0,Kg=1,Me="mixpanel",jl="base64",Xg="json",Is="$device:",Kt=A.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Hl=!Kt&&ze.indexOf("MSIE")===-1&&ze.indexOf("Mozilla")===-1,si=null;Ze.sendBeacon&&(si=function(){return Ze.sendBeacon.apply(Ze,arguments)});var Jl={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},hc={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Jl,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:jl,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ot,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ot,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:30*60*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Ar,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Zl=!1,k=function(){},qa=function(t,n,a){var e,r=a===Me?ye:ye[a];if(r&&ai===Wa)e=r;else{if(r&&!h.isArray(r)){V.error("You have already initialized "+a);return}e=new k}if(e._cached_groups={},e._init(t,n,a),e.people=new N,e.people._init(e),!e.get_config("skip_first_touch_marketing")){var i=h.info.campaignParams(null),s={},o=!1;h.each(i,function(u,l){s["initial_"+l]=u,u&&(o=!0)}),o&&e.people.set_once(s)}De.DEBUG=De.DEBUG||e.get_config("debug");var c=ai===Wa?"module":"snippet";return A.dispatchEvent(new A.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:e,source:c,token:t,name:a,info:h.info}})),!h.isUndefined(r)&&h.isArray(r)&&(e._execute_array.call(e.people,r.people),e._execute_array(r)),e};k.prototype.init=function(t,n,a){if(h.isUndefined(a)){this.report_error("You must name your new library: init(token, config, name)");return}if(a===Me){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=qa(t,n,a);return ye[a]=e,e._loaded(),e};k.prototype._init=function(t,n,a){n=n||{},this.__loaded=!0,this.config={};var e={};if(!("api_payload_format"in n)){var r=n.api_host||hc.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=Xg)}if(this.hooks={},this.set_config(h.extend({},hc,e,n,{name:a,token:t,callback_fn:(a===Me?a:Me+"."+a)+"._jsc"})),this._jsc=ot,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(!h.localStorage.is_supported(!0)||!Kt)this._batch_requests=!1,V.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(o){V.log("Clearing batch queue "+o.queue_key),h.localStorage.remove(o.queue_key)});else if(this.init_batchers(),si&&A.addEventListener){var i=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);A.addEventListener("pagehide",function(o){o.persisted&&i()}),A.addEventListener("visibilitychange",function(){B.visibilityState==="hidden"&&i()})}}this.persistence=this.cookie=new U(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:Is+s,$device_id:s},""),this.flags=new z({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new fe(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()};k.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))V.log("Tab ID initialization skipped due to disable_persistence config");else if(h.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+t,a="mp_gen_new_tab_id_"+t;(h.sessionStorage.get(a)||!h.sessionStorage.get(n))&&h.sessionStorage.set(n,"$tab-"+h.UUID()),h.sessionStorage.set(a,"1"),this.tab_id=h.sessionStorage.get(n),A.addEventListener("beforeunload",function(){h.sessionStorage.remove(a)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")};k.prototype.get_tab_id=function(){return this.tab_id||null};k.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return V.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var t=new Fe(gs),n=this.get_tab_id();return t.init().then(function(){return t.getAll()}).then(function(a){for(var e=0;e<a.length;e++)if(ks(a[e])||a[e].tabId===n)return!0;return!1}).catch(h.bind(function(a){this.report_error("Error checking recording registry",a)},this))};k.prototype._check_and_start_session_recording=gt(function(t){if(!A.MutationObserver){V.critical("Browser does not support MutationObserver; skipping session recording");return}var n=h.bind(function(e){var r=h.bind(function(){this._recorder=this._recorder||new A.__mp_recorder(this),this._recorder.resumeRecording(e)},this);h.isUndefined(A.__mp_recorder)?Gl(this.get_config("recorder_src"),r):r()},this),a=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");t||a?n(!0):this._should_load_recorder().then(function(e){e&&n(!1)})});k.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)};k.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()};k.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()};k.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()};k.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")};k.prototype.get_session_recording_properties=function(){var t={},n=this._get_session_replay_id();return n&&(t.$mp_replay_id=n),t};k.prototype.get_session_replay_url=function(){var t=null,n=this._get_session_replay_id();if(n){var a=h.HTTPBuildQuery({replay_id:n,distinct_id:this.get_distinct_id(),token:this.get_config("token")});t="https://mixpanel.com/projects/replay-redirect?"+a}return t};k.prototype._get_session_replay_id=function(){var t=null;return this._recorder&&(t=this._recorder.replayId),t||null};k.prototype.__get_recorder=function(){return this._recorder};k.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=h.info.campaignParams(null);h.each(t,(function(n,a){this.unregister(a)}).bind(this))}};k.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(B.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(h.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(B.referrer)};k.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue};k.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(!Zl)return this.__dom_loaded_queue.push([t,n]),!1;var a=new t().init(this);return a.track.apply(a,n)};k.prototype._prepare_callback=function(t,n){if(h.isUndefined(t))return null;if(Kt){var a=function(s){t(s,n)};return a}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),i=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(s){delete e[r],t(s,n)},i}};k.prototype._send_request=function(t,n,a,e){var r=!0;if(Hl)return this.__request_queue.push(arguments),r;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!e&&(h.isFunction(a)||typeof a=="string")&&(e=a,a=null),a=h.extend(i,a||{}),Kt||(a.method="GET");var o=a.method==="POST",c=si&&o&&a.transport.toLowerCase()==="sendbeacon",u=a.verbose;n.verbose&&(u=!0),this.get_config("test")&&(n.test=1),u&&(n.verbose=1),this.get_config("img")&&(n.img=1),Kt||(e?n.callback=e:(u||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),o&&(s="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),t+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var d=B.createElement("img");d.src=t,B.body.appendChild(d)}else if(c){try{r=si(t,s)}catch(v){l.report_error(v),r=!1}try{e&&e(r?1:0)}catch(v){l.report_error(v)}}else if(Kt)try{var f=new XMLHttpRequest;f.open(a.method,t,!0);var m=this.get_config("xhr_headers");if(o&&(m["Content-Type"]="application/x-www-form-urlencoded"),h.each(m,function(v,y){f.setRequestHeader(y,v)}),a.timeout_ms&&typeof f.timeout<"u"){f.timeout=a.timeout_ms;var _=new Date().getTime()}f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(f.status===200){if(e)if(u){var v;try{v=h.JSONDecode(f.responseText)}catch(C){if(l.report_error(C),a.ignore_json_errors)v=f.responseText;else return}e(v)}else e(Number(f.responseText))}else{var y;if(f.timeout&&!f.status&&new Date().getTime()-_>=f.timeout?y="timeout":y="Bad HTTP status: "+f.status+" "+f.statusText,l.report_error(y),e)if(u){var b=f.responseHeaders||{};e({status:0,httpStatusCode:f.status,error:y,retryAfter:b["Retry-After"]})}else e(0)}},f.send(s)}catch(v){l.report_error(v),r=!1}else{var g=B.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=t;var p=B.getElementsByTagName("script")[0];p.parentNode.insertBefore(g,p)}return r};k.prototype._execute_array=function(t){var n,a=[],e=[],r=[];h.each(t,function(s){s&&(n=s[0],h.isArray(n)?r.push(s):typeof s=="function"?s.call(this):h.isArray(s)&&n==="alias"?a.push(s):h.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):e.push(s))},this);var i=function(s,o){h.each(s,function(c){if(h.isArray(c[0])){var u=o;h.each(c,function(l){u=u[l[0]].apply(u,l.slice(1))})}else this[c[0]].apply(this,c.slice(1))},o)};i(a,this),i(e,this),i(r,this)};k.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};k.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};k.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=h.bind(function(a){return new Be(a.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(e,r,i){var s=this.get_config("api_routes");this._send_request(this.get_api_host(a.api_name)+"/"+s[a.api_name],this._encode_data_for_request(e),r,this._prepare_callback(i,e))},this),beforeSendHook:h.bind(function(e){var r=this._run_hook("before_send_"+a.type,e);return r?r[0]:null},this),stopAllBatchingFunc:h.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()};k.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(t){t.start()}))};k.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(t){t.stop(),t.clear()})};k.prototype.push=function(t){this._execute_array([t])};k.prototype.disable=function(t){typeof t>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)};k.prototype._encode_data_for_request=function(t){var n=ar(t);return this.get_config("api_payload_format")===jl&&(n=h.base64Encode(n)),{data:n}};k.prototype._track_or_batch=function(t,n){var a=h.truncate(t.data,255),e=t.endpoint,r=t.batcher,i=t.should_send_immediately,s=t.send_request_options||{};n=n||ot;var o=!0,c=h.bind(function(){return s.skip_hooks||(a=this._run_hook("before_send_"+t.type,a),a&&(a=a[0])),a?(V.log("MIXPANEL REQUEST:"),V.log(a),this._send_request(e,this._encode_data_for_request(a),s,this._prepare_callback(n,a))):null},this);return this._batch_requests&&!i?r.enqueue(a).then(function(u){u?n(1,a):c()}):o=c(),o&&a};k.prototype.track=gt(function(t,n,a,e){var r;if(!(a&&a.skip_hooks)){if(r=this._run_hook("before_track",t,n),r===null)return;t=r[0],n=r[1]}!e&&typeof a=="function"&&(e=a,a=null),a=a||{};var i=a.transport;i&&(a.transport=i);var s=a.send_immediately;if(typeof e!="function"&&(e=ot),h.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){e(0);return}n=h.extend({},n),n.token=this.get_config("token");var o=this.persistence.remove_event_timer(t);if(!h.isUndefined(o)){var c=new Date().getTime()-o;n.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var l=this.get_config("property_blacklist");h.isArray(l)?h.each(l,function(f){delete n[f]}):this.report_error("Invalid value for property_blacklist config: "+l);var d={event:t,properties:n};return r=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:s,send_request_options:a},e),r});k.prototype.set_group=gt(function(t,n,a){h.isArray(n)||(n=[n]);var e={};return e[t]=n,this.register(e),this.people.set(t,n,a)});k.prototype.add_group=gt(function(t,n,a){var e=this.get_property(t),r={};return e===void 0?(r[t]=[n],this.register(r)):e.indexOf(n)===-1&&(e.push(n),r[t]=e,this.register(r)),this.people.union(t,n,a)});k.prototype.remove_group=gt(function(t,n,a){var e=this.get_property(t);if(e!==void 0){var r=e.indexOf(n);r>-1&&(e.splice(r,1),this.register({group_key:e})),e.length===0&&this.unregister(t)}return this.people.remove(t,n,a)});k.prototype.track_with_groups=gt(function(t,n,a,e){var r=h.extend({},n||{});return h.each(a,function(i,s){i!=null&&(r[s]=i)}),this.track(t,r,e)});k.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)};k.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]};k.prototype.get_group=function(t,n){var a=this._create_map_key(t,n),e=this._cached_groups[a];return(e===void 0||e._group_key!==t||e._group_id!==n)&&(e=new ie,e._init(this,t,n),this._cached_groups[a]=e),e};k.prototype.track_pageview=gt(function(t,n){typeof t!="object"&&(t={}),n=n||{};var a=n.event_name||"$mp_web_page_view",e=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},e,t);return this.track(a,r)});k.prototype.track_links=function(){return this._track_dom.call(this,sr,arguments)};k.prototype.track_forms=function(){return this._track_dom.call(this,Ci,arguments)};k.prototype.time_event=function(t){if(h.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var Qg={persistent:!0},xs=function(t){var n;return h.isObject(t)?n=t:h.isUndefined(t)?n={}:n={days:t},h.extend({},Qg,n)};k.prototype.register=function(t,n){var a=this._run_hook("before_register",t,n);if(a!==null){t=a[0],n=a[1];var e=xs(n);e.persistent?this.persistence.register(t,e.days):h.extend(this.unpersisted_superprops,t)}};k.prototype.register_once=function(t,n,a){var e=this._run_hook("before_register_once",t,n,a);if(e!==null){t=e[0],n=e[1],a=e[2];var r=xs(a);r.persistent?this.persistence.register_once(t,n,r.days):(typeof n>"u"&&(n="None"),h.each(t,function(i,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===n)&&(this.unpersisted_superprops[s]=i)},this))}};k.prototype.unregister=function(t,n){var a=this._run_hook("before_unregister",t,n);a!==null&&(t=a[0],n=a[1],n=xs(n),n.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])};k.prototype._register_single=function(t,n){var a={};a[t]=n,this.register(a)};k.prototype.identify=function(t,n,a,e,r,i,s,o){var c=this._run_hook("before_identify",t);if(c===null)return-1;t=c[0];var u=this.get_distinct_id();if(t&&u!==t){if(typeof t=="string"&&t.indexOf(Is)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}t!==u&&t!==this.get_property(ii)&&(this.unregister(ii),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(n,a,e,r,i,s,o),t!==u&&this.track("$identify",{distinct_id:t,$anon_distinct_id:u},{skip_hooks:!0}),t!==u&&this.flags.fetchFlags()};k.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=h.UUID();this.register_once({distinct_id:Is+t,$device_id:t},""),this._check_and_start_session_recording()};k.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};k.prototype.alias=function(t,n){if(t===this.get_property(ql))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var a=this;return h.isUndefined(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(ii,t),this.track("$create_alias",{alias:t,distinct_id:n},{skip_hooks:!0},function(){a.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)};k.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)};k.prototype.set_config=function(t){if(h.isObject(t)){h.extend(this.config,t);var n=t.batch_size;n&&h.each(this.request_batchers,function(a){a.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),De.DEBUG=De.DEBUG||this.get_config("debug"),("autocapture"in t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),h.isObject(t.hooks)&&(this.hooks={},h.each(t.hooks,function(a,e){if(h.isFunction(a))this.hooks[e]=[a];else if(h.isArray(a)){this.hooks[e]=[];for(var r=0;r<a.length;r++)h.isFunction(a[r])||V.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(a[r])}else V.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}};k.prototype.get_config=function(t){return this.config[t]};k.prototype._run_hook=function(t){var n=at.call(arguments,1);return h.each(this.hooks[t],function(a){if(n===null)return null;var e=a.apply(this,n);typeof e>"u"?(this.report_error(t+" hook did not return a valid value"),n=null):(h.isArray(e)||(e=[e]),n.splice.apply(n,[0,e.length].concat(e)))},this),n};k.prototype.get_property=function(t){return this.persistence.load_prop([t])};k.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")};k.prototype.toString=function(){var t=this.get_config("name");return t!==Me&&(t=Me+"."+t),t};k.prototype._event_is_disabled=function(t){return h.isBlockedUA(ze)||this._flags.disable_all_events||h.include(this.__disabled_events,t)};k.prototype._gdpr_init=function(){var t=this.get_config("opt_out_tracking_persistence_type")==="localStorage";t&&h.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")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};k.prototype._gdpr_update_persistence=function(t){var n;if(t&&t.clear_persistence)n=!0;else if(t&&t.enable_persistence)n=!1;else return;!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()};k.prototype._gdpr_call_func=function(t,n){return n=h.extend({track:h.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),h.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})};k.prototype.opt_in_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(ig,t),this._gdpr_update_persistence(t)};k.prototype.opt_out_tracking=function(t){t=h.extend({clear_persistence:!0,delete_user:!0},t),t.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ag,t),this._gdpr_update_persistence(t)};k.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(sg,t)};k.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(_l,t)};k.prototype.clear_opt_in_out_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(og,t),this._gdpr_update_persistence(t)};k.prototype.report_error=function(t,n){V.error.apply(V.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(a){V.error(a)}};k.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)};k.prototype.remove_hook=function(t,n){var a;this.hooks[t]&&(a=this.hooks[t].indexOf(n),a!==-1?this.hooks[t].splice(a,1):V.log("remove_hook failed. Matching hook was not found"))};k.prototype.init=k.prototype.init;k.prototype.reset=k.prototype.reset;k.prototype.disable=k.prototype.disable;k.prototype.time_event=k.prototype.time_event;k.prototype.track=k.prototype.track;k.prototype.track_links=k.prototype.track_links;k.prototype.track_forms=k.prototype.track_forms;k.prototype.track_pageview=k.prototype.track_pageview;k.prototype.register=k.prototype.register;k.prototype.register_once=k.prototype.register_once;k.prototype.unregister=k.prototype.unregister;k.prototype.identify=k.prototype.identify;k.prototype.alias=k.prototype.alias;k.prototype.name_tag=k.prototype.name_tag;k.prototype.set_config=k.prototype.set_config;k.prototype.get_config=k.prototype.get_config;k.prototype.get_api_host=k.prototype.get_api_host;k.prototype.get_property=k.prototype.get_property;k.prototype.get_distinct_id=k.prototype.get_distinct_id;k.prototype.toString=k.prototype.toString;k.prototype.opt_out_tracking=k.prototype.opt_out_tracking;k.prototype.opt_in_tracking=k.prototype.opt_in_tracking;k.prototype.has_opted_out_tracking=k.prototype.has_opted_out_tracking;k.prototype.has_opted_in_tracking=k.prototype.has_opted_in_tracking;k.prototype.clear_opt_in_out_tracking=k.prototype.clear_opt_in_out_tracking;k.prototype.get_group=k.prototype.get_group;k.prototype.set_group=k.prototype.set_group;k.prototype.add_group=k.prototype.add_group;k.prototype.remove_group=k.prototype.remove_group;k.prototype.add_hook=k.prototype.add_hook;k.prototype.remove_hook=k.prototype.remove_hook;k.prototype.track_with_groups=k.prototype.track_with_groups;k.prototype.start_batch_senders=k.prototype.start_batch_senders;k.prototype.stop_batch_senders=k.prototype.stop_batch_senders;k.prototype.start_session_recording=k.prototype.start_session_recording;k.prototype.stop_session_recording=k.prototype.stop_session_recording;k.prototype.pause_session_recording=k.prototype.pause_session_recording;k.prototype.resume_session_recording=k.prototype.resume_session_recording;k.prototype.get_session_recording_properties=k.prototype.get_session_recording_properties;k.prototype.get_session_replay_url=k.prototype.get_session_replay_url;k.prototype.get_tab_id=k.prototype.get_tab_id;k.prototype.DEFAULT_API_ROUTES=Jl;k.prototype.__get_recorder=k.prototype.__get_recorder;U.prototype.properties=U.prototype.properties;U.prototype.update_search_keyword=U.prototype.update_search_keyword;U.prototype.update_referrer_info=U.prototype.update_referrer_info;U.prototype.get_cross_subdomain=U.prototype.get_cross_subdomain;U.prototype.clear=U.prototype.clear;var Zt={},ev=function(){h.each(Zt,function(t,n){n!==Me&&(ye[n]=t)}),ye._=h},tv=function(){ye.init=function(t,n,a){if(a)return ye[a]||(ye[a]=Zt[a]=qa(t,n,a),ye[a]._loaded()),ye[a];var e=ye;Zt[Me]?e=Zt[Me]:t&&(e=qa(t,n,Me),e._loaded(),Zt[Me]=e),ye=e,ai===Kg&&(A[Me]=ye),ev()}},rv=function(){function t(){t.done||(t.done=!0,Zl=!0,Hl=!1,h.each(Zt,function(e){e._dom_loaded()}))}function n(){try{B.documentElement.doScroll("left")}catch{setTimeout(n,1);return}t()}if(B.addEventListener)B.readyState==="complete"?t():B.addEventListener("DOMContentLoaded",t,!1);else if(B.attachEvent){B.attachEvent("onreadystatechange",t);var a=!1;try{a=A.frameElement===null}catch{}B.documentElement.doScroll&&a&&n()}h.register_event(A,"load",t,!0)};function nv(t){return Gl=t,ai=Wa,ye=new k,tv(),ye.init(),rv(),ye}function iv(t,n){n()}var cv=nv(iv);export{cv as m,ov as r};
|