@zeniai/web-cockpit-ui 1.14.41-qa → 1.14.42-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.
Files changed (243) hide show
  1. package/dist/assets/ACHDetailsPage-C0Ys2JJm-CSmQeh3x.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DUz4HfZ1-Dw16_h1i.js → AIPerformancePage-CsR8PRb9-DlWAPyY5.js} +32 -32
  3. package/dist/assets/{AccountInfoPage-YaZUNWd--C7mX1TUK.js → AccountInfoPage-GuppZ3vX-ybOuy1Kd.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CMDfYWOh-2t3Y-Tgi.js → AccountInfoPageContent-BLKO0eIw-B7kvUMt5.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-DVLQ0FPH-B5gNUsGD.js → AccountLockedInfoModal-DxcSHNgE-BkMfAWj6.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D15tKD4N-wdhiO3so.js → AccountReconDetailsDrawerPage-BoS3J4pw-C7qNHT6H.js} +15 -15
  7. package/dist/assets/{AccountRow-D-CPGejv-C0MkYOn9.js → AccountRow-Dj74AzIh-BbDAUA8T.js} +22 -22
  8. package/dist/assets/{AccountsPromoCardStack-BP_NIYH9-CknZDmQk.js → AccountsPromoCardStack-MQ_e8aZu-DokMp7Fc.js} +28 -28
  9. package/dist/assets/{AddAddressForCardDrawer-CgUhQtxS-ZERwnczq.js → AddAddressForCardDrawer-LpGynQhq-BiZdAWgh.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BJ1zD8Fp-DS4otSje.js → AddToWalletPage-wtm2Oua5-x0zhdZBl.js} +14 -14
  11. package/dist/assets/{AgingReportsPage-BC3a8enN-CH94puRQ.js → AgingReportsPage-e98Qmrut-DEPFVdEb.js} +14 -14
  12. package/dist/assets/{AllUserItems-vM-R7kC6-dC4XnH-i.js → AllUserItems-Cyr74U6h-DLHOl5bM.js} +10 -10
  13. package/dist/assets/{ApAgingDetailPage-C0soj3QL-CIKu7KMh.js → ApAgingDetailPage-Kjz7NPLx-Bf3lvNxo.js} +4 -4
  14. package/dist/assets/{AppBasePage-vYi6vqB3-CUCnltWx.js → AppBasePage-DrR3bM5Z-CWPfvLBQ.js} +17 -17
  15. package/dist/assets/{AppDrawerContent-4OWU2TFD-hU4F7Wlo.js → AppDrawerContent-C2GlTktJ-DMFov52N.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-D9sYwLt_-eXBjf9wx.js → ApprovalRulesSettingsPage-Cy9uHg-R-Lb5cY5kU.js} +1 -1
  17. package/dist/assets/{ArAgingChart-B_o6w4NZ-eMi5HTRp.js → ArAgingChart-CtxyhI9X-mEADLb4-.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-CBVZytB--DpqLoVCo.js → ArAgingDetailPage-GX7S1gNm-CGPsvsX3.js} +1 -1
  19. package/dist/assets/{AttachmentView-B-4i3ruL-Coezd-6G.js → AttachmentView-C8CksG-9-RpLYPFoP.js} +6 -6
  20. package/dist/assets/{BankAccountSection-BSpqPLea-DnHvULrV.js → BankAccountSection-8JPKANMP-DuTpIyau.js} +4 -4
  21. package/dist/assets/BankAccountWarningSection-HW7t6lPN-CXdJbZl-.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-Bb8Ug1B7-BrJkpQBD.js → BankConnectionsSettingsPage-C_jyBPLn-CLp_uRqW.js} +31 -31
  23. package/dist/assets/BillDetailPage-BwuHMPBb-CWwzJCXe.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-zgj-w04l-DlkJNyRo.js → BillPayApprovalRuleDetailPage-9RqkaWf2-BU5jdCnL.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-8Yu9sjNN-CP9d39U-.js → BillPayApprovalRulesPage-CZmACduz-93oNGY5M.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-DwiZ7BtU-fiyE_zkg.js → BillPayPromoPage-C2m0GTw3-CZokQfrc.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-qkDjDwA2-BVCc21N3.js → BillPaySetUpPage-C71BRWUw-VI3bvPN6.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CcAIOY2J-REyIPWiq.js → BillingSettingsPage-Gc3cUKmE-DleW0m9X.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BONjbFFw-qDHExLn5.js → BillsBulkReviewDrawerPage-CO1oJuvH-DO4MY9I-.js} +1 -1
  30. package/dist/assets/{BoxItem-BebxqupW-BdoD_mmi.js → BoxItem-D09XMKDc-dcEB3ro9.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DB134_1e-CZY_8hSF.js → BusinessVerificationPage-Ef4KSPWc-CGQqBH2S.js} +9 -9
  32. package/dist/assets/CardNumberSubText-Chba_z2--BgVxGcnT.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-CCb57-3P-p_PVDcq5.js → CashbackDetailPage-DAM-IJ8V-GMcbY1v3.js} +20 -20
  34. package/dist/assets/{ChargeCardDetailPage-DZ53kEgD-CVscm9WX.js → ChargeCardDetailPage-U_ZuntGp-Bifm6uRw.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-67dSFsMj-BER-SYIw.js → ChargeCardListPage-DJ5TbLO--IUEMfPwT.js} +23 -23
  36. package/dist/assets/{ChargeCardListTable-Czriruk3-DeRl2C1o.js → ChargeCardListTable-D7BV3Iv9-CvArKgFC.js} +13 -13
  37. package/dist/assets/{ChargeCardPromoPage-DvMyjHD_-Dd7MlnjV.js → ChargeCardPromoPage-CMqzRnza-BLyUSFwI.js} +26 -26
  38. package/dist/assets/{ChargeCardSetupPage-D6o-evfw-2pOurEiq.js → ChargeCardSetupPage-dOz2soLF-Bc9pTyfy.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-vmEZp2Gc-k4U6YJ8h.js → ChargeCardStatementsPage-S2JH9s6i-BXX6utVL.js} +11 -11
  40. package/dist/assets/ChargeCardUtils-Bv0OpE88-D5Y-HOpD.js +1 -0
  41. package/dist/assets/{ChaseOverlay-DU98sRYz-NBdZIJp3.js → ChaseOverlay-4Rv__bdV-G7KHiWVk.js} +7 -7
  42. package/dist/assets/{CheckDepositDrawerPage-D559Iqfg-2Xs20KLS.js → CheckDepositDrawerPage-BKogbkJv-CWQTz4_P.js} +15 -15
  43. package/dist/assets/{CollapsableReportTable-C3JrOMbA-C8RANxS5.js → CollapsableReportTable-B_qvVX0p-B7sAIIqY.js} +85 -85
  44. package/dist/assets/{CompanyOfficerDetailsSection-ByPjcDhp-UGnVN2eW.js → CompanyOfficerDetailsSection-aAwv9WfC-B4p0BPWe.js} +22 -22
  45. package/dist/assets/{CompanyPassportCard-DtaT5LBX-sjzIwivo.js → CompanyPassportCard-DchSKG4l-bx1QGbPl.js} +4 -4
  46. package/dist/assets/{CompanyPassportPage-CYqtLLPi-BZvETxjP.js → CompanyPassportPage-DLIJn7Fp-oxmh8Pcm.js} +14 -14
  47. package/dist/assets/{CompleteProfile-bz1Sx_Ks-eJUFer6h.js → CompleteProfile-Bf5sNhdg-Bo2AvDlJ.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-DmQRRfzl-CENtoeqN.js → ConfettiBurst-BPWFB4Ty-0v38oqti.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-R5xXzTyF-B9baa0jh.js → CreateOrEditVendorPage-BTWihvJ--DUStbYOW.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CxFF-ITI-WcUeJ00Z.js → CreditCardPaymentDrawerPage-B5p_onzw-DCjutv5C.js} +11 -11
  51. package/dist/assets/{CreditCardPaymentPlgSection-D5M15mry-CMaSHERV.js → CreditCardPaymentPlgSection-CTpwe7CS-BcL1YjIs.js} +5 -5
  52. package/dist/assets/{CurrencySelectField-DdtldGsv-C812lF_Y.js → CurrencySelectField-Dn9EcyiE-BQIfFGfi.js} +7 -7
  53. package/dist/assets/{CustomerOnboardingActivationPage-S5ljEjEE-Jb-LTm9b.js → CustomerOnboardingActivationPage--C7Nj5oq-JR3YGMUS.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-BDHp6tYk-BLNEL0qV.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B-aHwtTV-FqYSR0lJ.js → CustomerOnboardingDetailPageSkeleton-BEldzNUC-BEL3C00x.js} +11 -11
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-D_WXGOKQ-DBupGUX6.js → CustomerOnboardingNoStepsPage-BWPx0oGa-CDRjdq54.js} +4 -4
  57. package/dist/assets/{CustomerOnboardingPage-D3GUyy20-COjJdfeN.js → CustomerOnboardingPage-CQsXgrSi-DMAOHFB2.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BcpIczxe-GA6RVDjg.js → CustomerOnboardingProductSuitePage-Ba-hBJDr-D6bzZxGx.js} +4 -4
  59. package/dist/assets/{Dashboard-D19IvfgJ--DOQVvlB.js → Dashboard-D9a8ZSVk-r42V_isI.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DucQv3ZE-CMnuoHmh.js → DashboardReportPage-DC7almyE-DPo9kVmb.js} +18 -18
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-zEtk_8x9-CJFT1DkV.js → DashboardSidebarBackgroundAnimation-BZPfkv0W-C5DTnalV.js} +3 -3
  62. package/dist/assets/{DepositAccTransactionItem-DG7JaTJY-BCT3hCg7.js → DepositAccTransactionItem-D6Pxnskx-DNWsx-r8.js} +5 -5
  63. package/dist/assets/{DepositAccTransactionListPage-DEDzaAaX-DzTp8c-j.js → DepositAccTransactionListPage-RPv15wO3-g2ti0qw6.js} +2 -2
  64. package/dist/assets/{DomesticWireDetailsPage-DH4keptD-D01iyx2r.js → DomesticWireDetailsPage-C7SMSdym-4FSz7OmR.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DQZd_zyi-B9VMhe_d.js → DownloadOverlay-DSuuIFd2-BOmkiO4Q.js} +18 -18
  66. package/dist/assets/{DrawerPage-CtDNbXHp-C2cmEeEY.js → DrawerPage-G3indLUm-BloVVmDh.js} +12 -12
  67. package/dist/assets/EditPeoplePage-B3OUzvId-mGEO8i8C.js +55 -0
  68. package/dist/assets/{EditReimbursementDetailPage-BxzB9b4R-COHPUQv7.js → EditReimbursementDetailPage-BDtXtGDU-C7db0ozx.js} +51 -51
  69. package/dist/assets/{EntityDetailPage-CuPr64cj-DyxVHR3_.js → EntityDetailPage-Duk7QFjU-4fI6-YD5.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-CX-KbVbj-CNqoxowU.js → EntitySummarySection-Cr7WMJ8D-CxAoWGpH.js} +7 -7
  71. package/dist/assets/{ExpenseAutomationOverviewPage-DRFk1z66-B4CXhi6d.js → ExpenseAutomationOverviewPage-hpARiJiY-Cl3fyuZ_.js} +55 -55
  72. package/dist/assets/{ExpenseAutomationPage-ugq4J-e3-Cq8XKeSo.js → ExpenseAutomationPage-BC5qS_i3-B_dfKUDn.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-DWFyq0OM-Xap9PWuy.js → ExpressPayPage-I-QL4uh--CR8ltLbL.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-Bdostf75-Co3kb8i2.js → FeaturePreviewPage-BHb59Q7j-BMGHbQAr.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-CFs_c9UA-C2ivxTgB.js → FollowStepsSection-DONqc9yn-DTdIc25n.js} +9 -9
  76. package/dist/assets/{GlobalReviewListPage-Cw8nJl7r-ucxhv7FU.js → GlobalReviewListPage-BFAgZIJv-pSG93cS5.js} +11 -11
  77. package/dist/assets/{HelpButton-DJeoop_B-BbsNSnSE.js → HelpButton-DoSu6q8h-w0fElDGQ.js} +1 -1
  78. package/dist/assets/{InformationCardStack-DXqbwonQ-D-8qMtbR.js → InformationCardStack-JtvRODJe-BAk9iE1O.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-7JsHAYeW-ug-71Tgc.js → InsightsCardStack-BEceNZZE-_pfKOcnL.js} +9 -9
  80. package/dist/assets/{InsightsSection-BkKqEnbT-p9XkPAwR.js → InsightsSection-KsnkYRQw-CjzvB6rM.js} +5 -5
  81. package/dist/assets/{IntegrationsSettingsPage-DQ_GH1NV-DceBqihU.js → IntegrationsSettingsPage-D4cEY5iJ-Ct8U8ddA.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-B6ER7qfQ-Cn8QyFOw.js → InternationalWireSwiftDetailsPage-Tf_vaD2v-Bx9cBAe-.js} +15 -15
  83. package/dist/assets/{InternationalWireVerificationPage-hb0w0-FP-CjYCUXS4.js → InternationalWireVerificationPage-qIIqh0iv-Dla3dOLs.js} +15 -15
  84. package/dist/assets/{InviteFormPage-1dBkKRKs-DciMQTpm.js → InviteFormPage-ByA4uyh2-CUZJDn4x.js} +22 -22
  85. package/dist/assets/{InvitePageListView-DhpXrg6S-iVD2f3Qa.js → InvitePageListView-0_dBCqFt-HjR3qPdd.js} +44 -44
  86. package/dist/assets/{InvitePeoplePage-DrHGaYn6-cG76tknZ.js → InvitePeoplePage-C4d-Ov5z-CPj8BOmp.js} +3 -3
  87. package/dist/assets/InvoiceUploadSection-MEPQPiCt-C4G2s06g.js +140 -0
  88. package/dist/assets/{IssueChargeCardPage-B_O7rJSC-DBAUNHK1.js → IssueChargeCardPage-C77SyJR9-CUKH1f59.js} +21 -21
  89. package/dist/assets/{LabeledAddressValue-DWpOvFnM-MVu54lHC.js → LabeledAddressValue-DKKL0jnt-DbFZZVFw.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-Ca10mEAm-D8rcZ6WA.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-tNAjM4hM-BvgQqmxU.js → LabeledControlledCheckBoxField-BYk2-ixd-B_p740LF.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-yMTUEfLS-toELldV7.js → LabeledCreatableSingleSelectField-DMhTj1GM-Cqe5AURU.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-DX4zVKkz-CS1LiAul.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-Dm1etnU5-C8--qfVi.js → LabeledDropDownFormattedTextField-BoizuD7H-Ce48u3nd.js} +5 -5
  95. package/dist/assets/{LabeledText-BRS0e-dG-BZq4VrX9.js → LabeledText-4NNrEynJ-BDzeNgnU.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bml1bcSK-BC3kyZqP.js → LabeledUserSingleSelectWithSubtitlesField-DaXDpM0N-DYtP0MFC.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-l2veUn4k-CULldLpx.js → LabeledZeniRolesDropDownField-zRamZWIQ-oWeJ0wbt.js} +10 -10
  98. package/dist/assets/{LinkJETransactionPage-VtgdRNhL-D7ndfEzz.js → LinkJETransactionPage-FMYLsvT_-IUHBR-RO.js} +5 -5
  99. package/dist/assets/{LowBalancePopup-Dg43FP8p-BLvbua8r.js → LowBalancePopup-Ig5iJGIg-BisR1D9G.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-UfT8yCmX-DOK_VceA.js → MagicLinkACHDetailsPage-Cf-TvH4n-BBkkCR2W.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-Bgwf3qMA-BfpKCTOv.js → MagicLinkDomesticWireDetailsPage-CLJo-rez-MDjP3aI7.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B9QWmf9B-Dk7a13qP.js → MagicLinkInternationalWireDetailsPage-C-cD6L4u-Z9qBkl5z.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-SjBCvTm5-8jc-eo0M.js → MagicLinkSuccessPage-cJ0PjYEe-DY9yZh-d.js} +1 -1
  104. package/dist/assets/MagicLinkTitleSection-Dc8RKV1p-VRc37nwk.js +17 -0
  105. package/dist/assets/{MailingDetailsSection-Dk8tP8LP-YFImgirq.js → MailingDetailsSection-BD9QWumq-Bo7ZhKA-.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-gebcIIpu-DuyM5Ce0.js → MeetingCalenderPopup-D10SioCO-Sv9k3aJ6.js} +1 -1
  107. package/dist/assets/{Menu-BeDBbRH8-NbbFIuDT.js → Menu-DV3oFAip-BjpENrFA.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-Bp6o9Mts-4X9R_NQE.js → MyBankConnectionsSettingsPage-jrPeCDe3-C_FxZh14.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CEWRTVvz-CijMZlz_.js → MyPendingActivationChargeCardListPage-CpaPeIYq-Ckzf1YTL.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-Dvgp3Ycy-DSUbYEGm.js → MyProfileSettingsPage-DLj2PeG9-d2LNa8rI.js} +10 -10
  111. package/dist/assets/{NavBarWithPicker-XmGu6RQR-C9BXxiKA.js → NavBarWithPicker-CilKdL1D-Z1krBpRG.js} +4 -4
  112. package/dist/assets/{NavigationArrow-DuEUVDwX-DfD0NIdE.js → NavigationArrow-DvGjNVsn-C-QNklxa.js} +1 -1
  113. package/dist/assets/{NavigationDots-BcP-rh-K-DS8oU4Qg.js → NavigationDots-BZNvrGBo-CvNSDZNv.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CI0ohS8I-DWKnTzMp.js → NewGlobalMerchantPage-D5ESBBO5-CiqJ8Tsp.js} +7 -7
  115. package/dist/assets/{NoDataChart-Cu34Y6fv-CDediDtZ.js → NoDataChart-D9tQhnyu-C94gJNvj.js} +3 -3
  116. package/dist/assets/{NoDataTable-CPWzH0PE-DkDzGQpn.js → NoDataTable-8FGbkVty-RgNhnWfj.js} +1 -1
  117. package/dist/assets/{NotFoundPage-yZOAgP9f-BvtMauqa.js → NotFoundPage-D8qvMFgl-BJxrGtQd.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-5bXbyP0i-Dn4CCfRt.js → NotificationSettingsPage-BSJTBlX6-Dh8E-2JN.js} +14 -14
  119. package/dist/assets/{NotificationsListConfig-DINVh9-P-Cr5z8nJ2.js → NotificationsListConfig-EynMAcn9-B66CEzXh.js} +1 -1
  120. package/dist/assets/{NotificationsPage-CKcEU-jy-D9LjSHYu.js → NotificationsPage-d4HJEE7S-DignNo6N.js} +21 -21
  121. package/dist/assets/{OpExByVendorPage-3oQc7n37-ie-HlsGj.js → OpExByVendorPage-CmuEz33W-DHZbqMQl.js} +4 -4
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-c3kkjLHu.js → OverlayContainerPage-Bmu909Fo-BEKpfYXF.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-BPcWHQXd-CtN-h80b.js → PandLWithForecastPage-C7WaIZ8e-AKi0ejYh.js} +11 -11
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D7JHebDo-BRRsi8Cn.js → PaymentAccountSetupBillingAddressSection-B3m8zs_b-ShdTy6dm.js} +9 -9
  125. package/dist/assets/{PeoplePage-AdCHl8Rj-GGNGd1tU.js → PeoplePage-BN8tiBew-SMy3y22T.js} +33 -33
  126. package/dist/assets/PortfolioAllocationFormPage-BD1u1-Or-BP5X7l75.js +207 -0
  127. package/dist/assets/{PortfolioDetails-DaiiBOps-RHi4PLpn.js → PortfolioDetails-fLO6-kOh-CadDK_zj.js} +14 -14
  128. package/dist/assets/{ProductsCarousel--PIp0Wwx-1HYPMREY.js → ProductsCarousel-RHO5BWU--BaB4l4pQ.js} +3 -3
  129. package/dist/assets/{PromoBaseCards-hEn7m0Ea-Dc9Lc6Jd.js → PromoBaseCards-Bm6GGzhn-7qUEmgGZ.js} +2 -2
  130. package/dist/assets/{QBOConnectionDialog-DByNCCyR-xe7LeSrJ.js → QBOConnectionDialog-Dp_Zkpup-B6ThY6EF.js} +7 -7
  131. package/dist/assets/{QBOSetupSection-NdDTo0GG-op77rVCs.js → QBOSetupSection-C1hBKDG3-D4_IOTse.js} +13 -13
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-DFUyL8tS-CjazMZUR.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-D13xg5lU-zFGSLUlG.js → ReimbursementApprovalRulesPage-CGb7oMjB-DRxFMpGG.js} +11 -11
  134. package/dist/assets/{ReimbursementDetailPage-1S7-fp6x-Hi7ghCPV.js → ReimbursementDetailPage-ByD43ffh-CS-2jIxA.js} +8 -8
  135. package/dist/assets/{ReimbursementPromoPage-TwSf4vIh-CMdRmwjh.js → ReimbursementPromoPage-CPFAYaW8-Tc6w3wrG.js} +20 -20
  136. package/dist/assets/{ReimbursementSetUpPage-D-g1h8Z7-DKvqAEBO.js → ReimbursementSetUpPage-B_jUtf6N-CH4GgWXW.js} +4 -4
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-nsM0DGyC-BKjafGKk.js → ReimbursementsBulkReviewDrawerPage-DU-QA2n3-CKhaAS5r.js} +1 -1
  138. package/dist/assets/{ReloadCard-K9SGlmus-DZ7vYKCw.js → ReloadCard-HsDGbgTn-BsloOU08.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-BVw08xMR-S2k8-vyd.js → ReportTableViewSelector-BzFUam8T-BhACNwXr.js} +6 -6
  140. package/dist/assets/{ReportsPage-DrbFSYgn-Dhzyn189.js → ReportsPage-MQSNDA98-DYJWfk_K.js} +10 -10
  141. package/dist/assets/{RevenueChart-mib92BSo-vb-0BYYz.js → RevenueChart-BzYEiXeP-CL_U7QVF.js} +29 -29
  142. package/dist/assets/{ReviewDetailsPage-C5f_GAjv-rA6jgu-n.js → ReviewDetailsPage-w2tTvIFQ-DFmBHsAk.js} +5 -5
  143. package/dist/assets/ReviewOverlay-DbYrvPld-BPButrhP.js +152 -0
  144. package/dist/assets/{RoleWithToolTip-C5grx1DM-Bhnk8KKY.js → RoleWithToolTip-B_Ivheco-R8i0Qg5c.js} +6 -6
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BfqQFFiq-CwYQjSQh.js → ScheduleDetailsFixedAssetsPage-CSiXckiF-snYrLXiT.js} +8 -8
  146. package/dist/assets/{ScheduleDetailsPage-DkNwuZzq-Dw4BBNuN.js → ScheduleDetailsPage-BUprw9Sk-CY06UcmD.js} +4 -4
  147. package/dist/assets/{ScheduleSequenceTable-CviQlsxi-BixaGSYy.js → ScheduleSequenceTable-DnIgU9m6-CTOQUShp.js} +18 -18
  148. package/dist/assets/{ScreenRoutes-BOEZc6DS.js → ScreenRoutes-Df5fPQoi.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-d5HPps92-DZbUJeeo.js → SetUpAccountSection-DDxjcjeg-CBwjkDjl.js} +10 -10
  150. package/dist/assets/{SetUpDefaultSection-D1OXPM9M-2zaSn3KY.js → SetUpDefaultSection-BSWh5Hvi-BrKOFekt.js} +14 -14
  151. package/dist/assets/{SignIn-tpfovElQ-C4991EnD.js → SignIn-CImCEnZS-CTfoa2RW.js} +23 -23
  152. package/dist/assets/{SignInScreen-DgNycLfV.js → SignInScreen-DOATVkIe.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-B3t2U-Lq-GWfzNKhc.js → SpendManagementListViewPage-B61K65wh-DBswKLKE.js} +6 -6
  154. package/dist/assets/{SpendManagementPerTabPage-vATAr6zx-sNIcyb2f.js → SpendManagementPerTabPage-Bxo7BTP3-BTpFLD01.js} +11 -11
  155. package/dist/assets/{SpendManagementSection-C8S1zv_Z-D1UddAHC.js → SpendManagementSection-Ddoo9sSg-BrfWcTur.js} +11 -11
  156. package/dist/assets/{SpendMgmtSetupAccountSection-C3n3CKZp-DgPqGmio.js → SpendMgmtSetupAccountSection-GjJmiN01-CfomDHm3.js} +19 -19
  157. package/dist/assets/{StatementItem-C2VaQMdB-GityFkee.js → StatementItem-D_ctLWr0-D0j_MHXQ.js} +5 -5
  158. package/dist/assets/StatementsPage-D1M95WeY-CnAx-9oR.js +58 -0
  159. package/dist/assets/{StatusSwitcher-CI_4NJc0-D3kMd2Ls.js → StatusSwitcher-ZC7lyTov-GCiWQPGY.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-CKh0fbAL-CZyzUbuM.js → SubTabSwitcher-BNFnbB_T-DaWGnnx_.js} +1 -1
  161. package/dist/assets/{SummaryCard-56XeB7PA-B87JqDih.js → SummaryCard-CSo1L2R4-Biw8Izdi.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-el6vudQA-DkYDl2e-.js → TaskManagementPage-CAcMcS83-D_9dscfp.js} +14 -14
  163. package/dist/assets/{TimeRangeSwitcher-X1sd0HJo-D3i-wisc.js → TimeRangeSwitcher-CNdJhUPl-Lk4TfGUR.js} +5 -5
  164. package/dist/assets/{TimeframeSwitcher-TLcNg_CN-98HiGYj7.js → TimeframeSwitcher-B7t79hiQ-DXBKb0F7.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-Cnlgngu_-BVr6cN7Q.js → TimeframeSwitcherWithToggle-gywVFoaK-CKJ0rtbC.js} +1 -1
  166. package/dist/assets/{TopExCard-BuCdMdGn-DzugoAzP.js → TopExCard-D_LHVo5q-kM42LZ8h.js} +4 -4
  167. package/dist/assets/{TopExDetailPage-DJwK85mY-BLlAa0Mx.js → TopExDetailPage-DuiVBT_3--4JswmJo.js} +13 -13
  168. package/dist/assets/{TransactionDetailPage-fKLOaC53-B4PLnewq.js → TransactionDetailPage-BWbWafDA-BA5tAQ-_.js} +33 -33
  169. package/dist/assets/{TransactionList-vNVcmGH2-B0OTKj50.js → TransactionList-Xd2JupaK-ME3jRgkK.js} +7 -7
  170. package/dist/assets/{TransactionListBig-C_1iHb-m-7xzK-ehO.js → TransactionListBig-CnJaFkxR-rlrfsVcy.js} +19 -19
  171. package/dist/assets/{TransactionListPage-vE1jowuA-CVyTABcH.js → TransactionListPage-DJXFQaro-6w510avL.js} +2 -2
  172. package/dist/assets/{TransactionVendorDetailPage-C9wGiyJs-DnpJgf-D.js → TransactionVendorDetailPage-Yd_VuyUP-3bCwp_zG.js} +4 -4
  173. package/dist/assets/{TransferDrawerPage-6AaaV1fR-CcXij2fb.js → TransferDrawerPage-DAQ23FUW-Zp14Y_jD.js} +27 -27
  174. package/dist/assets/{TreasuryOverviewPage-8z3dgsQ--0GGyt5L1.js → TreasuryOverviewPage-D7PkIffG-CctuefA8.js} +26 -26
  175. package/dist/assets/{TreasuryPromoPage-BRZCU7u0-YXB-IJNp.js → TreasuryPromoPage-BjVUBF-M-CeyEfLuA.js} +33 -33
  176. package/dist/assets/{TreasurySetupPage-BietgoUm-DuvVLyjQ.js → TreasurySetupPage-CTwhrB6V-Bbh2Nemp.js} +5 -5
  177. package/dist/assets/{TreasuryStatementsPage-BrTZ2Tc9-CuYVtjaG.js → TreasuryStatementsPage-jvmgqTxl-bbGSjEnB.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-Bm8Kh9ci-D-bqdUc-.js → TreasuryTaxLetterPage-CtKw-_Ab-DpqHDLut.js} +2 -2
  179. package/dist/assets/{TreasuryTransferOrReviewPage-DAsCB5hY-CGMzbTrq.js → TreasuryTransferOrReviewPage-HDfVKjSA-D8yPiIy_.js} +37 -37
  180. package/dist/assets/{TrendChart-CDuKYDbr-Bn9DvEcA.js → TrendChart-BqU6zv7L-wkRyWRpL.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-CXFGBD3a-COfDIjjP.js → TrendWithTransactions-CbzZEtLk-CdMXYj1c.js} +4 -4
  182. package/dist/assets/{UncategorizedAccountsMappingPage-CZp60Srt-CzRmIywg.js → UncategorizedAccountsMappingPage-BqfWXEzv-Cz9H5I4W.js} +11 -11
  183. package/dist/assets/{UnitIntegrationPage-Bt3BsIP--CS7__SGc.js → UnitIntegrationPage-DOt0PQxi-x_I9Vs5M.js} +4 -4
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-CiKy5Nj7-B-MuYA3T.js → UploadAdditionalDocumentOverlay-DCG_biA8-DwZNYXuq.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-mpeQ7vp6-drhI-HQb.js → Vendor2FAPopup-AFJ4ji6z-DAWxFDI5.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-DaH6D39U-CWjco5Dp.js → VendorACHDetailsPage-CMZezqhj-omVFdTVD.js} +1 -1
  187. package/dist/assets/{VendorDetailPage--NEui4cR-CjVNfg_w.js → VendorDetailPage-iMWNwLtE-B5NQ34jt.js} +16 -16
  188. package/dist/assets/{VendorDomesticWireDetailsPage-ZpWio-lR-C61aUqHr.js → VendorDomesticWireDetailsPage-LLQSi6rq-JFMiqG0a.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BH50orlv-D4s1kmxT.js → VendorFiling1099EditablePage-BFWuxMl8-CXYevD1L.js} +16 -16
  190. package/dist/assets/{VendorFirstReviewPage-F3ufon8s-De09Hv60.js → VendorFirstReviewPage-G_Cr6q5s-qjW-FU9s.js} +18 -18
  191. package/dist/assets/{VendorInternationalWireDetailsPage-BFCRIyx4-lseeqNrB.js → VendorInternationalWireDetailsPage-DReuPGpX-J63QxGJH.js} +10 -10
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bsw5XWc5-Cxyk29cs.js → VendorInternationalWireSwiftDetailsPage-CmAzQ-7v-D44Jz7aO.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-DyEqMESi-D9e9kicf.js → VendorsAccountsSection-Cjwpb7Ej-Cx7NEKJj.js} +2 -2
  194. package/dist/assets/{VerifyDevice-Cghi40l4-ThU6PIgT.js → VerifyDevice-CvJ2zJdk-DMGMblcz.js} +10 -10
  195. package/dist/assets/{VideoPlayer-BqxR2aZr-C4HSzI7g.js → VideoPlayer-9UKbocWs-CskDssHe.js} +1 -1
  196. package/dist/assets/{VideoPopup-RZCI8_Gx-CwtDMYFf.js → VideoPopup-DfQxE-EQ-DMlN8l45.js} +4 -4
  197. package/dist/assets/{WarningsDrawerPage-ChJqfUoo-C8vzQoCW.js → WarningsDrawerPage-2QsB6DYE-SQ5KLE5P.js} +9 -9
  198. package/dist/assets/{ZeniAccountDetailPage-BVl5QTX2-DcQoIUQu.js → ZeniAccountDetailPage-gFXGgRzS-DY2FypIA.js} +18 -18
  199. package/dist/assets/{ZeniAccountListViewPage-CsAF1Cyb-D_F8pojL.js → ZeniAccountListViewPage-Daboqhbe-C9ys4A5t.js} +12 -12
  200. package/dist/assets/ZeniAccountNavBarPieces-DhpbtWHu-gWttgZ20.js +14 -0
  201. package/dist/assets/{ZeniAccountPromoPage-Bdx-nwJO-CAY8oVsD.js → ZeniAccountPromoPage-Df5MahOc-B26r14Mi.js} +21 -21
  202. package/dist/assets/{ZeniAccountSetupPage-vZ7vjnBw-63QHHhU4.js → ZeniAccountSetupPage-DLlRCOCj-ChweJElI.js} +1 -1
  203. package/dist/assets/{ZeniCopyright-CpkvfVwM-CpIzcf5N.js → ZeniCopyright-D-Z193Re-BzgSGNSq.js} +1 -1
  204. package/dist/assets/ZeniTransferAmountSlider-D8dT_-Hq-BM5AfJxY.js +63 -0
  205. package/dist/assets/{analytics-Dr_Q0qi5.js → analytics-CcevxdRy.js} +19 -19
  206. package/dist/assets/{analyticsHelper-B29pAXmB.js → analyticsHelper-HFa4L7zM.js} +1 -1
  207. package/dist/assets/{analyticsHelper-nzXGHX-f-DDF_mzG5.js → analyticsHelper-c9SRwhe3-rKFHsE9O.js} +1 -1
  208. package/dist/assets/{chartTypes-DJwqK5Pl-BjORIfWQ.js → chartTypes-C2jC2nzT-B64Jl2-O.js} +1 -1
  209. package/dist/assets/{commonDimensions-BI8wHGzb-vF0LFeSK.js → commonDimensions-CtVQ1dPI-BWfVCzLH.js} +1 -1
  210. package/dist/assets/{crypto-Ccg-ICil.js → crypto-CK3r1iTV.js} +1 -1
  211. package/dist/assets/{detailCommon-BqVKB773-C2U67xrp.js → detailCommon-BBImn49A-BK4c1Pxj.js} +6 -6
  212. package/dist/assets/{downloadPdf-BET_DSP9-DmgSWYo3.js → downloadPdf-BvdzZp_S-DQnizCwq.js} +1 -1
  213. package/dist/assets/{index-IgYBqF_x.js → index-DESjn-8d.js} +3503 -3503
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-BrrNGuAc-CqsUk4Uv.js → mapLoadingInProgressToTreeNode-CKsE235C-BIU8Mfd7.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dwov7nU5-BqLpmvIL.js → mapSectionWithAcOnlyToTreeNode-D1DheCOl-DwSkrZHk.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-CgMaqSi_-CjubQCh8.js → mapSpacerToTreeNode-DkIeEOlL-Pn1zCywK.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-BrNgTlbp-CrsNT2yx.js → mapTimeframeBalancesToTreeNode-BhmM7oKt-BQL5w7UJ.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Brqz18bN-TNhDDil7.js → mapTimeframeBalancesToTreeNode-Vy-w7j2m-DzRWaem3.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-UT-UQHkH-D9cTp9HM.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CGrrLYwc-B0qlbSf3.js} +1 -1
  220. package/dist/assets/{toCOABalancesWithID-CAwHN54Z-Dl4_Ib5c.js → toCOABalancesWithID-BdeWiors-BqeL9v71.js} +1 -1
  221. package/dist/assets/{toChartData-pW2XLZo--pfboHwjV.js → toChartData-BCFss2y_-DT7ekoOJ.js} +1 -1
  222. package/dist/assets/{treasuryColorHelper-CdOoL_vC-BdLikaU-.js → treasuryColorHelper-BJcGoSGt-CBJKPFpW.js} +1 -1
  223. package/dist/assets/{uploadAttachment-nqQ-JycC-9pV7MrnE.js → uploadAttachment-PMsRrXUz-BBJRkZzC.js} +20 -20
  224. package/dist/assets/{uploadReceipts-dxsKhm9I-2_GAIK6m.js → uploadReceipts-dxsKhm9I-Bda3Op9y.js} +1 -1
  225. package/dist/index.html +1 -1
  226. package/package.json +4 -4
  227. package/dist/assets/ACHDetailsPage-DZnFgkJZ-DDsy2m6t.js +0 -21
  228. package/dist/assets/BankAccountWarningSection-BS0dlrJ3-BaiUaE4V.js +0 -51
  229. package/dist/assets/BillDetailPage-CuVdQqQW-IOfqi65V.js +0 -266
  230. package/dist/assets/CardNumberSubText-uxqTFnFX--LrYHxfC.js +0 -21
  231. package/dist/assets/ChargeCardUtils-Bptae9Pt-CYq-MsYY.js +0 -1
  232. package/dist/assets/CustomerOnboardingContainerPage-B8_LR61d-DZh0ZsS1.js +0 -1
  233. package/dist/assets/EditPeoplePage-ZzjDJoTQ-DidkWXNI.js +0 -55
  234. package/dist/assets/InvoiceUploadSection-D79UFJii-FhgETgPb.js +0 -140
  235. package/dist/assets/LabeledAddressValueField-DxW5wUY3-fZGEKDYY.js +0 -45
  236. package/dist/assets/LabeledDocumentField-BQDoGQsy-DjCrwjKi.js +0 -41
  237. package/dist/assets/MagicLinkTitleSection-b4t7XGb8-Bc_IiT_b.js +0 -17
  238. package/dist/assets/PortfolioAllocationFormPage-DJVrByWQ-MfVlBQJr.js +0 -207
  239. package/dist/assets/ReimbursementApprovalRuleDetailPage-CCTo6kvJ-BhsLlWsu.js +0 -26
  240. package/dist/assets/ReviewOverlay-CFgWwm-p-BrjMlpfM.js +0 -152
  241. package/dist/assets/StatementsPage-DD2PvuDv-CJO0D7Zd.js +0 -58
  242. package/dist/assets/ZeniAccountNavBarPieces-BlVvO8S4-Bu0wNDog.js +0 -14
  243. package/dist/assets/ZeniTransferAmountSlider-H-uhh5z4-DVStaopp.js +0 -63
@@ -1,9 +1,9 @@
1
- var wc={},Ci={};Ci.byteLength=ld;Ci.toByteArray=fd;Ci.fromByteArray=md;var lt=[],He=[],cd=typeof Uint8Array<"u"?Uint8Array:Array,Ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var ir=0,ud=Ui.length;ir<ud;++ir)lt[ir]=Ui[ir],He[Ui.charCodeAt(ir)]=ir;He[45]=62;He[95]=63;function Sc(n){var t=n.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");o===-1&&(o=t);var r=o===t?0:4-o%4;return[o,r]}function ld(n){var t=Sc(n),o=t[0],r=t[1];return(o+r)*3/4-r}function dd(n,t,o){return(t+o)*3/4-o}function fd(n){var t,o=Sc(n),r=o[0],e=o[1],i=new cd(dd(n,r,e)),a=0,s=e>0?r-4:r,c;for(c=0;c<s;c+=4)t=He[n.charCodeAt(c)]<<18|He[n.charCodeAt(c+1)]<<12|He[n.charCodeAt(c+2)]<<6|He[n.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return e===2&&(t=He[n.charCodeAt(c)]<<2|He[n.charCodeAt(c+1)]>>4,i[a++]=t&255),e===1&&(t=He[n.charCodeAt(c)]<<10|He[n.charCodeAt(c+1)]<<4|He[n.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function hd(n){return lt[n>>18&63]+lt[n>>12&63]+lt[n>>6&63]+lt[n&63]}function pd(n,t,o){for(var r,e=[],i=t;i<o;i+=3)r=(n[i]<<16&16711680)+(n[i+1]<<8&65280)+(n[i+2]&255),e.push(hd(r));return e.join("")}function md(n){for(var t,o=n.length,r=o%3,e=[],i=16383,a=0,s=o-r;a<s;a+=i)e.push(pd(n,a,a+i>s?s:a+i));return r===1?(t=n[o-1],e.push(lt[t>>2]+lt[t<<4&63]+"==")):r===2&&(t=(n[o-2]<<8)+n[o-1],e.push(lt[t>>10]+lt[t>>4&63]+lt[t<<2&63]+"=")),e.join("")}var aa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */aa.read=function(n,t,o,r,e){var i,a,s=e*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=o?e-1:0,h=o?-1:1,_=n[t+d];for(d+=h,i=_&(1<<-u)-1,_>>=-u,u+=s;u>0;i=i*256+n[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=a*256+n[t+d],d+=h,u-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(_?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-l}return(_?-1:1)*a*Math.pow(2,i-r)};aa.write=function(n,t,o,r,e,i){var a,s,c,l=i*8-e-1,u=(1<<l)-1,d=u>>1,h=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=r?0:i-1,v=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=h/c:t+=h*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,e),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,e),a=0));e>=8;n[o+_]=s&255,_+=v,s/=256,e-=8);for(a=a<<e|s,l+=e;l>0;n[o+_]=a&255,_+=v,a/=256,l-=8);n[o+_-v]|=C*128};/*!
1
+ var wc={},Ci={};Ci.byteLength=ld;Ci.toByteArray=fd;Ci.fromByteArray=md;var lt=[],He=[],cd=typeof Uint8Array<"u"?Uint8Array:Array,Ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var or=0,ud=Ui.length;or<ud;++or)lt[or]=Ui[or],He[Ui.charCodeAt(or)]=or;He[45]=62;He[95]=63;function Sc(n){var t=n.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=n.indexOf("=");o===-1&&(o=t);var r=o===t?0:4-o%4;return[o,r]}function ld(n){var t=Sc(n),o=t[0],r=t[1];return(o+r)*3/4-r}function dd(n,t,o){return(t+o)*3/4-o}function fd(n){var t,o=Sc(n),r=o[0],e=o[1],i=new cd(dd(n,r,e)),a=0,s=e>0?r-4:r,c;for(c=0;c<s;c+=4)t=He[n.charCodeAt(c)]<<18|He[n.charCodeAt(c+1)]<<12|He[n.charCodeAt(c+2)]<<6|He[n.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return e===2&&(t=He[n.charCodeAt(c)]<<2|He[n.charCodeAt(c+1)]>>4,i[a++]=t&255),e===1&&(t=He[n.charCodeAt(c)]<<10|He[n.charCodeAt(c+1)]<<4|He[n.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function hd(n){return lt[n>>18&63]+lt[n>>12&63]+lt[n>>6&63]+lt[n&63]}function pd(n,t,o){for(var r,e=[],i=t;i<o;i+=3)r=(n[i]<<16&16711680)+(n[i+1]<<8&65280)+(n[i+2]&255),e.push(hd(r));return e.join("")}function md(n){for(var t,o=n.length,r=o%3,e=[],i=16383,a=0,s=o-r;a<s;a+=i)e.push(pd(n,a,a+i>s?s:a+i));return r===1?(t=n[o-1],e.push(lt[t>>2]+lt[t<<4&63]+"==")):r===2&&(t=(n[o-2]<<8)+n[o-1],e.push(lt[t>>10]+lt[t>>4&63]+lt[t<<2&63]+"=")),e.join("")}var aa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */aa.read=function(n,t,o,r,e){var i,a,s=e*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=o?e-1:0,h=o?-1:1,_=n[t+d];for(d+=h,i=_&(1<<-u)-1,_>>=-u,u+=s;u>0;i=i*256+n[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=a*256+n[t+d],d+=h,u-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(_?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-l}return(_?-1:1)*a*Math.pow(2,i-r)};aa.write=function(n,t,o,r,e,i){var a,s,c,l=i*8-e-1,u=(1<<l)-1,d=u>>1,h=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=r?0:i-1,v=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=h/c:t+=h*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,e),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,e),a=0));e>=8;n[o+_]=s&255,_+=v,s/=256,e-=8);for(a=a<<e|s,l+=e;l>0;n[o+_]=a&255,_+=v,a/=256,l-=8);n[o+_-v]|=C*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */(function(n){const t=Ci,o=aa,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=T,n.INSPECT_MAX_BYTES=50;const e=2147483647;n.kMaxLength=e;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:s}=globalThis;u.TYPED_ARRAY_SUPPORT=c(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const y=new i(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,i.prototype),Object.setPrototypeOf(y,f),y.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(y){if(y>e)throw new RangeError('The value "'+y+'" is invalid for option "size"');const f=new i(y);return Object.setPrototypeOf(f,u.prototype),f}function u(y,f,p){if(typeof y=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(y)}return d(y,f,p)}u.poolSize=8192;function d(y,f,p){if(typeof y=="string")return C(y,f);if(a.isView(y))return b(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(Ie(y,a)||y&&Ie(y.buffer,a)||typeof s<"u"&&(Ie(y,s)||y&&Ie(y.buffer,s)))return w(y,f,p);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const k=y.valueOf&&y.valueOf();if(k!=null&&k!==y)return u.from(k,f,p);const A=S(y);if(A)return A;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return u.from(y[Symbol.toPrimitive]("string"),f,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}u.from=function(y,f,p){return d(y,f,p)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function h(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function _(y,f,p){return h(y),y<=0?l(y):f!==void 0?typeof p=="string"?l(y).fill(f,p):l(y).fill(f):l(y)}u.alloc=function(y,f,p){return _(y,f,p)};function v(y){return h(y),l(y<0?0:R(y)|0)}u.allocUnsafe=function(y){return v(y)},u.allocUnsafeSlow=function(y){return v(y)};function C(y,f){if((typeof f!="string"||f==="")&&(f="utf8"),!u.isEncoding(f))throw new TypeError("Unknown encoding: "+f);const p=I(y,f)|0;let k=l(p);const A=k.write(y,f);return A!==p&&(k=k.slice(0,A)),k}function g(y){const f=y.length<0?0:R(y.length)|0,p=l(f);for(let k=0;k<f;k+=1)p[k]=y[k]&255;return p}function b(y){if(Ie(y,i)){const f=new i(y);return w(f.buffer,f.byteOffset,f.byteLength)}return g(y)}function w(y,f,p){if(f<0||y.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<f+(p||0))throw new RangeError('"length" is outside of buffer bounds');let k;return f===void 0&&p===void 0?k=new i(y):p===void 0?k=new i(y,f):k=new i(y,f,p),Object.setPrototypeOf(k,u.prototype),k}function S(y){if(u.isBuffer(y)){const f=R(y.length)|0,p=l(f);return p.length===0||y.copy(p,0,0,f),p}if(y.length!==void 0)return typeof y.length!="number"||Xe(y.length)?l(0):g(y);if(y.type==="Buffer"&&Array.isArray(y.data))return g(y.data)}function R(y){if(y>=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+" bytes");return y|0}function T(y){return+y!=y&&(y=0),u.alloc(+y)}u.isBuffer=function(f){return f!=null&&f._isBuffer===!0&&f!==u.prototype},u.compare=function(f,p){if(Ie(f,i)&&(f=u.from(f,f.offset,f.byteLength)),Ie(p,i)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(f)||!u.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===p)return 0;let k=f.length,A=p.length;for(let E=0,P=Math.min(k,A);E<P;++E)if(f[E]!==p[E]){k=f[E],A=p[E];break}return k<A?-1:A<k?1:0},u.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(f,p){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(f.length===0)return u.alloc(0);let k;if(p===void 0)for(p=0,k=0;k<f.length;++k)p+=f[k].length;const A=u.allocUnsafe(p);let E=0;for(k=0;k<f.length;++k){let P=f[k];if(Ie(P,i))E+P.length>A.length?(u.isBuffer(P)||(P=u.from(P)),P.copy(A,E)):i.prototype.set.call(A,P,E);else if(u.isBuffer(P))P.copy(A,E);else throw new TypeError('"list" argument must be an Array of Buffers');E+=P.length}return A};function I(y,f){if(u.isBuffer(y))return y.length;if(a.isView(y)||Ie(y,a))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const p=y.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&p===0)return 0;let A=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ze(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Tr(y).length;default:if(A)return k?-1:ze(y).length;f=(""+f).toLowerCase(),A=!0}}u.byteLength=I;function M(y,f,p){let k=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,f>>>=0,p<=f))return"";for(y||(y="utf8");;)switch(y){case"hex":return qe(this,f,p);case"utf8":case"utf-8":return Pe(this,f,p);case"ascii":return Le(this,f,p);case"latin1":case"binary":return mt(this,f,p);case"base64":return Ne(this,f,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,f,p);default:if(k)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),k=!0}}u.prototype._isBuffer=!0;function O(y,f,p){const k=y[f];y[f]=y[p],y[p]=k}u.prototype.swap16=function(){const f=this.length;if(f%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<f;p+=2)O(this,p,p+1);return this},u.prototype.swap32=function(){const f=this.length;if(f%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<f;p+=4)O(this,p,p+3),O(this,p+1,p+2);return this},u.prototype.swap64=function(){const f=this.length;if(f%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<f;p+=8)O(this,p,p+7),O(this,p+1,p+6),O(this,p+2,p+5),O(this,p+3,p+4);return this},u.prototype.toString=function(){const f=this.length;return f===0?"":arguments.length===0?Pe(this,0,f):M.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(f){if(!u.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f?!0:u.compare(this,f)===0},u.prototype.inspect=function(){let f="";const p=n.INSPECT_MAX_BYTES;return f=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(f+=" ... "),"<Buffer "+f+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(f,p,k,A,E){if(Ie(f,i)&&(f=u.from(f,f.offset,f.byteLength)),!u.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(p===void 0&&(p=0),k===void 0&&(k=f?f.length:0),A===void 0&&(A=0),E===void 0&&(E=this.length),p<0||k>f.length||A<0||E>this.length)throw new RangeError("out of range index");if(A>=E&&p>=k)return 0;if(A>=E)return-1;if(p>=k)return 1;if(p>>>=0,k>>>=0,A>>>=0,E>>>=0,this===f)return 0;let P=E-A,D=k-p;const V=Math.min(P,D),le=this.slice(A,E),_e=f.slice(p,k);for(let ae=0;ae<V;++ae)if(le[ae]!==_e[ae]){P=le[ae],D=_e[ae];break}return P<D?-1:D<P?1:0};function N(y,f,p,k,A){if(y.length===0)return-1;if(typeof p=="string"?(k=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,Xe(p)&&(p=A?0:y.length-1),p<0&&(p=y.length+p),p>=y.length){if(A)return-1;p=y.length-1}else if(p<0)if(A)p=0;else return-1;if(typeof f=="string"&&(f=u.from(f,k)),u.isBuffer(f))return f.length===0?-1:F(y,f,p,k,A);if(typeof f=="number")return f=f&255,typeof i.prototype.indexOf=="function"?A?i.prototype.indexOf.call(y,f,p):i.prototype.lastIndexOf.call(y,f,p):F(y,[f],p,k,A);throw new TypeError("val must be string, number or Buffer")}function F(y,f,p,k,A){let E=1,P=y.length,D=f.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(y.length<2||f.length<2)return-1;E=2,P/=2,D/=2,p/=2}function V(_e,ae){return E===1?_e[ae]:_e.readUInt16BE(ae*E)}let le;if(A){let _e=-1;for(le=p;le<P;le++)if(V(y,le)===V(f,_e===-1?0:le-_e)){if(_e===-1&&(_e=le),le-_e+1===D)return _e*E}else _e!==-1&&(le-=le-_e),_e=-1}else for(p+D>P&&(p=P-D),le=p;le>=0;le--){let _e=!0;for(let ae=0;ae<D;ae++)if(V(y,le+ae)!==V(f,ae)){_e=!1;break}if(_e)return le}return-1}u.prototype.includes=function(f,p,k){return this.indexOf(f,p,k)!==-1},u.prototype.indexOf=function(f,p,k){return N(this,f,p,k,!0)},u.prototype.lastIndexOf=function(f,p,k){return N(this,f,p,k,!1)};function $(y,f,p,k){p=Number(p)||0;const A=y.length-p;k?(k=Number(k),k>A&&(k=A)):k=A;const E=f.length;k>E/2&&(k=E/2);let P;for(P=0;P<k;++P){const D=parseInt(f.substr(P*2,2),16);if(Xe(D))return P;y[p+P]=D}return P}function z(y,f,p,k){return nr(ze(f,y.length-p),y,p,k)}function ee(y,f,p,k){return nr(gt(f),y,p,k)}function Te(y,f,p,k){return nr(Tr(f),y,p,k)}function te(y,f,p,k){return nr(fn(f,y.length-p),y,p,k)}u.prototype.write=function(f,p,k,A){if(p===void 0)A="utf8",k=this.length,p=0;else if(k===void 0&&typeof p=="string")A=p,k=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(k)?(k=k>>>0,A===void 0&&(A="utf8")):(A=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const E=this.length-p;if((k===void 0||k>E)&&(k=E),f.length>0&&(k<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");let P=!1;for(;;)switch(A){case"hex":return $(this,f,p,k);case"utf8":case"utf-8":return z(this,f,p,k);case"ascii":case"latin1":case"binary":return ee(this,f,p,k);case"base64":return Te(this,f,p,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,f,p,k);default:if(P)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),P=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ne(y,f,p){return f===0&&p===y.length?t.fromByteArray(y):t.fromByteArray(y.slice(f,p))}function Pe(y,f,p){p=Math.min(y.length,p);const k=[];let A=f;for(;A<p;){const E=y[A];let P=null,D=E>239?4:E>223?3:E>191?2:1;if(A+D<=p){let V,le,_e,ae;switch(D){case 1:E<128&&(P=E);break;case 2:V=y[A+1],(V&192)===128&&(ae=(E&31)<<6|V&63,ae>127&&(P=ae));break;case 3:V=y[A+1],le=y[A+2],(V&192)===128&&(le&192)===128&&(ae=(E&15)<<12|(V&63)<<6|le&63,ae>2047&&(ae<55296||ae>57343)&&(P=ae));break;case 4:V=y[A+1],le=y[A+2],_e=y[A+3],(V&192)===128&&(le&192)===128&&(_e&192)===128&&(ae=(E&15)<<18|(V&63)<<12|(le&63)<<6|_e&63,ae>65535&&ae<1114112&&(P=ae))}}P===null?(P=65533,D=1):P>65535&&(P-=65536,k.push(P>>>10&1023|55296),P=56320|P&1023),k.push(P),A+=D}return Ee(k)}const ue=4096;function Ee(y){const f=y.length;if(f<=ue)return String.fromCharCode.apply(String,y);let p="",k=0;for(;k<f;)p+=String.fromCharCode.apply(String,y.slice(k,k+=ue));return p}function Le(y,f,p){let k="";p=Math.min(y.length,p);for(let A=f;A<p;++A)k+=String.fromCharCode(y[A]&127);return k}function mt(y,f,p){let k="";p=Math.min(y.length,p);for(let A=f;A<p;++A)k+=String.fromCharCode(y[A]);return k}function qe(y,f,p){const k=y.length;(!f||f<0)&&(f=0),(!p||p<0||p>k)&&(p=k);let A="";for(let E=f;E<p;++E)A+=Fi[y[E]];return A}function xt(y,f,p){const k=y.slice(f,p);let A="";for(let E=0;E<k.length-1;E+=2)A+=String.fromCharCode(k[E]+k[E+1]*256);return A}u.prototype.slice=function(f,p){const k=this.length;f=~~f,p=p===void 0?k:~~p,f<0?(f+=k,f<0&&(f=0)):f>k&&(f=k),p<0?(p+=k,p<0&&(p=0)):p>k&&(p=k),p<f&&(p=f);const A=this.subarray(f,p);return Object.setPrototypeOf(A,u.prototype),A};function oe(y,f,p){if(y%1!==0||y<0)throw new RangeError("offset is not uint");if(y+f>p)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(f,p,k){f=f>>>0,p=p>>>0,k||oe(f,p,this.length);let A=this[f],E=1,P=0;for(;++P<p&&(E*=256);)A+=this[f+P]*E;return A},u.prototype.readUintBE=u.prototype.readUIntBE=function(f,p,k){f=f>>>0,p=p>>>0,k||oe(f,p,this.length);let A=this[f+--p],E=1;for(;p>0&&(E*=256);)A+=this[f+--p]*E;return A},u.prototype.readUint8=u.prototype.readUInt8=function(f,p){return f=f>>>0,p||oe(f,1,this.length),this[f]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(f,p){return f=f>>>0,p||oe(f,2,this.length),this[f]|this[f+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(f,p){return f=f>>>0,p||oe(f,2,this.length),this[f]<<8|this[f+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+this[f+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),this[f]*16777216+(this[f+1]<<16|this[f+2]<<8|this[f+3])},u.prototype.readBigUInt64LE=Qe(function(f){f=f>>>0,je(f,"offset");const p=this[f],k=this[f+7];(p===void 0||k===void 0)&&Ke(f,this.length-8);const A=p+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24,E=this[++f]+this[++f]*2**8+this[++f]*2**16+k*2**24;return BigInt(A)+(BigInt(E)<<BigInt(32))}),u.prototype.readBigUInt64BE=Qe(function(f){f=f>>>0,je(f,"offset");const p=this[f],k=this[f+7];(p===void 0||k===void 0)&&Ke(f,this.length-8);const A=p*2**24+this[++f]*2**16+this[++f]*2**8+this[++f],E=this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+k;return(BigInt(A)<<BigInt(32))+BigInt(E)}),u.prototype.readIntLE=function(f,p,k){f=f>>>0,p=p>>>0,k||oe(f,p,this.length);let A=this[f],E=1,P=0;for(;++P<p&&(E*=256);)A+=this[f+P]*E;return E*=128,A>=E&&(A-=Math.pow(2,8*p)),A},u.prototype.readIntBE=function(f,p,k){f=f>>>0,p=p>>>0,k||oe(f,p,this.length);let A=p,E=1,P=this[f+--A];for(;A>0&&(E*=256);)P+=this[f+--A]*E;return E*=128,P>=E&&(P-=Math.pow(2,8*p)),P},u.prototype.readInt8=function(f,p){return f=f>>>0,p||oe(f,1,this.length),this[f]&128?(255-this[f]+1)*-1:this[f]},u.prototype.readInt16LE=function(f,p){f=f>>>0,p||oe(f,2,this.length);const k=this[f]|this[f+1]<<8;return k&32768?k|4294901760:k},u.prototype.readInt16BE=function(f,p){f=f>>>0,p||oe(f,2,this.length);const k=this[f+1]|this[f]<<8;return k&32768?k|4294901760:k},u.prototype.readInt32LE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},u.prototype.readInt32BE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},u.prototype.readBigInt64LE=Qe(function(f){f=f>>>0,je(f,"offset");const p=this[f],k=this[f+7];(p===void 0||k===void 0)&&Ke(f,this.length-8);const A=this[f+4]+this[f+5]*2**8+this[f+6]*2**16+(k<<24);return(BigInt(A)<<BigInt(32))+BigInt(p+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24)}),u.prototype.readBigInt64BE=Qe(function(f){f=f>>>0,je(f,"offset");const p=this[f],k=this[f+7];(p===void 0||k===void 0)&&Ke(f,this.length-8);const A=(p<<24)+this[++f]*2**16+this[++f]*2**8+this[++f];return(BigInt(A)<<BigInt(32))+BigInt(this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+k)}),u.prototype.readFloatLE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),o.read(this,f,!0,23,4)},u.prototype.readFloatBE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),o.read(this,f,!1,23,4)},u.prototype.readDoubleLE=function(f,p){return f=f>>>0,p||oe(f,8,this.length),o.read(this,f,!0,52,8)},u.prototype.readDoubleBE=function(f,p){return f=f>>>0,p||oe(f,8,this.length),o.read(this,f,!1,52,8)};function ye(y,f,p,k,A,E){if(!u.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>A||f<E)throw new RangeError('"value" argument is out of bounds');if(p+k>y.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(f,p,k,A){if(f=+f,p=p>>>0,k=k>>>0,!A){const D=Math.pow(2,8*k)-1;ye(this,f,p,k,D,0)}let E=1,P=0;for(this[p]=f&255;++P<k&&(E*=256);)this[p+P]=f/E&255;return p+k},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(f,p,k,A){if(f=+f,p=p>>>0,k=k>>>0,!A){const D=Math.pow(2,8*k)-1;ye(this,f,p,k,D,0)}let E=k-1,P=1;for(this[p+E]=f&255;--E>=0&&(P*=256);)this[p+E]=f/P&255;return p+k},u.prototype.writeUint8=u.prototype.writeUInt8=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,1,255,0),this[p]=f&255,p+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,2,65535,0),this[p]=f&255,this[p+1]=f>>>8,p+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,2,65535,0),this[p]=f>>>8,this[p+1]=f&255,p+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,4,4294967295,0),this[p+3]=f>>>24,this[p+2]=f>>>16,this[p+1]=f>>>8,this[p]=f&255,p+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,4,4294967295,0),this[p]=f>>>24,this[p+1]=f>>>16,this[p+2]=f>>>8,this[p+3]=f&255,p+4};function re(y,f,p,k,A){at(f,k,A,y,p,7);let E=Number(f&BigInt(4294967295));y[p++]=E,E=E>>8,y[p++]=E,E=E>>8,y[p++]=E,E=E>>8,y[p++]=E;let P=Number(f>>BigInt(32)&BigInt(4294967295));return y[p++]=P,P=P>>8,y[p++]=P,P=P>>8,y[p++]=P,P=P>>8,y[p++]=P,p}function nt(y,f,p,k,A){at(f,k,A,y,p,7);let E=Number(f&BigInt(4294967295));y[p+7]=E,E=E>>8,y[p+6]=E,E=E>>8,y[p+5]=E,E=E>>8,y[p+4]=E;let P=Number(f>>BigInt(32)&BigInt(4294967295));return y[p+3]=P,P=P>>8,y[p+2]=P,P=P>>8,y[p+1]=P,P=P>>8,y[p]=P,p+8}u.prototype.writeBigUInt64LE=Qe(function(f,p=0){return re(this,f,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Qe(function(f,p=0){return nt(this,f,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(f,p,k,A){if(f=+f,p=p>>>0,!A){const V=Math.pow(2,8*k-1);ye(this,f,p,k,V-1,-V)}let E=0,P=1,D=0;for(this[p]=f&255;++E<k&&(P*=256);)f<0&&D===0&&this[p+E-1]!==0&&(D=1),this[p+E]=(f/P>>0)-D&255;return p+k},u.prototype.writeIntBE=function(f,p,k,A){if(f=+f,p=p>>>0,!A){const V=Math.pow(2,8*k-1);ye(this,f,p,k,V-1,-V)}let E=k-1,P=1,D=0;for(this[p+E]=f&255;--E>=0&&(P*=256);)f<0&&D===0&&this[p+E+1]!==0&&(D=1),this[p+E]=(f/P>>0)-D&255;return p+k},u.prototype.writeInt8=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,1,127,-128),f<0&&(f=255+f+1),this[p]=f&255,p+1},u.prototype.writeInt16LE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,2,32767,-32768),this[p]=f&255,this[p+1]=f>>>8,p+2},u.prototype.writeInt16BE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,2,32767,-32768),this[p]=f>>>8,this[p+1]=f&255,p+2},u.prototype.writeInt32LE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,4,2147483647,-2147483648),this[p]=f&255,this[p+1]=f>>>8,this[p+2]=f>>>16,this[p+3]=f>>>24,p+4},u.prototype.writeInt32BE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[p]=f>>>24,this[p+1]=f>>>16,this[p+2]=f>>>8,this[p+3]=f&255,p+4},u.prototype.writeBigInt64LE=Qe(function(f,p=0){return re(this,f,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Qe(function(f,p=0){return nt(this,f,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function it(y,f,p,k,A,E){if(p+k>y.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function _t(y,f,p,k,A){return f=+f,p=p>>>0,A||it(y,f,p,4),o.write(y,f,p,k,23,4),p+4}u.prototype.writeFloatLE=function(f,p,k){return _t(this,f,p,!0,k)},u.prototype.writeFloatBE=function(f,p,k){return _t(this,f,p,!1,k)};function Tt(y,f,p,k,A){return f=+f,p=p>>>0,A||it(y,f,p,8),o.write(y,f,p,k,52,8),p+8}u.prototype.writeDoubleLE=function(f,p,k){return Tt(this,f,p,!0,k)},u.prototype.writeDoubleBE=function(f,p,k){return Tt(this,f,p,!1,k)},u.prototype.copy=function(f,p,k,A){if(!u.isBuffer(f))throw new TypeError("argument should be a Buffer");if(k||(k=0),!A&&A!==0&&(A=this.length),p>=f.length&&(p=f.length),p||(p=0),A>0&&A<k&&(A=k),A===k||f.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),f.length-p<A-k&&(A=f.length-p+k);const E=A-k;return this===f&&typeof i.prototype.copyWithin=="function"?this.copyWithin(p,k,A):i.prototype.set.call(f,this.subarray(k,A),p),E},u.prototype.fill=function(f,p,k,A){if(typeof f=="string"){if(typeof p=="string"?(A=p,p=0,k=this.length):typeof k=="string"&&(A=k,k=this.length),A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!u.isEncoding(A))throw new TypeError("Unknown encoding: "+A);if(f.length===1){const P=f.charCodeAt(0);(A==="utf8"&&P<128||A==="latin1")&&(f=P)}}else typeof f=="number"?f=f&255:typeof f=="boolean"&&(f=Number(f));if(p<0||this.length<p||this.length<k)throw new RangeError("Out of range index");if(k<=p)return this;p=p>>>0,k=k===void 0?this.length:k>>>0,f||(f=0);let E;if(typeof f=="number")for(E=p;E<k;++E)this[E]=f;else{const P=u.isBuffer(f)?f:u.from(f,A),D=P.length;if(D===0)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(E=0;E<k-p;++E)this[E+p]=P[E%D]}return this};const Ge={};function Wt(y,f,p){Ge[y]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:f.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${y}]`,this.stack,delete this.name}get code(){return y}set code(A){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:A,writable:!0})}toString(){return`${this.name} [${y}]: ${this.message}`}}}Wt("ERR_BUFFER_OUT_OF_BOUNDS",function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Wt("ERR_INVALID_ARG_TYPE",function(y,f){return`The "${y}" argument must be of type number. Received type ${typeof f}`},TypeError),Wt("ERR_OUT_OF_RANGE",function(y,f,p){let k=`The value of "${y}" is out of range.`,A=p;return Number.isInteger(p)&&Math.abs(p)>2**32?A=Ht(String(p)):typeof p=="bigint"&&(A=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(A=Ht(A)),A+="n"),k+=` It must be ${f}. Received ${A}`,k},RangeError);function Ht(y){let f="",p=y.length;const k=y[0]==="-"?1:0;for(;p>=k+4;p-=3)f=`_${y.slice(p-3,p)}${f}`;return`${y.slice(0,p)}${f}`}function ot(y,f,p){je(f,"offset"),(y[f]===void 0||y[f+p]===void 0)&&Ke(f,y.length-(p+1))}function at(y,f,p,k,A,E){if(y>p||y<f){const P=typeof f=="bigint"?"n":"";let D;throw f===0||f===BigInt(0)?D=`>= 0${P} and < 2${P} ** ${(E+1)*8}${P}`:D=`>= -(2${P} ** ${(E+1)*8-1}${P}) and < 2 ** ${(E+1)*8-1}${P}`,new Ge.ERR_OUT_OF_RANGE("value",D,y)}ot(k,A,E)}function je(y,f){if(typeof y!="number")throw new Ge.ERR_INVALID_ARG_TYPE(f,"number",y)}function Ke(y,f,p){throw Math.floor(y)!==y?(je(y,p),new Ge.ERR_OUT_OF_RANGE("offset","an integer",y)):f<0?new Ge.ERR_BUFFER_OUT_OF_BOUNDS:new Ge.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${f}`,y)}const Pt=/[^+/0-9A-Za-z-_]/g;function vt(y){if(y=y.split("=")[0],y=y.trim().replace(Pt,""),y.length<2)return"";for(;y.length%4!==0;)y=y+"=";return y}function ze(y,f){f=f||1/0;let p;const k=y.length;let A=null;const E=[];for(let P=0;P<k;++P){if(p=y.charCodeAt(P),p>55295&&p<57344){if(!A){if(p>56319){(f-=3)>-1&&E.push(239,191,189);continue}else if(P+1===k){(f-=3)>-1&&E.push(239,191,189);continue}A=p;continue}if(p<56320){(f-=3)>-1&&E.push(239,191,189),A=p;continue}p=(A-55296<<10|p-56320)+65536}else A&&(f-=3)>-1&&E.push(239,191,189);if(A=null,p<128){if((f-=1)<0)break;E.push(p)}else if(p<2048){if((f-=2)<0)break;E.push(p>>6|192,p&63|128)}else if(p<65536){if((f-=3)<0)break;E.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((f-=4)<0)break;E.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return E}function gt(y){const f=[];for(let p=0;p<y.length;++p)f.push(y.charCodeAt(p)&255);return f}function fn(y,f){let p,k,A;const E=[];for(let P=0;P<y.length&&!((f-=2)<0);++P)p=y.charCodeAt(P),k=p>>8,A=p%256,E.push(A),E.push(k);return E}function Tr(y){return t.toByteArray(vt(y))}function nr(y,f,p,k){let A;for(A=0;A<k&&!(A+p>=f.length||A>=y.length);++A)f[A+p]=y[A];return A}function Ie(y,f){return y instanceof f||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===f.name}function Xe(y){return y!==y}const Fi=function(){const y="0123456789abcdef",f=new Array(256);for(let p=0;p<16;++p){const k=p*16;for(let A=0;A<16;++A)f[k+A]=y[p]+y[A]}return f}();function Qe(y){return typeof BigInt>"u"?hn:y}function hn(){throw new Error("BigInt not supported")}})(wc);const Dt=wc.Buffer;var Wn={},B;if(typeof window>"u"){var Ja={hostname:""};B={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ja,referrer:""},screen:{width:0,height:0},location:Ja,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else B=window;function Za(n,t){(t==null||t>n.length)&&(t=n.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=n[o];return r}function Ka(n,t,o,r,e,i,a){try{var s=n[i](a),c=s.value}catch(l){o(l);return}s.done?t(c):Promise.resolve(c).then(r,e)}function sa(n){return function(){var t=this,o=arguments;return new Promise(function(r,e){var i=n.apply(t,o);function a(c){Ka(i,r,e,a,s,"next",c)}function s(c){Ka(i,r,e,a,s,"throw",c)}a(void 0)})}}function Un(n,t,o){return Ac()?Un=Reflect.construct:Un=function(e,i,a){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(e,s),l=new c;return a&&qr(l,a.prototype),l},Un.apply(null,arguments)}function _d(n,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Oe(n,t,o){return t&&_d(n.prototype,t),n}function ie(){return ie=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},ie.apply(this,arguments)}function lo(n){return lo=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},lo(n)}function De(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&qr(n,t)}function j(n,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t}function vd(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function zr(n,t){if(n==null)return{};var o={},r=Object.keys(n),e,i;for(i=0;i<r.length;i++)e=r[i],!(t.indexOf(e)>=0)&&(o[e]=n[e]);return o}function qr(n,t){return qr=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r},qr(n,t)}function H(n){"@swc/helpers - typeof";return n&&typeof Symbol<"u"&&n.constructor===Symbol?"symbol":typeof n}function gd(n,t){if(n){if(typeof n=="string")return Za(n,t);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Za(n,t)}}function Hn(n){var t=typeof Map=="function"?new Map:void 0;return Hn=function(r){if(r===null||!vd(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,e)}function e(){return Un(r,arguments,lo(this).constructor)}return e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),qr(e,r)},Hn(n)}function Ac(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ac=function(){return!!n})()}function U(n,t){var o=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o)return(o=o.call(n)).next.bind(o);if(Array.isArray(n)||(o=gd(n))||t){o&&(n=o);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gr(n,t){var o,r,e,i,a={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return c([l,u])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(e=l[0]&2?r.return:l[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,l[1])).done)return e;switch(r=0,e&&(l=[l[0]&2,e.value]),l[0]){case 0:case 1:e=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(e=a.trys,!(e=e.length>0&&e[e.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!e||l[1]>e[0]&&l[1]<e[3])){a.label=l[1];break}if(l[0]===6&&a.label<e[1]){a.label=e[1],e=l;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(l);break}e[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(n,a)}catch(u){l=[6,u],r=0}finally{o=e=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ec(n){var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&n[t],r=0;if(o)return o.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var yd=Object.defineProperty,bd=function(n,t,o){return t in n?yd(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o},L=function(n,t,o){return bd(n,(typeof t>"u"?"undefined":H(t))!=="symbol"?t+"":t,o)},Xa,Cd=Object.defineProperty,kd=function(n,t,o){return t in n?Cd(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o},Qa=function(n,t,o){return kd(n,(typeof t>"u"?"undefined":H(t))!=="symbol"?t+"":t,o)},Re=function(n){return n[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment",n}(Re||{}),es={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ts={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pn={},wd=function(){return!!globalThis.Zone};function ca(n){if(pn[n])return pn[n];var t=globalThis[n],o=t.prototype,r=n in es?es[n]:void 0,e=!!(r&&r.every(function(u){var d,h;return!!((h=(d=Object.getOwnPropertyDescriptor(o,u))==null?void 0:d.get)!=null&&h.toString().includes("[native code]"))})),i=n in ts?ts[n]:void 0,a=!!(i&&i.every(function(u){var d;return typeof o[u]=="function"&&((d=o[u])==null?void 0:d.toString().includes("[native code]"))}));if(e&&a&&!wd())return pn[n]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[n].prototype;return document.body.removeChild(s),l?pn[n]=l:o}catch{return o}}var $i={};function Ft(n,t,o){var r,e=n+"."+String(o);if($i[e])return $i[e].call(t);var i=ca(n),a=(r=Object.getOwnPropertyDescriptor(i,o))==null?void 0:r.get;return a?($i[e]=a,a.call(t)):t[o]}var Vi={};function Rc(n,t,o){var r=n+"."+String(o);if(Vi[r])return Vi[r].bind(t);var e=ca(n),i=e[o];return typeof i!="function"?t[o]:(Vi[r]=i,i.bind(t))}function Sd(n){return Ft("Node",n,"childNodes")}function Ad(n){return Ft("Node",n,"parentNode")}function Ed(n){return Ft("Node",n,"parentElement")}function Rd(n){return Ft("Node",n,"textContent")}function xd(n,t){return Rc("Node",n,"contains")(t)}function Td(n){return Rc("Node",n,"getRootNode")()}function Pd(n){return!n||!("host"in n)?null:Ft("ShadowRoot",n,"host")}function Id(n){return n.styleSheets}function Od(n){return!n||!("shadowRoot"in n)?null:Ft("Element",n,"shadowRoot")}function Bd(n,t){return Ft("Element",n,"querySelector")(t)}function Md(n,t){return Ft("Element",n,"querySelectorAll")(t)}function Dd(){return ca("MutationObserver").constructor}function Nd(n,t,o){try{if(!(t in n))return function(){};var r=n[t],e=o(r);return typeof e=="function"&&(e.prototype=e.prototype||{},Object.defineProperties(e,{__rrweb_original__:{enumerable:!1,value:r}})),n[t]=e,function(){n[t]=r}}catch{return function(){}}}var Me={childNodes:Sd,parentNode:Ad,parentElement:Ed,textContent:Rd,contains:xd,getRootNode:Td,host:Pd,styleSheets:Id,shadowRoot:Od,querySelector:Bd,querySelectorAll:Md,mutationObserver:Dd,patch:Nd};function xc(n){return n.nodeType===n.ELEMENT_NODE}function Nr(n){var t=n&&"host"in n&&"mode"in n&&Me.host(n)||null;return!!(t&&"shadowRoot"in t&&Me.shadowRoot(t)===n)}function Lr(n){return Object.prototype.toString.call(n)==="[object ShadowRoot]"}function Ld(n){return n.includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}function Fd(n){var t=n.cssText;if(t.split('"').length<3)return t;var o=["@import","url("+JSON.stringify(n.href)+")"];return n.layerName===""?o.push("layer"):n.layerName&&o.push("layer("+n.layerName+")"),n.supportsText&&o.push("supports("+n.supportsText+")"),n.media.length&&o.push(n.media.mediaText),o.join(" ")+";"}function fo(n){try{var t=n.rules||n.cssRules;if(!t)return null;var o=n.href;!o&&n.ownerNode&&n.ownerNode.ownerDocument&&(o=n.ownerNode.ownerDocument.location.href);var r=Array.from(t,function(e){return Tc(e,o)}).join("");return Ld(r)}catch{return null}}function Tc(n,t){if($d(n)){var o;try{o=fo(n.styleSheet)||Fd(n)}catch{o=n.cssText}return n.styleSheet.href?Zn(o,n.styleSheet.href):o}else{var r=n.cssText;return Vd(n)&&n.selectorText.includes(":")&&(r=Ud(r)),t?Zn(r,t):r}}function Ud(n){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return n.replace(t,"$1\\$2")}function $d(n){return"styleSheet"in n}function Vd(n){return"selectorText"in n}var Pc=function(){function n(){Qa(this,"idNodeMap",new Map),Qa(this,"nodeMetaMap",new WeakMap)}var t=n.prototype;return t.getId=function(r){var e;if(!r)return-1;var i=(e=this.getMeta(r))==null?void 0:e.id;return i??-1},t.getNode=function(r){return this.idNodeMap.get(r)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(r){return this.nodeMetaMap.get(r)||null},t.removeNodeFromMap=function(r){var e=this,i=this.getId(r);this.idNodeMap.delete(i),r.childNodes&&r.childNodes.forEach(function(a){return e.removeNodeFromMap(a)})},t.has=function(r){return this.idNodeMap.has(r)},t.hasNode=function(r){return this.nodeMetaMap.has(r)},t.add=function(r,e){var i=e.id;this.idNodeMap.set(i,r),this.nodeMetaMap.set(r,e)},t.replace=function(r,e){var i=this.getNode(r);if(i){var a=this.nodeMetaMap.get(i);a&&this.nodeMetaMap.set(e,a)}this.idNodeMap.set(r,e)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},n}();function jd(){return new Pc}function Yn(n){var t=n.element,o=n.maskInputOptions,r=n.tagName,e=n.type,i=n.value,a=n.maskInputFn,s=i||"",c=e&&Zt(e);return(o[r.toLowerCase()]||c&&o[c])&&(a?s=a(s,t):s="*".repeat(s.length)),s}function Zt(n){return n.toLowerCase()}var rs="__rrweb_original__";function zd(n){var t=n.getContext("2d");if(!t)return!0;for(var o=50,r=0;r<n.width;r+=o)for(var e=0;e<n.height;e+=o){var i=t.getImageData,a=rs in i?i[rs]:i,s=new Uint32Array(a.call(t,r,e,Math.min(o,n.width-r),Math.min(o,n.height-e)).data.buffer);if(s.some(function(c){return c!==0}))return!1}return!0}function Jn(n){var t=n.type;return n.hasAttribute("data-rr-is-password")?"password":t?Zt(t):null}function Ic(n,t){var o;try{o=new URL(n,t??window.location.href)}catch{return null}var r=/\.([0-9a-z]+)(?:$)/i,e=o.pathname.match(r),i;return(i=e?.[1])!=null?i:null}function qd(n){var t="";return n.indexOf("//")>-1?t=n.split("/").slice(0,3).join("/"):t=n.split("/")[0],t=t.split("?")[0],t}var Gd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Wd=/^(?:[a-z+]+:)?\/\//i,Hd=/^www\..*/i,Yd=/^(data:)([^,]*),(.*)/i;function Zn(n,t){return(n||"").replace(Gd,function(o,r,e,i,a,s){var c=e||a||s,l=r||i||"";if(!c)return o;if(Wd.test(c)||Hd.test(c)||Yd.test(c))return"url("+l+c+l+")";if(c[0]==="/")return"url("+l+(qd(t)+c)+l+")";var u=t.split("/"),d=c.split("/");u.pop();for(var h=U(d),_;!(_=h()).done;){var v=_.value;v!=="."&&(v===".."?u.pop():u.push(v))}return"url("+l+u.join("/")+l+")"})}function mn(n,t){return t===void 0&&(t=!1),t?n.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):n.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Jd(n,t,o){o===void 0&&(o=!1);var r=Array.from(t.childNodes),e=[],i=0;if(r.length>1&&n&&typeof n=="string"){for(var a=mn(n,o),s=a.length/n.length,c=1;c<r.length;c++)if(r[c].textContent&&typeof r[c].textContent=="string"){for(var l=mn(r[c].textContent,o),u=100,d=3;d<l.length&&(l[d].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,d),1)!==-1);d++);for(;d<l.length;d++){var h=l.substring(0,d),_=a.split(h),v=-1;if(_.length===2)v=_[0].length;else if(_.length>2&&_[0]===""&&r[c-1].textContent!=="")v=a.indexOf(h,1);else if(_.length===1){if(h=h.substring(0,h.length-1),_=a.split(h),_.length<=1)return e.push(n),e;d=u+1}else d===l.length-1&&(v=a.indexOf(h));if(_.length>=2&&d>u){var C=r[c-1].textContent;if(C&&typeof C=="string"){var g=mn(C).length;v=a.indexOf(h,g)}v===-1&&(v=_[0].length)}if(v!==-1){for(var b=Math.floor(v/s);b>0&&b<n.length;){if(i+=1,i>50*r.length)return e.push(n),e;var w=mn(n.substring(0,b),o);if(w.length===v){e.push(n.substring(0,b)),n=n.substring(b),a=a.substring(v);break}else w.length<v?b+=Math.max(1,Math.floor((v-w.length)/s)):b-=Math.max(1,Math.floor((w.length-v)*s))}break}}}}return e.push(n),e}function Zd(n,t){return Jd(n,t).join("/* rr_split */")}var Kd=1,Xd=new RegExp("[^a-z0-9-_:]"),Wr=-2;function Oc(){return Kd++}function Qd(n){if(j(n,HTMLFormElement))return"form";var t=Zt(n.tagName);return Xd.test(t)?"div":t}var or,ns,ef=/^[^ \t\n\r\u000c]+/,tf=/^[, \t\n\r\u000c]+/;function rf(n,t){if(t.trim()==="")return t;var o=0;function r(l){var u,d=l.exec(t.substring(o));return d?(u=d[0],o+=u.length,u):""}for(var e=[];r(tf),!(o>=t.length);){var i=r(ef);if(i.slice(-1)===",")i=lr(n,i.substring(0,i.length-1)),e.push(i);else{var a="";i=lr(n,i);for(var s=!1;;){var c=t.charAt(o);if(c===""){e.push((i+a).trim());break}else if(s)c===")"&&(s=!1);else if(c===","){o+=1,e.push((i+a).trim());break}else c==="("&&(s=!0);a+=c,o+=1}}}return e.join(", ")}var is=new WeakMap;function lr(n,t){return!t||t.trim()===""?t:ua(n,t)}function nf(n){return!!(n.tagName==="svg"||n.ownerSVGElement)}function ua(n,t){var o=is.get(n);if(o||(o=n.createElement("a"),is.set(n,o)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return o.setAttribute("href",t),o.href}function Bc(n,t,o,r){return r&&(o==="src"||o==="href"&&!(t==="use"&&r[0]==="#")||o==="xlink:href"&&r[0]!=="#"||o==="background"&&(t==="table"||t==="td"||t==="th")?lr(n,r):o==="srcset"?rf(n,r):o==="style"?Zn(r,ua(n)):t==="object"&&o==="data"?lr(n,r):r)}function Mc(n,t,o){return(n==="video"||n==="audio")&&t==="autoplay"}function of(n,t,o){try{if(typeof t=="string"){if(n.classList.contains(t))return!0}else for(var r=n.classList.length;r--;){var e=n.classList[r];if(t.test(e))return!0}if(o)return n.matches(o)}catch{}return!1}function Kn(n,t,o){if(!n)return!1;if(n.nodeType!==n.ELEMENT_NODE)return o?Kn(Me.parentNode(n),t,o):!1;for(var r=n.classList.length;r--;){var e=n.classList[r];if(t.test(e))return!0}return o?Kn(Me.parentNode(n),t,o):!1}function Dc(n,t,o,r){var e;if(xc(n)){if(e=n,!Me.childNodes(e).length)return!1}else{if(Me.parentElement(n)===null)return!1;e=Me.parentElement(n)}try{if(typeof t=="string"){if(r){if(e.closest("."+t))return!0}else if(e.classList.contains(t))return!0}else if(Kn(e,t,r))return!0;if(o){if(r){if(e.closest(o))return!0}else if(e.matches(o))return!0}}catch{}return!1}function af(n,t,o){var r=n.contentWindow;if(r){var e=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){var a=setTimeout(function(){e||(t(),e=!0)},o);n.addEventListener("load",function(){clearTimeout(a),e=!0,t()});return}var s="about:blank";if(r.location.href!==s||n.src===s||n.src==="")return setTimeout(t,0),n.addEventListener("load",t);n.addEventListener("load",t)}}function sf(n,t,o){var r=!1,e;try{e=n.sheet}catch{return}if(!e){var i=setTimeout(function(){r||(t(),r=!0)},o);n.addEventListener("load",function(){clearTimeout(i),r=!0,t()})}}function cf(n,t){var o=t.doc,r=t.mirror,e=t.blockClass,i=t.blockSelector,a=t.needsMask,s=t.inlineStylesheet,c=t.maskInputOptions,l=c===void 0?{}:c,u=t.maskTextFn,d=t.maskInputFn,h=t.dataURLOptions,_=h===void 0?{}:h,v=t.inlineImages,C=t.recordCanvas,g=t.keepIframeSrcFn,b=t.newlyAddedElement,w=b===void 0?!1:b,S=t.cssCaptured,R=S===void 0?!1:S,T=uf(o,r);switch(n.nodeType){case n.DOCUMENT_NODE:return n.compatMode!=="CSS1Compat"?{type:Re.Document,childNodes:[],compatMode:n.compatMode}:{type:Re.Document,childNodes:[]};case n.DOCUMENT_TYPE_NODE:return{type:Re.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId,rootId:T};case n.ELEMENT_NODE:return df(n,{doc:o,blockClass:e,blockSelector:i,inlineStylesheet:s,maskInputOptions:l,maskInputFn:d,dataURLOptions:_,inlineImages:v,recordCanvas:C,keepIframeSrcFn:g,newlyAddedElement:w,rootId:T});case n.TEXT_NODE:return lf(n,{doc:o,needsMask:a,maskTextFn:u,rootId:T,cssCaptured:R});case n.CDATA_SECTION_NODE:return{type:Re.CDATA,textContent:"",rootId:T};case n.COMMENT_NODE:return{type:Re.Comment,textContent:Me.textContent(n)||"",rootId:T};default:return!1}}function uf(n,t){if(t.hasNode(n)){var o=t.getId(n);return o===1?void 0:o}}function lf(n,t){var o=t.needsMask,r=t.maskTextFn,e=t.rootId,i=t.cssCaptured,a=Me.parentNode(n),s=a&&a.tagName,c="",l=s==="STYLE"?!0:void 0,u=s==="SCRIPT"?!0:void 0;return u?c="SCRIPT_PLACEHOLDER":i||(c=Me.textContent(n),l&&c&&(c=Zn(c,ua(t.doc)))),!l&&!u&&c&&o&&(c=r?r(c,Me.parentElement(n)):c.replace(/[\S]/g,"*")),{type:Re.Text,textContent:c||"",rootId:e}}function df(n,t){for(var o=t.doc,r=t.blockClass,e=t.blockSelector,i=t.inlineStylesheet,a=t.maskInputOptions,s=a===void 0?{}:a,c=t.maskInputFn,l=t.dataURLOptions,u=l===void 0?{}:l,d=t.inlineImages,h=t.recordCanvas,_=t.keepIframeSrcFn,v=t.newlyAddedElement,C=v===void 0?!1:v,g=t.rootId,b=of(n,r,e),w=Qd(n),S={},R=n.attributes.length,T=0;T<R;T++){var I=n.attributes[T];Mc(w,I.name,I.value)||(S[I.name]=Bc(o,w,Zt(I.name),I.value))}if(w==="link"&&i){var M=Array.from(o.styleSheets).find(function(oe){return oe.href===n.href}),O=null;M&&(O=fo(M)),O&&(delete S.rel,delete S.href,S._cssText=O)}if(w==="style"&&n.sheet){var N=fo(n.sheet);N&&(n.childNodes.length>1&&(N=Zd(N,n)),S._cssText=N)}if(w==="input"||w==="textarea"||w==="select"){var F=n.value,$=n.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&F?S.value=Yn({element:n,type:Jn(n),tagName:w,value:F,maskInputOptions:s,maskInputFn:c}):$&&(S.checked=$)}if(w==="option"&&(n.selected&&!s.select?S.selected=!0:delete S.selected),w==="dialog"&&n.open&&(S.rr_open_mode=n.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(n.__context==="2d")zd(n)||(S.rr_dataURL=n.toDataURL(u.type,u.quality));else if(!("__context"in n)){var z=n.toDataURL(u.type,u.quality),ee=o.createElement("canvas");ee.width=n.width,ee.height=n.height;var Te=ee.toDataURL(u.type,u.quality);z!==Te&&(S.rr_dataURL=z)}}if(w==="img"&&d){or||(or=o.createElement("canvas"),ns=or.getContext("2d"));var te=n,Ne=te.currentSrc||te.getAttribute("src")||"<unknown-src>",Pe=te.crossOrigin,ue=function(){te.removeEventListener("load",ue);try{or.width=te.naturalWidth,or.height=te.naturalHeight,ns.drawImage(te,0,0),S.rr_dataURL=or.toDataURL(u.type,u.quality)}catch(oe){if(te.crossOrigin!=="anonymous"){te.crossOrigin="anonymous",te.complete&&te.naturalWidth!==0?ue():te.addEventListener("load",ue);return}else console.warn("Cannot inline img src="+Ne+"! Error: "+oe)}te.crossOrigin==="anonymous"&&(Pe?S.crossOrigin=Pe:te.removeAttribute("crossorigin"))};te.complete&&te.naturalWidth!==0?ue():te.addEventListener("load",ue)}if(w==="audio"||w==="video"){var Ee=S;Ee.rr_mediaState=n.paused?"paused":"played",Ee.rr_mediaCurrentTime=n.currentTime,Ee.rr_mediaPlaybackRate=n.playbackRate,Ee.rr_mediaMuted=n.muted,Ee.rr_mediaLoop=n.loop,Ee.rr_mediaVolume=n.volume}if(C||(n.scrollLeft&&(S.rr_scrollLeft=n.scrollLeft),n.scrollTop&&(S.rr_scrollTop=n.scrollTop)),b){var Le=n.getBoundingClientRect(),mt=Le.width,qe=Le.height;S={class:S.class,rr_width:""+mt+"px",rr_height:""+qe+"px"}}w==="iframe"&&!_(S.src)&&(n.contentDocument||(S.rr_src=S.src),delete S.src);var xt;try{customElements.get(w)&&(xt=!0)}catch{}return{type:Re.Element,tagName:w,attributes:S,childNodes:[],isSVG:nf(n)||void 0,needBlock:b,rootId:g,isCustom:xt}}function de(n){return n==null?"":n.toLowerCase()}function ff(n,t){if(t.comment&&n.type===Re.Comment)return!0;if(n.type===Re.Element){if(t.script&&(n.tagName==="script"||n.tagName==="link"&&(n.attributes.rel==="preload"&&n.attributes.as==="script"||n.attributes.rel==="modulepreload")||n.tagName==="link"&&n.attributes.rel==="prefetch"&&typeof n.attributes.href=="string"&&Ic(n.attributes.href)==="js"))return!0;if(t.headFavicon&&(n.tagName==="link"&&n.attributes.rel==="shortcut icon"||n.tagName==="meta"&&(de(n.attributes.name).match(/^msapplication-tile(image|color)$/)||de(n.attributes.name)==="application-name"||de(n.attributes.rel)==="icon"||de(n.attributes.rel)==="apple-touch-icon"||de(n.attributes.rel)==="shortcut icon")))return!0;if(n.tagName==="meta"){if(t.headMetaDescKeywords&&de(n.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(de(n.attributes.property).match(/^(og|twitter|fb):/)||de(n.attributes.name).match(/^(og|twitter):/)||de(n.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(de(n.attributes.name)==="robots"||de(n.attributes.name)==="googlebot"||de(n.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&n.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(de(n.attributes.name)==="author"||de(n.attributes.name)==="generator"||de(n.attributes.name)==="framework"||de(n.attributes.name)==="publisher"||de(n.attributes.name)==="progid"||de(n.attributes.property).match(/^article:/)||de(n.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(de(n.attributes.name)==="google-site-verification"||de(n.attributes.name)==="yandex-verification"||de(n.attributes.name)==="csrf-token"||de(n.attributes.name)==="p:domain_verify"||de(n.attributes.name)==="verify-v1"||de(n.attributes.name)==="verification"||de(n.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function dr(n,t){var o=t.doc,r=t.mirror,e=t.blockClass,i=t.blockSelector,a=t.maskTextClass,s=t.maskTextSelector,c=t.skipChild,l=c===void 0?!1:c,u=t.inlineStylesheet,d=u===void 0?!0:u,h=t.maskInputOptions,_=h===void 0?{}:h,v=t.maskTextFn,C=t.maskInputFn,g=t.slimDOMOptions,b=t.dataURLOptions,w=b===void 0?{}:b,S=t.inlineImages,R=S===void 0?!1:S,T=t.recordCanvas,I=T===void 0?!1:T,M=t.onSerialize,O=t.onIframeLoad,N=t.iframeLoadTimeout,F=N===void 0?5e3:N,$=t.onStylesheetLoad,z=t.stylesheetLoadTimeout,ee=z===void 0?5e3:z,Te=t.keepIframeSrcFn,te=Te===void 0?function(){return!1}:Te,Ne=t.newlyAddedElement,Pe=Ne===void 0?!1:Ne,ue=t.cssCaptured,Ee=ue===void 0?!1:ue,Le=t.needsMask,mt=t.preserveWhiteSpace,qe=mt===void 0?!0:mt;if(!Le){var xt=Le===void 0;Le=Dc(n,a,s,xt)}var oe=cf(n,{doc:o,mirror:r,blockClass:e,blockSelector:i,needsMask:Le,inlineStylesheet:d,maskInputOptions:_,maskTextFn:v,maskInputFn:C,dataURLOptions:w,inlineImages:R,recordCanvas:I,keepIframeSrcFn:te,newlyAddedElement:Pe,cssCaptured:Ee});if(!oe)return console.warn(n,"not serialized"),null;var ye;r.hasNode(n)?ye=r.getId(n):ff(oe,g)||!qe&&oe.type===Re.Text&&!oe.textContent.replace(/^\s+|\s+$/gm,"").length?ye=Wr:ye=Oc();var re=Object.assign(oe,{id:ye});if(r.add(n,re),ye===Wr)return null;M&&M(n);var nt=!l;if(re.type===Re.Element){nt=nt&&!re.needBlock,delete re.needBlock;var it=Me.shadowRoot(n);it&&Lr(it)&&(re.isShadowHost=!0)}if((re.type===Re.Document||re.type===Re.Element)&&nt){g.headWhitespace&&re.type===Re.Element&&re.tagName==="head"&&(qe=!1);var _t={doc:o,mirror:r,blockClass:e,blockSelector:i,needsMask:Le,maskTextClass:a,maskTextSelector:s,skipChild:l,inlineStylesheet:d,maskInputOptions:_,maskTextFn:v,maskInputFn:C,slimDOMOptions:g,dataURLOptions:w,inlineImages:R,recordCanvas:I,preserveWhiteSpace:qe,onSerialize:M,onIframeLoad:O,iframeLoadTimeout:F,onStylesheetLoad:$,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,cssCaptured:!1};if(!(re.type===Re.Element&&re.tagName==="textarea"&&re.attributes.value!==void 0)){re.type===Re.Element&&re.attributes._cssText!==void 0&&typeof re.attributes._cssText=="string"&&(_t.cssCaptured=!0);for(var Tt=U(Array.from(Me.childNodes(n))),Ge;!(Ge=Tt()).done;){var Wt=Ge.value,Ht=dr(Wt,_t);Ht&&re.childNodes.push(Ht)}}var ot=null;if(xc(n)&&(ot=Me.shadowRoot(n)))for(var at=U(Array.from(Me.childNodes(ot))),je;!(je=at()).done;){var Ke=je.value,Pt=dr(Ke,_t);Pt&&(Lr(ot)&&(Pt.isShadow=!0),re.childNodes.push(Pt))}}var vt=Me.parentNode(n);return vt&&Nr(vt)&&Lr(vt)&&(re.isShadow=!0),re.type===Re.Element&&re.tagName==="iframe"&&af(n,function(){var ze=n.contentDocument;if(ze&&O){var gt=dr(ze,{doc:ze,mirror:r,blockClass:e,blockSelector:i,needsMask:Le,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:_,maskTextFn:v,maskInputFn:C,slimDOMOptions:g,dataURLOptions:w,inlineImages:R,recordCanvas:I,preserveWhiteSpace:qe,onSerialize:M,onIframeLoad:O,iframeLoadTimeout:F,onStylesheetLoad:$,stylesheetLoadTimeout:ee,keepIframeSrcFn:te});gt&&O(n,gt)}},F),re.type===Re.Element&&re.tagName==="link"&&typeof re.attributes.rel=="string"&&(re.attributes.rel==="stylesheet"||re.attributes.rel==="preload"&&typeof re.attributes.href=="string"&&Ic(re.attributes.href)==="css")&&sf(n,function(){if($){var ze=dr(n,{doc:o,mirror:r,blockClass:e,blockSelector:i,needsMask:Le,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:_,maskTextFn:v,maskInputFn:C,slimDOMOptions:g,dataURLOptions:w,inlineImages:R,recordCanvas:I,preserveWhiteSpace:qe,onSerialize:M,onIframeLoad:O,iframeLoadTimeout:F,onStylesheetLoad:$,stylesheetLoadTimeout:ee,keepIframeSrcFn:te});ze&&$(n,ze)}},ee),re}function hf(n,t){var o=t||{},r=o.mirror,e=r===void 0?new Pc:r,i=o.blockClass,a=i===void 0?"rr-block":i,s=o.blockSelector,c=s===void 0?null:s,l=o.maskTextClass,u=l===void 0?"rr-mask":l,d=o.maskTextSelector,h=d===void 0?null:d,_=o.inlineStylesheet,v=_===void 0?!0:_,C=o.inlineImages,g=C===void 0?!1:C,b=o.recordCanvas,w=b===void 0?!1:b,S=o.maskAllInputs,R=S===void 0?!1:S,T=o.maskTextFn,I=o.maskInputFn,M=o.slimDOM,O=M===void 0?!1:M,N=o.dataURLOptions,F=o.preserveWhiteSpace,$=o.onSerialize,z=o.onIframeLoad,ee=o.iframeLoadTimeout,Te=o.onStylesheetLoad,te=o.stylesheetLoadTimeout,Ne=o.keepIframeSrcFn,Pe=Ne===void 0?function(){return!1}:Ne,ue=R===!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}:R===!1?{password:!0}:R,Ee=O===!0||O==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:O==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:O===!1?{}:O;return dr(n,{doc:n,mirror:e,blockClass:a,blockSelector:c,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:v,maskInputOptions:ue,maskTextFn:T,maskInputFn:I,slimDOMOptions:Ee,dataURLOptions:N,inlineImages:g,recordCanvas:w,preserveWhiteSpace:F,onSerialize:$,onIframeLoad:z,iframeLoadTimeout:ee,onStylesheetLoad:Te,stylesheetLoadTimeout:te,keepIframeSrcFn:Pe,newlyAddedElement:!1})}function pf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function mf(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var o=function r(){return j(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(o,r,e.get?e:{enumerable:!0,get:function(){return n[r]}})}),o}var la={exports:{}},he=String,Nc=function(){return{isColorSupported:!1,reset:he,bold:he,dim:he,italic:he,underline:he,inverse:he,hidden:he,strikethrough:he,black:he,red:he,green:he,yellow:he,blue:he,magenta:he,cyan:he,white:he,gray:he,bgBlack:he,bgRed:he,bgGreen:he,bgYellow:he,bgBlue:he,bgMagenta:he,bgCyan:he,bgWhite:he}};la.exports=Nc();la.exports.createColors=Nc;var _f=la.exports,vf={},gf=Object.freeze(Object.defineProperty({__proto__:null,default:vf},Symbol.toStringTag,{value:"Module"})),Ce=mf(gf),os=_f,as=Ce,ho=function(n){De(t,n);function t(r,e,i,a,s,c){var l;return l=n.call(this,r)||this,l.name="CssSyntaxError",l.reason=r,s&&(l.file=s),a&&(l.source=a),c&&(l.plugin=c),typeof e<"u"&&typeof i<"u"&&(typeof e=="number"?(l.line=e,l.column=i):(l.line=e.line,l.column=e.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}var o=t.prototype;return o.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},o.showSourceCode=function(e){var i=this;if(!this.source)return"";var a=this.source;e==null&&(e=os.isColorSupported),as&&e&&(a=as(a));var s=a.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length,d,h;if(e){var _=os.createColors(!0),v=_.bold,C=_.gray,g=_.red;d=function(b){return v(g(b))},h=function(b){return C(b)}}else d=h=function(b){return b};return s.slice(c,l).map(function(b,w){var S=c+1+w,R=" "+(" "+S).slice(-u)+" | ";if(S===i.line){var T=h(R.replace(/\d/g," "))+b.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+h(R)+b+`
6
+ */(function(n){const t=Ci,o=aa,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=T,n.INSPECT_MAX_BYTES=50;const e=2147483647;n.kMaxLength=e;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:s}=globalThis;u.TYPED_ARRAY_SUPPORT=c(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const y=new i(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,i.prototype),Object.setPrototypeOf(y,f),y.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(y){if(y>e)throw new RangeError('The value "'+y+'" is invalid for option "size"');const f=new i(y);return Object.setPrototypeOf(f,u.prototype),f}function u(y,f,p){if(typeof y=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(y)}return d(y,f,p)}u.poolSize=8192;function d(y,f,p){if(typeof y=="string")return C(y,f);if(a.isView(y))return b(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(Ie(y,a)||y&&Ie(y.buffer,a)||typeof s<"u"&&(Ie(y,s)||y&&Ie(y.buffer,s)))return w(y,f,p);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const k=y.valueOf&&y.valueOf();if(k!=null&&k!==y)return u.from(k,f,p);const A=S(y);if(A)return A;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return u.from(y[Symbol.toPrimitive]("string"),f,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}u.from=function(y,f,p){return d(y,f,p)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function h(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function _(y,f,p){return h(y),y<=0?l(y):f!==void 0?typeof p=="string"?l(y).fill(f,p):l(y).fill(f):l(y)}u.alloc=function(y,f,p){return _(y,f,p)};function v(y){return h(y),l(y<0?0:R(y)|0)}u.allocUnsafe=function(y){return v(y)},u.allocUnsafeSlow=function(y){return v(y)};function C(y,f){if((typeof f!="string"||f==="")&&(f="utf8"),!u.isEncoding(f))throw new TypeError("Unknown encoding: "+f);const p=I(y,f)|0;let k=l(p);const A=k.write(y,f);return A!==p&&(k=k.slice(0,A)),k}function g(y){const f=y.length<0?0:R(y.length)|0,p=l(f);for(let k=0;k<f;k+=1)p[k]=y[k]&255;return p}function b(y){if(Ie(y,i)){const f=new i(y);return w(f.buffer,f.byteOffset,f.byteLength)}return g(y)}function w(y,f,p){if(f<0||y.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<f+(p||0))throw new RangeError('"length" is outside of buffer bounds');let k;return f===void 0&&p===void 0?k=new i(y):p===void 0?k=new i(y,f):k=new i(y,f,p),Object.setPrototypeOf(k,u.prototype),k}function S(y){if(u.isBuffer(y)){const f=R(y.length)|0,p=l(f);return p.length===0||y.copy(p,0,0,f),p}if(y.length!==void 0)return typeof y.length!="number"||Xe(y.length)?l(0):g(y);if(y.type==="Buffer"&&Array.isArray(y.data))return g(y.data)}function R(y){if(y>=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+" bytes");return y|0}function T(y){return+y!=y&&(y=0),u.alloc(+y)}u.isBuffer=function(f){return f!=null&&f._isBuffer===!0&&f!==u.prototype},u.compare=function(f,p){if(Ie(f,i)&&(f=u.from(f,f.offset,f.byteLength)),Ie(p,i)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(f)||!u.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===p)return 0;let k=f.length,A=p.length;for(let E=0,P=Math.min(k,A);E<P;++E)if(f[E]!==p[E]){k=f[E],A=p[E];break}return k<A?-1:A<k?1:0},u.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(f,p){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(f.length===0)return u.alloc(0);let k;if(p===void 0)for(p=0,k=0;k<f.length;++k)p+=f[k].length;const A=u.allocUnsafe(p);let E=0;for(k=0;k<f.length;++k){let P=f[k];if(Ie(P,i))E+P.length>A.length?(u.isBuffer(P)||(P=u.from(P)),P.copy(A,E)):i.prototype.set.call(A,P,E);else if(u.isBuffer(P))P.copy(A,E);else throw new TypeError('"list" argument must be an Array of Buffers');E+=P.length}return A};function I(y,f){if(u.isBuffer(y))return y.length;if(a.isView(y)||Ie(y,a))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const p=y.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&p===0)return 0;let A=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ze(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Pr(y).length;default:if(A)return k?-1:ze(y).length;f=(""+f).toLowerCase(),A=!0}}u.byteLength=I;function M(y,f,p){let k=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,f>>>=0,p<=f))return"";for(y||(y="utf8");;)switch(y){case"hex":return qe(this,f,p);case"utf8":case"utf-8":return Pe(this,f,p);case"ascii":return Le(this,f,p);case"latin1":case"binary":return mt(this,f,p);case"base64":return Ne(this,f,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,f,p);default:if(k)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),k=!0}}u.prototype._isBuffer=!0;function O(y,f,p){const k=y[f];y[f]=y[p],y[p]=k}u.prototype.swap16=function(){const f=this.length;if(f%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<f;p+=2)O(this,p,p+1);return this},u.prototype.swap32=function(){const f=this.length;if(f%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<f;p+=4)O(this,p,p+3),O(this,p+1,p+2);return this},u.prototype.swap64=function(){const f=this.length;if(f%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<f;p+=8)O(this,p,p+7),O(this,p+1,p+6),O(this,p+2,p+5),O(this,p+3,p+4);return this},u.prototype.toString=function(){const f=this.length;return f===0?"":arguments.length===0?Pe(this,0,f):M.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(f){if(!u.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f?!0:u.compare(this,f)===0},u.prototype.inspect=function(){let f="";const p=n.INSPECT_MAX_BYTES;return f=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(f+=" ... "),"<Buffer "+f+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(f,p,k,A,E){if(Ie(f,i)&&(f=u.from(f,f.offset,f.byteLength)),!u.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(p===void 0&&(p=0),k===void 0&&(k=f?f.length:0),A===void 0&&(A=0),E===void 0&&(E=this.length),p<0||k>f.length||A<0||E>this.length)throw new RangeError("out of range index");if(A>=E&&p>=k)return 0;if(A>=E)return-1;if(p>=k)return 1;if(p>>>=0,k>>>=0,A>>>=0,E>>>=0,this===f)return 0;let P=E-A,D=k-p;const V=Math.min(P,D),le=this.slice(A,E),_e=f.slice(p,k);for(let ae=0;ae<V;++ae)if(le[ae]!==_e[ae]){P=le[ae],D=_e[ae];break}return P<D?-1:D<P?1:0};function N(y,f,p,k,A){if(y.length===0)return-1;if(typeof p=="string"?(k=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,Xe(p)&&(p=A?0:y.length-1),p<0&&(p=y.length+p),p>=y.length){if(A)return-1;p=y.length-1}else if(p<0)if(A)p=0;else return-1;if(typeof f=="string"&&(f=u.from(f,k)),u.isBuffer(f))return f.length===0?-1:F(y,f,p,k,A);if(typeof f=="number")return f=f&255,typeof i.prototype.indexOf=="function"?A?i.prototype.indexOf.call(y,f,p):i.prototype.lastIndexOf.call(y,f,p):F(y,[f],p,k,A);throw new TypeError("val must be string, number or Buffer")}function F(y,f,p,k,A){let E=1,P=y.length,D=f.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(y.length<2||f.length<2)return-1;E=2,P/=2,D/=2,p/=2}function V(_e,ae){return E===1?_e[ae]:_e.readUInt16BE(ae*E)}let le;if(A){let _e=-1;for(le=p;le<P;le++)if(V(y,le)===V(f,_e===-1?0:le-_e)){if(_e===-1&&(_e=le),le-_e+1===D)return _e*E}else _e!==-1&&(le-=le-_e),_e=-1}else for(p+D>P&&(p=P-D),le=p;le>=0;le--){let _e=!0;for(let ae=0;ae<D;ae++)if(V(y,le+ae)!==V(f,ae)){_e=!1;break}if(_e)return le}return-1}u.prototype.includes=function(f,p,k){return this.indexOf(f,p,k)!==-1},u.prototype.indexOf=function(f,p,k){return N(this,f,p,k,!0)},u.prototype.lastIndexOf=function(f,p,k){return N(this,f,p,k,!1)};function $(y,f,p,k){p=Number(p)||0;const A=y.length-p;k?(k=Number(k),k>A&&(k=A)):k=A;const E=f.length;k>E/2&&(k=E/2);let P;for(P=0;P<k;++P){const D=parseInt(f.substr(P*2,2),16);if(Xe(D))return P;y[p+P]=D}return P}function z(y,f,p,k){return ir(ze(f,y.length-p),y,p,k)}function ee(y,f,p,k){return ir(gt(f),y,p,k)}function Te(y,f,p,k){return ir(Pr(f),y,p,k)}function te(y,f,p,k){return ir(fn(f,y.length-p),y,p,k)}u.prototype.write=function(f,p,k,A){if(p===void 0)A="utf8",k=this.length,p=0;else if(k===void 0&&typeof p=="string")A=p,k=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(k)?(k=k>>>0,A===void 0&&(A="utf8")):(A=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const E=this.length-p;if((k===void 0||k>E)&&(k=E),f.length>0&&(k<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");let P=!1;for(;;)switch(A){case"hex":return $(this,f,p,k);case"utf8":case"utf-8":return z(this,f,p,k);case"ascii":case"latin1":case"binary":return ee(this,f,p,k);case"base64":return Te(this,f,p,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,f,p,k);default:if(P)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),P=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ne(y,f,p){return f===0&&p===y.length?t.fromByteArray(y):t.fromByteArray(y.slice(f,p))}function Pe(y,f,p){p=Math.min(y.length,p);const k=[];let A=f;for(;A<p;){const E=y[A];let P=null,D=E>239?4:E>223?3:E>191?2:1;if(A+D<=p){let V,le,_e,ae;switch(D){case 1:E<128&&(P=E);break;case 2:V=y[A+1],(V&192)===128&&(ae=(E&31)<<6|V&63,ae>127&&(P=ae));break;case 3:V=y[A+1],le=y[A+2],(V&192)===128&&(le&192)===128&&(ae=(E&15)<<12|(V&63)<<6|le&63,ae>2047&&(ae<55296||ae>57343)&&(P=ae));break;case 4:V=y[A+1],le=y[A+2],_e=y[A+3],(V&192)===128&&(le&192)===128&&(_e&192)===128&&(ae=(E&15)<<18|(V&63)<<12|(le&63)<<6|_e&63,ae>65535&&ae<1114112&&(P=ae))}}P===null?(P=65533,D=1):P>65535&&(P-=65536,k.push(P>>>10&1023|55296),P=56320|P&1023),k.push(P),A+=D}return Ee(k)}const ue=4096;function Ee(y){const f=y.length;if(f<=ue)return String.fromCharCode.apply(String,y);let p="",k=0;for(;k<f;)p+=String.fromCharCode.apply(String,y.slice(k,k+=ue));return p}function Le(y,f,p){let k="";p=Math.min(y.length,p);for(let A=f;A<p;++A)k+=String.fromCharCode(y[A]&127);return k}function mt(y,f,p){let k="";p=Math.min(y.length,p);for(let A=f;A<p;++A)k+=String.fromCharCode(y[A]);return k}function qe(y,f,p){const k=y.length;(!f||f<0)&&(f=0),(!p||p<0||p>k)&&(p=k);let A="";for(let E=f;E<p;++E)A+=Fi[y[E]];return A}function xt(y,f,p){const k=y.slice(f,p);let A="";for(let E=0;E<k.length-1;E+=2)A+=String.fromCharCode(k[E]+k[E+1]*256);return A}u.prototype.slice=function(f,p){const k=this.length;f=~~f,p=p===void 0?k:~~p,f<0?(f+=k,f<0&&(f=0)):f>k&&(f=k),p<0?(p+=k,p<0&&(p=0)):p>k&&(p=k),p<f&&(p=f);const A=this.subarray(f,p);return Object.setPrototypeOf(A,u.prototype),A};function oe(y,f,p){if(y%1!==0||y<0)throw new RangeError("offset is not uint");if(y+f>p)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(f,p,k){f=f>>>0,p=p>>>0,k||oe(f,p,this.length);let A=this[f],E=1,P=0;for(;++P<p&&(E*=256);)A+=this[f+P]*E;return A},u.prototype.readUintBE=u.prototype.readUIntBE=function(f,p,k){f=f>>>0,p=p>>>0,k||oe(f,p,this.length);let A=this[f+--p],E=1;for(;p>0&&(E*=256);)A+=this[f+--p]*E;return A},u.prototype.readUint8=u.prototype.readUInt8=function(f,p){return f=f>>>0,p||oe(f,1,this.length),this[f]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(f,p){return f=f>>>0,p||oe(f,2,this.length),this[f]|this[f+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(f,p){return f=f>>>0,p||oe(f,2,this.length),this[f]<<8|this[f+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+this[f+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),this[f]*16777216+(this[f+1]<<16|this[f+2]<<8|this[f+3])},u.prototype.readBigUInt64LE=Qe(function(f){f=f>>>0,je(f,"offset");const p=this[f],k=this[f+7];(p===void 0||k===void 0)&&Ke(f,this.length-8);const A=p+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24,E=this[++f]+this[++f]*2**8+this[++f]*2**16+k*2**24;return BigInt(A)+(BigInt(E)<<BigInt(32))}),u.prototype.readBigUInt64BE=Qe(function(f){f=f>>>0,je(f,"offset");const p=this[f],k=this[f+7];(p===void 0||k===void 0)&&Ke(f,this.length-8);const A=p*2**24+this[++f]*2**16+this[++f]*2**8+this[++f],E=this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+k;return(BigInt(A)<<BigInt(32))+BigInt(E)}),u.prototype.readIntLE=function(f,p,k){f=f>>>0,p=p>>>0,k||oe(f,p,this.length);let A=this[f],E=1,P=0;for(;++P<p&&(E*=256);)A+=this[f+P]*E;return E*=128,A>=E&&(A-=Math.pow(2,8*p)),A},u.prototype.readIntBE=function(f,p,k){f=f>>>0,p=p>>>0,k||oe(f,p,this.length);let A=p,E=1,P=this[f+--A];for(;A>0&&(E*=256);)P+=this[f+--A]*E;return E*=128,P>=E&&(P-=Math.pow(2,8*p)),P},u.prototype.readInt8=function(f,p){return f=f>>>0,p||oe(f,1,this.length),this[f]&128?(255-this[f]+1)*-1:this[f]},u.prototype.readInt16LE=function(f,p){f=f>>>0,p||oe(f,2,this.length);const k=this[f]|this[f+1]<<8;return k&32768?k|4294901760:k},u.prototype.readInt16BE=function(f,p){f=f>>>0,p||oe(f,2,this.length);const k=this[f+1]|this[f]<<8;return k&32768?k|4294901760:k},u.prototype.readInt32LE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},u.prototype.readInt32BE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},u.prototype.readBigInt64LE=Qe(function(f){f=f>>>0,je(f,"offset");const p=this[f],k=this[f+7];(p===void 0||k===void 0)&&Ke(f,this.length-8);const A=this[f+4]+this[f+5]*2**8+this[f+6]*2**16+(k<<24);return(BigInt(A)<<BigInt(32))+BigInt(p+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24)}),u.prototype.readBigInt64BE=Qe(function(f){f=f>>>0,je(f,"offset");const p=this[f],k=this[f+7];(p===void 0||k===void 0)&&Ke(f,this.length-8);const A=(p<<24)+this[++f]*2**16+this[++f]*2**8+this[++f];return(BigInt(A)<<BigInt(32))+BigInt(this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+k)}),u.prototype.readFloatLE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),o.read(this,f,!0,23,4)},u.prototype.readFloatBE=function(f,p){return f=f>>>0,p||oe(f,4,this.length),o.read(this,f,!1,23,4)},u.prototype.readDoubleLE=function(f,p){return f=f>>>0,p||oe(f,8,this.length),o.read(this,f,!0,52,8)},u.prototype.readDoubleBE=function(f,p){return f=f>>>0,p||oe(f,8,this.length),o.read(this,f,!1,52,8)};function ye(y,f,p,k,A,E){if(!u.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>A||f<E)throw new RangeError('"value" argument is out of bounds');if(p+k>y.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(f,p,k,A){if(f=+f,p=p>>>0,k=k>>>0,!A){const D=Math.pow(2,8*k)-1;ye(this,f,p,k,D,0)}let E=1,P=0;for(this[p]=f&255;++P<k&&(E*=256);)this[p+P]=f/E&255;return p+k},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(f,p,k,A){if(f=+f,p=p>>>0,k=k>>>0,!A){const D=Math.pow(2,8*k)-1;ye(this,f,p,k,D,0)}let E=k-1,P=1;for(this[p+E]=f&255;--E>=0&&(P*=256);)this[p+E]=f/P&255;return p+k},u.prototype.writeUint8=u.prototype.writeUInt8=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,1,255,0),this[p]=f&255,p+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,2,65535,0),this[p]=f&255,this[p+1]=f>>>8,p+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,2,65535,0),this[p]=f>>>8,this[p+1]=f&255,p+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,4,4294967295,0),this[p+3]=f>>>24,this[p+2]=f>>>16,this[p+1]=f>>>8,this[p]=f&255,p+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,4,4294967295,0),this[p]=f>>>24,this[p+1]=f>>>16,this[p+2]=f>>>8,this[p+3]=f&255,p+4};function re(y,f,p,k,A){at(f,k,A,y,p,7);let E=Number(f&BigInt(4294967295));y[p++]=E,E=E>>8,y[p++]=E,E=E>>8,y[p++]=E,E=E>>8,y[p++]=E;let P=Number(f>>BigInt(32)&BigInt(4294967295));return y[p++]=P,P=P>>8,y[p++]=P,P=P>>8,y[p++]=P,P=P>>8,y[p++]=P,p}function nt(y,f,p,k,A){at(f,k,A,y,p,7);let E=Number(f&BigInt(4294967295));y[p+7]=E,E=E>>8,y[p+6]=E,E=E>>8,y[p+5]=E,E=E>>8,y[p+4]=E;let P=Number(f>>BigInt(32)&BigInt(4294967295));return y[p+3]=P,P=P>>8,y[p+2]=P,P=P>>8,y[p+1]=P,P=P>>8,y[p]=P,p+8}u.prototype.writeBigUInt64LE=Qe(function(f,p=0){return re(this,f,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Qe(function(f,p=0){return nt(this,f,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(f,p,k,A){if(f=+f,p=p>>>0,!A){const V=Math.pow(2,8*k-1);ye(this,f,p,k,V-1,-V)}let E=0,P=1,D=0;for(this[p]=f&255;++E<k&&(P*=256);)f<0&&D===0&&this[p+E-1]!==0&&(D=1),this[p+E]=(f/P>>0)-D&255;return p+k},u.prototype.writeIntBE=function(f,p,k,A){if(f=+f,p=p>>>0,!A){const V=Math.pow(2,8*k-1);ye(this,f,p,k,V-1,-V)}let E=k-1,P=1,D=0;for(this[p+E]=f&255;--E>=0&&(P*=256);)f<0&&D===0&&this[p+E+1]!==0&&(D=1),this[p+E]=(f/P>>0)-D&255;return p+k},u.prototype.writeInt8=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,1,127,-128),f<0&&(f=255+f+1),this[p]=f&255,p+1},u.prototype.writeInt16LE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,2,32767,-32768),this[p]=f&255,this[p+1]=f>>>8,p+2},u.prototype.writeInt16BE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,2,32767,-32768),this[p]=f>>>8,this[p+1]=f&255,p+2},u.prototype.writeInt32LE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,4,2147483647,-2147483648),this[p]=f&255,this[p+1]=f>>>8,this[p+2]=f>>>16,this[p+3]=f>>>24,p+4},u.prototype.writeInt32BE=function(f,p,k){return f=+f,p=p>>>0,k||ye(this,f,p,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[p]=f>>>24,this[p+1]=f>>>16,this[p+2]=f>>>8,this[p+3]=f&255,p+4},u.prototype.writeBigInt64LE=Qe(function(f,p=0){return re(this,f,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Qe(function(f,p=0){return nt(this,f,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function it(y,f,p,k,A,E){if(p+k>y.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function _t(y,f,p,k,A){return f=+f,p=p>>>0,A||it(y,f,p,4),o.write(y,f,p,k,23,4),p+4}u.prototype.writeFloatLE=function(f,p,k){return _t(this,f,p,!0,k)},u.prototype.writeFloatBE=function(f,p,k){return _t(this,f,p,!1,k)};function Tt(y,f,p,k,A){return f=+f,p=p>>>0,A||it(y,f,p,8),o.write(y,f,p,k,52,8),p+8}u.prototype.writeDoubleLE=function(f,p,k){return Tt(this,f,p,!0,k)},u.prototype.writeDoubleBE=function(f,p,k){return Tt(this,f,p,!1,k)},u.prototype.copy=function(f,p,k,A){if(!u.isBuffer(f))throw new TypeError("argument should be a Buffer");if(k||(k=0),!A&&A!==0&&(A=this.length),p>=f.length&&(p=f.length),p||(p=0),A>0&&A<k&&(A=k),A===k||f.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),f.length-p<A-k&&(A=f.length-p+k);const E=A-k;return this===f&&typeof i.prototype.copyWithin=="function"?this.copyWithin(p,k,A):i.prototype.set.call(f,this.subarray(k,A),p),E},u.prototype.fill=function(f,p,k,A){if(typeof f=="string"){if(typeof p=="string"?(A=p,p=0,k=this.length):typeof k=="string"&&(A=k,k=this.length),A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!u.isEncoding(A))throw new TypeError("Unknown encoding: "+A);if(f.length===1){const P=f.charCodeAt(0);(A==="utf8"&&P<128||A==="latin1")&&(f=P)}}else typeof f=="number"?f=f&255:typeof f=="boolean"&&(f=Number(f));if(p<0||this.length<p||this.length<k)throw new RangeError("Out of range index");if(k<=p)return this;p=p>>>0,k=k===void 0?this.length:k>>>0,f||(f=0);let E;if(typeof f=="number")for(E=p;E<k;++E)this[E]=f;else{const P=u.isBuffer(f)?f:u.from(f,A),D=P.length;if(D===0)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(E=0;E<k-p;++E)this[E+p]=P[E%D]}return this};const We={};function Gt(y,f,p){We[y]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:f.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${y}]`,this.stack,delete this.name}get code(){return y}set code(A){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:A,writable:!0})}toString(){return`${this.name} [${y}]: ${this.message}`}}}Gt("ERR_BUFFER_OUT_OF_BOUNDS",function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Gt("ERR_INVALID_ARG_TYPE",function(y,f){return`The "${y}" argument must be of type number. Received type ${typeof f}`},TypeError),Gt("ERR_OUT_OF_RANGE",function(y,f,p){let k=`The value of "${y}" is out of range.`,A=p;return Number.isInteger(p)&&Math.abs(p)>2**32?A=Ht(String(p)):typeof p=="bigint"&&(A=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(A=Ht(A)),A+="n"),k+=` It must be ${f}. Received ${A}`,k},RangeError);function Ht(y){let f="",p=y.length;const k=y[0]==="-"?1:0;for(;p>=k+4;p-=3)f=`_${y.slice(p-3,p)}${f}`;return`${y.slice(0,p)}${f}`}function ot(y,f,p){je(f,"offset"),(y[f]===void 0||y[f+p]===void 0)&&Ke(f,y.length-(p+1))}function at(y,f,p,k,A,E){if(y>p||y<f){const P=typeof f=="bigint"?"n":"";let D;throw f===0||f===BigInt(0)?D=`>= 0${P} and < 2${P} ** ${(E+1)*8}${P}`:D=`>= -(2${P} ** ${(E+1)*8-1}${P}) and < 2 ** ${(E+1)*8-1}${P}`,new We.ERR_OUT_OF_RANGE("value",D,y)}ot(k,A,E)}function je(y,f){if(typeof y!="number")throw new We.ERR_INVALID_ARG_TYPE(f,"number",y)}function Ke(y,f,p){throw Math.floor(y)!==y?(je(y,p),new We.ERR_OUT_OF_RANGE("offset","an integer",y)):f<0?new We.ERR_BUFFER_OUT_OF_BOUNDS:new We.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${f}`,y)}const Pt=/[^+/0-9A-Za-z-_]/g;function vt(y){if(y=y.split("=")[0],y=y.trim().replace(Pt,""),y.length<2)return"";for(;y.length%4!==0;)y=y+"=";return y}function ze(y,f){f=f||1/0;let p;const k=y.length;let A=null;const E=[];for(let P=0;P<k;++P){if(p=y.charCodeAt(P),p>55295&&p<57344){if(!A){if(p>56319){(f-=3)>-1&&E.push(239,191,189);continue}else if(P+1===k){(f-=3)>-1&&E.push(239,191,189);continue}A=p;continue}if(p<56320){(f-=3)>-1&&E.push(239,191,189),A=p;continue}p=(A-55296<<10|p-56320)+65536}else A&&(f-=3)>-1&&E.push(239,191,189);if(A=null,p<128){if((f-=1)<0)break;E.push(p)}else if(p<2048){if((f-=2)<0)break;E.push(p>>6|192,p&63|128)}else if(p<65536){if((f-=3)<0)break;E.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((f-=4)<0)break;E.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return E}function gt(y){const f=[];for(let p=0;p<y.length;++p)f.push(y.charCodeAt(p)&255);return f}function fn(y,f){let p,k,A;const E=[];for(let P=0;P<y.length&&!((f-=2)<0);++P)p=y.charCodeAt(P),k=p>>8,A=p%256,E.push(A),E.push(k);return E}function Pr(y){return t.toByteArray(vt(y))}function ir(y,f,p,k){let A;for(A=0;A<k&&!(A+p>=f.length||A>=y.length);++A)f[A+p]=y[A];return A}function Ie(y,f){return y instanceof f||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===f.name}function Xe(y){return y!==y}const Fi=function(){const y="0123456789abcdef",f=new Array(256);for(let p=0;p<16;++p){const k=p*16;for(let A=0;A<16;++A)f[k+A]=y[p]+y[A]}return f}();function Qe(y){return typeof BigInt>"u"?hn:y}function hn(){throw new Error("BigInt not supported")}})(wc);const Dt=wc.Buffer;var Gn={},B;if(typeof window>"u"){var Ja={hostname:""};B={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ja,referrer:""},screen:{width:0,height:0},location:Ja,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else B=window;function Za(n,t){(t==null||t>n.length)&&(t=n.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=n[o];return r}function Ka(n,t,o,r,e,i,a){try{var s=n[i](a),c=s.value}catch(l){o(l);return}s.done?t(c):Promise.resolve(c).then(r,e)}function sa(n){return function(){var t=this,o=arguments;return new Promise(function(r,e){var i=n.apply(t,o);function a(c){Ka(i,r,e,a,s,"next",c)}function s(c){Ka(i,r,e,a,s,"throw",c)}a(void 0)})}}function Un(n,t,o){return Ac()?Un=Reflect.construct:Un=function(e,i,a){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(e,s),l=new c;return a&&qr(l,a.prototype),l},Un.apply(null,arguments)}function _d(n,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Oe(n,t,o){return t&&_d(n.prototype,t),n}function ie(){return ie=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},ie.apply(this,arguments)}function lo(n){return lo=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},lo(n)}function De(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&qr(n,t)}function j(n,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](n):n instanceof t}function vd(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function zr(n,t){if(n==null)return{};var o={},r=Object.keys(n),e,i;for(i=0;i<r.length;i++)e=r[i],!(t.indexOf(e)>=0)&&(o[e]=n[e]);return o}function qr(n,t){return qr=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r},qr(n,t)}function H(n){"@swc/helpers - typeof";return n&&typeof Symbol<"u"&&n.constructor===Symbol?"symbol":typeof n}function gd(n,t){if(n){if(typeof n=="string")return Za(n,t);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Za(n,t)}}function Hn(n){var t=typeof Map=="function"?new Map:void 0;return Hn=function(r){if(r===null||!vd(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,e)}function e(){return Un(r,arguments,lo(this).constructor)}return e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),qr(e,r)},Hn(n)}function Ac(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ac=function(){return!!n})()}function U(n,t){var o=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o)return(o=o.call(n)).next.bind(o);if(Array.isArray(n)||(o=gd(n))||t){o&&(n=o);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Wr(n,t){var o,r,e,i,a={label:0,sent:function(){if(e[0]&1)throw e[1];return e[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return c([l,u])}}function c(l){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(e=l[0]&2?r.return:l[0]?r.throw||((e=r.return)&&e.call(r),0):r.next)&&!(e=e.call(r,l[1])).done)return e;switch(r=0,e&&(l=[l[0]&2,e.value]),l[0]){case 0:case 1:e=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(e=a.trys,!(e=e.length>0&&e[e.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!e||l[1]>e[0]&&l[1]<e[3])){a.label=l[1];break}if(l[0]===6&&a.label<e[1]){a.label=e[1],e=l;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(l);break}e[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(n,a)}catch(u){l=[6,u],r=0}finally{o=e=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ec(n){var t=typeof Symbol=="function"&&Symbol.iterator,o=t&&n[t],r=0;if(o)return o.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var yd=Object.defineProperty,bd=function(n,t,o){return t in n?yd(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o},L=function(n,t,o){return bd(n,(typeof t>"u"?"undefined":H(t))!=="symbol"?t+"":t,o)},Xa,Cd=Object.defineProperty,kd=function(n,t,o){return t in n?Cd(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o},Qa=function(n,t,o){return kd(n,(typeof t>"u"?"undefined":H(t))!=="symbol"?t+"":t,o)},Re=function(n){return n[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment",n}(Re||{}),es={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ts={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pn={},wd=function(){return!!globalThis.Zone};function ca(n){if(pn[n])return pn[n];var t=globalThis[n],o=t.prototype,r=n in es?es[n]:void 0,e=!!(r&&r.every(function(u){var d,h;return!!((h=(d=Object.getOwnPropertyDescriptor(o,u))==null?void 0:d.get)!=null&&h.toString().includes("[native code]"))})),i=n in ts?ts[n]:void 0,a=!!(i&&i.every(function(u){var d;return typeof o[u]=="function"&&((d=o[u])==null?void 0:d.toString().includes("[native code]"))}));if(e&&a&&!wd())return pn[n]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[n].prototype;return document.body.removeChild(s),l?pn[n]=l:o}catch{return o}}var $i={};function Ft(n,t,o){var r,e=n+"."+String(o);if($i[e])return $i[e].call(t);var i=ca(n),a=(r=Object.getOwnPropertyDescriptor(i,o))==null?void 0:r.get;return a?($i[e]=a,a.call(t)):t[o]}var Vi={};function Rc(n,t,o){var r=n+"."+String(o);if(Vi[r])return Vi[r].bind(t);var e=ca(n),i=e[o];return typeof i!="function"?t[o]:(Vi[r]=i,i.bind(t))}function Sd(n){return Ft("Node",n,"childNodes")}function Ad(n){return Ft("Node",n,"parentNode")}function Ed(n){return Ft("Node",n,"parentElement")}function Rd(n){return Ft("Node",n,"textContent")}function xd(n,t){return Rc("Node",n,"contains")(t)}function Td(n){return Rc("Node",n,"getRootNode")()}function Pd(n){return!n||!("host"in n)?null:Ft("ShadowRoot",n,"host")}function Id(n){return n.styleSheets}function Od(n){return!n||!("shadowRoot"in n)?null:Ft("Element",n,"shadowRoot")}function Bd(n,t){return Ft("Element",n,"querySelector")(t)}function Md(n,t){return Ft("Element",n,"querySelectorAll")(t)}function Dd(){return ca("MutationObserver").constructor}function Nd(n,t,o){try{if(!(t in n))return function(){};var r=n[t],e=o(r);return typeof e=="function"&&(e.prototype=e.prototype||{},Object.defineProperties(e,{__rrweb_original__:{enumerable:!1,value:r}})),n[t]=e,function(){n[t]=r}}catch{return function(){}}}var Me={childNodes:Sd,parentNode:Ad,parentElement:Ed,textContent:Rd,contains:xd,getRootNode:Td,host:Pd,styleSheets:Id,shadowRoot:Od,querySelector:Bd,querySelectorAll:Md,mutationObserver:Dd,patch:Nd};function xc(n){return n.nodeType===n.ELEMENT_NODE}function Nr(n){var t=n&&"host"in n&&"mode"in n&&Me.host(n)||null;return!!(t&&"shadowRoot"in t&&Me.shadowRoot(t)===n)}function Lr(n){return Object.prototype.toString.call(n)==="[object ShadowRoot]"}function Ld(n){return n.includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}function Fd(n){var t=n.cssText;if(t.split('"').length<3)return t;var o=["@import","url("+JSON.stringify(n.href)+")"];return n.layerName===""?o.push("layer"):n.layerName&&o.push("layer("+n.layerName+")"),n.supportsText&&o.push("supports("+n.supportsText+")"),n.media.length&&o.push(n.media.mediaText),o.join(" ")+";"}function fo(n){try{var t=n.rules||n.cssRules;if(!t)return null;var o=n.href;!o&&n.ownerNode&&n.ownerNode.ownerDocument&&(o=n.ownerNode.ownerDocument.location.href);var r=Array.from(t,function(e){return Tc(e,o)}).join("");return Ld(r)}catch{return null}}function Tc(n,t){if($d(n)){var o;try{o=fo(n.styleSheet)||Fd(n)}catch{o=n.cssText}return n.styleSheet.href?Zn(o,n.styleSheet.href):o}else{var r=n.cssText;return Vd(n)&&n.selectorText.includes(":")&&(r=Ud(r)),t?Zn(r,t):r}}function Ud(n){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return n.replace(t,"$1\\$2")}function $d(n){return"styleSheet"in n}function Vd(n){return"selectorText"in n}var Pc=function(){function n(){Qa(this,"idNodeMap",new Map),Qa(this,"nodeMetaMap",new WeakMap)}var t=n.prototype;return t.getId=function(r){var e;if(!r)return-1;var i=(e=this.getMeta(r))==null?void 0:e.id;return i??-1},t.getNode=function(r){return this.idNodeMap.get(r)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(r){return this.nodeMetaMap.get(r)||null},t.removeNodeFromMap=function(r){var e=this,i=this.getId(r);this.idNodeMap.delete(i),r.childNodes&&r.childNodes.forEach(function(a){return e.removeNodeFromMap(a)})},t.has=function(r){return this.idNodeMap.has(r)},t.hasNode=function(r){return this.nodeMetaMap.has(r)},t.add=function(r,e){var i=e.id;this.idNodeMap.set(i,r),this.nodeMetaMap.set(r,e)},t.replace=function(r,e){var i=this.getNode(r);if(i){var a=this.nodeMetaMap.get(i);a&&this.nodeMetaMap.set(e,a)}this.idNodeMap.set(r,e)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},n}();function jd(){return new Pc}function Yn(n){var t=n.element,o=n.maskInputOptions,r=n.tagName,e=n.type,i=n.value,a=n.maskInputFn,s=i||"",c=e&&Kt(e);return(o[r.toLowerCase()]||c&&o[c])&&(a?s=a(s,t):s="*".repeat(s.length)),s}function Kt(n){return n.toLowerCase()}var rs="__rrweb_original__";function zd(n){var t=n.getContext("2d");if(!t)return!0;for(var o=50,r=0;r<n.width;r+=o)for(var e=0;e<n.height;e+=o){var i=t.getImageData,a=rs in i?i[rs]:i,s=new Uint32Array(a.call(t,r,e,Math.min(o,n.width-r),Math.min(o,n.height-e)).data.buffer);if(s.some(function(c){return c!==0}))return!1}return!0}function Jn(n){var t=n.type;return n.hasAttribute("data-rr-is-password")?"password":t?Kt(t):null}function Ic(n,t){var o;try{o=new URL(n,t??window.location.href)}catch{return null}var r=/\.([0-9a-z]+)(?:$)/i,e=o.pathname.match(r),i;return(i=e?.[1])!=null?i:null}function qd(n){var t="";return n.indexOf("//")>-1?t=n.split("/").slice(0,3).join("/"):t=n.split("/")[0],t=t.split("?")[0],t}var Wd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Gd=/^(?:[a-z+]+:)?\/\//i,Hd=/^www\..*/i,Yd=/^(data:)([^,]*),(.*)/i;function Zn(n,t){return(n||"").replace(Wd,function(o,r,e,i,a,s){var c=e||a||s,l=r||i||"";if(!c)return o;if(Gd.test(c)||Hd.test(c)||Yd.test(c))return"url("+l+c+l+")";if(c[0]==="/")return"url("+l+(qd(t)+c)+l+")";var u=t.split("/"),d=c.split("/");u.pop();for(var h=U(d),_;!(_=h()).done;){var v=_.value;v!=="."&&(v===".."?u.pop():u.push(v))}return"url("+l+u.join("/")+l+")"})}function mn(n,t){return t===void 0&&(t=!1),t?n.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):n.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Jd(n,t,o){o===void 0&&(o=!1);var r=Array.from(t.childNodes),e=[],i=0;if(r.length>1&&n&&typeof n=="string"){for(var a=mn(n,o),s=a.length/n.length,c=1;c<r.length;c++)if(r[c].textContent&&typeof r[c].textContent=="string"){for(var l=mn(r[c].textContent,o),u=100,d=3;d<l.length&&(l[d].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,d),1)!==-1);d++);for(;d<l.length;d++){var h=l.substring(0,d),_=a.split(h),v=-1;if(_.length===2)v=_[0].length;else if(_.length>2&&_[0]===""&&r[c-1].textContent!=="")v=a.indexOf(h,1);else if(_.length===1){if(h=h.substring(0,h.length-1),_=a.split(h),_.length<=1)return e.push(n),e;d=u+1}else d===l.length-1&&(v=a.indexOf(h));if(_.length>=2&&d>u){var C=r[c-1].textContent;if(C&&typeof C=="string"){var g=mn(C).length;v=a.indexOf(h,g)}v===-1&&(v=_[0].length)}if(v!==-1){for(var b=Math.floor(v/s);b>0&&b<n.length;){if(i+=1,i>50*r.length)return e.push(n),e;var w=mn(n.substring(0,b),o);if(w.length===v){e.push(n.substring(0,b)),n=n.substring(b),a=a.substring(v);break}else w.length<v?b+=Math.max(1,Math.floor((v-w.length)/s)):b-=Math.max(1,Math.floor((w.length-v)*s))}break}}}}return e.push(n),e}function Zd(n,t){return Jd(n,t).join("/* rr_split */")}var Kd=1,Xd=new RegExp("[^a-z0-9-_:]"),Gr=-2;function Oc(){return Kd++}function Qd(n){if(j(n,HTMLFormElement))return"form";var t=Kt(n.tagName);return Xd.test(t)?"div":t}var ar,ns,ef=/^[^ \t\n\r\u000c]+/,tf=/^[, \t\n\r\u000c]+/;function rf(n,t){if(t.trim()==="")return t;var o=0;function r(l){var u,d=l.exec(t.substring(o));return d?(u=d[0],o+=u.length,u):""}for(var e=[];r(tf),!(o>=t.length);){var i=r(ef);if(i.slice(-1)===",")i=dr(n,i.substring(0,i.length-1)),e.push(i);else{var a="";i=dr(n,i);for(var s=!1;;){var c=t.charAt(o);if(c===""){e.push((i+a).trim());break}else if(s)c===")"&&(s=!1);else if(c===","){o+=1,e.push((i+a).trim());break}else c==="("&&(s=!0);a+=c,o+=1}}}return e.join(", ")}var is=new WeakMap;function dr(n,t){return!t||t.trim()===""?t:ua(n,t)}function nf(n){return!!(n.tagName==="svg"||n.ownerSVGElement)}function ua(n,t){var o=is.get(n);if(o||(o=n.createElement("a"),is.set(n,o)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return o.setAttribute("href",t),o.href}function Bc(n,t,o,r){return r&&(o==="src"||o==="href"&&!(t==="use"&&r[0]==="#")||o==="xlink:href"&&r[0]!=="#"||o==="background"&&(t==="table"||t==="td"||t==="th")?dr(n,r):o==="srcset"?rf(n,r):o==="style"?Zn(r,ua(n)):t==="object"&&o==="data"?dr(n,r):r)}function Mc(n,t,o){return(n==="video"||n==="audio")&&t==="autoplay"}function of(n,t,o){try{if(typeof t=="string"){if(n.classList.contains(t))return!0}else for(var r=n.classList.length;r--;){var e=n.classList[r];if(t.test(e))return!0}if(o)return n.matches(o)}catch{}return!1}function Kn(n,t,o){if(!n)return!1;if(n.nodeType!==n.ELEMENT_NODE)return o?Kn(Me.parentNode(n),t,o):!1;for(var r=n.classList.length;r--;){var e=n.classList[r];if(t.test(e))return!0}return o?Kn(Me.parentNode(n),t,o):!1}function Dc(n,t,o,r){var e;if(xc(n)){if(e=n,!Me.childNodes(e).length)return!1}else{if(Me.parentElement(n)===null)return!1;e=Me.parentElement(n)}try{if(typeof t=="string"){if(r){if(e.closest("."+t))return!0}else if(e.classList.contains(t))return!0}else if(Kn(e,t,r))return!0;if(o){if(r){if(e.closest(o))return!0}else if(e.matches(o))return!0}}catch{}return!1}function af(n,t,o){var r=n.contentWindow;if(r){var e=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){var a=setTimeout(function(){e||(t(),e=!0)},o);n.addEventListener("load",function(){clearTimeout(a),e=!0,t()});return}var s="about:blank";if(r.location.href!==s||n.src===s||n.src==="")return setTimeout(t,0),n.addEventListener("load",t);n.addEventListener("load",t)}}function sf(n,t,o){var r=!1,e;try{e=n.sheet}catch{return}if(!e){var i=setTimeout(function(){r||(t(),r=!0)},o);n.addEventListener("load",function(){clearTimeout(i),r=!0,t()})}}function cf(n,t){var o=t.doc,r=t.mirror,e=t.blockClass,i=t.blockSelector,a=t.needsMask,s=t.inlineStylesheet,c=t.maskInputOptions,l=c===void 0?{}:c,u=t.maskTextFn,d=t.maskInputFn,h=t.dataURLOptions,_=h===void 0?{}:h,v=t.inlineImages,C=t.recordCanvas,g=t.keepIframeSrcFn,b=t.newlyAddedElement,w=b===void 0?!1:b,S=t.cssCaptured,R=S===void 0?!1:S,T=uf(o,r);switch(n.nodeType){case n.DOCUMENT_NODE:return n.compatMode!=="CSS1Compat"?{type:Re.Document,childNodes:[],compatMode:n.compatMode}:{type:Re.Document,childNodes:[]};case n.DOCUMENT_TYPE_NODE:return{type:Re.DocumentType,name:n.name,publicId:n.publicId,systemId:n.systemId,rootId:T};case n.ELEMENT_NODE:return df(n,{doc:o,blockClass:e,blockSelector:i,inlineStylesheet:s,maskInputOptions:l,maskInputFn:d,dataURLOptions:_,inlineImages:v,recordCanvas:C,keepIframeSrcFn:g,newlyAddedElement:w,rootId:T});case n.TEXT_NODE:return lf(n,{doc:o,needsMask:a,maskTextFn:u,rootId:T,cssCaptured:R});case n.CDATA_SECTION_NODE:return{type:Re.CDATA,textContent:"",rootId:T};case n.COMMENT_NODE:return{type:Re.Comment,textContent:Me.textContent(n)||"",rootId:T};default:return!1}}function uf(n,t){if(t.hasNode(n)){var o=t.getId(n);return o===1?void 0:o}}function lf(n,t){var o=t.needsMask,r=t.maskTextFn,e=t.rootId,i=t.cssCaptured,a=Me.parentNode(n),s=a&&a.tagName,c="",l=s==="STYLE"?!0:void 0,u=s==="SCRIPT"?!0:void 0;return u?c="SCRIPT_PLACEHOLDER":i||(c=Me.textContent(n),l&&c&&(c=Zn(c,ua(t.doc)))),!l&&!u&&c&&o&&(c=r?r(c,Me.parentElement(n)):c.replace(/[\S]/g,"*")),{type:Re.Text,textContent:c||"",rootId:e}}function df(n,t){for(var o=t.doc,r=t.blockClass,e=t.blockSelector,i=t.inlineStylesheet,a=t.maskInputOptions,s=a===void 0?{}:a,c=t.maskInputFn,l=t.dataURLOptions,u=l===void 0?{}:l,d=t.inlineImages,h=t.recordCanvas,_=t.keepIframeSrcFn,v=t.newlyAddedElement,C=v===void 0?!1:v,g=t.rootId,b=of(n,r,e),w=Qd(n),S={},R=n.attributes.length,T=0;T<R;T++){var I=n.attributes[T];Mc(w,I.name,I.value)||(S[I.name]=Bc(o,w,Kt(I.name),I.value))}if(w==="link"&&i){var M=Array.from(o.styleSheets).find(function(oe){return oe.href===n.href}),O=null;M&&(O=fo(M)),O&&(delete S.rel,delete S.href,S._cssText=O)}if(w==="style"&&n.sheet){var N=fo(n.sheet);N&&(n.childNodes.length>1&&(N=Zd(N,n)),S._cssText=N)}if(w==="input"||w==="textarea"||w==="select"){var F=n.value,$=n.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&F?S.value=Yn({element:n,type:Jn(n),tagName:w,value:F,maskInputOptions:s,maskInputFn:c}):$&&(S.checked=$)}if(w==="option"&&(n.selected&&!s.select?S.selected=!0:delete S.selected),w==="dialog"&&n.open&&(S.rr_open_mode=n.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(n.__context==="2d")zd(n)||(S.rr_dataURL=n.toDataURL(u.type,u.quality));else if(!("__context"in n)){var z=n.toDataURL(u.type,u.quality),ee=o.createElement("canvas");ee.width=n.width,ee.height=n.height;var Te=ee.toDataURL(u.type,u.quality);z!==Te&&(S.rr_dataURL=z)}}if(w==="img"&&d){ar||(ar=o.createElement("canvas"),ns=ar.getContext("2d"));var te=n,Ne=te.currentSrc||te.getAttribute("src")||"<unknown-src>",Pe=te.crossOrigin,ue=function(){te.removeEventListener("load",ue);try{ar.width=te.naturalWidth,ar.height=te.naturalHeight,ns.drawImage(te,0,0),S.rr_dataURL=ar.toDataURL(u.type,u.quality)}catch(oe){if(te.crossOrigin!=="anonymous"){te.crossOrigin="anonymous",te.complete&&te.naturalWidth!==0?ue():te.addEventListener("load",ue);return}else console.warn("Cannot inline img src="+Ne+"! Error: "+oe)}te.crossOrigin==="anonymous"&&(Pe?S.crossOrigin=Pe:te.removeAttribute("crossorigin"))};te.complete&&te.naturalWidth!==0?ue():te.addEventListener("load",ue)}if(w==="audio"||w==="video"){var Ee=S;Ee.rr_mediaState=n.paused?"paused":"played",Ee.rr_mediaCurrentTime=n.currentTime,Ee.rr_mediaPlaybackRate=n.playbackRate,Ee.rr_mediaMuted=n.muted,Ee.rr_mediaLoop=n.loop,Ee.rr_mediaVolume=n.volume}if(C||(n.scrollLeft&&(S.rr_scrollLeft=n.scrollLeft),n.scrollTop&&(S.rr_scrollTop=n.scrollTop)),b){var Le=n.getBoundingClientRect(),mt=Le.width,qe=Le.height;S={class:S.class,rr_width:""+mt+"px",rr_height:""+qe+"px"}}w==="iframe"&&!_(S.src)&&(n.contentDocument||(S.rr_src=S.src),delete S.src);var xt;try{customElements.get(w)&&(xt=!0)}catch{}return{type:Re.Element,tagName:w,attributes:S,childNodes:[],isSVG:nf(n)||void 0,needBlock:b,rootId:g,isCustom:xt}}function de(n){return n==null?"":n.toLowerCase()}function ff(n,t){if(t.comment&&n.type===Re.Comment)return!0;if(n.type===Re.Element){if(t.script&&(n.tagName==="script"||n.tagName==="link"&&(n.attributes.rel==="preload"&&n.attributes.as==="script"||n.attributes.rel==="modulepreload")||n.tagName==="link"&&n.attributes.rel==="prefetch"&&typeof n.attributes.href=="string"&&Ic(n.attributes.href)==="js"))return!0;if(t.headFavicon&&(n.tagName==="link"&&n.attributes.rel==="shortcut icon"||n.tagName==="meta"&&(de(n.attributes.name).match(/^msapplication-tile(image|color)$/)||de(n.attributes.name)==="application-name"||de(n.attributes.rel)==="icon"||de(n.attributes.rel)==="apple-touch-icon"||de(n.attributes.rel)==="shortcut icon")))return!0;if(n.tagName==="meta"){if(t.headMetaDescKeywords&&de(n.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(de(n.attributes.property).match(/^(og|twitter|fb):/)||de(n.attributes.name).match(/^(og|twitter):/)||de(n.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(de(n.attributes.name)==="robots"||de(n.attributes.name)==="googlebot"||de(n.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&n.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(de(n.attributes.name)==="author"||de(n.attributes.name)==="generator"||de(n.attributes.name)==="framework"||de(n.attributes.name)==="publisher"||de(n.attributes.name)==="progid"||de(n.attributes.property).match(/^article:/)||de(n.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(de(n.attributes.name)==="google-site-verification"||de(n.attributes.name)==="yandex-verification"||de(n.attributes.name)==="csrf-token"||de(n.attributes.name)==="p:domain_verify"||de(n.attributes.name)==="verify-v1"||de(n.attributes.name)==="verification"||de(n.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function fr(n,t){var o=t.doc,r=t.mirror,e=t.blockClass,i=t.blockSelector,a=t.maskTextClass,s=t.maskTextSelector,c=t.skipChild,l=c===void 0?!1:c,u=t.inlineStylesheet,d=u===void 0?!0:u,h=t.maskInputOptions,_=h===void 0?{}:h,v=t.maskTextFn,C=t.maskInputFn,g=t.slimDOMOptions,b=t.dataURLOptions,w=b===void 0?{}:b,S=t.inlineImages,R=S===void 0?!1:S,T=t.recordCanvas,I=T===void 0?!1:T,M=t.onSerialize,O=t.onIframeLoad,N=t.iframeLoadTimeout,F=N===void 0?5e3:N,$=t.onStylesheetLoad,z=t.stylesheetLoadTimeout,ee=z===void 0?5e3:z,Te=t.keepIframeSrcFn,te=Te===void 0?function(){return!1}:Te,Ne=t.newlyAddedElement,Pe=Ne===void 0?!1:Ne,ue=t.cssCaptured,Ee=ue===void 0?!1:ue,Le=t.needsMask,mt=t.preserveWhiteSpace,qe=mt===void 0?!0:mt;if(!Le){var xt=Le===void 0;Le=Dc(n,a,s,xt)}var oe=cf(n,{doc:o,mirror:r,blockClass:e,blockSelector:i,needsMask:Le,inlineStylesheet:d,maskInputOptions:_,maskTextFn:v,maskInputFn:C,dataURLOptions:w,inlineImages:R,recordCanvas:I,keepIframeSrcFn:te,newlyAddedElement:Pe,cssCaptured:Ee});if(!oe)return console.warn(n,"not serialized"),null;var ye;r.hasNode(n)?ye=r.getId(n):ff(oe,g)||!qe&&oe.type===Re.Text&&!oe.textContent.replace(/^\s+|\s+$/gm,"").length?ye=Gr:ye=Oc();var re=Object.assign(oe,{id:ye});if(r.add(n,re),ye===Gr)return null;M&&M(n);var nt=!l;if(re.type===Re.Element){nt=nt&&!re.needBlock,delete re.needBlock;var it=Me.shadowRoot(n);it&&Lr(it)&&(re.isShadowHost=!0)}if((re.type===Re.Document||re.type===Re.Element)&&nt){g.headWhitespace&&re.type===Re.Element&&re.tagName==="head"&&(qe=!1);var _t={doc:o,mirror:r,blockClass:e,blockSelector:i,needsMask:Le,maskTextClass:a,maskTextSelector:s,skipChild:l,inlineStylesheet:d,maskInputOptions:_,maskTextFn:v,maskInputFn:C,slimDOMOptions:g,dataURLOptions:w,inlineImages:R,recordCanvas:I,preserveWhiteSpace:qe,onSerialize:M,onIframeLoad:O,iframeLoadTimeout:F,onStylesheetLoad:$,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,cssCaptured:!1};if(!(re.type===Re.Element&&re.tagName==="textarea"&&re.attributes.value!==void 0)){re.type===Re.Element&&re.attributes._cssText!==void 0&&typeof re.attributes._cssText=="string"&&(_t.cssCaptured=!0);for(var Tt=U(Array.from(Me.childNodes(n))),We;!(We=Tt()).done;){var Gt=We.value,Ht=fr(Gt,_t);Ht&&re.childNodes.push(Ht)}}var ot=null;if(xc(n)&&(ot=Me.shadowRoot(n)))for(var at=U(Array.from(Me.childNodes(ot))),je;!(je=at()).done;){var Ke=je.value,Pt=fr(Ke,_t);Pt&&(Lr(ot)&&(Pt.isShadow=!0),re.childNodes.push(Pt))}}var vt=Me.parentNode(n);return vt&&Nr(vt)&&Lr(vt)&&(re.isShadow=!0),re.type===Re.Element&&re.tagName==="iframe"&&af(n,function(){var ze=n.contentDocument;if(ze&&O){var gt=fr(ze,{doc:ze,mirror:r,blockClass:e,blockSelector:i,needsMask:Le,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:_,maskTextFn:v,maskInputFn:C,slimDOMOptions:g,dataURLOptions:w,inlineImages:R,recordCanvas:I,preserveWhiteSpace:qe,onSerialize:M,onIframeLoad:O,iframeLoadTimeout:F,onStylesheetLoad:$,stylesheetLoadTimeout:ee,keepIframeSrcFn:te});gt&&O(n,gt)}},F),re.type===Re.Element&&re.tagName==="link"&&typeof re.attributes.rel=="string"&&(re.attributes.rel==="stylesheet"||re.attributes.rel==="preload"&&typeof re.attributes.href=="string"&&Ic(re.attributes.href)==="css")&&sf(n,function(){if($){var ze=fr(n,{doc:o,mirror:r,blockClass:e,blockSelector:i,needsMask:Le,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:_,maskTextFn:v,maskInputFn:C,slimDOMOptions:g,dataURLOptions:w,inlineImages:R,recordCanvas:I,preserveWhiteSpace:qe,onSerialize:M,onIframeLoad:O,iframeLoadTimeout:F,onStylesheetLoad:$,stylesheetLoadTimeout:ee,keepIframeSrcFn:te});ze&&$(n,ze)}},ee),re}function hf(n,t){var o=t||{},r=o.mirror,e=r===void 0?new Pc:r,i=o.blockClass,a=i===void 0?"rr-block":i,s=o.blockSelector,c=s===void 0?null:s,l=o.maskTextClass,u=l===void 0?"rr-mask":l,d=o.maskTextSelector,h=d===void 0?null:d,_=o.inlineStylesheet,v=_===void 0?!0:_,C=o.inlineImages,g=C===void 0?!1:C,b=o.recordCanvas,w=b===void 0?!1:b,S=o.maskAllInputs,R=S===void 0?!1:S,T=o.maskTextFn,I=o.maskInputFn,M=o.slimDOM,O=M===void 0?!1:M,N=o.dataURLOptions,F=o.preserveWhiteSpace,$=o.onSerialize,z=o.onIframeLoad,ee=o.iframeLoadTimeout,Te=o.onStylesheetLoad,te=o.stylesheetLoadTimeout,Ne=o.keepIframeSrcFn,Pe=Ne===void 0?function(){return!1}:Ne,ue=R===!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}:R===!1?{password:!0}:R,Ee=O===!0||O==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:O==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:O===!1?{}:O;return fr(n,{doc:n,mirror:e,blockClass:a,blockSelector:c,maskTextClass:u,maskTextSelector:h,skipChild:!1,inlineStylesheet:v,maskInputOptions:ue,maskTextFn:T,maskInputFn:I,slimDOMOptions:Ee,dataURLOptions:N,inlineImages:g,recordCanvas:w,preserveWhiteSpace:F,onSerialize:$,onIframeLoad:z,iframeLoadTimeout:ee,onStylesheetLoad:Te,stylesheetLoadTimeout:te,keepIframeSrcFn:Pe,newlyAddedElement:!1})}function pf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function mf(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var o=function r(){return j(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(o,r,e.get?e:{enumerable:!0,get:function(){return n[r]}})}),o}var la={exports:{}},he=String,Nc=function(){return{isColorSupported:!1,reset:he,bold:he,dim:he,italic:he,underline:he,inverse:he,hidden:he,strikethrough:he,black:he,red:he,green:he,yellow:he,blue:he,magenta:he,cyan:he,white:he,gray:he,bgBlack:he,bgRed:he,bgGreen:he,bgYellow:he,bgBlue:he,bgMagenta:he,bgCyan:he,bgWhite:he}};la.exports=Nc();la.exports.createColors=Nc;var _f=la.exports,vf={},gf=Object.freeze(Object.defineProperty({__proto__:null,default:vf},Symbol.toStringTag,{value:"Module"})),Ce=mf(gf),os=_f,as=Ce,ho=function(n){De(t,n);function t(r,e,i,a,s,c){var l;return l=n.call(this,r)||this,l.name="CssSyntaxError",l.reason=r,s&&(l.file=s),a&&(l.source=a),c&&(l.plugin=c),typeof e<"u"&&typeof i<"u"&&(typeof e=="number"?(l.line=e,l.column=i):(l.line=e.line,l.column=e.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}var o=t.prototype;return o.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},o.showSourceCode=function(e){var i=this;if(!this.source)return"";var a=this.source;e==null&&(e=os.isColorSupported),as&&e&&(a=as(a));var s=a.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length,d,h;if(e){var _=os.createColors(!0),v=_.bold,C=_.gray,g=_.red;d=function(b){return v(g(b))},h=function(b){return C(b)}}else d=h=function(b){return b};return s.slice(c,l).map(function(b,w){var S=c+1+w,R=" "+(" "+S).slice(-u)+" | ";if(S===i.line){var T=h(R.replace(/\d/g," "))+b.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+h(R)+b+`
7
7
  `+T+d("^")}return" "+h(R)+b}).join(`
8
8
  `)},o.toString=function(){var e=this.showSourceCode();return e&&(e=`
9
9
 
@@ -25,10 +25,10 @@ var wc={},Ci={};Ci.byteLength=ld;Ci.toByteArray=fd;Ci.fromByteArray=md;var lt=[]
25
25
  `;this.css.includes(`\r
26
26
  `)&&(e=`\r
27
27
  `),this.css+=e+"/*# sourceMappingURL="+r+" */"},t.applyPrevMaps=function(){for(var r=U(this.previous()),e;!(e=r()).done;){var i=e.value,a=this.toUrl(this.path(i.file)),s=i.root||Vn(i.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new Uc(i.text),c.sourcesContent&&(c.sourcesContent=null)):c=i.consumer(),this.map.applySourceMap(c,a,this.toUrl(this.path(s)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var r,e=this.root.nodes.length-1;e>=0;e--)r=this.root.nodes[e],r.type==="comment"&&r.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),$f&&Uf&&this.isMap())return this.generateMap();var r="";return this.stringify(this.root,function(e){r+=e}),[r]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=$n.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new $n({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]},t.generateString=function(){var r=this;this.css="",this.map=new $n({file:this.outputFile(),ignoreInvalidMapping:!0});var e=1,i=1,a="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},c,l;this.stringify(this.root,function(u,d,h){if(r.css+=u,d&&h!=="end"&&(s.generated.line=e,s.generated.column=i-1,d.source&&d.source.start?(s.source=r.sourcePath(d),s.original.line=d.source.start.line,s.original.column=d.source.start.column-1,r.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,r.map.addMapping(s))),c=u.match(/\n/g),c?(e+=c.length,l=u.lastIndexOf(`
28
- `),i=u.length-l):i+=u.length,d&&h!=="start"){var _=d.parent||{raws:{}},v=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!v||d!==_.last||_.raws.semicolon)&&(d.source&&d.source.end?(s.source=r.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=e,s.generated.column=i-2,r.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=i-1,r.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(e){return e.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var e=this.memoizedPaths.get(r);if(e)return e;var i=this.opts.to?Vn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Vn(Vc(i,this.mapOpts.annotation)));var a=$c(i,r);return this.memoizedPaths.set(r,a),a},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var a=i.source.input.map;r.previousMaps.includes(a)||r.previousMaps.push(a)}});else{var e=new Ff(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,e={};if(this.root)this.root.walk(function(a){if(a.source){var s=a.source.input.from;if(s&&!e[s]){e[s]=!0;var c=r.usesFileUrls?r.toFileUrl(s):r.toUrl(r.path(s));r.map.setSourceContent(c,a.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)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return Dt?Dt.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var e=this.memoizedFileURLs.get(r);if(e)return e;if(hs){var i=hs(r).toString();return this.memoizedFileURLs.set(r,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var e=this.memoizedURLs.get(r);if(e)return e;jc==="\\"&&(r=r.replace(/\\/g,"/"));var i=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,i),i},n}(),zc=Vf,jf=wi,ko=function(n){De(t,n);function t(o){var r;return r=n.call(this,o)||this,r.type="comment",r}return t}(jf),Ei=ko;ko.default=ko;var qc=Ut.isClean,Gc=Ut.my,Wc=Si,Hc=Ei,zf=wi,Yc,fa,ha,Jc;function Zc(n){return n.map(function(t){return t.nodes&&(t.nodes=Zc(t.nodes)),delete t.source,t})}function Kc(n){if(n[qc]=!1,n.proxyOf.nodes)for(var t=U(n.proxyOf.nodes),o;!(o=t()).done;){var r=o.value;Kc(r)}}var kt=function(n){De(t,n);function t(){return n.apply(this,arguments)||this}var o=t.prototype;return o.append=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];for(var s=U(i),c;!(c=s()).done;)for(var l=c.value,u=this.normalize(l,this.last),d=U(u),h;!(h=d()).done;){var _=h.value;this.proxyOf.nodes.push(_)}return this.markDirty(),this},o.cleanRaws=function(e){if(n.prototype.cleanRaws.call(this,e),this.nodes)for(var i=U(this.nodes),a;!(a=i()).done;){var s=a.value;s.cleanRaws(e)}},o.each=function(e){if(this.proxyOf.nodes){for(var i=this.getIterator(),a,s;this.indexes[i]<this.proxyOf.nodes.length&&(a=this.indexes[i],s=e(this.proxyOf.nodes[a],a),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}},o.every=function(e){return this.nodes.every(e)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},o.getProxyProcessor=function(){return{get:function(i,a){return a==="proxyOf"?i:i[a]?a==="each"||typeof a=="string"&&a.startsWith("walk")?function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var u;return(u=i)[a].apply(u,[].concat(c.map(function(d){return typeof d=="function"?function(h,_){return d(h.toProxy(),_)}:d})))}:a==="every"||a==="some"?function(s){return i[a](function(c){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];return s.apply(void 0,[].concat([c.toProxy()],u))})}:a==="root"?function(){return i.root().toProxy()}:a==="nodes"?i.nodes.map(function(s){return s.toProxy()}):a==="first"||a==="last"?i[a].toProxy():i[a]:i[a]},set:function(i,a,s){return i[a]===s||(i[a]=s,(a==="name"||a==="params"||a==="selector")&&i.markDirty()),!0}}},o.index=function(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},o.insertAfter=function(e,i){var a=this.index(e),s=this.normalize(i,this.proxyOf.nodes[a]).reverse();a=this.index(e);for(var c=U(s),l;!(l=c()).done;){var u=l.value;this.proxyOf.nodes.splice(a+1,0,u)}var d;for(var h in this.indexes)d=this.indexes[h],a<d&&(this.indexes[h]=d+s.length);return this.markDirty(),this},o.insertBefore=function(e,i){var a=this.index(e),s=a===0?"prepend":!1,c=this.normalize(i,this.proxyOf.nodes[a],s).reverse();a=this.index(e);for(var l=U(c),u;!(u=l()).done;){var d=u.value;this.proxyOf.nodes.splice(a,0,d)}var h;for(var _ in this.indexes)h=this.indexes[_],a<=h&&(this.indexes[_]=h+c.length);return this.markDirty(),this},o.normalize=function(e,i){var a=this;if(typeof e=="string")e=Zc(Yc(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(var s=U(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(var u=U(e),d;!(d=u()).done;){var h=d.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Wc(e)]}else if(e.selector)e=[new fa(e)];else if(e.name)e=[new ha(e)];else if(e.text)e=[new Hc(e)];else throw new Error("Unknown node type in node creation");var _=e.map(function(v){return v[Gc]||t.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[qc]&&Kc(v),typeof v.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(v.raws.before=i.raws.before.replace(/\S/g,"")),v.parent=a.proxyOf,v});return _},o.prepend=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];i=i.reverse();for(var s=U(i),c;!(c=s()).done;){for(var l=c.value,u=this.normalize(l,this.first,"prepend").reverse(),d=U(u),h;!(h=d()).done;){var _=h.value;this.proxyOf.nodes.unshift(_)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+u.length}return this.markDirty(),this},o.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},o.removeAll=function(){for(var e=U(this.proxyOf.nodes),i;!(i=e()).done;){var a=i.value;a.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var i;for(var a in this.indexes)i=this.indexes[a],i>=e&&(this.indexes[a]=i-1);return this.markDirty(),this},o.replaceValues=function(e,i,a){return a||(a=i,i={}),this.walkDecls(function(s){i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(e,a))}),this.markDirty(),this},o.some=function(e){return this.nodes.some(e)},o.walk=function(e){return this.each(function(i,a){var s;try{s=e(i,a)}catch(c){throw i.addToError(c)}return s!==!1&&i.walk&&(s=i.walk(e)),s})},o.walkAtRules=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="atrule"&&e.test(a.name))return i(a,s)}):this.walk(function(a,s){if(a.type==="atrule"&&a.name===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="atrule")return i(a,s)}))},o.walkComments=function(e){return this.walk(function(i,a){if(i.type==="comment")return e(i,a)})},o.walkDecls=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="decl"&&e.test(a.prop))return i(a,s)}):this.walk(function(a,s){if(a.type==="decl"&&a.prop===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="decl")return i(a,s)}))},o.walkRules=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="rule"&&e.test(a.selector))return i(a,s)}):this.walk(function(a,s){if(a.type==="rule"&&a.selector===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="rule")return i(a,s)}))},Oe(t,[{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]}}]),t}(zf);kt.registerParse=function(n){Yc=n};kt.registerRule=function(n){fa=n};kt.registerAtRule=function(n){ha=n};kt.registerRoot=function(n){Jc=n};var Qt=kt;kt.default=kt;kt.rebuild=function(n){n.type==="atrule"?Object.setPrototypeOf(n,ha.prototype):n.type==="rule"?Object.setPrototypeOf(n,fa.prototype):n.type==="decl"?Object.setPrototypeOf(n,Wc.prototype):n.type==="comment"?Object.setPrototypeOf(n,Hc.prototype):n.type==="root"&&Object.setPrototypeOf(n,Jc.prototype),n[Gc]=!0,n.nodes&&n.nodes.forEach(function(t){kt.rebuild(t)})};var qf=Qt,Xc,Qc,Hr=function(n){De(t,n);function t(r){var e;return e=n.call(this,ie({type:"document"},r))||this,e.nodes||(e.nodes=[]),e}var o=t.prototype;return o.toResult=function(e){e===void 0&&(e={});var i=new Xc(new Qc,this,e);return i.stringify()},t}(qf);Hr.registerLazyResult=function(n){Xc=n};Hr.registerProcessor=function(n){Qc=n};var pa=Hr;Hr.default=Hr;var wo=function(){function n(o,r){if(r===void 0&&(r={}),this.type="warning",this.text=o,r.node&&r.node.source){var e=r.node.rangeBy(r);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(var i in r)this[i]=r[i]}var t=n.prototype;return t.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},n}(),eu=wo;wo.default=wo;var Gf=eu,So=function(){function n(o,r,e){this.processor=o,this.messages=[],this.root=r,this.opts=e,this.css=void 0,this.map=void 0}var t=n.prototype;return t.toString=function(){return this.css},t.warn=function(r,e){e===void 0&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var i=new Gf(r,e);return this.messages.push(i),i},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},Oe(n,[{key:"content",get:function(){return this.css}}]),n}(),ma=So;So.default=So;var Gi=39,ps=34,gn=92,ms=47,yn=10,Pr=32,bn=12,Cn=9,kn=13,Wf=91,Hf=93,Yf=40,Jf=41,Zf=123,Kf=125,Xf=59,Qf=42,eh=58,th=64,wn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Sn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rh=/.[\r\n"'(/\\]/,_s=/[\da-f]/i,nh=function(t,o){o===void 0&&(o={});var r=t.css.valueOf(),e=o.ignoreErrors,i,a,s,c,l,u,d,h,_,v,C=r.length,g=0,b=[],w=[];function S(){return g}function R(O){throw t.error("Unclosed "+O,g)}function T(){return w.length===0&&g>=C}function I(O){if(w.length)return w.pop();if(!(g>=C)){var N=O?O.ignoreUnclosed:!1;switch(i=r.charCodeAt(g),i){case yn:case Pr:case Cn:case kn:case bn:{a=g;do a+=1,i=r.charCodeAt(a);while(i===Pr||i===yn||i===Cn||i===kn||i===bn);v=["space",r.slice(g,a)],g=a-1;break}case Wf:case Hf:case Zf:case Kf:case eh:case Xf:case Jf:{var F=String.fromCharCode(i);v=[F,F,g];break}case Yf:{if(h=b.length?b.pop()[1]:"",_=r.charCodeAt(g+1),h==="url"&&_!==Gi&&_!==ps&&_!==Pr&&_!==yn&&_!==Cn&&_!==bn&&_!==kn){a=g;do{if(u=!1,a=r.indexOf(")",a+1),a===-1)if(e||N){a=g;break}else R("bracket");for(d=a;r.charCodeAt(d-1)===gn;)d-=1,u=!u}while(u);v=["brackets",r.slice(g,a+1),g,a],g=a}else a=r.indexOf(")",g+1),c=r.slice(g,a+1),a===-1||rh.test(c)?v=["(","(",g]:(v=["brackets",c,g,a],g=a);break}case Gi:case ps:{s=i===Gi?"'":'"',a=g;do{if(u=!1,a=r.indexOf(s,a+1),a===-1)if(e||N){a=g+1;break}else R("string");for(d=a;r.charCodeAt(d-1)===gn;)d-=1,u=!u}while(u);v=["string",r.slice(g,a+1),g,a],g=a;break}case th:{wn.lastIndex=g+1,wn.test(r),wn.lastIndex===0?a=r.length-1:a=wn.lastIndex-2,v=["at-word",r.slice(g,a+1),g,a],g=a;break}case gn:{for(a=g,l=!0;r.charCodeAt(a+1)===gn;)a+=1,l=!l;if(i=r.charCodeAt(a+1),l&&i!==ms&&i!==Pr&&i!==yn&&i!==Cn&&i!==kn&&i!==bn&&(a+=1,_s.test(r.charAt(a)))){for(;_s.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===Pr&&(a+=1)}v=["word",r.slice(g,a+1),g,a],g=a;break}default:{i===ms&&r.charCodeAt(g+1)===Qf?(a=r.indexOf("*/",g+2)+1,a===0&&(e||N?a=r.length:R("comment")),v=["comment",r.slice(g,a+1),g,a],g=a):(Sn.lastIndex=g+1,Sn.test(r),Sn.lastIndex===0?a=r.length-1:a=Sn.lastIndex-2,v=["word",r.slice(g,a+1),g,a],b.push(v),g=a);break}}return g++,v}}function M(O){w.push(O)}return{back:M,endOfFile:T,nextToken:I,position:S}},tu=Qt,Qn=function(n){De(t,n);function t(r){var e;return e=n.call(this,r)||this,e.type="atrule",e}var o=t.prototype;return o.append=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=n.prototype.append).call.apply(s,[].concat([this],i))},o.prepend=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=n.prototype.prepend).call.apply(s,[].concat([this],i))},t}(tu),_a=Qn;Qn.default=Qn;tu.registerAtRule(Qn);var ru=Qt,nu,iu,_r=function(n){De(t,n);function t(r){var e;return e=n.call(this,r)||this,e.type="root",e.nodes||(e.nodes=[]),e}var o=t.prototype;return o.normalize=function(e,i,a){var s=n.prototype.normalize.call(this,e);if(i){if(a==="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=U(s),l;!(l=c()).done;){var u=l.value;u.raws.before=i.raws.before}}return s},o.removeChild=function(e,i){var a=this.index(e);return!i&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),n.prototype.removeChild.call(this,e)},o.toResult=function(e){e===void 0&&(e={});var i=new nu(new iu,this,e);return i.stringify()},t}(ru);_r.registerLazyResult=function(n){nu=n};_r.registerProcessor=function(n){iu=n};var cn=_r;_r.default=_r;ru.registerRoot(_r);var Yr={comma:function(t){return Yr.split(t,[","],!0)},space:function(t){var o=[" ",`
29
- `," "];return Yr.split(t,o)},split:function(t,o,r){for(var e=[],i="",a=!1,s=0,c=!1,l="",u=!1,d=U(t),h;!(h=d()).done;){var _=h.value;u?u=!1:_==="\\"?u=!0:c?_===l&&(c=!1):_==='"'||_==="'"?(c=!0,l=_):_==="("?s+=1:_===")"?s>0&&(s-=1):s===0&&o.includes(_)&&(a=!0),a?(i!==""&&e.push(i.trim()),i="",a=!1):i+=_}return(r||i!=="")&&e.push(i.trim()),e}},ou=Yr;Yr.default=Yr;var au=Qt,ih=ou,ei=function(n){De(t,n);function t(o){var r;return r=n.call(this,o)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Oe(t,[{key:"selectors",get:function(){return ih.comma(this.selector)},set:function(r){var e=this.selector?this.selector.match(/,\s*/):null,i=e?e[0]:","+this.raw("between","beforeOpen");this.selector=r.join(i)}}]),t}(au),va=ei;ei.default=ei;au.registerRule(ei);var oh=Si,ah=nh,sh=Ei,ch=_a,uh=cn,vs=va,gs={empty:!0,space:!0};function lh(n){for(var t=n.length-1;t>=0;t--){var o=n[t],r=o[3]||o[2];if(r)return r}}var dh=function(){function n(o){this.input=o,this.root=new uh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var t=n.prototype;return t.atrule=function(r){var e=new ch;e.name=r[1].slice(1),e.name===""&&this.unnamedAtrule(e,r),this.init(e,r[2]);for(var i,a,s,c=!1,l=!1,u=[],d=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),i=r[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){e.source.end=this.getPosition(r[2]),e.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(e.source.end=this.getPosition(a[3]||a[2]),e.source.end.offset++)}this.end(r);break}else u.push(r);else u.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}e.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(e.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(e,"params",u),c&&(r=u[u.length-1],e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++,this.spaces=e.raws.between,e.raws.between="")):(e.raws.afterName="",e.params=""),l&&(e.nodes=[],this.current=e)},t.checkMissedSemicolon=function(r){var e=this.colon(r);if(e!==!1){for(var i=0,a,s=e-1;s>=0&&(a=r[s],!(a[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}},t.colon=function(r){for(var e=0,i,a,s,c=U(r.entries()),l;!(l=c()).done;){var u=l.value,d=u[0],h=u[1];if(i=h,a=i[0],a==="("&&(e+=1),a===")"&&(e-=1),e===0&&a===":")if(!s)this.doubleColon(i);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=i}return!1},t.comment=function(r){var e=new sh;this.init(e,r[2]),e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++;var i=r[1].slice(2,-2);if(/^\s*$/.test(i))e.text="",e.raws.left=i,e.raws.right="";else{var a=i.match(/^(\s*)([^]*\S)(\s*)$/);e.text=a[2],e.raws.left=a[1],e.raws.right=a[3]}},t.createTokenizer=function(){this.tokenizer=ah(this.input)},t.decl=function(r,e){var i=new oh;this.init(i,r[0][2]);var a=r[r.length-1];for(a[0]===";"&&(this.semicolon=!0,r.pop()),i.source.end=this.getPosition(a[3]||a[2]||lh(r)),i.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),i.raws.before+=r.shift()[1];for(i.source.start=this.getPosition(r[0][2]),i.prop="";r.length;){var s=r[0][0];if(s===":"||s==="space"||s==="comment")break;i.prop+=r.shift()[1]}i.raws.between="";for(var c;r.length;)if(c=r.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 l=[],u;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l.push(r.shift());this.precheckMissedSemicolon(r);for(var d=r.length-1;d>=0;d--){if(c=r[d],c[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(r,d);h=this.spacesFromEnd(r)+h,h!==" !important"&&(i.raws.important=h);break}else if(c[1].toLowerCase()==="important"){for(var _=r.slice(0),v="",C=d;C>0;C--){var g=_[C][0];if(v.trim().indexOf("!")===0&&g!=="space")break;v=_.pop()[1]+v}v.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=v,r=_)}if(c[0]!=="space"&&c[0]!=="comment")break}var b=r.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});b&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(r),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var e=new vs;this.init(e,r[2]),e.selector="",e.raws.between="",this.current=e},t.end=function(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.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())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&e.type==="rule"&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var e=this.input.fromOffset(r);return{column:e.col,line:e.line,offset:r}},t.init=function(r,e){this.current.push(r),r.source={input:this.input,start:this.getPosition(e)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var e=!1,i=null,a=!1,s=null,c=[],l=r[1].startsWith("--"),u=[],d=r;d;){if(i=d[0],u.push(d),i==="("||i==="[")s||(s=d),c.push(i==="("?")":"]");else if(l&&a&&i==="{")s||(s=d),c.push("}");else if(c.length===0)if(i===";")if(a){this.decl(u,l);return}else break;else if(i==="{"){this.rule(u);return}else if(i==="}"){this.tokenizer.back(u.pop()),e=!0;break}else i===":"&&(a=!0);else i===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),c.length>0&&this.unclosedBracket(s),e&&a){if(!l)for(;u.length&&(d=u[u.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,l)}else this.unknownWord(u)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,e,i,a){for(var s,c,l=i.length,u="",d=!0,h,_,v=0;v<l;v+=1)s=i[v],c=s[0],c==="space"&&v===l-1&&!a?d=!1:c==="comment"?(_=i[v-1]?i[v-1][0]:"empty",h=i[v+1]?i[v+1][0]:"empty",!gs[_]&&!gs[h]?u.slice(-1)===","?d=!1:u+=s[1]:d=!1):u+=s[1];if(!d){var C=i.reduce(function(g,b){return g+b[1]},"");r.raws[e]={raw:C,value:u}}r[e]=u},t.rule=function(r){r.pop();var e=new vs;this.init(e,r[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(e,"selector",r),this.current=e},t.spacesAndCommentsFromEnd=function(r){for(var e,i="";r.length&&(e=r[r.length-1][0],!(e!=="space"&&e!=="comment"));)i=r.pop()[1]+i;return i},t.spacesAndCommentsFromStart=function(r){for(var e,i="";r.length&&(e=r[0][0],!(e!=="space"&&e!=="comment"));)i+=r.shift()[1];return i},t.spacesFromEnd=function(r){for(var e,i="";r.length&&(e=r[r.length-1][0],e==="space");)i=r.pop()[1]+i;return i},t.stringFrom=function(r,e){for(var i="",a=e;a<r.length;a++)i+=r[a][1];return r.splice(e,r.length-e),i},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})},n}(),fh=dh,hh=Qt,ph=fh,mh=Ai;function ti(n,t){var o=new mh(n,t),r=new ph(o);try{r.parse()}catch(e){throw e}return r.root}var ga=ti;ti.default=ti;hh.registerParse(ti);var st=Ut.isClean,_h=Ut.my,vh=zc,gh=ki,yh=Qt,bh=pa,ys=ma,Ch=ga,kh=cn,wh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sh={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},Ah={Once:!0,postcssPlugin:!0,prepare:!0},vr=0;function Ir(n){return(typeof n>"u"?"undefined":H(n))==="object"&&typeof n.then=="function"}function su(n){var t=!1,o=wh[n.type];return n.type==="decl"?t=n.prop.toLowerCase():n.type==="atrule"&&(t=n.name.toLowerCase()),t&&n.append?[o,o+"-"+t,vr,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:n.append?[o,vr,o+"Exit"]:[o,o+"Exit"]}function bs(n){var t;return n.type==="document"?t=["Document",vr,"DocumentExit"]:n.type==="root"?t=["Root",vr,"RootExit"]:t=su(n),{eventIndex:0,events:t,iterator:0,node:n,visitorIndex:0,visitors:[]}}function Ao(n){return n[st]=!1,n.nodes&&n.nodes.forEach(function(t){return Ao(t)}),n}var Eo={},gr=function(){function n(o,r,e){var i=this;this.stringified=!1,this.processed=!1;var a;if((typeof r>"u"?"undefined":H(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))a=Ao(r);else if(j(r,n)||j(r,ys))a=Ao(r.root),r.map&&(typeof e.map>"u"&&(e.map={}),e.map.inline||(e.map.inline=!1),e.map.prev=r.map);else{var s=Ch;e.syntax&&(s=e.syntax.parse),e.parser&&(s=e.parser),s.parse&&(s=s.parse);try{a=s(r,e)}catch(c){this.processed=!0,this.error=c}a&&!a[_h]&&yh.rebuild(a)}this.result=new ys(o,a,e),this.helpers=ie({},Eo,{postcss:Eo,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":H(c))==="object"&&c.prepare?ie({},c,c.prepare(i.result)):c})}var t=n.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,e){var i=this.result.lastPlugin;try{if(e&&e.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=i.postcssPlugin,r.setMessage();else if(i.postcssVersion)var a,s,c,l,u}catch(d){console&&console.error&&console.error(d)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var e=function(u,d,h){r.listeners[d]||(r.listeners[d]=[]),r.listeners[d].push([u,h])},i=U(this.plugins),a;!(a=i()).done;){var s=a.value;if((typeof s>"u"?"undefined":H(s))==="object")for(var c in s){if(!Sh[c]&&/^[A-Z]/.test(c))throw new Error("Unknown event "+c+" in "+s.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ah[c])if(H(s[c])==="object")for(var l in s[c])l==="*"?e(s,c,s[c][l]):e(s,c+"-"+l.toLowerCase(),s[c][l]);else typeof s[c]=="function"&&e(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return sa(function(){var e,i,a,s,c,l,u,d,h,_,v,C;return Gr(this,function(g){switch(g.label){case 0:r.plugin=0,e=0,g.label=1;case 1:if(!(e<r.plugins.length))return[3,6];if(i=r.plugins[e],a=r.runOnRoot(i),!Ir(a))return[3,5];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,a];case 3:return g.sent(),[3,5];case 4:throw s=g.sent(),r.handleError(s);case 5:return e++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];c=r.result.root,g.label=7;case 7:if(c[st])return[3,14];c[st]=!0,l=[bs(c)],g.label=8;case 8:if(!(l.length>0))return[3,13];if(u=r.visitTick(l),!Ir(u))return[3,12];g.label=9;case 9:return g.trys.push([9,11,,12]),[4,u];case 10:return g.sent(),[3,12];case 11:throw d=g.sent(),h=l[l.length-1].node,r.handleError(d,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];_=function(){var b,w,S,R,T;return Gr(this,function(I){switch(I.label){case 0:b=C.value,w=b[0],S=b[1],r.result.lastPlugin=w,I.label=1;case 1:return I.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(R=c.nodes.map(function(M){return S(M,r.helpers)}),[4,Promise.all(R)]);case 2:return I.sent(),[3,5];case 3:return[4,S(c,r.helpers)];case 4:I.sent(),I.label=5;case 5:return[3,7];case 6:throw T=I.sent(),r.handleError(T);case 7:return[2]}})},v=U(r.listeners.OnceExit),g.label=15;case 15:return(C=v()).done?[3,18]:[5,Ec(_())];case 16:g.sent(),g.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var e=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":H(r))==="object"&&r.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(a){return r.Once(a,e.helpers)});return Ir(i[0])?Promise.all(i):i}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(a){throw this.handleError(a)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,e=gh;r.syntax&&(e=r.syntax.stringify),r.stringifier&&(e=r.stringifier),e.stringify&&(e=e.stringify);var i=new vh(e,this.result.root,this.result.opts),a=i.generate();return this.result.css=a[0],this.result.map=a[1],this.result},t.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 r=U(this.plugins),e;!(e=r()).done;){var i=e.value,a=this.runOnRoot(i);if(Ir(a))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[st];)s[st]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var c=U(s.nodes),l;!(l=c()).done;){var u=l.value;this.visitSync(this.listeners.OnceExit,u)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(r,e){return this.async().then(r,e)},t.toString=function(){return this.css},t.visitSync=function(r,e){for(var i=U(r),a;!(a=i()).done;){var s=a.value,c=s[0],l=s[1];this.result.lastPlugin=c;var u=void 0;try{u=l(e,this.helpers)}catch(d){throw this.handleError(d,e.proxyOf)}if(e.type!=="root"&&e.type!=="document"&&!e.parent)return!0;if(Ir(u))throw this.getAsyncError()}},t.visitTick=function(r){var e=r[r.length-1],i=e.node,a=e.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){r.pop();return}if(a.length>0&&e.visitorIndex<a.length){var s=a[e.visitorIndex],c=s[0],l=s[1];e.visitorIndex+=1,e.visitorIndex===a.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=c;try{return l(i.toProxy(),this.helpers)}catch(v){throw this.handleError(v,i)}}if(e.iterator!==0){for(var u=e.iterator,d;d=i.nodes[i.indexes[u]];)if(i.indexes[u]+=1,!d[st]){d[st]=!0,r.push(bs(d));return}e.iterator=0,delete i.indexes[u]}for(var h=e.events;e.eventIndex<h.length;){var _=h[e.eventIndex];if(e.eventIndex+=1,_===vr){i.nodes&&i.nodes.length&&(i[st]=!0,e.iterator=i.getIterator());return}else if(this.listeners[_]){e.visitors=this.listeners[_];return}}r.pop()},t.walkSync=function(r){var e=this;r[st]=!0;for(var i=su(r),a=U(i),s;!(s=a()).done;){var c=s.value;if(c===vr)r.nodes&&r.each(function(u){u[st]||e.walkSync(u)});else{var l=this.listeners[c];if(l&&this.visitSync(l,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Oe(n,[{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"}}]),n}();gr.registerPostcss=function(n){Eo=n};var cu=gr;gr.default=gr;kh.registerLazyResult(gr);bh.registerLazyResult(gr);var Eh=zc,Rh=ki,xh=ga,Th=ma,Ro=function(){function n(o,r,e){r=r.toString(),this.stringified=!1,this._processor=o,this._css=r,this._opts=e,this._map=void 0;var i,a=Rh;this.result=new Th(this._processor,i,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new Eh(a,i,this._opts,r);if(c.isMap()){var l=c.generate(),u=l[0],d=l[1];u&&(this.result.css=u),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.css}var t=n.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,e){return this.async().then(r,e)},t.toString=function(){return this._css},t.warnings=function(){return[]},Oe(n,[{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 r,e=xh;try{r=e(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),n}(),Ph=Ro;Ro.default=Ro;var Ih=Ph,Oh=cu,Bh=pa,Mh=cn,Jr=function(){function n(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var t=n.prototype;return t.normalize=function(r){for(var e=[],i=U(r),a;!(a=i()).done;){var s=a.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":H(s))==="object"&&Array.isArray(s.plugins))e=e.concat(s.plugins);else if((typeof s>"u"?"undefined":H(s))==="object"&&s.postcssPlugin)e.push(s);else if(typeof s=="function")e.push(s);else if(!((typeof s>"u"?"undefined":H(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return e},t.process=function(r,e){return e===void 0&&(e={}),!this.plugins.length&&!e.parser&&!e.stringifier&&!e.syntax?new Ih(this,r,e):new Oh(this,r,e)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},n}(),Dh=Jr;Jr.default=Jr;Mh.registerProcessor(Jr);Bh.registerProcessor(Jr);var Nh=Si,Lh=Fc,Fh=Ei,Uh=_a,$h=Ai,Vh=cn,jh=va;function Zr(n,t){if(Array.isArray(n))return n.map(function(d){return Zr(d)});var o=n.inputs,r=zr(n,["inputs"]);if(o){t=[];for(var e=U(o),i;!(i=e()).done;){var a=i.value,s=ie({},a,{__proto__:$h.prototype});s.map&&(s.map=ie({},s.map,{__proto__:Lh.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=n.nodes.map(function(d){return Zr(d,t)})),r.source){var c=r.source,l=c.inputId,u=zr(c,["inputId"]);r.source=u,l!=null&&(r.source.input=t[l])}if(r.type==="root")return new Vh(r);if(r.type==="decl")return new Nh(r);if(r.type==="rule")return new jh(r);if(r.type==="comment")return new Fh(r);if(r.type==="atrule")return new Uh(r);throw new Error("Unknown node type: "+n.type)}var zh=Zr;Zr.default=Zr;var qh=da,uu=Si,Gh=cu,Wh=Qt,ya=Dh,Hh=ki,Yh=zh,lu=pa,Jh=eu,du=Ei,fu=_a,Zh=ma,Kh=Ai,Xh=ga,Qh=ou,hu=va,pu=cn,ep=wi;function se(){for(var n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new ya(t)}se.plugin=function(t,o){var r=!1;function e(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
30
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Wn.LANG&&Wn.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
31
- https://www.w3ctech.com/topic/2226`));var l=o.apply(void 0,[].concat(s));return l.postcssPlugin=t,l.postcssVersion=new ya().version,l}var i;return Object.defineProperty(e,"postcss",{get:function(){return i||(i=e()),i}}),e.process=function(a,s,c){return se([e(c)]).process(a,s)},e};se.stringify=Hh;se.parse=Xh;se.fromJSON=Yh;se.list=Qh;se.comment=function(n){return new du(n)};se.atRule=function(n){return new fu(n)};se.decl=function(n){return new uu(n)};se.rule=function(n){return new hu(n)};se.root=function(n){return new pu(n)};se.document=function(n){return new lu(n)};se.CssSyntaxError=qh;se.Declaration=uu;se.Container=Wh;se.Processor=ya;se.Document=lu;se.Comment=du;se.Warning=Jh;se.AtRule=fu;se.Result=Zh;se.Input=Kh;se.Rule=hu;se.Root=pu;se.Node=ep;Gh.registerPostcss(se);var tp=se;se.default=se;var ve=pf(tp);ve.stringify;ve.fromJSON;ve.plugin;ve.parse;ve.list;ve.document;ve.comment;ve.atRule;ve.rule;ve.decl;ve.root;ve.CssSyntaxError;ve.Declaration;ve.Container;ve.Processor;ve.Document;ve.Comment;ve.Warning;ve.AtRule;ve.Result;ve.Input;ve.Rule;ve.Root;ve.Node;var rp=Object.defineProperty,np=function(n,t,o){return t in n?rp(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o},We=function(n,t,o){return np(n,(typeof t>"u"?"undefined":H(t))!=="symbol"?t+"":t,o)};function ip(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function op(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var o=function r(){return j(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(o,r,e.get?e:{enumerable:!0,get:function(){return n[r]}})}),o}var ba={exports:{}},pe=String,mu=function(){return{isColorSupported:!1,reset:pe,bold:pe,dim:pe,italic:pe,underline:pe,inverse:pe,hidden:pe,strikethrough:pe,black:pe,red:pe,green:pe,yellow:pe,blue:pe,magenta:pe,cyan:pe,white:pe,gray:pe,bgBlack:pe,bgRed:pe,bgGreen:pe,bgYellow:pe,bgBlue:pe,bgMagenta:pe,bgCyan:pe,bgWhite:pe}};ba.exports=mu();ba.exports.createColors=mu;var ap=ba.exports,sp={},cp=Object.freeze(Object.defineProperty({__proto__:null,default:sp},Symbol.toStringTag,{value:"Module"})),ke=op(cp),Cs=ap,ks=ke,xo=function(n){De(t,n);function t(r,e,i,a,s,c){var l;return l=n.call(this,r)||this,l.name="CssSyntaxError",l.reason=r,s&&(l.file=s),a&&(l.source=a),c&&(l.plugin=c),typeof e<"u"&&typeof i<"u"&&(typeof e=="number"?(l.line=e,l.column=i):(l.line=e.line,l.column=e.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}var o=t.prototype;return o.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},o.showSourceCode=function(e){var i=this;if(!this.source)return"";var a=this.source;e==null&&(e=Cs.isColorSupported),ks&&e&&(a=ks(a));var s=a.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length,d,h;if(e){var _=Cs.createColors(!0),v=_.bold,C=_.gray,g=_.red;d=function(b){return v(g(b))},h=function(b){return C(b)}}else d=h=function(b){return b};return s.slice(c,l).map(function(b,w){var S=c+1+w,R=" "+(" "+S).slice(-u)+" | ";if(S===i.line){var T=h(R.replace(/\d/g," "))+b.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+h(R)+b+`
28
+ `),i=u.length-l):i+=u.length,d&&h!=="start"){var _=d.parent||{raws:{}},v=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!v||d!==_.last||_.raws.semicolon)&&(d.source&&d.source.end?(s.source=r.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=e,s.generated.column=i-2,r.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=i-1,r.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(e){return e.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var e=this.memoizedPaths.get(r);if(e)return e;var i=this.opts.to?Vn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Vn(Vc(i,this.mapOpts.annotation)));var a=$c(i,r);return this.memoizedPaths.set(r,a),a},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var a=i.source.input.map;r.previousMaps.includes(a)||r.previousMaps.push(a)}});else{var e=new Ff(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,e={};if(this.root)this.root.walk(function(a){if(a.source){var s=a.source.input.from;if(s&&!e[s]){e[s]=!0;var c=r.usesFileUrls?r.toFileUrl(s):r.toUrl(r.path(s));r.map.setSourceContent(c,a.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)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return Dt?Dt.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var e=this.memoizedFileURLs.get(r);if(e)return e;if(hs){var i=hs(r).toString();return this.memoizedFileURLs.set(r,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var e=this.memoizedURLs.get(r);if(e)return e;jc==="\\"&&(r=r.replace(/\\/g,"/"));var i=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,i),i},n}(),zc=Vf,jf=wi,ko=function(n){De(t,n);function t(o){var r;return r=n.call(this,o)||this,r.type="comment",r}return t}(jf),Ei=ko;ko.default=ko;var qc=Ut.isClean,Wc=Ut.my,Gc=Si,Hc=Ei,zf=wi,Yc,fa,ha,Jc;function Zc(n){return n.map(function(t){return t.nodes&&(t.nodes=Zc(t.nodes)),delete t.source,t})}function Kc(n){if(n[qc]=!1,n.proxyOf.nodes)for(var t=U(n.proxyOf.nodes),o;!(o=t()).done;){var r=o.value;Kc(r)}}var kt=function(n){De(t,n);function t(){return n.apply(this,arguments)||this}var o=t.prototype;return o.append=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];for(var s=U(i),c;!(c=s()).done;)for(var l=c.value,u=this.normalize(l,this.last),d=U(u),h;!(h=d()).done;){var _=h.value;this.proxyOf.nodes.push(_)}return this.markDirty(),this},o.cleanRaws=function(e){if(n.prototype.cleanRaws.call(this,e),this.nodes)for(var i=U(this.nodes),a;!(a=i()).done;){var s=a.value;s.cleanRaws(e)}},o.each=function(e){if(this.proxyOf.nodes){for(var i=this.getIterator(),a,s;this.indexes[i]<this.proxyOf.nodes.length&&(a=this.indexes[i],s=e(this.proxyOf.nodes[a],a),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}},o.every=function(e){return this.nodes.every(e)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},o.getProxyProcessor=function(){return{get:function(i,a){return a==="proxyOf"?i:i[a]?a==="each"||typeof a=="string"&&a.startsWith("walk")?function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var u;return(u=i)[a].apply(u,[].concat(c.map(function(d){return typeof d=="function"?function(h,_){return d(h.toProxy(),_)}:d})))}:a==="every"||a==="some"?function(s){return i[a](function(c){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];return s.apply(void 0,[].concat([c.toProxy()],u))})}:a==="root"?function(){return i.root().toProxy()}:a==="nodes"?i.nodes.map(function(s){return s.toProxy()}):a==="first"||a==="last"?i[a].toProxy():i[a]:i[a]},set:function(i,a,s){return i[a]===s||(i[a]=s,(a==="name"||a==="params"||a==="selector")&&i.markDirty()),!0}}},o.index=function(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},o.insertAfter=function(e,i){var a=this.index(e),s=this.normalize(i,this.proxyOf.nodes[a]).reverse();a=this.index(e);for(var c=U(s),l;!(l=c()).done;){var u=l.value;this.proxyOf.nodes.splice(a+1,0,u)}var d;for(var h in this.indexes)d=this.indexes[h],a<d&&(this.indexes[h]=d+s.length);return this.markDirty(),this},o.insertBefore=function(e,i){var a=this.index(e),s=a===0?"prepend":!1,c=this.normalize(i,this.proxyOf.nodes[a],s).reverse();a=this.index(e);for(var l=U(c),u;!(u=l()).done;){var d=u.value;this.proxyOf.nodes.splice(a,0,d)}var h;for(var _ in this.indexes)h=this.indexes[_],a<=h&&(this.indexes[_]=h+c.length);return this.markDirty(),this},o.normalize=function(e,i){var a=this;if(typeof e=="string")e=Zc(Yc(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(var s=U(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(var u=U(e),d;!(d=u()).done;){var h=d.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Gc(e)]}else if(e.selector)e=[new fa(e)];else if(e.name)e=[new ha(e)];else if(e.text)e=[new Hc(e)];else throw new Error("Unknown node type in node creation");var _=e.map(function(v){return v[Wc]||t.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[qc]&&Kc(v),typeof v.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(v.raws.before=i.raws.before.replace(/\S/g,"")),v.parent=a.proxyOf,v});return _},o.prepend=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];i=i.reverse();for(var s=U(i),c;!(c=s()).done;){for(var l=c.value,u=this.normalize(l,this.first,"prepend").reverse(),d=U(u),h;!(h=d()).done;){var _=h.value;this.proxyOf.nodes.unshift(_)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+u.length}return this.markDirty(),this},o.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},o.removeAll=function(){for(var e=U(this.proxyOf.nodes),i;!(i=e()).done;){var a=i.value;a.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var i;for(var a in this.indexes)i=this.indexes[a],i>=e&&(this.indexes[a]=i-1);return this.markDirty(),this},o.replaceValues=function(e,i,a){return a||(a=i,i={}),this.walkDecls(function(s){i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(e,a))}),this.markDirty(),this},o.some=function(e){return this.nodes.some(e)},o.walk=function(e){return this.each(function(i,a){var s;try{s=e(i,a)}catch(c){throw i.addToError(c)}return s!==!1&&i.walk&&(s=i.walk(e)),s})},o.walkAtRules=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="atrule"&&e.test(a.name))return i(a,s)}):this.walk(function(a,s){if(a.type==="atrule"&&a.name===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="atrule")return i(a,s)}))},o.walkComments=function(e){return this.walk(function(i,a){if(i.type==="comment")return e(i,a)})},o.walkDecls=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="decl"&&e.test(a.prop))return i(a,s)}):this.walk(function(a,s){if(a.type==="decl"&&a.prop===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="decl")return i(a,s)}))},o.walkRules=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="rule"&&e.test(a.selector))return i(a,s)}):this.walk(function(a,s){if(a.type==="rule"&&a.selector===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="rule")return i(a,s)}))},Oe(t,[{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]}}]),t}(zf);kt.registerParse=function(n){Yc=n};kt.registerRule=function(n){fa=n};kt.registerAtRule=function(n){ha=n};kt.registerRoot=function(n){Jc=n};var er=kt;kt.default=kt;kt.rebuild=function(n){n.type==="atrule"?Object.setPrototypeOf(n,ha.prototype):n.type==="rule"?Object.setPrototypeOf(n,fa.prototype):n.type==="decl"?Object.setPrototypeOf(n,Gc.prototype):n.type==="comment"?Object.setPrototypeOf(n,Hc.prototype):n.type==="root"&&Object.setPrototypeOf(n,Jc.prototype),n[Wc]=!0,n.nodes&&n.nodes.forEach(function(t){kt.rebuild(t)})};var qf=er,Xc,Qc,Hr=function(n){De(t,n);function t(r){var e;return e=n.call(this,ie({type:"document"},r))||this,e.nodes||(e.nodes=[]),e}var o=t.prototype;return o.toResult=function(e){e===void 0&&(e={});var i=new Xc(new Qc,this,e);return i.stringify()},t}(qf);Hr.registerLazyResult=function(n){Xc=n};Hr.registerProcessor=function(n){Qc=n};var pa=Hr;Hr.default=Hr;var wo=function(){function n(o,r){if(r===void 0&&(r={}),this.type="warning",this.text=o,r.node&&r.node.source){var e=r.node.rangeBy(r);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(var i in r)this[i]=r[i]}var t=n.prototype;return t.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},n}(),eu=wo;wo.default=wo;var Wf=eu,So=function(){function n(o,r,e){this.processor=o,this.messages=[],this.root=r,this.opts=e,this.css=void 0,this.map=void 0}var t=n.prototype;return t.toString=function(){return this.css},t.warn=function(r,e){e===void 0&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var i=new Wf(r,e);return this.messages.push(i),i},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},Oe(n,[{key:"content",get:function(){return this.css}}]),n}(),ma=So;So.default=So;var Wi=39,ps=34,gn=92,ms=47,yn=10,Ir=32,bn=12,Cn=9,kn=13,Gf=91,Hf=93,Yf=40,Jf=41,Zf=123,Kf=125,Xf=59,Qf=42,eh=58,th=64,wn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Sn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rh=/.[\r\n"'(/\\]/,_s=/[\da-f]/i,nh=function(t,o){o===void 0&&(o={});var r=t.css.valueOf(),e=o.ignoreErrors,i,a,s,c,l,u,d,h,_,v,C=r.length,g=0,b=[],w=[];function S(){return g}function R(O){throw t.error("Unclosed "+O,g)}function T(){return w.length===0&&g>=C}function I(O){if(w.length)return w.pop();if(!(g>=C)){var N=O?O.ignoreUnclosed:!1;switch(i=r.charCodeAt(g),i){case yn:case Ir:case Cn:case kn:case bn:{a=g;do a+=1,i=r.charCodeAt(a);while(i===Ir||i===yn||i===Cn||i===kn||i===bn);v=["space",r.slice(g,a)],g=a-1;break}case Gf:case Hf:case Zf:case Kf:case eh:case Xf:case Jf:{var F=String.fromCharCode(i);v=[F,F,g];break}case Yf:{if(h=b.length?b.pop()[1]:"",_=r.charCodeAt(g+1),h==="url"&&_!==Wi&&_!==ps&&_!==Ir&&_!==yn&&_!==Cn&&_!==bn&&_!==kn){a=g;do{if(u=!1,a=r.indexOf(")",a+1),a===-1)if(e||N){a=g;break}else R("bracket");for(d=a;r.charCodeAt(d-1)===gn;)d-=1,u=!u}while(u);v=["brackets",r.slice(g,a+1),g,a],g=a}else a=r.indexOf(")",g+1),c=r.slice(g,a+1),a===-1||rh.test(c)?v=["(","(",g]:(v=["brackets",c,g,a],g=a);break}case Wi:case ps:{s=i===Wi?"'":'"',a=g;do{if(u=!1,a=r.indexOf(s,a+1),a===-1)if(e||N){a=g+1;break}else R("string");for(d=a;r.charCodeAt(d-1)===gn;)d-=1,u=!u}while(u);v=["string",r.slice(g,a+1),g,a],g=a;break}case th:{wn.lastIndex=g+1,wn.test(r),wn.lastIndex===0?a=r.length-1:a=wn.lastIndex-2,v=["at-word",r.slice(g,a+1),g,a],g=a;break}case gn:{for(a=g,l=!0;r.charCodeAt(a+1)===gn;)a+=1,l=!l;if(i=r.charCodeAt(a+1),l&&i!==ms&&i!==Ir&&i!==yn&&i!==Cn&&i!==kn&&i!==bn&&(a+=1,_s.test(r.charAt(a)))){for(;_s.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===Ir&&(a+=1)}v=["word",r.slice(g,a+1),g,a],g=a;break}default:{i===ms&&r.charCodeAt(g+1)===Qf?(a=r.indexOf("*/",g+2)+1,a===0&&(e||N?a=r.length:R("comment")),v=["comment",r.slice(g,a+1),g,a],g=a):(Sn.lastIndex=g+1,Sn.test(r),Sn.lastIndex===0?a=r.length-1:a=Sn.lastIndex-2,v=["word",r.slice(g,a+1),g,a],b.push(v),g=a);break}}return g++,v}}function M(O){w.push(O)}return{back:M,endOfFile:T,nextToken:I,position:S}},tu=er,Qn=function(n){De(t,n);function t(r){var e;return e=n.call(this,r)||this,e.type="atrule",e}var o=t.prototype;return o.append=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=n.prototype.append).call.apply(s,[].concat([this],i))},o.prepend=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=n.prototype.prepend).call.apply(s,[].concat([this],i))},t}(tu),_a=Qn;Qn.default=Qn;tu.registerAtRule(Qn);var ru=er,nu,iu,vr=function(n){De(t,n);function t(r){var e;return e=n.call(this,r)||this,e.type="root",e.nodes||(e.nodes=[]),e}var o=t.prototype;return o.normalize=function(e,i,a){var s=n.prototype.normalize.call(this,e);if(i){if(a==="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=U(s),l;!(l=c()).done;){var u=l.value;u.raws.before=i.raws.before}}return s},o.removeChild=function(e,i){var a=this.index(e);return!i&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),n.prototype.removeChild.call(this,e)},o.toResult=function(e){e===void 0&&(e={});var i=new nu(new iu,this,e);return i.stringify()},t}(ru);vr.registerLazyResult=function(n){nu=n};vr.registerProcessor=function(n){iu=n};var cn=vr;vr.default=vr;ru.registerRoot(vr);var Yr={comma:function(t){return Yr.split(t,[","],!0)},space:function(t){var o=[" ",`
29
+ `," "];return Yr.split(t,o)},split:function(t,o,r){for(var e=[],i="",a=!1,s=0,c=!1,l="",u=!1,d=U(t),h;!(h=d()).done;){var _=h.value;u?u=!1:_==="\\"?u=!0:c?_===l&&(c=!1):_==='"'||_==="'"?(c=!0,l=_):_==="("?s+=1:_===")"?s>0&&(s-=1):s===0&&o.includes(_)&&(a=!0),a?(i!==""&&e.push(i.trim()),i="",a=!1):i+=_}return(r||i!=="")&&e.push(i.trim()),e}},ou=Yr;Yr.default=Yr;var au=er,ih=ou,ei=function(n){De(t,n);function t(o){var r;return r=n.call(this,o)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Oe(t,[{key:"selectors",get:function(){return ih.comma(this.selector)},set:function(r){var e=this.selector?this.selector.match(/,\s*/):null,i=e?e[0]:","+this.raw("between","beforeOpen");this.selector=r.join(i)}}]),t}(au),va=ei;ei.default=ei;au.registerRule(ei);var oh=Si,ah=nh,sh=Ei,ch=_a,uh=cn,vs=va,gs={empty:!0,space:!0};function lh(n){for(var t=n.length-1;t>=0;t--){var o=n[t],r=o[3]||o[2];if(r)return r}}var dh=function(){function n(o){this.input=o,this.root=new uh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var t=n.prototype;return t.atrule=function(r){var e=new ch;e.name=r[1].slice(1),e.name===""&&this.unnamedAtrule(e,r),this.init(e,r[2]);for(var i,a,s,c=!1,l=!1,u=[],d=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),i=r[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){e.source.end=this.getPosition(r[2]),e.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(e.source.end=this.getPosition(a[3]||a[2]),e.source.end.offset++)}this.end(r);break}else u.push(r);else u.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}e.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(e.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(e,"params",u),c&&(r=u[u.length-1],e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++,this.spaces=e.raws.between,e.raws.between="")):(e.raws.afterName="",e.params=""),l&&(e.nodes=[],this.current=e)},t.checkMissedSemicolon=function(r){var e=this.colon(r);if(e!==!1){for(var i=0,a,s=e-1;s>=0&&(a=r[s],!(a[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}},t.colon=function(r){for(var e=0,i,a,s,c=U(r.entries()),l;!(l=c()).done;){var u=l.value,d=u[0],h=u[1];if(i=h,a=i[0],a==="("&&(e+=1),a===")"&&(e-=1),e===0&&a===":")if(!s)this.doubleColon(i);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=i}return!1},t.comment=function(r){var e=new sh;this.init(e,r[2]),e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++;var i=r[1].slice(2,-2);if(/^\s*$/.test(i))e.text="",e.raws.left=i,e.raws.right="";else{var a=i.match(/^(\s*)([^]*\S)(\s*)$/);e.text=a[2],e.raws.left=a[1],e.raws.right=a[3]}},t.createTokenizer=function(){this.tokenizer=ah(this.input)},t.decl=function(r,e){var i=new oh;this.init(i,r[0][2]);var a=r[r.length-1];for(a[0]===";"&&(this.semicolon=!0,r.pop()),i.source.end=this.getPosition(a[3]||a[2]||lh(r)),i.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),i.raws.before+=r.shift()[1];for(i.source.start=this.getPosition(r[0][2]),i.prop="";r.length;){var s=r[0][0];if(s===":"||s==="space"||s==="comment")break;i.prop+=r.shift()[1]}i.raws.between="";for(var c;r.length;)if(c=r.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 l=[],u;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l.push(r.shift());this.precheckMissedSemicolon(r);for(var d=r.length-1;d>=0;d--){if(c=r[d],c[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(r,d);h=this.spacesFromEnd(r)+h,h!==" !important"&&(i.raws.important=h);break}else if(c[1].toLowerCase()==="important"){for(var _=r.slice(0),v="",C=d;C>0;C--){var g=_[C][0];if(v.trim().indexOf("!")===0&&g!=="space")break;v=_.pop()[1]+v}v.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=v,r=_)}if(c[0]!=="space"&&c[0]!=="comment")break}var b=r.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});b&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(r),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var e=new vs;this.init(e,r[2]),e.selector="",e.raws.between="",this.current=e},t.end=function(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.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())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&e.type==="rule"&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var e=this.input.fromOffset(r);return{column:e.col,line:e.line,offset:r}},t.init=function(r,e){this.current.push(r),r.source={input:this.input,start:this.getPosition(e)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var e=!1,i=null,a=!1,s=null,c=[],l=r[1].startsWith("--"),u=[],d=r;d;){if(i=d[0],u.push(d),i==="("||i==="[")s||(s=d),c.push(i==="("?")":"]");else if(l&&a&&i==="{")s||(s=d),c.push("}");else if(c.length===0)if(i===";")if(a){this.decl(u,l);return}else break;else if(i==="{"){this.rule(u);return}else if(i==="}"){this.tokenizer.back(u.pop()),e=!0;break}else i===":"&&(a=!0);else i===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),c.length>0&&this.unclosedBracket(s),e&&a){if(!l)for(;u.length&&(d=u[u.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,l)}else this.unknownWord(u)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,e,i,a){for(var s,c,l=i.length,u="",d=!0,h,_,v=0;v<l;v+=1)s=i[v],c=s[0],c==="space"&&v===l-1&&!a?d=!1:c==="comment"?(_=i[v-1]?i[v-1][0]:"empty",h=i[v+1]?i[v+1][0]:"empty",!gs[_]&&!gs[h]?u.slice(-1)===","?d=!1:u+=s[1]:d=!1):u+=s[1];if(!d){var C=i.reduce(function(g,b){return g+b[1]},"");r.raws[e]={raw:C,value:u}}r[e]=u},t.rule=function(r){r.pop();var e=new vs;this.init(e,r[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(e,"selector",r),this.current=e},t.spacesAndCommentsFromEnd=function(r){for(var e,i="";r.length&&(e=r[r.length-1][0],!(e!=="space"&&e!=="comment"));)i=r.pop()[1]+i;return i},t.spacesAndCommentsFromStart=function(r){for(var e,i="";r.length&&(e=r[0][0],!(e!=="space"&&e!=="comment"));)i+=r.shift()[1];return i},t.spacesFromEnd=function(r){for(var e,i="";r.length&&(e=r[r.length-1][0],e==="space");)i=r.pop()[1]+i;return i},t.stringFrom=function(r,e){for(var i="",a=e;a<r.length;a++)i+=r[a][1];return r.splice(e,r.length-e),i},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})},n}(),fh=dh,hh=er,ph=fh,mh=Ai;function ti(n,t){var o=new mh(n,t),r=new ph(o);try{r.parse()}catch(e){throw e}return r.root}var ga=ti;ti.default=ti;hh.registerParse(ti);var st=Ut.isClean,_h=Ut.my,vh=zc,gh=ki,yh=er,bh=pa,ys=ma,Ch=ga,kh=cn,wh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sh={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},Ah={Once:!0,postcssPlugin:!0,prepare:!0},gr=0;function Or(n){return(typeof n>"u"?"undefined":H(n))==="object"&&typeof n.then=="function"}function su(n){var t=!1,o=wh[n.type];return n.type==="decl"?t=n.prop.toLowerCase():n.type==="atrule"&&(t=n.name.toLowerCase()),t&&n.append?[o,o+"-"+t,gr,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:n.append?[o,gr,o+"Exit"]:[o,o+"Exit"]}function bs(n){var t;return n.type==="document"?t=["Document",gr,"DocumentExit"]:n.type==="root"?t=["Root",gr,"RootExit"]:t=su(n),{eventIndex:0,events:t,iterator:0,node:n,visitorIndex:0,visitors:[]}}function Ao(n){return n[st]=!1,n.nodes&&n.nodes.forEach(function(t){return Ao(t)}),n}var Eo={},yr=function(){function n(o,r,e){var i=this;this.stringified=!1,this.processed=!1;var a;if((typeof r>"u"?"undefined":H(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))a=Ao(r);else if(j(r,n)||j(r,ys))a=Ao(r.root),r.map&&(typeof e.map>"u"&&(e.map={}),e.map.inline||(e.map.inline=!1),e.map.prev=r.map);else{var s=Ch;e.syntax&&(s=e.syntax.parse),e.parser&&(s=e.parser),s.parse&&(s=s.parse);try{a=s(r,e)}catch(c){this.processed=!0,this.error=c}a&&!a[_h]&&yh.rebuild(a)}this.result=new ys(o,a,e),this.helpers=ie({},Eo,{postcss:Eo,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":H(c))==="object"&&c.prepare?ie({},c,c.prepare(i.result)):c})}var t=n.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,e){var i=this.result.lastPlugin;try{if(e&&e.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=i.postcssPlugin,r.setMessage();else if(i.postcssVersion)var a,s,c,l,u}catch(d){console&&console.error&&console.error(d)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var e=function(u,d,h){r.listeners[d]||(r.listeners[d]=[]),r.listeners[d].push([u,h])},i=U(this.plugins),a;!(a=i()).done;){var s=a.value;if((typeof s>"u"?"undefined":H(s))==="object")for(var c in s){if(!Sh[c]&&/^[A-Z]/.test(c))throw new Error("Unknown event "+c+" in "+s.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ah[c])if(H(s[c])==="object")for(var l in s[c])l==="*"?e(s,c,s[c][l]):e(s,c+"-"+l.toLowerCase(),s[c][l]);else typeof s[c]=="function"&&e(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return sa(function(){var e,i,a,s,c,l,u,d,h,_,v,C;return Wr(this,function(g){switch(g.label){case 0:r.plugin=0,e=0,g.label=1;case 1:if(!(e<r.plugins.length))return[3,6];if(i=r.plugins[e],a=r.runOnRoot(i),!Or(a))return[3,5];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,a];case 3:return g.sent(),[3,5];case 4:throw s=g.sent(),r.handleError(s);case 5:return e++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];c=r.result.root,g.label=7;case 7:if(c[st])return[3,14];c[st]=!0,l=[bs(c)],g.label=8;case 8:if(!(l.length>0))return[3,13];if(u=r.visitTick(l),!Or(u))return[3,12];g.label=9;case 9:return g.trys.push([9,11,,12]),[4,u];case 10:return g.sent(),[3,12];case 11:throw d=g.sent(),h=l[l.length-1].node,r.handleError(d,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];_=function(){var b,w,S,R,T;return Wr(this,function(I){switch(I.label){case 0:b=C.value,w=b[0],S=b[1],r.result.lastPlugin=w,I.label=1;case 1:return I.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(R=c.nodes.map(function(M){return S(M,r.helpers)}),[4,Promise.all(R)]);case 2:return I.sent(),[3,5];case 3:return[4,S(c,r.helpers)];case 4:I.sent(),I.label=5;case 5:return[3,7];case 6:throw T=I.sent(),r.handleError(T);case 7:return[2]}})},v=U(r.listeners.OnceExit),g.label=15;case 15:return(C=v()).done?[3,18]:[5,Ec(_())];case 16:g.sent(),g.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var e=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":H(r))==="object"&&r.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(a){return r.Once(a,e.helpers)});return Or(i[0])?Promise.all(i):i}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(a){throw this.handleError(a)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,e=gh;r.syntax&&(e=r.syntax.stringify),r.stringifier&&(e=r.stringifier),e.stringify&&(e=e.stringify);var i=new vh(e,this.result.root,this.result.opts),a=i.generate();return this.result.css=a[0],this.result.map=a[1],this.result},t.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 r=U(this.plugins),e;!(e=r()).done;){var i=e.value,a=this.runOnRoot(i);if(Or(a))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[st];)s[st]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var c=U(s.nodes),l;!(l=c()).done;){var u=l.value;this.visitSync(this.listeners.OnceExit,u)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(r,e){return this.async().then(r,e)},t.toString=function(){return this.css},t.visitSync=function(r,e){for(var i=U(r),a;!(a=i()).done;){var s=a.value,c=s[0],l=s[1];this.result.lastPlugin=c;var u=void 0;try{u=l(e,this.helpers)}catch(d){throw this.handleError(d,e.proxyOf)}if(e.type!=="root"&&e.type!=="document"&&!e.parent)return!0;if(Or(u))throw this.getAsyncError()}},t.visitTick=function(r){var e=r[r.length-1],i=e.node,a=e.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){r.pop();return}if(a.length>0&&e.visitorIndex<a.length){var s=a[e.visitorIndex],c=s[0],l=s[1];e.visitorIndex+=1,e.visitorIndex===a.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=c;try{return l(i.toProxy(),this.helpers)}catch(v){throw this.handleError(v,i)}}if(e.iterator!==0){for(var u=e.iterator,d;d=i.nodes[i.indexes[u]];)if(i.indexes[u]+=1,!d[st]){d[st]=!0,r.push(bs(d));return}e.iterator=0,delete i.indexes[u]}for(var h=e.events;e.eventIndex<h.length;){var _=h[e.eventIndex];if(e.eventIndex+=1,_===gr){i.nodes&&i.nodes.length&&(i[st]=!0,e.iterator=i.getIterator());return}else if(this.listeners[_]){e.visitors=this.listeners[_];return}}r.pop()},t.walkSync=function(r){var e=this;r[st]=!0;for(var i=su(r),a=U(i),s;!(s=a()).done;){var c=s.value;if(c===gr)r.nodes&&r.each(function(u){u[st]||e.walkSync(u)});else{var l=this.listeners[c];if(l&&this.visitSync(l,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Oe(n,[{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"}}]),n}();yr.registerPostcss=function(n){Eo=n};var cu=yr;yr.default=yr;kh.registerLazyResult(yr);bh.registerLazyResult(yr);var Eh=zc,Rh=ki,xh=ga,Th=ma,Ro=function(){function n(o,r,e){r=r.toString(),this.stringified=!1,this._processor=o,this._css=r,this._opts=e,this._map=void 0;var i,a=Rh;this.result=new Th(this._processor,i,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new Eh(a,i,this._opts,r);if(c.isMap()){var l=c.generate(),u=l[0],d=l[1];u&&(this.result.css=u),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.css}var t=n.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,e){return this.async().then(r,e)},t.toString=function(){return this._css},t.warnings=function(){return[]},Oe(n,[{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 r,e=xh;try{r=e(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),n}(),Ph=Ro;Ro.default=Ro;var Ih=Ph,Oh=cu,Bh=pa,Mh=cn,Jr=function(){function n(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var t=n.prototype;return t.normalize=function(r){for(var e=[],i=U(r),a;!(a=i()).done;){var s=a.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":H(s))==="object"&&Array.isArray(s.plugins))e=e.concat(s.plugins);else if((typeof s>"u"?"undefined":H(s))==="object"&&s.postcssPlugin)e.push(s);else if(typeof s=="function")e.push(s);else if(!((typeof s>"u"?"undefined":H(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return e},t.process=function(r,e){return e===void 0&&(e={}),!this.plugins.length&&!e.parser&&!e.stringifier&&!e.syntax?new Ih(this,r,e):new Oh(this,r,e)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},n}(),Dh=Jr;Jr.default=Jr;Mh.registerProcessor(Jr);Bh.registerProcessor(Jr);var Nh=Si,Lh=Fc,Fh=Ei,Uh=_a,$h=Ai,Vh=cn,jh=va;function Zr(n,t){if(Array.isArray(n))return n.map(function(d){return Zr(d)});var o=n.inputs,r=zr(n,["inputs"]);if(o){t=[];for(var e=U(o),i;!(i=e()).done;){var a=i.value,s=ie({},a,{__proto__:$h.prototype});s.map&&(s.map=ie({},s.map,{__proto__:Lh.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=n.nodes.map(function(d){return Zr(d,t)})),r.source){var c=r.source,l=c.inputId,u=zr(c,["inputId"]);r.source=u,l!=null&&(r.source.input=t[l])}if(r.type==="root")return new Vh(r);if(r.type==="decl")return new Nh(r);if(r.type==="rule")return new jh(r);if(r.type==="comment")return new Fh(r);if(r.type==="atrule")return new Uh(r);throw new Error("Unknown node type: "+n.type)}var zh=Zr;Zr.default=Zr;var qh=da,uu=Si,Wh=cu,Gh=er,ya=Dh,Hh=ki,Yh=zh,lu=pa,Jh=eu,du=Ei,fu=_a,Zh=ma,Kh=Ai,Xh=ga,Qh=ou,hu=va,pu=cn,ep=wi;function se(){for(var n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new ya(t)}se.plugin=function(t,o){var r=!1;function e(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
30
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Gn.LANG&&Gn.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
31
+ https://www.w3ctech.com/topic/2226`));var l=o.apply(void 0,[].concat(s));return l.postcssPlugin=t,l.postcssVersion=new ya().version,l}var i;return Object.defineProperty(e,"postcss",{get:function(){return i||(i=e()),i}}),e.process=function(a,s,c){return se([e(c)]).process(a,s)},e};se.stringify=Hh;se.parse=Xh;se.fromJSON=Yh;se.list=Qh;se.comment=function(n){return new du(n)};se.atRule=function(n){return new fu(n)};se.decl=function(n){return new uu(n)};se.rule=function(n){return new hu(n)};se.root=function(n){return new pu(n)};se.document=function(n){return new lu(n)};se.CssSyntaxError=qh;se.Declaration=uu;se.Container=Gh;se.Processor=ya;se.Document=lu;se.Comment=du;se.Warning=Jh;se.AtRule=fu;se.Result=Zh;se.Input=Kh;se.Rule=hu;se.Root=pu;se.Node=ep;Wh.registerPostcss(se);var tp=se;se.default=se;var ve=pf(tp);ve.stringify;ve.fromJSON;ve.plugin;ve.parse;ve.list;ve.document;ve.comment;ve.atRule;ve.rule;ve.decl;ve.root;ve.CssSyntaxError;ve.Declaration;ve.Container;ve.Processor;ve.Document;ve.Comment;ve.Warning;ve.AtRule;ve.Result;ve.Input;ve.Rule;ve.Root;ve.Node;var rp=Object.defineProperty,np=function(n,t,o){return t in n?rp(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o},Ge=function(n,t,o){return np(n,(typeof t>"u"?"undefined":H(t))!=="symbol"?t+"":t,o)};function ip(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function op(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var o=function r(){return j(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(o,r,e.get?e:{enumerable:!0,get:function(){return n[r]}})}),o}var ba={exports:{}},pe=String,mu=function(){return{isColorSupported:!1,reset:pe,bold:pe,dim:pe,italic:pe,underline:pe,inverse:pe,hidden:pe,strikethrough:pe,black:pe,red:pe,green:pe,yellow:pe,blue:pe,magenta:pe,cyan:pe,white:pe,gray:pe,bgBlack:pe,bgRed:pe,bgGreen:pe,bgYellow:pe,bgBlue:pe,bgMagenta:pe,bgCyan:pe,bgWhite:pe}};ba.exports=mu();ba.exports.createColors=mu;var ap=ba.exports,sp={},cp=Object.freeze(Object.defineProperty({__proto__:null,default:sp},Symbol.toStringTag,{value:"Module"})),ke=op(cp),Cs=ap,ks=ke,xo=function(n){De(t,n);function t(r,e,i,a,s,c){var l;return l=n.call(this,r)||this,l.name="CssSyntaxError",l.reason=r,s&&(l.file=s),a&&(l.source=a),c&&(l.plugin=c),typeof e<"u"&&typeof i<"u"&&(typeof e=="number"?(l.line=e,l.column=i):(l.line=e.line,l.column=e.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}var o=t.prototype;return o.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},o.showSourceCode=function(e){var i=this;if(!this.source)return"";var a=this.source;e==null&&(e=Cs.isColorSupported),ks&&e&&(a=ks(a));var s=a.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length,d,h;if(e){var _=Cs.createColors(!0),v=_.bold,C=_.gray,g=_.red;d=function(b){return v(g(b))},h=function(b){return C(b)}}else d=h=function(b){return b};return s.slice(c,l).map(function(b,w){var S=c+1+w,R=" "+(" "+S).slice(-u)+" | ";if(S===i.line){var T=h(R.replace(/\d/g," "))+b.slice(0,i.column-1).replace(/[^\t]/g," ");return d(">")+h(R)+b+`
32
32
  `+T+d("^")}return" "+h(R)+b}).join(`
33
33
  `)},o.toString=function(){var e=this.showSourceCode();return e&&(e=`
34
34
 
@@ -45,29 +45,29 @@ https://www.w3ctech.com/topic/2226`));var l=o.apply(void 0,[].concat(s));return
45
45
  `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(e,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeOpen=function(r){var e;return r.walk(function(i){if(i.type!=="decl"&&(e=i.raws.between,typeof e<"u"))return!1}),e},t.rawBeforeRule=function(r){var e;return r.walk(function(i){if(i.nodes&&(i.parent!==r||r.first!==i)&&typeof i.raws.before<"u")return e=i.raws.before,e.includes(`
46
46
  `)&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e},t.rawColon=function(r){var e;return r.walkDecls(function(i){if(typeof i.raws.between<"u")return e=i.raws.between.replace(/[^\s:]/g,""),!1}),e},t.rawEmptyBody=function(r){var e;return r.walk(function(i){if(i.nodes&&i.nodes.length===0&&(e=i.raws.after,typeof e<"u"))return!1}),e},t.rawIndent=function(r){if(r.raws.indent)return r.raws.indent;var e;return r.walk(function(i){var a=i.parent;if(a&&a!==r&&a.parent&&a.parent===r&&typeof i.raws.before<"u"){var s=i.raws.before.split(`
47
47
  `);return e=s[s.length-1],e=e.replace(/\S/g,""),!1}}),e},t.rawSemicolon=function(r){var e;return r.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(e=i.raws.semicolon,typeof e<"u"))return!1}),e},t.rawValue=function(r,e){var i=r[e],a=r.raws[e];return a&&a.value===i?a.raw:i},t.root=function(r){this.body(r),r.raws.after&&this.builder(r.raws.after)},t.rule=function(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")},t.stringify=function(r,e){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,e)},n}(),_u=To;To.default=To;var lp=_u;function Po(n,t){var o=new lp(t);o.stringify(n)}var Ri=Po;Po.default=Po;var An=$t.isClean,dp=$t.my,fp=Ca,hp=_u,pp=Ri;function Io(n,t){var o=new n.constructor;for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&r!=="proxyCache"){var e=n[r],i=typeof e>"u"?"undefined":H(e);r==="parent"&&i==="object"?t&&(o[r]=t):r==="source"?o[r]=e:Array.isArray(e)?o[r]=e.map(function(a){return Io(a,o)}):(i==="object"&&e!==null&&(e=Io(e)),o[r]=e)}return o}var Oo=function(){function n(o){o===void 0&&(o={}),this.raws={},this[An]=!1,this[dp]=!0;for(var r in o)if(r==="nodes"){this.nodes=[];for(var e=U(o[r]),i;!(i=e()).done;){var a=i.value;typeof a.clone=="function"?this.append(a.clone()):this.append(a)}}else this[r]=o[r]}var t=n.prototype;return t.addToError=function(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){var e=this.source;r.stack=r.stack.replace(/\n\s{4}at /,"$&"+e.input.from+":"+e.start.line+":"+e.start.column+"$&")}return r},t.after=function(r){return this.parent.insertAfter(this,r),this},t.assign=function(r){r===void 0&&(r={});for(var e in r)this[e]=r[e];return this},t.before=function(r){return this.parent.insertBefore(this,r),this},t.cleanRaws=function(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between},t.clone=function(r){r===void 0&&(r={});var e=Io(this);for(var i in r)e[i]=r[i];return e},t.cloneAfter=function(r){r===void 0&&(r={});var e=this.clone(r);return this.parent.insertAfter(this,e),e},t.cloneBefore=function(r){r===void 0&&(r={});var e=this.clone(r);return this.parent.insertBefore(this,e),e},t.error=function(r,e){if(e===void 0&&(e={}),this.source){var i=this.rangeBy(e),a=i.end,s=i.start;return this.source.input.error(r,{column:s.column,line:s.line},{column:a.column,line:a.line},e)}return new fp(r)},t.getProxyProcessor=function(){return{get:function(e,i){return i==="proxyOf"?e:i==="root"?function(){return e.root().toProxy()}:e[i]},set:function(e,i,a){return e[i]===a||(e[i]=a,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&e.markDirty()),!0}}},t.markDirty=function(){if(this[An]){this[An]=!1;for(var r=this;r=r.parent;)r[An]=!1}},t.next=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r+1]}},t.positionBy=function(r,e){var i=this.source.start;if(r.index)i=this.positionInside(r.index,e);else if(r.word){e=this.toString();var a=e.indexOf(r.word);a!==-1&&(i=this.positionInside(a,e))}return i},t.positionInside=function(r,e){for(var i=e||this.toString(),a=this.source.start.column,s=this.source.start.line,c=0;c<r;c++)i[c]===`
48
- `?(a=1,s+=1):a+=1;return{column:a,line:s}},t.prev=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r-1]}},t.rangeBy=function(r){var e={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:e.column+1,line:e.line};if(r.word){var a=this.toString(),s=a.indexOf(r.word);s!==-1&&(e=this.positionInside(s,a),i=this.positionInside(s+r.word.length,a))}else r.start?e={column:r.start.column,line:r.start.line}:r.index&&(e=this.positionInside(r.index)),r.end?i={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?i=this.positionInside(r.endIndex):r.index&&(i=this.positionInside(r.index+1));return(i.line<e.line||i.line===e.line&&i.column<=e.column)&&(i={column:e.column+1,line:e.line}),{end:i,start:e}},t.raw=function(r,e){var i=new hp;return i.raw(this,r,e)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];if(this.parent){for(var a=this,s=!1,c=U(e),l;!(l=c()).done;){var u=l.value;u===this?s=!0:s?(this.parent.insertAfter(a,u),a=u):this.parent.insertBefore(a,u)}s||this.remove()}return this},t.root=function(){for(var r=this;r.parent&&r.parent.type!=="document";)r=r.parent;return r},t.toJSON=function(r,e){var i={},a=e==null;e=e||new Map;var s=0;for(var c in this)if(Object.prototype.hasOwnProperty.call(this,c)&&!(c==="parent"||c==="proxyCache")){var l=this[c];if(Array.isArray(l))i[c]=l.map(function(d){return(typeof d>"u"?"undefined":H(d))==="object"&&d.toJSON?d.toJSON(null,e):d});else if((typeof l>"u"?"undefined":H(l))==="object"&&l.toJSON)i[c]=l.toJSON(null,e);else if(c==="source"){var u=e.get(l.input);u==null&&(u=s,e.set(l.input,s),s++),i[c]={end:l.end,inputId:u,start:l.start}}else i[c]=l}return a&&(i.inputs=[].concat(e.keys()).map(function(d){return d.toJSON()})),i},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(r){r===void 0&&(r=pp),r.stringify&&(r=r.stringify);var e="";return r(this,function(i){e+=i}),e},t.warn=function(r,e,i){var a={node:this};for(var s in i)a[s]=i[s];return r.warn(e,a)},Oe(n,[{key:"proxyOf",get:function(){return this}}]),n}(),xi=Oo;Oo.default=Oo;var mp=xi,Bo=function(n){De(t,n);function t(o){var r;return o&&typeof o.value<"u"&&typeof o.value!="string"&&(o=ie({},o,{value:String(o.value)})),r=n.call(this,o)||this,r.type="decl",r}return Oe(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t}(mp),Ti=Bo;Bo.default=Bo;var _p="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",vp=function(n){n===void 0&&(n=21);for(var t="",o=n;o--;)t+=_p[Math.random()*64|0];return t},gp={nanoid:vp},Ss=ke.SourceMapConsumer,As=ke.SourceMapGenerator,yp=ke.existsSync,bp=ke.readFileSync,Wi=ke.dirname,Cp=ke.join;function kp(n){return Dt?Dt.from(n,"base64").toString():window.atob(n)}var Mo=function(){function n(o,r){if(r.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var e=r.map?r.map.prev:void 0,i=this.loadMap(r.from,e);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Wi(this.mapFile)),i&&(this.text=i)}}var t=n.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Ss(this.text)),this.consumerCache},t.decodeInline=function(r){var e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(a.test(r)||s.test(r))return decodeURIComponent(r.substr(RegExp.lastMatch.length));if(e.test(r)||i.test(r))return kp(r.substr(RegExp.lastMatch.length));var c=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},t.getAnnotationURL=function(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(r){return(typeof r>"u"?"undefined":H(r))!=="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)},t.loadAnnotation=function(r){var e=r.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var i=r.lastIndexOf(e.pop()),a=r.indexOf("*/",i);i>-1&&a>-1&&(this.annotation=this.getAnnotationURL(r.substring(i,a)))}},t.loadFile=function(r){if(this.root=Wi(r),yp(r))return this.mapFile=r,bp(r,"utf-8").toString().trim()},t.loadMap=function(r,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){var i=e(r);if(i){var a=this.loadFile(i);if(!a)throw new Error("Unable to load previous source map: "+i.toString());return a}}else{if(j(e,Ss))return As.fromSourceMap(e).toString();if(j(e,As))return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return r&&(s=Cp(Wi(r),s)),this.loadFile(s)}}},t.startWith=function(r,e){return r?r.substr(0,e.length)===e:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},n}(),vu=Mo;Mo.default=Mo;var wp=ke.SourceMapConsumer,Sp=ke.SourceMapGenerator,Es=ke.fileURLToPath,En=ke.pathToFileURL,Do=ke.isAbsolute,No=ke.resolve,Ap=gp.nanoid,Hi=ke,Rs=Ca,Ep=vu,Yi=Symbol("fromOffsetCache"),Rp=!!(wp&&Sp),xs=!!(No&&Do),ri=function(){function n(o,r){if(r===void 0&&(r={}),o===null||typeof o>"u"||(typeof o>"u"?"undefined":H(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!xs||/^\w+:\/\//.test(r.from)||Do(r.from)?this.file=r.from:this.file=No(r.from)),xs&&Rp){var e=new Ep(this.css,r);if(e.text){this.map=e;var i=e.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Ap(6)+">"),this.map&&(this.map.file=this.from)}var t=n.prototype;return t.error=function(r,e,i,a){a===void 0&&(a={});var s,c,l;if(e&&(typeof e>"u"?"undefined":H(e))==="object"){var u=e,d=i;if(typeof u.offset=="number"){var h=this.fromOffset(u.offset);e=h.line,i=h.col}else e=u.line,i=u.column;if(typeof d.offset=="number"){var _=this.fromOffset(d.offset);c=_.line,l=_.col}else c=d.line,l=d.column}else if(!i){var v=this.fromOffset(e);e=v.line,i=v.col}var C=this.origin(e,i,c,l);return C?s=new Rs(r,C.endLine===void 0?C.line:{column:C.column,line:C.line},C.endLine===void 0?C.column:{column:C.endColumn,line:C.endLine},C.source,C.file,a.plugin):s=new Rs(r,c===void 0?e:{column:i,line:e},c===void 0?i:{column:l,line:c},this.css,this.file,a.plugin),s.input={column:i,endColumn:l,endLine:c,line:e,source:this.css},this.file&&(En&&(s.input.url=En(this.file).toString()),s.input.file=this.file),s},t.fromOffset=function(r){var e,i;if(this[Yi])i=this[Yi];else{var a=this.css.split(`
48
+ `?(a=1,s+=1):a+=1;return{column:a,line:s}},t.prev=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r-1]}},t.rangeBy=function(r){var e={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:e.column+1,line:e.line};if(r.word){var a=this.toString(),s=a.indexOf(r.word);s!==-1&&(e=this.positionInside(s,a),i=this.positionInside(s+r.word.length,a))}else r.start?e={column:r.start.column,line:r.start.line}:r.index&&(e=this.positionInside(r.index)),r.end?i={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?i=this.positionInside(r.endIndex):r.index&&(i=this.positionInside(r.index+1));return(i.line<e.line||i.line===e.line&&i.column<=e.column)&&(i={column:e.column+1,line:e.line}),{end:i,start:e}},t.raw=function(r,e){var i=new hp;return i.raw(this,r,e)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];if(this.parent){for(var a=this,s=!1,c=U(e),l;!(l=c()).done;){var u=l.value;u===this?s=!0:s?(this.parent.insertAfter(a,u),a=u):this.parent.insertBefore(a,u)}s||this.remove()}return this},t.root=function(){for(var r=this;r.parent&&r.parent.type!=="document";)r=r.parent;return r},t.toJSON=function(r,e){var i={},a=e==null;e=e||new Map;var s=0;for(var c in this)if(Object.prototype.hasOwnProperty.call(this,c)&&!(c==="parent"||c==="proxyCache")){var l=this[c];if(Array.isArray(l))i[c]=l.map(function(d){return(typeof d>"u"?"undefined":H(d))==="object"&&d.toJSON?d.toJSON(null,e):d});else if((typeof l>"u"?"undefined":H(l))==="object"&&l.toJSON)i[c]=l.toJSON(null,e);else if(c==="source"){var u=e.get(l.input);u==null&&(u=s,e.set(l.input,s),s++),i[c]={end:l.end,inputId:u,start:l.start}}else i[c]=l}return a&&(i.inputs=[].concat(e.keys()).map(function(d){return d.toJSON()})),i},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(r){r===void 0&&(r=pp),r.stringify&&(r=r.stringify);var e="";return r(this,function(i){e+=i}),e},t.warn=function(r,e,i){var a={node:this};for(var s in i)a[s]=i[s];return r.warn(e,a)},Oe(n,[{key:"proxyOf",get:function(){return this}}]),n}(),xi=Oo;Oo.default=Oo;var mp=xi,Bo=function(n){De(t,n);function t(o){var r;return o&&typeof o.value<"u"&&typeof o.value!="string"&&(o=ie({},o,{value:String(o.value)})),r=n.call(this,o)||this,r.type="decl",r}return Oe(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t}(mp),Ti=Bo;Bo.default=Bo;var _p="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",vp=function(n){n===void 0&&(n=21);for(var t="",o=n;o--;)t+=_p[Math.random()*64|0];return t},gp={nanoid:vp},Ss=ke.SourceMapConsumer,As=ke.SourceMapGenerator,yp=ke.existsSync,bp=ke.readFileSync,Gi=ke.dirname,Cp=ke.join;function kp(n){return Dt?Dt.from(n,"base64").toString():window.atob(n)}var Mo=function(){function n(o,r){if(r.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var e=r.map?r.map.prev:void 0,i=this.loadMap(r.from,e);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Gi(this.mapFile)),i&&(this.text=i)}}var t=n.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Ss(this.text)),this.consumerCache},t.decodeInline=function(r){var e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(a.test(r)||s.test(r))return decodeURIComponent(r.substr(RegExp.lastMatch.length));if(e.test(r)||i.test(r))return kp(r.substr(RegExp.lastMatch.length));var c=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)},t.getAnnotationURL=function(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(r){return(typeof r>"u"?"undefined":H(r))!=="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)},t.loadAnnotation=function(r){var e=r.match(/\/\*\s*# sourceMappingURL=/gm);if(e){var i=r.lastIndexOf(e.pop()),a=r.indexOf("*/",i);i>-1&&a>-1&&(this.annotation=this.getAnnotationURL(r.substring(i,a)))}},t.loadFile=function(r){if(this.root=Gi(r),yp(r))return this.mapFile=r,bp(r,"utf-8").toString().trim()},t.loadMap=function(r,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){var i=e(r);if(i){var a=this.loadFile(i);if(!a)throw new Error("Unable to load previous source map: "+i.toString());return a}}else{if(j(e,Ss))return As.fromSourceMap(e).toString();if(j(e,As))return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return r&&(s=Cp(Gi(r),s)),this.loadFile(s)}}},t.startWith=function(r,e){return r?r.substr(0,e.length)===e:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},n}(),vu=Mo;Mo.default=Mo;var wp=ke.SourceMapConsumer,Sp=ke.SourceMapGenerator,Es=ke.fileURLToPath,En=ke.pathToFileURL,Do=ke.isAbsolute,No=ke.resolve,Ap=gp.nanoid,Hi=ke,Rs=Ca,Ep=vu,Yi=Symbol("fromOffsetCache"),Rp=!!(wp&&Sp),xs=!!(No&&Do),ri=function(){function n(o,r){if(r===void 0&&(r={}),o===null||typeof o>"u"||(typeof o>"u"?"undefined":H(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!xs||/^\w+:\/\//.test(r.from)||Do(r.from)?this.file=r.from:this.file=No(r.from)),xs&&Rp){var e=new Ep(this.css,r);if(e.text){this.map=e;var i=e.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Ap(6)+">"),this.map&&(this.map.file=this.from)}var t=n.prototype;return t.error=function(r,e,i,a){a===void 0&&(a={});var s,c,l;if(e&&(typeof e>"u"?"undefined":H(e))==="object"){var u=e,d=i;if(typeof u.offset=="number"){var h=this.fromOffset(u.offset);e=h.line,i=h.col}else e=u.line,i=u.column;if(typeof d.offset=="number"){var _=this.fromOffset(d.offset);c=_.line,l=_.col}else c=d.line,l=d.column}else if(!i){var v=this.fromOffset(e);e=v.line,i=v.col}var C=this.origin(e,i,c,l);return C?s=new Rs(r,C.endLine===void 0?C.line:{column:C.column,line:C.line},C.endLine===void 0?C.column:{column:C.endColumn,line:C.endLine},C.source,C.file,a.plugin):s=new Rs(r,c===void 0?e:{column:i,line:e},c===void 0?i:{column:l,line:c},this.css,this.file,a.plugin),s.input={column:i,endColumn:l,endLine:c,line:e,source:this.css},this.file&&(En&&(s.input.url=En(this.file).toString()),s.input.file=this.file),s},t.fromOffset=function(r){var e,i;if(this[Yi])i=this[Yi];else{var a=this.css.split(`
49
49
  `);i=new Array(a.length);for(var s=0,c=0,l=a.length;c<l;c++)i[c]=s,s+=a[c].length+1;this[Yi]=i}e=i[i.length-1];var u=0;if(r>=e)u=i.length-1;else for(var d=i.length-2,h;u<d;)if(h=u+(d-u>>1),r<i[h])d=h-1;else if(r>=i[h+1])u=h+1;else{u=h;break}return{col:r-i[u]+1,line:u+1}},t.mapResolve=function(r){return/^\w+:\/\//.test(r)?r:No(this.map.consumer().sourceRoot||this.map.root||".",r)},t.origin=function(r,e,i,a){if(!this.map)return!1;var s=this.map.consumer(),c=s.originalPositionFor({column:e,line:r});if(!c.source)return!1;var l;typeof i=="number"&&(l=s.originalPositionFor({column:a,line:i}));var u;Do(c.source)?u=En(c.source):u=new URL(c.source,this.map.consumer().sourceRoot||En(this.map.mapFile));var d={column:c.column,endColumn:l&&l.column,endLine:l&&l.line,line:c.line,url:u.toString()};if(u.protocol==="file:")if(Es)d.file=Es(u);else throw new Error("file: protocol is not available in this PostCSS build");var h=s.sourceContentFor(c.source);return h&&(d.source=h),d},t.toJSON=function(){for(var r={},e=0,i=["hasBOM","css","file","id"];e<i.length;e++){var a=i[e];this[a]!=null&&(r[a]=this[a])}return this.map&&(r.map=ie({},this.map),r.map.consumerCache&&(r.map.consumerCache=void 0)),r},Oe(n,[{key:"from",get:function(){return this.file||this.id}}]),n}(),Pi=ri;ri.default=ri;Hi&&Hi.registerInput&&Hi.registerInput(ri);var gu=ke.SourceMapConsumer,jn=ke.SourceMapGenerator,zn=ke.dirname,yu=ke.relative,bu=ke.resolve,Cu=ke.sep,Ts=ke.pathToFileURL,xp=Pi,Tp=!!(gu&&jn),Pp=!!(zn&&bu&&yu&&Cu),Ip=function(){function n(o,r,e,i){this.stringify=o,this.mapOpts=e.map||{},this.root=r,this.opts=e,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 t=n.prototype;return t.addAnnotation=function(){var r;this.isInline()?r="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?r=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?r=this.mapOpts.annotation(this.opts.to,this.root):r=this.outputFile()+".map";var e=`
50
50
  `;this.css.includes(`\r
51
51
  `)&&(e=`\r
52
52
  `),this.css+=e+"/*# sourceMappingURL="+r+" */"},t.applyPrevMaps=function(){for(var r=U(this.previous()),e;!(e=r()).done;){var i=e.value,a=this.toUrl(this.path(i.file)),s=i.root||zn(i.file),c=void 0;this.mapOpts.sourcesContent===!1?(c=new gu(i.text),c.sourcesContent&&(c.sourcesContent=null)):c=i.consumer(),this.map.applySourceMap(c,a,this.toUrl(this.path(s)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var r,e=this.root.nodes.length-1;e>=0;e--)r=this.root.nodes[e],r.type==="comment"&&r.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(e);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Pp&&Tp&&this.isMap())return this.generateMap();var r="";return this.stringify(this.root,function(e){r+=e}),[r]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=jn.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new jn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var r=this;this.css="",this.map=new jn({file:this.outputFile(),ignoreInvalidMapping:!0});var e=1,i=1,a="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},c,l;this.stringify(this.root,function(u,d,h){if(r.css+=u,d&&h!=="end"&&(s.generated.line=e,s.generated.column=i-1,d.source&&d.source.start?(s.source=r.sourcePath(d),s.original.line=d.source.start.line,s.original.column=d.source.start.column-1,r.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,r.map.addMapping(s))),c=u.match(/\n/g),c?(e+=c.length,l=u.lastIndexOf(`
53
- `),i=u.length-l):i+=u.length,d&&h!=="start"){var _=d.parent||{raws:{}},v=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!v||d!==_.last||_.raws.semicolon)&&(d.source&&d.source.end?(s.source=r.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=e,s.generated.column=i-2,r.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=i-1,r.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(e){return e.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var e=this.memoizedPaths.get(r);if(e)return e;var i=this.opts.to?zn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=zn(bu(i,this.mapOpts.annotation)));var a=yu(i,r);return this.memoizedPaths.set(r,a),a},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var a=i.source.input.map;r.previousMaps.includes(a)||r.previousMaps.push(a)}});else{var e=new xp(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,e={};if(this.root)this.root.walk(function(a){if(a.source){var s=a.source.input.from;if(s&&!e[s]){e[s]=!0;var c=r.usesFileUrls?r.toFileUrl(s):r.toUrl(r.path(s));r.map.setSourceContent(c,a.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)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return Dt?Dt.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var e=this.memoizedFileURLs.get(r);if(e)return e;if(Ts){var i=Ts(r).toString();return this.memoizedFileURLs.set(r,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var e=this.memoizedURLs.get(r);if(e)return e;Cu==="\\"&&(r=r.replace(/\\/g,"/"));var i=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,i),i},n}(),ku=Ip,Op=xi,Lo=function(n){De(t,n);function t(o){var r;return r=n.call(this,o)||this,r.type="comment",r}return t}(Op),Ii=Lo;Lo.default=Lo;var wu=$t.isClean,Su=$t.my,Au=Ti,Eu=Ii,Bp=xi,Ru,ka,wa,xu;function Tu(n){return n.map(function(t){return t.nodes&&(t.nodes=Tu(t.nodes)),delete t.source,t})}function Pu(n){if(n[wu]=!1,n.proxyOf.nodes)for(var t=U(n.proxyOf.nodes),o;!(o=t()).done;){var r=o.value;Pu(r)}}var wt=function(n){De(t,n);function t(){return n.apply(this,arguments)||this}var o=t.prototype;return o.append=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];for(var s=U(i),c;!(c=s()).done;)for(var l=c.value,u=this.normalize(l,this.last),d=U(u),h;!(h=d()).done;){var _=h.value;this.proxyOf.nodes.push(_)}return this.markDirty(),this},o.cleanRaws=function(e){if(n.prototype.cleanRaws.call(this,e),this.nodes)for(var i=U(this.nodes),a;!(a=i()).done;){var s=a.value;s.cleanRaws(e)}},o.each=function(e){if(this.proxyOf.nodes){for(var i=this.getIterator(),a,s;this.indexes[i]<this.proxyOf.nodes.length&&(a=this.indexes[i],s=e(this.proxyOf.nodes[a],a),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}},o.every=function(e){return this.nodes.every(e)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},o.getProxyProcessor=function(){return{get:function(i,a){return a==="proxyOf"?i:i[a]?a==="each"||typeof a=="string"&&a.startsWith("walk")?function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var u;return(u=i)[a].apply(u,[].concat(c.map(function(d){return typeof d=="function"?function(h,_){return d(h.toProxy(),_)}:d})))}:a==="every"||a==="some"?function(s){return i[a](function(c){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];return s.apply(void 0,[].concat([c.toProxy()],u))})}:a==="root"?function(){return i.root().toProxy()}:a==="nodes"?i.nodes.map(function(s){return s.toProxy()}):a==="first"||a==="last"?i[a].toProxy():i[a]:i[a]},set:function(i,a,s){return i[a]===s||(i[a]=s,(a==="name"||a==="params"||a==="selector")&&i.markDirty()),!0}}},o.index=function(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},o.insertAfter=function(e,i){var a=this.index(e),s=this.normalize(i,this.proxyOf.nodes[a]).reverse();a=this.index(e);for(var c=U(s),l;!(l=c()).done;){var u=l.value;this.proxyOf.nodes.splice(a+1,0,u)}var d;for(var h in this.indexes)d=this.indexes[h],a<d&&(this.indexes[h]=d+s.length);return this.markDirty(),this},o.insertBefore=function(e,i){var a=this.index(e),s=a===0?"prepend":!1,c=this.normalize(i,this.proxyOf.nodes[a],s).reverse();a=this.index(e);for(var l=U(c),u;!(u=l()).done;){var d=u.value;this.proxyOf.nodes.splice(a,0,d)}var h;for(var _ in this.indexes)h=this.indexes[_],a<=h&&(this.indexes[_]=h+c.length);return this.markDirty(),this},o.normalize=function(e,i){var a=this;if(typeof e=="string")e=Tu(Ru(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(var s=U(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(var u=U(e),d;!(d=u()).done;){var h=d.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Au(e)]}else if(e.selector)e=[new ka(e)];else if(e.name)e=[new wa(e)];else if(e.text)e=[new Eu(e)];else throw new Error("Unknown node type in node creation");var _=e.map(function(v){return v[Su]||t.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[wu]&&Pu(v),typeof v.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(v.raws.before=i.raws.before.replace(/\S/g,"")),v.parent=a.proxyOf,v});return _},o.prepend=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];i=i.reverse();for(var s=U(i),c;!(c=s()).done;){for(var l=c.value,u=this.normalize(l,this.first,"prepend").reverse(),d=U(u),h;!(h=d()).done;){var _=h.value;this.proxyOf.nodes.unshift(_)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+u.length}return this.markDirty(),this},o.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},o.removeAll=function(){for(var e=U(this.proxyOf.nodes),i;!(i=e()).done;){var a=i.value;a.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var i;for(var a in this.indexes)i=this.indexes[a],i>=e&&(this.indexes[a]=i-1);return this.markDirty(),this},o.replaceValues=function(e,i,a){return a||(a=i,i={}),this.walkDecls(function(s){i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(e,a))}),this.markDirty(),this},o.some=function(e){return this.nodes.some(e)},o.walk=function(e){return this.each(function(i,a){var s;try{s=e(i,a)}catch(c){throw i.addToError(c)}return s!==!1&&i.walk&&(s=i.walk(e)),s})},o.walkAtRules=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="atrule"&&e.test(a.name))return i(a,s)}):this.walk(function(a,s){if(a.type==="atrule"&&a.name===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="atrule")return i(a,s)}))},o.walkComments=function(e){return this.walk(function(i,a){if(i.type==="comment")return e(i,a)})},o.walkDecls=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="decl"&&e.test(a.prop))return i(a,s)}):this.walk(function(a,s){if(a.type==="decl"&&a.prop===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="decl")return i(a,s)}))},o.walkRules=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="rule"&&e.test(a.selector))return i(a,s)}):this.walk(function(a,s){if(a.type==="rule"&&a.selector===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="rule")return i(a,s)}))},Oe(t,[{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]}}]),t}(Bp);wt.registerParse=function(n){Ru=n};wt.registerRule=function(n){ka=n};wt.registerAtRule=function(n){wa=n};wt.registerRoot=function(n){xu=n};var er=wt;wt.default=wt;wt.rebuild=function(n){n.type==="atrule"?Object.setPrototypeOf(n,wa.prototype):n.type==="rule"?Object.setPrototypeOf(n,ka.prototype):n.type==="decl"?Object.setPrototypeOf(n,Au.prototype):n.type==="comment"?Object.setPrototypeOf(n,Eu.prototype):n.type==="root"&&Object.setPrototypeOf(n,xu.prototype),n[Su]=!0,n.nodes&&n.nodes.forEach(function(t){wt.rebuild(t)})};var Mp=er,Iu,Ou,Kr=function(n){De(t,n);function t(r){var e;return e=n.call(this,ie({type:"document"},r))||this,e.nodes||(e.nodes=[]),e}var o=t.prototype;return o.toResult=function(e){e===void 0&&(e={});var i=new Iu(new Ou,this,e);return i.stringify()},t}(Mp);Kr.registerLazyResult=function(n){Iu=n};Kr.registerProcessor=function(n){Ou=n};var Sa=Kr;Kr.default=Kr;var Fo=function(){function n(o,r){if(r===void 0&&(r={}),this.type="warning",this.text=o,r.node&&r.node.source){var e=r.node.rangeBy(r);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(var i in r)this[i]=r[i]}var t=n.prototype;return t.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},n}(),Bu=Fo;Fo.default=Fo;var Dp=Bu,Uo=function(){function n(o,r,e){this.processor=o,this.messages=[],this.root=r,this.opts=e,this.css=void 0,this.map=void 0}var t=n.prototype;return t.toString=function(){return this.css},t.warn=function(r,e){e===void 0&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var i=new Dp(r,e);return this.messages.push(i),i},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},Oe(n,[{key:"content",get:function(){return this.css}}]),n}(),Aa=Uo;Uo.default=Uo;var Ji=39,Ps=34,Rn=92,Is=47,xn=10,Or=32,Tn=12,Pn=9,In=13,Np=91,Lp=93,Fp=40,Up=41,$p=123,Vp=125,jp=59,zp=42,qp=58,Gp=64,On=/[\t\n\f\r "#'()/;[\\\]{}]/g,Bn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Wp=/.[\r\n"'(/\\]/,Os=/[\da-f]/i,Hp=function(t,o){o===void 0&&(o={});var r=t.css.valueOf(),e=o.ignoreErrors,i,a,s,c,l,u,d,h,_,v,C=r.length,g=0,b=[],w=[];function S(){return g}function R(O){throw t.error("Unclosed "+O,g)}function T(){return w.length===0&&g>=C}function I(O){if(w.length)return w.pop();if(!(g>=C)){var N=O?O.ignoreUnclosed:!1;switch(i=r.charCodeAt(g),i){case xn:case Or:case Pn:case In:case Tn:{a=g;do a+=1,i=r.charCodeAt(a);while(i===Or||i===xn||i===Pn||i===In||i===Tn);v=["space",r.slice(g,a)],g=a-1;break}case Np:case Lp:case $p:case Vp:case qp:case jp:case Up:{var F=String.fromCharCode(i);v=[F,F,g];break}case Fp:{if(h=b.length?b.pop()[1]:"",_=r.charCodeAt(g+1),h==="url"&&_!==Ji&&_!==Ps&&_!==Or&&_!==xn&&_!==Pn&&_!==Tn&&_!==In){a=g;do{if(u=!1,a=r.indexOf(")",a+1),a===-1)if(e||N){a=g;break}else R("bracket");for(d=a;r.charCodeAt(d-1)===Rn;)d-=1,u=!u}while(u);v=["brackets",r.slice(g,a+1),g,a],g=a}else a=r.indexOf(")",g+1),c=r.slice(g,a+1),a===-1||Wp.test(c)?v=["(","(",g]:(v=["brackets",c,g,a],g=a);break}case Ji:case Ps:{s=i===Ji?"'":'"',a=g;do{if(u=!1,a=r.indexOf(s,a+1),a===-1)if(e||N){a=g+1;break}else R("string");for(d=a;r.charCodeAt(d-1)===Rn;)d-=1,u=!u}while(u);v=["string",r.slice(g,a+1),g,a],g=a;break}case Gp:{On.lastIndex=g+1,On.test(r),On.lastIndex===0?a=r.length-1:a=On.lastIndex-2,v=["at-word",r.slice(g,a+1),g,a],g=a;break}case Rn:{for(a=g,l=!0;r.charCodeAt(a+1)===Rn;)a+=1,l=!l;if(i=r.charCodeAt(a+1),l&&i!==Is&&i!==Or&&i!==xn&&i!==Pn&&i!==In&&i!==Tn&&(a+=1,Os.test(r.charAt(a)))){for(;Os.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===Or&&(a+=1)}v=["word",r.slice(g,a+1),g,a],g=a;break}default:{i===Is&&r.charCodeAt(g+1)===zp?(a=r.indexOf("*/",g+2)+1,a===0&&(e||N?a=r.length:R("comment")),v=["comment",r.slice(g,a+1),g,a],g=a):(Bn.lastIndex=g+1,Bn.test(r),Bn.lastIndex===0?a=r.length-1:a=Bn.lastIndex-2,v=["word",r.slice(g,a+1),g,a],b.push(v),g=a);break}}return g++,v}}function M(O){w.push(O)}return{back:M,endOfFile:T,nextToken:I,position:S}},Mu=er,ni=function(n){De(t,n);function t(r){var e;return e=n.call(this,r)||this,e.type="atrule",e}var o=t.prototype;return o.append=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=n.prototype.append).call.apply(s,[].concat([this],i))},o.prepend=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=n.prototype.prepend).call.apply(s,[].concat([this],i))},t}(Mu),Ea=ni;ni.default=ni;Mu.registerAtRule(ni);var Du=er,Nu,Lu,yr=function(n){De(t,n);function t(r){var e;return e=n.call(this,r)||this,e.type="root",e.nodes||(e.nodes=[]),e}var o=t.prototype;return o.normalize=function(e,i,a){var s=n.prototype.normalize.call(this,e);if(i){if(a==="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=U(s),l;!(l=c()).done;){var u=l.value;u.raws.before=i.raws.before}}return s},o.removeChild=function(e,i){var a=this.index(e);return!i&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),n.prototype.removeChild.call(this,e)},o.toResult=function(e){e===void 0&&(e={});var i=new Nu(new Lu,this,e);return i.stringify()},t}(Du);yr.registerLazyResult=function(n){Nu=n};yr.registerProcessor=function(n){Lu=n};var un=yr;yr.default=yr;Du.registerRoot(yr);var Xr={comma:function(t){return Xr.split(t,[","],!0)},space:function(t){var o=[" ",`
54
- `," "];return Xr.split(t,o)},split:function(t,o,r){for(var e=[],i="",a=!1,s=0,c=!1,l="",u=!1,d=U(t),h;!(h=d()).done;){var _=h.value;u?u=!1:_==="\\"?u=!0:c?_===l&&(c=!1):_==='"'||_==="'"?(c=!0,l=_):_==="("?s+=1:_===")"?s>0&&(s-=1):s===0&&o.includes(_)&&(a=!0),a?(i!==""&&e.push(i.trim()),i="",a=!1):i+=_}return(r||i!=="")&&e.push(i.trim()),e}},Fu=Xr;Xr.default=Xr;var Uu=er,Yp=Fu,ii=function(n){De(t,n);function t(o){var r;return r=n.call(this,o)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Oe(t,[{key:"selectors",get:function(){return Yp.comma(this.selector)},set:function(r){var e=this.selector?this.selector.match(/,\s*/):null,i=e?e[0]:","+this.raw("between","beforeOpen");this.selector=r.join(i)}}]),t}(Uu),Ra=ii;ii.default=ii;Uu.registerRule(ii);var Jp=Ti,Zp=Hp,Kp=Ii,Xp=Ea,Qp=un,Bs=Ra,Ms={empty:!0,space:!0};function em(n){for(var t=n.length-1;t>=0;t--){var o=n[t],r=o[3]||o[2];if(r)return r}}var tm=function(){function n(o){this.input=o,this.root=new Qp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var t=n.prototype;return t.atrule=function(r){var e=new Xp;e.name=r[1].slice(1),e.name===""&&this.unnamedAtrule(e,r),this.init(e,r[2]);for(var i,a,s,c=!1,l=!1,u=[],d=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),i=r[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){e.source.end=this.getPosition(r[2]),e.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(e.source.end=this.getPosition(a[3]||a[2]),e.source.end.offset++)}this.end(r);break}else u.push(r);else u.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}e.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(e.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(e,"params",u),c&&(r=u[u.length-1],e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++,this.spaces=e.raws.between,e.raws.between="")):(e.raws.afterName="",e.params=""),l&&(e.nodes=[],this.current=e)},t.checkMissedSemicolon=function(r){var e=this.colon(r);if(e!==!1){for(var i=0,a,s=e-1;s>=0&&(a=r[s],!(a[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}},t.colon=function(r){for(var e=0,i,a,s,c=U(r.entries()),l;!(l=c()).done;){var u=l.value,d=u[0],h=u[1];if(i=h,a=i[0],a==="("&&(e+=1),a===")"&&(e-=1),e===0&&a===":")if(!s)this.doubleColon(i);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=i}return!1},t.comment=function(r){var e=new Kp;this.init(e,r[2]),e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++;var i=r[1].slice(2,-2);if(/^\s*$/.test(i))e.text="",e.raws.left=i,e.raws.right="";else{var a=i.match(/^(\s*)([^]*\S)(\s*)$/);e.text=a[2],e.raws.left=a[1],e.raws.right=a[3]}},t.createTokenizer=function(){this.tokenizer=Zp(this.input)},t.decl=function(r,e){var i=new Jp;this.init(i,r[0][2]);var a=r[r.length-1];for(a[0]===";"&&(this.semicolon=!0,r.pop()),i.source.end=this.getPosition(a[3]||a[2]||em(r)),i.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),i.raws.before+=r.shift()[1];for(i.source.start=this.getPosition(r[0][2]),i.prop="";r.length;){var s=r[0][0];if(s===":"||s==="space"||s==="comment")break;i.prop+=r.shift()[1]}i.raws.between="";for(var c;r.length;)if(c=r.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 l=[],u;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l.push(r.shift());this.precheckMissedSemicolon(r);for(var d=r.length-1;d>=0;d--){if(c=r[d],c[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(r,d);h=this.spacesFromEnd(r)+h,h!==" !important"&&(i.raws.important=h);break}else if(c[1].toLowerCase()==="important"){for(var _=r.slice(0),v="",C=d;C>0;C--){var g=_[C][0];if(v.trim().indexOf("!")===0&&g!=="space")break;v=_.pop()[1]+v}v.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=v,r=_)}if(c[0]!=="space"&&c[0]!=="comment")break}var b=r.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});b&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(r),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var e=new Bs;this.init(e,r[2]),e.selector="",e.raws.between="",this.current=e},t.end=function(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.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())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&e.type==="rule"&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var e=this.input.fromOffset(r);return{column:e.col,line:e.line,offset:r}},t.init=function(r,e){this.current.push(r),r.source={input:this.input,start:this.getPosition(e)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var e=!1,i=null,a=!1,s=null,c=[],l=r[1].startsWith("--"),u=[],d=r;d;){if(i=d[0],u.push(d),i==="("||i==="[")s||(s=d),c.push(i==="("?")":"]");else if(l&&a&&i==="{")s||(s=d),c.push("}");else if(c.length===0)if(i===";")if(a){this.decl(u,l);return}else break;else if(i==="{"){this.rule(u);return}else if(i==="}"){this.tokenizer.back(u.pop()),e=!0;break}else i===":"&&(a=!0);else i===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),c.length>0&&this.unclosedBracket(s),e&&a){if(!l)for(;u.length&&(d=u[u.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,l)}else this.unknownWord(u)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,e,i,a){for(var s,c,l=i.length,u="",d=!0,h,_,v=0;v<l;v+=1)s=i[v],c=s[0],c==="space"&&v===l-1&&!a?d=!1:c==="comment"?(_=i[v-1]?i[v-1][0]:"empty",h=i[v+1]?i[v+1][0]:"empty",!Ms[_]&&!Ms[h]?u.slice(-1)===","?d=!1:u+=s[1]:d=!1):u+=s[1];if(!d){var C=i.reduce(function(g,b){return g+b[1]},"");r.raws[e]={raw:C,value:u}}r[e]=u},t.rule=function(r){r.pop();var e=new Bs;this.init(e,r[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(e,"selector",r),this.current=e},t.spacesAndCommentsFromEnd=function(r){for(var e,i="";r.length&&(e=r[r.length-1][0],!(e!=="space"&&e!=="comment"));)i=r.pop()[1]+i;return i},t.spacesAndCommentsFromStart=function(r){for(var e,i="";r.length&&(e=r[0][0],!(e!=="space"&&e!=="comment"));)i+=r.shift()[1];return i},t.spacesFromEnd=function(r){for(var e,i="";r.length&&(e=r[r.length-1][0],e==="space");)i=r.pop()[1]+i;return i},t.stringFrom=function(r,e){for(var i="",a=e;a<r.length;a++)i+=r[a][1];return r.splice(e,r.length-e),i},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})},n}(),rm=tm,nm=er,im=rm,om=Pi;function oi(n,t){var o=new om(n,t),r=new im(o);try{r.parse()}catch(e){throw e}return r.root}var xa=oi;oi.default=oi;nm.registerParse(oi);var ct=$t.isClean,am=$t.my,sm=ku,cm=Ri,um=er,lm=Sa,Ds=Aa,dm=xa,fm=un,hm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pm={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},mm={Once:!0,postcssPlugin:!0,prepare:!0},br=0;function Br(n){return(typeof n>"u"?"undefined":H(n))==="object"&&typeof n.then=="function"}function $u(n){var t=!1,o=hm[n.type];return n.type==="decl"?t=n.prop.toLowerCase():n.type==="atrule"&&(t=n.name.toLowerCase()),t&&n.append?[o,o+"-"+t,br,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:n.append?[o,br,o+"Exit"]:[o,o+"Exit"]}function Ns(n){var t;return n.type==="document"?t=["Document",br,"DocumentExit"]:n.type==="root"?t=["Root",br,"RootExit"]:t=$u(n),{eventIndex:0,events:t,iterator:0,node:n,visitorIndex:0,visitors:[]}}function $o(n){return n[ct]=!1,n.nodes&&n.nodes.forEach(function(t){return $o(t)}),n}var Vo={},Cr=function(){function n(o,r,e){var i=this;this.stringified=!1,this.processed=!1;var a;if((typeof r>"u"?"undefined":H(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))a=$o(r);else if(j(r,n)||j(r,Ds))a=$o(r.root),r.map&&(typeof e.map>"u"&&(e.map={}),e.map.inline||(e.map.inline=!1),e.map.prev=r.map);else{var s=dm;e.syntax&&(s=e.syntax.parse),e.parser&&(s=e.parser),s.parse&&(s=s.parse);try{a=s(r,e)}catch(c){this.processed=!0,this.error=c}a&&!a[am]&&um.rebuild(a)}this.result=new Ds(o,a,e),this.helpers=ie({},Vo,{postcss:Vo,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":H(c))==="object"&&c.prepare?ie({},c,c.prepare(i.result)):c})}var t=n.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,e){var i=this.result.lastPlugin;try{if(e&&e.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=i.postcssPlugin,r.setMessage();else if(i.postcssVersion)var a,s,c,l,u}catch(d){console&&console.error&&console.error(d)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var e=function(u,d,h){r.listeners[d]||(r.listeners[d]=[]),r.listeners[d].push([u,h])},i=U(this.plugins),a;!(a=i()).done;){var s=a.value;if((typeof s>"u"?"undefined":H(s))==="object")for(var c in s){if(!pm[c]&&/^[A-Z]/.test(c))throw new Error("Unknown event "+c+" in "+s.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!mm[c])if(H(s[c])==="object")for(var l in s[c])l==="*"?e(s,c,s[c][l]):e(s,c+"-"+l.toLowerCase(),s[c][l]);else typeof s[c]=="function"&&e(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return sa(function(){var e,i,a,s,c,l,u,d,h,_,v,C;return Gr(this,function(g){switch(g.label){case 0:r.plugin=0,e=0,g.label=1;case 1:if(!(e<r.plugins.length))return[3,6];if(i=r.plugins[e],a=r.runOnRoot(i),!Br(a))return[3,5];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,a];case 3:return g.sent(),[3,5];case 4:throw s=g.sent(),r.handleError(s);case 5:return e++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];c=r.result.root,g.label=7;case 7:if(c[ct])return[3,14];c[ct]=!0,l=[Ns(c)],g.label=8;case 8:if(!(l.length>0))return[3,13];if(u=r.visitTick(l),!Br(u))return[3,12];g.label=9;case 9:return g.trys.push([9,11,,12]),[4,u];case 10:return g.sent(),[3,12];case 11:throw d=g.sent(),h=l[l.length-1].node,r.handleError(d,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];_=function(){var b,w,S,R,T;return Gr(this,function(I){switch(I.label){case 0:b=C.value,w=b[0],S=b[1],r.result.lastPlugin=w,I.label=1;case 1:return I.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(R=c.nodes.map(function(M){return S(M,r.helpers)}),[4,Promise.all(R)]);case 2:return I.sent(),[3,5];case 3:return[4,S(c,r.helpers)];case 4:I.sent(),I.label=5;case 5:return[3,7];case 6:throw T=I.sent(),r.handleError(T);case 7:return[2]}})},v=U(r.listeners.OnceExit),g.label=15;case 15:return(C=v()).done?[3,18]:[5,Ec(_())];case 16:g.sent(),g.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var e=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":H(r))==="object"&&r.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(a){return r.Once(a,e.helpers)});return Br(i[0])?Promise.all(i):i}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(a){throw this.handleError(a)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,e=cm;r.syntax&&(e=r.syntax.stringify),r.stringifier&&(e=r.stringifier),e.stringify&&(e=e.stringify);var i=new sm(e,this.result.root,this.result.opts),a=i.generate();return this.result.css=a[0],this.result.map=a[1],this.result},t.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 r=U(this.plugins),e;!(e=r()).done;){var i=e.value,a=this.runOnRoot(i);if(Br(a))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[ct];)s[ct]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var c=U(s.nodes),l;!(l=c()).done;){var u=l.value;this.visitSync(this.listeners.OnceExit,u)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(r,e){return this.async().then(r,e)},t.toString=function(){return this.css},t.visitSync=function(r,e){for(var i=U(r),a;!(a=i()).done;){var s=a.value,c=s[0],l=s[1];this.result.lastPlugin=c;var u=void 0;try{u=l(e,this.helpers)}catch(d){throw this.handleError(d,e.proxyOf)}if(e.type!=="root"&&e.type!=="document"&&!e.parent)return!0;if(Br(u))throw this.getAsyncError()}},t.visitTick=function(r){var e=r[r.length-1],i=e.node,a=e.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){r.pop();return}if(a.length>0&&e.visitorIndex<a.length){var s=a[e.visitorIndex],c=s[0],l=s[1];e.visitorIndex+=1,e.visitorIndex===a.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=c;try{return l(i.toProxy(),this.helpers)}catch(v){throw this.handleError(v,i)}}if(e.iterator!==0){for(var u=e.iterator,d;d=i.nodes[i.indexes[u]];)if(i.indexes[u]+=1,!d[ct]){d[ct]=!0,r.push(Ns(d));return}e.iterator=0,delete i.indexes[u]}for(var h=e.events;e.eventIndex<h.length;){var _=h[e.eventIndex];if(e.eventIndex+=1,_===br){i.nodes&&i.nodes.length&&(i[ct]=!0,e.iterator=i.getIterator());return}else if(this.listeners[_]){e.visitors=this.listeners[_];return}}r.pop()},t.walkSync=function(r){var e=this;r[ct]=!0;for(var i=$u(r),a=U(i),s;!(s=a()).done;){var c=s.value;if(c===br)r.nodes&&r.each(function(u){u[ct]||e.walkSync(u)});else{var l=this.listeners[c];if(l&&this.visitSync(l,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Oe(n,[{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"}}]),n}();Cr.registerPostcss=function(n){Vo=n};var Vu=Cr;Cr.default=Cr;fm.registerLazyResult(Cr);lm.registerLazyResult(Cr);var _m=ku,vm=Ri,gm=xa,ym=Aa,jo=function(){function n(o,r,e){r=r.toString(),this.stringified=!1,this._processor=o,this._css=r,this._opts=e,this._map=void 0;var i,a=vm;this.result=new ym(this._processor,i,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new _m(a,i,this._opts,r);if(c.isMap()){var l=c.generate(),u=l[0],d=l[1];u&&(this.result.css=u),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.css}var t=n.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,e){return this.async().then(r,e)},t.toString=function(){return this._css},t.warnings=function(){return[]},Oe(n,[{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 r,e=gm;try{r=e(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),n}(),bm=jo;jo.default=jo;var Cm=bm,km=Vu,wm=Sa,Sm=un,Qr=function(){function n(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var t=n.prototype;return t.normalize=function(r){for(var e=[],i=U(r),a;!(a=i()).done;){var s=a.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":H(s))==="object"&&Array.isArray(s.plugins))e=e.concat(s.plugins);else if((typeof s>"u"?"undefined":H(s))==="object"&&s.postcssPlugin)e.push(s);else if(typeof s=="function")e.push(s);else if(!((typeof s>"u"?"undefined":H(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return e},t.process=function(r,e){return e===void 0&&(e={}),!this.plugins.length&&!e.parser&&!e.stringifier&&!e.syntax?new Cm(this,r,e):new km(this,r,e)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},n}(),Am=Qr;Qr.default=Qr;Sm.registerProcessor(Qr);wm.registerProcessor(Qr);var Em=Ti,Rm=vu,xm=Ii,Tm=Ea,Pm=Pi,Im=un,Om=Ra;function en(n,t){if(Array.isArray(n))return n.map(function(d){return en(d)});var o=n.inputs,r=zr(n,["inputs"]);if(o){t=[];for(var e=U(o),i;!(i=e()).done;){var a=i.value,s=ie({},a,{__proto__:Pm.prototype});s.map&&(s.map=ie({},s.map,{__proto__:Rm.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=n.nodes.map(function(d){return en(d,t)})),r.source){var c=r.source,l=c.inputId,u=zr(c,["inputId"]);r.source=u,l!=null&&(r.source.input=t[l])}if(r.type==="root")return new Im(r);if(r.type==="decl")return new Em(r);if(r.type==="rule")return new Om(r);if(r.type==="comment")return new xm(r);if(r.type==="atrule")return new Tm(r);throw new Error("Unknown node type: "+n.type)}var Bm=en;en.default=en;var Mm=Ca,ju=Ti,Dm=Vu,Nm=er,Ta=Am,Lm=Ri,Fm=Bm,zu=Sa,Um=Bu,qu=Ii,Gu=Ea,$m=Aa,Vm=Pi,jm=xa,zm=Fu,Wu=Ra,Hu=un,qm=xi;function ce(){for(var n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Ta(t)}ce.plugin=function(t,o){var r=!1;function e(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
55
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Wn.LANG&&Wn.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
56
- https://www.w3ctech.com/topic/2226`));var l=o.apply(void 0,[].concat(s));return l.postcssPlugin=t,l.postcssVersion=new Ta().version,l}var i;return Object.defineProperty(e,"postcss",{get:function(){return i||(i=e()),i}}),e.process=function(a,s,c){return ce([e(c)]).process(a,s)},e};ce.stringify=Lm;ce.parse=jm;ce.fromJSON=Fm;ce.list=zm;ce.comment=function(n){return new qu(n)};ce.atRule=function(n){return new Gu(n)};ce.decl=function(n){return new ju(n)};ce.rule=function(n){return new Wu(n)};ce.root=function(n){return new Hu(n)};ce.document=function(n){return new zu(n)};ce.CssSyntaxError=Mm;ce.Declaration=ju;ce.Container=Nm;ce.Processor=Ta;ce.Document=zu;ce.Comment=qu;ce.Warning=Um;ce.AtRule=Gu;ce.Result=$m;ce.Input=Vm;ce.Rule=Wu;ce.Root=Hu;ce.Node=qm;Dm.registerPostcss(ce);var Gm=ce;ce.default=ce;var ge=ip(Gm);ge.stringify;ge.fromJSON;ge.plugin;ge.parse;ge.list;ge.document;ge.comment;ge.atRule;ge.rule;ge.decl;ge.root;ge.CssSyntaxError;ge.Declaration;ge.Container;ge.Processor;ge.Document;ge.Comment;ge.Warning;ge.AtRule;ge.Result;ge.Input;ge.Rule;ge.Root;ge.Node;var Wm=function(){function n(){for(var o=arguments.length,r=new Array(o),e=0;e<o;e++)r[e]=arguments[e];We(this,"parentElement",null),We(this,"parentNode",null),We(this,"ownerDocument"),We(this,"firstChild",null),We(this,"lastChild",null),We(this,"previousSibling",null),We(this,"nextSibling",null),We(this,"ELEMENT_NODE",1),We(this,"TEXT_NODE",3),We(this,"nodeType"),We(this,"nodeName"),We(this,"RRNodeType")}var t=n.prototype;return t.contains=function(r){if(j(r,n)){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1},t.appendChild=function(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(r,e){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Oe(n,[{key:"childNodes",get:function(){for(var r=[],e=this.firstChild;e;)r.push(e),e=e.nextSibling;return r}}]),n}(),Ls={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mn={},Hm=function(){return!!globalThis.Zone};function Pa(n){if(Mn[n])return Mn[n];var t=globalThis[n],o=t.prototype,r=n in Ls?Ls[n]:void 0,e=!!(r&&r.every(function(u){var d,h;return!!((h=(d=Object.getOwnPropertyDescriptor(o,u))==null?void 0:d.get)!=null&&h.toString().includes("[native code]"))})),i=n in Fs?Fs[n]:void 0,a=!!(i&&i.every(function(u){var d;return typeof o[u]=="function"&&((d=o[u])==null?void 0:d.toString().includes("[native code]"))}));if(e&&a&&!Hm())return Mn[n]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[n].prototype;return document.body.removeChild(s),l?Mn[n]=l:o}catch{return o}}var Zi={};function Vt(n,t,o){var r,e=n+"."+String(o);if(Zi[e])return Zi[e].call(t);var i=Pa(n),a=(r=Object.getOwnPropertyDescriptor(i,o))==null?void 0:r.get;return a?(Zi[e]=a,a.call(t)):t[o]}var Ki={};function Yu(n,t,o){var r=n+"."+String(o);if(Ki[r])return Ki[r].bind(t);var e=Pa(n),i=e[o];return typeof i!="function"?t[o]:(Ki[r]=i,i.bind(t))}function Ym(n){return Vt("Node",n,"childNodes")}function Jm(n){return Vt("Node",n,"parentNode")}function Zm(n){return Vt("Node",n,"parentElement")}function Km(n){return Vt("Node",n,"textContent")}function Xm(n,t){return Yu("Node",n,"contains")(t)}function Qm(n){return Yu("Node",n,"getRootNode")()}function e_(n){return!n||!("host"in n)?null:Vt("ShadowRoot",n,"host")}function t_(n){return n.styleSheets}function r_(n){return!n||!("shadowRoot"in n)?null:Vt("Element",n,"shadowRoot")}function n_(n,t){return Vt("Element",n,"querySelector")(t)}function i_(n,t){return Vt("Element",n,"querySelectorAll")(t)}function Ju(){return Pa("MutationObserver").constructor}function tr(n,t,o){try{if(!(t in n))return function(){};var r=n[t],e=o(r);return typeof e=="function"&&(e.prototype=e.prototype||{},Object.defineProperties(e,{__rrweb_original__:{enumerable:!1,value:r}})),n[t]=e,function(){n[t]=r}}catch{return function(){}}}var K={childNodes:Ym,parentNode:Jm,parentElement:Zm,textContent:Km,contains:Xm,getRootNode:Qm,host:e_,styleSheets:t_,shadowRoot:r_,querySelector:n_,querySelectorAll:i_,mutationObserver:Ju,patch:tr};function Fe(n,t,o){o===void 0&&(o=document);var r={capture:!0,passive:!0};return o.addEventListener(n,t,r),function(){return o.removeEventListener(n,t,r)}}var cr=`Please stop import mirror directly. Instead of that,\r
53
+ `),i=u.length-l):i+=u.length,d&&h!=="start"){var _=d.parent||{raws:{}},v=d.type==="decl"||d.type==="atrule"&&!d.nodes;(!v||d!==_.last||_.raws.semicolon)&&(d.source&&d.source.end?(s.source=r.sourcePath(d),s.original.line=d.source.end.line,s.original.column=d.source.end.column-1,s.generated.line=e,s.generated.column=i-2,r.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=i-1,r.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(e){return e.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var e=this.memoizedPaths.get(r);if(e)return e;var i=this.opts.to?zn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=zn(bu(i,this.mapOpts.annotation)));var a=yu(i,r);return this.memoizedPaths.set(r,a),a},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var a=i.source.input.map;r.previousMaps.includes(a)||r.previousMaps.push(a)}});else{var e=new xp(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,e={};if(this.root)this.root.walk(function(a){if(a.source){var s=a.source.input.from;if(s&&!e[s]){e[s]=!0;var c=r.usesFileUrls?r.toFileUrl(s):r.toUrl(r.path(s));r.map.setSourceContent(c,a.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)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return Dt?Dt.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var e=this.memoizedFileURLs.get(r);if(e)return e;if(Ts){var i=Ts(r).toString();return this.memoizedFileURLs.set(r,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var e=this.memoizedURLs.get(r);if(e)return e;Cu==="\\"&&(r=r.replace(/\\/g,"/"));var i=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,i),i},n}(),ku=Ip,Op=xi,Lo=function(n){De(t,n);function t(o){var r;return r=n.call(this,o)||this,r.type="comment",r}return t}(Op),Ii=Lo;Lo.default=Lo;var wu=$t.isClean,Su=$t.my,Au=Ti,Eu=Ii,Bp=xi,Ru,ka,wa,xu;function Tu(n){return n.map(function(t){return t.nodes&&(t.nodes=Tu(t.nodes)),delete t.source,t})}function Pu(n){if(n[wu]=!1,n.proxyOf.nodes)for(var t=U(n.proxyOf.nodes),o;!(o=t()).done;){var r=o.value;Pu(r)}}var wt=function(n){De(t,n);function t(){return n.apply(this,arguments)||this}var o=t.prototype;return o.append=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];for(var s=U(i),c;!(c=s()).done;)for(var l=c.value,u=this.normalize(l,this.last),d=U(u),h;!(h=d()).done;){var _=h.value;this.proxyOf.nodes.push(_)}return this.markDirty(),this},o.cleanRaws=function(e){if(n.prototype.cleanRaws.call(this,e),this.nodes)for(var i=U(this.nodes),a;!(a=i()).done;){var s=a.value;s.cleanRaws(e)}},o.each=function(e){if(this.proxyOf.nodes){for(var i=this.getIterator(),a,s;this.indexes[i]<this.proxyOf.nodes.length&&(a=this.indexes[i],s=e(this.proxyOf.nodes[a],a),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}},o.every=function(e){return this.nodes.every(e)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},o.getProxyProcessor=function(){return{get:function(i,a){return a==="proxyOf"?i:i[a]?a==="each"||typeof a=="string"&&a.startsWith("walk")?function(){for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];var u;return(u=i)[a].apply(u,[].concat(c.map(function(d){return typeof d=="function"?function(h,_){return d(h.toProxy(),_)}:d})))}:a==="every"||a==="some"?function(s){return i[a](function(c){for(var l=arguments.length,u=new Array(l>1?l-1:0),d=1;d<l;d++)u[d-1]=arguments[d];return s.apply(void 0,[].concat([c.toProxy()],u))})}:a==="root"?function(){return i.root().toProxy()}:a==="nodes"?i.nodes.map(function(s){return s.toProxy()}):a==="first"||a==="last"?i[a].toProxy():i[a]:i[a]},set:function(i,a,s){return i[a]===s||(i[a]=s,(a==="name"||a==="params"||a==="selector")&&i.markDirty()),!0}}},o.index=function(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},o.insertAfter=function(e,i){var a=this.index(e),s=this.normalize(i,this.proxyOf.nodes[a]).reverse();a=this.index(e);for(var c=U(s),l;!(l=c()).done;){var u=l.value;this.proxyOf.nodes.splice(a+1,0,u)}var d;for(var h in this.indexes)d=this.indexes[h],a<d&&(this.indexes[h]=d+s.length);return this.markDirty(),this},o.insertBefore=function(e,i){var a=this.index(e),s=a===0?"prepend":!1,c=this.normalize(i,this.proxyOf.nodes[a],s).reverse();a=this.index(e);for(var l=U(c),u;!(u=l()).done;){var d=u.value;this.proxyOf.nodes.splice(a,0,d)}var h;for(var _ in this.indexes)h=this.indexes[_],a<=h&&(this.indexes[_]=h+c.length);return this.markDirty(),this},o.normalize=function(e,i){var a=this;if(typeof e=="string")e=Tu(Ru(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(var s=U(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(var u=U(e),d;!(d=u()).done;){var h=d.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Au(e)]}else if(e.selector)e=[new ka(e)];else if(e.name)e=[new wa(e)];else if(e.text)e=[new Eu(e)];else throw new Error("Unknown node type in node creation");var _=e.map(function(v){return v[Su]||t.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[wu]&&Pu(v),typeof v.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(v.raws.before=i.raws.before.replace(/\S/g,"")),v.parent=a.proxyOf,v});return _},o.prepend=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];i=i.reverse();for(var s=U(i),c;!(c=s()).done;){for(var l=c.value,u=this.normalize(l,this.first,"prepend").reverse(),d=U(u),h;!(h=d()).done;){var _=h.value;this.proxyOf.nodes.unshift(_)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+u.length}return this.markDirty(),this},o.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},o.removeAll=function(){for(var e=U(this.proxyOf.nodes),i;!(i=e()).done;){var a=i.value;a.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var i;for(var a in this.indexes)i=this.indexes[a],i>=e&&(this.indexes[a]=i-1);return this.markDirty(),this},o.replaceValues=function(e,i,a){return a||(a=i,i={}),this.walkDecls(function(s){i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(e,a))}),this.markDirty(),this},o.some=function(e){return this.nodes.some(e)},o.walk=function(e){return this.each(function(i,a){var s;try{s=e(i,a)}catch(c){throw i.addToError(c)}return s!==!1&&i.walk&&(s=i.walk(e)),s})},o.walkAtRules=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="atrule"&&e.test(a.name))return i(a,s)}):this.walk(function(a,s){if(a.type==="atrule"&&a.name===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="atrule")return i(a,s)}))},o.walkComments=function(e){return this.walk(function(i,a){if(i.type==="comment")return e(i,a)})},o.walkDecls=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="decl"&&e.test(a.prop))return i(a,s)}):this.walk(function(a,s){if(a.type==="decl"&&a.prop===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="decl")return i(a,s)}))},o.walkRules=function(e,i){return i?j(e,RegExp)?this.walk(function(a,s){if(a.type==="rule"&&e.test(a.selector))return i(a,s)}):this.walk(function(a,s){if(a.type==="rule"&&a.selector===e)return i(a,s)}):(i=e,this.walk(function(a,s){if(a.type==="rule")return i(a,s)}))},Oe(t,[{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]}}]),t}(Bp);wt.registerParse=function(n){Ru=n};wt.registerRule=function(n){ka=n};wt.registerAtRule=function(n){wa=n};wt.registerRoot=function(n){xu=n};var tr=wt;wt.default=wt;wt.rebuild=function(n){n.type==="atrule"?Object.setPrototypeOf(n,wa.prototype):n.type==="rule"?Object.setPrototypeOf(n,ka.prototype):n.type==="decl"?Object.setPrototypeOf(n,Au.prototype):n.type==="comment"?Object.setPrototypeOf(n,Eu.prototype):n.type==="root"&&Object.setPrototypeOf(n,xu.prototype),n[Su]=!0,n.nodes&&n.nodes.forEach(function(t){wt.rebuild(t)})};var Mp=tr,Iu,Ou,Kr=function(n){De(t,n);function t(r){var e;return e=n.call(this,ie({type:"document"},r))||this,e.nodes||(e.nodes=[]),e}var o=t.prototype;return o.toResult=function(e){e===void 0&&(e={});var i=new Iu(new Ou,this,e);return i.stringify()},t}(Mp);Kr.registerLazyResult=function(n){Iu=n};Kr.registerProcessor=function(n){Ou=n};var Sa=Kr;Kr.default=Kr;var Fo=function(){function n(o,r){if(r===void 0&&(r={}),this.type="warning",this.text=o,r.node&&r.node.source){var e=r.node.rangeBy(r);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(var i in r)this[i]=r[i]}var t=n.prototype;return t.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},n}(),Bu=Fo;Fo.default=Fo;var Dp=Bu,Uo=function(){function n(o,r,e){this.processor=o,this.messages=[],this.root=r,this.opts=e,this.css=void 0,this.map=void 0}var t=n.prototype;return t.toString=function(){return this.css},t.warn=function(r,e){e===void 0&&(e={}),e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);var i=new Dp(r,e);return this.messages.push(i),i},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},Oe(n,[{key:"content",get:function(){return this.css}}]),n}(),Aa=Uo;Uo.default=Uo;var Ji=39,Ps=34,Rn=92,Is=47,xn=10,Br=32,Tn=12,Pn=9,In=13,Np=91,Lp=93,Fp=40,Up=41,$p=123,Vp=125,jp=59,zp=42,qp=58,Wp=64,On=/[\t\n\f\r "#'()/;[\\\]{}]/g,Bn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Gp=/.[\r\n"'(/\\]/,Os=/[\da-f]/i,Hp=function(t,o){o===void 0&&(o={});var r=t.css.valueOf(),e=o.ignoreErrors,i,a,s,c,l,u,d,h,_,v,C=r.length,g=0,b=[],w=[];function S(){return g}function R(O){throw t.error("Unclosed "+O,g)}function T(){return w.length===0&&g>=C}function I(O){if(w.length)return w.pop();if(!(g>=C)){var N=O?O.ignoreUnclosed:!1;switch(i=r.charCodeAt(g),i){case xn:case Br:case Pn:case In:case Tn:{a=g;do a+=1,i=r.charCodeAt(a);while(i===Br||i===xn||i===Pn||i===In||i===Tn);v=["space",r.slice(g,a)],g=a-1;break}case Np:case Lp:case $p:case Vp:case qp:case jp:case Up:{var F=String.fromCharCode(i);v=[F,F,g];break}case Fp:{if(h=b.length?b.pop()[1]:"",_=r.charCodeAt(g+1),h==="url"&&_!==Ji&&_!==Ps&&_!==Br&&_!==xn&&_!==Pn&&_!==Tn&&_!==In){a=g;do{if(u=!1,a=r.indexOf(")",a+1),a===-1)if(e||N){a=g;break}else R("bracket");for(d=a;r.charCodeAt(d-1)===Rn;)d-=1,u=!u}while(u);v=["brackets",r.slice(g,a+1),g,a],g=a}else a=r.indexOf(")",g+1),c=r.slice(g,a+1),a===-1||Gp.test(c)?v=["(","(",g]:(v=["brackets",c,g,a],g=a);break}case Ji:case Ps:{s=i===Ji?"'":'"',a=g;do{if(u=!1,a=r.indexOf(s,a+1),a===-1)if(e||N){a=g+1;break}else R("string");for(d=a;r.charCodeAt(d-1)===Rn;)d-=1,u=!u}while(u);v=["string",r.slice(g,a+1),g,a],g=a;break}case Wp:{On.lastIndex=g+1,On.test(r),On.lastIndex===0?a=r.length-1:a=On.lastIndex-2,v=["at-word",r.slice(g,a+1),g,a],g=a;break}case Rn:{for(a=g,l=!0;r.charCodeAt(a+1)===Rn;)a+=1,l=!l;if(i=r.charCodeAt(a+1),l&&i!==Is&&i!==Br&&i!==xn&&i!==Pn&&i!==In&&i!==Tn&&(a+=1,Os.test(r.charAt(a)))){for(;Os.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===Br&&(a+=1)}v=["word",r.slice(g,a+1),g,a],g=a;break}default:{i===Is&&r.charCodeAt(g+1)===zp?(a=r.indexOf("*/",g+2)+1,a===0&&(e||N?a=r.length:R("comment")),v=["comment",r.slice(g,a+1),g,a],g=a):(Bn.lastIndex=g+1,Bn.test(r),Bn.lastIndex===0?a=r.length-1:a=Bn.lastIndex-2,v=["word",r.slice(g,a+1),g,a],b.push(v),g=a);break}}return g++,v}}function M(O){w.push(O)}return{back:M,endOfFile:T,nextToken:I,position:S}},Mu=tr,ni=function(n){De(t,n);function t(r){var e;return e=n.call(this,r)||this,e.type="atrule",e}var o=t.prototype;return o.append=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=n.prototype.append).call.apply(s,[].concat([this],i))},o.prepend=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=n.prototype.prepend).call.apply(s,[].concat([this],i))},t}(Mu),Ea=ni;ni.default=ni;Mu.registerAtRule(ni);var Du=tr,Nu,Lu,br=function(n){De(t,n);function t(r){var e;return e=n.call(this,r)||this,e.type="root",e.nodes||(e.nodes=[]),e}var o=t.prototype;return o.normalize=function(e,i,a){var s=n.prototype.normalize.call(this,e);if(i){if(a==="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=U(s),l;!(l=c()).done;){var u=l.value;u.raws.before=i.raws.before}}return s},o.removeChild=function(e,i){var a=this.index(e);return!i&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),n.prototype.removeChild.call(this,e)},o.toResult=function(e){e===void 0&&(e={});var i=new Nu(new Lu,this,e);return i.stringify()},t}(Du);br.registerLazyResult=function(n){Nu=n};br.registerProcessor=function(n){Lu=n};var un=br;br.default=br;Du.registerRoot(br);var Xr={comma:function(t){return Xr.split(t,[","],!0)},space:function(t){var o=[" ",`
54
+ `," "];return Xr.split(t,o)},split:function(t,o,r){for(var e=[],i="",a=!1,s=0,c=!1,l="",u=!1,d=U(t),h;!(h=d()).done;){var _=h.value;u?u=!1:_==="\\"?u=!0:c?_===l&&(c=!1):_==='"'||_==="'"?(c=!0,l=_):_==="("?s+=1:_===")"?s>0&&(s-=1):s===0&&o.includes(_)&&(a=!0),a?(i!==""&&e.push(i.trim()),i="",a=!1):i+=_}return(r||i!=="")&&e.push(i.trim()),e}},Fu=Xr;Xr.default=Xr;var Uu=tr,Yp=Fu,ii=function(n){De(t,n);function t(o){var r;return r=n.call(this,o)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Oe(t,[{key:"selectors",get:function(){return Yp.comma(this.selector)},set:function(r){var e=this.selector?this.selector.match(/,\s*/):null,i=e?e[0]:","+this.raw("between","beforeOpen");this.selector=r.join(i)}}]),t}(Uu),Ra=ii;ii.default=ii;Uu.registerRule(ii);var Jp=Ti,Zp=Hp,Kp=Ii,Xp=Ea,Qp=un,Bs=Ra,Ms={empty:!0,space:!0};function em(n){for(var t=n.length-1;t>=0;t--){var o=n[t],r=o[3]||o[2];if(r)return r}}var tm=function(){function n(o){this.input=o,this.root=new Qp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var t=n.prototype;return t.atrule=function(r){var e=new Xp;e.name=r[1].slice(1),e.name===""&&this.unnamedAtrule(e,r),this.init(e,r[2]);for(var i,a,s,c=!1,l=!1,u=[],d=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),i=r[0],i==="("||i==="["?d.push(i==="("?")":"]"):i==="{"&&d.length>0?d.push("}"):i===d[d.length-1]&&d.pop(),d.length===0)if(i===";"){e.source.end=this.getPosition(r[2]),e.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(u.length>0){for(s=u.length-1,a=u[s];a&&a[0]==="space";)a=u[--s];a&&(e.source.end=this.getPosition(a[3]||a[2]),e.source.end.offset++)}this.end(r);break}else u.push(r);else u.push(r);if(this.tokenizer.endOfFile()){c=!0;break}}e.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(e.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(e,"params",u),c&&(r=u[u.length-1],e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++,this.spaces=e.raws.between,e.raws.between="")):(e.raws.afterName="",e.params=""),l&&(e.nodes=[],this.current=e)},t.checkMissedSemicolon=function(r){var e=this.colon(r);if(e!==!1){for(var i=0,a,s=e-1;s>=0&&(a=r[s],!(a[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}},t.colon=function(r){for(var e=0,i,a,s,c=U(r.entries()),l;!(l=c()).done;){var u=l.value,d=u[0],h=u[1];if(i=h,a=i[0],a==="("&&(e+=1),a===")"&&(e-=1),e===0&&a===":")if(!s)this.doubleColon(i);else{if(s[0]==="word"&&s[1]==="progid")continue;return d}s=i}return!1},t.comment=function(r){var e=new Kp;this.init(e,r[2]),e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++;var i=r[1].slice(2,-2);if(/^\s*$/.test(i))e.text="",e.raws.left=i,e.raws.right="";else{var a=i.match(/^(\s*)([^]*\S)(\s*)$/);e.text=a[2],e.raws.left=a[1],e.raws.right=a[3]}},t.createTokenizer=function(){this.tokenizer=Zp(this.input)},t.decl=function(r,e){var i=new Jp;this.init(i,r[0][2]);var a=r[r.length-1];for(a[0]===";"&&(this.semicolon=!0,r.pop()),i.source.end=this.getPosition(a[3]||a[2]||em(r)),i.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),i.raws.before+=r.shift()[1];for(i.source.start=this.getPosition(r[0][2]),i.prop="";r.length;){var s=r[0][0];if(s===":"||s==="space"||s==="comment")break;i.prop+=r.shift()[1]}i.raws.between="";for(var c;r.length;)if(c=r.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 l=[],u;r.length&&(u=r[0][0],!(u!=="space"&&u!=="comment"));)l.push(r.shift());this.precheckMissedSemicolon(r);for(var d=r.length-1;d>=0;d--){if(c=r[d],c[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(r,d);h=this.spacesFromEnd(r)+h,h!==" !important"&&(i.raws.important=h);break}else if(c[1].toLowerCase()==="important"){for(var _=r.slice(0),v="",C=d;C>0;C--){var g=_[C][0];if(v.trim().indexOf("!")===0&&g!=="space")break;v=_.pop()[1]+v}v.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=v,r=_)}if(c[0]!=="space"&&c[0]!=="comment")break}var b=r.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});b&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(r),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var e=new Bs;this.init(e,r[2]),e.selector="",e.raws.between="",this.current=e},t.end=function(r){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(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.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())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var e=this.current.nodes[this.current.nodes.length-1];e&&e.type==="rule"&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var e=this.input.fromOffset(r);return{column:e.col,line:e.line,offset:r}},t.init=function(r,e){this.current.push(r),r.source={input:this.input,start:this.getPosition(e)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var e=!1,i=null,a=!1,s=null,c=[],l=r[1].startsWith("--"),u=[],d=r;d;){if(i=d[0],u.push(d),i==="("||i==="[")s||(s=d),c.push(i==="("?")":"]");else if(l&&a&&i==="{")s||(s=d),c.push("}");else if(c.length===0)if(i===";")if(a){this.decl(u,l);return}else break;else if(i==="{"){this.rule(u);return}else if(i==="}"){this.tokenizer.back(u.pop()),e=!0;break}else i===":"&&(a=!0);else i===c[c.length-1]&&(c.pop(),c.length===0&&(s=null));d=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),c.length>0&&this.unclosedBracket(s),e&&a){if(!l)for(;u.length&&(d=u[u.length-1][0],!(d!=="space"&&d!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,l)}else this.unknownWord(u)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,e,i,a){for(var s,c,l=i.length,u="",d=!0,h,_,v=0;v<l;v+=1)s=i[v],c=s[0],c==="space"&&v===l-1&&!a?d=!1:c==="comment"?(_=i[v-1]?i[v-1][0]:"empty",h=i[v+1]?i[v+1][0]:"empty",!Ms[_]&&!Ms[h]?u.slice(-1)===","?d=!1:u+=s[1]:d=!1):u+=s[1];if(!d){var C=i.reduce(function(g,b){return g+b[1]},"");r.raws[e]={raw:C,value:u}}r[e]=u},t.rule=function(r){r.pop();var e=new Bs;this.init(e,r[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(e,"selector",r),this.current=e},t.spacesAndCommentsFromEnd=function(r){for(var e,i="";r.length&&(e=r[r.length-1][0],!(e!=="space"&&e!=="comment"));)i=r.pop()[1]+i;return i},t.spacesAndCommentsFromStart=function(r){for(var e,i="";r.length&&(e=r[0][0],!(e!=="space"&&e!=="comment"));)i+=r.shift()[1];return i},t.spacesFromEnd=function(r){for(var e,i="";r.length&&(e=r[r.length-1][0],e==="space");)i=r.pop()[1]+i;return i},t.stringFrom=function(r,e){for(var i="",a=e;a<r.length;a++)i+=r[a][1];return r.splice(e,r.length-e),i},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})},n}(),rm=tm,nm=tr,im=rm,om=Pi;function oi(n,t){var o=new om(n,t),r=new im(o);try{r.parse()}catch(e){throw e}return r.root}var xa=oi;oi.default=oi;nm.registerParse(oi);var ct=$t.isClean,am=$t.my,sm=ku,cm=Ri,um=tr,lm=Sa,Ds=Aa,dm=xa,fm=un,hm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pm={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},mm={Once:!0,postcssPlugin:!0,prepare:!0},Cr=0;function Mr(n){return(typeof n>"u"?"undefined":H(n))==="object"&&typeof n.then=="function"}function $u(n){var t=!1,o=hm[n.type];return n.type==="decl"?t=n.prop.toLowerCase():n.type==="atrule"&&(t=n.name.toLowerCase()),t&&n.append?[o,o+"-"+t,Cr,o+"Exit",o+"Exit-"+t]:t?[o,o+"-"+t,o+"Exit",o+"Exit-"+t]:n.append?[o,Cr,o+"Exit"]:[o,o+"Exit"]}function Ns(n){var t;return n.type==="document"?t=["Document",Cr,"DocumentExit"]:n.type==="root"?t=["Root",Cr,"RootExit"]:t=$u(n),{eventIndex:0,events:t,iterator:0,node:n,visitorIndex:0,visitors:[]}}function $o(n){return n[ct]=!1,n.nodes&&n.nodes.forEach(function(t){return $o(t)}),n}var Vo={},kr=function(){function n(o,r,e){var i=this;this.stringified=!1,this.processed=!1;var a;if((typeof r>"u"?"undefined":H(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))a=$o(r);else if(j(r,n)||j(r,Ds))a=$o(r.root),r.map&&(typeof e.map>"u"&&(e.map={}),e.map.inline||(e.map.inline=!1),e.map.prev=r.map);else{var s=dm;e.syntax&&(s=e.syntax.parse),e.parser&&(s=e.parser),s.parse&&(s=s.parse);try{a=s(r,e)}catch(c){this.processed=!0,this.error=c}a&&!a[am]&&um.rebuild(a)}this.result=new Ds(o,a,e),this.helpers=ie({},Vo,{postcss:Vo,result:this.result}),this.plugins=this.processor.plugins.map(function(c){return(typeof c>"u"?"undefined":H(c))==="object"&&c.prepare?ie({},c,c.prepare(i.result)):c})}var t=n.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,e){var i=this.result.lastPlugin;try{if(e&&e.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=i.postcssPlugin,r.setMessage();else if(i.postcssVersion)var a,s,c,l,u}catch(d){console&&console.error&&console.error(d)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var e=function(u,d,h){r.listeners[d]||(r.listeners[d]=[]),r.listeners[d].push([u,h])},i=U(this.plugins),a;!(a=i()).done;){var s=a.value;if((typeof s>"u"?"undefined":H(s))==="object")for(var c in s){if(!pm[c]&&/^[A-Z]/.test(c))throw new Error("Unknown event "+c+" in "+s.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!mm[c])if(H(s[c])==="object")for(var l in s[c])l==="*"?e(s,c,s[c][l]):e(s,c+"-"+l.toLowerCase(),s[c][l]);else typeof s[c]=="function"&&e(s,c,s[c])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return sa(function(){var e,i,a,s,c,l,u,d,h,_,v,C;return Wr(this,function(g){switch(g.label){case 0:r.plugin=0,e=0,g.label=1;case 1:if(!(e<r.plugins.length))return[3,6];if(i=r.plugins[e],a=r.runOnRoot(i),!Mr(a))return[3,5];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,a];case 3:return g.sent(),[3,5];case 4:throw s=g.sent(),r.handleError(s);case 5:return e++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];c=r.result.root,g.label=7;case 7:if(c[ct])return[3,14];c[ct]=!0,l=[Ns(c)],g.label=8;case 8:if(!(l.length>0))return[3,13];if(u=r.visitTick(l),!Mr(u))return[3,12];g.label=9;case 9:return g.trys.push([9,11,,12]),[4,u];case 10:return g.sent(),[3,12];case 11:throw d=g.sent(),h=l[l.length-1].node,r.handleError(d,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];_=function(){var b,w,S,R,T;return Wr(this,function(I){switch(I.label){case 0:b=C.value,w=b[0],S=b[1],r.result.lastPlugin=w,I.label=1;case 1:return I.trys.push([1,6,,7]),c.type!=="document"?[3,3]:(R=c.nodes.map(function(M){return S(M,r.helpers)}),[4,Promise.all(R)]);case 2:return I.sent(),[3,5];case 3:return[4,S(c,r.helpers)];case 4:I.sent(),I.label=5;case 5:return[3,7];case 6:throw T=I.sent(),r.handleError(T);case 7:return[2]}})},v=U(r.listeners.OnceExit),g.label=15;case 15:return(C=v()).done?[3,18]:[5,Ec(_())];case 16:g.sent(),g.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var e=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":H(r))==="object"&&r.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(a){return r.Once(a,e.helpers)});return Mr(i[0])?Promise.all(i):i}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(a){throw this.handleError(a)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,e=cm;r.syntax&&(e=r.syntax.stringify),r.stringifier&&(e=r.stringifier),e.stringify&&(e=e.stringify);var i=new sm(e,this.result.root,this.result.opts),a=i.generate();return this.result.css=a[0],this.result.map=a[1],this.result},t.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 r=U(this.plugins),e;!(e=r()).done;){var i=e.value,a=this.runOnRoot(i);if(Mr(a))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[ct];)s[ct]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var c=U(s.nodes),l;!(l=c()).done;){var u=l.value;this.visitSync(this.listeners.OnceExit,u)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(r,e){return this.async().then(r,e)},t.toString=function(){return this.css},t.visitSync=function(r,e){for(var i=U(r),a;!(a=i()).done;){var s=a.value,c=s[0],l=s[1];this.result.lastPlugin=c;var u=void 0;try{u=l(e,this.helpers)}catch(d){throw this.handleError(d,e.proxyOf)}if(e.type!=="root"&&e.type!=="document"&&!e.parent)return!0;if(Mr(u))throw this.getAsyncError()}},t.visitTick=function(r){var e=r[r.length-1],i=e.node,a=e.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){r.pop();return}if(a.length>0&&e.visitorIndex<a.length){var s=a[e.visitorIndex],c=s[0],l=s[1];e.visitorIndex+=1,e.visitorIndex===a.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=c;try{return l(i.toProxy(),this.helpers)}catch(v){throw this.handleError(v,i)}}if(e.iterator!==0){for(var u=e.iterator,d;d=i.nodes[i.indexes[u]];)if(i.indexes[u]+=1,!d[ct]){d[ct]=!0,r.push(Ns(d));return}e.iterator=0,delete i.indexes[u]}for(var h=e.events;e.eventIndex<h.length;){var _=h[e.eventIndex];if(e.eventIndex+=1,_===Cr){i.nodes&&i.nodes.length&&(i[ct]=!0,e.iterator=i.getIterator());return}else if(this.listeners[_]){e.visitors=this.listeners[_];return}}r.pop()},t.walkSync=function(r){var e=this;r[ct]=!0;for(var i=$u(r),a=U(i),s;!(s=a()).done;){var c=s.value;if(c===Cr)r.nodes&&r.each(function(u){u[ct]||e.walkSync(u)});else{var l=this.listeners[c];if(l&&this.visitSync(l,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Oe(n,[{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"}}]),n}();kr.registerPostcss=function(n){Vo=n};var Vu=kr;kr.default=kr;fm.registerLazyResult(kr);lm.registerLazyResult(kr);var _m=ku,vm=Ri,gm=xa,ym=Aa,jo=function(){function n(o,r,e){r=r.toString(),this.stringified=!1,this._processor=o,this._css=r,this._opts=e,this._map=void 0;var i,a=vm;this.result=new ym(this._processor,i,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var c=new _m(a,i,this._opts,r);if(c.isMap()){var l=c.generate(),u=l[0],d=l[1];u&&(this.result.css=u),d&&(this.result.map=d)}else c.clearAnnotation(),this.result.css=c.css}var t=n.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,e){return this.async().then(r,e)},t.toString=function(){return this._css},t.warnings=function(){return[]},Oe(n,[{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 r,e=gm;try{r=e(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),n}(),bm=jo;jo.default=jo;var Cm=bm,km=Vu,wm=Sa,Sm=un,Qr=function(){function n(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var t=n.prototype;return t.normalize=function(r){for(var e=[],i=U(r),a;!(a=i()).done;){var s=a.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":H(s))==="object"&&Array.isArray(s.plugins))e=e.concat(s.plugins);else if((typeof s>"u"?"undefined":H(s))==="object"&&s.postcssPlugin)e.push(s);else if(typeof s=="function")e.push(s);else if(!((typeof s>"u"?"undefined":H(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return e},t.process=function(r,e){return e===void 0&&(e={}),!this.plugins.length&&!e.parser&&!e.stringifier&&!e.syntax?new Cm(this,r,e):new km(this,r,e)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},n}(),Am=Qr;Qr.default=Qr;Sm.registerProcessor(Qr);wm.registerProcessor(Qr);var Em=Ti,Rm=vu,xm=Ii,Tm=Ea,Pm=Pi,Im=un,Om=Ra;function en(n,t){if(Array.isArray(n))return n.map(function(d){return en(d)});var o=n.inputs,r=zr(n,["inputs"]);if(o){t=[];for(var e=U(o),i;!(i=e()).done;){var a=i.value,s=ie({},a,{__proto__:Pm.prototype});s.map&&(s.map=ie({},s.map,{__proto__:Rm.prototype})),t.push(s)}}if(r.nodes&&(r.nodes=n.nodes.map(function(d){return en(d,t)})),r.source){var c=r.source,l=c.inputId,u=zr(c,["inputId"]);r.source=u,l!=null&&(r.source.input=t[l])}if(r.type==="root")return new Im(r);if(r.type==="decl")return new Em(r);if(r.type==="rule")return new Om(r);if(r.type==="comment")return new xm(r);if(r.type==="atrule")return new Tm(r);throw new Error("Unknown node type: "+n.type)}var Bm=en;en.default=en;var Mm=Ca,ju=Ti,Dm=Vu,Nm=tr,Ta=Am,Lm=Ri,Fm=Bm,zu=Sa,Um=Bu,qu=Ii,Wu=Ea,$m=Aa,Vm=Pi,jm=xa,zm=Fu,Gu=Ra,Hu=un,qm=xi;function ce(){for(var n=arguments.length,t=new Array(n),o=0;o<n;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Ta(t)}ce.plugin=function(t,o){var r=!1;function e(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
55
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Gn.LANG&&Gn.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
56
+ https://www.w3ctech.com/topic/2226`));var l=o.apply(void 0,[].concat(s));return l.postcssPlugin=t,l.postcssVersion=new Ta().version,l}var i;return Object.defineProperty(e,"postcss",{get:function(){return i||(i=e()),i}}),e.process=function(a,s,c){return ce([e(c)]).process(a,s)},e};ce.stringify=Lm;ce.parse=jm;ce.fromJSON=Fm;ce.list=zm;ce.comment=function(n){return new qu(n)};ce.atRule=function(n){return new Wu(n)};ce.decl=function(n){return new ju(n)};ce.rule=function(n){return new Gu(n)};ce.root=function(n){return new Hu(n)};ce.document=function(n){return new zu(n)};ce.CssSyntaxError=Mm;ce.Declaration=ju;ce.Container=Nm;ce.Processor=Ta;ce.Document=zu;ce.Comment=qu;ce.Warning=Um;ce.AtRule=Wu;ce.Result=$m;ce.Input=Vm;ce.Rule=Gu;ce.Root=Hu;ce.Node=qm;Dm.registerPostcss(ce);var Wm=ce;ce.default=ce;var ge=ip(Wm);ge.stringify;ge.fromJSON;ge.plugin;ge.parse;ge.list;ge.document;ge.comment;ge.atRule;ge.rule;ge.decl;ge.root;ge.CssSyntaxError;ge.Declaration;ge.Container;ge.Processor;ge.Document;ge.Comment;ge.Warning;ge.AtRule;ge.Result;ge.Input;ge.Rule;ge.Root;ge.Node;var Gm=function(){function n(){for(var o=arguments.length,r=new Array(o),e=0;e<o;e++)r[e]=arguments[e];Ge(this,"parentElement",null),Ge(this,"parentNode",null),Ge(this,"ownerDocument"),Ge(this,"firstChild",null),Ge(this,"lastChild",null),Ge(this,"previousSibling",null),Ge(this,"nextSibling",null),Ge(this,"ELEMENT_NODE",1),Ge(this,"TEXT_NODE",3),Ge(this,"nodeType"),Ge(this,"nodeName"),Ge(this,"RRNodeType")}var t=n.prototype;return t.contains=function(r){if(j(r,n)){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1},t.appendChild=function(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(r,e){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Oe(n,[{key:"childNodes",get:function(){for(var r=[],e=this.firstChild;e;)r.push(e),e=e.nextSibling;return r}}]),n}(),Ls={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mn={},Hm=function(){return!!globalThis.Zone};function Pa(n){if(Mn[n])return Mn[n];var t=globalThis[n],o=t.prototype,r=n in Ls?Ls[n]:void 0,e=!!(r&&r.every(function(u){var d,h;return!!((h=(d=Object.getOwnPropertyDescriptor(o,u))==null?void 0:d.get)!=null&&h.toString().includes("[native code]"))})),i=n in Fs?Fs[n]:void 0,a=!!(i&&i.every(function(u){var d;return typeof o[u]=="function"&&((d=o[u])==null?void 0:d.toString().includes("[native code]"))}));if(e&&a&&!Hm())return Mn[n]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[n].prototype;return document.body.removeChild(s),l?Mn[n]=l:o}catch{return o}}var Zi={};function Vt(n,t,o){var r,e=n+"."+String(o);if(Zi[e])return Zi[e].call(t);var i=Pa(n),a=(r=Object.getOwnPropertyDescriptor(i,o))==null?void 0:r.get;return a?(Zi[e]=a,a.call(t)):t[o]}var Ki={};function Yu(n,t,o){var r=n+"."+String(o);if(Ki[r])return Ki[r].bind(t);var e=Pa(n),i=e[o];return typeof i!="function"?t[o]:(Ki[r]=i,i.bind(t))}function Ym(n){return Vt("Node",n,"childNodes")}function Jm(n){return Vt("Node",n,"parentNode")}function Zm(n){return Vt("Node",n,"parentElement")}function Km(n){return Vt("Node",n,"textContent")}function Xm(n,t){return Yu("Node",n,"contains")(t)}function Qm(n){return Yu("Node",n,"getRootNode")()}function e_(n){return!n||!("host"in n)?null:Vt("ShadowRoot",n,"host")}function t_(n){return n.styleSheets}function r_(n){return!n||!("shadowRoot"in n)?null:Vt("Element",n,"shadowRoot")}function n_(n,t){return Vt("Element",n,"querySelector")(t)}function i_(n,t){return Vt("Element",n,"querySelectorAll")(t)}function Ju(){return Pa("MutationObserver").constructor}function rr(n,t,o){try{if(!(t in n))return function(){};var r=n[t],e=o(r);return typeof e=="function"&&(e.prototype=e.prototype||{},Object.defineProperties(e,{__rrweb_original__:{enumerable:!1,value:r}})),n[t]=e,function(){n[t]=r}}catch{return function(){}}}var K={childNodes:Ym,parentNode:Jm,parentElement:Zm,textContent:Km,contains:Xm,getRootNode:Qm,host:e_,styleSheets:t_,shadowRoot:r_,querySelector:n_,querySelectorAll:i_,mutationObserver:Ju,patch:rr};function Fe(n,t,o){o===void 0&&(o=document);var r={capture:!0,passive:!0};return o.addEventListener(n,t,r),function(){return o.removeEventListener(n,t,r)}}var ur=`Please stop import mirror directly. Instead of that,\r
57
57
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
58
- or you can use record.mirror to access the mirror instance during recording.`,Us={map:{},getId:function(){return console.error(cr),-1},getNode:function(){return console.error(cr),null},removeNodeFromMap:function(){console.error(cr)},has:function(){return console.error(cr),!1},reset:function(){console.error(cr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Us=new Proxy(Us,{get:function(t,o,r){return o==="map"&&console.error(cr),Reflect.get(t,o,r)}}));function tn(n,t,o){o===void 0&&(o={});var r=null,e=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var c=Date.now();!e&&o.leading===!1&&(e=c);var l=t-(c-e),u=this;l<=0||l>t?(r&&(clearTimeout(r),r=null),e=c,n.apply(u,a)):!r&&o.trailing!==!1&&(r=setTimeout(function(){e=o.leading===!1?0:Date.now(),r=null,n.apply(u,a)},l))}}function Oi(n,t,o,r,e){e===void 0&&(e=window);var i=e.Object.getOwnPropertyDescriptor(n,t);return e.Object.defineProperty(n,t,r?o:{set:function(s){var c=this;setTimeout(function(){o.set.call(c,s)},0),i&&i.set&&i.set.call(this,s)}}),function(){return Oi(n,t,i||{},!0)}}var ai=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ai=function(){return new Date().getTime()});function Zu(n){var t,o,r,e,i=n.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:n.pageXOffset!==void 0?n.pageXOffset:i.documentElement.scrollLeft||i?.body&&((t=K.parentElement(i.body))==null?void 0:t.scrollLeft)||((o=i?.body)==null?void 0:o.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:n.pageYOffset!==void 0?n.pageYOffset:i?.documentElement.scrollTop||i?.body&&((r=K.parentElement(i.body))==null?void 0:r.scrollTop)||((e=i?.body)==null?void 0:e.scrollTop)||0}}function Ku(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qu(n){if(!n)return null;var t=n.nodeType===n.ELEMENT_NODE?n:K.parentElement(n);return t}function Ue(n,t,o,r){if(!n)return!1;var e=Qu(n);if(!e)return!1;try{if(typeof t=="string"){if(e.classList.contains(t)||r&&e.closest("."+t)!==null)return!0}else if(Kn(e,t,r))return!0}catch{}return!!(o&&(e.matches(o)||r&&e.closest(o)!==null))}function o_(n,t){return t.getId(n)!==-1}function Xi(n,t,o){return n.tagName==="TITLE"&&o.headTitleMutations?!0:t.getId(n)===Wr}function el(n,t){if(Nr(n))return!1;var o=t.getId(n);if(!t.has(o))return!0;var r=K.parentNode(n);return r&&r.nodeType===n.DOCUMENT_NODE?!1:r?el(r,t):!0}function zo(n){return!!n.changedTouches}function a_(n){n===void 0&&(n=window),"NodeList"in n&&!n.NodeList.prototype.forEach&&(n.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in n&&!n.DOMTokenList.prototype.forEach&&(n.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function tl(n,t){return!!(n.nodeName==="IFRAME"&&t.getMeta(n))}function rl(n,t){return!!(n.nodeName==="LINK"&&n.nodeType===n.ELEMENT_NODE&&n.getAttribute&&n.getAttribute("rel")==="stylesheet"&&t.getMeta(n))}function qo(n){return n?j(n,Wm)&&"shadowRoot"in n?!!n.shadowRoot:!!K.shadowRoot(n):!1}var s_=function(){function n(){L(this,"id",1),L(this,"styleIDMap",new WeakMap),L(this,"idStyleMap",new Map)}var t=n.prototype;return t.getId=function(r){var e;return(e=this.styleIDMap.get(r))!=null?e:-1},t.has=function(r){return this.styleIDMap.has(r)},t.add=function(r,e){if(this.has(r))return this.getId(r);var i;return e===void 0?i=this.id++:i=e,this.styleIDMap.set(r,i),this.idStyleMap.set(i,r),i},t.getStyle=function(r){return this.idStyleMap.get(r)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},n}();function nl(n){var t,o=null;return"getRootNode"in n&&((t=K.getRootNode(n))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&K.host(K.getRootNode(n))&&(o=K.host(K.getRootNode(n))),o}function c_(n){for(var t=n,o;o=nl(t);)t=o;return t}function u_(n){var t=n.ownerDocument;if(!t)return!1;var o=c_(n);return K.contains(t,o)}function il(n){var t=n.ownerDocument;return t?K.contains(t,n)||u_(n):!1}var X=function(n){return n[n.DomContentLoaded=0]="DomContentLoaded",n[n.Load=1]="Load",n[n.FullSnapshot=2]="FullSnapshot",n[n.IncrementalSnapshot=3]="IncrementalSnapshot",n[n.Meta=4]="Meta",n[n.Custom=5]="Custom",n[n.Plugin=6]="Plugin",n}(X||{}),q=function(n){return n[n.Mutation=0]="Mutation",n[n.MouseMove=1]="MouseMove",n[n.MouseInteraction=2]="MouseInteraction",n[n.Scroll=3]="Scroll",n[n.ViewportResize=4]="ViewportResize",n[n.Input=5]="Input",n[n.TouchMove=6]="TouchMove",n[n.MediaInteraction=7]="MediaInteraction",n[n.StyleSheetRule=8]="StyleSheetRule",n[n.CanvasMutation=9]="CanvasMutation",n[n.Font=10]="Font",n[n.Log=11]="Log",n[n.Drag=12]="Drag",n[n.StyleDeclaration=13]="StyleDeclaration",n[n.Selection=14]="Selection",n[n.AdoptedStyleSheet=15]="AdoptedStyleSheet",n[n.CustomElement=16]="CustomElement",n}(q||{}),Ve=function(n){return n[n.MouseUp=0]="MouseUp",n[n.MouseDown=1]="MouseDown",n[n.Click=2]="Click",n[n.ContextMenu=3]="ContextMenu",n[n.DblClick=4]="DblClick",n[n.Focus=5]="Focus",n[n.Blur=6]="Blur",n[n.TouchStart=7]="TouchStart",n[n.TouchMove_Departed=8]="TouchMove_Departed",n[n.TouchEnd=9]="TouchEnd",n[n.TouchCancel=10]="TouchCancel",n}(Ve||{}),yt=function(n){return n[n.Mouse=0]="Mouse",n[n.Pen=1]="Pen",n[n.Touch=2]="Touch",n}(yt||{}),kr=function(n){return n[n["2D"]=0]="2D",n[n.WebGL=1]="WebGL",n[n.WebGL2=2]="WebGL2",n}(kr||{}),ur=function(n){return n[n.Play=0]="Play",n[n.Pause=1]="Pause",n[n.Seeked=2]="Seeked",n[n.VolumeChange=3]="VolumeChange",n[n.RateChange=4]="RateChange",n}(ur||{}),ol=function(n){return n[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment",n}(ol||{});function $s(n){return"__ln"in n}var l_=function(){function n(){L(this,"length",0),L(this,"head",null),L(this,"tail",null)}var t=n.prototype;return t.get=function(r){if(r>=this.length)throw new Error("Position outside of list range");for(var e=this.head,i=0;i<r;i++)e=e?.next||null;return e},t.addNode=function(r){var e={value:r,previous:null,next:null};if(r.__ln=e,r.previousSibling&&$s(r.previousSibling)){var i=r.previousSibling.__ln.next;e.next=i,e.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=e,i&&(i.previous=e)}else if(r.nextSibling&&$s(r.nextSibling)&&r.nextSibling.__ln.previous){var a=r.nextSibling.__ln.previous;e.previous=a,e.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=e,a&&(a.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;e.next===null&&(this.tail=e),this.length++},t.removeNode=function(r){var e=r.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),r.__ln&&delete r.__ln,this.length--)},n}(),Vs=function(n,t){return n+"@"+t},d_=function(){function n(){var o=this;L(this,"frozen",!1),L(this,"locked",!1),L(this,"texts",[]),L(this,"attributes",[]),L(this,"attributeMap",new WeakMap),L(this,"removes",[]),L(this,"mapRemoves",[]),L(this,"movedMap",{}),L(this,"addedSet",new Set),L(this,"movedSet",new Set),L(this,"droppedSet",new Set),L(this,"removesSubTreeCache",new Set),L(this,"mutationCb"),L(this,"blockClass"),L(this,"blockSelector"),L(this,"maskTextClass"),L(this,"maskTextSelector"),L(this,"inlineStylesheet"),L(this,"maskInputOptions"),L(this,"maskTextFn"),L(this,"maskInputFn"),L(this,"keepIframeSrcFn"),L(this,"recordCanvas"),L(this,"inlineImages"),L(this,"slimDOMOptions"),L(this,"dataURLOptions"),L(this,"doc"),L(this,"mirror"),L(this,"iframeManager"),L(this,"stylesheetManager"),L(this,"shadowDomManager"),L(this,"canvasManager"),L(this,"processedNodeManager"),L(this,"unattachedDoc"),L(this,"processMutations",function(r){r.forEach(o.processMutation),o.emit()}),L(this,"emit",function(){if(!(o.frozen||o.locked)){for(var r=[],e=new Set,i=new l_,a=function($){for(var z=$,ee=Wr;ee===Wr;)z=z&&z.nextSibling,ee=z&&o.mirror.getId(z);return ee},s=function($){var z=K.parentNode($);if(!(!z||!il($))){var ee=!1;if($.nodeType===Node.TEXT_NODE){var Te=z.tagName;if(Te==="TEXTAREA")return;Te==="STYLE"&&o.addedSet.has(z)&&(ee=!0)}var te=Nr(z)?o.mirror.getId(nl($)):o.mirror.getId(z),Ne=a($);if(te===-1||Ne===-1)return i.addNode($);var Pe=dr($,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(ue){tl(ue,o.mirror)&&o.iframeManager.addIframe(ue),rl(ue,o.mirror)&&o.stylesheetManager.trackLinkElement(ue),qo($)&&o.shadowDomManager.addShadowRoot(K.shadowRoot($),o.doc)},onIframeLoad:function(ue,Ee){o.iframeManager.attachIframe(ue,Ee),o.shadowDomManager.observeAttachShadow(ue)},onStylesheetLoad:function(ue,Ee){o.stylesheetManager.attachLinkElement(ue,Ee)},cssCaptured:ee});Pe&&(r.push({parentId:te,nextId:Ne,node:Pe}),e.add(Pe.id))}};o.mapRemoves.length;)o.mirror.removeNodeFromMap(o.mapRemoves.shift());for(var c=U(o.movedSet),l;!(l=c()).done;){var u=l.value;js(o.removesSubTreeCache,u,o.mirror)&&!o.movedSet.has(K.parentNode(u))||s(u)}for(var d=U(o.addedSet),h;!(h=d()).done;){var _=h.value;!zs(o.droppedSet,_)&&!js(o.removesSubTreeCache,_,o.mirror)||zs(o.movedSet,_)?s(_):o.droppedSet.add(_)}for(var v=null;i.length;){var C=null;if(v){var g=o.mirror.getId(K.parentNode(v.value)),b=a(v.value);g!==-1&&b!==-1&&(C=v)}if(!C)for(var w=i.tail;w;){var S=w;if(w=w.previous,S){var R=o.mirror.getId(K.parentNode(S.value)),T=a(S.value);if(T===-1)continue;if(R!==-1){C=S;break}else{var I=S.value,M=K.parentNode(I);if(M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var O=K.host(M),N=o.mirror.getId(O);if(N!==-1){C=S;break}}}}}if(!C){for(;i.head;)i.removeNode(i.head.value);break}v=C.previous,i.removeNode(C.value),s(C.value)}var F={texts:o.texts.map(function($){var z=$.node,ee=K.parentNode(z);return ee&&ee.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(ee),{id:o.mirror.getId(z),value:$.value}}).filter(function($){return!e.has($.id)}).filter(function($){return o.mirror.has($.id)}),attributes:o.attributes.map(function($){var z=$.attributes;if(typeof z.style=="string"){var ee=JSON.stringify($.styleDiff),Te=JSON.stringify($._unchangedStyles);ee.length<z.style.length&&(ee+Te).split("var(").length===z.style.split("var(").length&&(z.style=$.styleDiff)}return{id:o.mirror.getId($.node),attributes:z}}).filter(function($){return!e.has($.id)}).filter(function($){return o.mirror.has($.id)}),removes:o.removes,adds:r};!F.texts.length&&!F.attributes.length&&!F.removes.length&&!F.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(F))}}),L(this,"genTextAreaValueMutation",function(r){var e=o.attributeMap.get(r);e||(e={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(e),o.attributeMap.set(r,e));var i=Array.from(K.childNodes(r),function(a){return K.textContent(a)||""}).join("");e.attributes.value=Yn({element:r,maskInputOptions:o.maskInputOptions,tagName:r.tagName,type:Jn(r),value:i,maskInputFn:o.maskInputFn})}),L(this,"processMutation",function(r){if(!Xi(r.target,o.mirror,o.slimDOMOptions))switch(r.type){case"characterData":{var e=K.textContent(r.target);!Ue(r.target,o.blockClass,o.blockSelector,!1)&&e!==r.oldValue&&o.texts.push({value:Dc(r.target,o.maskTextClass,o.maskTextSelector,!0)&&e?o.maskTextFn?o.maskTextFn(e,Qu(r.target)):e.replace(/[\S]/g,"*"):e,node:r.target});break}case"attributes":{var i=r.target,a=r.attributeName,s=r.target.getAttribute(a);if(a==="value"){var c=Jn(i);s=Yn({element:i,maskInputOptions:o.maskInputOptions,tagName:i.tagName,type:c,value:s,maskInputFn:o.maskInputFn})}if(Ue(r.target,o.blockClass,o.blockSelector,!1)||s===r.oldValue)return;var l=o.attributeMap.get(r.target);if(i.tagName==="IFRAME"&&a==="src"&&!o.keepIframeSrcFn(s))if(!i.contentDocument)a="rr_src";else return;if(l||(l={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(l),o.attributeMap.set(r.target,l)),a==="type"&&i.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&i.setAttribute("data-rr-is-password","true"),!Mc(i.tagName,a))if(l.attributes[a]=Bc(o.doc,Zt(i.tagName),Zt(a),s),a==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch{o.unattachedDoc=o.doc}var u=o.unattachedDoc.createElement("span");r.oldValue&&u.setAttribute("style",r.oldValue);for(var d=U(Array.from(i.style)),h;!(h=d()).done;){var _=h.value,v=i.style.getPropertyValue(_),C=i.style.getPropertyPriority(_);v!==u.style.getPropertyValue(_)||C!==u.style.getPropertyPriority(_)?C===""?l.styleDiff[_]=v:l.styleDiff[_]=[v,C]:l._unchangedStyles[_]=[v,C]}for(var g=U(Array.from(u.style)),b;!(b=g()).done;){var w=b.value;i.style.getPropertyValue(w)===""&&(l.styleDiff[w]=!1)}}else a==="open"&&i.tagName==="DIALOG"&&(i.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break}case"childList":{if(Ue(r.target,o.blockClass,o.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach(function(S){return o.genAdds(S,r.target)}),r.removedNodes.forEach(function(S){var R=o.mirror.getId(S),T=Nr(r.target)?o.mirror.getId(K.host(r.target)):o.mirror.getId(r.target);Ue(r.target,o.blockClass,o.blockSelector,!1)||Xi(S,o.mirror,o.slimDOMOptions)||!o_(S,o.mirror)||(o.addedSet.has(S)?(Go(o.addedSet,S),o.droppedSet.add(S)):o.addedSet.has(r.target)&&R===-1||el(r.target,o.mirror)||(o.movedSet.has(S)&&o.movedMap[Vs(R,T)]?Go(o.movedSet,S):(o.removes.push({parentId:T,id:R,isShadow:Nr(r.target)&&Lr(r.target)?!0:void 0}),f_(S,o.removesSubTreeCache))),o.mapRemoves.push(S))});break}}}),L(this,"genAdds",function(r,e){if(!o.processedNodeManager.inOtherBuffer(r,o)&&!(o.addedSet.has(r)||o.movedSet.has(r))){if(o.mirror.hasNode(r)){if(Xi(r,o.mirror,o.slimDOMOptions))return;o.movedSet.add(r);var i=null;e&&o.mirror.hasNode(e)&&(i=o.mirror.getId(e)),i&&i!==-1&&(o.movedMap[Vs(o.mirror.getId(r),i)]=!0)}else o.addedSet.add(r),o.droppedSet.delete(r);Ue(r,o.blockClass,o.blockSelector,!1)||(K.childNodes(r).forEach(function(a){return o.genAdds(a)}),qo(r)&&K.childNodes(K.shadowRoot(r)).forEach(function(a){o.processedNodeManager.add(a,o),o.genAdds(a,r)}))}})}var t=n.prototype;return t.init=function(r){var e=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){e[i]=r[i]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},n}();function Go(n,t){n.delete(t),K.childNodes(t).forEach(function(o){return Go(n,o)})}function f_(n,t){for(var o=[n];o.length;){var r=o.pop();t.has(r)||(t.add(r),K.childNodes(r).forEach(function(e){return o.push(e)}))}}function js(n,t,o){return n.size===0?!1:h_(n,t)}function h_(n,t,o){var r=K.parentNode(t);return r?n.has(r):!1}function zs(n,t){return n.size===0?!1:al(n,t)}function al(n,t){var o=K.parentNode(t);return o?n.has(o)?!0:al(n,o):!1}var Fr;function p_(n){Fr=n}function m_(){Fr=void 0}var ne=function(n){if(!Fr)return n;var t=function(){for(var o=arguments.length,r=new Array(o),e=0;e<o;e++)r[e]=arguments[e];try{return n.apply(void 0,[].concat(r))}catch(i){if(Fr&&Fr(i)===!0)return;throw i}};return t},Jt=[];function ln(n){try{if("composedPath"in n){var t=n.composedPath();if(t.length)return t[0]}else if("path"in n&&n.path.length)return n.path[0]}catch{}return n&&n.target}function sl(n,t){var o=new d_;Jt.push(o),o.init(n);var r=new(Ju())(ne(o.processMutations.bind(o)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function __(n){var t=n.mousemoveCb,o=n.sampling,r=n.doc,e=n.mirror;if(o.mousemove===!1)return function(){};var i=typeof o.mousemove=="number"?o.mousemove:50,a=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,s=[],c,l=tn(ne(function(h){var _=Date.now()-c;t(s.map(function(v){return v.timeOffset-=_,v}),h),s=[],c=null}),a),u=ne(tn(ne(function(h){var _=ln(h),v=zo(h)?h.changedTouches[0]:h,C=v.clientX,g=v.clientY;c||(c=ai()),s.push({x:C,y:g,id:e.getId(_),timeOffset:ai()-c}),l(typeof DragEvent<"u"&&j(h,DragEvent)?q.Drag:j(h,MouseEvent)?q.MouseMove:q.TouchMove)}),i,{trailing:!1})),d=[Fe("mousemove",u,r),Fe("touchmove",u,r),Fe("drag",u,r)];return ne(function(){d.forEach(function(h){return h()})})}function v_(n){var t=n.mouseInteractionCb,o=n.doc,r=n.mirror,e=n.blockClass,i=n.blockSelector,a=n.sampling;if(a.mouseInteraction===!1)return function(){};var s=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,c=[],l=null,u=function(d){return function(h){var _=ln(h);if(!Ue(_,e,i,!0)){var v=null,C=d;if("pointerType"in h){switch(h.pointerType){case"mouse":v=yt.Mouse;break;case"touch":v=yt.Touch;break;case"pen":v=yt.Pen;break}v===yt.Touch?Ve[d]===Ve.MouseDown?C="TouchStart":Ve[d]===Ve.MouseUp&&(C="TouchEnd"):yt.Pen}else zo(h)&&(v=yt.Touch);v!==null?(l=v,(C.startsWith("Touch")&&v===yt.Touch||C.startsWith("Mouse")&&v===yt.Mouse)&&(v=null)):Ve[d]===Ve.Click&&(v=l,l=null);var g=zo(h)?h.changedTouches[0]:h;if(g){var b=r.getId(_),w=g.clientX,S=g.clientY;ne(t)(ie({type:Ve[C],id:b,x:w,y:S},v!==null&&{pointerType:v}))}}}};return Object.keys(Ve).filter(function(d){return Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1}).forEach(function(d){var h=Zt(d),_=u(d);if(window.PointerEvent)switch(Ve[d]){case Ve.MouseDown:case Ve.MouseUp:h=h.replace("mouse","pointer");break;case Ve.TouchStart:case Ve.TouchEnd:return}c.push(Fe(h,_,o))}),ne(function(){c.forEach(function(d){return d()})})}function cl(n){var t=n.scrollCb,o=n.doc,r=n.mirror,e=n.blockClass,i=n.blockSelector,a=n.sampling,s=ne(tn(ne(function(c){var l=ln(c);if(!(!l||Ue(l,e,i,!0))){var u=r.getId(l);if(l===o&&o.defaultView){var d=Zu(o.defaultView);t({id:u,x:d.left,y:d.top})}else t({id:u,x:l.scrollLeft,y:l.scrollTop})}}),a.scroll||100));return Fe("scroll",s,o)}function g_(n,t){var o=n.viewportResizeCb,r=t.win,e=-1,i=-1,a=ne(tn(ne(function(){var s=Ku(),c=Xu();(e!==s||i!==c)&&(o({width:Number(c),height:Number(s)}),e=s,i=c)}),200));return Fe("resize",a,r)}var y_=["INPUT","TEXTAREA","SELECT"],qs=new WeakMap;function b_(n){var t=n.inputCb,o=n.doc,r=n.mirror,e=n.blockClass,i=n.blockSelector,a=n.ignoreClass,s=n.ignoreSelector,c=n.maskInputOptions,l=n.maskInputFn,u=n.sampling,d=n.userTriggeredOnInput;function h(R){var T=ln(R),I=R.isTrusted,M=T&&T.tagName;if(T&&M==="OPTION"&&(T=K.parentElement(T)),!(!T||!M||y_.indexOf(M)<0||Ue(T,e,i,!0))&&!(T.classList.contains(a)||s&&T.matches(s))){var O=T.value,N=!1,F=Jn(T)||"";F==="radio"||F==="checkbox"?N=T.checked:(c[M.toLowerCase()]||c[F])&&(O=Yn({element:T,maskInputOptions:c,tagName:M,type:F,value:O,maskInputFn:l})),_(T,d?{text:O,isChecked:N,userTriggered:I}:{text:O,isChecked:N});var $=T.name;F==="radio"&&$&&N&&o.querySelectorAll('input[type="radio"][name="'+$+'"]').forEach(function(z){if(z!==T){var ee=z.value;_(z,d?{text:ee,isChecked:!N,userTriggered:!1}:{text:ee,isChecked:!N})}})}}function _(R,T){var I=qs.get(R);if(!I||I.text!==T.text||I.isChecked!==T.isChecked){qs.set(R,T);var M=r.getId(R);ne(t)(ie({},T,{id:M}))}}var v=u.input==="last"?["change"]:["input","change"],C=v.map(function(R){return Fe(R,ne(h),o)}),g=o.defaultView;if(!g)return function(){C.forEach(function(R){return R()})};var b=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];if(b&&b.set){var S;(S=C).push.apply(S,[].concat(w.map(function(R){return Oi(R[0],R[1],{set:function(){ne(h)({target:this,isTrusted:!1})}},!1,g)})))}return ne(function(){C.forEach(function(R){return R()})})}function si(n){var t=[];function o(r,e){if(Dn("CSSGroupingRule")&&j(r.parentRule,CSSGroupingRule)||Dn("CSSMediaRule")&&j(r.parentRule,CSSMediaRule)||Dn("CSSSupportsRule")&&j(r.parentRule,CSSSupportsRule)||Dn("CSSConditionRule")&&j(r.parentRule,CSSConditionRule)){var i=Array.from(r.parentRule.cssRules),a=i.indexOf(r);e.unshift(a)}else if(r.parentStyleSheet){var s=Array.from(r.parentStyleSheet.cssRules),c=s.indexOf(r);e.unshift(c)}return e}return o(n,t)}function It(n,t,o){var r,e;return n?(n.ownerNode?r=t.getId(n.ownerNode):e=o.getId(n),{styleId:e,id:r}):{}}function C_(n,t){var o=n.styleSheetRuleCb,r=n.mirror,e=n.stylesheetManager,i=t.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:ne(function(h,_,v){var C=v[0],g=v[1],b=It(_,r,e.styleMirror),w=b.id,S=b.styleId;return(w&&w!==-1||S&&S!==-1)&&o({id:w,styleId:S,adds:[{rule:C,index:g}]}),h.apply(_,v)})}),i.CSSStyleSheet.prototype.addRule=function(h,_,v){v===void 0&&(v=this.cssRules.length);var C=h+" { "+_+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[C,v])};var s=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ne(function(h,_,v){var C=v[0],g=It(_,r,e.styleMirror),b=g.id,w=g.styleId;return(b&&b!==-1||w&&w!==-1)&&o({id:b,styleId:w,removes:[{index:C}]}),h.apply(_,v)})}),i.CSSStyleSheet.prototype.removeRule=function(h){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var c;i.CSSStyleSheet.prototype.replace&&(c=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:ne(function(h,_,v){var C=v[0],g=It(_,r,e.styleMirror),b=g.id,w=g.styleId;return(b&&b!==-1||w&&w!==-1)&&o({id:b,styleId:w,replace:C}),h.apply(_,v)})}));var l;i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:ne(function(h,_,v){var C=v[0],g=It(_,r,e.styleMirror),b=g.id,w=g.styleId;return(b&&b!==-1||w&&w!==-1)&&o({id:b,styleId:w,replaceSync:C}),h.apply(_,v)})}));var u={};Nn("CSSGroupingRule")?u.CSSGroupingRule=i.CSSGroupingRule:(Nn("CSSMediaRule")&&(u.CSSMediaRule=i.CSSMediaRule),Nn("CSSConditionRule")&&(u.CSSConditionRule=i.CSSConditionRule),Nn("CSSSupportsRule")&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach(function(h){var _=h[0],v=h[1];d[_]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(d[_].insertRule,{apply:ne(function(C,g,b){var w=b[0],S=b[1],R=It(g.parentStyleSheet,r,e.styleMirror),T=R.id,I=R.styleId;return(T&&T!==-1||I&&I!==-1)&&o({id:T,styleId:I,adds:[{rule:w,index:[].concat(si(g),[S||0])}]}),C.apply(g,b)})}),v.prototype.deleteRule=new Proxy(d[_].deleteRule,{apply:ne(function(C,g,b){var w=b[0],S=It(g.parentStyleSheet,r,e.styleMirror),R=S.id,T=S.styleId;return(R&&R!==-1||T&&T!==-1)&&o({id:R,styleId:T,removes:[{index:[].concat(si(g),[w])}]}),C.apply(g,b)})})}),ne(function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=s,c&&(i.CSSStyleSheet.prototype.replace=c),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(function(h){var _=h[0],v=h[1];v.prototype.insertRule=d[_].insertRule,v.prototype.deleteRule=d[_].deleteRule})})}function ul(n,t){var o=n.mirror,r=n.stylesheetManager,e,i,a,s=null;t.nodeName==="#document"?s=o.getId(t):s=o.getId(K.host(t));var c=t.nodeName==="#document"?(e=t.defaultView)==null?void 0:e.Document:(a=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:a.ShadowRoot,l=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!c||!l?function(){}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var d;return(d=l.get)==null?void 0:d.call(this)},set:function(d){var h,_=(h=l.set)==null?void 0:h.call(this,d);if(s!==null&&s!==-1)try{r.adoptStyleSheets(d,s)}catch{}return _}}),ne(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function k_(n,t){var o=n.styleDeclarationCb,r=n.mirror,e=n.ignoreCSSAttributes,i=n.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ne(function(l,u,d){var h,_=d[0],v=d[1],C=d[2];if(e.has(_))return s.apply(u,[_,v,C]);var g=It((h=u.parentRule)==null?void 0:h.parentStyleSheet,r,i.styleMirror),b=g.id,w=g.styleId;return(b&&b!==-1||w&&w!==-1)&&o({id:b,styleId:w,set:{property:_,value:v,priority:C},index:si(u.parentRule)}),l.apply(u,d)})});var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:ne(function(l,u,d){var h,_=d[0];if(e.has(_))return c.apply(u,[_]);var v=It((h=u.parentRule)==null?void 0:h.parentStyleSheet,r,i.styleMirror),C=v.id,g=v.styleId;return(C&&C!==-1||g&&g!==-1)&&o({id:C,styleId:g,remove:{property:_},index:si(u.parentRule)}),l.apply(u,d)})}),ne(function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c})}function w_(n){var t=n.mediaInteractionCb,o=n.blockClass,r=n.blockSelector,e=n.mirror,i=n.sampling,a=n.doc,s=ne(function(l){return tn(ne(function(u){var d=ln(u);if(!(!d||Ue(d,o,r,!0))){var h=d.currentTime,_=d.volume,v=d.muted,C=d.playbackRate,g=d.loop;t({type:l,id:e.getId(d),currentTime:h,volume:_,muted:v,playbackRate:C,loop:g})}}),i.media||500)}),c=[Fe("play",s(ur.Play),a),Fe("pause",s(ur.Pause),a),Fe("seeked",s(ur.Seeked),a),Fe("volumechange",s(ur.VolumeChange),a),Fe("ratechange",s(ur.RateChange),a)];return ne(function(){c.forEach(function(l){return l()})})}function S_(n){var t=n.fontCb,o=n.doc,r=o.defaultView;if(!r)return function(){};var e=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(l,u,d){var h=new a(l,u,d);return i.set(h,{family:l,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),h};var s=tr(o.fonts,"add",function(c){return function(l){return setTimeout(ne(function(){var u=i.get(l);u&&(t(u),i.delete(l))}),0),c.apply(this,[l])}});return e.push(function(){r.FontFace=a}),e.push(s),ne(function(){e.forEach(function(c){return c()})})}function A_(n){var t=n.doc,o=n.mirror,r=n.blockClass,e=n.blockSelector,i=n.selectionCb,a=!0,s=ne(function(){var c=t.getSelection();if(!(!c||a&&c?.isCollapsed)){a=c.isCollapsed||!1;for(var l=[],u=c.rangeCount||0,d=0;d<u;d++){var h=c.getRangeAt(d),_=h.startContainer,v=h.startOffset,C=h.endContainer,g=h.endOffset,b=Ue(_,r,e,!0)||Ue(C,r,e,!0);b||l.push({start:o.getId(_),startOffset:v,end:o.getId(C),endOffset:g})}i({ranges:l})}});return s(),Fe("selectionchange",s)}function E_(n){var t=n.doc,o=n.customElementCb,r=t.defaultView;if(!r||!r.customElements)return function(){};var e=tr(r.customElements,"define",function(i){return function(a,s,c){try{o({define:{name:a}})}catch{console.warn("Custom element callback failed for "+a)}return i.apply(this,[a,s,c])}});return e}function R_(n,t){var o=n.mutationCb,r=n.mousemoveCb,e=n.mouseInteractionCb,i=n.scrollCb,a=n.viewportResizeCb,s=n.inputCb,c=n.mediaInteractionCb,l=n.styleSheetRuleCb,u=n.styleDeclarationCb,d=n.canvasMutationCb,h=n.fontCb,_=n.selectionCb,v=n.customElementCb;n.mutationCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.mutation){var w;(w=t).mutation.apply(w,[].concat(g))}o.apply(void 0,[].concat(g))},n.mousemoveCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.mousemove){var w;(w=t).mousemove.apply(w,[].concat(g))}r.apply(void 0,[].concat(g))},n.mouseInteractionCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.mouseInteraction){var w;(w=t).mouseInteraction.apply(w,[].concat(g))}e.apply(void 0,[].concat(g))},n.scrollCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.scroll){var w;(w=t).scroll.apply(w,[].concat(g))}i.apply(void 0,[].concat(g))},n.viewportResizeCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.viewportResize){var w;(w=t).viewportResize.apply(w,[].concat(g))}a.apply(void 0,[].concat(g))},n.inputCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.input){var w;(w=t).input.apply(w,[].concat(g))}s.apply(void 0,[].concat(g))},n.mediaInteractionCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.mediaInteaction){var w;(w=t).mediaInteaction.apply(w,[].concat(g))}c.apply(void 0,[].concat(g))},n.styleSheetRuleCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.styleSheetRule){var w;(w=t).styleSheetRule.apply(w,[].concat(g))}l.apply(void 0,[].concat(g))},n.styleDeclarationCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.styleDeclaration){var w;(w=t).styleDeclaration.apply(w,[].concat(g))}u.apply(void 0,[].concat(g))},n.canvasMutationCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.canvasMutation){var w;(w=t).canvasMutation.apply(w,[].concat(g))}d.apply(void 0,[].concat(g))},n.fontCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.font){var w;(w=t).font.apply(w,[].concat(g))}h.apply(void 0,[].concat(g))},n.selectionCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.selection){var w;(w=t).selection.apply(w,[].concat(g))}_.apply(void 0,[].concat(g))},n.customElementCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.customElement){var w;(w=t).customElement.apply(w,[].concat(g))}v.apply(void 0,[].concat(g))}}function x_(n,t){t===void 0&&(t={});var o=n.doc.defaultView;if(!o)return function(){};R_(n,t);var r;n.recordDOM&&(r=sl(n,n.doc));var e=__(n),i=v_(n),a=cl(n),s=g_(n,{win:o}),c=b_(n),l=w_(n),u=function(){},d=function(){},h=function(){},_=function(){};n.recordDOM&&(u=C_(n,{win:o}),d=ul(n,n.doc),h=k_(n,{win:o}),n.collectFonts&&(_=S_(n)));for(var v=A_(n),C=E_(n),g=[],b=U(n.plugins),w;!(w=b()).done;){var S=w.value;g.push(S.observer(S.callback,o,S.options))}return ne(function(){Jt.forEach(function(R){return R.reset()}),r?.disconnect(),e(),i(),a(),s(),c(),l(),u(),d(),h(),_(),v(),C(),g.forEach(function(R){return R()})})}function Dn(n){return typeof window[n]<"u"}function Nn(n){return!!(typeof window[n]<"u"&&window[n].prototype&&"insertRule"in window[n].prototype&&"deleteRule"in window[n].prototype)}var Gs=function(){function n(o){L(this,"iframeIdToRemoteIdMap",new WeakMap),L(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var t=n.prototype;return t.getId=function(r,e,i,a){var s=i||this.getIdToRemoteIdMap(r),c=a||this.getRemoteIdToIdMap(r),l=s.get(e);return l||(l=this.generateIdFn(),s.set(e,l),c.set(l,e)),l},t.getIds=function(r,e){var i=this,a=this.getIdToRemoteIdMap(r),s=this.getRemoteIdToIdMap(r);return e.map(function(c){return i.getId(r,c,a,s)})},t.getRemoteId=function(r,e,i){var a=i||this.getRemoteIdToIdMap(r);if(typeof e!="number")return e;var s=a.get(e);return s||-1},t.getRemoteIds=function(r,e){var i=this,a=this.getRemoteIdToIdMap(r);return e.map(function(s){return i.getRemoteId(r,s,a)})},t.reset=function(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)},t.getIdToRemoteIdMap=function(r){var e=this.iframeIdToRemoteIdMap.get(r);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(r,e)),e},t.getRemoteIdToIdMap=function(r){var e=this.iframeRemoteIdToIdMap.get(r);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(r,e)),e},n}(),T_=function(){function n(o){L(this,"iframes",new WeakMap),L(this,"crossOriginIframeMap",new WeakMap),L(this,"crossOriginIframeMirror",new Gs(Oc)),L(this,"crossOriginIframeStyleMirror"),L(this,"crossOriginIframeRootIdMap",new WeakMap),L(this,"mirror"),L(this,"mutationCb"),L(this,"wrappedEmit"),L(this,"loadListener"),L(this,"stylesheetManager"),L(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Gs(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=n.prototype;return t.addIframe=function(r){this.iframes.set(r,!0),r.contentWindow&&this.crossOriginIframeMap.set(r.contentWindow,r)},t.addLoadListener=function(r){this.loadListener=r},t.attachIframe=function(r,e){var i,a;this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=r.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))},t.handleMessage=function(r){var e=r;if(!(e.data.type!=="rrweb"||e.origin!==e.data.origin)){var i=r.source;if(i){var a=this.crossOriginIframeMap.get(r.source);if(a){var s=this.transformCrossOriginEvent(a,e.data.event);s&&this.wrappedEmit(s,e.data.isCheckout)}}}},t.transformCrossOriginEvent=function(r,e){var i=this,a;switch(e.type){case X.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(e.data.node,r);var s=e.data.node.id;return this.crossOriginIframeRootIdMap.set(r,s),this.patchRootIdOnNode(e.data.node,s),{timestamp:e.timestamp,type:X.IncrementalSnapshot,data:{source:q.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case X.Meta:case X.Load:case X.DomContentLoaded:return!1;case X.Plugin:return e;case X.Custom:return this.replaceIds(e.data.payload,r,["id","parentId","previousId","nextId"]),e;case X.IncrementalSnapshot:switch(e.data.source){case q.Mutation:return e.data.adds.forEach(function(c){i.replaceIds(c,r,["parentId","nextId","previousId"]),i.replaceIdOnNode(c.node,r);var l=i.crossOriginIframeRootIdMap.get(r);l&&i.patchRootIdOnNode(c.node,l)}),e.data.removes.forEach(function(c){i.replaceIds(c,r,["parentId","id"])}),e.data.attributes.forEach(function(c){i.replaceIds(c,r,["id"])}),e.data.texts.forEach(function(c){i.replaceIds(c,r,["id"])}),e;case q.Drag:case q.TouchMove:case q.MouseMove:return e.data.positions.forEach(function(c){i.replaceIds(c,r,["id"])}),e;case q.ViewportResize:return!1;case q.MediaInteraction:case q.MouseInteraction:case q.Scroll:case q.CanvasMutation:case q.Input:return this.replaceIds(e.data,r,["id"]),e;case q.StyleSheetRule:case q.StyleDeclaration:return this.replaceIds(e.data,r,["id"]),this.replaceStyleIds(e.data,r,["styleId"]),e;case q.Font:return e;case q.Selection:return e.data.ranges.forEach(function(c){i.replaceIds(c,r,["start","end"])}),e;case q.AdoptedStyleSheet:return this.replaceIds(e.data,r,["id"]),this.replaceStyleIds(e.data,r,["styleIds"]),(a=e.data.styles)==null||a.forEach(function(c){i.replaceStyleIds(c,r,["styleId"])}),e}}return!1},t.replace=function(r,e,i,a){for(var s=U(a),c;!(c=s()).done;){var l=c.value;!Array.isArray(e[l])&&typeof e[l]!="number"||(Array.isArray(e[l])?e[l]=r.getIds(i,e[l]):e[l]=r.getId(i,e[l]))}return e},t.replaceIds=function(r,e,i){return this.replace(this.crossOriginIframeMirror,r,e,i)},t.replaceStyleIds=function(r,e,i){return this.replace(this.crossOriginIframeStyleMirror,r,e,i)},t.replaceIdOnNode=function(r,e){var i=this;this.replaceIds(r,e,["id","rootId"]),"childNodes"in r&&r.childNodes.forEach(function(a){i.replaceIdOnNode(a,e)})},t.patchRootIdOnNode=function(r,e){var i=this;r.type!==ol.Document&&!r.rootId&&(r.rootId=e),"childNodes"in r&&r.childNodes.forEach(function(a){i.patchRootIdOnNode(a,e)})},n}(),P_=function(){function n(o){L(this,"shadowDoms",new WeakSet),L(this,"mutationCb"),L(this,"scrollCb"),L(this,"bypassOptions"),L(this,"mirror"),L(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var t=n.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(r,e){var i=this;if(Lr(r)&&!this.shadowDoms.has(r)){this.shadowDoms.add(r);var a=sl(ie({},this.bypassOptions,{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),r);this.restoreHandlers.push(function(){return a.disconnect()}),this.restoreHandlers.push(cl(ie({},this.bypassOptions,{scrollCb:this.scrollCb,doc:r,mirror:this.mirror}))),setTimeout(function(){r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&i.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,i.mirror.getId(K.host(r))),i.restoreHandlers.push(ul({mirror:i.mirror,stylesheetManager:i.bypassOptions.stylesheetManager},r))},0)}},t.observeAttachShadow=function(r){!r.contentWindow||!r.contentDocument||this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)},t.patchAttachShadow=function(r,e){var i=this;this.restoreHandlers.push(tr(r.prototype,"attachShadow",function(a){return function(s){var c=a.call(this,s),l=K.shadowRoot(this);return l&&il(this)&&i.addShadowRoot(l,e),c}}))},t.reset=function(){this.restoreHandlers.forEach(function(r){try{r()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},n}(),fr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I_=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ln=0;Ln<fr.length;Ln++)I_[fr.charCodeAt(Ln)]=Ln;var O_=function(t){var o=new Uint8Array(t),r,e=o.length,i="";for(r=0;r<e;r+=3)i+=fr[o[r]>>2],i+=fr[(o[r]&3)<<4|o[r+1]>>4],i+=fr[(o[r+1]&15)<<2|o[r+2]>>6],i+=fr[o[r+2]&63];return e%3===2?i=i.substring(0,i.length-1)+"=":e%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Ws=new Map;function B_(n,t){var o=Ws.get(n);return o||(o=new Map,Ws.set(n,o)),o.has(t)||o.set(t,[]),o.get(t)}var ll=function(n,t,o){if(!(!n||!(fl(n,t)||(typeof n>"u"?"undefined":H(n))==="object"))){var r=n.constructor.name,e=B_(o,r),i=e.indexOf(n);return i===-1&&(i=e.length,e.push(n)),i}};function qn(n,t,o){if(j(n,Array))return n.map(function(v){return qn(v,t,o)});if(n===null)return n;if(j(n,Float32Array)||j(n,Float64Array)||j(n,Int32Array)||j(n,Uint32Array)||j(n,Uint8Array)||j(n,Uint16Array)||j(n,Int16Array)||j(n,Int8Array)||j(n,Uint8ClampedArray)){var r=n.constructor.name;return{rr_type:r,args:[Object.values(n)]}}else if(j(n,ArrayBuffer)){var e=n.constructor.name,i=O_(n);return{rr_type:e,base64:i}}else if(j(n,DataView)){var a=n.constructor.name;return{rr_type:a,args:[qn(n.buffer,t,o),n.byteOffset,n.byteLength]}}else if(j(n,HTMLImageElement)){var s=n.constructor.name,c=n.src;return{rr_type:s,src:c}}else if(j(n,HTMLCanvasElement)){var l="HTMLImageElement",u=n.toDataURL();return{rr_type:l,src:u}}else if(j(n,ImageData)){var d=n.constructor.name;return{rr_type:d,args:[qn(n.data,t,o),n.width,n.height]}}else if(fl(n,t)||(typeof n>"u"?"undefined":H(n))==="object"){var h=n.constructor.name,_=ll(n,t,o);return{rr_type:h,index:_}}return n}var dl=function(n,t,o){return n.map(function(r){return qn(r,t,o)})},fl=function(n,t){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],r=o.filter(function(e){return typeof t[e]=="function"});return!!r.find(function(e){return j(n,t[e])})};function M_(n,t,o,r){for(var e=function(){var l=c.value;try{if(typeof t.CanvasRenderingContext2D.prototype[l]!="function")return"continue";var u=tr(t.CanvasRenderingContext2D.prototype,l,function(h){return function(){for(var _=this,v=arguments.length,C=new Array(v),g=0;g<v;g++)C[g]=arguments[g];return Ue(this.canvas,o,r,!0)||setTimeout(function(){var b=dl(C,t,_);n(_.canvas,{type:kr["2D"],property:l,args:b})},0),h.apply(this,C)}});i.push(u)}catch{var d=Oi(t.CanvasRenderingContext2D.prototype,l,{set:function(v){n(this.canvas,{type:kr["2D"],property:l,args:[v],setter:!0})}});i.push(d)}},i=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),s=U(a),c;!(c=s()).done;)e();return function(){i.forEach(function(l){return l()})}}function D_(n){return n==="experimental-webgl"?"webgl":n}function Hs(n,t,o,r){var e=[];try{var i=tr(n.HTMLCanvasElement.prototype,"getContext",function(a){return function(s){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];if(!Ue(this,t,o,!0)){var d=D_(s);if("__context"in this||(this.__context=d),r&&["webgl","webgl2"].includes(d))if(l[0]&&H(l[0])==="object"){var h=l[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[].concat([s],l))}});e.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){e.forEach(function(a){return a()})}}function Ys(n,t,o,r,e,i){for(var a=function(){var d=u.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))return"continue";try{if(typeof n[d]!="function")return"continue";var h=tr(n,d,function(v){return function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];var w=v.apply(this,g);if(ll(w,i,this),"tagName"in this.canvas&&!Ue(this.canvas,r,e,!0)){var S=dl(g,i,this),R={type:t,property:d,args:S};o(this.canvas,R)}return w}});s.push(h)}catch{var _=Oi(n,d,{set:function(g){o(this.canvas,{type:t,property:d,args:[g],setter:!0})}});s.push(_)}},s=[],c=Object.getOwnPropertyNames(n),l=U(c),u;!(u=l()).done;)a();return s}function N_(n,t,o,r){var e,i=[];if((e=i).push.apply(e,[].concat(Ys(t.WebGLRenderingContext.prototype,kr.WebGL,n,o,r,t))),typeof t.WebGL2RenderingContext<"u"){var a;(a=i).push.apply(a,[].concat(Ys(t.WebGL2RenderingContext.prototype,kr.WebGL2,n,o,r,t)))}return function(){i.forEach(function(s){return s()})}}var hl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",L_=function(n){return Uint8Array.from(atob(n),function(t){return t.charCodeAt(0)})},Js=typeof window<"u"&&window.Blob&&new Blob([L_(hl)],{type:"text/javascript;charset=utf-8"});function F_(n){var t;try{if(t=Js&&(window.URL||window.webkitURL).createObjectURL(Js),!t)throw"";var o=new Worker(t,{name:n?.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),o}catch{return new Worker("data:text/javascript;base64,"+hl,{name:n?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var U_=function(){function n(o){var r=this;L(this,"pendingCanvasMutations",new Map),L(this,"rafStamps",{latestId:0,invokeId:null}),L(this,"mirror"),L(this,"mutationCb"),L(this,"resetObservers"),L(this,"frozen",!1),L(this,"locked",!1),L(this,"processMutation",function(d,h){var _=r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId;(_||!r.rafStamps.invokeId)&&(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(d)||r.pendingCanvasMutations.set(d,[]),r.pendingCanvasMutations.get(d).push(h)});var e=o.sampling,i=e===void 0?"all":e,a=o.win,s=o.blockClass,c=o.blockSelector,l=o.recordCanvas,u=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,l&&i==="all"&&this.initCanvasMutationObserver(a,s,c),l&&typeof i=="number"&&this.initCanvasFPSObserver(i,a,s,c,{dataURLOptions:u})}var t=n.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(r,e,i,a,s){var c=this,l=Hs(e,i,a,!0),u=new Map,d=new F_;d.onmessage=function(b){var w=b.data.id;if(u.set(w,!1),"base64"in b.data){var S=b.data,R=S.base64,T=S.type,I=S.width,M=S.height;c.mutationCb({id:w,type:kr["2D"],commands:[{property:"clearRect",args:[0,0,I,M]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:R}],type:T}]},0,0]}]})}};var h=1e3/r,_=0,v,C=function(){var b=[];return e.document.querySelectorAll("canvas").forEach(function(w){Ue(w,i,a,!0)||b.push(w)}),b},g=function(b){if(_&&b-_<h){v=requestAnimationFrame(g);return}_=b;var w=c;C().forEach(sa(function(S){var R,T,I,M;return Gr(this,function(O){switch(O.label){case 0:return T=w.mirror.getId(S),u.get(T)?[2]:S.width===0||S.height===0?[2]:(u.set(T,!0),["webgl","webgl2"].includes(S.__context)&&(I=S.getContext(S.__context),((R=I?.getContextAttributes())==null?void 0:R.preserveDrawingBuffer)===!1&&I.clear(I.COLOR_BUFFER_BIT)),[4,createImageBitmap(S)]);case 1:return M=O.sent(),d.postMessage({id:T,bitmap:M,width:S.width,height:S.height,dataURLOptions:s.dataURLOptions},[M]),[2]}})})),v=requestAnimationFrame(g)};v=requestAnimationFrame(g),this.resetObservers=function(){l(),cancelAnimationFrame(v)}},t.initCanvasMutationObserver=function(r,e,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var a=Hs(r,e,i,!1),s=M_(this.processMutation.bind(this),r,e,i),c=N_(this.processMutation.bind(this),r,e,i);this.resetObservers=function(){a(),s(),c()}},t.startPendingCanvasMutationFlusher=function(){var r=this;requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var r=this,e=function(i){r.rafStamps.latestId=i,requestAnimationFrame(e)};requestAnimationFrame(e)},t.flushPendingCanvasMutations=function(){var r=this;this.pendingCanvasMutations.forEach(function(e,i){var a=r.mirror.getId(i);r.flushPendingCanvasMutationFor(i,a)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(r,e){if(!(this.frozen||this.locked)){var i=this.pendingCanvasMutations.get(r);if(!(!i||e===-1)){var a=i.map(function(c){c.type;var l=zr(c,["type"]);return l}),s=i[0].type;this.mutationCb({id:e,type:s,commands:a}),this.pendingCanvasMutations.delete(r)}}},n}(),$_=function(){function n(o){L(this,"trackedLinkElements",new WeakSet),L(this,"mutationCb"),L(this,"adoptedStyleSheetCb"),L(this,"styleMirror",new s_),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var t=n.prototype;return t.attachLinkElement=function(r,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(r)},t.trackLinkElement=function(r){this.trackedLinkElements.has(r)||(this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r))},t.adoptStyleSheets=function(r,e){var i,a=function(){var d=u.value,h=void 0;i.styleMirror.has(d)?h=i.styleMirror.getId(d):(h=i.styleMirror.add(d),c.push({styleId:h,rules:Array.from(d.rules||CSSRule,function(_,v){return{rule:Tc(_,d.href),index:v}})})),s.styleIds.push(h)};if(r.length!==0){for(var s={id:e,styleIds:[]},c=[],l=U(r),u;!(u=l()).done;)i=this,a();c.length>0&&(s.styles=c),this.adoptedStyleSheetCb(s)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(r){},n}(),V_=function(){function n(){L(this,"nodeMap",new WeakMap),L(this,"active",!1)}var t=n.prototype;return t.inOtherBuffer=function(r,e){var i=this.nodeMap.get(r);return i&&Array.from(i).some(function(a){return a!==e})},t.add=function(r,e){var i=this;this.active||(this.active=!0,requestAnimationFrame(function(){i.nodeMap=new WeakMap,i.active=!1})),this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(e))},t.destroy=function(){},n}(),be,Gn,Qi,ci=!1;try{if(Array.from([1],function(n){return n*2})[0]!==2){var eo=document.createElement("iframe");document.body.appendChild(eo),Array.from=((Xa=eo.contentWindow)==null?void 0:Xa.Array.from)||Array.from,document.body.removeChild(eo)}}catch(n){console.debug("Unable to override Array.from",n)}var et=jd();function jt(n){n===void 0&&(n={});var t=n.emit,o=n.checkoutEveryNms,r=n.checkoutEveryNth,e=n.blockClass,i=e===void 0?"rr-block":e,a=n.blockSelector,s=a===void 0?null:a,c=n.ignoreClass,l=c===void 0?"rr-ignore":c,u=n.ignoreSelector,d=u===void 0?null:u,h=n.maskTextClass,_=h===void 0?"rr-mask":h,v=n.maskTextSelector,C=v===void 0?null:v,g=n.inlineStylesheet,b=g===void 0?!0:g,w=n.maskAllInputs,S=n.maskInputOptions,R=n.slimDOMOptions,T=n.maskInputFn,I=n.maskTextFn,M=n.hooks,O=n.packFn,N=n.sampling,F=N===void 0?{}:N,$=n.dataURLOptions,z=$===void 0?{}:$,ee=n.mousemoveWait,Te=n.recordDOM,te=Te===void 0?!0:Te,Ne=n.recordCanvas,Pe=Ne===void 0?!1:Ne,ue=n.recordCrossOriginIframes,Ee=ue===void 0?!1:ue,Le=n.recordAfter,mt=Le===void 0?n.recordAfter==="DOMContentLoaded"?n.recordAfter:"load":Le,qe=n.userTriggeredOnInput,xt=qe===void 0?!1:qe,oe=n.collectFonts,ye=oe===void 0?!1:oe,re=n.inlineImages,nt=re===void 0?!1:re,it=n.plugins,_t=n.keepIframeSrcFn,Tt=_t===void 0?function(){return!1}:_t,Ge=n.ignoreCSSAttributes,Wt=Ge===void 0?new Set([]):Ge,Ht=n.errorHandler;p_(Ht);var ot=Ee?window.parent===window:!0,at=!1;if(!ot)try{window.parent.document&&(at=!1)}catch{at=!0}if(ot&&!t)throw new Error("emit function is required");if(!ot&&!at)return function(){};ee!==void 0&&F.mousemove===void 0&&(F.mousemove=ee),et.reset();var je=w===!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}:S!==void 0?S:{password:!0},Ke=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:R==="all",headMetaDescKeywords:R==="all",headTitleMutations:R==="all"}:R||{};a_();var Pt,vt=0,ze=function(E){for(var P=U(it||[]),D;!(D=P()).done;){var V=D.value;V.eventProcessor&&(E=V.eventProcessor(E))}return O&&!at&&(E=O(E)),E};be=function(E,P){var D,V=E;if(V.timestamp=ai(),(D=Jt[0])!=null&&D.isFrozen()&&V.type!==X.FullSnapshot&&!(V.type===X.IncrementalSnapshot&&V.data.source===q.Mutation)&&Jt.forEach(function(sd){return sd.unfreeze()}),ot)t?.(ze(V),P);else if(at){var le={type:"rrweb",event:ze(V),origin:window.location.origin,isCheckout:P};window.parent.postMessage(le,"*")}if(V.type===X.FullSnapshot)Pt=V,vt=0;else if(V.type===X.IncrementalSnapshot){if(V.data.source===q.Mutation&&V.data.isAttachIframe)return;vt++;var _e=r&&vt>=r,ae=o&&V.timestamp-Pt.timestamp>o;(_e||ae)&&Gn(!0)}};for(var gt=function(E){be({type:X.IncrementalSnapshot,data:ie({source:q.Mutation},E)})},fn=function(E){return be({type:X.IncrementalSnapshot,data:ie({source:q.Scroll},E)})},Tr=function(E){return be({type:X.IncrementalSnapshot,data:ie({source:q.CanvasMutation},E)})},nr=function(E){return be({type:X.IncrementalSnapshot,data:ie({source:q.AdoptedStyleSheet},E)})},Ie=new $_({mutationCb:gt,adoptedStyleSheetCb:nr}),Xe=new T_({mirror:et,mutationCb:gt,stylesheetManager:Ie,recordCrossOriginIframes:Ee,wrappedEmit:be}),Fi=U(it||[]),Qe;!(Qe=Fi()).done;){var hn=Qe.value;hn.getMirror&&hn.getMirror({nodeMirror:et,crossOriginIframeMirror:Xe.crossOriginIframeMirror,crossOriginIframeStyleMirror:Xe.crossOriginIframeStyleMirror})}var y=new V_;Qi=new U_({recordCanvas:Pe,mutationCb:Tr,win:window,blockClass:i,blockSelector:s,mirror:et,sampling:F.canvas,dataURLOptions:z});var f=new P_({mutationCb:gt,scrollCb:fn,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:_,maskTextSelector:C,inlineStylesheet:b,maskInputOptions:je,dataURLOptions:z,maskTextFn:I,maskInputFn:T,recordCanvas:Pe,inlineImages:nt,sampling:F,slimDOMOptions:Ke,iframeManager:Xe,stylesheetManager:Ie,canvasManager:Qi,keepIframeSrcFn:Tt,processedNodeManager:y},mirror:et});Gn=function(E){if(E===void 0&&(E=!1),!!te){be({type:X.Meta,data:{href:window.location.href,width:Xu(),height:Ku()}},E),Ie.reset(),f.init(),Jt.forEach(function(D){return D.lock()});var P=hf(document,{mirror:et,blockClass:i,blockSelector:s,maskTextClass:_,maskTextSelector:C,inlineStylesheet:b,maskAllInputs:je,maskTextFn:I,maskInputFn:T,slimDOM:Ke,dataURLOptions:z,recordCanvas:Pe,inlineImages:nt,onSerialize:function(D){tl(D,et)&&Xe.addIframe(D),rl(D,et)&&Ie.trackLinkElement(D),qo(D)&&f.addShadowRoot(K.shadowRoot(D),document)},onIframeLoad:function(D,V){Xe.attachIframe(D,V),f.observeAttachShadow(D)},onStylesheetLoad:function(D,V){Ie.attachLinkElement(D,V)},keepIframeSrcFn:Tt});if(!P)return console.warn("Failed to snapshot the document");be({type:X.FullSnapshot,data:{node:P,initialOffset:Zu(window)}},E),Jt.forEach(function(D){return D.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ie.adoptStyleSheets(document.adoptedStyleSheets,et.getId(document))}};try{var p=[],k=function(E){var P;return ne(x_)({mutationCb:gt,mousemoveCb:function(D,V){return be({type:X.IncrementalSnapshot,data:{source:V,positions:D}})},mouseInteractionCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.MouseInteraction},D)})},scrollCb:fn,viewportResizeCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.ViewportResize},D)})},inputCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.Input},D)})},mediaInteractionCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.MediaInteraction},D)})},styleSheetRuleCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.StyleSheetRule},D)})},styleDeclarationCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.StyleDeclaration},D)})},canvasMutationCb:Tr,fontCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.Font},D)})},selectionCb:function(D){be({type:X.IncrementalSnapshot,data:ie({source:q.Selection},D)})},customElementCb:function(D){be({type:X.IncrementalSnapshot,data:ie({source:q.CustomElement},D)})},blockClass:i,ignoreClass:l,ignoreSelector:d,maskTextClass:_,maskTextSelector:C,maskInputOptions:je,inlineStylesheet:b,sampling:F,recordDOM:te,recordCanvas:Pe,inlineImages:nt,userTriggeredOnInput:xt,collectFonts:ye,doc:E,maskInputFn:T,maskTextFn:I,keepIframeSrcFn:Tt,blockSelector:s,slimDOMOptions:Ke,dataURLOptions:z,mirror:et,iframeManager:Xe,stylesheetManager:Ie,shadowDomManager:f,processedNodeManager:y,canvasManager:Qi,ignoreCSSAttributes:Wt,plugins:((P=it?.filter(function(D){return D.observer}))==null?void 0:P.map(function(D){return{observer:D.observer,options:D.options,callback:function(V){return be({type:X.Plugin,data:{plugin:D.name,payload:V}})}}}))||[]},M)};Xe.addLoadListener(function(E){try{p.push(k(E.contentDocument))}catch(P){console.warn(P)}});var A=function(){Gn(),p.push(k(document)),ci=!0};return document.readyState==="interactive"||document.readyState==="complete"?A():(p.push(Fe("DOMContentLoaded",function(){be({type:X.DomContentLoaded,data:{}}),mt==="DOMContentLoaded"&&A()})),p.push(Fe("load",function(){be({type:X.Load,data:{}}),mt==="load"&&A()},window))),function(){p.forEach(function(E){try{E()}catch(D){var P=String(D).toLowerCase();P.includes("cross-origin")||console.warn(D)}}),y.destroy(),ci=!1,m_()}}catch(E){console.warn(E)}}jt.addCustomEvent=function(n,t){if(!ci)throw new Error("please add custom event after start recording");be({type:X.Custom,data:{tag:n,payload:t}})};jt.freezePage=function(){Jt.forEach(function(n){return n.freeze()})};jt.takeFullSnapshot=function(n){if(!ci)throw new Error("please take full snapshot after start recording");Gn(n)};jt.mirror=et;var Zs;(function(n){n[n.NotStarted=0]="NotStarted",n[n.Running=1]="Running",n[n.Stopped=2]="Stopped"})(Zs||(Zs={}));jt.addCustomEvent;jt.freezePage;jt.takeFullSnapshot;var j_=Object.defineProperty,z_=function(n,t,o){return t in n?j_(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o},Fn=function(n,t,o){return z_(n,(typeof t>"u"?"undefined":H(t))!=="symbol"?t+"":t,o)};function q_(n,t,o){try{if(!(t in n))return function(){};var r=n[t],e=o(r);return typeof e=="function"&&(e.prototype=e.prototype||{},Object.defineProperties(e,{__rrweb_original__:{enumerable:!1,value:r}})),n[t]=e,function(){n[t]=r}}catch{return function(){}}}var ar=function(){function n(o){Fn(this,"fileName"),Fn(this,"functionName"),Fn(this,"lineNumber"),Fn(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var t=n.prototype;return t.toString=function(){var r=this.lineNumber||"",e=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+r+":"+e+")":this.fileName+":"+r+":"+e},n}(),G_=/(^|@)\S+:\d+/,Ks=/^\s*at .*(\S+:\d+|\(native\))/m,W_=/^(eval@)?(\[native code])?$/,to={parse:function(t){return t?typeof t.stacktrace<"u"||typeof t["opera#sourceloc"]<"u"?this.parseOpera(t):t.stack&&t.stack.match(Ks)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(t.indexOf(":")===-1)return[t];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=o.exec(t.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+t);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(t){var o=t.stack.split(`
59
- `).filter(function(r){return!!r.match(Ks)},this);return o.map(function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var e=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),i=e.match(/ (\((.+):(\d+):(\d+)\)$)/);e=i?e.replace(i[0],""):e;var a=e.split(/\s+/).slice(1),s=this.extractLocation(i?i[1]:a.pop()),c=a.join(" ")||void 0,l=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new ar({functionName:c,fileName:l,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(t){var o=t.stack.split(`
60
- `).filter(function(r){return!r.match(W_)},this);return o.map(function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),r.indexOf("@")===-1&&r.indexOf(":")===-1)return new ar({functionName:r});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=r.match(e),a=i&&i[1]?i[1]:void 0,s=this.extractLocation(r.replace(e,""));return new ar({functionName:a,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf(`
58
+ or you can use record.mirror to access the mirror instance during recording.`,Us={map:{},getId:function(){return console.error(ur),-1},getNode:function(){return console.error(ur),null},removeNodeFromMap:function(){console.error(ur)},has:function(){return console.error(ur),!1},reset:function(){console.error(ur)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Us=new Proxy(Us,{get:function(t,o,r){return o==="map"&&console.error(ur),Reflect.get(t,o,r)}}));function tn(n,t,o){o===void 0&&(o={});var r=null,e=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var c=Date.now();!e&&o.leading===!1&&(e=c);var l=t-(c-e),u=this;l<=0||l>t?(r&&(clearTimeout(r),r=null),e=c,n.apply(u,a)):!r&&o.trailing!==!1&&(r=setTimeout(function(){e=o.leading===!1?0:Date.now(),r=null,n.apply(u,a)},l))}}function Oi(n,t,o,r,e){e===void 0&&(e=window);var i=e.Object.getOwnPropertyDescriptor(n,t);return e.Object.defineProperty(n,t,r?o:{set:function(s){var c=this;setTimeout(function(){o.set.call(c,s)},0),i&&i.set&&i.set.call(this,s)}}),function(){return Oi(n,t,i||{},!0)}}var ai=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ai=function(){return new Date().getTime()});function Zu(n){var t,o,r,e,i=n.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:n.pageXOffset!==void 0?n.pageXOffset:i.documentElement.scrollLeft||i?.body&&((t=K.parentElement(i.body))==null?void 0:t.scrollLeft)||((o=i?.body)==null?void 0:o.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:n.pageYOffset!==void 0?n.pageYOffset:i?.documentElement.scrollTop||i?.body&&((r=K.parentElement(i.body))==null?void 0:r.scrollTop)||((e=i?.body)==null?void 0:e.scrollTop)||0}}function Ku(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Xu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qu(n){if(!n)return null;var t=n.nodeType===n.ELEMENT_NODE?n:K.parentElement(n);return t}function Ue(n,t,o,r){if(!n)return!1;var e=Qu(n);if(!e)return!1;try{if(typeof t=="string"){if(e.classList.contains(t)||r&&e.closest("."+t)!==null)return!0}else if(Kn(e,t,r))return!0}catch{}return!!(o&&(e.matches(o)||r&&e.closest(o)!==null))}function o_(n,t){return t.getId(n)!==-1}function Xi(n,t,o){return n.tagName==="TITLE"&&o.headTitleMutations?!0:t.getId(n)===Gr}function el(n,t){if(Nr(n))return!1;var o=t.getId(n);if(!t.has(o))return!0;var r=K.parentNode(n);return r&&r.nodeType===n.DOCUMENT_NODE?!1:r?el(r,t):!0}function zo(n){return!!n.changedTouches}function a_(n){n===void 0&&(n=window),"NodeList"in n&&!n.NodeList.prototype.forEach&&(n.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in n&&!n.DOMTokenList.prototype.forEach&&(n.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function tl(n,t){return!!(n.nodeName==="IFRAME"&&t.getMeta(n))}function rl(n,t){return!!(n.nodeName==="LINK"&&n.nodeType===n.ELEMENT_NODE&&n.getAttribute&&n.getAttribute("rel")==="stylesheet"&&t.getMeta(n))}function qo(n){return n?j(n,Gm)&&"shadowRoot"in n?!!n.shadowRoot:!!K.shadowRoot(n):!1}var s_=function(){function n(){L(this,"id",1),L(this,"styleIDMap",new WeakMap),L(this,"idStyleMap",new Map)}var t=n.prototype;return t.getId=function(r){var e;return(e=this.styleIDMap.get(r))!=null?e:-1},t.has=function(r){return this.styleIDMap.has(r)},t.add=function(r,e){if(this.has(r))return this.getId(r);var i;return e===void 0?i=this.id++:i=e,this.styleIDMap.set(r,i),this.idStyleMap.set(i,r),i},t.getStyle=function(r){return this.idStyleMap.get(r)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},n}();function nl(n){var t,o=null;return"getRootNode"in n&&((t=K.getRootNode(n))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&K.host(K.getRootNode(n))&&(o=K.host(K.getRootNode(n))),o}function c_(n){for(var t=n,o;o=nl(t);)t=o;return t}function u_(n){var t=n.ownerDocument;if(!t)return!1;var o=c_(n);return K.contains(t,o)}function il(n){var t=n.ownerDocument;return t?K.contains(t,n)||u_(n):!1}var X=function(n){return n[n.DomContentLoaded=0]="DomContentLoaded",n[n.Load=1]="Load",n[n.FullSnapshot=2]="FullSnapshot",n[n.IncrementalSnapshot=3]="IncrementalSnapshot",n[n.Meta=4]="Meta",n[n.Custom=5]="Custom",n[n.Plugin=6]="Plugin",n}(X||{}),q=function(n){return n[n.Mutation=0]="Mutation",n[n.MouseMove=1]="MouseMove",n[n.MouseInteraction=2]="MouseInteraction",n[n.Scroll=3]="Scroll",n[n.ViewportResize=4]="ViewportResize",n[n.Input=5]="Input",n[n.TouchMove=6]="TouchMove",n[n.MediaInteraction=7]="MediaInteraction",n[n.StyleSheetRule=8]="StyleSheetRule",n[n.CanvasMutation=9]="CanvasMutation",n[n.Font=10]="Font",n[n.Log=11]="Log",n[n.Drag=12]="Drag",n[n.StyleDeclaration=13]="StyleDeclaration",n[n.Selection=14]="Selection",n[n.AdoptedStyleSheet=15]="AdoptedStyleSheet",n[n.CustomElement=16]="CustomElement",n}(q||{}),Ve=function(n){return n[n.MouseUp=0]="MouseUp",n[n.MouseDown=1]="MouseDown",n[n.Click=2]="Click",n[n.ContextMenu=3]="ContextMenu",n[n.DblClick=4]="DblClick",n[n.Focus=5]="Focus",n[n.Blur=6]="Blur",n[n.TouchStart=7]="TouchStart",n[n.TouchMove_Departed=8]="TouchMove_Departed",n[n.TouchEnd=9]="TouchEnd",n[n.TouchCancel=10]="TouchCancel",n}(Ve||{}),yt=function(n){return n[n.Mouse=0]="Mouse",n[n.Pen=1]="Pen",n[n.Touch=2]="Touch",n}(yt||{}),wr=function(n){return n[n["2D"]=0]="2D",n[n.WebGL=1]="WebGL",n[n.WebGL2=2]="WebGL2",n}(wr||{}),lr=function(n){return n[n.Play=0]="Play",n[n.Pause=1]="Pause",n[n.Seeked=2]="Seeked",n[n.VolumeChange=3]="VolumeChange",n[n.RateChange=4]="RateChange",n}(lr||{}),ol=function(n){return n[n.Document=0]="Document",n[n.DocumentType=1]="DocumentType",n[n.Element=2]="Element",n[n.Text=3]="Text",n[n.CDATA=4]="CDATA",n[n.Comment=5]="Comment",n}(ol||{});function $s(n){return"__ln"in n}var l_=function(){function n(){L(this,"length",0),L(this,"head",null),L(this,"tail",null)}var t=n.prototype;return t.get=function(r){if(r>=this.length)throw new Error("Position outside of list range");for(var e=this.head,i=0;i<r;i++)e=e?.next||null;return e},t.addNode=function(r){var e={value:r,previous:null,next:null};if(r.__ln=e,r.previousSibling&&$s(r.previousSibling)){var i=r.previousSibling.__ln.next;e.next=i,e.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=e,i&&(i.previous=e)}else if(r.nextSibling&&$s(r.nextSibling)&&r.nextSibling.__ln.previous){var a=r.nextSibling.__ln.previous;e.previous=a,e.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=e,a&&(a.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;e.next===null&&(this.tail=e),this.length++},t.removeNode=function(r){var e=r.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),r.__ln&&delete r.__ln,this.length--)},n}(),Vs=function(n,t){return n+"@"+t},d_=function(){function n(){var o=this;L(this,"frozen",!1),L(this,"locked",!1),L(this,"texts",[]),L(this,"attributes",[]),L(this,"attributeMap",new WeakMap),L(this,"removes",[]),L(this,"mapRemoves",[]),L(this,"movedMap",{}),L(this,"addedSet",new Set),L(this,"movedSet",new Set),L(this,"droppedSet",new Set),L(this,"removesSubTreeCache",new Set),L(this,"mutationCb"),L(this,"blockClass"),L(this,"blockSelector"),L(this,"maskTextClass"),L(this,"maskTextSelector"),L(this,"inlineStylesheet"),L(this,"maskInputOptions"),L(this,"maskTextFn"),L(this,"maskInputFn"),L(this,"keepIframeSrcFn"),L(this,"recordCanvas"),L(this,"inlineImages"),L(this,"slimDOMOptions"),L(this,"dataURLOptions"),L(this,"doc"),L(this,"mirror"),L(this,"iframeManager"),L(this,"stylesheetManager"),L(this,"shadowDomManager"),L(this,"canvasManager"),L(this,"processedNodeManager"),L(this,"unattachedDoc"),L(this,"processMutations",function(r){r.forEach(o.processMutation),o.emit()}),L(this,"emit",function(){if(!(o.frozen||o.locked)){for(var r=[],e=new Set,i=new l_,a=function($){for(var z=$,ee=Gr;ee===Gr;)z=z&&z.nextSibling,ee=z&&o.mirror.getId(z);return ee},s=function($){var z=K.parentNode($);if(!(!z||!il($))){var ee=!1;if($.nodeType===Node.TEXT_NODE){var Te=z.tagName;if(Te==="TEXTAREA")return;Te==="STYLE"&&o.addedSet.has(z)&&(ee=!0)}var te=Nr(z)?o.mirror.getId(nl($)):o.mirror.getId(z),Ne=a($);if(te===-1||Ne===-1)return i.addNode($);var Pe=fr($,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(ue){tl(ue,o.mirror)&&o.iframeManager.addIframe(ue),rl(ue,o.mirror)&&o.stylesheetManager.trackLinkElement(ue),qo($)&&o.shadowDomManager.addShadowRoot(K.shadowRoot($),o.doc)},onIframeLoad:function(ue,Ee){o.iframeManager.attachIframe(ue,Ee),o.shadowDomManager.observeAttachShadow(ue)},onStylesheetLoad:function(ue,Ee){o.stylesheetManager.attachLinkElement(ue,Ee)},cssCaptured:ee});Pe&&(r.push({parentId:te,nextId:Ne,node:Pe}),e.add(Pe.id))}};o.mapRemoves.length;)o.mirror.removeNodeFromMap(o.mapRemoves.shift());for(var c=U(o.movedSet),l;!(l=c()).done;){var u=l.value;js(o.removesSubTreeCache,u,o.mirror)&&!o.movedSet.has(K.parentNode(u))||s(u)}for(var d=U(o.addedSet),h;!(h=d()).done;){var _=h.value;!zs(o.droppedSet,_)&&!js(o.removesSubTreeCache,_,o.mirror)||zs(o.movedSet,_)?s(_):o.droppedSet.add(_)}for(var v=null;i.length;){var C=null;if(v){var g=o.mirror.getId(K.parentNode(v.value)),b=a(v.value);g!==-1&&b!==-1&&(C=v)}if(!C)for(var w=i.tail;w;){var S=w;if(w=w.previous,S){var R=o.mirror.getId(K.parentNode(S.value)),T=a(S.value);if(T===-1)continue;if(R!==-1){C=S;break}else{var I=S.value,M=K.parentNode(I);if(M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var O=K.host(M),N=o.mirror.getId(O);if(N!==-1){C=S;break}}}}}if(!C){for(;i.head;)i.removeNode(i.head.value);break}v=C.previous,i.removeNode(C.value),s(C.value)}var F={texts:o.texts.map(function($){var z=$.node,ee=K.parentNode(z);return ee&&ee.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(ee),{id:o.mirror.getId(z),value:$.value}}).filter(function($){return!e.has($.id)}).filter(function($){return o.mirror.has($.id)}),attributes:o.attributes.map(function($){var z=$.attributes;if(typeof z.style=="string"){var ee=JSON.stringify($.styleDiff),Te=JSON.stringify($._unchangedStyles);ee.length<z.style.length&&(ee+Te).split("var(").length===z.style.split("var(").length&&(z.style=$.styleDiff)}return{id:o.mirror.getId($.node),attributes:z}}).filter(function($){return!e.has($.id)}).filter(function($){return o.mirror.has($.id)}),removes:o.removes,adds:r};!F.texts.length&&!F.attributes.length&&!F.removes.length&&!F.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(F))}}),L(this,"genTextAreaValueMutation",function(r){var e=o.attributeMap.get(r);e||(e={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(e),o.attributeMap.set(r,e));var i=Array.from(K.childNodes(r),function(a){return K.textContent(a)||""}).join("");e.attributes.value=Yn({element:r,maskInputOptions:o.maskInputOptions,tagName:r.tagName,type:Jn(r),value:i,maskInputFn:o.maskInputFn})}),L(this,"processMutation",function(r){if(!Xi(r.target,o.mirror,o.slimDOMOptions))switch(r.type){case"characterData":{var e=K.textContent(r.target);!Ue(r.target,o.blockClass,o.blockSelector,!1)&&e!==r.oldValue&&o.texts.push({value:Dc(r.target,o.maskTextClass,o.maskTextSelector,!0)&&e?o.maskTextFn?o.maskTextFn(e,Qu(r.target)):e.replace(/[\S]/g,"*"):e,node:r.target});break}case"attributes":{var i=r.target,a=r.attributeName,s=r.target.getAttribute(a);if(a==="value"){var c=Jn(i);s=Yn({element:i,maskInputOptions:o.maskInputOptions,tagName:i.tagName,type:c,value:s,maskInputFn:o.maskInputFn})}if(Ue(r.target,o.blockClass,o.blockSelector,!1)||s===r.oldValue)return;var l=o.attributeMap.get(r.target);if(i.tagName==="IFRAME"&&a==="src"&&!o.keepIframeSrcFn(s))if(!i.contentDocument)a="rr_src";else return;if(l||(l={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(l),o.attributeMap.set(r.target,l)),a==="type"&&i.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&i.setAttribute("data-rr-is-password","true"),!Mc(i.tagName,a))if(l.attributes[a]=Bc(o.doc,Kt(i.tagName),Kt(a),s),a==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch{o.unattachedDoc=o.doc}var u=o.unattachedDoc.createElement("span");r.oldValue&&u.setAttribute("style",r.oldValue);for(var d=U(Array.from(i.style)),h;!(h=d()).done;){var _=h.value,v=i.style.getPropertyValue(_),C=i.style.getPropertyPriority(_);v!==u.style.getPropertyValue(_)||C!==u.style.getPropertyPriority(_)?C===""?l.styleDiff[_]=v:l.styleDiff[_]=[v,C]:l._unchangedStyles[_]=[v,C]}for(var g=U(Array.from(u.style)),b;!(b=g()).done;){var w=b.value;i.style.getPropertyValue(w)===""&&(l.styleDiff[w]=!1)}}else a==="open"&&i.tagName==="DIALOG"&&(i.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break}case"childList":{if(Ue(r.target,o.blockClass,o.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach(function(S){return o.genAdds(S,r.target)}),r.removedNodes.forEach(function(S){var R=o.mirror.getId(S),T=Nr(r.target)?o.mirror.getId(K.host(r.target)):o.mirror.getId(r.target);Ue(r.target,o.blockClass,o.blockSelector,!1)||Xi(S,o.mirror,o.slimDOMOptions)||!o_(S,o.mirror)||(o.addedSet.has(S)?(Wo(o.addedSet,S),o.droppedSet.add(S)):o.addedSet.has(r.target)&&R===-1||el(r.target,o.mirror)||(o.movedSet.has(S)&&o.movedMap[Vs(R,T)]?Wo(o.movedSet,S):(o.removes.push({parentId:T,id:R,isShadow:Nr(r.target)&&Lr(r.target)?!0:void 0}),f_(S,o.removesSubTreeCache))),o.mapRemoves.push(S))});break}}}),L(this,"genAdds",function(r,e){if(!o.processedNodeManager.inOtherBuffer(r,o)&&!(o.addedSet.has(r)||o.movedSet.has(r))){if(o.mirror.hasNode(r)){if(Xi(r,o.mirror,o.slimDOMOptions))return;o.movedSet.add(r);var i=null;e&&o.mirror.hasNode(e)&&(i=o.mirror.getId(e)),i&&i!==-1&&(o.movedMap[Vs(o.mirror.getId(r),i)]=!0)}else o.addedSet.add(r),o.droppedSet.delete(r);Ue(r,o.blockClass,o.blockSelector,!1)||(K.childNodes(r).forEach(function(a){return o.genAdds(a)}),qo(r)&&K.childNodes(K.shadowRoot(r)).forEach(function(a){o.processedNodeManager.add(a,o),o.genAdds(a,r)}))}})}var t=n.prototype;return t.init=function(r){var e=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){e[i]=r[i]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},n}();function Wo(n,t){n.delete(t),K.childNodes(t).forEach(function(o){return Wo(n,o)})}function f_(n,t){for(var o=[n];o.length;){var r=o.pop();t.has(r)||(t.add(r),K.childNodes(r).forEach(function(e){return o.push(e)}))}}function js(n,t,o){return n.size===0?!1:h_(n,t)}function h_(n,t,o){var r=K.parentNode(t);return r?n.has(r):!1}function zs(n,t){return n.size===0?!1:al(n,t)}function al(n,t){var o=K.parentNode(t);return o?n.has(o)?!0:al(n,o):!1}var Fr;function p_(n){Fr=n}function m_(){Fr=void 0}var ne=function(n){if(!Fr)return n;var t=function(){for(var o=arguments.length,r=new Array(o),e=0;e<o;e++)r[e]=arguments[e];try{return n.apply(void 0,[].concat(r))}catch(i){if(Fr&&Fr(i)===!0)return;throw i}};return t},Zt=[];function ln(n){try{if("composedPath"in n){var t=n.composedPath();if(t.length)return t[0]}else if("path"in n&&n.path.length)return n.path[0]}catch{}return n&&n.target}function sl(n,t){var o=new d_;Zt.push(o),o.init(n);var r=new(Ju())(ne(o.processMutations.bind(o)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function __(n){var t=n.mousemoveCb,o=n.sampling,r=n.doc,e=n.mirror;if(o.mousemove===!1)return function(){};var i=typeof o.mousemove=="number"?o.mousemove:50,a=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,s=[],c,l=tn(ne(function(h){var _=Date.now()-c;t(s.map(function(v){return v.timeOffset-=_,v}),h),s=[],c=null}),a),u=ne(tn(ne(function(h){var _=ln(h),v=zo(h)?h.changedTouches[0]:h,C=v.clientX,g=v.clientY;c||(c=ai()),s.push({x:C,y:g,id:e.getId(_),timeOffset:ai()-c}),l(typeof DragEvent<"u"&&j(h,DragEvent)?q.Drag:j(h,MouseEvent)?q.MouseMove:q.TouchMove)}),i,{trailing:!1})),d=[Fe("mousemove",u,r),Fe("touchmove",u,r),Fe("drag",u,r)];return ne(function(){d.forEach(function(h){return h()})})}function v_(n){var t=n.mouseInteractionCb,o=n.doc,r=n.mirror,e=n.blockClass,i=n.blockSelector,a=n.sampling;if(a.mouseInteraction===!1)return function(){};var s=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,c=[],l=null,u=function(d){return function(h){var _=ln(h);if(!Ue(_,e,i,!0)){var v=null,C=d;if("pointerType"in h){switch(h.pointerType){case"mouse":v=yt.Mouse;break;case"touch":v=yt.Touch;break;case"pen":v=yt.Pen;break}v===yt.Touch?Ve[d]===Ve.MouseDown?C="TouchStart":Ve[d]===Ve.MouseUp&&(C="TouchEnd"):yt.Pen}else zo(h)&&(v=yt.Touch);v!==null?(l=v,(C.startsWith("Touch")&&v===yt.Touch||C.startsWith("Mouse")&&v===yt.Mouse)&&(v=null)):Ve[d]===Ve.Click&&(v=l,l=null);var g=zo(h)?h.changedTouches[0]:h;if(g){var b=r.getId(_),w=g.clientX,S=g.clientY;ne(t)(ie({type:Ve[C],id:b,x:w,y:S},v!==null&&{pointerType:v}))}}}};return Object.keys(Ve).filter(function(d){return Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&s[d]!==!1}).forEach(function(d){var h=Kt(d),_=u(d);if(window.PointerEvent)switch(Ve[d]){case Ve.MouseDown:case Ve.MouseUp:h=h.replace("mouse","pointer");break;case Ve.TouchStart:case Ve.TouchEnd:return}c.push(Fe(h,_,o))}),ne(function(){c.forEach(function(d){return d()})})}function cl(n){var t=n.scrollCb,o=n.doc,r=n.mirror,e=n.blockClass,i=n.blockSelector,a=n.sampling,s=ne(tn(ne(function(c){var l=ln(c);if(!(!l||Ue(l,e,i,!0))){var u=r.getId(l);if(l===o&&o.defaultView){var d=Zu(o.defaultView);t({id:u,x:d.left,y:d.top})}else t({id:u,x:l.scrollLeft,y:l.scrollTop})}}),a.scroll||100));return Fe("scroll",s,o)}function g_(n,t){var o=n.viewportResizeCb,r=t.win,e=-1,i=-1,a=ne(tn(ne(function(){var s=Ku(),c=Xu();(e!==s||i!==c)&&(o({width:Number(c),height:Number(s)}),e=s,i=c)}),200));return Fe("resize",a,r)}var y_=["INPUT","TEXTAREA","SELECT"],qs=new WeakMap;function b_(n){var t=n.inputCb,o=n.doc,r=n.mirror,e=n.blockClass,i=n.blockSelector,a=n.ignoreClass,s=n.ignoreSelector,c=n.maskInputOptions,l=n.maskInputFn,u=n.sampling,d=n.userTriggeredOnInput;function h(R){var T=ln(R),I=R.isTrusted,M=T&&T.tagName;if(T&&M==="OPTION"&&(T=K.parentElement(T)),!(!T||!M||y_.indexOf(M)<0||Ue(T,e,i,!0))&&!(T.classList.contains(a)||s&&T.matches(s))){var O=T.value,N=!1,F=Jn(T)||"";F==="radio"||F==="checkbox"?N=T.checked:(c[M.toLowerCase()]||c[F])&&(O=Yn({element:T,maskInputOptions:c,tagName:M,type:F,value:O,maskInputFn:l})),_(T,d?{text:O,isChecked:N,userTriggered:I}:{text:O,isChecked:N});var $=T.name;F==="radio"&&$&&N&&o.querySelectorAll('input[type="radio"][name="'+$+'"]').forEach(function(z){if(z!==T){var ee=z.value;_(z,d?{text:ee,isChecked:!N,userTriggered:!1}:{text:ee,isChecked:!N})}})}}function _(R,T){var I=qs.get(R);if(!I||I.text!==T.text||I.isChecked!==T.isChecked){qs.set(R,T);var M=r.getId(R);ne(t)(ie({},T,{id:M}))}}var v=u.input==="last"?["change"]:["input","change"],C=v.map(function(R){return Fe(R,ne(h),o)}),g=o.defaultView;if(!g)return function(){C.forEach(function(R){return R()})};var b=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),w=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];if(b&&b.set){var S;(S=C).push.apply(S,[].concat(w.map(function(R){return Oi(R[0],R[1],{set:function(){ne(h)({target:this,isTrusted:!1})}},!1,g)})))}return ne(function(){C.forEach(function(R){return R()})})}function si(n){var t=[];function o(r,e){if(Dn("CSSGroupingRule")&&j(r.parentRule,CSSGroupingRule)||Dn("CSSMediaRule")&&j(r.parentRule,CSSMediaRule)||Dn("CSSSupportsRule")&&j(r.parentRule,CSSSupportsRule)||Dn("CSSConditionRule")&&j(r.parentRule,CSSConditionRule)){var i=Array.from(r.parentRule.cssRules),a=i.indexOf(r);e.unshift(a)}else if(r.parentStyleSheet){var s=Array.from(r.parentStyleSheet.cssRules),c=s.indexOf(r);e.unshift(c)}return e}return o(n,t)}function It(n,t,o){var r,e;return n?(n.ownerNode?r=t.getId(n.ownerNode):e=o.getId(n),{styleId:e,id:r}):{}}function C_(n,t){var o=n.styleSheetRuleCb,r=n.mirror,e=n.stylesheetManager,i=t.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var a=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:ne(function(h,_,v){var C=v[0],g=v[1],b=It(_,r,e.styleMirror),w=b.id,S=b.styleId;return(w&&w!==-1||S&&S!==-1)&&o({id:w,styleId:S,adds:[{rule:C,index:g}]}),h.apply(_,v)})}),i.CSSStyleSheet.prototype.addRule=function(h,_,v){v===void 0&&(v=this.cssRules.length);var C=h+" { "+_+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[C,v])};var s=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ne(function(h,_,v){var C=v[0],g=It(_,r,e.styleMirror),b=g.id,w=g.styleId;return(b&&b!==-1||w&&w!==-1)&&o({id:b,styleId:w,removes:[{index:C}]}),h.apply(_,v)})}),i.CSSStyleSheet.prototype.removeRule=function(h){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var c;i.CSSStyleSheet.prototype.replace&&(c=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:ne(function(h,_,v){var C=v[0],g=It(_,r,e.styleMirror),b=g.id,w=g.styleId;return(b&&b!==-1||w&&w!==-1)&&o({id:b,styleId:w,replace:C}),h.apply(_,v)})}));var l;i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:ne(function(h,_,v){var C=v[0],g=It(_,r,e.styleMirror),b=g.id,w=g.styleId;return(b&&b!==-1||w&&w!==-1)&&o({id:b,styleId:w,replaceSync:C}),h.apply(_,v)})}));var u={};Nn("CSSGroupingRule")?u.CSSGroupingRule=i.CSSGroupingRule:(Nn("CSSMediaRule")&&(u.CSSMediaRule=i.CSSMediaRule),Nn("CSSConditionRule")&&(u.CSSConditionRule=i.CSSConditionRule),Nn("CSSSupportsRule")&&(u.CSSSupportsRule=i.CSSSupportsRule));var d={};return Object.entries(u).forEach(function(h){var _=h[0],v=h[1];d[_]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(d[_].insertRule,{apply:ne(function(C,g,b){var w=b[0],S=b[1],R=It(g.parentStyleSheet,r,e.styleMirror),T=R.id,I=R.styleId;return(T&&T!==-1||I&&I!==-1)&&o({id:T,styleId:I,adds:[{rule:w,index:[].concat(si(g),[S||0])}]}),C.apply(g,b)})}),v.prototype.deleteRule=new Proxy(d[_].deleteRule,{apply:ne(function(C,g,b){var w=b[0],S=It(g.parentStyleSheet,r,e.styleMirror),R=S.id,T=S.styleId;return(R&&R!==-1||T&&T!==-1)&&o({id:R,styleId:T,removes:[{index:[].concat(si(g),[w])}]}),C.apply(g,b)})})}),ne(function(){i.CSSStyleSheet.prototype.insertRule=a,i.CSSStyleSheet.prototype.deleteRule=s,c&&(i.CSSStyleSheet.prototype.replace=c),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(function(h){var _=h[0],v=h[1];v.prototype.insertRule=d[_].insertRule,v.prototype.deleteRule=d[_].deleteRule})})}function ul(n,t){var o=n.mirror,r=n.stylesheetManager,e,i,a,s=null;t.nodeName==="#document"?s=o.getId(t):s=o.getId(K.host(t));var c=t.nodeName==="#document"?(e=t.defaultView)==null?void 0:e.Document:(a=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:a.ShadowRoot,l=c?.prototype?Object.getOwnPropertyDescriptor(c?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!c||!l?function(){}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var d;return(d=l.get)==null?void 0:d.call(this)},set:function(d){var h,_=(h=l.set)==null?void 0:h.call(this,d);if(s!==null&&s!==-1)try{r.adoptStyleSheets(d,s)}catch{}return _}}),ne(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function k_(n,t){var o=n.styleDeclarationCb,r=n.mirror,e=n.ignoreCSSAttributes,i=n.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ne(function(l,u,d){var h,_=d[0],v=d[1],C=d[2];if(e.has(_))return s.apply(u,[_,v,C]);var g=It((h=u.parentRule)==null?void 0:h.parentStyleSheet,r,i.styleMirror),b=g.id,w=g.styleId;return(b&&b!==-1||w&&w!==-1)&&o({id:b,styleId:w,set:{property:_,value:v,priority:C},index:si(u.parentRule)}),l.apply(u,d)})});var c=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:ne(function(l,u,d){var h,_=d[0];if(e.has(_))return c.apply(u,[_]);var v=It((h=u.parentRule)==null?void 0:h.parentStyleSheet,r,i.styleMirror),C=v.id,g=v.styleId;return(C&&C!==-1||g&&g!==-1)&&o({id:C,styleId:g,remove:{property:_},index:si(u.parentRule)}),l.apply(u,d)})}),ne(function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=c})}function w_(n){var t=n.mediaInteractionCb,o=n.blockClass,r=n.blockSelector,e=n.mirror,i=n.sampling,a=n.doc,s=ne(function(l){return tn(ne(function(u){var d=ln(u);if(!(!d||Ue(d,o,r,!0))){var h=d.currentTime,_=d.volume,v=d.muted,C=d.playbackRate,g=d.loop;t({type:l,id:e.getId(d),currentTime:h,volume:_,muted:v,playbackRate:C,loop:g})}}),i.media||500)}),c=[Fe("play",s(lr.Play),a),Fe("pause",s(lr.Pause),a),Fe("seeked",s(lr.Seeked),a),Fe("volumechange",s(lr.VolumeChange),a),Fe("ratechange",s(lr.RateChange),a)];return ne(function(){c.forEach(function(l){return l()})})}function S_(n){var t=n.fontCb,o=n.doc,r=o.defaultView;if(!r)return function(){};var e=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(l,u,d){var h=new a(l,u,d);return i.set(h,{family:l,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),h};var s=rr(o.fonts,"add",function(c){return function(l){return setTimeout(ne(function(){var u=i.get(l);u&&(t(u),i.delete(l))}),0),c.apply(this,[l])}});return e.push(function(){r.FontFace=a}),e.push(s),ne(function(){e.forEach(function(c){return c()})})}function A_(n){var t=n.doc,o=n.mirror,r=n.blockClass,e=n.blockSelector,i=n.selectionCb,a=!0,s=ne(function(){var c=t.getSelection();if(!(!c||a&&c?.isCollapsed)){a=c.isCollapsed||!1;for(var l=[],u=c.rangeCount||0,d=0;d<u;d++){var h=c.getRangeAt(d),_=h.startContainer,v=h.startOffset,C=h.endContainer,g=h.endOffset,b=Ue(_,r,e,!0)||Ue(C,r,e,!0);b||l.push({start:o.getId(_),startOffset:v,end:o.getId(C),endOffset:g})}i({ranges:l})}});return s(),Fe("selectionchange",s)}function E_(n){var t=n.doc,o=n.customElementCb,r=t.defaultView;if(!r||!r.customElements)return function(){};var e=rr(r.customElements,"define",function(i){return function(a,s,c){try{o({define:{name:a}})}catch{console.warn("Custom element callback failed for "+a)}return i.apply(this,[a,s,c])}});return e}function R_(n,t){var o=n.mutationCb,r=n.mousemoveCb,e=n.mouseInteractionCb,i=n.scrollCb,a=n.viewportResizeCb,s=n.inputCb,c=n.mediaInteractionCb,l=n.styleSheetRuleCb,u=n.styleDeclarationCb,d=n.canvasMutationCb,h=n.fontCb,_=n.selectionCb,v=n.customElementCb;n.mutationCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.mutation){var w;(w=t).mutation.apply(w,[].concat(g))}o.apply(void 0,[].concat(g))},n.mousemoveCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.mousemove){var w;(w=t).mousemove.apply(w,[].concat(g))}r.apply(void 0,[].concat(g))},n.mouseInteractionCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.mouseInteraction){var w;(w=t).mouseInteraction.apply(w,[].concat(g))}e.apply(void 0,[].concat(g))},n.scrollCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.scroll){var w;(w=t).scroll.apply(w,[].concat(g))}i.apply(void 0,[].concat(g))},n.viewportResizeCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.viewportResize){var w;(w=t).viewportResize.apply(w,[].concat(g))}a.apply(void 0,[].concat(g))},n.inputCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.input){var w;(w=t).input.apply(w,[].concat(g))}s.apply(void 0,[].concat(g))},n.mediaInteractionCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.mediaInteaction){var w;(w=t).mediaInteaction.apply(w,[].concat(g))}c.apply(void 0,[].concat(g))},n.styleSheetRuleCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.styleSheetRule){var w;(w=t).styleSheetRule.apply(w,[].concat(g))}l.apply(void 0,[].concat(g))},n.styleDeclarationCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.styleDeclaration){var w;(w=t).styleDeclaration.apply(w,[].concat(g))}u.apply(void 0,[].concat(g))},n.canvasMutationCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.canvasMutation){var w;(w=t).canvasMutation.apply(w,[].concat(g))}d.apply(void 0,[].concat(g))},n.fontCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.font){var w;(w=t).font.apply(w,[].concat(g))}h.apply(void 0,[].concat(g))},n.selectionCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.selection){var w;(w=t).selection.apply(w,[].concat(g))}_.apply(void 0,[].concat(g))},n.customElementCb=function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];if(t.customElement){var w;(w=t).customElement.apply(w,[].concat(g))}v.apply(void 0,[].concat(g))}}function x_(n,t){t===void 0&&(t={});var o=n.doc.defaultView;if(!o)return function(){};R_(n,t);var r;n.recordDOM&&(r=sl(n,n.doc));var e=__(n),i=v_(n),a=cl(n),s=g_(n,{win:o}),c=b_(n),l=w_(n),u=function(){},d=function(){},h=function(){},_=function(){};n.recordDOM&&(u=C_(n,{win:o}),d=ul(n,n.doc),h=k_(n,{win:o}),n.collectFonts&&(_=S_(n)));for(var v=A_(n),C=E_(n),g=[],b=U(n.plugins),w;!(w=b()).done;){var S=w.value;g.push(S.observer(S.callback,o,S.options))}return ne(function(){Zt.forEach(function(R){return R.reset()}),r?.disconnect(),e(),i(),a(),s(),c(),l(),u(),d(),h(),_(),v(),C(),g.forEach(function(R){return R()})})}function Dn(n){return typeof window[n]<"u"}function Nn(n){return!!(typeof window[n]<"u"&&window[n].prototype&&"insertRule"in window[n].prototype&&"deleteRule"in window[n].prototype)}var Ws=function(){function n(o){L(this,"iframeIdToRemoteIdMap",new WeakMap),L(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var t=n.prototype;return t.getId=function(r,e,i,a){var s=i||this.getIdToRemoteIdMap(r),c=a||this.getRemoteIdToIdMap(r),l=s.get(e);return l||(l=this.generateIdFn(),s.set(e,l),c.set(l,e)),l},t.getIds=function(r,e){var i=this,a=this.getIdToRemoteIdMap(r),s=this.getRemoteIdToIdMap(r);return e.map(function(c){return i.getId(r,c,a,s)})},t.getRemoteId=function(r,e,i){var a=i||this.getRemoteIdToIdMap(r);if(typeof e!="number")return e;var s=a.get(e);return s||-1},t.getRemoteIds=function(r,e){var i=this,a=this.getRemoteIdToIdMap(r);return e.map(function(s){return i.getRemoteId(r,s,a)})},t.reset=function(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)},t.getIdToRemoteIdMap=function(r){var e=this.iframeIdToRemoteIdMap.get(r);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(r,e)),e},t.getRemoteIdToIdMap=function(r){var e=this.iframeRemoteIdToIdMap.get(r);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(r,e)),e},n}(),T_=function(){function n(o){L(this,"iframes",new WeakMap),L(this,"crossOriginIframeMap",new WeakMap),L(this,"crossOriginIframeMirror",new Ws(Oc)),L(this,"crossOriginIframeStyleMirror"),L(this,"crossOriginIframeRootIdMap",new WeakMap),L(this,"mirror"),L(this,"mutationCb"),L(this,"wrappedEmit"),L(this,"loadListener"),L(this,"stylesheetManager"),L(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ws(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=n.prototype;return t.addIframe=function(r){this.iframes.set(r,!0),r.contentWindow&&this.crossOriginIframeMap.set(r.contentWindow,r)},t.addLoadListener=function(r){this.loadListener=r},t.attachIframe=function(r,e){var i,a;this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=r.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))},t.handleMessage=function(r){var e=r;if(!(e.data.type!=="rrweb"||e.origin!==e.data.origin)){var i=r.source;if(i){var a=this.crossOriginIframeMap.get(r.source);if(a){var s=this.transformCrossOriginEvent(a,e.data.event);s&&this.wrappedEmit(s,e.data.isCheckout)}}}},t.transformCrossOriginEvent=function(r,e){var i=this,a;switch(e.type){case X.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(e.data.node,r);var s=e.data.node.id;return this.crossOriginIframeRootIdMap.set(r,s),this.patchRootIdOnNode(e.data.node,s),{timestamp:e.timestamp,type:X.IncrementalSnapshot,data:{source:q.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case X.Meta:case X.Load:case X.DomContentLoaded:return!1;case X.Plugin:return e;case X.Custom:return this.replaceIds(e.data.payload,r,["id","parentId","previousId","nextId"]),e;case X.IncrementalSnapshot:switch(e.data.source){case q.Mutation:return e.data.adds.forEach(function(c){i.replaceIds(c,r,["parentId","nextId","previousId"]),i.replaceIdOnNode(c.node,r);var l=i.crossOriginIframeRootIdMap.get(r);l&&i.patchRootIdOnNode(c.node,l)}),e.data.removes.forEach(function(c){i.replaceIds(c,r,["parentId","id"])}),e.data.attributes.forEach(function(c){i.replaceIds(c,r,["id"])}),e.data.texts.forEach(function(c){i.replaceIds(c,r,["id"])}),e;case q.Drag:case q.TouchMove:case q.MouseMove:return e.data.positions.forEach(function(c){i.replaceIds(c,r,["id"])}),e;case q.ViewportResize:return!1;case q.MediaInteraction:case q.MouseInteraction:case q.Scroll:case q.CanvasMutation:case q.Input:return this.replaceIds(e.data,r,["id"]),e;case q.StyleSheetRule:case q.StyleDeclaration:return this.replaceIds(e.data,r,["id"]),this.replaceStyleIds(e.data,r,["styleId"]),e;case q.Font:return e;case q.Selection:return e.data.ranges.forEach(function(c){i.replaceIds(c,r,["start","end"])}),e;case q.AdoptedStyleSheet:return this.replaceIds(e.data,r,["id"]),this.replaceStyleIds(e.data,r,["styleIds"]),(a=e.data.styles)==null||a.forEach(function(c){i.replaceStyleIds(c,r,["styleId"])}),e}}return!1},t.replace=function(r,e,i,a){for(var s=U(a),c;!(c=s()).done;){var l=c.value;!Array.isArray(e[l])&&typeof e[l]!="number"||(Array.isArray(e[l])?e[l]=r.getIds(i,e[l]):e[l]=r.getId(i,e[l]))}return e},t.replaceIds=function(r,e,i){return this.replace(this.crossOriginIframeMirror,r,e,i)},t.replaceStyleIds=function(r,e,i){return this.replace(this.crossOriginIframeStyleMirror,r,e,i)},t.replaceIdOnNode=function(r,e){var i=this;this.replaceIds(r,e,["id","rootId"]),"childNodes"in r&&r.childNodes.forEach(function(a){i.replaceIdOnNode(a,e)})},t.patchRootIdOnNode=function(r,e){var i=this;r.type!==ol.Document&&!r.rootId&&(r.rootId=e),"childNodes"in r&&r.childNodes.forEach(function(a){i.patchRootIdOnNode(a,e)})},n}(),P_=function(){function n(o){L(this,"shadowDoms",new WeakSet),L(this,"mutationCb"),L(this,"scrollCb"),L(this,"bypassOptions"),L(this,"mirror"),L(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var t=n.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(r,e){var i=this;if(Lr(r)&&!this.shadowDoms.has(r)){this.shadowDoms.add(r);var a=sl(ie({},this.bypassOptions,{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),r);this.restoreHandlers.push(function(){return a.disconnect()}),this.restoreHandlers.push(cl(ie({},this.bypassOptions,{scrollCb:this.scrollCb,doc:r,mirror:this.mirror}))),setTimeout(function(){r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&i.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,i.mirror.getId(K.host(r))),i.restoreHandlers.push(ul({mirror:i.mirror,stylesheetManager:i.bypassOptions.stylesheetManager},r))},0)}},t.observeAttachShadow=function(r){!r.contentWindow||!r.contentDocument||this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)},t.patchAttachShadow=function(r,e){var i=this;this.restoreHandlers.push(rr(r.prototype,"attachShadow",function(a){return function(s){var c=a.call(this,s),l=K.shadowRoot(this);return l&&il(this)&&i.addShadowRoot(l,e),c}}))},t.reset=function(){this.restoreHandlers.forEach(function(r){try{r()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},n}(),hr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I_=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ln=0;Ln<hr.length;Ln++)I_[hr.charCodeAt(Ln)]=Ln;var O_=function(t){var o=new Uint8Array(t),r,e=o.length,i="";for(r=0;r<e;r+=3)i+=hr[o[r]>>2],i+=hr[(o[r]&3)<<4|o[r+1]>>4],i+=hr[(o[r+1]&15)<<2|o[r+2]>>6],i+=hr[o[r+2]&63];return e%3===2?i=i.substring(0,i.length-1)+"=":e%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Gs=new Map;function B_(n,t){var o=Gs.get(n);return o||(o=new Map,Gs.set(n,o)),o.has(t)||o.set(t,[]),o.get(t)}var ll=function(n,t,o){if(!(!n||!(fl(n,t)||(typeof n>"u"?"undefined":H(n))==="object"))){var r=n.constructor.name,e=B_(o,r),i=e.indexOf(n);return i===-1&&(i=e.length,e.push(n)),i}};function qn(n,t,o){if(j(n,Array))return n.map(function(v){return qn(v,t,o)});if(n===null)return n;if(j(n,Float32Array)||j(n,Float64Array)||j(n,Int32Array)||j(n,Uint32Array)||j(n,Uint8Array)||j(n,Uint16Array)||j(n,Int16Array)||j(n,Int8Array)||j(n,Uint8ClampedArray)){var r=n.constructor.name;return{rr_type:r,args:[Object.values(n)]}}else if(j(n,ArrayBuffer)){var e=n.constructor.name,i=O_(n);return{rr_type:e,base64:i}}else if(j(n,DataView)){var a=n.constructor.name;return{rr_type:a,args:[qn(n.buffer,t,o),n.byteOffset,n.byteLength]}}else if(j(n,HTMLImageElement)){var s=n.constructor.name,c=n.src;return{rr_type:s,src:c}}else if(j(n,HTMLCanvasElement)){var l="HTMLImageElement",u=n.toDataURL();return{rr_type:l,src:u}}else if(j(n,ImageData)){var d=n.constructor.name;return{rr_type:d,args:[qn(n.data,t,o),n.width,n.height]}}else if(fl(n,t)||(typeof n>"u"?"undefined":H(n))==="object"){var h=n.constructor.name,_=ll(n,t,o);return{rr_type:h,index:_}}return n}var dl=function(n,t,o){return n.map(function(r){return qn(r,t,o)})},fl=function(n,t){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],r=o.filter(function(e){return typeof t[e]=="function"});return!!r.find(function(e){return j(n,t[e])})};function M_(n,t,o,r){for(var e=function(){var l=c.value;try{if(typeof t.CanvasRenderingContext2D.prototype[l]!="function")return"continue";var u=rr(t.CanvasRenderingContext2D.prototype,l,function(h){return function(){for(var _=this,v=arguments.length,C=new Array(v),g=0;g<v;g++)C[g]=arguments[g];return Ue(this.canvas,o,r,!0)||setTimeout(function(){var b=dl(C,t,_);n(_.canvas,{type:wr["2D"],property:l,args:b})},0),h.apply(this,C)}});i.push(u)}catch{var d=Oi(t.CanvasRenderingContext2D.prototype,l,{set:function(v){n(this.canvas,{type:wr["2D"],property:l,args:[v],setter:!0})}});i.push(d)}},i=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),s=U(a),c;!(c=s()).done;)e();return function(){i.forEach(function(l){return l()})}}function D_(n){return n==="experimental-webgl"?"webgl":n}function Hs(n,t,o,r){var e=[];try{var i=rr(n.HTMLCanvasElement.prototype,"getContext",function(a){return function(s){for(var c=arguments.length,l=new Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];if(!Ue(this,t,o,!0)){var d=D_(s);if("__context"in this||(this.__context=d),r&&["webgl","webgl2"].includes(d))if(l[0]&&H(l[0])==="object"){var h=l[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[].concat([s],l))}});e.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){e.forEach(function(a){return a()})}}function Ys(n,t,o,r,e,i){for(var a=function(){var d=u.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))return"continue";try{if(typeof n[d]!="function")return"continue";var h=rr(n,d,function(v){return function(){for(var C=arguments.length,g=new Array(C),b=0;b<C;b++)g[b]=arguments[b];var w=v.apply(this,g);if(ll(w,i,this),"tagName"in this.canvas&&!Ue(this.canvas,r,e,!0)){var S=dl(g,i,this),R={type:t,property:d,args:S};o(this.canvas,R)}return w}});s.push(h)}catch{var _=Oi(n,d,{set:function(g){o(this.canvas,{type:t,property:d,args:[g],setter:!0})}});s.push(_)}},s=[],c=Object.getOwnPropertyNames(n),l=U(c),u;!(u=l()).done;)a();return s}function N_(n,t,o,r){var e,i=[];if((e=i).push.apply(e,[].concat(Ys(t.WebGLRenderingContext.prototype,wr.WebGL,n,o,r,t))),typeof t.WebGL2RenderingContext<"u"){var a;(a=i).push.apply(a,[].concat(Ys(t.WebGL2RenderingContext.prototype,wr.WebGL2,n,o,r,t)))}return function(){i.forEach(function(s){return s()})}}var hl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",L_=function(n){return Uint8Array.from(atob(n),function(t){return t.charCodeAt(0)})},Js=typeof window<"u"&&window.Blob&&new Blob([L_(hl)],{type:"text/javascript;charset=utf-8"});function F_(n){var t;try{if(t=Js&&(window.URL||window.webkitURL).createObjectURL(Js),!t)throw"";var o=new Worker(t,{name:n?.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),o}catch{return new Worker("data:text/javascript;base64,"+hl,{name:n?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var U_=function(){function n(o){var r=this;L(this,"pendingCanvasMutations",new Map),L(this,"rafStamps",{latestId:0,invokeId:null}),L(this,"mirror"),L(this,"mutationCb"),L(this,"resetObservers"),L(this,"frozen",!1),L(this,"locked",!1),L(this,"processMutation",function(d,h){var _=r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId;(_||!r.rafStamps.invokeId)&&(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(d)||r.pendingCanvasMutations.set(d,[]),r.pendingCanvasMutations.get(d).push(h)});var e=o.sampling,i=e===void 0?"all":e,a=o.win,s=o.blockClass,c=o.blockSelector,l=o.recordCanvas,u=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,l&&i==="all"&&this.initCanvasMutationObserver(a,s,c),l&&typeof i=="number"&&this.initCanvasFPSObserver(i,a,s,c,{dataURLOptions:u})}var t=n.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(r,e,i,a,s){var c=this,l=Hs(e,i,a,!0),u=new Map,d=new F_;d.onmessage=function(b){var w=b.data.id;if(u.set(w,!1),"base64"in b.data){var S=b.data,R=S.base64,T=S.type,I=S.width,M=S.height;c.mutationCb({id:w,type:wr["2D"],commands:[{property:"clearRect",args:[0,0,I,M]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:R}],type:T}]},0,0]}]})}};var h=1e3/r,_=0,v,C=function(){var b=[];return e.document.querySelectorAll("canvas").forEach(function(w){Ue(w,i,a,!0)||b.push(w)}),b},g=function(b){if(_&&b-_<h){v=requestAnimationFrame(g);return}_=b;var w=c;C().forEach(sa(function(S){var R,T,I,M;return Wr(this,function(O){switch(O.label){case 0:return T=w.mirror.getId(S),u.get(T)?[2]:S.width===0||S.height===0?[2]:(u.set(T,!0),["webgl","webgl2"].includes(S.__context)&&(I=S.getContext(S.__context),((R=I?.getContextAttributes())==null?void 0:R.preserveDrawingBuffer)===!1&&I.clear(I.COLOR_BUFFER_BIT)),[4,createImageBitmap(S)]);case 1:return M=O.sent(),d.postMessage({id:T,bitmap:M,width:S.width,height:S.height,dataURLOptions:s.dataURLOptions},[M]),[2]}})})),v=requestAnimationFrame(g)};v=requestAnimationFrame(g),this.resetObservers=function(){l(),cancelAnimationFrame(v)}},t.initCanvasMutationObserver=function(r,e,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var a=Hs(r,e,i,!1),s=M_(this.processMutation.bind(this),r,e,i),c=N_(this.processMutation.bind(this),r,e,i);this.resetObservers=function(){a(),s(),c()}},t.startPendingCanvasMutationFlusher=function(){var r=this;requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var r=this,e=function(i){r.rafStamps.latestId=i,requestAnimationFrame(e)};requestAnimationFrame(e)},t.flushPendingCanvasMutations=function(){var r=this;this.pendingCanvasMutations.forEach(function(e,i){var a=r.mirror.getId(i);r.flushPendingCanvasMutationFor(i,a)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(r,e){if(!(this.frozen||this.locked)){var i=this.pendingCanvasMutations.get(r);if(!(!i||e===-1)){var a=i.map(function(c){c.type;var l=zr(c,["type"]);return l}),s=i[0].type;this.mutationCb({id:e,type:s,commands:a}),this.pendingCanvasMutations.delete(r)}}},n}(),$_=function(){function n(o){L(this,"trackedLinkElements",new WeakSet),L(this,"mutationCb"),L(this,"adoptedStyleSheetCb"),L(this,"styleMirror",new s_),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var t=n.prototype;return t.attachLinkElement=function(r,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(r)},t.trackLinkElement=function(r){this.trackedLinkElements.has(r)||(this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r))},t.adoptStyleSheets=function(r,e){var i,a=function(){var d=u.value,h=void 0;i.styleMirror.has(d)?h=i.styleMirror.getId(d):(h=i.styleMirror.add(d),c.push({styleId:h,rules:Array.from(d.rules||CSSRule,function(_,v){return{rule:Tc(_,d.href),index:v}})})),s.styleIds.push(h)};if(r.length!==0){for(var s={id:e,styleIds:[]},c=[],l=U(r),u;!(u=l()).done;)i=this,a();c.length>0&&(s.styles=c),this.adoptedStyleSheetCb(s)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(r){},n}(),V_=function(){function n(){L(this,"nodeMap",new WeakMap),L(this,"active",!1)}var t=n.prototype;return t.inOtherBuffer=function(r,e){var i=this.nodeMap.get(r);return i&&Array.from(i).some(function(a){return a!==e})},t.add=function(r,e){var i=this;this.active||(this.active=!0,requestAnimationFrame(function(){i.nodeMap=new WeakMap,i.active=!1})),this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(e))},t.destroy=function(){},n}(),be,Wn,Qi,ci=!1;try{if(Array.from([1],function(n){return n*2})[0]!==2){var eo=document.createElement("iframe");document.body.appendChild(eo),Array.from=((Xa=eo.contentWindow)==null?void 0:Xa.Array.from)||Array.from,document.body.removeChild(eo)}}catch(n){console.debug("Unable to override Array.from",n)}var et=jd();function jt(n){n===void 0&&(n={});var t=n.emit,o=n.checkoutEveryNms,r=n.checkoutEveryNth,e=n.blockClass,i=e===void 0?"rr-block":e,a=n.blockSelector,s=a===void 0?null:a,c=n.ignoreClass,l=c===void 0?"rr-ignore":c,u=n.ignoreSelector,d=u===void 0?null:u,h=n.maskTextClass,_=h===void 0?"rr-mask":h,v=n.maskTextSelector,C=v===void 0?null:v,g=n.inlineStylesheet,b=g===void 0?!0:g,w=n.maskAllInputs,S=n.maskInputOptions,R=n.slimDOMOptions,T=n.maskInputFn,I=n.maskTextFn,M=n.hooks,O=n.packFn,N=n.sampling,F=N===void 0?{}:N,$=n.dataURLOptions,z=$===void 0?{}:$,ee=n.mousemoveWait,Te=n.recordDOM,te=Te===void 0?!0:Te,Ne=n.recordCanvas,Pe=Ne===void 0?!1:Ne,ue=n.recordCrossOriginIframes,Ee=ue===void 0?!1:ue,Le=n.recordAfter,mt=Le===void 0?n.recordAfter==="DOMContentLoaded"?n.recordAfter:"load":Le,qe=n.userTriggeredOnInput,xt=qe===void 0?!1:qe,oe=n.collectFonts,ye=oe===void 0?!1:oe,re=n.inlineImages,nt=re===void 0?!1:re,it=n.plugins,_t=n.keepIframeSrcFn,Tt=_t===void 0?function(){return!1}:_t,We=n.ignoreCSSAttributes,Gt=We===void 0?new Set([]):We,Ht=n.errorHandler;p_(Ht);var ot=Ee?window.parent===window:!0,at=!1;if(!ot)try{window.parent.document&&(at=!1)}catch{at=!0}if(ot&&!t)throw new Error("emit function is required");if(!ot&&!at)return function(){};ee!==void 0&&F.mousemove===void 0&&(F.mousemove=ee),et.reset();var je=w===!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}:S!==void 0?S:{password:!0},Ke=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:R==="all",headMetaDescKeywords:R==="all",headTitleMutations:R==="all"}:R||{};a_();var Pt,vt=0,ze=function(E){for(var P=U(it||[]),D;!(D=P()).done;){var V=D.value;V.eventProcessor&&(E=V.eventProcessor(E))}return O&&!at&&(E=O(E)),E};be=function(E,P){var D,V=E;if(V.timestamp=ai(),(D=Zt[0])!=null&&D.isFrozen()&&V.type!==X.FullSnapshot&&!(V.type===X.IncrementalSnapshot&&V.data.source===q.Mutation)&&Zt.forEach(function(sd){return sd.unfreeze()}),ot)t?.(ze(V),P);else if(at){var le={type:"rrweb",event:ze(V),origin:window.location.origin,isCheckout:P};window.parent.postMessage(le,"*")}if(V.type===X.FullSnapshot)Pt=V,vt=0;else if(V.type===X.IncrementalSnapshot){if(V.data.source===q.Mutation&&V.data.isAttachIframe)return;vt++;var _e=r&&vt>=r,ae=o&&V.timestamp-Pt.timestamp>o;(_e||ae)&&Wn(!0)}};for(var gt=function(E){be({type:X.IncrementalSnapshot,data:ie({source:q.Mutation},E)})},fn=function(E){return be({type:X.IncrementalSnapshot,data:ie({source:q.Scroll},E)})},Pr=function(E){return be({type:X.IncrementalSnapshot,data:ie({source:q.CanvasMutation},E)})},ir=function(E){return be({type:X.IncrementalSnapshot,data:ie({source:q.AdoptedStyleSheet},E)})},Ie=new $_({mutationCb:gt,adoptedStyleSheetCb:ir}),Xe=new T_({mirror:et,mutationCb:gt,stylesheetManager:Ie,recordCrossOriginIframes:Ee,wrappedEmit:be}),Fi=U(it||[]),Qe;!(Qe=Fi()).done;){var hn=Qe.value;hn.getMirror&&hn.getMirror({nodeMirror:et,crossOriginIframeMirror:Xe.crossOriginIframeMirror,crossOriginIframeStyleMirror:Xe.crossOriginIframeStyleMirror})}var y=new V_;Qi=new U_({recordCanvas:Pe,mutationCb:Pr,win:window,blockClass:i,blockSelector:s,mirror:et,sampling:F.canvas,dataURLOptions:z});var f=new P_({mutationCb:gt,scrollCb:fn,bypassOptions:{blockClass:i,blockSelector:s,maskTextClass:_,maskTextSelector:C,inlineStylesheet:b,maskInputOptions:je,dataURLOptions:z,maskTextFn:I,maskInputFn:T,recordCanvas:Pe,inlineImages:nt,sampling:F,slimDOMOptions:Ke,iframeManager:Xe,stylesheetManager:Ie,canvasManager:Qi,keepIframeSrcFn:Tt,processedNodeManager:y},mirror:et});Wn=function(E){if(E===void 0&&(E=!1),!!te){be({type:X.Meta,data:{href:window.location.href,width:Xu(),height:Ku()}},E),Ie.reset(),f.init(),Zt.forEach(function(D){return D.lock()});var P=hf(document,{mirror:et,blockClass:i,blockSelector:s,maskTextClass:_,maskTextSelector:C,inlineStylesheet:b,maskAllInputs:je,maskTextFn:I,maskInputFn:T,slimDOM:Ke,dataURLOptions:z,recordCanvas:Pe,inlineImages:nt,onSerialize:function(D){tl(D,et)&&Xe.addIframe(D),rl(D,et)&&Ie.trackLinkElement(D),qo(D)&&f.addShadowRoot(K.shadowRoot(D),document)},onIframeLoad:function(D,V){Xe.attachIframe(D,V),f.observeAttachShadow(D)},onStylesheetLoad:function(D,V){Ie.attachLinkElement(D,V)},keepIframeSrcFn:Tt});if(!P)return console.warn("Failed to snapshot the document");be({type:X.FullSnapshot,data:{node:P,initialOffset:Zu(window)}},E),Zt.forEach(function(D){return D.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ie.adoptStyleSheets(document.adoptedStyleSheets,et.getId(document))}};try{var p=[],k=function(E){var P;return ne(x_)({mutationCb:gt,mousemoveCb:function(D,V){return be({type:X.IncrementalSnapshot,data:{source:V,positions:D}})},mouseInteractionCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.MouseInteraction},D)})},scrollCb:fn,viewportResizeCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.ViewportResize},D)})},inputCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.Input},D)})},mediaInteractionCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.MediaInteraction},D)})},styleSheetRuleCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.StyleSheetRule},D)})},styleDeclarationCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.StyleDeclaration},D)})},canvasMutationCb:Pr,fontCb:function(D){return be({type:X.IncrementalSnapshot,data:ie({source:q.Font},D)})},selectionCb:function(D){be({type:X.IncrementalSnapshot,data:ie({source:q.Selection},D)})},customElementCb:function(D){be({type:X.IncrementalSnapshot,data:ie({source:q.CustomElement},D)})},blockClass:i,ignoreClass:l,ignoreSelector:d,maskTextClass:_,maskTextSelector:C,maskInputOptions:je,inlineStylesheet:b,sampling:F,recordDOM:te,recordCanvas:Pe,inlineImages:nt,userTriggeredOnInput:xt,collectFonts:ye,doc:E,maskInputFn:T,maskTextFn:I,keepIframeSrcFn:Tt,blockSelector:s,slimDOMOptions:Ke,dataURLOptions:z,mirror:et,iframeManager:Xe,stylesheetManager:Ie,shadowDomManager:f,processedNodeManager:y,canvasManager:Qi,ignoreCSSAttributes:Gt,plugins:((P=it?.filter(function(D){return D.observer}))==null?void 0:P.map(function(D){return{observer:D.observer,options:D.options,callback:function(V){return be({type:X.Plugin,data:{plugin:D.name,payload:V}})}}}))||[]},M)};Xe.addLoadListener(function(E){try{p.push(k(E.contentDocument))}catch(P){console.warn(P)}});var A=function(){Wn(),p.push(k(document)),ci=!0};return document.readyState==="interactive"||document.readyState==="complete"?A():(p.push(Fe("DOMContentLoaded",function(){be({type:X.DomContentLoaded,data:{}}),mt==="DOMContentLoaded"&&A()})),p.push(Fe("load",function(){be({type:X.Load,data:{}}),mt==="load"&&A()},window))),function(){p.forEach(function(E){try{E()}catch(D){var P=String(D).toLowerCase();P.includes("cross-origin")||console.warn(D)}}),y.destroy(),ci=!1,m_()}}catch(E){console.warn(E)}}jt.addCustomEvent=function(n,t){if(!ci)throw new Error("please add custom event after start recording");be({type:X.Custom,data:{tag:n,payload:t}})};jt.freezePage=function(){Zt.forEach(function(n){return n.freeze()})};jt.takeFullSnapshot=function(n){if(!ci)throw new Error("please take full snapshot after start recording");Wn(n)};jt.mirror=et;var Zs;(function(n){n[n.NotStarted=0]="NotStarted",n[n.Running=1]="Running",n[n.Stopped=2]="Stopped"})(Zs||(Zs={}));jt.addCustomEvent;jt.freezePage;jt.takeFullSnapshot;var j_=Object.defineProperty,z_=function(n,t,o){return t in n?j_(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o},Fn=function(n,t,o){return z_(n,(typeof t>"u"?"undefined":H(t))!=="symbol"?t+"":t,o)};function q_(n,t,o){try{if(!(t in n))return function(){};var r=n[t],e=o(r);return typeof e=="function"&&(e.prototype=e.prototype||{},Object.defineProperties(e,{__rrweb_original__:{enumerable:!1,value:r}})),n[t]=e,function(){n[t]=r}}catch{return function(){}}}var sr=function(){function n(o){Fn(this,"fileName"),Fn(this,"functionName"),Fn(this,"lineNumber"),Fn(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var t=n.prototype;return t.toString=function(){var r=this.lineNumber||"",e=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+r+":"+e+")":this.fileName+":"+r+":"+e},n}(),W_=/(^|@)\S+:\d+/,Ks=/^\s*at .*(\S+:\d+|\(native\))/m,G_=/^(eval@)?(\[native code])?$/,to={parse:function(t){return t?typeof t.stacktrace<"u"||typeof t["opera#sourceloc"]<"u"?this.parseOpera(t):t.stack&&t.stack.match(Ks)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(t.indexOf(":")===-1)return[t];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=o.exec(t.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+t);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(t){var o=t.stack.split(`
59
+ `).filter(function(r){return!!r.match(Ks)},this);return o.map(function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var e=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),i=e.match(/ (\((.+):(\d+):(\d+)\)$)/);e=i?e.replace(i[0],""):e;var a=e.split(/\s+/).slice(1),s=this.extractLocation(i?i[1]:a.pop()),c=a.join(" ")||void 0,l=["eval","<anonymous>"].indexOf(s[0])>-1?void 0:s[0];return new sr({functionName:c,fileName:l,lineNumber:s[1],columnNumber:s[2]})},this)},parseFFOrSafari:function(t){var o=t.stack.split(`
60
+ `).filter(function(r){return!r.match(G_)},this);return o.map(function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),r.indexOf("@")===-1&&r.indexOf(":")===-1)return new sr({functionName:r});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=r.match(e),a=i&&i[1]?i[1]:void 0,s=this.extractLocation(r.replace(e,""));return new sr({functionName:a,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf(`
61
61
  `)>-1&&t.message.split(`
62
62
  `).length>t.stacktrace.split(`
63
63
  `).length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var o=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
64
- `),e=[],i=2,a=r.length;i<a;i+=2){var s=o.exec(r[i]);s&&e.push(new ar({fileName:s[2],lineNumber:parseFloat(s[1])}))}return e},parseOpera10:function(t){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
65
- `),e=[],i=0,a=r.length;i<a;i+=2){var s=o.exec(r[i]);s&&e.push(new ar({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return e},parseOpera11:function(t){var o=t.stack.split(`
66
- `).filter(function(r){return!!r.match(G_)&&!r.match(/^Error created at/)},this);return o.map(function(r){var e=r.split("@"),i=this.extractLocation(e.pop()),a=e.shift()||"",s=a.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new ar({functionName:s,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)}};function H_(n){if(!n||!n.outerHTML)return"";for(var t="";n.parentElement;){var o=n.localName;if(!o)break;o=o.toLowerCase();var r=n.parentElement,e=[];if(r.children&&r.children.length>0)for(var i=0;i<r.children.length;i++){var a=r.children[i];a.localName&&a.localName.toLowerCase&&a.localName.toLowerCase()===o&&e.push(a)}e.length>1&&(o+=":eq("+e.indexOf(n)+")"),t=o+(t?">"+t:""),n=r}return t}function Wo(n){return Object.prototype.toString.call(n)==="[object Object]"}function pl(n,t){if(t===0)return!0;for(var o=Object.keys(n),r=U(o),e;!(e=r()).done;){var i=e.value;if(Wo(n[i])&&pl(n[i],t-1))return!0}return!1}function sr(n,t){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,t);var r=[],e=[];return JSON.stringify(n,function(s,c){if(r.length>0){var l=r.indexOf(this);~l?r.splice(l+1):r.push(this),~l?e.splice(l,1/0,s):e.push(s),~r.indexOf(c)&&(r[0]===c?c="[Circular ~]":c="[Circular ~."+e.slice(0,r.indexOf(c)).join(".")+"]")}else r.push(c);if(c===null)return c;if(c===void 0)return"undefined";if(i(c))return a(c);if((typeof c>"u"?"undefined":H(c))==="bigint")return c.toString()+"n";if(j(c,Event)){var u={};for(var d in c){var h=c[d];Array.isArray(h)?u[d]=H_(h.length?h[0]:null):u[d]=h}return u}else{if(j(c,Node))return j(c,HTMLElement)?c?c.outerHTML:"":c.nodeName;if(j(c,Error))return c.stack?c.stack+`
67
- End of stack for Error object`:c.name+": "+c.message}return c});function i(s){return!!(Wo(s)&&Object.keys(s).length>o.numOfKeysLimit||typeof s=="function"||Wo(s)&&pl(s,o.depthOfLimit))}function a(s){var c=s.toString();return o.stringLengthLimit&&c.length>o.stringLengthLimit&&(c=""+c.slice(0,o.stringLengthLimit)+"..."),c}}var Xs={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 Y_(n,t,o){var r=o?Object.assign({},Xs,o):Xs,e=r.logger;if(!e)return function(){};var i;typeof e=="string"?i=t[e]:i=e;var a=0,s=!1,c=[];if(r.level.includes("error")){var l=function(C){var g=C.message,b=C.error,w=to.parse(b).map(function(R){return R.toString()}),S=[sr(g,r.stringifyOptions)];n({level:"error",trace:w,payload:S})};t.addEventListener("error",l),c.push(function(){t.removeEventListener("error",l)});var u=function(C){var g,b;j(C.reason,Error)?(g=C.reason,b=[sr("Uncaught (in promise) "+g.name+": "+g.message,r.stringifyOptions)]):(g=new Error,b=[sr("Uncaught (in promise)",r.stringifyOptions),sr(C.reason,r.stringifyOptions)]);var w=to.parse(g).map(function(S){return S.toString()});n({level:"error",trace:w,payload:b})};t.addEventListener("unhandledrejection",u),c.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var d=U(r.level),h;!(h=d()).done;){var _=h.value;c.push(v(i,_))}return function(){c.forEach(function(C){return C()})};function v(C,g){var b=this;return C[g]?q_(C,g,function(w){var S=b;return function(){for(var R=arguments.length,T=new Array(R),I=0;I<R;I++)T[I]=arguments[I];if(w.apply(S,T),!(g==="assert"&&T[0])&&!s){s=!0;try{var M=to.parse(new Error).map(function(F){return F.toString()}).splice(1),O=g==="assert"?T.slice(1):T,N=O.map(function(F){return sr(F,r.stringifyOptions)});a++,a<r.lengthThreshold?n({level:g,trace:M,payload:N}):a===r.lengthThreshold&&n({level:"warn",trace:[],payload:[sr("The number of log records reached the threshold.")]})}catch(F){w.apply(void 0,[].concat(["rrweb logger error:",F],T))}finally{s=!1}}}}):function(){}}}var J_="rrweb/console@1",Z_=function(n){return{name:J_,observer:Y_,options:n}},Qs=B.setImmediate,Nt,Ho,Yo,ml=Object.prototype.toString,K_=typeof Qs<"u"?function(t){return Qs(t)}:setTimeout;try{Object.defineProperty({},"x",{}),Nt=function(t,o,r,e){return Object.defineProperty(t,o,{value:r,writable:!0,configurable:e!==!1})}}catch{Nt=function(o,r,e){return o[r]=e,o}}Yo=function(){var t,o,r;function e(i,a){this.fn=i,this.self=a,this.next=void 0}return{add:function(a,s){r=new e(a,s),o?o.next=r:t=r,o=r,r=void 0},drain:function(){var a=t;for(t=o=Ho=void 0;a;)a.fn.call(a.self),a=a.next}}}();function ui(n,t){Yo.add(n,t),Ho||(Ho=K_(Yo.drain))}function _l(n){var t,o=typeof n;return n!==null&&(o==="object"||o==="function")&&(t=n.then),typeof t=="function"?t:!1}function Ia(){for(var n=0;n<this.chain.length;n++)X_(this,this.state===1?this.chain[n].success:this.chain[n].failure,this.chain[n]);this.chain.length=0}function X_(n,t,o){var r,e;try{t===!1?o.reject(n.msg):(t===!0?r=n.msg:r=t.call(void 0,n.msg),r===o.promise?o.reject(TypeError("Promise-chain cycle")):(e=_l(r))?e.call(r,o.resolve,o.reject):o.resolve(r))}catch(i){o.reject(i)}}function vl(n){var t,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(t=_l(n))?ui(function(){var r=new ec(o);try{t.call(n,function(){vl.apply(r,arguments)},function(){Ur.apply(r,arguments)})}catch(e){Ur.call(r,e)}}):(o.msg=n,o.state=1,o.chain.length>0&&ui(Ia,o))}catch(r){Ur.call(new ec(o),r)}}}function Ur(n){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=n,t.state=2,t.chain.length>0&&ui(Ia,t))}function gl(n,t,o,r){for(var e=0;e<t.length;e++)(function(a){n.resolve(t[a]).then(function(c){o(a,c)},r)})(e)}function ec(n){this.def=n,this.triggered=!1}function Q_(n){this.promise=n,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function zt(n){if(typeof n!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var t=new Q_(this);this.then=function(r,e){var i={success:typeof r=="function"?r:!0,failure:typeof e=="function"?e:!1};return i.promise=new this.constructor(function(s,c){if(typeof s!="function"||typeof c!="function")throw TypeError("Not a function");i.resolve=s,i.reject=c}),t.chain.push(i),t.state!==0&&ui(Ia,t),i.promise},this.catch=function(r){return this.then(void 0,r)};try{n.call(void 0,function(r){vl.call(t,r)},function(r){Ur.call(t,r)})}catch(o){Ur.call(t,o)}}var yl=Nt({},"constructor",zt,!1);zt.prototype=yl;Nt(yl,"__NPO__",0,!1);Nt(zt,"resolve",function(t){var o=this;return t&&typeof t=="object"&&t.__NPO__===1?t:new o(function(e,i){if(typeof e!="function"||typeof i!="function")throw TypeError("Not a function");e(t)})});Nt(zt,"reject",function(t){return new this(function(r,e){if(typeof r!="function"||typeof e!="function")throw TypeError("Not a function");e(t)})});Nt(zt,"all",function(t){var o=this;return ml.call(t)!=="[object Array]"?o.reject(TypeError("Not an array")):t.length===0?o.resolve([]):new o(function(e,i){if(typeof e!="function"||typeof i!="function")throw TypeError("Not a function");var a=t.length,s=Array(a),c=0;gl(o,t,function(u,d){s[u]=d,++c===a&&e(s)},i)})});Nt(zt,"race",function(t){var o=this;return ml.call(t)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(e,i){if(typeof e!="function"||typeof i!="function")throw TypeError("Not a function");gl(o,t,function(s,c){e(c)},i)})});var Q;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?Q=Promise:Q=zt;var Je={DEBUG:!1,LIB_VERSION:"2.73.0"},$r=24*60*60*1e3,ro=8*1e3,Bi=Array.prototype,ev=Function.prototype,bl=Object.prototype,Ot=Bi.slice,dn=bl.toString,Mi=bl.hasOwnProperty,Se=B.console,bt=B.navigator,G=B.document,Dr=B.opera,tc=B.screen,ut=bt.userAgent,no=ev.bind,rc=Bi.forEach,nc=Bi.indexOf,ic=Bi.map,tv=Array.isArray,Jo={},m={trim:function(n){return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},J={log:function(){if(Je.DEBUG&&!m.isUndefined(Se)&&Se)try{Se.log.apply(Se,arguments)}catch{m.each(arguments,function(t){Se.log(t)})}},warn:function(){if(Je.DEBUG&&!m.isUndefined(Se)&&Se){var n=["Mixpanel warning:"].concat(m.toArray(arguments));try{Se.warn.apply(Se,n)}catch{m.each(n,function(o){Se.warn(o)})}}},error:function(){if(Je.DEBUG&&!m.isUndefined(Se)&&Se){var n=["Mixpanel error:"].concat(m.toArray(arguments));try{Se.error.apply(Se,n)}catch{m.each(n,function(o){Se.error(o)})}}},critical:function(){if(!m.isUndefined(Se)&&Se){var n=["Mixpanel error:"].concat(m.toArray(arguments));try{Se.error.apply(Se,n)}catch{m.each(n,function(o){Se.error(o)})}}}},io=function(n,t){return function(){return arguments[0]="["+t+"] "+arguments[0],n.apply(J,arguments)}},rr=function(n){return{log:io(J.log,n),error:io(J.error,n),critical:io(J.critical,n)}},rn=function(n){return function(){try{return n.apply(this,arguments)}catch(t){J.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Je.DEBUG&&J.critical(t)}}},Cl=function(n){var t=n.prototype;for(var o in t)typeof t[o]=="function"&&(t[o]=rn(t[o]))};m.bind=function(n,t){var o,r;if(no&&n.bind===no)return no.apply(n,Ot.call(arguments,1));if(!m.isFunction(n))throw new TypeError;return o=Ot.call(arguments,2),r=function(){if(!(this instanceof r))return n.apply(t,o.concat(Ot.call(arguments)));var e={};e.prototype=n.prototype;var i=new e;e.prototype=null;var a=n.apply(i,o.concat(Ot.call(arguments)));return Object(a)===a?a:i},r};m.each=function(n,t,o){if(n!=null){if(rc&&n.forEach===rc)n.forEach(t,o);else if(n.length===+n.length){for(var r=0,e=n.length;r<e;r++)if(r in n&&t.call(o,n[r],r,n)===Jo)return}else for(var i in n)if(Mi.call(n,i)&&t.call(o,n[i],i,n)===Jo)return}};m.extend=function(n){return m.each(Ot.call(arguments,1),function(t){for(var o in t)t[o]!==void 0&&(n[o]=t[o])}),n};m.isArray=tv||function(n){return dn.call(n)==="[object Array]"};m.isFunction=function(n){try{return/^\s*\bfunction\b/.test(n)}catch{return!1}};m.isArguments=function(n){return!!(n&&Mi.call(n,"callee"))};m.toArray=function(n){return n?n.toArray?n.toArray():m.isArray(n)||m.isArguments(n)?Ot.call(n):m.values(n):[]};m.map=function(n,t,o){if(ic&&n.map===ic)return n.map(t,o);var r=[];return m.each(n,function(e){r.push(t.call(o,e))}),r};m.keys=function(n){var t=[];return n===null||m.each(n,function(o,r){t[t.length]=r}),t};m.values=function(n){var t=[];return n===null||m.each(n,function(o){t[t.length]=o}),t};m.include=function(n,t){var o=!1;return n===null?o:nc&&n.indexOf===nc?n.indexOf(t)!=-1:(m.each(n,function(r){if(o||(o=r===t))return Jo}),o)};m.includes=function(n,t){return n.indexOf(t)!==-1};m.inherit=function(n,t){return n.prototype=new t,n.prototype.constructor=n,n.superclass=t.prototype,n};m.isObject=function(n){return n===Object(n)&&!m.isArray(n)};m.isEmptyObject=function(n){if(m.isObject(n)){for(var t in n)if(Mi.call(n,t))return!1;return!0}return!1};m.isUndefined=function(n){return n===void 0};m.isString=function(n){return dn.call(n)=="[object String]"};m.isDate=function(n){return dn.call(n)=="[object Date]"};m.isNumber=function(n){return dn.call(n)=="[object Number]"};m.isElement=function(n){return!!(n&&n.nodeType===1)};m.encodeDates=function(n){return m.each(n,function(t,o){m.isDate(t)?n[o]=m.formatDate(t):m.isObject(t)&&(n[o]=m.encodeDates(t))}),n};m.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};m.formatDate=function(n){function t(o){return o<10?"0"+o:o}return n.getUTCFullYear()+"-"+t(n.getUTCMonth()+1)+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())};m.strip_empty_properties=function(n){var t={};return m.each(n,function(o,r){m.isString(o)&&o.length>0&&(t[r]=o)}),t};m.truncate=function(n,t){var o;return typeof n=="string"?o=n.slice(0,t):m.isArray(n)?(o=[],m.each(n,function(r){o.push(m.truncate(r,t))})):m.isObject(n)?(o={},m.each(n,function(r,e){o[e]=m.truncate(r,t)})):o=n,o};m.JSONEncode=function(){return function(n){var t=n,o=function(e){var i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return i.lastIndex=0,i.test(e)?'"'+e.replace(i,function(s){var c=a[s];return typeof c=="string"?c:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,i){var a="",s=" ",c=0,l="",u="",d=0,h=a,_=[],v=i[e];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(e)),typeof v){case"string":return o(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(a+=s,_=[],dn.apply(v)==="[object Array]"){for(d=v.length,c=0;c<d;c+=1)_[c]=r(c,v)||"null";return u=_.length===0?"[]":a?`[
64
+ `),e=[],i=2,a=r.length;i<a;i+=2){var s=o.exec(r[i]);s&&e.push(new sr({fileName:s[2],lineNumber:parseFloat(s[1])}))}return e},parseOpera10:function(t){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
65
+ `),e=[],i=0,a=r.length;i<a;i+=2){var s=o.exec(r[i]);s&&e.push(new sr({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return e},parseOpera11:function(t){var o=t.stack.split(`
66
+ `).filter(function(r){return!!r.match(W_)&&!r.match(/^Error created at/)},this);return o.map(function(r){var e=r.split("@"),i=this.extractLocation(e.pop()),a=e.shift()||"",s=a.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new sr({functionName:s,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)}};function H_(n){if(!n||!n.outerHTML)return"";for(var t="";n.parentElement;){var o=n.localName;if(!o)break;o=o.toLowerCase();var r=n.parentElement,e=[];if(r.children&&r.children.length>0)for(var i=0;i<r.children.length;i++){var a=r.children[i];a.localName&&a.localName.toLowerCase&&a.localName.toLowerCase()===o&&e.push(a)}e.length>1&&(o+=":eq("+e.indexOf(n)+")"),t=o+(t?">"+t:""),n=r}return t}function Go(n){return Object.prototype.toString.call(n)==="[object Object]"}function pl(n,t){if(t===0)return!0;for(var o=Object.keys(n),r=U(o),e;!(e=r()).done;){var i=e.value;if(Go(n[i])&&pl(n[i],t-1))return!0}return!1}function cr(n,t){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,t);var r=[],e=[];return JSON.stringify(n,function(s,c){if(r.length>0){var l=r.indexOf(this);~l?r.splice(l+1):r.push(this),~l?e.splice(l,1/0,s):e.push(s),~r.indexOf(c)&&(r[0]===c?c="[Circular ~]":c="[Circular ~."+e.slice(0,r.indexOf(c)).join(".")+"]")}else r.push(c);if(c===null)return c;if(c===void 0)return"undefined";if(i(c))return a(c);if((typeof c>"u"?"undefined":H(c))==="bigint")return c.toString()+"n";if(j(c,Event)){var u={};for(var d in c){var h=c[d];Array.isArray(h)?u[d]=H_(h.length?h[0]:null):u[d]=h}return u}else{if(j(c,Node))return j(c,HTMLElement)?c?c.outerHTML:"":c.nodeName;if(j(c,Error))return c.stack?c.stack+`
67
+ End of stack for Error object`:c.name+": "+c.message}return c});function i(s){return!!(Go(s)&&Object.keys(s).length>o.numOfKeysLimit||typeof s=="function"||Go(s)&&pl(s,o.depthOfLimit))}function a(s){var c=s.toString();return o.stringLengthLimit&&c.length>o.stringLengthLimit&&(c=""+c.slice(0,o.stringLengthLimit)+"..."),c}}var Xs={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 Y_(n,t,o){var r=o?Object.assign({},Xs,o):Xs,e=r.logger;if(!e)return function(){};var i;typeof e=="string"?i=t[e]:i=e;var a=0,s=!1,c=[];if(r.level.includes("error")){var l=function(C){var g=C.message,b=C.error,w=to.parse(b).map(function(R){return R.toString()}),S=[cr(g,r.stringifyOptions)];n({level:"error",trace:w,payload:S})};t.addEventListener("error",l),c.push(function(){t.removeEventListener("error",l)});var u=function(C){var g,b;j(C.reason,Error)?(g=C.reason,b=[cr("Uncaught (in promise) "+g.name+": "+g.message,r.stringifyOptions)]):(g=new Error,b=[cr("Uncaught (in promise)",r.stringifyOptions),cr(C.reason,r.stringifyOptions)]);var w=to.parse(g).map(function(S){return S.toString()});n({level:"error",trace:w,payload:b})};t.addEventListener("unhandledrejection",u),c.push(function(){t.removeEventListener("unhandledrejection",u)})}for(var d=U(r.level),h;!(h=d()).done;){var _=h.value;c.push(v(i,_))}return function(){c.forEach(function(C){return C()})};function v(C,g){var b=this;return C[g]?q_(C,g,function(w){var S=b;return function(){for(var R=arguments.length,T=new Array(R),I=0;I<R;I++)T[I]=arguments[I];if(w.apply(S,T),!(g==="assert"&&T[0])&&!s){s=!0;try{var M=to.parse(new Error).map(function(F){return F.toString()}).splice(1),O=g==="assert"?T.slice(1):T,N=O.map(function(F){return cr(F,r.stringifyOptions)});a++,a<r.lengthThreshold?n({level:g,trace:M,payload:N}):a===r.lengthThreshold&&n({level:"warn",trace:[],payload:[cr("The number of log records reached the threshold.")]})}catch(F){w.apply(void 0,[].concat(["rrweb logger error:",F],T))}finally{s=!1}}}}):function(){}}}var J_="rrweb/console@1",Z_=function(n){return{name:J_,observer:Y_,options:n}},Qs=B.setImmediate,Nt,Ho,Yo,ml=Object.prototype.toString,K_=typeof Qs<"u"?function(t){return Qs(t)}:setTimeout;try{Object.defineProperty({},"x",{}),Nt=function(t,o,r,e){return Object.defineProperty(t,o,{value:r,writable:!0,configurable:e!==!1})}}catch{Nt=function(o,r,e){return o[r]=e,o}}Yo=function(){var t,o,r;function e(i,a){this.fn=i,this.self=a,this.next=void 0}return{add:function(a,s){r=new e(a,s),o?o.next=r:t=r,o=r,r=void 0},drain:function(){var a=t;for(t=o=Ho=void 0;a;)a.fn.call(a.self),a=a.next}}}();function ui(n,t){Yo.add(n,t),Ho||(Ho=K_(Yo.drain))}function _l(n){var t,o=typeof n;return n!==null&&(o==="object"||o==="function")&&(t=n.then),typeof t=="function"?t:!1}function Ia(){for(var n=0;n<this.chain.length;n++)X_(this,this.state===1?this.chain[n].success:this.chain[n].failure,this.chain[n]);this.chain.length=0}function X_(n,t,o){var r,e;try{t===!1?o.reject(n.msg):(t===!0?r=n.msg:r=t.call(void 0,n.msg),r===o.promise?o.reject(TypeError("Promise-chain cycle")):(e=_l(r))?e.call(r,o.resolve,o.reject):o.resolve(r))}catch(i){o.reject(i)}}function vl(n){var t,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(t=_l(n))?ui(function(){var r=new ec(o);try{t.call(n,function(){vl.apply(r,arguments)},function(){Ur.apply(r,arguments)})}catch(e){Ur.call(r,e)}}):(o.msg=n,o.state=1,o.chain.length>0&&ui(Ia,o))}catch(r){Ur.call(new ec(o),r)}}}function Ur(n){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=n,t.state=2,t.chain.length>0&&ui(Ia,t))}function gl(n,t,o,r){for(var e=0;e<t.length;e++)(function(a){n.resolve(t[a]).then(function(c){o(a,c)},r)})(e)}function ec(n){this.def=n,this.triggered=!1}function Q_(n){this.promise=n,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function zt(n){if(typeof n!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var t=new Q_(this);this.then=function(r,e){var i={success:typeof r=="function"?r:!0,failure:typeof e=="function"?e:!1};return i.promise=new this.constructor(function(s,c){if(typeof s!="function"||typeof c!="function")throw TypeError("Not a function");i.resolve=s,i.reject=c}),t.chain.push(i),t.state!==0&&ui(Ia,t),i.promise},this.catch=function(r){return this.then(void 0,r)};try{n.call(void 0,function(r){vl.call(t,r)},function(r){Ur.call(t,r)})}catch(o){Ur.call(t,o)}}var yl=Nt({},"constructor",zt,!1);zt.prototype=yl;Nt(yl,"__NPO__",0,!1);Nt(zt,"resolve",function(t){var o=this;return t&&typeof t=="object"&&t.__NPO__===1?t:new o(function(e,i){if(typeof e!="function"||typeof i!="function")throw TypeError("Not a function");e(t)})});Nt(zt,"reject",function(t){return new this(function(r,e){if(typeof r!="function"||typeof e!="function")throw TypeError("Not a function");e(t)})});Nt(zt,"all",function(t){var o=this;return ml.call(t)!=="[object Array]"?o.reject(TypeError("Not an array")):t.length===0?o.resolve([]):new o(function(e,i){if(typeof e!="function"||typeof i!="function")throw TypeError("Not a function");var a=t.length,s=Array(a),c=0;gl(o,t,function(u,d){s[u]=d,++c===a&&e(s)},i)})});Nt(zt,"race",function(t){var o=this;return ml.call(t)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(e,i){if(typeof e!="function"||typeof i!="function")throw TypeError("Not a function");gl(o,t,function(s,c){e(c)},i)})});var Q;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?Q=Promise:Q=zt;var Je={DEBUG:!1,LIB_VERSION:"2.73.0"},$r=24*60*60*1e3,ro=8*1e3,Bi=Array.prototype,ev=Function.prototype,bl=Object.prototype,Ot=Bi.slice,dn=bl.toString,Mi=bl.hasOwnProperty,Se=B.console,bt=B.navigator,W=B.document,Dr=B.opera,tc=B.screen,ut=bt.userAgent,no=ev.bind,rc=Bi.forEach,nc=Bi.indexOf,ic=Bi.map,tv=Array.isArray,Jo={},m={trim:function(n){return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},J={log:function(){if(Je.DEBUG&&!m.isUndefined(Se)&&Se)try{Se.log.apply(Se,arguments)}catch{m.each(arguments,function(t){Se.log(t)})}},warn:function(){if(Je.DEBUG&&!m.isUndefined(Se)&&Se){var n=["Mixpanel warning:"].concat(m.toArray(arguments));try{Se.warn.apply(Se,n)}catch{m.each(n,function(o){Se.warn(o)})}}},error:function(){if(Je.DEBUG&&!m.isUndefined(Se)&&Se){var n=["Mixpanel error:"].concat(m.toArray(arguments));try{Se.error.apply(Se,n)}catch{m.each(n,function(o){Se.error(o)})}}},critical:function(){if(!m.isUndefined(Se)&&Se){var n=["Mixpanel error:"].concat(m.toArray(arguments));try{Se.error.apply(Se,n)}catch{m.each(n,function(o){Se.error(o)})}}}},io=function(n,t){return function(){return arguments[0]="["+t+"] "+arguments[0],n.apply(J,arguments)}},nr=function(n){return{log:io(J.log,n),error:io(J.error,n),critical:io(J.critical,n)}},rn=function(n){return function(){try{return n.apply(this,arguments)}catch(t){J.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Je.DEBUG&&J.critical(t)}}},Cl=function(n){var t=n.prototype;for(var o in t)typeof t[o]=="function"&&(t[o]=rn(t[o]))};m.bind=function(n,t){var o,r;if(no&&n.bind===no)return no.apply(n,Ot.call(arguments,1));if(!m.isFunction(n))throw new TypeError;return o=Ot.call(arguments,2),r=function(){if(!(this instanceof r))return n.apply(t,o.concat(Ot.call(arguments)));var e={};e.prototype=n.prototype;var i=new e;e.prototype=null;var a=n.apply(i,o.concat(Ot.call(arguments)));return Object(a)===a?a:i},r};m.each=function(n,t,o){if(n!=null){if(rc&&n.forEach===rc)n.forEach(t,o);else if(n.length===+n.length){for(var r=0,e=n.length;r<e;r++)if(r in n&&t.call(o,n[r],r,n)===Jo)return}else for(var i in n)if(Mi.call(n,i)&&t.call(o,n[i],i,n)===Jo)return}};m.extend=function(n){return m.each(Ot.call(arguments,1),function(t){for(var o in t)t[o]!==void 0&&(n[o]=t[o])}),n};m.isArray=tv||function(n){return dn.call(n)==="[object Array]"};m.isFunction=function(n){try{return/^\s*\bfunction\b/.test(n)}catch{return!1}};m.isArguments=function(n){return!!(n&&Mi.call(n,"callee"))};m.toArray=function(n){return n?n.toArray?n.toArray():m.isArray(n)||m.isArguments(n)?Ot.call(n):m.values(n):[]};m.map=function(n,t,o){if(ic&&n.map===ic)return n.map(t,o);var r=[];return m.each(n,function(e){r.push(t.call(o,e))}),r};m.keys=function(n){var t=[];return n===null||m.each(n,function(o,r){t[t.length]=r}),t};m.values=function(n){var t=[];return n===null||m.each(n,function(o){t[t.length]=o}),t};m.include=function(n,t){var o=!1;return n===null?o:nc&&n.indexOf===nc?n.indexOf(t)!=-1:(m.each(n,function(r){if(o||(o=r===t))return Jo}),o)};m.includes=function(n,t){return n.indexOf(t)!==-1};m.inherit=function(n,t){return n.prototype=new t,n.prototype.constructor=n,n.superclass=t.prototype,n};m.isObject=function(n){return n===Object(n)&&!m.isArray(n)};m.isEmptyObject=function(n){if(m.isObject(n)){for(var t in n)if(Mi.call(n,t))return!1;return!0}return!1};m.isUndefined=function(n){return n===void 0};m.isString=function(n){return dn.call(n)=="[object String]"};m.isDate=function(n){return dn.call(n)=="[object Date]"};m.isNumber=function(n){return dn.call(n)=="[object Number]"};m.isElement=function(n){return!!(n&&n.nodeType===1)};m.encodeDates=function(n){return m.each(n,function(t,o){m.isDate(t)?n[o]=m.formatDate(t):m.isObject(t)&&(n[o]=m.encodeDates(t))}),n};m.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};m.formatDate=function(n){function t(o){return o<10?"0"+o:o}return n.getUTCFullYear()+"-"+t(n.getUTCMonth()+1)+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())};m.strip_empty_properties=function(n){var t={};return m.each(n,function(o,r){m.isString(o)&&o.length>0&&(t[r]=o)}),t};m.truncate=function(n,t){var o;return typeof n=="string"?o=n.slice(0,t):m.isArray(n)?(o=[],m.each(n,function(r){o.push(m.truncate(r,t))})):m.isObject(n)?(o={},m.each(n,function(r,e){o[e]=m.truncate(r,t)})):o=n,o};m.JSONEncode=function(){return function(n){var t=n,o=function(e){var i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return i.lastIndex=0,i.test(e)?'"'+e.replace(i,function(s){var c=a[s];return typeof c=="string"?c:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,i){var a="",s=" ",c=0,l="",u="",d=0,h=a,_=[],v=i[e];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(e)),typeof v){case"string":return o(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(a+=s,_=[],dn.apply(v)==="[object Array]"){for(d=v.length,c=0;c<d;c+=1)_[c]=r(c,v)||"null";return u=_.length===0?"[]":a?`[
68
68
  `+a+_.join(`,
69
69
  `+a)+`
70
70
  `+h+"]":"["+_.join(",")+"]",a=h,u}for(l in v)Mi.call(v,l)&&(u=r(l,v),u&&_.push(o(l)+(a?": ":":")+u));return u=_.length===0?"{}":a?"{"+_.join(",")+h+"}":"{"+_.join(",")+"}",a=h,u}};return r("",{"":t})}}();m.JSONDecode=function(){var n,t,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
71
71
  `,r:"\r",t:" "},r,e=function(_){var v=new SyntaxError(_);throw v.at=n,v.text=r,v},i=function(_){return _&&_!==t&&e("Expected '"+_+"' instead of '"+t+"'"),t=r.charAt(n),n+=1,t},a=function(){var _,v="";for(t==="-"&&(v="-",i("-"));t>="0"&&t<="9";)v+=t,i();if(t===".")for(v+=".";i()&&t>="0"&&t<="9";)v+=t;if(t==="e"||t==="E")for(v+=t,i(),(t==="-"||t==="+")&&(v+=t,i());t>="0"&&t<="9";)v+=t,i();if(_=+v,!isFinite(_))e("Bad number");else return _},s=function(){var _,v,C="",g;if(t==='"')for(;i();){if(t==='"')return i(),C;if(t==="\\")if(i(),t==="u"){for(g=0,v=0;v<4&&(_=parseInt(i(),16),!!isFinite(_));v+=1)g=g*16+_;C+=String.fromCharCode(g)}else if(typeof o[t]=="string")C+=o[t];else break;else C+=t}e("Bad string")},c=function(){for(;t&&t<=" ";)i()},l=function(){switch(t){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}e('Unexpected "'+t+'"')},u,d=function(){var _=[];if(t==="["){if(i("["),c(),t==="]")return i("]"),_;for(;t;){if(_.push(u()),c(),t==="]")return i("]"),_;i(","),c()}}e("Bad array")},h=function(){var _,v={};if(t==="{"){if(i("{"),c(),t==="}")return i("}"),v;for(;t;){if(_=s(),c(),i(":"),Object.hasOwnProperty.call(v,_)&&e('Duplicate key "'+_+'"'),v[_]=u(),c(),t==="}")return i("}"),v;i(","),c()}}e("Bad object")};return u=function(){switch(c(),t){case"{":return h();case"[":return d();case'"':return s();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(_){var v;return r=_,n=0,t=" ",v=u(),c(),t&&e("Syntax error"),v}}();m.base64Encode=function(n){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,r,e,i,a,s,c,l,u=0,d=0,h="",_=[];if(!n)return n;n=m.utf8Encode(n);do o=n.charCodeAt(u++),r=n.charCodeAt(u++),e=n.charCodeAt(u++),l=o<<16|r<<8|e,i=l>>18&63,a=l>>12&63,s=l>>6&63,c=l&63,_[d++]=t.charAt(i)+t.charAt(a)+t.charAt(s)+t.charAt(c);while(u<n.length);switch(h=_.join(""),n.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h};m.utf8Encode=function(n){n=(n+"").replace(/\r\n/g,`
72
72
  `).replace(/\r/g,`
73
- `);var t="",o,r,e=0,i;for(o=r=0,e=n.length,i=0;i<e;i++){var a=n.charCodeAt(i),s=null;a<128?r++:a>127&&a<2048?s=String.fromCharCode(a>>6|192,a&63|128):s=String.fromCharCode(a>>12|224,a>>6&63|128,a&63|128),s!==null&&(r>o&&(t+=n.substring(o,r)),t+=s,o=r=i+1)}return r>o&&(t+=n.substring(o,n.length)),t};m.UUID=function(){try{return B.crypto.randomUUID()}catch{for(var n=new Array(36),t=0;t<36;t++)n[t]=Math.floor(Math.random()*16);return n[14]=4,n[19]=n[19]&=-5,n[19]=n[19]|=8,n[8]=n[13]=n[18]=n[23]="-",m.map(n,function(r){return r.toString(16)}).join("")}};var oc=["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"];m.isBlockedUA=function(n){var t;for(n=n.toLowerCase(),t=0;t<oc.length;t++)if(n.indexOf(oc[t])!==-1)return!0;return!1};m.HTTPBuildQuery=function(n,t){var o,r,e=[];return m.isUndefined(t)&&(t="&"),m.each(n,function(i,a){o=encodeURIComponent(i.toString()),r=encodeURIComponent(a),e[e.length]=r+"="+o}),e.join(t)};m.getQueryParam=function(n,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+t+"=([^&#]*)",r=new RegExp(o),e=r.exec(n);if(e===null||e&&typeof e[1]!="string"&&e[1].length)return"";var i=e[1];try{i=decodeURIComponent(i)}catch{J.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")};m.cookie={get:function(n){for(var t=n+"=",o=G.cookie.split(";"),r=0;r<o.length;r++){for(var e=o[r];e.charAt(0)==" ";)e=e.substring(1,e.length);if(e.indexOf(t)===0)return decodeURIComponent(e.substring(t.length,e.length))}return null},parse:function(n){var t;try{t=m.JSONDecode(m.cookie.get(n))||{}}catch{}return t},set_seconds:function(n,t,o,r,e,i,a){var s="",c="",l="";if(a)s="; domain="+a;else if(r){var u=ac(G.location.hostname);s=u?"; domain=."+u:""}if(o){var d=new Date;d.setTime(d.getTime()+o*1e3),c="; expires="+d.toGMTString()}i&&(e=!0,l="; SameSite=None"),e&&(l+="; secure"),G.cookie=n+"="+encodeURIComponent(t)+c+"; path=/"+s+l},set:function(n,t,o,r,e,i,a){var s="",c="",l="";if(a)s="; domain="+a;else if(r){var u=ac(G.location.hostname);s=u?"; domain=."+u:""}if(o){var d=new Date;d.setTime(d.getTime()+o*24*60*60*1e3),c="; expires="+d.toGMTString()}i&&(e=!0,l="; SameSite=None"),e&&(l+="; secure");var h=n+"="+encodeURIComponent(t)+c+"; path=/"+s+l;return G.cookie=h,h},remove:function(n,t,o){m.cookie.set(n,"",-1,t,!1,!1,o)}};var kl=function(n){var t=!0;try{var o="__mplss_"+Oa(8),r="xyz";n.setItem(o,r),n.getItem(o)!==r&&(t=!1),n.removeItem(o)}catch{t=!1}return t},oo=null,nn=function(n,t){return oo!==null&&!t?oo:oo=kl(n||B.localStorage)},ao=null,rv=function(n,t){return ao!==null&&!t?ao:ao=kl(n||B.sessionStorage)};function wl(n,t,o){var r=function(e){J.error(t+" error: "+e)};return{is_supported:function(e){var i=o(n,e);return i||J.error(t+" unsupported"),i},error:r,get:function(e){try{return n.getItem(e)}catch(i){r(i)}return null},parse:function(e){try{return m.JSONDecode(n.getItem(e))||{}}catch{}return null},set:function(e,i){try{n.setItem(e,i)}catch(a){r(a)}},remove:function(e){try{n.removeItem(e)}catch(i){r(i)}}}}m.localStorage=wl(B.localStorage,"localStorage",nn);m.sessionStorage=wl(B.sessionStorage,"sessionStorage",rv);m.register_event=function(){var n=function(r,e,i,a,s){if(!r){J.error("No valid element provided to register_event");return}if(r.addEventListener&&!a)r.addEventListener(e,i,!!s);else{var c="on"+e,l=r[c];r[c]=t(r,i,l)}};function t(r,e,i){var a=function(s){if(s=s||o(B.event),!!s){var c=!0,l,u;return m.isFunction(i)&&(l=i(s)),u=e.call(r,s),(l===!1||u===!1)&&(c=!1),c}};return a}function o(r){return r&&(r.preventDefault=o.preventDefault,r.stopPropagation=o.stopPropagation),r}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},n}();var nv=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');m.dom_query=function(){function n(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function o(e,i){var a=" "+i+" ";return(" "+e.className+" ").replace(t," ").indexOf(a)>=0}function r(e){if(!G.getElementsByTagName)return[];var i=e.split(" "),a,s,c,l,u,d,h,_,v,C,g=[G];for(d=0;d<i.length;d++){if(a=i[d].replace(/^\s+/,"").replace(/\s+$/,""),a.indexOf("#")>-1){s=a.split("#"),c=s[0];var b=s[1],w=G.getElementById(b);if(!w||c&&w.nodeName.toLowerCase()!=c)return[];g=[w];continue}if(a.indexOf(".")>-1){s=a.split("."),c=s[0];var S=s[1];for(c||(c="*"),l=[],u=0,h=0;h<g.length;h++)for(c=="*"?v=n(g[h]):v=g[h].getElementsByTagName(c),_=0;_<v.length;_++)l[u++]=v[_];for(g=[],C=0,h=0;h<l.length;h++)l[h].className&&m.isString(l[h].className)&&o(l[h],S)&&(g[C++]=l[h]);continue}var R=a.match(nv);if(R){c=R[1];var T=R[2],I=R[3],M=R[4];for(c||(c="*"),l=[],u=0,h=0;h<g.length;h++)for(c=="*"?v=n(g[h]):v=g[h].getElementsByTagName(c),_=0;_<v.length;_++)l[u++]=v[_];g=[],C=0;var O;switch(I){case"=":O=function(N){return N.getAttribute(T)==M};break;case"~":O=function(N){return N.getAttribute(T).match(new RegExp("\\b"+M+"\\b"))};break;case"|":O=function(N){return N.getAttribute(T).match(new RegExp("^"+M+"-?"))};break;case"^":O=function(N){return N.getAttribute(T).indexOf(M)===0};break;case"$":O=function(N){return N.getAttribute(T).lastIndexOf(M)==N.getAttribute(T).length-M.length};break;case"*":O=function(N){return N.getAttribute(T).indexOf(M)>-1};break;default:O=function(N){return N.getAttribute(T)}}for(g=[],C=0,h=0;h<l.length;h++)O(l[h])&&(g[C++]=l[h]);continue}for(c=a,l=[],u=0,h=0;h<g.length;h++)for(v=g[h].getElementsByTagName(c),_=0;_<v.length;_++)l[u++]=v[_];g=l}return g}return function(e){return m.isElement(e)?[e]:m.isObject(e)&&!m.isUndefined(e.length)?e:r.call(this,e)}}();var iv=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ov=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];m.info={campaignParams:function(n){var t="",o={};return m.each(iv,function(r){t=m.getQueryParam(G.URL,r),t.length?o[r]=t:n!==void 0&&(o[r]=n)}),o},clickParams:function(){var n="",t={};return m.each(ov,function(o){n=m.getQueryParam(G.URL,o),n.length&&(t[o]=n)}),t},marketingParams:function(){return m.extend(m.info.campaignParams(),m.info.clickParams())},searchEngine:function(n){return n.search("https?://(.*)google.([^/?]*)")===0?"google":n.search("https?://(.*)bing.com")===0?"bing":n.search("https?://(.*)yahoo.com")===0?"yahoo":n.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(n){var t=m.info.searchEngine(n),o=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var e=m.getQueryParam(n,o);e.length&&(r.mp_keyword=e)}return r},browser:function(n,t,o){return t=t||"",o||m.includes(n," OPR/")?m.includes(n,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(n)?"BlackBerry":m.includes(n,"IEMobile")||m.includes(n,"WPDesktop")?"Internet Explorer Mobile":m.includes(n,"SamsungBrowser/")?"Samsung Internet":m.includes(n,"Edge")||m.includes(n,"Edg/")?"Microsoft Edge":m.includes(n,"FBIOS")?"Facebook Mobile":m.includes(n,"Whale/")?"Whale Browser":m.includes(n,"Chrome")?"Chrome":m.includes(n,"CriOS")?"Chrome iOS":m.includes(n,"UCWEB")||m.includes(n,"UCBrowser")?"UC Browser":m.includes(n,"FxiOS")?"Firefox iOS":m.includes(t,"Apple")?m.includes(n,"Mobile")?"Mobile Safari":"Safari":m.includes(n,"Android")?"Android Mobile":m.includes(n,"Konqueror")?"Konqueror":m.includes(n,"Firefox")?"Firefox":m.includes(n,"MSIE")||m.includes(n,"Trident/")?"Internet Explorer":m.includes(n,"Gecko")?"Mozilla":""},browserVersion:function(n,t,o){var r=m.info.browser(n,t,o),e={"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=e[r];if(i===void 0)return null;var a=n.match(i);return a?parseFloat(a[a.length-2]):null},os:function(){var n=ut;return/Windows/i.test(n)?/Phone/.test(n)||/WPDesktop/.test(n)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(n)?"iOS":/Android/.test(n)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(n)?"BlackBerry":/Mac/i.test(n)?"Mac OS X":/Linux/.test(n)?"Linux":/CrOS/.test(n)?"Chrome OS":""},device:function(n){return/Windows Phone/i.test(n)||/WPDesktop/.test(n)?"Windows Phone":/iPad/.test(n)?"iPad":/iPod/.test(n)?"iPod Touch":/iPhone/.test(n)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(n)?"BlackBerry":/Android/.test(n)?"Android":""},referringDomain:function(n){var t=n.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return B.location.href},properties:function(n){return typeof n!="object"&&(n={}),m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(ut,bt.vendor,Dr),$referrer:G.referrer,$referring_domain:m.info.referringDomain(G.referrer),$device:m.info.device(ut)}),{$current_url:m.info.currentUrl(),$browser_version:m.info.browserVersion(ut,bt.vendor,Dr),$screen_height:tc.height,$screen_width:tc.width,mp_lib:"web",$lib_version:Je.LIB_VERSION,$insert_id:Oa(),time:m.timestamp()/1e3},m.strip_empty_properties(n))},people_properties:function(){return m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(ut,bt.vendor,Dr)}),{$browser_version:m.info.browserVersion(ut,bt.vendor,Dr)})},mpPageViewProperties:function(){return m.strip_empty_properties({current_page_title:G.title,current_domain:B.location.hostname,current_url_path:B.location.pathname,current_url_protocol:B.location.protocol,current_url_search:B.location.search})}};var av=function(n,t){var o=null,r=[];return function(e){var i=this;return r.push(e),o||(o=new Q(function(a){setTimeout(function(){var s=n.apply(i,[r]);o=null,r=[],a(s)},t)})),o}},Oa=function(n){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return n?t.substring(0,n):t},sv=function(){var n=m.UUID().replace(/-/g,""),t=m.UUID().replace(/-/g,"").substring(0,16),o="01";return"00-"+n+"-"+t+"-"+o},cv=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,uv=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ac=function(n){var t=uv,o=n.split("."),r=o[o.length-1];(r.length>4||r==="com"||r==="org")&&(t=cv);var e=n.match(t);return e?e[0]:""},lv=function(){var n=B.navigator.onLine;return m.isUndefined(n)||n},Mt=function(){},wr=null,li=null;typeof JSON<"u"&&(wr=JSON.stringify,li=JSON.parse);wr=wr||m.JSONEncode;li=li||m.JSONDecode;var dv=function(n,t,o){if(!B.CompressionStream)return!1;var r=m.info.browser(n,t,o),e=m.info.browserVersion(n,t,o);return!((r==="Safari"||r==="Mobile Safari")&&e>=16.4&&e<16.6)};m.info=m.info;m.info.browser=m.info.browser;m.info.browserVersion=m.info.browserVersion;m.info.device=m.info.device;m.info.properties=m.info.properties;m.isBlockedUA=m.isBlockedUA;m.isEmptyObject=m.isEmptyObject;m.isObject=m.isObject;m.JSONDecode=m.JSONDecode;m.JSONEncode=m.JSONEncode;m.toArray=m.toArray;m.NPO=zt;var fv="mixpanelBrowserDb",Sl="mixpanelRecordingEvents",Ba="mixpanelRecordingRegistry",hv=1,pv=[Sl,Ba],rt=function(n){this.dbPromise=null,this.storeName=n};rt.prototype._openDb=function(){return new Q(function(n,t){var o=B.indexedDB.open(fv,hv);o.onerror=function(){t(o.error)},o.onsuccess=function(){n(o.result)},o.onupgradeneeded=function(r){var e=r.target.result;pv.forEach(function(i){e.createObjectStore(i)})}})};rt.prototype.init=function(){return B.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(n){return n instanceof B.IDBDatabase?Q.resolve():Q.reject(n)})):Q.reject("indexedDB is not supported in this browser")};rt.prototype.isInitialized=function(){return!!this.dbPromise};rt.prototype.makeTransaction=function(n,t){var o=this.storeName,r=function(e){return new Q(function(i,a){var s=e.transaction(o,n);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){a(s.error)},t(s.objectStore(o))})};return this.dbPromise.then(r).catch((function(e){return e&&e.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):Q.reject(e)}).bind(this))};rt.prototype.setItem=function(n,t){return this.makeTransaction("readwrite",function(o){o.put(t,n)})};rt.prototype.getItem=function(n){var t;return this.makeTransaction("readonly",function(o){t=o.get(n)}).then(function(){return t.result})};rt.prototype.removeItem=function(n){return this.makeTransaction("readwrite",function(t){t.delete(n)})};rt.prototype.getAll=function(){var n;return this.makeTransaction("readonly",function(t){n=t.getAll()}).then(function(){return n.result})};var mv="__mp_opt_in_out_";function _v(n,t){Rl(!0,n,t)}function vv(n,t){Rl(!1,n,t)}function gv(n,t){return El(n,t)==="1"}function Al(n,t){if(bv(t))return J.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 o=El(n,t)==="0";return o&&J.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function qt(n){return Na(n,function(t){return this.get_config(t)})}function Gt(n){return Na(n,function(t){return this._get_config(t)})}function Er(n){return Na(n,function(t){return this._get_config(t)})}function yv(n,t){t=t||{},Ma(t).remove(Da(n,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Ma(n){return n=n||{},n.persistenceType==="localStorage"?m.localStorage:m.cookie}function Da(n,t){return t=t||{},(t.persistencePrefix||mv)+n}function El(n,t){return Ma(t).get(Da(n,t))}function bv(n){if(n&&n.ignoreDnt)return!1;var t=n&&n.window||B,o=t.navigator||{},r=!1;return m.each([o.doNotTrack,o.msDoNotTrack,t.doNotTrack],function(e){m.includes([!0,1,"1","yes"],e)&&(r=!0)}),r}function Rl(n,t,o){if(!m.isString(t)||!t.length){J.error("gdpr."+(n?"optIn":"optOut")+" called with an invalid token");return}o=o||{},Ma(o).set(Da(t,o),n?1:0,m.isNumber(o.cookieExpiration)?o.cookieExpiration:null,!!o.crossSubdomainCookie,!!o.secureCookie,!!o.crossSiteCookie,o.cookieDomain),o.track&&n&&o.track(o.trackEventName||"$opt_in",o.trackProperties,{send_immediately:!0})}function Na(n,t){return function(){var o=!1;try{var r=t.call(this,"token"),e=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");r&&(o=Al(r,{ignoreDnt:e,persistenceType:i,persistencePrefix:a,window:s}))}catch(l){J.error("Unexpected error when checking tracking opt-out status: "+l)}if(!o)return n.apply(this,arguments);var c=arguments[arguments.length-1];typeof c=="function"&&c(0)}}var Cv=rr("lock"),xl=function(n,t){t=t||{},this.storageKey=n,this.storage=t.storage||B.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Q};xl.prototype.withLock=function(n,t){var o=this.promiseImpl;return new o(m.bind(function(r,e){var i=t||new Date().getTime()+"|"+Math.random(),a=new Date().getTime(),s=this.storageKey,c=this.pollIntervalMS,l=this.timeoutMS,u=this.storage,d=s+":X",h=s+":Y",_=s+":Z",v=function(S){if(new Date().getTime()-a>l){Cv.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(_),u.removeItem(h),b();return}setTimeout(function(){try{S()}catch(R){e(R)}},c*(Math.random()+.1))},C=function(S,R){S()?R():v(function(){C(S,R)})},g=function(){var S=u.getItem(h);return S&&S!==i?!1:(u.setItem(h,i),u.getItem(h)===i?!0:(nn(u,!0)||e(new Error("localStorage support dropped while acquiring lock")),!1))},b=function(){u.setItem(d,i),C(g,function(){if(u.getItem(d)===i){w();return}v(function(){if(u.getItem(h)!==i){b();return}C(function(){return!u.getItem(_)},w)})})},w=function(){u.setItem(_,"1");var S=function(){u.removeItem(_),u.getItem(h)===i&&u.removeItem(h),u.getItem(d)===i&&u.removeItem(d)};n().then(function(R){S(),r(R)}).catch(function(R){S(),e(R)})};try{if(nn(u,!0))b();else throw new Error("localStorage support check failed")}catch(S){e(S)}},this))};var Rr=function(n){this.storage=n||B.localStorage};Rr.prototype.init=function(){return Q.resolve()};Rr.prototype.isInitialized=function(){return!0};Rr.prototype.setItem=function(n,t){return new Q(m.bind(function(o,r){try{this.storage.setItem(n,wr(t))}catch(e){r(e)}o()},this))};Rr.prototype.getItem=function(n){return new Q(m.bind(function(t,o){var r;try{r=li(this.storage.getItem(n))}catch(e){o(e)}t(r)},this))};Rr.prototype.removeItem=function(n){return new Q(m.bind(function(t,o){try{this.storage.removeItem(n)}catch(r){o(r)}t()},this))};var sc=rr("batch"),ht=function(n,t){t=t||{},this.storageKey=n,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new Rr,this.lock=new xl(n,{storage:t.sharedLockStorage||B.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||m.bind(sc.error,sc),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=av(m.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=m.bind(function(o){return this._enqueuePersisted([o])},this)};ht.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Q.resolve():this.queueStorage.init().then(m.bind(function(){this.initialized=!0},this)).catch(m.bind(function(n){this.reportError("Error initializing queue persistence. Disabling persistence",n),this.initialized=!0,this.usePersistence=!1},this))};ht.prototype.enqueue=function(n,t){var o={id:Oa(),flushAfter:new Date().getTime()+t*2,payload:n};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),Q.resolve(!0))};ht.prototype._enqueuePersisted=function(n){var t=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return this.saveToStorage(o.concat(n))},this)).then(m.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(n)),o},this)).catch(m.bind(function(o){return this.reportError("Error enqueueing items",o,n),!1},this))},this);return this.lock.withLock(t,this.pid).catch(m.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))};ht.prototype.fillBatch=function(n){var t=this.memQueue.slice(0,n);return this.usePersistence&&t.length<n?this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){if(o.length){var r={};m.each(t,function(a){r[a.id]=!0});for(var e=0;e<o.length;e++){var i=o[e];if(new Date().getTime()>i.flushAfter&&!r[i.id]&&(i.orphaned=!0,t.push(i),t.length>=n))break}}return t},this)):Q.resolve(t)};var cc=function(n,t){var o=[];return m.each(n,function(r){r.id&&!t[r.id]&&o.push(r)}),o};ht.prototype.removeItemsByID=function(n){var t={};if(m.each(n,function(r){t[r]=!0}),this.memQueue=cc(this.memQueue,t),this.usePersistence){var o=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(r){return r=cc(r,t),this.saveToStorage(r)},this)).then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(r){for(var e=0;e<r.length;e++){var i=r[e];if(i.id&&t[i.id])throw new Error("Item not removed from storage")}return!0},this)).catch(m.bind(function(r){return this.reportError("Error removing items",r,n),!1},this))},this);return this.lock.withLock(o,this.pid).catch(m.bind(function(r){return this.reportError("Error acquiring storage lock",r),nn(this.lock.storage,!0)?!1:o().then(m.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(m.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}else return Q.resolve(!0)};var uc=function(n,t){var o=[];return m.each(n,function(r){var e=r.id;if(e in t){var i=t[e];i!==null&&(r.payload=i,o.push(r))}else o.push(r)}),o};ht.prototype.updatePayloads=function(n){return this.memQueue=uc(this.memQueue,n),this.usePersistence?this.lock.withLock(m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return o=uc(o,n),this.saveToStorage(o)},this)).catch(m.bind(function(o){return this.reportError("Error updating items",n,o),!1},this))},this),this.pid).catch(m.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this)):Q.resolve(!0)};ht.prototype.readFromStorage=function(){return this.ensureInit().then(m.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(m.bind(function(n){return n&&(m.isArray(n)||(this.reportError("Invalid storage entry:",n),n=null)),n||[]},this)).catch(m.bind(function(n){return this.reportError("Error retrieving queue",n),[]},this))};ht.prototype.saveToStorage=function(n){return this.ensureInit().then(m.bind(function(){return this.queueStorage.setItem(this.storageKey,n)},this)).then(function(){return!0}).catch(m.bind(function(t){return this.reportError("Error saving queue",t),!1},this))};ht.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(m.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Q.resolve()};var kv=10*60*1e3,Vr=rr("batch"),Ze=function(n,t){this.errorReporter=t.errorReporter,this.queue=new ht(n,{errorReporter:m.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.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=t.flushOnlyOnInterval||!1,this._flushPromise=null};Ze.prototype.enqueue=function(n){return this.queue.enqueue(n,this.flushInterval)};Ze.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};Ze.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};Ze.prototype.clear=function(){return this.queue.clear()};Ze.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};Ze.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};Ze.prototype.scheduleFlush=function(n){this.flushInterval=n,this.stopped||(this.timeoutID=setTimeout(m.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};Ze.prototype.sendRequestPromise=function(n,t){return new Q(m.bind(function(o){this.sendRequest(n,t,o)},this))};Ze.prototype.flush=function(n){if(this.requestInProgress)return Vr.log("Flush: Request already in progress"),Q.resolve();this.requestInProgress=!0,n=n||{};var t=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(m.bind(function(e){var i=e.length===r,a=[],s={};if(m.each(e,function(d){var h=d.payload;if(this.beforeSendHook&&!d.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=m.extend({},h.properties,{mp_sent_by_lib_version:Je.LIB_VERSION}));var _=!0,v=d.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:d,batchSize:e.length,timesSent:this.itemIdsSentSuccessfully[v]}),_=!1):this.reportError("[dupe] found item with no ID",{item:d}),_&&a.push(h)}s[d.id]=h},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),Q.resolve();var c=m.bind(function(){return this.queue.removeItemsByID(m.map(e,function(d){return d.id})).then(m.bind(function(d){return m.each(e,m.bind(function(h){var _=h.id;_?(this.itemIdsSentSuccessfully[_]=this.itemIdsSentSuccessfully[_]||0,this.itemIdsSentSuccessfully[_]++,this.itemIdsSentSuccessfully[_]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:e.length,timesSent:this.itemIdsSentSuccessfully[_]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),d?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),Q.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Q.resolve())},this))},this),l=m.bind(function(d){this.requestInProgress=!1;try{if(n.unloading)return this.queue.updatePayloads(s);if(m.isObject(d)&&d.error==="timeout"&&new Date().getTime()-o>=t)return this.reportError("Network timeout; retrying"),this.flush();if(m.isObject(d)&&(d.httpStatusCode>=500||d.httpStatusCode===429||d.httpStatusCode<=0&&!lv()||d.error==="timeout")){var h=this.flushInterval*2;return d.retryAfter&&(h=parseInt(d.retryAfter,10)*1e3||h),h=Math.min(kv,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),Q.resolve()}else if(m.isObject(d)&&d.httpStatusCode===413)if(e.length>1){var _=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,_,e.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Q.resolve()}else return this.reportError("Single-event request too large; dropping",e),this.resetBatchSize(),c();else return c()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return n.unloading&&(u.transport="sendBeacon"),Vr.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,u).then(l)},this)).catch(m.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))};Ze.prototype.reportError=function(n,t){if(Vr.error.apply(Vr.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(n)),this.errorReporter(n,t)}catch(o){Vr.error(o)}};var La=function(n){var t=Date.now();return!n||t>n.maxExpires||t>n.idleExpires},wv=250,pr=rr("recorder"),Sv=B.CompressionStream,Av={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Ev=new Set([q.MouseMove,q.MouseInteraction,q.Scroll,q.ViewportResize,q.Input,q.TouchMove,q.MediaInteraction,q.Drag,q.Selection]);function Rv(n){return n.type===X.IncrementalSnapshot&&Ev.has(n.data.source)}var xe=function(n){this._mixpanel=n.mixpanelInstance,this._onIdleTimeout=n.onIdleTimeout||Mt,this._onMaxLengthReached=n.onMaxLengthReached||Mt,this._onBatchSent=n.onBatchSent||Mt,this._rrwebRecord=n.rrwebRecord||null,this._stopRecording=null,this.replayId=n.replayId,this.batchStartUrl=n.batchStartUrl||null,this.replayStartUrl=n.replayStartUrl||null,this.idleExpires=n.idleExpires||null,this.maxExpires=n.maxExpires||null,this.replayStartTime=n.replayStartTime||null,this.lastEventTimestamp=n.lastEventTimestamp||null,this.seqNo=n.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=$r,this.recordMinMs=0;var t=nn(n.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new rt(Sl),this.batcher=new Ze(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Av,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:n.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:wv,sharedLockTimeoutMS:10*1e3})};xe.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var n={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(n.$device_id=t);var o=this._mixpanel.get_property("$user_id");return o&&(n.$user_id=o),n};xe.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))};xe.prototype.getConfig=function(n){return this._mixpanel.get_config(n)};xe.prototype.get_config=function(n){return this.getConfig(n)};xe.prototype.startRecording=function(n){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){pr.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>$r&&(this.recordMaxMs=$r,pr.critical("record_max_ms cannot be greater than "+$r+"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=m.info.currentUrl(),this.replayStartUrl=m.info.currentUrl()),n||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(e){if(this.idleExpires&&this.idleExpires<e.timestamp){this._onIdleTimeout();return}Rv(e)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(this.lastEventTimestamp===null||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,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")?[Z_({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var r=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),r)};xe.prototype.stopRecording=function(n){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():n||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t};xe.prototype.isRrwebStopped=function(){return this._stopRecording===null};xe.prototype.flushEventsWithOptOut=function(n,t,o){var r=(function(e){e===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(n,t,o,r)};xe.prototype.serialize=function(){var n;try{n=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),n=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:n}};xe.deserialize=function(n,t){var o=new xe(m.extend({},t,{replayId:n.replayId,batchStartUrl:n.batchStartUrl,replayStartUrl:n.replayStartUrl,idleExpires:n.idleExpires,maxExpires:n.maxExpires,replayStartTime:n.replayStartTime,lastEventTimestamp:n.lastEventTimestamp,seqNo:n.seqNo,sharedLockStorage:t.sharedLockStorage}));return o};xe.prototype._sendRequest=function(n,t,o,r){var e=(function(a,s){a.status===200&&this.replayId===n&&(this.seqNo++,this.batchStartUrl=m.info.currentUrl()),this._onBatchSent(),r({status:0,httpStatusCode:a.status,responseBody:s,retryAfter:a.headers.get("Retry-After")})}).bind(this),i=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");B.fetch(i+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(a){a.json().then(function(s){e(a,s)}).catch(function(s){r({error:s})})}).catch(function(a){r({error:a,httpStatusCode:0})})};xe.prototype._flushEvents=qt(function(n,t,o){var r=n.length;if(r>0){for(var e=this.replayId,i=1/0,a=-1/0,s=!1,c=0;c<r;c++)i=Math.min(i,n[c].timestamp),a=Math.max(a,n[c].timestamp),n[c].type===X.FullSnapshot&&(s=!0);if(this.seqNo===0){if(!s){o({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 l=a-this.replayStartTime,u={$current_url:this.batchStartUrl,$lib_version:Je.LIB_VERSION,batch_start_time:i/1e3,mp_lib:"web",replay_id:e,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(n);if(Object.assign(u,this.getUserIdInfo()),dv(ut,bt.vendor,Dr)){var h=new Blob([d],{type:"application/json"}).stream(),_=h.pipeThrough(new Sv("gzip"));new Response(_).blob().then((function(v){u.format="gzip",this._sendRequest(e,u,v,o)}).bind(this))}else u.format="body",this._sendRequest(e,u,d,o)}});xe.prototype.reportError=function(n,t){pr.error.apply(pr.error,arguments);try{!t&&!(n instanceof Error)&&(n=new Error(n)),this.getConfig("error_reporter")(n,t)}catch(o){pr.error(o)}};xe.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime};xe.prototype._getRecordMinMs=function(){var n=this.getConfig("record_min_ms");return n>ro?(pr.critical("record_min_ms cannot be greater than "+ro+"ms. Capping value."),ro):n};var At=function(n){this.idb=new rt(Ba),this.errorReporter=n.errorReporter,this.mixpanelInstance=n.mixpanelInstance,this.sharedLockStorage=n.sharedLockStorage};At.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};At.prototype.handleError=function(n){this.errorReporter("IndexedDB error: ",n)};At.prototype.setActiveRecording=function(n){if(!this.isPersistenceEnabled())return Q.resolve();var t=n.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,n)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Q.resolve())};At.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(n){return La(n)?null:n}).bind(this)).catch(this.handleError.bind(this)):Q.resolve(null)};At.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()};At.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(n){if(n)return n.maxExpires=0,this.setActiveRecording(n)}).bind(this)).catch(this.handleError.bind(this))};At.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Q.resolve()};At.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(n){var t=n.filter(function(o){return La(o)}).map((function(o){var r=xe.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return r.unloadPersistedData().then((function(){return this.idb.removeItem(o.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return Q.all(t)}).bind(this)).catch(this.handleError.bind(this)):Q.resolve([])};var jr=rr("recorder"),Et=function(n,t,o){this.mixpanelInstance=n,this.rrwebRecord=t||jt,this.sharedLockStorage=o,this.recordingRegistry=new At({mixpanelInstance:this.mixpanelInstance,errorReporter:jr.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Et.prototype.startRecording=function(n){if(n=n||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){jr.log("Recording already in progress, skipping startRecording.");return}var t=(function(){jr.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),o=(function(){jr.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),r=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),e={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:o,replayId:m.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return n.activeSerializedRecording?this.activeRecording=xe.deserialize(n.activeSerializedRecording,e):this.activeRecording=new xe(e),this.activeRecording.startRecording(n.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};Et.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))};Et.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};Et.prototype._stopCurrentRecording=function(n,t){if(this.activeRecording){var o=this.activeRecording.stopRecording(n);return t&&(this.activeRecording=null),o}return Q.resolve()};Et.prototype.resumeRecording=function(n){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Q.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):n?this.startRecording({shouldStopBatcher:!1}):(jr.log("No resumable recording found."),null)}).bind(this))};Et.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};Et.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null};Object.defineProperty(Et.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});B.__mp_recorder=Et;var on="change",St="click",Zo="hashchange",xv="input",lc="load",Bt="mp_locationchange",dc="popstate",Di="scrollend",Fa="scroll",Tv="select",di="submit",Pv="toggle",fc="visibilitychange",Iv=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],hc=["mp-include"],Ko=["mp-no-track"],pc=Ko.concat(["mp-sensitive"]),Ov=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Bv={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},Mv={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},Dv={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},mc=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Nv=5,fe=rr("autocapture");function Xo(n){for(var t={},o=Tl(n).split(" "),r=0;r<o.length;r++){var e=o[r];e&&(t[e]=!0)}return t}function Tl(n){switch(typeof n.className){case"string":return n.className;case"object":return n.className.baseVal||n.getAttribute("class")||"";default:return""}}function Lv(n){if(n.previousElementSibling)return n.previousElementSibling;do n=n.previousSibling;while(n&&!Pl(n));return n}function _c(n,t,o,r,e,i){var a={$classes:Tl(n).split(" "),$tag_name:n.tagName.toLowerCase()},s=n.id;s&&(a.$id=s),Ua(n,t,e,i)&&m.each(Ov.concat(r),function(d){if(n.hasAttribute(d)&&!o[d]){var h=n.getAttribute(d);fi(h)&&(a["$attr-"+d]=h)}});for(var c=1,l=1,u=n;u=Lv(u);)c++,u.tagName===n.tagName&&l++;return a.$nth_child=c,a.$nth_of_type=l,a}function Fv(n,t){var o=t.allowElementCallback,r=t.allowSelectors||[],e=t.blockAttrs||[],i=t.blockElementCallback,a=t.blockSelectors||[],s=t.captureTextContent||!1,c=t.captureExtraAttrs||[],l=t.capturedForHeatMap||!1,u={};m.each(e,function(T){u[T]=!0});var d=null,h=typeof n.target>"u"?n.srcElement:n.target;if(Il(h)&&(h=h.parentNode),jv(h,n)&&Qo(h,n,o,r)&&!so(h,n,i,a)){for(var _=[h],v=h;v.parentNode&&!dt(v,"body");)_.push(v.parentNode),v=v.parentNode;var C=[],g,b=!1;if(m.each(_,function(T){var I=Ua(T,n,o,r);!u.href&&T.tagName.toLowerCase()==="a"&&(g=T.getAttribute("href"),g=I&&fi(g)&&g),so(T,n,i,a)&&(b=!0),C.push(_c(T,n,u,c,o,r))},this),!b){var w=G.documentElement;if(d={$event_type:n.type,$host:B.location.host,$pathname:B.location.pathname,$elements:C,$el_attr__href:g,$viewportHeight:Math.max(w.clientHeight,B.innerHeight||0),$viewportWidth:Math.max(w.clientWidth,B.innerWidth||0),$pageHeight:G.body.offsetHeight||0,$pageWidth:G.body.offsetWidth||0},m.each(c,function(T){if(!u[T]&&h.hasAttribute(T)){var I=h.getAttribute(T);fi(I)&&(d["$el_attr__"+T]=I)}}),s&&(S=vc(h,n,o,r),S&&S.length&&(d.$el_text=S)),n.type===St&&(m.each(Iv,function(T){T in n&&(d["$"+T]=n[T])}),l&&(d.$captured_for_heatmap=!0),h=Uv(n)),s){var S=vc(h,n,o,r);S&&S.length&&(d.$el_text=S)}if(h){if(!Qo(h,n,o,r)||so(h,n,i,a))return null;var R=_c(h,n,u,c,o,r);d.$target=R,d.$el_classes=R.$classes,m.extend(d,m.strip_empty_properties({$el_id:R.$id,$el_tag_name:R.$tag_name}))}}}return d}function vc(n,t,o,r){var e="";return Ua(n,t,o,r)&&n.childNodes&&n.childNodes.length&&m.each(n.childNodes,function(i){Il(i)&&i.textContent&&(e+=m.trim(i.textContent).split(/(\s+)/).filter(fi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),m.trim(e)}function Uv(n){for(var t=n.target,o=n.composedPath(),r=0;r<o.length;r++){var e=o[r];if(dt(e,"a")||dt(e,"button")||dt(e,"input")||dt(e,"select")||e.getAttribute&&e.getAttribute("role")==="button"){t=e;break}if(e===t)break}return t}function Qo(n,t,o,r){if(o)try{if(!o(n,t))return!1}catch(a){return fe.critical("Error while checking element in allowElementCallback",a),!1}if(!r.length)return!0;for(var e=0;e<r.length;e++){var i=r[e];try{if(n.matches(i))return!0}catch(a){fe.critical("Error while checking selector: "+i,a)}}return!1}function so(n,t,o,r){var e;if(o)try{if(o(n,t))return!0}catch(s){return fe.critical("Error while checking element in blockElementCallback",s),!0}if(r&&r.length)for(e=0;e<r.length;e++){var i=r[e];try{if(n.matches(i))return!0}catch(s){fe.critical("Error while checking selector: "+i,s)}}var a=Xo(n);for(e=0;e<Ko.length;e++)if(a[Ko[e]])return!0;return!1}function Pl(n){return n&&n.nodeType===1}function dt(n,t){return n&&n.tagName&&n.tagName.toLowerCase()===t.toLowerCase()}function Il(n){return n&&n.nodeType===3}function $v(){try{var n=G.createElement("div");return!!n.matches}catch{return!1}}function Vv(){return typeof WeakSet<"u"}function jv(n,t){if(!n||dt(n,"html")||!Pl(n))return!1;var o=n.tagName.toLowerCase();switch(o){case"form":return t.type===di;case"input":return["button","submit"].indexOf(n.getAttribute("type"))===-1?t.type===on:t.type===St;case"select":case"textarea":return t.type===on;default:return t.type===St}}function Ua(n,t,o,r){var e;if(!Qo(n,t,o,r))return!1;for(var i=n;i.parentNode&&!dt(i,"body");i=i.parentNode){var a=Xo(i);for(e=0;e<pc.length;e++)if(a[pc[e]])return!1}var s=Xo(n);for(e=0;e<hc.length;e++)if(s[hc[e]])return!0;if(dt(n,"input")||dt(n,"select")||dt(n,"textarea")||n.getAttribute("contenteditable")==="true")return!1;var c=n.type||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}var l=n.name||n.id||"";if(typeof l=="string"){var u=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(u.test(l.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function fi(n){if(n===null||m.isUndefined(n))return!1;if(typeof n=="string"){n=m.trim(n);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((n||"").replace(/[- ]/g,"")))return!1;var o=/(^\d{3}-?\d{2}-?\d{4}$)/;if(o.test(n))return!1}return!0}function Ol(n){var t="onscrollend"in B,o=rn(n),r=Di;if(!t){var e=null,i=100;o=rn(function(){clearTimeout(e),e=setTimeout(n,i)}),r=Fa}return{listener:o,eventType:r}}function zv(n){for(var t=0;t<mc.length;t++)if(n.hasAttribute(mc[t]))return!0;return!1}function qv(n){var t=n.getAttribute("role");if(!t)return!1;var o=t.trim().split(/\s+/)[0].toLowerCase();return Bv[o]}function co(n){var t=n.tagName.toLowerCase();return!!(t==="button"||t==="input"||t==="select"||t==="textarea"||t==="details"||t==="dialog"||n.isContentEditable||n.onclick||n.onmousedown||n.onmouseup||n.ontouchstart||n.ontouchend||zv(n)||qv(n)||t==="a"&&n.hasAttribute("href")||n.hasAttribute("tabindex"))}function Bl(n){if(!n||!n.tagName)return!0;var t=n.tagName.toLowerCase();if(Mv[t])return!0;if(co(n))return!1;for(var o=n.parentElement,r=0;o&&r<Nv;){if(co(o))return!1;if(o.getRootNode&&o.getRootNode()!==G){var e=o.getRootNode();if(e.host&&co(e.host))return!1}o=o.parentElement,r++}return!!Dv[t]}function Ml(n){return"composedPath"in n?n.composedPath():[]}function Dl(n){var t=Ml(n);return t&&t.length>0?t[0]:n.target||n.srcElement}var Gv=30,Wv=1e3,Hv=4,Yv=!1;function Nl(){this.clicks=[]}Nl.prototype.isRageClick=function(n,t){t=t||{};var o=t.threshold_px||Gv,r=t.timeout_ms||Wv,e=t.click_count||Hv,i=t.interactive_elements_only||Yv;if(i){var a=Dl(n);if(!a||Bl(a))return!1}var s=Date.now(),c=n.pageX,l=n.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<r&&Math.sqrt(Math.pow(c-u.x,2)+Math.pow(l-u.y,2))<o){if(this.clicks.push({x:c,y:l,timestamp:s}),this.clicks.length>=e)return this.clicks=[],!0}else this.clicks=[{x:c,y:l,timestamp:s}];return!1};function xr(n,t){this.changeCallback=n||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}xr.prototype.getEventTarget=function(n){if(this.observedShadowRoots)return Dl(n)};xr.prototype.observeFromEvent=function(n){if(this.observedShadowRoots)for(var t=Ml(n),o=0;o<t.length;o++){var r=t[o];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}};xr.prototype.observeShadowRoot=function(n){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(n))){var t=this;try{this.observedShadowRoots.add(n);var o=new window.MutationObserver(function(){t.changeCallback()});o.observe(n,this.observerConfig),this.shadowObservers.push(o)}catch(r){fe.critical("Error while observing shadow root",r)}}};xr.prototype.start=function(){if(!this.observedShadowRoots){if(!Vv()){fe.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};xr.prototype.stop=function(){if(this.observedShadowRoots){for(var n=0;n<this.shadowObservers.length;n++)try{this.shadowObservers[n].disconnect()}catch(t){fe.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var Jv=500,Zv=[on,xv,di,Tv,Pv],Kv=[Di],Xv=[Zo],gc={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function pt(n){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=n,this.processingActive=!1,this.processingTimeout=null}pt.prototype.addClick=function(n){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(n);return t||(t=n.target||n.srcElement),!t||Bl(t)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(n),this.pendingClicks.push({element:t,event:n,timestamp:Date.now()}),!0)};pt.prototype.trackClick=function(n,t){if(!this.isTracking)return!1;var o=this.addClick(n);return o&&this.triggerProcessing(t),o};pt.prototype.getDeadClicks=function(n){if(this.pendingClicks.length===0)return[];var t=n.timeout_ms,o=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var e=[],i=0;i<r.length;i++){var a=r[i];o-a.timestamp>=t?this.hasChangesAfter(a.timestamp)||e.push(a):this.pendingClicks.push(a)}return e};pt.prototype.hasChangesAfter=function(n){return this.lastChangeEventTimestamp>=n-100};pt.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};pt.prototype.triggerProcessing=function(n){this.processingActive||(this.processingActive=!0,this.processRecursively(n))};pt.prototype.processRecursively=function(n){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=n.timeout_ms,o=this;this.processingTimeout=setTimeout(function(){if(o.processingActive){for(var r=o.getDeadClicks(n),e=0;e<r.length;e++)o.onDeadClickCallback(r[e].event);o.pendingClicks.length>0?o.processRecursively(n):o.processingActive=!1}},t)};pt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var n=this;Zv.forEach(function(o){var r=function(){n.recordChangeEvent()};document.addEventListener(o,r,{capture:!0,passive:!0}),n.eventListeners.push({target:document,event:o,handler:r,options:{capture:!0,passive:!0}})}),Xv.forEach(function(o){var r=function(){n.recordChangeEvent()};window.addEventListener(o,r),n.eventListeners.push({target:window,event:o,handler:r})}),Kv.forEach(function(o){var r=function(){n.recordChangeEvent()};window.addEventListener(o,r,{passive:!0}),n.eventListeners.push({target:window,event:o,handler:r,options:{passive:!0}})});var t=function(){n.recordChangeEvent()};if(document.addEventListener("selectionchange",t),n.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){n.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,gc)}catch(o){fe.critical("Error while setting up mutation observer",o)}if(window.customElements)try{this.shadowDOMObserver=new xr(function(){n.recordChangeEvent()},gc),this.shadowDOMObserver.start()}catch(o){fe.critical("Error while setting up shadow DOM observer",o),this.shadowDOMObserver=null}}};pt.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 n=0;n<this.eventListeners.length;n++){var t=this.eventListeners[n];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(o){fe.critical("Error while removing event listener",o)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(o){fe.critical("Error while disconnecting mutation observer",o)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(o){fe.critical("Error while stopping shadow DOM observer",o)}this.shadowDOMObserver=null}}};var Ll="autocapture",Qv="track_pageview",Fl="full-url",eg="url-with-path-and-query-string",tg="url-with-path",rg="allow_element_callback",Ul="allow_selectors",$l="allow_url_regexes",Vl="block_attrs",jl="block_element_callback",zl="block_selectors",ql="block_url_regexes",Gl="capture_extra_attrs",Wl="capture_text_content",Hl="scroll_capture_all",Yl="scroll_depth_percent_checkpoints",hi="click",pi="dead_click",ea="input",Jl="pageview",mi="rage_click",ta="scroll",Ni="page_leave",ra="submit",Ae={};Ae[Ul]=[];Ae[$l]=[];Ae[Vl]=[];Ae[jl]=null;Ae[zl]=[];Ae[ql]=[];Ae[Gl]=[];Ae[Wl]=!1;Ae[Hl]=!1;Ae[Yl]=[25,50,75,100];Ae[hi]=!0;Ae[pi]=!0;Ae[ea]=!0;Ae[Jl]=Fl;Ae[mi]=!0;Ae[ta]=!0;Ae[Ni]=!1;Ae[ra]=!0;var an={$mp_autocapture:!0},Zl="$mp_click",Kl="$mp_dead_click",ng="$mp_input_change",Xl="$mp_rage_click",ig="$mp_scroll",og="$mp_submit",ag="$mp_page_leave",we=function(n){this.mp=n,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};we.prototype.init=function(){if(!$v()){fe.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()};we.prototype.getFullConfig=function(){var n=this.mp.get_config(Ll);return n?m.isObject(n)?m.extend({},Ae,n):Ae:{}};we.prototype.getConfig=function(n){return this.getFullConfig()[n]};we.prototype.currentUrlBlocked=function(){var n,t=m.info.currentUrl(),o=this.getConfig($l)||[];if(o.length){var r=!1;for(n=0;n<o.length;n++){var e=o[n];try{if(t.match(e)){r=!0;break}}catch(a){return fe.critical("Error while checking block URL regex: "+e,a),!0}}if(!r)return!0}var i=this.getConfig(ql)||[];if(!i||!i.length)return!1;for(n=0;n<i.length;n++)try{if(t.match(i[n]))return!0}catch(a){return fe.critical("Error while checking block URL regex: "+i[n],a),!0}return!1};we.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Ll)?this.getConfig(Jl):this.mp.get_config(Qv)};we.prototype.trackDomEvent=function(n,t){if(!this.currentUrlBlocked()){var o=this.mp.is_recording_heatmap_data()&&(t===Zl&&!this.getConfig(hi)||t===Xl&&!this._getClickTrackingConfig(mi)||t===Kl&&!this._getClickTrackingConfig(pi)),r=Fv(n,{allowElementCallback:this.getConfig(rg),allowSelectors:this.getConfig(Ul),blockAttrs:this.getConfig(Vl),blockElementCallback:this.getConfig(jl),blockSelectors:this.getConfig(zl),captureExtraAttrs:this.getConfig(Gl),captureTextContent:this.getConfig(Wl),capturedForHeatMap:o});r&&(m.extend(r,an),this.mp.track(t,r))}};we.prototype.initPageListeners=function(){if(B.removeEventListener(dc,this.listenerPopstate),B.removeEventListener(Zo,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(Ni)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){B.dispatchEvent(new Event(Bt))},this.listenerHashchange=function(){B.dispatchEvent(new Event(Bt))},B.addEventListener(dc,this.listenerPopstate),B.addEventListener(Zo,this.listenerHashchange);var n=B.history.pushState;typeof n=="function"&&(B.history.pushState=function(o,r,e){n.call(B.history,o,r,e),B.dispatchEvent(new Event(Bt))});var t=B.history.replaceState;typeof t=="function"&&(B.history.replaceState=function(o,r,e){t.call(B.history,o,r,e),B.dispatchEvent(new Event(Bt))})}};we.prototype._getClickTrackingConfig=function(n){var t=this.getConfig(n);return t?t===!0?{}:typeof t=="object"?t:{}:null};we.prototype._trackPageLeave=function(n,t,o){if(!this.hasTrackedScrollSession&&!(!this.getConfig(Ni)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var r=Math.max(G.documentElement.clientHeight,B.innerHeight||0),e=Math.round(Math.max(this.maxScrollViewDepth-r,0)/(o-r)*100),i=Math.round(r/o*100);o<=r&&(e=100,i=100);var a=m.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:e,$fold_line_percentage:i,$scroll_height:o,$event_type:n.type,$current_url:t||m.info.currentUrl(),$viewportHeight:r,$viewportWidth:Math.max(G.documentElement.clientWidth,B.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},an);this.mp.track(ag,a,{transport:"sendBeacon"})}};we.prototype._initScrollDepthTracking=function(){if(B.removeEventListener(Fa,this.listenerScrollDepth),B.removeEventListener(Di,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){fe.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(G.documentElement.clientHeight,B.innerHeight||0);var n=(function(){if(!this.currentUrlBlocked()){var o=Math.max(G.documentElement.clientHeight,B.innerHeight||0)+B.scrollY;o>this.maxScrollViewDepth&&(this.maxScrollViewDepth=o),this.previousScrollHeight=G.body.scrollHeight}}).bind(this),t=Ol(n);this.listenerScrollDepth=t.listener,B.addEventListener(t.eventType,this.listenerScrollDepth)}};we.prototype.initClickTracking=function(){B.removeEventListener(St,this.listenerClick),!(!this.getConfig(hi)&&!this.mp.get_config("record_heatmap_data"))&&(fe.log("Initializing click tracking"),this.listenerClick=(function(n){!this.getConfig(hi)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(n,Zl)}).bind(this),B.addEventListener(St,this.listenerClick))};we.prototype.initDeadClickTracking=function(){var n=this._getClickTrackingConfig(pi);if(!n&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}fe.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new pt((function(t){this.trackDomEvent(t,Kl)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(t){var o=this._getClickTrackingConfig(pi);if(!(!o&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=o||{};r.timeout_ms||(r.timeout_ms=Jv),this._deadClickTracker.trackClick(t,r)}}).bind(this),B.addEventListener(St,this.listenerDeadClick))};we.prototype.initInputTracking=function(){B.removeEventListener(on,this.listenerChange),this.getConfig(ea)&&(fe.log("Initializing input tracking"),this.listenerChange=(function(n){this.getConfig(ea)&&this.trackDomEvent(n,ng)}).bind(this),B.addEventListener(on,this.listenerChange))};we.prototype.initPageviewTracking=function(){if(B.removeEventListener(Bt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){fe.log("Initializing pageview tracking");var n="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(an)),t&&(n=m.info.currentUrl()),this.listenerLocationchange=rn((function(){if(!this.currentUrlBlocked()){var o=m.info.currentUrl(),r=!1,e=o.split("#")[0].split("?")[0]!==n.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===Fl?r=o!==n:i===eg?r=o.split("#")[0]!==n.split("#")[0]:i===tg&&(r=e),r){var a=this.mp.track_pageview(an);a&&(n=o),e&&(this.lastScrollCheckpoint=0,fe.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),B.addEventListener(Bt,this.listenerLocationchange)}};we.prototype.initRageClickTracking=function(){B.removeEventListener(St,this.listenerRageClick);var n=this._getClickTrackingConfig(mi);!n&&!this.mp.get_config("record_heatmap_data")||(fe.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Nl),this.listenerRageClick=(function(t){var o=this._getClickTrackingConfig(mi);!o&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,o)&&this.trackDomEvent(t,Xl)}).bind(this),B.addEventListener(St,this.listenerRageClick))};we.prototype.initScrollTracking=function(){if(B.removeEventListener(Di,this.listenerScroll),B.removeEventListener(Fa,this.listenerScroll),!!this.getConfig(ta)){fe.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var n=(function(){if(this.getConfig(ta)&&!this.currentUrlBlocked()){var o=this.getConfig(Hl),r=(this.getConfig(Yl)||[]).slice().sort(function(u,d){return u-d}),e=B.scrollY,i=m.extend({$scroll_top:e},an);try{var a=G.body.scrollHeight,s=Math.round(e/(a-B.innerHeight)*100);if(i.$scroll_height=a,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var c=0;c<r.length;c++){var l=r[c];s>=l&&this.lastScrollCheckpoint<l&&(i.$scroll_checkpoint=l,this.lastScrollCheckpoint=l,o=!0)}}catch(u){fe.critical("Error while calculating scroll percentage",u)}o&&this.mp.track(ig,i)}}).bind(this),t=Ol(n);this.listenerScroll=t.listener,B.addEventListener(t.eventType,this.listenerScroll)}};we.prototype.initSubmitTracking=function(){B.removeEventListener(di,this.listenerSubmit),this.getConfig(ra)&&(fe.log("Initializing submit tracking"),this.listenerSubmit=(function(n){this.getConfig(ra)&&this.trackDomEvent(n,og)}).bind(this),B.addEventListener(di,this.listenerSubmit))};we.prototype.initPageLeaveTracking=function(){if(G.removeEventListener(fc,this.listenerPageLeaveVisibilitychange),B.removeEventListener(Bt,this.listenerPageLeaveLocationchange),B.removeEventListener(lc,this.listenerPageLoad),!(!this.getConfig(Ni)&&!this.mp.get_config("record_heatmap_data"))){fe.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var n=m.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=G.body.scrollHeight}).bind(this),B.addEventListener(lc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=rn((function(t){if(!this.currentUrlBlocked()){var o=m.info.currentUrl(),r=o!==n;r&&(this._trackPageLeave(t,n,this.previousScrollHeight),n=o,this.maxScrollViewDepth=Math.max(G.documentElement.clientHeight,B.innerHeight||0),this.previousScrollHeight=G.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),B.addEventListener(Bt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){G.hidden&&this._trackPageLeave(t,n,this.previousScrollHeight)}).bind(this),G.addEventListener(fc,this.listenerPageLeaveVisibilitychange)}};we.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(B.removeEventListener(St,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)};Cl(we);var $e=rr("flags"),_i="flags",vi="context",na={};na[vi]={};var Z=function(n){this.fetch=B.fetch,this.getFullApiRoute=n.getFullApiRoute,this.getMpConfig=n.getConfigFunc,this.setMpConfig=n.setConfigFunc,this.getMpProperty=n.getPropertyFunc,this.track=n.trackingFunc};Z.prototype.init=function(){if(!this.minApisSupported()){$e.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set};Z.prototype.getFullConfig=function(){var n=this.getMpConfig(_i);return n?m.isObject(n)?m.extend({},na,n):na:{}};Z.prototype.getConfig=function(n){return this.getFullConfig()[n]};Z.prototype.isSystemEnabled=function(){return!!this.getMpConfig(_i)};Z.prototype.updateContext=function(n,t){if(!this.isSystemEnabled())return $e.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var o=this.getMpConfig(_i);m.isObject(o)||(o={});var r=t&&t.replace?{}:this.getConfig(vi);return o[vi]=m.extend({},r,n),this.setMpConfig(_i,o),this.fetchFlags()};Z.prototype.areFlagsReady=function(){return this.isSystemEnabled()||$e.error("Feature Flags not enabled"),!!this.flags};Z.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var n=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),o=sv();$e.log("Fetching flags for distinct ID: "+n);var r=m.extend({distinct_id:n,device_id:t},this.getConfig(vi)),e=new URLSearchParams;e.set("context",JSON.stringify(r)),e.set("token",this.getMpConfig("token")),e.set("mp_lib","web"),e.set("$lib_version",Je.LIB_VERSION);var i=this.getFullApiRoute()+"?"+e.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(B,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:o}}).then((function(a){return this.markFetchComplete(),a.json().then((function(s){var c=s.flags;if(!c)throw new Error("No flags in API response");var l=new Map;m.each(c,function(u,d){l.set(d,{key:u.variant_key,value:u.variant_value,experiment_id:u.experiment_id,is_experiment_active:u.is_experiment_active,is_qa_tester:u.is_qa_tester})}),this.flags=l,this._traceparent=o}).bind(this)).catch((function(s){this.markFetchComplete(),$e.error(s)}).bind(this))}).bind(this)).catch((function(a){this.markFetchComplete(),$e.error(a)}).bind(this)),this.fetchPromise};Z.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){$e.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(n,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(n,t)}).bind(this)).catch(function(o){return $e.error(o),t}):new Promise(function(o){$e.critical("Feature Flags not initialized"),o(t)})};Z.prototype.getVariantSync=function(n,t){if(!this.areFlagsReady())return $e.log("Flags not loaded yet"),t;var o=this.flags.get(n);return o?(this.trackFeatureCheck(n,o),o):($e.log('No flag found: "'+n+'"'),t)};Z.prototype.getVariantValue=function(n,t){return this.getVariant(n,{value:t}).then(function(o){return o.value}).catch(function(o){return $e.error(o),t})};Z.prototype.getFeatureData=function(n,t){return $e.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(n,t)};Z.prototype.getVariantValueSync=function(n,t){return this.getVariantSync(n,{value:t}).value};Z.prototype.isEnabled=function(n,t){return this.getVariantValue(n).then((function(){return this.isEnabledSync(n,t)}).bind(this)).catch(function(o){return $e.error(o),t})};Z.prototype.isEnabledSync=function(n,t){t=t||!1;var o=this.getVariantValueSync(n,t);return o!==!0&&o!==!1&&($e.error('Feature flag "'+n+'" value: '+o+" is not a boolean; returning fallback value: "+t),o=t),o};Z.prototype.trackFeatureCheck=function(n,t){if(!this.trackedFeatures.has(n)){this.trackedFeatures.add(n);var o={"Experiment name":n,"Variant name":t.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};t.experiment_id!=="undefined"&&(o.$experiment_id=t.experiment_id),t.is_experiment_active!=="undefined"&&(o.$is_experiment_active=t.is_experiment_active),t.is_qa_tester!=="undefined"&&(o.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",o)}};Z.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"};Cl(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(n){return this.mp=n,this};Rt.prototype.track=function(n,t,o,r){var e=this,i=m.dom_query(n);if(i.length===0){J.error("The DOM query ("+n+") returned 0 elements");return}return m.each(i,function(a){m.register_event(a,this.override_event,function(s){var c={},l=e.create_properties(o,this),u=e.mp.get_config("track_links_timeout");e.event_handler(s,this,c),window.setTimeout(e.track_callback(r,l,c,!0),u),e.mp.track(t,l,e.track_callback(r,l,c))})},this),!0};Rt.prototype.track_callback=function(n,t,o,r){r=r||!1;var e=this;return function(){o.callback_fired||(o.callback_fired=!0,!(n&&n(r,t)===!1)&&e.after_track_handler(t,o,r))}};Rt.prototype.create_properties=function(n,t){var o;return typeof n=="function"?o=n(t):o=m.extend({},n),o};var Sr=function(){this.override_event="click"};m.inherit(Sr,Rt);Sr.prototype.create_properties=function(n,t){var o=Sr.superclass.create_properties.apply(this,arguments);return t.href&&(o.url=t.href),o};Sr.prototype.event_handler=function(n,t,o){o.new_tab=n.which===2||n.metaKey||n.ctrlKey||t.target==="_blank",o.href=t.href,o.new_tab||n.preventDefault()};Sr.prototype.after_track_handler=function(n,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Li=function(){this.override_event="submit"};m.inherit(Li,Rt);Li.prototype.event_handler=function(n,t,o){o.element=t,n.preventDefault()};Li.prototype.after_track_handler=function(n,t){setTimeout(function(){t.element.submit()},0)};var Lt="$set",Ar="$set_once",tt="$unset",Kt="$add",ft="$append",Xt="$union",Ct="$remove",sg="$delete",Ql={set_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=e)},this):r[n]=t,o[Lt]=r,o},unset_action:function(n){var t={},o=[];return m.isArray(n)||(n=[n]),m.each(n,function(r){this._is_reserved_property(r)||o.push(r)},this),t[tt]=o,t},set_once_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=e)},this):r[n]=t,o[Ar]=r,o},union_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=m.isArray(e)?e:[e])},this):r[n]=m.isArray(t)?t:[t],o[Xt]=r,o},append_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=e)},this):r[n]=t,o[ft]=r,o},remove_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=e)},this):r[n]=t,o[Ct]=r,o},delete_action:function(){var n={};return n[sg]="",n}},me=function(){};m.extend(me.prototype,Ql);me.prototype._init=function(n,t,o){this._mixpanel=n,this._group_key=t,this._group_id=o};me.prototype.set=Er(function(n,t,o){var r=this.set_action(n,t);return m.isObject(n)&&(o=t),this._send_request(r,o)});me.prototype.set_once=Er(function(n,t,o){var r=this.set_once_action(n,t);return m.isObject(n)&&(o=t),this._send_request(r,o)});me.prototype.unset=Er(function(n,t){var o=this.unset_action(n);return this._send_request(o,t)});me.prototype.union=Er(function(n,t,o){m.isObject(n)&&(o=t);var r=this.union_action(n,t);return this._send_request(r,o)});me.prototype.delete=Er(function(n){var t=this.delete_action();return this._send_request(t,n)});me.prototype.remove=Er(function(n,t,o){var r=this.remove_action(n,t);return this._send_request(r,o)});me.prototype._send_request=function(n,t){n.$group_key=this._group_key,n.$group_id=this._group_id,n.$token=this._get_config("token");var o=m.encodeDates(n);return this._mixpanel._track_or_batch({type:"groups",data:o,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};me.prototype._is_reserved_property=function(n){return n==="$group_key"||n==="$group_id"};me.prototype._get_config=function(n){return this._mixpanel.get_config(n)};me.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};me.prototype.remove=me.prototype.remove;me.prototype.set=me.prototype.set;me.prototype.set_once=me.prototype.set_once;me.prototype.union=me.prototype.union;me.prototype.unset=me.prototype.unset;me.prototype.toString=me.prototype.toString;var W=function(){};m.extend(W.prototype,Ql);W.prototype._init=function(n){this._mixpanel=n};W.prototype.set=Gt(function(n,t,o){var r=this.set_action(n,t);return m.isObject(n)&&(o=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[Lt]=m.extend({},m.info.people_properties(),r[Lt]),this._send_request(r,o)});W.prototype.set_once=Gt(function(n,t,o){var r=this.set_once_action(n,t);return m.isObject(n)&&(o=t),this._send_request(r,o)});W.prototype.unset=Gt(function(n,t){var o=this.unset_action(n);return this._send_request(o,t)});W.prototype.increment=Gt(function(n,t,o){var r={},e={};return m.isObject(n)?(m.each(n,function(i,a){if(!this._is_reserved_property(a))if(isNaN(parseFloat(i))){J.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else e[a]=i},this),o=t):(m.isUndefined(t)&&(t=1),e[n]=t),r[Kt]=e,this._send_request(r,o)});W.prototype.append=Gt(function(n,t,o){m.isObject(n)&&(o=t);var r=this.append_action(n,t);return this._send_request(r,o)});W.prototype.remove=Gt(function(n,t,o){m.isObject(n)&&(o=t);var r=this.remove_action(n,t);return this._send_request(r,o)});W.prototype.union=Gt(function(n,t,o){m.isObject(n)&&(o=t);var r=this.union_action(n,t);return this._send_request(r,o)});W.prototype.track_charge=Gt(function(){J.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});W.prototype.clear_charges=function(n){return this.set("$transactions",[],n)};W.prototype.delete_user=function(){if(!this._identify_called()){J.error("mixpanel.people.delete_user() requires you to call identify() first");return}var n={$delete:this._mixpanel.get_distinct_id()};return this._send_request(n)};W.prototype.toString=function(){return this._mixpanel.toString()+".people"};W.prototype._send_request=function(n,t){n.$token=this._get_config("token"),n.$distinct_id=this._mixpanel.get_distinct_id();var o=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),e=this._mixpanel.get_property("$had_persisted_distinct_id");o&&(n.$device_id=o),r&&(n.$user_id=r),e&&(n.$had_persisted_distinct_id=e);var i=m.encodeDates(n);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},t):(this._enqueue(n),m.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),m.truncate(i,255))};W.prototype._get_config=function(n){return this._mixpanel.get_config(n)};W.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};W.prototype._enqueue=function(n){Lt in n?this._mixpanel.persistence._add_to_people_queue(Lt,n):Ar in n?this._mixpanel.persistence._add_to_people_queue(Ar,n):tt in n?this._mixpanel.persistence._add_to_people_queue(tt,n):Kt in n?this._mixpanel.persistence._add_to_people_queue(Kt,n):ft in n?this._mixpanel.persistence._add_to_people_queue(ft,n):Ct in n?this._mixpanel.persistence._add_to_people_queue(Ct,n):Xt in n?this._mixpanel.persistence._add_to_people_queue(Xt,n):J.error("Invalid call to _enqueue():",n)};W.prototype._flush_one_queue=function(n,t,o,r){var e=this,i=m.extend({},this._mixpanel.persistence.load_queue(n)),a=i;!m.isUndefined(i)&&m.isObject(i)&&!m.isEmptyObject(i)&&(e._mixpanel.persistence._pop_from_people_queue(n,i),e._mixpanel.persistence.save(),r&&(a=r(i)),t.call(e,a,function(s,c){s===0&&e._mixpanel.persistence._add_to_people_queue(n,i),m.isUndefined(o)||o(s,c)}))};W.prototype._flush=function(n,t,o,r,e,i,a){var s=this;this._flush_one_queue(Lt,this.set,n),this._flush_one_queue(Ar,this.set_once,r),this._flush_one_queue(tt,this.unset,i,function(g){return m.keys(g)}),this._flush_one_queue(Kt,this.increment,t),this._flush_one_queue(Xt,this.union,e);var c=this._mixpanel.persistence.load_queue(ft);if(!m.isUndefined(c)&&m.isArray(c)&&c.length)for(var l,u=function(g,b){g===0&&s._mixpanel.persistence._add_to_people_queue(ft,l),m.isUndefined(o)||o(g,b)},d=c.length-1;d>=0;d--)c=this._mixpanel.persistence.load_queue(ft),l=c.pop(),s._mixpanel.persistence.save(),m.isEmptyObject(l)||s.append(l,u);var h=this._mixpanel.persistence.load_queue(Ct);if(!m.isUndefined(h)&&m.isArray(h)&&h.length)for(var _,v=function(g,b){g===0&&s._mixpanel.persistence._add_to_people_queue(Ct,_),m.isUndefined(a)||a(g,b)},C=h.length-1;C>=0;C--)h=this._mixpanel.persistence.load_queue(Ct),_=h.pop(),s._mixpanel.persistence.save(),m.isEmptyObject(_)||s.remove(_,v)};W.prototype._is_reserved_property=function(n){return n==="$distinct_id"||n==="$token"||n==="$device_id"||n==="$user_id"||n==="$had_persisted_distinct_id"};W.prototype.set=W.prototype.set;W.prototype.set_once=W.prototype.set_once;W.prototype.unset=W.prototype.unset;W.prototype.increment=W.prototype.increment;W.prototype.append=W.prototype.append;W.prototype.remove=W.prototype.remove;W.prototype.union=W.prototype.union;W.prototype.track_charge=W.prototype.track_charge;W.prototype.clear_charges=W.prototype.clear_charges;W.prototype.delete_user=W.prototype.delete_user;W.prototype.toString=W.prototype.toString;var $a="__mps",Va="__mpso",ja="__mpus",za="__mpa",qa="__mpap",Ga="__mpr",Wa="__mpu",ed="$people_distinct_id",gi="__alias",sn="__timers",cg=[$a,Va,ja,za,qa,Ga,Wa,ed,gi,sn],Y=function(n){this.props={},this.campaign_params_saved=!1,n.persistence_name?this.name="mp_"+n.persistence_name:this.name="mp_"+n.token+"_mixpanel";var t=n.persistence;t!=="cookie"&&t!=="localStorage"&&(J.critical("Unknown persistence type "+t+"; falling back to cookie"),t=n.persistence="cookie"),t==="localStorage"&&m.localStorage.is_supported()?this.storage=m.localStorage:this.storage=m.cookie,this.load(),this.update_config(n),this.upgrade(),this.save()};Y.prototype.properties=function(){var n={};return this.load(),m.each(this.props,function(t,o){m.include(cg,o)||(n[o]=t)}),n};Y.prototype.load=function(){if(!this.disabled){var n=this.storage.parse(this.name);n&&(this.props=m.extend({},n))}};Y.prototype.upgrade=function(){var n,t;this.storage===m.localStorage?(n=m.cookie.parse(this.name),m.cookie.remove(this.name),m.cookie.remove(this.name,!0),n&&this.register_once(n)):this.storage===m.cookie&&(t=m.localStorage.parse(this.name),m.localStorage.remove(this.name),t&&this.register_once(t))};Y.prototype.save=function(){this.disabled||this.storage.set(this.name,wr(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};Y.prototype.load_prop=function(n){return this.load(),this.props[n]};Y.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};Y.prototype.clear=function(){this.remove(),this.props={}};Y.prototype.register_once=function(n,t,o){return m.isObject(n)?(typeof t>"u"&&(t="None"),this.expire_days=typeof o>"u"?this.default_expiry:o,this.load(),m.each(n,function(r,e){(!this.props.hasOwnProperty(e)||this.props[e]===t)&&(this.props[e]=r)},this),this.save(),!0):!1};Y.prototype.register=function(n,t){return m.isObject(n)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),m.extend(this.props,n),this.save(),!0):!1};Y.prototype.unregister=function(n){this.load(),n in this.props&&(delete this.props[n],this.save())};Y.prototype.update_search_keyword=function(n){this.register(m.info.searchInfo(n))};Y.prototype.update_referrer_info=function(n){this.register_once({$initial_referrer:n||"$direct",$initial_referring_domain:m.info.referringDomain(n)||"$direct"},"")};Y.prototype.get_referrer_info=function(){return m.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};Y.prototype.update_config=function(n){this.default_expiry=this.expire_days=n.cookie_expiration,this.set_disabled(n.disable_persistence),this.set_cookie_domain(n.cookie_domain),this.set_cross_site(n.cross_site_cookie),this.set_cross_subdomain(n.cross_subdomain_cookie),this.set_secure(n.secure_cookie)};Y.prototype.set_disabled=function(n){this.disabled=n,this.disabled?this.remove():this.save()};Y.prototype.set_cookie_domain=function(n){n!==this.cookie_domain&&(this.remove(),this.cookie_domain=n,this.save())};Y.prototype.set_cross_site=function(n){n!==this.cross_site&&(this.cross_site=n,this.remove(),this.save())};Y.prototype.set_cross_subdomain=function(n){n!==this.cross_subdomain&&(this.cross_subdomain=n,this.remove(),this.save())};Y.prototype.get_cross_subdomain=function(){return this.cross_subdomain};Y.prototype.set_secure=function(n){n!==this.secure&&(this.secure=!!n,this.remove(),this.save())};Y.prototype._add_to_people_queue=function(n,t){var o=this._get_queue_key(n),r=t[n],e=this._get_or_create_queue(Lt),i=this._get_or_create_queue(Ar),a=this._get_or_create_queue(tt),s=this._get_or_create_queue(Kt),c=this._get_or_create_queue(Xt),l=this._get_or_create_queue(Ct,[]),u=this._get_or_create_queue(ft,[]);o===$a?(m.extend(e,r),this._pop_from_people_queue(Kt,r),this._pop_from_people_queue(Xt,r),this._pop_from_people_queue(tt,r)):o===Va?(m.each(r,function(d,h){h in i||(i[h]=d)}),this._pop_from_people_queue(tt,r)):o===ja?m.each(r,function(d){m.each([e,i,s,c],function(h){d in h&&delete h[d]}),m.each(u,function(h){d in h&&delete h[d]}),a[d]=!0}):o===za?(m.each(r,function(d,h){h in e?e[h]+=d:(h in s||(s[h]=0),s[h]+=d)},this),this._pop_from_people_queue(tt,r)):o===Wa?(m.each(r,function(d,h){m.isArray(d)&&(h in c||(c[h]=[]),m.each(d,function(_){m.include(c[h],_)||c[h].push(_)}))}),this._pop_from_people_queue(tt,r)):o===Ga?(l.push(r),this._pop_from_people_queue(ft,r)):o===qa&&(u.push(r),this._pop_from_people_queue(tt,r)),J.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),J.log(t),this.save()};Y.prototype._pop_from_people_queue=function(n,t){var o=this.props[this._get_queue_key(n)];m.isUndefined(o)||m.each(t,function(r,e){n===ft||n===Ct?m.each(o,function(i){i[e]===r&&delete i[e]}):delete o[e]},this)};Y.prototype.load_queue=function(n){return this.load_prop(this._get_queue_key(n))};Y.prototype._get_queue_key=function(n){if(n===Lt)return $a;if(n===Ar)return Va;if(n===tt)return ja;if(n===Kt)return za;if(n===ft)return qa;if(n===Ct)return Ga;if(n===Xt)return Wa;J.error("Invalid queue:",n)};Y.prototype._get_or_create_queue=function(n,t){var o=this._get_queue_key(n);return t=m.isUndefined(t)?{}:t,this.props[o]||(this.props[o]=t)};Y.prototype.set_event_timer=function(n,t){var o=this.load_prop(sn)||{};o[n]=t,this.props[sn]=o,this.save()};Y.prototype.remove_event_timer=function(n){var t=this.load_prop(sn)||{},o=t[n];return m.isUndefined(o)||(delete this.props[sn][n],this.save()),o};var yi,td=function(n,t){throw new Error(n+" not available in this build.")},Be,ia=0,ug=1,Ye="mixpanel",rd="base64",lg="json",Ha="$device:",mr=B.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,nd=!mr&&ut.indexOf("MSIE")===-1&&ut.indexOf("Mozilla")===-1,bi=null;bt.sendBeacon&&(bi=function(){return bt.sendBeacon.apply(bt,arguments)});var id={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},yc={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:id,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:rd,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Mt,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Mt,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:$r,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},od=!1,x=function(){},oa=function(n,t,o){var r,e=o===Ye?Be:Be[o];if(e&&yi===ia)r=e;else{if(e&&!m.isArray(e)){J.error("You have already initialized "+o);return}r=new x}if(r._cached_groups={},r._init(n,t,o),r.people=new W,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var i=m.info.campaignParams(null),a={},s=!1;m.each(i,function(l,u){a["initial_"+u]=l,l&&(s=!0)}),s&&r.people.set_once(a)}Je.DEBUG=Je.DEBUG||r.get_config("debug");var c=yi===ia?"module":"snippet";return B.dispatchEvent(new B.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:r,source:c,token:n,name:o,info:m.info}})),!m.isUndefined(e)&&m.isArray(e)&&(r._execute_array.call(r.people,e.people),r._execute_array(e)),r};x.prototype.init=function(n,t,o){if(m.isUndefined(o)){this.report_error("You must name your new library: init(token, config, name)");return}if(o===Ye){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=oa(n,t,o);return Be[o]=r,r._loaded(),r};x.prototype._init=function(n,t,o){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var e=t.api_host||yc.api_host;e.match(/\.mixpanel\.com/)&&(r.api_payload_format=lg)}if(this.hooks={},this.set_config(m.extend({},yc,r,t,{name:o,token:n,callback_fn:(o===Ye?o:Ye+"."+o)+"._jsc"})),this._jsc=Mt,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(!m.localStorage.is_supported(!0)||!mr)this._batch_requests=!1,J.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),m.each(this.get_batcher_configs(),function(s){J.log("Clearing batch queue "+s.queue_key),m.localStorage.remove(s.queue_key)});else if(this.init_batchers(),bi&&B.addEventListener){var i=m.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);B.addEventListener("pagehide",function(s){s.persisted&&i()}),B.addEventListener("visibilitychange",function(){G.visibilityState==="hidden"&&i()})}}this.persistence=this.cookie=new Y(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=m.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ha+a,$device_id:a},""),this.flags=new Z({getFullApiRoute:m.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:m.bind(this.get_config,this),setConfigFunc:m.bind(this.set_config,this),getPropertyFunc:m.bind(this.get_property,this),trackingFunc:m.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new we(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()};x.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))J.log("Tab ID initialization skipped due to disable_persistence config");else if(m.sessionStorage.is_supported())try{var n=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+n,o="mp_gen_new_tab_id_"+n;(m.sessionStorage.get(o)||!m.sessionStorage.get(t))&&m.sessionStorage.set(t,"$tab-"+m.UUID()),m.sessionStorage.set(o,"1"),this.tab_id=m.sessionStorage.get(t),B.addEventListener("beforeunload",function(){m.sessionStorage.remove(o)})}catch(r){this.report_error("Error initializing tab id",r)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")};x.prototype.get_tab_id=function(){return this.tab_id||null};x.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return J.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var n=new rt(Ba),t=this.get_tab_id();return n.init().then(function(){return n.getAll()}).then(function(o){for(var r=0;r<o.length;r++)if(La(o[r])||o[r].tabId===t)return!0;return!1}).catch(m.bind(function(o){this.report_error("Error checking recording registry",o)},this))};x.prototype._check_and_start_session_recording=qt(function(n){if(!B.MutationObserver){J.critical("Browser does not support MutationObserver; skipping session recording");return}var t=m.bind(function(r){var e=m.bind(function(){this._recorder=this._recorder||new B.__mp_recorder(this),this._recorder.resumeRecording(r)},this);m.isUndefined(B.__mp_recorder)?td(this.get_config("recorder_src"),e):e()},this),o=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");n||o?t(!0):this._should_load_recorder().then(function(r){r&&t(!1)})});x.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)};x.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()};x.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()};x.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()};x.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")};x.prototype.get_session_recording_properties=function(){var n={},t=this._get_session_replay_id();return t&&(n.$mp_replay_id=t),n};x.prototype.get_session_replay_url=function(){var n=null,t=this._get_session_replay_id();if(t){var o=m.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});n="https://mixpanel.com/projects/replay-redirect?"+o}return n};x.prototype._get_session_replay_id=function(){var n=null;return this._recorder&&(n=this._recorder.replayId),n||null};x.prototype.__get_recorder=function(){return this._recorder};x.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 n=m.info.campaignParams(null);m.each(n,(function(t,o){this.unregister(o)}).bind(this))}};x.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(G.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(m.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(G.referrer)};x.prototype._dom_loaded=function(){m.each(this.__dom_loaded_queue,function(n){this._track_dom.apply(this,n)},this),this.has_opted_out_tracking()||m.each(this.__request_queue,function(n){this._send_request.apply(this,n)},this),delete this.__dom_loaded_queue,delete this.__request_queue};x.prototype._track_dom=function(n,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!od)return this.__dom_loaded_queue.push([n,t]),!1;var o=new n().init(this);return o.track.apply(o,t)};x.prototype._prepare_callback=function(n,t){if(m.isUndefined(n))return null;if(mr){var o=function(a){n(a,t)};return o}else{var r=this._jsc,e=""+Math.floor(Math.random()*1e8),i=this.get_config("callback_fn")+"["+e+"]";return r[e]=function(a){delete r[e],n(a,t)},i}};x.prototype._send_request=function(n,t,o,r){var e=!0;if(nd)return this.__request_queue.push(arguments),e;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;!r&&(m.isFunction(o)||typeof o=="string")&&(r=o,o=null),o=m.extend(i,o||{}),mr||(o.method="GET");var s=o.method==="POST",c=bi&&s&&o.transport.toLowerCase()==="sendbeacon",l=o.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),mr||(r?t.callback=r:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),m.extend(t,this.get_config("api_extra_query_params")),n+="?"+m.HTTPBuildQuery(t);var u=this;if("img"in t){var d=G.createElement("img");d.src=n,G.body.appendChild(d)}else if(c){try{e=bi(n,a)}catch(b){u.report_error(b),e=!1}try{r&&r(e?1:0)}catch(b){u.report_error(b)}}else if(mr)try{var h=new XMLHttpRequest;h.open(o.method,n,!0);var _=this.get_config("xhr_headers");if(s&&(_["Content-Type"]="application/x-www-form-urlencoded"),m.each(_,function(b,w){h.setRequestHeader(w,b)}),o.timeout_ms&&typeof h.timeout<"u"){h.timeout=o.timeout_ms;var v=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(h.readyState===4)if(h.status===200){if(r)if(l){var b;try{b=m.JSONDecode(h.responseText)}catch(R){if(u.report_error(R),o.ignore_json_errors)b=h.responseText;else return}r(b)}else r(Number(h.responseText))}else{var w;if(h.timeout&&!h.status&&new Date().getTime()-v>=h.timeout?w="timeout":w="Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(w),r)if(l){var S=h.responseHeaders||{};r({status:0,httpStatusCode:h.status,error:w,retryAfter:S["Retry-After"]})}else r(0)}},h.send(a)}catch(b){u.report_error(b),e=!1}else{var C=G.createElement("script");C.type="text/javascript",C.async=!0,C.defer=!0,C.src=n;var g=G.getElementsByTagName("script")[0];g.parentNode.insertBefore(C,g)}return e};x.prototype._execute_array=function(n){var t,o=[],r=[],e=[];m.each(n,function(a){a&&(t=a[0],m.isArray(t)?e.push(a):typeof a=="function"?a.call(this):m.isArray(a)&&t==="alias"?o.push(a):m.isArray(a)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?e.push(a):r.push(a))},this);var i=function(a,s){m.each(a,function(c){if(m.isArray(c[0])){var l=s;m.each(c,function(u){l=l[u[0]].apply(l,u.slice(1))})}else this[c[0]].apply(this,c.slice(1))},s)};i(o,this),i(r,this),i(e,this)};x.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};x.prototype.get_batcher_configs=function(){var n="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:n+"_ev"},people:{type:"people",api_name:"engage",queue_key:n+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:n+"_gr"}},this._batcher_configs};x.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var n=m.bind(function(o){return new Ze(o.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:m.bind(function(r,e,i){var a=this.get_config("api_routes");this._send_request(this.get_api_host(o.api_name)+"/"+a[o.api_name],this._encode_data_for_request(r),e,this._prepare_callback(i,r))},this),beforeSendHook:m.bind(function(r){var e=this._run_hook("before_send_"+o.type,r);return e?e[0]:null},this),stopAllBatchingFunc:m.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:n(t.events),people:n(t.people),groups:n(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};x.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,m.each(this.request_batchers,function(n){n.start()}))};x.prototype.stop_batch_senders=function(){this._batch_requests=!1,m.each(this.request_batchers,function(n){n.stop(),n.clear()})};x.prototype.push=function(n){this._execute_array([n])};x.prototype.disable=function(n){typeof n>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(n)};x.prototype._encode_data_for_request=function(n){var t=wr(n);return this.get_config("api_payload_format")===rd&&(t=m.base64Encode(t)),{data:t}};x.prototype._track_or_batch=function(n,t){var o=m.truncate(n.data,255),r=n.endpoint,e=n.batcher,i=n.should_send_immediately,a=n.send_request_options||{};t=t||Mt;var s=!0,c=m.bind(function(){return a.skip_hooks||(o=this._run_hook("before_send_"+n.type,o),o&&(o=o[0])),o?(J.log("MIXPANEL REQUEST:"),J.log(o),this._send_request(r,this._encode_data_for_request(o),a,this._prepare_callback(t,o))):null},this);return this._batch_requests&&!i?e.enqueue(o).then(function(l){l?t(1,o):c()}):s=c(),s&&o};x.prototype.track=qt(function(n,t,o,r){var e;if(!(o&&o.skip_hooks)){if(e=this._run_hook("before_track",n,t),e===null)return;n=e[0],t=e[1]}!r&&typeof o=="function"&&(r=o,o=null),o=o||{};var i=o.transport;i&&(o.transport=i);var a=o.send_immediately;if(typeof r!="function"&&(r=Mt),m.isUndefined(n)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(n)){r(0);return}t=m.extend({},t),t.token=this.get_config("token");var s=this.persistence.remove_event_timer(n);if(!m.isUndefined(s)){var c=new Date().getTime()-s;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?m.info.marketingParams():{};t=m.extend({},m.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");m.isArray(u)?m.each(u,function(h){delete t[h]}):this.report_error("Invalid value for property_blacklist config: "+u);var d={event:n,properties:t};return e=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:a,send_request_options:o},r),e});x.prototype.set_group=qt(function(n,t,o){m.isArray(t)||(t=[t]);var r={};return r[n]=t,this.register(r),this.people.set(n,t,o)});x.prototype.add_group=qt(function(n,t,o){var r=this.get_property(n),e={};return r===void 0?(e[n]=[t],this.register(e)):r.indexOf(t)===-1&&(r.push(t),e[n]=r,this.register(e)),this.people.union(n,t,o)});x.prototype.remove_group=qt(function(n,t,o){var r=this.get_property(n);if(r!==void 0){var e=r.indexOf(t);e>-1&&(r.splice(e,1),this.register({group_key:r})),r.length===0&&this.unregister(n)}return this.people.remove(n,t,o)});x.prototype.track_with_groups=qt(function(n,t,o,r){var e=m.extend({},t||{});return m.each(o,function(i,a){i!=null&&(e[a]=i)}),this.track(n,e,r)});x.prototype._create_map_key=function(n,t){return n+"_"+JSON.stringify(t)};x.prototype._remove_group_from_cache=function(n,t){delete this._cached_groups[this._create_map_key(n,t)]};x.prototype.get_group=function(n,t){var o=this._create_map_key(n,t),r=this._cached_groups[o];return(r===void 0||r._group_key!==n||r._group_id!==t)&&(r=new me,r._init(this,n,t),this._cached_groups[o]=r),r};x.prototype.track_pageview=qt(function(n,t){typeof n!="object"&&(n={}),t=t||{};var o=t.event_name||"$mp_web_page_view",r=m.extend(m.info.mpPageViewProperties(),m.info.campaignParams(),m.info.clickParams()),e=m.extend({},r,n);return this.track(o,e)});x.prototype.track_links=function(){return this._track_dom.call(this,Sr,arguments)};x.prototype.track_forms=function(){return this._track_dom.call(this,Li,arguments)};x.prototype.time_event=function(n){if(m.isUndefined(n)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(n)||this.persistence.set_event_timer(n,new Date().getTime())};var dg={persistent:!0},Ya=function(n){var t;return m.isObject(n)?t=n:m.isUndefined(n)?t={}:t={days:n},m.extend({},dg,t)};x.prototype.register=function(n,t){var o=this._run_hook("before_register",n,t);if(o!==null){n=o[0],t=o[1];var r=Ya(t);r.persistent?this.persistence.register(n,r.days):m.extend(this.unpersisted_superprops,n)}};x.prototype.register_once=function(n,t,o){var r=this._run_hook("before_register_once",n,t,o);if(r!==null){n=r[0],t=r[1],o=r[2];var e=Ya(o);e.persistent?this.persistence.register_once(n,t,e.days):(typeof t>"u"&&(t="None"),m.each(n,function(i,a){(!this.unpersisted_superprops.hasOwnProperty(a)||this.unpersisted_superprops[a]===t)&&(this.unpersisted_superprops[a]=i)},this))}};x.prototype.unregister=function(n,t){var o=this._run_hook("before_unregister",n,t);o!==null&&(n=o[0],t=o[1],t=Ya(t),t.persistent?this.persistence.unregister(n):delete this.unpersisted_superprops[n])};x.prototype._register_single=function(n,t){var o={};o[n]=t,this.register(o)};x.prototype.identify=function(n,t,o,r,e,i,a,s){var c=this._run_hook("before_identify",n);if(c===null)return-1;n=c[0];var l=this.get_distinct_id();if(n&&l!==n){if(typeof n=="string"&&n.indexOf(Ha)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:n})}if(!this.get_property("$device_id")){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}n!==l&&n!==this.get_property(gi)&&(this.unregister(gi),this.register({distinct_id:n})),this._flags.identify_called=!0,this.people._flush(t,o,r,e,i,a,s),n!==l&&this.track("$identify",{distinct_id:n,$anon_distinct_id:l},{skip_hooks:!0}),n!==l&&this.flags.fetchFlags()};x.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var n=m.UUID();this.register_once({distinct_id:Ha+n,$device_id:n},""),this._check_and_start_session_recording()};x.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};x.prototype.alias=function(n,t){if(n===this.get_property(ed))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var o=this;return m.isUndefined(t)&&(t=this.get_distinct_id()),n!==t?(this._register_single(gi,n),this.track("$create_alias",{alias:n,distinct_id:t},{skip_hooks:!0},function(){o.identify(n)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(n),-1)};x.prototype.name_tag=function(n){this._register_single("mp_name_tag",n)};x.prototype.set_config=function(n){if(m.isObject(n)){m.extend(this.config,n);var t=n.batch_size;t&&m.each(this.request_batchers,function(o){o.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),Je.DEBUG=Je.DEBUG||this.get_config("debug"),("autocapture"in n||"record_heatmap_data"in n)&&this.autocapture&&this.autocapture.init(),m.isObject(n.hooks)&&(this.hooks={},m.each(n.hooks,function(o,r){if(m.isFunction(o))this.hooks[r]=[o];else if(m.isArray(o)){this.hooks[r]=[];for(var e=0;e<o.length;e++)m.isFunction(o[e])||J.critical("Invalid hook added. Hook is not a function"),this.hooks[r].push(o[e])}else J.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}};x.prototype.get_config=function(n){return this.config[n]};x.prototype._run_hook=function(n){var t=Ot.call(arguments,1);return m.each(this.hooks[n],function(o){if(t===null)return null;var r=o.apply(this,t);typeof r>"u"?(this.report_error(n+" hook did not return a valid value"),t=null):(m.isArray(r)||(r=[r]),t.splice.apply(t,[0,r.length].concat(r)))},this),t};x.prototype.get_property=function(n){return this.persistence.load_prop([n])};x.prototype.get_api_host=function(n){return this.get_config("api_hosts")[n]||this.get_config("api_host")};x.prototype.toString=function(){var n=this.get_config("name");return n!==Ye&&(n=Ye+"."+n),n};x.prototype._event_is_disabled=function(n){return m.isBlockedUA(ut)||this._flags.disable_all_events||m.include(this.__disabled_events,n)};x.prototype._gdpr_init=function(){var n=this.get_config("opt_out_tracking_persistence_type")==="localStorage";n&&m.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")||m.cookie.get("mp_optout"))&&(m.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};x.prototype._gdpr_update_persistence=function(n){var t;if(n&&n.clear_persistence)t=!0;else if(n&&n.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()};x.prototype._gdpr_call_func=function(n,t){return t=m.extend({track:m.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")},t),m.localStorage.is_supported()||(t.persistence_type="cookie"),n(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};x.prototype.opt_in_tracking=function(n){n=m.extend({enable_persistence:!0},n),this._gdpr_call_func(_v,n),this._gdpr_update_persistence(n)};x.prototype.opt_out_tracking=function(n){n=m.extend({clear_persistence:!0,delete_user:!0},n),n.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(vv,n),this._gdpr_update_persistence(n)};x.prototype.has_opted_in_tracking=function(n){return this._gdpr_call_func(gv,n)};x.prototype.has_opted_out_tracking=function(n){return this._gdpr_call_func(Al,n)};x.prototype.clear_opt_in_out_tracking=function(n){n=m.extend({enable_persistence:!0},n),this._gdpr_call_func(yv,n),this._gdpr_update_persistence(n)};x.prototype.report_error=function(n,t){J.error.apply(J.error,arguments);try{!t&&!(n instanceof Error)&&(n=new Error(n)),this.get_config("error_reporter")(n,t)}catch(o){J.error(o)}};x.prototype.add_hook=function(n,t){this.hooks[n]||(this.hooks[n]=[]),this.hooks[n].push(t)};x.prototype.remove_hook=function(n,t){var o;this.hooks[n]&&(o=this.hooks[n].indexOf(t),o!==-1?this.hooks[n].splice(o,1):J.log("remove_hook failed. Matching hook was not found"))};x.prototype.init=x.prototype.init;x.prototype.reset=x.prototype.reset;x.prototype.disable=x.prototype.disable;x.prototype.time_event=x.prototype.time_event;x.prototype.track=x.prototype.track;x.prototype.track_links=x.prototype.track_links;x.prototype.track_forms=x.prototype.track_forms;x.prototype.track_pageview=x.prototype.track_pageview;x.prototype.register=x.prototype.register;x.prototype.register_once=x.prototype.register_once;x.prototype.unregister=x.prototype.unregister;x.prototype.identify=x.prototype.identify;x.prototype.alias=x.prototype.alias;x.prototype.name_tag=x.prototype.name_tag;x.prototype.set_config=x.prototype.set_config;x.prototype.get_config=x.prototype.get_config;x.prototype.get_api_host=x.prototype.get_api_host;x.prototype.get_property=x.prototype.get_property;x.prototype.get_distinct_id=x.prototype.get_distinct_id;x.prototype.toString=x.prototype.toString;x.prototype.opt_out_tracking=x.prototype.opt_out_tracking;x.prototype.opt_in_tracking=x.prototype.opt_in_tracking;x.prototype.has_opted_out_tracking=x.prototype.has_opted_out_tracking;x.prototype.has_opted_in_tracking=x.prototype.has_opted_in_tracking;x.prototype.clear_opt_in_out_tracking=x.prototype.clear_opt_in_out_tracking;x.prototype.get_group=x.prototype.get_group;x.prototype.set_group=x.prototype.set_group;x.prototype.add_group=x.prototype.add_group;x.prototype.remove_group=x.prototype.remove_group;x.prototype.add_hook=x.prototype.add_hook;x.prototype.remove_hook=x.prototype.remove_hook;x.prototype.track_with_groups=x.prototype.track_with_groups;x.prototype.start_batch_senders=x.prototype.start_batch_senders;x.prototype.stop_batch_senders=x.prototype.stop_batch_senders;x.prototype.start_session_recording=x.prototype.start_session_recording;x.prototype.stop_session_recording=x.prototype.stop_session_recording;x.prototype.pause_session_recording=x.prototype.pause_session_recording;x.prototype.resume_session_recording=x.prototype.resume_session_recording;x.prototype.get_session_recording_properties=x.prototype.get_session_recording_properties;x.prototype.get_session_replay_url=x.prototype.get_session_replay_url;x.prototype.get_tab_id=x.prototype.get_tab_id;x.prototype.DEFAULT_API_ROUTES=id;x.prototype.__get_recorder=x.prototype.__get_recorder;Y.prototype.properties=Y.prototype.properties;Y.prototype.update_search_keyword=Y.prototype.update_search_keyword;Y.prototype.update_referrer_info=Y.prototype.update_referrer_info;Y.prototype.get_cross_subdomain=Y.prototype.get_cross_subdomain;Y.prototype.clear=Y.prototype.clear;var hr={},fg=function(){m.each(hr,function(n,t){t!==Ye&&(Be[t]=n)}),Be._=m},hg=function(){Be.init=function(n,t,o){if(o)return Be[o]||(Be[o]=hr[o]=oa(n,t,o),Be[o]._loaded()),Be[o];var r=Be;hr[Ye]?r=hr[Ye]:n&&(r=oa(n,t,Ye),r._loaded(),hr[Ye]=r),Be=r,yi===ug&&(B[Ye]=Be),fg()}},pg=function(){function n(){n.done||(n.done=!0,od=!0,nd=!1,m.each(hr,function(r){r._dom_loaded()}))}function t(){try{G.documentElement.doScroll("left")}catch{setTimeout(t,1);return}n()}if(G.addEventListener)G.readyState==="complete"?n():G.addEventListener("DOMContentLoaded",n,!1);else if(G.attachEvent){G.attachEvent("onreadystatechange",n);var o=!1;try{o=B.frameElement===null}catch{}G.documentElement.doScroll&&o&&t()}m.register_event(B,"load",n,!0)};function mg(n){return td=n,yi=ia,Be=new x,hg(),Be.init(),pg(),Be}function _g(n,t){t()}var yg=mg(_g),uo={},Yt={},Mr={},bc;function ad(){if(bc)return Mr;bc=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.Event=void 0;var n;return function(t){t.dashboard="Dashboard",t.cashBalance="Cash Balance",t.cardBalance="Card Balance",t.cashPosition="Cash Position",t.revenues="Revenues",t.operatingExpenses="Operating Expenses",t.topExpenses="Top Expenses",t.burnRate="Burn Rate",t.cashInCashOut="Cash In, Cash Out",t.howItWorks="How It Works",t.insights="Insights",t.brexAd="Brex Ad",t.companyPassport="Company Passport",t.addAddress="Add Address",t.editAddress="Edit Address",t.saveAddressClicked="Save Address Clicked",t.reports="Reports",t.profitAndLoss="Profit & Loss",t.balanceSheet="Balance Sheet",t.cashFlow="Cash Flow",t.profitAndLossWithForecast="Profit & Loss with Forecast",t.balanceSheetWithForecast="Balance Sheet with Forecast",t.cashFlowWithForecast="Cash Flow with Forecast",t.sidePanelClicked="Side Panel Clicked",t.transactionList="Transaction List",t.transactionDetails="Transaction Details",t.transactionDetailsSave="Transaction Details Save",t.transactionDetailReceiptOpened="Transaction Details Receipt Opened",t.transactionDetailReceiptDeleted="Attachment Deleted",t.transactionDetailReceiptAdded="Transaction Details Receipt Added",t.compareMode="Compare Mode",t.compareFilterChange="Compare Filter Change",t.compareFilterTimeframe="Compare Filter Timeframe",t.dateRangeFilter="Date Range Filter",t.timeframeSwitch="Timeframe Switch",t.graphBar="Graph Bar",t.cardStatementCloseDateClicked="Card Statement Close Date Clicked",t.cardStatementCloseDateSaved="Card Statement Close Date Saved",t.forecast="Forecast",t.forecastSwitch="Forecast Switch",t.forecastVsActualMode="Forecast vs Actual Mode",t.members="Members",t.inviteSent="Invite Sent",t.roleChanged="Role Changed",t.removeUserAccess="Remove User Access",t.resendInvite="Resend Invite",t.companySwitch="Company Switch",t.download="Download",t.sort="Sort",t.incomeTrend="Income Trend",t.spendTrend="Spend Trend",t.search="Search",t.login="Login",t.loginButton="Login Button",t.signInClick="Sign In click",t.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",t.signInViaEmail="Sign In Via Email",t.signInLinkSent="Sign In Link Sent",t.loginSuccess="Login Success",t.loginFailure="Login Fail",t.logoutButton="Logout Button",t.logoutSuccess="Logout Success",t.logoutFailure="Logout Fail",t.reportGenerated="Report Generated",t.aiCFOPage="AI CFO Page",t.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",t.aiCFOChatSessionChanged="AI CFO Chat Session Changed",t.aiCFOChatSubmitted="AI CFO Chat Submitted",t.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",t.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",t.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",t.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",t.onboardingLinkClicked="Onboarding Invite Link Click",t.onboardingNeedHelp="Onboarding Need Help",t.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",t.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",t.onboardingPage="Onboarding Page",t.onboardingInterimPage="Onboarding Interim Page",t.onboardingLandingPage="Onboarding Landing Page",t.onboardingQBOConnect="Onboarding QBO Connect Clicked",t.onboardingSaveQBOConnection="Onboarding Save QBO Connection",t.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",t.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",t.onboardingCompanyOfficerSave="Onboarding Company Officer Save",t.onboardingCompanyDetailsSave="Onboarding Company Details Save",t.onboardingDashboardActivation="Onboarding Dashboard Activation",t.onboardingConnectBank="Onboarding Connect Bank",t.onboardingConnectBankSuccess="Onboarding Connect Bank Success",t.onboardingConnectBankFailure="Onboarding Connect Bank Failure",t.onboardingConnectBankLink="Onboarding Connect Bank Link",t.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",t.onboardingNewCustomerStarted="Onboarding New Customer Started",t.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",t.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",t.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",t.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",t.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",t.onboardingSendInvite="Onboarding Send Invite",t.onboardingResendInvite="Onboarding Resend Invite",t.onboardingSave="Onboarding Save",t.onboardingBillingAddress="Onboarding Billing Address Clicked",t.onboardingBillingAddressSave="Onboarding Billing Address Save",t.onboardingNext="Onboarding Next",t.onboardingBack="Onboarding Back",t.onboardingActiveStep="Onboarding Active Step",t.onboardingLinkBankAccount="Onboarding Link A Bank Account",t.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",t.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",t.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",t.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",t.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",t.onboardingLinkCreditCard="Onboarding Link Credit Card",t.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",t.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",t.onboardingLinkNewCard="Onboarding Link a New Credit Card",t.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",t.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",t.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",t.onboardingBankAccountVerified="Onboarding Bank Account Verified",t.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",t.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",t.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",t.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",t.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",t.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",t.onboardingInterimCardClick="Onboarding Interim Page Card Click",t.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",t.billingLinkNewBankAccount="Billing Link a New Bank Account",t.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",t.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",t.billingSwitchToCreditCard="Billing Switch To Credit Card",t.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",t.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",t.billingSwitchToBankAccount="Billing Switch To Bank Account",t.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",t.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",t.billingLinkNewCard="Billing Link a New Card",t.billingLinkNewCardSuccess="Billing Link a New Card Success",t.billingLinkNewCardFailure="Billing Link a New Card Failure",t.billPayHome="Bill Pay Home",t.billPaySetup="Bill Pay Setup",t.billPayPromoPage="Bill Pay Promo",t.billPayNeedHelp="Bill Pay Need Help",t.billPayBusinessVerification="Bill Pay Business Verification",t.billPayBusinessVerificationSave="Bill Pay Business Verification Save",t.billPayBusinessVerificationSend="Bill Pay Business Verification Send",t.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",t.billPayConnectBank="Bill Pay Connect Bank",t.billPayConnectBankSuccess="Bill Pay Connect Bank Success",t.billPayConnectBankFailure="Bill Pay Connect Bank Failure",t.billPayConnectBankLink="Bill Pay Connect Bank Link",t.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",t.enableBillPay="Enable Bill Pay",t.billPayDrafts="Bill Pay Drafts",t.billPayDraftsOverdue="Bill Pay Drafts Overdue",t.billPayApprovals="Bill Pay Approvals",t.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",t.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",t.billPayApprovalsOverdue="Bill Pay Approvals Overdue",t.billPayApprovalsRejected="Bill Pay Approvals Rejected",t.billPayApprovalsDeleted="Bill Pay Approvals Deleted",t.billPayScheduled="Bill Pay Scheduled",t.billPayScheduledFailed="Bill Pay Scheduled Failed",t.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",t.billPayScheduledDeleted="Bill Pay Scheduled Deleted",t.billPayPaid="Bill Pay Paid",t.billPayPaidACH="Bill Pay Paid ACH",t.billPayPaidWire="Bill Pay Paid Wire",t.billPayPaidDeleted="Bill Pay Paid Deleted",t.billPayPaidOffline="Bill Pay Paid Offline",t.billPayNewBill="Bill Pay New Bill",t.billPayInvoiceUpload="Bill Pay Invoice Upload",t.billPaySkipAutofill="Bill Pay Skip Autofill",t.billPayInvoiceActionClick="Bill Pay Invoice Action Click",t.billPayBillDetails="Bill Pay Bill Details",t.billPayEditBill="Bill Pay Edit Bill",t.billPayDeleteBill="Bill Pay Delete Bill",t.billPayCancelBill="Bill Pay Cancel Bill",t.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",t.billPayReviewBill="Bill Pay Review Bill",t.billPaySendForApproval="Bill Pay Send For Approval",t.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",t.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",t.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",t.billPayFilterClick="Bill Pay Filter Click",t.billPayFilterChange="Bill Pay Filter Change",t.billPayDownloadClick="Bill Pay Download Click",t.billPayNewVendor="Bill Pay New Vendor",t.billPayEditVendor="Bill Pay Edit Vendor",t.billPayExpandVendor="Bill Pay Expand Vendor",t.billPayChooseNewVendor="Bill Pay Choose New Vendor",t.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",t.billPayAutoDateChange="Book Close - Auto Date Change",t.billPayPrivacyPolicy="Bill Pay Privacy Policy",t.billPayAgreement="Bill Pay Agreement",t.billPayPromoSchedule="Bill Pay Schedule Demo",t.billPayPromoVideo="Bill Pay Promo Video",t.billPayTaskCard="Bill Pay Task Card",t.billPayCard="Bill Pay Card",t.enableIntlWire="Enable International Wire",t.submitIntlWire="International Wire Submit",t.intlWirePaymentMethod="International Wire Payment Method",t.zeniAssistClick="Zeni Assist Click",t.retryClick="Retry Click",t.retryConfirmClick="Retry Confirm Click",t.refundClick="Refund Click",t.refundConfirmClick="Refund Confirm Click",t.billPayBulkSelectAll="Bill Pay Bulk Select All",t.billPayBulkDeleted="Bill Pay Bulk Deleted",t.billPayBulkSubmit="Bill Pay Bulk Submit",t.billPayBulkSelection="Bill Pay Bulk Selection",t.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",t.billPayMarkAsPaid="Mark As Paid",t.billPayMarkAsPaidSubmit="Mark As Paid Submit",t.lowBalanceAccountSelected="Low Balance Account Selected",t.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",t.lowBalanceAccountApprove="Low Balance Account Approve",t.lowBalanceAccountReject="Low Balance Account Reject",t.lowBalanceAccountChange="Low Balance Account Change",t.lowBalanceAccountSchedule="Low Balance Account Schedule",t.cockpitTabClicked="Cockpit Tab Clicked",t.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",t.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",t.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",t.reimbursementHome="Reimbursement Home",t.reimbursementSetup="Reimbursement Setup",t.reimbursementPromoPage="Reimbursement Promo",t.reimbursementTaskCard="Reimbursement Task Card",t.reimbursementFilterClick="Reimbursement Filter Click",t.reimbursementFilterChange="Reimbursement Filter Change",t.reimbursementDownloadClick="Reimbursement Download Click",t.reimbursementBulkSelectAll="Reimbursement Bulk Select All",t.reimbursementBulkDeleted="Reimbursement Bulk Deleted",t.reimbursementBulkSubmit="Reimbursement Bulk Submit",t.reimbursementBulkSelection="Reimbursement Bulk Selection",t.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",t.accountsListPageViewed="Accounts List Page Viewed",t.zeniAccountsSetup="Zeni Accounts Setup",t.accountsPromoPageViewed="Accounts Promo Page Viewed",t.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",t.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",t.zeniAccountsNeedHelp="Zeni Accounts Need Help",t.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",t.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",t.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",t.plgPromoActionTaken="Promo Action Taken",t.cardsPromoPage="Cards Promo Page Viewed",t.cardsPromoPageClick="Cards Promo Page Clicked",t.cardsListPage="Cards List Page Viewed",t.cardsListPageClick="Cards List Page Clicked",t.cardsIssueNewCardFormClick="Issue New Card Form Clicked",t.cardsListRowClick="Cards List Row Clicked",t.cardsDetailPage="Cards Detail Page Viewed",t.cardsDetailPageClick="Cards Detail Page Clicked",t.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",t.cardsSetupVisited="Cards Setup Page Visited",t.cardsPromoView="Cards Promo View",t.cardsSetupCardsClick="Cards Set Up Cards Click",t.cardsEnableCardsClick="Cards Enable Cards Click",t.cardsScheduleDemoClick="Cards Schedule Demo Click",t.cardsCardListView="Cards Card List View",t.cardsCardListSearchClick="Cards Card List Search Click",t.cardsCardListMoreMenuClick="Cards Card List More Menu Click",t.cardsSettingsClick="Cards Settings Click",t.cardsCardSetupView="Cards Card Setup View",t.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",t.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",t.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",t.cardsStatementsClick="Cards Statements Click",t.cardsCreditCardStatementsView="Cards Credit Card Statements View",t.cardsDownloadClick="Cards Download Click",t.cardsNewCardClick="Cards New Card Click",t.cardsCashbackOverviewClick="Cards Cashback Overview Click",t.cardsCardListRowClick="Cards Card List Row Click",t.cardsCopyIconClick="Cards Copy Icon Click",t.cardsCardListSortClick="Cards Card List Sort Click",t.cardsCardDetailView="Cards Card Detail View",t.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",t.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",t.cardsAddToWalletClick="Cards Add to Wallet Click",t.cardsNeedHelp="Cards Need Help",t.cardsBusinessVerification="Cards Business Verification",t.cardsBusinessVerificationSave="Cards Business Verification Save",t.cardsBusinessVerificationSend="Cards Business Verification Send",t.cardsConnectBank="Cards Connect Bank",t.cardsConnectBankSuccess="Cards Connect Bank Success",t.cardsConnectBankFailure="Cards Connect Bank Failure",t.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",t.cardsConnectBankLink="Cards Connect Bank Link",t.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",t.cardsPayEarlyClick="Cards Pay Early Click",t.cardsPayEarlyFormView="Cards Pay Early Form View",t.cardsPayEarlyFormClick="Cards Pay Early Form Click",t.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",t.accountsListPageClicked="Accounts List Page Clicked",t.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",t.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",t.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",t.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",t.accountsPromoPageClicked="Accounts Promo Page Clicked",t.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",t.zeniAccountsConnectBank="Zeni Accounts Connect Bank",t.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",t.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",t.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",t.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",t.enableZeniAccounts="Enable Zeni Accounts",t.reimbursementNeedHelp="Reimbursement Need Help",t.reimbursementBusinessVerification="Reimbursement Business Verification",t.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",t.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",t.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",t.reimbursementConnectBank="Reimbursement Connect Bank",t.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",t.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",t.reimbursementConnectBankLink="Reimbursement Connect Bank Link",t.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",t.enableReimbursement="Enable Reimbursement",t.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",t.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",t.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",t.reimbursementAgreement="Reimbursement Agreement",t.reimbursementPromoSchedule="Reimbursement Schedule Demo",t.reimbursementPromoVideo="Reimbursement Promo Video",t.reimbursementCard="Reimbursement Card",t.reimbursementDrafts="Reimbursement Drafts",t.reimbursementMyDrafts="Reimbursement My Drafts",t.reimbursementApprovals="Reimbursement Approvals",t.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",t.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",t.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",t.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",t.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",t.reimbursementScheduled="Reimbursement Scheduled",t.reimbursementScheduledFailed="Reimbursement Scheduled Failed",t.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",t.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",t.reimbursementPaid="Reimbursement Paid",t.reimbursementPaidACH="Reimbursement Paid ACH",t.reimbursementPaidDeleted="Reimbursement Paid Deleted",t.reimbursementListSort="Reimbursement List Sort",t.reimbursementNewReimbursement="Reimbursement New Reimbursement",t.reimbursementInvoiceUpload="Reimbursement Invoice Upload",t.reimbursementSkipAutofill="Reimbursement Skip Autofill",t.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",t.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",t.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",t.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",t.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",t.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",t.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",t.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",t.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",t.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",t.groupBySwitch="Group By Switch",t.burnRateCalculatorSettings="Burn Rate Calculator Settings",t.vendorList="Vendor List",t.vendorListSort="Vendor List Sort",t.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",t.vendorListSearch="Vendor List Search",t.vendorDetails="Vendor Details",t.vendorDetailsSave="Vendor Details Save",t.vendorDetailsCancel="Vendor Details Cancel",t.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",t.vendorOperatingExpenses="Operating Expenses By Vendor",t.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",t.agingReport="Aging Report",t.agingReportDateChange="Aging Report Date Change",t.apAgingDetail="AP Aging Detail",t.arAgingDetail="AR Aging Detail",t.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",t.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",t.vendorReviewList="Vendor Dedupe Review List Loaded",t.vendorReviewTenantSave="Vendor Dedupe First Review",t.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",t.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",t.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",t.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",t.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",t.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",t.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",t.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",t.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",t.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",t.vendor1099ListPage="Vendors 1099",t.vendor1099TabSettingsSave="1099 Settings Save",t.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",t.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",t.vendor1099DetailsSave="1099 Vendor Save",t.vendor1099ReportDownload="1099 Download",t.scheduleReviewList="Schedule Review List Loaded",t.scheduleReviewListDownload="Schedule Review List Download",t.scheduleDetailsPage="Schedule Details Loaded",t.scheduleDetailsNewRequested="Schedule Details New Requested",t.scheduleDetailsPreview="Schedule Details Previewed",t.scheduleDetailsSave="Schedule Details Saved",t.scheduleDetailsCancel="Schedule Details Canceled",t.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",t.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",t.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",t.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",t.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",t.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",t.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",t.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",t.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",t.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",t.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",t.scheduleDetailsDelete="Schedule Details Deleted",t.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",t.taskListPage="Task List Page",t.taskDetailPage="Task Detail Page",t.cockpitTaskCardClicked="Cockpit Task Card Clicked",t.taskEdited="Task Edited",t.newTaskRequested="New Task Requested",t.healthMonitorFilterApplied="Health Monitor Filter Applied",t.error="Error",t.rewardsPageViewed="Rewards Page Viewed",t.rewardsPageClicked="Rewards Page Clicked",t.dashboardCardClicked="Dashboard Card Clicked",t.inviteEmailViewed="Rewards Invite Email Viewed",t.inviteEmailClicked="Rewards Invite Email Clicked",t.getAuditScore="Get Score",t.auditScorePercentage="Score %",t.auditIssueType="Issue Type",t.auditIssuesClicked="Issue Clicked",t.commentAdded="Comment Added",t.commentActivity="Comment Activity",t.monthCloseClicked="Month Close Clicked",t.monthCloseAuditPage="Month Close: Audit Page",t.transactionsReview="Transactions: Review",t.transactionsAutoCategorised="Transactions: Autocategorised",t.monthCloseScheduleList="Month Close: Schedule List",t.fluxAnalysis="Flux Analysis",t.fluxAnalysisReviewed="Flux Analysis: Reviewed",t.missingReceipts="Missing Receipts",t.receiptsAttached="Receipt Attached",t.insightsEmail="Insights Email",t.sendMoneyClick="Send Money Click",t.expressPayNextClick="Express Pay Next Click",t.expressPayScheduleClick="Express Pay Schedule Click",t.aiCFOPrivacyPolicy="AI CFO Privacy Policy",t.aiCFOAgreement="AI CFO Agreement",t.treasuryNavPromoClick="Treasury Nav Promo Click",t.treasuryPromoView="Treasury Promo View",t.treasurySetupActionClick="Treasury Setup Action Click",t.treasuryProspectusClick="Treasury Prospectus Click",t.treasuryCalculatorClick="Treasury Calculator Click",t.treasuryAgreementView="Treasury Agreement View",t.treasuryAllocationAction="Treasury Allocation Action",t.treasuryRiskAction="Treasury Risk Action",t.treasuryVerificationNavigation="Treasury Verification Navigation",t.treasuryTransferAction="Treasury Transfer Action",t.treasuryDashboardInteraction="Treasury Dashboard Interaction",t.treasuryPortfolioConfirm="Treasury Portfolio Confirm",t.transactionCotView="Transaction Cot View",t.transactionCotDropdownView="Transaction Cot Dropdown View",t.transactionCotViewAlternative="Transaction Cot View Alternative",t.transactionCotViewRecommended="Transaction Cot View Recommended",t.aiPerfHome="AI Perf Home",t.aiPerfRefresh="AI Perf Refresh",t.aiPerfTimePeriodSelect="AI Perf Time Period Select",t.otherConnectionConnectBank="Other Connection Connect Bank",t.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",t.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",t.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",t.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance"}(n||(Mr.Event=n={})),Mr}var Cc;function vg(){if(Cc)return Yt;Cc=1;var n=Yt&&Yt.__assign||function(){return n=Object.assign||function(r){for(var e,i=1,a=arguments.length;i<a;i++){e=arguments[i];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}return r},n.apply(this,arguments)};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.Analytics=void 0;var t=ad(),o=function(){function r(e){this.provider=e,this.superProperties={},this.userProperties={},this.userAndSuperProperties={}}return r.splitUserAndSuperProperties=function(e){var i,a,s,c,l,u,d,h,_,v,C,g,b,w,S,R,T,I,M,O,N,F,$={$distinct_id:(i=e.$distinct_id)!==null&&i!==void 0?i:"",user_id:(a=e.user_id)!==null&&a!==void 0?a:"",role_at_company:(s=e.role_at_company)!==null&&s!==void 0?s:"",$email:(c=e.$email)!==null&&c!==void 0?c:"",user_email_domain:(l=e.user_email_domain)!==null&&l!==void 0?l:"",$first_name:(u=e.$first_name)!==null&&u!==void 0?u:"",$last_name:(d=e.$last_name)!==null&&d!==void 0?d:"",company_ids:(h=e.company_ids)!==null&&h!==void 0?h:[],company_names:(_=e.company_names)!==null&&_!==void 0?_:[],user_roles:(v=e.user_roles)!==null&&v!==void 0?v:[],app_type:(C=e.app_type)!==null&&C!==void 0?C:"web",app_version:(g=e.app_version)!==null&&g!==void 0?g:"",app_short_version:(b=e.app_short_version)!==null&&b!==void 0?b:"",profile_type:(w=e.profile_type)!==null&&w!==void 0?w:void 0,chargebee_customer_id:(S=e.chargebee_customer_id)!==null&&S!==void 0?S:"",is_zeni:(R=e.is_zeni)!==null&&R!==void 0?R:void 0},z={appearance:(T=e.appearance)!==null&&T!==void 0?T:void 0,company_id:(I=e.company_id)!==null&&I!==void 0?I:"",company_name:(M=e.company_name)!==null&&M!==void 0?M:"",user_role:(O=e.user_role)!==null&&O!==void 0?O:[],tenant_id:(N=e.tenant_id)!==null&&N!==void 0?N:"",tenant_email_domain:(F=e.tenant_email_domain)!==null&&F!==void 0?F:""};return{userProperties:$,superProperties:z}},r.prototype.identify=function(e,i){var a=i??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,a,{$distinct_id:e,profile_type:"user"});var s=r.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=s.userProperties,this.superProperties=s.superProperties,this.provider.identify(e,this.userProperties)},r.prototype.identifyUserAndCompany=function(e,i,a,s,c){var l=s??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,l,{$distinct_id:e==="company"?a:i,user_id:i,company_id:a,profile_type:e});var u=r.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=u.userProperties,this.superProperties=u.superProperties,this.provider.identifyUserAndCompany(e,i,a,this.userProperties,c)},r.prototype.resetUserIdentity=function(){console.warn("Resetting user identity"),this.superProperties={},this.userProperties={},this.userAndSuperProperties={},this.provider.reset()},r.prototype.track=function(e){this.fireTrack(e)},r.prototype.trackLogin=function(e,i,a,s,c){this.fireTrack(e,{login_type:i,customer_type:a,utm_source:s,utm_medium:c})},r.prototype.trackSignInClick=function(e){var i=e.charAt(0).toUpperCase()+e.slice(1),a={login_type:i};this.fireTrack(t.Event.signInClick,a)},r.prototype.trackSignInViaGoogleMicrosoft=function(){this.fireTrack(t.Event.signInViaGoogleMicrosoft)},r.prototype.trackSignInViaEmail=function(){this.fireTrack(t.Event.signInViaEmail)},r.prototype.trackSignInLinkSent=function(){this.fireTrack(t.Event.signInLinkSent)},r.prototype.trackError=function(e,i,a,s){this.fireTrack(e,{error_referrer:i,error_description:a,error_code:s})},r.prototype.trackSidePanelClicked=function(e,i){this.fireTrack(t.Event.sidePanelClicked,{sidepanel_click_type:e,sidepanel_click_group_type:i})},r.prototype.trackLogout=function(e){this.fireTrack(e)},r.prototype.trackPageLoaded=function(e,i,a){this.fireTrack(e,{referrer_card:i,customer_type:a})},r.prototype.trackTransactionList=function(e,i,a,s,c,l){this.fireTrack(t.Event.transactionList,{account_id:e,account_name:i,referrer_card:a,referrer_account:s,referrer_account_group:c,load_more:l})},r.prototype.trackTransactionDetails=function(e,i,a,s,c,l,u,d,h,_,v){this.fireTrack(t.Event.transactionDetails,{account_id:e,account_name:i,transaction_id:a,transaction_name:s,category:c,class:l,transaction_type:u,transaction_amount:d,transaction_memo:h,line_item_count:_,receipt_file_names:v})},r.prototype.trackCompareMode=function(e,i,a){this.fireTrack(t.Event.compareMode,{is_turned_on:e,referrer_card:i,graph_filter:a})},r.prototype.trackCompareFilterChange=function(e,i,a,s){this.fireTrack(t.Event.compareFilterChange,{value:e,referrer_card:i,graph_filter:a,clicked_on:s})},r.prototype.trackCompareFilterTimeFrame=function(e,i,a,s){this.fireTrack(t.Event.compareFilterTimeframe,{referrer_card:e,graph_filter:i,clicked_on:a,value:s})},r.prototype.trackDateRangeFilterChange=function(e,i,a,s,c){this.fireTrack(t.Event.dateRangeFilter,{parent_card:e,clicked_on:i,compare_mode:a,value:s,bar_name:c})},r.prototype.trackTimeframeSwitch=function(e,i,a){this.fireTrack(t.Event.timeframeSwitch,{value:e,parent_card:i,referrer_card:a})},r.prototype.trackGraphBar=function(e,i,a,s){this.fireTrack(t.Event.graphBar,{referrer_card:e,graph_filter:i,compare_mode:a,bar_name:s})},r.prototype.trackInviteSent=function(e,i,a){this.fireTrack(t.Event.inviteSent,{role:e,count:i,emails:a})},r.prototype.trackRoleChanged=function(e,i,a){this.fireTrack(t.Event.roleChanged,{old_role:e,new_role:i,member_email:a})},r.prototype.trackRemoveUserAccess=function(e,i){this.fireTrack(t.Event.removeUserAccess,{role:e,member_email:i})},r.prototype.trackResendInvite=function(e,i){this.fireTrack(t.Event.resendInvite,{role:e,member_email:i})},r.prototype.trackCompanySwitch=function(e,i,a){this.fireTrack(t.Event.companySwitch,{new_company_id:e,new_company_name:i,new_user_role:a})},r.prototype.trackDownload=function(e,i,a,s){this.fireTrack(t.Event.download,{referrer_card:e,graph_filter:i,file_type:a,compare_mode:s})},r.prototype.trackSpendIncomeTrendForTransaction=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(e,{referrer_card:i,transaction_id:a,transaction_type:s,transaction_name:c,account_ids:l,account_names:u,class_ids:d,class_names:h,bar_name:_})},r.prototype.trackSpendIncomeTrend=function(e,i,a,s,c){this.fireTrack(e,{referrer_card:i,bar_name:c,entity_name:s,entity_type:a})},r.prototype.trackSearch=function(e,i,a,s,c){this.fireTrack(e,{referrer_card:i,entity_type:a,entity_name:s,search_term:c})},r.prototype.trackTransactionDetailReceipt=function(e,i,a,s,c,l,u){this.fireTrack(e,{attachment_id:i,transaction_id:a,transaction_name:s,transaction_type:c,account_ids:l,account_names:u})},r.prototype.trackTransactionDetailReceiptUpload=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.transactionDetailReceiptAdded,{account_id:e,account_name:i,transaction_id:a,transaction_name:s,transaction_type:c,transaction_memo:l,file_name:u,file_type:d})},r.prototype.trackCardStatementCloseDate=function(e,i,a,s,c){this.fireTrack(e,{referrer_card:s,account_id:i,account_name:a,value:c})},r.prototype.trackReportGenerated=function(e,i,a,s,c,l,u,d){var h={report_id:e,file_type:i,time_taken_rest_api:a,time_taken_data_transform:s,time_taken_rendering:c,time_taken_total:l};Object.assign(h,u!=null?{time_taken_pdf_merge:u}:{}),Object.assign(h,d!=null?{time_taken_sub_report_total_max:d}:{}),this.fireTrack(t.Event.reportGenerated,h)},r.prototype.trackInsightsNavigation=function(e,i){this.fireTrack(e,{referrer_view:i})},r.prototype.trackForecast=function(){this.fireTrack(t.Event.forecast)},r.prototype.trackForecastSwitch=function(e,i){this.fireTrack(t.Event.forecastSwitch,{parent_card:e,forecast_name:i})},r.prototype.trackForecastVsActualMode=function(e,i,a){this.fireTrack(t.Event.forecastVsActualMode,{parent_card:e,forecast_name:i,is_turned_on:a})},r.prototype.trackSpendManagmentFilterClick=function(e){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayFilterClick);break}case"reimbursement":{this.fireTrack(t.Event.reimbursementFilterClick);break}}},r.prototype.trackSpendManagmentFilterChange=function(e,i){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayFilterChange,{filter_categories:i});break}case"reimbursement":{this.fireTrack(t.Event.reimbursementFilterChange,{filter_categories:i});break}}},r.prototype.trackSpendManagementDownloadClick=function(e){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayDownloadClick);break}case"reimbursement":{this.fireTrack(t.Event.reimbursementDownloadClick);break}}},r.prototype.trackBillPayPrivacyPolicy=function(){this.fireTrack(t.Event.billPayPrivacyPolicy)},r.prototype.trackBillPayAgreement=function(){this.fireTrack(t.Event.billPayAgreement)},r.prototype.trackReimbursementPrivacyPolicy=function(){this.fireTrack(t.Event.reimbursementPrivacyPolicy)},r.prototype.trackReimbursementAgreement=function(){this.fireTrack(t.Event.reimbursementAgreement)},r.prototype.trackReimbursementMileageRateSave=function(e){var i={mileage_unit_amount:e};this.fireTrack(t.Event.reimbursementMileageRateSave,i)},r.prototype.trackReimbursementMileageRateEdit=function(){this.fireTrack(t.Event.reimbursementMileageRateEdit)},r.prototype.trackReimbursementPromoScheduleDemo=function(){this.fireTrack(t.Event.reimbursementPromoSchedule)},r.prototype.trackReimbursementPromoVideo=function(){this.fireTrack(t.Event.reimbursementPromoVideo)},r.prototype.trackBillPayPromoScheduleDemo=function(){this.fireTrack(t.Event.billPayPromoSchedule)},r.prototype.trackBillPayPromoVideo=function(){this.fireTrack(t.Event.billPayPromoVideo)},r.prototype.trackBillPayTaskCard=function(e){var i={count:e};this.fireTrack(t.Event.billPayTaskCard,i)},r.prototype.trackBillPayCard=function(e,i){var a={transaction_amount:i,bill_pay_tab_subtab:e};this.fireTrack(t.Event.billPayCard,a)},r.prototype.trackReimbursementCard=function(e,i){var a={transaction_amount:i,reimbursement_tab_subtab:e};this.fireTrack(t.Event.reimbursementCard,a)},r.prototype.trackReimbursementTaskCard=function(e){var i={count:e};this.fireTrack(t.Event.reimbursementTaskCard,i)},r.prototype.trackOnboardingConnectQBO=function(){this.fireTrack(t.Event.onboardingQBOConnect)},r.prototype.trackOnboardingSaveQBOConnection=function(e,i){var a={qbo_realm_id:e,qbo_connection_id:i};this.fireTrack(t.Event.onboardingSaveQBOConnection,a)},r.prototype.trackOnboardingClickUpdatePaymentDetails=function(e,i){var a={payment_method:e,customer_type:i};this.fireTrack(t.Event.onboardingClickUpdatePaymentDetails,a)},r.prototype.trackOnboardingCurrentStep=function(e,i){var a={onboarding_current_step:e,onboarding_previous_step:i};this.fireTrack(t.Event.onboardingActiveStep,a)},r.prototype.trackOnboardingBankAccountPendingVerification=function(e,i){var a={verification_type:e,plaid_session_id:i};this.fireTrack(t.Event.onboardingBankAccountPendingVerification,a)},r.prototype.trackOnboardingBankAccountVerified=function(e){var i={verification_type:e};this.fireTrack(t.Event.onboardingBankAccountVerified,i)},r.prototype.trackOnboardingBillingAddress=function(e){var i={billing_address_field:e};this.fireTrack(t.Event.onboardingBillingAddress,i)},r.prototype.trackOnboardingBillingAddressSave=function(e){var i={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,i)},r.prototype.trackOnboardingBack=function(e,i){var a={onboarding_current_step:e,onboarding_previous_step:i};this.fireTrack(t.Event.onboardingBack,a)},r.prototype.trackOnboardingNext=function(e,i){var a={onboarding_current_step:i,onboarding_previous_step:e};this.fireTrack(t.Event.onboardingNext,a)},r.prototype.trackSaveAddressClicked=function(e,i){var a,s,c,l,u,d,h,_={address:{street:(a=i?.street)!==null&&a!==void 0?a:"",suite:(s=i?.suite)!==null&&s!==void 0?s:"",city:(c=i?.city)!==null&&c!==void 0?c:"",state:(l=i?.state)!==null&&l!==void 0?l:"",country:(u=i?.country)!==null&&u!==void 0?u:"",postal_code:(d=i?.postalCode)!==null&&d!==void 0?d:"",secondary_info:(h=i?.secondaryInfo)!==null&&h!==void 0?h:""}};this.fireTrack(e,_)},r.prototype.trackOnboardingCompanyOfficerSave=function(e,i){var a={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:i.legalName};this.fireTrack(t.Event.onboardingCompanyOfficerSave,a)},r.prototype.trackOnboardingCompanyDetailsSave=function(e,i){var a={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};this.fireTrack(t.Event.onboardingCompanyDetailsSave,a)},r.prototype.trackOnboardingNewCustomerStarted=function(){this.fireTrack(t.Event.onboardingNewCustomerStarted)},r.prototype.trackOnboardingNewCustomerGroupCreationCheck=function(e,i){var a={company_email_domain:e.companyEmailDomain,primary_contact_email:e.primaryContactEmail,group_name:i.groupName,group_email:i.groupEmail,group_description:i.groupDescription,is_company_email_domain_available:i.isCompanyEmailDomainAvailable};this.fireTrack(t.Event.onboardingNewCustomerGroupCreationCheck,a)},r.prototype.trackOnboardingQBOConnectionSelected=function(e){var i={first_name:e.firstName,last_name:e.lastName,customer_email:e.customerEmail};switch(e.isZeniOrCustomer){case"customer":this.fireTrack(t.Event.onboardingCustomerManagedQBOConnectionSelected,i);break;default:this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionSelected,i);break}},r.prototype.trackOnboardingZeniManagedQBOConnection=function(e){var i={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,i):this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionUnsuccess,i)},r.prototype.trackOnboardingSaveOrSendInvite=function(e,i,a,s){var c={company_domain:e.companyDomain,primary_contact_email:e.primaryContactEmail,group_name:i.groupName,group_email:i.groupEmail,group_description:i.groupDescription,first_name:a.firstName,last_name:a.lastName,customer_email:a.customerEmail,company_name:a.companyName,entitty_type:a.entittyType,qbo_realm_id:a.qboRealmId,hubspot_id:a.hubSpotId,chargebee_id:a.chargebeeId,products:a.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,c):this.fireTrack(t.Event.onboardingSendInvite,c):this.fireTrack(t.Event.onboardingSave,c)},r.prototype.trackOnboardingInterimCard=function(e){var i={card_click:e};this.fireTrack(t.Event.onboardingInterimCardClick,i)},r.prototype.trackOnboardingLandingPageCardClick=function(e){var i={card_click:e};this.fireTrack(t.Event.onboardingLandingPageCardClick,i)},r.prototype.trackBusinessVerificationSave=function(e,i,a,s,c){var l={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:i.companyDescription,company_legal_name:i.legalName,company_industry:i.industry,company_phone:i.phone,company_website:i.website,company_address:i.formattedAddress,inc_date:i.incDate,primary_contact_first_name:a.firstName,primary_contact_last_name:a.lastName,primary_contact_email:a.email,referrer_card:c};switch(s){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsBusinessVerificationSave,l);break;case"reimbursement":this.fireTrack(t.Event.reimbursementBusinessVerificationSave,l);break;case"onboarding":this.fireTrack(t.Event.onboardingSkipAndSave,l);break;case"charge_cards":this.fireTrack(t.Event.cardsBusinessVerification,l);break;case"bill_pay":default:this.fireTrack(t.Event.billPayBusinessVerificationSave,l);break}},r.prototype.trackBusinessVerificationSend=function(e,i,a,s,c){var l={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:i.companyDescription,company_legal_name:i.legalName,company_industry:i.industry,company_phone:i.phone,company_website:i.website,company_address:i.formattedAddress,inc_date:i.incDate,primary_contact_first_name:a.firstName,primary_contact_last_name:a.lastName,primary_contact_email:a.email,referrer_card:c};switch(s){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsBusinessVerificationSend,l);break;case"reimbursement":this.fireTrack(t.Event.reimbursementBusinessVerificationSend,l);break;case"charge_cards":this.fireTrack(t.Event.cardsBusinessVerificationSend,l);break;case"bill_pay":default:this.fireTrack(t.Event.billPayBusinessVerificationSend,l);break}},r.prototype.onboardingConnectBankEventsByEventSource=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.onboardingConnectBankEventsByEventSourceSuccess=function(e,i,a,s,c,l){if(l!=null&&c!=null)switch(l){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccountSuccess,{referrer_card:c,plaid_session_id:e,plaid_account_id:i,is_micro_deposit_verification_done:a??!1,plaid_institution_name:s});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccountSuccess,{referrer_card:c,plaid_session_id:e,plaid_account_id:i,is_micro_deposit_verification_done:a??!1,plaid_institution_name:s});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccountSuccess,{referrer_card:c,plaid_session_id:e,plaid_account_id:i,is_micro_deposit_verification_done:a??!1,plaid_institution_name:s});break}},r.prototype.onboardingConnectBankEventsByEventSourceFailure=function(e,i,a,s,c,l,u){if(u!=null&&l!=null)switch(u){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccountFailure,{referrer_card:l,error_description:e,error_code:c,plaid_session_id:i,plaid_request_id:a,plaid_institution_name:s});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccountFailure,{referrer_card:l,error_description:e,error_code:c,plaid_session_id:i,plaid_request_id:a,plaid_institution_name:s});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccountFailure,{referrer_card:l,error_description:e,error_code:c,plaid_session_id:i,plaid_request_id:a,plaid_institution_name:s});break}},r.prototype.onboardingCreditCardEventsConnectByEventSource=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.onboardingCreditCardConnectEventsByEventSourceSuccess=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.onboardingCreditCardConnectEventsByEventSourceFailure=function(e,i,a,s){if(s!=null&&a!=null)switch(s){case"switch_to_credit_card":this.fireTrack(t.Event.onboardingSwitchToCreditCardFailure,{referrer_card:a,error_description:e,error_code:i});break;case"link_new_credit_card":this.fireTrack(t.Event.onboardingLinkANewBankAccountFailure,{referrer_card:a,error_description:e,error_code:i});break;case"link_credit_card":this.fireTrack(t.Event.onboardingLinkCreditCardFailure,{referrer_card:a,error_description:e,error_code:i});break}},r.prototype.billingConnectBankEventsByEventSource=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.billingConnectBankEventsByEventSourceSuccess=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.billingConnectBankEventsByEventSourceFailure=function(e,i,a,s){if(s!=null&&a!=null)switch(s){case"link_new_bank_account":this.fireTrack(t.Event.billingLinkNewBankAccountFailure,{referrer_card:a,error_description:e,error_code:i});break;case"switch_to_bank_account":this.fireTrack(t.Event.billingSwitchToBankAccountFailure,{referrer_card:a,error_description:e,error_code:i});break}},r.prototype.billingConnectCreditCardEventsByEventSource=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.billingConnectCreditCardEventsByEventSourceSuccess=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.billingConnectCreditCardEventsByEventSourceFailure=function(e,i,a,s){if(s!=null&&a!=null)switch(s){case"switch_to_credit_card":this.fireTrack(t.Event.billingSwitchToCreditCardFailure,{referrer_card:a,error_description:e,error_code:i});break;case"link_new_credit_card":this.fireTrack(t.Event.billingLinkNewCardFailure,{referrer_card:a,error_description:e,error_code:i});break}},r.prototype.trackConnectBank=function(e,i,a){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBank,{referrer_card:i});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBank,{referrer_card:i});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBank,{referrer_card:i});break;case"onboarding":this.onboardingConnectBankEventsByEventSource(i,a);break;case"billing":this.billingConnectBankEventsByEventSource(i,a);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBank,{referrer_card:i});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBank,{referrer_card:i});break}},r.prototype.trackConnectBankSuccess=function(e,i,a,s,c,l,u){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankSuccess,{referrer_card:i});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankSuccess,{referrer_card:i});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankSuccess,{referrer_card:i});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceSuccess(s??null,c??null,l??null,u??null,i,a);break;case"billing":this.billingConnectBankEventsByEventSourceSuccess(i,a);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankSuccess,{referrer_card:i});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankSuccess,{referrer_card:i});break}},r.prototype.trackConnectBankFailure=function(e,i,a,s,c,l,u,d){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceFailure(i,l??null,u??null,d??null,c,a,s);break;case"billing":this.billingConnectBankEventsByEventSourceFailure(i,c,a,s);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break}},r.prototype.trackCreditCardConnect=function(e,i,a){if(a!=null&&i!=null)switch(e){case"onboarding":this.onboardingCreditCardEventsConnectByEventSource(a,i);break;case"billing":this.billingConnectCreditCardEventsByEventSource(a,i);break}},r.prototype.trackCreditCardConnectSuccess=function(e,i,a){if(i!=null&&a!=null)switch(e){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceSuccess(i,a);break;case"billing":this.billingConnectCreditCardEventsByEventSourceSuccess(i,a);break}},r.prototype.trackCreditCardConnectFailure=function(e,i,a,s,c){if(a!=null&&s!=null)switch(e){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceFailure(i,c,a,s);break;case"billing":this.billingConnectCreditCardEventsByEventSourceFailure(i,c,a,s);break}},r.prototype.trackConnectBankLink=function(e,i,a,s){switch(a){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"onboarding":this.fireTrack(t.Event.onboardingConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionsConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break}},r.prototype.trackConnectBankGetBalance=function(e,i){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankGetBalance,{referrer_card:i});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankGetBalance,{referrer_card:i});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankGetBalance,{referrer_card:i});break;case"onboarding":this.fireTrack(t.Event.onboardingConnectBankGetBalance,{referrer_card:i});break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankGetBalance,{referrer_card:i});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankGetBalance,{referrer_card:i});break}},r.prototype.trackNeedHelp=function(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}},r.prototype.trackAccountsListPageViewed=function(e,i,a,s,c){this.fireTrack(t.Event.accountsListPageViewed,{zeni_accounts_count:e,external_accounts_count:i,zeni_accounts_available_balance:a,total_yield_earned:s,current_average_yield:c})},r.prototype.trackAccountsListPageClicked=function(e,i,a){this.fireTrack(t.Event.accountsListPageClicked,{click_type:e,account_name:i,account_status:a})},r.prototype.trackAccountsPromoPageClicked=function(e){this.fireTrack(t.Event.accountsPromoPageClicked,{click_type:e})},r.prototype.trackTransferBetweenAccountsFormClicked=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.zeniAccountsTransferFormClicked,{click_type:e,current_screen:i,transfer_from_bank_name:a,transfer_to_bank_name:s,amount:c,is_split_transfer:l,split_days_count:u,APY_slider_moved:d})},r.prototype.trackAccountsDepositCheckFormClicked=function(e,i,a,s,c,l){this.fireTrack(t.Event.accountsDepositCheckFormClicked,{click_type:e,amount:i,source_of_deposit:a,deposited_to:s,front_photo:c,back_photo:l})},r.prototype.trackAccountsDepositCheckFormViewed=function(){this.fireTrack(t.Event.accountsDepositCheckFormViewed)},r.prototype.trackZeniTransferBetweenAccountsFormViewed=function(){this.fireTrack(t.Event.zeniAccountsTransferFormViewed)},r.prototype.trackEnableZeniAccounts=function(){this.fireTrack(t.Event.enableZeniAccounts)},r.prototype.trackZeniAccountsPromoCardClick=function(e,i){this.fireTrack(t.Event.zeniAccountsPromoCardClick,{card_position:e,click_type:i})},r.prototype.trackZeniAccountsCashBalancePromoClicked=function(e){this.fireTrack(t.Event.zeniAccountsCashBalancePromoClicked,{click_type:e})},r.prototype.trackPlgPromoClicked=function(e,i){this.fireTrack(t.Event.plgPromoActionTaken,{page_name:e,clicked_on:i})},r.prototype.getBaseCardProperties=function(e,i,a,s){return{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,credit_account_id:a?.creditAccountId,credit_account_limit:a?.creditAccountLimit,credit_account_available_amount:a?.creditAccountAvailableAmount,credit_account_spent_amount:a?.creditAccountSpentAmount,credit_account_status:a?.creditAccountStatus,credit_account_outstanding_balance:a?.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}},r.prototype.getBaseCardPropertiesWithCashback=function(e,i,a,s,c){return n(n({},this.getBaseCardProperties(e,i,s,c)),{credit_card_cashback_offer:a?.creditCardCashbackOffer,debit_card_cashback_offer:a?.debitCardCashbackOffer,total_earned_cashback:a?.totalEarnedCashback,redeemed_cashback:a?.redeemedCashback,available_cashback:a?.availableCashback,credit_card_cashback_redemption_mode:a?.creditCardCashbackRedemptionMode,debit_card_cashback_redemption_mode:a?.debitCardCashbackRedemptionMode})},r.prototype.getPaymentSourceProperties=function(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}},r.prototype.getCardPaymentProperties=function(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}},r.prototype.trackCardsPromoPageClicked=function(e){this.fireTrack(t.Event.cardsPromoPageClick,{cards_click_type:e})},r.prototype.trackCardsListPageClicked=function(e){this.fireTrack(t.Event.cardsListPageClick,{cards_click_type:e})},r.prototype.trackCardsNewCardFormClicked=function(e,i,a,s,c){this.fireTrack(t.Event.cardsIssueNewCardFormClick,{cards_click_type:c,card_owner:e,card_name:i,amount:s,frequency:a})},r.prototype.trackCardsListRowClicked=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.cardsListRowClick,{card_owner:e,card_name:i,department:a,utilisation:s,limit:c,frequency:l,is_self_card:u})},r.prototype.trackCardsDetailPageViewed=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.cardsDetailPage,{card_id:e,is_self_card:d,card_owner:i,card_name:a,utilisation:s,limit:c,frequency:l,card_color:u})},r.prototype.trackCardsVerifyPopUpClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsVerifyPopUpClick,{cards_click_type:u,is_self_card:d,card_owner:i,card_name:a,utilisation:s,limit:c,frequency:l,card_id:e,selected_color:h})},r.prototype.trackCardsDetailPageClicked=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsDetailPageClick,{cards_click_type:u,is_self_card:d,card_owner:i,card_name:a,utilisation:s,limit:c,frequency:l,card_id:e,selected_color:h})},r.prototype.trackZeniCardsPromoCardClicked=function(e,i,a,s,c){this.fireTrack(t.Event.zeniCardsPromoCardClicked,{card_position:a,click_type:i,is_cards_setup:e,user_name:s,credit_limit:c??"NA"})},r.prototype.trackCardsSetupCardsClick=function(e,i,a){this.fireTrack(t.Event.cardsSetupCardsClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,page_name:a})},r.prototype.trackCardsPromoView=function(e,i,a,s,c){this.fireTrack(t.Event.cardsPromoView,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,promo_format:a,promo_product:s,page_name:c})},r.prototype.trackCardsEnableCardsClick=function(e,i,a){this.fireTrack(t.Event.cardsEnableCardsClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,page_name:a})},r.prototype.trackCardsScheduleDemoClick=function(e,i,a){this.fireTrack(t.Event.cardsScheduleDemoClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,page_name:a})},r.prototype.trackCardsCardListView=function(e,i,a,s,c){this.fireTrack(t.Event.cardsCardListView,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsCardListSearchClick=function(e,i,a,s,c){this.fireTrack(t.Event.cardsCardListSearchClick,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsCardListMoreMenuClick=function(e,i,a,s,c){this.fireTrack(t.Event.cardsCardListMoreMenuClick,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsSettingsClick=function(e,i,a,s,c){this.fireTrack(t.Event.cardsSettingsClick,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsCardSetupView=function(e,i,a){this.fireTrack(t.Event.cardsCardSetupView,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,source:a})},r.prototype.trackCardsVerifyIdentityCompanyDetailsClick=function(e,i,a){this.fireTrack(t.Event.cardsVerifyIdentityCompanyDetailsClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,status:a})},r.prototype.trackCardsPaymentAccountChangeClick=function(e,i,a){this.fireTrack(t.Event.cardsPaymentAccountChangeClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,old_payment_account_name:a.oldPaymentAccountName,old_payment_account_balance:a.oldPaymentAccountBalance,new_payment_account_name:a.newPaymentAccountName,new_payment_account_balance:a.newPaymentAccountBalance,is_old_payment_account_recommended:a.isOldPaymentAccountRecommended,is_new_payment_account_recommended:a.isNewPaymentAccountRecommended,old_payment_account_position:a.oldPaymentAccountPosition,new_payment_account_position:a.newPaymentAccountPosition,number_of_payment_accounts:a.numberOfPaymentAccounts})},r.prototype.trackCardsZeniCashAccountChangeClick=function(e,i,a){this.fireTrack(t.Event.cardsZeniCashAccountChangeClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,old_zeni_cash_account:a.oldZeniCashAccount,new_zeni_cash_account:a.newZeniCashAccount,old_zeni_cash_account_position:a.oldZeniCashAccountPosition,new_zeni_cash_account_position:a.newZeniCashAccountPosition,number_of_cash_accounts:a.numberOfCashAccounts})},r.prototype.trackCardsStatementsClick=function(e,i,a,s,c){this.fireTrack(t.Event.cardsStatementsClick,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsCreditCardStatementsView=function(e,i,a,s,c){this.fireTrack(t.Event.cardsCreditCardStatementsView,n(n({},this.getBaseCardProperties(e,i,s,c)),{number_of_statements:a.numberOfStatements,oldest_statement_month_year:a.oldestStatementMonthYear,latest_statement_month_year:a.latestStatementMonthYear}))},r.prototype.trackCardsDownloadClick=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.cardsDownloadClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,u,d)),{page_name:c,position:l,file_category:s.fileCategory,file_type:s.fileType,file_name:s.fileName,file_month_year:s.fileMonthYear}))},r.prototype.trackCardsNewCardClick=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.cardsNewCardClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,u,d)),{click_item:s,action:c,page_name:l}))},r.prototype.trackCardsCashbackOverviewClick=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.cardsCashbackOverviewClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,l,u)),{click_item:s,action:c}))},r.prototype.trackCardsCardListRowClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsCardListRowClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,u,d,h)),{click_item:a,action:s,position:c,card_name:l.cardName,card_owner:l.cardOwner,card_type:l.cardType,card_status:l.cardStatus,card_utilization_amount:l.cardUtilizationAmount,card_utilization_percent:l.cardUtilizationPercent,card_limit:l.cardLimit}))},r.prototype.trackCardsCopyIconClick=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.cardsCopyIconClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,d,h,_)),{click_item:s,action:c,action_field:l,action_details:u,page_name:a}))},r.prototype.trackCardsCardListSortClick=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.cardsCardListSortClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,h,_)),{click_item:s,action:c,action_field:l,action_details:u,page_name:d}))},r.prototype.trackCardsCardDetailView=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.cardsCardDetailView,n(n({},this.getBaseCardProperties(e,i,l,u)),{card_name:a.cardName,card_type:a.cardType,card_category:a.cardCategory,card_limit:a.cardLimit,card_last_four_digits:a.cardLastFourDigits,card_status:a.cardStatus,card_utilization_percent:a.cardUtilizationPercent,card_id:a.cardId,card_assigned_date:a.cardAssignedDate,card_issued_date:a.cardIssuedDate,card_activated_date:a.cardActivatedDate,card_limit_frequency:a.cardLimitFrequency,card_spent_amount:a.cardSpentAmount,card_available_limit:a.cardAvailableLimit,card_utilization_amount:a.cardUtilizationAmount,total_number_of_declined_transactions:a.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:a.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:a.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:a.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:a.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:a.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:a.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:a.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:a.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:a.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:c.cardholderName,cardholder_email:c.cardholderEmail,cardholder_role:c.cardholderRole,cardholder_user_id:c.cardholderUserId,cardholder_department:c.cardholderDepartment}))},r.prototype.trackCardsUpdateSpendLimitInitiated=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.cardsUpdateSpendLimitInitiated,n(n({},this.getBaseCardProperties(e,i,h,_)),{card_name:a.cardName,card_type:a.cardType,card_category:a.cardCategory,card_limit:a.cardLimit,card_last_four_digits:a.cardLastFourDigits,card_status:a.cardStatus,card_utilization_amount:a.cardUtilizationAmount,card_utilization_percent:a.cardUtilizationPercent,card_id:a.cardId,card_assigned_date:a.cardAssignedDate,card_issued_date:a.cardIssuedDate,card_activated_date:a.cardActivatedDate,card_limit_frequency:a.cardLimitFrequency,card_spent_amount:a.cardSpentAmount,card_available_limit:a.cardAvailableLimit,total_number_of_declined_transactions:a.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:a.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:a.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:a.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:a.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:a.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:a.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:a.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:a.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:a.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:c.cardholderName,cardholder_email:c.cardholderEmail,cardholder_role:c.cardholderRole,cardholder_user_id:c.cardholderUserId,cardholder_department:c.cardholderDepartment,page_name:l,source:u,recommended_limits:d}))},r.prototype.trackCardsUpdateSpendLimitClick=function(e,i,a,s,c,l,u,d,h,_,v,C,g){this.fireTrack(t.Event.cardsUpdateSpendLimitClick,n(n({},this.getBaseCardProperties(e,i,C,g)),{card_name:a.cardName,card_type:a.cardType,card_category:a.cardCategory,card_limit:a.cardLimit,card_last_four_digits:a.cardLastFourDigits,card_status:a.cardStatus,card_utilization_amount:a.cardUtilizationAmount,card_utilization_percent:a.cardUtilizationPercent,card_id:a.cardId,card_assigned_date:a.cardAssignedDate,card_issued_date:a.cardIssuedDate,card_activated_date:a.cardActivatedDate,card_limit_frequency:a.cardLimitFrequency,card_spent_amount:a.cardSpentAmount,card_available_limit:a.cardAvailableLimit,total_number_of_declined_transactions:a.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:a.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:a.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:a.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:a.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:a.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:a.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:a.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:a.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:a.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:c.cardholderName,cardholder_email:c.cardholderEmail,cardholder_role:c.cardholderRole,cardholder_user_id:c.cardholderUserId,cardholder_department:c.cardholderDepartment,click_item:u,current_limit:d,new_limit:v,recommended_limits:h,was_recommended_limit_selected:_,card_limit_updated_by_name:l.cardLimitUpdatedByName,card_limit_updated_by_email:l.cardLimitUpdatedByEmail,card_limit_updated_by_role:l.cardLimitUpdatedByRole,card_limit_updated_by_user_id:l.cardLimitUpdatedByUserId}))},r.prototype.trackCardsAddToWalletClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsAddToWalletClick,n(n({},this.getBaseCardProperties(e,i,d,h)),{card_id:a.cardId,card_name:a.cardName,card_type:a.cardType,card_category:a.cardCategory,card_limit:a.cardLimit,card_last_four_digits:a.cardLastFourDigits,card_status:a.cardStatus,card_assigned_date:a.cardAssignedDate,card_issued_date:a.cardIssuedDate,card_limit_frequency:a.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:c.cardholderName,cardholder_email:c.cardholderEmail,cardholder_role:c.cardholderRole,cardholder_user_id:c.cardholderUserId,cardholder_department:c.cardholderDepartment,page_name:l,click_item:u}))},r.prototype.trackCardsPayEarlyClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsPayEarlyClick,n(n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,d,h)),this.getPaymentSourceProperties(u)),{click_item:l,page_name:s,source:c}))},r.prototype.trackCardsPayEarlyFormView=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsPayEarlyFormView,n(n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,d,h)),this.getPaymentSourceProperties(u)),{is_autopay_selected:c,payment_amount:l,page_name:s}))},r.prototype.trackCardsPayEarlyFormClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsPayEarlyFormClick,n(n(n(n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,d,h)),this.getPaymentSourceProperties(u)),{is_autopay_selected:c}),this.getCardPaymentProperties(l)),{click_item:s}))},r.prototype.trackCardsPayEarlyPayNowClick=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.cardsPayEarlyPayNowClick,n(n(n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,u,d)),this.getPaymentSourceProperties(l)),{is_autopay_selected:s}),this.getCardPaymentProperties(c)))},r.prototype.trackEnableBillPay=function(){this.fireTrack(t.Event.enableBillPay)},r.prototype.trackEnableReimbursement=function(){this.fireTrack(t.Event.enableReimbursement)},r.prototype.trackUploadInvoice=function(e,i,a){switch(i){case"w9":this.fireTrack(t.Event.vendor1099W9DocumentUpload,{invoice_upload_method:e,vendor_legal_name:a??""});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}},r.prototype.trackInvoiceActionClick=function(e,i,a,s){this.fireTrack(t.Event.billPayInvoiceActionClick,{bill_stage:e,action_clicked:i,user_name:a,override_data_click:s})},r.prototype.trackBillPaySkipAutofill=function(){this.fireTrack(t.Event.billPaySkipAutofill)},r.prototype.trackReimbursementSkipAutofill=function(){this.fireTrack(t.Event.reimbursementSkipAutofill)},r.prototype.trackBillPayNewBill=function(){this.fireTrack(t.Event.billPayNewBill)},r.prototype.trackReimbursementNewReimbursement=function(){this.fireTrack(t.Event.reimbursementNewReimbursement)},r.prototype.trackBillPayEditBill=function(e,i){this.fireTrack(t.Event.billPayEditBill,{bill_id:e,is_recurring_bill:i})},r.prototype.trackReimbursementEditReimbursement=function(e){this.fireTrack(t.Event.reimbursementEditReimbursement,{reimbursement_id:e})},r.prototype.trackBillPayBillDetails=function(e,i){this.fireTrack(t.Event.billPayBillDetails,{bill_id:e,is_recurring_bill:i})},r.prototype.trackReimbursementReimbursementDetails=function(e){this.fireTrack(t.Event.reimbursementReimbursementDetails,{reimbursement_id:e})},r.prototype.trackBillPayReviewBill=function(e,i,a,s,c,l,u,d,h,_,v,C,g,b){var w={final_vendor_name:l,zeni_rec_vendor_name:u,document_ai_rec_vendor_name:d,bill_id:h,invoice_number:_,invoice_date:i,bill_due_date:v,memo:C,currency:a,collect_from_vendor:s,international_transfer_fee_bearer_payment_method:g,is_recurring_bill:c,payment_method:e};c&&b!=null&&(w.recurring_bill_config={bill_value:b.totalAmount,start_date:b.startDate,end_date:b.endDate,frequency:b.frequency,total_payment_cycles:b.totalPaymentCycles,is_approval_required:b.isApprovalRequired}),this.fireTrack(t.Event.billPayReviewBill,w)},r.prototype.trackReimbursementSubmitReimbursement=function(e,i,a,s){this.fireTrack(t.Event.reimbursementSubmitReimbursement,{create_date:e,currency:i,total_amount:a,reimbursement_id:s})},r.prototype.trackBillPaySendForApproval=function(e,i,a,s,c,l,u){var d={bill_id:c,payment_method:e,scheduled_date:i,collect_from_vendor:a,international_transfer_fee_bearer_payment_method:l,is_recurring_bill:s};s&&u!=null&&(d.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,d)},r.prototype.trackBillPayDeleteBill=function(e,i){this.fireTrack(t.Event.billPayDeleteBill,{bill_id:e,is_recurring_bill:i})},r.prototype.trackBillPayCancelBill=function(e){this.fireTrack(t.Event.billPayCancelBill,{bill_id:e})},r.prototype.trackBillPayCancelAndDeleteBill=function(e,i){this.fireTrack(t.Event.billPayCancelAndDeleteBill,{bill_id:e,is_recurring_bill:i})},r.prototype.trackReimbursementListSort=function(e,i){this.fireTrack(t.Event.reimbursementListSort,{sort_key:e,sort_order:i})},r.prototype.trackReimbursementDeleteReimbursement=function(e){this.fireTrack(t.Event.reimbursementDeleteReimbursement,{reimbursement_id:e})},r.prototype.trackReimbursementCancelReimbursement=function(e){this.fireTrack(t.Event.reimbursementCancelReimbursement,{reimbursement_id:e})},r.prototype.trackReimbursementCancelAndDeleteReimbursement=function(e){this.fireTrack(t.Event.reimbursementCancelAndDeleteReimbursement,{reimbursement_id:e})},r.prototype.trackReimbursementDeleteReimbursementLine=function(e,i){this.fireTrack(t.Event.reimbursementDeleteReimbursementLine,{reimbursement_id:i,line_id:e})},r.prototype.trackReimbursementSubmitAnywayDuplicateReimbursement=function(e,i){this.fireTrack(t.Event.reimbursementSubmitAnywayDuplicateReimbursement,{reimbursement_id:i,number_of_duplicate_expenses:e})},r.prototype.trackReimbursementViewDuplicateExpense=function(e,i){this.fireTrack(t.Event.reimbursementViewDuplicateExpense,{reimbursement_id:i,is_duplicate_within_transaction:e})},r.prototype.trackReimbursementReviewDuplicateReportReimbursement=function(e,i){this.fireTrack(t.Event.reimbursementReviewDuplicateReportReimbursement,{reimbursement_id:i,number_of_duplicate_expenses:e})},r.prototype.trackReimbursementBulkSelectAll=function(e,i,a){this.fireTrack(t.Event.reimbursementBulkSelectAll,{report_stage:e,report_status:i,report_type:a})},r.prototype.trackReimbursementBulkDeleted=function(e,i,a,s){this.fireTrack(t.Event.reimbursementBulkDeleted,{total_reports_deleted:e,report_stage:i,report_status:a,report_type:s})},r.prototype.trackReimbursementBulkSubmit=function(e,i,a){this.fireTrack(t.Event.reimbursementBulkSubmit,{operation_type:e,report_stage:i,report_status:a})},r.prototype.trackReimbursementBulkSelection=function(e,i,a,s){this.fireTrack(t.Event.reimbursementBulkSelection,{total_reports_selected:e,report_stage:i,report_status:a,report_type:s})},r.prototype.trackReimbursementBulkPopupConfirm=function(e,i,a,s){this.fireTrack(t.Event.reimbursementBulkPopupConfirm,{operation_type:e,report_stage:i,report_status:a,report_type:s})},r.prototype.trackBillPayNewVendor=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.billPayNewVendor,{vendor_name:e,vendor_category:i,vendor_class_name:a,vendor_type:s,vendor_contact_email:c,venfor_contact_name:l,vendor_contact_phone:u})},r.prototype.trackBillPayEditVendor=function(e){this.fireTrack(t.Event.billPayEditVendor,{vendor_id:e})},r.prototype.trackBillPayExpandVendor=function(e){this.fireTrack(t.Event.billPayExpandVendor,{vendor_id:e})},r.prototype.trackBillPayChooseNewVendor=function(){this.fireTrack(t.Event.billPayChooseNewVendor)},r.prototype.trackBillPayCreateNewVendorFromRecDropdown=function(e){this.fireTrack(t.Event.billPayCreateNewVendorFromDropdown,{vendor_name:e})},r.prototype.trackBillPayMagicLinkPreviewEmail=function(e){this.fireTrack(t.Event.billPayMagicLinkPreviewEmail,{on_page:e})},r.prototype.trackBillPayMagicLinkSubmitBankAccountDetails=function(e){this.fireTrack(t.Event.billPayMagicLinkSubmitBankAccountDetails,{bill_id:e})},r.prototype.trackBillPayMagicLinkPageLoad=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.billPayMagicLinkPageLoad,{tenant_email_domain:e,vendor_id:i,company_name:a,bill_id:s,payment_method:c,currency:l,total_amount:u})},r.prototype.trackBillPayAutoDateChange=function(e){this.fireTrack(t.Event.billPayAutoDateChange,{bill_id:e})},r.prototype.trackBillPayBulkSelectAll=function(e,i,a){this.fireTrack(t.Event.billPayBulkSelectAll,{bill_stage:e,bill_status:i,bill_type:a})},r.prototype.trackBillPayBulkDeleted=function(e,i,a,s){this.fireTrack(t.Event.billPayBulkDeleted,{total_bills_deleted:e,bill_stage:i,bill_status:a,bill_type:s})},r.prototype.trackBillPayBulkSubmit=function(e,i,a){this.fireTrack(t.Event.billPayBulkSubmit,{operation_type:e,bill_stage:i,bill_status:a})},r.prototype.trackBillPayBulkSelection=function(e,i,a,s){this.fireTrack(t.Event.billPayBulkSelection,{total_bills_selected:e,bill_stage:i,bill_status:a,bill_type:s})},r.prototype.trackBillPayBulkPopupConfirm=function(e,i,a,s){this.fireTrack(t.Event.billPayBulkPopupConfirm,{operation_type:e,bill_stage:i,bill_status:a,bill_type:s})},r.prototype.trackBillPayMarkAsPaid=function(e,i){this.fireTrack(t.Event.billPayMarkAsPaid,{bill_stage:e,bill_status:i})},r.prototype.trackBillPayMarkAsPaidSubmit=function(e,i,a){this.fireTrack(t.Event.billPayMarkAsPaidSubmit,{payment_mode:e,bill_stage:i,bill_status:a})},r.prototype.trackGroupBySwitch=function(e,i){this.fireTrack(t.Event.groupBySwitch,{view:e,parent_card:i})},r.prototype.trackUpdateBurnRateCalculatorSettings=function(e,i,a){this.fireTrack(t.Event.burnRateCalculatorSettings,{accounting_method:e,time_span_id_for_avg_net_burn:i,number_of_months_for_average:a})},r.prototype.trackTransactionDetailsSave=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.transactionDetailsSave,{account_id:e,account_name:i,transaction_id:a,transaction_name:s,transaction_type:c,changed_line_item_count:l,transaction_memo:u,receipt_file_names:d})},r.prototype.trackVendorList=function(e,i,a,s,c){this.fireTrack(t.Event.vendorList,{vendor_count:a,sort_key:s,spend_trend_key:c,current_tab:e,previous_tab:i})},r.prototype.trackVendorListSort=function(e,i,a){this.fireTrack(t.Event.vendorListSort,{vendor_count:e,sort_key:i,spend_trend_key:a})},r.prototype.trackVendorListSearch=function(e){this.fireTrack(t.Event.vendorListSearch,{search_term:e})},r.prototype.trackVendorListSpendTrendSelection=function(e,i,a){this.fireTrack(t.Event.vendorListSpendTrendSelection,{vendor_count:e,sort_key:i,spend_trend_key:a})},r.prototype.trackVendorDetails=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.vendorDetails,{vendor_id:e,vendor_name:i,referrer_card:a,vendor_category:s,vendor_class_name:c,spend_trend_indicator_value:u,vendor_spend_last_30days:d,vendor_spend_last_90days:h,vendor_spend_ytd:_,vendor_owner:l})},r.prototype.trackVendorDetailsSave=function(e,i,a,s,c,l,u,d,h,_,v,C){this.fireTrack(t.Event.vendorDetailsSave,{vendor_id:e,vendor_name:i,vendor_category:a,vendor_class_name:s,vendor_owner:c,saved_vendor_category:l,saved_vendor_class:u,saved_vendor_owner:d,is_recommended_category_selected:h,is_recommended_class_selected:_,category_recommendation_used:v,class_recommendation_used:C})},r.prototype.trackVendorDetailsCancel=function(e,i,a,s,c){this.fireTrack(t.Event.vendorDetailsCancel,{vendor_id:e,vendor_name:i,vendor_category:a,vendor_class_name:s,vendor_owner:c})},r.prototype.trackVendorDetailsSpendTrendHotlinkClicked=function(e,i,a,s,c){this.fireTrack(t.Event.vendorDetailsSpendTrendHotlinkClicked,{vendor_id:e,vendor_name:i,vendor_category:a,vendor_class_name:s,vendor_owner:c})},r.prototype.trackAgingReportDownloadClick=function(e,i,a){this.fireTrack(t.Event.download,{referrer_card:e,sort_key:i,sort_order:a})},r.prototype.trackAgingReportDateChange=function(e,i,a,s){this.fireTrack(t.Event.agingReportDateChange,{referrer_card:e,current_report_date:i,new_report_date:a,new_report_date_selection:s})},r.prototype.trackAgingReportSortChange=function(e,i,a){this.fireTrack(t.Event.sort,{referrer_card:e,sort_key:i,sort_order:a})},r.prototype.trackApAgingDetail=function(e,i,a,s){this.fireTrack(t.Event.apAgingDetail,{referrer_card:e,vendor_id:a,vendor_name:s,current_report_date:i})},r.prototype.trackArAgingDetail=function(e,i,a,s){this.fireTrack(t.Event.arAgingDetail,{referrer_card:e,customer_id:a,customer_name:s,current_report_date:i})},r.prototype.trackApAgingDetailReportSortChange=function(e,i,a,s,c){this.fireTrack(t.Event.sort,{referrer_card:"AP Aging Detail",sort_key:e,sort_order:i,vendor_id:s,vendor_name:c,current_report_date:a})},r.prototype.trackArAgingDetailReportSortChange=function(e,i,a,s,c){this.fireTrack(t.Event.sort,{referrer_card:"AR Aging Detail",sort_key:e,sort_order:i,customer_id:s,customer_name:c,current_report_date:a})},r.prototype.trackApAgingDetailReportDownload=function(e,i,a,s,c){this.fireTrack(t.Event.download,{referrer_card:"AP Aging Detail",sort_key:e,sort_order:i,vendor_id:s,vendor_name:c,current_report_date:a})},r.prototype.trackArAgingDetailReportDownload=function(e,i,a,s,c){this.fireTrack(t.Event.download,{referrer_card:"AR Aging Detail",sort_key:e,sort_order:i,customer_id:s,customer_name:c,current_report_date:a})},r.prototype.trackVendorReviewPage=function(e,i){this.fireTrack(t.Event.vendorReviewList,{vendor_review_source:e,vendor_review_count_total:i})},r.prototype.trackVendorReviewApproveRequested=function(e){var i=e.reviewSource,a=e.tenantName,s=e.requestedVendorName,c=e.originalVendorName,l=e.approveVendorName,u=e.approveVendorNameSelectionSource,d=e.approveVendorReason,h=e.isGlobalVendorRequested,_=e.isNewCreatedVendorRequested,v=e.isVendorNameRecommendationSelected,C=e.isVendorNameChangedAndSelected,g=e.wasRecommendationAvailable,b=e.recommendedVendorName,w=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewGlobalApproveRequest,{vendor_review_source:i,vendor_review_tenant_name:a,old_vendor_name_requested:s,old_vendor_name_original:c,approve_vendor_name_requested:l,approve_vendor_name_recommendation_reason:d,approve_vendor_name_selection_source:u,vendor_name_recommendation:b,vendor_name_recommendation_reason:w,is_vendor_recommended:g,is_recommended_vendor_name_selected:v,is_vendor_renamed:C,is_global_vendor_selected:h,is_vendor_name_new_created_and_selected:_})},r.prototype.trackVendorReviewNewVendorRequested=function(e){var i=e.reviewSource,a=e.tenantName,s=e.newRequestedVendorName,c=e.newRequestedVendorNameSource,l=e.isVendorNameRecommendationSelected,u=e.recommendedVendorName,d=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewGlobalNewVendorRequest,{vendor_review_source:i,vendor_review_tenant_name:a,new_vendor_name_requested:s,new_vendor_name_selection_source:c,new_vendor_recommendation_vendor_name:u,new_vendor_recommendation_vendor_name_reason:d,is_recommended_vendor_name_selected:l})},r.prototype.trackVendorReviewNewVendorSaved=function(e){var i=e.reviewSource,a=e.saveRequestedVendorName,s=e.saveRequestedVendorSource,c=e.isVendorNameRecommendationSelected,l=e.tenantName,u=e.recommendedVendorName,d=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewGlobalNewVendorSave,{vendor_review_source:i,vendor_review_tenant_name:l,saved_vendor_name:a,saved_vendor_name_selection_source:s,new_vendor_recommendation_vendor_name:u,new_vendor_recommendation_vendor_name_reason:d,is_recommended_vendor_name_selected:c})},r.prototype.trackVendorReviewNewVendorCanceled=function(e){var i=e.reviewSource,a=e.newRequestedVendorName,s=e.tenantName,c=e.recommendedVendorName,l=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewGlobalNewVendorCancel,{vendor_review_source:i,vendor_review_tenant_name:s,new_vendor_name_requested:a,new_vendor_recommendation_vendor_name:c,new_vendor_recommendation_vendor_name_reason:l})},r.prototype.trackVendorReviewSaveVendorRequested=function(e){var i=e.reviewSource,a=e.vendorName,s=e.vendorReviewStatus,c=e.saveRequestedVendorName,l=e.saveRequestedVendorReason,u=e.saveRequestedVendorSource,d=e.isGlobalVendorRequested,h=e.isVendorNameRetainSelected,_=e.isVendorNameRecommendationSelected,v=e.isVendorNameChangedAndSelected,C=e.wasRecommendationAvailable,g=e.isVendorNameMarkedAsEmployee,b=e.isVendorNameMarkedAsLocalContractor,w=e.recommendedVendorName,S=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewTenantSave,{vendor_review_source:i,old_vendor_name:a,review_status:s,saved_vendor_name:c,save_vendor_name_recommendation_reason:l,saved_vendor_name_source:u,vendor_name_recommendation:w,vendor_name_recommendation_reason:S,is_vendor_name_retain_selected:h,is_recommended_vendor_name_selected:_,is_global_vendor_selected:d,is_vendor_renamed:v,is_vendor_recommended:C,is_vendor_employee:g,is_vendor_contractor:b})},r.prototype.trackVendorReviewMergeInQBORedirectedOrCanceled=function(e){var i=e.reviewSource,a=e.event,s=e.vendorName,c=e.vendorReviewStatus,l=e.saveRequestedVendorName,u=e.saveRequestedVendorReason,d=e.saveRequestedVendorSource,h=e.isVendorNameRetainSelected,_=e.isVendorNameRecommendationSelected,v=e.isVendorNameChangedAndSelected,C=e.wasRecommendationAvailable,g=e.recommendedVendorName,b=e.recommendedVendorReason;this.fireTrack(a,{vendor_review_source:i,old_vendor_name:s,review_status:c,saved_vendor_name:l,save_vendor_name_recommendation_reason:u,saved_vendor_name_source:d,vendor_name_recommendation:g,vendor_name_recommendation_reason:b,is_vendor_name_retain_selected:h,is_recommended_vendor_name_selected:_,is_vendor_renamed:v,is_vendor_recommended:C})},r.prototype.trackVendorReviewRecommendationUpdateContinuedOrCanceled=function(e){var i=e.reviewSource,a=e.event,s=e.vendorName,c=e.vendorReviewStatus,l=e.saveRequestedVendorName,u=e.saveRequestedVendorReason,d=e.saveRequestedVendorSource,h=e.isVendorNameRetainSelected,_=e.isVendorNameRecommendationSelected,v=e.isVendorNameChangedAndSelected,C=e.wasRecommendationAvailable,g=e.updatedRecommendedVendorName,b=e.updatedRecommendedVendorReason,w=e.recommendedVendorName,S=e.recommendedVendorReason;this.fireTrack(a,{vendor_review_source:i,old_vendor_name:s,review_status:c,saved_vendor_name:l,save_vendor_name_recommendation_reason:u,saved_vendor_name_source:d,updated_recommendation_vendor_name:g,updated_recommendation_vendor_name_reason:b,vendor_name_recommendation:w,vendor_name_recommendation_reason:S,is_vendor_name_retain_selected:h,is_recommended_vendor_name_selected:_,is_vendor_renamed:v,is_vendor_recommended:C})},r.prototype.trackVendorReviewUpdateVendorCanceled=function(e){var i=e.reviewSource,a=e.vendorName,s=e.vendorReviewStatus,c=e.wasRecommendationAvailable,l=e.recommendedVendorName,u=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:i,old_vendor_name:a,review_status:s,vendor_name_recommendation:l,vendor_name_recommendation_reason:u,is_vendor_recommended:c})},r.prototype.trackVendorReviewWebsiteOpened=function(e){var i=e.reviewSource,a=e.vendorName,s=e.wasRecommendationAvailable,c=e.recommendedVendorName,l=e.recommendedVendorReason,u=e.vendorWebsite;this.fireTrack(t.Event.vendorReviewTenantWebsiteOpened,{vendor_review_source:i,old_vendor_name:a,vendor_name_recommendation:c,vendor_name_recommendation_reason:l,is_vendor_recommended:s,vendor_website:u})},r.prototype.trackCockpitTabClicked=function(e){var i={tab_name:e};this.fireTrack(t.Event.cockpitTabClicked,i)},r.prototype.trackCockpitHealthMonitorRowClicked=function(e,i,a,s,c,l){var u={company_id:e,company_name:i,churn_percent:l,controller_name:a,nps:s,csat:c};this.fireTrack(t.Event.cockpitHealthMonitorRowClicked,u)},r.prototype.trackHealthMonitorFiltersApplied=function(e){var i=e.filterSelection;this.fireTrack(t.Event.healthMonitorFilterApplied,{parameter:i.parameter,condition:i.condition,logic:i.logic})},r.prototype.trackCockpitHealthMonitorNotificationAlertClicked=function(e,i){var a={utm_source:e,company_id:i.companyId,company_name:i.companyName,churn_percent:i.churnProbability};this.fireTrack(t.Event.cockpitHealthMonitorNotificationAlertClicked,a)},r.prototype.trackCockpitHealthMonitorChurnFormClicked=function(e,i){var a={click_type:e,company_id:i.companyId,company_name:i.companyName,zeni_products_and_services:i.zeniProductAndServicesCount,days_to_renewal:i.daysToRenewal,nps:i.netPromoterScore,csat:i.customerSatisfactionScore,external_services_exposure:i.externalServicesExposure,runway_months:i.runwayMonths,dashboard_last_seen:i.dashBoardLastSeen,last_report_sent:i.lastReportSent,churn_percent:i.churnProbability};this.fireTrack(t.Event.cockpitHealthMonitorChurnFormClicked,a)},r.prototype.trackScheduleReviewListLoaded=function(e){var i=e.scheduleType,a=e.scheduleTab,s=e.currentTab,c=e.previousTab,l=e.scheduleCountTotal,u=e.categories,d=e.startMonth,h=e.endMonth,_=e.controllerEmails,v=e.controllerUserIds;this.fireTrack(t.Event.scheduleReviewList,{schedule_type:i,schedule_list_tab:a,schedule_count_total:l,current_tab:s,previous_tab:c,schedule_account_categories_selected:u,schedule_period_start_month:d,schedule_period_end_month:h,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsLoaded=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.scheduledTransaction,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=u.currentBalance,T=u.currentStatus,I=u.startMonth,M=u.endMonth,O=u.period,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsPage,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsSaved=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.scheduledTransaction,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=u.currentBalance,T=u.currentStatus,I=u.startMonth,M=u.endMonth,O=u.period,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsSave,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsCanceled=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.scheduledTransaction,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=u.currentBalance,T=u.currentStatus,I=u.startMonth,M=u.endMonth,O=u.period,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsCancel,{schedule_type:s,vendor_name:d??"",transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsLinkJournalEntry=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.journalEntryDetails,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=u.journalEntryMonth,R=u.journalEntryPostingDate,T=u.journalEntryTransactionAmount,I=u.journalEntryPostingStatus,M=u.journalEntryMemo,O=l.expenseCategory,N=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsLinkJournalEntry,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_category:b,schedule_class:w,journal_entry_month:S,journal_entry_posting_date:R,journal_entry_transaction_amount:T,journal_entry_posting_status:I,journal_entry_memo:M,expense_category:O,expense_class:N,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsViewJournalEntry=function(e){var i,a,s=e.scheduleType,c=e.scheduleExpenseCategoryAndClass,l=e.journalEntryDetails,u=e.fixedAssetsDetails,d=e.controllerEmails,h=e.controllerUserIds,_=l.journalEntryMonth,v=l.journalEntryPostingDate,C=l.journalEntryTransactionAmount,g=l.journalEntryPostingStatus,b=l.journalEntryMemo,w=c.expenseCategory,S=c.expenseClass;this.fireTrack(t.Event.scheduleDetailsViewJournalEntry,{schedule_type:s,journal_entry_month:_,journal_entry_posting_date:v,journal_entry_transaction_amount:C,journal_entry_posting_status:g,journal_entry_memo:b,expense_category:w,expense_class:S,accumulated_depreciation_category:(i=u?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=u?.assetId)!==null&&a!==void 0?a:null,controller_emails:d,controller_user_ids:h})},r.prototype.trackScheduleDetailsDeleted=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.scheduledTransaction,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=u.currentBalance,T=u.currentStatus,I=u.startMonth,M=u.endMonth,O=u.period,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsDelete,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsMarkedAsCompleted=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduledTransaction,u=e.scheduleExpenseCategoryAndClass,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=l.currentBalance,T=l.currentStatus,I=l.startMonth,M=l.endMonth,O=l.period,N=u.expenseCategory,F=u.expenseClass;this.fireTrack(t.Event.scheduleDetailsMarkComplete,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsJournalEntryLinkedSaved=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.journalEntryDetails,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=u.journalEntryMonth,w=u.journalEntryPostingDate,S=u.journalEntryTransactionAmount,R=u.journalEntryPostingStatus,T=u.journalEntryMemo,I=u.journalEntryQBOLink,M=u.wasRecommendationAvailable,O=u.wasRecommendationSelected,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,journal_entry_month:b,journal_entry_posting_date:w,journal_entry_transaction_amount:S,journal_entry_posting_status:R,journal_entry_qbo_link:I,journal_entry_memo:T,is_vendor_recommended:M,was_recommendation_selected:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsJournalEntryQBOFetched=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.journalEntryDetails,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=u.journalEntryMonth,w=u.journalEntryPostingDate,S=u.journalEntryTransactionAmount,R=u.journalEntryPostingStatus,T=u.journalEntryMemo,I=u.wasRecommendationAvailable,M=u.wasRecommendationSelected,O=u.journalEntryQBOLink,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,journal_entry_month:b,journal_entry_posting_date:w,journal_entry_transaction_amount:S,journal_entry_posting_status:R,journal_entry_qbo_link:O,journal_entry_memo:T,is_vendor_recommended:I,was_recommendation_selected:M,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsJournalEntryLinkCanceled=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.journalEntryDetails,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=u.journalEntryMonth,w=u.journalEntryPostingDate,S=u.journalEntryTransactionAmount,R=u.journalEntryPostingStatus,T=u.journalEntryMemo,I=u.wasRecommendationAvailable,M=u.wasRecommendationSelected,O=u.journalEntryQBOLink,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,journal_entry_month:b,journal_entry_posting_date:w,journal_entry_transaction_amount:S,journal_entry_posting_status:R,journal_entry_qbo_link:O,journal_entry_memo:T,is_vendor_recommended:I,was_recommendation_selected:M,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleAccruedDetailsNewRequested=function(e){var i=e.scheduleType;this.fireTrack(t.Event.scheduleDetailsNewRequested,{schedule_type:i})},r.prototype.trackScheduleAccruedDetailsLoaded=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.vendorName,c=e.controllerEmails,l=e.schedule,u=e.controllerUserIds,d=l.startingBalance,h=l.scheduleAccountCategory,_=l.description,v=l.scheduleCreateDate,C=l.scheduleMonthlyAmount,g=l.runningBalance,b=l.currentStatus,w=l.startMonth,S=l.endMonth,R=l.period,T=a.expenseCategory,I=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsPage,{schedule_type:i,controller_emails:c,controller_user_ids:u,schedule_expense_category:T,schedule_expense_class:I,schedule_account_category:h,schedule_create_date:v,schedule_current_balance:g,schedule_current_status:b,schedule_description:_,schedule_end_month:S,schedule_monthly_amount:C,schedule_number_of_months:R,schedule_start_month:w,schedule_starting_balance:d,vendor_name:s})},r.prototype.trackScheduleAccruedDetailsSaved=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.vendorName,c=e.controllerEmails,l=e.schedule,u=e.controllerUserIds,d=l.startingBalance,h=l.scheduleAccountCategory,_=l.description,v=l.scheduleCreateDate,C=l.scheduleMonthlyAmount,g=l.runningBalance,b=l.currentStatus,w=l.startMonth,S=l.endMonth,R=l.period,T=a.expenseCategory,I=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsSave,{schedule_type:i,controller_emails:c,controller_user_ids:u,schedule_expense_category:T,schedule_expense_class:I,schedule_account_category:h,schedule_create_date:v,schedule_current_balance:g,schedule_current_status:b,schedule_description:_,schedule_end_month:S,schedule_monthly_amount:C,schedule_number_of_months:R,schedule_start_month:w,schedule_starting_balance:d,vendor_name:s})},r.prototype.trackScheduleAccruedDetailsCanceled=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.vendorName,c=e.controllerEmails,l=e.schedule,u=e.controllerUserIds,d=e.lastPostedScheduleMonth,h=l.startingBalance,_=l.scheduleAccountCategory,v=l.description,C=l.scheduleCreateDate,g=l.scheduleMonthlyAmount,b=l.runningBalance,w=l.currentStatus,S=l.startMonth,R=l.endMonth,T=l.period,I=a.expenseCategory,M=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsCancel,{schedule_type:i,controller_emails:c,controller_user_ids:u,schedule_expense_category:I,schedule_expense_class:M,schedule_account_category:_,schedule_create_date:C,schedule_current_balance:b,schedule_current_status:w,schedule_description:v,schedule_end_month:R,schedule_monthly_amount:g,schedule_number_of_months:T,schedule_start_month:S,schedule_starting_balance:h,vendor_name:s,schedule_last_month_with_posted_status:d})},r.prototype.trackScheduleAccruedDetailsDeleted=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.vendorName,c=e.controllerEmails,l=e.schedule,u=e.controllerUserIds,d=e.scheduleNonPendingLastMonth,h=e.scheduleNonPendingLastMonthStatus,_=l.startingBalance,v=l.scheduleAccountCategory,C=l.description,g=l.scheduleCreateDate,b=l.scheduleMonthlyAmount,w=l.runningBalance,S=l.currentStatus,R=l.startMonth,T=l.endMonth,I=l.period,M=a.expenseCategory,O=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsDelete,{schedule_type:i,controller_emails:c,controller_user_ids:u,schedule_expense_category:M,schedule_expense_class:O,schedule_account_category:v,schedule_create_date:g,schedule_current_balance:w,schedule_current_status:S,schedule_description:C,schedule_end_month:T,schedule_monthly_amount:b,schedule_number_of_months:I,schedule_start_month:R,schedule_starting_balance:_,vendor_name:s,schedule_non_pending_last_month:d,schedule_non_pending_last_month_status:h})},r.prototype.trackScheduleAccruedDetailsLinkJournalEntry=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=l.journalEntryMonth,_=l.journalEntryAmount,v=l.journalEntryBalance,C=l.journalEntryPostingStatus,g=s.scheduleCreateDate,b=s.scheduleMonthlyAmount,w=s.currentStatus,S=s.description,R=s.endMonth,T=s.period,I=s.runningBalance,M=s.scheduleAccountCategory,O=s.startMonth,N=s.startingBalance,F=a.expenseCategory,$=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:i,schedule_create_date:g,vendor_name:c,schedule_monthly_amount:b,schedule_description:S,schedule_current_status:w,schedule_start_month:O,schedule_end_month:R,schedule_number_of_months:T,schedule_current_balance:I,schedule_starting_balance:N,schedule_account_category:M,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:v,schedule_entry_expense_link_month:h,schedule_entry_current_status:C,schedule_expense_category:F,schedule_expense_class:$,controller_emails:u,controller_user_ids:d})},r.prototype.trackScheduleAccruedDetailsViewJournalEntry=function(e){var i=e.scheduleType,a=e.scheduleJournalEntryType,s=e.scheduleExpenseCategoryAndClass,c=e.schedule,l=e.vendorName,u=e.journalEntryDetails,d=e.controllerEmails,h=e.controllerUserIds,_=u.journalEntryMonth,v=u.journalEntryAmount,C=u.journalEntryBalance,g=u.journalEntryPostingStatus,b=c.scheduleCreateDate,w=c.scheduleMonthlyAmount,S=c.currentStatus,R=c.description,T=c.endMonth,I=c.period,M=c.runningBalance,O=c.scheduleAccountCategory,N=c.startMonth,F=c.startingBalance,$=s.expenseCategory,z=s.expenseClass;this.fireTrack(t.Event.scheduleDetailsViewJournalEntry,{schedule_type:i,schedule_journal_entry_type:a,schedule_create_date:b,vendor_name:l,schedule_monthly_amount:w,schedule_account_category:O,schedule_description:R,schedule_current_status:S,schedule_start_month:N,schedule_end_month:T,schedule_number_of_months:I,schedule_expense_category:$,schedule_expense_class:z,schedule_current_balance:M,schedule_starting_balance:F,schedule_entry_current_status:g,schedule_entry_expense_link_amount:v,schedule_entry_expense_link_balance:C,schedule_entry_expense_link_month:_,controller_emails:d,controller_user_ids:h})},r.prototype.trackScheduleAccruedDetailsJournalEntryViewLinkedExpense=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=l.journalEntryMonth,_=l.journalEntryAmount,v=l.journalEntryBalance,C=l.journalEntryPostingStatus,g=s.scheduleCreateDate,b=s.scheduleMonthlyAmount,w=s.currentStatus,S=s.description,R=s.endMonth,T=s.period,I=s.runningBalance,M=s.scheduleAccountCategory,O=s.startMonth,N=s.startingBalance,F=a.expenseCategory,$=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:i,schedule_create_date:g,vendor_name:c,schedule_monthly_amount:b,schedule_account_category:M,schedule_description:S,schedule_current_status:w,schedule_start_month:O,schedule_end_month:R,schedule_number_of_months:T,schedule_expense_category:F,schedule_expense_class:$,schedule_current_balance:I,schedule_starting_balance:N,schedule_entry_current_status:C,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:v,schedule_entry_expense_link_month:h,controller_emails:u,controller_user_ids:d})},r.prototype.trackScheduleAccruedDetailsJournalEntryLinkCanceled=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=l.journalEntryMonth,_=l.journalEntryAmount,v=l.journalEntryBalance,C=l.journalEntryPostingStatus,g=s.scheduleCreateDate,b=s.scheduleMonthlyAmount,w=s.currentStatus,S=s.description,R=s.endMonth,T=s.period,I=s.runningBalance,M=s.scheduleAccountCategory,O=s.startMonth,N=s.startingBalance,F=a.expenseCategory,$=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsEntryCanceled,{schedule_type:i,schedule_create_date:g,vendor_name:c,schedule_monthly_amount:b,schedule_description:S,schedule_current_status:w,schedule_start_month:O,schedule_end_month:R,schedule_number_of_months:T,schedule_current_balance:I,schedule_starting_balance:N,schedule_account_category:M,schedule_entry_expense_link_month:h,schedule_expense_category:F,schedule_expense_class:$,schedule_entry_current_status:C,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:v,controller_emails:u,controller_user_ids:d})},r.prototype.trackScheduleAccruedDetailsJournalEntryLinkedLoaded=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=s.currentStatus,_=s.description,v=s.endMonth,C=s.period,g=s.runningBalance,b=s.scheduleAccountCategory,w=s.scheduleCreateDate,S=s.scheduleMonthlyAmount,R=s.startMonth,T=s.startingBalance,I=l.wasRecommendationAvailable,M=l.journalEntryPostingStatus,O=a.expenseCategory,N=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:i,vendor_name:c,schedule_create_date:w,schedule_monthly_amount:S,schedule_description:_,schedule_current_status:h,schedule_start_month:R,schedule_end_month:v,schedule_number_of_months:C,schedule_current_balance:g,schedule_starting_balance:T,schedule_account_category:b,schedule_expense_category:O,schedule_expense_class:N,controller_emails:u,schedule_entry_current_status:M,controller_user_ids:d,is_vendor_recommended:I})},r.prototype.trackScheduleAccruedDetailsJournalEntryLinkedSaved=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.transactionDetails,u=e.journalEntryDetails,d=e.controllerEmails,h=e.controllerUserIds,_=s.currentStatus,v=s.description,C=s.endMonth,g=s.period,b=s.runningBalance,w=s.scheduleAccountCategory,S=s.scheduleCreateDate,R=s.scheduleMonthlyAmount,T=s.startMonth,I=s.startingBalance,M=u.wasRecommendationAvailable,O=u.wasRecommendationSelected,N=u.journalEntryPostingStatus,F=l.linkedTransactionAmount,$=l.linkedTransactionDate,z=l.linkedTransactionDescription,ee=l.linkedTransactionType,Te=a.expenseCategory,te=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:i,vendor_name:c,schedule_create_date:S,schedule_monthly_amount:R,schedule_description:v,schedule_current_status:_,schedule_start_month:T,schedule_end_month:C,schedule_number_of_months:g,schedule_current_balance:b,schedule_starting_balance:I,schedule_account_category:w,schedule_expense_category:Te,schedule_expense_class:te,controller_emails:d,controller_user_ids:h,is_vendor_recommended:M,was_recommendation_selected:O,linked_transaction_amount:F,linked_transaction_date:$,schedule_entry_current_status:N,linked_transaction_description:z,linked_transaction_type:ee})},r.prototype.trackScheduleAccruedDetailsJournalEntryLinkedCanceled=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=s.currentStatus,_=s.description,v=s.endMonth,C=s.period,g=s.runningBalance,b=s.scheduleAccountCategory,w=s.scheduleCreateDate,S=s.scheduleMonthlyAmount,R=s.startMonth,T=s.startingBalance,I=l.wasRecommendationAvailable,M=l.journalEntryPostingStatus,O=a.expenseCategory,N=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:i,vendor_name:c,schedule_create_date:w,schedule_monthly_amount:S,schedule_description:_,schedule_current_status:h,schedule_start_month:R,schedule_end_month:v,schedule_number_of_months:C,schedule_current_balance:g,schedule_starting_balance:T,schedule_account_category:b,schedule_expense_category:O,schedule_expense_class:N,controller_emails:u,controller_user_ids:d,schedule_entry_current_status:M,is_vendor_recommended:I})},r.prototype.trackCockpitTaskCardClicked=function(e){var i=e.tenantName,a=e.tenantId,s=e.user,c=e.controllerEmails;this.fireTrack(t.Event.cockpitTaskCardClicked,{tenant_name:i,tenant_id:a,user_name:s.name,user_email:s.email,user_role:s.role,controller_emails:c})},r.prototype.trackTaskEdited=function(e){var i=e.tenantName,a=e.taskId,s=e.activity,c=e.createdBy,l=e.commentsCreated,u=s.details,d=u.name,h=u.description,_=u.status,v=u.priority,C=u.assignees,g=u.numberOfAttachments,b=u.tags,w=u.dueDate;this.fireTrack(t.Event.taskEdited,{tenant_name:i,task_id:a,created_by:c,activity_count:s.count,activity_type:{name:d,description:h,status:_,priority:v,assignees:C,file_attached_count:g,tags:b,due_date:w},activity_by_user:s.byUser,comment_created:l})},r.prototype.trackTaskCreated=function(e){var i=e.tenantName,a=e.taskId,s=e.newButtonClicked,c=e.activity,l=e.createdBy,u=c.details,d=u.name,h=u.description,_=u.status,v=u.priority,C=u.assignees,g=u.numberOfAttachments,b=u.tags,w=u.dueDate;this.fireTrack(t.Event.newTaskRequested,{tenant_name:i,task_id:a,created_by:l,new_task_button_clicked:s,file_attached_count:g,assignees:C,priority_set:v,task_name:d,task_description:h,task_status:_,tag_name:b?b.join(","):null,task_due_date:w})},r.prototype.trackRewardsPageClicked=function(e){this.fireTrack(t.Event.rewardsPageClicked,{click_type:e})},r.prototype.trackDashboardCardClicked=function(e,i){this.fireTrack(t.Event.dashboardCardClicked,{click_type:e,card_position:i})},r.prototype.trackInviteEmailClicked=function(e,i,a,s){this.fireTrack(t.Event.inviteEmailClicked,{click_type:e,referred_company:i,referred_email:a,invitee_count:s})},r.prototype.trackGetAuditScore=function(e,i,a,s,c){this.fireTrack(t.Event.getAuditScore,{clicked:e,tenant:i,report_month:a,controller_name:s,report_timestamp:c})},r.prototype.trackAuditScorePercentage=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.auditScorePercentage,{report_timestamp:e,report_month:i,score_percentage:a,issue_type:c,tenant:s,controller_name:u,customer_group:d,no_of_issues:l})},r.prototype.trackAuditIssuesClicked=function(e,i,a,s){this.fireTrack(t.Event.auditIssuesClicked,{clicked_issue:e,tenant:i,controller_name:a,created_at:s})},r.prototype.trackZeniAssistClick=function(e,i,a,s,c){this.fireTrack(t.Event.zeniAssistClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackRetryClick=function(e,i,a,s,c){this.fireTrack(t.Event.retryClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackRetryConfirmClick=function(e,i,a,s,c){this.fireTrack(t.Event.retryConfirmClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackRefundClick=function(e,i,a,s,c){this.fireTrack(t.Event.refundClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackRefundConfirmClick=function(e,i,a,s,c){this.fireTrack(t.Event.refundConfirmClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackVendor1099DetailSave=function(e){this.fireTrack(t.Event.vendor1099DetailsSave,{vendor_legal_name:e})},r.prototype.trackVendor1099ReportDownload=function(e){this.fireTrack(t.Event.vendor1099ReportDownload,{report:e.includes("All")?"All":e.toUpperCase()})},r.prototype.trackEnableIntlWire=function(e){this.fireTrack(t.Event.enableIntlWire,{local_currency_enabled:e})},r.prototype.trackSubmitIntlWire=function(e){this.fireTrack(t.Event.submitIntlWire,{local_currency_enabled:e})},r.prototype.trackIntlWirePaymentSelect=function(e,i,a,s,c){this.fireTrack(t.Event.intlWirePaymentMethod,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,local_currency_enabled:c})},r.prototype.trackMonthEndCloseClicked=function(e,i,a){this.fireTrack(t.Event.monthCloseClicked,{month_year:"".concat(e,"-").concat(i),source:a})},r.prototype.trackMonthCloseAuditPage=function(e,i,a,s,c,l){this.fireTrack(t.Event.monthCloseAuditPage,{month_year:"".concat(e,"-").concat(i),audit_score:s,refresh_clicked:c,status:a,source:l})},r.prototype.trackTransactionsReviewPage=function(e,i,a,s,c,l){this.fireTrack(t.Event.transactionsReview,{month_year:"".concat(e,"-").concat(i),refresh_clicked:c,number_of_transactions:a,transaction_updates:s,source:l})},r.prototype.trackTransactionsAutoCategorisedPage=function(e,i,a,s,c,l){this.fireTrack(t.Event.transactionsAutoCategorised,{month_year:"".concat(e,"-").concat(i),refresh_clicked:c,number_of_transactions:a,transaction_updates:s,source:l})},r.prototype.trackMonthCloseScheduleListPage=function(e,i,a,s,c,l){this.fireTrack(t.Event.monthCloseScheduleList,{month_year:"".concat(e,"-").concat(i),refresh_clicked:a,number_of_recommendations:s,failed_postings:c,source:l})},r.prototype.trackFluxAnalysisPage=function(e,i,a,s,c){this.fireTrack(t.Event.fluxAnalysis,{month_year:"".concat(e,"-").concat(i),refresh_clicked:a,open_items:s,source:c})},r.prototype.trackFluxAnalysisReviewed=function(e,i,a,s){this.fireTrack(t.Event.fluxAnalysisReviewed,{month_year:"".concat(e,"-").concat(i),number_of_items_reviewed:s.length,is_bulk_update:a})},r.prototype.trackMissingReceiptsPage=function(e,i,a,s,c){this.fireTrack(t.Event.missingReceipts,{month_year:"".concat(e,"-").concat(i),number_of_transactions:s,refresh_clicked:a,source:c})},r.prototype.trackMissingReceiptAttached=function(e,i){this.fireTrack(t.Event.missingReceipts,{month_year:"".concat(e,"-").concat(i),is_attached:!0})},r.prototype.trackInsightsEmailPage=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.insightsEmail,{month_year:"".concat(e,"-").concat(i),refresh_clicked:a,email_status:s,audit_score:c,date:l,source:u})},r.prototype.trackCommentAdded=function(e,i,a,s,c,l){this.fireTrack(t.Event.commentAdded,{page_name:e,commented_on:i,comment_type:a,tenant:s,controller_name:c,created_by:l})},r.prototype.trackCommentActivity=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.commentActivity,{page_name:e,comment_activity_type:i,tenant:a,controller_name:s,status:c,created_by:l,comment_activity_source:u})},r.prototype.trackSendMoneyClick=function(){this.fireTrack(t.Event.sendMoneyClick)},r.prototype.trackExpressPayNextClick=function(e){this.fireTrack(t.Event.expressPayNextClick,{stage:e})},r.prototype.trackExpressPayScheduleClick=function(){this.fireTrack(t.Event.expressPayScheduleClick)},r.prototype.trackLowBalanceAccountSelected=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountSelected,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountSentForApproval=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountSentForApproval,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountApprove=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountApprove,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountReject=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountReject,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountChange=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountChange,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountSchedule=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountSchedule,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackVendorOperatingExpenses=function(e,i){this.fireTrack(t.Event.vendorOperatingExpenses,{current_tab:e,previous_tab:i})},r.prototype.trackVendorOperatingExpensesPageLoaded=function(e){this.fireTrack(t.Event.vendorOperatingExpensesPageLoaded,{source:e})},r.prototype.trackAICFOChatScreenStateChanged=function(e,i,a,s){this.fireTrack(t.Event.aiCFOChatScreenStateChanged,{action:e,chat_source:i,chat_session_id:a,chat_session_title:s})},r.prototype.trackAICFOChatSessionChanged=function(e,i,a,s){this.fireTrack(t.Event.aiCFOChatSessionChanged,{action:e,chat_source:i,chat_session_id:a,chat_session_title:s})},r.prototype.trackAICFOChatSubmitted=function(e,i,a,s,c,l){this.fireTrack(t.Event.aiCFOChatSubmitted,{question_text:e,chat_source:i,chat_session_id:a,chat_message_id:c,chat_session_title:s,index:l})},r.prototype.trackAICFOChatFeedbackGiven=function(e,i,a,s,c){this.fireTrack(t.Event.aiCFOChatFeedbackGiven,{feedback_type:e,question_text:i,chat_session_id:a,chat_message_id:c,chat_session_title:s})},r.prototype.trackAICFOChatResponseGenerated=function(e,i,a,s,c,l){this.fireTrack(t.Event.aiCFOChatResponseGenerated,{response_type:e,question_text:i,response_text:a,chat_session_id:s,chat_message_id:l,chat_session_title:c})},r.prototype.trackAICFOChatAnswerGenerated=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.aiCFOChatAnswerGenerated,{has_visualization:l,visualization_type:u,has_follow_up_questions:a,has_assumptions:s,response_text:e,has_insights:c,question_text:i,chat_session_id:d,chat_message_id:_,chat_session_title:h})},r.prototype.trackAICFOOnboardingScreenStateChanged=function(e,i){this.fireTrack(t.Event.aiCFOOnboardingScreenStateChanged,{action:e,ai_cfo_onboarding_source:i})},r.prototype.trackAICFOPrivacyPolicy=function(){this.fireTrack(t.Event.aiCFOPrivacyPolicy)},r.prototype.trackAICFOAgreement=function(){this.fireTrack(t.Event.aiCFOAgreement)},r.prototype.trackTreasuryNavPromoClick=function(e){this.fireTrack(t.Event.treasuryNavPromoClick,{clicked_on:e})},r.prototype.trackTreasuryPromoView=function(e){this.fireTrack(t.Event.treasuryPromoView,{page_name:e})},r.prototype.trackTreasurySetupActionClick=function(e){this.fireTrack(t.Event.treasurySetupActionClick,{action_type:e})},r.prototype.trackTreasuryProspectusClick=function(e,i,a){this.fireTrack(t.Event.treasuryProspectusClick,{fund_name:e,fund_ticker:i,page_name:a})},r.prototype.trackTreasuryCalculatorClick=function(e,i){this.fireTrack(t.Event.treasuryCalculatorClick,{page_name:e,amount:i})},r.prototype.trackTreasuryAgreementView=function(){this.fireTrack(t.Event.treasuryAgreementView)},r.prototype.trackTreasuryAllocationAction=function(e,i){this.fireTrack(t.Event.treasuryAllocationAction,{action_type:e,fund_percentage:i})},r.prototype.trackTreasuryRiskAction=function(e,i,a){this.fireTrack(t.Event.treasuryRiskAction,{action_type:e,risk_score:i,fund_percentage:a})},r.prototype.trackTreasuryVerificationNavigation=function(e,i){this.fireTrack(t.Event.treasuryVerificationNavigation,{clicked_on:e,verification_status:i})},r.prototype.trackTreasuryTransferAction=function(e,i,a,s,c){this.fireTrack(t.Event.treasuryTransferAction,{clicked_on:e,from_account:i,to_account:a,amount:s,fund_percentage:c})},r.prototype.trackTreasuryDashboardInteraction=function(e){this.fireTrack(t.Event.treasuryDashboardInteraction,{clicked_on:e})},r.prototype.trackTreasuryPortfolioConfirm=function(e,i){this.fireTrack(t.Event.treasuryPortfolioConfirm,{risk_score:e,fund_percentage:i})},r.prototype.trackTransactionCotView=function(e){var i=e.recommendationFor,a=e.currentValue,s=e.recommendation,c=e.recommendationCot,l=e.isRecommendationCotAvailable,u=e.recommendationReason,d=e.recommendationConfidenceLevel,h=e.alternativeRecommendation,_=e.alternativeRecommendationCot,v=e.isAlternativeRecommendationCotAvailable,C=e.alternativeRecommendationReason,g=e.alternativeRecommendationConfidenceLevel,b=e.transactionPage,w=e.transactionCurrentStatus,S=e.recommendationConfidencePercentage,R=e.alternativeRecommendationConfidencePercentage;this.fireTrack(t.Event.transactionCotView,{recommendation_for:i,current_value:a,recommendation:s,recommendation_cot:c,is_recommendation_cot_available:l,recommendation_reason:u,recommendation_confidence_percentage:S,recommendation_confidence_level:d,alternative_recommendation:h,alternative_recommendation_cot:_,is_alternative_recommendation_cot_available:v,alternative_recommendation_reason:C,alternative_recommendation_confidence_percentage:R,alternative_recommendation_confidence_level:g,transaction_page:b,transaction_current_status:w})},r.prototype.trackTransactionCotDropdownView=function(e){var i=e.recommendationType,a=e.recommendationFor,s=e.currentValue,c=e.recommendation,l=e.recommendationCot,u=e.isRecommendationCotAvailable,d=e.recommendationReason,h=e.recommendationConfidenceLevel,_=e.transactionPage,v=e.transactionCurrentStatus,C=e.recommendationConfidencePercentage;this.fireTrack(t.Event.transactionCotDropdownView,{recommendation_type:i,recommendation_for:a,current_value:s,recommendation:c,recommendation_cot:l,is_recommendation_cot_available:u,recommendation_reason:d,recommendation_confidence_percentage:C,recommendation_confidence_level:h,transaction_current_status:v,transaction_page:_})},r.prototype.trackTransactionCotViewAlternative=function(e){var i=e.alternativeRecommendationFor,a=e.alternativeRecommendation,s=e.alternativeRecommendationCot,c=e.isAlternativeRecommendationCotAvailable,l=e.alternativeRecommendationReason,u=e.alternativeRecommendationConfidenceLevel,d=e.transactionPage,h=e.transactionCurrentStatus,_=e.alternativeRecommendationConfidencePercentage;this.fireTrack(t.Event.transactionCotViewAlternative,{alternative_recommendation_for:i,alternative_recommendation:a,alternative_recommendation_cot:s,is_alternative_recommendation_cot_available:c,alternative_recommendation_reason:l,alternative_recommendation_confidence_percentage:_,alternative_recommendation_confidence_level:u,transaction_current_status:h,transaction_page:d})},r.prototype.trackTransactionCotViewRecommended=function(e){var i=e.recommendationFor,a=e.currentValue,s=e.recommendation,c=e.recommendationCot,l=e.isRecommendationCotAvailable,u=e.recommendationReason,d=e.recommendationConfidenceLevel,h=e.recommendationConfidencePercentage;this.fireTrack(t.Event.transactionCotViewRecommended,{recommendation_for:i,current_value:a,recommendation:s,recommendation_cot:c,is_recommendation_cot_available:l,recommendation_reason:u,recommendation_confidence_percentage:h,recommendation_confidence_level:d})},r.prototype.trackAIPerfHome=function(e){this.fireTrack(t.Event.aiPerfHome,{perf_snapshot:e})},r.prototype.trackAIPerfRefresh=function(e){this.fireTrack(t.Event.aiPerfRefresh,{perf_snapshot:e})},r.prototype.trackAIPerfTimePeriodSelect=function(e){this.fireTrack(t.Event.aiPerfTimePeriodSelect,{perf_snapshot:e})},r.prototype.fireTrack=function(e,i){var a=Object.assign({},this.superProperties,i);this.provider.track(e,a)},r}();return Yt.Analytics=o,Yt}var kc;function bg(){return kc||(kc=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.Event=n.Analytics=void 0;var t=vg();Object.defineProperty(n,"Analytics",{enumerable:!0,get:function(){return t.Analytics}});var o=ad();Object.defineProperty(n,"Event",{enumerable:!0,get:function(){return o.Event}})}(uo)),uo}export{Dt as B,yg as m,bg as r};
73
+ `);var t="",o,r,e=0,i;for(o=r=0,e=n.length,i=0;i<e;i++){var a=n.charCodeAt(i),s=null;a<128?r++:a>127&&a<2048?s=String.fromCharCode(a>>6|192,a&63|128):s=String.fromCharCode(a>>12|224,a>>6&63|128,a&63|128),s!==null&&(r>o&&(t+=n.substring(o,r)),t+=s,o=r=i+1)}return r>o&&(t+=n.substring(o,n.length)),t};m.UUID=function(){try{return B.crypto.randomUUID()}catch{for(var n=new Array(36),t=0;t<36;t++)n[t]=Math.floor(Math.random()*16);return n[14]=4,n[19]=n[19]&=-5,n[19]=n[19]|=8,n[8]=n[13]=n[18]=n[23]="-",m.map(n,function(r){return r.toString(16)}).join("")}};var oc=["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"];m.isBlockedUA=function(n){var t;for(n=n.toLowerCase(),t=0;t<oc.length;t++)if(n.indexOf(oc[t])!==-1)return!0;return!1};m.HTTPBuildQuery=function(n,t){var o,r,e=[];return m.isUndefined(t)&&(t="&"),m.each(n,function(i,a){o=encodeURIComponent(i.toString()),r=encodeURIComponent(a),e[e.length]=r+"="+o}),e.join(t)};m.getQueryParam=function(n,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+t+"=([^&#]*)",r=new RegExp(o),e=r.exec(n);if(e===null||e&&typeof e[1]!="string"&&e[1].length)return"";var i=e[1];try{i=decodeURIComponent(i)}catch{J.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")};m.cookie={get:function(n){for(var t=n+"=",o=W.cookie.split(";"),r=0;r<o.length;r++){for(var e=o[r];e.charAt(0)==" ";)e=e.substring(1,e.length);if(e.indexOf(t)===0)return decodeURIComponent(e.substring(t.length,e.length))}return null},parse:function(n){var t;try{t=m.JSONDecode(m.cookie.get(n))||{}}catch{}return t},set_seconds:function(n,t,o,r,e,i,a){var s="",c="",l="";if(a)s="; domain="+a;else if(r){var u=ac(W.location.hostname);s=u?"; domain=."+u:""}if(o){var d=new Date;d.setTime(d.getTime()+o*1e3),c="; expires="+d.toGMTString()}i&&(e=!0,l="; SameSite=None"),e&&(l+="; secure"),W.cookie=n+"="+encodeURIComponent(t)+c+"; path=/"+s+l},set:function(n,t,o,r,e,i,a){var s="",c="",l="";if(a)s="; domain="+a;else if(r){var u=ac(W.location.hostname);s=u?"; domain=."+u:""}if(o){var d=new Date;d.setTime(d.getTime()+o*24*60*60*1e3),c="; expires="+d.toGMTString()}i&&(e=!0,l="; SameSite=None"),e&&(l+="; secure");var h=n+"="+encodeURIComponent(t)+c+"; path=/"+s+l;return W.cookie=h,h},remove:function(n,t,o){m.cookie.set(n,"",-1,t,!1,!1,o)}};var kl=function(n){var t=!0;try{var o="__mplss_"+Oa(8),r="xyz";n.setItem(o,r),n.getItem(o)!==r&&(t=!1),n.removeItem(o)}catch{t=!1}return t},oo=null,nn=function(n,t){return oo!==null&&!t?oo:oo=kl(n||B.localStorage)},ao=null,rv=function(n,t){return ao!==null&&!t?ao:ao=kl(n||B.sessionStorage)};function wl(n,t,o){var r=function(e){J.error(t+" error: "+e)};return{is_supported:function(e){var i=o(n,e);return i||J.error(t+" unsupported"),i},error:r,get:function(e){try{return n.getItem(e)}catch(i){r(i)}return null},parse:function(e){try{return m.JSONDecode(n.getItem(e))||{}}catch{}return null},set:function(e,i){try{n.setItem(e,i)}catch(a){r(a)}},remove:function(e){try{n.removeItem(e)}catch(i){r(i)}}}}m.localStorage=wl(B.localStorage,"localStorage",nn);m.sessionStorage=wl(B.sessionStorage,"sessionStorage",rv);m.register_event=function(){var n=function(r,e,i,a,s){if(!r){J.error("No valid element provided to register_event");return}if(r.addEventListener&&!a)r.addEventListener(e,i,!!s);else{var c="on"+e,l=r[c];r[c]=t(r,i,l)}};function t(r,e,i){var a=function(s){if(s=s||o(B.event),!!s){var c=!0,l,u;return m.isFunction(i)&&(l=i(s)),u=e.call(r,s),(l===!1||u===!1)&&(c=!1),c}};return a}function o(r){return r&&(r.preventDefault=o.preventDefault,r.stopPropagation=o.stopPropagation),r}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},n}();var nv=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');m.dom_query=function(){function n(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function o(e,i){var a=" "+i+" ";return(" "+e.className+" ").replace(t," ").indexOf(a)>=0}function r(e){if(!W.getElementsByTagName)return[];var i=e.split(" "),a,s,c,l,u,d,h,_,v,C,g=[W];for(d=0;d<i.length;d++){if(a=i[d].replace(/^\s+/,"").replace(/\s+$/,""),a.indexOf("#")>-1){s=a.split("#"),c=s[0];var b=s[1],w=W.getElementById(b);if(!w||c&&w.nodeName.toLowerCase()!=c)return[];g=[w];continue}if(a.indexOf(".")>-1){s=a.split("."),c=s[0];var S=s[1];for(c||(c="*"),l=[],u=0,h=0;h<g.length;h++)for(c=="*"?v=n(g[h]):v=g[h].getElementsByTagName(c),_=0;_<v.length;_++)l[u++]=v[_];for(g=[],C=0,h=0;h<l.length;h++)l[h].className&&m.isString(l[h].className)&&o(l[h],S)&&(g[C++]=l[h]);continue}var R=a.match(nv);if(R){c=R[1];var T=R[2],I=R[3],M=R[4];for(c||(c="*"),l=[],u=0,h=0;h<g.length;h++)for(c=="*"?v=n(g[h]):v=g[h].getElementsByTagName(c),_=0;_<v.length;_++)l[u++]=v[_];g=[],C=0;var O;switch(I){case"=":O=function(N){return N.getAttribute(T)==M};break;case"~":O=function(N){return N.getAttribute(T).match(new RegExp("\\b"+M+"\\b"))};break;case"|":O=function(N){return N.getAttribute(T).match(new RegExp("^"+M+"-?"))};break;case"^":O=function(N){return N.getAttribute(T).indexOf(M)===0};break;case"$":O=function(N){return N.getAttribute(T).lastIndexOf(M)==N.getAttribute(T).length-M.length};break;case"*":O=function(N){return N.getAttribute(T).indexOf(M)>-1};break;default:O=function(N){return N.getAttribute(T)}}for(g=[],C=0,h=0;h<l.length;h++)O(l[h])&&(g[C++]=l[h]);continue}for(c=a,l=[],u=0,h=0;h<g.length;h++)for(v=g[h].getElementsByTagName(c),_=0;_<v.length;_++)l[u++]=v[_];g=l}return g}return function(e){return m.isElement(e)?[e]:m.isObject(e)&&!m.isUndefined(e.length)?e:r.call(this,e)}}();var iv=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ov=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];m.info={campaignParams:function(n){var t="",o={};return m.each(iv,function(r){t=m.getQueryParam(W.URL,r),t.length?o[r]=t:n!==void 0&&(o[r]=n)}),o},clickParams:function(){var n="",t={};return m.each(ov,function(o){n=m.getQueryParam(W.URL,o),n.length&&(t[o]=n)}),t},marketingParams:function(){return m.extend(m.info.campaignParams(),m.info.clickParams())},searchEngine:function(n){return n.search("https?://(.*)google.([^/?]*)")===0?"google":n.search("https?://(.*)bing.com")===0?"bing":n.search("https?://(.*)yahoo.com")===0?"yahoo":n.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(n){var t=m.info.searchEngine(n),o=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var e=m.getQueryParam(n,o);e.length&&(r.mp_keyword=e)}return r},browser:function(n,t,o){return t=t||"",o||m.includes(n," OPR/")?m.includes(n,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(n)?"BlackBerry":m.includes(n,"IEMobile")||m.includes(n,"WPDesktop")?"Internet Explorer Mobile":m.includes(n,"SamsungBrowser/")?"Samsung Internet":m.includes(n,"Edge")||m.includes(n,"Edg/")?"Microsoft Edge":m.includes(n,"FBIOS")?"Facebook Mobile":m.includes(n,"Whale/")?"Whale Browser":m.includes(n,"Chrome")?"Chrome":m.includes(n,"CriOS")?"Chrome iOS":m.includes(n,"UCWEB")||m.includes(n,"UCBrowser")?"UC Browser":m.includes(n,"FxiOS")?"Firefox iOS":m.includes(t,"Apple")?m.includes(n,"Mobile")?"Mobile Safari":"Safari":m.includes(n,"Android")?"Android Mobile":m.includes(n,"Konqueror")?"Konqueror":m.includes(n,"Firefox")?"Firefox":m.includes(n,"MSIE")||m.includes(n,"Trident/")?"Internet Explorer":m.includes(n,"Gecko")?"Mozilla":""},browserVersion:function(n,t,o){var r=m.info.browser(n,t,o),e={"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=e[r];if(i===void 0)return null;var a=n.match(i);return a?parseFloat(a[a.length-2]):null},os:function(){var n=ut;return/Windows/i.test(n)?/Phone/.test(n)||/WPDesktop/.test(n)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(n)?"iOS":/Android/.test(n)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(n)?"BlackBerry":/Mac/i.test(n)?"Mac OS X":/Linux/.test(n)?"Linux":/CrOS/.test(n)?"Chrome OS":""},device:function(n){return/Windows Phone/i.test(n)||/WPDesktop/.test(n)?"Windows Phone":/iPad/.test(n)?"iPad":/iPod/.test(n)?"iPod Touch":/iPhone/.test(n)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(n)?"BlackBerry":/Android/.test(n)?"Android":""},referringDomain:function(n){var t=n.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return B.location.href},properties:function(n){return typeof n!="object"&&(n={}),m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(ut,bt.vendor,Dr),$referrer:W.referrer,$referring_domain:m.info.referringDomain(W.referrer),$device:m.info.device(ut)}),{$current_url:m.info.currentUrl(),$browser_version:m.info.browserVersion(ut,bt.vendor,Dr),$screen_height:tc.height,$screen_width:tc.width,mp_lib:"web",$lib_version:Je.LIB_VERSION,$insert_id:Oa(),time:m.timestamp()/1e3},m.strip_empty_properties(n))},people_properties:function(){return m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(ut,bt.vendor,Dr)}),{$browser_version:m.info.browserVersion(ut,bt.vendor,Dr)})},mpPageViewProperties:function(){return m.strip_empty_properties({current_page_title:W.title,current_domain:B.location.hostname,current_url_path:B.location.pathname,current_url_protocol:B.location.protocol,current_url_search:B.location.search})}};var av=function(n,t){var o=null,r=[];return function(e){var i=this;return r.push(e),o||(o=new Q(function(a){setTimeout(function(){var s=n.apply(i,[r]);o=null,r=[],a(s)},t)})),o}},Oa=function(n){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return n?t.substring(0,n):t},sv=function(){var n=m.UUID().replace(/-/g,""),t=m.UUID().replace(/-/g,"").substring(0,16),o="01";return"00-"+n+"-"+t+"-"+o},cv=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,uv=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ac=function(n){var t=uv,o=n.split("."),r=o[o.length-1];(r.length>4||r==="com"||r==="org")&&(t=cv);var e=n.match(t);return e?e[0]:""},lv=function(){var n=B.navigator.onLine;return m.isUndefined(n)||n},Mt=function(){},Sr=null,li=null;typeof JSON<"u"&&(Sr=JSON.stringify,li=JSON.parse);Sr=Sr||m.JSONEncode;li=li||m.JSONDecode;var dv=function(n,t,o){if(!B.CompressionStream)return!1;var r=m.info.browser(n,t,o),e=m.info.browserVersion(n,t,o);return!((r==="Safari"||r==="Mobile Safari")&&e>=16.4&&e<16.6)};m.info=m.info;m.info.browser=m.info.browser;m.info.browserVersion=m.info.browserVersion;m.info.device=m.info.device;m.info.properties=m.info.properties;m.isBlockedUA=m.isBlockedUA;m.isEmptyObject=m.isEmptyObject;m.isObject=m.isObject;m.JSONDecode=m.JSONDecode;m.JSONEncode=m.JSONEncode;m.toArray=m.toArray;m.NPO=zt;var fv="mixpanelBrowserDb",Sl="mixpanelRecordingEvents",Ba="mixpanelRecordingRegistry",hv=1,pv=[Sl,Ba],rt=function(n){this.dbPromise=null,this.storeName=n};rt.prototype._openDb=function(){return new Q(function(n,t){var o=B.indexedDB.open(fv,hv);o.onerror=function(){t(o.error)},o.onsuccess=function(){n(o.result)},o.onupgradeneeded=function(r){var e=r.target.result;pv.forEach(function(i){e.createObjectStore(i)})}})};rt.prototype.init=function(){return B.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(n){return n instanceof B.IDBDatabase?Q.resolve():Q.reject(n)})):Q.reject("indexedDB is not supported in this browser")};rt.prototype.isInitialized=function(){return!!this.dbPromise};rt.prototype.makeTransaction=function(n,t){var o=this.storeName,r=function(e){return new Q(function(i,a){var s=e.transaction(o,n);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){a(s.error)},t(s.objectStore(o))})};return this.dbPromise.then(r).catch((function(e){return e&&e.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):Q.reject(e)}).bind(this))};rt.prototype.setItem=function(n,t){return this.makeTransaction("readwrite",function(o){o.put(t,n)})};rt.prototype.getItem=function(n){var t;return this.makeTransaction("readonly",function(o){t=o.get(n)}).then(function(){return t.result})};rt.prototype.removeItem=function(n){return this.makeTransaction("readwrite",function(t){t.delete(n)})};rt.prototype.getAll=function(){var n;return this.makeTransaction("readonly",function(t){n=t.getAll()}).then(function(){return n.result})};var mv="__mp_opt_in_out_";function _v(n,t){Rl(!0,n,t)}function vv(n,t){Rl(!1,n,t)}function gv(n,t){return El(n,t)==="1"}function Al(n,t){if(bv(t))return J.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 o=El(n,t)==="0";return o&&J.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function qt(n){return Na(n,function(t){return this.get_config(t)})}function Wt(n){return Na(n,function(t){return this._get_config(t)})}function Rr(n){return Na(n,function(t){return this._get_config(t)})}function yv(n,t){t=t||{},Ma(t).remove(Da(n,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Ma(n){return n=n||{},n.persistenceType==="localStorage"?m.localStorage:m.cookie}function Da(n,t){return t=t||{},(t.persistencePrefix||mv)+n}function El(n,t){return Ma(t).get(Da(n,t))}function bv(n){if(n&&n.ignoreDnt)return!1;var t=n&&n.window||B,o=t.navigator||{},r=!1;return m.each([o.doNotTrack,o.msDoNotTrack,t.doNotTrack],function(e){m.includes([!0,1,"1","yes"],e)&&(r=!0)}),r}function Rl(n,t,o){if(!m.isString(t)||!t.length){J.error("gdpr."+(n?"optIn":"optOut")+" called with an invalid token");return}o=o||{},Ma(o).set(Da(t,o),n?1:0,m.isNumber(o.cookieExpiration)?o.cookieExpiration:null,!!o.crossSubdomainCookie,!!o.secureCookie,!!o.crossSiteCookie,o.cookieDomain),o.track&&n&&o.track(o.trackEventName||"$opt_in",o.trackProperties,{send_immediately:!0})}function Na(n,t){return function(){var o=!1;try{var r=t.call(this,"token"),e=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");r&&(o=Al(r,{ignoreDnt:e,persistenceType:i,persistencePrefix:a,window:s}))}catch(l){J.error("Unexpected error when checking tracking opt-out status: "+l)}if(!o)return n.apply(this,arguments);var c=arguments[arguments.length-1];typeof c=="function"&&c(0)}}var Cv=nr("lock"),xl=function(n,t){t=t||{},this.storageKey=n,this.storage=t.storage||B.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Q};xl.prototype.withLock=function(n,t){var o=this.promiseImpl;return new o(m.bind(function(r,e){var i=t||new Date().getTime()+"|"+Math.random(),a=new Date().getTime(),s=this.storageKey,c=this.pollIntervalMS,l=this.timeoutMS,u=this.storage,d=s+":X",h=s+":Y",_=s+":Z",v=function(S){if(new Date().getTime()-a>l){Cv.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(_),u.removeItem(h),b();return}setTimeout(function(){try{S()}catch(R){e(R)}},c*(Math.random()+.1))},C=function(S,R){S()?R():v(function(){C(S,R)})},g=function(){var S=u.getItem(h);return S&&S!==i?!1:(u.setItem(h,i),u.getItem(h)===i?!0:(nn(u,!0)||e(new Error("localStorage support dropped while acquiring lock")),!1))},b=function(){u.setItem(d,i),C(g,function(){if(u.getItem(d)===i){w();return}v(function(){if(u.getItem(h)!==i){b();return}C(function(){return!u.getItem(_)},w)})})},w=function(){u.setItem(_,"1");var S=function(){u.removeItem(_),u.getItem(h)===i&&u.removeItem(h),u.getItem(d)===i&&u.removeItem(d)};n().then(function(R){S(),r(R)}).catch(function(R){S(),e(R)})};try{if(nn(u,!0))b();else throw new Error("localStorage support check failed")}catch(S){e(S)}},this))};var xr=function(n){this.storage=n||B.localStorage};xr.prototype.init=function(){return Q.resolve()};xr.prototype.isInitialized=function(){return!0};xr.prototype.setItem=function(n,t){return new Q(m.bind(function(o,r){try{this.storage.setItem(n,Sr(t))}catch(e){r(e)}o()},this))};xr.prototype.getItem=function(n){return new Q(m.bind(function(t,o){var r;try{r=li(this.storage.getItem(n))}catch(e){o(e)}t(r)},this))};xr.prototype.removeItem=function(n){return new Q(m.bind(function(t,o){try{this.storage.removeItem(n)}catch(r){o(r)}t()},this))};var sc=nr("batch"),ht=function(n,t){t=t||{},this.storageKey=n,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new xr,this.lock=new xl(n,{storage:t.sharedLockStorage||B.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||m.bind(sc.error,sc),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=av(m.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=m.bind(function(o){return this._enqueuePersisted([o])},this)};ht.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Q.resolve():this.queueStorage.init().then(m.bind(function(){this.initialized=!0},this)).catch(m.bind(function(n){this.reportError("Error initializing queue persistence. Disabling persistence",n),this.initialized=!0,this.usePersistence=!1},this))};ht.prototype.enqueue=function(n,t){var o={id:Oa(),flushAfter:new Date().getTime()+t*2,payload:n};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),Q.resolve(!0))};ht.prototype._enqueuePersisted=function(n){var t=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return this.saveToStorage(o.concat(n))},this)).then(m.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(n)),o},this)).catch(m.bind(function(o){return this.reportError("Error enqueueing items",o,n),!1},this))},this);return this.lock.withLock(t,this.pid).catch(m.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))};ht.prototype.fillBatch=function(n){var t=this.memQueue.slice(0,n);return this.usePersistence&&t.length<n?this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){if(o.length){var r={};m.each(t,function(a){r[a.id]=!0});for(var e=0;e<o.length;e++){var i=o[e];if(new Date().getTime()>i.flushAfter&&!r[i.id]&&(i.orphaned=!0,t.push(i),t.length>=n))break}}return t},this)):Q.resolve(t)};var cc=function(n,t){var o=[];return m.each(n,function(r){r.id&&!t[r.id]&&o.push(r)}),o};ht.prototype.removeItemsByID=function(n){var t={};if(m.each(n,function(r){t[r]=!0}),this.memQueue=cc(this.memQueue,t),this.usePersistence){var o=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(r){return r=cc(r,t),this.saveToStorage(r)},this)).then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(r){for(var e=0;e<r.length;e++){var i=r[e];if(i.id&&t[i.id])throw new Error("Item not removed from storage")}return!0},this)).catch(m.bind(function(r){return this.reportError("Error removing items",r,n),!1},this))},this);return this.lock.withLock(o,this.pid).catch(m.bind(function(r){return this.reportError("Error acquiring storage lock",r),nn(this.lock.storage,!0)?!1:o().then(m.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(m.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}else return Q.resolve(!0)};var uc=function(n,t){var o=[];return m.each(n,function(r){var e=r.id;if(e in t){var i=t[e];i!==null&&(r.payload=i,o.push(r))}else o.push(r)}),o};ht.prototype.updatePayloads=function(n){return this.memQueue=uc(this.memQueue,n),this.usePersistence?this.lock.withLock(m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return o=uc(o,n),this.saveToStorage(o)},this)).catch(m.bind(function(o){return this.reportError("Error updating items",n,o),!1},this))},this),this.pid).catch(m.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this)):Q.resolve(!0)};ht.prototype.readFromStorage=function(){return this.ensureInit().then(m.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(m.bind(function(n){return n&&(m.isArray(n)||(this.reportError("Invalid storage entry:",n),n=null)),n||[]},this)).catch(m.bind(function(n){return this.reportError("Error retrieving queue",n),[]},this))};ht.prototype.saveToStorage=function(n){return this.ensureInit().then(m.bind(function(){return this.queueStorage.setItem(this.storageKey,n)},this)).then(function(){return!0}).catch(m.bind(function(t){return this.reportError("Error saving queue",t),!1},this))};ht.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(m.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Q.resolve()};var kv=10*60*1e3,Vr=nr("batch"),Ze=function(n,t){this.errorReporter=t.errorReporter,this.queue=new ht(n,{errorReporter:m.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.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=t.flushOnlyOnInterval||!1,this._flushPromise=null};Ze.prototype.enqueue=function(n){return this.queue.enqueue(n,this.flushInterval)};Ze.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};Ze.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};Ze.prototype.clear=function(){return this.queue.clear()};Ze.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};Ze.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};Ze.prototype.scheduleFlush=function(n){this.flushInterval=n,this.stopped||(this.timeoutID=setTimeout(m.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};Ze.prototype.sendRequestPromise=function(n,t){return new Q(m.bind(function(o){this.sendRequest(n,t,o)},this))};Ze.prototype.flush=function(n){if(this.requestInProgress)return Vr.log("Flush: Request already in progress"),Q.resolve();this.requestInProgress=!0,n=n||{};var t=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(m.bind(function(e){var i=e.length===r,a=[],s={};if(m.each(e,function(d){var h=d.payload;if(this.beforeSendHook&&!d.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=m.extend({},h.properties,{mp_sent_by_lib_version:Je.LIB_VERSION}));var _=!0,v=d.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:d,batchSize:e.length,timesSent:this.itemIdsSentSuccessfully[v]}),_=!1):this.reportError("[dupe] found item with no ID",{item:d}),_&&a.push(h)}s[d.id]=h},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),Q.resolve();var c=m.bind(function(){return this.queue.removeItemsByID(m.map(e,function(d){return d.id})).then(m.bind(function(d){return m.each(e,m.bind(function(h){var _=h.id;_?(this.itemIdsSentSuccessfully[_]=this.itemIdsSentSuccessfully[_]||0,this.itemIdsSentSuccessfully[_]++,this.itemIdsSentSuccessfully[_]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:e.length,timesSent:this.itemIdsSentSuccessfully[_]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),d?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),Q.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Q.resolve())},this))},this),l=m.bind(function(d){this.requestInProgress=!1;try{if(n.unloading)return this.queue.updatePayloads(s);if(m.isObject(d)&&d.error==="timeout"&&new Date().getTime()-o>=t)return this.reportError("Network timeout; retrying"),this.flush();if(m.isObject(d)&&(d.httpStatusCode>=500||d.httpStatusCode===429||d.httpStatusCode<=0&&!lv()||d.error==="timeout")){var h=this.flushInterval*2;return d.retryAfter&&(h=parseInt(d.retryAfter,10)*1e3||h),h=Math.min(kv,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),Q.resolve()}else if(m.isObject(d)&&d.httpStatusCode===413)if(e.length>1){var _=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,_,e.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Q.resolve()}else return this.reportError("Single-event request too large; dropping",e),this.resetBatchSize(),c();else return c()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return n.unloading&&(u.transport="sendBeacon"),Vr.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,u).then(l)},this)).catch(m.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))};Ze.prototype.reportError=function(n,t){if(Vr.error.apply(Vr.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(n)),this.errorReporter(n,t)}catch(o){Vr.error(o)}};var La=function(n){var t=Date.now();return!n||t>n.maxExpires||t>n.idleExpires},wv=250,mr=nr("recorder"),Sv=B.CompressionStream,Av={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Ev=new Set([q.MouseMove,q.MouseInteraction,q.Scroll,q.ViewportResize,q.Input,q.TouchMove,q.MediaInteraction,q.Drag,q.Selection]);function Rv(n){return n.type===X.IncrementalSnapshot&&Ev.has(n.data.source)}var xe=function(n){this._mixpanel=n.mixpanelInstance,this._onIdleTimeout=n.onIdleTimeout||Mt,this._onMaxLengthReached=n.onMaxLengthReached||Mt,this._onBatchSent=n.onBatchSent||Mt,this._rrwebRecord=n.rrwebRecord||null,this._stopRecording=null,this.replayId=n.replayId,this.batchStartUrl=n.batchStartUrl||null,this.replayStartUrl=n.replayStartUrl||null,this.idleExpires=n.idleExpires||null,this.maxExpires=n.maxExpires||null,this.replayStartTime=n.replayStartTime||null,this.lastEventTimestamp=n.lastEventTimestamp||null,this.seqNo=n.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=$r,this.recordMinMs=0;var t=nn(n.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new rt(Sl),this.batcher=new Ze(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Av,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:n.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:wv,sharedLockTimeoutMS:10*1e3})};xe.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var n={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(n.$device_id=t);var o=this._mixpanel.get_property("$user_id");return o&&(n.$user_id=o),n};xe.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))};xe.prototype.getConfig=function(n){return this._mixpanel.get_config(n)};xe.prototype.get_config=function(n){return this.getConfig(n)};xe.prototype.startRecording=function(n){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){mr.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>$r&&(this.recordMaxMs=$r,mr.critical("record_max_ms cannot be greater than "+$r+"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=m.info.currentUrl(),this.replayStartUrl=m.info.currentUrl()),n||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(e){if(this.idleExpires&&this.idleExpires<e.timestamp){this._onIdleTimeout();return}Rv(e)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(this.lastEventTimestamp===null||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,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")?[Z_({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var r=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),r)};xe.prototype.stopRecording=function(n){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():n||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t};xe.prototype.isRrwebStopped=function(){return this._stopRecording===null};xe.prototype.flushEventsWithOptOut=function(n,t,o){var r=(function(e){e===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(n,t,o,r)};xe.prototype.serialize=function(){var n;try{n=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),n=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:n}};xe.deserialize=function(n,t){var o=new xe(m.extend({},t,{replayId:n.replayId,batchStartUrl:n.batchStartUrl,replayStartUrl:n.replayStartUrl,idleExpires:n.idleExpires,maxExpires:n.maxExpires,replayStartTime:n.replayStartTime,lastEventTimestamp:n.lastEventTimestamp,seqNo:n.seqNo,sharedLockStorage:t.sharedLockStorage}));return o};xe.prototype._sendRequest=function(n,t,o,r){var e=(function(a,s){a.status===200&&this.replayId===n&&(this.seqNo++,this.batchStartUrl=m.info.currentUrl()),this._onBatchSent(),r({status:0,httpStatusCode:a.status,responseBody:s,retryAfter:a.headers.get("Retry-After")})}).bind(this),i=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");B.fetch(i+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(a){a.json().then(function(s){e(a,s)}).catch(function(s){r({error:s})})}).catch(function(a){r({error:a,httpStatusCode:0})})};xe.prototype._flushEvents=qt(function(n,t,o){var r=n.length;if(r>0){for(var e=this.replayId,i=1/0,a=-1/0,s=!1,c=0;c<r;c++)i=Math.min(i,n[c].timestamp),a=Math.max(a,n[c].timestamp),n[c].type===X.FullSnapshot&&(s=!0);if(this.seqNo===0){if(!s){o({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 l=a-this.replayStartTime,u={$current_url:this.batchStartUrl,$lib_version:Je.LIB_VERSION,batch_start_time:i/1e3,mp_lib:"web",replay_id:e,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},d=JSON.stringify(n);if(Object.assign(u,this.getUserIdInfo()),dv(ut,bt.vendor,Dr)){var h=new Blob([d],{type:"application/json"}).stream(),_=h.pipeThrough(new Sv("gzip"));new Response(_).blob().then((function(v){u.format="gzip",this._sendRequest(e,u,v,o)}).bind(this))}else u.format="body",this._sendRequest(e,u,d,o)}});xe.prototype.reportError=function(n,t){mr.error.apply(mr.error,arguments);try{!t&&!(n instanceof Error)&&(n=new Error(n)),this.getConfig("error_reporter")(n,t)}catch(o){mr.error(o)}};xe.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime};xe.prototype._getRecordMinMs=function(){var n=this.getConfig("record_min_ms");return n>ro?(mr.critical("record_min_ms cannot be greater than "+ro+"ms. Capping value."),ro):n};var At=function(n){this.idb=new rt(Ba),this.errorReporter=n.errorReporter,this.mixpanelInstance=n.mixpanelInstance,this.sharedLockStorage=n.sharedLockStorage};At.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};At.prototype.handleError=function(n){this.errorReporter("IndexedDB error: ",n)};At.prototype.setActiveRecording=function(n){if(!this.isPersistenceEnabled())return Q.resolve();var t=n.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,n)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Q.resolve())};At.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(n){return La(n)?null:n}).bind(this)).catch(this.handleError.bind(this)):Q.resolve(null)};At.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()};At.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(n){if(n)return n.maxExpires=0,this.setActiveRecording(n)}).bind(this)).catch(this.handleError.bind(this))};At.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Q.resolve()};At.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(n){var t=n.filter(function(o){return La(o)}).map((function(o){var r=xe.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return r.unloadPersistedData().then((function(){return this.idb.removeItem(o.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return Q.all(t)}).bind(this)).catch(this.handleError.bind(this)):Q.resolve([])};var jr=nr("recorder"),Et=function(n,t,o){this.mixpanelInstance=n,this.rrwebRecord=t||jt,this.sharedLockStorage=o,this.recordingRegistry=new At({mixpanelInstance:this.mixpanelInstance,errorReporter:jr.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Et.prototype.startRecording=function(n){if(n=n||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){jr.log("Recording already in progress, skipping startRecording.");return}var t=(function(){jr.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),o=(function(){jr.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),r=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),e={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:o,replayId:m.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return n.activeSerializedRecording?this.activeRecording=xe.deserialize(n.activeSerializedRecording,e):this.activeRecording=new xe(e),this.activeRecording.startRecording(n.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};Et.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))};Et.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};Et.prototype._stopCurrentRecording=function(n,t){if(this.activeRecording){var o=this.activeRecording.stopRecording(n);return t&&(this.activeRecording=null),o}return Q.resolve()};Et.prototype.resumeRecording=function(n){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Q.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):n?this.startRecording({shouldStopBatcher:!1}):(jr.log("No resumable recording found."),null)}).bind(this))};Et.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};Et.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null};Object.defineProperty(Et.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});B.__mp_recorder=Et;var on="change",St="click",Zo="hashchange",xv="input",lc="load",Bt="mp_locationchange",dc="popstate",Di="scrollend",Fa="scroll",Tv="select",di="submit",Pv="toggle",fc="visibilitychange",Iv=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],hc=["mp-include"],Ko=["mp-no-track"],pc=Ko.concat(["mp-sensitive"]),Ov=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Bv={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},Mv={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},Dv={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},mc=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Nv=5,fe=nr("autocapture");function Xo(n){for(var t={},o=Tl(n).split(" "),r=0;r<o.length;r++){var e=o[r];e&&(t[e]=!0)}return t}function Tl(n){switch(typeof n.className){case"string":return n.className;case"object":return n.className.baseVal||n.getAttribute("class")||"";default:return""}}function Lv(n){if(n.previousElementSibling)return n.previousElementSibling;do n=n.previousSibling;while(n&&!Pl(n));return n}function _c(n,t,o,r,e,i){var a={$classes:Tl(n).split(" "),$tag_name:n.tagName.toLowerCase()},s=n.id;s&&(a.$id=s),Ua(n,t,e,i)&&m.each(Ov.concat(r),function(d){if(n.hasAttribute(d)&&!o[d]){var h=n.getAttribute(d);fi(h)&&(a["$attr-"+d]=h)}});for(var c=1,l=1,u=n;u=Lv(u);)c++,u.tagName===n.tagName&&l++;return a.$nth_child=c,a.$nth_of_type=l,a}function Fv(n,t){var o=t.allowElementCallback,r=t.allowSelectors||[],e=t.blockAttrs||[],i=t.blockElementCallback,a=t.blockSelectors||[],s=t.captureTextContent||!1,c=t.captureExtraAttrs||[],l=t.capturedForHeatMap||!1,u={};m.each(e,function(T){u[T]=!0});var d=null,h=typeof n.target>"u"?n.srcElement:n.target;if(Il(h)&&(h=h.parentNode),jv(h,n)&&Qo(h,n,o,r)&&!so(h,n,i,a)){for(var _=[h],v=h;v.parentNode&&!dt(v,"body");)_.push(v.parentNode),v=v.parentNode;var C=[],g,b=!1;if(m.each(_,function(T){var I=Ua(T,n,o,r);!u.href&&T.tagName.toLowerCase()==="a"&&(g=T.getAttribute("href"),g=I&&fi(g)&&g),so(T,n,i,a)&&(b=!0),C.push(_c(T,n,u,c,o,r))},this),!b){var w=W.documentElement;if(d={$event_type:n.type,$host:B.location.host,$pathname:B.location.pathname,$elements:C,$el_attr__href:g,$viewportHeight:Math.max(w.clientHeight,B.innerHeight||0),$viewportWidth:Math.max(w.clientWidth,B.innerWidth||0),$pageHeight:W.body.offsetHeight||0,$pageWidth:W.body.offsetWidth||0},m.each(c,function(T){if(!u[T]&&h.hasAttribute(T)){var I=h.getAttribute(T);fi(I)&&(d["$el_attr__"+T]=I)}}),s&&(S=vc(h,n,o,r),S&&S.length&&(d.$el_text=S)),n.type===St&&(m.each(Iv,function(T){T in n&&(d["$"+T]=n[T])}),l&&(d.$captured_for_heatmap=!0),h=Uv(n)),s){var S=vc(h,n,o,r);S&&S.length&&(d.$el_text=S)}if(h){if(!Qo(h,n,o,r)||so(h,n,i,a))return null;var R=_c(h,n,u,c,o,r);d.$target=R,d.$el_classes=R.$classes,m.extend(d,m.strip_empty_properties({$el_id:R.$id,$el_tag_name:R.$tag_name}))}}}return d}function vc(n,t,o,r){var e="";return Ua(n,t,o,r)&&n.childNodes&&n.childNodes.length&&m.each(n.childNodes,function(i){Il(i)&&i.textContent&&(e+=m.trim(i.textContent).split(/(\s+)/).filter(fi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),m.trim(e)}function Uv(n){for(var t=n.target,o=n.composedPath(),r=0;r<o.length;r++){var e=o[r];if(dt(e,"a")||dt(e,"button")||dt(e,"input")||dt(e,"select")||e.getAttribute&&e.getAttribute("role")==="button"){t=e;break}if(e===t)break}return t}function Qo(n,t,o,r){if(o)try{if(!o(n,t))return!1}catch(a){return fe.critical("Error while checking element in allowElementCallback",a),!1}if(!r.length)return!0;for(var e=0;e<r.length;e++){var i=r[e];try{if(n.matches(i))return!0}catch(a){fe.critical("Error while checking selector: "+i,a)}}return!1}function so(n,t,o,r){var e;if(o)try{if(o(n,t))return!0}catch(s){return fe.critical("Error while checking element in blockElementCallback",s),!0}if(r&&r.length)for(e=0;e<r.length;e++){var i=r[e];try{if(n.matches(i))return!0}catch(s){fe.critical("Error while checking selector: "+i,s)}}var a=Xo(n);for(e=0;e<Ko.length;e++)if(a[Ko[e]])return!0;return!1}function Pl(n){return n&&n.nodeType===1}function dt(n,t){return n&&n.tagName&&n.tagName.toLowerCase()===t.toLowerCase()}function Il(n){return n&&n.nodeType===3}function $v(){try{var n=W.createElement("div");return!!n.matches}catch{return!1}}function Vv(){return typeof WeakSet<"u"}function jv(n,t){if(!n||dt(n,"html")||!Pl(n))return!1;var o=n.tagName.toLowerCase();switch(o){case"form":return t.type===di;case"input":return["button","submit"].indexOf(n.getAttribute("type"))===-1?t.type===on:t.type===St;case"select":case"textarea":return t.type===on;default:return t.type===St}}function Ua(n,t,o,r){var e;if(!Qo(n,t,o,r))return!1;for(var i=n;i.parentNode&&!dt(i,"body");i=i.parentNode){var a=Xo(i);for(e=0;e<pc.length;e++)if(a[pc[e]])return!1}var s=Xo(n);for(e=0;e<hc.length;e++)if(s[hc[e]])return!0;if(dt(n,"input")||dt(n,"select")||dt(n,"textarea")||n.getAttribute("contenteditable")==="true")return!1;var c=n.type||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}var l=n.name||n.id||"";if(typeof l=="string"){var u=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(u.test(l.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function fi(n){if(n===null||m.isUndefined(n))return!1;if(typeof n=="string"){n=m.trim(n);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((n||"").replace(/[- ]/g,"")))return!1;var o=/(^\d{3}-?\d{2}-?\d{4}$)/;if(o.test(n))return!1}return!0}function Ol(n){var t="onscrollend"in B,o=rn(n),r=Di;if(!t){var e=null,i=100;o=rn(function(){clearTimeout(e),e=setTimeout(n,i)}),r=Fa}return{listener:o,eventType:r}}function zv(n){for(var t=0;t<mc.length;t++)if(n.hasAttribute(mc[t]))return!0;return!1}function qv(n){var t=n.getAttribute("role");if(!t)return!1;var o=t.trim().split(/\s+/)[0].toLowerCase();return Bv[o]}function co(n){var t=n.tagName.toLowerCase();return!!(t==="button"||t==="input"||t==="select"||t==="textarea"||t==="details"||t==="dialog"||n.isContentEditable||n.onclick||n.onmousedown||n.onmouseup||n.ontouchstart||n.ontouchend||zv(n)||qv(n)||t==="a"&&n.hasAttribute("href")||n.hasAttribute("tabindex"))}function Bl(n){if(!n||!n.tagName)return!0;var t=n.tagName.toLowerCase();if(Mv[t])return!0;if(co(n))return!1;for(var o=n.parentElement,r=0;o&&r<Nv;){if(co(o))return!1;if(o.getRootNode&&o.getRootNode()!==W){var e=o.getRootNode();if(e.host&&co(e.host))return!1}o=o.parentElement,r++}return!!Dv[t]}function Ml(n){return"composedPath"in n?n.composedPath():[]}function Dl(n){var t=Ml(n);return t&&t.length>0?t[0]:n.target||n.srcElement}var Wv=30,Gv=1e3,Hv=4,Yv=!1;function Nl(){this.clicks=[]}Nl.prototype.isRageClick=function(n,t){t=t||{};var o=t.threshold_px||Wv,r=t.timeout_ms||Gv,e=t.click_count||Hv,i=t.interactive_elements_only||Yv;if(i){var a=Dl(n);if(!a||Bl(a))return!1}var s=Date.now(),c=n.pageX,l=n.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<r&&Math.sqrt(Math.pow(c-u.x,2)+Math.pow(l-u.y,2))<o){if(this.clicks.push({x:c,y:l,timestamp:s}),this.clicks.length>=e)return this.clicks=[],!0}else this.clicks=[{x:c,y:l,timestamp:s}];return!1};function Tr(n,t){this.changeCallback=n||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Tr.prototype.getEventTarget=function(n){if(this.observedShadowRoots)return Dl(n)};Tr.prototype.observeFromEvent=function(n){if(this.observedShadowRoots)for(var t=Ml(n),o=0;o<t.length;o++){var r=t[o];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}};Tr.prototype.observeShadowRoot=function(n){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(n))){var t=this;try{this.observedShadowRoots.add(n);var o=new window.MutationObserver(function(){t.changeCallback()});o.observe(n,this.observerConfig),this.shadowObservers.push(o)}catch(r){fe.critical("Error while observing shadow root",r)}}};Tr.prototype.start=function(){if(!this.observedShadowRoots){if(!Vv()){fe.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};Tr.prototype.stop=function(){if(this.observedShadowRoots){for(var n=0;n<this.shadowObservers.length;n++)try{this.shadowObservers[n].disconnect()}catch(t){fe.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var Jv=500,Zv=[on,xv,di,Tv,Pv],Kv=[Di],Xv=[Zo],gc={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function pt(n){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=n,this.processingActive=!1,this.processingTimeout=null}pt.prototype.addClick=function(n){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(n);return t||(t=n.target||n.srcElement),!t||Bl(t)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(n),this.pendingClicks.push({element:t,event:n,timestamp:Date.now()}),!0)};pt.prototype.trackClick=function(n,t){if(!this.isTracking)return!1;var o=this.addClick(n);return o&&this.triggerProcessing(t),o};pt.prototype.getDeadClicks=function(n){if(this.pendingClicks.length===0)return[];var t=n.timeout_ms,o=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var e=[],i=0;i<r.length;i++){var a=r[i];o-a.timestamp>=t?this.hasChangesAfter(a.timestamp)||e.push(a):this.pendingClicks.push(a)}return e};pt.prototype.hasChangesAfter=function(n){return this.lastChangeEventTimestamp>=n-100};pt.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};pt.prototype.triggerProcessing=function(n){this.processingActive||(this.processingActive=!0,this.processRecursively(n))};pt.prototype.processRecursively=function(n){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=n.timeout_ms,o=this;this.processingTimeout=setTimeout(function(){if(o.processingActive){for(var r=o.getDeadClicks(n),e=0;e<r.length;e++)o.onDeadClickCallback(r[e].event);o.pendingClicks.length>0?o.processRecursively(n):o.processingActive=!1}},t)};pt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var n=this;Zv.forEach(function(o){var r=function(){n.recordChangeEvent()};document.addEventListener(o,r,{capture:!0,passive:!0}),n.eventListeners.push({target:document,event:o,handler:r,options:{capture:!0,passive:!0}})}),Xv.forEach(function(o){var r=function(){n.recordChangeEvent()};window.addEventListener(o,r),n.eventListeners.push({target:window,event:o,handler:r})}),Kv.forEach(function(o){var r=function(){n.recordChangeEvent()};window.addEventListener(o,r,{passive:!0}),n.eventListeners.push({target:window,event:o,handler:r,options:{passive:!0}})});var t=function(){n.recordChangeEvent()};if(document.addEventListener("selectionchange",t),n.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){n.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,gc)}catch(o){fe.critical("Error while setting up mutation observer",o)}if(window.customElements)try{this.shadowDOMObserver=new Tr(function(){n.recordChangeEvent()},gc),this.shadowDOMObserver.start()}catch(o){fe.critical("Error while setting up shadow DOM observer",o),this.shadowDOMObserver=null}}};pt.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 n=0;n<this.eventListeners.length;n++){var t=this.eventListeners[n];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(o){fe.critical("Error while removing event listener",o)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(o){fe.critical("Error while disconnecting mutation observer",o)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(o){fe.critical("Error while stopping shadow DOM observer",o)}this.shadowDOMObserver=null}}};var Ll="autocapture",Qv="track_pageview",Fl="full-url",eg="url-with-path-and-query-string",tg="url-with-path",rg="allow_element_callback",Ul="allow_selectors",$l="allow_url_regexes",Vl="block_attrs",jl="block_element_callback",zl="block_selectors",ql="block_url_regexes",Wl="capture_extra_attrs",Gl="capture_text_content",Hl="scroll_capture_all",Yl="scroll_depth_percent_checkpoints",hi="click",pi="dead_click",ea="input",Jl="pageview",mi="rage_click",ta="scroll",Ni="page_leave",ra="submit",Ae={};Ae[Ul]=[];Ae[$l]=[];Ae[Vl]=[];Ae[jl]=null;Ae[zl]=[];Ae[ql]=[];Ae[Wl]=[];Ae[Gl]=!1;Ae[Hl]=!1;Ae[Yl]=[25,50,75,100];Ae[hi]=!0;Ae[pi]=!0;Ae[ea]=!0;Ae[Jl]=Fl;Ae[mi]=!0;Ae[ta]=!0;Ae[Ni]=!1;Ae[ra]=!0;var an={$mp_autocapture:!0},Zl="$mp_click",Kl="$mp_dead_click",ng="$mp_input_change",Xl="$mp_rage_click",ig="$mp_scroll",og="$mp_submit",ag="$mp_page_leave",we=function(n){this.mp=n,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};we.prototype.init=function(){if(!$v()){fe.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()};we.prototype.getFullConfig=function(){var n=this.mp.get_config(Ll);return n?m.isObject(n)?m.extend({},Ae,n):Ae:{}};we.prototype.getConfig=function(n){return this.getFullConfig()[n]};we.prototype.currentUrlBlocked=function(){var n,t=m.info.currentUrl(),o=this.getConfig($l)||[];if(o.length){var r=!1;for(n=0;n<o.length;n++){var e=o[n];try{if(t.match(e)){r=!0;break}}catch(a){return fe.critical("Error while checking block URL regex: "+e,a),!0}}if(!r)return!0}var i=this.getConfig(ql)||[];if(!i||!i.length)return!1;for(n=0;n<i.length;n++)try{if(t.match(i[n]))return!0}catch(a){return fe.critical("Error while checking block URL regex: "+i[n],a),!0}return!1};we.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Ll)?this.getConfig(Jl):this.mp.get_config(Qv)};we.prototype.trackDomEvent=function(n,t){if(!this.currentUrlBlocked()){var o=this.mp.is_recording_heatmap_data()&&(t===Zl&&!this.getConfig(hi)||t===Xl&&!this._getClickTrackingConfig(mi)||t===Kl&&!this._getClickTrackingConfig(pi)),r=Fv(n,{allowElementCallback:this.getConfig(rg),allowSelectors:this.getConfig(Ul),blockAttrs:this.getConfig(Vl),blockElementCallback:this.getConfig(jl),blockSelectors:this.getConfig(zl),captureExtraAttrs:this.getConfig(Wl),captureTextContent:this.getConfig(Gl),capturedForHeatMap:o});r&&(m.extend(r,an),this.mp.track(t,r))}};we.prototype.initPageListeners=function(){if(B.removeEventListener(dc,this.listenerPopstate),B.removeEventListener(Zo,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(Ni)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){B.dispatchEvent(new Event(Bt))},this.listenerHashchange=function(){B.dispatchEvent(new Event(Bt))},B.addEventListener(dc,this.listenerPopstate),B.addEventListener(Zo,this.listenerHashchange);var n=B.history.pushState;typeof n=="function"&&(B.history.pushState=function(o,r,e){n.call(B.history,o,r,e),B.dispatchEvent(new Event(Bt))});var t=B.history.replaceState;typeof t=="function"&&(B.history.replaceState=function(o,r,e){t.call(B.history,o,r,e),B.dispatchEvent(new Event(Bt))})}};we.prototype._getClickTrackingConfig=function(n){var t=this.getConfig(n);return t?t===!0?{}:typeof t=="object"?t:{}:null};we.prototype._trackPageLeave=function(n,t,o){if(!this.hasTrackedScrollSession&&!(!this.getConfig(Ni)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var r=Math.max(W.documentElement.clientHeight,B.innerHeight||0),e=Math.round(Math.max(this.maxScrollViewDepth-r,0)/(o-r)*100),i=Math.round(r/o*100);o<=r&&(e=100,i=100);var a=m.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:e,$fold_line_percentage:i,$scroll_height:o,$event_type:n.type,$current_url:t||m.info.currentUrl(),$viewportHeight:r,$viewportWidth:Math.max(W.documentElement.clientWidth,B.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},an);this.mp.track(ag,a,{transport:"sendBeacon"})}};we.prototype._initScrollDepthTracking=function(){if(B.removeEventListener(Fa,this.listenerScrollDepth),B.removeEventListener(Di,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){fe.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(W.documentElement.clientHeight,B.innerHeight||0);var n=(function(){if(!this.currentUrlBlocked()){var o=Math.max(W.documentElement.clientHeight,B.innerHeight||0)+B.scrollY;o>this.maxScrollViewDepth&&(this.maxScrollViewDepth=o),this.previousScrollHeight=W.body.scrollHeight}}).bind(this),t=Ol(n);this.listenerScrollDepth=t.listener,B.addEventListener(t.eventType,this.listenerScrollDepth)}};we.prototype.initClickTracking=function(){B.removeEventListener(St,this.listenerClick),!(!this.getConfig(hi)&&!this.mp.get_config("record_heatmap_data"))&&(fe.log("Initializing click tracking"),this.listenerClick=(function(n){!this.getConfig(hi)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(n,Zl)}).bind(this),B.addEventListener(St,this.listenerClick))};we.prototype.initDeadClickTracking=function(){var n=this._getClickTrackingConfig(pi);if(!n&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}fe.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new pt((function(t){this.trackDomEvent(t,Kl)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(t){var o=this._getClickTrackingConfig(pi);if(!(!o&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=o||{};r.timeout_ms||(r.timeout_ms=Jv),this._deadClickTracker.trackClick(t,r)}}).bind(this),B.addEventListener(St,this.listenerDeadClick))};we.prototype.initInputTracking=function(){B.removeEventListener(on,this.listenerChange),this.getConfig(ea)&&(fe.log("Initializing input tracking"),this.listenerChange=(function(n){this.getConfig(ea)&&this.trackDomEvent(n,ng)}).bind(this),B.addEventListener(on,this.listenerChange))};we.prototype.initPageviewTracking=function(){if(B.removeEventListener(Bt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){fe.log("Initializing pageview tracking");var n="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(an)),t&&(n=m.info.currentUrl()),this.listenerLocationchange=rn((function(){if(!this.currentUrlBlocked()){var o=m.info.currentUrl(),r=!1,e=o.split("#")[0].split("?")[0]!==n.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===Fl?r=o!==n:i===eg?r=o.split("#")[0]!==n.split("#")[0]:i===tg&&(r=e),r){var a=this.mp.track_pageview(an);a&&(n=o),e&&(this.lastScrollCheckpoint=0,fe.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),B.addEventListener(Bt,this.listenerLocationchange)}};we.prototype.initRageClickTracking=function(){B.removeEventListener(St,this.listenerRageClick);var n=this._getClickTrackingConfig(mi);!n&&!this.mp.get_config("record_heatmap_data")||(fe.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Nl),this.listenerRageClick=(function(t){var o=this._getClickTrackingConfig(mi);!o&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,o)&&this.trackDomEvent(t,Xl)}).bind(this),B.addEventListener(St,this.listenerRageClick))};we.prototype.initScrollTracking=function(){if(B.removeEventListener(Di,this.listenerScroll),B.removeEventListener(Fa,this.listenerScroll),!!this.getConfig(ta)){fe.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var n=(function(){if(this.getConfig(ta)&&!this.currentUrlBlocked()){var o=this.getConfig(Hl),r=(this.getConfig(Yl)||[]).slice().sort(function(u,d){return u-d}),e=B.scrollY,i=m.extend({$scroll_top:e},an);try{var a=W.body.scrollHeight,s=Math.round(e/(a-B.innerHeight)*100);if(i.$scroll_height=a,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var c=0;c<r.length;c++){var l=r[c];s>=l&&this.lastScrollCheckpoint<l&&(i.$scroll_checkpoint=l,this.lastScrollCheckpoint=l,o=!0)}}catch(u){fe.critical("Error while calculating scroll percentage",u)}o&&this.mp.track(ig,i)}}).bind(this),t=Ol(n);this.listenerScroll=t.listener,B.addEventListener(t.eventType,this.listenerScroll)}};we.prototype.initSubmitTracking=function(){B.removeEventListener(di,this.listenerSubmit),this.getConfig(ra)&&(fe.log("Initializing submit tracking"),this.listenerSubmit=(function(n){this.getConfig(ra)&&this.trackDomEvent(n,og)}).bind(this),B.addEventListener(di,this.listenerSubmit))};we.prototype.initPageLeaveTracking=function(){if(W.removeEventListener(fc,this.listenerPageLeaveVisibilitychange),B.removeEventListener(Bt,this.listenerPageLeaveLocationchange),B.removeEventListener(lc,this.listenerPageLoad),!(!this.getConfig(Ni)&&!this.mp.get_config("record_heatmap_data"))){fe.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var n=m.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=W.body.scrollHeight}).bind(this),B.addEventListener(lc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=rn((function(t){if(!this.currentUrlBlocked()){var o=m.info.currentUrl(),r=o!==n;r&&(this._trackPageLeave(t,n,this.previousScrollHeight),n=o,this.maxScrollViewDepth=Math.max(W.documentElement.clientHeight,B.innerHeight||0),this.previousScrollHeight=W.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),B.addEventListener(Bt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){W.hidden&&this._trackPageLeave(t,n,this.previousScrollHeight)}).bind(this),W.addEventListener(fc,this.listenerPageLeaveVisibilitychange)}};we.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(B.removeEventListener(St,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)};Cl(we);var $e=nr("flags"),_i="flags",vi="context",na={};na[vi]={};var Z=function(n){this.fetch=B.fetch,this.getFullApiRoute=n.getFullApiRoute,this.getMpConfig=n.getConfigFunc,this.setMpConfig=n.setConfigFunc,this.getMpProperty=n.getPropertyFunc,this.track=n.trackingFunc};Z.prototype.init=function(){if(!this.minApisSupported()){$e.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set};Z.prototype.getFullConfig=function(){var n=this.getMpConfig(_i);return n?m.isObject(n)?m.extend({},na,n):na:{}};Z.prototype.getConfig=function(n){return this.getFullConfig()[n]};Z.prototype.isSystemEnabled=function(){return!!this.getMpConfig(_i)};Z.prototype.updateContext=function(n,t){if(!this.isSystemEnabled())return $e.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var o=this.getMpConfig(_i);m.isObject(o)||(o={});var r=t&&t.replace?{}:this.getConfig(vi);return o[vi]=m.extend({},r,n),this.setMpConfig(_i,o),this.fetchFlags()};Z.prototype.areFlagsReady=function(){return this.isSystemEnabled()||$e.error("Feature Flags not enabled"),!!this.flags};Z.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var n=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),o=sv();$e.log("Fetching flags for distinct ID: "+n);var r=m.extend({distinct_id:n,device_id:t},this.getConfig(vi)),e=new URLSearchParams;e.set("context",JSON.stringify(r)),e.set("token",this.getMpConfig("token")),e.set("mp_lib","web"),e.set("$lib_version",Je.LIB_VERSION);var i=this.getFullApiRoute()+"?"+e.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(B,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:o}}).then((function(a){return this.markFetchComplete(),a.json().then((function(s){var c=s.flags;if(!c)throw new Error("No flags in API response");var l=new Map;m.each(c,function(u,d){l.set(d,{key:u.variant_key,value:u.variant_value,experiment_id:u.experiment_id,is_experiment_active:u.is_experiment_active,is_qa_tester:u.is_qa_tester})}),this.flags=l,this._traceparent=o}).bind(this)).catch((function(s){this.markFetchComplete(),$e.error(s)}).bind(this))}).bind(this)).catch((function(a){this.markFetchComplete(),$e.error(a)}).bind(this)),this.fetchPromise};Z.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){$e.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(n,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(n,t)}).bind(this)).catch(function(o){return $e.error(o),t}):new Promise(function(o){$e.critical("Feature Flags not initialized"),o(t)})};Z.prototype.getVariantSync=function(n,t){if(!this.areFlagsReady())return $e.log("Flags not loaded yet"),t;var o=this.flags.get(n);return o?(this.trackFeatureCheck(n,o),o):($e.log('No flag found: "'+n+'"'),t)};Z.prototype.getVariantValue=function(n,t){return this.getVariant(n,{value:t}).then(function(o){return o.value}).catch(function(o){return $e.error(o),t})};Z.prototype.getFeatureData=function(n,t){return $e.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(n,t)};Z.prototype.getVariantValueSync=function(n,t){return this.getVariantSync(n,{value:t}).value};Z.prototype.isEnabled=function(n,t){return this.getVariantValue(n).then((function(){return this.isEnabledSync(n,t)}).bind(this)).catch(function(o){return $e.error(o),t})};Z.prototype.isEnabledSync=function(n,t){t=t||!1;var o=this.getVariantValueSync(n,t);return o!==!0&&o!==!1&&($e.error('Feature flag "'+n+'" value: '+o+" is not a boolean; returning fallback value: "+t),o=t),o};Z.prototype.trackFeatureCheck=function(n,t){if(!this.trackedFeatures.has(n)){this.trackedFeatures.add(n);var o={"Experiment name":n,"Variant name":t.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};t.experiment_id!=="undefined"&&(o.$experiment_id=t.experiment_id),t.is_experiment_active!=="undefined"&&(o.$is_experiment_active=t.is_experiment_active),t.is_qa_tester!=="undefined"&&(o.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",o)}};Z.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"};Cl(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(n){return this.mp=n,this};Rt.prototype.track=function(n,t,o,r){var e=this,i=m.dom_query(n);if(i.length===0){J.error("The DOM query ("+n+") returned 0 elements");return}return m.each(i,function(a){m.register_event(a,this.override_event,function(s){var c={},l=e.create_properties(o,this),u=e.mp.get_config("track_links_timeout");e.event_handler(s,this,c),window.setTimeout(e.track_callback(r,l,c,!0),u),e.mp.track(t,l,e.track_callback(r,l,c))})},this),!0};Rt.prototype.track_callback=function(n,t,o,r){r=r||!1;var e=this;return function(){o.callback_fired||(o.callback_fired=!0,!(n&&n(r,t)===!1)&&e.after_track_handler(t,o,r))}};Rt.prototype.create_properties=function(n,t){var o;return typeof n=="function"?o=n(t):o=m.extend({},n),o};var Ar=function(){this.override_event="click"};m.inherit(Ar,Rt);Ar.prototype.create_properties=function(n,t){var o=Ar.superclass.create_properties.apply(this,arguments);return t.href&&(o.url=t.href),o};Ar.prototype.event_handler=function(n,t,o){o.new_tab=n.which===2||n.metaKey||n.ctrlKey||t.target==="_blank",o.href=t.href,o.new_tab||n.preventDefault()};Ar.prototype.after_track_handler=function(n,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Li=function(){this.override_event="submit"};m.inherit(Li,Rt);Li.prototype.event_handler=function(n,t,o){o.element=t,n.preventDefault()};Li.prototype.after_track_handler=function(n,t){setTimeout(function(){t.element.submit()},0)};var Lt="$set",Er="$set_once",tt="$unset",Xt="$add",ft="$append",Qt="$union",Ct="$remove",sg="$delete",Ql={set_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=e)},this):r[n]=t,o[Lt]=r,o},unset_action:function(n){var t={},o=[];return m.isArray(n)||(n=[n]),m.each(n,function(r){this._is_reserved_property(r)||o.push(r)},this),t[tt]=o,t},set_once_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=e)},this):r[n]=t,o[Er]=r,o},union_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=m.isArray(e)?e:[e])},this):r[n]=m.isArray(t)?t:[t],o[Qt]=r,o},append_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=e)},this):r[n]=t,o[ft]=r,o},remove_action:function(n,t){var o={},r={};return m.isObject(n)?m.each(n,function(e,i){this._is_reserved_property(i)||(r[i]=e)},this):r[n]=t,o[Ct]=r,o},delete_action:function(){var n={};return n[sg]="",n}},me=function(){};m.extend(me.prototype,Ql);me.prototype._init=function(n,t,o){this._mixpanel=n,this._group_key=t,this._group_id=o};me.prototype.set=Rr(function(n,t,o){var r=this.set_action(n,t);return m.isObject(n)&&(o=t),this._send_request(r,o)});me.prototype.set_once=Rr(function(n,t,o){var r=this.set_once_action(n,t);return m.isObject(n)&&(o=t),this._send_request(r,o)});me.prototype.unset=Rr(function(n,t){var o=this.unset_action(n);return this._send_request(o,t)});me.prototype.union=Rr(function(n,t,o){m.isObject(n)&&(o=t);var r=this.union_action(n,t);return this._send_request(r,o)});me.prototype.delete=Rr(function(n){var t=this.delete_action();return this._send_request(t,n)});me.prototype.remove=Rr(function(n,t,o){var r=this.remove_action(n,t);return this._send_request(r,o)});me.prototype._send_request=function(n,t){n.$group_key=this._group_key,n.$group_id=this._group_id,n.$token=this._get_config("token");var o=m.encodeDates(n);return this._mixpanel._track_or_batch({type:"groups",data:o,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};me.prototype._is_reserved_property=function(n){return n==="$group_key"||n==="$group_id"};me.prototype._get_config=function(n){return this._mixpanel.get_config(n)};me.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};me.prototype.remove=me.prototype.remove;me.prototype.set=me.prototype.set;me.prototype.set_once=me.prototype.set_once;me.prototype.union=me.prototype.union;me.prototype.unset=me.prototype.unset;me.prototype.toString=me.prototype.toString;var G=function(){};m.extend(G.prototype,Ql);G.prototype._init=function(n){this._mixpanel=n};G.prototype.set=Wt(function(n,t,o){var r=this.set_action(n,t);return m.isObject(n)&&(o=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[Lt]=m.extend({},m.info.people_properties(),r[Lt]),this._send_request(r,o)});G.prototype.set_once=Wt(function(n,t,o){var r=this.set_once_action(n,t);return m.isObject(n)&&(o=t),this._send_request(r,o)});G.prototype.unset=Wt(function(n,t){var o=this.unset_action(n);return this._send_request(o,t)});G.prototype.increment=Wt(function(n,t,o){var r={},e={};return m.isObject(n)?(m.each(n,function(i,a){if(!this._is_reserved_property(a))if(isNaN(parseFloat(i))){J.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else e[a]=i},this),o=t):(m.isUndefined(t)&&(t=1),e[n]=t),r[Xt]=e,this._send_request(r,o)});G.prototype.append=Wt(function(n,t,o){m.isObject(n)&&(o=t);var r=this.append_action(n,t);return this._send_request(r,o)});G.prototype.remove=Wt(function(n,t,o){m.isObject(n)&&(o=t);var r=this.remove_action(n,t);return this._send_request(r,o)});G.prototype.union=Wt(function(n,t,o){m.isObject(n)&&(o=t);var r=this.union_action(n,t);return this._send_request(r,o)});G.prototype.track_charge=Wt(function(){J.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});G.prototype.clear_charges=function(n){return this.set("$transactions",[],n)};G.prototype.delete_user=function(){if(!this._identify_called()){J.error("mixpanel.people.delete_user() requires you to call identify() first");return}var n={$delete:this._mixpanel.get_distinct_id()};return this._send_request(n)};G.prototype.toString=function(){return this._mixpanel.toString()+".people"};G.prototype._send_request=function(n,t){n.$token=this._get_config("token"),n.$distinct_id=this._mixpanel.get_distinct_id();var o=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),e=this._mixpanel.get_property("$had_persisted_distinct_id");o&&(n.$device_id=o),r&&(n.$user_id=r),e&&(n.$had_persisted_distinct_id=e);var i=m.encodeDates(n);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},t):(this._enqueue(n),m.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),m.truncate(i,255))};G.prototype._get_config=function(n){return this._mixpanel.get_config(n)};G.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};G.prototype._enqueue=function(n){Lt in n?this._mixpanel.persistence._add_to_people_queue(Lt,n):Er in n?this._mixpanel.persistence._add_to_people_queue(Er,n):tt in n?this._mixpanel.persistence._add_to_people_queue(tt,n):Xt in n?this._mixpanel.persistence._add_to_people_queue(Xt,n):ft in n?this._mixpanel.persistence._add_to_people_queue(ft,n):Ct in n?this._mixpanel.persistence._add_to_people_queue(Ct,n):Qt in n?this._mixpanel.persistence._add_to_people_queue(Qt,n):J.error("Invalid call to _enqueue():",n)};G.prototype._flush_one_queue=function(n,t,o,r){var e=this,i=m.extend({},this._mixpanel.persistence.load_queue(n)),a=i;!m.isUndefined(i)&&m.isObject(i)&&!m.isEmptyObject(i)&&(e._mixpanel.persistence._pop_from_people_queue(n,i),e._mixpanel.persistence.save(),r&&(a=r(i)),t.call(e,a,function(s,c){s===0&&e._mixpanel.persistence._add_to_people_queue(n,i),m.isUndefined(o)||o(s,c)}))};G.prototype._flush=function(n,t,o,r,e,i,a){var s=this;this._flush_one_queue(Lt,this.set,n),this._flush_one_queue(Er,this.set_once,r),this._flush_one_queue(tt,this.unset,i,function(g){return m.keys(g)}),this._flush_one_queue(Xt,this.increment,t),this._flush_one_queue(Qt,this.union,e);var c=this._mixpanel.persistence.load_queue(ft);if(!m.isUndefined(c)&&m.isArray(c)&&c.length)for(var l,u=function(g,b){g===0&&s._mixpanel.persistence._add_to_people_queue(ft,l),m.isUndefined(o)||o(g,b)},d=c.length-1;d>=0;d--)c=this._mixpanel.persistence.load_queue(ft),l=c.pop(),s._mixpanel.persistence.save(),m.isEmptyObject(l)||s.append(l,u);var h=this._mixpanel.persistence.load_queue(Ct);if(!m.isUndefined(h)&&m.isArray(h)&&h.length)for(var _,v=function(g,b){g===0&&s._mixpanel.persistence._add_to_people_queue(Ct,_),m.isUndefined(a)||a(g,b)},C=h.length-1;C>=0;C--)h=this._mixpanel.persistence.load_queue(Ct),_=h.pop(),s._mixpanel.persistence.save(),m.isEmptyObject(_)||s.remove(_,v)};G.prototype._is_reserved_property=function(n){return n==="$distinct_id"||n==="$token"||n==="$device_id"||n==="$user_id"||n==="$had_persisted_distinct_id"};G.prototype.set=G.prototype.set;G.prototype.set_once=G.prototype.set_once;G.prototype.unset=G.prototype.unset;G.prototype.increment=G.prototype.increment;G.prototype.append=G.prototype.append;G.prototype.remove=G.prototype.remove;G.prototype.union=G.prototype.union;G.prototype.track_charge=G.prototype.track_charge;G.prototype.clear_charges=G.prototype.clear_charges;G.prototype.delete_user=G.prototype.delete_user;G.prototype.toString=G.prototype.toString;var $a="__mps",Va="__mpso",ja="__mpus",za="__mpa",qa="__mpap",Wa="__mpr",Ga="__mpu",ed="$people_distinct_id",gi="__alias",sn="__timers",cg=[$a,Va,ja,za,qa,Wa,Ga,ed,gi,sn],Y=function(n){this.props={},this.campaign_params_saved=!1,n.persistence_name?this.name="mp_"+n.persistence_name:this.name="mp_"+n.token+"_mixpanel";var t=n.persistence;t!=="cookie"&&t!=="localStorage"&&(J.critical("Unknown persistence type "+t+"; falling back to cookie"),t=n.persistence="cookie"),t==="localStorage"&&m.localStorage.is_supported()?this.storage=m.localStorage:this.storage=m.cookie,this.load(),this.update_config(n),this.upgrade(),this.save()};Y.prototype.properties=function(){var n={};return this.load(),m.each(this.props,function(t,o){m.include(cg,o)||(n[o]=t)}),n};Y.prototype.load=function(){if(!this.disabled){var n=this.storage.parse(this.name);n&&(this.props=m.extend({},n))}};Y.prototype.upgrade=function(){var n,t;this.storage===m.localStorage?(n=m.cookie.parse(this.name),m.cookie.remove(this.name),m.cookie.remove(this.name,!0),n&&this.register_once(n)):this.storage===m.cookie&&(t=m.localStorage.parse(this.name),m.localStorage.remove(this.name),t&&this.register_once(t))};Y.prototype.save=function(){this.disabled||this.storage.set(this.name,Sr(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};Y.prototype.load_prop=function(n){return this.load(),this.props[n]};Y.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};Y.prototype.clear=function(){this.remove(),this.props={}};Y.prototype.register_once=function(n,t,o){return m.isObject(n)?(typeof t>"u"&&(t="None"),this.expire_days=typeof o>"u"?this.default_expiry:o,this.load(),m.each(n,function(r,e){(!this.props.hasOwnProperty(e)||this.props[e]===t)&&(this.props[e]=r)},this),this.save(),!0):!1};Y.prototype.register=function(n,t){return m.isObject(n)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),m.extend(this.props,n),this.save(),!0):!1};Y.prototype.unregister=function(n){this.load(),n in this.props&&(delete this.props[n],this.save())};Y.prototype.update_search_keyword=function(n){this.register(m.info.searchInfo(n))};Y.prototype.update_referrer_info=function(n){this.register_once({$initial_referrer:n||"$direct",$initial_referring_domain:m.info.referringDomain(n)||"$direct"},"")};Y.prototype.get_referrer_info=function(){return m.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};Y.prototype.update_config=function(n){this.default_expiry=this.expire_days=n.cookie_expiration,this.set_disabled(n.disable_persistence),this.set_cookie_domain(n.cookie_domain),this.set_cross_site(n.cross_site_cookie),this.set_cross_subdomain(n.cross_subdomain_cookie),this.set_secure(n.secure_cookie)};Y.prototype.set_disabled=function(n){this.disabled=n,this.disabled?this.remove():this.save()};Y.prototype.set_cookie_domain=function(n){n!==this.cookie_domain&&(this.remove(),this.cookie_domain=n,this.save())};Y.prototype.set_cross_site=function(n){n!==this.cross_site&&(this.cross_site=n,this.remove(),this.save())};Y.prototype.set_cross_subdomain=function(n){n!==this.cross_subdomain&&(this.cross_subdomain=n,this.remove(),this.save())};Y.prototype.get_cross_subdomain=function(){return this.cross_subdomain};Y.prototype.set_secure=function(n){n!==this.secure&&(this.secure=!!n,this.remove(),this.save())};Y.prototype._add_to_people_queue=function(n,t){var o=this._get_queue_key(n),r=t[n],e=this._get_or_create_queue(Lt),i=this._get_or_create_queue(Er),a=this._get_or_create_queue(tt),s=this._get_or_create_queue(Xt),c=this._get_or_create_queue(Qt),l=this._get_or_create_queue(Ct,[]),u=this._get_or_create_queue(ft,[]);o===$a?(m.extend(e,r),this._pop_from_people_queue(Xt,r),this._pop_from_people_queue(Qt,r),this._pop_from_people_queue(tt,r)):o===Va?(m.each(r,function(d,h){h in i||(i[h]=d)}),this._pop_from_people_queue(tt,r)):o===ja?m.each(r,function(d){m.each([e,i,s,c],function(h){d in h&&delete h[d]}),m.each(u,function(h){d in h&&delete h[d]}),a[d]=!0}):o===za?(m.each(r,function(d,h){h in e?e[h]+=d:(h in s||(s[h]=0),s[h]+=d)},this),this._pop_from_people_queue(tt,r)):o===Ga?(m.each(r,function(d,h){m.isArray(d)&&(h in c||(c[h]=[]),m.each(d,function(_){m.include(c[h],_)||c[h].push(_)}))}),this._pop_from_people_queue(tt,r)):o===Wa?(l.push(r),this._pop_from_people_queue(ft,r)):o===qa&&(u.push(r),this._pop_from_people_queue(tt,r)),J.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),J.log(t),this.save()};Y.prototype._pop_from_people_queue=function(n,t){var o=this.props[this._get_queue_key(n)];m.isUndefined(o)||m.each(t,function(r,e){n===ft||n===Ct?m.each(o,function(i){i[e]===r&&delete i[e]}):delete o[e]},this)};Y.prototype.load_queue=function(n){return this.load_prop(this._get_queue_key(n))};Y.prototype._get_queue_key=function(n){if(n===Lt)return $a;if(n===Er)return Va;if(n===tt)return ja;if(n===Xt)return za;if(n===ft)return qa;if(n===Ct)return Wa;if(n===Qt)return Ga;J.error("Invalid queue:",n)};Y.prototype._get_or_create_queue=function(n,t){var o=this._get_queue_key(n);return t=m.isUndefined(t)?{}:t,this.props[o]||(this.props[o]=t)};Y.prototype.set_event_timer=function(n,t){var o=this.load_prop(sn)||{};o[n]=t,this.props[sn]=o,this.save()};Y.prototype.remove_event_timer=function(n){var t=this.load_prop(sn)||{},o=t[n];return m.isUndefined(o)||(delete this.props[sn][n],this.save()),o};var yi,td=function(n,t){throw new Error(n+" not available in this build.")},Be,ia=0,ug=1,Ye="mixpanel",rd="base64",lg="json",Ha="$device:",_r=B.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,nd=!_r&&ut.indexOf("MSIE")===-1&&ut.indexOf("Mozilla")===-1,bi=null;bt.sendBeacon&&(bi=function(){return bt.sendBeacon.apply(bt,arguments)});var id={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},yc={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:id,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:rd,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Mt,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Mt,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:$r,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},od=!1,x=function(){},oa=function(n,t,o){var r,e=o===Ye?Be:Be[o];if(e&&yi===ia)r=e;else{if(e&&!m.isArray(e)){J.error("You have already initialized "+o);return}r=new x}if(r._cached_groups={},r._init(n,t,o),r.people=new G,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var i=m.info.campaignParams(null),a={},s=!1;m.each(i,function(l,u){a["initial_"+u]=l,l&&(s=!0)}),s&&r.people.set_once(a)}Je.DEBUG=Je.DEBUG||r.get_config("debug");var c=yi===ia?"module":"snippet";return B.dispatchEvent(new B.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:r,source:c,token:n,name:o,info:m.info}})),!m.isUndefined(e)&&m.isArray(e)&&(r._execute_array.call(r.people,e.people),r._execute_array(e)),r};x.prototype.init=function(n,t,o){if(m.isUndefined(o)){this.report_error("You must name your new library: init(token, config, name)");return}if(o===Ye){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=oa(n,t,o);return Be[o]=r,r._loaded(),r};x.prototype._init=function(n,t,o){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var e=t.api_host||yc.api_host;e.match(/\.mixpanel\.com/)&&(r.api_payload_format=lg)}if(this.hooks={},this.set_config(m.extend({},yc,r,t,{name:o,token:n,callback_fn:(o===Ye?o:Ye+"."+o)+"._jsc"})),this._jsc=Mt,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(!m.localStorage.is_supported(!0)||!_r)this._batch_requests=!1,J.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),m.each(this.get_batcher_configs(),function(s){J.log("Clearing batch queue "+s.queue_key),m.localStorage.remove(s.queue_key)});else if(this.init_batchers(),bi&&B.addEventListener){var i=m.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);B.addEventListener("pagehide",function(s){s.persisted&&i()}),B.addEventListener("visibilitychange",function(){W.visibilityState==="hidden"&&i()})}}this.persistence=this.cookie=new Y(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=m.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ha+a,$device_id:a},""),this.flags=new Z({getFullApiRoute:m.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:m.bind(this.get_config,this),setConfigFunc:m.bind(this.set_config,this),getPropertyFunc:m.bind(this.get_property,this),trackingFunc:m.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new we(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()};x.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))J.log("Tab ID initialization skipped due to disable_persistence config");else if(m.sessionStorage.is_supported())try{var n=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+n,o="mp_gen_new_tab_id_"+n;(m.sessionStorage.get(o)||!m.sessionStorage.get(t))&&m.sessionStorage.set(t,"$tab-"+m.UUID()),m.sessionStorage.set(o,"1"),this.tab_id=m.sessionStorage.get(t),B.addEventListener("beforeunload",function(){m.sessionStorage.remove(o)})}catch(r){this.report_error("Error initializing tab id",r)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")};x.prototype.get_tab_id=function(){return this.tab_id||null};x.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return J.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var n=new rt(Ba),t=this.get_tab_id();return n.init().then(function(){return n.getAll()}).then(function(o){for(var r=0;r<o.length;r++)if(La(o[r])||o[r].tabId===t)return!0;return!1}).catch(m.bind(function(o){this.report_error("Error checking recording registry",o)},this))};x.prototype._check_and_start_session_recording=qt(function(n){if(!B.MutationObserver){J.critical("Browser does not support MutationObserver; skipping session recording");return}var t=m.bind(function(r){var e=m.bind(function(){this._recorder=this._recorder||new B.__mp_recorder(this),this._recorder.resumeRecording(r)},this);m.isUndefined(B.__mp_recorder)?td(this.get_config("recorder_src"),e):e()},this),o=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");n||o?t(!0):this._should_load_recorder().then(function(r){r&&t(!1)})});x.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)};x.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()};x.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()};x.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()};x.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")};x.prototype.get_session_recording_properties=function(){var n={},t=this._get_session_replay_id();return t&&(n.$mp_replay_id=t),n};x.prototype.get_session_replay_url=function(){var n=null,t=this._get_session_replay_id();if(t){var o=m.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});n="https://mixpanel.com/projects/replay-redirect?"+o}return n};x.prototype._get_session_replay_id=function(){var n=null;return this._recorder&&(n=this._recorder.replayId),n||null};x.prototype.__get_recorder=function(){return this._recorder};x.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 n=m.info.campaignParams(null);m.each(n,(function(t,o){this.unregister(o)}).bind(this))}};x.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(W.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(m.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(W.referrer)};x.prototype._dom_loaded=function(){m.each(this.__dom_loaded_queue,function(n){this._track_dom.apply(this,n)},this),this.has_opted_out_tracking()||m.each(this.__request_queue,function(n){this._send_request.apply(this,n)},this),delete this.__dom_loaded_queue,delete this.__request_queue};x.prototype._track_dom=function(n,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!od)return this.__dom_loaded_queue.push([n,t]),!1;var o=new n().init(this);return o.track.apply(o,t)};x.prototype._prepare_callback=function(n,t){if(m.isUndefined(n))return null;if(_r){var o=function(a){n(a,t)};return o}else{var r=this._jsc,e=""+Math.floor(Math.random()*1e8),i=this.get_config("callback_fn")+"["+e+"]";return r[e]=function(a){delete r[e],n(a,t)},i}};x.prototype._send_request=function(n,t,o,r){var e=!0;if(nd)return this.__request_queue.push(arguments),e;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;!r&&(m.isFunction(o)||typeof o=="string")&&(r=o,o=null),o=m.extend(i,o||{}),_r||(o.method="GET");var s=o.method==="POST",c=bi&&s&&o.transport.toLowerCase()==="sendbeacon",l=o.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),_r||(r?t.callback=r:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),m.extend(t,this.get_config("api_extra_query_params")),n+="?"+m.HTTPBuildQuery(t);var u=this;if("img"in t){var d=W.createElement("img");d.src=n,W.body.appendChild(d)}else if(c){try{e=bi(n,a)}catch(b){u.report_error(b),e=!1}try{r&&r(e?1:0)}catch(b){u.report_error(b)}}else if(_r)try{var h=new XMLHttpRequest;h.open(o.method,n,!0);var _=this.get_config("xhr_headers");if(s&&(_["Content-Type"]="application/x-www-form-urlencoded"),m.each(_,function(b,w){h.setRequestHeader(w,b)}),o.timeout_ms&&typeof h.timeout<"u"){h.timeout=o.timeout_ms;var v=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(h.readyState===4)if(h.status===200){if(r)if(l){var b;try{b=m.JSONDecode(h.responseText)}catch(R){if(u.report_error(R),o.ignore_json_errors)b=h.responseText;else return}r(b)}else r(Number(h.responseText))}else{var w;if(h.timeout&&!h.status&&new Date().getTime()-v>=h.timeout?w="timeout":w="Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(w),r)if(l){var S=h.responseHeaders||{};r({status:0,httpStatusCode:h.status,error:w,retryAfter:S["Retry-After"]})}else r(0)}},h.send(a)}catch(b){u.report_error(b),e=!1}else{var C=W.createElement("script");C.type="text/javascript",C.async=!0,C.defer=!0,C.src=n;var g=W.getElementsByTagName("script")[0];g.parentNode.insertBefore(C,g)}return e};x.prototype._execute_array=function(n){var t,o=[],r=[],e=[];m.each(n,function(a){a&&(t=a[0],m.isArray(t)?e.push(a):typeof a=="function"?a.call(this):m.isArray(a)&&t==="alias"?o.push(a):m.isArray(a)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?e.push(a):r.push(a))},this);var i=function(a,s){m.each(a,function(c){if(m.isArray(c[0])){var l=s;m.each(c,function(u){l=l[u[0]].apply(l,u.slice(1))})}else this[c[0]].apply(this,c.slice(1))},s)};i(o,this),i(r,this),i(e,this)};x.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};x.prototype.get_batcher_configs=function(){var n="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:n+"_ev"},people:{type:"people",api_name:"engage",queue_key:n+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:n+"_gr"}},this._batcher_configs};x.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var n=m.bind(function(o){return new Ze(o.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:m.bind(function(r,e,i){var a=this.get_config("api_routes");this._send_request(this.get_api_host(o.api_name)+"/"+a[o.api_name],this._encode_data_for_request(r),e,this._prepare_callback(i,r))},this),beforeSendHook:m.bind(function(r){var e=this._run_hook("before_send_"+o.type,r);return e?e[0]:null},this),stopAllBatchingFunc:m.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:n(t.events),people:n(t.people),groups:n(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};x.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,m.each(this.request_batchers,function(n){n.start()}))};x.prototype.stop_batch_senders=function(){this._batch_requests=!1,m.each(this.request_batchers,function(n){n.stop(),n.clear()})};x.prototype.push=function(n){this._execute_array([n])};x.prototype.disable=function(n){typeof n>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(n)};x.prototype._encode_data_for_request=function(n){var t=Sr(n);return this.get_config("api_payload_format")===rd&&(t=m.base64Encode(t)),{data:t}};x.prototype._track_or_batch=function(n,t){var o=m.truncate(n.data,255),r=n.endpoint,e=n.batcher,i=n.should_send_immediately,a=n.send_request_options||{};t=t||Mt;var s=!0,c=m.bind(function(){return a.skip_hooks||(o=this._run_hook("before_send_"+n.type,o),o&&(o=o[0])),o?(J.log("MIXPANEL REQUEST:"),J.log(o),this._send_request(r,this._encode_data_for_request(o),a,this._prepare_callback(t,o))):null},this);return this._batch_requests&&!i?e.enqueue(o).then(function(l){l?t(1,o):c()}):s=c(),s&&o};x.prototype.track=qt(function(n,t,o,r){var e;if(!(o&&o.skip_hooks)){if(e=this._run_hook("before_track",n,t),e===null)return;n=e[0],t=e[1]}!r&&typeof o=="function"&&(r=o,o=null),o=o||{};var i=o.transport;i&&(o.transport=i);var a=o.send_immediately;if(typeof r!="function"&&(r=Mt),m.isUndefined(n)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(n)){r(0);return}t=m.extend({},t),t.token=this.get_config("token");var s=this.persistence.remove_event_timer(n);if(!m.isUndefined(s)){var c=new Date().getTime()-s;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?m.info.marketingParams():{};t=m.extend({},m.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");m.isArray(u)?m.each(u,function(h){delete t[h]}):this.report_error("Invalid value for property_blacklist config: "+u);var d={event:n,properties:t};return e=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:a,send_request_options:o},r),e});x.prototype.set_group=qt(function(n,t,o){m.isArray(t)||(t=[t]);var r={};return r[n]=t,this.register(r),this.people.set(n,t,o)});x.prototype.add_group=qt(function(n,t,o){var r=this.get_property(n),e={};return r===void 0?(e[n]=[t],this.register(e)):r.indexOf(t)===-1&&(r.push(t),e[n]=r,this.register(e)),this.people.union(n,t,o)});x.prototype.remove_group=qt(function(n,t,o){var r=this.get_property(n);if(r!==void 0){var e=r.indexOf(t);e>-1&&(r.splice(e,1),this.register({group_key:r})),r.length===0&&this.unregister(n)}return this.people.remove(n,t,o)});x.prototype.track_with_groups=qt(function(n,t,o,r){var e=m.extend({},t||{});return m.each(o,function(i,a){i!=null&&(e[a]=i)}),this.track(n,e,r)});x.prototype._create_map_key=function(n,t){return n+"_"+JSON.stringify(t)};x.prototype._remove_group_from_cache=function(n,t){delete this._cached_groups[this._create_map_key(n,t)]};x.prototype.get_group=function(n,t){var o=this._create_map_key(n,t),r=this._cached_groups[o];return(r===void 0||r._group_key!==n||r._group_id!==t)&&(r=new me,r._init(this,n,t),this._cached_groups[o]=r),r};x.prototype.track_pageview=qt(function(n,t){typeof n!="object"&&(n={}),t=t||{};var o=t.event_name||"$mp_web_page_view",r=m.extend(m.info.mpPageViewProperties(),m.info.campaignParams(),m.info.clickParams()),e=m.extend({},r,n);return this.track(o,e)});x.prototype.track_links=function(){return this._track_dom.call(this,Ar,arguments)};x.prototype.track_forms=function(){return this._track_dom.call(this,Li,arguments)};x.prototype.time_event=function(n){if(m.isUndefined(n)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(n)||this.persistence.set_event_timer(n,new Date().getTime())};var dg={persistent:!0},Ya=function(n){var t;return m.isObject(n)?t=n:m.isUndefined(n)?t={}:t={days:n},m.extend({},dg,t)};x.prototype.register=function(n,t){var o=this._run_hook("before_register",n,t);if(o!==null){n=o[0],t=o[1];var r=Ya(t);r.persistent?this.persistence.register(n,r.days):m.extend(this.unpersisted_superprops,n)}};x.prototype.register_once=function(n,t,o){var r=this._run_hook("before_register_once",n,t,o);if(r!==null){n=r[0],t=r[1],o=r[2];var e=Ya(o);e.persistent?this.persistence.register_once(n,t,e.days):(typeof t>"u"&&(t="None"),m.each(n,function(i,a){(!this.unpersisted_superprops.hasOwnProperty(a)||this.unpersisted_superprops[a]===t)&&(this.unpersisted_superprops[a]=i)},this))}};x.prototype.unregister=function(n,t){var o=this._run_hook("before_unregister",n,t);o!==null&&(n=o[0],t=o[1],t=Ya(t),t.persistent?this.persistence.unregister(n):delete this.unpersisted_superprops[n])};x.prototype._register_single=function(n,t){var o={};o[n]=t,this.register(o)};x.prototype.identify=function(n,t,o,r,e,i,a,s){var c=this._run_hook("before_identify",n);if(c===null)return-1;n=c[0];var l=this.get_distinct_id();if(n&&l!==n){if(typeof n=="string"&&n.indexOf(Ha)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:n})}if(!this.get_property("$device_id")){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}n!==l&&n!==this.get_property(gi)&&(this.unregister(gi),this.register({distinct_id:n})),this._flags.identify_called=!0,this.people._flush(t,o,r,e,i,a,s),n!==l&&this.track("$identify",{distinct_id:n,$anon_distinct_id:l},{skip_hooks:!0}),n!==l&&this.flags.fetchFlags()};x.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var n=m.UUID();this.register_once({distinct_id:Ha+n,$device_id:n},""),this._check_and_start_session_recording()};x.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};x.prototype.alias=function(n,t){if(n===this.get_property(ed))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var o=this;return m.isUndefined(t)&&(t=this.get_distinct_id()),n!==t?(this._register_single(gi,n),this.track("$create_alias",{alias:n,distinct_id:t},{skip_hooks:!0},function(){o.identify(n)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(n),-1)};x.prototype.name_tag=function(n){this._register_single("mp_name_tag",n)};x.prototype.set_config=function(n){if(m.isObject(n)){m.extend(this.config,n);var t=n.batch_size;t&&m.each(this.request_batchers,function(o){o.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),Je.DEBUG=Je.DEBUG||this.get_config("debug"),("autocapture"in n||"record_heatmap_data"in n)&&this.autocapture&&this.autocapture.init(),m.isObject(n.hooks)&&(this.hooks={},m.each(n.hooks,function(o,r){if(m.isFunction(o))this.hooks[r]=[o];else if(m.isArray(o)){this.hooks[r]=[];for(var e=0;e<o.length;e++)m.isFunction(o[e])||J.critical("Invalid hook added. Hook is not a function"),this.hooks[r].push(o[e])}else J.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}};x.prototype.get_config=function(n){return this.config[n]};x.prototype._run_hook=function(n){var t=Ot.call(arguments,1);return m.each(this.hooks[n],function(o){if(t===null)return null;var r=o.apply(this,t);typeof r>"u"?(this.report_error(n+" hook did not return a valid value"),t=null):(m.isArray(r)||(r=[r]),t.splice.apply(t,[0,r.length].concat(r)))},this),t};x.prototype.get_property=function(n){return this.persistence.load_prop([n])};x.prototype.get_api_host=function(n){return this.get_config("api_hosts")[n]||this.get_config("api_host")};x.prototype.toString=function(){var n=this.get_config("name");return n!==Ye&&(n=Ye+"."+n),n};x.prototype._event_is_disabled=function(n){return m.isBlockedUA(ut)||this._flags.disable_all_events||m.include(this.__disabled_events,n)};x.prototype._gdpr_init=function(){var n=this.get_config("opt_out_tracking_persistence_type")==="localStorage";n&&m.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")||m.cookie.get("mp_optout"))&&(m.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};x.prototype._gdpr_update_persistence=function(n){var t;if(n&&n.clear_persistence)t=!0;else if(n&&n.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()};x.prototype._gdpr_call_func=function(n,t){return t=m.extend({track:m.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")},t),m.localStorage.is_supported()||(t.persistence_type="cookie"),n(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};x.prototype.opt_in_tracking=function(n){n=m.extend({enable_persistence:!0},n),this._gdpr_call_func(_v,n),this._gdpr_update_persistence(n)};x.prototype.opt_out_tracking=function(n){n=m.extend({clear_persistence:!0,delete_user:!0},n),n.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(vv,n),this._gdpr_update_persistence(n)};x.prototype.has_opted_in_tracking=function(n){return this._gdpr_call_func(gv,n)};x.prototype.has_opted_out_tracking=function(n){return this._gdpr_call_func(Al,n)};x.prototype.clear_opt_in_out_tracking=function(n){n=m.extend({enable_persistence:!0},n),this._gdpr_call_func(yv,n),this._gdpr_update_persistence(n)};x.prototype.report_error=function(n,t){J.error.apply(J.error,arguments);try{!t&&!(n instanceof Error)&&(n=new Error(n)),this.get_config("error_reporter")(n,t)}catch(o){J.error(o)}};x.prototype.add_hook=function(n,t){this.hooks[n]||(this.hooks[n]=[]),this.hooks[n].push(t)};x.prototype.remove_hook=function(n,t){var o;this.hooks[n]&&(o=this.hooks[n].indexOf(t),o!==-1?this.hooks[n].splice(o,1):J.log("remove_hook failed. Matching hook was not found"))};x.prototype.init=x.prototype.init;x.prototype.reset=x.prototype.reset;x.prototype.disable=x.prototype.disable;x.prototype.time_event=x.prototype.time_event;x.prototype.track=x.prototype.track;x.prototype.track_links=x.prototype.track_links;x.prototype.track_forms=x.prototype.track_forms;x.prototype.track_pageview=x.prototype.track_pageview;x.prototype.register=x.prototype.register;x.prototype.register_once=x.prototype.register_once;x.prototype.unregister=x.prototype.unregister;x.prototype.identify=x.prototype.identify;x.prototype.alias=x.prototype.alias;x.prototype.name_tag=x.prototype.name_tag;x.prototype.set_config=x.prototype.set_config;x.prototype.get_config=x.prototype.get_config;x.prototype.get_api_host=x.prototype.get_api_host;x.prototype.get_property=x.prototype.get_property;x.prototype.get_distinct_id=x.prototype.get_distinct_id;x.prototype.toString=x.prototype.toString;x.prototype.opt_out_tracking=x.prototype.opt_out_tracking;x.prototype.opt_in_tracking=x.prototype.opt_in_tracking;x.prototype.has_opted_out_tracking=x.prototype.has_opted_out_tracking;x.prototype.has_opted_in_tracking=x.prototype.has_opted_in_tracking;x.prototype.clear_opt_in_out_tracking=x.prototype.clear_opt_in_out_tracking;x.prototype.get_group=x.prototype.get_group;x.prototype.set_group=x.prototype.set_group;x.prototype.add_group=x.prototype.add_group;x.prototype.remove_group=x.prototype.remove_group;x.prototype.add_hook=x.prototype.add_hook;x.prototype.remove_hook=x.prototype.remove_hook;x.prototype.track_with_groups=x.prototype.track_with_groups;x.prototype.start_batch_senders=x.prototype.start_batch_senders;x.prototype.stop_batch_senders=x.prototype.stop_batch_senders;x.prototype.start_session_recording=x.prototype.start_session_recording;x.prototype.stop_session_recording=x.prototype.stop_session_recording;x.prototype.pause_session_recording=x.prototype.pause_session_recording;x.prototype.resume_session_recording=x.prototype.resume_session_recording;x.prototype.get_session_recording_properties=x.prototype.get_session_recording_properties;x.prototype.get_session_replay_url=x.prototype.get_session_replay_url;x.prototype.get_tab_id=x.prototype.get_tab_id;x.prototype.DEFAULT_API_ROUTES=id;x.prototype.__get_recorder=x.prototype.__get_recorder;Y.prototype.properties=Y.prototype.properties;Y.prototype.update_search_keyword=Y.prototype.update_search_keyword;Y.prototype.update_referrer_info=Y.prototype.update_referrer_info;Y.prototype.get_cross_subdomain=Y.prototype.get_cross_subdomain;Y.prototype.clear=Y.prototype.clear;var pr={},fg=function(){m.each(pr,function(n,t){t!==Ye&&(Be[t]=n)}),Be._=m},hg=function(){Be.init=function(n,t,o){if(o)return Be[o]||(Be[o]=pr[o]=oa(n,t,o),Be[o]._loaded()),Be[o];var r=Be;pr[Ye]?r=pr[Ye]:n&&(r=oa(n,t,Ye),r._loaded(),pr[Ye]=r),Be=r,yi===ug&&(B[Ye]=Be),fg()}},pg=function(){function n(){n.done||(n.done=!0,od=!0,nd=!1,m.each(pr,function(r){r._dom_loaded()}))}function t(){try{W.documentElement.doScroll("left")}catch{setTimeout(t,1);return}n()}if(W.addEventListener)W.readyState==="complete"?n():W.addEventListener("DOMContentLoaded",n,!1);else if(W.attachEvent){W.attachEvent("onreadystatechange",n);var o=!1;try{o=B.frameElement===null}catch{}W.documentElement.doScroll&&o&&t()}m.register_event(B,"load",n,!0)};function mg(n){return td=n,yi=ia,Be=new x,hg(),Be.init(),pg(),Be}function _g(n,t){t()}var yg=mg(_g),uo={},Yt={},Jt={},bc;function ad(){if(bc)return Jt;bc=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.EVENTS_WITHOUT_SUPER_PROPERTIES=Jt.Event=void 0;var n;return function(t){t.dashboard="Dashboard",t.cashBalance="Cash Balance",t.cardBalance="Card Balance",t.cashPosition="Cash Position",t.revenues="Revenues",t.operatingExpenses="Operating Expenses",t.topExpenses="Top Expenses",t.burnRate="Burn Rate",t.cashInCashOut="Cash In, Cash Out",t.howItWorks="How It Works",t.insights="Insights",t.brexAd="Brex Ad",t.companyPassport="Company Passport",t.addAddress="Add Address",t.editAddress="Edit Address",t.saveAddressClicked="Save Address Clicked",t.reports="Reports",t.profitAndLoss="Profit & Loss",t.balanceSheet="Balance Sheet",t.cashFlow="Cash Flow",t.profitAndLossWithForecast="Profit & Loss with Forecast",t.balanceSheetWithForecast="Balance Sheet with Forecast",t.cashFlowWithForecast="Cash Flow with Forecast",t.sidePanelClicked="Side Panel Clicked",t.transactionList="Transaction List",t.transactionDetails="Transaction Details",t.transactionDetailsSave="Transaction Details Save",t.transactionDetailReceiptOpened="Transaction Details Receipt Opened",t.transactionDetailReceiptDeleted="Attachment Deleted",t.transactionDetailReceiptAdded="Transaction Details Receipt Added",t.compareMode="Compare Mode",t.compareFilterChange="Compare Filter Change",t.compareFilterTimeframe="Compare Filter Timeframe",t.dateRangeFilter="Date Range Filter",t.timeframeSwitch="Timeframe Switch",t.graphBar="Graph Bar",t.cardStatementCloseDateClicked="Card Statement Close Date Clicked",t.cardStatementCloseDateSaved="Card Statement Close Date Saved",t.forecast="Forecast",t.forecastSwitch="Forecast Switch",t.forecastVsActualMode="Forecast vs Actual Mode",t.members="Members",t.inviteSent="Invite Sent",t.roleChanged="Role Changed",t.removeUserAccess="Remove User Access",t.resendInvite="Resend Invite",t.companySwitch="Company Switch",t.download="Download",t.sort="Sort",t.incomeTrend="Income Trend",t.spendTrend="Spend Trend",t.search="Search",t.login="Login",t.loginButton="Login Button",t.signInClick="Sign In click",t.signInViaGoogleMicrosoft="Sign In Via Google Microsoft",t.signInViaEmail="Sign In Via Email",t.signInLinkSent="Sign In Link Sent",t.loginSuccess="Login Success",t.loginFailure="Login Fail",t.logoutButton="Logout Button",t.logoutSuccess="Logout Success",t.logoutFailure="Logout Fail",t.reportGenerated="Report Generated",t.aiCFOPage="AI CFO Page",t.aiCFOChatScreenStateChanged="AI CFO Chat Screen State Changed",t.aiCFOChatSessionChanged="AI CFO Chat Session Changed",t.aiCFOChatSubmitted="AI CFO Chat Submitted",t.aiCFOChatFeedbackGiven="AI CFO Chat Feedback Given",t.aiCFOChatResponseGenerated="AI CFO Chat Response Generated",t.aiCFOChatAnswerGenerated="AI CFO Chat Answer Generated",t.aiCFOOnboardingScreenStateChanged="AI CFO Onboarding Screen State Changed",t.onboardingLinkClicked="Onboarding Invite Link Click",t.onboardingNeedHelp="Onboarding Need Help",t.onboardingInterimNeedHelp="Onboarding Interim Page Need Help",t.onboardingLandingNeedHelp="Onboarding Landing Page Need Help",t.onboardingPage="Onboarding Page",t.onboardingInterimPage="Onboarding Interim Page",t.onboardingLandingPage="Onboarding Landing Page",t.onboardingQBOConnect="Onboarding QBO Connect Clicked",t.onboardingSaveQBOConnection="Onboarding Save QBO Connection",t.onboardingClickUpdatePaymentDetails="Onboarding Landing Page Update Payment Details",t.onboardingSkipAndSave="Onboarding skip (save details if any) and activate dashboard",t.onboardingCompanyOfficerSave="Onboarding Company Officer Save",t.onboardingCompanyDetailsSave="Onboarding Company Details Save",t.onboardingDashboardActivation="Onboarding Dashboard Activation",t.onboardingConnectBank="Onboarding Connect Bank",t.onboardingConnectBankSuccess="Onboarding Connect Bank Success",t.onboardingConnectBankFailure="Onboarding Connect Bank Failure",t.onboardingConnectBankLink="Onboarding Connect Bank Link",t.onboardingConnectBankGetBalance="Onboarding Connect Bank Get Balance",t.onboardingNewCustomerStarted="Onboarding New Customer Started",t.onboardingNewCustomerGroupCreationCheck="Onboarding New Customer Group Creation Check",t.onboardingZeniManagedQBOConnectionSelected="Onboarding Zeni Managed QBO Connection Selected",t.onboardingCustomerManagedQBOConnectionSelected="Onboarding Customer Managed Connection QBO Selected",t.onboardingZeniManagedQBOConnectionSuccess="Onboarding Zeni Managed QBO Connection Successful",t.onboardingZeniManagedQBOConnectionUnsuccess="Onboarding Zeni Managed QBO Connection Unsuccessful",t.onboardingSendInvite="Onboarding Send Invite",t.onboardingResendInvite="Onboarding Resend Invite",t.onboardingSave="Onboarding Save",t.onboardingBillingAddress="Onboarding Billing Address Clicked",t.onboardingBillingAddressSave="Onboarding Billing Address Save",t.onboardingNext="Onboarding Next",t.onboardingBack="Onboarding Back",t.onboardingActiveStep="Onboarding Active Step",t.onboardingLinkBankAccount="Onboarding Link A Bank Account",t.onboardingLinkBankAccountSuccess="Onboarding Link A Bank Account Success",t.onboardingLinkBankAccountFailure="Onboarding Link A Bank Account Failure",t.onboardingLinkANewBankAccount="Onboarding Link A New Bank Account",t.onboardingLinkANewBankAccountSuccess="Onboarding Link A New Bank Account Success",t.onboardingLinkANewBankAccountFailure="Onboarding Link A New Bank Account Failure",t.onboardingLinkCreditCard="Onboarding Link Credit Card",t.onboardingLinkCreditCardSuccess="Onboarding Link Credit Card Success",t.onboardingLinkCreditCardFailure="Onboarding Link Credit Card Failure",t.onboardingLinkNewCard="Onboarding Link a New Credit Card",t.onboardingLinkNewCardSuccess="Onboarding Link a New Credit Card Success",t.onboardingLinkNewCardFailure="Onboarding Link a New Credit Card Failure",t.onboardingBankAccountPendingVerification="Onboarding Bank Account Pending Verification",t.onboardingBankAccountVerified="Onboarding Bank Account Verified",t.onboardingSwitchToBankAccount="Onboarding Switch To Bank Account",t.onboardingSwitchToBankAccountSuccess="Onboarding Switch To Bank Account Success",t.onboardingSwitchToBankAccountFailure="Onboarding Switch To Bank Account Failure",t.onboardingSwitchToCreditCard="Onboarding Switch To Credit Card",t.onboardingSwitchToCreditCardSuccess="Onboarding Switch To Credit Card Success",t.onboardingSwitchToCreditCardFailure="Onboarding Switch To Credit Card Failure",t.onboardingInterimCardClick="Onboarding Interim Page Card Click",t.onboardingLandingPageCardClick="Onboarding Landing Page Card Click",t.billingLinkNewBankAccount="Billing Link a New Bank Account",t.billingLinkNewBankAccountSuccess="Billing Link a New Bank Account Success",t.billingLinkNewBankAccountFailure="Billing Link a New Bank Account Failure",t.billingSwitchToCreditCard="Billing Switch To Credit Card",t.billingSwitchToCreditCardSuccess="Billing Switch To Credit Card Success",t.billingSwitchToCreditCardFailure="Billing Switch To Credit Card Failure",t.billingSwitchToBankAccount="Billing Switch To Bank Account",t.billingSwitchToBankAccountSuccess="Billing Switch To Bank Account Success",t.billingSwitchToBankAccountFailure="Billing Switch To Bank Account Failure",t.billingLinkNewCard="Billing Link a New Card",t.billingLinkNewCardSuccess="Billing Link a New Card Success",t.billingLinkNewCardFailure="Billing Link a New Card Failure",t.billPayHome="Bill Pay Home",t.billPaySetup="Bill Pay Setup",t.billPayPromoPage="Bill Pay Promo",t.billPayNeedHelp="Bill Pay Need Help",t.billPayBusinessVerification="Bill Pay Business Verification",t.billPayBusinessVerificationSave="Bill Pay Business Verification Save",t.billPayBusinessVerificationSend="Bill Pay Business Verification Send",t.billPayBusinessVerificationAddOfficer="Bill Pay Business Verification Add Officer",t.billPayConnectBank="Bill Pay Connect Bank",t.billPayConnectBankSuccess="Bill Pay Connect Bank Success",t.billPayConnectBankFailure="Bill Pay Connect Bank Failure",t.billPayConnectBankLink="Bill Pay Connect Bank Link",t.billPayConnectBankGetBalance="Bill Pay Connect Bank Get Balance",t.enableBillPay="Enable Bill Pay",t.billPayDrafts="Bill Pay Drafts",t.billPayDraftsOverdue="Bill Pay Drafts Overdue",t.billPayApprovals="Bill Pay Approvals",t.billPayApprovalsAwaitingApproval="Bill Pay Approvals Awaiting Approval",t.billPayApprovalsAwaitingMyApproval="Bill Pay Approvals Awaiting My Approval",t.billPayApprovalsOverdue="Bill Pay Approvals Overdue",t.billPayApprovalsRejected="Bill Pay Approvals Rejected",t.billPayApprovalsDeleted="Bill Pay Approvals Deleted",t.billPayScheduled="Bill Pay Scheduled",t.billPayScheduledFailed="Bill Pay Scheduled Failed",t.billPayScheduledCancelled="Bill Pay Scheduled Cancelled",t.billPayScheduledDeleted="Bill Pay Scheduled Deleted",t.billPayPaid="Bill Pay Paid",t.billPayPaidACH="Bill Pay Paid ACH",t.billPayPaidWire="Bill Pay Paid Wire",t.billPayPaidDeleted="Bill Pay Paid Deleted",t.billPayPaidOffline="Bill Pay Paid Offline",t.billPayNewBill="Bill Pay New Bill",t.billPayInvoiceUpload="Bill Pay Invoice Upload",t.billPaySkipAutofill="Bill Pay Skip Autofill",t.billPayInvoiceActionClick="Bill Pay Invoice Action Click",t.billPayBillDetails="Bill Pay Bill Details",t.billPayEditBill="Bill Pay Edit Bill",t.billPayDeleteBill="Bill Pay Delete Bill",t.billPayCancelBill="Bill Pay Cancel Bill",t.billPayCancelAndDeleteBill="Bill Pay Cancel And Delete Bill",t.billPayReviewBill="Bill Pay Review Bill",t.billPaySendForApproval="Bill Pay Send For Approval",t.billPayMagicLinkPreviewEmail="Bill Pay MagicLink Preview Email",t.billPayMagicLinkPageLoad="Bill Pay MagicLink Page Load",t.billPayMagicLinkSubmitBankAccountDetails="Bill Pay MagicLink Submit Bank Account Details",t.billPayFilterClick="Bill Pay Filter Click",t.billPayFilterChange="Bill Pay Filter Change",t.billPayDownloadClick="Bill Pay Download Click",t.billPayNewVendor="Bill Pay New Vendor",t.billPayEditVendor="Bill Pay Edit Vendor",t.billPayExpandVendor="Bill Pay Expand Vendor",t.billPayChooseNewVendor="Bill Pay Choose New Vendor",t.billPayCreateNewVendorFromDropdown="Bill Pay Create New Vendor From Dropdown",t.billPayAutoDateChange="Book Close - Auto Date Change",t.billPayPrivacyPolicy="Bill Pay Privacy Policy",t.billPayAgreement="Bill Pay Agreement",t.billPayPromoSchedule="Bill Pay Schedule Demo",t.billPayPromoVideo="Bill Pay Promo Video",t.billPayTaskCard="Bill Pay Task Card",t.billPayCard="Bill Pay Card",t.enableIntlWire="Enable International Wire",t.submitIntlWire="International Wire Submit",t.intlWirePaymentMethod="International Wire Payment Method",t.zeniAssistClick="Zeni Assist Click",t.retryClick="Retry Click",t.retryConfirmClick="Retry Confirm Click",t.refundClick="Refund Click",t.refundConfirmClick="Refund Confirm Click",t.billPayBulkSelectAll="Bill Pay Bulk Select All",t.billPayBulkDeleted="Bill Pay Bulk Deleted",t.billPayBulkSubmit="Bill Pay Bulk Submit",t.billPayBulkSelection="Bill Pay Bulk Selection",t.billPayBulkPopupConfirm="Bill Pay Bulk Popup Confirm",t.billPayMarkAsPaid="Mark As Paid",t.billPayMarkAsPaidSubmit="Mark As Paid Submit",t.lowBalanceAccountSelected="Low Balance Account Selected",t.lowBalanceAccountSentForApproval="Low Balance Account Sent for Approval",t.lowBalanceAccountApprove="Low Balance Account Approve",t.lowBalanceAccountReject="Low Balance Account Reject",t.lowBalanceAccountChange="Low Balance Account Change",t.lowBalanceAccountSchedule="Low Balance Account Schedule",t.cockpitTabClicked="Cockpit Tab Clicked",t.cockpitHealthMonitorRowClicked="Cockpit Health Monitor Row Clicked",t.cockpitHealthMonitorChurnFormClicked="Cockpit Health Monitor Churn Form Click",t.cockpitHealthMonitorNotificationAlertClicked="Cockpit Health Monitor Notification Alert Clicked",t.reimbursementHome="Reimbursement Home",t.reimbursementSetup="Reimbursement Setup",t.reimbursementPromoPage="Reimbursement Promo",t.reimbursementTaskCard="Reimbursement Task Card",t.reimbursementFilterClick="Reimbursement Filter Click",t.reimbursementFilterChange="Reimbursement Filter Change",t.reimbursementDownloadClick="Reimbursement Download Click",t.reimbursementBulkSelectAll="Reimbursement Bulk Select All",t.reimbursementBulkDeleted="Reimbursement Bulk Deleted",t.reimbursementBulkSubmit="Reimbursement Bulk Submit",t.reimbursementBulkSelection="Reimbursement Bulk Selection",t.reimbursementBulkPopupConfirm="Reimbursement Bulk Popup Confirm",t.accountsListPageViewed="Accounts List Page Viewed",t.zeniAccountsSetup="Zeni Accounts Setup",t.accountsPromoPageViewed="Accounts Promo Page Viewed",t.zeniAccountsPromoCardClick="Zeni Accounts Promo Card Click",t.zeniAccountsCashBalancePromoClicked="Zeni Accounts Cash Balance Promo Clicked",t.zeniAccountsNeedHelp="Zeni Accounts Need Help",t.zeniAccountsBusinessVerification="Zeni Accounts Business Verification",t.zeniAccountsBusinessVerificationSave="Zeni Accounts Business Verification Save",t.zeniAccountsBusinessVerificationSend="Zeni Accounts Business Verification Send",t.plgPromoActionTaken="Promo Action Taken",t.cardsPromoPage="Cards Promo Page Viewed",t.cardsPromoPageClick="Cards Promo Page Clicked",t.cardsListPage="Cards List Page Viewed",t.cardsListPageClick="Cards List Page Clicked",t.cardsIssueNewCardFormClick="Issue New Card Form Clicked",t.cardsListRowClick="Cards List Row Clicked",t.cardsDetailPage="Cards Detail Page Viewed",t.cardsDetailPageClick="Cards Detail Page Clicked",t.cardsVerifyPopUpClick="Cards Verify Pop-Up Clicked",t.cardsSetupVisited="Cards Setup Page Visited",t.cardsPromoView="Cards Promo View",t.cardsSetupCardsClick="Cards Set Up Cards Click",t.cardsEnableCardsClick="Cards Enable Cards Click",t.cardsScheduleDemoClick="Cards Schedule Demo Click",t.cardsCardListView="Cards Card List View",t.cardsCardListSearchClick="Cards Card List Search Click",t.cardsCardListMoreMenuClick="Cards Card List More Menu Click",t.cardsSettingsClick="Cards Settings Click",t.cardsCardSetupView="Cards Card Setup View",t.cardsVerifyIdentityCompanyDetailsClick="Cards Verify Identity & Company Details Click",t.cardsPaymentAccountChangeClick="Cards Payment Account Change Click",t.cardsZeniCashAccountChangeClick="Cards Zeni Cash Account Change Click",t.cardsStatementsClick="Cards Statements Click",t.cardsCreditCardStatementsView="Cards Credit Card Statements View",t.cardsDownloadClick="Cards Download Click",t.cardsNewCardClick="Cards New Card Click",t.cardsCashbackOverviewClick="Cards Cashback Overview Click",t.cardsCardListRowClick="Cards Card List Row Click",t.cardsCopyIconClick="Cards Copy Icon Click",t.cardsCardListSortClick="Cards Card List Sort Click",t.cardsCardDetailView="Cards Card Detail View",t.cardsUpdateSpendLimitInitiated="Cards Update Spend Limit Initiated",t.cardsUpdateSpendLimitClick="Cards Update Spend Limit Click",t.cardsAddToWalletClick="Cards Add to Wallet Click",t.cardsNeedHelp="Cards Need Help",t.cardsBusinessVerification="Cards Business Verification",t.cardsBusinessVerificationSave="Cards Business Verification Save",t.cardsBusinessVerificationSend="Cards Business Verification Send",t.cardsConnectBank="Cards Connect Bank",t.cardsConnectBankSuccess="Cards Connect Bank Success",t.cardsConnectBankFailure="Cards Connect Bank Failure",t.cardsConnectBankGetBalance="Cards Connect Bank Get Balance",t.cardsConnectBankLink="Cards Connect Bank Link",t.zeniCardsPromoCardClicked="Zeni Cards Promo Card Click",t.cardsPayEarlyClick="Cards Pay Early Click",t.cardsPayEarlyFormView="Cards Pay Early Form View",t.cardsPayEarlyFormClick="Cards Pay Early Form Click",t.cardsPayEarlyPayNowClick="Cards Pay Early Pay Now Click",t.accountsListPageClicked="Accounts List Page Clicked",t.zeniAccountsTransferFormViewed="Transfer Between Accounts Form Viewed",t.zeniAccountsTransferFormClicked="Transfer Between Accounts Form Clicked",t.accountsDepositCheckFormViewed="Accounts Deposit Check Form Viewed",t.accountsDepositCheckFormClicked="Accounts Deposit Check Form Clicked",t.accountsPromoPageClicked="Accounts Promo Page Clicked",t.zeniAccountsSettingPageVisited="Zeni Accounts Setting Page Visited",t.zeniAccountsConnectBank="Zeni Accounts Connect Bank",t.zeniAccountsConnectBankSuccess="Zeni Accounts Connect Bank Success",t.zeniAccountsConnectBankFailure="Zeni Accounts Connect Bank Failure",t.zeniAccountsConnectBankGetBalance="Zeni Accounts Connect Bank Get Balance",t.zeniAccountsConnectBankLink="Zeni Accounts Connect Bank Link",t.enableZeniAccounts="Enable Zeni Accounts",t.reimbursementNeedHelp="Reimbursement Need Help",t.reimbursementBusinessVerification="Reimbursement Business Verification",t.reimbursementBusinessVerificationSave="Reimbursement Business Verification Save",t.reimbursementBusinessVerificationSend="Reimbursement Business Verification Send",t.reimbursementBusinessVerificationAddOfficer="Reimbursement Business Verification Add Officer",t.reimbursementConnectBank="Reimbursement Connect Bank",t.reimbursementConnectBankSuccess="Reimbursement Connect Bank Success",t.reimbursementConnectBankFailure="Reimbursement Connect Bank Failure",t.reimbursementConnectBankLink="Reimbursement Connect Bank Link",t.reimbursementConnectBankGetBalance="Reimbursement Connect Bank Get Balance",t.enableReimbursement="Enable Reimbursement",t.reimbursementMileageRateSave="Reimbursement Mileage Rate Save",t.reimbursementMileageRateEdit="Reimbursement Mileage Rate Edit",t.reimbursementPrivacyPolicy="Reimbursement Privacy Policy",t.reimbursementAgreement="Reimbursement Agreement",t.reimbursementPromoSchedule="Reimbursement Schedule Demo",t.reimbursementPromoVideo="Reimbursement Promo Video",t.reimbursementCard="Reimbursement Card",t.reimbursementDrafts="Reimbursement Drafts",t.reimbursementMyDrafts="Reimbursement My Drafts",t.reimbursementApprovals="Reimbursement Approvals",t.reimbursementApprovalsAwaitingApproval="Reimbursement Approvals Awaiting Approval",t.reimbursementApprovalsAwaitingAllApproval="Reimbursement Approvals Awaiting All Approval",t.reimbursementApprovalsAwaitingMyApproval="Reimbursement Approvals Awaiting My Approval",t.reimbursementApprovalsRejected="Reimbursement Approvals Rejected",t.reimbursementApprovalsDeleted="Reimbursement Approvals Deleted",t.reimbursementScheduled="Reimbursement Scheduled",t.reimbursementScheduledFailed="Reimbursement Scheduled Failed",t.reimbursementScheduledCancelled="Reimbursement Scheduled Cancelled",t.reimbursementScheduledDeleted="Reimbursement Scheduled Deleted",t.reimbursementPaid="Reimbursement Paid",t.reimbursementPaidACH="Reimbursement Paid ACH",t.reimbursementPaidDeleted="Reimbursement Paid Deleted",t.reimbursementListSort="Reimbursement List Sort",t.reimbursementNewReimbursement="Reimbursement New Reimbursement",t.reimbursementInvoiceUpload="Reimbursement Invoice Upload",t.reimbursementSkipAutofill="Reimbursement Skip Autofill",t.reimbursementSubmitReimbursement="Reimbursement Submit Reimbursement",t.reimbursementReimbursementDetails="Reimbursement Reimbursement Details",t.reimbursementEditReimbursement="Reimbursement Edit Reimbursement",t.reimbursementDeleteReimbursement="Reimbursement Delete Reimbursement",t.reimbursementCancelReimbursement="Reimbursement Cancel Reimbursement",t.reimbursementCancelAndDeleteReimbursement="Reimbursement Cancel And Delete Reimbursement",t.reimbursementSubmitAnywayDuplicateReimbursement="Reimbursement Submit Anyway Duplicate Reimbursement",t.reimbursementReviewDuplicateReportReimbursement="Reimbursement Review Duplicate Report Reimbursement",t.reimbursementDeleteReimbursementLine="Reimbursement Delete Reimbursement Line",t.reimbursementViewDuplicateExpense="Reimbursement View Duplicate Expense",t.groupBySwitch="Group By Switch",t.burnRateCalculatorSettings="Burn Rate Calculator Settings",t.vendorList="Vendor List",t.vendorListSort="Vendor List Sort",t.vendorListSpendTrendSelection="Vendor List Spend Trend Selection",t.vendorListSearch="Vendor List Search",t.vendorDetails="Vendor Details",t.vendorDetailsSave="Vendor Details Save",t.vendorDetailsCancel="Vendor Details Cancel",t.vendorDetailsSpendTrendHotlinkClicked="Vendor Details Spend Trend Hotlink Clicked",t.vendorOperatingExpenses="Operating Expenses By Vendor",t.vendorOperatingExpensesPageLoaded="Operating Expenses By Vendor Page Loaded",t.agingReport="Aging Report",t.agingReportDateChange="Aging Report Date Change",t.apAgingDetail="AP Aging Detail",t.arAgingDetail="AR Aging Detail",t.vendorTenantReviewListPage="Vendor Dedupe Tenant Review List Page",t.vendorGlobalReviewListPage="Vendor Dedupe Global Review List Page",t.vendorReviewList="Vendor Dedupe Review List Loaded",t.vendorReviewTenantSave="Vendor Dedupe First Review",t.vendorReviewTenantMergeInQBORedirect="Vendor Dedupe Merge in QBO Redirected",t.vendorReviewTenantMergeInQBOCancel="Vendor Dedupe Merge in QBO Canceled",t.vendorReviewTenantRecommendationUpdateContinue="Vendor Dedupe Recommendation Update Continued",t.vendorReviewTenantRecommendationUpdateCancel="Vendor Dedupe Recommendation Update Canceled",t.vendorReviewTenantUpdateCancel="Vendor Dedupe Update Canceled",t.vendorReviewTenantWebsiteOpened="Vendor Dedupe Website Opened",t.vendorReviewGlobalApproveRequest="Vendor Dedupe Approve Requested",t.vendorReviewGlobalNewVendorRequest="Vendor Dedupe New Vendor Requested",t.vendorReviewGlobalNewVendorSave="Vendor Dedupe New Vendor Saved",t.vendorReviewGlobalNewVendorCancel="Vendor Dedupe New Vendor Canceled",t.vendor1099ListPage="Vendors 1099",t.vendor1099TabSettingsSave="1099 Settings Save",t.vendor1099AccountingSettingsSave="Settings Accounting 1099 Save",t.vendor1099W9DocumentUpload="1099 Vendor W9 Upload",t.vendor1099DetailsSave="1099 Vendor Save",t.vendor1099ReportDownload="1099 Download",t.scheduleReviewList="Schedule Review List Loaded",t.scheduleReviewListDownload="Schedule Review List Download",t.scheduleDetailsPage="Schedule Details Loaded",t.scheduleDetailsNewRequested="Schedule Details New Requested",t.scheduleDetailsPreview="Schedule Details Previewed",t.scheduleDetailsSave="Schedule Details Saved",t.scheduleDetailsCancel="Schedule Details Canceled",t.scheduleDetailsLinkJournalEntry="Schedule Details Link Journal Entry",t.scheduleDetailsViewJournalEntry="Schedule Details View Journal Entry",t.scheduleDetailsJournalEntryViewLinkedExpense="Schedule Details Journal Entry View Linked Expense",t.scheduleDetailsJournalEntryLinkedSaved="Schedule Details Journal Entry Linked Saved",t.scheduleDetailsJournalEntryQBOFetched="Schedule Details Journal Entry QBO Fetched",t.scheduleDetailsJournalEntryLinkCancel="Schedule Details Journal Entry Link Canceled",t.scheduleDetailsEntryCanceled="Schedule Details Entry Canceled",t.scheduleDetailsJournalEntryLinkExpense="Schedule Details Journal Entry Link Expense",t.scheduleDetailsJournalEntryLinkExpenseLoaded="Schedule Details Journal Entry Link Expense Loaded",t.scheduleDetailsJournalEntryLinkExpenseCanceled="Schedule Details Journal Entry Link Expense Canceled",t.scheduleDetailsJounralEntryLinkExpenseSaved="Schedule Details Journal Entry Linked Expense Saved",t.scheduleDetailsDelete="Schedule Details Deleted",t.scheduleDetailsMarkComplete="Schedule Details Marked As Complete",t.taskListPage="Task List Page",t.taskDetailPage="Task Detail Page",t.cockpitTaskCardClicked="Cockpit Task Card Clicked",t.taskEdited="Task Edited",t.newTaskRequested="New Task Requested",t.healthMonitorFilterApplied="Health Monitor Filter Applied",t.error="Error",t.rewardsPageViewed="Rewards Page Viewed",t.rewardsPageClicked="Rewards Page Clicked",t.dashboardCardClicked="Dashboard Card Clicked",t.inviteEmailViewed="Rewards Invite Email Viewed",t.inviteEmailClicked="Rewards Invite Email Clicked",t.getAuditScore="Get Score",t.auditScorePercentage="Score %",t.auditIssueType="Issue Type",t.auditIssuesClicked="Issue Clicked",t.commentAdded="Comment Added",t.commentActivity="Comment Activity",t.monthCloseClicked="Month Close Clicked",t.monthCloseAuditPage="Month Close: Audit Page",t.transactionsReview="Transactions: Review",t.transactionsAutoCategorised="Transactions: Autocategorised",t.monthCloseScheduleList="Month Close: Schedule List",t.fluxAnalysis="Flux Analysis",t.fluxAnalysisReviewed="Flux Analysis: Reviewed",t.missingReceipts="Missing Receipts",t.receiptsAttached="Receipt Attached",t.insightsEmail="Insights Email",t.sendMoneyClick="Send Money Click",t.expressPayNextClick="Express Pay Next Click",t.expressPayScheduleClick="Express Pay Schedule Click",t.aiCFOPrivacyPolicy="AI CFO Privacy Policy",t.aiCFOAgreement="AI CFO Agreement",t.treasuryNavPromoClick="Treasury Nav Promo Click",t.treasuryPromoView="Treasury Promo View",t.treasurySetupActionClick="Treasury Setup Action Click",t.treasuryProspectusClick="Treasury Prospectus Click",t.treasuryCalculatorClick="Treasury Calculator Click",t.treasuryAgreementView="Treasury Agreement View",t.treasuryAllocationAction="Treasury Allocation Action",t.treasuryRiskAction="Treasury Risk Action",t.treasuryVerificationNavigation="Treasury Verification Navigation",t.treasuryTransferAction="Treasury Transfer Action",t.treasuryDashboardInteraction="Treasury Dashboard Interaction",t.treasuryPortfolioConfirm="Treasury Portfolio Confirm",t.transactionCotView="Transaction Cot View",t.transactionCotDropdownView="Transaction Cot Dropdown View",t.transactionCotViewAlternative="Transaction Cot View Alternative",t.transactionCotViewRecommended="Transaction Cot View Recommended",t.aiPerfHome="AI Perf Home",t.aiPerfRefresh="AI Perf Refresh",t.aiPerfTimePeriodSelect="AI Perf Time Period Select",t.otherConnectionConnectBank="Other Connection Connect Bank",t.otherConnectionConnectBankSuccess="Other Connections Connect Bank Success",t.otherConnectionConnectBankFailure="Other Connections Connect Bank Failure",t.otherConnectionsConnectBankLink="Other Connections Connect Bank Link",t.otherConnectionConnectBankGetBalance="Other Connection Connect Bank Get Balance"}(n||(Jt.Event=n={})),Jt.EVENTS_WITHOUT_SUPER_PROPERTIES=new Set([n.signInClick,n.signInViaGoogleMicrosoft,n.signInViaEmail,n.signInLinkSent]),Jt}var Cc;function vg(){if(Cc)return Yt;Cc=1;var n=Yt&&Yt.__assign||function(){return n=Object.assign||function(r){for(var e,i=1,a=arguments.length;i<a;i++){e=arguments[i];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}return r},n.apply(this,arguments)};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.Analytics=void 0;var t=ad(),o=function(){function r(e){this.provider=e,this.superProperties={},this.userProperties={},this.userAndSuperProperties={}}return r.splitUserAndSuperProperties=function(e){var i,a,s,c,l,u,d,h,_,v,C,g,b,w,S,R,T,I,M,O,N,F,$={$distinct_id:(i=e.$distinct_id)!==null&&i!==void 0?i:"",user_id:(a=e.user_id)!==null&&a!==void 0?a:"",role_at_company:(s=e.role_at_company)!==null&&s!==void 0?s:"",$email:(c=e.$email)!==null&&c!==void 0?c:"",user_email_domain:(l=e.user_email_domain)!==null&&l!==void 0?l:"",$first_name:(u=e.$first_name)!==null&&u!==void 0?u:"",$last_name:(d=e.$last_name)!==null&&d!==void 0?d:"",company_ids:(h=e.company_ids)!==null&&h!==void 0?h:[],company_names:(_=e.company_names)!==null&&_!==void 0?_:[],user_roles:(v=e.user_roles)!==null&&v!==void 0?v:[],app_type:(C=e.app_type)!==null&&C!==void 0?C:"web",app_version:(g=e.app_version)!==null&&g!==void 0?g:"",app_short_version:(b=e.app_short_version)!==null&&b!==void 0?b:"",profile_type:(w=e.profile_type)!==null&&w!==void 0?w:void 0,chargebee_customer_id:(S=e.chargebee_customer_id)!==null&&S!==void 0?S:"",is_zeni:(R=e.is_zeni)!==null&&R!==void 0?R:void 0},z={appearance:(T=e.appearance)!==null&&T!==void 0?T:void 0,company_id:(I=e.company_id)!==null&&I!==void 0?I:"",company_name:(M=e.company_name)!==null&&M!==void 0?M:"",user_role:(O=e.user_role)!==null&&O!==void 0?O:[],tenant_id:(N=e.tenant_id)!==null&&N!==void 0?N:"",tenant_email_domain:(F=e.tenant_email_domain)!==null&&F!==void 0?F:""};return{userProperties:$,superProperties:z}},r.prototype.identify=function(e,i){var a=i??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,a,{$distinct_id:e,profile_type:"user"});var s=r.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=s.userProperties,this.superProperties=s.superProperties,this.provider.identify(e,this.userProperties)},r.prototype.identifyUserAndCompany=function(e,i,a,s,c){var l=s??{};this.userAndSuperProperties=Object.assign({},this.userAndSuperProperties,l,{$distinct_id:e==="company"?a:i,user_id:i,company_id:a,profile_type:e});var u=r.splitUserAndSuperProperties(this.userAndSuperProperties);this.userProperties=u.userProperties,this.superProperties=u.superProperties,this.provider.identifyUserAndCompany(e,i,a,this.userProperties,c)},r.prototype.resetUserIdentity=function(){console.warn("Resetting user identity"),this.superProperties={},this.userProperties={},this.userAndSuperProperties={},this.provider.reset()},r.prototype.track=function(e){this.fireTrack(e)},r.prototype.trackLogin=function(e,i,a,s,c){this.fireTrack(e,{login_type:i,customer_type:a,utm_source:s,utm_medium:c})},r.prototype.trackSignInClick=function(e){var i=e.charAt(0).toUpperCase()+e.slice(1),a={login_type:i};this.fireTrack(t.Event.signInClick,a)},r.prototype.trackSignInViaGoogleMicrosoft=function(){this.fireTrack(t.Event.signInViaGoogleMicrosoft)},r.prototype.trackSignInViaEmail=function(){this.fireTrack(t.Event.signInViaEmail)},r.prototype.trackSignInLinkSent=function(){this.fireTrack(t.Event.signInLinkSent)},r.prototype.trackError=function(e,i,a,s){this.fireTrack(e,{error_referrer:i,error_description:a,error_code:s})},r.prototype.trackSidePanelClicked=function(e,i){this.fireTrack(t.Event.sidePanelClicked,{sidepanel_click_type:e,sidepanel_click_group_type:i})},r.prototype.trackLogout=function(e){this.fireTrack(e)},r.prototype.trackPageLoaded=function(e,i,a){this.fireTrack(e,{referrer_card:i,customer_type:a})},r.prototype.trackTransactionList=function(e,i,a,s,c,l){this.fireTrack(t.Event.transactionList,{account_id:e,account_name:i,referrer_card:a,referrer_account:s,referrer_account_group:c,load_more:l})},r.prototype.trackTransactionDetails=function(e,i,a,s,c,l,u,d,h,_,v){this.fireTrack(t.Event.transactionDetails,{account_id:e,account_name:i,transaction_id:a,transaction_name:s,category:c,class:l,transaction_type:u,transaction_amount:d,transaction_memo:h,line_item_count:_,receipt_file_names:v})},r.prototype.trackCompareMode=function(e,i,a){this.fireTrack(t.Event.compareMode,{is_turned_on:e,referrer_card:i,graph_filter:a})},r.prototype.trackCompareFilterChange=function(e,i,a,s){this.fireTrack(t.Event.compareFilterChange,{value:e,referrer_card:i,graph_filter:a,clicked_on:s})},r.prototype.trackCompareFilterTimeFrame=function(e,i,a,s){this.fireTrack(t.Event.compareFilterTimeframe,{referrer_card:e,graph_filter:i,clicked_on:a,value:s})},r.prototype.trackDateRangeFilterChange=function(e,i,a,s,c){this.fireTrack(t.Event.dateRangeFilter,{parent_card:e,clicked_on:i,compare_mode:a,value:s,bar_name:c})},r.prototype.trackTimeframeSwitch=function(e,i,a){this.fireTrack(t.Event.timeframeSwitch,{value:e,parent_card:i,referrer_card:a})},r.prototype.trackGraphBar=function(e,i,a,s){this.fireTrack(t.Event.graphBar,{referrer_card:e,graph_filter:i,compare_mode:a,bar_name:s})},r.prototype.trackInviteSent=function(e,i,a){this.fireTrack(t.Event.inviteSent,{role:e,count:i,emails:a})},r.prototype.trackRoleChanged=function(e,i,a){this.fireTrack(t.Event.roleChanged,{old_role:e,new_role:i,member_email:a})},r.prototype.trackRemoveUserAccess=function(e,i){this.fireTrack(t.Event.removeUserAccess,{role:e,member_email:i})},r.prototype.trackResendInvite=function(e,i){this.fireTrack(t.Event.resendInvite,{role:e,member_email:i})},r.prototype.trackCompanySwitch=function(e,i,a){this.fireTrack(t.Event.companySwitch,{new_company_id:e,new_company_name:i,new_user_role:a})},r.prototype.trackDownload=function(e,i,a,s){this.fireTrack(t.Event.download,{referrer_card:e,graph_filter:i,file_type:a,compare_mode:s})},r.prototype.trackSpendIncomeTrendForTransaction=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(e,{referrer_card:i,transaction_id:a,transaction_type:s,transaction_name:c,account_ids:l,account_names:u,class_ids:d,class_names:h,bar_name:_})},r.prototype.trackSpendIncomeTrend=function(e,i,a,s,c){this.fireTrack(e,{referrer_card:i,bar_name:c,entity_name:s,entity_type:a})},r.prototype.trackSearch=function(e,i,a,s,c){this.fireTrack(e,{referrer_card:i,entity_type:a,entity_name:s,search_term:c})},r.prototype.trackTransactionDetailReceipt=function(e,i,a,s,c,l,u){this.fireTrack(e,{attachment_id:i,transaction_id:a,transaction_name:s,transaction_type:c,account_ids:l,account_names:u})},r.prototype.trackTransactionDetailReceiptUpload=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.transactionDetailReceiptAdded,{account_id:e,account_name:i,transaction_id:a,transaction_name:s,transaction_type:c,transaction_memo:l,file_name:u,file_type:d})},r.prototype.trackCardStatementCloseDate=function(e,i,a,s,c){this.fireTrack(e,{referrer_card:s,account_id:i,account_name:a,value:c})},r.prototype.trackReportGenerated=function(e,i,a,s,c,l,u,d){var h={report_id:e,file_type:i,time_taken_rest_api:a,time_taken_data_transform:s,time_taken_rendering:c,time_taken_total:l};Object.assign(h,u!=null?{time_taken_pdf_merge:u}:{}),Object.assign(h,d!=null?{time_taken_sub_report_total_max:d}:{}),this.fireTrack(t.Event.reportGenerated,h)},r.prototype.trackInsightsNavigation=function(e,i){this.fireTrack(e,{referrer_view:i})},r.prototype.trackForecast=function(){this.fireTrack(t.Event.forecast)},r.prototype.trackForecastSwitch=function(e,i){this.fireTrack(t.Event.forecastSwitch,{parent_card:e,forecast_name:i})},r.prototype.trackForecastVsActualMode=function(e,i,a){this.fireTrack(t.Event.forecastVsActualMode,{parent_card:e,forecast_name:i,is_turned_on:a})},r.prototype.trackSpendManagmentFilterClick=function(e){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayFilterClick);break}case"reimbursement":{this.fireTrack(t.Event.reimbursementFilterClick);break}}},r.prototype.trackSpendManagmentFilterChange=function(e,i){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayFilterChange,{filter_categories:i});break}case"reimbursement":{this.fireTrack(t.Event.reimbursementFilterChange,{filter_categories:i});break}}},r.prototype.trackSpendManagementDownloadClick=function(e){switch(e){case"bill_pay":{this.fireTrack(t.Event.billPayDownloadClick);break}case"reimbursement":{this.fireTrack(t.Event.reimbursementDownloadClick);break}}},r.prototype.trackBillPayPrivacyPolicy=function(){this.fireTrack(t.Event.billPayPrivacyPolicy)},r.prototype.trackBillPayAgreement=function(){this.fireTrack(t.Event.billPayAgreement)},r.prototype.trackReimbursementPrivacyPolicy=function(){this.fireTrack(t.Event.reimbursementPrivacyPolicy)},r.prototype.trackReimbursementAgreement=function(){this.fireTrack(t.Event.reimbursementAgreement)},r.prototype.trackReimbursementMileageRateSave=function(e){var i={mileage_unit_amount:e};this.fireTrack(t.Event.reimbursementMileageRateSave,i)},r.prototype.trackReimbursementMileageRateEdit=function(){this.fireTrack(t.Event.reimbursementMileageRateEdit)},r.prototype.trackReimbursementPromoScheduleDemo=function(){this.fireTrack(t.Event.reimbursementPromoSchedule)},r.prototype.trackReimbursementPromoVideo=function(){this.fireTrack(t.Event.reimbursementPromoVideo)},r.prototype.trackBillPayPromoScheduleDemo=function(){this.fireTrack(t.Event.billPayPromoSchedule)},r.prototype.trackBillPayPromoVideo=function(){this.fireTrack(t.Event.billPayPromoVideo)},r.prototype.trackBillPayTaskCard=function(e){var i={count:e};this.fireTrack(t.Event.billPayTaskCard,i)},r.prototype.trackBillPayCard=function(e,i){var a={transaction_amount:i,bill_pay_tab_subtab:e};this.fireTrack(t.Event.billPayCard,a)},r.prototype.trackReimbursementCard=function(e,i){var a={transaction_amount:i,reimbursement_tab_subtab:e};this.fireTrack(t.Event.reimbursementCard,a)},r.prototype.trackReimbursementTaskCard=function(e){var i={count:e};this.fireTrack(t.Event.reimbursementTaskCard,i)},r.prototype.trackOnboardingConnectQBO=function(){this.fireTrack(t.Event.onboardingQBOConnect)},r.prototype.trackOnboardingSaveQBOConnection=function(e,i){var a={qbo_realm_id:e,qbo_connection_id:i};this.fireTrack(t.Event.onboardingSaveQBOConnection,a)},r.prototype.trackOnboardingClickUpdatePaymentDetails=function(e,i){var a={payment_method:e,customer_type:i};this.fireTrack(t.Event.onboardingClickUpdatePaymentDetails,a)},r.prototype.trackOnboardingCurrentStep=function(e,i){var a={onboarding_current_step:e,onboarding_previous_step:i};this.fireTrack(t.Event.onboardingActiveStep,a)},r.prototype.trackOnboardingBankAccountPendingVerification=function(e,i){var a={verification_type:e,plaid_session_id:i};this.fireTrack(t.Event.onboardingBankAccountPendingVerification,a)},r.prototype.trackOnboardingBankAccountVerified=function(e){var i={verification_type:e};this.fireTrack(t.Event.onboardingBankAccountVerified,i)},r.prototype.trackOnboardingBillingAddress=function(e){var i={billing_address_field:e};this.fireTrack(t.Event.onboardingBillingAddress,i)},r.prototype.trackOnboardingBillingAddressSave=function(e){var i={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,i)},r.prototype.trackOnboardingBack=function(e,i){var a={onboarding_current_step:e,onboarding_previous_step:i};this.fireTrack(t.Event.onboardingBack,a)},r.prototype.trackOnboardingNext=function(e,i){var a={onboarding_current_step:i,onboarding_previous_step:e};this.fireTrack(t.Event.onboardingNext,a)},r.prototype.trackSaveAddressClicked=function(e,i){var a,s,c,l,u,d,h,_={address:{street:(a=i?.street)!==null&&a!==void 0?a:"",suite:(s=i?.suite)!==null&&s!==void 0?s:"",city:(c=i?.city)!==null&&c!==void 0?c:"",state:(l=i?.state)!==null&&l!==void 0?l:"",country:(u=i?.country)!==null&&u!==void 0?u:"",postal_code:(d=i?.postalCode)!==null&&d!==void 0?d:"",secondary_info:(h=i?.secondaryInfo)!==null&&h!==void 0?h:""}};this.fireTrack(e,_)},r.prototype.trackOnboardingCompanyOfficerSave=function(e,i){var a={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:i.legalName};this.fireTrack(t.Event.onboardingCompanyOfficerSave,a)},r.prototype.trackOnboardingCompanyDetailsSave=function(e,i){var a={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};this.fireTrack(t.Event.onboardingCompanyDetailsSave,a)},r.prototype.trackOnboardingNewCustomerStarted=function(){this.fireTrack(t.Event.onboardingNewCustomerStarted)},r.prototype.trackOnboardingNewCustomerGroupCreationCheck=function(e,i){var a={company_email_domain:e.companyEmailDomain,primary_contact_email:e.primaryContactEmail,group_name:i.groupName,group_email:i.groupEmail,group_description:i.groupDescription,is_company_email_domain_available:i.isCompanyEmailDomainAvailable};this.fireTrack(t.Event.onboardingNewCustomerGroupCreationCheck,a)},r.prototype.trackOnboardingQBOConnectionSelected=function(e){var i={first_name:e.firstName,last_name:e.lastName,customer_email:e.customerEmail};switch(e.isZeniOrCustomer){case"customer":this.fireTrack(t.Event.onboardingCustomerManagedQBOConnectionSelected,i);break;default:this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionSelected,i);break}},r.prototype.trackOnboardingZeniManagedQBOConnection=function(e){var i={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,i):this.fireTrack(t.Event.onboardingZeniManagedQBOConnectionUnsuccess,i)},r.prototype.trackOnboardingSaveOrSendInvite=function(e,i,a,s){var c={company_domain:e.companyDomain,primary_contact_email:e.primaryContactEmail,group_name:i.groupName,group_email:i.groupEmail,group_description:i.groupDescription,first_name:a.firstName,last_name:a.lastName,customer_email:a.customerEmail,company_name:a.companyName,entitty_type:a.entittyType,qbo_realm_id:a.qboRealmId,hubspot_id:a.hubSpotId,chargebee_id:a.chargebeeId,products:a.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,c):this.fireTrack(t.Event.onboardingSendInvite,c):this.fireTrack(t.Event.onboardingSave,c)},r.prototype.trackOnboardingInterimCard=function(e){var i={card_click:e};this.fireTrack(t.Event.onboardingInterimCardClick,i)},r.prototype.trackOnboardingLandingPageCardClick=function(e){var i={card_click:e};this.fireTrack(t.Event.onboardingLandingPageCardClick,i)},r.prototype.trackBusinessVerificationSave=function(e,i,a,s,c){var l={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:i.companyDescription,company_legal_name:i.legalName,company_industry:i.industry,company_phone:i.phone,company_website:i.website,company_address:i.formattedAddress,inc_date:i.incDate,primary_contact_first_name:a.firstName,primary_contact_last_name:a.lastName,primary_contact_email:a.email,referrer_card:c};switch(s){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsBusinessVerificationSave,l);break;case"reimbursement":this.fireTrack(t.Event.reimbursementBusinessVerificationSave,l);break;case"onboarding":this.fireTrack(t.Event.onboardingSkipAndSave,l);break;case"charge_cards":this.fireTrack(t.Event.cardsBusinessVerification,l);break;case"bill_pay":default:this.fireTrack(t.Event.billPayBusinessVerificationSave,l);break}},r.prototype.trackBusinessVerificationSend=function(e,i,a,s,c){var l={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:i.companyDescription,company_legal_name:i.legalName,company_industry:i.industry,company_phone:i.phone,company_website:i.website,company_address:i.formattedAddress,inc_date:i.incDate,primary_contact_first_name:a.firstName,primary_contact_last_name:a.lastName,primary_contact_email:a.email,referrer_card:c};switch(s){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsBusinessVerificationSend,l);break;case"reimbursement":this.fireTrack(t.Event.reimbursementBusinessVerificationSend,l);break;case"charge_cards":this.fireTrack(t.Event.cardsBusinessVerificationSend,l);break;case"bill_pay":default:this.fireTrack(t.Event.billPayBusinessVerificationSend,l);break}},r.prototype.onboardingConnectBankEventsByEventSource=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.onboardingConnectBankEventsByEventSourceSuccess=function(e,i,a,s,c,l){if(l!=null&&c!=null)switch(l){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccountSuccess,{referrer_card:c,plaid_session_id:e,plaid_account_id:i,is_micro_deposit_verification_done:a??!1,plaid_institution_name:s});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccountSuccess,{referrer_card:c,plaid_session_id:e,plaid_account_id:i,is_micro_deposit_verification_done:a??!1,plaid_institution_name:s});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccountSuccess,{referrer_card:c,plaid_session_id:e,plaid_account_id:i,is_micro_deposit_verification_done:a??!1,plaid_institution_name:s});break}},r.prototype.onboardingConnectBankEventsByEventSourceFailure=function(e,i,a,s,c,l,u){if(u!=null&&l!=null)switch(u){case"link_bank_account":this.fireTrack(t.Event.onboardingLinkBankAccountFailure,{referrer_card:l,error_description:e,error_code:c,plaid_session_id:i,plaid_request_id:a,plaid_institution_name:s});break;case"switch_to_bank_account":this.fireTrack(t.Event.onboardingSwitchToBankAccountFailure,{referrer_card:l,error_description:e,error_code:c,plaid_session_id:i,plaid_request_id:a,plaid_institution_name:s});break;case"link_new_bank_account":this.fireTrack(t.Event.onboardingLinkANewBankAccountFailure,{referrer_card:l,error_description:e,error_code:c,plaid_session_id:i,plaid_request_id:a,plaid_institution_name:s});break}},r.prototype.onboardingCreditCardEventsConnectByEventSource=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.onboardingCreditCardConnectEventsByEventSourceSuccess=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.onboardingCreditCardConnectEventsByEventSourceFailure=function(e,i,a,s){if(s!=null&&a!=null)switch(s){case"switch_to_credit_card":this.fireTrack(t.Event.onboardingSwitchToCreditCardFailure,{referrer_card:a,error_description:e,error_code:i});break;case"link_new_credit_card":this.fireTrack(t.Event.onboardingLinkANewBankAccountFailure,{referrer_card:a,error_description:e,error_code:i});break;case"link_credit_card":this.fireTrack(t.Event.onboardingLinkCreditCardFailure,{referrer_card:a,error_description:e,error_code:i});break}},r.prototype.billingConnectBankEventsByEventSource=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.billingConnectBankEventsByEventSourceSuccess=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.billingConnectBankEventsByEventSourceFailure=function(e,i,a,s){if(s!=null&&a!=null)switch(s){case"link_new_bank_account":this.fireTrack(t.Event.billingLinkNewBankAccountFailure,{referrer_card:a,error_description:e,error_code:i});break;case"switch_to_bank_account":this.fireTrack(t.Event.billingSwitchToBankAccountFailure,{referrer_card:a,error_description:e,error_code:i});break}},r.prototype.billingConnectCreditCardEventsByEventSource=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.billingConnectCreditCardEventsByEventSourceSuccess=function(e,i){if(i!=null&&e!=null)switch(i){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}},r.prototype.billingConnectCreditCardEventsByEventSourceFailure=function(e,i,a,s){if(s!=null&&a!=null)switch(s){case"switch_to_credit_card":this.fireTrack(t.Event.billingSwitchToCreditCardFailure,{referrer_card:a,error_description:e,error_code:i});break;case"link_new_credit_card":this.fireTrack(t.Event.billingLinkNewCardFailure,{referrer_card:a,error_description:e,error_code:i});break}},r.prototype.trackConnectBank=function(e,i,a){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBank,{referrer_card:i});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBank,{referrer_card:i});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBank,{referrer_card:i});break;case"onboarding":this.onboardingConnectBankEventsByEventSource(i,a);break;case"billing":this.billingConnectBankEventsByEventSource(i,a);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBank,{referrer_card:i});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBank,{referrer_card:i});break}},r.prototype.trackConnectBankSuccess=function(e,i,a,s,c,l,u){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankSuccess,{referrer_card:i});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankSuccess,{referrer_card:i});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankSuccess,{referrer_card:i});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceSuccess(s??null,c??null,l??null,u??null,i,a);break;case"billing":this.billingConnectBankEventsByEventSourceSuccess(i,a);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankSuccess,{referrer_card:i});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankSuccess,{referrer_card:i});break}},r.prototype.trackConnectBankFailure=function(e,i,a,s,c,l,u,d){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break;case"onboarding":this.onboardingConnectBankEventsByEventSourceFailure(i,l??null,u??null,d??null,c,a,s);break;case"billing":this.billingConnectBankEventsByEventSourceFailure(i,c,a,s);break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankFailure,{error_code:c,error_description:i,referrer_card:a});break}},r.prototype.trackCreditCardConnect=function(e,i,a){if(a!=null&&i!=null)switch(e){case"onboarding":this.onboardingCreditCardEventsConnectByEventSource(a,i);break;case"billing":this.billingConnectCreditCardEventsByEventSource(a,i);break}},r.prototype.trackCreditCardConnectSuccess=function(e,i,a){if(i!=null&&a!=null)switch(e){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceSuccess(i,a);break;case"billing":this.billingConnectCreditCardEventsByEventSourceSuccess(i,a);break}},r.prototype.trackCreditCardConnectFailure=function(e,i,a,s,c){if(a!=null&&s!=null)switch(e){case"onboarding":this.onboardingCreditCardConnectEventsByEventSourceFailure(i,c,a,s);break;case"billing":this.billingConnectCreditCardEventsByEventSourceFailure(i,c,a,s);break}},r.prototype.trackConnectBankLink=function(e,i,a,s){switch(a){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"onboarding":this.fireTrack(t.Event.onboardingConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionsConnectBankLink,{account_name:i,account_id:e,referrer_card:s});break}},r.prototype.trackConnectBankGetBalance=function(e,i){switch(e){case"zeni_accounts":this.fireTrack(t.Event.zeniAccountsConnectBankGetBalance,{referrer_card:i});break;case"charge_cards":this.fireTrack(t.Event.cardsConnectBankGetBalance,{referrer_card:i});break;case"reimbursement":this.fireTrack(t.Event.reimbursementConnectBankGetBalance,{referrer_card:i});break;case"onboarding":this.fireTrack(t.Event.onboardingConnectBankGetBalance,{referrer_card:i});break;case"bill_pay":this.fireTrack(t.Event.billPayConnectBankGetBalance,{referrer_card:i});break;case"other_connection":default:this.fireTrack(t.Event.otherConnectionConnectBankGetBalance,{referrer_card:i});break}},r.prototype.trackNeedHelp=function(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}},r.prototype.trackAccountsListPageViewed=function(e,i,a,s,c){this.fireTrack(t.Event.accountsListPageViewed,{zeni_accounts_count:e,external_accounts_count:i,zeni_accounts_available_balance:a,total_yield_earned:s,current_average_yield:c})},r.prototype.trackAccountsListPageClicked=function(e,i,a){this.fireTrack(t.Event.accountsListPageClicked,{click_type:e,account_name:i,account_status:a})},r.prototype.trackAccountsPromoPageClicked=function(e){this.fireTrack(t.Event.accountsPromoPageClicked,{click_type:e})},r.prototype.trackTransferBetweenAccountsFormClicked=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.zeniAccountsTransferFormClicked,{click_type:e,current_screen:i,transfer_from_bank_name:a,transfer_to_bank_name:s,amount:c,is_split_transfer:l,split_days_count:u,APY_slider_moved:d})},r.prototype.trackAccountsDepositCheckFormClicked=function(e,i,a,s,c,l){this.fireTrack(t.Event.accountsDepositCheckFormClicked,{click_type:e,amount:i,source_of_deposit:a,deposited_to:s,front_photo:c,back_photo:l})},r.prototype.trackAccountsDepositCheckFormViewed=function(){this.fireTrack(t.Event.accountsDepositCheckFormViewed)},r.prototype.trackZeniTransferBetweenAccountsFormViewed=function(){this.fireTrack(t.Event.zeniAccountsTransferFormViewed)},r.prototype.trackEnableZeniAccounts=function(){this.fireTrack(t.Event.enableZeniAccounts)},r.prototype.trackZeniAccountsPromoCardClick=function(e,i){this.fireTrack(t.Event.zeniAccountsPromoCardClick,{card_position:e,click_type:i})},r.prototype.trackZeniAccountsCashBalancePromoClicked=function(e){this.fireTrack(t.Event.zeniAccountsCashBalancePromoClicked,{click_type:e})},r.prototype.trackPlgPromoClicked=function(e,i){this.fireTrack(t.Event.plgPromoActionTaken,{page_name:e,clicked_on:i})},r.prototype.getBaseCardProperties=function(e,i,a,s){return{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,credit_account_id:a?.creditAccountId,credit_account_limit:a?.creditAccountLimit,credit_account_available_amount:a?.creditAccountAvailableAmount,credit_account_spent_amount:a?.creditAccountSpentAmount,credit_account_status:a?.creditAccountStatus,credit_account_outstanding_balance:a?.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}},r.prototype.getBaseCardPropertiesWithCashback=function(e,i,a,s,c){return n(n({},this.getBaseCardProperties(e,i,s,c)),{credit_card_cashback_offer:a?.creditCardCashbackOffer,debit_card_cashback_offer:a?.debitCardCashbackOffer,total_earned_cashback:a?.totalEarnedCashback,redeemed_cashback:a?.redeemedCashback,available_cashback:a?.availableCashback,credit_card_cashback_redemption_mode:a?.creditCardCashbackRedemptionMode,debit_card_cashback_redemption_mode:a?.debitCardCashbackRedemptionMode})},r.prototype.getPaymentSourceProperties=function(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}},r.prototype.getCardPaymentProperties=function(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}},r.prototype.trackCardsPromoPageClicked=function(e){this.fireTrack(t.Event.cardsPromoPageClick,{cards_click_type:e})},r.prototype.trackCardsListPageClicked=function(e){this.fireTrack(t.Event.cardsListPageClick,{cards_click_type:e})},r.prototype.trackCardsNewCardFormClicked=function(e,i,a,s,c){this.fireTrack(t.Event.cardsIssueNewCardFormClick,{cards_click_type:c,card_owner:e,card_name:i,amount:s,frequency:a})},r.prototype.trackCardsListRowClicked=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.cardsListRowClick,{card_owner:e,card_name:i,department:a,utilisation:s,limit:c,frequency:l,is_self_card:u})},r.prototype.trackCardsDetailPageViewed=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.cardsDetailPage,{card_id:e,is_self_card:d,card_owner:i,card_name:a,utilisation:s,limit:c,frequency:l,card_color:u})},r.prototype.trackCardsVerifyPopUpClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsVerifyPopUpClick,{cards_click_type:u,is_self_card:d,card_owner:i,card_name:a,utilisation:s,limit:c,frequency:l,card_id:e,selected_color:h})},r.prototype.trackCardsDetailPageClicked=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsDetailPageClick,{cards_click_type:u,is_self_card:d,card_owner:i,card_name:a,utilisation:s,limit:c,frequency:l,card_id:e,selected_color:h})},r.prototype.trackZeniCardsPromoCardClicked=function(e,i,a,s,c){this.fireTrack(t.Event.zeniCardsPromoCardClicked,{card_position:a,click_type:i,is_cards_setup:e,user_name:s,credit_limit:c??"NA"})},r.prototype.trackCardsSetupCardsClick=function(e,i,a){this.fireTrack(t.Event.cardsSetupCardsClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,page_name:a})},r.prototype.trackCardsPromoView=function(e,i,a,s,c){this.fireTrack(t.Event.cardsPromoView,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,promo_format:a,promo_product:s,page_name:c})},r.prototype.trackCardsEnableCardsClick=function(e,i,a){this.fireTrack(t.Event.cardsEnableCardsClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,page_name:a})},r.prototype.trackCardsScheduleDemoClick=function(e,i,a){this.fireTrack(t.Event.cardsScheduleDemoClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,page_name:a})},r.prototype.trackCardsCardListView=function(e,i,a,s,c){this.fireTrack(t.Event.cardsCardListView,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsCardListSearchClick=function(e,i,a,s,c){this.fireTrack(t.Event.cardsCardListSearchClick,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsCardListMoreMenuClick=function(e,i,a,s,c){this.fireTrack(t.Event.cardsCardListMoreMenuClick,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsSettingsClick=function(e,i,a,s,c){this.fireTrack(t.Event.cardsSettingsClick,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsCardSetupView=function(e,i,a){this.fireTrack(t.Event.cardsCardSetupView,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,source:a})},r.prototype.trackCardsVerifyIdentityCompanyDetailsClick=function(e,i,a){this.fireTrack(t.Event.cardsVerifyIdentityCompanyDetailsClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,status:a})},r.prototype.trackCardsPaymentAccountChangeClick=function(e,i,a){this.fireTrack(t.Event.cardsPaymentAccountChangeClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,old_payment_account_name:a.oldPaymentAccountName,old_payment_account_balance:a.oldPaymentAccountBalance,new_payment_account_name:a.newPaymentAccountName,new_payment_account_balance:a.newPaymentAccountBalance,is_old_payment_account_recommended:a.isOldPaymentAccountRecommended,is_new_payment_account_recommended:a.isNewPaymentAccountRecommended,old_payment_account_position:a.oldPaymentAccountPosition,new_payment_account_position:a.newPaymentAccountPosition,number_of_payment_accounts:a.numberOfPaymentAccounts})},r.prototype.trackCardsZeniCashAccountChangeClick=function(e,i,a){this.fireTrack(t.Event.cardsZeniCashAccountChangeClick,{controller_emails:e,is_credit_card_offered:i.isCreditCardOffered,is_debit_card_offered:i.isDebitCardOffered,is_debit_card_enabled:i.isDebitCardEnabled,is_credit_card_enabled:i.isCreditCardEnabled,old_zeni_cash_account:a.oldZeniCashAccount,new_zeni_cash_account:a.newZeniCashAccount,old_zeni_cash_account_position:a.oldZeniCashAccountPosition,new_zeni_cash_account_position:a.newZeniCashAccountPosition,number_of_cash_accounts:a.numberOfCashAccounts})},r.prototype.trackCardsStatementsClick=function(e,i,a,s,c){this.fireTrack(t.Event.cardsStatementsClick,n({},this.getBaseCardPropertiesWithCashback(e,i,a,s,c)))},r.prototype.trackCardsCreditCardStatementsView=function(e,i,a,s,c){this.fireTrack(t.Event.cardsCreditCardStatementsView,n(n({},this.getBaseCardProperties(e,i,s,c)),{number_of_statements:a.numberOfStatements,oldest_statement_month_year:a.oldestStatementMonthYear,latest_statement_month_year:a.latestStatementMonthYear}))},r.prototype.trackCardsDownloadClick=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.cardsDownloadClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,u,d)),{page_name:c,position:l,file_category:s.fileCategory,file_type:s.fileType,file_name:s.fileName,file_month_year:s.fileMonthYear}))},r.prototype.trackCardsNewCardClick=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.cardsNewCardClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,u,d)),{click_item:s,action:c,page_name:l}))},r.prototype.trackCardsCashbackOverviewClick=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.cardsCashbackOverviewClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,l,u)),{click_item:s,action:c}))},r.prototype.trackCardsCardListRowClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsCardListRowClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,u,d,h)),{click_item:a,action:s,position:c,card_name:l.cardName,card_owner:l.cardOwner,card_type:l.cardType,card_status:l.cardStatus,card_utilization_amount:l.cardUtilizationAmount,card_utilization_percent:l.cardUtilizationPercent,card_limit:l.cardLimit}))},r.prototype.trackCardsCopyIconClick=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.cardsCopyIconClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,d,h,_)),{click_item:s,action:c,action_field:l,action_details:u,page_name:a}))},r.prototype.trackCardsCardListSortClick=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.cardsCardListSortClick,n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,h,_)),{click_item:s,action:c,action_field:l,action_details:u,page_name:d}))},r.prototype.trackCardsCardDetailView=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.cardsCardDetailView,n(n({},this.getBaseCardProperties(e,i,l,u)),{card_name:a.cardName,card_type:a.cardType,card_category:a.cardCategory,card_limit:a.cardLimit,card_last_four_digits:a.cardLastFourDigits,card_status:a.cardStatus,card_utilization_percent:a.cardUtilizationPercent,card_id:a.cardId,card_assigned_date:a.cardAssignedDate,card_issued_date:a.cardIssuedDate,card_activated_date:a.cardActivatedDate,card_limit_frequency:a.cardLimitFrequency,card_spent_amount:a.cardSpentAmount,card_available_limit:a.cardAvailableLimit,card_utilization_amount:a.cardUtilizationAmount,total_number_of_declined_transactions:a.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:a.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:a.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:a.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:a.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:a.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:a.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:a.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:a.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:a.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:c.cardholderName,cardholder_email:c.cardholderEmail,cardholder_role:c.cardholderRole,cardholder_user_id:c.cardholderUserId,cardholder_department:c.cardholderDepartment}))},r.prototype.trackCardsUpdateSpendLimitInitiated=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.cardsUpdateSpendLimitInitiated,n(n({},this.getBaseCardProperties(e,i,h,_)),{card_name:a.cardName,card_type:a.cardType,card_category:a.cardCategory,card_limit:a.cardLimit,card_last_four_digits:a.cardLastFourDigits,card_status:a.cardStatus,card_utilization_amount:a.cardUtilizationAmount,card_utilization_percent:a.cardUtilizationPercent,card_id:a.cardId,card_assigned_date:a.cardAssignedDate,card_issued_date:a.cardIssuedDate,card_activated_date:a.cardActivatedDate,card_limit_frequency:a.cardLimitFrequency,card_spent_amount:a.cardSpentAmount,card_available_limit:a.cardAvailableLimit,total_number_of_declined_transactions:a.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:a.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:a.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:a.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:a.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:a.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:a.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:a.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:a.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:a.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:c.cardholderName,cardholder_email:c.cardholderEmail,cardholder_role:c.cardholderRole,cardholder_user_id:c.cardholderUserId,cardholder_department:c.cardholderDepartment,page_name:l,source:u,recommended_limits:d}))},r.prototype.trackCardsUpdateSpendLimitClick=function(e,i,a,s,c,l,u,d,h,_,v,C,g){this.fireTrack(t.Event.cardsUpdateSpendLimitClick,n(n({},this.getBaseCardProperties(e,i,C,g)),{card_name:a.cardName,card_type:a.cardType,card_category:a.cardCategory,card_limit:a.cardLimit,card_last_four_digits:a.cardLastFourDigits,card_status:a.cardStatus,card_utilization_amount:a.cardUtilizationAmount,card_utilization_percent:a.cardUtilizationPercent,card_id:a.cardId,card_assigned_date:a.cardAssignedDate,card_issued_date:a.cardIssuedDate,card_activated_date:a.cardActivatedDate,card_limit_frequency:a.cardLimitFrequency,card_spent_amount:a.cardSpentAmount,card_available_limit:a.cardAvailableLimit,total_number_of_declined_transactions:a.totalNumberOfDeclinedTransactions,number_of_declined_transactions_current_month:a.numberOfDeclinedTransactionsCurrentMonth,total_number_of_paid_transactions:a.totalNumberOfPaidTransactions,number_of_paid_transactions_current_month:a.numberOfPaidTransactionsCurrentMonth,total_number_of_canceled_transactions:a.totalNumberOfCanceledTransactions,number_of_canceled_transactions_current_month:a.numberOfCanceledTransactionsCurrentMonth,total_number_of_authorized_transactions:a.totalNumberOfAuthorizedTransactions,number_of_authorized_transactions_current_month:a.numberOfAuthorizedTransactionsCurrentMonth,total_number_of_transactions_with_receipts:a.totalNumberOfTransactionsWithReceipts,number_of_transactions_with_receipts_current_month:a.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:c.cardholderName,cardholder_email:c.cardholderEmail,cardholder_role:c.cardholderRole,cardholder_user_id:c.cardholderUserId,cardholder_department:c.cardholderDepartment,click_item:u,current_limit:d,new_limit:v,recommended_limits:h,was_recommended_limit_selected:_,card_limit_updated_by_name:l.cardLimitUpdatedByName,card_limit_updated_by_email:l.cardLimitUpdatedByEmail,card_limit_updated_by_role:l.cardLimitUpdatedByRole,card_limit_updated_by_user_id:l.cardLimitUpdatedByUserId}))},r.prototype.trackCardsAddToWalletClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsAddToWalletClick,n(n({},this.getBaseCardProperties(e,i,d,h)),{card_id:a.cardId,card_name:a.cardName,card_type:a.cardType,card_category:a.cardCategory,card_limit:a.cardLimit,card_last_four_digits:a.cardLastFourDigits,card_status:a.cardStatus,card_assigned_date:a.cardAssignedDate,card_issued_date:a.cardIssuedDate,card_limit_frequency:a.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:c.cardholderName,cardholder_email:c.cardholderEmail,cardholder_role:c.cardholderRole,cardholder_user_id:c.cardholderUserId,cardholder_department:c.cardholderDepartment,page_name:l,click_item:u}))},r.prototype.trackCardsPayEarlyClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsPayEarlyClick,n(n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,d,h)),this.getPaymentSourceProperties(u)),{click_item:l,page_name:s,source:c}))},r.prototype.trackCardsPayEarlyFormView=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsPayEarlyFormView,n(n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,d,h)),this.getPaymentSourceProperties(u)),{is_autopay_selected:c,payment_amount:l,page_name:s}))},r.prototype.trackCardsPayEarlyFormClick=function(e,i,a,s,c,l,u,d,h){this.fireTrack(t.Event.cardsPayEarlyFormClick,n(n(n(n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,d,h)),this.getPaymentSourceProperties(u)),{is_autopay_selected:c}),this.getCardPaymentProperties(l)),{click_item:s}))},r.prototype.trackCardsPayEarlyPayNowClick=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.cardsPayEarlyPayNowClick,n(n(n(n({},this.getBaseCardPropertiesWithCashback(e,i,a,u,d)),this.getPaymentSourceProperties(l)),{is_autopay_selected:s}),this.getCardPaymentProperties(c)))},r.prototype.trackEnableBillPay=function(){this.fireTrack(t.Event.enableBillPay)},r.prototype.trackEnableReimbursement=function(){this.fireTrack(t.Event.enableReimbursement)},r.prototype.trackUploadInvoice=function(e,i,a){switch(i){case"w9":this.fireTrack(t.Event.vendor1099W9DocumentUpload,{invoice_upload_method:e,vendor_legal_name:a??""});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}},r.prototype.trackInvoiceActionClick=function(e,i,a,s){this.fireTrack(t.Event.billPayInvoiceActionClick,{bill_stage:e,action_clicked:i,user_name:a,override_data_click:s})},r.prototype.trackBillPaySkipAutofill=function(){this.fireTrack(t.Event.billPaySkipAutofill)},r.prototype.trackReimbursementSkipAutofill=function(){this.fireTrack(t.Event.reimbursementSkipAutofill)},r.prototype.trackBillPayNewBill=function(){this.fireTrack(t.Event.billPayNewBill)},r.prototype.trackReimbursementNewReimbursement=function(){this.fireTrack(t.Event.reimbursementNewReimbursement)},r.prototype.trackBillPayEditBill=function(e,i){this.fireTrack(t.Event.billPayEditBill,{bill_id:e,is_recurring_bill:i})},r.prototype.trackReimbursementEditReimbursement=function(e){this.fireTrack(t.Event.reimbursementEditReimbursement,{reimbursement_id:e})},r.prototype.trackBillPayBillDetails=function(e,i){this.fireTrack(t.Event.billPayBillDetails,{bill_id:e,is_recurring_bill:i})},r.prototype.trackReimbursementReimbursementDetails=function(e){this.fireTrack(t.Event.reimbursementReimbursementDetails,{reimbursement_id:e})},r.prototype.trackBillPayReviewBill=function(e,i,a,s,c,l,u,d,h,_,v,C,g,b){var w={final_vendor_name:l,zeni_rec_vendor_name:u,document_ai_rec_vendor_name:d,bill_id:h,invoice_number:_,invoice_date:i,bill_due_date:v,memo:C,currency:a,collect_from_vendor:s,international_transfer_fee_bearer_payment_method:g,is_recurring_bill:c,payment_method:e};c&&b!=null&&(w.recurring_bill_config={bill_value:b.totalAmount,start_date:b.startDate,end_date:b.endDate,frequency:b.frequency,total_payment_cycles:b.totalPaymentCycles,is_approval_required:b.isApprovalRequired}),this.fireTrack(t.Event.billPayReviewBill,w)},r.prototype.trackReimbursementSubmitReimbursement=function(e,i,a,s){this.fireTrack(t.Event.reimbursementSubmitReimbursement,{create_date:e,currency:i,total_amount:a,reimbursement_id:s})},r.prototype.trackBillPaySendForApproval=function(e,i,a,s,c,l,u){var d={bill_id:c,payment_method:e,scheduled_date:i,collect_from_vendor:a,international_transfer_fee_bearer_payment_method:l,is_recurring_bill:s};s&&u!=null&&(d.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,d)},r.prototype.trackBillPayDeleteBill=function(e,i){this.fireTrack(t.Event.billPayDeleteBill,{bill_id:e,is_recurring_bill:i})},r.prototype.trackBillPayCancelBill=function(e){this.fireTrack(t.Event.billPayCancelBill,{bill_id:e})},r.prototype.trackBillPayCancelAndDeleteBill=function(e,i){this.fireTrack(t.Event.billPayCancelAndDeleteBill,{bill_id:e,is_recurring_bill:i})},r.prototype.trackReimbursementListSort=function(e,i){this.fireTrack(t.Event.reimbursementListSort,{sort_key:e,sort_order:i})},r.prototype.trackReimbursementDeleteReimbursement=function(e){this.fireTrack(t.Event.reimbursementDeleteReimbursement,{reimbursement_id:e})},r.prototype.trackReimbursementCancelReimbursement=function(e){this.fireTrack(t.Event.reimbursementCancelReimbursement,{reimbursement_id:e})},r.prototype.trackReimbursementCancelAndDeleteReimbursement=function(e){this.fireTrack(t.Event.reimbursementCancelAndDeleteReimbursement,{reimbursement_id:e})},r.prototype.trackReimbursementDeleteReimbursementLine=function(e,i){this.fireTrack(t.Event.reimbursementDeleteReimbursementLine,{reimbursement_id:i,line_id:e})},r.prototype.trackReimbursementSubmitAnywayDuplicateReimbursement=function(e,i){this.fireTrack(t.Event.reimbursementSubmitAnywayDuplicateReimbursement,{reimbursement_id:i,number_of_duplicate_expenses:e})},r.prototype.trackReimbursementViewDuplicateExpense=function(e,i){this.fireTrack(t.Event.reimbursementViewDuplicateExpense,{reimbursement_id:i,is_duplicate_within_transaction:e})},r.prototype.trackReimbursementReviewDuplicateReportReimbursement=function(e,i){this.fireTrack(t.Event.reimbursementReviewDuplicateReportReimbursement,{reimbursement_id:i,number_of_duplicate_expenses:e})},r.prototype.trackReimbursementBulkSelectAll=function(e,i,a){this.fireTrack(t.Event.reimbursementBulkSelectAll,{report_stage:e,report_status:i,report_type:a})},r.prototype.trackReimbursementBulkDeleted=function(e,i,a,s){this.fireTrack(t.Event.reimbursementBulkDeleted,{total_reports_deleted:e,report_stage:i,report_status:a,report_type:s})},r.prototype.trackReimbursementBulkSubmit=function(e,i,a){this.fireTrack(t.Event.reimbursementBulkSubmit,{operation_type:e,report_stage:i,report_status:a})},r.prototype.trackReimbursementBulkSelection=function(e,i,a,s){this.fireTrack(t.Event.reimbursementBulkSelection,{total_reports_selected:e,report_stage:i,report_status:a,report_type:s})},r.prototype.trackReimbursementBulkPopupConfirm=function(e,i,a,s){this.fireTrack(t.Event.reimbursementBulkPopupConfirm,{operation_type:e,report_stage:i,report_status:a,report_type:s})},r.prototype.trackBillPayNewVendor=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.billPayNewVendor,{vendor_name:e,vendor_category:i,vendor_class_name:a,vendor_type:s,vendor_contact_email:c,venfor_contact_name:l,vendor_contact_phone:u})},r.prototype.trackBillPayEditVendor=function(e){this.fireTrack(t.Event.billPayEditVendor,{vendor_id:e})},r.prototype.trackBillPayExpandVendor=function(e){this.fireTrack(t.Event.billPayExpandVendor,{vendor_id:e})},r.prototype.trackBillPayChooseNewVendor=function(){this.fireTrack(t.Event.billPayChooseNewVendor)},r.prototype.trackBillPayCreateNewVendorFromRecDropdown=function(e){this.fireTrack(t.Event.billPayCreateNewVendorFromDropdown,{vendor_name:e})},r.prototype.trackBillPayMagicLinkPreviewEmail=function(e){this.fireTrack(t.Event.billPayMagicLinkPreviewEmail,{on_page:e})},r.prototype.trackBillPayMagicLinkSubmitBankAccountDetails=function(e){this.fireTrack(t.Event.billPayMagicLinkSubmitBankAccountDetails,{bill_id:e})},r.prototype.trackBillPayMagicLinkPageLoad=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.billPayMagicLinkPageLoad,{tenant_email_domain:e,vendor_id:i,company_name:a,bill_id:s,payment_method:c,currency:l,total_amount:u})},r.prototype.trackBillPayAutoDateChange=function(e){this.fireTrack(t.Event.billPayAutoDateChange,{bill_id:e})},r.prototype.trackBillPayBulkSelectAll=function(e,i,a){this.fireTrack(t.Event.billPayBulkSelectAll,{bill_stage:e,bill_status:i,bill_type:a})},r.prototype.trackBillPayBulkDeleted=function(e,i,a,s){this.fireTrack(t.Event.billPayBulkDeleted,{total_bills_deleted:e,bill_stage:i,bill_status:a,bill_type:s})},r.prototype.trackBillPayBulkSubmit=function(e,i,a){this.fireTrack(t.Event.billPayBulkSubmit,{operation_type:e,bill_stage:i,bill_status:a})},r.prototype.trackBillPayBulkSelection=function(e,i,a,s){this.fireTrack(t.Event.billPayBulkSelection,{total_bills_selected:e,bill_stage:i,bill_status:a,bill_type:s})},r.prototype.trackBillPayBulkPopupConfirm=function(e,i,a,s){this.fireTrack(t.Event.billPayBulkPopupConfirm,{operation_type:e,bill_stage:i,bill_status:a,bill_type:s})},r.prototype.trackBillPayMarkAsPaid=function(e,i){this.fireTrack(t.Event.billPayMarkAsPaid,{bill_stage:e,bill_status:i})},r.prototype.trackBillPayMarkAsPaidSubmit=function(e,i,a){this.fireTrack(t.Event.billPayMarkAsPaidSubmit,{payment_mode:e,bill_stage:i,bill_status:a})},r.prototype.trackGroupBySwitch=function(e,i){this.fireTrack(t.Event.groupBySwitch,{view:e,parent_card:i})},r.prototype.trackUpdateBurnRateCalculatorSettings=function(e,i,a){this.fireTrack(t.Event.burnRateCalculatorSettings,{accounting_method:e,time_span_id_for_avg_net_burn:i,number_of_months_for_average:a})},r.prototype.trackTransactionDetailsSave=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.transactionDetailsSave,{account_id:e,account_name:i,transaction_id:a,transaction_name:s,transaction_type:c,changed_line_item_count:l,transaction_memo:u,receipt_file_names:d})},r.prototype.trackVendorList=function(e,i,a,s,c){this.fireTrack(t.Event.vendorList,{vendor_count:a,sort_key:s,spend_trend_key:c,current_tab:e,previous_tab:i})},r.prototype.trackVendorListSort=function(e,i,a){this.fireTrack(t.Event.vendorListSort,{vendor_count:e,sort_key:i,spend_trend_key:a})},r.prototype.trackVendorListSearch=function(e){this.fireTrack(t.Event.vendorListSearch,{search_term:e})},r.prototype.trackVendorListSpendTrendSelection=function(e,i,a){this.fireTrack(t.Event.vendorListSpendTrendSelection,{vendor_count:e,sort_key:i,spend_trend_key:a})},r.prototype.trackVendorDetails=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.vendorDetails,{vendor_id:e,vendor_name:i,referrer_card:a,vendor_category:s,vendor_class_name:c,spend_trend_indicator_value:u,vendor_spend_last_30days:d,vendor_spend_last_90days:h,vendor_spend_ytd:_,vendor_owner:l})},r.prototype.trackVendorDetailsSave=function(e,i,a,s,c,l,u,d,h,_,v,C){this.fireTrack(t.Event.vendorDetailsSave,{vendor_id:e,vendor_name:i,vendor_category:a,vendor_class_name:s,vendor_owner:c,saved_vendor_category:l,saved_vendor_class:u,saved_vendor_owner:d,is_recommended_category_selected:h,is_recommended_class_selected:_,category_recommendation_used:v,class_recommendation_used:C})},r.prototype.trackVendorDetailsCancel=function(e,i,a,s,c){this.fireTrack(t.Event.vendorDetailsCancel,{vendor_id:e,vendor_name:i,vendor_category:a,vendor_class_name:s,vendor_owner:c})},r.prototype.trackVendorDetailsSpendTrendHotlinkClicked=function(e,i,a,s,c){this.fireTrack(t.Event.vendorDetailsSpendTrendHotlinkClicked,{vendor_id:e,vendor_name:i,vendor_category:a,vendor_class_name:s,vendor_owner:c})},r.prototype.trackAgingReportDownloadClick=function(e,i,a){this.fireTrack(t.Event.download,{referrer_card:e,sort_key:i,sort_order:a})},r.prototype.trackAgingReportDateChange=function(e,i,a,s){this.fireTrack(t.Event.agingReportDateChange,{referrer_card:e,current_report_date:i,new_report_date:a,new_report_date_selection:s})},r.prototype.trackAgingReportSortChange=function(e,i,a){this.fireTrack(t.Event.sort,{referrer_card:e,sort_key:i,sort_order:a})},r.prototype.trackApAgingDetail=function(e,i,a,s){this.fireTrack(t.Event.apAgingDetail,{referrer_card:e,vendor_id:a,vendor_name:s,current_report_date:i})},r.prototype.trackArAgingDetail=function(e,i,a,s){this.fireTrack(t.Event.arAgingDetail,{referrer_card:e,customer_id:a,customer_name:s,current_report_date:i})},r.prototype.trackApAgingDetailReportSortChange=function(e,i,a,s,c){this.fireTrack(t.Event.sort,{referrer_card:"AP Aging Detail",sort_key:e,sort_order:i,vendor_id:s,vendor_name:c,current_report_date:a})},r.prototype.trackArAgingDetailReportSortChange=function(e,i,a,s,c){this.fireTrack(t.Event.sort,{referrer_card:"AR Aging Detail",sort_key:e,sort_order:i,customer_id:s,customer_name:c,current_report_date:a})},r.prototype.trackApAgingDetailReportDownload=function(e,i,a,s,c){this.fireTrack(t.Event.download,{referrer_card:"AP Aging Detail",sort_key:e,sort_order:i,vendor_id:s,vendor_name:c,current_report_date:a})},r.prototype.trackArAgingDetailReportDownload=function(e,i,a,s,c){this.fireTrack(t.Event.download,{referrer_card:"AR Aging Detail",sort_key:e,sort_order:i,customer_id:s,customer_name:c,current_report_date:a})},r.prototype.trackVendorReviewPage=function(e,i){this.fireTrack(t.Event.vendorReviewList,{vendor_review_source:e,vendor_review_count_total:i})},r.prototype.trackVendorReviewApproveRequested=function(e){var i=e.reviewSource,a=e.tenantName,s=e.requestedVendorName,c=e.originalVendorName,l=e.approveVendorName,u=e.approveVendorNameSelectionSource,d=e.approveVendorReason,h=e.isGlobalVendorRequested,_=e.isNewCreatedVendorRequested,v=e.isVendorNameRecommendationSelected,C=e.isVendorNameChangedAndSelected,g=e.wasRecommendationAvailable,b=e.recommendedVendorName,w=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewGlobalApproveRequest,{vendor_review_source:i,vendor_review_tenant_name:a,old_vendor_name_requested:s,old_vendor_name_original:c,approve_vendor_name_requested:l,approve_vendor_name_recommendation_reason:d,approve_vendor_name_selection_source:u,vendor_name_recommendation:b,vendor_name_recommendation_reason:w,is_vendor_recommended:g,is_recommended_vendor_name_selected:v,is_vendor_renamed:C,is_global_vendor_selected:h,is_vendor_name_new_created_and_selected:_})},r.prototype.trackVendorReviewNewVendorRequested=function(e){var i=e.reviewSource,a=e.tenantName,s=e.newRequestedVendorName,c=e.newRequestedVendorNameSource,l=e.isVendorNameRecommendationSelected,u=e.recommendedVendorName,d=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewGlobalNewVendorRequest,{vendor_review_source:i,vendor_review_tenant_name:a,new_vendor_name_requested:s,new_vendor_name_selection_source:c,new_vendor_recommendation_vendor_name:u,new_vendor_recommendation_vendor_name_reason:d,is_recommended_vendor_name_selected:l})},r.prototype.trackVendorReviewNewVendorSaved=function(e){var i=e.reviewSource,a=e.saveRequestedVendorName,s=e.saveRequestedVendorSource,c=e.isVendorNameRecommendationSelected,l=e.tenantName,u=e.recommendedVendorName,d=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewGlobalNewVendorSave,{vendor_review_source:i,vendor_review_tenant_name:l,saved_vendor_name:a,saved_vendor_name_selection_source:s,new_vendor_recommendation_vendor_name:u,new_vendor_recommendation_vendor_name_reason:d,is_recommended_vendor_name_selected:c})},r.prototype.trackVendorReviewNewVendorCanceled=function(e){var i=e.reviewSource,a=e.newRequestedVendorName,s=e.tenantName,c=e.recommendedVendorName,l=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewGlobalNewVendorCancel,{vendor_review_source:i,vendor_review_tenant_name:s,new_vendor_name_requested:a,new_vendor_recommendation_vendor_name:c,new_vendor_recommendation_vendor_name_reason:l})},r.prototype.trackVendorReviewSaveVendorRequested=function(e){var i=e.reviewSource,a=e.vendorName,s=e.vendorReviewStatus,c=e.saveRequestedVendorName,l=e.saveRequestedVendorReason,u=e.saveRequestedVendorSource,d=e.isGlobalVendorRequested,h=e.isVendorNameRetainSelected,_=e.isVendorNameRecommendationSelected,v=e.isVendorNameChangedAndSelected,C=e.wasRecommendationAvailable,g=e.isVendorNameMarkedAsEmployee,b=e.isVendorNameMarkedAsLocalContractor,w=e.recommendedVendorName,S=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewTenantSave,{vendor_review_source:i,old_vendor_name:a,review_status:s,saved_vendor_name:c,save_vendor_name_recommendation_reason:l,saved_vendor_name_source:u,vendor_name_recommendation:w,vendor_name_recommendation_reason:S,is_vendor_name_retain_selected:h,is_recommended_vendor_name_selected:_,is_global_vendor_selected:d,is_vendor_renamed:v,is_vendor_recommended:C,is_vendor_employee:g,is_vendor_contractor:b})},r.prototype.trackVendorReviewMergeInQBORedirectedOrCanceled=function(e){var i=e.reviewSource,a=e.event,s=e.vendorName,c=e.vendorReviewStatus,l=e.saveRequestedVendorName,u=e.saveRequestedVendorReason,d=e.saveRequestedVendorSource,h=e.isVendorNameRetainSelected,_=e.isVendorNameRecommendationSelected,v=e.isVendorNameChangedAndSelected,C=e.wasRecommendationAvailable,g=e.recommendedVendorName,b=e.recommendedVendorReason;this.fireTrack(a,{vendor_review_source:i,old_vendor_name:s,review_status:c,saved_vendor_name:l,save_vendor_name_recommendation_reason:u,saved_vendor_name_source:d,vendor_name_recommendation:g,vendor_name_recommendation_reason:b,is_vendor_name_retain_selected:h,is_recommended_vendor_name_selected:_,is_vendor_renamed:v,is_vendor_recommended:C})},r.prototype.trackVendorReviewRecommendationUpdateContinuedOrCanceled=function(e){var i=e.reviewSource,a=e.event,s=e.vendorName,c=e.vendorReviewStatus,l=e.saveRequestedVendorName,u=e.saveRequestedVendorReason,d=e.saveRequestedVendorSource,h=e.isVendorNameRetainSelected,_=e.isVendorNameRecommendationSelected,v=e.isVendorNameChangedAndSelected,C=e.wasRecommendationAvailable,g=e.updatedRecommendedVendorName,b=e.updatedRecommendedVendorReason,w=e.recommendedVendorName,S=e.recommendedVendorReason;this.fireTrack(a,{vendor_review_source:i,old_vendor_name:s,review_status:c,saved_vendor_name:l,save_vendor_name_recommendation_reason:u,saved_vendor_name_source:d,updated_recommendation_vendor_name:g,updated_recommendation_vendor_name_reason:b,vendor_name_recommendation:w,vendor_name_recommendation_reason:S,is_vendor_name_retain_selected:h,is_recommended_vendor_name_selected:_,is_vendor_renamed:v,is_vendor_recommended:C})},r.prototype.trackVendorReviewUpdateVendorCanceled=function(e){var i=e.reviewSource,a=e.vendorName,s=e.vendorReviewStatus,c=e.wasRecommendationAvailable,l=e.recommendedVendorName,u=e.recommendedVendorReason;this.fireTrack(t.Event.vendorReviewTenantUpdateCancel,{vendor_review_source:i,old_vendor_name:a,review_status:s,vendor_name_recommendation:l,vendor_name_recommendation_reason:u,is_vendor_recommended:c})},r.prototype.trackVendorReviewWebsiteOpened=function(e){var i=e.reviewSource,a=e.vendorName,s=e.wasRecommendationAvailable,c=e.recommendedVendorName,l=e.recommendedVendorReason,u=e.vendorWebsite;this.fireTrack(t.Event.vendorReviewTenantWebsiteOpened,{vendor_review_source:i,old_vendor_name:a,vendor_name_recommendation:c,vendor_name_recommendation_reason:l,is_vendor_recommended:s,vendor_website:u})},r.prototype.trackCockpitTabClicked=function(e){var i={tab_name:e};this.fireTrack(t.Event.cockpitTabClicked,i)},r.prototype.trackCockpitHealthMonitorRowClicked=function(e,i,a,s,c,l){var u={company_id:e,company_name:i,churn_percent:l,controller_name:a,nps:s,csat:c};this.fireTrack(t.Event.cockpitHealthMonitorRowClicked,u)},r.prototype.trackHealthMonitorFiltersApplied=function(e){var i=e.filterSelection;this.fireTrack(t.Event.healthMonitorFilterApplied,{parameter:i.parameter,condition:i.condition,logic:i.logic})},r.prototype.trackCockpitHealthMonitorNotificationAlertClicked=function(e,i){var a={utm_source:e,company_id:i.companyId,company_name:i.companyName,churn_percent:i.churnProbability};this.fireTrack(t.Event.cockpitHealthMonitorNotificationAlertClicked,a)},r.prototype.trackCockpitHealthMonitorChurnFormClicked=function(e,i){var a={click_type:e,company_id:i.companyId,company_name:i.companyName,zeni_products_and_services:i.zeniProductAndServicesCount,days_to_renewal:i.daysToRenewal,nps:i.netPromoterScore,csat:i.customerSatisfactionScore,external_services_exposure:i.externalServicesExposure,runway_months:i.runwayMonths,dashboard_last_seen:i.dashBoardLastSeen,last_report_sent:i.lastReportSent,churn_percent:i.churnProbability};this.fireTrack(t.Event.cockpitHealthMonitorChurnFormClicked,a)},r.prototype.trackScheduleReviewListLoaded=function(e){var i=e.scheduleType,a=e.scheduleTab,s=e.currentTab,c=e.previousTab,l=e.scheduleCountTotal,u=e.categories,d=e.startMonth,h=e.endMonth,_=e.controllerEmails,v=e.controllerUserIds;this.fireTrack(t.Event.scheduleReviewList,{schedule_type:i,schedule_list_tab:a,schedule_count_total:l,current_tab:s,previous_tab:c,schedule_account_categories_selected:u,schedule_period_start_month:d,schedule_period_end_month:h,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsLoaded=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.scheduledTransaction,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=u.currentBalance,T=u.currentStatus,I=u.startMonth,M=u.endMonth,O=u.period,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsPage,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsSaved=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.scheduledTransaction,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=u.currentBalance,T=u.currentStatus,I=u.startMonth,M=u.endMonth,O=u.period,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsSave,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsCanceled=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.scheduledTransaction,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=u.currentBalance,T=u.currentStatus,I=u.startMonth,M=u.endMonth,O=u.period,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsCancel,{schedule_type:s,vendor_name:d??"",transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsLinkJournalEntry=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.journalEntryDetails,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=u.journalEntryMonth,R=u.journalEntryPostingDate,T=u.journalEntryTransactionAmount,I=u.journalEntryPostingStatus,M=u.journalEntryMemo,O=l.expenseCategory,N=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsLinkJournalEntry,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_category:b,schedule_class:w,journal_entry_month:S,journal_entry_posting_date:R,journal_entry_transaction_amount:T,journal_entry_posting_status:I,journal_entry_memo:M,expense_category:O,expense_class:N,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsViewJournalEntry=function(e){var i,a,s=e.scheduleType,c=e.scheduleExpenseCategoryAndClass,l=e.journalEntryDetails,u=e.fixedAssetsDetails,d=e.controllerEmails,h=e.controllerUserIds,_=l.journalEntryMonth,v=l.journalEntryPostingDate,C=l.journalEntryTransactionAmount,g=l.journalEntryPostingStatus,b=l.journalEntryMemo,w=c.expenseCategory,S=c.expenseClass;this.fireTrack(t.Event.scheduleDetailsViewJournalEntry,{schedule_type:s,journal_entry_month:_,journal_entry_posting_date:v,journal_entry_transaction_amount:C,journal_entry_posting_status:g,journal_entry_memo:b,expense_category:w,expense_class:S,accumulated_depreciation_category:(i=u?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=u?.assetId)!==null&&a!==void 0?a:null,controller_emails:d,controller_user_ids:h})},r.prototype.trackScheduleDetailsDeleted=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.scheduledTransaction,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=u.currentBalance,T=u.currentStatus,I=u.startMonth,M=u.endMonth,O=u.period,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsDelete,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsMarkedAsCompleted=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduledTransaction,u=e.scheduleExpenseCategoryAndClass,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=c.scheduleCategory,w=c.scheduleClass,S=c.description,R=l.currentBalance,T=l.currentStatus,I=l.startMonth,M=l.endMonth,O=l.period,N=u.expenseCategory,F=u.expenseClass;this.fireTrack(t.Event.scheduleDetailsMarkComplete,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,schedule_current_balance:R,schedule_category:b,schedule_class:w,schedule_description:S,schedule_current_status:T,schedule_start_month:I,schedule_end_month:M,schedule_number_of_months:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsJournalEntryLinkedSaved=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.journalEntryDetails,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=u.journalEntryMonth,w=u.journalEntryPostingDate,S=u.journalEntryTransactionAmount,R=u.journalEntryPostingStatus,T=u.journalEntryMemo,I=u.journalEntryQBOLink,M=u.wasRecommendationAvailable,O=u.wasRecommendationSelected,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkedSaved,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,journal_entry_month:b,journal_entry_posting_date:w,journal_entry_transaction_amount:S,journal_entry_posting_status:R,journal_entry_qbo_link:I,journal_entry_memo:T,is_vendor_recommended:M,was_recommendation_selected:O,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsJournalEntryQBOFetched=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.journalEntryDetails,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=u.journalEntryMonth,w=u.journalEntryPostingDate,S=u.journalEntryTransactionAmount,R=u.journalEntryPostingStatus,T=u.journalEntryMemo,I=u.wasRecommendationAvailable,M=u.wasRecommendationSelected,O=u.journalEntryQBOLink,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryQBOFetched,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,journal_entry_month:b,journal_entry_posting_date:w,journal_entry_transaction_amount:S,journal_entry_posting_status:R,journal_entry_qbo_link:O,journal_entry_memo:T,is_vendor_recommended:I,was_recommendation_selected:M,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleDetailsJournalEntryLinkCanceled=function(e){var i,a,s=e.scheduleType,c=e.transaction,l=e.scheduleExpenseCategoryAndClass,u=e.journalEntryDetails,d=e.vendorName,h=e.fixedAssetsDetails,_=e.controllerEmails,v=e.controllerUserIds,C=c.transactionDate,g=c.transactionAmount,b=u.journalEntryMonth,w=u.journalEntryPostingDate,S=u.journalEntryTransactionAmount,R=u.journalEntryPostingStatus,T=u.journalEntryMemo,I=u.wasRecommendationAvailable,M=u.wasRecommendationSelected,O=u.journalEntryQBOLink,N=l.expenseCategory,F=l.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkCancel,{schedule_type:s,vendor_name:d,transaction_date:C,transaction_amount:g,journal_entry_month:b,journal_entry_posting_date:w,journal_entry_transaction_amount:S,journal_entry_posting_status:R,journal_entry_qbo_link:O,journal_entry_memo:T,is_vendor_recommended:I,was_recommendation_selected:M,expense_category:N,expense_class:F,accumulated_depreciation_category:(i=h?.accumulatedDepreciationCategory)!==null&&i!==void 0?i:null,asset_id:(a=h?.assetId)!==null&&a!==void 0?a:null,controller_emails:_,controller_user_ids:v})},r.prototype.trackScheduleAccruedDetailsNewRequested=function(e){var i=e.scheduleType;this.fireTrack(t.Event.scheduleDetailsNewRequested,{schedule_type:i})},r.prototype.trackScheduleAccruedDetailsLoaded=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.vendorName,c=e.controllerEmails,l=e.schedule,u=e.controllerUserIds,d=l.startingBalance,h=l.scheduleAccountCategory,_=l.description,v=l.scheduleCreateDate,C=l.scheduleMonthlyAmount,g=l.runningBalance,b=l.currentStatus,w=l.startMonth,S=l.endMonth,R=l.period,T=a.expenseCategory,I=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsPage,{schedule_type:i,controller_emails:c,controller_user_ids:u,schedule_expense_category:T,schedule_expense_class:I,schedule_account_category:h,schedule_create_date:v,schedule_current_balance:g,schedule_current_status:b,schedule_description:_,schedule_end_month:S,schedule_monthly_amount:C,schedule_number_of_months:R,schedule_start_month:w,schedule_starting_balance:d,vendor_name:s})},r.prototype.trackScheduleAccruedDetailsSaved=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.vendorName,c=e.controllerEmails,l=e.schedule,u=e.controllerUserIds,d=l.startingBalance,h=l.scheduleAccountCategory,_=l.description,v=l.scheduleCreateDate,C=l.scheduleMonthlyAmount,g=l.runningBalance,b=l.currentStatus,w=l.startMonth,S=l.endMonth,R=l.period,T=a.expenseCategory,I=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsSave,{schedule_type:i,controller_emails:c,controller_user_ids:u,schedule_expense_category:T,schedule_expense_class:I,schedule_account_category:h,schedule_create_date:v,schedule_current_balance:g,schedule_current_status:b,schedule_description:_,schedule_end_month:S,schedule_monthly_amount:C,schedule_number_of_months:R,schedule_start_month:w,schedule_starting_balance:d,vendor_name:s})},r.prototype.trackScheduleAccruedDetailsCanceled=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.vendorName,c=e.controllerEmails,l=e.schedule,u=e.controllerUserIds,d=e.lastPostedScheduleMonth,h=l.startingBalance,_=l.scheduleAccountCategory,v=l.description,C=l.scheduleCreateDate,g=l.scheduleMonthlyAmount,b=l.runningBalance,w=l.currentStatus,S=l.startMonth,R=l.endMonth,T=l.period,I=a.expenseCategory,M=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsCancel,{schedule_type:i,controller_emails:c,controller_user_ids:u,schedule_expense_category:I,schedule_expense_class:M,schedule_account_category:_,schedule_create_date:C,schedule_current_balance:b,schedule_current_status:w,schedule_description:v,schedule_end_month:R,schedule_monthly_amount:g,schedule_number_of_months:T,schedule_start_month:S,schedule_starting_balance:h,vendor_name:s,schedule_last_month_with_posted_status:d})},r.prototype.trackScheduleAccruedDetailsDeleted=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.vendorName,c=e.controllerEmails,l=e.schedule,u=e.controllerUserIds,d=e.scheduleNonPendingLastMonth,h=e.scheduleNonPendingLastMonthStatus,_=l.startingBalance,v=l.scheduleAccountCategory,C=l.description,g=l.scheduleCreateDate,b=l.scheduleMonthlyAmount,w=l.runningBalance,S=l.currentStatus,R=l.startMonth,T=l.endMonth,I=l.period,M=a.expenseCategory,O=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsDelete,{schedule_type:i,controller_emails:c,controller_user_ids:u,schedule_expense_category:M,schedule_expense_class:O,schedule_account_category:v,schedule_create_date:g,schedule_current_balance:w,schedule_current_status:S,schedule_description:C,schedule_end_month:T,schedule_monthly_amount:b,schedule_number_of_months:I,schedule_start_month:R,schedule_starting_balance:_,vendor_name:s,schedule_non_pending_last_month:d,schedule_non_pending_last_month_status:h})},r.prototype.trackScheduleAccruedDetailsLinkJournalEntry=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=l.journalEntryMonth,_=l.journalEntryAmount,v=l.journalEntryBalance,C=l.journalEntryPostingStatus,g=s.scheduleCreateDate,b=s.scheduleMonthlyAmount,w=s.currentStatus,S=s.description,R=s.endMonth,T=s.period,I=s.runningBalance,M=s.scheduleAccountCategory,O=s.startMonth,N=s.startingBalance,F=a.expenseCategory,$=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpense,{schedule_type:i,schedule_create_date:g,vendor_name:c,schedule_monthly_amount:b,schedule_description:S,schedule_current_status:w,schedule_start_month:O,schedule_end_month:R,schedule_number_of_months:T,schedule_current_balance:I,schedule_starting_balance:N,schedule_account_category:M,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:v,schedule_entry_expense_link_month:h,schedule_entry_current_status:C,schedule_expense_category:F,schedule_expense_class:$,controller_emails:u,controller_user_ids:d})},r.prototype.trackScheduleAccruedDetailsViewJournalEntry=function(e){var i=e.scheduleType,a=e.scheduleJournalEntryType,s=e.scheduleExpenseCategoryAndClass,c=e.schedule,l=e.vendorName,u=e.journalEntryDetails,d=e.controllerEmails,h=e.controllerUserIds,_=u.journalEntryMonth,v=u.journalEntryAmount,C=u.journalEntryBalance,g=u.journalEntryPostingStatus,b=c.scheduleCreateDate,w=c.scheduleMonthlyAmount,S=c.currentStatus,R=c.description,T=c.endMonth,I=c.period,M=c.runningBalance,O=c.scheduleAccountCategory,N=c.startMonth,F=c.startingBalance,$=s.expenseCategory,z=s.expenseClass;this.fireTrack(t.Event.scheduleDetailsViewJournalEntry,{schedule_type:i,schedule_journal_entry_type:a,schedule_create_date:b,vendor_name:l,schedule_monthly_amount:w,schedule_account_category:O,schedule_description:R,schedule_current_status:S,schedule_start_month:N,schedule_end_month:T,schedule_number_of_months:I,schedule_expense_category:$,schedule_expense_class:z,schedule_current_balance:M,schedule_starting_balance:F,schedule_entry_current_status:g,schedule_entry_expense_link_amount:v,schedule_entry_expense_link_balance:C,schedule_entry_expense_link_month:_,controller_emails:d,controller_user_ids:h})},r.prototype.trackScheduleAccruedDetailsJournalEntryViewLinkedExpense=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=l.journalEntryMonth,_=l.journalEntryAmount,v=l.journalEntryBalance,C=l.journalEntryPostingStatus,g=s.scheduleCreateDate,b=s.scheduleMonthlyAmount,w=s.currentStatus,S=s.description,R=s.endMonth,T=s.period,I=s.runningBalance,M=s.scheduleAccountCategory,O=s.startMonth,N=s.startingBalance,F=a.expenseCategory,$=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryViewLinkedExpense,{schedule_type:i,schedule_create_date:g,vendor_name:c,schedule_monthly_amount:b,schedule_account_category:M,schedule_description:S,schedule_current_status:w,schedule_start_month:O,schedule_end_month:R,schedule_number_of_months:T,schedule_expense_category:F,schedule_expense_class:$,schedule_current_balance:I,schedule_starting_balance:N,schedule_entry_current_status:C,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:v,schedule_entry_expense_link_month:h,controller_emails:u,controller_user_ids:d})},r.prototype.trackScheduleAccruedDetailsJournalEntryLinkCanceled=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=l.journalEntryMonth,_=l.journalEntryAmount,v=l.journalEntryBalance,C=l.journalEntryPostingStatus,g=s.scheduleCreateDate,b=s.scheduleMonthlyAmount,w=s.currentStatus,S=s.description,R=s.endMonth,T=s.period,I=s.runningBalance,M=s.scheduleAccountCategory,O=s.startMonth,N=s.startingBalance,F=a.expenseCategory,$=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsEntryCanceled,{schedule_type:i,schedule_create_date:g,vendor_name:c,schedule_monthly_amount:b,schedule_description:S,schedule_current_status:w,schedule_start_month:O,schedule_end_month:R,schedule_number_of_months:T,schedule_current_balance:I,schedule_starting_balance:N,schedule_account_category:M,schedule_entry_expense_link_month:h,schedule_expense_category:F,schedule_expense_class:$,schedule_entry_current_status:C,schedule_entry_expense_link_amount:_,schedule_entry_expense_link_balance:v,controller_emails:u,controller_user_ids:d})},r.prototype.trackScheduleAccruedDetailsJournalEntryLinkedLoaded=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=s.currentStatus,_=s.description,v=s.endMonth,C=s.period,g=s.runningBalance,b=s.scheduleAccountCategory,w=s.scheduleCreateDate,S=s.scheduleMonthlyAmount,R=s.startMonth,T=s.startingBalance,I=l.wasRecommendationAvailable,M=l.journalEntryPostingStatus,O=a.expenseCategory,N=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpenseLoaded,{schedule_type:i,vendor_name:c,schedule_create_date:w,schedule_monthly_amount:S,schedule_description:_,schedule_current_status:h,schedule_start_month:R,schedule_end_month:v,schedule_number_of_months:C,schedule_current_balance:g,schedule_starting_balance:T,schedule_account_category:b,schedule_expense_category:O,schedule_expense_class:N,controller_emails:u,schedule_entry_current_status:M,controller_user_ids:d,is_vendor_recommended:I})},r.prototype.trackScheduleAccruedDetailsJournalEntryLinkedSaved=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.transactionDetails,u=e.journalEntryDetails,d=e.controllerEmails,h=e.controllerUserIds,_=s.currentStatus,v=s.description,C=s.endMonth,g=s.period,b=s.runningBalance,w=s.scheduleAccountCategory,S=s.scheduleCreateDate,R=s.scheduleMonthlyAmount,T=s.startMonth,I=s.startingBalance,M=u.wasRecommendationAvailable,O=u.wasRecommendationSelected,N=u.journalEntryPostingStatus,F=l.linkedTransactionAmount,$=l.linkedTransactionDate,z=l.linkedTransactionDescription,ee=l.linkedTransactionType,Te=a.expenseCategory,te=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJounralEntryLinkExpenseSaved,{schedule_type:i,vendor_name:c,schedule_create_date:S,schedule_monthly_amount:R,schedule_description:v,schedule_current_status:_,schedule_start_month:T,schedule_end_month:C,schedule_number_of_months:g,schedule_current_balance:b,schedule_starting_balance:I,schedule_account_category:w,schedule_expense_category:Te,schedule_expense_class:te,controller_emails:d,controller_user_ids:h,is_vendor_recommended:M,was_recommendation_selected:O,linked_transaction_amount:F,linked_transaction_date:$,schedule_entry_current_status:N,linked_transaction_description:z,linked_transaction_type:ee})},r.prototype.trackScheduleAccruedDetailsJournalEntryLinkedCanceled=function(e){var i=e.scheduleType,a=e.scheduleExpenseCategoryAndClass,s=e.schedule,c=e.vendorName,l=e.journalEntryDetails,u=e.controllerEmails,d=e.controllerUserIds,h=s.currentStatus,_=s.description,v=s.endMonth,C=s.period,g=s.runningBalance,b=s.scheduleAccountCategory,w=s.scheduleCreateDate,S=s.scheduleMonthlyAmount,R=s.startMonth,T=s.startingBalance,I=l.wasRecommendationAvailable,M=l.journalEntryPostingStatus,O=a.expenseCategory,N=a.expenseClass;this.fireTrack(t.Event.scheduleDetailsJournalEntryLinkExpenseCanceled,{schedule_type:i,vendor_name:c,schedule_create_date:w,schedule_monthly_amount:S,schedule_description:_,schedule_current_status:h,schedule_start_month:R,schedule_end_month:v,schedule_number_of_months:C,schedule_current_balance:g,schedule_starting_balance:T,schedule_account_category:b,schedule_expense_category:O,schedule_expense_class:N,controller_emails:u,controller_user_ids:d,schedule_entry_current_status:M,is_vendor_recommended:I})},r.prototype.trackCockpitTaskCardClicked=function(e){var i=e.tenantName,a=e.tenantId,s=e.user,c=e.controllerEmails;this.fireTrack(t.Event.cockpitTaskCardClicked,{tenant_name:i,tenant_id:a,user_name:s.name,user_email:s.email,user_role:s.role,controller_emails:c})},r.prototype.trackTaskEdited=function(e){var i=e.tenantName,a=e.taskId,s=e.activity,c=e.createdBy,l=e.commentsCreated,u=s.details,d=u.name,h=u.description,_=u.status,v=u.priority,C=u.assignees,g=u.numberOfAttachments,b=u.tags,w=u.dueDate;this.fireTrack(t.Event.taskEdited,{tenant_name:i,task_id:a,created_by:c,activity_count:s.count,activity_type:{name:d,description:h,status:_,priority:v,assignees:C,file_attached_count:g,tags:b,due_date:w},activity_by_user:s.byUser,comment_created:l})},r.prototype.trackTaskCreated=function(e){var i=e.tenantName,a=e.taskId,s=e.newButtonClicked,c=e.activity,l=e.createdBy,u=c.details,d=u.name,h=u.description,_=u.status,v=u.priority,C=u.assignees,g=u.numberOfAttachments,b=u.tags,w=u.dueDate;this.fireTrack(t.Event.newTaskRequested,{tenant_name:i,task_id:a,created_by:l,new_task_button_clicked:s,file_attached_count:g,assignees:C,priority_set:v,task_name:d,task_description:h,task_status:_,tag_name:b?b.join(","):null,task_due_date:w})},r.prototype.trackRewardsPageClicked=function(e){this.fireTrack(t.Event.rewardsPageClicked,{click_type:e})},r.prototype.trackDashboardCardClicked=function(e,i){this.fireTrack(t.Event.dashboardCardClicked,{click_type:e,card_position:i})},r.prototype.trackInviteEmailClicked=function(e,i,a,s){this.fireTrack(t.Event.inviteEmailClicked,{click_type:e,referred_company:i,referred_email:a,invitee_count:s})},r.prototype.trackGetAuditScore=function(e,i,a,s,c){this.fireTrack(t.Event.getAuditScore,{clicked:e,tenant:i,report_month:a,controller_name:s,report_timestamp:c})},r.prototype.trackAuditScorePercentage=function(e,i,a,s,c,l,u,d){this.fireTrack(t.Event.auditScorePercentage,{report_timestamp:e,report_month:i,score_percentage:a,issue_type:c,tenant:s,controller_name:u,customer_group:d,no_of_issues:l})},r.prototype.trackAuditIssuesClicked=function(e,i,a,s){this.fireTrack(t.Event.auditIssuesClicked,{clicked_issue:e,tenant:i,controller_name:a,created_at:s})},r.prototype.trackZeniAssistClick=function(e,i,a,s,c){this.fireTrack(t.Event.zeniAssistClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackRetryClick=function(e,i,a,s,c){this.fireTrack(t.Event.retryClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackRetryConfirmClick=function(e,i,a,s,c){this.fireTrack(t.Event.retryConfirmClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackRefundClick=function(e,i,a,s,c){this.fireTrack(t.Event.refundClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackRefundConfirmClick=function(e,i,a,s,c){this.fireTrack(t.Event.refundConfirmClick,{bill_stage:i,bill_status:e,bill_type:s,error_description:a,invoice_number:c})},r.prototype.trackVendor1099DetailSave=function(e){this.fireTrack(t.Event.vendor1099DetailsSave,{vendor_legal_name:e})},r.prototype.trackVendor1099ReportDownload=function(e){this.fireTrack(t.Event.vendor1099ReportDownload,{report:e.includes("All")?"All":e.toUpperCase()})},r.prototype.trackEnableIntlWire=function(e){this.fireTrack(t.Event.enableIntlWire,{local_currency_enabled:e})},r.prototype.trackSubmitIntlWire=function(e){this.fireTrack(t.Event.submitIntlWire,{local_currency_enabled:e})},r.prototype.trackIntlWirePaymentSelect=function(e,i,a,s,c){this.fireTrack(t.Event.intlWirePaymentMethod,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,local_currency_enabled:c})},r.prototype.trackMonthEndCloseClicked=function(e,i,a){this.fireTrack(t.Event.monthCloseClicked,{month_year:"".concat(e,"-").concat(i),source:a})},r.prototype.trackMonthCloseAuditPage=function(e,i,a,s,c,l){this.fireTrack(t.Event.monthCloseAuditPage,{month_year:"".concat(e,"-").concat(i),audit_score:s,refresh_clicked:c,status:a,source:l})},r.prototype.trackTransactionsReviewPage=function(e,i,a,s,c,l){this.fireTrack(t.Event.transactionsReview,{month_year:"".concat(e,"-").concat(i),refresh_clicked:c,number_of_transactions:a,transaction_updates:s,source:l})},r.prototype.trackTransactionsAutoCategorisedPage=function(e,i,a,s,c,l){this.fireTrack(t.Event.transactionsAutoCategorised,{month_year:"".concat(e,"-").concat(i),refresh_clicked:c,number_of_transactions:a,transaction_updates:s,source:l})},r.prototype.trackMonthCloseScheduleListPage=function(e,i,a,s,c,l){this.fireTrack(t.Event.monthCloseScheduleList,{month_year:"".concat(e,"-").concat(i),refresh_clicked:a,number_of_recommendations:s,failed_postings:c,source:l})},r.prototype.trackFluxAnalysisPage=function(e,i,a,s,c){this.fireTrack(t.Event.fluxAnalysis,{month_year:"".concat(e,"-").concat(i),refresh_clicked:a,open_items:s,source:c})},r.prototype.trackFluxAnalysisReviewed=function(e,i,a,s){this.fireTrack(t.Event.fluxAnalysisReviewed,{month_year:"".concat(e,"-").concat(i),number_of_items_reviewed:s.length,is_bulk_update:a})},r.prototype.trackMissingReceiptsPage=function(e,i,a,s,c){this.fireTrack(t.Event.missingReceipts,{month_year:"".concat(e,"-").concat(i),number_of_transactions:s,refresh_clicked:a,source:c})},r.prototype.trackMissingReceiptAttached=function(e,i){this.fireTrack(t.Event.missingReceipts,{month_year:"".concat(e,"-").concat(i),is_attached:!0})},r.prototype.trackInsightsEmailPage=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.insightsEmail,{month_year:"".concat(e,"-").concat(i),refresh_clicked:a,email_status:s,audit_score:c,date:l,source:u})},r.prototype.trackCommentAdded=function(e,i,a,s,c,l){this.fireTrack(t.Event.commentAdded,{page_name:e,commented_on:i,comment_type:a,tenant:s,controller_name:c,created_by:l})},r.prototype.trackCommentActivity=function(e,i,a,s,c,l,u){this.fireTrack(t.Event.commentActivity,{page_name:e,comment_activity_type:i,tenant:a,controller_name:s,status:c,created_by:l,comment_activity_source:u})},r.prototype.trackSendMoneyClick=function(){this.fireTrack(t.Event.sendMoneyClick)},r.prototype.trackExpressPayNextClick=function(e){this.fireTrack(t.Event.expressPayNextClick,{stage:e})},r.prototype.trackExpressPayScheduleClick=function(){this.fireTrack(t.Event.expressPayScheduleClick)},r.prototype.trackLowBalanceAccountSelected=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountSelected,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountSentForApproval=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountSentForApproval,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountApprove=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountApprove,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountReject=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountReject,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountChange=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountChange,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackLowBalanceAccountSchedule=function(e,i,a,s,c,l){this.fireTrack(t.Event.lowBalanceAccountSchedule,{bill_stage:e,bill_status:i,bill_type:a,invoice_number:s,user_name:c,account_type:l})},r.prototype.trackVendorOperatingExpenses=function(e,i){this.fireTrack(t.Event.vendorOperatingExpenses,{current_tab:e,previous_tab:i})},r.prototype.trackVendorOperatingExpensesPageLoaded=function(e){this.fireTrack(t.Event.vendorOperatingExpensesPageLoaded,{source:e})},r.prototype.trackAICFOChatScreenStateChanged=function(e,i,a,s){this.fireTrack(t.Event.aiCFOChatScreenStateChanged,{action:e,chat_source:i,chat_session_id:a,chat_session_title:s})},r.prototype.trackAICFOChatSessionChanged=function(e,i,a,s){this.fireTrack(t.Event.aiCFOChatSessionChanged,{action:e,chat_source:i,chat_session_id:a,chat_session_title:s})},r.prototype.trackAICFOChatSubmitted=function(e,i,a,s,c,l){this.fireTrack(t.Event.aiCFOChatSubmitted,{question_text:e,chat_source:i,chat_session_id:a,chat_message_id:c,chat_session_title:s,index:l})},r.prototype.trackAICFOChatFeedbackGiven=function(e,i,a,s,c){this.fireTrack(t.Event.aiCFOChatFeedbackGiven,{feedback_type:e,question_text:i,chat_session_id:a,chat_message_id:c,chat_session_title:s})},r.prototype.trackAICFOChatResponseGenerated=function(e,i,a,s,c,l){this.fireTrack(t.Event.aiCFOChatResponseGenerated,{response_type:e,question_text:i,response_text:a,chat_session_id:s,chat_message_id:l,chat_session_title:c})},r.prototype.trackAICFOChatAnswerGenerated=function(e,i,a,s,c,l,u,d,h,_){this.fireTrack(t.Event.aiCFOChatAnswerGenerated,{has_visualization:l,visualization_type:u,has_follow_up_questions:a,has_assumptions:s,response_text:e,has_insights:c,question_text:i,chat_session_id:d,chat_message_id:_,chat_session_title:h})},r.prototype.trackAICFOOnboardingScreenStateChanged=function(e,i){this.fireTrack(t.Event.aiCFOOnboardingScreenStateChanged,{action:e,ai_cfo_onboarding_source:i})},r.prototype.trackAICFOPrivacyPolicy=function(){this.fireTrack(t.Event.aiCFOPrivacyPolicy)},r.prototype.trackAICFOAgreement=function(){this.fireTrack(t.Event.aiCFOAgreement)},r.prototype.trackTreasuryNavPromoClick=function(e){this.fireTrack(t.Event.treasuryNavPromoClick,{clicked_on:e})},r.prototype.trackTreasuryPromoView=function(e){this.fireTrack(t.Event.treasuryPromoView,{page_name:e})},r.prototype.trackTreasurySetupActionClick=function(e){this.fireTrack(t.Event.treasurySetupActionClick,{action_type:e})},r.prototype.trackTreasuryProspectusClick=function(e,i,a){this.fireTrack(t.Event.treasuryProspectusClick,{fund_name:e,fund_ticker:i,page_name:a})},r.prototype.trackTreasuryCalculatorClick=function(e,i){this.fireTrack(t.Event.treasuryCalculatorClick,{page_name:e,amount:i})},r.prototype.trackTreasuryAgreementView=function(){this.fireTrack(t.Event.treasuryAgreementView)},r.prototype.trackTreasuryAllocationAction=function(e,i){this.fireTrack(t.Event.treasuryAllocationAction,{action_type:e,fund_percentage:i})},r.prototype.trackTreasuryRiskAction=function(e,i,a){this.fireTrack(t.Event.treasuryRiskAction,{action_type:e,risk_score:i,fund_percentage:a})},r.prototype.trackTreasuryVerificationNavigation=function(e,i){this.fireTrack(t.Event.treasuryVerificationNavigation,{clicked_on:e,verification_status:i})},r.prototype.trackTreasuryTransferAction=function(e,i,a,s,c){this.fireTrack(t.Event.treasuryTransferAction,{clicked_on:e,from_account:i,to_account:a,amount:s,fund_percentage:c})},r.prototype.trackTreasuryDashboardInteraction=function(e){this.fireTrack(t.Event.treasuryDashboardInteraction,{clicked_on:e})},r.prototype.trackTreasuryPortfolioConfirm=function(e,i){this.fireTrack(t.Event.treasuryPortfolioConfirm,{risk_score:e,fund_percentage:i})},r.prototype.trackTransactionCotView=function(e){var i=e.recommendationFor,a=e.currentValue,s=e.recommendation,c=e.recommendationCot,l=e.isRecommendationCotAvailable,u=e.recommendationReason,d=e.recommendationConfidenceLevel,h=e.alternativeRecommendation,_=e.alternativeRecommendationCot,v=e.isAlternativeRecommendationCotAvailable,C=e.alternativeRecommendationReason,g=e.alternativeRecommendationConfidenceLevel,b=e.transactionPage,w=e.transactionCurrentStatus,S=e.recommendationConfidencePercentage,R=e.alternativeRecommendationConfidencePercentage;this.fireTrack(t.Event.transactionCotView,{recommendation_for:i,current_value:a,recommendation:s,recommendation_cot:c,is_recommendation_cot_available:l,recommendation_reason:u,recommendation_confidence_percentage:S,recommendation_confidence_level:d,alternative_recommendation:h,alternative_recommendation_cot:_,is_alternative_recommendation_cot_available:v,alternative_recommendation_reason:C,alternative_recommendation_confidence_percentage:R,alternative_recommendation_confidence_level:g,transaction_page:b,transaction_current_status:w})},r.prototype.trackTransactionCotDropdownView=function(e){var i=e.recommendationType,a=e.recommendationFor,s=e.currentValue,c=e.recommendation,l=e.recommendationCot,u=e.isRecommendationCotAvailable,d=e.recommendationReason,h=e.recommendationConfidenceLevel,_=e.transactionPage,v=e.transactionCurrentStatus,C=e.recommendationConfidencePercentage;this.fireTrack(t.Event.transactionCotDropdownView,{recommendation_type:i,recommendation_for:a,current_value:s,recommendation:c,recommendation_cot:l,is_recommendation_cot_available:u,recommendation_reason:d,recommendation_confidence_percentage:C,recommendation_confidence_level:h,transaction_current_status:v,transaction_page:_})},r.prototype.trackTransactionCotViewAlternative=function(e){var i=e.alternativeRecommendationFor,a=e.alternativeRecommendation,s=e.alternativeRecommendationCot,c=e.isAlternativeRecommendationCotAvailable,l=e.alternativeRecommendationReason,u=e.alternativeRecommendationConfidenceLevel,d=e.transactionPage,h=e.transactionCurrentStatus,_=e.alternativeRecommendationConfidencePercentage;this.fireTrack(t.Event.transactionCotViewAlternative,{alternative_recommendation_for:i,alternative_recommendation:a,alternative_recommendation_cot:s,is_alternative_recommendation_cot_available:c,alternative_recommendation_reason:l,alternative_recommendation_confidence_percentage:_,alternative_recommendation_confidence_level:u,transaction_current_status:h,transaction_page:d})},r.prototype.trackTransactionCotViewRecommended=function(e){var i=e.recommendationFor,a=e.currentValue,s=e.recommendation,c=e.recommendationCot,l=e.isRecommendationCotAvailable,u=e.recommendationReason,d=e.recommendationConfidenceLevel,h=e.recommendationConfidencePercentage;this.fireTrack(t.Event.transactionCotViewRecommended,{recommendation_for:i,current_value:a,recommendation:s,recommendation_cot:c,is_recommendation_cot_available:l,recommendation_reason:u,recommendation_confidence_percentage:h,recommendation_confidence_level:d})},r.prototype.trackAIPerfHome=function(e){this.fireTrack(t.Event.aiPerfHome,{perf_snapshot:e})},r.prototype.trackAIPerfRefresh=function(e){this.fireTrack(t.Event.aiPerfRefresh,{perf_snapshot:e})},r.prototype.trackAIPerfTimePeriodSelect=function(e){this.fireTrack(t.Event.aiPerfTimePeriodSelect,{perf_snapshot:e})},r.prototype.fireTrack=function(e,i){if(t.EVENTS_WITHOUT_SUPER_PROPERTIES.has(e)===!0){this.provider.track(e,i);return}var a=Object.assign({},this.superProperties,i);this.provider.track(e,a)},r}();return Yt.Analytics=o,Yt}var kc;function bg(){return kc||(kc=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.EVENTS_WITHOUT_SUPER_PROPERTIES=n.Event=n.Analytics=void 0;var t=vg();Object.defineProperty(n,"Analytics",{enumerable:!0,get:function(){return t.Analytics}});var o=ad();Object.defineProperty(n,"EVENTS_WITHOUT_SUPER_PROPERTIES",{enumerable:!0,get:function(){return o.EVENTS_WITHOUT_SUPER_PROPERTIES}}),Object.defineProperty(n,"Event",{enumerable:!0,get:function(){return o.Event}})}(uo)),uo}export{Dt as B,yg as m,bg as r};